-
Notifications
You must be signed in to change notification settings - Fork 0
/
36.9fd0e539.js
1 lines (1 loc) · 51.1 KB
/
36.9fd0e539.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{187:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||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},i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=p(n(112)),o=p(n(0)),s=n(188),l=p(n(189)),u=p(n(190)),c=p(n(191)),h=p(n(193)),d=n(1),f=p(n(194));function p(e){return e&&e.__esModule?e:{default:e}}var v=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],m=(0,d.arrayOf)((0,d.shape)({srcSet:d.string,media:d.string}));function g(e){var t=parseInt(e.keyCode||e.which||0,10);return 66===t||62===t}var b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={currentIndex:e.startIndex,thumbsTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,isFullscreen:!1,isPlaying:!1},n.loadedImages={},n.imageGallery=o.default.createRef(),n.thumbnailsWrapper=o.default.createRef(),n.thumbnails=o.default.createRef(),n.imageGallerySlideWrapper=o.default.createRef(),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleMouseDown=n.handleMouseDown.bind(n),n.handleOnSwiped=n.handleOnSwiped.bind(n),n.handleScreenChange=n.handleScreenChange.bind(n),n.handleSwiping=n.handleSwiping.bind(n),n.onThumbnailMouseLeave=n.onThumbnailMouseLeave.bind(n),n.handleImageError=n.handleImageError.bind(n),n.pauseOrPlay=n.pauseOrPlay.bind(n),n.renderThumbInner=n.renderThumbInner.bind(n),n.renderItem=n.renderItem.bind(n),n.slideLeft=n.slideLeft.bind(n),n.slideRight=n.slideRight.bind(n),n.toggleFullScreen=n.toggleFullScreen.bind(n),n.togglePlay=n.togglePlay.bind(n),n.unthrottledSlideToIndex=n.slideToIndex,n.slideToIndex=(0,l.default)(n.unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(n.lazyLoaded=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.autoPlay&&this.play(),window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),this.initResizeObserver(this.imageGallerySlideWrapper),this.addScreenChangeEvent()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.items,i=n.lazyLoad,a=n.slideDuration,o=n.startIndex,s=n.thumbnailPosition,u=n.showThumbnails,h=this.state.currentIndex,d=e.items.length!==r.length,f=!(0,c.default)(e.items,r),p=e.startIndex!==o,v=e.thumbnailPosition!==s,m=e.showThumbnails!==u;v&&(this.removeResizeObserver(),this.initResizeObserver(this.imageGallerySlideWrapper)),(d||m)&&this.handleResize(),t.currentIndex!==h&&this.slideThumbnailBar(t.currentIndex),e.slideDuration!==a&&(this.slideToIndex=(0,l.default)(this.unthrottledSlideToIndex,a,{trailing:!1})),!i||e.lazyLoad&&!f||(this.lazyLoaded=[]),(p||f)&&this.setState({currentIndex:o})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("mousedown",this.handleMouseDown),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer)}},{key:"onSliding",value:function(){var e=this,t=this.state,n=t.currentIndex,r=t.isTransitioning,i=this.props,a=i.onSlide,o=i.slideDuration;this.transitionTimer=window.setTimeout((function(){r&&(e.setState({isTransitioning:!r}),a&&a(n))}),o+50)}},{key:"onThumbnailClick",value:function(e,t){var n=this.props.onThumbnailClick;this.slideToIndex(t,e),n&&n(e,t)}},{key:"onThumbnailMouseOver",value:function(e,t){var n=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout((function(){n.slideToIndex(t),n.pause()}),300)}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var e=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,e&&this.play()}}},{key:"setScrollDirection",value:function(e){var t=this.state,n=t.scrollingUpDown,r=t.scrollingLeftRight;n||r||(e===s.LEFT||e===s.RIGHT?this.setState({scrollingLeftRight:!0}):this.setState({scrollingUpDown:!0}))}},{key:"setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e})}},{key:"setModalFullscreen",value:function(e){var t=this.props.onScreenChange;this.setState({modalFullscreen:e}),t&&t(e)}},{key:"getThumbsTranslate",value:function(e){var t=this.props,n=t.disableThumbnailScroll,r=t.items,i=this.state,a=i.thumbnailsWrapperWidth,o=i.thumbnailsWrapperHeight,s=void 0,l=this.thumbnails&&this.thumbnails.current;if(n)return 0;if(l){if(this.isThumbnailVertical()){if(l.scrollHeight<=o)return 0;s=l.scrollHeight-o}else{if(l.scrollWidth<=a||a<=0)return 0;s=l.scrollWidth-a}return e*(s/(r.length-1))}return 0}},{key:"getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n=this.props,r=n.infinite,i=n.items,a="";switch(e){case t-1:a=" left";break;case t:a=" center";break;case t+1:a=" right"}return i.length>=3&&r&&(0===e&&t===i.length-1?a=" right":e===i.length-1&&0===t&&(a=" left")),a}},{key:"getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,r=t.currentSlideOffset,i=t.previousIndex,a=n!==i,o=0===e&&0===i,s=1===e&&1===i,l=0===e&&1===n,u=1===e&&0===n,c=0===r,h=-100*n+100*e+r;return r>0?this.direction="left":r<0&&(this.direction="right"),u&&r>0&&(h=-100+r),l&&r<0&&(h=100+r),a?o&&c&&"left"===this.direction?h=100:s&&c&&"right"===this.direction&&(h=-100):(u&&c&&"left"===this.direction&&(h=-100),l&&c&&"right"===this.direction&&(h=100)),h}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,i=t.currentSlideOffset,a=t.slideStyle,o=this.props,s=o.infinite,l=o.items,u=o.useTranslate3D,c=o.isRTL,h=-100*n,d=l.length-1,f=(h+100*e)*(c?-1:1)+i;s&&l.length>2&&(0===n&&e===d?f=-100*(c?-1:1)+i:n===d&&0===e&&(f=100*(c?-1:1)+i)),s&&2===l.length&&(f=this.getTranslateXForTwoSlide(e));var p="translate("+f+"%, 0)";return u&&(p="translate3d("+f+"%, 0, 0)"),r({},{WebkitTransform:p,MozTransform:p,msTransform:p,OTransform:p,transform:p},a)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var e=void 0,t=this.props,n=t.useTranslate3D,r=t.isRTL,i=this.state.thumbsTranslate,a=r?-1*i:i;return this.isThumbnailVertical()?(e="translate(0, "+i+"px)",n&&(e="translate3d(0, "+i+"px, 0)")):(e="translate("+a+"px, 0)",n&&(e="translate3d("+a+"px, 0, 0)")),{WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e}}},{key:"getSlideItems",value:function(){var e=this,t=this.state.currentIndex,n=this.props,r=n.infinite,i=n.items,s=n.slideOnThumbnailOver,l=n.onClick,u=n.lazyLoad,c=n.onTouchMove,h=n.onTouchEnd,d=n.onTouchStart,f=n.onMouseOver,p=n.onMouseLeave,v=n.renderItem,m=n.renderThumbInner,g=n.showThumbnails,b=n.showBullets,y=[],w=[],_=[];return i.forEach((function(n,i){var T=e.getAlignmentClassName(i),S=n.originalClass?" "+n.originalClass:"",O=n.thumbnailClass?" "+n.thumbnailClass:"",E=n.renderItem||v||e.renderItem,I=n.renderThumbInner||m||e.renderThumbInner,k=!u||T||e.lazyLoaded[i];k&&u&&!e.lazyLoaded[i]&&(e.lazyLoaded[i]=!0);var x=e.getSlideStyle(i),M=o.default.createElement("div",{"aria-label":"Go to Slide "+(i+1),key:"slide-"+n.original+"-"+i,tabIndex:"-1",className:"image-gallery-slide "+T+" "+S,style:x,onClick:l,onKeyUp:e.handleSlideKeyUp,onTouchMove:c,onTouchEnd:h,onTouchStart:d,onMouseOver:f,onFocus:f,onMouseLeave:p,role:"button"},k?E(n):o.default.createElement("div",{style:{height:"100%"}}));if(r?e.shouldPushSlideOnInfiniteMode(i)&&y.push(M):y.push(M),g){var L=(0,a.default)("image-gallery-thumbnail",O,{active:t===i});w.push(o.default.createElement("button",{key:"thumbnail-"+n.original+"-"+i,type:"button",tabIndex:"0","aria-pressed":t===i?"true":"false","aria-label":"Go to Slide "+(i+1),className:L,onMouseLeave:s?e.onThumbnailMouseLeave:null,onMouseOver:function(t){return e.handleThumbnailMouseOver(t,i)},onFocus:function(t){return e.handleThumbnailMouseOver(t,i)},onKeyUp:function(t){return e.handleThumbnailKeyUp(t,i)},onClick:function(t){return e.onThumbnailClick(t,i)}},I(n)))}if(b){var j=(0,a.default)("image-gallery-bullet",n.bulletClass,{active:t===i});_.push(o.default.createElement("button",{type:"button",key:"bullet-"+n.original+"-"+i,className:j,onClick:function(r){return n.bulletOnClick&&n.bulletOnClick({item:n,itemIndex:i,currentIndex:t}),e.slideToIndex.call(e,i,r)},"aria-pressed":t===i?"true":"false","aria-label":"Go to Slide "+(i+1)}))}})),{slides:y,thumbnails:w,bullets:_}}},{key:"ignoreIsTransitioning",value:function(){var e=this.props.items,t=this.state,n=t.previousIndex,r=t.currentIndex,i=e.length-1;return Math.abs(n-r)>1&&!(0===n&&r===i)&&!(n===i&&0===r)}},{key:"isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,r=t.previousIndex,i=t.currentIndex;return n&&!(e===r||e===i)}},{key:"shouldPushSlideOnInfiniteMode",value:function(e){return!this.slideIsTransitioning(e)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(e)}},{key:"slideThumbnailBar",value:function(e){var t=this.state,n=t.thumbsTranslate,r=t.currentIndex;if(0===r)this.setThumbsTranslate(0);else{var i=Math.abs(e-r),a=this.getThumbsTranslate(i);a>0&&(e<r?this.setThumbsTranslate(n-a):e>r&&this.setThumbsTranslate(n+a))}}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlideNext():this.canSlidePrevious())}},{key:"canSlideRight",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlidePrevious():this.canSlideNext())}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(e){var t=e.event,n=e.absX,r=e.dir,i=this.props,a=i.preventDefaultTouchmoveEvent,o=i.disableSwipe,l=i.stopPropagation,u=this.state,c=u.galleryWidth,h=u.isTransitioning,d=u.scrollingUpDown,f=u.scrollingLeftRight;if(!o){var p=this.props.swipingTransitionDuration;if(this.setScrollDirection(r),l&&t.stopPropagation(),(a||f)&&t.cancelable&&t.preventDefault(),h||d)this.setState({currentSlideOffset:0});else{var v=r===s.RIGHT?1:-1,m=n/c*100;Math.abs(m)>=100&&(m=100);var g={transition:"transform "+p+"ms ease-out"};this.setState({currentSlideOffset:v*m,slideStyle:g})}}}},{key:"sufficientSwipe",value:function(){var e=this.state.currentSlideOffset,t=this.props.swipeThreshold;return Math.abs(e)>t}},{key:"handleOnSwiped",value:function(e){var t=e.event,n=e.dir,r=e.velocity,i=this.props,a=i.disableSwipe,o=i.stopPropagation,l=i.flickThreshold,u=this.state,c=u.scrollingUpDown,h=u.scrollingLeftRight;if(!a){var d=this.props.isRTL;if(o&&t.stopPropagation(),c&&this.setState({scrollingUpDown:!1}),h&&this.setState({scrollingLeftRight:!1}),!c){var f=(n===s.LEFT?1:-1)*(d?-1:1),p=r>l;this.handleOnSwipedTo(f,p)}}}},{key:"handleOnSwipedTo",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,a=r;!this.sufficientSwipe()&&!t||i||(a+=e),(-1===e&&!this.canSlideLeft()||1===e&&!this.canSlideRight())&&(a=r),this.unthrottledSlideToIndex(a)}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse")}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.disableKeyDown,r=t.useBrowserFullscreen,i=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!n){switch(parseInt(e.keyCode||e.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(e);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(e);break;case 27:i&&!r&&this.exitFullScreen()}}}},{key:"handleImageError",value:function(e){var t=this.props.onErrorImageURL;t&&-1===e.target.src.indexOf(t)&&(e.target.src=t)}},{key:"removeResizeObserver",value:function(){this.resizeObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.resizeObserver.unobserve(this.imageGallerySlideWrapper.current)}},{key:"handleResize",value:function(){var e=this.state.currentIndex;this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.isThumbnailVertical()?this.setState({thumbnailsWrapperHeight:this.thumbnailsWrapper.current.offsetHeight}):this.setState({thumbnailsWrapperWidth:this.thumbnailsWrapper.current.offsetWidth})),this.setThumbsTranslate(-this.getThumbsTranslate(e))}},{key:"initResizeObserver",value:function(e){var t=this;this.resizeObserver=new h.default((0,u.default)((function(e){e&&e.forEach((function(){t.handleResize()}))}),300)),this.resizeObserver.observe(e.current)}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen()}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play()}},{key:"handleScreenChange",value:function(){var e=this.props,t=e.onScreenChange,n=e.useBrowserFullscreen,r=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,i=this.imageGallery.current===r;t&&t(i),n&&this.setState({isFullscreen:i})}},{key:"slideToIndex",value:function(e,t){var n=this.state,r=n.currentIndex,i=n.isTransitioning,a=this.props,o=a.items,s=a.slideDuration,l=a.onBeforeSlide;if(!i){t&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var u=o.length-1,c=e;e<0?c=u:e>u&&(c=0),l&&c!==r&&l(c),this.setState({previousIndex:r,currentIndex:c,isTransitioning:c!==r,currentSlideOffset:0,slideStyle:{transition:"all "+s+"ms ease-out"}},this.onSliding)}}},{key:"slideLeft",value:function(e){this.props.isRTL?this.slideNext(e):this.slidePrevious(e)}},{key:"slideRight",value:function(e){this.props.isRTL?this.slidePrevious(e):this.slideNext(e)}},{key:"slidePrevious",value:function(e){var t=this,n=this.state,r=n.currentIndex,i=n.currentSlideOffset,a=n.isTransitioning,o=this.props.items,s=r-1;a||(2===o.length?this.setState({currentSlideOffset:i+.001,slideStyle:{transition:"none"}},(function(){window.setTimeout((function(){return t.slideToIndex(s,e)}),25)})):this.slideToIndex(s,e))}},{key:"slideNext",value:function(e){var t=this,n=this.state,r=n.currentIndex,i=n.currentSlideOffset,a=n.isTransitioning,o=this.props.items,s=r+1;a||(2===o.length?this.setState({currentSlideOffset:i-.001,slideStyle:{transition:"none"}},(function(){window.setTimeout((function(){return t.slideToIndex(s,e)}),25)})):this.slideToIndex(s,e))}},{key:"handleThumbnailMouseOver",value:function(e,t){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(e,t)}},{key:"handleThumbnailKeyUp",value:function(e,t){g(e)&&this.onThumbnailClick(e,t)}},{key:"handleSlideKeyUp",value:function(e){g(e)&&(0,this.props.onClick)(e)}},{key:"isThumbnailVertical",value:function(){var e=this.props.thumbnailPosition;return"left"===e||"right"===e}},{key:"addScreenChangeEvent",value:function(){var e=this;v.forEach((function(t){document.addEventListener(t,e.handleScreenChange)}))}},{key:"removeScreenChangeEvent",value:function(){var e=this;v.forEach((function(t){document.removeEventListener(t,e.handleScreenChange)}))}},{key:"fullScreen",value:function(){var e=this.props.useBrowserFullscreen,t=this.imageGallery.current;e?t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0})}},{key:"exitFullScreen",value:function(){var e=this.state.isFullscreen,t=this.props.useBrowserFullscreen;e&&(t?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}))}},{key:"pauseOrPlay",value:function(){var e=this.props.infinite,t=this.state.currentIndex;e||this.canSlideRight()?this.slideToIndex(t+1):this.pause()}},{key:"play",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props,n=t.onPlay,r=t.slideInterval,i=t.slideDuration,a=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(r,i)),n&&e&&n(a))}},{key:"pause",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.onPause,n=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),t&&e&&t(n))}},{key:"isImageLoaded",value:function(e){return!!this.loadedImages[e.original]||(this.loadedImages[e.original]=!0,!1)}},{key:"handleImageLoaded",value:function(e,t){var n=this.props.onImageLoad;!this.loadedImages[t.original]&&n&&(this.loadedImages[t.original]=!0,n(e))}},{key:"renderItem",value:function(e){var t=this,n=this.state.isFullscreen,r=this.props.onImageError||this.handleImageError,i=n&&e.fullscreen||e.original;return o.default.createElement("div",null,e.imageSet?o.default.createElement("picture",{onLoad:function(n){return t.handleImageLoaded(n,e)},onError:r},e.imageSet.map((function(e,t){return o.default.createElement("source",{key:"media-"+e.srcSet+"-"+t,media:e.media,srcSet:e.srcSet,type:e.type})})),o.default.createElement("img",{className:"image-gallery-image",alt:e.originalAlt,src:i})):o.default.createElement("img",{className:"image-gallery-image",src:i,alt:e.originalAlt,srcSet:e.srcSet,sizes:e.sizes,title:e.originalTitle,onLoad:function(n){return t.handleImageLoaded(n,e)},onError:r}),e.description&&o.default.createElement("span",{className:"image-gallery-description"},e.description))}},{key:"renderThumbInner",value:function(e){var t=this.props.onThumbnailError||this.handleImageError;return o.default.createElement("div",{className:"image-gallery-thumbnail-inner"},o.default.createElement("img",{className:"image-gallery-thumbnail-image",src:e.thumbnail,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&o.default.createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))}},{key:"render",value:function(){var e=this.state,t=e.currentIndex,n=e.isFullscreen,r=e.modalFullscreen,i=e.isPlaying,l=this.props,u=l.additionalClass,c=l.indexSeparator,h=l.isRTL,d=l.items,f=l.thumbnailPosition,p=l.renderFullscreenButton,v=l.renderCustomControls,m=l.renderLeftNav,g=l.renderRightNav,b=l.showBullets,y=l.showFullscreenButton,w=l.showIndex,_=l.showThumbnails,T=l.showNav,S=l.showPlayButton,O=l.renderPlayPauseButton,E=this.getThumbnailStyle(),I=this.getSlideItems(),k=I.slides,x=I.thumbnails,M=I.bullets,L=(0,a.default)("image-gallery-slide-wrapper",f,{"image-gallery-rtl":h}),j=o.default.createElement("div",{ref:this.imageGallerySlideWrapper,className:L},v&&v(),this.canSlide()?o.default.createElement(o.default.Fragment,null,T&&o.default.createElement(o.default.Fragment,null,m(this.slideLeft,!this.canSlideLeft()),g(this.slideRight,!this.canSlideRight())),o.default.createElement(s.Swipeable,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},o.default.createElement("div",{className:"image-gallery-slides"},k))):o.default.createElement("div",{className:"image-gallery-slides"},k),S&&O(this.togglePlay,i),b&&o.default.createElement("div",{className:"image-gallery-bullets"},o.default.createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},M)),y&&p(this.toggleFullScreen,n),w&&o.default.createElement("div",{className:"image-gallery-index"},o.default.createElement("span",{className:"image-gallery-index-current"},t+1),o.default.createElement("span",{className:"image-gallery-index-separator"},c),o.default.createElement("span",{className:"image-gallery-index-total"},d.length))),P=(0,a.default)("image-gallery",u,{"fullscreen-modal":r}),F=(0,a.default)("image-gallery-content",f,{fullscreen:n}),R=(0,a.default)("image-gallery-thumbnails-wrapper",f,{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&h});return o.default.createElement("div",{ref:this.imageGallery,className:P,"aria-live":"polite"},o.default.createElement("div",{className:F},("bottom"===f||"right"===f)&&j,_&&o.default.createElement("div",{className:R,style:this.getThumbnailBarHeight()},o.default.createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper},o.default.createElement("div",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:E,"aria-label":"Thumbnail Navigation"},x))),("top"===f||"left"===f)&&j))}}]),t}(o.default.Component);b.propTypes={flickThreshold:d.number,items:(0,d.arrayOf)((0,d.shape)({bulletClass:d.string,bulletOnClick:d.func,description:d.string,original:d.string.isRequired,fullscreen:d.string,originalAlt:d.string,originalTitle:d.string,thumbnail:d.string,thumbnailAlt:d.string,thumbnailLabel:d.string,thumbnailTitle:d.string,originalClass:d.string,thumbnailClass:d.string,renderItem:d.func,renderThumbInner:d.func,imageSet:m,srcSet:d.string,sizes:d.string})).isRequired,showNav:d.bool,autoPlay:d.bool,lazyLoad:d.bool,infinite:d.bool,showIndex:d.bool,showBullets:d.bool,showThumbnails:d.bool,showPlayButton:d.bool,showFullscreenButton:d.bool,disableThumbnailScroll:d.bool,disableKeyDown:d.bool,disableSwipe:d.bool,useBrowserFullscreen:d.bool,preventDefaultTouchmoveEvent:d.bool,onErrorImageURL:d.string,indexSeparator:d.string,thumbnailPosition:(0,d.oneOf)(["top","bottom","left","right"]),startIndex:d.number,slideDuration:d.number,slideInterval:d.number,slideOnThumbnailOver:d.bool,swipeThreshold:d.number,swipingTransitionDuration:d.number,onSlide:d.func,onBeforeSlide:d.func,onScreenChange:d.func,onPause:d.func,onPlay:d.func,onClick:d.func,onImageLoad:d.func,onImageError:d.func,onTouchMove:d.func,onTouchEnd:d.func,onTouchStart:d.func,onMouseOver:d.func,onMouseLeave:d.func,onThumbnailError:d.func,onThumbnailClick:d.func,renderCustomControls:d.func,renderLeftNav:d.func,renderRightNav:d.func,renderPlayPauseButton:d.func,renderFullscreenButton:d.func,renderItem:d.func,renderThumbInner:d.func,stopPropagation:d.bool,additionalClass:d.string,useTranslate3D:d.bool,isRTL:d.bool},b.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,preventDefaultTouchmoveEvent:!1,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:e,"aria-label":"Previous Slide"},o.default.createElement(f.default,{icon:"left",viewBox:"6 0 12 24"}))},renderRightNav:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:e,"aria-label":"Next Slide"},o.default.createElement(f.default,{icon:"right",viewBox:"6 0 12 24"}))},renderPlayPauseButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:e,"aria-label":"Play or Pause Slideshow"},o.default.createElement(f.default,{strokeWidth:2,icon:t?"pause":"play"}))},renderFullscreenButton:function(e,t){return o.default.createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:e,"aria-label":"Open Fullscreen"},o.default.createElement(f.default,{strokeWidth:2,icon:t?"minimize":"maximize"}))}},t.default=b},188:function(e,t,n){"use strict";n.r(t),n.d(t,"DOWN",(function(){return f})),n.d(t,"LEFT",(function(){return c})),n.d(t,"RIGHT",(function(){return h})),n.d(t,"Swipeable",(function(){return w})),n.d(t,"UP",(function(){return d})),n.d(t,"useSwipeable",(function(){return y}));var r=n(0),i=n.n(r),a=n(1),o=n.n(a);function s(){return(s=Object.assign||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}).apply(this,arguments)}var l={preventDefaultTouchmoveEvent:!1,delta:10,rotationAngle:0,trackMouse:!1,trackTouch:!0},u={xy:[0,0],swiping:!1,eventData:void 0,start:void 0},c="Left",h="Right",d="Up",f="Down",p="mousemove",v="mouseup";function m(e,t){if(0===t)return e;var n=Math.PI/180*t;return[e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function g(e,t){var n=function(t){t.touches&&t.touches.length>1||e((function(e,n){n.trackMouse&&(document.addEventListener(p,r),document.addEventListener(v,o));var i=t.touches?t.touches[0]:t,a=m([i.clientX,i.clientY],n.rotationAngle);return s({},e,u,{eventData:{initial:[].concat(a),first:!0},xy:a,start:t.timeStamp||0})}))},r=function(t){e((function(e,n){if(!e.xy[0]||!e.xy[1]||t.touches&&t.touches.length>1)return e;var r=t.touches?t.touches[0]:t,i=m([r.clientX,r.clientY],n.rotationAngle),a=i[0],o=i[1],l=e.xy[0]-a,u=e.xy[1]-o,p=Math.abs(l),v=Math.abs(u),g=(t.timeStamp||0)-e.start,b=Math.sqrt(p*p+v*v)/(g||1);if(p<n.delta&&v<n.delta&&!e.swiping)return e;var y=function(e,t,n,r){return e>t?n>0?c:h:r>0?d:f}(p,v,l,u),w=s({},e.eventData,{event:t,absX:p,absY:v,deltaX:l,deltaY:u,velocity:b,dir:y});n.onSwiping&&n.onSwiping(w);var _=!1;return(n.onSwiping||n.onSwiped||n["onSwiped"+y])&&(_=!0),_&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),s({},e,{eventData:s({},w,{first:!1}),swiping:!0})}))},i=function(t){e((function(e,n){var r;return e.swiping&&(r=s({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(r),n["onSwiped"+r.dir]&&n["onSwiped"+r.dir](r)),s({},e,u,{eventData:r})}))},a=function(){document.removeEventListener(p,r),document.removeEventListener(v,o)},o=function(e){a(),i(e)},l=function(e){if(e&&e.addEventListener){var t=[["touchstart",n],["touchmove",r],["touchend",i]];return t.forEach((function(t){var n=t[0],r=t[1];return e.addEventListener(n,r)})),function(){return t.forEach((function(t){var n=t[0],r=t[1];return e.removeEventListener(n,r)}))}}},g={ref:function(t){null!==t&&e((function(e,n){if(e.el===t)return e;var r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=null),n.trackTouch&&t&&(r.cleanUpTouch=l(t)),s({},e,{el:t},r)}))}};return t.trackMouse&&(g.onMouseDown=n),[g,l]}function b(e,t,n){var r={};return!t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),r.cleanUpTouch=null):t.trackTouch&&!e.cleanUpTouch&&e.el&&(r.cleanUpTouch=n(e.el)),s({},e,r)}function y(e){var t=e.trackMouse,n=i.a.useRef(s({},u,{type:"hook"})),r=i.a.useRef();r.current=s({},l,e);var a=i.a.useMemo((function(){return g((function(e){return n.current=e(n.current,r.current)}),{trackMouse:t})}),[t]),o=a[0],c=a[1];return n.current=b(n.current,r.current,c),o}var w=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this)._set=function(e){n.transientState=e(n.transientState,n.props)},n.transientState=s({},u,{type:"class"}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.render=function(){var e=this.props,t=e.className,n=e.style,r=e.nodeName,a=void 0===r?"div":r,o=e.innerRef,l=e.children,u=e.trackMouse,c=g(this._set,{trackMouse:u}),h=c[0],d=c[1];this.transientState=b(this.transientState,this.props,d);var f=o?function(e){return o(e),h.ref(e)}:h.ref;return i.a.createElement(a,s({},h,{className:t,style:n,ref:f}),l)},r}(i.a.PureComponent);w.propTypes={onSwiped:o.a.func,onSwiping:o.a.func,onSwipedUp:o.a.func,onSwipedRight:o.a.func,onSwipedDown:o.a.func,onSwipedLeft:o.a.func,delta:o.a.number,preventDefaultTouchmoveEvent:o.a.bool,nodeName:o.a.string,trackMouse:o.a.bool,trackTouch:o.a.bool,innerRef:o.a.func,rotationAngle:o.a.number},w.defaultProps=l},189:function(e,t,n){(function(t){var n="Expected a function",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),h=Object.prototype.toString,d=Math.max,f=Math.min,p=function(){return c.Date.now()};function v(e,t,r){var i,a,o,s,l,u,c=0,h=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError(n);function y(t){var n=i,r=a;return i=a=void 0,c=t,s=e.apply(r,n)}function w(e){return c=e,l=setTimeout(T,t),h?y(e):s}function _(e){var n=e-u;return void 0===u||n>=t||n<0||v&&e-c>=o}function T(){var e=p();if(_(e))return S(e);l=setTimeout(T,function(e){var n=t-(e-u);return v?f(n,o-(e-c)):n}(e))}function S(e){return l=void 0,b&&i?y(e):(i=a=void 0,s)}function O(){var e=p(),n=_(e);if(i=arguments,a=this,u=e,n){if(void 0===l)return w(u);if(v)return l=setTimeout(T,t),y(u)}return void 0===l&&(l=setTimeout(T,t)),s}return t=g(t)||0,m(r)&&(h=!!r.leading,o=(v="maxWait"in r)?d(g(r.maxWait)||0,t):o,b="trailing"in r?!!r.trailing:b),O.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=a=l=void 0},O.flush=function(){return void 0===l?s:S(p())},O}function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==h.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||o.test(e)?s(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(n);return m(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),v(e,t,{leading:i,maxWait:t,trailing:a})}}).call(this,n(25))},190:function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,l="object"==typeof self&&self&&self.Object===Object&&self,u=s||l||Function("return this")(),c=Object.prototype.toString,h=Math.max,d=Math.min,f=function(){return u.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(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(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||a.test(e)?o(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,a,o,s,l,u=0,c=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,a=i;return r=i=void 0,u=t,o=e.apply(a,n)}function y(e){return u=e,s=setTimeout(_,t),c?b(e):o}function w(e){var n=e-l;return void 0===l||n>=t||n<0||m&&e-u>=a}function _(){var e=f();if(w(e))return T(e);s=setTimeout(_,function(e){var n=t-(e-l);return m?d(n,a-(e-u)):n}(e))}function T(e){return s=void 0,g&&r?b(e):(r=i=void 0,o)}function S(){var e=f(),n=w(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return y(l);if(m)return s=setTimeout(_,t),b(l)}return void 0===s&&(s=setTimeout(_,t)),o}return t=v(t)||0,p(n)&&(c=!!n.leading,a=(m="maxWait"in n)?h(v(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},S.flush=function(){return void 0===s?o:T(f())},S}}).call(this,n(25))},191:function(e,t,n){(function(e,n){var r="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",o="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",h="[object Map]",d="[object Number]",f="[object Object]",p="[object Promise]",v="[object RegExp]",m="[object Set]",g="[object String]",b="[object Symbol]",y="[object WeakMap]",w="[object ArrayBuffer]",_="[object DataView]",T=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[a]=O[o]=O[w]=O[s]=O[_]=O[l]=O[u]=O[c]=O[h]=O[d]=O[f]=O[v]=O[m]=O[g]=O[y]=!1;var E="object"==typeof e&&e&&e.Object===Object&&e,I="object"==typeof self&&self&&self.Object===Object&&self,k=E||I||Function("return this")(),x=t&&!t.nodeType&&t,M=x&&"object"==typeof n&&n&&!n.nodeType&&n,L=M&&M.exports===x,j=L&&E.process,P=function(){try{return j&&j.binding&&j.binding("util")}catch(e){}}(),F=P&&P.isTypedArray;function R(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function D(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var C,N,W,A=Array.prototype,B=Function.prototype,U=Object.prototype,G=k["__core-js_shared__"],H=B.toString,q=U.hasOwnProperty,$=(C=/[^.]+$/.exec(G&&G.keys&&G.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",K=U.toString,V=RegExp("^"+H.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=L?k.Buffer:void 0,Y=k.Symbol,J=k.Uint8Array,Q=U.propertyIsEnumerable,Z=A.splice,ee=Y?Y.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=X?X.isBuffer:void 0,re=(N=Object.keys,W=Object,function(e){return N(W(e))}),ie=Pe(k,"DataView"),ae=Pe(k,"Map"),oe=Pe(k,"Promise"),se=Pe(k,"Set"),le=Pe(k,"WeakMap"),ue=Pe(Object,"create"),ce=De(ie),he=De(ae),de=De(oe),fe=De(se),pe=De(le),ve=Y?Y.prototype:void 0,me=ve?ve.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function we(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function _e(e){var t=this.__data__=new be(e);this.size=t.size}function Te(e,t){var n=We(e),r=!n&&Ne(e),i=!n&&!r&&Ae(e),a=!n&&!r&&!i&&qe(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!q.call(e,u)||o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ze(u,l))||s.push(u);return s}function Se(e,t){for(var n=e.length;n--;)if(Ce(e[n][0],t))return n;return-1}function Oe(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=q.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(a){}var i=K.call(e);r&&(t?e[ee]=n:delete e[ee]);return i}(e):function(e){return K.call(e)}(e)}function Ee(e){return He(e)&&Oe(e)==a}function Ie(e,t,n,r,i){return e===t||(null==e||null==t||!He(e)&&!He(t)?e!=e&&t!=t:function(e,t,n,r,i,c){var p=We(e),y=We(t),T=p?o:Re(e),S=y?o:Re(t),O=(T=T==a?f:T)==f,E=(S=S==a?f:S)==f,I=T==S;if(I&&Ae(e)){if(!Ae(t))return!1;p=!0,O=!1}if(I&&!O)return c||(c=new _e),p||qe(e)?Me(e,t,n,r,i,c):function(e,t,n,r,i,a,o){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!a(new J(e),new J(t)));case s:case l:case d:return Ce(+e,+t);case u:return e.name==t.name&&e.message==t.message;case v:case g:return e==t+"";case h:var c=z;case m:var f=1&r;if(c||(c=D),e.size!=t.size&&!f)return!1;var p=o.get(e);if(p)return p==t;r|=2,o.set(e,t);var y=Me(c(e),c(t),r,i,a,o);return o.delete(e),y;case b:if(me)return me.call(e)==me.call(t)}return!1}(e,t,T,n,r,i,c);if(!(1&n)){var k=O&&q.call(e,"__wrapped__"),x=E&&q.call(t,"__wrapped__");if(k||x){var M=k?e.value():e,L=x?t.value():t;return c||(c=new _e),i(M,L,n,r,c)}}if(!I)return!1;return c||(c=new _e),function(e,t,n,r,i,a){var o=1&n,s=Le(e),l=s.length,u=Le(t).length;if(l!=u&&!o)return!1;var c=l;for(;c--;){var h=s[c];if(!(o?h in t:q.call(t,h)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var f=!0;a.set(e,t),a.set(t,e);var p=o;for(;++c<l;){var v=e[h=s[c]],m=t[h];if(r)var g=o?r(m,v,h,t,e,a):r(v,m,h,e,t,a);if(!(void 0===g?v===m||i(v,m,n,r,a):g)){f=!1;break}p||(p="constructor"==h)}if(f&&!p){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(f=!1)}return a.delete(e),a.delete(t),f}(e,t,n,r,i,c)}(e,t,n,r,Ie,i))}function ke(e){return!(!Ge(e)||function(e){return!!$&&$ in e}(e))&&(Be(e)?V:T).test(De(e))}function xe(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||U,t!==r)return re(e);var t,n,r,i=[];for(var a in Object(e))q.call(e,a)&&"constructor"!=a&&i.push(a);return i}function Me(e,t,n,r,i,a){var o=1&n,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var c=-1,h=!0,d=2&n?new we:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var f=e[c],p=t[c];if(r)var v=o?r(p,f,c,t,e,a):r(f,p,c,e,t,a);if(void 0!==v){if(v)continue;h=!1;break}if(d){if(!R(t,(function(e,t){if(o=t,!d.has(o)&&(f===e||i(f,e,n,r,a)))return d.push(t);var o}))){h=!1;break}}else if(f!==p&&!i(f,p,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Le(e){return function(e,t,n){var r=t(e);return We(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,$e,Fe)}function je(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Pe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ke(n)?n:void 0}ge.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return q.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:q.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ue&&void 0===t?r:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,n=Se(t,e);return!(n<0)&&(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,!0)},be.prototype.get=function(e){var t=this.__data__,n=Se(t,e);return n<0?void 0:t[n][1]},be.prototype.has=function(e){return Se(this.__data__,e)>-1},be.prototype.set=function(e,t){var n=this.__data__,r=Se(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(ae||be),string:new ge}},ye.prototype.delete=function(e){var t=je(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return je(this,e).get(e)},ye.prototype.has=function(e){return je(this,e).has(e)},ye.prototype.set=function(e,t){var n=je(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,r),this},we.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new be,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof be){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var Fe=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}(te(e),(function(t){return Q.call(e,t)})))}:function(){return[]},Re=Oe;function ze(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function De(e){if(null!=e){try{return H.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ce(e,t){return e===t||e!=e&&t!=t}(ie&&Re(new ie(new ArrayBuffer(1)))!=_||ae&&Re(new ae)!=h||oe&&Re(oe.resolve())!=p||se&&Re(new se)!=m||le&&Re(new le)!=y)&&(Re=function(e){var t=Oe(e),n=t==f?e.constructor:void 0,r=n?De(n):"";if(r)switch(r){case ce:return _;case he:return h;case de:return p;case fe:return m;case pe:return y}return t});var Ne=Ee(function(){return arguments}())?Ee:function(e){return He(e)&&q.call(e,"callee")&&!Q.call(e,"callee")},We=Array.isArray;var Ae=ne||function(){return!1};function Be(e){if(!Ge(e))return!1;var t=Oe(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ue(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Ge(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function He(e){return null!=e&&"object"==typeof e}var qe=F?function(e){return function(t){return e(t)}}(F):function(e){return He(e)&&Ue(e.length)&&!!O[Oe(e)]};function $e(e){return null!=(t=e)&&Ue(t.length)&&!Be(t)?Te(e):xe(e);var t}n.exports=function(e,t){return Ie(e,t)}}).call(this,n(25),n(192)(e))},192:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},193:function(e,t,n){"use strict";n.r(t),function(e){var n=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}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),a="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var o=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,l=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function o(){n&&(n=!1,e()),r&&l()}function s(){a(o)}function l(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return l}(this.refresh.bind(this),20)}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(){r&&!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(){r&&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;o.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},c=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},h=g(0,0,0,0);function d(e){return parseFloat(e)||0}function f(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function p(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=c(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],a=e["padding-"+i];t[i]=d(a)}return t}(r),a=i.left+i.right,o=i.top+i.bottom,s=d(r.width),l=d(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=f(r,"left","right")+a),Math.round(l+o)!==n&&(l-=f(r,"top","bottom")+o)),!function(e){return e===c(e).document.documentElement}(e)){var u=Math.round(s+a)-t,p=Math.round(l+o)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(p)&&(l-=p)}return g(i.left,i.top,s,l)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof c(e).SVGGraphicsElement}:function(e){return e instanceof c(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?v(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):p(e):h}function g(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(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}(),y=function(e,t){var n,r,i,a,o,s,l,c=(r=(n=t).x,i=n.y,a=n.width,o=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:r,y:i,width:a,height:o,top:i,right:r+a,bottom:o+i,left:r}),l);u(this,{target:e,contentRect:c})},w=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}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 c(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(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 c(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 y(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}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,T=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=l.getInstance(),r=new w(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){T.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var S=void 0!==i.ResizeObserver?i.ResizeObserver:T;t.default=S}.call(this,n(25))},194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(0),a=(r=i)&&r.__esModule?r:{default:r},o=n(1);var s={left:a.default.createElement("polyline",{points:"15 18 9 12 15 6"}),right:a.default.createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:a.default.createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:a.default.createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:a.default.createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:a.default.createElement(a.default.Fragment,null,a.default.createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),a.default.createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},l=function(e){var t=e.strokeWidth,n=e.viewBox,r=e.icon;return a.default.createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:n,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"},s[r])};l.propTypes={strokeWidth:o.number,viewBox:o.string,icon:(0,o.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired},l.defaultProps={strokeWidth:1,viewBox:"0 0 24 24"},t.default=l}}]);