1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4184:function(t,e){var n;/*! 2 Copyright (c) 2018 Jed Watson. 3 Licensed under the MIT License (MIT), see 4 http://jedwatson.github.io/classnames 5*/!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)){if(n.length){var u=i.apply(null,n);u&&t.push(u)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){t.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&t.push(s)}}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0!==(n=(function(){return i}).apply(e,[]))&&(t.exports=n)}()},9548:function(t,e,n){"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.BroadcastChannel=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(e){var n=function(n){if(n.key===t){var r,i=JSON.parse(null!==(r=n.newValue)&&void 0!==r?r:"{}");(null==i?void 0:i.event)==="session"&&null!=i&&i.data&&e(i)}};return window.addEventListener("storage",n),function(){return window.removeEventListener("storage",n)}},post:function(e){if("undefined"!=typeof window)try{localStorage.setItem(t,JSON.stringify(a(a({},e),{},{timestamp:f()})))}catch(t){}}}},e.apiBaseUrl=l,e.fetchData=function(t,e,n){return c.apply(this,arguments)},e.now=f;var i=r(n(4687)),o=r(n(8416)),u=r(n(7156));function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){(0,o.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(){return(c=(0,u.default)(i.default.mark(function t(e,n,r){var o,u,s,c,f,h,d,p,v,y=arguments;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=(o=y.length>3&&void 0!==y[3]?y[3]:{}).ctx,c=void 0===(s=o.req)?null==u?void 0:u.req:s,f="".concat(l(n),"/").concat(e),t.prev=2,d={headers:a({"Content-Type":"application/json"},null!=c&&null!==(h=c.headers)&&void 0!==h&&h.cookie?{cookie:c.headers.cookie}:{})},null!=c&&c.body&&(d.body=JSON.stringify(c.body),d.method="POST"),t.next=7,fetch(f,d);case 7:return p=t.sent,t.next=10,p.json();case 10:if(v=t.sent,p.ok){t.next=13;break}throw v;case 13:return t.abrupt("return",Object.keys(v).length>0?v:null);case 16:return t.prev=16,t.t0=t.catch(2),r.error("CLIENT_FETCH_ERROR",{error:t.t0,url:f}),t.abrupt("return",null);case 20:case"end":return t.stop()}},t,null,[[2,16]])}))).apply(this,arguments)}function l(t){return"undefined"==typeof window?"".concat(t.baseUrlServer).concat(t.basePathServer):t.basePath}function f(){return Math.floor(Date.now()/1e3)}},6925:function(t,e,n){"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedStrategy=e.UnknownError=e.OAuthCallbackError=e.MissingSecret=e.MissingAuthorize=e.MissingAdapterMethods=e.MissingAdapter=e.MissingAPIRoute=e.InvalidCallbackUrl=e.AccountNotLinkedError=void 0,e.adapterErrorHandler=function(t,e){if(t)return Object.keys(t).reduce(function(n,r){return n[r]=(0,o.default)(i.default.mark(function n(){var o,u,s,a,c,l=arguments;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:for(n.prev=0,u=Array(o=l.length),s=0;s<o;s++)u[s]=l[s];return e.debug("adapter_".concat(r),{args:u}),a=t[r],n.next=6,a.apply(void 0,u);case 6:return n.abrupt("return",n.sent);case 9:throw n.prev=9,n.t0=n.catch(0),e.error("adapter_error_".concat(r),n.t0),(c=new p(n.t0)).name="".concat(_(r),"Error"),c;case 15:case"end":return n.stop()}},n,null,[[0,9]])})),n},{})},e.capitalize=_,e.eventsErrorHandler=function(t,e){return Object.keys(t).reduce(function(n,r){return n[r]=(0,o.default)(i.default.mark(function n(){var o,u=arguments;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,o=t[r],n.next=4,o.apply(void 0,u);case 4:return n.abrupt("return",n.sent);case 7:n.prev=7,n.t0=n.catch(0),e.error("".concat(S(r),"_EVENT_ERROR"),n.t0);case 10:case"end":return n.stop()}},n,null,[[0,7]])})),n},{})},e.upperSnake=S;var i=r(n(4687)),o=r(n(7156)),u=r(n(6115)),s=r(n(8416)),a=r(n(6690)),c=r(n(9728)),l=r(n(1655)),f=r(n(4993)),h=r(n(3808));function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var n,r=(0,h.default)(t);if(e){var i=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,f.default)(this,n)}}var p=function(t){(0,l.default)(n,t);var e=d(n);function n(t){var r,i;return(0,a.default)(this,n),(i=e.call(this,null!==(r=null==t?void 0:t.message)&&void 0!==r?r:t)).name="UnknownError",i.code=t.code,t instanceof Error&&(i.stack=t.stack),i}return(0,c.default)(n,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}]),n}((0,r(n(3496)).default)(Error));e.UnknownError=p;var v=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","OAuthCallbackError"),t}return(0,c.default)(n)}(p);e.OAuthCallbackError=v;var y=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","AccountNotLinkedError"),t}return(0,c.default)(n)}(p);e.AccountNotLinkedError=y;var b=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","MissingAPIRouteError"),(0,s.default)((0,u.default)(t),"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),t}return(0,c.default)(n)}(p);e.MissingAPIRoute=b;var m=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","MissingSecretError"),(0,s.default)((0,u.default)(t),"code","NO_SECRET"),t}return(0,c.default)(n)}(p);e.MissingSecret=m;var g=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","MissingAuthorizeError"),(0,s.default)((0,u.default)(t),"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),t}return(0,c.default)(n)}(p);e.MissingAuthorize=g;var x=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","MissingAdapterError"),(0,s.default)((0,u.default)(t),"code","
5EMAIL_REQUIRES_ADAPTER_ERROR"),t}return(0,c.default)(n)}(p);e.MissingAdapter=x;var w=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","MissingAdapterMethodsError"),(0,s.default)((0,u.default)(t),"code","MISSING_ADAPTER_METHODS_ERROR"),t}return(0,c.default)(n)}(p);e.MissingAdapterMethods=w;var O=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","UnsupportedStrategyError"),(0,s.default)((0,u.default)(t),"code","CALLBACK_CREDENTIALS_JWT_ERROR"),t}return(0,c.default)(n)}(p);e.UnsupportedStrategy=O;var E=function(t){(0,l.default)(n,t);var e=d(n);function n(){var t;(0,a.default)(this,n);for(var r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),(0,s.default)((0,u.default)(t),"name","InvalidCallbackUrl"),(0,s.default)((0,u.default)(t),"code","INVALID_CALLBACK_URL_ERROR"),t}return(0,c.default)(n)}(p);function S(t){return t.replace(/([A-Z])/g,"_$1").toUpperCase()}function _(t){return"".concat(t[0].toUpperCase()).concat(t.slice(1))}e.InvalidCallbackUrl=E},3299:function(t,e,n){"use strict";var r,i,o,u,s,a=n(3454),c=n(4836),l=n(8698);Object.defineProperty(e,"__esModule",{value:!0});var f={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};e.SessionContext=void 0,e.SessionProvider=function(t){if(!j)throw Error("React Context is unavailable in Server Components");var e,n,r,i,o,u,s=t.children,a=t.basePath,c=t.refetchInterval,l=t.refetchWhenOffline;a&&(P.basePath=a);var f=void 0!==t.session;P._lastSync=f?(0,g.now)():0;var d=y.useState(function(){return f&&(P._session=t.session),t.session}),b=(0,v.default)(d,2),m=b[0],w=b[1],O=y.useState(!f),E=(0,v.default)(O,2),S=E[0],_=E[1];y.useEffect(function(){return P._getSession=(0,p.default)(h.default.mark(function t(){var e,n,r=arguments;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=(r.length>0&&void 0!==r[0]?r[0]:{}).event,t.prev=1,!((n="storage"===e)||void 0===P._session)){t.next=10;break}return P._lastSync=(0,g.now)(),t.next=7,T({broadcast:!n});case 7:return P._session=t.sent,w(P._session),t.abrupt("return");case 10:if(!(!e||null===P._session||(0,g.now)()<P._lastSync)){t.next=12;break}return t.abrupt("return");case 12:return P._lastSync=(0,g.now)(),t.next=15,T();case 15:P._session=t.sent,w(P._session),t.next=22;break;case 19:t.prev=19,t.t0=t.catch(1),R.error("CLIENT_SESSION_ERROR",t.t0);case 22:return t.prev=22,_(!1),t.finish(22);case 25:case"end":return t.stop()}},t,null,[[1,19,22,25]])})),P._getSession(),function(){P._lastSync=0,P._session=void 0,P._getSession=function(){}}},[]),y.useEffect(function(){var t=C.receive(function(){return P._getSession({event:"storage"})});return function(){return t()}},[]),y.useEffect(function(){var e=t.refetchOnWindowFocus,n=void 0===e||e,r=function(){n&&"visible"===document.visibilityState&&P._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",r,!1),function(){return document.removeEventListener("visibilitychange",r,!1)}},[t.refetchOnWindowFocus]);var A=(e=y.useState("undefined"!=typeof navigator&&navigator.onLine),r=(n=(0,v.default)(e,2))[0],i=n[1],o=function(){return i(!0)},u=function(){return i(!1)},y.useEffect(function(){return window.addEventListener("online",o),window.addEventListener("offline",u),function(){window.removeEventListener("online",o),window.removeEventListener("offline",u)}},[]),r),L=!1!==l||A;y.useEffect(function(){if(c&&L){var t=setInterval(function(){P._session&&P._getSession({event:"poll"})},1e3*c);return function(){return clearInterval(t)}}},[c,L]);var M=y.useMemo(function(){return{data:m,status:S?"loading":m?"authenticated":"unauthenticated",update:function(t){return(0,p.default)(h.default.mark(function e(){var n;return h.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(S||!m)){e.next=2;break}return e.abrupt("return");case 2:return _(!0),e.t0=g.fetchData,e.t1=P,e.t2=R,e.next=8,k();case 8:return e.t3=e.sent,e.t4=t,e.t5={csrfToken:e.t3,data:e.t4},e.t6={body:e.t5},e.t7={req:e.t6},e.next=15,(0,e.t0)("session",e.t1,e.t2,e.t7);case 15:return n=e.sent,_(!1),n&&(w(n),C.post({event:"session",data:{trigger:"getSession"}})),e.abrupt("return",n);case 19:case"end":return e.stop()}},e)}))()}}},[m,S]);return(0,x.jsx)(j.Provider,{value:M,children:s})},e.getCsrfToken=k,e.getProviders=M,e.getSession=T,e.signIn=function(t,e,n){return F.apply(this,arguments)},e.signOut=function(t){return U.apply(this,arguments)},e.useSession=function(t){if(!j)throw Error("React Context is unavailable in Server Components");var e=y.useContext(j),n=null!=t?t:{},r=n.required,i=n.onUnauthenticated,o=r&&"unauthenticated"===e.status;return(y.useEffect(function(){if(o){var t="/api/auth/signin?".concat(new
5URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));i?i():window.location.href=t}},[o,i]),o)?{data:e.data,update:e.update,status:"loading"}:e};var h=c(n(4687)),d=c(n(8416)),p=c(n(7156)),v=c(n(7424)),y=E(n(7294)),b=E(n(6553)),m=c(n(762)),g=n(9548),x=n(5893),w=n(527);function O(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(O=function(t){return t?n:e})(t)}function E(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==l(t)&&"function"!=typeof t)return{default:t};var n=O(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var u=i?Object.getOwnPropertyDescriptor(t,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}function S(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?S(Object(n),!0).forEach(function(e){(0,d.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}
5Object.keys(w).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(f,t))&&(t in e&&e[t]===w[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return w[t]}}))});var P={baseUrl:(0,m.default)(null!==(r=a.env.NEXTAUTH_URL)&&void 0!==r?r:a.env.VERCEL_URL).origin,basePath:(0,m.default)(a.env.NEXTAUTH_URL).path,baseUrlServer:(0,m.default)(null!==(i=null!==(o=a.env.NEXTAUTH_URL_INTERNAL)&&void 0!==o?o:a.env.NEXTAUTH_URL)&&void 0!==i?i:a.env.VERCEL_URL).origin,basePathServer:(0,m.default)(null!==(u=a.env.NEXTAUTH_URL_INTERNAL)&&void 0!==u?u:a.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},C=(0,g.BroadcastChannel)(),R=(0,b.proxyLogger)(b.default,P.basePath),j=null===(s=y.createContext)||void 0===s?void 0:s.call(y,void 0);function T(t){return A.apply(this,arguments)}function A(){return(A=(0,p.default)(h.default.mark(function t(e){var n,r;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.fetchData)("session",P,R,e);case 2:return r=t.sent,(null===(n=null==e?void 0:e.broadcast)||void 0===n||n)&&C.post({event:"session",data:{trigger:"getSession"}}),t.abrupt("return",r);case 5:case"end":return t.stop()}},t)}))).apply(this,arguments)}function k(t){return L.apply(this,arguments)}function L(){return(L=(0,p.default)(h.default.mark(function t(e){var n;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.fetchData)("csrf",P,R,e);case 2:return n=t.sent,t.abrupt("return",null==n?void 0:n.csrfToken);case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}function M(){return Q.apply(this,arguments)}function Q(){return(Q=(0,p.default)(h.default.mark(function t(){return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.fetchData)("providers",P,R);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},t)}))).apply(this,arguments)}function F(){return(F=(0,p.default)(h.default.mark(function t(e,n,r){var i,o,u,s,a,c,l,f,d,p,v,y,b,m,x,w,O;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=void 0===(o=(i=null!=n?n:{}).callbackUrl)?window.location.href:o,a=void 0===(s=i.redirect)||s,c=(0,g.apiBaseUrl)(P),t.next=4,M();case 4:if(l=t.sent){t.next=8;break}return window.location.href="".concat(c,"/error"),t.abrupt("return");case 8:if(!(!e||!(e in l))){t.next=11;break}return window.location.href="".concat(c,"/signin?").concat(new URLSearchParams({callbackUrl:u})),t.abrupt("return");case 11:return f="credentials"===l[e].type,d="email"===l[e].type,p=f||d,v="".concat(c,"/").concat(f?"callback":"signin","/").concat(e),y="".concat(v).concat(r?"?".concat(new URLSearchParams(r)):""),t.t0=fetch,t.t1=y,t.t2={"Content-Type":"application/x-www-form-urlencoded"},t.t3=URLSearchParams,t.t4=_,t.t5=_({},n),t.t6={},t.next=25,k();case 25:return t.t7=t.sent,t.t8=u,t.t9={csrfToken:t.t7,callbackUrl:t.t8,json:!0},t.t10=(0,t.t4)(t.t5,t.t6,t.t9),t.t11=new t.t3(t.t10),t.t12={method:"post",headers:t.t2,body:t.t11},t.next=33,(0,t.t0)(t.t1,t.t12);case 33:return b=t.sent,t.next=36,b.json();case 36:if(m=t.sent,!(a||!p)){t.next=42;break}return w=null!==(x=m.url)&&void 0!==x?x:u,window.location.href=w,w.includes("#")&&window.location.reload(),t.abrupt("return");case 42:if(O=new URL(m.url).searchParams.get("error"),!b.ok){t.next=46;break}return t.next=46,P._getSession({event:"storage"});case 46:return t.abrupt("return",{error:O,status:b.status,ok:b.ok,url:O?null:m.url});case 47:case"end":return t.stop()}},t)}))).apply(this,arguments)}function U(){return(U=(0,p.default)(h.default.mark(function t(e){var n,r,i,o,u,s,a,c,l;return h.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=void 0===(r=(null!=e?e:{}).callbackUrl)?window.location.href:r,o=(0,g.apiBaseUrl)(P),t.t0={"Content-Type":"application/x-www-form-urlencoded"},t.t1=URLSearchParams,t.next=6,k();case 6:return t.t2=t.sent,t.t3=i,t.t4={csrfToken:t.t2,callbackUrl:t.t3,json:!0},t.t5=new t.t1(t.t4),u={method:"post",headers:t.t0,body:t.t5},t.next=13,fetch("".concat(o,"/signout"),u);case 13:return s=t.sent,t.next=16,s.json();case 16:if(a=t.sent,C.post({event:"session",data:{trigger:"signout"}}),!(null===(n=null==e?void 0:e.redirect)||void 0===n||n)){t.next=23;break}return l=null!==(c=a.url)&&void 0!==c?c:i,window.location.href=l,l.includes("#")&&window.location.reload(),t.abrupt("return");case 23:return t.next=25,P._getSession({event:"storage"});case 25:return t.abrupt("return",a);case 26:case"end":return t.stop()}},t)}))).apply(this,arguments)}e.SessionContext=j},527:function(t,e){"use strict";
5Object.defineProperty(e,"__esModule",{value:!0})},6553:function(t,e,n){"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.proxyLogger=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,e=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return t;var n={},r=function(t){n[t]=function(n,r){a[t](n,r),"error"===t&&(r=s(r)),r.client=!0;var o="".concat(e,"/_log"),c=new URLSearchParams(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){(0,i.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({level:t,code:n},r));return navigator.sendBeacon?navigator.sendBeacon(o,c):fetch(o,{method:"POST",body:c,keepalive:!0})}};for(var o in t)r(o);return n}catch(t){return a}},e.setLogger=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;e||(a.debug=function(){}),t.error&&(a.error=t.error),t.warn&&(a.warn=t.warn),t.debug&&(a.debug=t.debug)};var i=r(n(8416)),o=n(6925);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function s(t){var e;return t instanceof Error&&!(t instanceof o.UnknownError)?{message:t.message,stack:t.stack,name:t.name}:(null!=t&&t.error&&(t.error=s(t.error),t.message=null!==(e=t.message)&&void 0!==e?e:t.error.message),t)}var a={error:function(t,e){e=s(e),console.error("[next-auth][error][".concat(t,"]"),"\nhttps://next-auth.js.org/errors#".concat(t.toLowerCase()),e.message,e)},warn:function(t){console.warn("[next-auth][warn][".concat(t,"]"),"\nhttps://next-auth.js.org/warnings#".concat(t.toLowerCase()))},debug:function(t,e){console.log("[next-auth][debug][".concat(t,"]"),e)}};e.default=a},762:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e;let n=new URL("http://localhost:3000/api/auth");t&&!t.startsWith("http")&&(t=`https://${t}`);let r=new URL(null!==(e=t)&&void 0!==e?e:n),i=("/"===r.pathname?n.pathname:r.pathname).replace(/\/$/,""),o=`${r.origin}${i}`;return{origin:r.origin,host:r.host,path:i,base:o,toString:()=>o}}},3454:function(t,e,n){"use strict";var r,i;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(i=n.g.process)?void 0:i.env)?n.g.process:n(7663)},6840:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(8883)}])},1305:function(t,e,n){"use strict";var r=n(5893),i=n(4184),o=n.n(i);e.Z=t=>{let{className:e}=t;return(0,r.jsx)("div",{className:o()("absolute w-full h-full flex flex-col justify-center content-center items-center"),children:(0,r.jsx)("img",{className:o()("absolute w-6 h-6",e),src:"/assets/loading.svg",alt:"loading icon"})})}},8883:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return h},queryClient:function(){return f}});var r=n(5893),i=n(3299),o=n(8767),u=n(7294),s=n(1163),a=n.n(s),c=n(1305),l=function(t){let{children:e,options:n}=t,{data:o,status:s}=(0,i.useSession)(),l=!!(null==o?void 0:o.user);return((0,u.useEffect)(()=>{"loading"===s||l||((null==n?void 0:n.redirectTo)?a().push(n.redirectTo):(0,i.signIn)(void 0,{callbackUrl:"/dashboard/portfolio/summary"}))},[l,s]),l)?e:(0,r.jsx)("div",{className:"h-screen w-screen flex flex-col justify-center content-center items-center dark:bg-boxdark-2",children:(0,r.jsx)(c.Z,{className:"h-6 w-6"})})};n(3714);let f=new o.QueryClient;var h=function(t){let{Component:e,pageProps:{session:n,...u}}=t;return(0,r.jsx)(i.SessionProvider,{session:n,refetchInterval:300,children:(0,r.jsx)(o.QueryClientProvider,{client:f,children:e.auth?(0,r.jsx)(l,{options:e.auth,children:(0,r.jsx)(e,{...u})}):(0,r.jsx)(e,{...u})})})}},3714:function(){},7663:function(t){!function(){var e={229:function(t){var e,n,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function u(){throw Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:u}catch(t){n=u}}();var a=[],c=!1,l=-1;function f(){c&&r&&(c=!1,r.length?a=r.concat(a):l=-1,a.length&&h())}function h(){if(!c){var t=s(f);c=!0;for(var e=a.length;e;){for(r=a,a=[];++l<e;)r&&r[l].run();l=-1,e=a.length}r=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===u||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function p(){}i.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new d(t,e)),1!==a.length||c||s(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}},u=!0;try{e[t](o,o.exports,r),u=!1}finally{u&&delete n[t]}return o.exports}r.ab="//";var i=r(229);t.exports=i}()},1163:function(t,e,n){t.exports=n(6885)},9852:function(t,e,n){"use strict";n.d(e,{j:function(){return u}});var r=n(4578),i=n(2943),o=n(2288),u=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()}
5,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))},6747:function(t,e,n){"use strict";n.d(e,{QueryClient:function(){return r.S}});var r=n(1832),i=n(6755);n.o(i,"QueryClientProvider")&&n.d(e,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(e,{useQuery:function(){return i.useQuery}})},1909: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}},101:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var r=n(2288),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;i<n;i++)r[i]=arguments[i];e.schedule(function(){t.apply(void 0,r)})}},e.flush=function(){var t=this,e=this.queue;this.queue=[],e.length&&(0,r.A4)(function(){t.batchNotifyFn(function(){e.forEach(function(e){t.notifyFn(e)})})})},e.setNotifyFunction=function(t){this.notifyFn=t},e.setBatchNotifyFunction=function(t){this.batchNotifyFn=t},t}())},68:function(t,e,n){"use strict";n.d(e,{N:function(){return u}});var r=n(4578),i=n(2943),o=n(2288),u=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("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",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.setOnline(t):n.onOnline()})},n.setOnline=function(t){this.online=t,t&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(t){t()})},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},e}(i.l))},1832:function(t,e,n){"use strict";n.d(e,{S:function(){return b}});var r=n(7462),i=n(2288),o=n(4578),u=n(101),s=n(1909),a=n(1216),c=function(){function t(t){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=t.meta,this.scheduleGc()}var e=t.prototype;return e.setOptions=function(t){var e;this.options=(0,r.Z)({},this.defaultOptions,t),this.meta=null==t?void 0:t.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(e=this.options.cacheTime)?e:3e5)},e.setDefaultOptions=function(t){this.defaultOptions=t},e.scheduleGc=function(){var t=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(function(){t.optionalRemove()},this.cacheTime))},e.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},e.optionalRemove=function(){!this.observers.length&&(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},e.setData=function(t,e){var n,r,o=this.state.data,u=(0,i.SE)(t,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,u))?u=o:!1!==this.options.structuralSharing&&(u=(0,i.Q$)(o,u)),this.dispatch({data:u,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt}),u},e.setState=function(t,e){this.dispatch({type:"setState",state:t,setStateOptions:e})},e.cancel=function(t){var e,n=this.promise;return null==(e=this.retryer)||e.cancel(t),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},e.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},e.reset=function(){this.destroy(),this.setState(this.initialState)},e.isActive=function(){return this.observers.some(function(t){return!1!==t.options.enabled})},e.isFetching=function(){return this.state.isFetching},e.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(function(t){return t.getCurrentResult().isStale})},e.isStaleByTime=function(t){return void 0===t&&(t=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,t)}
5,e.onFocus=function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnWindowFocus()});e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.onOnline=function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnReconnect()});e&&e.refetch(),null==(t=this.retryer)||t.continue()},e.addObserver=function(t){-1===this.observers.indexOf(t)&&(this.observers.push(t),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))},e.removeObserver=function(t){-1!==this.observers.indexOf(t)&&(this.observers=this.observers.filter(function(e){return e!==t}),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:t}))},e.getObserversCount=function(){return this.observers.length},e.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},e.fetch=function(t,e){var n,r,o,u,c,l,f=this;if(this.state.isFetching){if(this.state.dataUpdatedAt&&(null==e?void 0:e.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return null==(n=this.retryer)||n.continueRetry(),this.promise}if(t&&this.setOptions(t),!this.options.queryFn){var h=this.observers.find(function(t){return t.options.queryFn});h&&this.setOptions(h.options)}var d=(0,i.mc)(this.queryKey),p=(0,i.G9)(),v={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(v,"signal",{enumerable:!0,get:function(){if(p)return f.abortSignalConsumed=!0,p.signal}});var y={fetchOptions:e,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return f.options.queryFn?(f.abortSignalConsumed=!1,f.options.queryFn(v)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(u=this.options.behavior)?void 0:u.onFetch)&&(null==(r=this.options.behavior)||r.onFetch(y)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(c=y.fetchOptions)?void 0:c.meta)||this.dispatch({type:"fetch",meta:null==(o=y.fetchOptions)?void 0:o.meta}),this.retryer=new a.m4({fn:y.fetchFn,abort:null==p?void 0:null==(l=p.abort)?void 0:l.bind(p),onSuccess:function(t){f.setData(t),null==f.cache.config.onSuccess||f.cache.config.onSuccess(t,f),0===f.cacheTime&&f.optionalRemove()},onError:function(t){(0,a.DV)(t)&&t.silent||f.dispatch({type:"error",error:t}),(0,a.DV)(t)||(null==f.cache.config.onError||f.cache.config.onError(t,f),(0,s.j)().error(t)),0===f.cacheTime&&f.optionalRemove()},onFail:function(){f.dispatch({type:"failed"})},onPause:function(){f.dispatch({type:"pause"})},onContinue:function(){f.dispatch({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay}),this.promise=this.retryer.promise,this.promise},e.dispatch=function(t){var e=this;this.state=this.reducer(this.state,t),u.V.batch(function(){e.observers.forEach(function(e){e.onQueryUpdate(t)}),e.cache.notify({query:e,type:"queryUpdated",action:t})})},e.getDefaultState=function(t){var e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==t.initialData?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0,r=void 0!==e;return{data:e,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},e.reducer=function(t,e){var n,i;switch(e.type){case"failed":return(0,r.Z)({},t,{fetchFailureCount:t.fetchFailureCount+1});case"pause":return(0,r.Z)({},t,{isPaused:!0});case"continue":return(0,r.Z)({},t,{isPaused:!1});case"fetch":return(0,r.Z)({},t,{fetchFailureCount:0,fetchMeta:null!=(n=e.meta)?n:null,isFetching:!0,isPaused:!1},!t.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},t,{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=e.error;if((0,a.DV)(o)&&o.revert&&this.revertState)return(0,r.Z)({},this.revertState);return(0,r.Z)({}
5,t,{error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},t,{isInvalidated:!0});case"setState":return(0,r.Z)({},t,e.state);default:return t}},t}(),l=n(2943),f=function(t){function e(e){var n;return(n=t.call(this)||this).config=e||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(e,t);var n=e.prototype;return n.build=function(t,e,n){var r,o=e.queryKey,u=null!=(r=e.queryHash)?r:(0,i.Rm)(o,e),s=this.get(u);return s||(s=new c({cache:this,queryKey:o,queryHash:u,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(o),meta:e.meta}),this.add(s)),s},n.add=function(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"queryAdded",query:t}))},n.remove=function(t){var e=this.queriesMap[t.queryHash];e&&(t.destroy(),this.queries=this.queries.filter(function(e){return e!==t}),e===t&&delete this.queriesMap[t.queryHash],this.notify({type:"queryRemoved",query:t}))},n.clear=function(){var t=this;u.V.batch(function(){t.queries.forEach(function(e){t.remove(e)})})},n.get=function(t){return this.queriesMap[t]},n.getAll=function(){return this.queries},n.find=function(t,e){var n=(0,i.I6)(t,e)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find(function(t){return(0,i._x)(n,t)})},n.findAll=function(t,e){var n=(0,i.I6)(t,e)[0];return Object.keys(n).length>0?this.queries.filter(function(t){return(0,i._x)(n,t)}):this.queries},n.notify=function(t){var e=this;u.V.batch(function(){e.listeners.forEach(function(e){e(t)})})},n.onFocus=function(){var t=this;u.V.batch(function(){t.queries.forEach(function(t){t.onFocus()})})},n.onOnline=function(){var t=this;u.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,s.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 a.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}}
5(this.state,t),u.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;u.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;u.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.isPau
5sed});return u.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(9852),v=n(68);function y(t,e){return null==t.getNextPageParam?void 0:t.getNextPageParam(e[e.length-1],e)}var b=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 u.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;u.V.batch(function(){r.findAll(n).forEach(function(t){r.remove(t)})})},e.resetQueries=function(t,e,n){var o=this,s=(0,i.I6)(t,e,n),a=s[0],c=s[1],l=this.queryCache,f=(0,r.Z)({},a,{active:!0});return u.V.batch(function(){return l.findAll(a).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),s=o[0],a=o[1],c=void 0===a?{}:a;return void 0===c.revert&&(c.revert=!0),Promise.all(u.V.batch(function(){return r.queryCache.findAll(s).map(function(t){return t.cancel(c)})})).then(i.ZT).catch(i.ZT)},e.invalidateQueries=function(t,e,n){var o,s,a,c=this,l=(0,i.I6)(t,e,n),f=l[0],h=l[1],d=(0,r.Z)({},f,{active:null==(o=null!=(s=f.refetchActive)?s:f.active)||o,inactive:null!=(a=f.refetchInactive)&&a});return u.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,s=(0,i.I6)(t,e,n),a=s[0],c=s[1],l=Promise.all(u.V.batch(function(){return o.queryCache.findAll(a).map(function(t){return t.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==a?void 0:a.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 u=this.queryCache.build(this,o);return u.isStaleByTime(o.staleTime)?u.fetch(o):Promise.resolve(u.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,u,s,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==(u=t.state.data)?void 0:u.pages)||[],b=(null==(s=t.state.data)?void 0:s.pageParams)||[],m=(0,i.G9)(),g=null==m?void 0:m.signal,x=b,w=!1,O=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},E=function(t,e,n,r){return x=r?[e].concat(x):[].concat(x,[e]),r?[n].concat(t):[].concat(t,[n])},S=function(e,n,r,i){if(w)return Promise.reject("Cancelled");if(void 0===r&&!n&&e.length)return Promise.resolve(e);var o=O({queryKey:t.queryKey,signal:g,pageParam:r,meta:t.meta}),u=Promise.resolve(o).then(function(t){return E(e,r,t,i)});return(0,a.LE)(o)&&(u.cancel=o.cancel),u};
5if(v.length){if(d){var _=void 0!==h,P=_?h:y(t.options,v);c=S(v,_,P)}else if(p){var C,R=void 0!==h,j=R?h:null==(C=t.options).getPreviousPageParam?void 0:C.getPreviousPageParam(v[0],v);c=S(v,R,j,!0)}else!function(){x=[];var e=void 0===t.options.getNextPageParam;c=!l||!v[0]||l(v[0],0,v)?S([],e,b[0]):Promise.resolve(E([],b[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?b[n]:y(t.options,r);return S(r,e,i)}return Promise.resolve(E(r,b[n],v[n]))})},r=1;r<v.length;r++)n(r)}()}else c=S([]);var T=c.then(function(t){return{pages:t,pageParams:x}});return T.cancel=function(){w=!0,null==m||m.abort(),(0,a.LE)(c)&&c.cancel()},T}}},this.fetchQuery(r)},e.prefetchInfiniteQuery=function(t,e,n){return this.fetchInfiniteQuery(t,e,n).then(i.ZT).catch(i.ZT)},e.cancelMutations=function(){var t=this;return Promise.all(u.V.batch(function(){return t.mutationCache.getAll().map(function(t){return t.cancel()})})).then(i.ZT).catch(i.ZT)},e.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},e.executeMutation=function(t){return this.mutationCache.build(this,t).execute()},e.getQueryCache=function(){return this.queryCache},e.getMutationCache=function(){return this.mutationCache},e.getDefaultOptions=function(){return this.defaultOptions},e.setDefaultOptions=function(t){this.defaultOptions=t},e.setQueryDefaults=function(t,e){var n=this.queryDefaults.find(function(e){return(0,i.yF)(t)===(0,i.yF)(e.queryKey)});n?n.defaultOptions=e:this.queryDefaults.push({queryKey:t,defaultOptions:e})},e.getQueryDefaults=function(t){var e;return t?null==(e=this.queryDefaults.find(function(e){return(0,i.to)(t,e.queryKey)}))?void 0:e.defaultOptions:void 0},e.setMutationDefaults=function(t,e){var n=this.mutationDefaults.find(function(e){return(0,i.yF)(t)===(0,i.yF)(e.mutationKey)});n?n.defaultOptions=e:this.mutationDefaults.push({mutationKey:t,defaultOptions:e})},e.getMutationDefaults=function(t){var e;return t?null==(e=this.mutationDefaults.find(function(e){return(0,i.to)(t,e.mutationKey)}))?void 0:e.defaultOptions:void 0},e.defaultQueryOptions=function(t){if(null==t?void 0:t._defaulted)return t;var e=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==t?void 0:t.queryKey),t,{_defaulted:!0});return!e.queryHash&&e.queryKey&&(e.queryHash=(0,i.Rm)(e.queryKey,e)),e},e.defaultQueryObserverOptions=function(t){return this.defaultQueryOptions(t)},e.defaultMutationOptions=function(t){return(null==t?void 0:t._defaulted)?t:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==t?void 0:t.mutationKey),t,{_defaulted:!0})},e.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},t}()},1216:function(t,e,n){"use strict";n.d(e,{DV:function(){return c},LE:function(){return s},m4:function(){return l}});var r=n(9852),i=n(68),o=n(2288);function u(t){return Math.min(1e3*Math.pow(2,t),3e4)}function s(t){return"function"==typeof(null==t?void 0:t.cancel)}var a=function(t){this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent};function c(t){return t instanceof a}var l=function(t){var e,n,c,l,f=this,h=!1;this.abort=t.abort,this.cancel=function(t){return null==e?void 0:e(t)},this.cancelRetry=function(){h=!0},this.continueRetry=function(){h=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(t,e){c=t,l=e});var d=function(e){f.isResolved||(f.isResolved=!0,null==t.onSuccess||t.onSuccess(e),null==n||n(),c(e))},p=function(e){f.isResolved||(f.isResolved=!0,null==t.onError||t.onError(e),null==n||n(),l(e))};!function c(){var l;if(!f.isResolved){try{l=t.fn()}catch(t){l=Promise.reject(t)}e=function(t){if(!f.isResolved&&(p(new a(t)),null==f.abort||f.abort(),s(l)))try{l.cancel()}catch(t){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(d).catch(function(e){if(!f.isResolved){var s,a,l=null!=(s=t.retry)?s:3,d=null!=(a=t.retryDelay)?a:u,v="function"==typeof d?d(f.failureCount,e):d,y=!0===l||"number"==typeof l&&f.failureCount<l||"function"==typeof l&&l(f.failureCount,e);if(h||!y){p(e);return}f.failureCount++,null==t.onFail||t.onFail(f.failureCount,e),(0,o.Gh)(v).then(function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise(function(e){n=e,f.isPaused=!0,null==t.onPause||t.onPause()}).then(function(){n=void 0,f.isPaused=!1,null==t.onContinue||t.onContinue()})}).then(function(){h?p(e):c()})}})}}()}},2943:function(t,e,n){"use strict";n.d(e,{l:function(){return r}});var r=function(){function t(){this.listeners=[]}var e=t.prototype;return e.subscribe=function(t){var e=this,n=t||function(){};return this.listeners.push(n),this.onSubscribe(),function(){e.listeners=e.listeners.filter(function(t){return t!==n}),e.onUnsubscribe()}},e.hasListeners=function(){return this.listeners.length>0},e.onSubscribe=function(){},e.onUnsubscribe=function(){},t}()},6755:function(){},2288:function(t,e,n){"use strict";n.d(e,{A4:function(){return O},G9:function(){return E},Gh:function(){return w},I6:function(){return f},Kp:function(){return c},PN:function(){return s},Q$:function(){return function t(e,n){if(e===n)return e;var r=Array.isArray(e)&&Array.isArray(n);if(r||m(e)&&m(n)){for(var i=r?e.length:Object.keys(e).length,o=r?n:Object.keys(n),u=o.length,s=r?[]:{},a=0,c=0;c<u;c++){var l=r?c:o[c];s[l]=t(e[l],n[l]),s[l]===e[l]&&a++}return i===u&&a===i?e:s}return n}},Rm:function(){return p},SE:function(){return u},VS:function(){return b},X7:function(){return d},ZT:function(){return o},_v:function(){return l},_x:function(){return h},mc:function(){return a},sk:function(){return i},to:function(){return y},yF:function(){return v}});var r=n(7462),i="undefined"==typeof window;function o(){}function u(t,e){return"function"==typeof t?t(e):t}function s(t){return"number"==typeof t&&t>=0&&t!==1/0}function a(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 x(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 x(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,u=t.predicate,s=t.queryKey,a=t.stale;
5if(x(s)){if(r){if(e.queryHash!==p(s,e.options))return!1}else if(!y(e.queryKey,s))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 a||e.isStale()===a)&&("boolean"!=typeof i||e.isFetching()===i)&&(!u||!!u(e))}function d(t,e){var n=t.exact,r=t.fetching,i=t.predicate,o=t.mutationKey;if(x(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(a(t),function(t,e){return m(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])})}(a(t),a(e))}function b(t,e){if(t&&!e||e&&!t)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}function m(t){if(!g(t))return!1;var e=t.constructor;if(void 0===e)return!0;var n=e.prototype;return!!(g(n)&&n.hasOwnProperty("isPrototypeOf"))}function g(t){return"[object Object]"===Object.prototype.toString.call(t)}function x(t){return"string"==typeof t||Array.isArray(t)}function w(t){return new Promise(function(e){setTimeout(e,t)})}function O(t){Promise.resolve().then(t).catch(function(t){return setTimeout(function(){throw t})})}function E(){if("function"==typeof AbortController)return new AbortController}},8767: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(6747);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(5931)},5931:function(t,e,n){"use strict";n.d(e,{QueryClientProvider:function(){return d},useQuery:function(){return P}});var r,i=n(101),o=n(3935).unstable_batchedUpdates;i.V.setBatchNotifyFunction(o);var u=n(1909),s=console;(0,u.E)(s);var a=n(7294),c=a.createContext(void 0),l=a.createContext(!1);function f(t){return t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=c),window.ReactQueryClientContext):c}var h=function(){var t=a.useContext(f(a.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;a.useEffect(function(){return e.mount(),function(){e.unmount()}},[e]);var o=f(r);return a.createElement(l.Provider,{value:r},a.createElement(o.Provider,{value:e},i))},p=n(7462),v=n(4578),y=n(2288),b=n(9852),m=n(2943),g=n(1216),x=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),w(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return O(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return O(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.refetchIntervalInBackgroun
5d||b.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,s=this.currentResult,a=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,b=d.errorUpdatedAt,m=d.isFetching,g=d.status,x=!1,O=!1;if(e.optimisticResults){var _=this.hasListeners(),P=!_&&w(t,e),C=_&&E(t,i,e,o);(P||C)&&(m=!0,p||(g="loading"))}if(e.keepPreviousData&&!d.dataUpdateCount&&(null==h?void 0:h.isSuccess)&&"error"!==g)n=h.data,p=h.dataUpdatedAt,g=h.status,x=!0;else if(e.select&&void 0!==d.data){if(s&&d.data===(null==a?void 0:a.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==s?void 0:s.data,n)),this.selectResult=n,this.selectError=null}catch(t){(0,u.j)().error(t),this.selectError=t}}else n=d.data;if(void 0!==e.placeholderData&&void 0===n&&("loading"===g||"idle"===g)){if((null==s?void 0:s.isPlaceholderData)&&e.placeholderData===(null==c?void 0:c.placeholderData))r=s.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==s?void 0:s.data,r)),this.selectError=null}catch(t){(0,u.j)().error(t),this.selectError=t}void 0!==r&&(g="success",n=r,O=!0)}return this.selectError&&(v=this.selectError,n=this.selectResult,b=Date.now(),g="error"),{status:g,isLoading:"loading"===g,isSuccess:"success"===g,isError:"error"===g,isIdle:"idle"===g,data:n,dataUpdatedAt:p,error:v,errorUpdatedAt:b,failureCount:d.fetchFailureCount,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>f.dataUpdateCount||d.errorUpdateCount>f.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==g,isLoadingError:"error"===g&&0===d.dataUpdatedAt,isPlaceholderData:O,isPreviousData:x,isRefetchError:"error"===g&&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],u=null==o?void 0:o.some(function(t){return t===n}),s=null==i?void 0:i.some(function(t){return t===n});return r&&!s&&(!o||u)})},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,g.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.forEac
5h(function(t){t(e.currentResult)}),t.cache&&e.client.getQueryCache().notify({query:e.currentQuery,type:"observerResultsUpdated"})})},e}(m.l);function w(t,e){return!1!==e.enabled&&!t.state.dataUpdatedAt&&!("error"===t.state.status&&!1===e.retryOnMount)||t.state.dataUpdatedAt>0&&O(t,e,e.refetchOnMount)}function O(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 _=a.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,u=a.useRef(!1),s=a.useState(0)[1],c=h(),l=a.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=a.useState(function(){return new e(c,f)})[0],p=d.getOptimisticResult(f);if(a.useEffect(function(){u.current=!0,l.clearReset();var t=d.subscribe(i.V.batchCalls(function(){u.current&&s(function(t){return t+1})}));return d.updateResult(),function(){u.current=!1,t()}},[l,d]),a.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)}
5).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),x)}},3897:function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r},t.exports.__esModule=!0,t.exports.default=t.exports},5372:function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},6115:function(t){t.exports=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},7156:function(t){function e(t,e,n,r,i,o,u){try{var s=t[o](u),a=s.value}catch(t){n(t);return}s.done?e(a):Promise.resolve(a).then(r,i)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise(function(i,o){var u=t.apply(n,r);function s(t){e(u,i,o,s,a,"next",t)}function a(t){e(u,i,o,s,a,"throw",t)}s(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},6690:function(t){t.exports=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},3515:function(t,e,n){var r=n(6015),i=n(9617);function o(e,n,u){return i()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&r(o,n.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},9728:function(t,e,n){var r=n(4062);function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r(i.key),i)}}t.exports=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},8416:function(t,e,n){var r=n(4062);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},3808:function(t){function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},1655:function(t,e,n){var r=n(6015);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},6035:function(t){t.exports=function(t){try{return -1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}},t.exports.__esModule=!0,t.exports.default=t.exports},9617:function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports},8872:function(t){t.exports=function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,u,s=[],a=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);a=!0);}catch(t){c=!0,i=t}
5finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(c)throw i}}return s}},t.exports.__esModule=!0,t.exports.default=t.exports},2218:function(t){t.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},4993:function(t,e,n){var r=n(8698).default,i=n(6115);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},7061:function(t,e,n){var r=n(8698).default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},o=Object.prototype,u=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function d(t,n,r,i){var o,u,a=Object.create((n&&n.prototype instanceof g?n:g).prototype);return s(a,"_invoke",{value:(o=new T(i||[]),u=v,function(n,i){if(u===y)throw Error("Generator is already running");if(u===b){if("throw"===n)throw i;return{value:e,done:!0}}for(o.method=n,o.arg=i;;){var s=o.delegate;if(s){var a=function t(n,r){var i=r.method,o=n.iterator[i];if(o===e)return r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+i+"' method")),m;var u=p(o,n.iterator,r.arg);if("throw"===u.type)return r.method="throw",r.arg=u.arg,r.delegate=null,m;var s=u.arg;return s?s.done?(r[n.resultName]=s.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):s:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,m)}(s,o);if(a){if(a===m)continue;return a}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(u===v)throw u=b,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);u=y;var c=p(t,r,o);if("normal"===c.type){if(u=o.done?b:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(u=b,o.method="throw",o.arg=c.arg)}})}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var v="suspendedStart",y="executing",b="completed",m={};function g(){}function x(){}function w(){}var O={};h(O,c,function(){return this});var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==o&&u.call(S,c)&&(O=S);var _=w.prototype=g.prototype=Object.create(O);function P(t){["next","throw","return"].forEach(function(e){h(t,e,function(t){return this._invoke(e,t)})})}function C(t,e){var n;s(this,"_invoke",{value:function(i,o){function s(){return new e(function(n,s){!function n(i,o,s,a){var c=p(t[i],t,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&u.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,s,a)},function(t){n("throw",t,s,a)}):e.resolve(f).then(function(t){l.value=t,s(l)},function(t){return n("throw",t,s,a)})}a(c.arg)}(i,o,n,s)})}return n=n?n.then(s,s):s()}})}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(u.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw TypeError(r(t)+" is not iterable")}return x.prototype=w,s(_,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:x,configurable:!0}),x.displayName=h(w,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===x||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,h(t,f,"GeneratorFunction")),t.prototype=Object.create(_),t},n.awrap=function(t){return{__await:t}},P(C.prototype),h(C.prototype,l,function(){return this}),n.AsyncIterator=C,n.async=function(t,e,r,i,o){void 0===o&&(o=Promise);var u=new C(d(t,e,r,i),o);return n.isGeneratorFunction(e)?u:u.next().then(function(t){return t.done?t.value:u.next()})},P(_),h(_,f,"Generator"),h(_,c,function(){return this}),h(_,"toString",function(){return"[object Generator]"}),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
vendor: 4,265 bytes, line 5
5h(j),!t)for(var n in this)"t"===n.charAt(0)&&u.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=u.call(o,"catchLoc"),c=u.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&u.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;j(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},6015:function(t){function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},7424:function(t,e,n){var r=n(5372),i=n(8872),o=n(6116),u=n(2218);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||u()},t.exports.__esModule=!0,t.exports.default=t.exports},7946:function(t,e,n){var r=n(8698).default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4062:function(t,e,n){var r=n(8698).default,i=n(7946);t.exports=function(t){var e=i(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},8698:function(t){function e(n){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},6116:function(t,e,n){var r=n(3897);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}},t.exports.__esModule=!0,t.exports.default=t.exports},3496:function(t,e,n){var r=n(3808),i=n(6015),o=n(6035),u=n(3515);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(t))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return u(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),i(e,t)}
5,t.exports.__esModule=!0,t.exports.default=t.exports,s(e)}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports},4687:function(t,e,n){var r=n(7061)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},7462:function(t,e,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return r}})},4578:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n(9611);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,r.Z)(t,e)}},9611:function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,{Z:function(){return r}})}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],function(){return e(6840),e(6885)}),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.