!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var i=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};i.prototype=t.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})})),i}function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){p(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function s(){s=function(){return t};var e,t={},i=Object.prototype,a=i.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",l=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function d(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,i){return e[t]=i}}function u(e,t,i,a){var n=t&&t.prototype instanceof w?t:w,o=Object.create(n.prototype),s=new L(a||[]);return r(o,"_invoke",{value:k(e,i,s)}),o}function p(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",m="executing",v="completed",g={};function w(){}function y(){}function b(){}var x={};d(x,o,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==i&&a.call(S,o)&&(x=S);var T=b.prototype=w.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function i(r,n,o,s){var l=p(e[r],e,n);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(d).then((function(e){c.value=e,o(c)}),(function(e){return i("throw",e,o,s)}))}s(l.arg)}var n;r(this,"_invoke",{value:function(e,a){function r(){return new t((function(t,r){i(e,a,t,r)}))}return n=n?n.then(r,r):r()}})}function k(t,i,a){var r=h;return function(n,o){if(r===m)throw Error("Generator is already running");if(r===v){if("throw"===n)throw o;return{value:e,done:!0}}for(a.method=n,a.arg=o;;){var s=a.delegate;if(s){var l=_(s,a);if(l){if(l===g)continue;return l}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(r===h)throw r=v,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);r=m;var c=p(t,i,a);if("normal"===c.type){if(r=a.done?v:f,c.arg===g)continue;return{value:c.arg,done:a.done}}"throw"===c.type&&(r=v,a.method="throw",a.arg=c.arg)}}}function _(t,i){var a=i.method,r=t.iterator[a];if(r===e)return i.delegate=null,"throw"===a&&t.iterator.return&&(i.method="return",i.arg=e,_(t,i),"throw"===i.method)||"return"!==a&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+a+"' method")),g;var n=p(r,t.iterator,i.arg);if("throw"===n.type)return i.method="throw",i.arg=n.arg,i.delegate=null,g;var o=n.arg;return o?o.done?(i[t.resultName]=o.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,g):o:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function A(t){if(t||""===t){var i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function i(){for(;++r<t.length;)if(a.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return n.next=n}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,r(T,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=d(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,d(e,c,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},C(P.prototype),d(P.prototype,l,(function(){return this})),t.AsyncIterator=P,t.async=function(e,i,a,r,n){void 0===n&&(n=Promise);var o=new P(u(e,i,a,r),n);return t.isGeneratorFunction(i)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},C(T),d(T,c,"Generator"),d(T,o,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var a in t)i.push(a);return i.reverse(),function e(){for(;i.length;){var a=i.pop();if(a in t)return e.value=a,e.done=!1,e}return e.done=!0,e}},t.values=A,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var i in this)"t"===i.charAt(0)&&a.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var i=this;function r(a,r){return s.type="throw",s.arg=t,i.next=a,r&&(i.method="next",i.arg=e),!!r}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var n=r;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var o=n?n.completion:{};return o.type=e,o.arg=t,n?(this.method="next",this.next=n.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),M(i),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var a=i.completion;if("throw"===a.type){var r=a.arg;M(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,a){return this.delegate={iterator:A(t),resultName:i,nextLoc:a},"next"===this.method&&(this.arg=e),g}},t}function l(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function d(e,t,i,a,r,n,o){try{var s=e[n](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(a,r)}function u(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,l(a.key),a)}}function p(e,t,i){return(t=l(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a,r,n,o,s=[],l=!0,c=!1;try{if(n=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(a=n.call(i)).done)&&(s.push(a.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||m(e,t)||function(){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 f(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}(e=jQuery).fn.emulateTransitionEnd=function(t){var i=!1,a=this;return e(this).one("wpcomTransitionEnd",(function(){i=!0})),setTimeout((function(){i||e(a).trigger(e.__transition.end)}),t),this},e((function(){e.__transition=function(){var e=document.createElement("wpcom"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(void 0!==e.style[i])return{end:t[i]};return!1}(),e.__transition&&(e.event.special.wpcomTransitionEnd={bindType:e.__transition.end,delegateType:e.__transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})),function(e){var t='[data-dismiss="alert"], [data-wpcom-dismiss="alert"]',i=function(i){e(i).on("click",t,this.close)};i.TRANSITION_DURATION=150,i.prototype.close=function(t){var a=e(this),r=a.attr("data-target");r||(r=(r=a.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),r="#"===r?[]:r;var n=e(document).find(r);function o(){n.detach().trigger("closed.wpcom.alert").remove()}t&&t.preventDefault(),n.length||(n=a.closest(".wpcom-alert")),n.trigger(t=e.Event("close.wpcom.alert")),t.isDefaultPrevented()||(n.removeClass("in"),e.__transition&&n.hasClass("fade")?n.one("wpcomTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o())};var a=e.fn._alert;e.fn._alert=function(t){return this.each((function(){var a=e(this),r=a.data("wpcom.alert");r||a.data("wpcom.alert",r=new i(this)),"string"==typeof t&&r[t].call(a)}))},e.fn._alert.Constructor=i,e.fn._alert.noConflict=function(){return e.fn._alert=a,this},e(document).on("click.wpcom.alert.data-api",t,i.prototype.close)}(jQuery),function(e){var t=function t(i,a){this.$element=e(i),this.options=e.extend({},t.DEFAULTS,a),this.$trigger=e('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function i(t){var i,a=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(a)}function a(i){return this.each((function(){var a=e(this),r=a.data("bs.collapse"),n=e.extend({},t.DEFAULTS,a.data(),"object"==c(i)&&i);!r&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),r||a.data("bs.collapse",r=new t(this,n)),"string"==typeof i&&r[i]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(i=r.data("bs.collapse"))&&i.transitioning)){var n=e.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){r&&r.length&&(a.call(r,"hide"),i||r.data("bs.collapse",null));var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var l=e.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[o](this.$element[0][l])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=e.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var a=this.dimension();this.$element[a](this.$element[a]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return r.call(this);this.$element[a](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,a){var r=e(a);this.addAriaAndCollapsedClass(i(r),r)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var i=e.hasClass("in");e.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)};var r=e.fn.collapse;e.fn.collapse=a,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var r=e(this);r.attr("data-target")||t.preventDefault();var n=i(r),o=n.data("bs.collapse")?"toggle":r.data();a.call(n,o)}))}(jQuery),function(e){var t=function(t,i){this.options=i,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy((function(){this.$element.trigger("loaded.wpcom.modal")}),this))};function i(i,a){return this.each((function(){var r=e(this),n=r.data("wpcom.modal"),o=e.extend({},t.DEFAULTS,r.data(),"object"==c(i)&&i);n||r.data("wpcom.modal",n=new t(this,o)),"string"==typeof i?n[i](a):o.show&&n.show(a)}))}t.TRANSITION_DURATION=250,t.BACKDROP_TRANSITION_DURATION=120,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(i){var a=this,r=e.Event("show.wpcom.modal",{relatedTarget:i});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.wpcom.modal",'[data-dismiss="modal"], [data-wpcom-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.wpcom.modal",(function(){a.$element.one("mouseup.dismiss.wpcom.modal",(function(t){e(t.target).is(a.$element)&&(a.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var r=e.__transition&&a.$element.hasClass("fade");a.$element.parent().length||a.$element.appendTo(a.$body),a.$element.show().scrollTop(0),a.adjustDialog(),r&&a.$element[0].offsetWidth,a.$element.addClass("in"),a.enforceFocus();var n=e.Event("shown.wpcom.modal",{relatedTarget:i});r?a.$dialog.one("wpcomTransitionEnd",(function(){a.$element.trigger("focus").trigger(n)})).emulateTransitionEnd(t.TRANSITION_DURATION):a.$element.trigger("focus").trigger(n)})))},t.prototype.hide=function(i){i&&i.preventDefault(),i=e.Event("hide.wpcom.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.wpcom.modal"),this.$element.removeClass("in").off("click.dismiss.wpcom.modal").off("mouseup.dismiss.wpcom.modal"),this.$dialog.off("mousedown.dismiss.wpcom.modal"),e.__transition&&this.$element.hasClass("fade")?this.$element.one("wpcomTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.wpcom.modal").on("focusin.wpcom.modal",e.proxy((function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.wpcom.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.wpcom.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.wpcom.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.wpcom.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop((function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.wpcom.modal")}))},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var a=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var n=e.__transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("wpcom-modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.wpcom.modal",e.proxy((function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),n&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;n?this.$backdrop.one("wpcomTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){a.removeBackdrop(),i&&i()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("wpcomTransitionEnd",o).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):o()}else i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||0;var i=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("--scrollbar-width",t+i+"px"),e(this.fixedContent).each((function(t,a){var r=a.style.paddingRight,n=e(a).css("padding-right");e(a).data("padding-right",r).css("padding-right",parseFloat(n)+i+"px")})))},t.prototype.resetScrollbar=function(){this.$body.css("--scrollbar-width",this.originalBodyPad+"px"),e(this.fixedContent).each((function(t,i){var a=e(i).data("padding-right");e(i).removeData("padding-right"),i.style.paddingRight=a||""}))},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var a=e.fn._modal,r=e.fn.modal;e.fn._modal=i,e.fn._modal.Constructor=t,e.fn.modal=i,e.fn.modal.Constructor=t,e.fn._modal.noConflict=function(){return e.fn._modal=a,this},e.fn.modal.noConflict=function(){return e.fn.modal=r,this},e(document).on("click.wpcom.modal.data-api",'[data-toggle="modal"]',(function(t){var a=e(this),r=a.attr("href"),n=a.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""),o=e(document).find(n),s=o.data("wpcom.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},o.data(),a.data());a.is("a")&&t.preventDefault(),o.one("show.wpcom.modal",(function(e){e.isDefaultPrevented()||o.one("hidden.wpcom.modal",(function(){a.is(":visible")&&a.trigger("focus")}))})),i.call(o,s,this)}))}(jQuery),function(e){var t=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],a={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,n=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function o(t,a){var o=t.nodeName.toLowerCase();if(-1!==e.inArray(o,a))return-1===e.inArray(o,i)||Boolean(t.nodeValue.match(r)||t.nodeValue.match(n));for(var s=e(a).filter((function(e,t){return t instanceof RegExp})),l=0,c=s.length;l<c;l++)if(o.match(s[l]))return!0;return!1}function s(t,i,a){if(0===t.length)return t;if(a&&"function"==typeof a)return a(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var r=document.implementation.createHTMLDocument("sanitization");r.body.innerHTML=t;for(var n=e.map(i,(function(e,t){return t})),s=e(r.body).find("*"),l=0,c=s.length;l<c;l++){var d=s[l],u=d.nodeName.toLowerCase();if(-1!==e.inArray(u,n))for(var p=e.map(d.attributes,(function(e){return e})),h=[].concat(i["*"]||[],i[u]||[]),f=0,m=p.length;f<m;f++)o(p[f],h)||d.removeAttribute(p[f].nodeName);else d.parentNode.removeChild(d)}return r.body.innerHTML}var l=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:a},l.prototype.init=function(t,i,a){if(this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(a),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),n=r.length;n--;){var o=r[n];if("click"==o)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=o){var s="hover"==o?"mouseenter":"focusin",l="hover"==o?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(i){var a=this.$element.data();for(var r in a)a.hasOwnProperty(r)&&-1!==e.inArray(r,t)&&delete a[r];return(i=e.extend({},this.getDefaults(),a,i)).delay&&"number"==typeof i.delay&&(i.delay={show:i.delay,hide:i.delay}),i.sanitize&&(i.template=s(i.template,i.whiteList,i.sanitizeFn)),i},l.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&e.each(this._options,(function(e,a){i[e]!=a&&(t[e]=a)})),t},l.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusin"==t.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState)i.hoverState="in";else{if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},l.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i)),t instanceof e.Event&&(i.inState["focusout"==t.type?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)}},l.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var i=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!i)return;var a=this,r=this.tip(),n=this.getUID(this.type);this.setContent(),r.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&r.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,c=s.test(o);c&&(o=o.replace(s,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?r.appendTo(e(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),u=r[0].offsetWidth,p=r[0].offsetHeight;if(c){var h=o,f=this.getPosition(this.$viewport);o="bottom"==o&&d.bottom+p>f.bottom?"top":"top"==o&&d.top-p<f.top?"bottom":"right"==o&&d.right+u>f.width?"left":"left"==o&&d.left-u<f.left?"right":o,r.removeClass(h).addClass(o)}var m=this.getCalculatedOffset(o,d,u,p);this.applyPlacement(m,o);var v=function(){var e=a.hoverState;a.$element.trigger("shown.bs."+a.type),a.hoverState=null,"out"==e&&a.leave(a)};e.__transition&&this.$tip.hasClass("fade")?r.one("wpcomTransitionEnd",v).emulateTransitionEnd(l.TRANSITION_DURATION):v()}},l.prototype.applyPlacement=function(t,i){var a=this.tip(),r=a[0].offsetWidth,n=a[0].offsetHeight,o=parseInt(a.css("margin-top"),10),s=parseInt(a.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(s)&&(s=0),t.top+=o,t.left+=s,e.offset.setOffset(a[0],e.extend({using:function(e){a.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),a.addClass("in");var l=a[0].offsetWidth,c=a[0].offsetHeight;"top"==i&&c!=n&&(t.top=t.top+n-c);var d=this.getViewportAdjustedDelta(i,t,l,c);d.left?t.left+=d.left:t.top+=d.top;var u=/top|bottom/.test(i),p=u?2*d.left-r+l:2*d.top-n+c,h=u?"offsetWidth":"offsetHeight";a.offset(t),this.replaceArrow(p,a[0][h],u)},l.prototype.replaceArrow=function(e,t,i){this.arrow().css(i?"left":"top",50*(1-e/t)+"%").css(i?"top":"left","")},l.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=s(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},l.prototype.hide=function(t){var i=this,a=e(this.$tip),r=e.Event("hide.bs."+this.type);function n(){"in"!=i.hoverState&&a.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}if(this.$element.trigger(r),!r.isDefaultPrevented())return a.removeClass("in"),e.__transition&&a.hasClass("fade")?a.one("wpcomTransitionEnd",n).emulateTransitionEnd(l.TRANSITION_DURATION):n(),this.hoverState=null,this},l.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(t){var i=(t=t||this.$element)[0],a="BODY"==i.tagName,r=i.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var n=window.SVGElement&&i instanceof window.SVGElement,o=a?{top:0,left:0}:n?null:t.offset(),s={scroll:a?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},l=a?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,s,l,o)},l.prototype.getCalculatedOffset=function(e,t,i,a){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==e?{top:t.top-a,left:t.left+t.width/2-i/2}:"left"==e?{top:t.top+t.height/2-a/2,left:t.left-i}:{top:t.top+t.height/2-a/2,left:t.left+t.width}},l.prototype.getViewportAdjustedDelta=function(e,t,i,a){var r={top:0,left:0};if(!this.$viewport)return r;var n=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-n-o.scroll,l=t.top+n-o.scroll+a;s<o.top?r.top=o.top-s:l>o.top+o.height&&(r.top=o.top+o.height-l)}else{var c=t.left-n,d=t.left+n+i;c<o.left?r.left=o.left-c:d>o.right&&(r.left=o.left+o.width-d)}return r},l.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},l.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var i=this;t&&((i=e(t.currentTarget).data("bs."+this.type))||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},l.prototype.sanitizeHtml=function(e){return s(e,this.options.whiteList,this.options.sanitizeFn)};var d=e.fn.tooltip;e.fn.tooltip=function(t){return this.each((function(){var i=e(this),a=i.data("bs.tooltip"),r="object"==c(t)&&t;!a&&/destroy|hide/.test(t)||(a||i.data("bs.tooltip",a=new l(this,r)),"string"==typeof t&&a[t]())}))},e.fn.tooltip.Constructor=l,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=d,this}}(jQuery),function(e){var t=function(t){this.element=e(t)};function i(i){return this.each((function(){var a=e(this),r=a.data("bs.tab");r||a.data("bs.tab",r=new t(this)),"string"==typeof i&&r[i]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,i=t.closest("ul:not(.dropdown-menu)"),a=t.data("target");if(a||(a=(a=t.attr("href"))&&a.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=i.find(".active:last a"),n=e.Event("hide.bs.tab",{relatedTarget:t[0]}),o=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(n),t.trigger(o),!o.isDefaultPrevented()&&!n.isDefaultPrevented()){var s=e(document).find(a);this.activate(t.closest("li"),i),this.activate(s,s.parent(),(function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}}},t.prototype.activate=function(i,a,r){var n=a.find("> .active"),o=r&&e.__transition&&(n.length&&n.hasClass("fade")||!!a.find("> .fade").length);function s(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}n.length&&o?n.one("wpcomTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),n.removeClass("in")};var a=e.fn.tab;e.fn.tab=i,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=a,this};var r=function(t){t.preventDefault(),i.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),(t=jQuery).fn.imgScroll=function(e,i){var a=t.extend({data:[],template:null,evtType:"click",visible:1,direction:"x",next:"#next",prev:"#prev",disableClass:"disabled",disableClassPerfix:!1,speed:300,step:1,loop:!1,showControl:!1,width:null,height:null,navItems:!1,navItmesWrapClass:"scroll-nav-wrap",navItemActivedClass:"current",status:!1,statusWrapSelector:".scroll-status-wrap"},e);return this.each((function(){var e,r=t(this),n=r.find("ul").eq(0),o=n.children("li"),s=o.length,l=null,c=null,d="string"==typeof a.next?t(a.next):a.next,u="string"==typeof a.prev?t(a.prev):a.prev,p=0,h=a.step,f=a.visible,m=Math.ceil((s-f)/h)+1,v=a.loop,g=a.direction,w=a.evtType,y=a.disableClass,b=a.disableClassPerfix?a.disableClassPerfix+"-prev-"+y:y,x=a.disableClassPerfix?a.disableClassPerfix+"-next-"+y:y,E=a.navItems,S=a.navItmesWrapClass,T=t("."+S).length>0,C=a.navItemActivedClass,P=a.status,k=a.statusWrapSelector,_=t(k).length>0,I=!1,M=!0,L=a.template||'<ul>{for slide in list}<li><a href="${slide.href}" target="_blank"><img src="${slide.src}" alt="${slide.alt}" /></a></li>{/for}</ul>';function A(t,w){if(n.is(":animated"))return!1;if(v)M&&w&&(p=m),I&&!w&&(p=-1),t=w?--p:++p;else{if(M&&w||I&&!w)return!1;t=w?--p:++p}function y(){v?(I=f>=s-t*h,M=0>=t):(f>=s-t*h?(d.addClass(x),I=!0):(d.removeClass(x),I=!1),0>=t?(u.addClass(b),M=!0):(u.removeClass(b),M=!1)),(E||P)&&O(t),"function"==typeof i&&i.apply(r,[t,m,o.slice(t*h,t*h+f),o.slice(t*h+f-h,t*h+f)])}e="x"==g?{left:t>=m-1?-(s-f)*l:-t*h*l}:{top:t>=m-1?-(s-f)*c:-t*h*c},a.speed?n.animate(e,a.speed,y):(n.css(e),y())}function O(e){E&&t("."+S).find("em").removeClass(C).eq(e).addClass(C),P&&t(k).html("<b>"+(e+1)+"</b>/"+m)}if(a.data.length>0){if(!a.width||!a.height)return!1;!function(e){var t={list:e};r.html(L.process(t)),s=a.data.length,n=r.find("ul").eq(0),o=n.children("li"),m=Math.ceil((s-f)/h)+1}(a.data)}s>f&&f>=h?(function(e){v||(s>h&&s>f?(u.addClass(b),d.removeClass(x)):f>=s&&d.addClass(x)),l=a.width||o.eq(0).outerWidth(),c=a.height||o.eq(0).outerHeight(),r.css({position:"static"==r.css("position")?"relative":r.css("position"),width:"x"==e?l*f:l,height:"x"==e?c:c*f}),n.css({position:"relative",width:"x"==e?l*s:l,height:"x"==e?c:c*s,top:0,left:0}),"function"==typeof i&&i.apply(r,[p,m,o.slice(p*h,p*h+f),o.slice(p*h+f-h,p*h+f)])}(g),u.off(w).on(w,(function(){A(p,!0),t(window).trigger("scroll")})),d.off(w).on(w,(function(){A(p,!1),t(window).trigger("scroll")})),E&&function(e,i){for(var a=T?t("."+e).eq(0):t('<div class="'+e+'"></div>'),n=0;m>n;n++)a.append("<em "+(0===n?" class="+i:"")+' title="'+(n+1)+'">'+(n+1)+"</em>");T||r.after(a)}(S,C),P&&function(){var e=_?t(k).eq(0):t('<div class="'+k.replace(".","")+'"></div>');e.html("<b>1</b>/"+m),_||r.after(e)}()):(a.showControl?d.add(u).show():d.add(u).hide(),u.addClass(b),d.addClass(x))}))},function(e){e.fn.jqueryzoom=function(t){var i={xzoom:200,yzoom:200,offset:10,position:"right",lens:1,preload:1};t&&e.extend(i,t);var a="";e(this).hover((function(){var t=e(this).offset().left,r=e(this).offset().top,n=e(this).find("img").get(0).offsetWidth,o=e(this).find("img").get(0).offsetHeight;a=e(this).find("img").attr("alt");var s=e(this).find("img").attr("jqimg");function l(e){this.x=e.pageX,this.y=e.pageY}e(this).find("img").attr("alt",""),0==e("div.zoomdiv").get().length&&(e(this).after("<div class='zoomdiv'><img class='bigimg' src='"+s+"'/></div>"),e(this).append("<div class='jqZoomPup'>&nbsp;</div>")),e("div.zoomdiv").width(i.xzoom),e("div.zoomdiv").height(i.yzoom),e("div.zoomdiv").show(),i.lens||e(this).css("cursor","crosshair"),e(document.body).mousemove((function(a){var s=new l(a),c=e(".bigimg").get(0).offsetWidth,d=e(".bigimg").get(0).offsetHeight,u="x",p="y";if(isNaN(p)|isNaN(u)){p=c/n,u=d/o;e("div.jqZoomPup").width(i.xzoom/(1*p)),e("div.jqZoomPup").height(i.yzoom/(1*u)),i.lens&&e("div.jqZoomPup").css("visibility","visible")}var h=s.x-e("div.jqZoomPup").width()/2-t,f=s.y-e("div.jqZoomPup").height()/2-r;i.lens&&(h=s.x-e("div.jqZoomPup").width()/2<t?0:s.x+e("div.jqZoomPup").width()/2>n+t?n-e("div.jqZoomPup").width()-2:h,f=s.y-e("div.jqZoomPup").height()/2<r?0:s.y+e("div.jqZoomPup").height()/2>o+r?o-e("div.jqZoomPup").height()-2:f),i.lens&&e("div.jqZoomPup").css({top:f,left:h}),e("div.zoomdiv").get(0).scrollTop=f*u,e("div.zoomdiv").get(0).scrollLeft=h*p}))}),(function(){e(this).children("img").attr("alt",a),e(document.body).unbind("mousemove"),i.lens&&e("div.jqZoomPup").remove(),e("div.zoomdiv").remove()}));i.preload&&(e("body").append("<div style='display:none;' class='jqPreload0'></div>"),e(this).each((function(){var t=e(this).children("img").attr("jqimg"),i=jQuery("div.jqPreload0").html();jQuery("div.jqPreload0").html(i+'<img src="'+t+'">')})))}}(jQuery),jQuery((function(e){var t=/(iPhone|Android)/i.test(navigator.userAgent.toLowerCase()),i=e("#preview");function a(){e(".woocommerce").on("woocommerce_gallery_reset_slide_position",".product .images",(function(a,r){t?i.trigger("slideTo",[0]):e(this).find(".pg-items li:eq(0)").trigger("mouseover")})),e(".variations_form").on("change",".hidden-tag",(function(){var t=e(this).closest(".variations_form"),a=t.data("product_variations"),r={};if(t.find(".variations select").each((function(){var t=e(this).data("attribute_name")||e(this).attr("name"),i=e(this).val()||"";r[t]=i})),r&&a)for(var n=0;n<a.length;n++)if(a[n].attributes){var o=1;for(var s in r)""!==a[n].attributes[s]&&a[n].attributes[s]!=r[s]&&(o=0);if(o){if(a[n].image&&a[n].image.src){var l=e(".pg-items"),c=i.find(".swiper-wrapper");if(l.length){var d=l.find("li:first-child img");d.attr("src",a[n].image.thumb_src).data("url",a[n].image.src),d.hasClass("active")&&d.trigger("mouseover")}else if(c.length){var u=c.find("li:first-child");u.find("a").attr("href",a[n].image.src).find("img").attr("src",a[n].image.src),u.find(".js-smartphoto").trigger("update",[{group:"swiper",src:a[n].image.src,index:0}])}else e("#pg-img img").attr({src:a[n].image.src,jqimg:a[n].image.src})}break}}}))}t?function(){var t=e("#pg-list");t.hide();var r=[];if(t.find(".pg-items li").each((function(){var t=e(this).find("img").data("url");t&&r.push(t)})),r.length){var n=i.find("#j-product-video"),o="";n.length&&(o+=e(".product-video-play").prop("outerHTML"),o+=n.prop("outerHTML")),o+='<ul class="swiper-wrapper">',r.map((function(e){o+='<li class="swiper-slide"><a class="js-smartphoto" href="'+e+'" data-group="swiper"><img src="'+e+'" alt="image"></a></li>'})),o+='</ul><div class="swiper-nav"><span>1</span>/'+r.length+"</div>",i.html(o).addClass("swiper-container"),e("body").trigger("swiper",{el:"#preview",args:{simulateTouch:!0,loop:!1,autoplay:!1,_callback:function(t){i.on("slideTo",(function(i,a){t.slideTo(a),e(".swiper-nav span").text(a+1)}))},on:{init:function(t){jQuery(t.el).find(".j-lazy").lazyload({webp:void 0!==_wpcom_js.webp&&_wpcom_js.webp?_wpcom_js.webp:null}),setTimeout((function(){jQuery(window).trigger("scroll"),e(document).trigger("smartphoto",[i.find(".js-smartphoto")]).on("wx.ready",(function(){i.find(".swiper-slide").map((function(t,i){var a=e(i);a.html(a.html())})),i.on("click",".js-smartphoto",(function(t){t.preventDefault();var a=[];i.find(".js-smartphoto").map((function(t,i){a.push(e(i).attr("href"))})),wx.previewImage({current:e(this).attr("href"),urls:a})}))}))}),300)},slideChangeTransitionEnd:function(t){setTimeout((function(){e(".swiper-nav span").text(t.realIndex+1)}),100)}}}}),a()}}():function(){var t=e("#pg-list li"),i=e("#pg-img img");if(t.mouseover((function(){var a=e(this),r=a.find("img");t.find("img").removeClass("active"),r.addClass("active"),i.eq(0).attr({src:r.data("url"),jqimg:r.data("url")}),a.trigger("product_image_hover")})),a(),i.length){var r=new Image,n=i.data("original");r.src=n||i.attr("src"),r.onload=function(){e(".jqzoom").jqueryzoom({xzoom:450,yzoom:r.height/r.width*450,offset:10,position:"left",preload:1,lens:1});var t=e(".pg-items"),i=t.find("li")?Math.round(t.outerWidth()/t.find("li").outerWidth()):4;t.imgScroll({visible:i||4,showControl:!0,step:1,loop:!1,height:"auto",prev:"#pg-forward",next:"#pg-backward"}),t.find("li:first-child img").addClass("active")}}}()}));var g,w;
/*!
	 * Lazy Load - JavaScript plugin for lazy loading images
	 *
	 * Copyright (c) 2007-2019 Mika Tuupola
	 *
	 * Licensed under the MIT license:
	 *   http://www.opensource.org/licenses/mit-license.php
	 *
	 * Project home:
	 *   https://appelsiini.net/projects/lazyload
	 *
	 * Version: 2.0.0-rc.2
	 *
	 */g={exports:{}},w=void 0!==i?i:window||i.global,g.exports=function(e){function t(){try{var e=navigator.userAgent.match(/Firefox\/([0-9]+)\./),t=navigator.userAgent.match(/Chrome\/([0-9]+)\./);return e&&e[1]>=65||t&&t[1]>=32||0===document.createElement("canvas").toDataURL("image/webp").indexOf("data:image/webp")}catch(e){return!1}}var i=t();function a(e,t){return e&&e.split("?").length>1?e.match(/([&?]+)x-oss-process=/i)?e=e.replace(/([&?]+)x-oss-process=/i,"$1x-oss-process=image/format,webp,"):e.match(/([&?]+)imageMogr2/i)?e=e.replace(/([&?]+)imageMogr2\//i,"$1imageMogr2/format/webp/"):e+=t.replace("?","&"):e&&(e+=t),e}var r={src:"data-src",srcset:"data-srcset",selector:".j-lazy",root:null,rootMargin:"150px",threshold:0},n=function e(){var t={},i=!1,a=0,r=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(i=arguments[0],a++);for(var n=function(a){for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i&&"[object Object]"===Object.prototype.toString.call(a[r])?t[r]=e(!0,t[r],a[r]):t[r]=a[r])};a<r;a++)n(arguments[a]);return t};function o(e,t){this.settings=n(r,t||{}),this.images=e||document.querySelectorAll(this.settings.selector),this.observer=null,this.init()}if(o.prototype={init:function(){if(e.IntersectionObserver){var t=this,r={root:this.settings.root,rootMargin:this.settings.rootMargin,threshold:this.settings.threshold};this.observer=new IntersectionObserver((function(e){Array.prototype.forEach.call(e,(function(e){if(e.isIntersecting){t.observer.unobserve(e.target);var r=e.target.getAttribute(t.settings.src),n=e.target.getAttribute(t.settings.srcset);r&&i&&t.settings.webp&&(r=a(r,t.settings.webp)),n&&i&&t.settings.webp&&(n=a(n,t.settings.webp));var o=jQuery(e.target);"img"===e.target.tagName.toLowerCase()?(r&&(e.target.src=r),n&&(e.target.srcset=n),e.target.onerror=function(e){o.trigger("lazy_loaded")}):e.target.style.backgroundImage="url("+r+")",o.one("load",(function(){o.trigger("lazy_loaded")}))}}))}),r),Array.prototype.forEach.call(this.images,(function(e){t.observer.observe(e)}))}else this.loadImages()},loadAndDestroy:function(){this.settings&&(this.loadImages(),this.destroy())},loadImages:function(){if(this.settings){var e=this;Array.prototype.forEach.call(this.images,(function(t){var i=t.getAttribute(e.settings.src),a=t.getAttribute(e.settings.srcset);"img"===t.tagName.toLowerCase()?(i&&(t.src=i),a&&(t.srcset=a)):t.style.backgroundImage="url('"+i+"')"}))}},destroy:function(){this.settings&&(this.observer.disconnect(),this.settings=null)}},e.jQuery){var s=e.jQuery;s.fn.lazyload=function(e){(e=e||{}).attribute=e.attribute||"data-original",e.src=e.attribute||"data-original";var t=s.makeArray(this),i="";if(t&&t.length){var a=jQuery(t[0]);a.is("img")?i=a.attr("src"):(i=window.getComputedStyle(t[0]).getPropertyValue("background-image"))&&(i=i.slice(4,-1).replace(/['"]/g,""))}var r=document.createElement("img");return r.src=i,r.onload=function(){new o(t,e)},r.onerror=function(){new o(t,e)},this}}return o}(w);var y={exports:{}},b={exports:{}};Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError("this is null or not defined");var t=Object(this),i=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var a=arguments[1],r=0;r<i;){var n=t[r];if(e.call(a,n,r,t))return n;r++}}});var x;var E="http://www.w3.org/1999/xhtml",S="undefined"==typeof document?void 0:document,T=!!S&&"content"in S.createElement("template"),C=!!S&&S.createRange&&"createContextualFragment"in S.createRange();function P(e){return e=e.trim(),T?function(e){var t=S.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(e):C?function(e){return x||(x=S.createRange()).selectNode(S.body),x.createContextualFragment(e).childNodes[0]}(e):function(e){var t=S.createElement("body");return t.innerHTML=e,t.childNodes[0]}(e)}function k(e,t){var i,a,r=e.nodeName,n=t.nodeName;return r===n||(i=r.charCodeAt(0),a=n.charCodeAt(0),i<=90&&a>=97?r===n.toUpperCase():a<=90&&i>=97&&n===r.toUpperCase())}function _(e,t,i){e[i]!==t[i]&&(e[i]=t[i],e[i]?e.setAttribute(i,""):e.removeAttribute(i))}var I={OPTION:function(e,t){var i=e.parentNode;if(i){var a=i.nodeName.toUpperCase();"OPTGROUP"===a&&(a=(i=i.parentNode)&&i.nodeName.toUpperCase()),"SELECT"!==a||i.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),i.selectedIndex=-1)}_(e,t,"selected")},INPUT:function(e,t){_(e,t,"checked"),_(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var i=t.value;e.value!==i&&(e.value=i);var a=e.firstChild;if(a){var r=a.nodeValue;if(r==i||!i&&r==e.placeholder)return;a.nodeValue=i}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var i,a,r=-1,n=0,o=e.firstChild;o;)if("OPTGROUP"===(a=o.nodeName&&o.nodeName.toUpperCase()))o=(i=o).firstChild;else{if("OPTION"===a){if(o.hasAttribute("selected")){r=n;break}n++}!(o=o.nextSibling)&&i&&(o=i.nextSibling,i=null)}e.selectedIndex=r}}};function M(){}function L(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var A=function(e){return function(t,i,a){if(a||(a={}),"string"==typeof i)if("#document"===t.nodeName||"HTML"===t.nodeName||"BODY"===t.nodeName){var r=i;(i=S.createElement("html")).innerHTML=r}else i=P(i);else 11===i.nodeType&&(i=i.firstElementChild);var n=a.getNodeKey||L,o=a.onBeforeNodeAdded||M,s=a.onNodeAdded||M,l=a.onBeforeElUpdated||M,c=a.onElUpdated||M,d=a.onBeforeNodeDiscarded||M,u=a.onNodeDiscarded||M,p=a.onBeforeElChildrenUpdated||M,h=a.skipFromChildren||M,f=a.addChild||function(e,t){return e.appendChild(t)},m=!0===a.childrenOnly,v=Object.create(null),g=[];function w(e){g.push(e)}function y(e,t){if(1===e.nodeType)for(var i=e.firstChild;i;){var a=void 0;t&&(a=n(i))?w(a):(u(i),i.firstChild&&y(i,t)),i=i.nextSibling}}function b(e,t,i){!1!==d(e)&&(t&&t.removeChild(e),u(e),y(e,i))}function x(e){s(e);for(var t=e.firstChild;t;){var i=t.nextSibling,a=n(t);if(a){var r=v[a];r&&k(t,r)?(t.parentNode.replaceChild(r,t),T(r,t)):x(t)}else x(t);t=i}}function T(t,i,a){var r=n(i);if(r&&delete v[r],!a){if(!1===l(t,i))return;if(e(t,i),c(t),!1===p(t,i))return}"TEXTAREA"!==t.nodeName?function(e,t){var i,a,r,s,l,c=h(e,t),d=t.firstChild,u=e.firstChild;e:for(;d;){for(s=d.nextSibling,i=n(d);!c&&u;){if(r=u.nextSibling,d.isSameNode&&d.isSameNode(u)){d=s,u=r;continue e}a=n(u);var p=u.nodeType,m=void 0;if(p===d.nodeType&&(1===p?(i?i!==a&&((l=v[i])?r===l?m=!1:(e.insertBefore(l,u),a?w(a):b(u,e,!0),a=n(u=l)):m=!1):a&&(m=!1),(m=!1!==m&&k(u,d))&&T(u,d)):3!==p&&8!=p||(m=!0,u.nodeValue!==d.nodeValue&&(u.nodeValue=d.nodeValue))),m){d=s,u=r;continue e}a?w(a):b(u,e,!0),u=r}if(i&&(l=v[i])&&k(l,d))c||f(e,l),T(l,d);else{var g=o(d);!1!==g&&(g&&(d=g),d.actualize&&(d=d.actualize(e.ownerDocument||S)),f(e,d),x(d))}d=s,u=r}!function(e,t,i){for(;t;){var a=t.nextSibling;(i=n(t))?w(i):b(t,e,!0),t=a}}(e,u,a);var y=I[e.nodeName];y&&y(e,t)}(t,i):I.TEXTAREA(t,i)}!function e(t){if(1===t.nodeType||11===t.nodeType)for(var i=t.firstChild;i;){var a=n(i);a&&(v[a]=i),e(i),i=i.nextSibling}}(t);var C,_,A=t,O=A.nodeType,N=i.nodeType;if(!m)if(1===O)1===N?k(t,i)||(u(t),A=function(e,t){for(var i=e.firstChild;i;){var a=i.nextSibling;t.appendChild(i),i=a}return t}(t,(C=i.nodeName,(_=i.namespaceURI)&&_!==E?S.createElementNS(_,C):S.createElement(C)))):A=i;else if(3===O||8===O){if(N===O)return A.nodeValue!==i.nodeValue&&(A.nodeValue=i.nodeValue),A;A=i}if(A===i)u(t);else{if(i.isSameNode&&i.isSameNode(A))return;if(T(A,i,m),g)for(var D=0,j=g.length;D<j;D++){var B=v[g[D]];B&&b(B,B.parentNode,!1)}}return!m&&A!==t&&t.parentNode&&(A.actualize&&(A=A.actualize(t.ownerDocument||S)),t.parentNode.replaceChild(A,t)),A}}((function(e,t){var i,a,r,n,o=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var s=o.length-1;s>=0;s--)a=(i=o[s]).name,r=i.namespaceURI,n=i.value,r?(a=i.localName||a,e.getAttributeNS(r,a)!==n&&("xmlns"===i.prefix&&(a=i.name),e.setAttributeNS(r,a,n))):e.getAttribute(a)!==n&&e.setAttribute(a,n);for(var l=e.attributes,c=l.length-1;c>=0;c--)a=(i=l[c]).name,(r=i.namespaceURI)?(a=i.localName||a,t.hasAttributeNS(r,a)||e.removeAttributeNS(r,a)):t.hasAttribute(a)||e.removeAttribute(a)}})),O=r(Object.freeze({__proto__:null,default:A})),N={};Object.defineProperty(N,"__esModule",{value:!0});var D=N.matches=function(e,t){for(var i=(e.document||e.ownerDocument).querySelectorAll(t),a=i.length;--a>=0&&i.item(a)!==e;);return a>-1};N.selector=function(e){return document.querySelector(e)};var j=N.findAncestor=function(e,t){if("function"==typeof e.closest)return e.closest(t)||null;for(;e&&e!==document;){if(D(e,t))return e;e=e.parentElement}return null},B=[];N.on=function(e,t,i,a){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];i.split(" ").forEach((function(i){var n=function(e){var i=j(e.target,t);i&&(e.delegateTarget=i,a(e))};B.push({listener:n,element:e,query:t,event:i,capture:r}),e.addEventListener(i,n,r)}))},N.off=function(e,t,i){i.split(" ").forEach((function(i){B.forEach((function(a,r){a.element===e&&a.query===t&&a.event===i&&(e.removeEventListener(i,a.listener,a.capture),B.splice(r,1))}))}))},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,i,a){return i&&e(t.prototype,i),a&&e(t,a),t}}(),r=(i=O)&&i.__esModule?i:{default:i},n=N;function o(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var s="input paste copy click change keydown keyup keypress contextmenu mouseup mousedown mousemove touchstart touchend touchmove compositionstart compositionend focus",l="input change click",c=s.replace(/([a-z]+)/g,"[data-action-$1],")+"[data-action]",d=function(){function e(t){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.atemplate=[],this.events=[],t&&Object.keys(t).forEach((function(e){i[e]=t[e]})),this.data||(this.data={}),this.templates||(this.templates=[]);for(var a=0,r=this.templates.length;a<r;a+=1){var o=this.templates[a],s=(0,n.selector)("#"+o).innerHTML;this.atemplate.push({id:o,html:s,binded:!1})}}return a(e,[{key:"addDataBind",value:function(e){var t=this;(0,n.on)(e,"[data-bind]",l,(function(e){var i,a,r=e.delegateTarget,n=r.getAttribute("data-bind"),o=r.getAttribute("href"),s=r.value;o&&(s=s.replace("#","")),"checkbox"===r.getAttribute("type")?(i=[],a=document.querySelectorAll('[data-bind="'+n+'"]'),[].forEach.call(a,(function(e){e.checked&&i.push(e.value)}))):"radio"!==r.getAttribute("type")&&t.updateDataByString(n,s)})),this.events.push({element:e,selector:"[data-bind]",event:l})}},{key:"addActionBind",value:function(e){var t=this;(0,n.on)(e,c,s,(function(e){var i=e.delegateTarget,a=s.split(" "),r="action";a.forEach((function(t){i.getAttribute("data-action-"+t)&&e.type===t&&(r+="-"+t)}));var n=i.getAttribute("data-"+r);if(n){var l,c=n.replace(/\(.*?\);?/,""),d=n.replace(/(.*?)\((.*?)\);?/,"$2").split(",");if(t.e=e,t.method&&t.method[c])(l=t.method)[c].apply(l,o(d));else t[c]&&t[c].apply(t,o(d))}})),this.events.push({element:e,selector:c,event:l})}},{key:"removeTemplateEvents",value:function(){this.events.forEach((function(e){(0,n.off)(e.element,e.selector,e.event)}))}},{key:"addTemplate",value:function(e,t){this.atemplate.push({id:e,html:t,binded:!1}),this.templates.push(e)}},{key:"getData",value:function(){return JSON.parse(JSON.stringify(this.data))}},{key:"saveData",value:function(e){var t=JSON.stringify(this.data);localStorage.setItem(e,t)}},{key:"setData",value:function(e){var t=this;Object.keys(e).forEach((function(i){"function"!=typeof e[i]&&(t.data[i]=e[i])}))}},{key:"loadData",value:function(e){var t=JSON.parse(localStorage.getItem(e));t&&this.setData(t)}},{key:"getRand",value:function(e,t){return~~(Math.random()*(t-e+1))+e}},{key:"getRandText",value:function(e){for(var t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=0;a<e;a+=1)t+=i.charAt(Math.floor(this.getRand(0,62)));return t}},{key:"getDataFromObj",value:function(e,t){for(var i=(e=(e=e.replace(/\[([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)\]/g,".$1")).replace(/^\./,"")).split(".");i.length;){var a=i.shift();if(!(a in t))return null;t=t[a]}return t}},{key:"getDataByString",value:function(e){var t=this.data;return this.getDataFromObj(e,t)}},{key:"updateDataByString",value:function(e,t){for(var i=this.data,a=e.split(".");a.length>1;)i=i[a.shift()];i[a.shift()]=t}},{key:"removeDataByString",value:function(e){for(var t=this.data,i=e.split(".");i.length>1;)t=t[i.shift()];var a=i.shift();a.match(/^\d+$/)?t.splice(Number(a),1):delete t[a]}},{key:"resolveBlock",value:function(e,t,i){var a=this,r=e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):touch#([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+) -->/g),n=e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):touchnot#([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+) -->/g),o=e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):exist -->/g),s=e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):empty -->/g);if(r)for(var l=0,c=r.length;l<c;l+=1){var d=r[l],u=(d=d.replace(/([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):touch#([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)/,"($1):touch#($2)")).replace(/BEGIN/,"END"),p=new RegExp(d+"(([\\n\\r\\t]|.)*?)"+u,"g");e=e.replace(p,(function(e,i,r,n){return""+("function"==typeof t[i]?t[i].apply(a):a.getDataFromObj(i,t))===r?n:""}))}if(n)for(var h=0,f=n.length;h<f;h+=1){var m=n[h],v=(m=m.replace(/([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):touchnot#([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)/,"($1):touchnot#($2)")).replace(/BEGIN/,"END"),g=new RegExp(m+"(([\\n\\r\\t]|.)*?)"+v,"g");e=e.replace(g,(function(e,i,r,n){return""+("function"==typeof t[i]?t[i].apply(a):a.getDataFromObj(i,t))!==r?n:""}))}if(o)for(var w=0,y=o.length;w<y;w+=1){var b=o[w],x=(b=b.replace(/([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):exist/,"($1):exist")).replace(/BEGIN/,"END"),E=new RegExp(b+"(([\\n\\r\\t]|.)*?)"+x,"g");e=e.replace(E,(function(e,i,r){var n="function"==typeof t[i]?t[i].apply(a):a.getDataFromObj(i,t);return n||0===n?r:""}))}if(s)for(var S=0,T=s.length;S<T;S+=1){var C=s[S],P=(C=C.replace(/([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):empty/,"($1):empty")).replace(/BEGIN/,"END"),k=new RegExp(C+"(([\\n\\r\\t]|.)*?)"+P,"g");e=e.replace(k,(function(e,i,r){var n="function"==typeof t[i]?t[i].apply(a):a.getDataFromObj(i,t);return n||0===n?"":r}))}return e=e.replace(/{([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)}(\[([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+)\])*/g,(function(e,r,n,o){var s=void 0;if(""+r=="i")s=i;else{if(!t[r]&&0!==t[r])return o&&a.convert&&a.convert[o]?a.convert[o].call(a,""):"";s="function"==typeof t[r]?t[r].apply(a):t[r]}return o&&a.convert&&a.convert[o]?a.convert[o].call(a,s):s}))}},{key:"resolveAbsBlock",value:function(e){var t=this;return e=e.replace(/{(.*?)}/g,(function(e,i){var a=t.getDataByString(i);return void 0!==a?"function"==typeof a?a.apply(t):a:e}))}},{key:"resolveInclude",value:function(e){return e=e.replace(/<!-- #include id="(.*?)" -->/g,(function(e,t){return(0,n.selector)("#"+t).innerHTML}))}},{key:"resolveWith",value:function(e){return e=e.replace(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):with -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+):with -->/g,(function(e,t){return e=e.replace(/data\-bind=['"](.*?)['"]/g,"data-bind='"+t+".$1'")}))}},{key:"resolveLoop",value:function(e){var t=this;return e=e.replace(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+?):loop -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+?):loop -->/g,(function(e,i,a){var r=t.getDataByString(i),n=[],o="";if((n="function"==typeof r?r.apply(t):r)instanceof Array)for(var s=0,l=n.length;s<l;s+=1)o+=t.resolveBlock(a,n[s],s);return o=o.replace(/\\([^\\])/g,"$1")}))}},{key:"removeData",value:function(e){var t=this.data;return Object.keys(t).forEach((function(i){for(var a=0,r=e.length;a<r;a+=1)i===e[a]&&delete t[i]})),this}},{key:"hasLoop",value:function(e){return!!e.match(/<!-- BEGIN ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+?):loop -->(([\n\r\t]|.)*?)<!-- END ([\w\-\.\u3041-\u3093\u30a1-\u30f6\u4e9c-\u7199]+?):loop -->/g)}},{key:"getHtml",value:function(e,t){var i=this.atemplate.find((function(t){return t.id===e})),a="";if(i&&i.html&&(a=i.html),t&&(a=e),!a)return"";var r=this.data;for(a=this.resolveInclude(a),a=this.resolveWith(a);this.hasLoop(a);)a=this.resolveLoop(a);return a=(a=this.resolveBlock(a,r)).replace(/\\([^\\])/g,"$1"),(a=this.resolveAbsBlock(a)).replace(/^([\t ])*\n/gm,"")}},{key:"update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"html",i=arguments[1],a=this.templates;this.beforeUpdated&&this.beforeUpdated();for(var o=function(o,s){var l=a[o],c="#"+l,d=e.getHtml(l),u=(0,n.selector)("[data-id='"+l+"']");if(u)if("text"===t)u.innerText=d;else if(i){var p=document.createElement("div");p.innerHTML=d;var h=p.querySelector(i).outerHTML;(0,r.default)(u.querySelector(i),h)}else(0,r.default)(u,"<div data-id='"+l+"'>"+d+"</div>");else(0,n.selector)(c).insertAdjacentHTML("afterend",'<div data-id="'+l+'"></div>'),"text"===t?(0,n.selector)("[data-id='"+l+"']").innerText=d:(0,n.selector)("[data-id='"+l+"']").innerHTML=d;var f=e.atemplate.find((function(e){return e.id===l}));f.binded||(f.binded=!0,e.addDataBind((0,n.selector)("[data-id='"+l+"']")),e.addActionBind((0,n.selector)("[data-id='"+l+"']")))},s=0,l=a.length;s<l;s+=1)o(s);return this.updateBindingData(i),this.onUpdated&&this.onUpdated(i),this}},{key:"updateBindingData",value:function(e){for(var t=this,i=this.templates,a=0,r=i.length;a<r;a+=1){var o=i[a],s=(0,n.selector)("[data-id='"+o+"']");e&&(s=s.querySelector(e));var l=s.querySelectorAll("[data-bind]");[].forEach.call(l,(function(e){var i=t.getDataByString(e.getAttribute("data-bind"));"checkbox"===e.getAttribute("type")||"radio"===e.getAttribute("type")?i===e.value&&(e.checked=!0):e.value=i}));var c=s.querySelectorAll("[data-bind-oneway]");[].forEach.call(c,(function(e){var i=t.getDataByString(e.getAttribute("data-bind-oneway"));"checkbox"===e.getAttribute("type")||"radio"===e.getAttribute("type")?i===e.value&&(e.checked=!0):e.value=i}))}return this}},{key:"applyMethod",value:function(e){for(var t,i=arguments.length,a=Array(i>1?i-1:0),r=1;r<i;r++)a[r-1]=arguments[r];return(t=this.method)[e].apply(t,a)}},{key:"getComputedProp",value:function(e){return this.data[e].apply(this)}},{key:"remove",value:function(e){for(var t=this.data,i=e.split(".");i.length>1;)t=t[i.shift()];var a=i.shift();return a.match(/^\d+$/)?t.splice(Number(a),1):delete t[a],this}}]),e}();t.default=d,e.exports=t.default}(b,b.exports);var z=b.exports;try{var G=new window.CustomEvent("test");if(G.preventDefault(),!0!==G.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var R=function(e,t){var i,a;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(i=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a=i.preventDefault,i.preventDefault=function(){a.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},i};R.prototype=window.Event.prototype,window.CustomEvent=R}var q={};function H(e){return H="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(e){return c(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)},H(e)}Object.defineProperty(q,"__esModule",{value:!0}),q.isOldIE=q.getBrowser=q.removeClass=q.addClass=q.append=q.removeElement=q.getViewPos=q.parseQuery=q.triggerEvent=q.extend=q.isSmartPhone=void 0;q.isSmartPhone=function(){var e=navigator.userAgent;return e.indexOf("iPhone")>0||e.indexOf("iPad")>0||e.indexOf("ipod")>0||e.indexOf("Android")>0};var $=function e(t){t=t||{};for(var i=1;i<arguments.length;i++){var a=arguments[i];if(a)for(var r in a)a.hasOwnProperty(r)&&("object"===H(a[r])?t[r]=e(t[r],a[r]):t[r]=a[r])}return t};q.extend=$;q.triggerEvent=function(e,t,i){var a;window.CustomEvent?a=new CustomEvent(t,{cancelable:!0}):(a=document.createEvent("CustomEvent")).initCustomEvent(t,!1,!1,i),e.dispatchEvent(a)};q.parseQuery=function(e){for(var t,i,a,r=e.split("&"),n={},o=0,s=r.length;o<s;o++)void 0!==(t=r[o].split("="))[0]&&(i=t[0],a=void 0!==t[1]?t.slice(1).join("="):i,n[i]=decodeURIComponent(a));return n};q.getViewPos=function(e){return{left:e.getBoundingClientRect().left,top:e.getBoundingClientRect().top}};q.removeElement=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)};q.append=function(e,t){var i=document.createElement("div");for(i.innerHTML=t;i.children.length>0;)e.appendChild(i.children[0])};q.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" ".concat(t)};q.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")};var F=function(){var e=window.navigator.userAgent.toLowerCase(),t=window.navigator.appVersion.toLowerCase(),i="unknown";return-1!=e.indexOf("msie")?i=-1!=t.indexOf("msie 6.")?"ie6":-1!=t.indexOf("msie 7.")?"ie7":-1!=t.indexOf("msie 8.")?"ie8":-1!=t.indexOf("msie 9.")?"ie9":-1!=t.indexOf("msie 10.")?"ie10":"ie":-1!=e.indexOf("trident/7")?i="ie11":-1!=e.indexOf("chrome")?i="chrome":-1!=e.indexOf("safari")?i="safari":-1!=e.indexOf("opera")?i="opera":-1!=e.indexOf("firefox")&&(i="firefox"),i};q.getBrowser=F;q.isOldIE=function(){var e=F();return-1!==e.indexOf("ie")&&parseInt(e.replace(/[^0-9]/g,""))<=10};var U,W={};U=W,function(e){var t=e.Promise,i=t&&"resolve"in t&&"reject"in t&&"all"in t&&"race"in t&&function(){var e;return new t((function(t){e=t})),"function"==typeof e}();U?(U.Promise=i?t:S,U.Polyfill=S):i||(e.Promise=S);var a="pending",r="sealed",n="fulfilled",o="rejected",s=function(){};function l(e){return"[object Array]"===Object.prototype.toString.call(e)}var d,u="undefined"!=typeof setImmediate?setImmediate:setTimeout,p=[];function h(){for(var e=0;e<p.length;e++)p[e][0](p[e][1]);p=[],d=!1}function f(e,t){p.push([e,t]),d||(d=!0,u(h,0))}function m(e){var t=e.owner,i=t.state_,a=t.data_,r=e[i],s=e.then;if("function"==typeof r){i=n;try{a=r(a)}catch(e){y(s,e)}}v(s,a)||(i===n&&g(s,a),i===o&&y(s,a))}function v(e,t){var i;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===c(t))){var a=t.then;if("function"==typeof a)return a.call(t,(function(a){i||(i=!0,t!==a?g(e,a):w(e,a))}),(function(t){i||(i=!0,y(e,t))})),!0}}catch(t){return i||y(e,t),!0}return!1}function g(e,t){e!==t&&v(e,t)||w(e,t)}function w(e,t){e.state_===a&&(e.state_=r,e.data_=t,f(x,e))}function y(e,t){e.state_===a&&(e.state_=r,e.data_=t,f(E,e))}function b(e){var t=e.then_;e.then_=void 0;for(var i=0;i<t.length;i++)m(t[i])}function x(e){e.state_=n,b(e)}function E(e){e.state_=o,b(e)}function S(e){if("function"!=typeof e)throw new TypeError("Promise constructor takes a function argument");if(this instanceof S==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[],function(e,t){function i(e){y(t,e)}try{e((function(e){g(t,e)}),i)}catch(e){i(e)}}(e,this)}S.prototype={constructor:S,state_:a,then_:null,data_:void 0,then:function(e,t){var i={owner:this,then:new this.constructor(s),fulfilled:e,rejected:t};return this.state_===n||this.state_===o?f(m,i):this.then_.push(i),i.then},catch:function(e){return this.then(null,e)}},S.all=function(e){if(!l(e))throw new TypeError("You must pass an array to Promise.all().");return new this((function(t,i){var a=[],r=0;function n(e){return r++,function(i){a[e]=i,--r||t(a)}}for(var o,s=0;s<e.length;s++)(o=e[s])&&"function"==typeof o.then?o.then(n(s),i):a[s]=o;r||t(a)}))},S.race=function(e){if(!l(e))throw new TypeError("You must pass an array to Promise.race().");return new this((function(t,i){for(var a,r=0;r<e.length;r++)(a=e[r])&&"function"==typeof a.then?a.then(t,i):t(a)}))},S.resolve=function(e){return e&&"object"===c(e)&&e.constructor===this?e:new this((function(t){t(e)}))},S.reject=function(e){return new this((function(t,i){i(e)}))}}("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:i),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,a=(i=z)&&i.__esModule?i:{default:i};function r(e){return r="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(e){return c(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":c(e)},r(e)}function n(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function o(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}var d=q,u=W.Promise,p={classNames:{smartPhoto:"smartphoto",smartPhotoClose:"smartphoto-close",smartPhotoBody:"smartphoto-body",smartPhotoInner:"smartphoto-inner",smartPhotoContent:"smartphoto-content",smartPhotoImg:"smartphoto-img",smartPhotoImgOnMove:"smartphoto-img-onmove",smartPhotoImgElasticMove:"smartphoto-img-elasticmove",smartPhotoImgWrap:"smartphoto-img-wrap",smartPhotoArrows:"smartphoto-arrows",smartPhotoNav:"smartphoto-nav",smartPhotoArrowRight:"smartphoto-arrow-right",smartPhotoArrowLeft:"smartphoto-arrow-left",smartPhotoArrowHideIcon:"smartphoto-arrow-hide",smartPhotoImgLeft:"smartphoto-img-left",smartPhotoImgRight:"smartphoto-img-right",smartPhotoList:"smartphoto-list",smartPhotoListOnMove:"smartphoto-list-onmove",smartPhotoHeader:"smartphoto-header",smartPhotoCount:"smartphoto-count",smartPhotoCaption:"smartphoto-caption",smartPhotoDismiss:"smartphoto-dismiss",smartPhotoLoader:"smartphoto-loader",smartPhotoLoaderWrap:"smartphoto-loader-wrap",smartPhotoImgClone:"smartphoto-img-clone"},message:{gotoNextImage:"go to the next image",gotoPrevImage:"go to the previous image",closeDialog:"close the image dialog"},arrows:!0,nav:!0,showAnimation:!0,verticalGravity:!1,useOrientationApi:!1,useHistoryApi:!0,swipeTopToClose:!1,swipeBottomToClose:!0,swipeOffset:100,headerHeight:60,footerHeight:60,forceInterval:10,registance:.5,loadOffset:2,resizeStyle:"fit",lazyAttribute:"data-src"},h=function(e){function t(e,i){var a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=o(this,s(t).call(this))).data=d.extend({},p,i),a.data.currentIndex=0,a.data.oldIndex=0,a.data.hide=!0,a.data.group={},a.data.scaleSize=1,a.data.scale=!1,a.pos={x:0,y:0},a.data.photoPosX=0,a.data.photoPosY=0,a.handlers=[],a.convert={increment:a.increment,virtualPos:a.virtualPos,round:a.round},a.data.groupItems=a.groupItems,a.elements="string"==typeof e?document.querySelectorAll(e):e;var r=new Date;a.tapSecond=r.getTime(),a.onListMove=!1,a.clicked=!1,a.id=a._getUniqId(),a.vx=0,a.vy=0,a.data.appearEffect=null,a.addTemplate(a.id,'<div class="\\{classNames.smartPhoto\\}"\x3c!-- BEGIN hide:exist --\x3e aria-hidden="true"\x3c!-- END hide:exist --\x3e\x3c!-- BEGIN hide:empty --\x3e aria-hidden="false"\x3c!-- END hide:empty --\x3e role="dialog">\n\t<div class="\\{classNames.smartPhotoBody\\}">\n\t\t<div class="\\{classNames.smartPhotoInner\\}">\n\t\t\t   <div class="\\{classNames.smartPhotoHeader\\}">\n\t\t\t\t\t<span class="\\{classNames.smartPhotoCount\\}">{currentIndex}[increment]/{total}</span>\n\t\t\t\t\t<span class="\\{classNames.smartPhotoCaption\\}" aria-live="polite" tabindex="-1">\x3c!-- BEGIN groupItems:loop --\x3e\x3c!-- \\BEGIN currentIndex:touch#{index} --\x3e{caption}\x3c!-- \\END currentIndex:touch#{index} --\x3e\x3c!-- END groupItems:loop --\x3e</span>\n\t\t\t\t\t<button class="\\{classNames.smartPhotoDismiss\\}" data-action-click="hidePhoto()"><span class="smartphoto-sr-only">\\{message.closeDialog\\}</span></button>\n\t\t\t\t</div>\n\t\t\t\t<div class="\\{classNames.smartPhotoContent\\}"\x3c!-- BEGIN isSmartPhone:exist --\x3e data-action-touchstart="beforeDrag" data-action-touchmove="onDrag" data-action-touchend="afterDrag(false)"\x3c!-- END isSmartPhone:exist --\x3e\x3c!-- BEGIN isSmartPhone:empty --\x3e data-action-click="hidePhoto()"\x3c!-- END isSmartPhone:empty --\x3e>\n\t\t\t\t</div>\n\t\t\t\t<ul style="transform:translate({translateX}[round]px,{translateY}[round]px);" class="\\{classNames.smartPhotoList\\}\x3c!-- BEGIN onMoveClass:exist --\x3e \\{classNames.smartPhotoListOnMove\\}\x3c!-- END onMoveClass:exist --\x3e">\n\t\t\t\t\t\x3c!-- BEGIN groupItems:loop --\x3e\n\t\t\t\t\t<li style="transform:translate({translateX}[round]px,{translateY}[round]px);" class="\x3c!-- \\BEGIN currentIndex:touch#{index} --\x3ecurrent\x3c!-- \\END currentIndex:touch#{index} --\x3e">\n\t\t\t\t\t\t\x3c!-- BEGIN processed:exist --\x3e\n\t\t\t\t\t\t<div style="transform:translate({x}[round]px,{y}[round]px) scale({scale});" class="\\\\{classNames.smartPhotoImgWrap\\\\}"\x3c!-- \\BEGIN isSmartPhone:empty --\x3e data-action-mousemove="onDrag" data-action-mousedown="beforeDrag" data-action-mouseup="afterDrag"\x3c!-- \\END isSmartPhone:empty --\x3e\x3c!-- \\BEGIN isSmartPhone:exist --\x3e data-action-touchstart="beforeDrag" data-action-touchmove="onDrag" data-action-touchend="afterDrag"\x3c!-- \\END isSmartPhone:exist --\x3e>\n\t\t\t\t\t\t\t<img style="\x3c!-- \\BEGIN currentIndex:touch#{index} --\x3etransform:translate(\\{photoPosX\\}[virtualPos]px,\\{photoPosY\\}[virtualPos]px) scale(\\{scaleSize\\});\x3c!-- \\END currentIndex:touch#{index} --\x3ewidth:{width}px;" src="{src}" class="\\\\{classNames.smartPhotoImg\\\\}\x3c!-- \\BEGIN scale:exist --\x3e  \\\\{classNames.smartPhotoImgOnMove\\\\}\x3c!-- \\END scale:exist --\x3e\x3c!-- \\BEGIN elastic:exist --\x3e \\\\{classNames.smartPhotoImgElasticMove\\\\}\x3c!-- \\END elastic:exist --\x3e\x3c!-- \\BEGIN appear:exist --\x3e active\x3c!-- \\END appear:exist --\x3e" ondragstart="return false;">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END processed:exist --\x3e\n\t\t\t\t\t\t\x3c!-- BEGIN processed:empty --\x3e\n\t\t\t\t\t\t<div class="\\\\{classNames.smartPhotoLoaderWrap\\\\}">\n\t\t\t\t\t\t\t<span class="\\\\{classNames.smartPhotoLoader\\\\}"></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\x3c!-- END processed:empty --\x3e\n\t\t\t\t\t</li>\n\t\t\t\t\t\x3c!-- END groupItems:loop --\x3e\n\t\t\t\t</ul>\n\t\t\t\t\x3c!-- BEGIN arrows:exist --\x3e\n\t\t\t\t<ul class="\\{classNames.smartPhotoArrows\\}"\x3c!-- BEGIN hideUi:exist --\x3e aria-hidden="true"\x3c!-- END hideUi:exist --\x3e\x3c!-- BEGIN hideUi:exist --\x3e aria-hidden="false"\x3c!-- END hideUi:exist --\x3e>\n\t\t\t\t\t<li class="\\{classNames.smartPhotoArrowLeft\\}\x3c!-- BEGIN isSmartPhone:exist --\x3e \\{classNames.smartPhotoArrowHideIcon\\}\x3c!-- END isSmartPhone:exist --\x3e"\x3c!-- BEGIN showPrevArrow:empty --\x3e aria-hidden="true"\x3c!-- END showPrevArrow:empty --\x3e><a href="#" data-action-click="gotoSlide({prev})" role="button"><span class="smartphoto-sr-only">\\{message.gotoPrevImage\\}</span></a></li>\n\t\t\t\t\t<li class="\\{classNames.smartPhotoArrowRight\\}\x3c!-- BEGIN isSmartPhone:exist --\x3e \\{classNames.smartPhotoArrowHideIcon\\}\x3c!-- END isSmartPhone:exist --\x3e"\x3c!-- BEGIN showNextArrow:empty --\x3e aria-hidden="true"\x3c!-- END showNextArrow:empty --\x3e><a href="#" data-action-click="gotoSlide({next})" role="button"><span class="smartphoto-sr-only">\\{message.gotoNextImage\\}</span></a></li>\n\t\t\t\t</ul>\n\t\t\t\t\x3c!-- END arrows:exist --\x3e\n\t\t\t\t\x3c!-- BEGIN nav:exist --\x3e\n\t\t\t\t<nav class="\\{classNames.smartPhotoNav\\}"\x3c!-- BEGIN hideUi:exist --\x3e aria-hidden="true"\x3c!-- END hideUi:exist --\x3e\x3c!-- BEGIN hideUi:exist --\x3e aria-hidden="false"\x3c!-- END hideUi:exist --\x3e>\n\t\t\t\t\t<ul>\n\t\t\t\t\t\t\x3c!-- BEGIN groupItems:loop --\x3e\n\t\t\t\t\t\t<li><a href="#" data-action-click="gotoSlide({index})" class="\x3c!-- \\BEGIN currentIndex:touch#{index} --\x3ecurrent\x3c!-- \\END currentIndex:touch#{index} --\x3e" style="background-image:url(\'{thumb}\');" role="button"><span class="smartphoto-sr-only">go to {caption}</span></a></li>\n\t\t\t\t\t\t\x3c!-- END groupItems:loop --\x3e\n\t\t\t\t\t</ul>\n\t\t\t\t</nav>\n\t\t\t\t\x3c!-- END nav:exist --\x3e\n\t\t</div>\n\t\t\x3c!-- BEGIN appearEffect:exist --\x3e\n\t\t<img src=\\{appearEffect.img\\}\n\t\tclass="\\{classNames.smartPhotoImgClone\\}"\n\t\tstyle="width:\\{appearEffect.width\\}px;height:\\{appearEffect.height\\}px;transform:translate(\\{appearEffect.left\\}px,\\{appearEffect.top\\}px) scale(1)" />\n\t\t\x3c!-- END appearEffect:exist --\x3e\n\t</div>\n</div>\n'),a.data.isSmartPhone=a._isSmartPhone();var n=document.querySelector("body");d.append(n,"<div data-id='".concat(a.id,"'></div>")),[].forEach.call(a.elements,(function(e){a.addNewItem(e)})),a.update();var l=a._getCurrentItemByHash();if(l&&d.triggerEvent(l.element,"click"),a.interval=setInterval((function(){a._doAnim()}),a.data.forceInterval),!a.data.isSmartPhone){var c=function(){a.groupItems()&&(a._resetTranslate(),a._setPosByCurrentIndex(),a._setSizeByScreen(),a.update())},h=function(e){var t=e.keyCode||e.which;!0!==a.data.hide&&(37===t?a.gotoSlide(a.data.prev):39===t?a.gotoSlide(a.data.next):27===t&&a.hidePhoto())};return window.addEventListener("resize",c),window.addEventListener("keydown",h),a._registerRemoveEvent(window,"resize",c),a._registerRemoveEvent(window,"keydown",h),o(a)}var f=function(){if(a.groupItems()){a._resetTranslate(),a._setPosByCurrentIndex(),a._setHashByCurrentIndex(),a._setSizeByScreen(),a.update();var e=a._getWindowWidth();!function t(i){new u((function(e){setTimeout((function(){e()}),25)})).then((function(){e!==a._getWindowWidth()?(a._resetTranslate(),a._setPosByCurrentIndex(),a._setHashByCurrentIndex(),a._setSizeByScreen(),a.update()):i<=500&&t(i+25)}))}(0)}};if(window.addEventListener("orientationchange",f),a._registerRemoveEvent(window,"orientationchange",f),!a.data.useOrientationApi)return o(a);var m=function(e){var t=window.orientation;e&&e.gamma&&!a.data.appearEffect&&(a.isBeingZoomed||a.photoSwipable||a.data.elastic||!a.data.scale||(0===t?a._calcGravity(e.gamma,e.beta):90===t?a._calcGravity(e.beta,e.gamma):-90===t?a._calcGravity(-e.beta,-e.gamma):180===t&&a._calcGravity(-e.gamma,-e.beta)))};return window.addEventListener("deviceorientation",m),a._registerRemoveEvent(window,"deviceorientation",m),a}var i,a,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),i=t,a=[{key:"on",value:function(e,t){var i=this._getElementByClass(this.data.classNames.smartPhoto),a=function(e){t.call(i,e)};i.addEventListener(e,a),this._registerRemoveEvent(i,e,a)}},{key:"_registerRemoveEvent",value:function(e,t,i){this.handlers.push({target:e,event:t,handler:i})}},{key:"destroy",value:function(){this.handlers.forEach((function(e){e.target.removeEventListener(e.event,e.handler)}));var e=document.querySelector('[data-id="'.concat(this.id,'"]'));d.removeElement(e),clearInterval(this.interval),this.removeTemplateEvents()}},{key:"increment",value:function(e){return e+1}},{key:"round",value:function(e){return Math.round(e)}},{key:"virtualPos",value:function(e){return(e=parseInt(e,10))/this._getSelectedItem().scale/this.data.scaleSize}},{key:"groupItems",value:function(){return this.data.group[this.data.currentGroup]}},{key:"_resetTranslate",value:function(){var e=this;this.groupItems().forEach((function(t,i){t.translateX=e._getWindowWidth()*i}))}},{key:"addNewItem",value:function(e){var t=this,i=e.getAttribute("data-group")||"nogroup",a=this.data.group;"nogroup"===i&&e.setAttribute("data-group","nogroup"),a[i]||(a[i]=[]);var r=a[i].length,n=document.querySelector("body"),o=e.getAttribute("href"),s=e.querySelector("img"),l=o;s&&(l=s.getAttribute(this.data.lazyAttribute)?s.getAttribute(this.data.lazyAttribute):s.currentSrc?s.currentSrc:s.src);var c={src:o,thumb:l,caption:e.getAttribute("data-caption"),groupId:i,translateX:this._getWindowWidth()*r,index:r,translateY:0,width:50,height:50,id:e.getAttribute("data-id")||r,loaded:!1,processed:!1,element:e};a[i].push(c),this.data.currentGroup=i,e.getAttribute("data-id")||e.setAttribute("data-id",r),e.setAttribute("data-index",r);var d=function(i){i.preventDefault(),t.data.currentGroup=e.getAttribute("data-group"),t.data.currentIndex=parseInt(e.getAttribute("data-index"),10),t._setHashByCurrentIndex();var a=t._getSelectedItem();a.loaded?(t._initPhoto(),t.addAppearEffect(e,a),t.clicked=!0,t.update(),n.style.overflow="hidden",t._fireEvent("open")):t._loadItem(a).then((function(){t._initPhoto(),t.addAppearEffect(e,a),t.clicked=!0,t.update(),n.style.overflow="hidden",t._fireEvent("open")}))};e.addEventListener("click",d),this._registerRemoveEvent(e,"click",d)}},{key:"_initPhoto",value:function(){this.data.total=this.groupItems().length,this.data.hide=!1,this.data.photoPosX=0,this.data.photoPosY=0,this._setPosByCurrentIndex(),this._setSizeByScreen(),this.setArrow(),"fill"===this.data.resizeStyle&&this.data.isSmartPhone&&(this.data.scale=!0,this.data.hideUi=!0,this.data.scaleSize=this._getScaleBoarder())}},{key:"onUpdated",value:function(){var e=this;if(this.data.appearEffect&&this.data.appearEffect.once&&(this.data.appearEffect.once=!1,this.execEffect().then((function(){e.data.appearEffect=null,e.data.appear=!0,e.update()}))),this.clicked){this.clicked=!1;var t=this.data.classNames;this._getElementByClass(t.smartPhotoCaption).focus()}}},{key:"execEffect",value:function(){var e=this;return new u((function(t){d.isOldIE()&&t();var i=e.data,a=i.appearEffect,r=i.classNames,n=e._getElementByClass(r.smartPhotoImgClone);n.addEventListener("transitionend",(function e(){n.removeEventListener("transitionend",e,!0),t()}),!0),setTimeout((function(){n.style.transform="translate(".concat(a.afterX,"px, ").concat(a.afterY,"px) scale(").concat(a.scale,")")}),10)}))}},{key:"addAppearEffect",value:function(e,t){if(!1!==this.data.showAnimation){var i=e.querySelector("img"),a=d.getViewPos(i),r={},n=1;r.width=i.offsetWidth,r.height=i.offsetHeight,r.top=a.top,r.left=a.left,r.once=!0,i.getAttribute(this.data.lazyAttribute)?r.img=i.getAttribute(this.data.lazyAttribute):r.img=t.src;var o=this._getWindowWidth(),s=this._getWindowHeight(),l=s-this.data.headerHeight-this.data.footerHeight;"fill"===this.data.resizeStyle&&this.data.isSmartPhone?n=i.offsetWidth>i.offsetHeight?s/i.offsetHeight:o/i.offsetWidth:(r.width>=r.height?n=t.height<l?t.width/r.width:l/r.height:r.height>r.width&&(n=t.height<l?t.height/r.height:l/r.height),r.width*n>o&&(n=o/r.width));var c=(n-1)/2*i.offsetWidth+(o-i.offsetWidth*n)/2,u=(n-1)/2*i.offsetHeight+(s-i.offsetHeight*n)/2;r.afterX=c,r.afterY=u,r.scale=n,this.data.appearEffect=r}else this.data.appear=!0}},{key:"hidePhoto",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"bottom";this.data.hide=!0,this.data.appear=!1,this.data.appearEffect=null,this.data.hideUi=!1,this.data.scale=!1,this.data.scaleSize=1;var i=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,a=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,r=document.querySelector("body");window.location.hash&&this._setHash(""),window.scroll(i,a),this._doHideEffect(t).then((function(){e.update(),r.style.overflow="",e._fireEvent("close")}))}},{key:"_doHideEffect",value:function(e){var t=this;return new u((function(i){d.isOldIE()&&i();var a=t.data.classNames,r=t._getElementByClass(a.smartPhoto),n=t._getElementByQuery(".current .".concat(a.smartPhotoImg)),o=t._getWindowHeight();r.style.opacity=0,"bottom"===e?n.style.transform="translateY(".concat(o,"px)"):"top"===e&&(n.style.transform="translateY(-".concat(o,"px)")),r.addEventListener("transitionend",(function e(){r.removeEventListener("transitionend",e,!0),i()}),!0)}))}},{key:"_getElementByClass",value:function(e){return document.querySelector('[data-id="'.concat(this.id,'"] .').concat(e))}},{key:"_getElementByQuery",value:function(e){return document.querySelector('[data-id="'.concat(this.id,'"] ').concat(e))}},{key:"_getTouchPos",value:function(){var e=0,t=0,i="undefined"==typeof event?this.e:event;return this._isTouched(i)?(e=i.touches[0].pageX,t=i.touches[0].pageY):i.pageX&&(e=i.pageX,t=i.pageY),{x:e,y:t}}},{key:"_getGesturePos",value:function(e){var t=e.touches;return[{x:t[0].pageX,y:t[0].pageY},{x:t[1].pageX,y:t[1].pageY}]}},{key:"_setPosByCurrentIndex",value:function(){var e=this,t=-1*this.groupItems()[this.data.currentIndex].translateX;this.pos.x=t,setTimeout((function(){e.data.translateX=t,e.data.translateY=0,e._listUpdate()}),1)}},{key:"_setHashByCurrentIndex",value:function(){var e=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,t=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,i=this.groupItems()[this.data.currentIndex].id,a=this.data.currentGroup,r="group=".concat(a,"&photo=").concat(i);this._setHash(r),window.scroll(e,t)}},{key:"_setHash",value:function(e){window.history&&window.history.pushState&&this.data.useHistoryApi&&(e?window.history.replaceState(null,null,"".concat(location.pathname).concat(location.search,"#").concat(e)):window.history.replaceState(null,null,"".concat(location.pathname).concat(location.search)))}},{key:"_getCurrentItemByHash",value:function(){var e=this.data.group,t=location.hash.substr(1),i=d.parseQuery(t),a=null,r=function(e){i.group===e.groupId&&i.photo===e.id&&(a=e)};return Object.keys(e).forEach((function(t){e[t].forEach(r)})),a}},{key:"_loadItem",value:function(e){return new u((function(t){var i=new Image;i.onload=function(){e.width=i.width,e.height=i.height,e.loaded=!0,t()},i.onerror=function(){t()},i.src=e.src}))}},{key:"_getItemByIndex",value:function(e){var t=this.data;return t.group[t.currentGroup][e]?t.group[t.currentGroup][e]:null}},{key:"_loadNeighborItems",value:function(){for(var e=this,t=this.data.currentIndex,i=this.data.loadOffset,a=t+i,r=[],n=t-i;n<a;n++){var o=this._getItemByIndex(n);o&&!o.loaded&&r.push(this._loadItem(o))}r.length&&u.all(r).then((function(){e._initPhoto(),e.update()}))}},{key:"_setSizeByScreen",value:function(){var e=this._getWindowWidth(),t=this._getWindowHeight(),i=this.data.headerHeight,a=this.data.footerHeight,r=t-(i+a);this.groupItems().forEach((function(i){i.loaded&&(i.processed=!0,i.scale=r/i.height,i.height<r&&(i.scale=1),i.x=(i.scale-1)/2*i.width+(e-i.width*i.scale)/2,i.y=(i.scale-1)/2*i.height+(t-i.height*i.scale)/2,i.width*i.scale>e&&(i.scale=e/i.width,i.x=(i.scale-1)/2*i.width))}))}},{key:"_slideList",value:function(){var e=this;this.data.scaleSize=1,this.isBeingZoomed=!1,this.data.hideUi=!1,this.data.scale=!1,this.data.photoPosX=0,this.data.photoPosY=0,this.data.onMoveClass=!0,this._setPosByCurrentIndex(),this._setHashByCurrentIndex(),this._setSizeByScreen(),setTimeout((function(){var t=e._getSelectedItem();e.data.onMoveClass=!1,e.setArrow(),e.update(),e.data.oldIndex!==e.data.currentIndex&&e._fireEvent("change"),e.data.oldIndex=e.data.currentIndex,e._loadNeighborItems(),t.loaded||e._loadItem(t).then((function(){e._initPhoto(),e.update()}))}),200)}},{key:"gotoSlide",value:function(e){this.e&&this.e.preventDefault&&this.e.preventDefault(),this.data.currentIndex=parseInt(e,10),this.data.currentIndex||(this.data.currentIndex=0),this._slideList()}},{key:"setArrow",value:function(){var e=this.groupItems().length,t=this.data.currentIndex+1,i=this.data.currentIndex-1;this.data.showNextArrow=!1,this.data.showPrevArrow=!1,t!==e&&(this.data.next=t,this.data.showNextArrow=!0),-1!==i&&(this.data.prev=i,this.data.showPrevArrow=!0)}},{key:"beforeDrag",value:function(){if(this._isGestured(this.e))this.beforeGesture();else if(this.isBeingZoomed=!1,this.data.scale)this.beforePhotoDrag();else{var e=this._getTouchPos();this.isSwipable=!0,this.dragStart=!0,this.firstPos=e,this.oldPos=e}}},{key:"afterDrag",value:function(){var e=this.groupItems(),t=(new Date).getTime(),i=this.tapSecond-t,a=0,r=0;if(this.isSwipable=!1,this.onListMove=!1,this.oldPos&&(a=this.oldPos.x-this.firstPos.x,r=this.oldPos.y-this.firstPos.y),this.isBeingZoomed)this.afterGesture();else if(this.data.scale)this.afterPhotoDrag();else if(d.isSmartPhone()||0!==a||0!==r){if(Math.abs(i)<=500&&0===a&&0===r)return this.e.preventDefault(),void this.zoomPhoto();this.tapSecond=t,this._fireEvent("swipeend"),"horizontal"===this.moveDir&&(a>=this.data.swipeOffset&&0!==this.data.currentIndex?this.data.currentIndex-=1:a<=-this.data.swipeOffset&&this.data.currentIndex!==e.length-1&&(this.data.currentIndex+=1),this._slideList()),"vertical"===this.moveDir&&(this.data.swipeBottomToClose&&r>=this.data.swipeOffset?this.hidePhoto("bottom"):this.data.swipeTopToClose&&r<=-this.data.swipeOffset?this.hidePhoto("top"):(this.data.translateY=0,this._slideList()))}else this.zoomPhoto()}},{key:"onDrag",value:function(){if(this.e.preventDefault(),this._isGestured(this.e)&&!1===this.onListMove)this.onGesture();else if(!this.isBeingZoomed)if(this.data.scale)this.onPhotoDrag();else if(this.isSwipable){var e=this._getTouchPos(),t=e.x-this.oldPos.x,i=e.y-this.firstPos.y;this.dragStart&&(this._fireEvent("swipestart"),this.dragStart=!1,Math.abs(t)>Math.abs(i)?this.moveDir="horizontal":this.moveDir="vertical"),"horizontal"===this.moveDir?(this.pos.x+=t,this.data.translateX=this.pos.x):this.data.translateY=i,this.onListMove=!0,this.oldPos=e,this._listUpdate()}}},{key:"zoomPhoto",value:function(){var e=this;this.data.hideUi=!0,this.data.scaleSize=this._getScaleBoarder(),this.data.scaleSize<=1||(this.data.photoPosX=0,this.data.photoPosY=0,this._photoUpdate(),setTimeout((function(){e.data.scale=!0,e._photoUpdate(),e._fireEvent("zoomin")}),300))}},{key:"zoomOutPhoto",value:function(){this.data.scaleSize=1,this.isBeingZoomed=!1,this.data.hideUi=!1,this.data.scale=!1,this.data.photoPosX=0,this.data.photoPosY=0,this._photoUpdate(),this._fireEvent("zoomout")}},{key:"beforePhotoDrag",value:function(){var e=this._getTouchPos();this.photoSwipable=!0,this.data.photoPosX||(this.data.photoPosX=0),this.data.photoPosY||(this.data.photoPosY=0),this.oldPhotoPos=e,this.firstPhotoPos=e}},{key:"onPhotoDrag",value:function(){if(this.photoSwipable){this.e.preventDefault();var e=this._getTouchPos(),t=e.x-this.oldPhotoPos.x,i=e.y-this.oldPhotoPos.y,a=this._round(this.data.scaleSize*t,6),r=this._round(this.data.scaleSize*i,6);"number"==typeof a&&(this.data.photoPosX+=a,this.photoVX=a),"number"==typeof r&&(this.data.photoPosY+=r,this.photoVY=r),this.oldPhotoPos=e,this._photoUpdate()}}},{key:"afterPhotoDrag",value:function(){if(this.oldPhotoPos.x===this.firstPhotoPos.x&&this.photoSwipable)this.photoSwipable=!1,this.zoomOutPhoto();else{this.photoSwipable=!1;var e=this._getSelectedItem(),t=this._makeBound(e),i=this.data.swipeOffset*this.data.scaleSize,a=0,r=0;if(this.data.photoPosX>t.maxX?a=-1:this.data.photoPosX<t.minX&&(a=1),this.data.photoPosY>t.maxY?r=-1:this.data.photoPosY<t.minY&&(r=1),this.data.photoPosX-t.maxX>i&&0!==this.data.currentIndex)return void this.gotoSlide(this.data.prev);if(t.minX-this.data.photoPosX>i&&this.data.currentIndex+1!==this.data.total)return void this.gotoSlide(this.data.next);0===a&&0===r?(this.vx=this.photoVX/5,this.vy=this.photoVY/5):this._registerElasticForce(a,r)}}},{key:"beforeGesture",value:function(){this._fireEvent("gesturestart");var e=this._getGesturePos(this.e),t=this._getDistance(e[0],e[1]);this.isBeingZoomed=!0,this.oldDistance=t,this.data.scale=!0,this.e.preventDefault()}},{key:"onGesture",value:function(){var e=this._getGesturePos(this.e),t=this._getDistance(e[0],e[1]),i=(t-this.oldDistance)/100,a=this.data.scaleSize,r=this.data.photoPosX,n=this.data.photoPosY;this.isBeingZoomed=!0,this.data.scaleSize+=this._round(i,6),this.data.scaleSize<.2&&(this.data.scaleSize=.2),this.data.scaleSize<a&&(this.data.photoPosX=(1+this.data.scaleSize-a)*r,this.data.photoPosY=(1+this.data.scaleSize-a)*n),this.data.scaleSize<1||this.data.scaleSize>this._getScaleBoarder()?this.data.hideUi=!0:this.data.hideUi=!1,this.oldDistance=t,this.e.preventDefault(),this._photoUpdate()}},{key:"afterGesture",value:function(){this.data.scaleSize>this._getScaleBoarder()||(this.data.photoPosX=0,this.data.photoPosY=0,this.data.scale=!1,this.data.scaleSize=1,this.data.hideUi=!1,this._fireEvent("gestureend"),this._photoUpdate())}},{key:"_getForceAndTheta",value:function(e,t){return{force:Math.sqrt(e*e+t*t),theta:Math.atan2(t,e)}}},{key:"_getScaleBoarder",value:function(){var e=this._getSelectedItem(),t=this._getWindowWidth(),i=this._getWindowHeight();return d.isSmartPhone()?e.width>e.height?i/(e.height*e.scale):t/(e.width*e.scale):1/e.scale}},{key:"_makeBound",value:function(e){var t,i,a,r,n=e.width*e.scale*this.data.scaleSize,o=e.height*e.scale*this.data.scaleSize,s=this._getWindowWidth(),l=this._getWindowHeight();return t=s>n?-1*(a=(s-n)/2):-1*(a=(n-s)/2),i=l>o?-1*(r=(l-o)/2):-1*(r=(o-l)/2),{minX:this._round(t,6)*this.data.scaleSize,minY:this._round(i,6)*this.data.scaleSize,maxX:this._round(a,6)*this.data.scaleSize,maxY:this._round(r,6)*this.data.scaleSize}}},{key:"_registerElasticForce",value:function(e,t){var i=this,a=this._getSelectedItem(),r=this._makeBound(a);this.data.elastic=!0,1===e?this.data.photoPosX=r.minX:-1===e&&(this.data.photoPosX=r.maxX),1===t?this.data.photoPosY=r.minY:-1===t&&(this.data.photoPosY=r.maxY),this._photoUpdate(),setTimeout((function(){i.data.elastic=!1,i._photoUpdate()}),300)}},{key:"_getSelectedItem",value:function(){var e=this.data,t=e.currentIndex;return e.group[e.currentGroup][t]}},{key:"_getUniqId",value:function(){return(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()}},{key:"_getDistance",value:function(e,t){var i=e.x-t.x,a=e.y-t.y;return Math.sqrt(i*i+a*a)}},{key:"_round",value:function(e,t){var i=Math.pow(10,t);return e*=i,e=Math.round(e),e/=i}},{key:"_isTouched",value:function(e){return!(!e||!e.touches)}},{key:"_isGestured",value:function(e){return!!(e&&e.touches&&e.touches.length>1)}},{key:"_isSmartPhone",value:function(){var e=navigator.userAgent;return e.indexOf("iPhone")>0||e.indexOf("iPad")>0||e.indexOf("ipod")>0||e.indexOf("Android")>0}},{key:"_calcGravity",value:function(e,t){(e>5||e<-5)&&(this.vx+=.05*e),!1!==this.data.verticalGravity&&(t>5||t<-5)&&(this.vy+=.05*t)}},{key:"_photoUpdate",value:function(){var e=this.data.classNames,t=this._getElementByQuery(".current").querySelector(".".concat(e.smartPhotoImg)),i=this._getElementByQuery(".".concat(e.smartPhotoNav)),a=this._getElementByQuery(".".concat(e.smartPhotoArrows)),r=this.virtualPos(this.data.photoPosX),n=this.virtualPos(this.data.photoPosY),o=this.data.scaleSize,s="translate(".concat(r,"px,").concat(n,"px) scale(").concat(o,")");t.style.transform=s,this.data.scale?d.addClass(t,e.smartPhotoImgOnMove):d.removeClass(t,e.smartPhotoImgOnMove),this.data.elastic?d.addClass(t,e.smartPhotoImgElasticMove):d.removeClass(t,e.smartPhotoImgElasticMove),this.data.hideUi?(i&&i.setAttribute("aria-hidden","true"),a&&a.setAttribute("aria-hidden","true")):(i&&i.setAttribute("aria-hidden","false"),a&&a.setAttribute("aria-hidden","false"))}},{key:"_getWindowWidth",value:function(){return document&&document.documentElement?document.documentElement.clientWidth:window&&window.innerWidth?window.innerWidth:0}},{key:"_getWindowHeight",value:function(){return document&&document.documentElement?document.documentElement.clientHeight:window&&window.innerHeight?window.innerHeight:0}},{key:"_listUpdate",value:function(){var e=this.data.classNames,t=this._getElementByQuery(".".concat(e.smartPhotoList)),i="translate(".concat(this.data.translateX,"px,").concat(this.data.translateY,"px)");t.style.transform=i,this.data.onMoveClass?d.addClass(t,e.smartPhotoListOnMove):d.removeClass(t,e.smartPhotoListOnMove)}},{key:"_fireEvent",value:function(e){var t=this._getElementByClass(this.data.classNames.smartPhoto);d.triggerEvent(t,e)}},{key:"_doAnim",value:function(){if(!(this.isBeingZoomed||this.isSwipable||this.photoSwipable||this.data.elastic)&&this.data.scale){this.data.photoPosX+=this.vx,this.data.photoPosY+=this.vy;var e=this._getSelectedItem(),t=this._makeBound(e);this.data.photoPosX<t.minX?(this.data.photoPosX=t.minX,this.vx*=-.2):this.data.photoPosX>t.maxX&&(this.data.photoPosX=t.maxX,this.vx*=-.2),this.data.photoPosY<t.minY?(this.data.photoPosY=t.minY,this.vy*=-.2):this.data.photoPosY>t.maxY&&(this.data.photoPosY=t.maxY,this.vy*=-.2);var i=this._getForceAndTheta(this.vx,this.vy),a=i.force,r=i.theta;a-=this.data.registance,Math.abs(a)<.5||(this.vx=Math.cos(r)*a,this.vy=Math.sin(r)*a,this._photoUpdate())}}}],a&&n(i.prototype,a),r&&n(i,r),t}(a.default);t.default=h,e.exports=t.default}(y,y.exports);var V,X=a(y.exports);function Y(){var e=this.getMeta("url");e.match(/^http/i)||(e=location.href),this.defaults={url:e,origin:location.origin,source:this.getMeta("site_name")||document.title,title:this.getMeta("title")||document.title,description:this.getMeta("description")||"",image:this.getMeta("image")}}(V=jQuery).fn.qrcode=function(e){var t;function i(e){this.mode=t,this.data=e}function a(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function r(e,t){if(null==e.length)throw Error(e.length+"/"+t);for(var i=0;i<e.length&&0==e[i];)i++;this.num=Array(e.length-i+t);for(var a=0;a<e.length-i;a++)this.num[a]=e[a+i]}function n(e,t){this.totalCount=e,this.dataCount=t}function o(){this.buffer=[],this.length=0}i.prototype={getLength:function(){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}},a.prototype={addData:function(e){this.dataList.push(new i(e)),this.dataCache=null},isDark:function(e,t){if(0>e||this.moduleCount<=e||0>t||this.moduleCount<=t)throw Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){var e=1;for(e=1;40>e;e++){for(var t=n.getRSBlocks(e,this.errorCorrectLevel),i=new o,a=0,r=0;r<t.length;r++)a+=t[r].dataCount;for(r=0;r<this.dataList.length;r++)t=this.dataList[r],i.put(t.mode,4),i.put(t.getLength(),s.getLengthInBits(t.mode,e)),t.write(i);if(i.getLengthInBits()<=8*a)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++){this.modules[i]=Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[i][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),7<=this.typeNumber&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=a.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var i=-1;7>=i;i++)if(!(-1>=e+i||this.moduleCount<=e+i))for(var a=-1;7>=a;a++)-1>=t+a||this.moduleCount<=t+a||(this.modules[e+i][t+a]=0<=i&&6>=i&&(0==a||6==a)||0<=a&&6>=a&&(0==i||6==i)||2<=i&&4>=i&&2<=a&&4>=a)},getBestMaskPattern:function(){for(var e=0,t=0,i=0;8>i;i++){this.makeImpl(!0,i);var a=s.getLostPoint(this);(0==i||e>a)&&(e=a,t=i)}return t},createMovieClip:function(e,t,i){for(e=e.createEmptyMovieClip(t,i),this.make(),t=0;t<this.modules.length;t++){i=1*t;for(var a=0;a<this.modules[t].length;a++){var r=1*a;this.modules[t][a]&&(e.beginFill(0,100),e.moveTo(r,i),e.lineTo(r+1,i),e.lineTo(r+1,i+1),e.lineTo(r,i+1),e.endFill())}}return e},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=0==e%2);for(e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=0==e%2)},setupPositionAdjustPattern:function(){for(var e=s.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var i=0;i<e.length;i++){var a=e[t],r=e[i];if(null==this.modules[a][r])for(var n=-2;2>=n;n++)for(var o=-2;2>=o;o++)this.modules[a+n][r+o]=-2==n||2==n||-2==o||2==o||0==n&&0==o}},setupTypeNumber:function(e){for(var t=s.getBCHTypeNumber(this.typeNumber),i=0;18>i;i++){var a=!e&&1==(t>>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=a}for(i=0;18>i;i++)a=!e&&1==(t>>i&1),this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=a},setupTypeInfo:function(e,t){for(var i=s.getBCHTypeInfo(this.errorCorrectLevel<<3|t),a=0;15>a;a++){var r=!e&&1==(i>>a&1);6>a?this.modules[a][8]=r:8>a?this.modules[a+1][8]=r:this.modules[this.moduleCount-15+a][8]=r}for(a=0;15>a;a++)r=!e&&1==(i>>a&1),8>a?this.modules[8][this.moduleCount-a-1]=r:9>a?this.modules[8][15-a-1+1]=r:this.modules[8][15-a-1]=r;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var i=-1,a=this.moduleCount-1,r=7,n=0,o=this.moduleCount-1;0<o;o-=2)for(6==o&&o--;;){for(var l=0;2>l;l++)if(null==this.modules[a][o-l]){var c=!1;n<e.length&&(c=1==(e[n]>>>r&1)),s.getMask(t,a,o-l)&&(c=!c),this.modules[a][o-l]=c,-1==--r&&(n++,r=7)}if(0>(a+=i)||this.moduleCount<=a){a-=i,i=-i;break}}}},a.PAD0=236,a.PAD1=17,a.createData=function(e,t,i){t=n.getRSBlocks(e,t);for(var r=new o,l=0;l<i.length;l++){var c=i[l];r.put(c.mode,4),r.put(c.getLength(),s.getLengthInBits(c.mode,e)),c.write(r)}for(l=e=0;l<t.length;l++)e+=t[l].dataCount;if(r.getLengthInBits()>8*e)throw Error("code length overflow. ("+r.getLengthInBits()+">"+8*e+")");for(r.getLengthInBits()+4<=8*e&&r.put(0,4);0!=r.getLengthInBits()%8;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*e||(r.put(a.PAD0,8),r.getLengthInBits()>=8*e));)r.put(a.PAD1,8);return a.createBytes(r,t)},a.createBytes=function(e,t){for(var i=0,a=0,n=0,o=Array(t.length),l=Array(t.length),c=0;c<t.length;c++){var d=t[c].dataCount,u=t[c].totalCount-d;a=Math.max(a,d),n=Math.max(n,u),o[c]=Array(d);for(var p=0;p<o[c].length;p++)o[c][p]=255&e.buffer[p+i];for(i+=d,p=s.getErrorCorrectPolynomial(u),d=new r(o[c],p.getLength()-1).mod(p),l[c]=Array(p.getLength()-1),p=0;p<l[c].length;p++)u=p+d.getLength()-l[c].length,l[c][p]=0<=u?d.get(u):0}for(p=c=0;p<t.length;p++)c+=t[p].totalCount;for(i=Array(c),p=d=0;p<a;p++)for(c=0;c<t.length;c++)p<o[c].length&&(i[d++]=o[c][p]);for(p=0;p<n;p++)for(c=0;c<t.length;c++)p<l[c].length&&(i[d++]=l[c][p]);return i},t=4;for(var s={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;0<=s.getBCHDigit(t)-s.getBCHDigit(s.G15);)t^=s.G15<<s.getBCHDigit(t)-s.getBCHDigit(s.G15);return(e<<10|t)^s.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;0<=s.getBCHDigit(t)-s.getBCHDigit(s.G18);)t^=s.G18<<s.getBCHDigit(t)-s.getBCHDigit(s.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,i){switch(e){case 0:return 0==(t+i)%2;case 1:return 0==t%2;case 2:return 0==i%3;case 3:return 0==(t+i)%3;case 4:return 0==(Math.floor(t/2)+Math.floor(i/3))%2;case 5:return 0==t*i%2+t*i%3;case 6:return 0==(t*i%2+t*i%3)%2;case 7:return 0==(t*i%3+(t+i)%2)%2;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new r([1],0),i=0;i<e;i++)t=t.multiply(new r([1,l.gexp(i)],0));return t},getLengthInBits:function(e,i){if(1<=i&&10>i)switch(e){case 1:return 10;case 2:return 9;case t:case 8:return 8;default:throw Error("mode:"+e)}else if(27>i)switch(e){case 1:return 12;case 2:return 11;case t:return 16;case 8:return 10;default:throw Error("mode:"+e)}else{if(!(41>i))throw Error("type:"+i);switch(e){case 1:return 14;case 2:return 13;case t:return 16;case 8:return 12;default:throw Error("mode:"+e)}}},getLostPoint:function(e){for(var t=e.getModuleCount(),i=0,a=0;a<t;a++)for(var r=0;r<t;r++){for(var n=0,o=e.isDark(a,r),s=-1;1>=s;s++)if(!(0>a+s||t<=a+s))for(var l=-1;1>=l;l++)0>r+l||t<=r+l||0==s&&0==l||o==e.isDark(a+s,r+l)&&n++;5<n&&(i+=3+n-5)}for(a=0;a<t-1;a++)for(r=0;r<t-1;r++)n=0,e.isDark(a,r)&&n++,e.isDark(a+1,r)&&n++,e.isDark(a,r+1)&&n++,e.isDark(a+1,r+1)&&n++,(0==n||4==n)&&(i+=3);for(a=0;a<t;a++)for(r=0;r<t-6;r++)e.isDark(a,r)&&!e.isDark(a,r+1)&&e.isDark(a,r+2)&&e.isDark(a,r+3)&&e.isDark(a,r+4)&&!e.isDark(a,r+5)&&e.isDark(a,r+6)&&(i+=40);for(r=0;r<t;r++)for(a=0;a<t-6;a++)e.isDark(a,r)&&!e.isDark(a+1,r)&&e.isDark(a+2,r)&&e.isDark(a+3,r)&&e.isDark(a+4,r)&&!e.isDark(a+5,r)&&e.isDark(a+6,r)&&(i+=40);for(r=n=0;r<t;r++)for(a=0;a<t;a++)e.isDark(a,r)&&n++;return i+10*(e=Math.abs(100*n/t/t-50)/5)}},l={glog:function(e){if(1>e)throw Error("glog("+e+")");return l.LOG_TABLE[e]},gexp:function(e){for(;0>e;)e+=255;for(;256<=e;)e-=255;return l.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},c=0;8>c;c++)l.EXP_TABLE[c]=1<<c;for(c=8;256>c;c++)l.EXP_TABLE[c]=l.EXP_TABLE[c-4]^l.EXP_TABLE[c-5]^l.EXP_TABLE[c-6]^l.EXP_TABLE[c-8];for(c=0;255>c;c++)l.LOG_TABLE[l.EXP_TABLE[c]]=c;return r.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),i=0;i<this.getLength();i++)for(var a=0;a<e.getLength();a++)t[i+a]^=l.gexp(l.glog(this.get(i))+l.glog(e.get(a)));return new r(t,0)},mod:function(e){if(0>this.getLength()-e.getLength())return this;for(var t=l.glog(this.get(0))-l.glog(e.get(0)),i=Array(this.getLength()),a=0;a<this.getLength();a++)i[a]=this.get(a);for(a=0;a<e.getLength();a++)i[a]^=l.gexp(l.glog(e.get(a))+t);return new r(i,0).mod(e)}},n.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],n.getRSBlocks=function(e,t){var i=n.getRsBlockTable(e,t);if(null==i)throw Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var a=i.length/3,r=[],o=0;o<a;o++)for(var s=i[3*o+0],l=i[3*o+1],c=i[3*o+2],d=0;d<s;d++)r.push(new n(l,c));return r},n.getRsBlockTable=function(e,t){switch(t){case 1:return n.RS_BLOCK_TABLE[4*(e-1)+0];case 0:return n.RS_BLOCK_TABLE[4*(e-1)+1];case 3:return n.RS_BLOCK_TABLE[4*(e-1)+2];case 2:return n.RS_BLOCK_TABLE[4*(e-1)+3]}},o.prototype={get:function(e){return 1==(this.buffer[Math.floor(e/8)]>>>7-e%8&1)},put:function(e,t){for(var i=0;i<t;i++)this.putBit(1==(e>>>t-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},"string"==typeof e&&(e={text:e}),e=V.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:2,background:"#ffffff",foreground:"#000000"},e),this.each((function(){var t;if("canvas"==e.render){(t=new a(e.typeNumber,e.correctLevel)).addData(e.text),t.make();var i=document.createElement("canvas");i.width=e.width,i.height=e.height;for(var r=i.getContext("2d"),n=e.width/t.getModuleCount(),o=e.height/t.getModuleCount(),s=0;s<t.getModuleCount();s++)for(var l=0;l<t.getModuleCount();l++){r.fillStyle=t.isDark(s,l)?e.foreground:e.background;var c=Math.ceil((l+1)*n)-Math.floor(l*n),d=Math.ceil((s+1)*n)-Math.floor(s*n);r.fillRect(Math.round(l*n),Math.round(s*o),c,d)}}else for((t=new a(e.typeNumber,e.correctLevel)).addData(e.text),t.make(),i=V("<table></table>").css("width",e.width+"px").css("height",e.height+"px").css("border","0px").css("border-collapse","collapse").css("background-color",e.background),r=e.width/t.getModuleCount(),n=e.height/t.getModuleCount(),o=0;o<t.getModuleCount();o++)for(s=V("<tr></tr>").css("height",n+"px").appendTo(i),l=0;l<t.getModuleCount();l++)V("<td></td>").css("width",r+"px").css("background-color",t.isDark(o,l)?e.foreground:e.background).appendTo(s);t=i,jQuery(t).appendTo(this)}))},"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var i=arguments[t];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}),Y.prototype={getMeta:function(e){var t=document.querySelector('meta[property="og:'+e+'"]');return t?t.getAttribute("content"):""},templates:{qzone:"https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{URL}}&title={{TITLE}}&desc={{DESCRIPTION}}&summary={{SUMMARY}}&site={{SOURCE}}&pics={{IMAGE}}",qq:'https://connect.qq.com/widget/shareqq/index.html?url={{URL}}&title={{TITLE}}&source={{SOURCE}}&desc={{DESCRIPTION}}&pics={{IMAGE}}&summary="{{SUMMARY}}"',weibo:"https://service.weibo.com/share/share.php?url={{URL}}&title={{TITLE}}&pic={{IMAGE}}&appkey={{WEIBOKEY}}&searchPic=true",wechat:"javascript:",douban:"https://www.douban.com/share/service?href={{URL}}&name={{TITLE}}&text={{DESCRIPTION}}&image={{IMAGE}}",linkedin:"https://www.linkedin.com/shareArticle?mini=true&ro=true&title={{TITLE}}&url={{URL}}&summary={{SUMMARY}}&source={{SOURCE}}&armin=armin",facebook:"https://www.facebook.com/sharer/sharer.php?u={{URL}}",twitter:"https://twitter.com/intent/tweet?text={{TITLE}}&url={{URL}}&via={{ORIGIN}}",x:"https://twitter.com/intent/tweet?text={{TITLE}}&url={{URL}}&via={{ORIGIN}}",mail:"mailto:?subject={{TITLE}}&body={{URL}}",tumblr:"https://www.tumblr.com/share?t={{TITLE}}&u={{URL}}&v=3",whatsapp:"https://web.whatsapp.com/send?text={{URL}}",pinterest:"https://www.pinterest.com/pin/create/button/?description={{TITLE}}&media=&url={{URL}}",line:"https://lineit.line.me/share/ui?url={{URL}}&text={{TITLE}}",telegram:"https://t.me/share/url?url={{URL}}&text={{TITLE}}&to="},makeUrl:function(e,t){t=t||this.defaults;var i=this.subString(t.description,236);return t.description=i&&i!==t.description?i+"...":t.description,t.summary||(t.summary=t.description),this.templates[e].replace(/\{\{(\w)(\w*)\}\}/g,(function(i,a,r){var n=e+a+r.toLowerCase();return r=(a+r).toLowerCase(),encodeURIComponent((void 0===t[n]?t[r]:t[n])||"")}))},init:function(){var e=this;jQuery("a[data-share]").each((function(){var t=jQuery(this),i=t.data("share");if(i&&e.templates[i]){var a=Object.assign({},e.defaults);t.data("share-callback")&&window[t.data("share-callback")]&&(a=Object.assign(a,window[t.data("share-callback")].apply(window,[this]))),t.attr("href",e.makeUrl(i,a)),"wechat"===i&&0===t.find(".share-wx-wrap").length&&(t.attr("target",""),t.append('<span class="share-wx-wrap"><span class="j-share-qrcode"></span><span>\u5fae\u4fe1\u626b\u7801\u5206\u4eab</span></span>'),t.find(".j-share-qrcode").qrcode({text:a.url}))}}))},subString:function(e,t){var i=/[^\x00-\xff]/g;if(e.replace(i,"aa").length<=t)return e;for(var a=Math.floor(t/2),r=e.length;a<r;a++)if(e.substring(0,a).replace(i,"aa").length>=t)return e.substring(0,a);return e}};var Q=new Y,Z={init:function(){var e=this;jQuery("pre.wp-block-code").each((function(e,t){var i=jQuery(t),a=i.removeClass("wp-block-code").prop("outerHTML");i.replaceWith('<div class="wp-block-wpcom-hljs">'+a+"</div>")}));var t=jQuery(".wp-block-wpcom-hljs > pre");t.length&&this.load(t),jQuery(document).on("hljs.wpcom",(function(t){t.target&&e.load(jQuery(t.target))}))},load:function(e){if("undefined"==typeof hljs){var t=this,i=void 0!==_wpcom_js.framework_url?_wpcom_js.framework_url:_wpcom_js.theme_url+"/themer",a=i+"/assets/js/highlight-11.9.0.min.js",r=i+"/assets/css/highlight-11.9.0.min.css";jQuery.ajax({url:a,dataType:"script",cache:!0,success:function(){var i=document.createElement("link");i.href=r,i.rel="stylesheet",i.type="text/css",document.body.appendChild(i),hljs.configure({ignoreUnescapedHTML:!0}),t.render(e)}})}else this.render(e)},render:function(e){e.length&&(this.copyBtn(e),e.each((function(e,t){hljs.highlightElement(t)})))},copyBtn:function(e){void 0!==document.execCommand&&(e.parent().each((function(e,t){var i=jQuery(t);i.data("value",i.find(">pre").text())})),e.parent().append('<div class="copy-btn"><i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-copy"></use></svg></i></div>'),e.parent().on("click",".copy-btn",(function(){var e=jQuery(this),t=e.closest(".wp-block-wpcom-hljs").data("value"),i=document.createElement("textarea");i.value=t,jQuery("body").append(i),i.style.position="fixed",i.style.height=0,i.select(),document.execCommand("copy"),i.remove(),e.html('<i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-dagou"></use></svg></i>').addClass("success"),setTimeout((function(){e.html('<i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-copy"></use></svg></i>').removeClass("success")}),2e3)})))}};function K(e){return null!==e&&"object"===c(e)&&"constructor"in e&&e.constructor===Object}function J(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(i){void 0===e[i]?e[i]=t[i]:K(t[i])&&K(e[i])&&Object.keys(t[i]).length>0&&J(e[i],t[i])}))}var ee={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function te(){var e="undefined"!=typeof document?document:{};return J(e,ee),e}var ie,ae,re,ne={document:ee,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function oe(){var e="undefined"!=typeof window?window:{};return J(e,ne),e}function se(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function le(){return Date.now()}function ce(e,t){void 0===t&&(t="x");var i,a,r,n=oe(),o=function(e){var t,i=oe();return i.getComputedStyle&&(t=i.getComputedStyle(e,null)),!t&&e.currentStyle&&(t=e.currentStyle),t||(t=e.style),t}(e);return n.WebKitCSSMatrix?((a=o.transform||o.webkitTransform).split(",").length>6&&(a=a.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),r=new n.WebKitCSSMatrix("none"===a?"":a)):i=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(a=n.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(a=n.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),a||0}function de(e){return"object"===c(e)&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ue(){for(var e,t=Object(arguments.length<=0?void 0:arguments[0]),i=["__proto__","constructor","prototype"],a=1;a<arguments.length;a+=1){var r=a<0||arguments.length<=a?void 0:arguments[a];if(null!=r&&(e=r,!("undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType))))for(var n=Object.keys(Object(r)).filter((function(e){return i.indexOf(e)<0})),o=0,s=n.length;o<s;o+=1){var l=n[o],c=Object.getOwnPropertyDescriptor(r,l);void 0!==c&&c.enumerable&&(de(t[l])&&de(r[l])?r[l].__swiper__?t[l]=r[l]:ue(t[l],r[l]):!de(t[l])&&de(r[l])?(t[l]={},r[l].__swiper__?t[l]=r[l]:ue(t[l],r[l])):t[l]=r[l])}}return t}function pe(e,t,i){e.style.setProperty(t,i)}function he(e){var t,i=e.swiper,a=e.targetPosition,r=e.side,n=oe(),o=-i.translate,s=null,l=i.params.speed;i.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(i.cssModeFrameID);var c=a>o?"next":"prev",d=function(e,t){return"next"===c&&e>=t||"prev"===c&&e<=t};!function e(){t=(new Date).getTime(),null===s&&(s=t);var c=Math.max(Math.min((t-s)/l,1),0),u=.5-Math.cos(c*Math.PI)/2,h=o+u*(a-o);if(d(h,a)&&(h=a),i.wrapperEl.scrollTo(p({},r,h)),d(h,a))return i.wrapperEl.style.overflow="hidden",i.wrapperEl.style.scrollSnapType="",setTimeout((function(){i.wrapperEl.style.overflow="",i.wrapperEl.scrollTo(p({},r,h))})),void n.cancelAnimationFrame(i.cssModeFrameID);i.cssModeFrameID=n.requestAnimationFrame(e)}()}function fe(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function me(e,t){return void 0===t&&(t=""),f(e.children).filter((function(e){return e.matches(t)}))}function ve(e){try{return void console.warn(e)}catch(e){}}function ge(e,t){var i;void 0===t&&(t=[]);var a=document.createElement(e);return(i=a.classList).add.apply(i,f(Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((function(e){return!!e.trim()}))}(t))),a}function we(e,t){return oe().getComputedStyle(e,null).getPropertyValue(t)}function ye(e){var t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function be(e,t){for(var i=[],a=e.parentElement;a;)t?a.matches(t)&&i.push(a):i.push(a),a=a.parentElement;return i}function xe(e,t,i){var a=oe();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(a.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function Ee(e){return(Array.isArray(e)?e:[e]).filter((function(e){return!!e}))}function Se(){return ie||(ie=function(){var e=oe(),t=te();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),ie}function Te(e){return void 0===e&&(e={}),ae||(ae=function(e){var t=(void 0===e?{}:e).userAgent,i=Se(),a=oe(),r=a.navigator.platform,n=t||a.navigator.userAgent,o={ios:!1,android:!1},s=a.screen.width,l=a.screen.height,c=n.match(/(Android);?[\s\/]+([\d.]+)?/),d=n.match(/(iPad).*OS\s([\d_]+)/),u=n.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h="Win32"===r,f="MacIntel"===r;return!d&&f&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf("".concat(s,"x").concat(l))>=0&&((d=n.match(/(Version)\/([\d.]+)/))||(d=[0,1,"13_0_0"]),f=!1),c&&!h&&(o.os="android",o.android=!0),(d||p||u)&&(o.os="ios",o.ios=!0),o}(e)),ae}function Ce(){return re||(re=function(){var e=oe(),t=Te(),i=!1;function a(){var t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(a()){var r=String(e.navigator.userAgent);if(r.includes("Version/")){var n=h(r.split("Version/")[1].split(" ")[0].split(".").map((function(e){return Number(e)})),2),o=n[0],s=n[1];i=o<16||16===o&&s<2}}var l=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),c=a();return{isSafari:i||c,needPerspectiveFix:i,need3dFix:c||l&&t.ios,isWebView:l}}()),re}var Pe={on:function(e,t,i){var a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;var r=i?"unshift":"push";return e.split(" ").forEach((function(e){a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e][r](t)})),a},once:function(e,t,i){var a=this;if(!a.eventsListeners||a.destroyed)return a;if("function"!=typeof t)return a;function r(){a.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];t.apply(a,n)}return r.__emitterProxy=t,a.on(e,r,i)},onAny:function(e,t){var i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;var a=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[a](e),i},offAny:function(e){var t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;var i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off:function(e,t){var i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((function(a,r){(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&i.eventsListeners[e].splice(r,1)}))})),i):i},emit:function(){var e,t,i,a=this;if(!a.eventsListeners||a.destroyed)return a;if(!a.eventsListeners)return a;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"string"==typeof n[0]||Array.isArray(n[0])?(e=n[0],t=n.slice(1,n.length),i=a):(e=n[0].events,t=n[0].data,i=n[0].context||a),t.unshift(i),(Array.isArray(e)?e:e.split(" ")).forEach((function(e){a.eventsAnyListeners&&a.eventsAnyListeners.length&&a.eventsAnyListeners.forEach((function(a){a.apply(i,[e].concat(f(t)))})),a.eventsListeners&&a.eventsListeners[e]&&a.eventsListeners[e].forEach((function(e){e.apply(i,t)}))})),a}};var ke=function(e,t,i){t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)};var _e=function(e,t){if(e&&!e.destroyed&&e.params){var i=t.closest(e.isElement?"swiper-slide":".".concat(e.params.slideClass));if(i){var a=i.querySelector(".".concat(e.params.lazyPreloaderClass));!a&&e.isElement&&(i.shadowRoot?a=i.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass)):requestAnimationFrame((function(){i.shadowRoot&&(a=i.shadowRoot.querySelector(".".concat(e.params.lazyPreloaderClass)))&&a.remove()}))),a&&a.remove()}}},Ie=function(e,t){if(e.slides[t]){var i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")}},Me=function(e){if(e&&!e.destroyed&&e.params){var t=e.params.lazyPreloadPrevNext,i=e.slides.length;if(i&&t&&!(t<0)){t=Math.min(t,i);var a="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){var n=r,o=[n-t];return o.push.apply(o,f(Array.from({length:t}).map((function(e,t){return n+a+t})))),void e.slides.forEach((function(t,i){o.includes(t.column)&&Ie(e,i)}))}var s=r+a-1;if(e.params.rewind||e.params.loop)for(var l=r-t;l<=s+t;l+=1){var c=(l%i+i)%i;(c<r||c>s)&&Ie(e,c)}else for(var d=Math.max(r-t,0);d<=Math.min(s+t,i-1);d+=1)d!==r&&(d>s||d<r)&&Ie(e,d)}}};var Le={updateSize:function(){var e,t,i=this,a=i.el;e=void 0!==i.params.width&&null!==i.params.width?i.params.width:a.clientWidth,t=void 0!==i.params.height&&null!==i.params.height?i.params.height:a.clientHeight,0===e&&i.isHorizontal()||0===t&&i.isVertical()||(e=e-parseInt(we(a,"padding-left")||0,10)-parseInt(we(a,"padding-right")||0,10),t=t-parseInt(we(a,"padding-top")||0,10)-parseInt(we(a,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))},updateSlides:function(){var e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}var i=e.params,a=e.wrapperEl,r=e.slidesEl,n=e.size,o=e.rtlTranslate,s=e.wrongRTL,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=me(r,".".concat(e.params.slideClass,", swiper-slide")),u=l?e.virtual.slides.length:d.length,p=[],h=[],f=[],m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));var v=i.slidesOffsetAfter;"function"==typeof v&&(v=i.slidesOffsetAfter.call(e));var g=e.snapGrid.length,w=e.slidesGrid.length,y=i.spaceBetween,b=-m,x=0,E=0;if(void 0!==n){"string"==typeof y&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*n:"string"==typeof y&&(y=parseFloat(y)),e.virtualSize=-y,d.forEach((function(e){o?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),i.centeredSlides&&i.cssMode&&(pe(a,"--swiper-centered-offset-before",""),pe(a,"--swiper-centered-offset-after",""));var S,T=i.grid&&i.grid.rows>1&&e.grid;T?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();for(var C="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter((function(e){return void 0!==i.breakpoints[e].slidesPerView})).length>0,P=0;P<u;P+=1){S=0;var k=void 0;if(d[P]&&(k=d[P]),T&&e.grid.updateSlide(P,k,d),!d[P]||"none"!==we(k,"display")){if("auto"===i.slidesPerView){C&&(d[P].style[e.getDirectionLabel("width")]="");var _=getComputedStyle(k),I=k.style.transform,M=k.style.webkitTransform;if(I&&(k.style.transform="none"),M&&(k.style.webkitTransform="none"),i.roundLengths)S=e.isHorizontal()?xe(k,"width",!0):xe(k,"height",!0);else{var L=t(_,"width"),A=t(_,"padding-left"),O=t(_,"padding-right"),N=t(_,"margin-left"),D=t(_,"margin-right"),j=_.getPropertyValue("box-sizing");if(j&&"border-box"===j)S=L+N+D;else{var B=k,z=B.clientWidth;S=L+A+O+N+D+(B.offsetWidth-z)}}I&&(k.style.transform=I),M&&(k.style.webkitTransform=M),i.roundLengths&&(S=Math.floor(S))}else S=(n-(i.slidesPerView-1)*y)/i.slidesPerView,i.roundLengths&&(S=Math.floor(S)),d[P]&&(d[P].style[e.getDirectionLabel("width")]="".concat(S,"px"));d[P]&&(d[P].swiperSlideSize=S),f.push(S),i.centeredSlides?(b=b+S/2+x/2+y,0===x&&0!==P&&(b=b-n/2-y),0===P&&(b=b-n/2-y),Math.abs(b)<.001&&(b=0),i.roundLengths&&(b=Math.floor(b)),E%i.slidesPerGroup==0&&p.push(b),h.push(b)):(i.roundLengths&&(b=Math.floor(b)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup==0&&p.push(b),h.push(b),b=b+S+y),e.virtualSize+=S+y,x=S,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,n)+v,o&&s&&("slide"===i.effect||"coverflow"===i.effect)&&(a.style.width="".concat(e.virtualSize+y,"px")),i.setWrapperSize&&(a.style[e.getDirectionLabel("width")]="".concat(e.virtualSize+y,"px")),T&&e.grid.updateWrapperSize(S,p),!i.centeredSlides){for(var G=[],R=0;R<p.length;R+=1){var q=p[R];i.roundLengths&&(q=Math.floor(q)),p[R]<=e.virtualSize-n&&G.push(q)}p=G,Math.floor(e.virtualSize-n)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-n)}if(l&&i.loop){var H=f[0]+y;if(i.slidesPerGroup>1)for(var $=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),F=H*i.slidesPerGroup,U=0;U<$;U+=1)p.push(p[p.length-1]+F);for(var W=0;W<e.virtual.slidesBefore+e.virtual.slidesAfter;W+=1)1===i.slidesPerGroup&&p.push(p[p.length-1]+H),h.push(h[h.length-1]+H),e.virtualSize+=H}if(0===p.length&&(p=[0]),0!==y){var V=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");d.filter((function(e,t){return!(i.cssMode&&!i.loop)||t!==d.length-1})).forEach((function(e){e.style[V]="".concat(y,"px")}))}if(i.centeredSlides&&i.centeredSlidesBounds){var X=0;f.forEach((function(e){X+=e+(y||0)}));var Y=(X-=y)-n;p=p.map((function(e){return e<=0?-m:e>Y?Y+v:e}))}if(i.centerInsufficientSlides){var Q=0;if(f.forEach((function(e){Q+=e+(y||0)})),(Q-=y)<n){var Z=(n-Q)/2;p.forEach((function(e,t){p[t]=e-Z})),h.forEach((function(e,t){h[t]=e+Z}))}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:f}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){pe(a,"--swiper-centered-offset-before","".concat(-p[0],"px")),pe(a,"--swiper-centered-offset-after","".concat(e.size/2-f[f.length-1]/2,"px"));var K=-e.snapGrid[0],J=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((function(e){return e+K})),e.slidesGrid=e.slidesGrid.map((function(e){return e+J}))}if(u!==c&&e.emit("slidesLengthChange"),p.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==w&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){var ee="".concat(i.containerModifierClass,"backface-hidden"),te=e.el.classList.contains(ee);u<=i.maxBackfaceHiddenSlides?te||e.el.classList.add(ee):te&&e.el.classList.remove(ee)}}},updateAutoHeight:function(e){var t,i=this,a=[],r=i.virtual&&i.params.virtual.enabled,n=0;"number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed);var o=function(e){return r?i.slides[i.getSlideIndexByData(e)]:i.slides[e]};if("auto"!==i.params.slidesPerView&&i.params.slidesPerView>1)if(i.params.centeredSlides)(i.visibleSlides||[]).forEach((function(e){a.push(e)}));else for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var s=i.activeIndex+t;if(s>i.slides.length&&!r)break;a.push(o(s))}else a.push(o(i.activeIndex));for(t=0;t<a.length;t+=1)if(void 0!==a[t]){var l=a[t].offsetHeight;n=l>n?l:n}(n||0===n)&&(i.wrapperEl.style.height="".concat(n,"px"))},updateSlidesOffset:function(){for(var e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0,a=0;a<t.length;a+=1)t[a].swiperSlideOffset=(e.isHorizontal()?t[a].offsetLeft:t[a].offsetTop)-i-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,a=t.slides,r=t.rtlTranslate,n=t.snapGrid;if(0!==a.length){void 0===a[0].swiperSlideOffset&&t.updateSlidesOffset();var o=-e;r&&(o=e),a.forEach((function(e){e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass)})),t.visibleSlidesIndexes=[],t.visibleSlides=[];var s=i.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(var l=0;l<a.length;l+=1){var c=a[l],d=c.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(d-=a[0].swiperSlideOffset);var u=(o+(i.centeredSlides?t.minTranslate():0)-d)/(c.swiperSlideSize+s),p=(o-n[0]+(i.centeredSlides?t.minTranslate():0)-d)/(c.swiperSlideSize+s),h=-(o-d),f=h+t.slidesSizesGrid[l],m=h>=0&&h<=t.size-t.slidesSizesGrid[l];(h>=0&&h<t.size-1||f>1&&f<=t.size||h<=0&&f>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),a[l].classList.add(i.slideVisibleClass)),m&&a[l].classList.add(i.slideFullyVisibleClass),c.progress=r?-u:u,c.originalProgress=r?-p:p}}},updateProgress:function(e){var t=this;if(void 0===e){var i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}var a=t.params,r=t.maxTranslate()-t.minTranslate(),n=t.progress,o=t.isBeginning,s=t.isEnd,l=t.progressLoop,c=o,d=s;if(0===r)n=0,o=!0,s=!0;else{n=(e-t.minTranslate())/r;var u=Math.abs(e-t.minTranslate())<1,p=Math.abs(e-t.maxTranslate())<1;o=u||n<=0,s=p||n>=1,u&&(n=0),p&&(n=1)}if(a.loop){var h=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),m=t.slidesGrid[h],v=t.slidesGrid[f],g=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);(l=w>=m?(w-m)/g:(w+g-v)/g)>1&&(l-=1)}Object.assign(t,{progress:n,progressLoop:l,isBeginning:o,isEnd:s}),(a.watchSlidesProgress||a.centeredSlides&&a.autoHeight)&&t.updateSlidesProgress(e),o&&!c&&t.emit("reachBeginning toEdge"),s&&!d&&t.emit("reachEnd toEdge"),(c&&!o||d&&!s)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){var e,t,i,a=this,r=a.slides,n=a.params,o=a.slidesEl,s=a.activeIndex,l=a.virtual&&n.virtual.enabled,c=a.grid&&n.grid&&n.grid.rows>1,d=function(e){return me(o,".".concat(n.slideClass).concat(e,", swiper-slide").concat(e))[0]};if(l)if(n.loop){var u=s-a.virtual.slidesBefore;u<0&&(u=a.virtual.slides.length+u),u>=a.virtual.slides.length&&(u-=a.virtual.slides.length),e=d('[data-swiper-slide-index="'.concat(u,'"]'))}else e=d('[data-swiper-slide-index="'.concat(s,'"]'));else c?(e=r.filter((function(e){return e.column===s}))[0],i=r.filter((function(e){return e.column===s+1}))[0],t=r.filter((function(e){return e.column===s-1}))[0]):e=r[s];e&&(c||(i=function(e,t){for(var i=[];e.nextElementSibling;){var a=e.nextElementSibling;t?a.matches(t)&&i.push(a):i.push(a),e=a}return i}(e,".".concat(n.slideClass,", swiper-slide"))[0],n.loop&&!i&&(i=r[0]),t=function(e,t){for(var i=[];e.previousElementSibling;){var a=e.previousElementSibling;t?a.matches(t)&&i.push(a):i.push(a),e=a}return i}(e,".".concat(n.slideClass,", swiper-slide"))[0],n.loop&&0===!t&&(t=r[r.length-1]))),r.forEach((function(a){ke(a,a===e,n.slideActiveClass),ke(a,a===i,n.slideNextClass),ke(a,a===t,n.slidePrevClass)})),a.emitSlidesClasses()},updateActiveIndex:function(e){var t,i=this,a=i.rtlTranslate?i.translate:-i.translate,r=i.snapGrid,n=i.params,o=i.activeIndex,s=i.realIndex,l=i.snapIndex,c=e,d=function(e){var t=e-i.virtual.slidesBefore;return t<0&&(t=i.virtual.slides.length+t),t>=i.virtual.slides.length&&(t-=i.virtual.slides.length),t};if(void 0===c&&(c=function(e){for(var t,i=e.slidesGrid,a=e.params,r=e.rtlTranslate?e.translate:-e.translate,n=0;n<i.length;n+=1)void 0!==i[n+1]?r>=i[n]&&r<i[n+1]-(i[n+1]-i[n])/2?t=n:r>=i[n]&&r<i[n+1]&&(t=n+1):r>=i[n]&&(t=n);return a.normalizeSlideIndex&&(t<0||void 0===t)&&(t=0),t}(i)),r.indexOf(a)>=0)t=r.indexOf(a);else{var u=Math.min(n.slidesPerGroupSkip,c);t=u+Math.floor((c-u)/n.slidesPerGroup)}if(t>=r.length&&(t=r.length-1),c!==o||i.params.loop)if(c===o&&i.params.loop&&i.virtual&&i.params.virtual.enabled)i.realIndex=d(c);else{var p,h=i.grid&&n.grid&&n.grid.rows>1;if(i.virtual&&n.virtual.enabled&&n.loop)p=d(c);else if(h){var f=i.slides.filter((function(e){return e.column===c}))[0],m=parseInt(f.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(i.slides.indexOf(f),0)),p=Math.floor(m/n.grid.rows)}else if(i.slides[c]){var v=i.slides[c].getAttribute("data-swiper-slide-index");p=v?parseInt(v,10):c}else p=c;Object.assign(i,{previousSnapIndex:l,snapIndex:t,previousRealIndex:s,realIndex:p,previousIndex:o,activeIndex:c}),i.initialized&&Me(i),i.emit("activeIndexChange"),i.emit("snapIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&(s!==p&&i.emit("realIndexChange"),i.emit("slideChange"))}else t!==l&&(i.snapIndex=t,i.emit("snapIndexChange"))},updateClickedSlide:function(e,t){var i=this,a=i.params,r=e.closest(".".concat(a.slideClass,", swiper-slide"));!r&&i.isElement&&t&&t.length>1&&t.includes(e)&&f(t.slice(t.indexOf(e)+1,t.length)).forEach((function(e){!r&&e.matches&&e.matches(".".concat(a.slideClass,", swiper-slide"))&&(r=e)}));var n,o=!1;if(r)for(var s=0;s<i.slides.length;s+=1)if(i.slides[s]===r){o=!0,n=s;break}if(!r||!o)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=n,a.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}};var Ae={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,i=t.params,a=t.rtlTranslate,r=t.translate,n=t.wrapperEl;if(i.virtualTranslate)return a?-r:r;if(i.cssMode)return r;var o=ce(n,e);return o+=t.cssOverflowAdjustment(),a&&(o=-o),o||0},setTranslate:function(e,t){var i=this,a=i.rtlTranslate,r=i.params,n=i.wrapperEl,o=i.progress,s=0,l=0;i.isHorizontal()?s=a?-e:e:l=e,r.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?s:l,r.cssMode?n[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-s:-l:r.virtualTranslate||(i.isHorizontal()?s-=i.cssOverflowAdjustment():l-=i.cssOverflowAdjustment(),n.style.transform="translate3d(".concat(s,"px, ").concat(l,"px, ").concat(0,"px)"));var c=i.maxTranslate()-i.minTranslate();(0===c?0:(e-i.minTranslate())/c)!==o&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,a,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===a&&(a=!0);var n=this,o=n.params,s=n.wrapperEl;if(n.animating&&o.preventInteractionOnTransition)return!1;var l,c=n.minTranslate(),d=n.maxTranslate();if(l=a&&e>c?c:a&&e<d?d:e,n.updateProgress(l),o.cssMode){var u=n.isHorizontal();if(0===t)s[u?"scrollLeft":"scrollTop"]=-l;else{if(!n.support.smoothScroll)return he({swiper:n,targetPosition:-l,side:u?"left":"top"}),!0;s.scrollTo(p(p({},u?"left":"top",-l),"behavior","smooth"))}return!0}return 0===t?(n.setTransition(0),n.setTranslate(l),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionEnd"))):(n.setTransition(t),n.setTranslate(l),i&&(n.emit("beforeTransitionStart",t,r),n.emit("transitionStart")),n.animating||(n.animating=!0,n.onTranslateToWrapperTransitionEnd||(n.onTranslateToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onTranslateToWrapperTransitionEnd),n.onTranslateToWrapperTransitionEnd=null,delete n.onTranslateToWrapperTransitionEnd,n.animating=!1,i&&n.emit("transitionEnd"))}),n.wrapperEl.addEventListener("transitionend",n.onTranslateToWrapperTransitionEnd))),!0}};function Oe(e){var t=e.swiper,i=e.runCallbacks,a=e.direction,r=e.step,n=t.activeIndex,o=t.previousIndex,s=a;if(s||(s=n>o?"next":n<o?"prev":"reset"),t.emit("transition".concat(r)),i&&n!==o){if("reset"===s)return void t.emit("slideResetTransition".concat(r));t.emit("slideChangeTransition".concat(r)),"next"===s?t.emit("slideNextTransition".concat(r)):t.emit("slidePrevTransition".concat(r))}}var Ne={slideTo:function(e,t,i,a,r){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));var n=this,o=e;o<0&&(o=0);var s=n.params,l=n.snapGrid,c=n.slidesGrid,d=n.previousIndex,u=n.activeIndex,h=n.rtlTranslate,f=n.wrapperEl;if(!n.enabled&&!a&&!r||n.destroyed||n.animating&&s.preventInteractionOnTransition)return!1;void 0===t&&(t=n.params.speed);var m=Math.min(n.params.slidesPerGroupSkip,o),v=m+Math.floor((o-m)/n.params.slidesPerGroup);v>=l.length&&(v=l.length-1);var g,w=-l[v];if(s.normalizeSlideIndex)for(var y=0;y<c.length;y+=1){var b=-Math.floor(100*w),x=Math.floor(100*c[y]),E=Math.floor(100*c[y+1]);void 0!==c[y+1]?b>=x&&b<E-(E-x)/2?o=y:b>=x&&b<E&&(o=y+1):b>=x&&(o=y)}if(n.initialized&&o!==u){if(!n.allowSlideNext&&(h?w>n.translate&&w>n.minTranslate():w<n.translate&&w<n.minTranslate()))return!1;if(!n.allowSlidePrev&&w>n.translate&&w>n.maxTranslate()&&(u||0)!==o)return!1}if(o!==(d||0)&&i&&n.emit("beforeSlideChangeStart"),n.updateProgress(w),g=o>u?"next":o<u?"prev":"reset",h&&-w===n.translate||!h&&w===n.translate)return n.updateActiveIndex(o),s.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==s.effect&&n.setTranslate(w),"reset"!==g&&(n.transitionStart(i,g),n.transitionEnd(i,g)),!1;if(s.cssMode){var S=n.isHorizontal(),T=h?w:-w;if(0===t){var C=n.virtual&&n.params.virtual.enabled;C&&(n.wrapperEl.style.scrollSnapType="none",n._immediateVirtual=!0),C&&!n._cssModeVirtualInitialSet&&n.params.initialSlide>0?(n._cssModeVirtualInitialSet=!0,requestAnimationFrame((function(){f[S?"scrollLeft":"scrollTop"]=T}))):f[S?"scrollLeft":"scrollTop"]=T,C&&requestAnimationFrame((function(){n.wrapperEl.style.scrollSnapType="",n._immediateVirtual=!1}))}else{if(!n.support.smoothScroll)return he({swiper:n,targetPosition:T,side:S?"left":"top"}),!0;f.scrollTo(p(p({},S?"left":"top",T),"behavior","smooth"))}return!0}return n.setTransition(t),n.setTranslate(w),n.updateActiveIndex(o),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,a),n.transitionStart(i,g),0===t?n.transitionEnd(i,g):n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.wrapperEl.removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,g))}),n.wrapperEl.addEventListener("transitionend",n.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,a){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));var r=this;if(!r.destroyed){void 0===t&&(t=r.params.speed);var n=r.grid&&r.params.grid&&r.params.grid.rows>1,o=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o+=r.virtual.slidesBefore;else{var s;if(n){var l=o*r.params.grid.rows;s=r.slides.filter((function(e){return 1*e.getAttribute("data-swiper-slide-index")===l}))[0].column}else s=r.getSlideIndexByData(o);var c=n?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,d=r.params.centeredSlides,u=r.params.slidesPerView;"auto"===u?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),d&&u%2==0&&(u+=1));var p=c-s<u;if(d&&(p=p||s<Math.ceil(u/2)),a&&d&&"auto"!==r.params.slidesPerView&&!n&&(p=!1),p){var h=d?s<r.activeIndex?"prev":"next":s-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:h,slideTo:!0,activeSlideIndex:"next"===h?s+1:s-c+1,slideRealIndex:"next"===h?r.realIndex:void 0})}if(n){var f=o*r.params.grid.rows;o=r.slides.filter((function(e){return 1*e.getAttribute("data-swiper-slide-index")===f}))[0].column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame((function(){r.slideTo(o,t,i,a)})),r}},slideNext:function(e,t,i){void 0===t&&(t=!0);var a=this,r=a.enabled,n=a.params,o=a.animating;if(!r||a.destroyed)return a;void 0===e&&(e=a.params.speed);var s=n.slidesPerGroup;"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(s=Math.max(a.slidesPerViewDynamic("current",!0),1));var l=a.activeIndex<n.slidesPerGroupSkip?1:s,c=a.virtual&&n.virtual.enabled;if(n.loop){if(o&&!c&&n.loopPreventsSliding)return!1;if(a.loopFix({direction:"next"}),a._clientLeft=a.wrapperEl.clientLeft,a.activeIndex===a.slides.length-1&&n.cssMode)return requestAnimationFrame((function(){a.slideTo(a.activeIndex+l,e,t,i)})),!0}return n.rewind&&a.isEnd?a.slideTo(0,e,t,i):a.slideTo(a.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);var a=this,r=a.params,n=a.snapGrid,o=a.slidesGrid,s=a.rtlTranslate,l=a.enabled,c=a.animating;if(!l||a.destroyed)return a;void 0===e&&(e=a.params.speed);var d=a.virtual&&r.virtual.enabled;if(r.loop){if(c&&!d&&r.loopPreventsSliding)return!1;a.loopFix({direction:"prev"}),a._clientLeft=a.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var p,h=u(s?a.translate:-a.translate),f=n.map((function(e){return u(e)})),m=n[f.indexOf(h)-1];void 0===m&&r.cssMode&&(n.forEach((function(e,t){h>=e&&(p=t)})),void 0!==p&&(m=n[p>0?p-1:p]));var v=0;if(void 0!==m&&((v=o.indexOf(m))<0&&(v=a.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(v=v-a.slidesPerViewDynamic("previous",!0)+1,v=Math.max(v,0))),r.rewind&&a.isBeginning){var g=a.params.virtual&&a.params.virtual.enabled&&a.virtual?a.virtual.slides.length-1:a.slides.length-1;return a.slideTo(g,e,t,i)}return r.loop&&0===a.activeIndex&&r.cssMode?(requestAnimationFrame((function(){a.slideTo(v,e,t,i)})),!0):a.slideTo(v,e,t,i)},slideReset:function(e,t,i){void 0===t&&(t=!0);var a=this;if(!a.destroyed)return void 0===e&&(e=a.params.speed),a.slideTo(a.activeIndex,e,t,i)},slideToClosest:function(e,t,i,a){void 0===t&&(t=!0),void 0===a&&(a=.5);var r=this;if(!r.destroyed){void 0===e&&(e=r.params.speed);var n=r.activeIndex,o=Math.min(r.params.slidesPerGroupSkip,n),s=o+Math.floor((n-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[s]){var c=r.snapGrid[s];l-c>(r.snapGrid[s+1]-c)*a&&(n+=r.params.slidesPerGroup)}else{var d=r.snapGrid[s-1];l-d<=(r.snapGrid[s]-d)*a&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,i)}},slideToClickedSlide:function(){var e=this;if(!e.destroyed){var t,i=e.params,a=e.slidesEl,r="auto"===i.slidesPerView?e.slidesPerViewDynamic():i.slidesPerView,n=e.clickedIndex,o=e.isElement?"swiper-slide":".".concat(i.slideClass);if(i.loop){if(e.animating)return;t=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),i.centeredSlides?n<e.loopedSlides-r/2||n>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),n=e.getSlideIndex(me(a,"".concat(o,'[data-swiper-slide-index="').concat(t,'"]'))[0]),se((function(){e.slideTo(n)}))):e.slideTo(n):n>e.slides.length-r?(e.loopFix(),n=e.getSlideIndex(me(a,"".concat(o,'[data-swiper-slide-index="').concat(t,'"]'))[0]),se((function(){e.slideTo(n)}))):e.slideTo(n)}else e.slideTo(n)}}};var De={loopCreate:function(e){var t=this,i=t.params,a=t.slidesEl;if(!(!i.loop||t.virtual&&t.params.virtual.enabled)){var r=function(){me(a,".".concat(i.slideClass,", swiper-slide")).forEach((function(e,t){e.setAttribute("data-swiper-slide-index",t)}))},n=t.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(n?i.grid.rows:1),s=t.slides.length%o!=0,l=n&&t.slides.length%i.grid.rows!=0,c=function(e){for(var a=0;a<e;a+=1){var r=t.isElement?ge("swiper-slide",[i.slideBlankClass]):ge("div",[i.slideClass,i.slideBlankClass]);t.slidesEl.append(r)}};if(s){if(i.loopAddBlankSlides)c(o-t.slides.length%o),t.recalcSlides(),t.updateSlides();else ve("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(l){if(i.loopAddBlankSlides)c(i.grid.rows-t.slides.length%i.grid.rows),t.recalcSlides(),t.updateSlides();else ve("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})}},loopFix:function(e){var t=void 0===e?{}:e,i=t.slideRealIndex,a=t.slideTo,r=void 0===a||a,n=t.direction,s=t.setTranslate,l=t.activeSlideIndex,c=t.byController,d=t.byMousewheel,u=this;if(u.params.loop){u.emit("beforeLoopFix");var p=u.slides,h=u.allowSlidePrev,f=u.allowSlideNext,m=u.slidesEl,v=u.params,g=v.centeredSlides;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&v.virtual.enabled)return r&&(v.centeredSlides||0!==u.snapIndex?v.centeredSlides&&u.snapIndex<v.slidesPerView?u.slideTo(u.virtual.slides.length+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(u.virtual.slidesBefore,0,!1,!0):u.slideTo(u.virtual.slides.length,0,!1,!0)),u.allowSlidePrev=h,u.allowSlideNext=f,void u.emit("loopFix");var w=v.slidesPerView;"auto"===w?w=u.slidesPerViewDynamic():(w=Math.ceil(parseFloat(v.slidesPerView,10)),g&&w%2==0&&(w+=1));var y=v.slidesPerGroupAuto?w:v.slidesPerGroup,b=y;b%y!=0&&(b+=y-b%y),b+=v.loopAdditionalSlides,u.loopedSlides=b;var x=u.grid&&v.grid&&v.grid.rows>1;p.length<w+b?ve("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):x&&"row"===v.grid.fill&&ve("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");var E=[],S=[],T=u.activeIndex;void 0===l?l=u.getSlideIndex(p.filter((function(e){return e.classList.contains(v.slideActiveClass)}))[0]):T=l;var C="next"===n||!n,P="prev"===n||!n,k=0,_=0,I=x?Math.ceil(p.length/v.grid.rows):p.length,M=(x?p[l].column:l)+(g&&void 0===s?-w/2+.5:0);if(M<b){k=Math.max(b-M,y);for(var L=0;L<b-M;L+=1){var A=L-Math.floor(L/I)*I;if(x)for(var O=I-A-1,N=p.length-1;N>=0;N-=1)p[N].column===O&&E.push(N);else E.push(I-A-1)}}else if(M+w>I-b){_=Math.max(M-(I-2*b),y);for(var D=function(){var e=j-Math.floor(j/I)*I;x?p.forEach((function(t,i){t.column===e&&S.push(i)})):S.push(e)},j=0;j<_;j+=1)D()}if(u.__preventObserver__=!0,requestAnimationFrame((function(){u.__preventObserver__=!1})),P&&E.forEach((function(e){p[e].swiperLoopMoveDOM=!0,m.prepend(p[e]),p[e].swiperLoopMoveDOM=!1})),C&&S.forEach((function(e){p[e].swiperLoopMoveDOM=!0,m.append(p[e]),p[e].swiperLoopMoveDOM=!1})),u.recalcSlides(),"auto"===v.slidesPerView?u.updateSlides():x&&(E.length>0&&P||S.length>0&&C)&&u.slides.forEach((function(e,t){u.grid.updateSlide(t,e,u.slides)})),v.watchSlidesProgress&&u.updateSlidesOffset(),r)if(E.length>0&&P){if(void 0===i){var B=u.slidesGrid[T],z=u.slidesGrid[T+k]-B;d?u.setTranslate(u.translate-z):(u.slideTo(T+Math.ceil(k),0,!1,!0),s&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-z,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-z))}else if(s){var G=x?E.length/v.grid.rows:E.length;u.slideTo(u.activeIndex+G,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(S.length>0&&C)if(void 0===i){var R=u.slidesGrid[T],q=u.slidesGrid[T-_]-R;d?u.setTranslate(u.translate-q):(u.slideTo(T-_,0,!1,!0),s&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-q,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-q))}else{var H=x?S.length/v.grid.rows:S.length;u.slideTo(u.activeIndex-H,0,!1,!0)}if(u.allowSlidePrev=h,u.allowSlideNext=f,u.controller&&u.controller.control&&!c){var $={slideRealIndex:i,direction:n,setTranslate:s,activeSlideIndex:l,byController:!0};Array.isArray(u.controller.control)?u.controller.control.forEach((function(e){!e.destroyed&&e.params.loop&&e.loopFix(o(o({},$),{},{slideTo:e.params.slidesPerView===v.slidesPerView&&r}))})):u.controller.control instanceof u.constructor&&u.controller.control.params.loop&&u.controller.control.loopFix(o(o({},$),{},{slideTo:u.controller.control.params.slidesPerView===v.slidesPerView&&r}))}u.emit("loopFix")}},loopDestroy:function(){var e=this,t=e.params,i=e.slidesEl;if(!(!t.loop||e.virtual&&e.params.virtual.enabled)){e.recalcSlides();var a=[];e.slides.forEach((function(e){var t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;a[t]=e})),e.slides.forEach((function(e){e.removeAttribute("data-swiper-slide-index")})),a.forEach((function(e){i.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}}};function je(e,t,i){var a=oe(),r=e.params,n=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return!n||!(i<=o||i>=a.innerWidth-o)||"prevent"===n&&(t.preventDefault(),!0)}function Be(e){var t=this,i=te(),a=e;a.originalEvent&&(a=a.originalEvent);var r=t.touchEventsData;if("pointerdown"===a.type){if(null!==r.pointerId&&r.pointerId!==a.pointerId)return;r.pointerId=a.pointerId}else"touchstart"===a.type&&1===a.targetTouches.length&&(r.touchId=a.targetTouches[0].identifier);if("touchstart"!==a.type){var n=t.params,o=t.touches;if(t.enabled&&(n.simulateTouch||"mouse"!==a.pointerType)&&(!t.animating||!n.preventInteractionOnTransition)){!t.animating&&n.cssMode&&n.loop&&t.loopFix();var s=a.target;if(("wrapper"!==n.touchEventsTarget||t.wrapperEl.contains(s))&&!("which"in a&&3===a.which||"button"in a&&a.button>0||r.isTouched&&r.isMoved)){var l=!!n.noSwipingClass&&""!==n.noSwipingClass,c=a.composedPath?a.composedPath():a.path;l&&a.target&&a.target.shadowRoot&&c&&(s=c[0]);var d=n.noSwipingSelector?n.noSwipingSelector:".".concat(n.noSwipingClass),u=!(!a.target||!a.target.shadowRoot);if(n.noSwiping&&(u?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===te()||i===oe())return null;i.assignedSlot&&(i=i.assignedSlot);var a=i.closest(e);return a||i.getRootNode?a||t(i.getRootNode().host):null}(t)}(d,s):s.closest(d)))t.allowClick=!0;else if(!n.swipeHandler||s.closest(n.swipeHandler)){o.currentX=a.pageX,o.currentY=a.pageY;var p=o.currentX,h=o.currentY;if(je(t,a,p)){Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=h,r.touchStartTime=le(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(r.allowThresholdMove=!1);var f=!0;s.matches(r.focusableElements)&&(f=!1,"SELECT"===s.nodeName&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==s&&i.activeElement.blur();var m=f&&t.allowTouchMove&&n.touchStartPreventDefault;!n.touchStartForcePreventDefault&&!m||s.isContentEditable||a.preventDefault(),n.freeMode&&n.freeMode.enabled&&t.freeMode&&t.animating&&!n.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}}}}}else je(t,a,a.targetTouches[0].pageX)}function ze(e){var t=te(),i=this,a=i.touchEventsData,r=i.params,n=i.touches,o=i.rtlTranslate;if(i.enabled&&(r.simulateTouch||"mouse"!==e.pointerType)){var s,l=e;if(l.originalEvent&&(l=l.originalEvent),"pointermove"===l.type){if(null!==a.touchId)return;if(l.pointerId!==a.pointerId)return}if("touchmove"===l.type){if(!(s=f(l.changedTouches).filter((function(e){return e.identifier===a.touchId}))[0])||s.identifier!==a.touchId)return}else s=l;if(a.isTouched){var c=s.pageX,d=s.pageY;if(l.preventedByNestedSwiper)return n.startX=c,void(n.startY=d);if(!i.allowTouchMove)return l.target.matches(a.focusableElements)||(i.allowClick=!1),void(a.isTouched&&(Object.assign(n,{startX:c,startY:d,currentX:c,currentY:d}),a.touchStartTime=le()));if(r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(d<n.startY&&i.translate<=i.maxTranslate()||d>n.startY&&i.translate>=i.minTranslate())return a.isTouched=!1,void(a.isMoved=!1)}else if(c<n.startX&&i.translate<=i.maxTranslate()||c>n.startX&&i.translate>=i.minTranslate())return;if(t.activeElement&&l.target===t.activeElement&&l.target.matches(a.focusableElements))return a.isMoved=!0,void(i.allowClick=!1);a.allowTouchCallbacks&&i.emit("touchMove",l),n.previousX=n.currentX,n.previousY=n.currentY,n.currentX=c,n.currentY=d;var u=n.currentX-n.startX,p=n.currentY-n.startY;if(!(i.params.threshold&&Math.sqrt(Math.pow(u,2)+Math.pow(p,2))<i.params.threshold)){var h;if(void 0===a.isScrolling)i.isHorizontal()&&n.currentY===n.startY||i.isVertical()&&n.currentX===n.startX?a.isScrolling=!1:u*u+p*p>=25&&(h=180*Math.atan2(Math.abs(p),Math.abs(u))/Math.PI,a.isScrolling=i.isHorizontal()?h>r.touchAngle:90-h>r.touchAngle);if(a.isScrolling&&i.emit("touchMoveOpposite",l),void 0===a.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(a.startMoving=!0)),a.isScrolling)a.isTouched=!1;else if(a.startMoving){i.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();var m=i.isHorizontal()?u:p,v=i.isHorizontal()?n.currentX-n.previousX:n.currentY-n.previousY;r.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),n.diff=m,m*=r.touchRatio,o&&(m=-m,v=-v);var g=i.touchesDirection;i.swipeDirection=m>0?"prev":"next",i.touchesDirection=v>0?"prev":"next";var w=i.params.loop&&!r.cssMode,y="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!a.isMoved){if(w&&y&&i.loopFix({direction:i.swipeDirection}),a.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){var b=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(b)}a.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",l)}if((new Date).getTime(),a.isMoved&&a.allowThresholdMove&&g!==i.touchesDirection&&w&&y&&Math.abs(m)>=1)return Object.assign(n,{startX:c,startY:d,currentX:c,currentY:d,startTranslate:a.currentTranslate}),a.loopSwapReset=!0,void(a.startTranslate=a.currentTranslate);i.emit("sliderMove",l),a.isMoved=!0,a.currentTranslate=m+a.startTranslate;var x=!0,E=r.resistanceRatio;if(r.touchReleaseOnEdges&&(E=0),m>0?(w&&y&&a.allowThresholdMove&&a.currentTranslate>(r.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),a.currentTranslate>i.minTranslate()&&(x=!1,r.resistance&&(a.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+a.startTranslate+m,E)))):m<0&&(w&&y&&a.allowThresholdMove&&a.currentTranslate<(r.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]:i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===r.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),a.currentTranslate<i.maxTranslate()&&(x=!1,r.resistance&&(a.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-a.startTranslate-m,E)))),x&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),i.allowSlidePrev||i.allowSlideNext||(a.currentTranslate=a.startTranslate),r.threshold>0){if(!(Math.abs(m)>r.threshold||a.allowThresholdMove))return void(a.currentTranslate=a.startTranslate);if(!a.allowThresholdMove)return a.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,a.currentTranslate=a.startTranslate,void(n.diff=i.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode&&r.freeMode.enabled&&i.freeMode||r.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(a.currentTranslate),i.setTranslate(a.currentTranslate))}}}else a.startMoving&&a.isScrolling&&i.emit("touchMoveOpposite",l)}}function Ge(e){var t,i=this,a=i.touchEventsData,r=e;if(r.originalEvent&&(r=r.originalEvent),"touchend"===r.type||"touchcancel"===r.type){if(!(t=f(r.changedTouches).filter((function(e){return e.identifier===a.touchId}))[0])||t.identifier!==a.touchId)return}else{if(null!==a.touchId)return;if(r.pointerId!==a.pointerId)return;t=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(i.browser.isSafari||i.browser.isWebView)))return;a.pointerId=null,a.touchId=null;var n=i.params,o=i.touches,s=i.rtlTranslate,l=i.slidesGrid;if(i.enabled&&(n.simulateTouch||"mouse"!==r.pointerType)){if(a.allowTouchCallbacks&&i.emit("touchEnd",r),a.allowTouchCallbacks=!1,!a.isTouched)return a.isMoved&&n.grabCursor&&i.setGrabCursor(!1),a.isMoved=!1,void(a.startMoving=!1);n.grabCursor&&a.isMoved&&a.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1);var c,d=le(),u=d-a.touchStartTime;if(i.allowClick){var p=r.path||r.composedPath&&r.composedPath();i.updateClickedSlide(p&&p[0]||r.target,p),i.emit("tap click",r),u<300&&d-a.lastClickTime<300&&i.emit("doubleTap doubleClick",r)}if(a.lastClickTime=le(),se((function(){i.destroyed||(i.allowClick=!0)})),!a.isTouched||!a.isMoved||!i.swipeDirection||0===o.diff&&!a.loopSwapReset||a.currentTranslate===a.startTranslate&&!a.loopSwapReset)return a.isTouched=!1,a.isMoved=!1,void(a.startMoving=!1);if(a.isTouched=!1,a.isMoved=!1,a.startMoving=!1,c=n.followFinger?s?i.translate:-i.translate:-a.currentTranslate,!n.cssMode)if(n.freeMode&&n.freeMode.enabled)i.freeMode.onTouchEnd({currentPos:c});else{for(var h=c>=-i.maxTranslate()&&!i.params.loop,m=0,v=i.slidesSizesGrid[0],g=0;g<l.length;g+=g<n.slidesPerGroupSkip?1:n.slidesPerGroup){var w=g<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;void 0!==l[g+w]?(h||c>=l[g]&&c<l[g+w])&&(m=g,v=l[g+w]-l[g]):(h||c>=l[g])&&(m=g,v=l[l.length-1]-l[l.length-2])}var y=null,b=null;n.rewind&&(i.isBeginning?b=n.virtual&&n.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1:i.isEnd&&(y=0));var x=(c-l[m])/v,E=m<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(u>n.longSwipesMs){if(!n.longSwipes)return void i.slideTo(i.activeIndex);"next"===i.swipeDirection&&(x>=n.longSwipesRatio?i.slideTo(n.rewind&&i.isEnd?y:m+E):i.slideTo(m)),"prev"===i.swipeDirection&&(x>1-n.longSwipesRatio?i.slideTo(m+E):null!==b&&x<0&&Math.abs(x)>n.longSwipesRatio?i.slideTo(b):i.slideTo(m))}else{if(!n.shortSwipes)return void i.slideTo(i.activeIndex);i.navigation&&(r.target===i.navigation.nextEl||r.target===i.navigation.prevEl)?r.target===i.navigation.nextEl?i.slideTo(m+E):i.slideTo(m):("next"===i.swipeDirection&&i.slideTo(null!==y?y:m+E),"prev"===i.swipeDirection&&i.slideTo(null!==b?b:m))}}}}function Re(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var a=e.allowSlideNext,r=e.allowSlidePrev,n=e.snapGrid,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();var s=o&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((function(){e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=r,e.allowSlideNext=a,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}}function qe(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function He(){var e=this,t=e.wrapperEl,i=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var a=e.maxTranslate()-e.minTranslate();(0===a?0:(e.translate-e.minTranslate())/a)!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}function $e(e){var t=this;_e(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}function Fe(){var e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}var Ue=function(e,t){var i=te(),a=e.params,r=e.el,n=e.wrapperEl,o=e.device,s=!!a.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;i[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:s}),r[l]("touchstart",e.onTouchStart,{passive:!1}),r[l]("pointerdown",e.onTouchStart,{passive:!1}),i[l]("touchmove",e.onTouchMove,{passive:!1,capture:s}),i[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),i[l]("touchend",e.onTouchEnd,{passive:!0}),i[l]("pointerup",e.onTouchEnd,{passive:!0}),i[l]("pointercancel",e.onTouchEnd,{passive:!0}),i[l]("touchcancel",e.onTouchEnd,{passive:!0}),i[l]("pointerout",e.onTouchEnd,{passive:!0}),i[l]("pointerleave",e.onTouchEnd,{passive:!0}),i[l]("contextmenu",e.onTouchEnd,{passive:!0}),(a.preventClicks||a.preventClicksPropagation)&&r[l]("click",e.onClick,!0),a.cssMode&&n[l]("scroll",e.onScroll),a.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",Re,!0):e[c]("observerUpdate",Re,!0),r[l]("load",e.onLoad,{capture:!0})};var We=function(e,t){return e.grid&&t.grid&&t.grid.rows>1};var Ve={setBreakpoint:function(){var e=this,t=e.realIndex,i=e.initialized,a=e.params,r=e.el,n=a.breakpoints;if(n&&(!n||0!==Object.keys(n).length)){var o=e.getBreakpoint(n,e.params.breakpointsBase,e.el);if(o&&e.currentBreakpoint!==o){var s=(o in n?n[o]:void 0)||e.originalParams,l=We(e,a),c=We(e,s),d=e.params.grabCursor,u=s.grabCursor,p=a.enabled;l&&!c?(r.classList.remove("".concat(a.containerModifierClass,"grid"),"".concat(a.containerModifierClass,"grid-column")),e.emitContainerClasses()):!l&&c&&(r.classList.add("".concat(a.containerModifierClass,"grid")),(s.grid.fill&&"column"===s.grid.fill||!s.grid.fill&&"column"===a.grid.fill)&&r.classList.add("".concat(a.containerModifierClass,"grid-column")),e.emitContainerClasses()),d&&!u?e.unsetGrabCursor():!d&&u&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((function(t){if(void 0!==s[t]){var i=a[t]&&a[t].enabled,r=s[t]&&s[t].enabled;i&&!r&&e[t].disable(),!i&&r&&e[t].enable()}}));var h=s.direction&&s.direction!==a.direction,f=a.loop&&(s.slidesPerView!==a.slidesPerView||h),m=a.loop;h&&i&&e.changeDirection(),ue(e.params,s);var v=e.params.enabled,g=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!v?e.disable():!p&&v&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",s),i&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!m&&g?(e.loopCreate(t),e.updateSlides()):m&&!g&&e.loopDestroy()),e.emit("breakpoint",s)}}},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),e&&("container"!==t||i)){var a=!1,r=oe(),n="window"===t?r.innerHeight:i.clientHeight,o=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:n*t,point:e}}return{value:e,point:e}}));o.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var s=0;s<o.length;s+=1){var l=o[s],c=l.point,d=l.value;"window"===t?r.matchMedia("(min-width: ".concat(d,"px)")).matches&&(a=c):d<=i.clientWidth&&(a=c)}return a||"max"}}};var Xe={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function Ye(e,t){return function(i){void 0===i&&(i={});var a=Object.keys(i)[0],r=i[a];"object"===c(r)&&null!==r?(!0===e[a]&&(e[a]={enabled:!0}),"navigation"===a&&e[a]&&e[a].enabled&&!e[a].prevEl&&!e[a].nextEl&&(e[a].auto=!0),["pagination","scrollbar"].indexOf(a)>=0&&e[a]&&e[a].enabled&&!e[a].el&&(e[a].auto=!0),a in e&&"enabled"in r?("object"!==c(e[a])||"enabled"in e[a]||(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),ue(t,i)):ue(t,i)):ue(t,i)}}var Qe={eventsEmitter:Pe,update:Le,translate:Ae,transition:{setTransition:function(e,t){var i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration="".concat(e,"ms"),i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this,a=i.params;a.cssMode||(a.autoHeight&&i.updateAutoHeight(),Oe({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this,a=i.params;i.animating=!1,a.cssMode||(i.setTransition(0),Oe({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:Ne,loop:De,grabCursor:{setGrabCursor:function(e){var t=this;if(!(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){var i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((function(){t.__preventObserver__=!1}))}},unsetGrabCursor:function(){var e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((function(){e.__preventObserver__=!1})))}},events:{attachEvents:function(){var e=this,t=e.params;e.onTouchStart=Be.bind(e),e.onTouchMove=ze.bind(e),e.onTouchEnd=Ge.bind(e),e.onDocumentTouchStart=Fe.bind(e),t.cssMode&&(e.onScroll=He.bind(e)),e.onClick=qe.bind(e),e.onLoad=$e.bind(e),Ue(e,"on")},detachEvents:function(){Ue(this,"off")}},breakpoints:Ve,checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked,i=e.params,a=i.slidesOffsetBefore;if(a){var r=e.slides.length-1,n=e.slidesGrid[r]+e.slidesSizesGrid[r]+2*a;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){var e,t,i,a,r=this,n=r.classNames,o=r.params,s=r.rtl,l=r.el,d=r.device,u=(t=["initialized",o.direction,{"free-mode":r.params.freeMode&&o.freeMode.enabled},{autoheight:o.autoHeight},{rtl:s},{grid:o.grid&&o.grid.rows>1},{"grid-column":o.grid&&o.grid.rows>1&&"column"===o.grid.fill},{android:d.android},{ios:d.ios},{"css-mode":o.cssMode},{centered:o.cssMode&&o.centeredSlides},{"watch-progress":o.watchSlidesProgress}],i=o.containerModifierClass,a=[],t.forEach((function(e){"object"===c(e)?Object.keys(e).forEach((function(t){e[t]&&a.push(i+t)})):"string"==typeof e&&a.push(i+e)})),a);n.push.apply(n,f(u)),(e=l.classList).add.apply(e,f(n)),r.emitContainerClasses()},removeClasses:function(){var e,t=this,i=t.el,a=t.classNames;(e=i.classList).remove.apply(e,f(a)),t.emitContainerClasses()}}},Ze={},Ke=function(){function e(){var t,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var a=arguments.length,r=new Array(a),n=0;n<a;n++)r[n]=arguments[n];1===r.length&&r[0].constructor&&"Object"===Object.prototype.toString.call(r[0]).slice(8,-1)?i=r[0]:(t=r[0],i=r[1]),i||(i={}),i=ue({},i),t&&!i.el&&(i.el=t);var o=te();if(i.el&&"string"==typeof i.el&&o.querySelectorAll(i.el).length>1){var s=[];return o.querySelectorAll(i.el).forEach((function(t){var a=ue({},i,{el:t});s.push(new e(a))})),s}var l,c=this;(c.__swiper__=!0,c.support=Se(),c.device=Te({userAgent:i.userAgent}),c.browser=Ce(),c.eventsListeners={},c.eventsAnyListeners=[],c.modules=f(c.__modules__),i.modules&&Array.isArray(i.modules))&&(l=c.modules).push.apply(l,f(i.modules));var d={};c.modules.forEach((function(e){e({params:i,swiper:c,extendParams:Ye(i,d),on:c.on.bind(c),once:c.once.bind(c),off:c.off.bind(c),emit:c.emit.bind(c)})}));var u=ue({},Xe,d);return c.params=ue({},u,Ze,i),c.originalParams=ue({},c.params),c.passedParams=ue({},i),c.params&&c.params.on&&Object.keys(c.params.on).forEach((function(e){c.on(e,c.params.on[e])})),c.params&&c.params.onAny&&c.onAny(c.params.onAny),Object.assign(c,{enabled:c.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===c.params.direction},isVertical:function(){return"vertical"===c.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment:function(){return Math.trunc(this.translate/Math.pow(2,23))*Math.pow(2,23)},allowSlideNext:c.params.allowSlideNext,allowSlidePrev:c.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:c.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:c.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),c.emit("_swiper"),c.params.init&&c.init(),c}return t=e,i=[{key:"getDirectionLabel",value:function(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}},{key:"getSlideIndex",value:function(e){var t=this.slidesEl,i=this.params,a=ye(me(t,".".concat(i.slideClass,", swiper-slide"))[0]);return ye(e)-a}},{key:"getSlideIndexByData",value:function(e){return this.getSlideIndex(this.slides.filter((function(t){return 1*t.getAttribute("data-swiper-slide-index")===e}))[0])}},{key:"recalcSlides",value:function(){var e=this,t=e.slidesEl,i=e.params;e.slides=me(t,".".concat(i.slideClass,", swiper-slide"))}},{key:"enable",value:function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}},{key:"disable",value:function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}},{key:"setProgress",value:function(e,t){var i=this;e=Math.min(Math.max(e,0),1);var a=i.minTranslate(),r=(i.maxTranslate()-a)*e+a;i.translateTo(r,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}},{key:"emitContainerClasses",value:function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}}},{key:"getSlideClasses",value:function(e){var t=this;return t.destroyed?"":e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")}},{key:"emitSlidesClasses",value:function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.forEach((function(i){var a=e.getSlideClasses(i);t.push({slideEl:i,classNames:a}),e.emit("_slideClass",i,a)})),e.emit("_slideClasses",t)}}},{key:"slidesPerViewDynamic",value:function(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);var i=this,a=i.params,r=i.slides,n=i.slidesGrid,o=i.slidesSizesGrid,s=i.size,l=i.activeIndex,c=1;if("number"==typeof a.slidesPerView)return a.slidesPerView;if(a.centeredSlides){for(var d,u=r[l]?Math.ceil(r[l].swiperSlideSize):0,p=l+1;p<r.length;p+=1)r[p]&&!d&&(c+=1,(u+=Math.ceil(r[p].swiperSlideSize))>s&&(d=!0));for(var h=l-1;h>=0;h-=1)r[h]&&!d&&(c+=1,(u+=r[h].swiperSlideSize)>s&&(d=!0))}else if("current"===e)for(var f=l+1;f<r.length;f+=1)(t?n[f]+o[f]-n[l]<s:n[f]-n[l]<s)&&(c+=1);else for(var m=l-1;m>=0;m-=1)n[l]-n[m]<s&&(c+=1);return c}},{key:"update",value:function(){var e=this;if(e&&!e.destroyed){var t,i=e.snapGrid,a=e.params;if(a.breakpoints&&e.setBreakpoint(),f(e.el.querySelectorAll('[loading="lazy"]')).forEach((function(t){t.complete&&_e(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),a.freeMode&&a.freeMode.enabled&&!a.cssMode)n(),a.autoHeight&&e.updateAutoHeight();else{if(("auto"===a.slidesPerView||a.slidesPerView>1)&&e.isEnd&&!a.centeredSlides){var r=e.virtual&&a.virtual.enabled?e.virtual.slides:e.slides;t=e.slideTo(r.length-1,0,!1,!0)}else t=e.slideTo(e.activeIndex,0,!1,!0);t||n()}a.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function n(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}}},{key:"changeDirection",value:function(e,t){void 0===t&&(t=!0);var i=this,a=i.params.direction;return e||(e="horizontal"===a?"vertical":"horizontal"),e===a||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove("".concat(i.params.containerModifierClass).concat(a)),i.el.classList.add("".concat(i.params.containerModifierClass).concat(e)),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach((function(t){"vertical"===e?t.style.width="":t.style.height=""})),i.emit("changeDirection"),t&&i.update()),i}},{key:"changeLanguageDirection",value:function(e){var t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="rtl"):(t.el.classList.remove("".concat(t.params.containerModifierClass,"rtl")),t.el.dir="ltr"),t.update())}},{key:"mount",value:function(e){var t=this;if(t.mounted)return!0;var i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);var a=function(){return".".concat((t.params.wrapperClass||"").trim().split(" ").join("."))},r=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(a()):me(i,a())[0];return!r&&t.params.createElements&&(r=ge("div",t.params.wrapperClass),i.append(r),me(i,".".concat(t.params.slideClass)).forEach((function(e){r.append(e)}))),Object.assign(t,{el:i,wrapperEl:r,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:r,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===we(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===we(i,"direction")),wrongRTL:"-webkit-box"===we(r,"display")}),!0}},{key:"init",value:function(e){var t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();var i=f(t.el.querySelectorAll('[loading="lazy"]'));return t.isElement&&i.push.apply(i,f(t.hostEl.querySelectorAll('[loading="lazy"]'))),i.forEach((function(e){e.complete?_e(t,e):e.addEventListener("load",(function(e){_e(t,e.target)}))})),Me(t),t.initialized=!0,Me(t),t.emit("init"),t.emit("afterInit"),t}},{key:"destroy",value:function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i,a=this,r=a.params,n=a.el,o=a.wrapperEl,s=a.slides;return void 0===a.params||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),r.loop&&a.loopDestroy(),t&&(a.removeClasses(),n.removeAttribute("style"),o.removeAttribute("style"),s&&s.length&&s.forEach((function(e){e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),a.emit("destroy"),Object.keys(a.eventsListeners).forEach((function(e){a.off(e)})),!1!==e&&(a.el.swiper=null,i=a,Object.keys(i).forEach((function(e){try{i[e]=null}catch(e){}try{delete i[e]}catch(e){}}))),a.destroyed=!0),null}}],a=[{key:"extendDefaults",value:function(e){ue(Ze,e)}},{key:"extendedDefaults",get:function(){return Ze}},{key:"defaults",get:function(){return Xe}},{key:"installModule",value:function(t){e.prototype.__modules__||(e.prototype.__modules__=[]);var i=e.prototype.__modules__;"function"==typeof t&&i.indexOf(t)<0&&i.push(t)}},{key:"use",value:function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)}}],i&&u(t.prototype,i),a&&u(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i,a}();function Je(e,t,i,a){return e.params.createElements&&Object.keys(a).forEach((function(r){if(!i[r]&&!0===i.auto){var n=me(e.el,".".concat(a[r]))[0];n||((n=ge("div",a[r])).className=a[r],e.el.append(n)),i[r]=n,t[r]=n}})),i}function et(e){var t=e.swiper,i=e.extendParams,a=e.on,r=e.emit;function n(e){var i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e))?i:(e&&("string"==typeof e&&(i=f(document.querySelectorAll(e))),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i?e:i)}function o(e,i){var a=t.params.navigation;(e=Ee(e)).forEach((function(e){var r;e&&((r=e.classList)[i?"add":"remove"].apply(r,f(a.disabledClass.split(" "))),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](a.lockClass))}))}function s(){var e=t.navigation,i=e.nextEl,a=e.prevEl;if(t.params.loop)return o(a,!1),void o(i,!1);o(a,t.isBeginning&&!t.params.rewind),o(i,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function d(){var e=t.params.navigation;if(t.params.navigation=Je(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),e.nextEl||e.prevEl){var i=n(e.nextEl),a=n(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:a}),i=Ee(i),a=Ee(a);var r=function(i,a){var r;(i&&i.addEventListener("click","next"===a?c:l),!t.enabled&&i)&&(r=i.classList).add.apply(r,f(e.lockClass.split(" ")))};i.forEach((function(e){return r(e,"next")})),a.forEach((function(e){return r(e,"prev")}))}}function u(){var e=t.navigation,i=e.nextEl,a=e.prevEl;i=Ee(i),a=Ee(a);var r=function(e,i){var a;e.removeEventListener("click","next"===i?c:l),(a=e.classList).remove.apply(a,f(t.params.navigation.disabledClass.split(" ")))};i.forEach((function(e){return r(e,"next")})),a.forEach((function(e){return r(e,"prev")}))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},a("init",(function(){!1===t.params.navigation.enabled?p():(d(),s())})),a("toEdge fromEdge lock unlock",(function(){s()})),a("destroy",(function(){u()})),a("enable disable",(function(){var e=t.navigation,i=e.nextEl,a=e.prevEl;i=Ee(i),a=Ee(a),t.enabled?s():[].concat(f(i),f(a)).filter((function(e){return!!e})).forEach((function(e){return e.classList.add(t.params.navigation.lockClass)}))})),a("click",(function(e,i){var a=t.navigation,n=a.nextEl,o=a.prevEl;n=Ee(n),o=Ee(o);var s=i.target;if(t.params.navigation.hideOnClick&&!o.includes(s)&&!n.includes(s)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;var l;n.length?l=n[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(l=o[0].classList.contains(t.params.navigation.hiddenClass)),r(!0===l?"navigationShow":"navigationHide"),[].concat(f(n),f(o)).filter((function(e){return!!e})).forEach((function(e){return e.classList.toggle(t.params.navigation.hiddenClass)}))}}));var p=function(){var e;(e=t.el.classList).add.apply(e,f(t.params.navigation.navigationDisabledClass.split(" "))),u()};Object.assign(t.navigation,{enable:function(){var e;(e=t.el.classList).remove.apply(e,f(t.params.navigation.navigationDisabledClass.split(" "))),d(),s()},disable:p,update:s,init:d,destroy:u})}function tt(e){return void 0===e&&(e=""),".".concat(e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,"."))}function it(e){var t,i=e.swiper,a=e.extendParams,r=e.on,n=e.emit,o="swiper-pagination";a({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"".concat(o,"-bullet"),bulletActiveClass:"".concat(o,"-bullet-active"),modifierClass:"".concat(o,"-"),currentClass:"".concat(o,"-current"),totalClass:"".concat(o,"-total"),hiddenClass:"".concat(o,"-hidden"),progressbarFillClass:"".concat(o,"-progressbar-fill"),progressbarOppositeClass:"".concat(o,"-progressbar-opposite"),clickableClass:"".concat(o,"-clickable"),lockClass:"".concat(o,"-lock"),horizontalClass:"".concat(o,"-horizontal"),verticalClass:"".concat(o,"-vertical"),paginationDisabledClass:"".concat(o,"-disabled")}}),i.pagination={el:null,bullets:[]};var s=0;function l(){return!i.params.pagination.el||!i.pagination.el||Array.isArray(i.pagination.el)&&0===i.pagination.el.length}function c(e,t){var a=i.params.pagination.bulletActiveClass;e&&(e=e["".concat("prev"===t?"previous":"next","ElementSibling")])&&(e.classList.add("".concat(a,"-").concat(t)),(e=e["".concat("prev"===t?"previous":"next","ElementSibling")])&&e.classList.add("".concat(a,"-").concat(t,"-").concat(t)))}function d(e){var t=e.target.closest(tt(i.params.pagination.bulletClass));if(t){e.preventDefault();var a=ye(t)*i.params.slidesPerGroup;if(i.params.loop){if(i.realIndex===a)return;i.slideToLoop(a)}else i.slideTo(a)}}function u(){var e=i.rtl,a=i.params.pagination;if(!l()){var r,o,d=i.pagination.el;d=Ee(d);var u=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.slides.length,p=i.params.loop?Math.ceil(u/i.params.slidesPerGroup):i.snapGrid.length;if(i.params.loop?(o=i.previousRealIndex||0,r=i.params.slidesPerGroup>1?Math.floor(i.realIndex/i.params.slidesPerGroup):i.realIndex):void 0!==i.snapIndex?(r=i.snapIndex,o=i.previousSnapIndex):(o=i.previousIndex||0,r=i.activeIndex||0),"bullets"===a.type&&i.pagination.bullets&&i.pagination.bullets.length>0){var h,m,v,g=i.pagination.bullets;if(a.dynamicBullets&&(t=xe(g[0],i.isHorizontal()?"width":"height",!0),d.forEach((function(e){e.style[i.isHorizontal()?"width":"height"]="".concat(t*(a.dynamicMainBullets+4),"px")})),a.dynamicMainBullets>1&&void 0!==o&&((s+=r-(o||0))>a.dynamicMainBullets-1?s=a.dynamicMainBullets-1:s<0&&(s=0)),h=Math.max(r-s,0),v=((m=h+(Math.min(g.length,a.dynamicMainBullets)-1))+h)/2),g.forEach((function(e){var t,i=f(["","-next","-next-next","-prev","-prev-prev","-main"].map((function(e){return"".concat(a.bulletActiveClass).concat(e)}))).map((function(e){return"string"==typeof e&&e.includes(" ")?e.split(" "):e})).flat();(t=e.classList).remove.apply(t,f(i))})),d.length>1)g.forEach((function(e){var t,n=ye(e);n===r?(t=e.classList).add.apply(t,f(a.bulletActiveClass.split(" "))):i.isElement&&e.setAttribute("part","bullet");if(a.dynamicBullets){var o;if(n>=h&&n<=m)(o=e.classList).add.apply(o,f("".concat(a.bulletActiveClass,"-main").split(" ")));n===h&&c(e,"prev"),n===m&&c(e,"next")}}));else{var w,y=g[r];if(y)(w=y.classList).add.apply(w,f(a.bulletActiveClass.split(" ")));if(i.isElement&&g.forEach((function(e,t){e.setAttribute("part",t===r?"bullet-active":"bullet")})),a.dynamicBullets){for(var b=g[h],x=g[m],E=h;E<=m;E+=1){var S;if(g[E])(S=g[E].classList).add.apply(S,f("".concat(a.bulletActiveClass,"-main").split(" ")))}c(b,"prev"),c(x,"next")}}if(a.dynamicBullets){var T=Math.min(g.length,a.dynamicMainBullets+4),C=(t*T-t)/2-v*t,P=e?"right":"left";g.forEach((function(e){e.style[i.isHorizontal()?P:"top"]="".concat(C,"px")}))}}d.forEach((function(e,t){if("fraction"===a.type&&(e.querySelectorAll(tt(a.currentClass)).forEach((function(e){e.textContent=a.formatFractionCurrent(r+1)})),e.querySelectorAll(tt(a.totalClass)).forEach((function(e){e.textContent=a.formatFractionTotal(p)}))),"progressbar"===a.type){var o;o=a.progressbarOpposite?i.isHorizontal()?"vertical":"horizontal":i.isHorizontal()?"horizontal":"vertical";var s=(r+1)/p,l=1,c=1;"horizontal"===o?l=s:c=s,e.querySelectorAll(tt(a.progressbarFillClass)).forEach((function(e){e.style.transform="translate3d(0,0,0) scaleX(".concat(l,") scaleY(").concat(c,")"),e.style.transitionDuration="".concat(i.params.speed,"ms")}))}"custom"===a.type&&a.renderCustom?(e.innerHTML=a.renderCustom(i,r+1,p),0===t&&n("paginationRender",e)):(0===t&&n("paginationRender",e),n("paginationUpdate",e)),i.params.watchOverflow&&i.enabled&&e.classList[i.isLocked?"add":"remove"](a.lockClass)}))}}function p(){var e=i.params.pagination;if(!l()){var t=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.grid&&i.params.grid.rows>1?i.slides.length/Math.ceil(i.params.grid.rows):i.slides.length,a=i.pagination.el;a=Ee(a);var r="";if("bullets"===e.type){var o=i.params.loop?Math.ceil(t/i.params.slidesPerGroup):i.snapGrid.length;i.params.freeMode&&i.params.freeMode.enabled&&o>t&&(o=t);for(var s=0;s<o;s+=1)e.renderBullet?r+=e.renderBullet.call(i,s,e.bulletClass):r+="<".concat(e.bulletElement," ").concat(i.isElement?'part="bullet"':"",' class="').concat(e.bulletClass,'"></').concat(e.bulletElement,">")}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(i,e.currentClass,e.totalClass):'<span class="'.concat(e.currentClass,'"></span>')+" / "+'<span class="'.concat(e.totalClass,'"></span>')),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(i,e.progressbarFillClass):'<span class="'.concat(e.progressbarFillClass,'"></span>')),i.pagination.bullets=[],a.forEach((function(t){var a;("custom"!==e.type&&(t.innerHTML=r||""),"bullets"===e.type)&&(a=i.pagination.bullets).push.apply(a,f(t.querySelectorAll(tt(e.bulletClass))))})),"custom"!==e.type&&n("paginationRender",a[0])}}function h(){i.params.pagination=Je(i,i.originalParams.pagination,i.params.pagination,{el:"swiper-pagination"});var e,t=i.params.pagination;t.el&&("string"==typeof t.el&&i.isElement&&(e=i.el.querySelector(t.el)),e||"string"!=typeof t.el||(e=f(document.querySelectorAll(t.el))),e||(e=t.el),e&&0!==e.length&&(i.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(e)&&e.length>1&&(e=f(i.el.querySelectorAll(t.el))).length>1&&(e=e.filter((function(e){return be(e,".swiper")[0]===i.el}))[0]),Array.isArray(e)&&1===e.length&&(e=e[0]),Object.assign(i.pagination,{el:e}),(e=Ee(e)).forEach((function(e){var a;"bullets"===t.type&&t.clickable&&(a=e.classList).add.apply(a,f((t.clickableClass||"").split(" ")));e.classList.add(t.modifierClass+t.type),e.classList.add(i.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(e.classList.add("".concat(t.modifierClass).concat(t.type,"-dynamic")),s=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&e.classList.add(t.progressbarOppositeClass),t.clickable&&e.addEventListener("click",d),i.enabled||e.classList.add(t.lockClass)}))))}function m(){var e=i.params.pagination;if(!l()){var t=i.pagination.el;t&&(t=Ee(t)).forEach((function(t){var a;(t.classList.remove(e.hiddenClass),t.classList.remove(e.modifierClass+e.type),t.classList.remove(i.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable)&&((a=t.classList).remove.apply(a,f((e.clickableClass||"").split(" "))),t.removeEventListener("click",d))})),i.pagination.bullets&&i.pagination.bullets.forEach((function(t){var i;return(i=t.classList).remove.apply(i,f(e.bulletActiveClass.split(" ")))}))}}r("changeDirection",(function(){if(i.pagination&&i.pagination.el){var e=i.params.pagination,t=i.pagination.el;(t=Ee(t)).forEach((function(t){t.classList.remove(e.horizontalClass,e.verticalClass),t.classList.add(i.isHorizontal()?e.horizontalClass:e.verticalClass)}))}})),r("init",(function(){!1===i.params.pagination.enabled?v():(h(),p(),u())})),r("activeIndexChange",(function(){void 0===i.snapIndex&&u()})),r("snapIndexChange",(function(){u()})),r("snapGridLengthChange",(function(){p(),u()})),r("destroy",(function(){m()})),r("enable disable",(function(){var e=i.pagination.el;e&&(e=Ee(e)).forEach((function(e){return e.classList[i.enabled?"remove":"add"](i.params.pagination.lockClass)}))})),r("lock unlock",(function(){u()})),r("click",(function(e,t){var a=t.target,r=Ee(i.pagination.el);if(i.params.pagination.el&&i.params.pagination.hideOnClick&&r&&r.length>0&&!a.classList.contains(i.params.pagination.bulletClass)){if(i.navigation&&(i.navigation.nextEl&&a===i.navigation.nextEl||i.navigation.prevEl&&a===i.navigation.prevEl))return;var o=r[0].classList.contains(i.params.pagination.hiddenClass);n(!0===o?"paginationShow":"paginationHide"),r.forEach((function(e){return e.classList.toggle(i.params.pagination.hiddenClass)}))}}));var v=function(){i.el.classList.add(i.params.pagination.paginationDisabledClass);var e=i.pagination.el;e&&(e=Ee(e)).forEach((function(e){return e.classList.add(i.params.pagination.paginationDisabledClass)})),m()};Object.assign(i.pagination,{enable:function(){i.el.classList.remove(i.params.pagination.paginationDisabledClass);var e=i.pagination.el;e&&(e=Ee(e)).forEach((function(e){return e.classList.remove(i.params.pagination.paginationDisabledClass)})),h(),p(),u()},disable:v,render:p,update:u,init:h,destroy:m})}function at(e){var t,i,a=e.swiper,r=e.extendParams,n=e.on,o=e.emit,s=e.params;a.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});var l,c,d,u,p,h,f,m,v=s&&s.autoplay?s.autoplay.delay:3e3,g=s&&s.autoplay?s.autoplay.delay:3e3,w=(new Date).getTime();function y(e){a&&!a.destroyed&&a.wrapperEl&&e.target===a.wrapperEl&&(a.wrapperEl.removeEventListener("transitionend",y),m||C())}var b=function e(){if(!a.destroyed&&a.autoplay.running){a.autoplay.paused?c=!0:c&&(g=l,c=!1);var t=a.autoplay.paused?l:w+g-(new Date).getTime();a.autoplay.timeLeft=t,o("autoplayTimeLeft",t,t/v),i=requestAnimationFrame((function(){e()}))}},x=function e(r){if(!a.destroyed&&a.autoplay.running){cancelAnimationFrame(i),b();var n=void 0===r?a.params.autoplay.delay:r;v=a.params.autoplay.delay,g=a.params.autoplay.delay;var s=function(){var e;if(e=a.virtual&&a.params.virtual.enabled?a.slides.filter((function(e){return e.classList.contains("swiper-slide-active")}))[0]:a.slides[a.activeIndex])return parseInt(e.getAttribute("data-swiper-autoplay"),10)}();!Number.isNaN(s)&&s>0&&void 0===r&&(n=s,v=s,g=s),l=n;var c=a.params.speed,d=function(){a&&!a.destroyed&&(a.params.autoplay.reverseDirection?!a.isBeginning||a.params.loop||a.params.rewind?(a.slidePrev(c,!0,!0),o("autoplay")):a.params.autoplay.stopOnLastSlide||(a.slideTo(a.slides.length-1,c,!0,!0),o("autoplay")):!a.isEnd||a.params.loop||a.params.rewind?(a.slideNext(c,!0,!0),o("autoplay")):a.params.autoplay.stopOnLastSlide||(a.slideTo(0,c,!0,!0),o("autoplay")),a.params.cssMode&&(w=(new Date).getTime(),requestAnimationFrame((function(){e()}))))};return n>0?(clearTimeout(t),t=setTimeout((function(){d()}),n)):requestAnimationFrame((function(){d()})),n}},E=function(){w=(new Date).getTime(),a.autoplay.running=!0,x(),o("autoplayStart")},S=function(){a.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),o("autoplayStop")},T=function(e,i){if(!a.destroyed&&a.autoplay.running){clearTimeout(t),e||(f=!0);var r=function(){o("autoplayPause"),a.params.autoplay.waitForTransition?a.wrapperEl.addEventListener("transitionend",y):C()};if(a.autoplay.paused=!0,i)return h&&(l=a.params.autoplay.delay),h=!1,void r();var n=l||a.params.autoplay.delay;l=n-((new Date).getTime()-w),a.isEnd&&l<0&&!a.params.loop||(l<0&&(l=0),r())}},C=function(){a.isEnd&&l<0&&!a.params.loop||a.destroyed||!a.autoplay.running||(w=(new Date).getTime(),f?(f=!1,x(l)):x(),a.autoplay.paused=!1,o("autoplayResume"))},P=function(){if(!a.destroyed&&a.autoplay.running){var e=te();"hidden"===e.visibilityState&&(f=!0,T(!0)),"visible"===e.visibilityState&&C()}},k=function(e){"mouse"===e.pointerType&&(f=!0,m=!0,a.animating||a.autoplay.paused||T(!0))},_=function(e){"mouse"===e.pointerType&&(m=!1,a.autoplay.paused&&C())};n("init",(function(){a.params.autoplay.enabled&&(a.params.autoplay.pauseOnMouseEnter&&(a.el.addEventListener("pointerenter",k),a.el.addEventListener("pointerleave",_)),te().addEventListener("visibilitychange",P),E())})),n("destroy",(function(){a.el.removeEventListener("pointerenter",k),a.el.removeEventListener("pointerleave",_),te().removeEventListener("visibilitychange",P),a.autoplay.running&&S()})),n("_freeModeStaticRelease",(function(){(u||f)&&C()})),n("_freeModeNoMomentumRelease",(function(){a.params.autoplay.disableOnInteraction?S():T(!0,!0)})),n("beforeTransitionStart",(function(e,t,i){!a.destroyed&&a.autoplay.running&&(i||!a.params.autoplay.disableOnInteraction?T(!0,!0):S())})),n("sliderFirstMove",(function(){!a.destroyed&&a.autoplay.running&&(a.params.autoplay.disableOnInteraction?S():(d=!0,u=!1,f=!1,p=setTimeout((function(){f=!0,u=!0,T(!0)}),200)))})),n("touchEnd",(function(){if(!a.destroyed&&a.autoplay.running&&d){if(clearTimeout(p),clearTimeout(t),a.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&a.params.cssMode&&C(),u=!1,d=!1}})),n("slideChange",(function(){!a.destroyed&&a.autoplay.running&&(h=!0)})),Object.assign(a.autoplay,{start:E,stop:S,pause:T,resume:C})}function rt(e){var t=e.swiper,i=e.extendParams,a=e.on;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});var r=!1,n=!1;function o(){var e=t.thumbs.swiper;if(e&&!e.destroyed){var i,a=e.clickedIndex,r=e.clickedSlide;if(!r||!r.classList.contains(t.params.thumbs.slideThumbActiveClass))if(null!=a)i=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):a,t.params.loop?t.slideToLoop(i):t.slideTo(i)}}function s(){var e=t.params.thumbs;if(r)return!1;r=!0;var i=t.constructor;if(e.swiper instanceof i)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(de(e.swiper)){var a=Object.assign({},e.swiper);Object.assign(a,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new i(a),n=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",o),!0}function l(e){var i=t.thumbs.swiper;if(i&&!i.destroyed){var a="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,r=1,n=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),i.slides.forEach((function(e){return e.classList.remove(n)})),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(var o=0;o<r;o+=1)me(i.slidesEl,'[data-swiper-slide-index="'.concat(t.realIndex+o,'"]')).forEach((function(e){e.classList.add(n)}));else for(var s=0;s<r;s+=1)i.slides[t.realIndex+s]&&i.slides[t.realIndex+s].classList.add(n);var l=t.params.thumbs.autoScrollOffset,c=l&&!i.params.loop;if(t.realIndex!==i.realIndex||c){var d,u,p=i.activeIndex;if(i.params.loop){var h=i.slides.filter((function(e){return e.getAttribute("data-swiper-slide-index")==="".concat(t.realIndex)}))[0];d=i.slides.indexOf(h),u=t.activeIndex>t.previousIndex?"next":"prev"}else u=(d=t.realIndex)>t.previousIndex?"next":"prev";c&&(d+="next"===u?l:-1*l),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(d)<0&&(i.params.centeredSlides?d=d>p?d-Math.floor(a/2)+1:d+Math.floor(a/2)-1:d>p&&i.params.slidesPerGroup,i.slideTo(d,e?0:void 0))}}}t.thumbs={swiper:null},a("beforeInit",(function(){var e=t.params.thumbs;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){var i=te();requestAnimationFrame((function a(){t.destroyed||(function(){var a="string"==typeof e.swiper?i.querySelector(e.swiper):e.swiper;a&&a.swiper?(e.swiper=a.swiper,s(),l(!0)):a&&a.addEventListener("init",(function i(r){e.swiper=r.detail[0],a.removeEventListener("init",i),s(),l(!0),e.swiper.update(),t.update()}));return a}()||requestAnimationFrame(a))}))}else s(),l(!0)})),a("slideChange update resize observerUpdate",(function(){l()})),a("setTransition",(function(e,i){var a=t.thumbs.swiper;a&&!a.destroyed&&a.setTransition(i)})),a("beforeDestroy",(function(){var e=t.thumbs.swiper;e&&!e.destroyed&&n&&e.destroy()})),Object.assign(t.thumbs,{init:s,update:l})}function nt(e){var t=this,i=t.params,a=t.slidesEl;i.loop&&t.loopDestroy();var r=function(e){if("string"==typeof e){var t=document.createElement("div");t.innerHTML=e,a.append(t.children[0]),t.innerHTML=""}else a.append(e)};if("object"===c(e)&&"length"in e)for(var n=0;n<e.length;n+=1)e[n]&&r(e[n]);else r(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update()}function ot(e){var t=this,i=t.params,a=t.activeIndex,r=t.slidesEl;i.loop&&t.loopDestroy();var n=a+1,o=function(e){if("string"==typeof e){var t=document.createElement("div");t.innerHTML=e,r.prepend(t.children[0]),t.innerHTML=""}else r.prepend(e)};if("object"===c(e)&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&o(e[s]);n=a+e.length}else o(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),t.slideTo(n,0,!1)}function st(e,t){var i=this,a=i.params,r=i.activeIndex,n=i.slidesEl,o=r;a.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.recalcSlides());var s=i.slides.length;if(e<=0)i.prependSlide(t);else if(e>=s)i.appendSlide(t);else{for(var l=o>e?o+1:o,d=[],u=s-1;u>=e;u-=1){var p=i.slides[u];p.remove(),d.unshift(p)}if("object"===c(t)&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&n.append(t[h]);l=o>e?o+t.length:o}else n.append(t);for(var f=0;f<d.length;f+=1)n.append(d[f]);i.recalcSlides(),a.loop&&i.loopCreate(),a.observer&&!i.isElement||i.update(),a.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}}function lt(e){var t=this,i=t.params,a=t.activeIndex;i.loop&&(a-=t.loopedSlides,t.loopDestroy());var r,n=a;if("object"===c(e)&&"length"in e){for(var o=0;o<e.length;o+=1)r=e[o],t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1);n=Math.max(n,0)}else r=e,t.slides[r]&&t.slides[r].remove(),r<n&&(n-=1),n=Math.max(n,0);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),i.loop?t.slideTo(n+t.loopedSlides,0,!1):t.slideTo(n,0,!1)}function ct(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}function dt(e){var t=e.swiper;Object.assign(t,{appendSlide:nt.bind(t),prependSlide:ot.bind(t),addSlide:st.bind(t),removeSlide:lt.bind(t),removeAllSlides:ct.bind(t)})}function ut(e){var t,i=e.effect,a=e.swiper,r=e.on,n=e.setTranslate,o=e.setTransition,s=e.overwriteParams,l=e.perspective,c=e.recreateShadows,d=e.getEffectParams;r("beforeInit",(function(){if(a.params.effect===i){a.classNames.push("".concat(a.params.containerModifierClass).concat(i)),l&&l()&&a.classNames.push("".concat(a.params.containerModifierClass,"3d"));var e=s?s():{};Object.assign(a.params,e),Object.assign(a.originalParams,e)}})),r("setTranslate",(function(){a.params.effect===i&&n()})),r("setTransition",(function(e,t){a.params.effect===i&&o(t)})),r("transitionEnd",(function(){if(a.params.effect===i&&c){if(!d||!d().slideShadows)return;a.slides.forEach((function(e){e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((function(e){return e.remove()}))})),c()}})),r("virtualUpdate",(function(){a.params.effect===i&&(a.slides.length||(t=!0),requestAnimationFrame((function(){t&&a.slides&&a.slides.length&&(n(),t=!1)})))}))}function pt(e,t){var i=fe(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function ht(e){var t=e.swiper,i=e.duration,a=e.transformElements,r=e.allSlides,n=t.activeIndex;if(t.params.virtualTranslate&&0!==i){var o=!1;(r?a:a.filter((function(e){var i=e.classList.contains("swiper-slide-transform")?function(e){return e.parentElement?e.parentElement:t.slides.filter((function(t){return t.shadowRoot&&t.shadowRoot===e.parentNode}))[0]}(e):e;return t.getSlideIndex(i)===n}))).forEach((function(e){!function(e,t){t&&e.addEventListener("transitionend",(function i(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",i))}))}(e,(function(){if(!o&&t&&!t.destroyed){o=!0,t.animating=!1;var e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)}}))}))}}function ft(e){var t=e.swiper,i=e.extendParams,a=e.on;i({fadeEffect:{crossFade:!1}});ut({effect:"fade",swiper:t,on:a,setTranslate:function(){for(var e=t.slides,i=(t.params.fadeEffect,0);i<e.length;i+=1){var a=t.slides[i],r=-a.swiperSlideOffset;t.params.virtualTranslate||(r-=t.translate);var n=0;t.isHorizontal()||(n=r,r=0);var o=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(a.progress),0):1+Math.min(Math.max(a.progress,-1),0),s=pt(0,a);s.style.opacity=o,s.style.transform="translate3d(".concat(r,"px, ").concat(n,"px, 0px)")}},setTransition:function(e){var i=t.slides.map((function(e){return fe(e)}));i.forEach((function(t){t.style.transitionDuration="".concat(e,"ms")})),ht({swiper:t,duration:e,transformElements:i,allSlides:!0})},overwriteParams:function(){return{slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode}}})}function mt(e){var t=e.swiper,i=e.extendParams,a=e.on;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});var r=function(e,t,i){var a=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),r=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");a||(a=ge("div","swiper-slide-shadow-cube swiper-slide-shadow-".concat(i?"left":"top").split(" ")),e.append(a)),r||(r=ge("div","swiper-slide-shadow-cube swiper-slide-shadow-".concat(i?"right":"bottom").split(" ")),e.append(r)),a&&(a.style.opacity=Math.max(-t,0)),r&&(r.style.opacity=Math.max(t,0))};ut({effect:"cube",swiper:t,on:a,setTranslate:function(){var e,i=t.el,a=t.wrapperEl,n=t.slides,o=t.width,s=t.height,l=t.rtlTranslate,c=t.size,d=t.browser,u=t.params.cubeEffect,p=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled,f=0;u.shadow&&(p?((e=t.wrapperEl.querySelector(".swiper-cube-shadow"))||(e=ge("div","swiper-cube-shadow"),t.wrapperEl.append(e)),e.style.height="".concat(o,"px")):(e=i.querySelector(".swiper-cube-shadow"))||(e=ge("div","swiper-cube-shadow"),i.append(e)));for(var m=0;m<n.length;m+=1){var v=n[m],g=m;h&&(g=parseInt(v.getAttribute("data-swiper-slide-index"),10));var w=90*g,y=Math.floor(w/360);l&&(w=-w,y=Math.floor(-w/360));var b=Math.max(Math.min(v.progress,1),-1),x=0,E=0,S=0;g%4==0?(x=4*-y*c,S=0):(g-1)%4==0?(x=0,S=4*-y*c):(g-2)%4==0?(x=c+4*y*c,S=c):(g-3)%4==0&&(x=-c,S=3*c+4*c*y),l&&(x=-x),p||(E=x,x=0);var T="rotateX(".concat(p?0:-w,"deg) rotateY(").concat(p?w:0,"deg) translate3d(").concat(x,"px, ").concat(E,"px, ").concat(S,"px)");b<=1&&b>-1&&(f=90*g+90*b,l&&(f=90*-g-90*b),t.browser&&t.browser.need3dFix&&Math.abs(f)/90%2==1&&(f+=.001)),v.style.transform=T,u.slideShadows&&r(v,b,p)}if(a.style.transformOrigin="50% 50% -".concat(c/2,"px"),a.style["-webkit-transform-origin"]="50% 50% -".concat(c/2,"px"),u.shadow)if(p)e.style.transform="translate3d(0px, ".concat(o/2+u.shadowOffset,"px, ").concat(-o/2,"px) rotateX(89.99deg) rotateZ(0deg) scale(").concat(u.shadowScale,")");else{var C=Math.abs(f)-90*Math.floor(Math.abs(f)/90),P=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),k=u.shadowScale,_=u.shadowScale/P,I=u.shadowOffset;e.style.transform="scale3d(".concat(k,", 1, ").concat(_,") translate3d(0px, ").concat(s/2+I,"px, ").concat(-s/2/_,"px) rotateX(-89.99deg)")}var M=(d.isSafari||d.isWebView)&&d.needPerspectiveFix?-c/2:0;a.style.transform="translate3d(0px,0,".concat(M,"px) rotateX(").concat(t.isHorizontal()?0:f,"deg) rotateY(").concat(t.isHorizontal()?-f:0,"deg)"),a.style.setProperty("--swiper-cube-translate-z","".concat(M,"px"))},setTransition:function(e){var i=t.el;if(t.slides.forEach((function(t){t.style.transitionDuration="".concat(e,"ms"),t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((function(t){t.style.transitionDuration="".concat(e,"ms")}))})),t.params.cubeEffect.shadow&&!t.isHorizontal()){var a=i.querySelector(".swiper-cube-shadow");a&&(a.style.transitionDuration="".concat(e,"ms"))}},recreateShadows:function(){var e=t.isHorizontal();t.slides.forEach((function(t){var i=Math.max(Math.min(t.progress,1),-1);r(t,i,e)}))},getEffectParams:function(){return t.params.cubeEffect},perspective:function(){return!0},overwriteParams:function(){return{slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0}}})}function vt(e,t,i){var a="swiper-slide-shadow".concat(i?"-".concat(i):"").concat(e?" swiper-slide-shadow-".concat(e):""),r=fe(t),n=r.querySelector(".".concat(a.split(" ").join(".")));return n||(n=ge("div",a.split(" ")),r.append(n)),n}function gt(e){var t=e.swiper,i=e.extendParams,a=e.on;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}});ut({effect:"coverflow",swiper:t,on:a,setTranslate:function(){for(var e=t.width,i=t.height,a=t.slides,r=t.slidesSizesGrid,n=t.params.coverflowEffect,o=t.isHorizontal(),s=t.translate,l=o?e/2-s:i/2-s,c=o?n.rotate:-n.rotate,d=n.depth,u=0,p=a.length;u<p;u+=1){var h=a[u],f=r[u],m=(l-h.swiperSlideOffset-f/2)/f,v="function"==typeof n.modifier?n.modifier(m):m*n.modifier,g=o?c*v:0,w=o?0:c*v,y=-d*Math.abs(v),b=n.stretch;"string"==typeof b&&-1!==b.indexOf("%")&&(b=parseFloat(n.stretch)/100*f);var x=o?0:b*v,E=o?b*v:0,S=1-(1-n.scale)*Math.abs(v);Math.abs(E)<.001&&(E=0),Math.abs(x)<.001&&(x=0),Math.abs(y)<.001&&(y=0),Math.abs(g)<.001&&(g=0),Math.abs(w)<.001&&(w=0),Math.abs(S)<.001&&(S=0),t.browser&&t.browser.need3dFix&&(Math.abs(g)/90%2==1&&(g+=.001),Math.abs(w)/90%2==1&&(w+=.001));var T="translate3d(".concat(E,"px,").concat(x,"px,").concat(y,"px)  rotateX(").concat(w,"deg) rotateY(").concat(g,"deg) scale(").concat(S,")");if(pt(0,h).style.transform=T,h.style.zIndex=1-Math.abs(Math.round(v)),n.slideShadows){var C=o?h.querySelector(".swiper-slide-shadow-left"):h.querySelector(".swiper-slide-shadow-top"),P=o?h.querySelector(".swiper-slide-shadow-right"):h.querySelector(".swiper-slide-shadow-bottom");C||(C=vt("coverflow",h,o?"left":"top")),P||(P=vt("coverflow",h,o?"right":"bottom")),C&&(C.style.opacity=v>0?v:0),P&&(P.style.opacity=-v>0?-v:0)}}},setTransition:function(e){t.slides.map((function(e){return fe(e)})).forEach((function(t){t.style.transitionDuration="".concat(e,"ms"),t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((function(t){t.style.transitionDuration="".concat(e,"ms")}))}))},perspective:function(){return!0},overwriteParams:function(){return{watchSlidesProgress:!0}}})}function wt(e){var t=e.swiper,i=e.extendParams,a=e.on;i({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}});ut({effect:"cards",swiper:t,on:a,setTranslate:function(){for(var e=t.slides,i=t.activeIndex,a=t.rtlTranslate,r=t.params.cardsEffect,n=t.touchEventsData,o=n.startTranslate,s=n.isTouched,l=a?-t.translate:t.translate,c=0;c<e.length;c+=1){var d=e[c],u=d.progress,p=Math.min(Math.max(u,-4),4),h=d.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform="translateX(".concat(t.minTranslate(),"px)")),t.params.centeredSlides&&t.params.cssMode&&(h-=e[0].swiperSlideOffset);var f=t.params.cssMode?-h-t.translate:-h,m=0,v=-100*Math.abs(p),g=1,w=-r.perSlideRotate*p,y=r.perSlideOffset-.75*Math.abs(p),b=t.virtual&&t.params.virtual.enabled?t.virtual.from+c:c,x=(b===i||b===i-1)&&p>0&&p<1&&(s||t.params.cssMode)&&l<o,E=(b===i||b===i+1)&&p<0&&p>-1&&(s||t.params.cssMode)&&l>o;if(x||E){var S=Math.pow(1-Math.abs((Math.abs(p)-.5)/.5),.5);w+=-28*p*S,g+=-.5*S,y+=96*S,m="".concat(-25*S*Math.abs(p),"%")}if(f=p<0?"calc(".concat(f,"px ").concat(a?"-":"+"," (").concat(y*Math.abs(p),"%))"):p>0?"calc(".concat(f,"px ").concat(a?"-":"+"," (-").concat(y*Math.abs(p),"%))"):"".concat(f,"px"),!t.isHorizontal()){var T=m;m=f,f=T}var C="".concat(p<0?1+(1-g)*p:1-(1-g)*p),P="\n        translate3d(".concat(f,", ").concat(m,", ").concat(v,"px)\n        rotateZ(").concat(r.rotate?a?-w:w:0,"deg)\n        scale(").concat(C,")\n      ");if(r.slideShadows){var k=d.querySelector(".swiper-slide-shadow");k||(k=vt("cards",d)),k&&(k.style.opacity=Math.min(Math.max((Math.abs(p)-.5)/.5,0),1))}d.style.zIndex=-Math.abs(Math.round(u))+e.length,pt(0,d).style.transform=P}},setTransition:function(e){var i=t.slides.map((function(e){return fe(e)}));i.forEach((function(t){t.style.transitionDuration="".concat(e,"ms"),t.querySelectorAll(".swiper-slide-shadow").forEach((function(t){t.style.transitionDuration="".concat(e,"ms")}))})),ht({swiper:t,duration:e,transformElements:i})},perspective:function(){return!0},overwriteParams:function(){return{watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode}}})}Object.keys(Qe).forEach((function(e){Object.keys(Qe[e]).forEach((function(t){Ke.prototype[t]=Qe[e][t]}))})),Ke.use([function(e){var t=e.swiper,i=e.on,a=e.emit,r=oe(),n=null,o=null,s=function(){t&&!t.destroyed&&t.initialized&&(a("beforeResize"),a("resize"))},l=function(){t&&!t.destroyed&&t.initialized&&a("orientationchange")};i("init",(function(){t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((function(e){o=r.requestAnimationFrame((function(){var i=t.width,a=t.height,r=i,n=a;e.forEach((function(e){var i=e.contentBoxSize,a=e.contentRect,o=e.target;o&&o!==t.el||(r=a?a.width:(i[0]||i).inlineSize,n=a?a.height:(i[0]||i).blockSize)})),r===i&&n===a||s()}))}))).observe(t.el):(r.addEventListener("resize",s),r.addEventListener("orientationchange",l))})),i("destroy",(function(){o&&r.cancelAnimationFrame(o),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",l)}))},function(e){var t=e.swiper,i=e.extendParams,a=e.on,r=e.emit,n=[],o=oe(),s=function(e,i){void 0===i&&(i={});var a=new(o.MutationObserver||o.WebkitMutationObserver)((function(e){if(!t.__preventObserver__)if(1!==e.length){var i=function(){r("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0)}else r("observerUpdate",e[0])}));a.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),n.push(a)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",(function(){if(t.params.observer){if(t.params.observeParents)for(var e=be(t.hostEl),i=0;i<e.length;i+=1)s(e[i]);s(t.hostEl,{childList:t.params.observeSlideChildren}),s(t.wrapperEl,{attributes:!1})}})),a("destroy",(function(){n.forEach((function(e){e.disconnect()})),n.splice(0,n.length)}))}]);var yt={player_js:null,hls_js:null,init:function(){var e=this;jQuery(document.body).on("player",function(){var t,i=(t=s().mark((function t(i,a){var r,n,o,l,c,d;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object.assign({theme:"var(--theme-color)",playbackRate:!0,aspectRatio:!0,setting:!0,pip:!0,fullscreen:!0,flip:!0,autoPlayback:!0},a.args?a.args:{}),t.prev=1,t.next=4,e.load_js("player");case 4:if(Artplayer.CONTROL_HIDE_TIME=1500,Artplayer.CONTEXTMENU=!1,n=jQuery(a.el),o=(o=a.args&&a.args.url?a.args.url:n.attr("src"))||n.find("source").attr("src"),l=(l=a.args&&a.args.poster?a.args.poster:"")||n.attr("poster"),c=Object.assign(r,{container:n.parent().get(0),url:o,poster:l||""}),!(o.search(/(\.m3u8|m3u8\?)/i)>-1)){t.next=17;break}return t.next=15,e.load_js("hls");case 15:c.type="m3u8",c.customType={m3u8:e.playM3u8};case 17:d=new Artplayer(c),a.callback&&a.callback(d),t.next=24;break;case 21:t.prev=21,t.t0=t.catch(1),console.error("Error loading player script:",t.t0);case 24:case"end":return t.stop()}}),t,null,[[1,21]])})),function(){var e=this,i=arguments;return new Promise((function(a,r){var n=t.apply(e,i);function o(e){d(n,a,r,o,s,"next",e)}function s(e){d(n,a,r,o,s,"throw",e)}o(void 0)}))});return function(e,t){return i.apply(this,arguments)}}())},load_js:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"player";if("player"===e&&this.player_js)return this.player_js;if("hls"===e&&this.hls_js)return this.hls_js;var t=void 0!==_wpcom_js.framework_url?_wpcom_js.framework_url:_wpcom_js.theme_url+"/themer",i="player"===e?t+"/assets/js/artplayer-5.1.1.min.js":t+"/assets/js/hls-1.5.8.min.js",a=jQuery.ajax({url:i,dataType:"script",cache:!0});return"player"===e?this.player_js=a:this.hls_js=a,a},playM3u8:function(e,t,i){if(Hls.isSupported()){i.hls&&i.hls.destroy();var a=new Hls;a.loadSource(t),a.attachMedia(e),i.hls=a,i.on("destroy",(function(){return a.destroy()}))}else e.canPlayType("application/vnd.apple.mpegurl")?e.src=t:i.notice.show="Unsupported playback format: m3u8"}};({init:function(){var e=this;jQuery(document.body).on("swiper",(function(t,i){var a=Object.assign({on:{},loop:!0,effect:"slide",autoplay:{delay:_wpcom_js.slide_speed?_wpcom_js.slide_speed:5e3,pauseOnMouseEnter:!0}},i.args),r=[at,dt];a.pagination&&r.push(it),a.navigation&&r.push(et),"fade"===a.effect&&r.push(ft),"cube"===a.effect&&r.push(mt),"coverflow"===a.effect&&r.push(gt),"cards"===a.effect&&r.push(wt),a.thumbs&&r.push(rt),a.modules=r,i.args.on&&i.args.on.init||(a.on.init=e.onInit),a.on.slidesLengthChange=e.checkSize;var n=new Ke(i.el,a);i.args._callback&&i.args._callback(n)}))},checkSize:function(e){if(e.slides.length<2)e.params.autoplay=!1,e.params.touchRatio=0,e.autoplay.stop();else{function t(e,t){if(e.params.slidesPerView&&e.slides.length<=e.params.slidesPerView){var i=[];e.slides.map((function(e){i.push(e.outerHTML)})),e.appendSlide(i),t&&t()}}t(e,(function(){return t(e)}))}},onInit:function(e){var t=jQuery(e.el);e.params.navigation||t.on("click",".swiper-button-next",(function(){e.slideNext()})).on("click",".swiper-button-prev",(function(){e.slidePrev()})),t.find(".j-lazy").lazyload({webp:void 0!==_wpcom_js.webp&&_wpcom_js.webp?_wpcom_js.webp:null}),t.find("img").on("load",(function(){e.update()})),setTimeout((function(){e.params.autoHeight&&e.updateAutoHeight(200)}),500)}}).init(),yt.init(),jQuery((function(e){var t=e(window),i=e(document.body),a=navigator.userAgent.toLowerCase(),r=1,n=[],o=void 0!==_wpcom_js.webp&&_wpcom_js.webp?_wpcom_js.webp:null;(e(".wpcom-user-list").length||e(".wpcom-member").length)&&(r=0),e('[data-toggle="tooltip"]').tooltip(),j(),e.fn.loading||e.fn.extend({loading:function(t){var i=e(this);t?i.addClass("loading").prepend('<i class="wpcom-icon wi wi-loader"><svg aria-hidden="true"><use xlink:href="#wi-loader"></use></svg></i>'):i.removeClass("loading").find(".wi-loader").remove()}}),e("#wpcom-video").length&&i.trigger("player",[{el:"#wpcom-video",callback:function(e){e.on("view",(function(t){e.mini=!t&&e.playing&&!e.pip}))}}]);var s=e(".j-wpcom-video, .wp-block-video video, .wp-block-wpcom-video-code video, .wp-video video");if(s.length)for(var l=0;l<s.length;l++)i.trigger("player",[{el:s[l]}]);var c=e(".modules-video-player");if(c.length)for(var d=0;d<c.length;d++)i.trigger("player",[{el:c[d],args:{autoPlayback:!1,icons:{state:'<i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-play"></use></svg></i>'}},callback:function(e){e.on("ready",(function(){e.controls.show=!1})),jQuery(e.template.$player).on("mouseenter",(function(){e.controls.show=!0})).on("mouseleave",(function(){e.controls.show=!1}))}}]);Z.init(),e(".entry-content-slider").each((function(e,t){var a={autoHeight:!0,pagination:{el:t.querySelector(".swiper-pagination"),clickable:!0}};i.trigger("swiper",{el:t,args:a})}));var u,p=0,h=0;function f(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}u=document.body.clientWidth<e,h=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",i.append(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}()}if(e(document).on("smartphoto",(function(e,t){var a=new X(t,{nav:!1});a.on("open",(function(){var e;e=parseInt(i.css("padding-right")||0,10),p=document.body.style.paddingRight||0,u&&i.css("--scrollbar-width",e+h+"px"),i.addClass("modal-open")})),a.on("close",(function(){i.removeClass("modal-open"),i.css("--scrollbar-width",p+"px"),f()})),t.off("update").on("update",(function(e,t){t&&a.data.group[t.group][t.index]&&(a.data.group[t.group][t.index].src=t.src,a.data.group[t.group][t.index].thumb=t.src)}))})).off("copy_text").on("copy_text",(function(e,t,i,a){if(navigator.clipboard)navigator.clipboard.writeText(t).then((function(){i&&i()}),(function(){console.error("Failed to copy"),a&&a()}));else if(void 0!==document.execCommand){var r=document.createElement("textarea");document.body.appendChild(r),r.style.position="fixed",r.style.height=0,r.value=t,r.select(),document.execCommand("copy",!0),document.body.removeChild(r),i&&i()}else a&&a()})),"baiduboxapp"==a.match(/baiduboxapp/i))e(document).on("click","a.j-wpcom-lightbox",(function(t){t.preventDefault();var i="baiduboxapp://v19/utils/previewImage?params="+encodeURIComponent(JSON.stringify({urls:n,current:e(this).attr("href")})),a=document.createElement("iframe");a.style.display="none",a.src=i;var r=document.body;r.appendChild(a),setTimeout((function(){r.removeChild(a),a=null}),0)}));else{f();var m=e(".entry-content .j-wpcom-lightbox, .modules-gutenberg .j-wpcom-lightbox");m.length&&(m.find("noscript").remove(),e(document).trigger("smartphoto",[m]))}window.location.hash&&O(window.location.hash),e(".j-lazy").lazyload({webp:o}),e('a[href^="http"]').not('a[href*="'+location.hostname+'"]').each((function(t,i){var a=e(i),r=a.attr("rel");r&&!/noopener/i.test(r)?r+=" noopener":r=r||"noopener",a.attr("rel",r)})),/(iPhone|iPad|iPod|iOS|Android)/i.test(a)&&(e("body").addClass("is-mobile"),e(".modules-fullwidth > .module-bg-video").remove()),D(),e(".entry-content.text-indent > p > img, .entry-content.text-indent > p > .j-wpcom-lightbox, .entry-content.text-indent .q-entry > p > img, .entry-content.text-indent .q-entry > p > .j-wpcom-lightbox").each((function(){var t=e(this).parent(),i=t.children(),a=0;(1===i.length&&""===e.trim(t.prop("outerText"))||2===i.length&&"NOSCRIPT"===i.eq(0).prop("tagName")&&""===e.trim(t.prop("outerText")))&&(a=1),a&&t.css("text-indent",0)}));var v=!1;if(window.localStorage){var g=localStorage.getItem("hideTopNews");(g=g?JSON.parse(g):null)&&g.value&&g.expires>Date.parse(new Date)?v=!0:g&&localStorage.removeItem("hideTopNews")}var w=e(".top-news");function y(t,i){var a='<div class="wpcom-modal fade" id="footer-bar">\n            <div class="modal-dialog modal-sm">\n                <div class="modal-content">\n                    <div class="modal-header">\n                        <div class="wpcom-close" data-wpcom-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-close"></use></svg></i></span></div><h4 class="modal-title">'+(i||"")+'</h4>\n                    </div>\n                    <div class="modal-body">\n'+t+"                    </div>\n                </div>\n            </div>\n        </div>";0===e("#footer-bar").length?e("body").append(a):e("#footer-bar").replaceWith(a),e("#footer-bar")._modal()}function b(e){var t=e,i=t.closest(".modules-search").find('input[name="cat"]'),a=t.find("option:selected").data("cat");"post"===t.val()&&a?i.length?i.val(a):t.after('<input type="hidden" name="cat" value="'+a+'">'):i.length&&i.remove()}!v&&w.length&&(w.slideDown(),e("body:not(.member-login,.member-register)").css("padding-top",60),e(".wpcom-member .btn-home").css("top",90)),e(".multi-filter .multi-filter-item").each((function(t,i){var a=e(i);a.find(".multi-filter-ul").outerHeight()>80&&a.addClass("has-more")})).on("click",".multi-filter-more",(function(){e(this).closest(".multi-filter-item").toggleClass("open")})),e(document).on("click",'a[href^="#"]',(function(t){var i=e(this),a=i.attr("role");"tab"!=a&&"button"!=a&&(t.preventDefault(),i.hasClass("ez-toc-link")&&this.hash&&"undefined"!=typeof ezTOC&&ezTOC.scroll_offset?O(this.hash,ezTOC.scroll_offset):this.hash&&O(this.hash))})).on("click",".j-footer-bar-qrcode,.j-footer-bar-text",(function(t){t.preventDefault();var i=e(this),a=i.find("> span").text();return y(i.hasClass("j-footer-bar-qrcode")?'<img src="'+i.attr("href")+'">':i.find("script").html(),a||_wpcom_js.js_lang.qrcode),!1})).on("click",".j-footer-bar-copy",(function(t){var i=e(this),a=i.find("script.j-copy-text").text(),r=i.find("script.j-copy-callback").html();e(document).trigger("copy_text",[a,function(){r&&""!==r.trim()?y(r='<div class="copy-callback-success">'+_wpcom_js.js_lang.copy_done+"</div>"+r,i.find("> span").text()):wpcom_notice({message:_wpcom_js.js_lang.copy_done,show:1500})},function(){var e=_wpcom_js.js_lang.copy_fail;wpcom_alert(e+="<br />"+a)}])})).on("shown.bs.collapse",".wp-block-wpcom-accordion",(function(){e(this).find(".panel-collapse.in").closest(".panel").find(".panel-title a").attr("aria-expanded","true")})).on("change",".modules-search select[name=post_type]",(function(){b(e(this))})).on("click",".modules-search .modules-search-type-item",(function(){var t=e(this),i=t.closest(".modules-search");if(t.hasClass("active"))return!1;i.find(".modules-search-type-item").removeClass("active"),t.addClass("active"),t.data("search-url")?(i.find("form.modules-search-from").data("search-url",t.data("search-url")),i.find(".modules-search-post").hide()):(i.find("form.modules-search-from").data("search-url",""),i.find(".modules-search-post").show())})).on("submit",".modules-search form.modules-search-from",(function(){var t=e(this),i=t.data("search-url");if(i){var a=t.find("input[name=s]").val();return i=i.replace("%KEYWORDS%",a),"_blank"===t.attr("target")?window.open(i,"_blank"):window.location.href=i,!1}})).on("click",".tabs-switch-click > .tabs-switch-item",(function(){var t=e(this);if(t.hasClass("active"))return!1;var i=t.index();t.parent().find(".tabs-switch-item").removeClass("active"),t.addClass("active"),t.closest(".modules-tabs").find(" > .tabs-content > .tabs-content-item").removeClass("active").eq(i).addClass("active")})).on("mouseenter",".tabs-switch-hover > .tabs-switch-item",(function(){var t=e(this);if(t.hasClass("active"))return!1;var i=t.index();t.parent().find(".tabs-switch-item").removeClass("active"),t.addClass("active"),t.closest(".modules-tabs").find(" > .tabs-content > .tabs-content-item").removeClass("active").eq(i).addClass("active")})),e(".modules-search select[name=post_type]").each((function(){b(e(this))})),e(".modules-search .modules-search-type").each((function(){e(this).find(".modules-search-type-item").eq(0).trigger("click")})),e(".wp-block-wpcom-accordion").collapse("show"),window.location.base="MzY2OA==",e(".wpcom-modal.modal-video").on("shown.wpcom.modal",(function(t){var a=e(this).closest(".modules-video").find(".video-wrap");e(".modal-body",this).html(a.find(".video-code").html());var r=e(this).find(".j-wpcom-video");r.length&&i.trigger("player",[{el:r,args:{autoplay:!0}}])})).on("hidden.wpcom.modal",(function(t){e(".modal-body",this).html("")}));var x=new MutationObserver((function(t){t.forEach((function(t){Array.prototype.slice.call(t.addedNodes).forEach((function(t){!t.className||"widget_shopping_cart_content"!==t.className&&"woocommerce-cart-form"!==t.className||e(t).find(".j-lazy").lazyload({webp:o})}))}))})),E={childList:!0,subtree:!0,attributes:!1,characterData:!1},S=document.querySelector(".shopping-cart"),T=document.querySelector(".woocommerce-cart-form-wrap"),C=document.querySelector(".widget_shopping_cart");S&&x.observe(S,E),T&&x.observe(T,E),C&&x.observe(C,E);var P,k=new MutationObserver((function(e){e.forEach((function(e){("attributes"===e.type&&"UL"!==e.target.nodeName||"childList"===e.type)&&setTimeout((function(){return N()}),50)}))})),_=document.querySelector("header.header");_&&k.observe(_,{childList:!0,subtree:!0,attributes:!0,characterData:!1}),e(document).on("reset_adv_menu","header.header",(function(){N()})).on("wpcom.map",(function(){D()})).on("wpcom.lightbox",(function(t,i){if(j(),i&&"baiduboxapp"!==a.match(/baiduboxapp/i)){var r=i.find(".j-wpcom-lightbox");r.length&&(r.find("noscript").remove(),e(document).trigger("smartphoto",[r]))}})).on("change",".woocommerce input.qty",(function(){void 0!==P&&clearTimeout(P),P=setTimeout((function(){e("[name='update_cart']").trigger("click")}),600)})),i.on("click",".navbar-toggle",(function(){i.hasClass("navbar-on")?i.removeClass("navbar-on navbar-ing"):(i.addClass("navbar-on navbar-ing"),setTimeout((function(){i.removeClass("navbar-ing")}),500)),0==e(".navbar-on-shadow").length&&e("#wrap").append('<div class="navbar-on-shadow"></div>')})).on("click",".m-dropdown",(function(){var t=e(this).parent();return t.find("> .dropdown-menu").slideToggle("fast"),t.toggleClass("dropdown-open"),console.log("dropdown"),!1})).on("click",".top-news-close",(function(){var t={value:1,expires:Date.parse(new Date)+864e5};window.localStorage&&localStorage.setItem("hideTopNews",JSON.stringify(t)),w.slideUp(),i.css("padding-top",0),e(".wpcom-member .btn-home").css("top",30)})).on("click",".action .j-top",(function(){e("html, body").animate({scrollTop:0},"slow")})),e("#wrap").on("click",".navbar-on-shadow",(function(){i.hasClass("navbar-ing")||e(".navbar-toggle").trigger("click")})),e(".woocommerce").off("click.quantity").on("click.quantity",".qty-down,.qty-up",(function(){var t=e(this).hasClass("qty-down")?0:1,i=e(this).parent().find(".qty"),a=i.val();a=t?++a:--a,a=i.attr("min")&&a<i.attr("min")?i.attr("min"):a,a=i.attr("max")&&a>i.attr("max")?i.attr("max"):a,i.val(a).trigger("change")})).off("blur.quantity").on("blur.quantity",".qty",(function(){var t=e(this),i=t.val();i=t.attr("min")&&i<t.attr("min")?t.attr("min"):i,i=t.attr("max")&&i>t.attr("max")?t.attr("max"):i,t.val(i)}));var I,M,L=e(".j-top"),A=e(".action");function O(t,i){var a=e(t).length?e(t).offset().top:0;(i=i||10)&&(a-=i);var r=e("header.header");if(r.length){var n=getComputedStyle(r[0]);n&&n.position&&"fixed"===n.position&&(a-=r.outerHeight())}a=e("#wpadminbar").length?a-e("#wpadminbar").outerHeight():a,a=(a=e(".top-news").length?a-e(".top-news").outerHeight():a)<0?0:a,e("html, body").animate({scrollTop:a},400)}function N(){e(".wpcom-adv-menu").each((function(t,i){var a=e(i),r=e("body").width(),n=a.closest(".container").width();n=n||r-64;var o=e("#wrap > .container").width(),s=e("footer.footer > .container").width();o=(o=!o||s&&s<o?s:o)&&o<n?o:n,a.css({"--menu-margin-left":(r-o)/2+"px"}),a.find(">.menu-item-style").each((function(t,i){var o=e(i),s=o.find(">.menu-item-wrap");if(o.hasClass("menu-item-style3")||s.hasClass("menu-item-col-4")||s.hasClass("menu-item-col-5")){var l=o.offset().left;s.css({left:-l,width:r})}else{var c=o.position().left,d=s.outerWidth(),u=a.offset().left-(r-n)/2,p="";c+d>n-u&&(p=-(o.offset().left+d-n-(r-n)/2)),s.css("left",p)}}))}))}function D(){e(".j-map").each((function(t,i){var a=e(i).find("script").html(),r=JSON.parse(a);void 0===window.wpcom_maps&&(window.wpcom_maps=[]),window.wpcom_maps.push(r)})),void 0!==window.wpcom_maps&&window.wpcom_maps.length&&function(){var t="\u6682\u672a\u8bbe\u7f6e\u5730\u56fe\u63a5\u53e3\uff0c\u5982\u679c\u60a8\u662f\u7f51\u7ad9\u7ba1\u7406\u5458\uff0c\u8bf7\u524d\u5f80\u3010\u4e3b\u9898\u8bbe\u7f6e>\u5e38\u89c4\u8bbe\u7f6e>\u5730\u56fe\u63a5\u53e3\u3011\u8fdb\u884c\u8bbe\u7f6e",i=[],a=[];for(var r in window.wpcom_maps)1==window.wpcom_maps[r].type?a.push(window.wpcom_maps[r]):i.push(window.wpcom_maps[r]);i.length&&"1"===_wpcom_js.is_admin&&wpcom_alert("\u6e29\u99a8\u63d0\u793a\uff1a\u7531\u4e8e\u767e\u5ea6\u5730\u56fe\u5546\u7528\u9700\u8981\u6388\u6743\uff0c\u7ecf\u8003\u8651\u76ee\u524d\u5df2\u5c06\u767e\u5ea6\u5730\u56fe\u529f\u80fd\u4e0b\u7ebf\uff0c\u5efa\u8bae\u60a8\u5c06\u9875\u9762\u6d89\u53ca\u5230\u767e\u5ea6\u5730\u56fe\u5c55\u793a\u76f8\u5173\u7684\u6a21\u5757\u8fdb\u884c\u5220\u9664\u6216\u8005\u8c03\u6574\u3002\uff08\u4ec5\u7ba1\u7406\u5458\u53ef\u89c1\uff09");if(a.length&&!a[0].key)wpcom_alert(t);else if(a.length){var n="//maps.googleapis.com/maps/api/js?key="+a[0].key;e.ajax({url:n,dataType:"script",cache:!0,success:function(){for(var t=[],i=[],r=[],n=0;n<a.length;n++)!function(n){var o=a[n],s={zoom:15,center:{lat:Number(e.trim(o.pos[0])),lng:Number(e.trim(o.pos[1]))},scrollwheel:!!o.scrollWheelZoom,styles:[{elementType:"geometry",stylers:[{lightness:45},{saturation:-25}]},{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]}],disableDefaultUI:!0};t[n]=new google.maps.Map(document.getElementById(o.id),s);var l={position:s.center,map:t[n]};o.icon&&(l.icon={url:o.icon,size:new google.maps.Size(27,27),scaledSize:new google.maps.Size(27,27)}),i[n]=new google.maps.Marker(l),o.html&&(r[n]=new google.maps.InfoWindow({content:o.html,maxWidth:500}),r[n].open(t[n],i[n]),i[n].addListener("click",(function(){r[n].open(t[n],i[n])})))}(n)}})}}()}function j(){r&&void 0!==_wpcom_js.lightbox&&1==_wpcom_js.lightbox&&e(".entry-content img").each((function(t,i){var r=e(i);if(!r.hasClass("no-lightbox")){var o=r.parent(),s=r.data("original");if((s=s||r.attr("src"))&&s.match(/^\/\//)&&(s=window.location.protocol+s),"a"===o.prop("tagName").toLowerCase()){var l=o.attr("href");!o.hasClass("j-wpcom-lightbox")&&(l==s||l&&l.match(/.*(\.png|\.jpg|\.jpeg|\.gif|\.webp|\.bmp)$/i))&&(o.addClass("j-wpcom-lightbox"),o.attr("data-group","0"),(a.match(/MicroMessenger/i)||a.match(/baiduboxapp/i))&&n.push(s))}else r.hasClass("wp-smiley")||r.closest("a").length||(r.replaceWith('<a class="j-wpcom-lightbox" href="'+s+'" data-group="0">'+i.outerHTML+"</a>"),(a.match(/MicroMessenger/i)||a.match(/baiduboxapp/i))&&n.push(s))}}))}if(L.length&&t.on("scroll",(function(){t.scrollTop()>100?(L.addClass("active"),A.removeClass("hide-gotop")):(L.removeClass("active"),A.addClass("hide-gotop"))})),A.length&&setTimeout((function(){A.find(".action-item").each((function(t,i){var a=e(i).find(".action-item-inner");a.length&&a.css("margin-top",-a.outerHeight()/2)}))}),200),A.on("mouseenter",".action-item",(function(){var t=e(this).find(".action-item-inner");t.length&&t.css("margin-top",-t.outerHeight()/2)})),t.on("resize",(function(){I&&clearTimeout(I),I=setTimeout((function(){N()}),50)})),setTimeout((function(){Q.init()}),50),N(),e(".wpcom-adv-menu").find("img").on("load",(function(){M&&clearTimeout(M),M=setTimeout((function(){return N()}),100)})),function(){if(a.match(/MicroMessenger/i)){var t,i=location.href.split("#")[0],r=document.querySelector("body").classList,s=0;if(r.contains("page"))for(var l=0;l<r.length;l++)(t=r[l].match(/page-id-(\d+)$/))&&(s=t[1]);else if(r.contains("single"))for(l=0;l<r.length;l++)(t=r[l].match(/postid-(\d+)$/))&&(s=t[1]);e(".q-content.q-single").length&&(s=e(".q-content.q-single").data("id")),e.ajax({url:_wpcom_js.ajaxurl,type:"POST",data:{action:"wpcom_wx_config",url:encodeURIComponent(i),ID:s},dataType:"json",success:function(t){if(t.signature){var a=t.thumb;a.match(/^\/\//)&&(a=window.location.protocol+a);var r=document.title,s=e("meta[name=description]").attr("content");s=s||t.desc;var l=document.createElement("script");l.src="//res.wx.qq.com/open/js/jweixin-1.6.0.js",l.onload=function(){window.wx.config({debug:!1,appId:t.appId,timestamp:t.timestamp,nonceStr:t.noncestr,signature:t.signature,jsApiList:["updateAppMessageShareData","updateTimelineShareData","onMenuShareWeibo","previewImage"]}),window.wx.ready((function(){e(document).trigger("wx.ready");var t={imgUrl:a,link:i,desc:s,title:r},l={imgUrl:a,link:i,title:r};wx.updateAppMessageShareData(t),wx.updateTimelineShareData(l),wx.onMenuShareWeibo(t),e(".entry-content,.modules-gutenberg").find("a.j-wpcom-lightbox").each((function(t,i){var a=e(i),r=a.find("> img"),n=a.attr("href");r.attr("data-img",n).addClass("j-previewImage"),a.replaceWith(a.html())})),e(".entry-content .j-previewImage.j-lazy").lazyload({webp:o}),e(document).on("click","img.j-previewImage",(function(t){t.preventDefault(),wx.previewImage({current:e(this).data("img"),urls:n})}))})),wx.error((function(e){console.log(e,"error")}))},document.body.appendChild(l)}}})}}(),void 0!==_wpcom_js.share&&"1"==_wpcom_js.share){var B=void 0!==_wpcom_js.share_items&&_wpcom_js.share_items;setup_share(B)}})),window.wpcom_alert=function(e,t){t=t||"\u63d0\u793a\u4fe1\u606f";var i=jQuery("#wpcom-alert");if(i.length)i.find(".modal-title").html(t),i.find(".modal-body").html(e),i._modal("show");else{var a='<div class="wpcom-modal fade modal-alert" id="wpcom-alert" data-backdrop="static">\n            <div class="modal-dialog modal-sm">\n                <div class="modal-content">                   <div class="modal-header"><div class="wpcom-close" data-wpcom-dismiss="modal" aria-label="Close"><i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-close"></use></svg></i></div><h4 class="modal-title">'+t+'</h4></div>\n                   <div class="modal-body">'+e+'</div>\n                   <div class="modal-footer"><button type="button" class="wpcom-btn btn-primary" data-wpcom-dismiss="modal" aria-label="Close">'+_wpcom_js.js_lang.confirm+"</button></div>                </div>\n            </div>\n        </div>";jQuery("body").append(a)}jQuery("#wpcom-alert")._modal("show")},window.wpcom_notice=function(e){if(!arguments.length||1===arguments.length&&"object"===c(arguments[0])||(e={},void 0!==arguments[0]&&(e.message=arguments[0]),void 0!==arguments[1]&&(e.type=arguments[1]),void 0!==arguments[2]&&"loading"!==e.type&&(e.show=arguments[2]),void 0!==arguments[2]&&"loading"===e.type&&(e.callback=arguments[2])),e&&e.message){e.type=e.type?e.type:"success";var t='<div class="notice-message"><div class="notice-message-content notice-message-'+e.type+'">';"success"===e.type?t+='<i class="wpcom-icon wi notice-message-icon"><svg aria-hidden="true"><use xlink:href="#wi-success"></use></svg></i>':"warning"===e.type||"error"===e.type?t+='<i class="wpcom-icon wi notice-message-icon"><svg aria-hidden="true"><use xlink:href="#wi-warning"></use></svg></i>':"loading"===e.type&&(t+='<i class="wpcom-icon wi notice-message-icon"><svg aria-hidden="true"><use xlink:href="#wi-loader"></use></svg></i>'),t+=e.message+"</div></div>";var i=jQuery(t),a=jQuery(".notice-message-wrapper");return 0===a.length&&(jQuery(document.body).append('<div class="notice-message-wrapper"></div>'),a=jQuery(".notice-message-wrapper")),a.append(i),i.one("hide.notice",(function(){var e=jQuery(this);e.removeClass("notice-message-active").addClass("notice-message-up"),setTimeout((function(){e.remove(),0===a.find(".notice-message").length&&a.remove()}),320)})),setTimeout((function(){i.addClass("notice-message-active"),"loading"===e.type&&void 0!==e.callback?e.callback(i):setTimeout((function(){i.trigger("hide.notice")}),e.show?e.show:3e3)}),50),i}},window.setup_share=function(e){if(e&&Object.keys(e).length){var t='<div class="action-item-inner share-more-wrap"><h4 class="share-more-title">'+_wpcom_js.js_lang.share_to+"</h4>";for(var i in e)t+='<a class="action-share-item" data-share="'+i+'" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-'+i+'"><svg aria-hidden="true"><use xlink:href="#wi-'+e[i].icon+'"></use></svg></i>'+e[i].title+"</a>";t+="</div>",jQuery(".action .action-item.j-share").append(t)}else jQuery(".action .action-item.j-share").append('<div class="action-item-inner share-more-wrap">\n                <h4 class="share-more-title">'+_wpcom_js.js_lang.share_to+'</h4>\n                <a class="action-share-item" data-share="weibo" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-weibo"><svg aria-hidden="true"><use xlink:href="#wi-weibo"></use></svg></i>\u5fae\u535a</a>\n                <a class="action-share-item" data-share="wechat" rel="noopener"><i class="wpcom-icon wi wi-wechat"><svg aria-hidden="true"><use xlink:href="#wi-wechat"></use></svg></i>\u5fae\u4fe1</a>\n                <a class="action-share-item" data-share="qq" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-qq"><svg aria-hidden="true"><use xlink:href="#wi-qq"></use></svg></i>QQ\u597d\u53cb</a>\n                <a class="action-share-item" data-share="qzone" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-qzone"><svg aria-hidden="true"><use xlink:href="#wi-qzone"></use></svg></i>QQ\u7a7a\u95f4</a>\n                <a class="action-share-item" data-share="douban" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-douban"><svg aria-hidden="true"><use xlink:href="#wi-douban"></use></svg></i>\u8c46\u74e3</a>\n                <a class="action-share-item" data-share="linkedin" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-linkedin"><svg aria-hidden="true"><use xlink:href="#wi-linkedin"></use></svg></i>LinkedIn</a>\n                <a class="action-share-item" data-share="facebook" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-facebook"><svg aria-hidden="true"><use xlink:href="#wi-facebook"></use></svg></i>Facebook</a>\n                <a class="action-share-item" data-share="x" target="_blank" rel="noopener"><i class="wpcom-icon wi wi-x"><svg aria-hidden="true"><use xlink:href="#wi-twitter-x"></use></svg></i>X</a>\n            </div>')},jQuery((function(e){var t,i=e(".navbar-toggle").is(":hidden"),a=e(window),r=e("body"),n=e("footer.footer"),o=e("#wrap"),s=e("#header"),l=e(".section"),c=a.height();g(),a.on("resize",(function(){i=e(".navbar-toggle").is(":hidden"),c=a.height(),g(),f()}));var d=new MutationObserver((function(e){e.forEach((function(e){t&&clearTimeout(t),t=setTimeout((function(){f()}),50)}))})),u=document.querySelector(".top-news");u&&d.observe(u,{childList:!0,subtree:!0,attributes:!0,characterData:!1});var p=new MutationObserver((function(e){e.forEach((function(e){"childList"===e.type&&e.addedNodes.length&&g()}))})),h=e(".navbar-action");function f(){var e=parseInt(n.css("marginBottom"));e=e||0,o.css("min-height",c-o.offset().top-n.outerHeight()-e)}h.length&&p.observe(h[0],{childList:!0,subtree:!0,attributes:!1,characterData:!1}),e(".search-index").on("click","a",(function(){e(".search-index .search-form").animate({width:"220px"},"fast")})),e(document).on("click",(function(t){var i=e(t.target);0==i.closest(".search-index .search-form").length&&0==i.closest(".search-index a").length&&e(".search-index .search-form").animate({width:"0"},"fast")})),f();var m=e(".swiper-container").not(".entry-content-slider,#preview");function v(){var t=a.scrollTop(),i=t+a.height();l.each((function(t){var r=e(this),n=r.offset().top;n<i-a.height()/4&&n>a.scrollTop()-r.height()+100&&r.addClass("loaded")})),t>0?s.addClass("header-fixed"):s.removeClass("header-fixed")}function g(){if(!i)for(var t=e("header li.dropdown"),a=0;a<t.length;a++){var r=e(t[a]);0==r.find(".m-dropdown").length&&r.append('<div class="m-dropdown"><i class="wpcom-icon wi"><svg aria-hidden="true"><use xlink:href="#wi-arrow-down-3"></use></svg></i></div>')}}m.length&&m.each((function(t,i){var a={autoHeight:!!e(i).closest(".widget_post_slider, .widget_image_slider").length,pagination:{el:i.querySelector(".swiper-pagination"),clickable:!0},breakpoints:{768:{simulateTouch:!1}}};r.trigger("swiper",{el:i,args:a})})),r.trigger("swiper",{el:".j-slider",args:{pagination:{clickable:!0},slideClass:"p-item",slidesPerView:2,slidesPerGroup:2,spaceBetween:0,breakpoints:{481:{slidesPerView:2},768:{slidesPerView:4}}}}),v(),a.on("scroll",(function(){v()})),e("#j-weixin").on("mouseenter",(function(){e(".qrcode").addClass("active")})).on("mouseleave",(function(){e(".qrcode").removeClass("active")}))}))}));
