(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[753],{80867:function(t){var e="function"==typeof Float32Array;function n(t,e,n){return(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t}function r(t,e,n){return 3*(1-3*n+3*e)*t*t+2*(3*n-6*e)*t+3*e}function i(t){return t}t.exports=function(t,o,s,a){if(!(0<=t&&t<=1&&0<=s&&s<=1))throw Error("bezier x values must be in [0, 1] range");if(t===o&&s===a)return i;for(var u=e?new Float32Array(11):Array(11),c=0;c<11;++c)u[c]=n(.1*c,t,s);return function(e){return 0===e?0:1===e?1:n(function(e){for(var i=0,o=1;10!==o&&u[o]<=e;++o)i+=.1;var a=i+(e-u[--o])/(u[o+1]-u[o])*.1,c=r(a,t,s);return c>=.001?function(t,e,i,o){for(var s=0;s<4;++s){var a=r(e,i,o);if(0===a)break;var u=n(e,i,o)-t;e-=u/a}return e}(e,a,t,s):0===c?a:function(t,e,r,i,o){var s,a,u=0;do(s=n(a=e+(r-e)/2,i,o)-t)>0?r=a:e=a;while(Math.abs(s)>1e-7&&++u<10);return a}(e,i,i+.1,t,s)}(e),o,a)}}},85130:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommentCount=void 0;var r=a(n(2265)),i=a(n(40718)),o=n(23124),s=n(59507);function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,["shortname","config","children","className"]);return r.default.createElement("span",c({},o,{className:"".concat(s.COMMENT_COUNT_CLASS).concat(i?" ".concat(i):""),"data-disqus-identifier":e.identifier,"data-disqus-url":e.url}),n)}}],function(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,["width","height","commentId","showMedia","showParentComment"]));return r.default.createElement("iframe",u({},i,{src:this.getSrc(),width:e,height:n,seamless:"seamless",scrolling:"no",frameBorder:"0"}))}}],function(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,["shortname","config"]));return r.default.createElement("div",c({},e,{id:s.THREAD_ID}))}}],function(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,["shortname","config"]));return r.default.createElement("div",c({},e,{id:s.RECOMMENDATIONS_ID}))}}],function(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}(new Set(Object.keys(e),Object.keys(n)));try{for(i.s();!(r=i.n()).done;){var u=r.value;if("object"===o(e[u])){if(t(e[u],n[u]))return!0}else if(e[u]!==n[u]&&!a(e[u]))return!0}}catch(t){i.e(t)}finally{i.f()}return!1};var r,i=(r=n(2265))&&r.__esModule?r:{default:r};function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=e||n<0||h&&r>=s}function O(){var t,n,r,i=y();if(w(i))return C(i);u=setTimeout(O,(t=i-c,n=i-l,r=e-t,h?v(r,s-n):r))}function C(t){return(u=void 0,d&&i)?b(t):(i=o=void 0,a)}function E(){var t,n=y(),r=w(n);if(i=arguments,o=this,c=n,r){if(void 0===u)return l=t=c,u=setTimeout(O,e),f?b(t):a;if(h)return u=setTimeout(O,e),b(c)}return void 0===u&&(u=setTimeout(O,e)),a}return e=g(e)||0,m(n)&&(f=!!n.leading,s=(h="maxWait"in n)?p(g(n.maxWait)||0,e):s,d="trailing"in n?!!n.trailing:d),E.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},E.flush=function(){return void 0===u?a:C(y())},E}(t,e,{leading:i,maxWait:e,trailing:o})}},71230:function(t,e,n){"use strict";n.d(e,{j:function(){return s}});var r=n(88671),i=n(1063),o=n(68200),s=new(function(t){function e(){var e;return(e=t.call(this)||this).setup=function(t){var e;if(!o.sk&&(null==(e=window)?void 0:e.addEventListener)){var n=function(){return t()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},e}(0,r.Z)(e,t);var n=e.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0}},n.setEventListener=function(t){var e,n=this;this.setup=t,null==(e=this.cleanup)||e.call(this),this.cleanup=t(function(t){"boolean"==typeof t?n.setFocused(t):n.onFocus()})},n.setFocused=function(t){this.focused=t,t&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(t){t()})},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},e}(i.l))},82358:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.S}});var r=n(76821),i=n(96604);n.o(i,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(e,{useQuery:function(){return i.useQuery}})},3765:function(t,e,n){"use strict";n.d(e,{E:function(){return o},j:function(){return i}});var r=console;function i(){return r}function o(t){r=t}},53312:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var r=n(68200),i=new(function(){function t(){this.queue=[],this.transactions=0,this.notifyFn=function(t){t()},this.batchNotifyFn=function(t){t()}}var e=t.prototype;return e.batch=function(t){var e;this.transactions++;try{e=t()}finally{this.transactions--,this.transactions||this.flush()}return e},e.schedule=function(t){var e=this;this.transactions?this.queue.push(t):(0,r.A4)(function(){e.notifyFn(t)})},e.batchCalls=function(t){var e=this;return function(){for(var n=arguments.length,r=Array(n),i=0;i0?this.queries.filter(function(t){return(0,i._x)(n,t)}):this.queries},n.notify=function(t){var e=this;s.V.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){var t=this;s.V.batch(function(){t.queries.forEach(function(t){t.onFocus()})})},n.onOnline=function(){var t=this;s.V.batch(function(){t.queries.forEach(function(t){t.onOnline()})})},e}(l.l),h=function(){function t(t){this.options=(0,r.Z)({},t.defaultOptions,t.options),this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.observers=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=t.meta}var e=t.prototype;return e.setState=function(t){this.dispatch({type:"setState",state:t})},e.addObserver=function(t){-1===this.observers.indexOf(t)&&this.observers.push(t)},e.removeObserver=function(t){this.observers=this.observers.filter(function(e){return e!==t})},e.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},e.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},e.execute=function(){var t,e=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then(function(){null==e.mutationCache.config.onMutate||e.mutationCache.config.onMutate(e.state.variables,e)}).then(function(){return null==e.options.onMutate?void 0:e.options.onMutate(e.state.variables)}).then(function(t){t!==e.state.context&&e.dispatch({type:"loading",context:t,variables:e.state.variables})})),r.then(function(){return e.executeMutation()}).then(function(n){t=n,null==e.mutationCache.config.onSuccess||e.mutationCache.config.onSuccess(t,e.state.variables,e.state.context,e)}).then(function(){return null==e.options.onSuccess?void 0:e.options.onSuccess(t,e.state.variables,e.state.context)}).then(function(){return null==e.options.onSettled?void 0:e.options.onSettled(t,null,e.state.variables,e.state.context)}).then(function(){return e.dispatch({type:"success",data:t}),t}).catch(function(t){return null==e.mutationCache.config.onError||e.mutationCache.config.onError(t,e.state.variables,e.state.context,e),(0,a.j)().error(t),Promise.resolve().then(function(){return null==e.options.onError?void 0:e.options.onError(t,e.state.variables,e.state.context)}).then(function(){return null==e.options.onSettled?void 0:e.options.onSettled(void 0,t,e.state.variables,e.state.context)}).then(function(){throw e.dispatch({type:"error",error:t}),t})})},e.executeMutation=function(){var t,e=this;return this.retryer=new u.m4({fn:function(){return e.options.mutationFn?e.options.mutationFn(e.state.variables):Promise.reject("No mutationFn found")},onFail:function(){e.dispatch({type:"failed"})},onPause:function(){e.dispatch({type:"pause"})},onContinue:function(){e.dispatch({type:"continue"})},retry:null!=(t=this.options.retry)?t:0,retryDelay:this.options.retryDelay}),this.retryer.promise},e.dispatch=function(t){var e=this;this.state=function(t,e){switch(e.type){case"failed":return(0,r.Z)({},t,{failureCount:t.failureCount+1});case"pause":return(0,r.Z)({},t,{isPaused:!0});case"continue":return(0,r.Z)({},t,{isPaused:!1});case"loading":return(0,r.Z)({},t,{context:e.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:e.variables});case"success":return(0,r.Z)({},t,{data:e.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},t,{data:void 0,error:e.error,failureCount:t.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},t,e.state);default:return t}}(this.state,t),s.V.batch(function(){e.observers.forEach(function(e){e.onMutationUpdate(t)}),e.mutationCache.notify(e)})},t}(),d=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r=new h({mutationCache:this,mutationId:++this.mutationId,options:t.defaultMutationOptions(e),state:n,defaultOptions:e.mutationKey?t.getMutationDefaults(e.mutationKey):void 0,meta:e.meta});return this.add(r),r},n.add=function(t){this.mutations.push(t),this.notify(t)},n.remove=function(t){this.mutations=this.mutations.filter(function(e){return e!==t}),t.cancel(),this.notify(t)},n.clear=function(){var t=this;s.V.batch(function(){t.mutations.forEach(function(e){t.remove(e)})})},n.getAll=function(){return this.mutations},n.find=function(t){return void 0===t.exact&&(t.exact=!0),this.mutations.find(function(e){return(0,i.X7)(t,e)})},n.findAll=function(t){return this.mutations.filter(function(e){return(0,i.X7)(t,e)})},n.notify=function(t){var e=this;s.V.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var t=this.mutations.filter(function(t){return t.state.isPaused});return s.V.batch(function(){return t.reduce(function(t,e){return t.then(function(){return e.continue().catch(i.ZT)})},Promise.resolve())})},e}(l.l),p=n(71230),v=n(47460);function y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}var m=function(){function t(t){void 0===t&&(t={}),this.queryCache=t.queryCache||new f,this.mutationCache=t.mutationCache||new d,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var e=t.prototype;return e.mount=function(){var t=this;this.unsubscribeFocus=p.j.subscribe(function(){p.j.isFocused()&&v.N.isOnline()&&(t.mutationCache.onFocus(),t.queryCache.onFocus())}),this.unsubscribeOnline=v.N.subscribe(function(){p.j.isFocused()&&v.N.isOnline()&&(t.mutationCache.onOnline(),t.queryCache.onOnline())})},e.unmount=function(){var t,e;null==(t=this.unsubscribeFocus)||t.call(this),null==(e=this.unsubscribeOnline)||e.call(this)},e.isFetching=function(t,e){var n=(0,i.I6)(t,e)[0];return n.fetching=!0,this.queryCache.findAll(n).length},e.isMutating=function(t){return this.mutationCache.findAll((0,r.Z)({},t,{fetching:!0})).length},e.getQueryData=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state.data},e.getQueriesData=function(t){return this.getQueryCache().findAll(t).map(function(t){return[t.queryKey,t.state.data]})},e.setQueryData=function(t,e,n){var r=(0,i._v)(t),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(e,n)},e.setQueriesData=function(t,e,n){var r=this;return s.V.batch(function(){return r.getQueryCache().findAll(t).map(function(t){var i=t.queryKey;return[i,r.setQueryData(i,e,n)]})})},e.getQueryState=function(t,e){var n;return null==(n=this.queryCache.find(t,e))?void 0:n.state},e.removeQueries=function(t,e){var n=(0,i.I6)(t,e)[0],r=this.queryCache;s.V.batch(function(){r.findAll(n).forEach(function(t){r.remove(t)})})},e.resetQueries=function(t,e,n){var o=this,a=(0,i.I6)(t,e,n),u=a[0],c=a[1],l=this.queryCache,f=(0,r.Z)({},u,{active:!0});return s.V.batch(function(){return l.findAll(u).forEach(function(t){t.reset()}),o.refetchQueries(f,c)})},e.cancelQueries=function(t,e,n){var r=this,o=(0,i.I6)(t,e,n),a=o[0],u=o[1],c=void 0===u?{}:u;return void 0===c.revert&&(c.revert=!0),Promise.all(s.V.batch(function(){return r.queryCache.findAll(a).map(function(t){return t.cancel(c)})})).then(i.ZT).catch(i.ZT)},e.invalidateQueries=function(t,e,n){var o,a,u,c=this,l=(0,i.I6)(t,e,n),f=l[0],h=l[1],d=(0,r.Z)({},f,{active:null==(o=null!=(a=f.refetchActive)?a:f.active)||o,inactive:null!=(u=f.refetchInactive)&&u});return s.V.batch(function(){return c.queryCache.findAll(f).forEach(function(t){t.invalidate()}),c.refetchQueries(d,h)})},e.refetchQueries=function(t,e,n){var o=this,a=(0,i.I6)(t,e,n),u=a[0],c=a[1],l=Promise.all(s.V.batch(function(){return o.queryCache.findAll(u).map(function(t){return t.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))})})).then(i.ZT);return(null==c?void 0:c.throwOnError)||(l=l.catch(i.ZT)),l},e.fetchQuery=function(t,e,n){var r=(0,i._v)(t,e,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)},e.prefetchQuery=function(t,e,n){return this.fetchQuery(t,e,n).then(i.ZT).catch(i.ZT)},e.fetchInfiniteQuery=function(t,e,n){var r=(0,i._v)(t,e,n);return r.behavior={onFetch:function(t){t.fetchFn=function(){var e,n,r,o,s,a,c,l=null==(e=t.fetchOptions)?void 0:null==(n=e.meta)?void 0:n.refetchPage,f=null==(r=t.fetchOptions)?void 0:null==(o=r.meta)?void 0:o.fetchMore,h=null==f?void 0:f.pageParam,d=(null==f?void 0:f.direction)==="forward",p=(null==f?void 0:f.direction)==="backward",v=(null==(s=t.state.data)?void 0:s.pages)||[],m=(null==(a=t.state.data)?void 0:a.pageParams)||[],g=(0,i.G9)(),b=null==g?void 0:g.signal,w=m,O=!1,C=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},E=function(t,e,n,r){return w=r?[e].concat(w):[].concat(w,[e]),r?[n].concat(t):[].concat(t,[n])},S=function(e,n,r,i){if(O)return Promise.reject("Cancelled");if(void 0===r&&!n&&e.length)return Promise.resolve(e);var o=C({queryKey:t.queryKey,signal:b,pageParam:r,meta:t.meta}),s=Promise.resolve(o).then(function(t){return E(e,r,t,i)});return(0,u.LE)(o)&&(s.cancel=o.cancel),s};if(v.length){if(d){var _=void 0!==h,P=_?h:y(t.options,v);c=S(v,_,P)}else if(p){var I,T=void 0!==h,M=T?h:null==(I=t.options).getPreviousPageParam?void 0:I.getPreviousPageParam(v[0],v);c=S(v,T,M,!0)}else!function(){w=[];var e=void 0===t.options.getNextPageParam;c=!l||!v[0]||l(v[0],0,v)?S([],e,m[0]):Promise.resolve(E([],m[0],v[0]));for(var n=function(n){c=c.then(function(r){if(!l||!v[n]||l(v[n],n,v)){var i=e?m[n]:y(t.options,r);return S(r,e,i)}return Promise.resolve(E(r,m[n],v[n]))})},r=1;r0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}()},96604:function(){},68200:function(t,e,n){"use strict";n.d(e,{A4:function(){return C},G9:function(){return E},Gh:function(){return O},I6:function(){return f},Kp:function(){return c},PN:function(){return a},Q$:function(){return function t(e,n){if(e===n)return e;var r=Array.isArray(e)&&Array.isArray(n);if(r||g(e)&&g(n)){for(var i=r?e.length:Object.keys(e).length,o=r?n:Object.keys(n),s=o.length,a=r?[]:{},u=0,c=0;c=0&&t!==1/0}function u(t){return Array.isArray(t)?t:[t]}function c(t,e){return Math.max(t+(e||0)-Date.now(),0)}function l(t,e,n){return w(t)?"function"==typeof e?(0,r.Z)({},n,{queryKey:t,queryFn:e}):(0,r.Z)({},e,{queryKey:t}):t}function f(t,e,n){return w(t)?[(0,r.Z)({},e,{queryKey:t}),n]:[t||{},e]}function h(t,e){var n=t.active,r=t.exact,i=t.fetching,o=t.inactive,s=t.predicate,a=t.queryKey,u=t.stale;if(w(a)){if(r){if(e.queryHash!==p(a,e.options))return!1}else if(!y(e.queryKey,a))return!1}var c=!0===n&&!0===o||null==n&&null==o?"all":!1===n&&!1===o?"none":(null!=n?n:!o)?"active":"inactive";if("none"===c)return!1;if("all"!==c){var l=e.isActive();if("active"===c&&!l||"inactive"===c&&l)return!1}return("boolean"!=typeof u||e.isStale()===u)&&("boolean"!=typeof i||e.isFetching()===i)&&(!s||!!s(e))}function d(t,e){var n=t.exact,r=t.fetching,i=t.predicate,o=t.mutationKey;if(w(o)){if(!e.options.mutationKey)return!1;if(n){if(v(e.options.mutationKey)!==v(o))return!1}else if(!y(e.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===e.state.status===r)&&(!i||!!i(e))}function p(t,e){return((null==e?void 0:e.queryKeyHashFn)||v)(t)}function v(t){return JSON.stringify(u(t),function(t,e){return g(e)?Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{}):e})}function y(t,e){return function t(e,n){return e===n||typeof e==typeof n&&!!e&&!!n&&"object"==typeof e&&"object"==typeof n&&!Object.keys(n).some(function(r){return!t(e[r],n[r])})}(u(t),u(e))}function m(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}function g(t){if(!b(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!(b(n)&&n.hasOwnProperty("isPrototypeOf"))}function b(t){return"[object Object]"===Object.prototype.toString.call(t)}function w(t){return"string"==typeof t||Array.isArray(t)}function O(t){return new Promise(function(e){setTimeout(e,t)})}function C(t){Promise.resolve().then(t).catch(function(t){return setTimeout(function(){throw t})})}function E(){if("function"==typeof AbortController)return new AbortController}},86484:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.QueryClient},QueryClientProvider:function(){return i.QueryClientProvider},useQuery:function(){return i.useQuery}});var r=n(82358);n.o(r,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useQuery")&&n.d(e,{useQuery:function(){return r.useQuery}});var i=n(45457)},45457:function(t,e,n){"use strict";n.d(e,{QueryClientProvider:function(){return d},useQuery:function(){return P}});var r,i=n(53312),o=n(54887).unstable_batchedUpdates;i.V.setBatchNotifyFunction(o);var s=n(3765),a=console;(0,s.E)(a);var u=n(2265),c=u.createContext(void 0),l=u.createContext(!1);function f(t){return t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var h=function(){var t=u.useContext(f(u.useContext(l)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},d=function(t){var e=t.client,n=t.contextSharing,r=void 0!==n&&n,i=t.children;u.useEffect(function(){return e.mount(),function(){e.unmount()}},[e]);var o=f(r);return u.createElement(l.Provider,{value:r},u.createElement(o.Provider,{value:e},i))},p=n(1119),v=n(88671),y=n(68200),m=n(71230),g=n(1063),b=n(86348),w=function(t){function e(e,n){var r;return(r=t.call(this)||this).client=e,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,v.Z)(e,t);var n=e.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),O(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return C(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return C(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(t,e){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&E(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(e),i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();var o=this.computeRefetchInterval();i&&(this.currentQuery!==r||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)},n.getOptimisticResult=function(t){var e=this.client.defaultQueryObserverOptions(t),n=this.client.getQueryCache().build(this.client,e);return this.createResult(n,e)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(t,e){var n=this,r={},i=function(t){n.trackedProps.includes(t)||n.trackedProps.push(t)};return Object.keys(t).forEach(function(e){Object.defineProperty(r,e,{configurable:!1,enumerable:!0,get:function(){return i(e),t[e]}})}),(e.useErrorBoundary||e.suspense)&&i("error"),r},n.getNextResult=function(t){var e=this;return new Promise(function(n,r){var i=e.subscribe(function(e){e.isFetching||(i(),e.isError&&(null==t?void 0:t.throwOnError)?r(e.error):n(e))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(t){return this.fetch((0,p.Z)({},t,{meta:{refetchPage:null==t?void 0:t.refetchPage}}))},n.fetchOptimistic=function(t){var e=this,n=this.client.defaultQueryObserverOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then(function(){return e.createResult(r,n)})},n.fetch=function(t){var e=this;return this.executeFetch(t).then(function(){return e.updateResult(),e.currentResult})},n.executeFetch=function(t){this.updateQuery();var e=this.currentQuery.fetch(this.options,t);return(null==t?void 0:t.throwOnError)||(e=e.catch(y.ZT)),e},n.updateStaleTimeout=function(){var t=this;if(this.clearStaleTimeout(),!y.sk&&!this.currentResult.isStale&&(0,y.PN)(this.options.staleTime)){var e=(0,y.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(function(){t.currentResult.isStale||t.updateResult()},e+1)}},n.computeRefetchInterval=function(){var t;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(t=this.options.refetchInterval)&&t},n.updateRefetchInterval=function(t){var e=this;this.clearRefetchInterval(),this.currentRefetchInterval=t,!y.sk&&!1!==this.options.enabled&&(0,y.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(function(){(e.options.refetchIntervalInBackground||m.j.isFocused())&&e.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(t,e){var n,r,i=this.currentQuery,o=this.options,a=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,l=t!==i,f=l?t.state:this.currentQueryInitialState,h=l?this.currentResult:this.previousQueryResult,d=t.state,p=d.dataUpdatedAt,v=d.error,m=d.errorUpdatedAt,g=d.isFetching,b=d.status,w=!1,C=!1;if(e.optimisticResults){var _=this.hasListeners(),P=!_&&O(t,e),I=_&&E(t,i,e,o);(P||I)&&(g=!0,p||(b="loading"))}if(e.keepPreviousData&&!d.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==b)n=h.data,p=h.dataUpdatedAt,b=h.status,w=!0;else if(e.select&&void 0!==d.data){if(a&&d.data===(null==u?void 0:u.data)&&e.select===this.selectFn)n=this.selectResult;else try{this.selectFn=e.select,n=e.select(d.data),!1!==e.structuralSharing&&(n=(0,y.Q$)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(t){(0,s.j)().error(t),this.selectError=t}}else n=d.data;if(void 0!==e.placeholderData&&void 0===n&&("loading"===b||"idle"===b)){if((null==a?void 0:a.isPlaceholderData)&&e.placeholderData===(null==c?void 0:c.placeholderData))r=a.data;else if(r="function"==typeof e.placeholderData?e.placeholderData():e.placeholderData,e.select&&void 0!==r)try{r=e.select(r),!1!==e.structuralSharing&&(r=(0,y.Q$)(null==a?void 0:a.data,r)),this.selectError=null}catch(t){(0,s.j)().error(t),this.selectError=t}void 0!==r&&(b="success",n=r,C=!0)}return this.selectError&&(v=this.selectError,n=this.selectResult,m=Date.now(),b="error"),{status:b,isLoading:"loading"===b,isSuccess:"success"===b,isError:"error"===b,isIdle:"idle"===b,data:n,dataUpdatedAt:p,error:v,errorUpdatedAt:m,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>f.dataUpdateCount||d.errorUpdateCount>f.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==b,isLoadingError:"error"===b&&0===d.dataUpdatedAt,isPlaceholderData:C,isPreviousData:w,isRefetchError:"error"===b&&0!==d.dataUpdatedAt,isStale:S(t,e),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(t,e){if(!e)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i||"tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(t).some(function(n){var r=t[n]!==e[n],s=null==o?void 0:o.some(function(t){return t===n}),a=null==i?void 0:i.some(function(t){return t===n});return r&&!a&&(!o||s)})},n.updateResult=function(t){var e=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,y.VS)(this.currentResult,e)){var n={cache:!0};(null==t?void 0:t.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,e)&&(n.listeners=!0),this.notify((0,p.Z)({},n,t))}},n.updateQuery=function(){var t=this.client.getQueryCache().build(this.client,this.options);if(t!==this.currentQuery){var e=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==e||e.removeObserver(this),t.addObserver(this))}},n.onQueryUpdate=function(t){var e={};"success"===t.type?e.onSuccess=!0:"error"!==t.type||(0,b.DV)(t.error)||(e.onError=!0),this.updateResult(e),this.hasListeners()&&this.updateTimers()},n.notify=function(t){var e=this;i.V.batch(function(){t.onSuccess?(null==e.options.onSuccess||e.options.onSuccess(e.currentResult.data),null==e.options.onSettled||e.options.onSettled(e.currentResult.data,null)):t.onError&&(null==e.options.onError||e.options.onError(e.currentResult.error),null==e.options.onSettled||e.options.onSettled(void 0,e.currentResult.error)),t.listeners&&e.listeners.forEach(function(t){t(e.currentResult)}),t.cache&&e.client.getQueryCache().notify({query:e.currentQuery,type:"observerResultsUpdated"})})},e}(g.l);function O(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&C(t,e,e.refetchOnMount)}function C(t,e,n){if(!1!==e.enabled){var r="function"==typeof n?n(t):n;return"always"===r||!1!==r&&S(t,e)}return!1}function E(t,e,n,r){return!1!==n.enabled&&(t!==e||!1===r.enabled)&&(!n.suspense||"error"!==t.state.status)&&S(t,n)}function S(t,e){return t.isStaleByTime(e.staleTime)}var _=u.createContext((r=!1,{clearReset:function(){r=!1},reset:function(){r=!0},isReset:function(){return r}}));function P(t,e,n){return function(t,e){var n,r,o,s=u.useRef(!1),a=u.useState(0)[1],c=h(),l=u.useContext(_),f=c.defaultQueryObserverOptions(t);f.optimisticResults=!0,f.onError&&(f.onError=i.V.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=i.V.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=i.V.batchCalls(f.onSettled)),f.suspense&&("number"!=typeof f.staleTime&&(f.staleTime=1e3),0===f.cacheTime&&(f.cacheTime=1)),(f.suspense||f.useErrorBoundary)&&!l.isReset()&&(f.retryOnMount=!1);var d=u.useState(function(){return new e(c,f)})[0],p=d.getOptimisticResult(f);if(u.useEffect(function(){s.current=!0,l.clearReset();var t=d.subscribe(i.V.batchCalls(function(){s.current&&a(function(t){return t+1})}));return d.updateResult(),function(){s.current=!1,t()}},[l,d]),u.useEffect(function(){d.setOptions(f,{listeners:!1})},[f,d]),f.suspense&&p.isLoading)throw d.fetchOptimistic(f).then(function(t){var e=t.data;null==f.onSuccess||f.onSuccess(e),null==f.onSettled||f.onSettled(e,null)}).catch(function(t){l.clearReset(),null==f.onError||f.onError(t),null==f.onSettled||f.onSettled(void 0,t)});if(p.isError&&!l.isReset()&&!p.isFetching&&(n=f.suspense,r=f.useErrorBoundary,o=[p.error,d.getCurrentQuery()],"function"==typeof r?r.apply(void 0,o):"boolean"==typeof r?r:!!n))throw p.error;return"tracked"===f.notifyOnChangeProps&&(p=d.trackResult(p,f)),p}((0,y._v)(t,e,n),w)}},93755:function(t,e,n){"use strict";n.d(e,{Xu:function(){return B},YT:function(){return N}});var r,i,o,s,a,u,c,l,f,h,d,p=n(80867),v=n.n(p),y=function(t){this.startX=t.startX,this.startY=t.startY,this.endX=t.endX,this.endY=t.endY,this.totalX=this.endX-this.startX,this.totalY=this.endY-this.startY,this.startMultiplierX=t.startMultiplierX||1,this.endMultiplierX=t.endMultiplierX||1,this.startMultiplierY=t.startMultiplierY||1,this.endMultiplierY=t.endMultiplierY||1};function m(){return(m=Object.assign||function(t){for(var e=1;et?-1:1)),1)}function j(t,e){var n=t.start,r=t.end,i=t.unit;if("%"===i){var o=e/100;n*=o,r*=o}if("vw"===i){var s=n/100,a=r/100;n=window.innerWidth*s,r=window.innerWidth*a}if("vh"===i){var u=n/100,c=r/100;n=window.innerHeight*u,r=window.innerHeight*c}return{start:n,end:r}}var x={start:0,end:0,unit:""},A=function(t,e,n){return Math.min(Math.max(t,e),n)},k=function(){function t(t){var e,n;this.el=t.el,this.props=t.props,this.scrollAxis=t.scrollAxis,this.disabledParallaxController=t.disabledParallaxController||!1,this.id=++g,this.effects=P(this.props,this.scrollAxis),this.isInView=null,this.progress=0,this._setElementEasing(t.props.easing),e=t.el,n=Object.keys(this.effects).includes("opacity"),e.style.willChange="transform"+(n?",opacity":"")}var e=t.prototype;return e.updateProps=function(t){return this.props=m({},this.props,t),this.effects=P(t,this.scrollAxis),this._setElementEasing(t.easing),this},e.setCachedAttributes=function(t,e){R(this),this.rect=new b({el:this.props.targetElement||this.el,rootMargin:this.props.rootMargin,view:t});var n,r,i,o,s,a,u,c,l,f,d,p,v=(n=this.props,r=this.effects,i=this.scrollAxis,!n.rootMargin&&!n.targetElement&&!n.shouldDisableScalingTranslations&&(!!r.translateX&&i===h.horizontal||!!r.translateY&&i===h.vertical));return"number"==typeof this.props.startScroll&&"number"==typeof this.props.endScroll?this.limits=new y({startX:this.props.startScroll,startY:this.props.startScroll,endX:this.props.endScroll,endY:this.props.endScroll}):v?(this.limits=function(t,e,n,r,i,o){var s=n.translateX||x,a=n.translateY||x,u=j(s,t.width),c=u.start,l=u.end,f=j(a,t.height),d=f.start,p=f.end,v=t.top-e.height,m=t.left-e.width,g=t.bottom,b=t.right,w=1,O=1;i===h.vertical&&(O=w=D(d,p,e.height+t.height));var C=1,E=1;if(i===h.horizontal&&(E=C=D(c,l,e.width+t.width)),d<0&&(v+=d*w),p>0&&(g+=p*O),c<0&&(m+=c*C),l>0&&(b+=l*E),m+=r.x,b+=r.x,v+=r.y,g+=r.y,o){var S=r.y+t.tope.scrollHeight-e.height,I=r.x+t.right>e.scrollWidth-e.height;S&&P&&(w=1,O=1,v=0,g=e.scrollHeight-e.height),_&&I&&(C=1,E=1,m=0,b=e.scrollWidth-e.width),!S&&P&&(v=t.top-e.height+r.y,w=D(d,p,(g=e.scrollHeight-e.height)-v),O=1,d<0&&(v+=d*w)),!_&&I&&(m=t.left-e.width+r.x,C=D(c,l,(b=e.scrollWidth-e.width)-m),E=1,c<0&&(m+=c*C)),S&&!P&&(v=0,w=1,O=D(d,p,(g=t.bottom+r.y)-v),p>0&&(g+=p*O)),_&&!I&&(m=0,C=1,E=D(c,l,(b=t.right+r.x)-m),l>0&&(b+=l*E))}return new y({startX:m,startY:v,endX:b,endY:g,startMultiplierX:C,endMultiplierX:E,startMultiplierY:w,endMultiplierY:O})}(this.rect,t,this.effects,e,this.scrollAxis,this.props.shouldAlwaysCompleteAnimation),this.scaledEffects=(o=this.effects,s=this.limits,(a=m({},o)).translateX&&(a.translateX=m({},o.translateX,{start:a.translateX.start*s.startMultiplierX,end:a.translateX.end*s.endMultiplierX})),a.translateY&&(a.translateY=m({},o.translateY,{start:a.translateY.start*s.startMultiplierY,end:a.translateY.end*s.endMultiplierY})),a)):this.limits=(u=this.rect,c=this.props.shouldAlwaysCompleteAnimation,l=u.top-t.height,f=u.left-t.width,d=u.bottom,p=u.right,f+=e.x,p+=e.x,l+=e.y,d+=e.y,c&&(e.y+u.topt.scrollHeight-t.height&&(d=t.scrollHeight-t.height),p>t.scrollWidth-t.width&&(p=t.scrollWidth-t.width)),new y({startX:f,startY:l,endX:p,endY:d})),this._setElementStyles(),this},e._updateElementIsInView=function(t){var e=null===this.isInView;t!==this.isInView&&(t?this.props.onEnter&&this.props.onEnter(this):!e&&(this._setFinalProgress(),this._setElementStyles(),this.props.onExit&&this.props.onExit(this))),this.isInView=t},e._setFinalProgress=function(){var t=A(Math.round(this.progress),0,1);this._updateElementProgress(t)},e._setElementStyles=function(){this.props.disabled||this.disabledParallaxController||function(t,e,n){if(n){var r,i=M.reduce(function(n,r){var i=t[r]&&T(t[r],e);return void 0===i||void 0===i.value||void 0===i.unit?n:n+(r+"("+i.value)+i.unit+")"},""),o=void 0===(r=t.opacity&&T(t.opacity,e))||void 0===r.value||void 0===r.unit?"":""+r.value;n.style.transform=i,n.style.opacity=o}}(this.scaledEffects||this.effects,this.progress,this.el)},e._updateElementProgress=function(t){this.progress=t,this.props.onProgressChange&&this.props.onProgressChange(this.progress),this.props.onChange&&this.props.onChange(this)},e._setElementEasing=function(t){this.easing=E(t)},e.updateElementOptions=function(t){this.scrollAxis=t.scrollAxis,this.disabledParallaxController=t.disabledParallaxController||!1},e.updatePosition=function(t){if(!this.limits)return this;var e=this.scrollAxis===h.vertical,n=null===this.isInView,r=e?this.limits.startY:this.limits.startX,i=e?this.limits.endY:this.limits.endX,o=e?this.limits.totalY:this.limits.totalX,s=e?t.y:t.x,a=s>=r&&s<=i;if(this._updateElementIsInView(a),a){var u=I(r,o,s,this.easing);this._updateElementProgress(u),this._setElementStyles()}else n&&(this.progress=A(Math.round(I(r,o,s,this.easing)),0,1),this._setElementStyles());return this},t}(),Q=function(){function t(t){this.scrollContainer=t.scrollContainer,this.width=t.width,this.height=t.height,this.scrollHeight=t.scrollHeight,this.scrollWidth=t.scrollWidth}var e=t.prototype;return e.hasChanged=function(t){return t.width!==this.width||t.height!==this.height||t.scrollWidth!==this.scrollWidth||t.scrollHeight!==this.scrollHeight},e.setSize=function(t){return this.width=t.width,this.height=t.height,this.scrollHeight=t.scrollHeight,this.scrollWidth=t.scrollWidth,this},t}(),q=function(){function t(t,e){this.x=t,this.y=e,this.dx=0,this.dy=0}return t.prototype.setScroll=function(t,e){return this.dx=t-this.x,this.dy=e-this.y,this.x=t,this.y=e,this},t}(),F=function(){function t(t){var e=t.scrollAxis,n=void 0===e?h.vertical:e,r=t.scrollContainer,i=t.disabled;this.disabled=void 0!==i&&i,this.scrollAxis=n,this.elements=[],this._hasScrollContainer=!!r,this.viewEl=null!=r?r:window;var o=this._getScrollPosition(),s=o[0],a=o[1];this.scroll=new q(s,a),this.view=new Q({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:this._hasScrollContainer?r:void 0}),this._ticking=!1,this._supportsPassive=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}(),this._bindAllMethods(),this.disabled||(this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize())}t.init=function(e){if(!("undefined"!=typeof window))throw Error("Looks like ParallaxController.init() was called on the server. This method must be called on the client.");return new t(e)};var e=t.prototype;return e._bindAllMethods=function(){var t=this;["_addListeners","_removeListeners","_getScrollPosition","_handleScroll","_handleUpdateCache","_updateAllElements","_updateElementPosition","_setViewSize","_addResizeObserver","_checkIfViewHasChanged","_getViewParams","getElements","createElement","removeElementById","resetElementStyles","updateElementPropsById","update","updateScrollContainer","destroy"].forEach(function(e){t[e]=t[e].bind(t)})},e._addListeners=function(t){t.addEventListener("scroll",this._handleScroll,!!this._supportsPassive&&{passive:!0}),window.addEventListener("resize",this._handleUpdateCache,!1),window.addEventListener("blur",this._handleUpdateCache,!1),window.addEventListener("focus",this._handleUpdateCache,!1),window.addEventListener("load",this._handleUpdateCache,!1)},e._removeListeners=function(t){var e;t.removeEventListener("scroll",this._handleScroll,!1),window.removeEventListener("resize",this._handleUpdateCache,!1),window.removeEventListener("blur",this._handleUpdateCache,!1),window.removeEventListener("focus",this._handleUpdateCache,!1),window.removeEventListener("load",this._handleUpdateCache,!1),null==(e=this._resizeObserver)||e.disconnect()},e._addResizeObserver=function(){var t=this;try{var e=this._hasScrollContainer?this.viewEl:document.documentElement;this._resizeObserver=new ResizeObserver(function(){return t.update()}),this._resizeObserver.observe(e)}catch(t){console.warn("Failed to create the resize observer in the ParallaxContoller")}},e._getScrollPosition=function(){return[this._hasScrollContainer?this.viewEl.scrollLeft:window.pageXOffset,this._hasScrollContainer?this.viewEl.scrollTop:window.pageYOffset]},e._handleScroll=function(){var t,e=this._getScrollPosition(),n=e[0],r=e[1];this.scroll.setScroll(n,r),!this._ticking&&(null==(t=this.elements)?void 0:t.length)>0&&(this._ticking=!0,window.requestAnimationFrame(this._updateAllElements))},e._handleUpdateCache=function(){this._setViewSize(),this._updateAllElements({updateCache:!0})},e._updateAllElements=function(t){var e=this,n=(void 0===t?{}:t).updateCache;this.elements&&this.elements.forEach(function(t){n&&t.setCachedAttributes(e.view,e.scroll),e._updateElementPosition(t)}),this._ticking=!1},e._updateElementPosition=function(t){t.props.disabled||this.disabled||t.updatePosition(this.scroll)},e._getViewParams=function(){if(this._hasScrollContainer){var t=this.viewEl.offsetWidth,e=this.viewEl.offsetHeight,n=this.viewEl.scrollHeight,r=this.viewEl.scrollWidth;return this.view.setSize({width:t,height:e,scrollHeight:n,scrollWidth:r})}var i=document.documentElement;return{width:window.innerWidth||i.clientWidth,height:window.innerHeight||i.clientHeight,scrollHeight:i.scrollHeight,scrollWidth:i.scrollWidth}},e._setViewSize=function(){return this.view.setSize(this._getViewParams())},e._checkIfViewHasChanged=function(){return this.view.hasChanged(this._getViewParams())},e.getElements=function(){return this.elements},e.createElement=function(t){var e=new k(m({},t,{scrollAxis:this.scrollAxis,disabledParallaxController:this.disabled}));return e.setCachedAttributes(this.view,this.scroll),this.elements=this.elements?[].concat(this.elements,[e]):[e],this._updateElementPosition(e),this._checkIfViewHasChanged()&&this.update(),e},e.removeElementById=function(t){this.elements&&(this.elements=this.elements.filter(function(e){return e.id!==t}))},e.updateElementPropsById=function(t,e){this.elements&&(this.elements=this.elements.map(function(n){return n.id===t?n.updateProps(e):n})),this.update()},e.resetElementStyles=function(t){R(t)},e.update=function(){var t=this._getScrollPosition(),e=t[0],n=t[1];this.scroll.setScroll(e,n),this._setViewSize(),this._updateAllElements({updateCache:!0})},e.updateScrollContainer=function(t){this._removeListeners(this.viewEl),this.viewEl=t,this._hasScrollContainer=!!t,this.view=new Q({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:t}),this._setViewSize(),this._addListeners(this.viewEl),this._updateAllElements({updateCache:!0})},e.disableParallaxController=function(){this.disabled=!0,this._removeListeners(this.viewEl),this.elements&&this.elements.forEach(function(t){return R(t)})},e.enableParallaxController=function(){var t=this;this.disabled=!1,this.elements&&this.elements.forEach(function(e){return e.updateElementOptions({disabledParallaxController:!1,scrollAxis:t.scrollAxis})}),this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize()},e.disableAllElements=function(){console.warn("deprecated: use disableParallaxController() instead"),this.elements&&(this.elements=this.elements.map(function(t){return t.updateProps({disabled:!0})})),this.update()},e.enableAllElements=function(){console.warn("deprecated: use enableParallaxController() instead"),this.elements&&(this.elements=this.elements.map(function(t){return t.updateProps({disabled:!1})})),this.update()},e.destroy=function(){this._removeListeners(this.viewEl),this.elements&&this.elements.forEach(function(t){return R(t)}),this.elements=void 0},t}(),H=n(2265),U=["disabled","easing","endScroll","onChange","onEnter","onExit","onProgressChange","opacity","rootMargin","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","shouldAlwaysCompleteAnimation","shouldDisableScalingTranslations","speed","startScroll","targetElement","translateX","translateY"],L=H.createContext(null);function N(t){var e,n,r,i,o,s,a,u,c,l,f,h,d,p,v,y,m,g,b,w,O,C,E,S,_,P,I=function(){var t=(0,H.useContext)(L);if("undefined"==typeof window)return null;if(!t)throw Error("Could not find `react-scroll-parallax` context value. Please ensure the component is wrapped in a ");return t}(),T=(0,H.useRef)(null),M=(e=t.disabled,n=t.easing,r=t.endScroll,i=t.onChange,o=t.onEnter,s=t.onExit,a=t.onProgressChange,u=t.opacity,c=t.rootMargin,l=t.rotate,f=t.rotateX,h=t.rotateY,d=t.rotateZ,p=t.scale,v=t.scaleX,y=t.scaleY,m=t.scaleZ,g=t.shouldAlwaysCompleteAnimation,b=t.shouldDisableScalingTranslations,w=t.speed,O=t.startScroll,C=t.targetElement,E=t.translateX,S=t.translateY,_=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,U),{parallaxProps:(Object.keys(P={disabled:e,easing:n,endScroll:r,onChange:i,onEnter:o,onExit:s,onProgressChange:a,opacity:u,rootMargin:c,rotate:l,rotateX:f,rotateY:h,rotateZ:d,scale:p,scaleX:v,scaleY:y,scaleZ:m,shouldAlwaysCompleteAnimation:g,shouldDisableScalingTranslations:b,speed:w,startScroll:O,targetElement:C,translateX:E,translateY:S}).forEach(function(t){return void 0===P[t]&&delete P[t]}),P),rest:_}).parallaxProps;(0,H.useEffect)(function(){var t=I instanceof F;if("undefined"!=typeof window&&!I&&!t)throw Error("Must wrap your application's components in a .")},[I]);var R=(0,H.useState)(),D=R[0],j=R[1];return(0,H.useEffect)(function(){var t;if(T.current instanceof HTMLElement){var e={el:T.current,props:M};j(t=null==I?void 0:I.createElement(e))}else throw Error("You must assign the ref returned by the useParallax() hook to an HTML Element.");return function(){t&&(null==I||I.removeElementById(t.id))}},[]),(0,H.useEffect)(function(){D&&(t.disabled&&(null==I||I.resetElementStyles(D)),null==I||I.updateElementPropsById(D.id,M))},[t.disabled,t.easing,t.endScroll,t.onChange,t.onEnter,t.onExit,t.onProgressChange,t.opacity,t.rootMargin,t.rotate,t.rotateX,t.rotateY,t.rotateZ,t.scale,t.scaleX,t.scaleY,t.scaleZ,t.shouldAlwaysCompleteAnimation,t.shouldDisableScalingTranslations,t.speed,t.startScroll,t.targetElement,t.translateX,t.translateY]),{ref:T,controller:I,element:D}}function B(t){var e,n=(0,H.useRef)(null);return n.current||(n.current=(e={scrollAxis:t.scrollAxis||h.vertical,scrollContainer:t.scrollContainer,disabled:t.isDisabled},"undefined"!=typeof window?F.init(e):null)),(0,H.useEffect)(function(){t.scrollContainer&&n.current&&n.current.updateScrollContainer(t.scrollContainer)},[t.scrollContainer,n.current]),(0,H.useEffect)(function(){t.isDisabled&&n.current&&n.current.disableParallaxController(),!t.isDisabled&&n.current&&n.current.enableParallaxController()},[t.isDisabled,n.current]),(0,H.useEffect)(function(){return function(){(null==n?void 0:n.current)&&(null==n||n.current.destroy())}},[]),H.createElement(L.Provider,{value:n.current},t.children)}},72588:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n=Math.floor(s)&&f=Math.floor(a),v=n.getActiveLink();return p?(i===v&&n.setActiveLink(void 0),t.props.hashSpy&&h.getHash()===i&&h.changeHash(),t.props.spy&&t.state.active&&(t.setState({active:!1}),t.props.onSetInactive&&t.props.onSetInactive()),c.updateStates()):d&&v!==i?(n.setActiveLink(i),t.props.hashSpy&&h.changeHash(i),t.props.spy&&(t.setState({active:!0}),t.props.onSetActive&&t.props.onSetActive(i)),c.updateStates()):void 0}}};return f.propTypes=d,f.defaultProps={offset:0},f},Element:function(t){console.warn("Helpers.Element is deprecated since v1.7.0");var e=function(e){function n(t){o(this,n);var e=s(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.childBindings={domNode:null},e}return a(n,e),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentDidUpdate",value:function(t){this.props.name!==t.name&&this.registerElems(this.props.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;l.unregister(this.props.name)}},{key:"registerElems",value:function(t){l.register(t,this.childBindings.domNode)}},{key:"render",value:function(){return u.createElement(t,r({},this.props,{parentBindings:this.childBindings}))}}]),n}(u.Component);return e.propTypes={name:f.string,id:f.string},e}}},38552:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=i.duration?1:e(i.progress/i.duration),i.currentPosition=i.startPosition+Math.ceil(i.delta*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?n.horizontal?i.containerElement.scrollLeft=i.currentPosition:i.containerElement.scrollTop=i.currentPosition:n.horizontal?window.scrollTo(i.currentPosition,0):window.scrollTo(0,i.currentPosition),i.percent<1){var o=t.bind(null,e,n);c.call(window,o);return}s.default.registered.end&&s.default.registered.end(i.to,i.target,i.currentPosition)},y=function(t){t.data.containerElement=t?t.containerId?document.getElementById(t.containerId):t.container&&t.container.nodeType?t.container:document:null},m=function(t,e,n,r){if(e.data=e.data||l(),window.clearTimeout(e.data.delayTimeout),o.default.subscribe(function(){e.data.cancel=!0}),y(e),e.data.start=null,e.data.cancel=!1,e.data.startPosition=e.horizontal?f(e):h(e),e.data.targetPosition=e.absolute?t:t+e.data.startPosition,e.data.startPosition===e.data.targetPosition){s.default.registered.end&&s.default.registered.end(e.data.to,e.data.target,e.data.currentPosition);return}e.data.delta=Math.round(e.data.targetPosition-e.data.startPosition),e.data.duration=("function"==typeof(i=e.duration)?i:function(){return i})(e.data.delta),e.data.duration=isNaN(parseFloat(e.data.duration))?1e3:parseFloat(e.data.duration),e.data.to=n,e.data.target=r;var i,a=u(e),d=v.bind(null,a,e);if(e&&e.delay>0){e.data.delayTimeout=window.setTimeout(function(){s.default.registered.begin&&s.default.registered.begin(e.data.to,e.data.target),c.call(window,d)},e.delay);return}s.default.registered.begin&&s.default.registered.begin(e.data.to,e.data.target),c.call(window,d)},g=function(t){return(t=r({},t)).data=t.data||l(),t.absolute=!0,t};e.default={animateTopScroll:m,getAnimationType:u,scrollToTop:function(t){m(0,g(t))},scrollToBottom:function(t){y(t=g(t)),m(t.horizontal?d(t):p(t),t)},scrollTo:function(t,e){m(t,g(e))},scrollMore:function(t,e){y(e=g(e)),m(t+(e.horizontal?f(e):h(e)),e)}}},82319:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62430),i=["mousedown","wheel","touchmove","keydown"];e.default={subscribe:function(t){return"undefined"!=typeof document&&i.forEach(function(e){return(0,r.addPassiveEventListener)(document,e,t)})}}},62430:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addPassiveEventListener=function(t,e,r){var i=r.name;i||(i=e,console.warn("Listener must be a named function.")),n.has(e)||n.set(e,new Set);var o=n.get(e);if(!o.has(i)){var s=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}();t.addEventListener(e,r,!!s&&{passive:!0}),o.add(i)}},e.removePassiveEventListener=function(t,e,r){t.removeEventListener(e,r),n.get(e).delete(r.name||e)};var n=new Map},81049:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e=Math.floor(f)&&v=Math.floor(h)}else{var y=0,m=0,g=0;if(i.getBoundingClientRect&&(g=i.getBoundingClientRect().top),!a||t.props.isDynamic){if(!(a=n.get(s)))return;var b=a.getBoundingClientRect();m=(y=b.top-g+r)+b.height}var w=r-t.props.offset;u=w>=Math.floor(y)&&w=Math.floor(m)}var O=n.getActiveLink();if(l){if(s===O&&n.setActiveLink(void 0),t.props.hashSpy&&c.default.getHash()===s){var C=t.props.saveHashHistory;c.default.changeHash("",void 0!==C&&C)}t.props.spy&&t.state.active&&(t.setState({active:!1}),t.props.onSetInactive&&t.props.onSetInactive(s,a))}if(u&&(O!==s||!1===t.state.active)){n.setActiveLink(s);var E=t.props.saveHashHistory;t.props.hashSpy&&c.default.changeHash(s,void 0!==E&&E),t.props.spy&&(t.setState({active:!0}),t.props.onSetActive&&t.props.onSetActive(s,a))}}}};return u.propTypes=f,u.defaultProps={offset:0},u}},86047:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=(r=n(79118))&&r.__esModule?r:{default:r},o=n(62430),s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:66;return(0,i.default)(t,e)},a={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(t,e){if(t){var n=s(function(e){a.scrollHandler(t)},e);return a.scrollSpyContainers.push(t),(0,o.addPassiveEventListener)(t,"scroll",n),function(){(0,o.removePassiveEventListener)(t,"scroll",n),a.scrollSpyContainers.splice(a.scrollSpyContainers.indexOf(t),1)}}return function(){}},isMounted:function(t){return -1!==a.scrollSpyContainers.indexOf(t)},currentPositionX:function(t){if(t!==document)return t.scrollLeft;var e=void 0!==window.scrollY,n="CSS1Compat"===(document.compatMode||"");return e?window.scrollX:n?document.documentElement.scrollLeft:document.body.scrollLeft},currentPositionY:function(t){if(t!==document)return t.scrollTop;var e=void 0!==window.scrollX,n="CSS1Compat"===(document.compatMode||"");return e?window.scrollY:n?document.documentElement.scrollTop:document.body.scrollTop},scrollHandler:function(t){(a.scrollSpyContainers[a.scrollSpyContainers.indexOf(t)].spyCallbacks||[]).forEach(function(e){return e(a.currentPositionX(t),a.currentPositionY(t))})},addStateHandler:function(t){a.spySetState.push(t)},addSpyHandler:function(t,e){var n=a.scrollSpyContainers[a.scrollSpyContainers.indexOf(e)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(t)},updateStates:function(){a.spySetState.forEach(function(t){return t()})},unmount:function(t,e){a.scrollSpyContainers.forEach(function(t){return t.spyCallbacks&&t.spyCallbacks.length&&t.spyCallbacks.indexOf(e)>-1&&t.spyCallbacks.splice(t.spyCallbacks.indexOf(e),1)}),a.spySetState&&a.spySetState.length&&a.spySetState.indexOf(t)>-1&&a.spySetState.splice(a.spySetState.indexOf(t),1),document.removeEventListener("scroll",a.scrollHandler)},update:function(){return a.scrollSpyContainers.forEach(function(t){return a.scrollHandler(t)})}};e.default=a},28288:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e