| @@ -1,2 +1,13 @@ | ||
| 1 | -/*! For license information please see view.js.LICENSE.txt */ | |
| 2 | -(()=>{var e={181:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,a=parseInt,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=s||c||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return u.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||l.test(e)?a(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,l,a,s,c=0,u=!1,d=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,i=o;return r=o=void 0,c=t,l=e.apply(i,n)}function m(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=i}function w(){var e=h();if(m(e))return S(e);a=setTimeout(w,function(e){var n=t-(e-s);return d?p(n,i-(e-c)):n}(e))}function S(e){return a=void 0,y&&r?g(e):(r=o=void 0,l)}function k(){var e=h(),n=m(e);if(r=arguments,o=this,s=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(w,t),u?g(e):l}(s);if(d)return a=setTimeout(w,t),g(s)}return void 0===a&&(a=setTimeout(w,t)),l}return t=b(t)||0,v(n)&&(u=!!n.leading,i=(d="maxWait"in n)?f(b(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=s=o=a=void 0},k.flush=function(){return void 0===a?l:S(h())},k}},773:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var o=a(n(1609)),i=a(n(6942)),l=n(9445);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}t.Dots=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(d,e);var t,n,a=function(e){var t=p();return function(){var n,o=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,n=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,a=t.onMouseLeave,u=t.infinite,d=t.slidesToScroll,f=t.slidesToShow,p=t.slideCount,h=t.currentSlide,v=(e={slideCount:p,slidesToScroll:d,slidesToShow:f,infinite:u}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,b={onMouseEnter:n,onMouseOver:r,onMouseLeave:a},y=[],g=0;g<v;g++){var m=(g+1)*d-1,w=u?m:(0,l.clamp)(m,0,p-1),S=w-(d-1),k=u?S:(0,l.clamp)(S,0,p-1),O=(0,i.default)({"slick-active":u?h>=k&&h<=w:h===k}),$={message:"dots",index:g,slidesToScroll:d,currentSlide:h},E=this.clickHandler.bind(this,$);y=y.concat(o.default.createElement("li",{key:g,className:O},o.default.cloneElement(this.props.customPaging(g),{onClick:E})))}return o.default.cloneElement(this.props.appendDots(y),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},b))}}],n&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.default.PureComponent)},1327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(1609))&&r.__esModule?r:{default:r},i={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};t.default=i},1441:(e,t,n)=>{var r=n(8028),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var l=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof l&&(l+="px"),t+=!0===l?o:!1===l?"not "+o:"("+o+": "+l+")",i<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=o(n),r<e.length-1&&(t+=", ")})),t):o(e)}},1609:e=>{"use strict";e.exports=window.React},3591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==n.g&&n.g.Math===Math?n.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){l(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=y(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return o?v(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=d(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=p(i)}return t}(r),i=o.left+o.right,l=o.top+o.bottom,a=p(r.width),s=p(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==t&&(a-=h(r,"left","right")+i),Math.round(s+l)!==n&&(s-=h(r,"top","bottom")+l)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(a+i)-t,u=Math.round(s+l)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(s-=u)}return y(o.left,o.top,a,s)}(e):f}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),m=function(e,t){var n,r,o,i,l,a,s,c=(r=(n=t).x,o=n.y,i=n.width,l=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(a.prototype),u(s,{x:r,y:o,width:i,height:l,top:o,right:r+i,bottom:l+o,left:r}),s);u(this,{target:e,contentRect:c})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new m(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new r,k=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){k.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));const O=void 0!==i.ResizeObserver?i.ResizeObserver:k},4589:(e,t,n)=>{"use strict";t.A=void 0;var r,o=(r=n(8120))&&r.__esModule?r:{default:r};t.A=o.default},4999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var r=f(n(1609)),o=f(n(8841)),i=f(n(181)),l=f(n(6942)),a=n(9445),s=n(5942),c=n(773),u=n(9223),d=f(n(3591));function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(null,arguments)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O(r.key),r)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function k(e,t,n){return(t=O(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}t.InnerSlider=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(v,e);var t,n,f=function(e){var t=w();return function(){var n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(this,n)}}(v);function v(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),k(m(t=f.call(this,e)),"listRefHandler",(function(e){return t.list=e})),k(m(t),"trackRefHandler",(function(e){return t.track=e})),k(m(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,a.getHeight)(e)+"px"}})),k(m(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,a.getOnDemandLazySlides)(b(b({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=b({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new d.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),k(m(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),k(m(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,a.getOnDemandLazySlides)(b(b({},t.props),t.state));n.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var o=b(b({listRef:t.list,trackRef:t.track},t.props),t.state),i=t.didPropsChange(e);i&&t.updateState(o,i,(function(){t.state.currentSlide>=r.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:r.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),k(m(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,i.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),k(m(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var n=b(b({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),k(m(t),"updateState",(function(e,n,o){var i=(0,a.initializedState)(e);e=b(b(b({},e),i),{},{slideIndex:i.currentSlide});var l=(0,a.getTrackLeft)(e);e=b(b({},e),{},{left:l});var s=(0,a.getTrackCSS)(e);(n||r.default.Children.count(t.props.children)!==r.default.Children.count(e.children))&&(i.trackStyle=s),t.setState(i,o)})),k(m(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,n=0,o=[],i=(0,a.getPreClones)(b(b(b({},t.props),t.state),{},{slideCount:t.props.children.length})),l=(0,a.getPostClones)(b(b(b({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var s=0;s<i;s++)n+=o[o.length-1-s],e+=o[o.length-1-s];for(var c=0;c<l;c++)e+=o[c];for(var u=0;u<t.state.currentSlide;u++)n+=o[u];var d={width:e+"px",left:-n+"px"};if(t.props.centerMode){var f="".concat(o[t.state.currentSlide],"px");d.left="calc(".concat(d.left," + (100% - ").concat(f,") / 2 ) ")}return{trackStyle:d}}var p=r.default.Children.count(t.props.children),h=b(b(b({},t.props),t.state),{},{slideCount:p}),v=(0,a.getPreClones)(h)+(0,a.getPostClones)(h)+p,y=100/t.props.slidesToShow*v,g=100/v,m=-g*((0,a.getPreClones)(h)+t.state.currentSlide)*y/100;return t.props.centerMode&&(m+=(100-g*y/100)/2),{slideWidth:g+"%",trackStyle:{width:y+"%",left:m+"%"}}})),k(m(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,(function(e){var o=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=o,e.onerror=function(){o(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),k(m(t),"progressiveLazyLoad",(function(){for(var e=[],n=b(b({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,a.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var o=t.state.currentSlide-1;o>=-(0,a.getPreClones)(n);o--)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),k(m(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,o=r.asNavFor,i=r.beforeChange,l=r.onLazyLoad,s=r.speed,c=r.afterChange,u=t.state.currentSlide,d=(0,a.slideHandler)(b(b(b({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),f=d.state,p=d.nextState;if(f){i&&i(u,f.currentSlide);var h=f.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));l&&h.length>0&&l(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),c&&c(u),delete t.animationEndCallback),t.setState(f,(function(){o&&t.asNavForIndex!==e&&(t.asNavForIndex=e,o.innerSlider.slideHandler(e)),p&&(t.animationEndCallback=setTimeout((function(){var e=p.animating,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(p,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),c&&c(f.currentSlide),delete t.animationEndCallback}))}),s))}))}})),k(m(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=b(b({},t.props),t.state),o=(0,a.changeSlide)(r,e);if((0===o||o)&&(!0===n?t.slideHandler(o,n):t.slideHandler(o),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var i=t.list.querySelectorAll(".slick-current");i[0]&&i[0].focus()}})),k(m(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),k(m(t),"keyHandler",(function(e){var n=(0,a.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),k(m(t),"selectHandler",(function(e){t.changeSlide(e)})),k(m(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),k(m(t),"enableBodyScroll",(function(){window.ontouchmove=null})),k(m(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,a.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),k(m(t),"swipeMove",(function(e){var n=(0,a.swipeMove)(e,b(b(b({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),k(m(t),"swipeEnd",(function(e){var n=(0,a.swipeEnd)(e,b(b(b({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}})),k(m(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),k(m(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),k(m(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),k(m(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),k(m(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,a.canGoNext)(b(b({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),k(m(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),k(m(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),k(m(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(m(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(m(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(m(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(m(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),k(m(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),k(m(t),"render",(function(){var e,n,o,i=(0,l.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),d=b(b({},t.props),t.state),f=(0,a.extractObject)(d,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),p=t.props.pauseOnHover;if(f=b(b({},f),{},{onMouseEnter:p?t.onTrackOver:null,onMouseLeave:p?t.onTrackLeave:null,onMouseOver:p?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var v=(0,a.extractObject)(d,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),y=t.props.pauseOnDotsHover;v=b(b({},v),{},{clickHandler:t.changeSlide,onMouseEnter:y?t.onDotsLeave:null,onMouseOver:y?t.onDotsOver:null,onMouseLeave:y?t.onDotsLeave:null}),e=r.default.createElement(c.Dots,v)}var g=(0,a.extractObject)(d,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);g.clickHandler=t.changeSlide,t.props.arrows&&(n=r.default.createElement(u.PrevArrow,g),o=r.default.createElement(u.NextArrow,g));var m=null;t.props.vertical&&(m={height:t.state.listHeight});var w=null;!1===t.props.vertical?!0===t.props.centerMode&&(w={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(w={padding:t.props.centerPadding+" 0px"});var S=b(b({},m),w),k=t.props.touchMove,O={className:"slick-list",style:S,onClick:t.clickHandler,onMouseDown:k?t.swipeStart:null,onMouseMove:t.state.dragging&&k?t.swipeMove:null,onMouseUp:k?t.swipeEnd:null,onMouseLeave:t.state.dragging&&k?t.swipeEnd:null,onTouchStart:k?t.swipeStart:null,onTouchMove:t.state.dragging&&k?t.swipeMove:null,onTouchEnd:k?t.touchEnd:null,onTouchCancel:t.state.dragging&&k?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},$={className:i,dir:"ltr",style:t.props.style};return t.props.unslick&&(O={className:"slick-list"},$={className:i,style:t.props.style}),r.default.createElement("div",$,t.props.unslick?"":n,r.default.createElement("div",h({ref:t.listRefHandler},O),r.default.createElement(s.Track,h({ref:t.trackRefHandler},f),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=b(b({},o.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:r.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=b(b({},t.state),n),t}return t=v,(n=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var i=o[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==p(e[i])&&"function"!=typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){t=!0;break}}return t||r.default.Children.count(this.props.children)!==r.default.Children.count(e.children)}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(r.default.Component)},5338:(e,t,n)=>{"use strict";var r=n(5795);t.H=r.createRoot,r.hydrateRoot},5795:e=>{"use strict";e.exports=window.ReactDOM},5942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var r=l(n(1609)),o=l(n(6942)),i=n(9445);function l(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(null,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}var g=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},m=function(e,t){return e.key||t};t.Track=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(h,e);var t,n,l=function(e){var t=f();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}(this,n)}}(h);function h(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(d(e=l.call.apply(l,[this].concat(n))),"node",null),b(d(e),"handleRef",(function(t){e.node=t})),e}return t=h,(n=[{key:"render",value:function(){var e=function(e){var t,n=[],l=[],a=[],s=r.default.Children.count(e.children),c=(0,i.lazyStartIndex)(e),u=(0,i.lazyEndIndex)(e);return r.default.Children.forEach(e.children,(function(d,f){var p,h={message:"children",index:f,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};p=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(f)>=0?d:r.default.createElement("div",null);var b=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(v(v({},e),{},{index:f})),y=p.props.className||"",w=g(v(v({},e),{},{index:f}));if(n.push(r.default.cloneElement(p,{key:"original"+m(p,f),"data-index":f,className:(0,o.default)(w,y),tabIndex:"-1","aria-hidden":!w["slick-active"],style:v(v({outline:"none"},p.props.style||{}),b),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}})),e.infinite&&s>1&&!1===e.fade&&!e.unslick){var S=s-f;S<=(0,i.getPreClones)(e)&&((t=-S)>=c&&(p=d),w=g(v(v({},e),{},{index:t})),l.push(r.default.cloneElement(p,{key:"precloned"+m(p,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(w,y),"aria-hidden":!w["slick-active"],style:v(v({},p.props.style||{}),b),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}}))),f<(0,i.getPostClones)(e)&&((t=s+f)<u&&(p=d),w=g(v(v({},e),{},{index:t})),a.push(r.default.cloneElement(p,{key:"postcloned"+m(p,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(w,y),"aria-hidden":!w["slick-active"],style:v(v({},p.props.style||{}),b),onClick:function(t){p.props&&p.props.onClick&&p.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}})))}})),e.rtl?l.concat(n,a).reverse():l.concat(n,a)}(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r.default.createElement("div",s({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(r.default.PureComponent)},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},8028:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},8120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(1609)),o=n(4999),i=s(n(1441)),l=s(n(1327)),a=n(9445);function s(e){return e&&e.__esModule?e:{default:e}}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 u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(null,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function g(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}t.default=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(d,e);var t,n,s=function(e){var t=b();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}(this,n)}}(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),g(v(t=s.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),g(v(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),g(v(t),"slickNext",(function(){return t.innerSlider.slickNext()})),g(v(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),g(v(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),g(v(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=d,(n=[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?(0,i.default)({minWidth:0,maxWidth:n}):(0,i.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,a.canUseDOM)()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=(0,i.default)({minWidth:t.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":f(f(f({},l.default),this.props),t[0].settings):f(f({},l.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var i=r.default.Children.toArray(this.props.children);i=i.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var s=[],c=null,d=0;d<i.length;d+=e.rows*e.slidesPerRow){for(var p=[],h=d;h<d+e.rows*e.slidesPerRow;h+=e.slidesPerRow){for(var v=[],b=h;b<h+e.slidesPerRow&&(e.variableWidth&&i[b].props.style&&(c=i[b].props.style.width),!(b>=i.length));b+=1)v.push(r.default.cloneElement(i[b],{key:100*d+10*h+b,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));p.push(r.default.createElement("div",{key:10*d+h},v))}e.variableWidth?s.push(r.default.createElement("div",{key:d,style:{width:c}},p)):s.push(r.default.createElement("div",{key:d},p))}if("unslick"===e){var y="regular slider "+(this.props.className||"");return r.default.createElement("div",{className:y},i)}return s.length<=e.slidesToShow&&(e.unslick=!0),r.default.createElement(o.InnerSlider,u({style:this.props.style,ref:this.innerSliderRefHandler},(0,a.filterSettings)(e)),s)}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.default.Component)},8841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},9223:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PrevArrow=t.NextArrow=void 0;var o=a(n(1609)),i=a(n(6942)),l=n(9445);function a(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(null,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function b(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=m();return function(){var n,o=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}t.PrevArrow=function(e){b(n,e);var t=g(n);function n(){return f(this,n),t.apply(this,arguments)}return h(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?o.default.cloneElement(this.props.prevArrow,u(u({},n),r)):o.default.createElement("button",s({key:"0",type:"button"},n)," ","Previous")}}]),n}(o.default.PureComponent),t.NextArrow=function(e){b(n,e);var t=g(n);function n(){return f(this,n),t.apply(this,arguments)}return h(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,l.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,i.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?o.default.cloneElement(this.props.nextArrow,u(u({},n),r)):o.default.createElement("button",s({key:"1",type:"button"},n)," ","Next")}}]),n}(o.default.PureComponent)},9445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSpecKeys=t.checkNavigable=t.changeSlide=t.canUseDOM=t.canGoNext=void 0,t.clamp=u,t.extractObject=void 0,t.filterSettings=function(e){return z.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})},t.validSettings=t.swipeStart=t.swipeMove=t.swipeEnd=t.slidesOnRight=t.slidesOnLeft=t.slideHandler=t.siblingDirection=t.safePreventDefault=t.lazyStartIndex=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.keyHandler=t.initializedState=t.getWidth=t.getTrackLeft=t.getTrackCSS=t.getTrackAnimateCSS=t.getTotalSlides=t.getSwipeDirection=t.getSlideCount=t.getRequiredLazySlides=t.getPreClones=t.getPostClones=t.getOnDemandLazySlides=t.getNavigableIndexes=t.getHeight=void 0;var r=i(n(1609)),o=i(n(1327));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="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},l(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t,n){return Math.max(t,Math.min(e,n))}var d=t.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},f=t.getOnDemandLazySlides=function(e){for(var t=[],n=p(e),r=h(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},p=(t.getRequiredLazySlides=function(e){for(var t=[],n=p(e),r=h(e),o=n;o<r;o++)t.push(o);return t},t.lazyStartIndex=function(e){return e.currentSlide-v(e)}),h=t.lazyEndIndex=function(e){return e.currentSlide+b(e)},v=t.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},b=t.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},y=t.getWidth=function(e){return e&&e.offsetWidth||0},g=t.getHeight=function(e){return e&&e.offsetHeight||0},m=t.getSwipeDirection=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},w=t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},S=(t.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},t.initializedState=function(e){var t,n=r.default.Children.count(e.children),o=e.listRef,i=Math.ceil(y(o)),l=e.trackRef&&e.trackRef.node,a=Math.ceil(y(l));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var u=o&&g(o.querySelector('[data-index="0"]')),d=u*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var h=e.lazyLoadedList||[],v=f(s(s({},e),{},{currentSlide:p,lazyLoadedList:h})),b={slideCount:n,slideWidth:t,listWidth:i,trackWidth:a,currentSlide:p,slideHeight:u,listHeight:d,lazyLoadedList:h=h.concat(v)};return null===e.autoplaying&&e.autoplay&&(b.autoplaying="playing"),b},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,i=e.index,l=e.slideCount,a=e.lazyLoad,c=e.currentSlide,d=e.centerMode,p=e.slidesToScroll,h=e.slidesToShow,v=e.useCSS,b=e.lazyLoadedList;if(t&&n)return{};var y,g,m,S=i,k={},O={},$=o?i:u(i,0,l-1);if(r){if(!o&&(i<0||i>=l))return{};i<0?S=i+l:i>=l&&(S=i-l),a&&b.indexOf(S)<0&&(b=b.concat(S)),k={animating:!0,currentSlide:S,lazyLoadedList:b,targetSlide:S},O={animating:!1,targetSlide:S}}else y=S,S<0?(y=S+l,o?l%p!=0&&(y=l-l%p):y=0):!w(e)&&S>c?S=y=c:d&&S>=l?(S=o?l:l-1,y=o?0:l-1):S>=l&&(y=S-l,o?l%p!=0&&(y=0):y=l-h),!o&&S+h>=l&&(y=l-h),g=C(s(s({},e),{},{slideIndex:S})),m=C(s(s({},e),{},{slideIndex:y})),o||(g===m&&(S=y),g=m),a&&(b=b.concat(f(s(s({},e),{},{currentSlide:S})))),v?(k={animating:!0,currentSlide:y,trackStyle:L(s(s({},e),{},{left:g})),lazyLoadedList:b,targetSlide:$},O={animating:!1,currentSlide:y,trackStyle:E(s(s({},e),{},{left:m})),swipeLeft:null,targetSlide:$}):k={currentSlide:y,trackStyle:E(s(s({},e),{},{left:m})),lazyLoadedList:b,targetSlide:$};return{state:k,nextState:O}},t.changeSlide=function(e,t){var n,r,o,i,l=e.slidesToScroll,a=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=c%l!=0?0:(c-u)%l,"previous"===t.message)i=u-(o=0===n?l:a-n),f&&!p&&(i=-1==(r=u-o)?c-1:r),p||(i=d-l);else if("next"===t.message)i=u+(o=0===n?l:n),f&&!p&&(i=(u+l)%c+n),p||(i=d+l);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,p){var h=j(s(s({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===h?i-=c:i<t.currentSlide&&"right"===h&&(i+=c)}}else"index"===t.message&&(i=Number(t.index));return i},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&d(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,i=t.swipeToSlide,l=t.verticalSwiping,a=t.rtl,c=t.currentSlide,u=t.edgeFriction,f=t.edgeDragged,p=t.onEdge,h=t.swiped,v=t.swiping,b=t.slideCount,y=t.slidesToScroll,g=t.infinite,S=t.touchObject,k=t.swipeEvent,O=t.listHeight,$=t.listWidth;if(!n){if(r)return d(e);o&&i&&l&&d(e);var L,_={},x=C(t);S.curX=e.touches?e.touches[0].pageX:e.clientX,S.curY=e.touches?e.touches[0].pageY:e.clientY,S.swipeLength=Math.round(Math.sqrt(Math.pow(S.curX-S.startX,2)));var T=Math.round(Math.sqrt(Math.pow(S.curY-S.startY,2)));if(!l&&!v&&T>10)return{scrolling:!0};l&&(S.swipeLength=T);var j=(a?-1:1)*(S.curX>S.startX?1:-1);l&&(j=S.curY>S.startY?1:-1);var P=Math.ceil(b/y),M=m(t.touchObject,l),z=S.swipeLength;return g||(0===c&&("right"===M||"down"===M)||c+1>=P&&("left"===M||"up"===M)||!w(t)&&("left"===M||"up"===M))&&(z=S.swipeLength*u,!1===f&&p&&(p(M),_.edgeDragged=!0)),!h&&k&&(k(M),_.swiped=!0),L=o?x+z*(O/$)*j:a?x-z*j:x+z*j,l&&(L=x+z*j),_=s(s({},_),{},{touchObject:S,swipeLeft:L,trackStyle:E(s(s({},t),{},{left:L}))}),Math.abs(S.curX-S.startX)<.8*Math.abs(S.curY-S.startY)||S.swipeLength>10&&(_.swiping=!0,d(e)),_}},t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,i=t.listWidth,l=t.touchThreshold,a=t.verticalSwiping,c=t.listHeight,u=t.swipeToSlide,f=t.scrolling,p=t.onSwipe,h=t.targetSlide,v=t.currentSlide,b=t.infinite;if(!n)return r&&d(e),{};var y=a?c/l:i/l,g=m(o,a),w={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return w;if(!o.swipeLength)return w;if(o.swipeLength>y){var S,$;d(e),p&&p(g);var E=b?v:h;switch(g){case"left":case"up":$=E+O(t),S=u?k(t,$):$,w.currentDirection=0;break;case"right":case"down":$=E-O(t),S=u?k(t,$):$,w.currentDirection=1;break;default:S=E}w.triggerSlideHandler=S}else{var _=C(t);w.trackStyle=L(s(s({},t),{},{left:_}))}return w},t.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}),k=t.checkNavigable=function(e,t){var n=S(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},O=t.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every((function(r){if(e.vertical){if(r.offsetTop+g(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+y(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},$=t.checkSpecKeys=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},E=t.getTrackCSS=function(e){var t,n;$(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=T(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=s(s({},r),{},{WebkitTransform:o,transform:i,msTransform:l})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},L=t.getTrackAnimateCSS=function(e){$(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=E(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},C=t.getTrackLeft=function(e){if(e.unslick)return 0;$(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,l=e.centerMode,a=e.slideCount,s=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,h=e.fade,v=e.vertical;if(h||1===e.slideCount)return 0;var b=0;if(i?(b=-_(e),a%c!=0&&r+c>a&&(b=-(r>a?s-(r-a):a%c)),l&&(b+=parseInt(s/2))):(a%c!=0&&r+c>a&&(b=s-a%c),l&&(b=parseInt(s/2))),t=v?r*p*-1+b*p:r*u*-1+b*u,!0===f){var y,g=o&&o.node;if(y=r+_(e),t=(n=g&&g.childNodes[y])?-1*n.offsetLeft:0,!0===l){y=i?r+_(e):r,n=g&&g.children[y],t=0;for(var m=0;m<y;m++)t-=g&&g.children[m]&&g.children[m].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},_=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},x=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},T=t.getTotalSlides=function(e){return 1===e.slideCount?1:_(e)+e.slideCount+x(e)},j=t.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+P(e)?"left":"right":e.targetSlide<e.currentSlide-M(e)?"right":"left"},P=t.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},M=t.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},z=(t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},t.validSettings=Object.keys(o.default))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(1609),t=n(5338);const r="b-blocks-ImageCompare",o="linear-gradient(135deg, #0040E3, #18D4FD)",i=((0,e.createElement)("svg",{width:24,height:24,viewBox:"0 0 469.333 469.333"},(0,e.createElement)("path",{fill:"#146EF5",d:"M192 42.667H85.333c-23.573 0-42.667 19.093-42.667 42.667V384c0 23.573 19.093 42.667 42.667 42.667H192v42.667h42.667V0H192v42.667zm0 320H85.333l106.667-128v128zM384 42.667H277.333v42.667H384v277.333l-106.667-128v192H384c23.573 0 42.667-19.093 42.667-42.667V85.333c0-23.573-19.094-42.666-42.667-42.666z"})),(0,e.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M22 2v2H2V2h20zM7 22h3V6H7v16zm7-6h3V6h-3v10z"})),(0,e.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M22 11h-5V6h-3v5h-4V3H7v8H1.84v2H7v8h3v-8h4v5h3v-5h5z"})),(0,e.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,e.createElement)("path",{d:"M22 22H2v-2h20v2zM10 2H7v16h3V2zm7 6h-3v10h3V8z"})),t=>(0,e.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",height:"1em",width:"1em",...t},(0,e.createElement)("path",{d:"M15 19L15 5 7 12z"}))),l=t=>(0,e.createElement)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",height:"1em",width:"1em",...t},(0,e.createElement)("path",{d:"M9 19L17 12 9 5z"})),a=e=>({defaulthorizontal:`inset(0 0 0 ${e}%)`,defaultvertical:`inset(${e}% 0 0 0)`,zigzaghorizontal:`polygon(0% 0%, ${e}% 0%, ${e-6}% 9%, ${e}% 18%, ${e-6}% 27%, ${e}% 36%, ${e-6}% 45%, ${e}% 54%, ${e-6}% 63%, ${e}% 72%, ${e-6}% 81%, ${e}% 90%, ${e-6}% 100%, 0% 100%)`,zigzagvertical:`polygon(0% 0%,0% ${e}%,9% ${e+6}% ,18% ${e}%,27% ${e+6}%,36% ${e}%,45% ${e+6}%, 54% ${e}%,63% ${e+6}%,72% ${e}%, 81% ${e+6}%,90% ${e}%, 100% ${e+6}%,100% 0% )`,wavehorizontal:`polygon(\n ${e+7.778-8.8}% 0%,\n ${e+7.5-8.8}% 2.383%,\n ${e+7.5-8.8}% 2.383%,\n ${e+7.407-8.8}% 3.172%,\n ${e+7.292-8.8}% 4.088%,\n ${e+7.15-8.8}% 5.118%,\n ${e+6.973-8.8}% 6.247%,\n ${e+6.757-8.8}% 7.46%,\n ${e+6.496-8.8}% 8.745%,\n ${e+6.184-8.8}% 10.085%,\n ${e+5.816-8.8}% 11.467%,\n ${e+5.387-8.8}% 12.877%,\n ${e+4.889-8.8}% 14.3%,\n ${e+4.889-8.8}% 14.3%,\n ${e+4.324-8.8}% 15.725%,\n ${e+3.718-8.8}% 17.148%,\n ${e+3.102-8.8}% 18.571%,\n ${e+2.508-8.8}% 19.994%,\n ${e+1.968-8.8}% 21.417%,\n ${e+1.514-8.8}% 22.839%,\n ${e+1.177-8.8}% 24.262%,\n ${e+.989-8.8}% 25.685%,\n ${e+.983-8.8}% 27.109%,\n ${e+1.189-8.8}% 28.533%,\n ${e+1.189-8.8}% 28.533%,\n ${e+1.624-8.8}% 29.959%,\n ${e+2.256-8.8}% 31.385%,\n ${e+3.039-8.8}% 32.813%,\n ${e+3.925-8.8}% 34.241%,\n ${e+4.867-8.8}% 35.671%,\n ${e+5.816-8.8}% 37.101%,\n ${e+6.726-8.8}% 38.533%,\n ${e+7.549-8.8}% 39.965%,\n ${e+8.238-8.8}% 41.399%,\n ${e+8.744-8.8}% 42.833%,\n ${e+8.744-8.8}% 42.833%,\n ${e+9.034-8.8}% 44.268%,\n ${e+9.119-8.8}% 45.702%,\n ${e+9.024-8.8}% 47.135%,\n ${e+8.775-8.8}% 48.567%,\n ${e+8.396-8.8}% 50%,\n ${e+7.912-8.8}% 51.433%,\n ${e+7.347-8.8}% 52.865%,\n ${e+6.728-8.8}% 54.298%,\n ${e+6.078-8.8}% 55.732%,\n ${e+5.422-8.8}% 57.167%,\n ${e+5.422-8.8}% 57.167%,\n ${e+4.785-8.8}% 58.601%,\n ${e+4.186-8.8}% 60.035%,\n ${e+3.645-8.8}% 61.467%,\n ${e+3.181-8.8}% 62.899%,\n ${e+2.813-8.8}% 64.329%,\n ${e+2.559-8.8}% 65.759%,\n ${e+2.44-8.8}% 67.187%,\n ${e+2.474-8.8}% 68.615%,\n ${e+2.68-8.8}% 70.041%,\n ${e+3.078-8.8}% 71.467%,\n ${e+3.078-8.8}% 71.467%,\n ${e+3.676-8.8}% 72.891%,\n ${e+4.443-8.8}% 74.315%,\n ${e+5.338-8.8}% 75.738%,\n ${e+6.317-8.8}% 77.161%,\n ${e+7.34-8.8}% 78.583%,\n ${e+8.365-8.8}% 80.006%,\n ${e+9.35-8.8}% 81.429%,\n ${e+10.252-8.8}% 82.852%,\n ${e+11.031-8.8}% 84.275%,\n ${e+11.644-8.8}% 85.7%,\n ${e+11.644-8.8}% 85.7%,\n ${e+12.062-8.8}% 87.123%,\n ${e+12.298-8.8}% 88.533%,\n ${e+12.378-8.8}% 89.915%,\n ${e+12.328-8.8}% 91.255%,\n ${e+12.175-8.8}% 92.54%,\n ${e+11.944-8.8}% 93.753%,\n ${e+11.66-8.8}% 94.882%,\n ${e+11.35-8.8}% 95.912%,\n ${e+11.04-8.8}% 96.828%,\n ${e+10.756-8.8}% 97.617%,\n ${e+9.889-8.8}% 100%,\n 0% 100%,0% 97.617%,0% 97.617%,0% 96.828%,0% 95.912%,0% 94.882%,0% 93.753%,0% 92.54%,0% 91.255%,0% 89.915%,0% 88.533%,0% 87.123%,0% 85.7%,0% 85.7%,0% 84.275%,0% 82.852%,0% 81.429%,0% 80.006%,0% 78.583%,0% 77.161%,0% 75.738%,0% 74.315%,0% 72.891%,0% 71.467%,0% 71.467%,0% 70.041%,0% 68.615%,0% 67.187%,0% 65.759%,0% 64.329%,0% 62.899%,0% 61.467%,0% 60.035%,0% 58.601%,0% 57.167%,0% 57.167%,0% 55.732%,0% 54.298%,0% 52.865%,0% 51.433%,0% 50%,0% 48.567%,0% 47.135%,0% 45.702%,0% 44.268%,0% 42.833%,0% 42.833%,0% 41.399%,0% 39.965%,0% 38.533%,0% 37.101%,0% 35.671%,0% 34.241%,0% 32.813%,0% 31.385%,0% 29.959%,0% 28.533%,0% 28.533%,0% 27.109%,0% 25.685%,0% 24.262%,0% 22.839%,0% 21.417%,0% 19.994%,0% 18.571%,0% 17.148%,0% 15.725%,0% 14.3%,0% 14.3%,0% 12.877%,0% 11.467%,0% 10.085%,0% 8.745%,0% 7.46%,0% 6.247%,0% 5.118%,0% 4.088%,0% 3.172%,0% 2.383%,0% 0%,57.778% 0% )`,wavevertical:`polygon(\n 0% ${42.167+e-41}%,\n 2.389% ${42.45+e-41}%,\n 2.389% ${42.45+e-41}%,\n 3.175% ${42.54+e-41}%,\n 4.09% ${42.653+e-41}%,\n 5.119% ${42.795+e-41}%,\n 6.248% ${42.972+e-41}%,\n 7.463% ${43.188+e-41}%,\n 8.748% ${43.448+e-41}%,\n 10.09% ${43.76+e-41}%,\n 11.474% ${44.127+e-41}%,\n 12.886% ${44.555+e-41}%,\n 14.311% ${45.05+e-41}%,\n 14.311% ${45.05+e-41}%,\n 15.74% ${45.616+e-41}%,\n 17.168% ${46.224+e-41}%,\n 18.594% ${46.84+e-41}%,\n 20.019% ${47.435+e-41}%,\n 21.444% ${47.975+e-41}%,\n 22.87% ${48.429+e-41}%,\n 24.295% ${48.766+e-41}%,\n 25.721% ${48.952+e-41}%,\n 27.149% ${48.958+e-41}%,\n 28.578% ${48.75+e-41}%,\n 28.578% ${48.75+e-41}%,\n 30.005% ${48.31+e-41}%,\n 31.433% ${47.673+e-41}%,\n 32.863% ${46.886+e-41}%,\n 34.292% ${45.997+e-41}%,\n 35.722% ${45.052+e-41}%,\n 37.152% ${44.1+e-41}%,\n 38.582% ${43.188+e-41}%,\n 40.011% ${42.363+e-41}%,\n 41.439% ${41.674+e-41}%,\n 42.867% ${41.167+e-41}%,\n 42.867% ${41.167+e-41}%,\n 44.296% ${40.878+e-41}%,\n 45.723% ${40.793+e-41}%,\n 47.149% ${40.889+e-41}%,\n 48.575% ${41.14+e-41}%,\n 50% ${41.521+e-41}%,\n 51.425% ${42.007+e-41}%,\n 52.851% ${42.573+e-41}%,\n 54.277% ${43.193+e-41}%,\n 55.704% ${43.844+e-41}%,\n 57.133% ${44.5+e-41}%,\n 57.133% ${44.5+e-41}%,\n 58.561% ${45.137+e-41}%,\n 59.989% ${45.735+e-41}%,\n 61.418% ${46.275+e-41}%,\n 62.848% ${46.737+e-41}%,\n 64.278% ${47.104+e-41}%,\n 65.708% ${47.356+e-41}%,\n 67.137% ${47.474+e-41}%,\n 68.567% ${47.439+e-41}%,\n 69.995% ${47.232+e-41}%,\n 71.422% ${46.833+e-41}%,\n 71.422% ${46.833+e-41}%,\n 72.851% ${46.235+e-41}%,\n 74.279% ${45.469+e-41}%,\n 75.705% ${44.576+e-41}%,\n 77.13% ${43.598+e-41}%,\n 78.556% ${42.577+e-41}%,\n 79.981% ${41.555+e-41}%,\n 81.406% ${40.572+e-41}%,\n 82.832% ${39.672+e-41}%,\n 84.26% ${38.895+e-41}%,\n 85.689% ${38.283+e-41}%,\n 85.689% ${38.283+e-41}%,\n 87.114% ${37.863+e-41}%,\n 88.526% ${37.625+e-41}%,\n 89.91% ${37.542+e-41}%,\n 91.252% ${37.589+e-41}%,\n 92.538% ${37.74+e-41}%,\n 93.752% ${37.968+e-41}%,\n 94.881% ${38.247+e-41}%,\n 95.91% ${38.552+e-41}%,\n 96.825% ${38.856+e-41}%,\n 97.611% ${39.133+e-41}%,\n 100% ${40+e-41}%,\n 100% 100.167%,\n 97.611% 100.167%,\n 97.611% 100.167%,\n 96.825% 100.167%,\n 95.91% 100.167%,\n 94.881% 100.167%,\n 93.752% 100.167%,\n 92.538% 100.167%,\n 91.252% 100.167%,\n 89.91% 100.167%,\n 88.526% 100.167%,\n 87.114% 100.167%,\n 85.689% 100.167%,\n 85.689% 100.167%,\n 84.26% 100.167%,\n 82.832% 100.167%,\n 81.406% 100.167%,\n 79.981% 100.167%,\n 78.556% 100.167%,\n 77.13% 100.167%,\n 75.705% 100.167%,\n 74.279% 100.167%,\n 72.851% 100.167%,\n 71.422% 100.167%,\n 71.422% 100.167%,\n 69.995% 100.167%,\n 68.567% 100.167%,\n 67.137% 100.167%,\n 65.708% 100.167%,\n 64.278% 100.167%,\n 62.848% 100.167%,\n 61.418% 100.167%,\n 59.989% 100.167%,\n 58.561% 100.167%,\n 57.133% 100.167%,\n 57.133% 100.167%,\n 55.704% 100.167%,\n 54.277% 100.167%,\n 52.851% 100.167%,\n 51.425% 100.167%,\n 50% 100.167%,\n 48.575% 100.167%,\n 47.149% 100.167%,\n 45.723% 100.167%,\n 44.296% 100.167%,\n 42.867% 100.167%,\n 42.867% 100.167%,\n 41.439% 100.167%,\n 40.011% 100.167%,\n 38.582% 100.167%,\n 37.152% 100.167%,\n 35.722% 100.167%,\n 34.292% 100.167%,\n 32.863% 100.167%,\n 31.433% 100.167%,\n 30.005% 100.167%,\n 28.578% 100.167%,\n 28.578% 100.167%,\n 27.149% 100.167%,\n 25.721% 100.167%,\n 24.295% 100.167%,\n 22.87% 100.167%,\n 21.444% 100.167%,\n 20.019% 100.167%,\n 18.594% 100.167%,\n 17.168% 100.167%,\n 15.74% 100.167%,\n 14.311% 100.167%,\n 14.311% 100.167%,\n 12.886% 100.167%,\n 11.474% 100.167%,\n 10.09% 100.167%,\n 8.748% 100.167%,\n 7.463% 100.167%,\n 6.248% 100.167%,\n 5.119% 100.167%,\n 4.09% 100.167%,\n 3.175% 100.167%,\n 2.389% 100.167%,\n 0% 100.167%\n )`}),s=({beforeLabelEl:t,height:n,afterLabelEl:o,beforeImg:s,afterImg:c,orientation:u,options:d,dragg:f,label:p,captionEl:h,...v})=>{const{defaultOffset:b,isMoveClick:y,autoSlide:g,moveMouseOver:m}=d,{isAutoSlide:w,isHoverStop:S,speed:k}=g,[O,$]=(0,e.useState)(100*b),[E,L]=(0,e.useState)(!1),C=(0,e.useRef)(null),{handleClick:_}=((t,n,r,o,i,l=!1,a,s=50,c=!1)=>{const[u,d]=(0,e.useState)(!0),f=(0,e.useRef)(),p=(0,e.useRef)(1),h=e=>{if(!t||!n.current)return;const o=n.current.getBoundingClientRect(),l="touches"in e?e.touches[0]:e,a=("horizontal"===i?l.clientX-o.left:l.clientY-o.top)/("horizontal"===i?o.width:o.height)*100;r(Math.min(Math.max(a,0),100))};return(0,e.useEffect)((()=>{if(!t)return;const e=()=>o(!1),n=e=>h(e),r=e=>h(e);return window.addEventListener("mousemove",n),window.addEventListener("mouseup",e),window.addEventListener("touchmove",r),window.addEventListener("touchend",e),()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",e),window.removeEventListener("touchmove",r),window.removeEventListener("touchend",e)}}),[t]),(0,e.useEffect)((()=>{if(!l||!u||t)return;let e;const n=t=>{e||(e=t);const o=(t-e)/1e3;e=t,r((e=>{let t=e+p.current*(10*s)*o;return t>=100&&(p.current=-1,t=100),t<=0&&(p.current=1,t=0),t})),f.current=requestAnimationFrame(n)};return f.current=requestAnimationFrame(n),()=>cancelAnimationFrame(f.current)}),[l,u,t,a,s]),(0,e.useEffect)((()=>{if(!n.current)return;const e=()=>d(!a),t=()=>d(!0);return n?.current?.addEventListener("mouseenter",e),n?.current?.addEventListener("mouseleave",t),()=>{n?.current?.removeEventListener("mouseenter",e),n?.current?.removeEventListener("mouseleave",t)}}),[n.current,a]),{handleClick:e=>{if(t||!n.current||!c)return;const o=n.current.getBoundingClientRect(),l=("horizontal"===i?e.clientX-o.left:e.clientY-o.top)/("horizontal"===i?o.width:o.height)*100;r(Math.min(Math.max(l,0),100))}}})(E,C,$,L,u,w,S,k,y),x=()=>{const e=C.current;if(!e)return;const t=Array.from(e.querySelectorAll("img"));if(!t.length)return;const r=parseInt(n,10);let o;if(!isNaN(r)&&r>0)o=r;else{const e=t.map((e=>e.getBoundingClientRect().height)).filter((e=>e>0));if(!e.length)return;o=Math.max(...e)}e.style.height=`${o}px`,t.forEach((e=>{e.style.height=`${o}px`}))};return(0,e.useEffect)((()=>{const e=C.current;if(!e)return;const t=new ResizeObserver(x);return t.observe(e),()=>t.disconnect()}),[]),(0,e.createElement)("div",{...v,className:r},(0,e.createElement)("div",{ref:C,className:"b-blocks-comparison-wrapper "+(p.isShowHover?"b-blocks-label-hover":""),onMouseDown:()=>L(!0),onTouchStart:()=>L(!0),...m?{onMouseMove:()=>L(!0),onMouseLeave:()=>L(!1)}:{},onClick:_},(0,e.createElement)("div",{className:"b-blocks-image-wrapper"},(0,e.createElement)("img",{src:s?.url,alt:s?.alt||s?.title,onLoad:x}),t),(0,e.createElement)("div",{className:"b-blocks-image-wrapper",style:{clipPath:a(O)[f.shapeType+u]}},(0,e.createElement)("img",{src:c?.url,alt:c?.alt||c?.title,onLoad:x}),o),(0,e.createElement)("div",{className:`b-blocks-comparison-slider-handle b-blocks-slider-${u} ${f.handleType} ${"default"!==f.shapeType?"circle-outline-line-none":""} `,style:{left:"horizontal"===u?`${O}%`:"",top:"vertical"===u?`${O}%`:""}},"default"===f.handleType?(0,e.createElement)("div",{key:f.handleType,className:"b-blocks-default-icon"}):(0,e.createElement)("div",{key:f.handleType,className:`b-blocks-${f.handleType}-icon`},(0,e.createElement)("div",null,(0,e.createElement)(i,null),(0,e.createElement)(l,null))))),h)};var c=n(4589);const u={style1:{left:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5303 18.5303C14.2374 18.8232 13.7626 18.8232 13.4697 18.5303L7.46967 12.5303C7.17678 12.2374 7.17678 11.7626 7.46967 11.4697L13.4697 5.46967C13.7626 5.17678 14.2374 5.17678 14.5303 5.46967C14.8232 5.76256 14.8232 6.23744 14.5303 6.53033L9.06066 12L14.5303 17.4697C14.8232 17.7626 14.8232 18.2374 14.5303 18.5303Z"})),right:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.46967 5.46967C9.76256 5.17678 10.2374 5.17678 10.5303 5.46967L16.5303 11.4697C16.8232 11.7626 16.8232 12.2374 16.5303 12.5303L10.5303 18.5303C10.2374 18.8232 9.76256 18.8232 9.46967 18.5303C9.17678 18.2374 9.17678 17.7626 9.46967 17.4697L14.9393 12L9.46967 6.53033C9.17678 6.23744 9.17678 5.76256 9.46967 5.46967Z"}))},style2:{left:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4939 20.5644C11.1821 20.8372 10.7083 20.8056 10.4356 20.4939L3.43557 12.4939C3.18814 12.2111 3.18814 11.7889 3.43557 11.5061L10.4356 3.50613C10.7083 3.1944 11.1822 3.16281 11.4939 3.43557C11.8056 3.70834 11.8372 4.18216 11.5644 4.49388L5.65283 11.25L20 11.25C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75L5.65283 12.75L11.5644 19.5061C11.8372 19.8179 11.8056 20.2917 11.4939 20.5644Z"})),right:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5061 3.43557C12.8178 3.16281 13.2917 3.19439 13.5644 3.50612L20.5644 11.5061C20.8119 11.7889 20.8119 12.2111 20.5644 12.4939L13.5644 20.4939C13.2917 20.8056 12.8178 20.8372 12.5061 20.5644C12.1944 20.2917 12.1628 19.8178 12.4356 19.5061L18.3472 12.75H4C3.58579 12.75 3.25 12.4142 3.25 12C3.25 11.5858 3.58579 11.25 4 11.25H18.3472L12.4356 4.49388C12.1628 4.18215 12.1944 3.70833 12.5061 3.43557Z"}))},style3:{left:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M11 20.74C10.9012 20.7423 10.803 20.7238 10.7118 20.686C10.6205 20.6481 10.5382 20.5916 10.47 20.52L2.47 12.52C2.32955 12.3794 2.25066 12.1888 2.25066 11.99C2.25066 11.7913 2.32955 11.6007 2.47 11.46L10.47 3.46003C10.576 3.35806 10.7096 3.2895 10.8542 3.26288C10.9989 3.23626 11.1481 3.25274 11.2835 3.31029C11.4188 3.36783 11.5342 3.4639 11.6154 3.58653C11.6966 3.70917 11.7399 3.85296 11.74 4.00003V7.30003H21C21.1981 7.30262 21.3874 7.38247 21.5275 7.52256C21.6676 7.66265 21.7474 7.85192 21.75 8.05003V16.05C21.7474 16.2481 21.6676 16.4374 21.5275 16.5775C21.3874 16.7176 21.1981 16.7974 21 16.8H11.74V19.99C11.7402 20.139 11.6954 20.2845 11.6116 20.4076C11.5277 20.5307 11.4087 20.6257 11.27 20.68C11.1848 20.7175 11.0931 20.7379 11 20.74ZM4.07 12L10.25 18.18V16.05C10.25 15.8511 10.329 15.6603 10.4697 15.5197C10.6103 15.379 10.8011 15.3 11 15.3H20.25V8.80003H11C10.8019 8.79744 10.6126 8.71759 10.4725 8.57749C10.3324 8.4374 10.2526 8.24813 10.25 8.05003V5.82003L4.07 12Z"})),right:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{d:"M13 20.74C12.9039 20.7541 12.8062 20.7541 12.71 20.74C12.5724 20.6823 12.4551 20.5849 12.3732 20.4602C12.2912 20.3355 12.2484 20.1892 12.25 20.04V16.7H3.00001C2.81189 16.6956 2.63208 16.6216 2.49538 16.4923C2.35868 16.363 2.27481 16.1876 2.26001 16V8.00002C2.25463 7.89856 2.26965 7.79706 2.30417 7.7015C2.3387 7.60595 2.39204 7.51829 2.46103 7.44371C2.53002 7.36913 2.61326 7.30913 2.70584 7.26727C2.79841 7.22542 2.89844 7.20255 3.00001 7.20002H12.25V4.01002C12.2498 3.86106 12.2946 3.71551 12.3784 3.59241C12.4623 3.4693 12.5813 3.37436 12.72 3.32002C12.8551 3.26039 13.0053 3.24376 13.1502 3.27238C13.2951 3.301 13.4277 3.37349 13.53 3.48002L21.53 11.48C21.6705 11.6206 21.7493 11.8113 21.7493 12.01C21.7493 12.2088 21.6705 12.3994 21.53 12.54L13.53 20.54C13.4601 20.6079 13.377 20.6608 13.2858 20.6952C13.1946 20.7296 13.0973 20.7448 13 20.74ZM3.76001 15.2H13C13.1981 15.2026 13.3874 15.2825 13.5275 15.4226C13.6676 15.5626 13.7474 15.7519 13.75 15.95V18.18L19.93 12L13.75 5.83002V8.00002C13.7477 8.19843 13.6689 8.3883 13.53 8.53002C13.3817 8.65257 13.1919 8.71343 13 8.70002H3.76001V15.2Z"}))},style4:{left:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{transform:'${\r direction === "vertical" ? "rotate(90, 13, 12)" : ""\r }',d:"M1.02698 11.9929L5.26242 16.2426L6.67902 14.8308L4.85766 13.0033L22.9731 13.0012L22.9728 11.0012L4.85309 11.0033L6.6886 9.17398L5.27677 7.75739L1.02698 11.9929Z"})),right:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{transform:'${\r direction === "vertical" ? "rotate(90, 13, 12)" : ""\r }',d:"M23.0677 11.9929L18.818 7.75739L17.4061 9.17398L19.2415 11.0032L0.932469 11.0012L0.932251 13.0012L19.2369 13.0032L17.4155 14.8308L18.8321 16.2426L23.0677 11.9929Z"}))},style5:{left:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor"},(0,e.createElement)("path",{transform:'${\r direction === "vertical" ? "rotate(90, 13, 12)" : ""\r }',d:"m4.431 12.822 13 9A1 1 0 0 0 19 21V3a1 1 0 0 0-1.569-.823l-13 9a1.003 1.003 0 0 0 0 1.645z"})),right:(0,e.createElement)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{transform:'${\r direction === "vertical" ? "rotate(90, 13, 12)" : ""\r }',d:"M5.536 21.886a1.004 1.004 0 0 0 1.033-.064l13-9a1 1 0 0 0 0-1.644l-13-9A1 1 0 0 0 5 3v18a1 1 0 0 0 .536.886z"}))},style6:{left:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M16.5 8L13 11.5L16.5 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M10.5 8L7 11.5L10.5 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),right:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M7 8L10.5 11.5L7 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M13 8L16.5 11.5L13 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))}},d=({icon:t,...n})=>(0,e.createElement)("div",{...n},t),f=({attributes:t,device:n,setActiveIndex:r})=>{const{orientation:o,options:i,dragg:l,label:a,slider:f,sliderOptions:p,isLabel:h,isCap:v,align:b}=t,y=(0,e.useRef)(),{hAlign:g,vAlign:m}=a,{height:w,autoplay:S,speed:k,autoplaySpeed:O,pauseOnHover:$,infinite:E,dots:L,arrows:C,slidesView:_,arrowType:x}=p;(0,e.useEffect)((()=>{y.current&&f.length<2&&y.current.innerSlider.list.querySelectorAll(".slick-cloned").forEach((e=>{e.style.display="none"}))}),[y.current]);const T={className:"center",centerMode:!0,arrows:C,dots:L,infinite:E,centerPadding:"15%",draggable:!1,autoplay:S,slidesToShow:_[n],speed:k,autoplaySpeed:O,pauseOnHover:$,nextArrow:(0,e.createElement)(d,{className:"slick-arrow slick-prev",icon:u[x].right}),prevArrow:(0,e.createElement)(d,{className:"slick-arrow slick-next",icon:u[x].left})};return(0,e.createElement)(c.A,{...T,className:"b-blocks-image-compare-slider-wrapper",ref:y},f.map(((t,c)=>{const{beforeImg:u,afterImg:d,caption:p}=t,y={beforeLabelEl:h&&u.beforeLabel&&(0,e.createElement)("div",{className:`b-blocks-label b-blocks-before-label b-blocks-${o} ${"horizontal"===o?g:m}`,dangerouslySetInnerHTML:{__html:u.beforeLabel}}),afterLabelEl:h&&d.afterLabel&&(0,e.createElement)("div",{className:`b-blocks-label b-blocks-after-label b-blocks-${o} ${"horizontal"===o?g:m}`,dangerouslySetInnerHTML:{__html:d.afterLabel}}),captionEl:v&&p&&(0,e.createElement)("div",{className:"b-blocks-caption",dangerouslySetInnerHTML:{__html:p}}),orientation:o,options:i,dragg:l,label:a},S=`${n}-${u?.img?.url}-${d?.img?.url}-${f.length}-${JSON.stringify(w)}-${b}-${i.autoSlide.isMouseOver}`;return(0,e.createElement)(s,{key:S,...y,height:w[n],beforeImg:u.img,afterImg:d.img,onClick:()=>r(c)})})))},p=({attributes:t,afterLabelEl:n,beforeLabelEl:r,captionEl:o,isBackend:i=!1,backDevice:l="desktop",activeIndex:a,setActiveIndex:c=()=>{}})=>{const{beforeImg:u,afterImg:d,orientation:p,styles:h,options:v,dragg:b,label:y,align:g,theme:m,slider:w,sliderOptions:S}=t,{device:k}=(()=>{const[t,n]=(0,e.useState)("desktop"),r=()=>{const e=window.innerWidth;n(e>1024?"desktop":e>640?"tablet":"mobile")};return(0,e.useEffect)((()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)})),[]),{device:t}})(),O=i?l:k,$=`${u?.url}-${d?.url}-${JSON.stringify(h.container.height)}-${g}-${v.autoSlide.isMouseOver}-${O}`;return(0,e.createElement)(e.Fragment,null,"default"===m&&(0,e.createElement)(s,{key:$,beforeLabelEl:r,afterLabelEl:n,captionEl:o,beforeImg:u,afterImg:d,orientation:p,options:v,dragg:b,label:y,device:O,height:h.container.height[O]}),"slider"===m&&(0,e.createElement)(f,{key:`${w.length}-${JSON.stringify(S)}`,attributes:t,device:O,activeIndex:a,setActiveIndex:c}))},h=e=>!(null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&""===e.trim()||"number"==typeof e&&0===e),v=(e,t,n=!1)=>h(t)?`${e}: ${t}${n?" !important":""};`:"",b=(e,t=!0,n=!0,r=!0)=>{const{type:i="solid",color:l="",gradient:a=o,image:s={},position:c="center center",attachment:u="",repeat:d="no-repeat",size:f="",overlayColor:p=""}=e||{};return"gradient"===i&&n?v("background",a):"image"===i&&r?`background: url(${s?.url});\n\t\t\t\t${v("background-color",p)}\n\t\t\t\t${v("background-position",c)}\n\t\t\t\t${v("background-size",f)}\n\t\t\t\t${v("background-repeat",d)}\n\t\t\t\t${v("background-attachment",u)}\n\t\t\t\t${v("background-repeat",d)}\n\t\t\t\tbackground-blend-mode: overlay;`:t&&v("background",l)},y=e=>{const{width:t="",style:n="solid",color:r="",side:o="all",radius:i=""}=e||{},l=e=>{const t=o?.toLowerCase();return t?.includes("all")||t?.includes(e)},a=`${t} ${n} ${r}`,s=`\n\t\t${t&&0!==parseInt(t)?["top","right","bottom","left"].map((e=>l(e)?`border-${e}: ${a};`:"")).join(""):""}\n\t\t${v("border-radius",i)}\n\t`;return s},g=e=>{if(!e)return"";const t=e=>{const{color:t="#000000",style:n="solid",width:r="0px"}=e;return`${r} ${n} ${t}`};return"object"!=typeof e||Array.isArray(e)?"":e.hasOwnProperty("top")||e.hasOwnProperty("right")||e.hasOwnProperty("bottom")||e.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>e[n]?`border-${n}: ${t(e[n])};`:"")).join(" ").trim():v("border",t(e))},m=e=>{const{color:t="",bgType:n="solid",bg:r="",gradient:i=o}=e||{};return`\n\t\t${v("color",t)}\n\t\t${i||r?v("background","gradient"===n?i:r):""}\n\t`},w=e=>{const{side:t=2,vertical:n="0px",horizontal:r="0px",top:o="0px",right:i="0px",bottom:l="0px",left:a="0px"}=e||{};return 2===t?`${n} ${r}`:`${o} ${i} ${l} ${a}`},S=(e,t,n=!0)=>{const{fontFamily:r="Default",fontCategory:o="sans-serif",fontVariant:i=400,fontWeight:l,isUploadFont:a=!0,fontSize:s={desktop:null,tablet:null,mobile:null},fontStyle:c,textTransform:u,textDecoration:d,lineHeight:f,letterSpace:p}=t||{},h=!n||!r||"Default"===r,b=s?.desktop||s,y=s?.tablet||b,g=s?.mobile||y,m=e=>{const t=String(e);return["px","em","rem","%","vh","vw"].some((e=>t.endsWith(e)))?t:"number"==typeof e?`${t}px`:""},w=`\n\t\t${h?"":`font-family: '${r}', ${o};`}\n\t\t${v("font-weight",l)}\n\t\t${v("font-size",m(b))}\n\t\t${v("font-style",c)}\n\t\t${v("text-transform",u)}\n\t\t${v("text-decoration",d)}\n\t\t${v("line-height",f)}\n\t\t${v("letter-spacing",p)}\n\t`,S=i&&400!==i?"400i"===i?":ital@1":i?.includes("00i")?`: ital, wght@1, ${i?.replace("00i","00")} `:`: wght@${i} `:"",k=h?"":`https://fonts.googleapis.com/css2?family=${r?.split(" ").join("+")}${S.replace(/ /g,"")}&display=swap`;return{googleFontLink:!a||h?"":`@import url(${k});`,styles:`${e}{\n\t\t\t${w}\n\t\t}\n\t\t@media only screen and (max-width: 1024px) {\n\t\t\t${e}{\n\t\t\t\t${v("font-size",m(y))}\n\t\t\t}\n\t\t}\n\t\t@media only screen and (max-width: 640px) {\n\t\t\t${e}{\n\t\t\t\t${v("font-size",m(g))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},k=e=>{if(!e)return"";if("string"==typeof e)return e;if("object"==typeof e&&!Array.isArray(e)){const t=["top","right","bottom","left"];return t.map((t=>e[t]||"")).every((e=>!e))?"":t.map((t=>e[t]||"0")).join(" ")}return""},O=window.wp.i18n,$=((0,O.__)("Before Img","image-compare"),(0,O.__)("After Img","image-compare"),(0,O.__)("General","textdomain"),(0,O.__)("Style","textdomain"),["rectangle-caret","circle-caret","circle-big-caret","capsule-stroke","capsule-tiny-stroke-big","capsule-tiny-stroke-small"]),E=((0,O.__)("Style 1","b-blocks"),u.style1.right,(0,O.__)("Style 2","b-blocks"),u.style2.right,(0,O.__)("Style 3","b-blocks"),u.style3.right,(0,O.__)("Style 4","b-blocks"),u.style4.right,(0,O.__)("Style 5","b-blocks"),u.style5.right,(0,O.__)("Style 6","b-blocks"),u.style6.right,(0,O.__)("Navigation","textdomain"),(0,O.__)("Pagination","textdomain"),({attributes:t,id:n})=>{const{alignment:o,width:i,border:l,dragg:a,labelTypo:s,labelColors:c,labelPadding:u,capTypo:d,capColors:f,capPadding:p,styles:O,theme:E,sliderStyle:L}=t,{dragg:C}=O,{pagination:_,navigation:x}=L,{icon:T,container:j}=x,P=`#${n}`,M=`${P} .${r}`,z=`${M} .b-blocks-comparison-wrapper`,H=`${z} .b-blocks-label`,R=`${M} .b-blocks-caption`,D=`${z} .b-blocks-comparison-slider-handle`,A=`${P} .b-blocks-image-compare-slider-wrapper`,I=`${A} .slick-arrow`,W=`${A} .slick-dots`;return(0,e.createElement)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${S("",s)?.googleFontLink}\n\t\t${S("",d)?.googleFontLink}\n\t\t${S(H,s)?.styles}\n\t\t${S(R,d)?.styles}\n\n\t\t${P}{\n\t\t\ttext-align: ${o};\n\t\t}\n\t\t${M}{\n\t\t\twidth: ${i};\n\t\t\t${y(l)}\n\t\t}\n\n\t\t${H}{\n\t\t\t${m(c)}\n\t\t\tpadding: ${w(u)};\n\t\t}\n\t\t${R}{\n\t\t\t${m(f)}\n\t\t\tpadding: ${w(p)};\n\t\t}\n\n\t\t${N=a.handleType,$.includes(N)?`${D} .b-blocks-${a.handleType}-icon{\n\t\t${v("border-color",C.handler.color)}\n\t\t${v("border-width",h(C.line.size)?C.line.size+"px":"")}\n\t\t\t}`:`${D} .b-blocks-${a.handleType}-icon{\n\t\t\t\t${v("background-color",C.handler.color)}\n\t\t\t\t${v("border-color",C.handler.color)}\n\t\t\t}`}\n\n\t\t${D} :where(svg){\n\t\t\t${v("color",C.icon.color)}\n\t\t\t${v("fill",C.icon.color)}\n\t\t}\n\t\t${D}::before{\n\t\t\tcontent:"";\n\t\t\t${v("width",h(C.line.size)?C.line.size+"px":"")}\n\t\t\t${b(C.line.bg)}\n\t\t}\n\t\t${D}::after{\n\t\t\tcontent:"";\n\t\t\t${v("width",h(C.line.size)?C.line.size+"px":"")}\n\t\t\t${b(C.line.bg)}\n\t\t}\n\t\t${"slider"===E?`\n\t\t\t\t${I}{\n\t\t\t\t\t${v("height",j.height)}\n\t\t\t\t\t${v("width",j.width)}\n\t\t\t\t\t${b(j.normal.bg)}\n\t\t\t\t\t${g(j.normal.border)}\n\t\t\t\t\t${v("border-radius",k(j.normal.radius))}\n\t\t\t\t}\n\n\t\t\t\t${I}:hover{\n\t\t\t\t\t${b(j.hover.bg)}\n\t\t\t\t\t${g(j.hover.border)}\n\t\t\t\t\t${v("border-radius",k(j.hover.radius))}\n\t\t\t\t}\n\n\t\t\t\t${I} > svg{\n\t\t\t\t\t${v("width",T.normal.size)}\n\t\t\t\t\t${v("fill",T.normal.color)}\n\t\t\t\t}\n\t\t\t\t${I}:hover svg{\n\t\t\t\t\t${v("fill",T.hover.color)}\n\t\t\t\t\t${v("width",T.hover.size)}\n\t\t\t\t}\n\t\t\t\t${W}>li>button::before{\n\t\t\t\t\t${v("background-color",_.active)}\n\t\t\t\t}\n\t\t\t\t${W}>li.slick-active>button::before{\n\t\t\t\t\t${v("background-color",_.active)}\n\t\t\t\t}\n\t\t\t\t`:""}\n\t\t`.replace(/\s+/g," ")}});var N});document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-image-comparison").forEach((n=>{const r=JSON.parse(n.dataset.attributes),{isLabel:o,label:i,beforeLabel:l,afterLabel:a,isCap:s,cap:c,orientation:u}=r,{hAlign:d,vAlign:f}=i,h=o&&l&&(0,e.createElement)("div",{className:`b-blocks-label b-blocks-before-label b-blocks-${u} ${"horizontal"===u?d:f}`,dangerouslySetInnerHTML:{__html:l}}),v=o&&a&&(0,e.createElement)("div",{className:`b-blocks-label b-blocks-after-label b-blocks-${u} ${"horizontal"===u?d:f}`,dangerouslySetInnerHTML:{__html:a}}),b=s&&c&&(0,e.createElement)("div",{className:"b-blocks-caption",dangerouslySetInnerHTML:{__html:c}});(0,t.H)(n).render((0,e.createElement)(e.Fragment,null,(0,e.createElement)(E,{attributes:r,id:n.id}),(0,e.createElement)(p,{afterLabelEl:v,beforeLabelEl:h,captionEl:b,attributes:r}))),n?.removeAttribute("data-attributes")}))}))})()})(); | |
| 1 | +(()=>{var e={1040(e,t,n){var r=n(8404),i=n(2524).each;function o(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;i(t,(function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)}))},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,(function(e){e.destroy()})),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,(function(t){t[e]()}))}},e.exports=o},1098(e,t,n){var r=n(1040),i=n(2524),o=i.each,s=i.isFunction,a=i.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var i=this.queries,l=n&&this.browserIsIncapable;return i[e]||(i[e]=new r(e,l)),s(t)&&(t={match:t}),a(t)||(t=[t]),o(t,(function(t){s(t)&&(t={match:t}),i[e].addHandler(t)})),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},8404(e){function t(e){this.options=e,!e.deferSetup&&this.setup()}t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=t},2524(e){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},2386(e,t,n){var r=n(1098);e.exports=new r},1441(e,t,n){var r=n(8028),i=function(e){var t="",n=Object.keys(e);return n.forEach((function(i,o){var s=e[i];(function(e){return/[height|width]$/.test(e)})(i=r(i))&&"number"==typeof s&&(s+="px"),t+=!0===s?i:!1===s?"not "+i:"("+i+": "+s+")",o<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(n,r){t+=i(n),r<e.length-1&&(t+=", ")})),t):i(e)}},181(e){var t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,s="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis,a="object"==typeof self&&self&&self.Object===Object&&self,l=s||a||Function("return this")(),c=Object.prototype.toString,u=Math.max,d=Math.min,p=function(){return l.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==c.call(e)}(e))return NaN;if(f(e)){var s="function"==typeof e.valueOf?e.valueOf():e;e=f(s)?s+"":s}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var a=r.test(e);return a||i.test(e)?o(e.slice(2),a?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,s,a,l,c=0,v=!1,y=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,o=i;return r=i=void 0,c=t,s=e.apply(o,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||y&&e-c>=o}function w(){var e=p();if(m(e))return S(e);a=setTimeout(w,function(e){var n=t-(e-l);return y?d(n,o-(e-c)):n}(e))}function S(e){return a=void 0,b&&r?g(e):(r=i=void 0,s)}function O(){var e=p(),n=m(e);if(r=arguments,i=this,l=e,n){if(void 0===a)return function(e){return c=e,a=setTimeout(w,t),v?g(e):s}(l);if(y)return a=setTimeout(w,t),g(l)}return void 0===a&&(a=setTimeout(w,t)),s}return t=h(t)||0,f(n)&&(v=!!n.leading,o=(y="maxWait"in n)?u(h(n.maxWait)||0,t):o,b="trailing"in n?!!n.trailing:b),O.cancel=function(){void 0!==a&&clearTimeout(a),c=0,r=l=i=a=void 0},O.flush=function(){return void 0===a?s:S(p())},O}},9223(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.PrevArrow=t.NextArrow=void 0;var i=a(n(1609)),o=a(n(6942)),s=n(9445);function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=h(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function f(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}function v(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function b(e){var t=g();return function(){var n,i=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}t.PrevArrow=function(e){v(n,e);var t=b(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide, | |
| 2 | +slideCount:this.props.slideCount};return this.props.prevArrow?i.default.cloneElement(this.props.prevArrow,u(u({},n),r)):i.default.createElement("button",l({key:"0",type:"button"},n)," ","Previous")}}]),n}(i.default.PureComponent),t.NextArrow=function(e){v(n,e);var t=b(n);function n(){return d(this,n),t.apply(this,arguments)}return f(n,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,s.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},r={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?i.default.cloneElement(this.props.nextArrow,u(u({},n),r)):i.default.createElement("button",l({key:"1",type:"button"},n)," ","Next")}}]),n}(i.default.PureComponent)},1327(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(1609))&&r.__esModule?r:{default:r},o={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return i.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return i.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};t.default=o},773(e,t,n){"use strict";function r(e){return r="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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Dots=void 0;var i=a(n(1609)),o=a(n(6942)),s=n(9445);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:String(t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){var t=f();return function(){var n,i=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}t.Dots=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(a,e);var t,n,r=p(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.apply(this,arguments)}return t=a,n=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,r=t.onMouseOver,a=t.onMouseLeave,c=t.infinite,d=t.slidesToScroll,p=t.slidesToShow,f=t.slideCount,h=t.currentSlide,v=(e={slideCount:f,slidesToScroll:d,slidesToShow:p,infinite:c}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,y={onMouseEnter:n,onMouseOver:r,onMouseLeave:a},b=[],g=0;g<v;g++){var m=(g+1)*d-1,w=c?m:(0,s.clamp)(m,0,f-1),S=w-(d-1),O=c?S:(0,s.clamp)(S,0,f-1),k=(0,o.default)({"slick-active":c?h>=O&&h<=w:h===O}),$={message:"dots",index:g,slidesToScroll:d,currentSlide:h},x=this.clickHandler.bind(this,$);b=b.concat(i.default.createElement("li",{key:g,className:k},i.default.cloneElement(this.props.customPaging(g),{onClick:x})))}return i.default.cloneElement(this.props.appendDots(b),function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=u(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:this.props.dotsClass},y))}}],n&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.default.PureComponent)},4589(e,t,n){"use strict";t.A=void 0;var r,i=(r=n(8120))&&r.__esModule?r:{default:r};t.A=i.default},8841(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}},4999(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InnerSlider=void 0;var r=p(n(1609)),i=p(n(8841)),o=p(n(181)),s=p(n(6942)),a=n(9445),l=n(5942),c=n(773),u=n(9223),d=p(n(3591));function p(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$(r.key),r)}} | |
| 3 | +function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function m(e){var t=S();return function(){var n,r=O(e);if(t){var i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(this,n)}}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function k(e,t,n){return(t=$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:String(t)}t.InnerSlider=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(v,e);var t,n,p=m(v);function v(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),k(w(t=p.call(this,e)),"listRefHandler",(function(e){return t.list=e})),k(w(t),"trackRefHandler",(function(e){return t.track=e})),k(w(t),"adaptHeight",(function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,a.getHeight)(e)+"px"}})),k(w(t),"componentDidMount",(function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,a.getOnDemandLazySlides)(y(y({},t.props),t.state));e.length>0&&(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var n=y({listRef:t.list,trackRef:t.track},t.props);t.updateState(n,!0,(function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")})),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new d.default((function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout((function(){return t.onWindowResized()}),t.props.speed))):t.onWindowResized()})),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)})),k(w(t),"componentWillUnmount",(function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach((function(e){return clearTimeout(e)})),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()})),k(w(t),"componentDidUpdate",(function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var n=(0,a.getOnDemandLazySlides)(y(y({},t.props),t.state));n.length>0&&(t.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(n)}})),t.props.onLazyLoad&&t.props.onLazyLoad(n))}t.adaptHeight();var i=y(y({listRef:t.list,trackRef:t.track},t.props),t.state),o=t.didPropsChange(e);o&&t.updateState(i,o,(function(){t.state.currentSlide>=r.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:r.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")}))})),k(w(t),"onWindowResized",(function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,o.default)((function(){return t.resizeWindow(e)}),50),t.debouncedResize()})),k(w(t),"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var n=y(y({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(n,e,(function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")})),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}})),k(w(t),"updateState",(function(e,n,i){var o=(0,a.initializedState)(e);e=y(y(y({},e),o),{},{slideIndex:o.currentSlide});var s=(0,a.getTrackLeft)(e);e=y(y({},e),{},{left:s});var l=(0,a.getTrackCSS)(e);(n||r.default.Children.count(t.props.children)!==r.default.Children.count(e.children))&&(o.trackStyle=l),t.setState(o,i)})),k(w(t),"ssrInit",(function(){if(t.props.variableWidth){var e=0,n=0,i=[],o=(0,a.getPreClones)(y(y(y({},t.props),t.state),{},{slideCount:t.props.children.length})),s=(0,a.getPostClones)(y(y(y({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach((function(t){i.push(t.props.style.width),e+=t.props.style.width}));for(var l=0;l<o;l++)n+=i[i.length-1-l],e+=i[i.length-1-l];for(var c=0;c<s;c++)e+=i[c];for(var u=0;u<t.state.currentSlide;u++)n+=i[u];var d={width:e+"px",left:-n+"px"};if(t.props.centerMode){var p="".concat(i[t.state.currentSlide],"px");d.left="calc(".concat(d.left," + (100% - ").concat(p,") / 2 ) ")}return{trackStyle:d}}var f=r.default.Children.count(t.props.children),h=y(y(y({},t.props),t.state),{},{slideCount:f}),v=(0,a.getPreClones)(h)+(0,a.getPostClones)(h)+f,b=100/t.props.slidesToShow*v,g=100/v,m=-g*((0,a.getPreClones)(h)+t.state.currentSlide)*b/100;return t.props.centerMode&&(m+=(100-g*b/100)/2),{slideWidth:g+"%",trackStyle:{width:b+"%",left:m+"%"}}})),k(w(t),"checkImagesLoad",(function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],n=e.length,r=0;Array.prototype.forEach.call(e,(function(e){var i=function(){return++r&&r>=n&&t.onWindowResized()};if(e.onclick){var o=e.onclick;e.onclick=function(t){o(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=i,e.onerror=function(){i(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))}))})),k(w(t),"progressiveLazyLoad",(function(){for(var e=[],n=y(y({},t.props),t.state),r=t.state.currentSlide;r<t.state.slideCount+(0,a.getPostClones)(n);r++)if(t.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var i=t.state.currentSlide-1;i>=-(0,a.getPreClones)(n);i--)if(t.state.lazyLoadedList.indexOf(i)<0){e.push(i);break}e.length>0?(t.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)})),k(w(t),"slideHandler",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.props,i=r.asNavFor,o=r.beforeChange,s=r.onLazyLoad,l=r.speed,c=r.afterChange,u=t.state.currentSlide,d=(0,a.slideHandler)(y(y(y({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!n})),p=d.state,f=d.nextState;if(p){o&&o(u,p.currentSlide);var h=p.lazyLoadedList.filter((function(e){return t.state.lazyLoadedList.indexOf(e)<0}));s&&h.length>0&&s(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),c&&c(u),delete t.animationEndCallback),t.setState(p,(function(){i&&t.asNavForIndex!==e&&(t.asNavForIndex=e, | |
| 4 | +i.innerSlider.slideHandler(e)),f&&(t.animationEndCallback=setTimeout((function(){var e=f.animating,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(f,["animating"]);t.setState(n,(function(){t.callbackTimers.push(setTimeout((function(){return t.setState({animating:e})}),10)),c&&c(p.currentSlide),delete t.animationEndCallback}))}),l))}))}})),k(w(t),"changeSlide",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=y(y({},t.props),t.state),i=(0,a.changeSlide)(r,e);if((0===i||i)&&(!0===n?t.slideHandler(i,n):t.slideHandler(i),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var o=t.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}})),k(w(t),"clickHandler",(function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0})),k(w(t),"keyHandler",(function(e){var n=(0,a.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==n&&t.changeSlide({message:n})})),k(w(t),"selectHandler",(function(e){t.changeSlide(e)})),k(w(t),"disableBodyScroll",(function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}})),k(w(t),"enableBodyScroll",(function(){window.ontouchmove=null})),k(w(t),"swipeStart",(function(e){t.props.verticalSwiping&&t.disableBodyScroll();var n=(0,a.swipeStart)(e,t.props.swipe,t.props.draggable);""!==n&&t.setState(n)})),k(w(t),"swipeMove",(function(e){var n=(0,a.swipeMove)(e,y(y(y({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));n&&(n.swiping&&(t.clickable=!1),t.setState(n))})),k(w(t),"swipeEnd",(function(e){var n=(0,a.swipeEnd)(e,y(y(y({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(n){var r=n.triggerSlideHandler;delete n.triggerSlideHandler,t.setState(n),void 0!==r&&(t.slideHandler(r),t.props.verticalSwiping&&t.enableBodyScroll())}})),k(w(t),"touchEnd",(function(e){t.swipeEnd(e),t.clickable=!0})),k(w(t),"slickPrev",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"previous"})}),0))})),k(w(t),"slickNext",(function(){t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"next"})}),0))})),k(w(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout((function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},n)}),0))})),k(w(t),"play",(function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,a.canGoNext)(y(y({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)})),k(w(t),"autoPlay",(function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var n=t.state.autoplaying;if("update"===e){if("hovered"===n||"focused"===n||"paused"===n)return}else if("leave"===e){if("paused"===n||"focused"===n)return}else if("blur"===e&&("paused"===n||"hovered"===n))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})})),k(w(t),"pause",(function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var n=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==n&&"playing"!==n||t.setState({autoplaying:"focused"}):"playing"===n&&t.setState({autoplaying:"hovered"})})),k(w(t),"onDotsOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(w(t),"onDotsLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(w(t),"onTrackOver",(function(){return t.props.autoplay&&t.pause("hovered")})),k(w(t),"onTrackLeave",(function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")})),k(w(t),"onSlideFocus",(function(){return t.props.autoplay&&t.pause("focused")})),k(w(t),"onSlideBlur",(function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")})),k(w(t),"render",(function(){var e,n,i,o=(0,s.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),d=y(y({},t.props),t.state),p=(0,a.extractObject)(d,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),f=t.props.pauseOnHover;if(p=y(y({},p),{},{onMouseEnter:f?t.onTrackOver:null,onMouseLeave:f?t.onTrackLeave:null,onMouseOver:f?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var v=(0,a.extractObject)(d,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),b=t.props.pauseOnDotsHover;v=y(y({},v),{},{clickHandler:t.changeSlide,onMouseEnter:b?t.onDotsLeave:null,onMouseOver:b?t.onDotsOver:null,onMouseLeave:b?t.onDotsLeave:null}),e=r.default.createElement(c.Dots,v)}var g=(0,a.extractObject)(d,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);g.clickHandler=t.changeSlide,t.props.arrows&&(n=r.default.createElement(u.PrevArrow,g),i=r.default.createElement(u.NextArrow,g));var m=null;t.props.vertical&&(m={height:t.state.listHeight});var w=null;!1===t.props.vertical?!0===t.props.centerMode&&(w={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(w={padding:t.props.centerPadding+" 0px"});var S=y(y({},m),w),O=t.props.touchMove,k={className:"slick-list",style:S,onClick:t.clickHandler,onMouseDown:O?t.swipeStart:null,onMouseMove:t.state.dragging&&O?t.swipeMove:null,onMouseUp:O?t.swipeEnd:null,onMouseLeave:t.state.dragging&&O?t.swipeEnd:null,onTouchStart:O?t.swipeStart:null,onTouchMove:t.state.dragging&&O?t.swipeMove:null,onTouchEnd:O?t.touchEnd:null,onTouchCancel:t.state.dragging&&O?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},$={className:o,dir:"ltr",style:t.props.style};return t.props.unslick&&(k={className:"slick-list"},$={className:o}),r.default.createElement("div",$,t.props.unslick?"":n,r.default.createElement("div",h({ref:t.listRefHandler},k),r.default.createElement(l.Track,h({ref:t.trackRefHandler},p),t.props.children)),t.props.unslick?"":i,t.props.unslick?"":e)})),t.list=null,t.track=null,t.state=y(y({},i.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:r.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var n=t.ssrInit();return t.state=y(y({},t.state),n),t}return t=v,(n=[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,i=Object.keys(this.props);n<i.length;n++){var o=i[n];if(!e.hasOwnProperty(o)){t=!0;break}if("object"!==f(e[o])&&"function"!=typeof e[o]&&!isNaN(e[o])&&e[o]!==this.props[o]){t=!0;break}}return t||r.default.Children.count(this.props.children)!==r.default.Children.count(e.children)}}])&&b(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(r.default.Component)},8120(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n(1609)),i=n(4999),o=l(n(1441)),s=l(n(1327)),a=n(9445);function l(e){return e&&e.__esModule?e:{default:e}}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 u(){return u=Object.assign?Object.assign.bind():function(e){ | |
| 5 | +for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=b();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}(this,n)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(e,t,n){return(t=w(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:String(t)}var S=(0,a.canUseDOM)()&&n(2386);t.default=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(c,e);var t,n,l=v(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),m(y(t=l.call(this,e)),"innerSliderRefHandler",(function(e){return t.innerSlider=e})),m(y(t),"slickPrev",(function(){return t.innerSlider.slickPrev()})),m(y(t),"slickNext",(function(){return t.innerSlider.slickNext()})),m(y(t),"slickGoTo",(function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,n)})),m(y(t),"slickPause",(function(){return t.innerSlider.pause("paused")})),m(y(t),"slickPlay",(function(){return t.innerSlider.autoPlay("play")})),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return t=c,(n=[{key:"media",value:function(e,t){S.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var i;i=0===r?(0,o.default)({minWidth:0,maxWidth:n}):(0,o.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,a.canUseDOM)()&&e.media(i,(function(){e.setState({breakpoint:n})}))}));var n=(0,o.default)({minWidth:t.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){S.unregister(e.query,e.handler)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":p(p(p({},s.default),this.props),t[0].settings):p(p({},s.default),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=r.default.Children.toArray(this.props.children);o=o.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var l=[],c=null,d=0;d<o.length;d+=e.rows*e.slidesPerRow){for(var f=[],h=d;h<d+e.rows*e.slidesPerRow;h+=e.slidesPerRow){for(var v=[],y=h;y<h+e.slidesPerRow&&(e.variableWidth&&o[y].props.style&&(c=o[y].props.style.width),!(y>=o.length));y+=1)v.push(r.default.cloneElement(o[y],{key:100*d+10*h+y,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));f.push(r.default.createElement("div",{key:10*d+h},v))}e.variableWidth?l.push(r.default.createElement("div",{key:d,style:{width:c}},f)):l.push(r.default.createElement("div",{key:d},f))}if("unslick"===e){var b="regular slider "+(this.props.className||"");return r.default.createElement("div",{className:b},o)}return l.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r.default.createElement(i.InnerSlider,u({style:this.props.style,ref:this.innerSliderRefHandler},(0,a.filterSettings)(e)),l)}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.default.Component)},5942(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var r=s(n(1609)),i=s(n(6942)),o=n(9445);function s(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=f();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,n)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0 | |
| 6 | +}):e[t]=n,e}function g(e){var t=function(e){if("object"!=a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:String(t)}var m=function(e){var t,n,r,i,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-i-1&&o<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":o===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},w=function(e,t){return e.key||t};t.Track=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(a,e);var t,n,s=d(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return b(p(e=s.call.apply(s,[this].concat(n))),"node",null),b(p(e),"handleRef",(function(t){e.node=t})),e}return t=a,(n=[{key:"render",value:function(){var e=function(e){var t,n=[],s=[],a=[],l=r.default.Children.count(e.children),c=(0,o.lazyStartIndex)(e),u=(0,o.lazyEndIndex)(e);return r.default.Children.forEach(e.children,(function(d,p){var f,h={message:"children",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?d:r.default.createElement("div",null);var v=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(y(y({},e),{},{index:p})),b=f.props.className||"",g=m(y(y({},e),{},{index:p}));if(n.push(r.default.cloneElement(f,{key:"original"+w(f,p),"data-index":p,className:(0,i.default)(g,b),tabIndex:"-1","aria-hidden":!g["slick-active"],style:y(y({outline:"none"},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}})),e.infinite&&!1===e.fade){var S=l-p;S<=(0,o.getPreClones)(e)&&((t=-S)>=c&&(f=d),g=m(y(y({},e),{},{index:t})),s.push(r.default.cloneElement(f,{key:"precloned"+w(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(g,b),"aria-hidden":!g["slick-active"],style:y(y({},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}}))),(t=l+p)<u&&(f=d),g=m(y(y({},e),{},{index:t})),a.push(r.default.cloneElement(f,{key:"postcloned"+w(f,t),"data-index":t,tabIndex:"-1",className:(0,i.default)(g,b),"aria-hidden":!g["slick-active"],style:y(y({},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(h)}}))}})),e.rtl?s.concat(n,a).reverse():s.concat(n,a)}(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r.default.createElement("div",l({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.default.PureComponent)},9445(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkSpecKeys=t.checkNavigable=t.changeSlide=t.canUseDOM=t.canGoNext=void 0,t.clamp=c,t.extractObject=void 0,t.filterSettings=function(e){return M.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})},t.validSettings=t.swipeStart=t.swipeMove=t.swipeEnd=t.slidesOnRight=t.slidesOnLeft=t.slideHandler=t.siblingDirection=t.safePreventDefault=t.lazyStartIndex=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.keyHandler=t.initializedState=t.getWidth=t.getTrackLeft=t.getTrackCSS=t.getTrackAnimateCSS=t.getTotalSlides=t.getSwipeDirection=t.getSlideCount=t.getRequiredLazySlides=t.getPreClones=t.getPostClones=t.getOnDemandLazySlides=t.getNavigableIndexes=t.getHeight=void 0;var r=o(n(1609)),i=o(n(1327));function o(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="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},s(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){var r,i,o,a;r=e,i=t,o=n[t],a=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i),(i="symbol"==s(a)?a:String(a))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return Math.max(t,Math.min(e,n))}var u=t.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},d=t.getOnDemandLazySlides=function(e){for(var t=[],n=p(e),r=f(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t},p=(t.getRequiredLazySlides=function(e){for(var t=[],n=p(e),r=f(e),i=n;i<r;i++)t.push(i);return t},t.lazyStartIndex=function(e){return e.currentSlide-h(e)}),f=t.lazyEndIndex=function(e){return e.currentSlide+v(e)},h=t.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},v=t.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},y=t.getWidth=function(e){return e&&e.offsetWidth||0},b=t.getHeight=function(e){return e&&e.offsetHeight||0},g=t.getSwipeDirection=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(i=Math.round(180*r/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":!0===o?i>=35&&i<=135?"up":"down":"vertical"},m=t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},w=(t.extractObject=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},t.initializedState=function(e){var t,n=r.default.Children.count(e.children),i=e.listRef,o=Math.ceil(y(i)),s=e.trackRef&&e.trackRef.node,a=Math.ceil(y(s));if(e.vertical)t=o;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=o/100),t=Math.ceil((o-c)/e.slidesToShow)}var u=i&&b(i.querySelector('[data-index="0"]')),p=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var h=e.lazyLoadedList||[],v=d(l(l({},e),{},{currentSlide:f,lazyLoadedList:h})),g={slideCount:n,slideWidth:t,listWidth:o,trackWidth:a,currentSlide:f,slideHeight:u,listHeight:p,lazyLoadedList:h=h.concat(v)} | |
| 7 | +;return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,i=e.infinite,o=e.index,s=e.slideCount,a=e.lazyLoad,u=e.currentSlide,p=e.centerMode,f=e.slidesToScroll,h=e.slidesToShow,v=e.useCSS,y=e.lazyLoadedList;if(t&&n)return{};var b,g,w,S=o,O={},k={},L=i?o:c(o,0,s-1);if(r){if(!i&&(o<0||o>=s))return{};o<0?S=o+s:o>=s&&(S=o-s),a&&y.indexOf(S)<0&&(y=y.concat(S)),O={animating:!0,currentSlide:S,lazyLoadedList:y,targetSlide:S},k={animating:!1,targetSlide:S}}else b=S,S<0?(b=S+s,i?s%f!=0&&(b=s-s%f):b=0):!m(e)&&S>u?S=b=u:p&&S>=s?(S=i?s:s-1,b=i?0:s-1):S>=s&&(b=S-s,i?s%f!=0&&(b=0):b=s-h),!i&&S+h>=s&&(b=s-h),g=j(l(l({},e),{},{slideIndex:S})),w=j(l(l({},e),{},{slideIndex:b})),i||(g===w&&(S=b),g=w),a&&(y=y.concat(d(l(l({},e),{},{currentSlide:S})))),v?(O={animating:!0,currentSlide:b,trackStyle:x(l(l({},e),{},{left:g})),lazyLoadedList:y,targetSlide:L},k={animating:!1,currentSlide:b,trackStyle:$(l(l({},e),{},{left:w})),swipeLeft:null,targetSlide:L}):O={currentSlide:b,trackStyle:$(l(l({},e),{},{left:w})),lazyLoadedList:y,targetSlide:L};return{state:O,nextState:k}},t.changeSlide=function(e,t){var n,r,i,o,s=e.slidesToScroll,a=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.targetSlide,p=e.lazyLoad,f=e.infinite;if(n=c%s!=0?0:(c-u)%s,"previous"===t.message)o=u-(i=0===n?s:a-n),p&&!f&&(o=-1==(r=u-i)?c-1:r),f||(o=d-s);else if("next"===t.message)o=u+(i=0===n?s:n),p&&!f&&(o=(u+s)%c+n),f||(o=d+s);else if("dots"===t.message)o=t.index*t.slidesToScroll;else if("children"===t.message){if(o=t.index,f){var h=T(l(l({},e),{},{targetSlide:o}));o>t.currentSlide&&"left"===h?o-=c:o<t.currentSlide&&"right"===h&&(o+=c)}}else"index"===t.message&&(o=Number(t.index));return o},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&u(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,r=t.animating,i=t.vertical,o=t.swipeToSlide,s=t.verticalSwiping,a=t.rtl,c=t.currentSlide,d=t.edgeFriction,p=t.edgeDragged,f=t.onEdge,h=t.swiped,v=t.swiping,y=t.slideCount,b=t.slidesToScroll,w=t.infinite,S=t.touchObject,O=t.swipeEvent,k=t.listHeight,x=t.listWidth;if(!n){if(r)return u(e);i&&o&&s&&u(e);var L,C={},E=j(t);S.curX=e.touches?e.touches[0].pageX:e.clientX,S.curY=e.touches?e.touches[0].pageY:e.clientY,S.swipeLength=Math.round(Math.sqrt(Math.pow(S.curX-S.startX,2)));var T=Math.round(Math.sqrt(Math.pow(S.curY-S.startY,2)));if(!s&&!v&&T>10)return{scrolling:!0};s&&(S.swipeLength=T);var _=(a?-1:1)*(S.curX>S.startX?1:-1);s&&(_=S.curY>S.startY?1:-1);var P=Math.ceil(y/b),M=g(t.touchObject,s),z=S.swipeLength;return w||(0===c&&("right"===M||"down"===M)||c+1>=P&&("left"===M||"up"===M)||!m(t)&&("left"===M||"up"===M))&&(z=S.swipeLength*d,!1===p&&f&&(f(M),C.edgeDragged=!0)),!h&&O&&(O(M),C.swiped=!0),L=i?E+z*(k/x)*_:a?E-z*_:E+z*_,s&&(L=E+z*_),C=l(l({},C),{},{touchObject:S,swipeLeft:L,trackStyle:$(l(l({},t),{},{left:L}))}),Math.abs(S.curX-S.startX)<.8*Math.abs(S.curY-S.startY)||S.swipeLength>10&&(C.swiping=!0,u(e)),C}},t.swipeEnd=function(e,t){var n=t.dragging,r=t.swipe,i=t.touchObject,o=t.listWidth,s=t.touchThreshold,a=t.verticalSwiping,c=t.listHeight,d=t.swipeToSlide,p=t.scrolling,f=t.onSwipe,h=t.targetSlide,v=t.currentSlide,y=t.infinite;if(!n)return r&&u(e),{};var b=a?c/s:o/s,m=g(i,a),w={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(p)return w;if(!i.swipeLength)return w;if(i.swipeLength>b){var k,$;u(e),f&&f(m);var L=y?v:h;switch(m){case"left":case"up":$=L+O(t),k=d?S(t,$):$,w.currentDirection=0;break;case"right":case"down":$=L-O(t),k=d?S(t,$):$,w.currentDirection=1;break;default:k=L}w.triggerSlideHandler=k}else{var C=j(t);w.trackStyle=x(l(l({},t),{},{left:C}))}return w},t.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i}),S=t.checkNavigable=function(e,t){var n=w(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t},O=t.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef,i=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(i).every((function(r){if(e.vertical){if(r.offsetTop+b(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+y(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll},k=t.checkSpecKeys=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},$=t.getTrackCSS=function(e){var t,n;k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=E(e)*e.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";i=l(l({},i),{},{WebkitTransform:o,transform:s,msTransform:a})}else e.vertical?i.top=e.left:i.left=e.left;return e.fade&&(i={opacity:1}),t&&(i.width=t),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?i.marginTop=e.left+"px":i.marginLeft=e.left+"px"),i},x=t.getTrackAnimateCSS=function(e){k(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=$(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},j=t.getTrackLeft=function(e){if(e.unslick)return 0;k(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,o=e.infinite,s=e.centerMode,a=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,f=e.slideHeight,h=e.fade,v=e.vertical;if(h||1===e.slideCount)return 0;var y=0;if(o?(y=-L(e),a%c!=0&&r+c>a&&(y=-(r>a?l-(r-a):a%c)),s&&(y+=parseInt(l/2))):(a%c!=0&&r+c>a&&(y=l-a%c),s&&(y=parseInt(l/2))),t=v?r*f*-1+y*f:r*u*-1+y*u,!0===p){var b,g=i&&i.node;if(b=r+L(e),t=(n=g&&g.childNodes[b])?-1*n.offsetLeft:0,!0===s){b=o?r+L(e):r,n=g&&g.children[b],t=0;for(var m=0;m<b;m++)t-=g&&g.children[m]&&g.children[m].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},L=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},C=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},E=t.getTotalSlides=function(e){return 1===e.slideCount?1:L(e)+e.slideCount+C(e)},T=t.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+_(e)?"left":"right":e.targetSlide<e.currentSlide-P(e)?"right":"left"},_=t.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r&&t%2==0&&(o+=1),o}return r?0:t-1},P=t.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r||t%2!=0||(o+=1),o}return r?t-1:0},M=(t.canUseDOM=function(){ | |
| 8 | +return!("undefined"==typeof window||!window.document||!window.document.createElement)},t.validSettings=Object.keys(i.default))},3591(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>k});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),i="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o="undefined"!=typeof globalThis&&globalThis.Math===Math?globalThis:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),s="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},a=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function i(){t&&(t=!1,e()),n&&a()}function o(){s(i)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(o,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},p=b(0,0,0,0);function f(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+f(e["border-"+n+"-width"])}),0)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return i?v(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=d(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=f(o)}return t}(r),o=i.left+i.right,s=i.top+i.bottom,a=f(r.width),l=f(r.height);if("border-box"===r.boxSizing&&(Math.round(a+o)!==t&&(a-=h(r,"left","right")+o),Math.round(l+s)!==n&&(l-=h(r,"top","bottom")+s)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(a+o)-t,u=Math.round(l+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return b(i.left,i.top,a,l)}(e):p}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),m=function(e,t){var n,r,i,o,s,a,l,c=(r=(n=t).x,i=n.y,o=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(a.prototype),u(l,{x:r,y:i,width:o,height:s,top:i,right:r+o,bottom:s+i,left:r}),l);u(this,{target:e,contentRect:c})},w=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new m(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new r,O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));const k=void 0!==o.ResizeObserver?o.ResizeObserver:O},8028(e){e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},1609(e){"use strict";e.exports=window.React},6942(e,t){var n;!function(){"use strict" | |
| 9 | +;var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=window.ReactDOM;var t=n(1609);const r="b-blocks-ImageCompare",i="linear-gradient(135deg, #0040E3, #18D4FD)",o=window.ReactJSXRuntime,s=e=>(0,o.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",height:"1em",width:"1em",...e,children:(0,o.jsx)("path",{d:"M15 19L15 5 7 12z"})}),a=e=>(0,o.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",height:"1em",width:"1em",...e,children:(0,o.jsx)("path",{d:"M9 19L17 12 9 5z"})}),l=e=>({defaulthorizontal:`inset(0 0 0 ${e}%)`,defaultvertical:`inset(${e}% 0 0 0)`,zigzaghorizontal:`polygon(0% 0%, ${e}% 0%, ${e-6}% 9%, ${e}% 18%, ${e-6}% 27%, ${e}% 36%, ${e-6}% 45%, ${e}% 54%, ${e-6}% 63%, ${e}% 72%, ${e-6}% 81%, ${e}% 90%, ${e-6}% 100%, 0% 100%)`,zigzagvertical:`polygon(0% 0%,0% ${e}%,9% ${e+6}% ,18% ${e}%,27% ${e+6}%,36% ${e}%,45% ${e+6}%, 54% ${e}%,63% ${e+6}%,72% ${e}%, 81% ${e+6}%,90% ${e}%, 100% ${e+6}%,100% 0% )`,wavehorizontal:`polygon(\n ${e+7.778-8.8}% 0%,\n ${e+7.5-8.8}% 2.383%,\n ${e+7.5-8.8}% 2.383%,\n ${e+7.407-8.8}% 3.172%,\n ${e+7.292-8.8}% 4.088%,\n ${e+7.15-8.8}% 5.118%,\n ${e+6.973-8.8}% 6.247%,\n ${e+6.757-8.8}% 7.46%,\n ${e+6.496-8.8}% 8.745%,\n ${e+6.184-8.8}% 10.085%,\n ${e+5.816-8.8}% 11.467%,\n ${e+5.387-8.8}% 12.877%,\n ${e+4.889-8.8}% 14.3%,\n ${e+4.889-8.8}% 14.3%,\n ${e+4.324-8.8}% 15.725%,\n ${e+3.718-8.8}% 17.148%,\n ${e+3.102-8.8}% 18.571%,\n ${e+2.508-8.8}% 19.994%,\n ${e+1.968-8.8}% 21.417%,\n ${e+1.514-8.8}% 22.839%,\n ${e+1.177-8.8}% 24.262%,\n ${e+.989-8.8}% 25.685%,\n ${e+.983-8.8}% 27.109%,\n ${e+1.189-8.8}% 28.533%,\n ${e+1.189-8.8}% 28.533%,\n ${e+1.624-8.8}% 29.959%,\n ${e+2.256-8.8}% 31.385%,\n ${e+3.039-8.8}% 32.813%,\n ${e+3.925-8.8}% 34.241%,\n ${e+4.867-8.8}% 35.671%,\n ${e+5.816-8.8}% 37.101%,\n ${e+6.726-8.8}% 38.533%,\n ${e+7.549-8.8}% 39.965%,\n ${e+8.238-8.8}% 41.399%,\n ${e+8.744-8.8}% 42.833%,\n ${e+8.744-8.8}% 42.833%,\n ${e+9.034-8.8}% 44.268%,\n ${e+9.119-8.8}% 45.702%,\n ${e+9.024-8.8}% 47.135%,\n ${e+8.775-8.8}% 48.567%,\n ${e+8.396-8.8}% 50%,\n ${e+7.912-8.8}% 51.433%,\n ${e+7.347-8.8}% 52.865%,\n ${e+6.728-8.8}% 54.298%,\n ${e+6.078-8.8}% 55.732%,\n ${e+5.422-8.8}% 57.167%,\n ${e+5.422-8.8}% 57.167%,\n ${e+4.785-8.8}% 58.601%,\n ${e+4.186-8.8}% 60.035%,\n ${e+3.645-8.8}% 61.467%,\n ${e+3.181-8.8}% 62.899%,\n ${e+2.813-8.8}% 64.329%,\n ${e+2.559-8.8}% 65.759%,\n ${e+2.44-8.8}% 67.187%,\n ${e+2.474-8.8}% 68.615%,\n ${e+2.68-8.8}% 70.041%,\n ${e+3.078-8.8}% 71.467%,\n ${e+3.078-8.8}% 71.467%,\n ${e+3.676-8.8}% 72.891%,\n ${e+4.443-8.8}% 74.315%,\n ${e+5.338-8.8}% 75.738%,\n ${e+6.317-8.8}% 77.161%,\n ${e+7.34-8.8}% 78.583%,\n ${e+8.365-8.8}% 80.006%,\n ${e+9.35-8.8}% 81.429%,\n ${e+10.252-8.8}% 82.852%,\n ${e+11.031-8.8}% 84.275%,\n ${e+11.644-8.8}% 85.7%,\n ${e+11.644-8.8}% 85.7%,\n ${e+12.062-8.8}% 87.123%,\n ${e+12.298-8.8}% 88.533%,\n ${e+12.378-8.8}% 89.915%,\n ${e+12.328-8.8}% 91.255%,\n ${e+12.175-8.8}% 92.54%,\n ${e+11.944-8.8}% 93.753%,\n ${e+11.66-8.8}% 94.882%,\n ${e+11.35-8.8}% 95.912%,\n ${e+11.04-8.8}% 96.828%,\n ${e+10.756-8.8}% 97.617%,\n ${e+9.889-8.8}% 100%,\n 0% 100%,0% 97.617%,0% 97.617%,0% 96.828%,0% 95.912%,0% 94.882%,0% 93.753%,0% 92.54%,0% 91.255%,0% 89.915%,0% 88.533%,0% 87.123%,0% 85.7%,0% 85.7%,0% 84.275%,0% 82.852%,0% 81.429%,0% 80.006%,0% 78.583%,0% 77.161%,0% 75.738%,0% 74.315%,0% 72.891%,0% 71.467%,0% 71.467%,0% 70.041%,0% 68.615%,0% 67.187%,0% 65.759%,0% 64.329%,0% 62.899%,0% 61.467%,0% 60.035%,0% 58.601%,0% 57.167%,0% 57.167%,0% 55.732%,0% 54.298%,0% 52.865%,0% 51.433%,0% 50%,0% 48.567%,0% 47.135%,0% 45.702%,0% 44.268%,0% 42.833%,0% 42.833%,0% 41.399%,0% 39.965%,0% 38.533%,0% 37.101%,0% 35.671%,0% 34.241%,0% 32.813%,0% 31.385%,0% 29.959%,0% 28.533%,0% 28.533%,0% 27.109%,0% 25.685%,0% 24.262%,0% 22.839%,0% 21.417%,0% 19.994%,0% 18.571%,0% 17.148%,0% 15.725%,0% 14.3%,0% 14.3%,0% 12.877%,0% 11.467%,0% 10.085%,0% 8.745%,0% 7.46%,0% 6.247%,0% 5.118%,0% 4.088%,0% 3.172%,0% 2.383%,0% 0%,57.778% 0% )`, | |
| 10 | +wavevertical:`polygon(\n 0% ${42.167+e-41}%,\n 2.389% ${42.45+e-41}%,\n 2.389% ${42.45+e-41}%,\n 3.175% ${42.54+e-41}%,\n 4.09% ${42.653+e-41}%,\n 5.119% ${42.795+e-41}%,\n 6.248% ${42.972+e-41}%,\n 7.463% ${43.188+e-41}%,\n 8.748% ${43.448+e-41}%,\n 10.09% ${43.76+e-41}%,\n 11.474% ${44.127+e-41}%,\n 12.886% ${44.555+e-41}%,\n 14.311% ${45.05+e-41}%,\n 14.311% ${45.05+e-41}%,\n 15.74% ${45.616+e-41}%,\n 17.168% ${46.224+e-41}%,\n 18.594% ${46.84+e-41}%,\n 20.019% ${47.435+e-41}%,\n 21.444% ${47.975+e-41}%,\n 22.87% ${48.429+e-41}%,\n 24.295% ${48.766+e-41}%,\n 25.721% ${48.952+e-41}%,\n 27.149% ${48.958+e-41}%,\n 28.578% ${48.75+e-41}%,\n 28.578% ${48.75+e-41}%,\n 30.005% ${48.31+e-41}%,\n 31.433% ${47.673+e-41}%,\n 32.863% ${46.886+e-41}%,\n 34.292% ${45.997+e-41}%,\n 35.722% ${45.052+e-41}%,\n 37.152% ${44.1+e-41}%,\n 38.582% ${43.188+e-41}%,\n 40.011% ${42.363+e-41}%,\n 41.439% ${41.674+e-41}%,\n 42.867% ${41.167+e-41}%,\n 42.867% ${41.167+e-41}%,\n 44.296% ${40.878+e-41}%,\n 45.723% ${40.793+e-41}%,\n 47.149% ${40.889+e-41}%,\n 48.575% ${41.14+e-41}%,\n 50% ${41.521+e-41}%,\n 51.425% ${42.007+e-41}%,\n 52.851% ${42.573+e-41}%,\n 54.277% ${43.193+e-41}%,\n 55.704% ${43.844+e-41}%,\n 57.133% ${44.5+e-41}%,\n 57.133% ${44.5+e-41}%,\n 58.561% ${45.137+e-41}%,\n 59.989% ${45.735+e-41}%,\n 61.418% ${46.275+e-41}%,\n 62.848% ${46.737+e-41}%,\n 64.278% ${47.104+e-41}%,\n 65.708% ${47.356+e-41}%,\n 67.137% ${47.474+e-41}%,\n 68.567% ${47.439+e-41}%,\n 69.995% ${47.232+e-41}%,\n 71.422% ${46.833+e-41}%,\n 71.422% ${46.833+e-41}%,\n 72.851% ${46.235+e-41}%,\n 74.279% ${45.469+e-41}%,\n 75.705% ${44.576+e-41}%,\n 77.13% ${43.598+e-41}%,\n 78.556% ${42.577+e-41}%,\n 79.981% ${41.555+e-41}%,\n 81.406% ${40.572+e-41}%,\n 82.832% ${39.672+e-41}%,\n 84.26% ${38.895+e-41}%,\n 85.689% ${38.283+e-41}%,\n 85.689% ${38.283+e-41}%,\n 87.114% ${37.863+e-41}%,\n 88.526% ${37.625+e-41}%,\n 89.91% ${37.542+e-41}%,\n 91.252% ${37.589+e-41}%,\n 92.538% ${37.74+e-41}%,\n 93.752% ${37.968+e-41}%,\n 94.881% ${38.247+e-41}%,\n 95.91% ${38.552+e-41}%,\n 96.825% ${38.856+e-41}%,\n 97.611% ${39.133+e-41}%,\n 100% ${40+e-41}%,\n 100% 100.167%,\n 97.611% 100.167%,\n 97.611% 100.167%,\n 96.825% 100.167%,\n 95.91% 100.167%,\n 94.881% 100.167%,\n 93.752% 100.167%,\n 92.538% 100.167%,\n 91.252% 100.167%,\n 89.91% 100.167%,\n 88.526% 100.167%,\n 87.114% 100.167%,\n 85.689% 100.167%,\n 85.689% 100.167%,\n 84.26% 100.167%,\n 82.832% 100.167%,\n 81.406% 100.167%,\n 79.981% 100.167%,\n 78.556% 100.167%,\n 77.13% 100.167%,\n 75.705% 100.167%,\n 74.279% 100.167%,\n 72.851% 100.167%,\n 71.422% 100.167%,\n 71.422% 100.167%,\n 69.995% 100.167%,\n 68.567% 100.167%,\n 67.137% 100.167%,\n 65.708% 100.167%,\n 64.278% 100.167%,\n 62.848% 100.167%,\n 61.418% 100.167%,\n 59.989% 100.167%,\n 58.561% 100.167%,\n 57.133% 100.167%,\n 57.133% 100.167%,\n 55.704% 100.167%,\n 54.277% 100.167%,\n 52.851% 100.167%,\n 51.425% 100.167%,\n 50% 100.167%,\n 48.575% 100.167%,\n 47.149% 100.167%,\n 45.723% 100.167%,\n 44.296% 100.167%,\n 42.867% 100.167%,\n 42.867% 100.167%,\n 41.439% 100.167%,\n 40.011% 100.167%,\n 38.582% 100.167%,\n 37.152% 100.167%,\n 35.722% 100.167%,\n 34.292% 100.167%,\n 32.863% 100.167%,\n 31.433% 100.167%,\n 30.005% 100.167%,\n 28.578% 100.167%,\n 28.578% 100.167%,\n 27.149% 100.167%,\n 25.721% 100.167%,\n 24.295% 100.167%,\n 22.87% 100.167%,\n 21.444% 100.167%,\n 20.019% 100.167%,\n 18.594% 100.167%,\n 17.168% 100.167%,\n 15.74% 100.167%,\n 14.311% 100.167%,\n 14.311% 100.167%,\n 12.886% 100.167%,\n 11.474% 100.167%,\n 10.09% 100.167%,\n 8.748% 100.167%,\n 7.463% 100.167%,\n 6.248% 100.167%,\n 5.119% 100.167%,\n 4.09% 100.167%,\n 3.175% 100.167%,\n 2.389% 100.167%,\n 0% 100.167%\n )`}),c=({beforeLabelEl:e,height:n,afterLabelEl:i,beforeImg:c,afterImg:u,orientation:d,options:p,dragg:f,label:h,captionEl:v,...y})=>{const{defaultOffset:b,isMoveClick:g,autoSlide:m,moveMouseOver:w}=p,{isAutoSlide:S,isHoverStop:O,speed:k}=m,[$,x]=(0,t.useState)(100*b),[j,L]=(0,t.useState)(!1),C=(0,t.useRef)(null),{handleClick:E}=((e,n,r,i,o,s=!1,a,l=50,c=!1)=>{const[u,d]=(0,t.useState)(!0),p=(0,t.useRef)(),f=(0,t.useRef)(1),h=t=>{if(!e||!n.current)return;const i=n.current.getBoundingClientRect(),s="touches"in t?t.touches[0]:t,a=("horizontal"===o?s.clientX-i.left:s.clientY-i.top)/("horizontal"===o?i.width:i.height)*100;r(Math.min(Math.max(a,0),100))};return(0,t.useEffect)((()=>{if(!e)return;const t=()=>i(!1),n=e=>h(e),r=e=>h(e);return window.addEventListener("mousemove",n),window.addEventListener("mouseup",t),window.addEventListener("touchmove",r),window.addEventListener("touchend",t),()=>{window.removeEventListener("mousemove",n),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",r),window.removeEventListener("touchend",t)}}),[e]),(0,t.useEffect)((()=>{if(!s||!u||e)return;let t;const n=e=>{t||(t=e);const i=(e-t)/1e3;t=e,r((e=>{let t=e+f.current*(10*l)*i;return t>=100&&(f.current=-1,t=100),t<=0&&(f.current=1,t=0),t})),p.current=requestAnimationFrame(n)};return p.current=requestAnimationFrame(n),()=>cancelAnimationFrame(p.current)}),[s,u,e,a,l]),(0,t.useEffect)((()=>{if(!n.current)return;const e=()=>d(!a),t=()=>d(!0);return n?.current?.addEventListener("mouseenter",e),n?.current?.addEventListener("mouseleave",t),()=>{n?.current?.removeEventListener("mouseenter",e),n?.current?.removeEventListener("mouseleave",t)}}),[n.current,a]),{handleClick:t=>{if(e||!n.current||!c)return;const i=n.current.getBoundingClientRect(),s=("horizontal"===o?t.clientX-i.left:t.clientY-i.top)/("horizontal"===o?i.width:i.height)*100;r(Math.min(Math.max(s,0),100))}}})(j,C,x,L,d,S,O,k,g),T=()=>{const e=C.current;if(!e)return;const t=Array.from(e.querySelectorAll("img"));if(!t.length)return;const r=parseInt(n,10);let i;if(!isNaN(r)&&r>0)i=r;else{const e=t.map((e=>e.getBoundingClientRect().height)).filter((e=>e>0));if(!e.length)return;i=Math.max(...e)}e.style.height=`${i}px`,t.forEach((e=>{e.style.height=`${i}px`}))};return(0,t.useEffect)((()=>{const e=C.current;if(!e)return;const t=new ResizeObserver(T);return t.observe(e),()=>t.disconnect()}),[]),(0,o.jsxs)("div",{...y,className:r,children:[(0,o.jsxs)("div",{ref:C,className:"b-blocks-comparison-wrapper "+(h.isShowHover?"b-blocks-label-hover":""),onMouseDown:()=>L(!0),onTouchStart:()=>L(!0),...w?{onMouseMove:()=>L(!0),onMouseLeave:()=>L(!1)}:{},onClick:E,children:[(0,o.jsxs)("div",{className:"b-blocks-image-wrapper",children:[(0,o.jsx)("img",{src:c?.url,alt:c?.alt||c?.title,onLoad:T}),e]}),(0,o.jsxs)("div",{className:"b-blocks-image-wrapper",style:{clipPath:l($)[f.shapeType+d]},children:[(0,o.jsx)("img",{src:u?.url,alt:u?.alt||u?.title,onLoad:T}),i]}),(0,o.jsx)("div",{className:`b-blocks-comparison-slider-handle b-blocks-slider-${d} ${f.handleType} ${"default"!==f.shapeType?"circle-outline-line-none":""} `,style:{left:"horizontal"===d?`${$}%`:"", | |
| 11 | +top:"vertical"===d?`${$}%`:""},children:"default"===f.handleType?(0,o.jsx)("div",{className:"b-blocks-default-icon"},f.handleType):(0,o.jsx)("div",{className:`b-blocks-${f.handleType}-icon`,children:(0,o.jsxs)("div",{children:[(0,o.jsx)(s,{}),(0,o.jsx)(a,{})]})},f.handleType)})]}),v]})};var u=n(4589);const d={style1:{left:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.5303 18.5303C14.2374 18.8232 13.7626 18.8232 13.4697 18.5303L7.46967 12.5303C7.17678 12.2374 7.17678 11.7626 7.46967 11.4697L13.4697 5.46967C13.7626 5.17678 14.2374 5.17678 14.5303 5.46967C14.8232 5.76256 14.8232 6.23744 14.5303 6.53033L9.06066 12L14.5303 17.4697C14.8232 17.7626 14.8232 18.2374 14.5303 18.5303Z"})}),right:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.46967 5.46967C9.76256 5.17678 10.2374 5.17678 10.5303 5.46967L16.5303 11.4697C16.8232 11.7626 16.8232 12.2374 16.5303 12.5303L10.5303 18.5303C10.2374 18.8232 9.76256 18.8232 9.46967 18.5303C9.17678 18.2374 9.17678 17.7626 9.46967 17.4697L14.9393 12L9.46967 6.53033C9.17678 6.23744 9.17678 5.76256 9.46967 5.46967Z"})})},style2:{left:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4939 20.5644C11.1821 20.8372 10.7083 20.8056 10.4356 20.4939L3.43557 12.4939C3.18814 12.2111 3.18814 11.7889 3.43557 11.5061L10.4356 3.50613C10.7083 3.1944 11.1822 3.16281 11.4939 3.43557C11.8056 3.70834 11.8372 4.18216 11.5644 4.49388L5.65283 11.25L20 11.25C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75L5.65283 12.75L11.5644 19.5061C11.8372 19.8179 11.8056 20.2917 11.4939 20.5644Z"})}),right:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5061 3.43557C12.8178 3.16281 13.2917 3.19439 13.5644 3.50612L20.5644 11.5061C20.8119 11.7889 20.8119 12.2111 20.5644 12.4939L13.5644 20.4939C13.2917 20.8056 12.8178 20.8372 12.5061 20.5644C12.1944 20.2917 12.1628 19.8178 12.4356 19.5061L18.3472 12.75H4C3.58579 12.75 3.25 12.4142 3.25 12C3.25 11.5858 3.58579 11.25 4 11.25H18.3472L12.4356 4.49388C12.1628 4.18215 12.1944 3.70833 12.5061 3.43557Z"})})},style3:{left:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{d:"M11 20.74C10.9012 20.7423 10.803 20.7238 10.7118 20.686C10.6205 20.6481 10.5382 20.5916 10.47 20.52L2.47 12.52C2.32955 12.3794 2.25066 12.1888 2.25066 11.99C2.25066 11.7913 2.32955 11.6007 2.47 11.46L10.47 3.46003C10.576 3.35806 10.7096 3.2895 10.8542 3.26288C10.9989 3.23626 11.1481 3.25274 11.2835 3.31029C11.4188 3.36783 11.5342 3.4639 11.6154 3.58653C11.6966 3.70917 11.7399 3.85296 11.74 4.00003V7.30003H21C21.1981 7.30262 21.3874 7.38247 21.5275 7.52256C21.6676 7.66265 21.7474 7.85192 21.75 8.05003V16.05C21.7474 16.2481 21.6676 16.4374 21.5275 16.5775C21.3874 16.7176 21.1981 16.7974 21 16.8H11.74V19.99C11.7402 20.139 11.6954 20.2845 11.6116 20.4076C11.5277 20.5307 11.4087 20.6257 11.27 20.68C11.1848 20.7175 11.0931 20.7379 11 20.74ZM4.07 12L10.25 18.18V16.05C10.25 15.8511 10.329 15.6603 10.4697 15.5197C10.6103 15.379 10.8011 15.3 11 15.3H20.25V8.80003H11C10.8019 8.79744 10.6126 8.71759 10.4725 8.57749C10.3324 8.4374 10.2526 8.24813 10.25 8.05003V5.82003L4.07 12Z"})}),right:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{d:"M13 20.74C12.9039 20.7541 12.8062 20.7541 12.71 20.74C12.5724 20.6823 12.4551 20.5849 12.3732 20.4602C12.2912 20.3355 12.2484 20.1892 12.25 20.04V16.7H3.00001C2.81189 16.6956 2.63208 16.6216 2.49538 16.4923C2.35868 16.363 2.27481 16.1876 2.26001 16V8.00002C2.25463 7.89856 2.26965 7.79706 2.30417 7.7015C2.3387 7.60595 2.39204 7.51829 2.46103 7.44371C2.53002 7.36913 2.61326 7.30913 2.70584 7.26727C2.79841 7.22542 2.89844 7.20255 3.00001 7.20002H12.25V4.01002C12.2498 3.86106 12.2946 3.71551 12.3784 3.59241C12.4623 3.4693 12.5813 3.37436 12.72 3.32002C12.8551 3.26039 13.0053 3.24376 13.1502 3.27238C13.2951 3.301 13.4277 3.37349 13.53 3.48002L21.53 11.48C21.6705 11.6206 21.7493 11.8113 21.7493 12.01C21.7493 12.2088 21.6705 12.3994 21.53 12.54L13.53 20.54C13.4601 20.6079 13.377 20.6608 13.2858 20.6952C13.1946 20.7296 13.0973 20.7448 13 20.74ZM3.76001 15.2H13C13.1981 15.2026 13.3874 15.2825 13.5275 15.4226C13.6676 15.5626 13.7474 15.7519 13.75 15.95V18.18L19.93 12L13.75 5.83002V8.00002C13.7477 8.19843 13.6689 8.3883 13.53 8.53002C13.3817 8.65257 13.1919 8.71343 13 8.70002H3.76001V15.2Z"})})},style4:{left:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{transform:'${\r direction === "vertical" ? "rotate(90, 13, 12)" : ""\r }',d:"M1.02698 11.9929L5.26242 16.2426L6.67902 14.8308L4.85766 13.0033L22.9731 13.0012L22.9728 11.0012L4.85309 11.0033L6.6886 9.17398L5.27677 7.75739L1.02698 11.9929Z"})}),right:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{transform:'${\r direction === "vertical" ? "rotate(90, 13, 12)" : ""\r }',d:"M23.0677 11.9929L18.818 7.75739L17.4061 9.17398L19.2415 11.0032L0.932469 11.0012L0.932251 13.0012L19.2369 13.0032L17.4155 14.8308L18.8321 16.2426L23.0677 11.9929Z"})})},style5:{left:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",children:(0,o.jsx)("path",{transform:'${\r direction === "vertical" ? "rotate(90, 13, 12)" : ""\r }',d:"m4.431 12.822 13 9A1 1 0 0 0 19 21V3a1 1 0 0 0-1.569-.823l-13 9a1.003 1.003 0 0 0 0 1.645z"})}),right:(0,o.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{transform:'${\r direction === "vertical" ? "rotate(90, 13, 12)" : ""\r }',d:"M5.536 21.886a1.004 1.004 0 0 0 1.033-.064l13-9a1 1 0 0 0 0-1.644l-13-9A1 1 0 0 0 5 3v18a1 1 0 0 0 .536.886z"})})},style6:{left:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",children:[(0,o.jsx)("path",{d:"M16.5 8L13 11.5L16.5 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M10.5 8L7 11.5L10.5 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),right:(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",children:[(0,o.jsx)("path",{d:"M7 8L10.5 11.5L7 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,o.jsx)("path",{d:"M13 8L16.5 11.5L13 15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}},p=({icon:e,...t})=>(0,o.jsx)("div",{...t,children:e}),f=({attributes:e,device:n,setActiveIndex:r})=>{const{orientation:i,options:s,dragg:a,label:l,slider:f,sliderOptions:h,isLabel:v,isCap:y,align:b}=e,g=(0,t.useRef)(),{hAlign:m,vAlign:w}=l,{height:S,autoplay:O,speed:k,autoplaySpeed:$,pauseOnHover:x,infinite:j,dots:L,arrows:C,slidesView:E,arrowType:T}=h;(0,t.useEffect)((()=>{g.current&&f.length<2&&g.current.innerSlider.list.querySelectorAll(".slick-cloned").forEach((e=>{e.style.display="none"}))}),[g.current]);const _={className:"center",centerMode:!0,arrows:C,dots:L,infinite:j,centerPadding:"15%",draggable:!1,autoplay:O,slidesToShow:E[n],speed:k,autoplaySpeed:$,pauseOnHover:x,nextArrow:(0,o.jsx)(p,{className:"slick-arrow slick-prev",icon:d[T].right}),prevArrow:(0, | |
| 12 | +o.jsx)(p,{className:"slick-arrow slick-next",icon:d[T].left})};return(0,o.jsx)(u.A,{..._,className:"b-blocks-image-compare-slider-wrapper",ref:g,children:f.map(((e,t)=>{const{beforeImg:u,afterImg:d,caption:p}=e,h={beforeLabelEl:v&&u.beforeLabel&&(0,o.jsx)("div",{className:`b-blocks-label b-blocks-before-label b-blocks-${i} ${"horizontal"===i?m:w}`,dangerouslySetInnerHTML:{__html:u.beforeLabel}}),afterLabelEl:v&&d.afterLabel&&(0,o.jsx)("div",{className:`b-blocks-label b-blocks-after-label b-blocks-${i} ${"horizontal"===i?m:w}`,dangerouslySetInnerHTML:{__html:d.afterLabel}}),captionEl:y&&p&&(0,o.jsx)("div",{className:"b-blocks-caption",dangerouslySetInnerHTML:{__html:p}}),orientation:i,options:s,dragg:a,label:l},g=`${n}-${u?.img?.url}-${d?.img?.url}-${f.length}-${JSON.stringify(S)}-${b}-${s.autoSlide.isMouseOver}`;return(0,o.jsx)(c,{...h,height:S[n],beforeImg:u.img,afterImg:d.img,onClick:()=>r(t)},g)}))})},h=({attributes:e,afterLabelEl:n,beforeLabelEl:r,captionEl:i,isBackend:s=!1,backDevice:a="desktop",activeIndex:l,setActiveIndex:u=()=>{}})=>{const{beforeImg:d,afterImg:p,orientation:h,styles:v,options:y,dragg:b,label:g,align:m,theme:w,slider:S,sliderOptions:O}=e,{device:k}=(()=>{const[e,n]=(0,t.useState)("desktop"),r=()=>{const e=window.innerWidth;n(e>1024?"desktop":e>640?"tablet":"mobile")};return(0,t.useEffect)((()=>(r(),window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)})),[]),{device:e}})(),$=s?a:k,x=`${d?.url}-${p?.url}-${JSON.stringify(v.container.height)}-${m}-${y.autoSlide.isMouseOver}-${$}`;return(0,o.jsxs)(o.Fragment,{children:["default"===w&&(0,o.jsx)(c,{beforeLabelEl:r,afterLabelEl:n,captionEl:i,beforeImg:d,afterImg:p,orientation:h,options:y,dragg:b,label:g,device:$,height:v.container.height[$]},x),"slider"===w&&(0,o.jsx)(f,{attributes:e,device:$,activeIndex:l,setActiveIndex:u},`${S.length}-${JSON.stringify(O)}`)]})},v=e=>!(null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length||"string"==typeof e&&""===e.trim()||"number"==typeof e&&0===e);new class{constructor(e={}){this.defaultOptions={allowedTags:["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","defs","clipPath","mask","linearGradient","radialGradient","stop","style","title","desc"],allowedAttributes:["id","class","style","transform","xmlns","xmlns:xlink","version","baseProfile","xml:space","d","x","y","width","height","cx","cy","r","rx","ry","points","x1","y1","x2","y2","viewBox","preserveAspectRatio","overflow","fill","fill-opacity","fill-rule","stroke","stroke-width","stroke-linecap","stroke-linejoin","stroke-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","opacity","color","paint-order","vector-effect","shape-rendering","display","visibility","clip-path","clip-rule","clipPathUnits","mask","maskUnits","maskContentUnits","offset","stop-color","stop-opacity","gradientUnits","gradientTransform","spreadMethod","fx","fy","fr","dx","dy","text-anchor","dominant-baseline","alignment-baseline","font-family","font-size","font-style","font-weight","letter-spacing","word-spacing","textLength","lengthAdjust","role","focusable","aria-hidden","aria-label","aria-labelledby","aria-describedby"],allowedProtocols:["http","https","data"],removeScripts:!0,removeEvents:!0,removeExternalResources:!0,sanitizeStyle:!0},this.options={...this.defaultOptions,...e},this.allowedTagSet=new Set(this.options.allowedTags.map((e=>e.toLowerCase()))),this.allowedAttributeSet=new Set(this.options.allowedAttributes.map((e=>e.toLowerCase())))}sanitize(e){if("string"!=typeof e||""===e.trim())return"";const t=(new DOMParser).parseFromString(e,"image/svg+xml"),n=t.documentElement;return!n||"svg"!==n.localName.toLowerCase()||t.getElementsByTagName("parsererror").length?"":(this.removeScripts(t),this.sanitizeElements(t),(new XMLSerializer).serializeToString(t.documentElement))}async sanitizeFile(e){const t=await fetch(e),n=await t.text();return this.sanitize(`${n}`)}removeScripts(e){this.options.removeScripts&&Array.from(e.querySelectorAll("*")).forEach((e=>{e.localName.toLowerCase().includes("script")&&e.remove()}))}sanitizeElements(e){Array.from(e.querySelectorAll("*")).forEach((e=>{const t=e.localName.toLowerCase();this.allowedTagSet.has(t)?("style"===t&&this.options.sanitizeStyle&&(e.textContent=this.sanitizeCss(e.textContent)),this.sanitizeAttributes(e)):e.remove()}))}sanitizeAttributes(e){Array.from(e.attributes).forEach((t=>{const n=t.name,r=n.toLowerCase(),i=t.value;if(this.options.removeEvents&&r.startsWith("on"))return void e.removeAttribute(n);if(this.options.removeExternalResources&&("href"===r||r.endsWith(":href"))&&!this.isAllowedUrl(i))return void e.removeAttribute(n);const o=r.replace("xlink:","");this.allowedAttributeSet.has(r)||this.allowedAttributeSet.has(o)?this.options.removeExternalResources&&this.hasExternalUrl(i)?e.removeAttribute(n):"style"===r&&this.options.sanitizeStyle&&e.setAttribute(n,this.sanitizeCss(i)):e.removeAttribute(n)}))}hasExternalUrl(e){return!("string"!=typeof e||!/url\s*\(/i.test(e))&&Array.from(e.matchAll(/url\s*\(\s*['"]?([^'")]*)/gi)).some((([,e])=>!e.trim().startsWith("#")))}isAllowedUrl(e){const t=String(e||"").trim();if(t.startsWith("#"))return!0;if(/^data:/i.test(t))return this.options.allowedProtocols.includes("data")&&/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(t);try{return this.options.allowedProtocols.includes(new URL(t).protocol.replace(":",""))}catch{return!1}}sanitizeCss(e){return String(e||"").replace(/expression\s*\(/gi,"").replace(/javascript:/gi,"").replace(/behavior\s*:/gi,"").replace(/binding\s*:/gi,"").replace(/@import[^;]*;?/gi,"").replace(/url\s*\(\s*(['"]?)(?!#)[^)]*\)/gi,"none")}};const y=e=>{const t=(e=>{try{const t=new URL(e);return["http:","https:"].includes(t.protocol)?t.toString():null}catch(t){return"string"==typeof e&&e.startsWith("/")&&!e.startsWith("//")?e:null}})(e);return t?`url('${t.replace(/['"()]/g,"")}')`:"none"},b=(e,t)=>v(t)?`${e}: ${t};`:"",g=(e,t=!0,n=!0,r=!0)=>{const{type:o="solid",color:s="",gradient:a=i,image:l={},position:c="center center",attachment:u="",repeat:d="no-repeat",size:p="",overlayColor:f=""}=e||{};return"gradient"===o&&n?b("background",a):"image"===o&&r?`background: ${y(l?.url)};\n\t\t\t\t${b("background-color",f)}\n\t\t\t\t${b("background-position",c)}\n\t\t\t\t${b("background-size",p)}\n\t\t\t\t${b("background-repeat",d)}\n\t\t\t\t${b("background-attachment",u)}\n\t\t\t\t${b("background-repeat",d)}\n\t\t\t\tbackground-blend-mode: overlay;`:t&&b("background",s)},m=e=>{const{width:t="",style:n="solid",color:r="",side:i="all",radius:o=""}=e||{},s=e=>{const t=i?.toLowerCase();return t?.includes("all")||t?.includes(e)},a=`${t} ${n} ${r}`,l=`\n\t\t${t&&0!==parseInt(t)?["top","right","bottom","left"].map((e=>s(e)?`border-${e}: ${a};`:"")).join(""):""}\n\t\t${b("border-radius",o)}\n\t`;return l},w=e=>{if(!e)return"";const t=e=>{const{color:t="#000000",style:n="solid",width:r="0px"}=e;return`${r} ${n} ${t}`};return"object"!=typeof e||Array.isArray(e)?"":e.hasOwnProperty("top")||e.hasOwnProperty("right")||e.hasOwnProperty("bottom")||e.hasOwnProperty("left")?["top","right","bottom","left"].map((n=>e[n]?`border-${n}: ${t(e[n])};`:"")).join(" ").trim():b("border",t(e))},S=e=>{const{color:t="",bgType:n="solid",bg:r="",gradient:o=i}=e||{};return`\n\t\t${b("color",t)}\n\t\t${o||r?b("background","gradient"===n?o:r):""}\n\t`},O=e=>{const{side:t=2,vertical:n="0px",horizontal:r="0px",top:i="0px",right:o="0px",bottom:s="0px",left:a="0px"}=e||{};return 2===t?`${n} ${r}`:`${i} ${o} ${s} ${a}`},k=(e,t,n=!0)=>{const{fontFamily:r="Default",fontCategory:i="sans-serif",fontVariant:o=400,fontWeight:s,isUploadFont:a=!0,fontSize:l={desktop:null,tablet:null,mobile:null},fontStyle:c,textTransform:u,textDecoration:d,lineHeight:p,letterSpace:f}=t||{},h=!n||!r||"Default"===r,v=l?.desktop||l,y=l?.tablet||v,g=l?.mobile||y,m=e=>{const t=String(e) | |
| 13 | +;return["px","em","rem","%","vh","vw"].some((e=>t.endsWith(e)))?t:"number"==typeof e?`${t}px`:""},w=`\n\t\t${h?"":`font-family: '${r}', ${i};`}\n\t\t${b("font-weight",s)}\n\t\t${b("font-size",m(v))}\n\t\t${b("font-style",c)}\n\t\t${b("text-transform",u)}\n\t\t${b("text-decoration",d)}\n\t\t${b("line-height",p)}\n\t\t${b("letter-spacing",f)}\n\t`,S=o&&400!==o?"400i"===o?":ital@1":o?.includes("00i")?`: ital, wght@1, ${o?.replace("00i","00")} `:`: wght@${o} `:"",O=h?"":`https://fonts.googleapis.com/css2?family=${r?.split(" ").join("+")}${S.replace(/ /g,"")}&display=swap`;return{googleFontLink:!a||h?"":`@import url(${O});`,styles:`${e}{\n\t\t\t${w}\n\t\t}\n\t\t@media only screen and (max-width: 1024px) {\n\t\t\t${e}{\n\t\t\t\t${b("font-size",m(y))}\n\t\t\t}\n\t\t}\n\t\t@media only screen and (max-width: 640px) {\n\t\t\t${e}{\n\t\t\t\t${b("font-size",m(g))}\n\t\t\t}\n\t\t}`.replace(/\s+/g," ").trim()}},$=e=>{if(!e)return"";if("string"==typeof e)return e;if("object"==typeof e&&!Array.isArray(e)){const t=["top","right","bottom","left"];return t.map((t=>e[t]||"")).every((e=>!e))?"":t.map((t=>e[t]||"0")).join(" ")}return""},x=window.wp.i18n,j=((0,x.__)("Before Img","image-compare"),(0,x.__)("After Img","image-compare"),(0,x.__)("General","textdomain"),(0,x.__)("Style","textdomain"),["rectangle-caret","circle-caret","circle-big-caret","capsule-stroke","capsule-tiny-stroke-big","capsule-tiny-stroke-small"]),L=((0,x.__)("Style 1","b-blocks"),d.style1.right,(0,x.__)("Style 2","b-blocks"),d.style2.right,(0,x.__)("Style 3","b-blocks"),d.style3.right,(0,x.__)("Style 4","b-blocks"),d.style4.right,(0,x.__)("Style 5","b-blocks"),d.style5.right,(0,x.__)("Style 6","b-blocks"),d.style6.right,(0,x.__)("Navigation","textdomain"),(0,x.__)("Pagination","textdomain"),({attributes:e,id:t})=>{const{alignment:n,width:i,border:s,dragg:a,labelTypo:l,labelColors:c,labelPadding:u,capTypo:d,capColors:p,capPadding:f,styles:h,theme:y,sliderStyle:x}=e,{dragg:L}=h,{pagination:C,navigation:E}=x,{icon:T,container:_}=E,P=`#${t}`,M=`${P} .${r}`,z=`${M} .b-blocks-comparison-wrapper`,A=`${z} .b-blocks-label`,R=`${M} .b-blocks-caption`,H=`${z} .b-blocks-comparison-slider-handle`,D=`${P} .b-blocks-image-compare-slider-wrapper`,I=`${D} .slick-arrow`,W=`${D} .slick-dots`;return(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n\t\t${k("",l)?.googleFontLink}\n\t\t${k("",d)?.googleFontLink}\n\t\t${k(A,l)?.styles}\n\t\t${k(R,d)?.styles}\n\n\t\t${P}{\n\t\t\ttext-align: ${n};\n\t\t}\n\t\t${M}{\n\t\t\twidth: ${i};\n\t\t\t${m(s)}\n\t\t}\n\n\t\t${A}{\n\t\t\t${S(c)}\n\t\t\tpadding: ${O(u)};\n\t\t}\n\t\t${R}{\n\t\t\t${S(p)}\n\t\t\tpadding: ${O(f)};\n\t\t}\n\n\t\t${N=a.handleType,j.includes(N)?`${H} .b-blocks-${a.handleType}-icon{\n\t\t${b("border-color",L.handler.color)}\n\t\t${b("border-width",v(L.line.size)?L.line.size+"px":"")}\n\t\t\t}`:`${H} .b-blocks-${a.handleType}-icon{\n\t\t\t\t${b("background-color",L.handler.color)}\n\t\t\t\t${b("border-color",L.handler.color)}\n\t\t\t}`}\n\n\t\t${H} :where(svg){\n\t\t\t${b("color",L.icon.color)}\n\t\t\t${b("fill",L.icon.color)}\n\t\t}\n\t\t${H}::before{\n\t\t\tcontent:"";\n\t\t\t${b("width",v(L.line.size)?L.line.size+"px":"")}\n\t\t\t${g(L.line.bg)}\n\t\t}\n\t\t${H}::after{\n\t\t\tcontent:"";\n\t\t\t${b("width",v(L.line.size)?L.line.size+"px":"")}\n\t\t\t${g(L.line.bg)}\n\t\t}\n\t\t${"slider"===y?`\n\t\t\t\t${I}{\n\t\t\t\t\t${b("height",_.height)}\n\t\t\t\t\t${b("width",_.width)}\n\t\t\t\t\t${g(_.normal.bg)}\n\t\t\t\t\t${w(_.normal.border)}\n\t\t\t\t\t${b("border-radius",$(_.normal.radius))}\n\t\t\t\t}\n\n\t\t\t\t${I}:hover{\n\t\t\t\t\t${g(_.hover.bg)}\n\t\t\t\t\t${w(_.hover.border)}\n\t\t\t\t\t${b("border-radius",$(_.hover.radius))}\n\t\t\t\t}\n\n\t\t\t\t${I} > svg{\n\t\t\t\t\t${b("width",T.normal.size)}\n\t\t\t\t\t${b("fill",T.normal.color)}\n\t\t\t\t}\n\t\t\t\t${I}:hover svg{\n\t\t\t\t\t${b("fill",T.hover.color)}\n\t\t\t\t\t${b("width",T.hover.size)}\n\t\t\t\t}\n\t\t\t\t${W}>li>button::before{\n\t\t\t\t\t${b("background-color",C.active)}\n\t\t\t\t}\n\t\t\t\t${W}>li.slick-active>button::before{\n\t\t\t\t\t${b("background-color",C.active)}\n\t\t\t\t}\n\t\t\t\t`:""}\n\t\t`.replace(/\s+/g," ")}});var N});document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-b-blocks-image-comparison").forEach((t=>{const n=JSON.parse(t.dataset.attributes),{isLabel:r,label:i,beforeLabel:s,afterLabel:a,isCap:l,cap:c,orientation:u}=n,{hAlign:d,vAlign:p}=i,f=r&&s&&(0,o.jsx)("div",{className:`b-blocks-label b-blocks-before-label b-blocks-${u} ${"horizontal"===u?d:p}`,dangerouslySetInnerHTML:{__html:s}}),v=r&&a&&(0,o.jsx)("div",{className:`b-blocks-label b-blocks-after-label b-blocks-${u} ${"horizontal"===u?d:p}`,dangerouslySetInnerHTML:{__html:a}}),y=l&&c&&(0,o.jsx)("div",{className:"b-blocks-caption",dangerouslySetInnerHTML:{__html:c}});(0,e.createRoot)(t).render((0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(L,{attributes:n,id:t.id}),(0,o.jsx)(h,{afterLabelEl:v,beforeLabelEl:f,captionEl:y,attributes:n})]})),t?.removeAttribute("data-attributes")}))}))})()})(); | |