-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent---src-templates-gallery-post-tsx-2666001a5c5170f5c718.js
3 lines (3 loc) · 86.4 KB
/
component---src-templates-gallery-post-tsx-2666001a5c5170f5c718.js
1
2
3
/*! For license information please see component---src-templates-gallery-post-tsx-2666001a5c5170f5c718.js.LICENSE.txt */
(self.webpackChunkgatsby_starter_blog=self.webpackChunkgatsby_starter_blog||[]).push([[973],{411:function(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},6566:function(e,t){t.polyfill=e=>e},3674:function(e,t,n){"use strict";n.d(t,{z:function(){return h}});var r=n(6540),o=n(2047),i=n(8855),a=n(3720),s=n(4848),l=(0,i.R)((function(e,t){const{direction:n,align:r,justify:o,wrap:i,basis:l,grow:c,shrink:u,...f}=e,d={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:i,flexBasis:l,flexGrow:c,flexShrink:u};return(0,s.jsx)(a.B.div,{ref:t,__css:d,...f})}));l.displayName="Flex";var c=n(4765),u=n(8539),f=n(7500),d=n(2532);function h(){const[e]=(0,o.U)("(min-width: 500px)");return r.createElement(l,{className:"bio",marginBottom:"12px"},r.createElement(c.B,{direction:e?"row":"column",alignItems:"center",spacing:8},r.createElement(l,null,r.createElement(d.S,{layout:"fixed",formats:["auto","webp","avif"],src:"../images/profile-pic.png",width:200,height:200,style:{borderRadius:"20px",minWidth:"50px"},quality:100,alt:"Profile picture",__imageData:n(838)})),r.createElement(u.T,{align:"start"},r.createElement(f.E,{fontSize:"xl",as:"b"},"Welcome to my blog !"),r.createElement(f.E,null,"I am a Software Engineer, mostly self-taught and passionated about a lot of different topics."),r.createElement(f.E,null,"On this blog, you will find blog posts about anything, recipes, photos and any other endeavors I may find interesting to share."),r.createElement(f.E,null," Happy browsing !"))))}},8818:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var r=n(6540),o=n(8154),i=n(4794);function a(e){var t,n,a;let{description:s="",lang:l="fr",meta:c=[],title:u}=e;const{site:f}=(0,i.useStaticQuery)("2841359383"),d=s||f.siteMetadata.description,h=null===(t=f.siteMetadata)||void 0===t?void 0:t.title;return r.createElement(o.m,{htmlAttributes:{lang:l},title:u,titleTemplate:h?`%s | ${h}`:null,meta:[{name:"description",content:d},{property:"og:title",content:u},{property:"og:description",content:d},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:(null===(n=f.siteMetadata)||void 0===n||null===(a=n.social)||void 0===a?void 0:a.twitter)||""},{name:"twitter:title",content:u},{name:"twitter:description",content:d}].concat(c)})}},5500:function(e,t,n){"use strict";n.r(t),n.d(t,{Head:function(){return $n},default:function(){return Wn}});var r={};n.r(r);var o=n(6540),i=n(4794),a=n(3674),s=n(4399),l=n(8818),c=n(2532),u=n(5556),f=n.n(u),d=n(312),h=n.n(d);function p(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(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)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return y=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},y.apply(this,arguments)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?S(e):t}(this,n)}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return"";var n=e;return t&&Object.keys(t).forEach((function(e){n=n.replace(e,t[e])})),n}function x(){return void 0!==n.g.window?n.g.window.innerWidth:0}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.g.window.self;return e===n.g.window.top||function(){try{return n.g.window.location.hostname!==n.g.window.parent.location.hostname}catch(e){return!0}}()?e:P(e.parent)}var T=300,I=27,A=37,N=39,R=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}}),t&&w(e,t)}(s,e);var t,r,i,a=C(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).state={isClosing:!e.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},t.outerEl=o.createRef(),t.zoomInBtn=o.createRef(),t.zoomOutBtn=o.createRef(),t.caption=o.createRef(),t.closeIfClickInner=t.closeIfClickInner.bind(S(t)),t.handleImageDoubleClick=t.handleImageDoubleClick.bind(S(t)),t.handleImageMouseWheel=t.handleImageMouseWheel.bind(S(t)),t.handleKeyInput=t.handleKeyInput.bind(S(t)),t.handleMouseUp=t.handleMouseUp.bind(S(t)),t.handleMouseDown=t.handleMouseDown.bind(S(t)),t.handleMouseMove=t.handleMouseMove.bind(S(t)),t.handleOuterMousewheel=t.handleOuterMousewheel.bind(S(t)),t.handleTouchStart=t.handleTouchStart.bind(S(t)),t.handleTouchMove=t.handleTouchMove.bind(S(t)),t.handleTouchEnd=t.handleTouchEnd.bind(S(t)),t.handlePointerEvent=t.handlePointerEvent.bind(S(t)),t.handleCaptionMousewheel=t.handleCaptionMousewheel.bind(S(t)),t.handleWindowResize=t.handleWindowResize.bind(S(t)),t.handleZoomInButtonClick=t.handleZoomInButtonClick.bind(S(t)),t.handleZoomOutButtonClick=t.handleZoomOutButtonClick.bind(S(t)),t.requestClose=t.requestClose.bind(S(t)),t.requestMoveNext=t.requestMoveNext.bind(S(t)),t.requestMovePrev=t.requestMovePrev.bind(S(t)),t.timeouts=[],t.currentAction=0,t.eventsSource=0,t.pointerList=[],t.preventInnerClose=!1,t.preventInnerCloseTimeout=null,t.keyPressed=!1,t.imageCache={},t.lastKeyDownTime=0,t.resizeTimeout=null,t.wheelActionTimeout=null,t.resetScrollTimeout=null,t.scrollX=0,t.scrollY=0,t.moveStartX=0,t.moveStartY=0,t.moveStartOffsetX=0,t.moveStartOffsetY=0,t.swipeStartX=0,t.swipeStartY=0,t.swipeEndX=0,t.swipeEndY=0,t.pinchTouchList=null,t.pinchDistance=0,t.keyCounter=0,t.moveRequested=!1,t}return t=s,r=[{key:"componentDidMount",value:function(){var e=this;this.props.animationDisabled||this.setState({isClosing:!1}),this.windowContext=P(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach((function(t){e.windowContext.addEventListener(t,e.listeners[t])})),this.loadAllImages()}},{key:"shouldComponentUpdate",value:function(e){var t=this;return this.getSrcTypes().forEach((function(n){t.props[n.name]!==e[n.name]&&(t.moveRequested=!1)})),!this.moveRequested}},{key:"componentDidUpdate",value:function(e){var t=this,n=!1,r={},o={};this.getSrcTypes().forEach((function(i){e[i.name]!==t.props[i.name]&&(n=!0,r[e[i.name]]=!0,o[t.props[i.name]]=!0)})),(n||this.moveRequested)&&(Object.keys(r).forEach((function(e){!(e in o)&&e in t.imageCache&&(t.imageCache[e].loaded=!1)})),this.moveRequested=!1,this.loadAllImages(this.props))}},{key:"componentWillUnmount",value:function(){var e=this;this.didUnmount=!0,Object.keys(this.listeners).forEach((function(t){e.windowContext.removeEventListener(t,e.listeners[t])})),this.timeouts.forEach((function(e){return clearTimeout(e)}))}},{key:"setTimeout",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,r=setTimeout((function(){n.timeouts=n.timeouts.filter((function(e){return e!==r})),e()}),t);return this.timeouts.push(r),r}))},{key:"setPreventInnerClose",value:function(){var e=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout((function(){e.preventInnerClose=!1,e.preventInnerCloseTimeout=null}),100)}},{key:"getBestImageForType",value:function(e){var t=this.props[e],n={};if(this.isImageLoaded(t))n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height);else{if(!this.isImageLoaded(this.props["".concat(e,"Thumbnail")]))return null;t=this.props["".concat(e,"Thumbnail")],n=this.getFitSizes(this.imageCache[t].width,this.imageCache[t].height,!0)}return{src:t,height:this.imageCache[t].height,width:this.imageCache[t].width,targetHeight:n.height,targetWidth:n.width}}},{key:"getFitSizes",value:function(e,t,n){var r=this.getLightboxRect(),o=r.height-2*this.props.imagePadding,i=r.width-2*this.props.imagePadding;return n||(o=Math.min(o,t),i=Math.min(i,e)),i/o>e/t?{width:e*o/t,height:o}:{width:i,height:t*i/e}}},{key:"getMaxOffsets",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,t=this.getBestImageForType("mainSrc");if(null===t)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(e),o=0,i=0;return{maxX:o=r*t.width-n.width<0?(n.width-r*t.width)/2:(r*t.width-n.width)/2,maxY:i=r*t.height-n.height<0?(n.height-r*t.height)/2:(r*t.height-n.height)/2,minX:-1*o,minY:-1*i}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,e)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:x(),height:void 0!==n.g.window?n.g.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){this.timeouts=this.timeouts.filter((function(t){return t!==e})),clearTimeout(e)}))},{key:"changeZoom",value:function(e,t,n){if(this.props.enableZoom){var r=Math.max(0,Math.min(T,e));if(r!==this.state.zoomLevel)if(0!==r){var o=this.getBestImageForType("mainSrc");if(null!==o){var i=this.getZoomMultiplier(),a=this.getZoomMultiplier(r),s=this.getLightboxRect(),l=void 0!==t?t-s.left:s.width/2,c=void 0!==n?n-s.top:s.height/2,u=(s.width-o.width*i)/2,f=(s.height-o.height*i)/2,d=l-(l-(u-this.state.offsetX))/i*a,h=c-(c-(f-this.state.offsetY))/i*a,p=(s.width-o.width*a)/2-d,m=(s.height-o.height*a)/2-h;if(3!==this.currentAction){var v=this.getMaxOffsets();this.state.zoomLevel>r&&(p=Math.max(v.minX,Math.min(v.maxX,p)),m=Math.max(v.minY,Math.min(v.maxY,m)))}this.setState({zoomLevel:r,offsetX:p,offsetY:m})}}else this.setState({zoomLevel:r,offsetX:0,offsetY:0})}}},{key:"closeIfClickInner",value:function(e){!this.preventInnerClose&&e.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(e)}},{key:"handleKeyInput",value:function(e){if(e.stopPropagation(),!this.isAnimating())if("keyup"!==e.type){var t=e.which||e.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime<this.props.keyRepeatLimit&&t!==I))switch(this.lastKeyDownTime=n.getTime(),t){case I:e.preventDefault(),this.requestClose(e);break;case A:if(!this.props.prevSrc)return;e.preventDefault(),this.keyPressed=!0,this.requestMovePrev(e);break;case N:if(!this.props.nextSrc)return;e.preventDefault(),this.keyPressed=!0,this.requestMoveNext(e)}}else this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus}},{key:"handleOuterMousewheel",value:function(e){var t=this;e.stopPropagation();var n=0;this.clearTimeout(this.resetScrollTimeout),this.resetScrollTimeout=this.setTimeout((function(){t.scrollX=0,t.scrollY=0}),300),null!==this.wheelActionTimeout||this.isAnimating()||(Math.abs(e.deltaY)<Math.abs(e.deltaX)&&(this.scrollY=0,this.scrollX+=e.deltaX,this.scrollX>=200||e.deltaX>=100?(this.requestMoveNext(e),n=500,this.scrollX=0):(this.scrollX<=-200||e.deltaX<=-100)&&(this.requestMovePrev(e),n=500,this.scrollX=0)),0!==n&&(this.wheelActionTimeout=this.setTimeout((function(){t.wheelActionTimeout=null}),n)))}},{key:"handleImageMouseWheel",value:function(e){if(Math.abs(e.deltaY)>=Math.abs(e.deltaX)){if(e.stopPropagation(),Math.abs(e.deltaY)<1)return;this.scrollX=0,this.scrollY+=e.deltaY,this.changeZoom(this.state.zoomLevel-e.deltaY,e.clientX,e.clientY)}}},{key:"handleImageDoubleClick",value:function(e){this.state.zoomLevel>0?this.changeZoom(0,e.clientX,e.clientY):this.changeZoom(this.state.zoomLevel+100,e.clientX,e.clientY)}},{key:"shouldHandleEvent",value:function(e){if(this.eventsSource===e)return!0;if(0===this.eventsSource)return this.eventsSource=e,!0;switch(e){case 1:default:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:return 1===this.eventsSource&&(this.eventsSource=3,this.filterPointersBySource(),!0)}}},{key:"addPointer",value:function(e){this.pointerList.push(e)}},{key:"removePointer",value:function(e){this.pointerList=this.pointerList.filter((function(t){return t.id!==e.id}))}},{key:"filterPointersBySource",value:function(){var e=this;this.pointerList=this.pointerList.filter((function(t){return t.source===e.eventsSource}))}},{key:"handleMouseDown",value:function(e){this.shouldHandleEvent(1)&&s.isTargetMatchImage(e.target)&&(this.addPointer(s.parseMouseEvent(e)),this.multiPointerStart(e))}},{key:"handleMouseMove",value:function(e){this.shouldHandleEvent(1)&&this.multiPointerMove(e,[s.parseMouseEvent(e)])}},{key:"handleMouseUp",value:function(e){this.shouldHandleEvent(1)&&(this.removePointer(s.parseMouseEvent(e)),this.multiPointerEnd(e))}},{key:"handlePointerEvent",value:function(e){if(this.shouldHandleEvent(3))switch(e.type){case"pointerdown":s.isTargetMatchImage(e.target)&&(this.addPointer(s.parsePointerEvent(e)),this.multiPointerStart(e));break;case"pointermove":this.multiPointerMove(e,[s.parsePointerEvent(e)]);break;case"pointerup":case"pointercancel":this.removePointer(s.parsePointerEvent(e)),this.multiPointerEnd(e)}}},{key:"handleTouchStart",value:function(e){var t=this;this.shouldHandleEvent(2)&&s.isTargetMatchImage(e.target)&&([].forEach.call(e.changedTouches,(function(e){return t.addPointer(s.parseTouchPointer(e))})),this.multiPointerStart(e))}},{key:"handleTouchMove",value:function(e){this.shouldHandleEvent(2)&&this.multiPointerMove(e,[].map.call(e.changedTouches,(function(e){return s.parseTouchPointer(e)})))}},{key:"handleTouchEnd",value:function(e){var t=this;this.shouldHandleEvent(2)&&([].map.call(e.changedTouches,(function(e){return t.removePointer(s.parseTouchPointer(e))})),this.multiPointerEnd(e))}},{key:"decideMoveOrSwipe",value:function(e){this.state.zoomLevel<=0?this.handleSwipeStart(e):this.handleMoveStart(e)}},{key:"multiPointerStart",value:function(e){switch(this.handleEnd(null),this.pointerList.length){case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(e,t){switch(this.currentAction){case 1:e.preventDefault(),this.handleMove(t[0]);break;case 2:e.preventDefault(),this.handleSwipe(t[0]);break;case 3:e.preventDefault(),this.handlePinch(t)}}},{key:"multiPointerEnd",value:function(e){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(e)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:e.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:e.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(e){switch(this.currentAction){case 1:this.handleMoveEnd(e);break;case 2:this.handleSwipeEnd(e);break;case 3:this.handlePinchEnd(e)}}},{key:"handleMoveStart",value:function(e){var t=e.x,n=e.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=t,this.moveStartY=n,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(e){var t=e.x,n=e.y,r=this.moveStartX-t+this.moveStartOffsetX,o=this.moveStartY-n+this.moveStartOffsetY;this.state.offsetX===r&&this.state.offsetY===o||this.setState({offsetX:r,offsetY:o})}},{key:"handleMoveEnd",value:function(){var e=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var t=this.getMaxOffsets(),n=Math.max(t.minX,Math.min(t.maxX,this.state.offsetX)),r=Math.max(t.minY,Math.min(t.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),this.setTimeout((function(){e.setState({shouldAnimate:!1})}),this.props.animationDuration))}},{key:"handleSwipeStart",value:function(e){var t=e.x,n=e.y;this.currentAction=2,this.swipeStartX=t,this.swipeStartY=n,this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipe",value:function(e){var t=e.x,n=e.y;this.swipeEndX=t,this.swipeEndY=n}},{key:"handleSwipeEnd",value:function(e){var t=this.swipeEndX-this.swipeStartX,n=Math.abs(t),r=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!e||this.isAnimating()||n<1.5*r)){if(n<200&&n<this.getLightboxRect().width/4)return;t>0&&this.props.prevSrc?(e.preventDefault(),this.requestMovePrev()):t<0&&this.props.nextSrc&&(e.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var e=E(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}},{key:"calculatePinchCenter",value:function(){var e=E(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,2),t=e[0],n=e[1];return{x:t.x-(t.x-n.x)/2,y:t.y-(t.y-n.y)/2}}},{key:"handlePinchStart",value:function(e){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=e.map((function(e){return{id:e.id,x:e.x,y:e.y}})),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(e){this.pinchTouchList=this.pinchTouchList.map((function(t){for(var n=0;n<e.length;n+=1)if(e[n].id===t.id)return e[n];return t}));var t=this.calculatePinchDistance(),n=this.state.zoomLevel+t-this.pinchDistance;this.pinchDistance=t;var r=this.calculatePinchCenter(this.pinchTouchList),o=r.x,i=r.y;this.changeZoom(n,o,i)}},{key:"handlePinchEnd",value:function(){this.currentAction=0,this.pinchTouchList=null,this.pinchDistance=0}},{key:"handleWindowResize",value:function(){this.clearTimeout(this.resizeTimeout),this.resizeTimeout=this.setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){var e=this.state.zoomLevel+100;this.changeZoom(e),e===T&&this.zoomOutBtn.current.focus()}},{key:"handleZoomOutButtonClick",value:function(){var e=this.state.zoomLevel-100;this.changeZoom(e),0===e&&this.zoomInBtn.current.focus()}},{key:"handleCaptionMousewheel",value:function(e){if(e.stopPropagation(),this.caption.current){var t=this.caption.current.getBoundingClientRect().height,n=this.caption.current,r=n.scrollHeight,o=n.scrollTop;(e.deltaY>0&&t+o>=r||e.deltaY<0&&o<=0)&&e.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(e){return e&&e in this.imageCache&&this.imageCache[e].loaded}},{key:"loadImage",value:function(e,t,r){var o=this;if(this.isImageLoaded(t))this.setTimeout((function(){r()}),1);else{var i=new n.g.Image;this.props.imageCrossOrigin&&(i.crossOrigin=this.props.imageCrossOrigin),i.onerror=function(n){o.props.onImageLoadError(t,e,n),o.setState((function(t){return{loadErrorStatus:m(m({},t.loadErrorStatus),{},g({},e,!0))}})),r(n)},i.onload=function(){o.props.onImageLoad(t,e,i),o.imageCache[t]={loaded:!0,width:i.width,height:i.height},r()},i.src=t}}},{key:"loadAllImages",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;this.getSrcTypes().forEach((function(n){var r=n.name;t[r]&&e.state.loadErrorStatus[r]&&e.setState((function(e){return{loadErrorStatus:m(m({},e.loadErrorStatus),{},g({},r,!1))}})),t[r]&&!e.isImageLoaded(t[r])&&e.loadImage(r,t[r],function(t,n){return function(r){r||e.props[t]!==n||e.didUnmount||e.forceUpdate()}}(r,t[r]))}))}},{key:"requestClose",value:function(e){var t=this,n=function(){return t.props.onCloseRequest(e)};this.props.animationDisabled||"keydown"===e.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),this.setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(e,t){var n=this,r={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,this.setTimeout((function(){return n.setState({shouldAnimate:!1})}),this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===e?(this.keyCounter-=1,this.setState(r),this.props.onMovePrevRequest(t)):(this.keyCounter+=1,this.setState(r),this.props.onMoveNextRequest(t))}},{key:"requestMoveNext",value:function(e){this.requestMove("next",e)}},{key:"requestMovePrev",value:function(e){this.requestMove("prev",e)}},{key:"render",value:function(){var e=this,t=this.props,r=t.animationDisabled,i=t.animationDuration,a=t.clickOutsideToClose,l=t.discourageDownloads,c=t.enableZoom,u=t.imageTitle,f=t.nextSrc,d=t.prevSrc,p=t.toolbarButtons,v=t.reactModalStyle,g=t.onAfterOpen,b=t.imageCrossOrigin,w=t.reactModalProps,S=t.loader,C=this.state,E=C.zoomLevel,k=C.offsetX,_=C.offsetY,x=C.isClosing,P=C.loadErrorStatus,I=this.getLightboxRect(),A={};!r&&this.isAnimating()&&(A=m(m({},A),{},{transition:"transform ".concat(i,"ms")}));var N={};this.getSrcTypes().forEach((function(e){var t=e.name,n=e.keyEnding;N[t]=n}));var R=[],L=function(t,n,r){if(e.props[t]){var i,a=e.getBestImageForType(t),c=m(m({},A),s.getTransform(m(m({},r),a)));if(E>0&&(c.cursor="move"),null===a&&(i=P,Object.keys(i).some((function(e){return i[e]}))))R.push(o.createElement("div",{className:"".concat(n," ril__image ril-errored"),style:c,key:e.props[t]+N[t]},o.createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));else if(null!==a){var f=a.src;l?(c.backgroundImage="url('".concat(f,"')"),R.push(o.createElement("div",{className:"".concat(n," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:c,key:f+N[t]},o.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):R.push(o.createElement("img",y({},b?{crossOrigin:b}:{},{className:"".concat(n," ril__image"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,onDragStart:function(e){return e.preventDefault()},style:c,src:f,key:f+N[t],alt:"string"==typeof u?u:M("Image"),draggable:!1})))}else{var d=void 0!==S?S:o.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},O(new Array(12)).map((function(e,t){return o.createElement("div",{key:t,className:"ril-loading-circle-point ril__loadingCirclePoint"})})));R.push(o.createElement("div",{className:"".concat(n," ril__image ril-not-loaded"),style:c,key:e.props[t]+N[t]},o.createElement("div",{className:"ril__loadingContainer"},d)))}}},j=this.getZoomMultiplier();L("nextSrc","ril-image-next ril__imageNext",{x:I.width}),L("mainSrc","ril-image-current",{x:-1*k,y:-1*_,zoom:j}),L("prevSrc","ril-image-prev ril__imagePrev",{x:-1*I.width});var D={overlay:m({zIndex:1e3,backgroundColor:"transparent"},v.overlay),content:m({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},v.content)};return o.createElement(h(),y({isOpen:!0,onRequestClose:a?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),g()},style:D,contentLabel:M("Lightbox"),appElement:void 0!==n.g.window?n.g.window.document.body:void 0},w),o.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(x?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(i,"ms"),animationDuration:"".concat(i,"ms"),animationDirection:x?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},o.createElement("div",{className:"ril-inner ril__inner",onClick:a?this.closeIfClickInner:void 0},R),d&&o.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,title:this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),f&&o.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,title:this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),o.createElement("div",{className:"ril-toolbar ril__toolbar"},o.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},u))),o.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},p&&p.map((function(e,t){return o.createElement("li",{key:"button_".concat(t+1),className:"ril-toolbar__item ril__toolbarItem"},e)})),c&&o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,title:this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(O(E===T?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||E===T,onClick:this.isAnimating()||E===T?void 0:this.handleZoomInButtonClick})),c&&o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,title:this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(O(0===E?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===E,onClick:this.isAnimating()||0===E?void 0:this.handleZoomOutButtonClick})),o.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},o.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,title:this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&o.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(e){return e.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},o.createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}],i=[{key:"isTargetMatchImage",value:function(e){return e&&/ril-image-current/.test(e.className)}},{key:"parseMouseEvent",value:function(e){return{id:"mouse",source:1,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parseTouchPointer",value:function(e){return{id:e.identifier,source:2,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"parsePointerEvent",value:function(e){return{id:e.pointerId,source:3,x:parseInt(e.clientX,10),y:parseInt(e.clientY,10)}}},{key:"getTransform",value:function(e){var t=e.x,n=void 0===t?0:t,r=e.y,o=void 0===r?0:r,i=e.zoom,a=void 0===i?1:i,s=e.width,l=e.targetWidth,c=n,u=x();s>u&&(c+=(u-s)/2);var f=a*(l/s);return{transform:"translate3d(".concat(c,"px,").concat(o,"px,0) scale3d(").concat(f,",").concat(f,",1)")}}}],r&&v(t.prototype,r),i&&v(t,i),s}(o.Component);R.propTypes={mainSrc:f().string.isRequired,prevSrc:f().string,nextSrc:f().string,mainSrcThumbnail:f().string,prevSrcThumbnail:f().string,nextSrcThumbnail:f().string,onCloseRequest:f().func.isRequired,onMovePrevRequest:f().func,onMoveNextRequest:f().func,onImageLoadError:f().func,onImageLoad:f().func,onAfterOpen:f().func,discourageDownloads:f().bool,animationDisabled:f().bool,animationOnKeyInput:f().bool,animationDuration:f().number,keyRepeatLimit:f().number,keyRepeatKeyupBonus:f().number,imageTitle:f().node,imageCaption:f().node,imageCrossOrigin:f().string,reactModalStyle:f().shape({}),imagePadding:f().number,wrapperClassName:f().string,toolbarButtons:f().arrayOf(f().node),clickOutsideToClose:f().bool,enableZoom:f().bool,reactModalProps:f().shape({}),nextLabel:f().string,prevLabel:f().string,zoomInLabel:f().string,zoomOutLabel:f().string,closeLabel:f().string,imageLoadErrorMessage:f().node,loader:f().node},R.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load",loader:void 0};var L=R;var j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},j.apply(this,arguments)};Object.create;function D(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var B=n(2833),z=n.n(B),q="-ms-",F="-moz-",Y="-webkit-",X="comm",$="rule",W="decl",H="@import",U="@keyframes",Z="@layer",K=Math.abs,G=String.fromCharCode,V=Object.assign;function J(e){return e.trim()}function Q(e,t){return(e=t.exec(e))?e[0]:e}function ee(e,t,n){return e.replace(t,n)}function te(e,t,n){return e.indexOf(t,n)}function ne(e,t){return 0|e.charCodeAt(t)}function re(e,t,n){return e.slice(t,n)}function oe(e){return e.length}function ie(e){return e.length}function ae(e,t){return t.push(e),e}function se(e,t){return e.filter((function(e){return!Q(e,t)}))}var le=1,ce=1,ue=0,fe=0,de=0,he="";function pe(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:le,column:ce,length:a,return:"",siblings:s}}function me(e,t){return V(pe("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ve(e){for(;e.root;)e=me(e.root,{children:[e]});ae(e,e.siblings)}function ge(){return de=fe>0?ne(he,--fe):0,ce--,10===de&&(ce=1,le--),de}function ye(){return de=fe<ue?ne(he,fe++):0,ce++,10===de&&(ce=1,le++),de}function be(){return ne(he,fe)}function we(){return fe}function Se(e,t){return re(he,e,t)}function Ce(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ee(e){return le=ce=1,ue=oe(he=e),fe=0,[]}function Oe(e){return he="",e}function ke(e){return J(Se(fe-1,xe(91===e?e+2:40===e?e+1:e)))}function _e(e){for(;(de=be())&&de<33;)ye();return Ce(e)>2||Ce(de)>3?"":" "}function Me(e,t){for(;--t&&ye()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return Se(e,we()+(t<6&&32==be()&&32==ye()))}function xe(e){for(;ye();)switch(de){case e:return fe;case 34:case 39:34!==e&&39!==e&&xe(de);break;case 40:41===e&&xe(e);break;case 92:ye()}return fe}function Pe(e,t){for(;ye()&&e+de!==57&&(e+de!==84||47!==be()););return"/*"+Se(t,fe-1)+"*"+G(47===e?e:ye())}function Te(e){for(;!Ce(be());)ye();return Se(e,fe)}function Ie(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ae(e,t,n,r){switch(e.type){case Z:if(e.children.length)break;case H:case W:return e.return=e.return||e.value;case X:return"";case U:return e.return=e.value+"{"+Ie(e.children,r)+"}";case $:if(!oe(e.value=e.props.join(",")))return""}return oe(n=Ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ne(e,t,n){switch(function(e,t){return 45^ne(e,0)?(((t<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}(e,t)){case 5103:return Y+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Y+e+e;case 4789:return F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+F+e+q+e+e;case 5936:switch(ne(e,t+11)){case 114:return Y+e+q+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+q+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+q+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Y+e+q+e+e;case 6165:return Y+e+q+"flex-"+e+e;case 5187:return Y+e+ee(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return Y+e+q+"flex-item-"+ee(e,/flex-|-self/g,"")+(Q(e,/flex-|baseline/)?"":q+"grid-row-"+ee(e,/flex-|-self/g,""))+e;case 4675:return Y+e+q+"flex-line-pack"+ee(e,/align-content|flex-|-self/g,"")+e;case 5548:return Y+e+q+ee(e,"shrink","negative")+e;case 5292:return Y+e+q+ee(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+ee(e,"-grow","")+Y+e+q+ee(e,"grow","positive")+e;case 4554:return Y+ee(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4200:if(!Q(e,/flex-|baseline/))return q+"grid-column-align"+re(e,t)+e;break;case 2592:case 3360:return q+ee(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Q(e.props,/grid-\w+-end/)}))?~te(e+(n=n[t].value),"span",0)?e:q+ee(e,"-start","")+e+q+"grid-row-span:"+(~te(n,"span",0)?Q(n,/\d+/):+Q(n,/\d+/)-+Q(e,/\d+/))+";":q+ee(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Q(e.props,/grid-\w+-start/)}))?e:q+ee(ee(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,Y+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oe(e)-1-t>6)switch(ne(e,t+1)){case 109:if(45!==ne(e,t+4))break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+F+(108==ne(e,t+3)?"$3":"$2-$3"))+e;case 115:return~te(e,"stretch",0)?Ne(ee(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ee(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return q+n+":"+r+s+(o?q+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===ne(e,t+6))return ee(e,":",":"+Y)+e;break;case 6444:switch(ne(e,45===ne(e,14)?18:11)){case 120:return ee(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Y+(45===ne(e,14)?"inline-":"")+"box$3$1"+Y+"$2$3$1"+q+"$2box$3")+e;case 100:return ee(e,":",":"+q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ee(e,"scroll-","scroll-snap-")+e}return e}function Re(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case W:return void(e.return=Ne(e.value,e.length,n));case U:return Ie([me(e,{value:ee(e.value,"@","@"+Y)})],r);case $:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Q(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ve(me(e,{props:[ee(t,/:(read-\w+)/,":"+F+"$1")]})),ve(me(e,{props:[t]})),V(e,{props:se(n,r)});break;case"::placeholder":ve(me(e,{props:[ee(t,/:(plac\w+)/,":"+Y+"input-$1")]})),ve(me(e,{props:[ee(t,/:(plac\w+)/,":"+F+"$1")]})),ve(me(e,{props:[ee(t,/:(plac\w+)/,q+"input-$1")]})),ve(me(e,{props:[t]})),V(e,{props:se(n,r)})}return""}))}}function Le(e){return Oe(je("",null,null,null,[""],e=Ee(e),0,[0],e))}function je(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,d=0,h=0,p=0,m=1,v=1,g=1,y=0,b="",w=o,S=i,C=r,E=b;v;)switch(p=y,y=ye()){case 40:if(108!=p&&58==ne(E,f-1)){-1!=te(E+=ee(ke(y),"&","&\f"),"&\f",K(c?s[c-1]:0))&&(g=-1);break}case 34:case 39:case 91:E+=ke(y);break;case 9:case 10:case 13:case 32:E+=_e(p);break;case 92:E+=Me(we()-1,7);continue;case 47:switch(be()){case 42:case 47:ae(Be(Pe(ye(),we()),t,n,l),l);break;default:E+="/"}break;case 123*m:s[c++]=oe(E)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:-1==g&&(E=ee(E,/\f/g,"")),h>0&&oe(E)-f&&ae(h>32?ze(E+";",r,n,f-1,l):ze(ee(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(ae(C=De(E,t,n,c,u,o,s,b,w=[],S=[],f,i),i),123===y)if(0===u)je(E,t,C,C,w,i,f,s,S);else switch(99===d&&110===ne(E,3)?100:d){case 100:case 108:case 109:case 115:je(e,C,C,r&&ae(De(e,C,C,0,0,o,s,b,o,w=[],f,S),S),o,S,f,s,r?w:S);break;default:je(E,C,C,C,[""],S,0,s,S)}}c=u=h=0,m=g=1,b=E="",f=a;break;case 58:f=1+oe(E),h=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==ge())continue;switch(E+=G(y),y*m){case 38:g=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(oe(E)-1)*g,g=1;break;case 64:45===be()&&(E+=ke(ye())),d=be(),u=f=oe(b=E+=Te(we())),y++;break;case 45:45===p&&2==oe(E)&&(m=0)}}return i}function De(e,t,n,r,o,i,a,s,l,c,u,f){for(var d=o-1,h=0===o?i:[""],p=ie(h),m=0,v=0,g=0;m<r;++m)for(var y=0,b=re(e,d+1,d=K(v=a[m])),w=e;y<p;++y)(w=J(v>0?h[y]+" "+b:ee(b,/&\f/g,h[y])))&&(l[g++]=w);return pe(e,t,n,0===o?$:s,l,c,u,f)}function Be(e,t,n,r){return pe(e,t,n,X,G(de),re(e,2,-2),0,r)}function ze(e,t,n,r,o){return pe(e,t,n,W,re(e,0,r),re(e,r+1,-1),r,o)}var qe=n(3969),Fe="undefined"!=typeof process&&void 0!=={}&&({}.REACT_APP_SC_ATTR||{}.SC_ATTR)||"data-styled",Ye="active",Xe="data-styled-version",$e="6.1.11",We="/*!sc*/\n",He="undefined"!=typeof window&&"HTMLElement"in window,Ue=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={}&&void 0!=={}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={}.REACT_APP_SC_DISABLE_SPEEDY&&{}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={}&&void 0!=={}.SC_DISABLE_SPEEDY&&""!=={}.SC_DISABLE_SPEEDY&&("false"!=={}.SC_DISABLE_SPEEDY&&{}.SC_DISABLE_SPEEDY)),Ze=(new Set,Object.freeze([])),Ke=Object.freeze({});function Ge(e,t,n){return void 0===n&&(n=Ke),e.theme!==n.theme&&e.theme||t||n.theme}var Ve=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Je=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Qe=/(^-|-$)/g;function et(e){return e.replace(Je,"-").replace(Qe,"")}var tt=/(a)(d)/gi,nt=52,rt=function(e){return String.fromCharCode(e+(e>25?39:97))};function ot(e){var t,n="";for(t=Math.abs(e);t>nt;t=t/nt|0)n=rt(t%nt)+n;return(rt(t%nt)+n).replace(tt,"$1-$2")}var it,at=5381,st=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},lt=function(e){return st(at,e)};function ct(e){return ot(lt(e)>>>0)}function ut(e){return e.displayName||e.name||"Component"}function ft(e){return"string"==typeof e&&!0}var dt="function"==typeof Symbol&&Symbol.for,ht=dt?Symbol.for("react.memo"):60115,pt=dt?Symbol.for("react.forward_ref"):60112,mt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yt=((it={})[pt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},it[ht]=gt,it);function bt(e){return("type"in(t=e)&&t.type.$$typeof)===ht?gt:"$$typeof"in e?yt[e.$$typeof]:mt;var t}var wt=Object.defineProperty,St=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,Et=Object.getOwnPropertyDescriptor,Ot=Object.getPrototypeOf,kt=Object.prototype;function _t(e,t,n){if("string"!=typeof t){if(kt){var r=Ot(t);r&&r!==kt&&_t(e,r,n)}var o=St(t);Ct&&(o=o.concat(Ct(t)));for(var i=bt(e),a=bt(t),s=0;s<o.length;++s){var l=o[s];if(!(l in vt||n&&n[l]||a&&l in a||i&&l in i)){var c=Et(t,l);try{wt(e,l,c)}catch(e){}}}}return e}function Mt(e){return"function"==typeof e}function xt(e){return"object"==typeof e&&"styledComponentId"in e}function Pt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Tt(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function It(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function At(e,t,n){if(void 0===n&&(n=!1),!n&&!It(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=At(e[r],t[r]);else if(It(t))for(var r in t)e[r]=At(e[r],t[r]);return e}function Nt(e,t){Object.defineProperty(e,"toString",{value:t})}function Rt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Lt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Rt(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(We);return t},e}(),jt=new Map,Dt=new Map,Bt=1,zt=function(e){if(jt.has(e))return jt.get(e);for(;Dt.has(Bt);)Bt++;var t=Bt++;return jt.set(e,t),Dt.set(t,e),t},qt=function(e,t){Bt=t+1,jt.set(e,t),Dt.set(t,e)},Ft="style[".concat(Fe,"][").concat(Xe,'="').concat($e,'"]'),Yt=new RegExp("^".concat(Fe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Xt=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},$t=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(We),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(Yt);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(qt(u,c),Xt(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}};function Wt(){return n.nc}var Ht=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Fe,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Fe,Ye),r.setAttribute(Xe,$e);var a=Wt();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Ut=function(){function e(e){this.element=Ht(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Rt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Zt=function(){function e(e){this.element=Ht(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Kt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Gt=He,Vt={isServer:!He,useCSSOMInjection:!Ue},Jt=function(){function e(e,t,n){void 0===e&&(e=Ke),void 0===t&&(t={});var r=this;this.options=j(j({},Vt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&He&&Gt&&(Gt=!1,function(e){for(var t=document.querySelectorAll(Ft),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Fe)!==Ye&&($t(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Nt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Dt.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(Fe,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(We)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return zt(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(j(j({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Kt(n):t?new Ut(n):new Zt(n)}(this.options),new Lt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(zt(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(zt(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(zt(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Qt=/&/g,en=/^\s*\/\/.*$/gm;function tn(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=tn(e.children,t)),e}))}function nn(e){var t,n,r,o=void 0===e?Ke:e,i=o.options,a=void 0===i?Ke:i,s=o.plugins,l=void 0===s?Ze:s,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===$&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Qt,n).replace(r,c))})),a.prefix&&u.push(Re),u.push(Ae);var f=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(en,""),c=Le(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=tn(c,a.namespace));var f,d,h,p=[];return Ie(c,(f=u.concat((h=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&h(e)})),d=ie(f),function(e,t,n,r){for(var o="",i=0;i<d;i++)o+=f[i](e,t,n,r)||"";return o})),p};return f.hash=l.length?l.reduce((function(e,t){return t.name||Rt(15),st(e,t.name)}),at).toString():"",f}var rn=new Jt,on=nn(),an=o.createContext({shouldForwardProp:void 0,styleSheet:rn,stylis:on}),sn=(an.Consumer,o.createContext(void 0));function ln(){return(0,o.useContext)(an)}function cn(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=ln().styleSheet,a=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,i]),s=(0,o.useMemo)((function(){return nn({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)((function(){z()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:s}}),[e.shouldForwardProp,a,s]);return o.createElement(an.Provider,{value:l},o.createElement(sn.Provider,{value:s},e.children))}var un=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=on);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Nt(this,(function(){throw Rt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=on),this.name+e.hash},e}(),fn=function(e){return e>="A"&&e<="Z"};function dn(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;fn(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var hn=function(e){return null==e||!1===e||""===e},pn=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!hn(i)&&(Array.isArray(i)&&i.isCss||Mt(i)?r.push("".concat(dn(o),":"),i,";"):It(i)?r.push.apply(r,D(D(["".concat(o," {")],pn(i),!1),["}"],!1)):r.push("".concat(dn(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in qe.A||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function mn(e,t,n,r){return hn(e)?[]:xt(e)?[".".concat(e.styledComponentId)]:Mt(e)?!Mt(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:mn(e(t),t,n,r):e instanceof un?n?(e.inject(n,r),[e.getName(r)]):[e]:It(e)?pn(e):Array.isArray(e)?Array.prototype.concat.apply(Ze,e.map((function(e){return mn(e,t,n,r)}))):[e.toString()];var o}function vn(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Mt(n)&&!xt(n))return!1}return!0}var gn=lt($e),yn=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&vn(e),this.componentId=t,this.baseHash=st(gn,t),this.baseStyle=n,Jt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Pt(r,this.staticRulesId);else{var o=Tt(mn(this.rules,e,t,n)),i=ot(st(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Pt(r,i),this.staticRulesId=i}else{for(var s=st(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var f=Tt(mn(u,e,t,n));s=st(s,f+c),l+=f}}if(l){var d=ot(s>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=Pt(r,d)}}return r},e}(),bn=o.createContext(void 0);bn.Consumer;var wn={};new Set;function Sn(e,t,n){var r=xt(e),i=e,a=!ft(e),s=t.attrs,l=void 0===s?Ze:s,c=t.componentId,u=void 0===c?function(e,t){var n="string"!=typeof e?"sc":et(e);wn[n]=(wn[n]||0)+1;var r="".concat(n,"-").concat(ct($e+n+wn[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):c,f=t.displayName,d=void 0===f?function(e){return ft(e)?"styled.".concat(e):"Styled(".concat(ut(e),")")}(e):f,h=t.displayName&&t.componentId?"".concat(et(t.displayName),"-").concat(t.componentId):t.componentId||u,p=r&&i.attrs?i.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&i.shouldForwardProp){var v=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return v(e,t)&&g(e,t)}}else m=v}var y=new yn(n,h,r?i.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,i=e.componentStyle,a=e.defaultProps,s=e.foldedComponentIds,l=e.styledComponentId,c=e.target,u=o.useContext(bn),f=ln(),d=e.shouldForwardProp||f.shouldForwardProp,h=Ge(t,u,a)||Ke,p=function(e,t,n){for(var r,o=j(j({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Mt(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?Pt(o[s],a[s]):"style"===s?j(j({},o[s]),a[s]):a[s]}return t.className&&(o.className=Pt(o.className,t.className)),o}(r,t,h),m=p.as||c,v={};for(var g in p)void 0===p[g]||"$"===g[0]||"as"===g||"theme"===g&&p.theme===h||("forwardedAs"===g?v.as=p.forwardedAs:d&&!d(g,m)||(v[g]=p[g]));var y=function(e,t){var n=ln();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(i,p),b=Pt(s,l);return y&&(b+=" "+y),p.className&&(b+=" "+p.className),v[ft(m)&&!Ve.has(m)?"class":"className"]=b,v.ref=n,(0,o.createElement)(m,v)}(w,e,t)}b.displayName=d;var w=o.forwardRef(b);return w.attrs=p,w.componentStyle=y,w.displayName=d,w.shouldForwardProp=m,w.foldedComponentIds=r?Pt(i.foldedComponentIds,i.styledComponentId):"",w.styledComponentId=h,w.target=r?i.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)At(e,o[r],!0);return e}({},i.defaultProps,e):e}}),Nt(w,(function(){return".".concat(w.styledComponentId)})),a&&_t(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Cn(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var En=function(e){return Object.assign(e,{isCss:!0})};function On(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Mt(e)||It(e))return En(mn(Cn(Ze,D([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?mn(r):En(mn(Cn(r,t)))}function kn(e,t,n){if(void 0===n&&(n=Ke),!t)throw Rt(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,On.apply(void 0,D([r],o,!1)))};return r.attrs=function(r){return kn(e,t,j(j({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return kn(e,t,j(j({},n),r))},r}var _n=function(e){return kn(Sn,e)},Mn=_n;Ve.forEach((function(e){Mn[e]=_n(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=vn(e),Jt.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var o=r(Tt(mn(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Jt.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();var xn,Pn;(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=Wt(),r=Tt([n&&'nonce="'.concat(n,'"'),"".concat(Fe,'="true"'),"".concat(Xe,'="').concat($e,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw Rt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw Rt(2);var n=((t={})[Fe]="",t[Xe]=$e,t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Wt();return r&&(n.nonce=r),[o.createElement("style",j({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Jt({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw Rt(2);return o.createElement(cn,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw Rt(3)}})(),"__sc-".concat(Fe,"__");function Tn(){return Tn=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},Tn.apply(this,arguments)}function In(e,t){return t||(t=e.slice(0)),e.raw=t,e}var An,Nn,Rn,Ln,jn,Dn=Mn.div(xn||(xn=In(["\n display: flex;\n flex-wrap: wrap;\n ","\n"])),(function(e){return On(Pn||(Pn=In(["\n margin-right: ","px;\n margin-left: ","px;\n "])),e.margin,e.margin)})),Bn=Mn.div(An||(An=In(["\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n display: flex;\n ","\n\n @media (min-width: 576px) {\n ","\n }\n"])),(function(e){return On(Nn||(Nn=In(["\n flex-basis: ","%;\n max-width: ","%;\n "])),e.width,e.width)}),(function(e){return On(Rn||(Rn=In(["\n flex-basis: ","%;\n max-width: ","%;\n "])),e.md,e.md)})),zn=Mn.div(Ln||(Ln=In(["\n margin: ",";\n"])),(function(e){return e.margin})),qn=function(e){var t=e.children,n=e.colWidth,r=e.mdColWidth,i=e.onClick,a=e.gutter;return o.createElement(Bn,{width:n,md:r,onClick:i},o.createElement(zn,{margin:a},t))},Fn=Mn(L)(jn||(jn=In(["\n ","\n"])),r),Yn=function(e){var t,n,r,i=e.images,a=void 0===i?[]:i,s=e.colWidth,l=void 0===s?100/3:s,u=e.mdColWidth,f=void 0===u?25:u,d=e.gutter,h=void 0===d?"0.25rem":d,p=e.rowMargin,m=void 0===p?-15:p,v=e.imgClass,g=void 0===v?"":v,y=e.lightboxOptions,b=void 0===y?{}:y,w=e.onClose,S=void 0===w?function(){}:w,C=e.customWrapper,E=void 0===C?qn:C,O=(0,o.useState)(0),k=O[0],_=O[1],M=(0,o.useState)(!1),x=M[0],P=M[1],T=(k+a.length-1)%a.length,I=(k+a.length+1)%a.length,A=E,N=null==(t=a[k])||null==(t=t.full)||null==(t=t.images)||null==(t=t.fallback)?void 0:t.src,R=null==(n=a[I])||null==(n=n.full)||null==(n=n.images)||null==(n=n.fallback)?void 0:n.src,L=null==(r=a[T])||null==(r=r.full)||null==(r=r.images)||null==(r=r.fallback)?void 0:r.src;return o.createElement(o.Fragment,null,o.createElement(Dn,{margin:m},a.map((function(e,t){var n=(0,c.c)(e.thumb);return n?o.createElement(A,{colWidth:l,mdColWidth:f,key:t,onClick:function(){P(!0),_(t)},gutter:h},o.createElement(c.G,{image:n,className:g,alt:e.thumbAlt||""})):null}))),x&&o.createElement(Fn,Tn({mainSrc:N||"",nextSrc:R||"",prevSrc:L||"",onCloseRequest:function(){S(),P(!1)},onMovePrevRequest:function(){return _(T)},onMoveNextRequest:function(){return _(I)},imageTitle:a[k].title,imageCaption:a[k].caption},b)))},Xn=n(6287);const $n=e=>{let{data:{markdownRemark:t}}=e;return o.createElement(l.G,{title:t.frontmatter.title,description:t.frontmatter.description||t.excerpt})};var Wn=e=>{var t;let{data:{previous:n,next:r,site:l,markdownRemark:c,allFile:u},location:f}=e;const d=(null===(t=l.siteMetadata)||void 0===t?void 0:t.title)||"Title",h=u.nodes.filter((e=>e.relativeDirectory===c.fields.name&&e.childImageSharp&&!e.name.includes("icon"))).map((e=>e.childImageSharp));return o.createElement(s.P,{location:f,title:d},o.createElement("header",{style:{marginBottom:"24px"}},o.createElement("h1",{itemProp:"headline"},c.frontmatter.title),o.createElement("div",{style:{display:"flex",marginBottom:"24px"}},o.createElement("p",{style:{margin:"0",fontSize:"16px"}},c.frontmatter.date)),o.createElement("hr",null)),o.createElement("section",{dangerouslySetInnerHTML:{__html:c.html},itemProp:"articleBody"}),o.createElement(Xn.az,{paddingBottom:4},o.createElement(Yn,{images:h,mdColWidth:50})),o.createElement("hr",null),o.createElement("footer",null,o.createElement(a.z,null)),o.createElement("nav",{className:"blog-post-nav"},o.createElement("ul",{style:{display:"flex",flexWrap:"wrap",justifyContent:"space-between",listStyle:"none",padding:0}},o.createElement("li",null,!n&&o.createElement("li",null,o.createElement(i.Link,{to:"/",rel:"prev"},"← Home page")),n&&o.createElement(i.Link,{to:n.fields.slug,rel:"prev"},"← ",n.frontmatter.title)),o.createElement("li",null,r&&o.createElement(i.Link,{to:r.fields.slug,rel:"next"},r.frontmatter.title," →"),!r&&o.createElement("li",null,o.createElement(i.Link,{to:"/",rel:"prev"},"Home page →"))))))}},1720:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 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},o=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}}(),i=n(6540),a=p(i),s=p(n(961)),l=p(n(5556)),c=p(n(9090)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(4081)),f=n(834),d=p(f),h=n(6566);function p(e){return e&&e.__esModule?e:{default:e}}function m(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}var v=t.portalClassName="ReactModalPortal",g=t.bodyOpenClassName="ReactModal__Body--open",y=f.canUseDOM&&void 0!==s.default.createPortal,b=function(e){return document.createElement(e)},w=function(){return y?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function S(e){return e()}var C=function(e){function t(){var e,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return n=o=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.removePortal=function(){!y&&s.default.unmountComponentAtNode(o.node);var e=S(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=w()(o,a.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},m(o,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),o(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(y||(this.node=b("div")),this.node.className=this.props.portalClassName,S(this.props.parentSelector).appendChild(this.node),!y&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:S(e.parentSelector),nextParent:S(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var r=this.props,o=r.isOpen,i=r.portalClassName;e.portalClassName!==i&&(this.node.className=i);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!y&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&y?(!this.node&&y&&(this.node=b("div")),w()(a.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(i.Component);C.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(d.default),l.default.instanceOf(f.SafeHTMLCollection),l.default.instanceOf(f.SafeNodeList),l.default.arrayOf(l.default.instanceOf(d.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},C.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},C.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(C),t.default=C},9090: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},o="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},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=n(6540),s=v(n(5556)),l=m(n(7791)),c=v(n(7067)),u=m(n(4081)),f=m(n(4838)),d=n(834),h=v(d),p=v(n(9628));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}n(7727);var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,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.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName,a=e.parentSelector,s=a&&a().ownerDocument||document;i&&f.remove(s.body,i),o&&f.remove(s.getElementsByTagName("html")[0],o),r&&y>0&&0===(y-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){(function(e){return"Tab"===e.code||9===e.keyCode})(e)&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},i=r.base;return n.state.afterOpen&&(i=i+" "+r.afterOpen),n.state.beforeClose&&(i=i+" "+r.beforeClose),"string"==typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,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.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName,i=e.parentSelector,a=i&&i().ownerDocument||document;o&&f.add(a.body,o),r&&f.add(a.getElementsByTagName("html")[0],r),n&&(y+=1,u.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,i=e.defaultStyles,a=e.children,s=n?{}:i.content,l=o?{}:i.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(u,a);return this.props.overlayElement(c,f)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(h.default),s.default.instanceOf(d.SafeHTMLCollection),s.default.instanceOf(d.SafeNodeList),s.default.arrayOf(s.default.instanceOf(h.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=b,e.exports=t.default},4081:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=c(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(a){n=!0,r=a}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,i=c(e)[Symbol.iterator]();!(t=(o=i.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(a){n=!0,r=a}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,o=n(9771),i=(r=o)&&r.__esModule?r:{default:r},a=n(834);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},7727:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[a,s],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}a=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[a,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=n(9628),i=(r=o)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,l=[];function c(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe((function(e,t){a||s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",c),(s=a.cloneNode()).addEventListener("focus",c)),(l=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},4838:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)o(e,n[t]);var i=document.body;for(var a in r)o(i,r[a]);n={},r={}},t.log=function(){0};var n={},r={};function o(e,t){e.classList.remove(t)}t.add=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),o.add(e)}));var o,i},t.remove=function(e,t){return o=e.classList,i="html"==e.nodeName.toLowerCase()?n:r,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&o.remove(e)}));var o,i}},7791:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a=[]},t.log=function(){0},t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var r,o=n(2411),i=(r=o)&&r.__esModule?r:{default:r};var a=[],s=null,l=!1;function c(){l=!0}function u(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,i.default)(s)[0]||s).focus()}),0)}}},9628:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(r.openInstances.length),r.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){r=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},r=new n;t.default=r},834:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(411);var i=((r=o)&&r.__esModule?r:{default:r}).default,a=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=a},7067:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,s=n[0],l=n[n.length-1],c=a();if(e===c){if(!o)return;r=l}l!==c||o||(r=s);s===c&&o&&(r=l);if(r)return t.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var f=n.indexOf(c);f>-1&&(f+=o?-1:1);if(void 0===(r=n[f]))return t.preventDefault(),void(r=o?l:s).focus();t.preventDefault(),r.focus()};var r,o=n(2411),i=(r=o)&&r.__esModule?r:{default:r};function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?a(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},2411:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(s)};var n="none",r="contents",o=/input|select|textarea|button|object|iframe/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var o=window.getComputedStyle(e),i=o.getPropertyValue("display");return t?i!==r&&function(e,t){return"visible"!==t.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0}(e,o):i===n}catch(a){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var n=e.nodeName.toLowerCase();return(o.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),i(t))return!1;t=t.parentNode}return!0}(e)}function s(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&a(e,!n)}e.exports=t.default},312:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1720),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},2833:function(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],f=t[c];if(!1===(o=n?n.call(r,u,f,c):void 0)||void 0===o&&u!==f)return!1}return!0}},9771:function(e){"use strict";var t=function(){};e.exports=t},8539:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(4765),o=n(8855),i=n(4848),a=(0,o.R)(((e,t)=>(0,i.jsx)(r.B,{align:"center",...e,direction:"column",ref:t})));a.displayName="VStack"},6287:function(e,t,n){"use strict";n.d(t,{az:function(){return a}});var r=n(3720),o=n(8855),i=n(4848),a=(0,r.B)("div");a.displayName="Box";var s=(0,o.R)((function(e,t){const{size:n,centerContent:r=!0,...o}=e,s=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,i.jsx)(a,{ref:t,boxSize:n,__css:{...s,flexShrink:0,flexGrow:0},...o})}));s.displayName="Square",(0,o.R)((function(e,t){const{size:n,...r}=e;return(0,i.jsx)(s,{size:n,ref:t,borderRadius:"9999px",...r})})).displayName="Circle"},2047:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(3499),o=n(6540);function i(e,t={}){const{ssr:n=!0,fallback:i}=t,{getWindow:a}=(0,r.O)(),s=Array.isArray(e)?e:[e];let l=Array.isArray(i)?i:[i];l=l.filter((e=>null!=e));const[c,u]=(0,o.useState)((()=>s.map(((e,t)=>({media:e,matches:n?!!l[t]:a().matchMedia(e).matches})))));return(0,o.useEffect)((()=>{const e=a();u(s.map((t=>({media:t,matches:e.matchMedia(t).matches}))));const t=s.map((t=>e.matchMedia(t))),n=e=>{u((t=>t.slice().map((t=>t.media===e.media?{...t,matches:e.matches}:t))))};return t.forEach((e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)})),()=>{t.forEach((e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)}))}}),[a]),c.map((e=>e.matches))}},838:function(e){"use strict";e.exports=JSON.parse('{"layout":"fixed","backgroundColor":"#d8d8d8","images":{"fallback":{"src":"/static/6ef968cfebb62e6eda1d4c39e3772686/839ae/profile-pic.jpg","srcSet":"/static/6ef968cfebb62e6eda1d4c39e3772686/839ae/profile-pic.jpg 200w,\\n/static/6ef968cfebb62e6eda1d4c39e3772686/10998/profile-pic.jpg 400w","sizes":"200px"},"sources":[{"srcSet":"/static/6ef968cfebb62e6eda1d4c39e3772686/73fca/profile-pic.avif 200w,\\n/static/6ef968cfebb62e6eda1d4c39e3772686/44a11/profile-pic.avif 400w","type":"image/avif","sizes":"200px"},{"srcSet":"/static/6ef968cfebb62e6eda1d4c39e3772686/8b00d/profile-pic.webp 200w,\\n/static/6ef968cfebb62e6eda1d4c39e3772686/9c0a1/profile-pic.webp 400w","type":"image/webp","sizes":"200px"}]},"width":200,"height":200}')}}]);
//# sourceMappingURL=component---src-templates-gallery-post-tsx-2666001a5c5170f5c718.js.map