diff --git a/asset-manifest.json b/asset-manifest.json index a578104..161f0a8 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,17 +1,17 @@ { "files": { "main.css": "/react-weather-app/static/css/main.4315ed01.chunk.css", - "main.js": "/react-weather-app/static/js/main.e6aa2e91.chunk.js", - "main.js.map": "/react-weather-app/static/js/main.e6aa2e91.chunk.js.map", + "main.js": "/react-weather-app/static/js/main.88854618.chunk.js", + "main.js.map": "/react-weather-app/static/js/main.88854618.chunk.js.map", "runtime-main.js": "/react-weather-app/static/js/runtime-main.d770b3fe.js", "runtime-main.js.map": "/react-weather-app/static/js/runtime-main.d770b3fe.js.map", - "static/js/2.aab638c9.chunk.js": "/react-weather-app/static/js/2.aab638c9.chunk.js", - "static/js/2.aab638c9.chunk.js.map": "/react-weather-app/static/js/2.aab638c9.chunk.js.map", + "static/js/2.f9f440f5.chunk.js": "/react-weather-app/static/js/2.f9f440f5.chunk.js", + "static/js/2.f9f440f5.chunk.js.map": "/react-weather-app/static/js/2.f9f440f5.chunk.js.map", "index.html": "/react-weather-app/index.html", - "precache-manifest.4368725551822f46fbd6bbe2e45fe743.js": "/react-weather-app/precache-manifest.4368725551822f46fbd6bbe2e45fe743.js", + "precache-manifest.2cdac79d060dd81614ffba1c6d4c3edb.js": "/react-weather-app/precache-manifest.2cdac79d060dd81614ffba1c6d4c3edb.js", "service-worker.js": "/react-weather-app/service-worker.js", "static/css/main.4315ed01.chunk.css.map": "/react-weather-app/static/css/main.4315ed01.chunk.css.map", - "static/js/2.aab638c9.chunk.js.LICENSE.txt": "/react-weather-app/static/js/2.aab638c9.chunk.js.LICENSE.txt", + "static/js/2.f9f440f5.chunk.js.LICENSE.txt": "/react-weather-app/static/js/2.f9f440f5.chunk.js.LICENSE.txt", "static/media/github.svg": "/react-weather-app/static/media/github.65c48b64.svg", "static/media/left-arrow.svg": "/react-weather-app/static/media/left-arrow.5cea32b1.svg", "static/media/linkedin.svg": "/react-weather-app/static/media/linkedin.2e548c6e.svg", @@ -23,8 +23,8 @@ }, "entrypoints": [ "static/js/runtime-main.d770b3fe.js", - "static/js/2.aab638c9.chunk.js", + "static/js/2.f9f440f5.chunk.js", "static/css/main.4315ed01.chunk.css", - "static/js/main.e6aa2e91.chunk.js" + "static/js/main.88854618.chunk.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 791c5f0..03c48c8 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Weather
\ No newline at end of file +Weather
\ No newline at end of file diff --git a/precache-manifest.4368725551822f46fbd6bbe2e45fe743.js b/precache-manifest.2cdac79d060dd81614ffba1c6d4c3edb.js similarity index 84% rename from precache-manifest.4368725551822f46fbd6bbe2e45fe743.js rename to precache-manifest.2cdac79d060dd81614ffba1c6d4c3edb.js index 836f13e..3d370eb 100644 --- a/precache-manifest.4368725551822f46fbd6bbe2e45fe743.js +++ b/precache-manifest.2cdac79d060dd81614ffba1c6d4c3edb.js @@ -1,23 +1,23 @@ self.__precacheManifest = (self.__precacheManifest || []).concat([ { - "revision": "9fa1a75a19717c3dcfe5bf1b847de130", + "revision": "5267f0f4fa201f05b6b222e8c34d6a51", "url": "/react-weather-app/index.html" }, { - "revision": "3ae8df852b7c4d2c7c94", + "revision": "6bcbaf8fdae560977fae", "url": "/react-weather-app/static/css/main.4315ed01.chunk.css" }, { - "revision": "ff61e991881d22b15129", - "url": "/react-weather-app/static/js/2.aab638c9.chunk.js" + "revision": "9b0e16f42c5eaafdeda5", + "url": "/react-weather-app/static/js/2.f9f440f5.chunk.js" }, { "revision": "c87e50d81cc7b5311525cc6fd5482ea5", - "url": "/react-weather-app/static/js/2.aab638c9.chunk.js.LICENSE.txt" + "url": "/react-weather-app/static/js/2.f9f440f5.chunk.js.LICENSE.txt" }, { - "revision": "3ae8df852b7c4d2c7c94", - "url": "/react-weather-app/static/js/main.e6aa2e91.chunk.js" + "revision": "6bcbaf8fdae560977fae", + "url": "/react-weather-app/static/js/main.88854618.chunk.js" }, { "revision": "aacb36d1c4af6b3eab1b", diff --git a/service-worker.js b/service-worker.js index e3bc95d..fd52064 100644 --- a/service-worker.js +++ b/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js"); importScripts( - "/react-weather-app/precache-manifest.4368725551822f46fbd6bbe2e45fe743.js" + "/react-weather-app/precache-manifest.2cdac79d060dd81614ffba1c6d4c3edb.js" ); self.addEventListener('message', (event) => { diff --git a/static/js/2.aab638c9.chunk.js b/static/js/2.aab638c9.chunk.js deleted file mode 100644 index 7e2abba..0000000 --- a/static/js/2.aab638c9.chunk.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! For license information please see 2.aab638c9.chunk.js.LICENSE.txt */ -(this["webpackJsonpweather-app"]=this["webpackJsonpweather-app"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(35)},function(e,t,n){e.exports=n(40)()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return Ie}));var r=n(11),i=n(0),o=n.n(i),a=n(26),l=n.n(a),u=n(27),c=n(28),s=n(20),f=n(12),d=n.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var P=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.2.0");var a=T();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},_=function(){function e(e){var t=this.element=P(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=M&&(M=t+1),R.set(e,t),I.set(t,e)},z="style["+x+'][data-styled-version="5.2.0"]',F=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),U=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o0&&(c+=e+",")})),r+=""+l+u+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),V=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},q=function(e){return V(5381,e)},Q=/^\s*\/\/.*$/gm,K=[":","[",".","#"];function G(e){var t,n,r,i,o=void 0===e?g:e,a=o.options,l=void 0===a?g:a,c=o.plugins,s=void 0===c?v:c,f=new u.a(l),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,l,u,c,s,f){switch(n){case 1:if(0===s&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,o){return 0===r&&K.includes(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,l){void 0===l&&(l="&");var u=e.replace(Q,""),c=o&&a?a+" "+o+" { "+u+" }":u;return t=l,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),f(a||!o?"":o,c)}return f.use([].concat(s,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=s.length?s.reduce((function(e,t){return t.name||C(15),V(e,t.name)}),5381).toString():"",m}var Y=o.a.createContext(),X=(Y.Consumer,o.a.createContext()),J=(X.Consumer,new H),Z=G();function ee(){return Object(i.useContext)(Y)||J}function te(){return Object(i.useContext)(X)||Z}function ne(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ee(),u=Object(i.useMemo)((function(){var t=a;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]),c=Object(i.useMemo)((function(){return G({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(Y.Provider,{value:u},o.a.createElement(X.Provider,{value:c},e.children))}var re=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Z);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Z),this.name+e.hash},e}(),ie=/([A-Z])/,oe=new RegExp(ie,"g"),ae=/^ms-/,le=function(e){return"-"+e.toLowerCase()};function ue(e){return ie.test(e)?e.replace(oe,le).replace(ae,"-ms-"):e}var ce=function(e){return null==e||!1===e||""===e};function se(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,l=e.length;a1?t-1:0),r=1;r1?t-1:0),r=1;r25?39:97))};function ye(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ge(t%52)+n;return(ge(t%52)+n).replace(ve,"$1-$2")}function be(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var l=n(o,"."+a,void 0,r);t.insertRules(r,a,l)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=V(this.baseHash,n.hash),s="",f=0;f>>0);if(!t.hasNameForId(r,m)){var v=n(s,"."+m,void 0,r);t.insertRules(r,m,v)}i.push(m)}}return i.join(" ")},e}(),ke=(new Set,function(e,t,n){return void 0===n&&(n=g),e.theme!==n.theme&&e.theme||t||n.theme}),Se=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ee=/(^-|-$)/g;function Te(e){return e.replace(Se,"-").replace(Ee,"")}function Ce(e){return"string"==typeof e&&!0}var Pe=function(e){return ye(q(e)>>>0)},_e=o.a.createContext();_e.Consumer;var Oe={};function Ae(e,t,n){var r=w(e),a=!Ce(e),l=t.displayName,u=void 0===l?function(e){return Ce(e)?"styled."+e:"Styled("+b(e)+")"}(e):l,c=t.componentId,f=void 0===c?function(e,t){var n="string"!=typeof e?"sc":Te(e);Oe[n]=(Oe[n]||0)+1;var r=n+"-"+Pe("5.2.0"+n+Oe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,h=t.attrs,m=void 0===h?v:h,x=t.displayName&&t.componentId?Te(t.displayName)+"-"+t.componentId:t.componentId||f,k=r&&e.attrs?Array.prototype.concat(e.attrs,m).filter(Boolean):m,S=t.shouldForwardProp;r&&e.shouldForwardProp&&(S=S?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var E,T=new xe(n,x,r?e.componentStyle:void 0),C=function(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,f=e.target,d=function(e,t,n){void 0===e&&(e=g);var r=p({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(ke(t,Object(i.useContext)(_e),a)||g,t,r),h=d[0],m=d[1],v=function(e,t,n,r){var i=ee(),o=te();return e.isStatic&&!t?e.generateAndInjectStyles(g,i,o):e.generateAndInjectStyles(n,i,o)}(o,r.length>0,h),b=n,w=m.$as||t.$as||m.as||t.as||f,x=Ce(w),k=m!==t?p({},t,{},m):t,S=u||x&&s.a,E={};for(var T in k)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?E.as=k[T]:S&&!S(T,s.a)||(E[T]=k[T]));return t.style&&m.style!==t.style&&(E.style=p({},t.style,{},m.style)),E.className=Array.prototype.concat(l,c,v!==c?v:null,t.className,m.className).filter(Boolean).join(" "),E.ref=b,Object(i.createElement)(w,E)}(E,e,t)};return C.displayName=u,(E=o.a.forwardRef(C)).attrs=k,E.componentStyle=T,E.displayName=u,E.shouldForwardProp=S,E.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):v,E.styledComponentId=x,E.target=r?e.target:e,E.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Ce(e)?e:Te(b(e)));return Ae(e,p({},i,{attrs:k,componentId:o}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?me({},e.defaultProps,t):t}}),E.toString=function(){return"."+E.styledComponentId},a&&d()(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var Ne=function(e){return function e(t,n,i){if(void 0===i&&(i=g),!Object(r.isValidElementType)(n))return C(1,String(n));var o=function(){return t(n,i,fe.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,p({},i,{},r))},o.attrs=function(r){return e(t,n,p({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Ae,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ne[e]=Ne(e)}));var Re=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=be(e),H.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(se(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Ie(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r"+t+""},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return C(2);var n=((t={})[x]="",t["data-styled-version"]="5.2.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=T();return r&&(n.nonce=r),[o.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?C(2):o.a.createElement(ne,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return C(3)}}();t.b=Ne}).call(this,n(42))},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return A})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return R})),n.d(t,"h",(function(){return I}));var i=n(0),o=n.n(i),a=(n(1),n(7)),l=n(17),u=n(5);function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}n(12);var p=function(e){var t=Object(l.a)();return t.displayName=e,t}("Router-History"),h=function(e){var t=Object(l.a)();return t.displayName=e,t}("Router"),m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}r(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(p.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;var v=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);var g={},y=0;function b(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(g[e])return g[e];var t=f.a.compile(e);return y<1e4&&(g[e]=t,y++),t}(e)(t,{pretty:!0})}function w(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(h.Consumer,null,(function(e){e||Object(u.a)(!1);var r=e.history,l=e.staticContext,s=i?r.push:r.replace,f=Object(a.c)(t?"string"===typeof n?b(n,t.params):c({},n,{pathname:b(n.pathname,t.params)}):n);return l?(s(f),null):o.a.createElement(v,{onMount:function(){s(f)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,c({},f,{key:n.key}))||s(f)},to:n})}))}var x={},k=0;function S(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,l=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=x[n]||(x[n]={});if(r[e])return r[e];var i=[],o={regexp:f()(e,i,t),keys:i};return k<1e4&&(r[e]=o,k++),o}(n,{end:o,strict:l,sensitive:c}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var s=u[0],d=u.slice(1),p=e===s;return o&&!p?null:{path:n,url:"/"===n&&""===s?"/":s,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var E=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(h.Consumer,null,(function(t){t||Object(u.a)(!1);var n=e.props.location||t.location,r=c({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match}),i=e.props,a=i.children,l=i.component,s=i.render;return Array.isArray(a)&&0===a.length&&(a=null),o.a.createElement(h.Provider,{value:r},r.match?a?"function"===typeof a?a(r):a:l?o.a.createElement(l,r):s?s(r):null:"function"===typeof a?a(r):null)}))},t}(o.a.Component);function T(e){return"/"===e.charAt(0)?e:"/"+e}function C(e,t){if(!e)return t;var n=T(e);return 0!==t.pathname.indexOf(n)?t:c({},t,{pathname:t.pathname.substr(n.length)})}function P(e){return"string"===typeof e?e:Object(a.e)(e)}function _(e){return function(){Object(u.a)(!1)}}function O(){}o.a.Component;var A=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(h.Consumer,null,(function(t){t||Object(u.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?S(i.pathname,c({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);var N=o.a.useContext;function R(){return N(p)}function I(){var e=N(h).match;return e?e.params:{}}},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0;d--){var p=a[d];"."===p?o(a,d):".."===p?(o(a,d),f++):f&&(o(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function l(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=l(t),i=l(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(5);function s(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=r({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,d(),w.location);s.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t1||e((function(e,n){n.trackMouse&&(document.addEventListener("mousemove",r),document.addEventListener("mouseup",a));var i=t.touches?t.touches[0]:t,o=f([i.clientX,i.clientY],n.rotationAngle);return u({},e,s,{eventData:{initial:[].concat(o),first:!0},xy:o,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=f([r.clientX,r.clientY],n.rotationAngle),o=i[0],a=i[1],l=e.xy[0]-o,c=e.xy[1]-a,s=Math.abs(l),d=Math.abs(c),p=(t.timeStamp||0)-e.start,h=Math.sqrt(s*s+d*d)/(p||1);if(st?n>0?"Left":"Right":r>0?"Up":"Down"}(s,d,l,c),v=u({},e.eventData,{event:t,absX:s,absY:d,deltaX:l,deltaY:c,velocity:h,dir:m});n.onSwiping&&n.onSwiping(v);var g=!1;return(n.onSwiping||n.onSwiped||n["onSwiped"+m])&&(g=!0),g&&n.preventDefaultTouchmoveEvent&&n.trackTouch&&t.cancelable&&t.preventDefault(),u({},e,{eventData:u({},v,{first:!1}),swiping:!0})}))},i=function(t){e((function(e,n){var r;return e.swiping&&(r=u({},e.eventData,{event:t}),n.onSwiped&&n.onSwiped(r),n["onSwiped"+r.dir]&&n["onSwiped"+r.dir](r)),u({},e,s,{eventData:r})}))},o=function(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",a)},a=function(e){o(),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)}))}}},c={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)),u({},e,{el:t},r)}))}};return t.trackMouse&&(c.onMouseDown=n),[c,l]}function p(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)),u({},e,r)}var h=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=u({},s,{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,i=void 0===r?"div":r,o=e.innerRef,a=e.children,c=e.trackMouse,s=d(this._set,{trackMouse:c}),f=s[0],h=s[1];this.transientState=p(this.transientState,this.props,h);var m=o?function(e){return o(e),f.ref(e)}:f.ref;return l.a.createElement(i,u({},f,{className:t,style:n,ref:m}),a)},r}(l.a.PureComponent);h.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},h.defaultProps=c;var m=n(24),v=n.n(m),g=n(25),y=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},b=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(a,["style"]),s=w({},c),f=r&&"withNull"!==r;f&&("withCss"===r?s.className=s.className+" "+i:s.style=w({},u,"withDisplay"===r&&{display:"none"},"withVisibility"===r&&{visibility:"hidden"}));var d=l.a.cloneElement(o,s);return n?o:f?d:null}}]),t}(a.Component);k.defaultProps={hiddenMode:"withNull",className:"r-o_hidden"},k.propTypes={children:o.a.element.isRequired,when:o.a.bool.isRequired,hiddenMode:o.a.oneOf(["withNull","withDisplay","withVisibility","withCss"]),className:o.a.string};var S=k;function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?j(e):t}function D(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=R(e);if(t){var i=R(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return L(this,n)}}function z(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function F(e){return function(e){if(Array.isArray(e))return $(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||U(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 U(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=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}var B=function(){},H=function(e){return F(Array(e).keys())},V=function(){for(var e="rec",t=" ",n="".concat(e),r=arguments.length,i=new Array(r),o=0;o=w&&t=k&&ts,a="carousel-item",u=r?l.a.cloneElement(e,{tabIndex:n?0:-1}):e;return l.a.createElement("div",{className:V(a,"".concat(a,"-").concat(t),"".concat(a,"-").concat(n?"visible":"hidden"),i&&"".concat(a,"-prev"),o&&"".concat(a,"-next"))},l.a.createElement(se,{id:t,itemPosition:f,style:{width:y,padding:b},key:t,onClick:g},u))}));return i?l.a.createElement(h,{style:{display:"flex",flexDirection:v?"column":"row"},stopPropagation:!0,preventDefaultTouchmoveEvent:a,trackMouse:o,onSwiped:p,onSwiping:m,className:V("swipable")},E):E};fe.propTypes={children:o.a.array.isRequired,itemsToShow:o.a.number.isRequired,noAutoTabbedItems:o.a.bool,currentItem:o.a.number.isRequired,itemPosition:o.a.string,itemPadding:o.a.array,childWidth:o.a.number,verticalMode:o.a.bool,enableSwipe:o.a.bool,enableMouseSwipe:o.a.bool,preventDefaultTouchmoveEvent:o.a.bool,onSwiped:o.a.func,onSwiping:o.a.func,onItemClick:o.a.func};var de={left:"\u276e",right:"\u276f",up:"\u276e",down:"\u276f"},pe=V("arrow"),he=function(e){var t=e.direction,n=e.onClick,r=e.icons,i=e.style,o=M(e,["direction","onClick","icons","style"]),a=A(A({},de),r),u=A(A({},function(e){var t={};return e!==he.up&&e!==he.down||(t.transform="rotate(90deg)"),t}(t)),i);return l.a.createElement(K,_({tabIndex:0,onClick:n,className:v()(pe,"".concat(pe,"-").concat(t)),style:u},o),a[t])};he.left="left",he.right="right",he.up="up",he.down="down",he.propTypes={direction:o.a.oneOf(["left","right","up","down"]).isRequired,icons:o.a.object,style:o.a.object,onClick:o.a.func};var me=function(e,t){var n=t.limit,r=t.itemsToScroll;switch(t.type){case"NEXT_ITEM":var i=e+r;return n>=i?i:n;case"PREV_ITEM":var o=e-r;return o>=n?o:n;default:return e}},ve=function(e,t){return{type:"NEXT_ITEM",limit:e,itemsToScroll:t}},ge=function(e,t){return{type:"PREV_ITEM",limit:e,itemsToScroll:t}};function ye(){var e=z(["\n box-sizing: border-box;\n padding: 0;\n transition: all 250ms ease;\n border: none;\n margin: 5px;\n background-color: ",';\n font-size: 1.3em;\n content: "";\n height: 10px;\n width: 10px;\n box-shadow: ',";\n border-radius: 50%;\n outline: none;\n &:hover,\n &:focus {\n cursor: pointer;\n box-shadow: ",";\n }\n"]);return ye=function(){return e},e}var be=r.b.button.attrs((function(e){var t=e.type;return{type:void 0===t?"button":t}}))(ye(),(function(e){return e.active?"rgba(103,58,183,.5)":"transparent"}),(function(e){return e.active?"0 0 1px 3px rgba(103,58,183,1)":"0 0 1px 2px rgba(0, 0, 0, 0.5)"}),(function(e){return e.active?"0 0 1px 3px rgba(103,58,183,1)":"0 0 1px 3px rgba(103,58,183,.5)"})),we=function(e){N(n,e);var t=D(n);function n(){var e;E(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&((t=r.slice().reverse().find((function(e){return e.width<=o})))||(t=r[0])),A(A({},i),t)})),P(j(e),"updateSliderPosition",(function(){e.setState((function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.children,i=n.verticalMode,o=n.itemsToShow,l=n.transitionMs,u=t.childHeight,c=t.activeIndex,s=e.calculateChildWidth(),f=a.Children.toArray(r).length,d=-1*c,p=o-(f-c);p>0&&f-o>0&&(d=p+-1*c);var h=(i?u:s)*d,m=p>0?c-p:c;return window.requestAnimationFrame((function(){e.isComponentMounted&&e.setState({transitionMs:l})})),{sliderPosition:h,activeIndex:m<0?0:m}}))})),P(j(e),"onSliderResize",(function(t){if(e.isComponentMounted){var n=e.getDerivedPropsFromBreakPoint(),r=n.verticalMode,i=n.children,o=n.itemsToShow,l=t.contentRect.height,u={},c=a.Children.toArray(i).length;if(r){var s=l/c;u.rootHeight=s*Math.min(c,o),u.childHeight=s}else u.rootHeight=l;e.setState(u)}})),P(j(e),"calculateChildWidth",(function(){var t=e.state.sliderContainerWidth,n=e.getDerivedPropsFromBreakPoint(),r=n.verticalMode,i=n.itemsToShow,o=n.showEmptySlots,l=n.children,u=a.Children.toArray(l).length||1;return r?t:t/(o?i:Math.min(u,i))})),P(j(e),"onContainerResize",(function(t){var n=t.contentRect.width,r=e.getDerivedPropsFromBreakPoint(),i=r.outerSpacing,o=n-(r.verticalMode?0:2*i);e.isComponentMounted&&e.state.sliderContainerWidth!==n&&e.setState({sliderContainerWidth:o,transitionMs:0},(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onResize,r=t.itemsToShow,i=t.children,o=a.Children.toArray(i).length||1;e.setState((function(e){var t=e.activeIndex,n=Math.min(o,r),i=o-n;return t>i&&(t=i),{activeIndex:t}}),(function(){e.updateSliderPosition();var t=e.getDerivedPropsFromBreakPoint();n(t)}))}))})),P(j(e),"tiltMovement",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:150;e.setState((function(e){return{isSwiping:!0,swipedSliderPosition:t-n}})),setTimeout((function(){e.setState({isSwiping:!1,swipedSliderPosition:0})}),r)})),P(j(e),"convertChildToCbObj",(function(t){var n=e.getDerivedPropsFromBreakPoint().children,r=Math.round(t);return{item:a.Children.toArray(n)[r].props,index:r}})),P(j(e),"getNextItemIndex",(function(t,n){var r=e.getDerivedPropsFromBreakPoint(),i=r.children,o=r.itemsToShow,l=r.itemsToScroll,u=a.Children.toArray(i).length||1,c=n?0:u-o;o>u&&(c=0);var s=n?ge(0,l):ve(c,l);return me(t,s)})),P(j(e),"getNextItemObj",(function(t){var n=e.getDerivedPropsFromBreakPoint().children,r=e.state.activeIndex,i=e.getNextItemIndex(r,t),o=Math.round(i);return{item:a.Children.toArray(n)[o].props,index:o}})),P(j(e),"resetSwipe",(function(){e.setState({swipedSliderPosition:0,transitioning:!1,isSwiping:!1})})),P(j(e),"onSwiping",(function(t){var n=t.deltaX,r=t.absX,i=t.deltaY,o=t.absY,l=t.dir;e.setState((function(t){var u=t.childHeight,c=t.activeIndex,s=t.sliderPosition,f=e.getDerivedPropsFromBreakPoint(),d=f.itemsToShow,p=f.verticalMode,h=f.children,m=f.isRTL,v=e.calculateChildWidth(),g=a.Children.toArray(h).length||1,y=!p&&"Left"===l&&!m||!p&&"Right"===l&&m||p&&"Up"===l,b=!p&&"Right"===l&&!m||!p&&"Left"===l&&m||p&&"Down"===l,w="Left"===l||"Right"===l,x="Up"===l||"Down"===l,k=!p,S=0,E=v/2,T=u/2;p?x&&(y?S=g*u-u*c-d*u+T:b&&(S=u*c+T)):w&&(y?S=g*v-v*c-d*v+E:b&&(S=v*c+E));if(!(k&&x||k&&w&&r>S)&&!(p&&w||p&&x&&o>S))return{swipedSliderPosition:w?m?s+n:s-n:s-i,isSwiping:!0,transitioning:!0}}))})),P(j(e),"onSwiped",(function(t){var n=t.absX,r=t.absY,i=t.dir,o=e.state,a=o.childHeight,l=o.activeIndex,u=e.getDerivedPropsFromBreakPoint(),c=u.verticalMode,s=u.isRTL,f=u.itemsToScroll,d=e.calculateChildWidth(),p=e.resetSwipe,h=d/5,m=a/5,v="Left"===i,g="Right"===i,y="Up"===i,b="Down"===i,w=!1;if((c&&(y||b)&&r>m||!c&&(g||v)&&n>h)&&(w=!0),w)if(c){var x=Math.ceil((r-m)/a),k=Math.max(f,x),S=l-k,E=l+k;b&&(p=function(){return e.goTo(S)}),y&&(p=function(){return e.goTo(E)})}else{var T=Math.ceil((n-h)/d),C=Math.max(f,T),P=l-C,_=l+C;s?(v&&(p=function(){return e.goTo(P)}),g&&(p=function(){return e.goTo(_)})):(v&&(p=function(){return e.goTo(_)}),g&&(p=function(){return e.goTo(P)}))}e.setState({isSwiping:!1,transitioning:!1}),p({skipTilt:!0})})),P(j(e),"onNextStart",(function(t){var n=e.getDerivedPropsFromBreakPoint().onNextStart,r=e.state.activeIndex,i=e.getNextItemObj();n(e.convertChildToCbObj(r),i),e.slideNext(t)})),P(j(e),"onPrevStart",(function(t){var n=e.getDerivedPropsFromBreakPoint().onPrevStart,r=e.state.activeIndex,i=e.getNextItemObj(!0);n(e.convertChildToCbObj(r),i),e.slidePrev(t)})),P(j(e),"slideNext",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.skipTilt,r=e.getDerivedPropsFromBreakPoint(),i=r.enableTilt,o=e.state,a=o.activeIndex,l=o.sliderPosition,u=e.getNextItemIndex(a,!1);a!==u?e.goTo(u):i&&!n&&e.tiltMovement(l,20,150)})),P(j(e),"slidePrev",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.skipTilt,r=e.state.activeIndex,i=e.getDerivedPropsFromBreakPoint(),o=i.enableTilt,a=e.getNextItemIndex(r,!0);r!==a?e.goTo(a):o&&!n&&e.tiltMovement(0,-20,150)})),P(j(e),"onNextEnd",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onNextEnd,r=t.onChange,i=e.state,o=i.activeIndex,a=i.activePage,l=e.convertChildToCbObj(o);e.removeSliderTransitionHook(e.onNextEnd),e.setState({transitioning:!1}),r&&r(l,a),n(l,a)})),P(j(e),"onPrevEnd",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.onPrevEnd,r=t.onChange,i=e.state,o=i.activeIndex,a=i.activePage,l=e.convertChildToCbObj(o);e.removeSliderTransitionHook(e.onPrevEnd),e.setState({transitioning:!1}),r&&r(l,a),n(l,a)})),P(j(e),"generatePositionUpdater",(function(t,n,r,i){return function(o){var a=o.sliderPosition,l=o.childHeight,u=o.activeIndex,c=e.calculateChildWidth(),s=r?l:c;return A({sliderPosition:t===G.NEXT?a-s*(n-u):a+s*(u-n),activeIndex:n,swipedSliderPosition:0,isSwiping:!1},i)}})),P(j(e),"goTo",(function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.children,i=n.verticalMode,o=n.itemsToShow,l=e.state.activeIndex,u=a.Children.toArray(r).length,c=Math.max(0,t),s=l>c;if(!(e.getNextItemIndex(l,s)===l)){c+o>=u&&(c=Math.max(0,u-o));var f=G.NEXT,d=e.onNextEnd;s&&(f=G.PREV,d=e.onPrevEnd);var p=e.generatePositionUpdater(f,c,i,{transitioning:!0});e.setState(p,(function(){q(e.updateActivePage(),e.onSliderTransitionEnd(d))}))}})),P(j(e),"getNumOfPages",(function(){var t=e.getDerivedPropsFromBreakPoint(),n=t.children,r=t.itemsToShow,i=a.Children.toArray(n).length,o=Math.max(r,1);return Math.ceil(i/o)||1})),P(j(e),"updateActivePage",(function(){e.setState((function(t){var n=e.getDerivedPropsFromBreakPoint(),r=n.itemsToShow,i=n.children,o=t.activeIndex,l=t.activePage,u=e.getNumOfPages(),c=a.Children.toArray(i).length,s=Math.min(c,r),f=Math.max(s,1),d=Math.ceil(o/f),p=Math.min(u-1,d);if(l!==p)return{activePage:p}}))})),P(j(e),"onIndicatorClick",(function(t){var n=t*e.getDerivedPropsFromBreakPoint().itemsToShow;e.setState({activePage:t}),e.goTo(n)})),e}return C(n,[{key:"componentDidMount",value:function(){this.isComponentMounted=!0,this.initResizeObserver(),this.updateActivePage(),this.setPages()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.enableAutoPlay,i=n.children,o=n.itemsToShow,l=n.itemsToScroll,u=n.breakPoints,c=this.state,s=c.activeIndex,f=c.sliderContainerWidth,d=this.getNextItemIndex(s,!1),p=a.Children.toArray(i).length,h=a.Children.toArray(e.children).length;if(h===p&&e.itemsToShow===o&&e.itemsToScroll===l&&e.breakPoints===u&&f===t.sliderContainerWidth||(this.onContainerResize({contentRect:{width:f}}),this.setPages(),this.updateActivePage()),s===d?this.removeAutoPlay():r&&!this.autoPlayIntervalId?this.setAutoPlay():!r&&this.autoPlayIntervalId&&this.removeAutoPlay(),h!==p){var m=this.getDerivedPropsFromBreakPoint().itemsToShow;s+m>p-1&&this.goTo(Math.max(0,p-m))}}},{key:"componentWillUnmount",value:function(){this.isComponentMounted=!1,this.removeAutoPlay(),this.unSubscribeObserver()}},{key:"render",value:function(){var e=this.state,t=e.activePage,n=e.isSwiping,r=e.sliderPosition,i=e.swipedSliderPosition,o=e.rootHeight,u=e.pages,c=e.activeIndex,s=e.transitionMs,f=this.getDerivedPropsFromBreakPoint(),d=f.className,p=f.style,h=f.itemsToShow,m=f.itemsToScroll,v=f.verticalMode,g=f.isRTL,y=f.easing,b=f.tiltEasing,w=f.children,x=f.focusOnSelect,k=f.autoTabIndexVisibleItems,E=f.itemPosition,T=f.itemPadding,C=f.outerSpacing,P=f.enableSwipe,_=f.enableMouseSwipe,O=f.pagination,A=f.showArrows,N=f.disableArrowsOnEnd,R=f.preventDefaultTouchmoveEvent,I=f.renderArrow,M=f.renderPagination,j=this.calculateChildWidth(),L=this.getNumOfPages(),D=c!==this.getNextItemIndex(c,!0),z=c!==this.getNextItemIndex(c,!1),F=!D&&N,U=!z&&N;return l.a.createElement(ce,{isRTL:g,className:"".concat(V("carousel-wrapper")," ").concat(d),style:p},l.a.createElement(le,{className:V("carousel"),size:{height:o}},l.a.createElement(S,{when:A},I?I({type:G.PREV,onClick:this.onPrevStart,isEdge:!D}):l.a.createElement(he,{onClick:this.onPrevStart,direction:v?he.up:he.left,disabled:F})),l.a.createElement(Z,{className:V("slider-container"),ref:this.setRef("sliderContainer")},l.a.createElement(oe,{verticalMode:v,isRTL:g,easing:y,sliderPosition:r,swipedSliderPosition:i,isSwiping:n,transitionMs:s,tiltEasing:b,className:V("slider"),ref:this.setRef("slider"),outerSpacing:C},l.a.createElement(fe,{verticalMode:v,children:a.Children.toArray(w),childWidth:j,currentItem:c,autoTabIndexVisibleItems:k,itemsToShow:h,itemsToScroll:m,itemPosition:E,itemPadding:T,enableSwipe:P,enableMouseSwipe:_,preventDefaultTouchmoveEvent:R,onSwiped:this.onSwiped,onSwiping:this.onSwiping,onItemClick:x?this.goTo:void 0}))),l.a.createElement(S,{when:A},I?I({type:G.NEXT,onClick:this.onNextStart,isEdge:!z}):l.a.createElement(he,{onClick:this.onNextStart,direction:v?he.down:he.right,disabled:U}))),l.a.createElement(S,{when:O},M?M({pages:u,activePage:t,onClick:this.onIndicatorClick}):l.a.createElement(Se,{numOfPages:L,activePage:t,onClick:this.onIndicatorClick})))}}]),n}(l.a.Component);Ee.defaultProps={className:"",style:{},verticalMode:!1,isRTL:!1,initialFirstItem:0,initialActiveIndex:0,showArrows:!0,showEmptySlots:!1,disableArrowsOnEnd:!0,pagination:!0,easing:"ease",tiltEasing:"ease",transitionMs:500,enableTilt:!0,enableSwipe:!0,enableMouseSwipe:!0,preventDefaultTouchmoveEvent:!1,focusOnSelect:!1,autoTabIndexVisibleItems:!0,itemsToShow:1,itemsToScroll:1,itemPosition:G.CENTER,itemPadding:[0,0,0,0],outerSpacing:0,enableAutoPlay:!1,autoPlaySpeed:2e3,onChange:B,onNextEnd:B,onPrevEnd:B,onNextStart:B,onPrevStart:B,onResize:B},Ee.propTypes={children:o.a.node.isRequired,className:o.a.string,style:o.a.object,verticalMode:o.a.bool,isRTL:o.a.bool,pagination:o.a.bool,transitionMs:o.a.number,easing:o.a.string,tiltEasing:o.a.string,enableTilt:o.a.bool,itemsToShow:o.a.number,itemsToScroll:o.a.number,breakPoints:o.a.arrayOf(o.a.shape({width:o.a.number.isRequired,itemsToShow:o.a.number,itemsToScroll:o.a.number})),initialActiveIndex:o.a.number,initialFirstItem:o.a.number,showArrows:o.a.bool,showEmptySlots:o.a.bool,disableArrowsOnEnd:o.a.bool,focusOnSelect:o.a.bool,autoTabIndexVisibleItems:o.a.bool,renderArrow:o.a.func,renderPagination:o.a.func,itemPosition:o.a.oneOf([G.START,G.CENTER,G.END]),itemPadding:o.a.array,outerSpacing:o.a.number,enableSwipe:o.a.bool,enableMouseSwipe:o.a.bool,preventDefaultTouchmoveEvent:o.a.bool,enableAutoPlay:o.a.bool,autoPlaySpeed:o.a.number,onChange:o.a.func,onNextStart:o.a.func,onPrevStart:o.a.func,onNextEnd:o.a.func,onPrevEnd:o.a.func,onResize:o.a.func};t.b=Ee},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(3);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o=n(0),a=n.n(o),l=n(7);n(1);function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var s=n(5),f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i0},u.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},u.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)},u.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),a.some((function(e){return!!~t.indexOf(e)}))&&this.refresh()},u.getInstance=function(){return this.instance_||(this.instance_=new u),this.instance_},u.instance_=null;var c=function(e,t){for(var n=0,r=Object.keys(t);n0;)t[n]=arguments[n+1];return t.reduce((function(t,n){return t+d(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=s(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n0};var x="undefined"!==typeof WeakMap?new WeakMap:new n,k=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new w(t,n,this);x.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){k.prototype[e]=function(){return(t=x.get(this))[e].apply(t,arguments);var t}}));var S="undefined"!==typeof i.ResizeObserver?i.ResizeObserver:k;t.a=S}).call(this,n(22))},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;ur&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102l.charCodeAt(0)&&(l=l.trim()),l=[l],0p)&&(F=(W=W.replace(" ",":")).length),0A.length&&A.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,i){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+M(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c