(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92888,49945,40839,15471,39272,87144,69089],{60118:function(e,t,n){"use strict";n.d(t,{E2:function(){return f},KZ:function(){return a},ab:function(){return c},eT:function(){return u},mw:function(){return d},n_:function(){return s}});var r,i=n(67294),o=n(10212);function a(){return r||(r=i.createContext({})),r}var s,u=function(e){var t=e.client,n=e.children,r=a();return i.createElement(r.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),(0,o.kG)(e.client,5),i.createElement(r.Provider,{value:e},n)}))},c=function(e){var t=a();return i.createElement(t.Consumer,null,(function(t){return(0,o.kG)(t&&t.client,6),e.children(t.client)}))};!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(s||(s={}));var l=new Map;function d(e){var t;switch(e){case s.Query:t="Query";break;case s.Mutation:t="Mutation";break;case s.Subscription:t="Subscription"}return t}function f(e){var t,n,r=l.get(e);if(r)return r;(0,o.kG)(!!e&&!!e.kind,1);var i=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),u=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),c=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));(0,o.kG)(!i.length||a.length||u.length||c.length,2),(0,o.kG)(a.length+u.length+c.length<=1,3),n=a.length?s.Query:s.Mutation,a.length||u.length||(n=s.Subscription);var d=a.length?a:u.length?u:c;(0,o.kG)(1===d.length,4);var f=d[0];t=f.variableDefinitions||[];var p={name:f.name&&"Name"===f.name.kind?f.name.value:"data",type:n,variables:t};return l.set(e,p),p}},61662:function(e,t,n){"use strict";n.d(t,{gA:function(){return O},xJ:function(){return T},td:function(){return E},Db:function(){return w},aM:function(){return _}});var r=n(60118),i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&(c=new u.cA({graphQLErrors:s})),e=a(a({},e),{loading:r,networkStatus:o,error:c,called:!0}),r){var d=this.previousData.result&&this.previousData.result.data;e.data=d&&l?a(a({},d),l):d||l}else if(c)Object.assign(e,{data:(this.currentObservable.query.getLastResult()||{}).data});else{var f=this.currentObservable.query.options.fetchPolicy;if(t.partialRefetch&&!l&&i&&"cache-only"!==f)return Object.assign(e,{loading:!0,networkStatus:u.Ie.loading}),e.refetch(),e;e.data=l}}return e.client=this.client,this.previousData.loading=this.previousData.result&&this.previousData.result.loading||!1,this.previousData.result=e,this.currentObservable.query&&this.currentObservable.query.resetQueryStoreErrors(),e},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable.query&&this.previousData.result){var e=this.previousData.result,t=e.data,n=e.loading,r=e.error;if(!n){var i=this.getOptions(),o=i.query,a=i.variables,s=i.onCompleted,u=i.onError;if(this.previousOptions&&!this.previousData.loading&&p(this.previousOptions.query,o)&&p(this.previousOptions.variables,a))return;s&&!r?s(t):u&&r&&u(r)}}},t.prototype.removeQuerySubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t.prototype.observableQueryFields=function(){return{variables:this.currentObservable.query.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(v);function b(e,t,n){void 0===n&&(n=!1);var i=(0,s.useContext)((0,r.KZ)()),o=(0,s.useReducer)((function(e){return e+1}),0),u=o[0],c=o[1],l=t?a(a({},t),{query:e}):{query:e},d=(0,s.useRef)(),f=d.current||new y({options:l,context:i,onNewData:function(){f.ssrInitiated()?c():Promise.resolve().then(c)}});f.setOptions(l),f.context=i,f.ssrInitiated()&&!d.current&&(d.current=f);var h=function(e,t){var n=(0,s.useRef)();return n.current&&p(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}((function(){return n?f.executeLazy():f.execute()}),{options:a(a({},l),{onError:void 0,onCompleted:void 0}),context:i,tick:u}),m=n?h[1]:h;return(0,s.useEffect)((function(){return d.current||(d.current=f),function(){return f.cleanup()}}),[]),(0,s.useEffect)((function(){return f.afterExecute({lazy:n})}),[m.loading,m.networkStatus,m.error,m.data]),h}function _(e,t){return b(e,t,!1)}function E(e,t){return b(e,t,!0)}var S=function(e){function t(t){var n=t.options,i=t.context,o=t.result,a=t.setResult,s=e.call(this,n,i)||this;return s.runMutation=function(e){void 0===e&&(e={}),s.onMutationStart();var t=s.generateNewMutationId();return s.mutate(e).then((function(e){return s.onMutationCompleted(e,t),e})).catch((function(e){if(s.onMutationError(e,t),!s.getOptions().onError)throw e}))},s.verifyDocumentType(n.mutation,r.n_.Mutation),s.result=o,s.setResult=a,s.mostRecentMutationId=0,s}return o(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,r.n_.Mutation),e.client=this.refreshClient().client,[this.runMutation,e]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){var t=this.getOptions(),n=t.mutation,r=t.variables,i=t.optimisticResponse,o=t.update,s=t.context,u=void 0===s?{}:s,c=t.awaitRefetchQueries,l=void 0!==c&&c,d=t.fetchPolicy,f=a({},e),p=Object.assign({},r,f.variables);return delete f.variables,this.refreshClient().client.mutate(a({mutation:n,optimisticResponse:i,refetchQueries:f.refetchQueries||this.getOptions().refetchQueries,awaitRefetchQueries:l,update:o,context:u,fetchPolicy:d,variables:p},f))},t.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var n=this.getOptions(),r=n.onCompleted,i=n.ignoreResults,o=e.data,a=e.errors,s=a&&a.length>0?new u.cA({graphQLErrors:a}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:s}),r&&r(o)},t.prototype.onMutationError=function(e,t){var n=this.getOptions().onError;this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0}),n&&n(e)},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){!this.isMounted||this.previousResult&&p(this.previousResult,e)||(this.setResult(e),this.previousResult=e)},t}(v);function w(e,t){var n=(0,s.useContext)((0,r.KZ)()),i=(0,s.useState)({called:!1,loading:!1}),o=i[0],u=i[1],c=t?a(a({},t),{mutation:e}):{mutation:e},l=(0,s.useRef)();var d=(l.current||(l.current=new S({options:c,context:n,result:o,setResult:u})),l.current);return d.setOptions(c),d.context=n,(0,s.useEffect)((function(){return d.afterExecute()})),d.execute(o)}!function(e){function t(t){var n=t.options,r=t.context,i=t.setResult,o=e.call(this,n,r)||this;return o.currentObservable={},o.setResult=i,o.initialize(n),o}o(t,e),t.prototype.execute=function(e){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var n=this.getOptions().shouldResubscribe;return"function"===typeof n&&(n=!!n(this.getOptions())),!1!==n&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!p(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),a(a({},t),{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy}))},t.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this.getOptions().onSubscriptionComplete;e&&e(),this.endSubscription()},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)}}(v);function T(){var e=s.useContext((0,r.KZ)()).client;return(0,g.kG)(e,1),e}var O=function(){function e(){this.queryPromises=new Map,this.queryInfoTrie=new Map}return e.prototype.registerSSRObservable=function(e,t){this.lookupQueryInfo(t).observable=e},e.prototype.getSSRObservable=function(e){return this.lookupQueryInfo(e).observable},e.prototype.addQueryPromise=function(e,t){return this.lookupQueryInfo(e.getOptions()).seen?t():(this.queryPromises.set(e.getOptions(),new Promise((function(t){t(e.fetchData())}))),null)},e.prototype.hasPromises=function(){return this.queryPromises.size>0},e.prototype.consumeAndAwaitPromises=function(){var e=this,t=[];return this.queryPromises.forEach((function(n,r){e.lookupQueryInfo(r).seen=!0,t.push(n)})),this.queryPromises.clear(),Promise.all(t)},e.prototype.lookupQueryInfo=function(e){var t=this.queryInfoTrie,n=e.query,r=e.variables,i=t.get(n)||new Map;t.has(n)||t.set(n,i);var o=JSON.stringify(r),a=i.get(o)||{seen:!1,observable:null};return i.has(o)||i.set(o,a),a},e}()},25687:function(e,t,n){"use strict";n.d(t,{kG:function(){return r}});function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}},95957:function(e,t,n){"use strict";function r(e,t){var n=t&&t.cache?t.cache:l,r=t&&t.serializer?t.serializer:u;return(t&&t.strategy?t.strategy:s)(e,{cache:n,serializer:r})}function i(e,t,n,r){var i,o=null==(i=r)||"number"===typeof i||"boolean"===typeof i?r:n(r),a=t.get(o);return"undefined"===typeof a&&(a=e.call(this,r),t.set(o,a)),a}function o(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return"undefined"===typeof o&&(o=e.apply(this,r),t.set(i,o)),o}function a(e,t,n,r,i){return n.bind(t,e,r,i)}function s(e,t){return a(e,this,1===e.length?i:o,t.cache.create(),t.serializer)}n.d(t,{A:function(){return d},H:function(){return r}});var u=function(){return JSON.stringify(arguments)};function c(){this.cache=Object.create(null)}c.prototype.get=function(e){return this.cache[e]},c.prototype.set=function(e,t){this.cache[e]=t};var l={create:function(){return new c}},d={variadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)}}},88222:function(e,t,n){"use strict";n.d(t,{$6:function(){return d},OV:function(){return s},Qe:function(){return c},X9:function(){return l},gb:function(){return u},wI:function(){return a}});var r,i=n(97582);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(r||(r={}));var o=function(e){function t(n,r,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=n,"function"===typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return(0,i.ZT)(t,e),t}(Error),a=function(e){function t(t,n){return e.call(this,r.UNSUPPORTED_FORMATTER,t,n)||this}return(0,i.ZT)(t,e),t}(o),s=function(e){function t(t,n){return e.call(this,r.INVALID_CONFIG,t,n)||this}return(0,i.ZT)(t,e),t}(o),u=function(e){function t(t,n){return e.call(this,r.MISSING_DATA,t,n)||this}return(0,i.ZT)(t,e),t}(o),c=function(e){function t(t,n,i){var o=e.call(this,r.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(n,"\n"),i)||this;return o.locale=n,o}return(0,i.ZT)(t,e),t}(o),l=function(e){function t(t,n,r,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null===r||void 0===r?void 0:r.id,"\nDefault Message: ").concat(null===r||void 0===r?void 0:r.defaultMessage,"\nDescription: ").concat(null===r||void 0===r?void 0:r.description,"\n"),n,i)||this;return o.descriptor=r,o.locale=n,o}return(0,i.ZT)(t,e),t}(c),d=function(e){function t(t,n){var i=e.call(this,r.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(n,'", using ').concat(t.defaultMessage?"default message (".concat("string"===typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.ZT)(t,e),t}(o)},82644:function(e,t,n){"use strict";n.d(t,{L6:function(){return s},Sn:function(){return c},TB:function(){return f},Z0:function(){return u},ax:function(){return d}});var r=n(97582),i=n(16284),o=n(95957),a=n(88222);function s(e,t,n){return void 0===n&&(n={}),t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function c(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function l(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function d(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,a=Intl.DisplayNames,s=(0,o.H)((function(){for(var e,t=[],n=0;n=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions(),s=i.normalizeDepth,c=void 0===s?3:s,l=i.normalizeMaxBreadth,h=void 0===l?1e3:l,m=(0,o.pi)((0,o.pi)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,u.DM)()),timestamp:e.timestamp||(0,f.yW)()});this._applyClientOptions(m),this._applyIntegrationsMetadata(m);var g=t;n&&n.captureContext&&(g=a.s.clone(g).update(n.captureContext));var v=(0,d.WD)(m);return g&&(v=g.applyToEvent(m,n)),v.then((function(e){return e&&(e.sdkProcessingMetadata=(0,o.pi)((0,o.pi)({},e.sdkProcessingMetadata),{normalizeDepth:(0,p.Fv)(c)+" ("+typeof c+")"})),"number"===typeof c&&c>0?r._normalizeEvent(e,c,h):e}))},e.prototype._normalizeEvent=function(e,t,n){if(!e)return null;var r=(0,o.pi)((0,o.pi)((0,o.pi)((0,o.pi)((0,o.pi)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,o.pi)((0,o.pi)({},e),e.data&&{data:(0,p.Fv)(e.data,t,n)})}))}),e.user&&{user:(0,p.Fv)(e.user,t,n)}),e.contexts&&{contexts:(0,p.Fv)(e.contexts,t,n)}),e.extra&&{extra:(0,p.Fv)(e.extra,t,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=(0,o.pi)((0,o.pi)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=(0,h.$G)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,h.$G)(s.value,a));var u=e.request;u&&u.url&&(u.url=(0,h.$G)(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=(0,o.fl)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){g.h&&c.kg.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate,s=this.getTransport();function u(e,t){s.recordLostEvent&&s.recordLostEvent(e,t)}if(!this._isEnabled())return(0,d.$2)(new m.b("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"===typeof a&&Math.random()>a?(u("sample_rate","event"),(0,d.$2)(new m.b("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw u("event_processor",e.type||"event"),new m.b("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||c||!o?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,l.J8)(e))return e.then((function(e){if(!(0,l.PO)(e)&&null!==e)throw new m.b(t);return e}),(function(e){throw new m.b("beforeSend rejected with "+e)}));if(!(0,l.PO)(e)&&null!==e)throw new m.b(t);return e}(o(n,t))})).then((function(t){if(null===t)throw u("before_send",e.type||"event"),new m.b("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!c&&i&&r._updateSessionFromEvent(i,t),r._sendEvent(t),t})).then(null,(function(e){if(e instanceof m.b)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new m.b("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}();var T=n(82991),O=n(1984),x=n(29324),C=function(){function e(){}return e.prototype.sendEvent=function(e){return(0,d.WD)({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return(0,d.WD)(!0)},e}(),P=function(){function e(e){this._options=e,this._options.dsn||g.h&&c.kg.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new m.b("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new m.b("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=(0,O.hd)(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,x.Mq)(e,t);this._newTransport.send(n).then(null,(function(e){g.h&&c.kg.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){g.h&&c.kg.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=(0,O.hd)(this._options.dsn,this._options._metadata,this._options.tunnel),n=(0,o.CR)((0,x.Q3)(e,t),1)[0];this._newTransport.send(n).then(null,(function(e){g.h&&c.kg.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){g.h&&c.kg.error("Error while sending session:",e)}));else g.h&&c.kg.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new C},e}(),A=n(83024),L=n(8823),R=n(89891),D=n(20754),k=n(68690),N=n(20116),I=n(68131),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.eventFromException=function(e,t){return(0,R.dr)(e,t,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=A.z.Info),(0,R.aB)(e,t,n,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=(0,r.pi)((0,r.pi)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),n=(0,O.hd)(t.dsn,t._metadata,t.tunnel),i=(0,O.Ut)(n.dsn,n.tunnel);if(this._options.transport)return new this._options.transport(t);if((0,L.Ak)()){var o=(0,r.pi)({},t.fetchParameters);return this._newTransport=(0,D.k)({requestOptions:o,url:i}),new k.V(t)}return this._newTransport=(0,N.H)({url:i,headers:t.headers}),new I.w(t)},t}(P),M=n(24326),F=n(86891),j=n(39038),G=function(e){function t(t){void 0===t&&(t={});return t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:i.J}],version:i.J},e.call(this,B,t)||this}return(0,r.ZT)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,T.R)().document&&(this._isEnabled()?(0,F.BS)((0,r.pi)((0,r.pi)({},e),{dsn:e.dsn||this.getDsn()})):M.h&&c.kg.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(j.O);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(w)},89891:function(e,t,n){"use strict";n.d(t,{dr:function(){return R},aB:function(){return D},ME:function(){return k},GJ:function(){return x}});var r=n(66856),i=n(83024),o=n(67597),a=n(20535),s=n(34754),u=n(30360),c=n(62844),l=n(96893),d="?";function f(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var p=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,h=/\((\S*)(?::(\d+))(?::(\d+))\)/,m=[30,function(e){var t=p.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=h.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var i=(0,r.CR)(O(t[1]||d,t[2]),2),o=i[0];return f(i[1],o,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],g=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,v=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,y=[50,function(e){var t,n=g.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var i=v.exec(n[3]);i&&(n[1]=n[1]||"eval",n[3]=i[1],n[4]=i[2],n[5]="")}var o=n[3],a=n[1]||d;return a=(t=(0,r.CR)(O(a,o),2))[0],f(o=t[1],a,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],b=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_=[40,function(e){var t=b.exec(e);return t?f(t[2],t[1]||d,+t[3],t[4]?+t[4]:void 0):void 0}],E=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,S=[10,function(e){var t=E.exec(e);return t?f(t[2],t[3]||d,+t[1]):void 0}],w=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,T=[20,function(e){var t=w.exec(e);return t?f(t[5],t[3]||t[4]||d,+t[1],+t[2]):void 0}],O=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:d,n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function x(e){var t=P(e),n={type:e&&e.name,value:L(e)};return t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function C(e){return{exception:{values:[x(e)]}}}function P(e){var t=e.stacktrace||e.stack||"",n=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(A.test(e.message))return 1}return 0}(e);try{return(0,u.pE)(S,T,m,_,y)(t,n)}catch(r){}return[]}var A=/Minified React error #\d+;/i;function L(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function R(e,t,n){var r=k(e,t&&t.syntheticException||void 0,n);return(0,c.EG)(r),r.level=i.z.Error,t&&t.event_id&&(r.event_id=t.event_id),(0,l.WD)(r)}function D(e,t,n,r){void 0===t&&(t=i.z.Info);var o=N(e,n&&n.syntheticException||void 0,r);return o.level=t,n&&n.event_id&&(o.event_id=n.event_id),(0,l.WD)(o)}function k(e,t,n,i){var u;if((0,o.VW)(e)&&e.error)return C(e.error);if((0,o.TX)(e)||(0,o.fm)(e)){var l=e;if("stack"in e)u=C(e);else{var d=l.name||((0,o.TX)(l)?"DOMError":"DOMException"),f=l.message?d+": "+l.message:d;u=N(f,t,n),(0,c.Db)(u,f)}return"code"in l&&(u.tags=(0,r.pi)((0,r.pi)({},u.tags),{"DOMException.code":""+l.code})),u}return(0,o.VZ)(e)?C(e):(0,o.PO)(e)||(0,o.cO)(e)?(u=function(e,t,n){var r={exception:{values:[{type:(0,o.cO)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+(0,a.zf)(e)}]},extra:{__serialized__:(0,s.Qy)(e)}};if(t){var i=P(t);i.length&&(r.stacktrace={frames:i})}return r}(e,t,i),(0,c.EG)(u,{synthetic:!0}),u):(u=N(e,t,n),(0,c.Db)(u,""+e,void 0),(0,c.EG)(u,{synthetic:!0}),u)}function N(e,t,n){var r={message:e};if(n&&t){var i=P(t);i.length&&(r.stacktrace={frames:i})}return r}},24326:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},86891:function(e,t,n){"use strict";n.d(t,{BS:function(){return m},Wz:function(){return p},re:function(){return h}});var r=n(66856),i=n(40802),o=n(1984),a=n(82991),s=n(20535),u=n(62844),c=n(12343),l=n(24326),d=(0,a.R)(),f=0;function p(){return f>0}function h(e,t,n){if(void 0===t&&(t={}),"function"!==typeof e)return e;try{var o=e.__sentry_wrapped__;if(o)return o;if((0,s.HK)(e))return e}catch(l){return e}var a=function(){var o=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var a=o.map((function(e){return h(e,t)}));return e.apply(this,a)}catch(s){throw f+=1,setTimeout((function(){f-=1})),(0,i.$e)((function(e){e.addEventProcessor((function(e){return t.mechanism&&((0,u.Db)(e,void 0,void 0),(0,u.EG)(e,t.mechanism)),e.extra=(0,r.pi)((0,r.pi)({},e.extra),{arguments:o}),e})),(0,i.Tb)(s)})),s}};try{for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&(a[c]=e[c])}catch(d){}(0,s.$Q)(a,e),(0,s.xp)(e,"__sentry_wrapped__",a);try{Object.getOwnPropertyDescriptor(a,"name").configurable&&Object.defineProperty(a,"name",{get:function(){return e.name}})}catch(d){}return a}function m(e){if(void 0===e&&(e={}),d.document)if(e.eventId)if(e.dsn){var t=d.document.createElement("script");t.async=!0,t.src=(0,o.hR)(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=d.document.head||d.document.body;n&&n.appendChild(t)}else l.h&&c.kg.error("Missing dsn option in showReportDialog call");else l.h&&c.kg.error("Missing eventId option in showReportDialog call")}},39038:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r=n(66856),i=n(93153),o=n(83024),a=n(62844),s=n(9732),u=n(58464),c=["fatal","error","warning","log","info","debug","critical"];function l(e){return"warn"===e?o.z.Warning:function(e){return-1!==c.indexOf(e)}(e)?e:o.z.Log}var d=n(57321),f=n(82991),p=function(){function e(t){this.name=e.id,this._options=(0,r.pi)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&(0,i.Gd)().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,a.jH)(e)},{event:e})},e.prototype.setupOnce=function(){this._options.console&&(0,s.o)("console",h),this._options.dom&&(0,s.o)("dom",function(e){function t(t){var n,r="object"===typeof e?e.serializeAttribute:void 0;"string"===typeof r&&(r=[r]);try{n=t.event.target?(0,u.R)(t.event.target,r):(0,u.R)(t.event,r)}catch(o){n=""}0!==n.length&&(0,i.Gd)().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})}return t}(this._options.dom)),this._options.xhr&&(0,s.o)("xhr",m),this._options.fetch&&(0,s.o)("fetch",g),this._options.history&&(0,s.o)("history",v)},e.id="Breadcrumbs",e}();function h(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:l(e.level),message:(0,d.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+((0,d.nK)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,i.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function m(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,a=t.body;(0,i.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:a})}else;}function g(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,i.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:o.z.Error,type:"http"},{data:e.error,input:e.args}):(0,i.Gd)().addBreadcrumb({category:"fetch",data:(0,r.pi)((0,r.pi)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function v(e){var t=(0,f.R)(),n=e.from,r=e.to,o=(0,a.en)(t.location.href),s=(0,a.en)(n),u=(0,a.en)(r);s.path||(s=o),o.protocol===u.protocol&&o.host===u.host&&(r=u.relative),o.protocol===s.protocol&&o.host===s.host&&(n=s.relative),(0,i.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}},20404:function(e,t,n){"use strict";n.d(t,{d:function(){return y}});var r=n(66856),i=n(1984),o=n(29324),a=n(82991),s=n(81227),u=n(12343),c=n(58725),l=n(21170);var d=n(30292),f=n(136),p=n(80228),h=n(24326),m=n(96546);function g(e){return"event"===e?"error":e}var v=(0,a.R)(),y=function(){function e(e){var t=this;this.options=e,this._buffer=(0,s.x)(30),this._rateLimits={},this._outcomes={},this._api=(0,i.hd)(e.dsn,e._metadata,e.tunnel),this.url=(0,i.qi)(this._api.dsn),this.options.sendClientReports&&v.document&&v.document.addEventListener("visibilitychange",(function(){"hidden"===v.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest((0,o.nA)(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest((0,o.Qz)(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=g(t)+":"+e;h.h&&u.kg.log("Adding outcome: "+r),this._outcomes[r]=(null!==(n=this._outcomes[r])&&void 0!==n?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){h.h&&u.kg.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=(0,i.Ut)(this._api.dsn,this._api.tunnel),n=function(e,t,n){var r=[{type:"client_report"},{timestamp:n||(0,l.yW)(),discarded_events:e}];return(0,c.Jd)(t?{dsn:t}:{},[r])}(Object.keys(e).map((function(t){var n=(0,r.CR)(t.split(":"),2),i=n[0];return{reason:n[1],category:i,quantity:e[t]}})),this._api.tunnel&&(0,d.R)(this._api.dsn));try{(0,m.z)(t,(0,c.V$)(n))}catch(o){h.h&&u.kg.error(o)}}else h.h&&u.kg.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,o=e.reject,a=(0,f.F)(n.status);this._rateLimits=(0,p.WG)(this._rateLimits,r),this._isRateLimited(t)&&h.h&&u.kg.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),"success"!==a?o(n):i({status:a})},e.prototype._disabledUntil=function(e){var t=g(e);return new Date((0,p.ns)(this._rateLimits,t))},e.prototype._isRateLimited=function(e){var t=g(e);return(0,p.Q)(this._rateLimits,t)},e}()},68690:function(e,t,n){"use strict";n.d(t,{V:function(){return c}});var r=n(66856),i=n(8823),o=n(96893),a=n(77047),s=n(20404),u=n(96546),c=function(e){function t(t,n){void 0===n&&(n=(0,u.x)());var r=e.call(this,t)||this;return r._fetch=n,r}return(0,r.ZT)(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:(0,i.hv)()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new o.cW((function(t,i){n._fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)}))})).then(void 0,(function(t){throw t instanceof a.b?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(s.d)},20754:function(e,t,n){"use strict";n.d(t,{k:function(){return a}});var r=n(66856),i=n(45431),o=n(96546);function a(e,t){return void 0===t&&(t=(0,o.x)()),(0,i.qv)({bufferSize:e.bufferSize},(function(n){var i=(0,r.pi)({body:n.body,method:"POST",referrerPolicy:"origin"},e.requestOptions);return t(e.url,i).then((function(e){return e.text().then((function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}}))}))}))}},20116:function(e,t,n){"use strict";n.d(t,{H:function(){return a}});var r=n(45431),i=n(96893),o=4;function a(e){return(0,r.qv)({bufferSize:e.bufferSize},(function(t){return new i.cW((function(n,r){var i=new XMLHttpRequest;for(var a in i.onreadystatechange=function(){if(i.readyState===o){var e={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};n(e)}},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,a)&&i.setRequestHeader(a,e.headers[a]);i.send(t.body)}))}))}},96546:function(e,t,n){"use strict";n.d(t,{x:function(){return c},z:function(){return l}});var r=n(82991),i=n(8823),o=n(12343);var a,s=n(24326),u=(0,r.R)();function c(){if(a)return a;if((0,i.Du)(u.fetch))return a=u.fetch.bind(u);var e=u.document,t=u.fetch;if(e&&"function"===typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(c){s.h&&o.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",c)}return a=t.bind(u)}function l(e,t){if("[object Navigator]"===Object.prototype.toString.call(u&&u.navigator)&&"function"===typeof u.navigator.sendBeacon)return u.navigator.sendBeacon.bind(u.navigator)(e,t);if((0,i.Ak)()){var n=c();n(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}else;}},68131:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(66856),i=n(96893),o=n(77047),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new i.cW((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)}))})).then(void 0,(function(t){throw t instanceof o.b?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(n(20404).d)},66856:function(e,t,n){"use strict";n.d(t,{CR:function(){return a},ZT:function(){return i},fl:function(){return s},pi:function(){return o}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a(){for(var e=[],t=0;t0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors((0,r.fl)(c(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=(0,r.pi)((0,r.pi)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,o){var s=this;return void 0===o&&(o=0),new a.cW((function(a,u){var c=e[o];if(null===t||"function"!==typeof c)a(t);else{var l=c((0,r.pi)({},t),n);(0,i.J8)(l)?l.then((function(t){return s._notifyEventProcessors(e,t,n,o+1).then(a)})).then(null,u):s._notifyEventProcessors(e,l,n,o+1).then(a).then(null,u)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function c(){return(0,s.Y)("globalEventProcessors",(function(){return[]}))}function l(e){c().push(e)}},95771:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(62844),i=n(21170),o=n(20535),a=function(){function e(e){this.errors=0,this.sid=(0,r.DM)(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=(0,i.ph)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||(0,i.ph)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,r.DM)()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"===typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"===typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"===typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return(0,o.Jr)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"===typeof this.did||"string"===typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}()},68907:function(e,t,n){"use strict";n.d(t,{fl:function(){return o},pi:function(){return r}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function o(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var o=n(93153);function a(e){for(var t=[],n=1;n1&&o+3*r.length+s.length>=80);)r.push(s),o+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(u){return""}}function a(e,t){var n,r,o,a,s,u=e,c=[];if(!u||!u.tagName)return"";c.push(u.tagName.toLowerCase());var l=t&&t.length?t.filter((function(e){return u.getAttribute(e)})).map((function(e){return[e,u.getAttribute(e)]})):null;if(l&&l.length)l.forEach((function(e){c.push("["+e[0]+'="'+e[1]+'"]')}));else if(u.id&&c.push("#"+u.id),(n=u.className)&&(0,i.HD)(n))for(r=n.split(/\s+/),s=0;s1&&(h=g.slice(0,-1).join("/"),m=g.pop()),m){var v=m.match(/^\d+/);v&&(m=v[0])}return u({host:d,pass:l,path:h,projectId:m,port:p,protocol:o,publicKey:s})}(e):u(e);return function(e){if(o.h){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new i.b("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new i.b("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new i.b("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new i.b("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}},58725:function(e,t,n){"use strict";n.d(t,{Jd:function(){return o},V$:function(){return s},y7:function(){return a}});var r=n(50832),i=n(67597);function o(e,t){return void 0===t&&(t=[]),[e,t]}function a(e){var t=(0,r.CR)(e,2),n=(0,r.CR)(t[1],1);return(0,r.CR)(n[0],1)[0].type}function s(e){var t=(0,r.CR)(e,2),n=t[0],o=t[1],a=JSON.stringify(n);return o.reduce((function(e,t){var n=(0,r.CR)(t,2),o=n[0],a=n[1],s=(0,i.pt)(a)?String(a):JSON.stringify(a);return e+"\n"+JSON.stringify(o)+"\n"+s}),a)}},77047:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(50832),i=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e});var o=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,i(r,n.prototype),r}return(0,r.ZT)(t,e),t}(Error)},88795:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},82991:function(e,t,n){"use strict";n.d(t,{R:function(){return o},Y:function(){return a}});var r=n(92448),i={};function o(){return(0,r.KV)()?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},9732:function(e,t,n){"use strict";n.d(t,{o:function(){return g}});var r,i=n(50832),o=n(88795),a=n(82991),s=n(67597),u=n(12343),c=n(20535),l=n(30360),d=n(8823),f=(0,a.R)(),p={},h={};function m(e){if(!h[e])switch(h[e]=!0,e){case"console":!function(){if(!("console"in f))return;u.RU.forEach((function(e){e in f.console&&(0,c.hl)(f.console,e,(function(t){return function(){for(var n=[],r=0;r2?t[2]:void 0;if(i){var o=r,a=String(i);r=a,v("history",{from:o,to:a})}return e.apply(this,t)}}f.onpopstate=function(){for(var t=[],n=0;n":n||""}function l(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function d(e,t){var n=u(e);if(n){var i=n.mechanism;if(n.mechanism=(0,r.pi)((0,r.pi)((0,r.pi)({},{type:"generic",handled:!0}),i),t),t&&"data"in t){var o=(0,r.pi)((0,r.pi)({},i&&i.data),t.data);n.mechanism.data=o}}}function f(e){if(e&&e.__sentry_captured__)return!0;try{(0,o.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}},92448:function(e,t,n){"use strict";n.d(t,{l$:function(){return o},KV:function(){return i}}),e=n.hmd(e);var r=n(34155);function i(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof r?r:0)}function o(e,t){return e.require(t)}},34754:function(e,t,n){"use strict";n.d(t,{Fv:function(){return s},Qy:function(){return u}});var r=n(50832),i=n(67597);var o=n(20535),a=n(30360);function s(e,t,n){void 0===t&&(t=1/0),void 0===n&&(n=1/0);try{return c("",e,t,n)}catch(r){return{ERROR:"**non-serializable** ("+r+")"}}}function u(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,i=s(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?u(e,t-1,n):i}function c(e,t,s,u,l){void 0===s&&(s=1/0),void 0===u&&(u=1/0),void 0===l&&(l=function(){var e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var r=0;r=u){g[b]="[MaxProperties ~]";break}var _=y[b];g[b]=c(b,_,s-1,u,l),v+=1}return p(t),g}},20535:function(e,t,n){"use strict";n.d(t,{$Q:function(){return c},HK:function(){return l},Jr:function(){return g},Sh:function(){return f},_j:function(){return d},hl:function(){return s},xp:function(){return u},zf:function(){return m}});var r=n(50832),i=n(58464),o=n(67597),a=n(57321);function s(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"===typeof i)try{c(i,r)}catch(o){}e[t]=i}}function u(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function c(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}function l(e){return e.__sentry_original__}function d(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function f(e){var t=e;if((0,o.VZ)(e))t=(0,r.pi)({message:e.message,name:e.name,stack:e.stack},h(e));else if((0,o.cO)(e)){var n=e;t=(0,r.pi)({type:n.type,target:p(n.target),currentTarget:p(n.currentTarget)},h(n)),"undefined"!==typeof CustomEvent&&(0,o.V9)(e,CustomEvent)&&(t.detail=n.detail)}return t}function p(e){try{return(0,o.kK)(e)?(0,i.R)(e):Object.prototype.toString.call(e)}catch(t){return""}}function h(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function m(e,t){void 0===t&&(t=40);var n=Object.keys(f(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,a.$G)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:(0,a.$G)(i,t)}return""}function g(e){var t,n;if((0,o.PO)(e)){var i={};try{for(var a=(0,r.XA)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value;"undefined"!==typeof e[u]&&(i[u]=g(e[u]))}}catch(c){t={error:c}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(g):e}},81227:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(77047),i=n(96893);function o(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length0&&n(!1)}),e);t.forEach((function(e){(0,i.WD)(e).then((function(){--o||(clearTimeout(a),n(!0))}),r)}))}))}}}},80228:function(e,t,n){"use strict";n.d(t,{Q:function(){return a},WG:function(){return s},ns:function(){return o}});var r=n(50832),i=6e4;function o(e,t){return e[t]||e.all||0}function a(e,t,n){return void 0===n&&(n=Date.now()),o(e,t)>n}function s(e,t,n){var o,a,s,u;void 0===n&&(n=Date.now());var c=(0,r.pi)({},e),l=t["x-sentry-rate-limits"],d=t["retry-after"];if(l)try{for(var f=(0,r.XA)(l.trim().split(",")),p=f.next();!p.done;p=f.next()){var h=p.value.split(":",2),m=parseInt(h[0],10),g=1e3*(isNaN(m)?60:m);if(h[1])try{for(var v=(s=void 0,(0,r.XA)(h[1].split(";"))),y=v.next();!y.done;y=v.next()){c[y.value]=n+g}}catch(b){s={error:b}}finally{try{y&&!y.done&&(u=v.return)&&u.call(v)}finally{if(s)throw s.error}}else c.all=n+g}}catch(_){o={error:_}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}else d&&(c.all=n+function(e,t){void 0===t&&(t=Date.now());var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?i:r-t}(d,n));return c}},30360:function(e,t,n){"use strict";n.d(t,{$P:function(){return s},pE:function(){return o}});var r=n(50832),i=50;function o(){for(var e=[],t=0;t=200&&e<300?"success":429===e?"rate_limit":e>=400&&e<500?"invalid":e>=500?"failed":"unknown"}n.d(t,{F:function(){return r}})},57321:function(e,t,n){"use strict";n.d(t,{$G:function(){return i},nK:function(){return o},zC:function(){return a}});var r=n(67597);function i(e,t){return void 0===t&&(t=0),"string"!==typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1}))}function y(e){return e&&v(["client"],e)&&v(["export"],e)}function b(e){var t=e.name.value;return"skip"===t||"include"===t}function _(e){for(var t=[],n=1;n1){var r=[];t=Q(t,r);for(var i=1;i0}var le,de=function(e){function t(n){var r=n.graphQLErrors,i=n.networkError,o=n.errorMessage,a=n.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=r||[],s.networkError=i||null,s.message=o||function(e){var t="";return ce(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var n=e?e.message:"Error message not found.";t+="GraphQL error: "+n+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=t.prototype,s}return i(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(le||(le={}));var fe=function(e){function t(t){var n=t.queryManager,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=e.call(this,(function(e){return a.onSubscribe(e)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=r,a.variables=r.variables||{},a.queryId=n.generateQueryId(),a.shouldSubscribe=o;var s=S(r.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=n,a}return i(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:oe.error}}var t,n,r,i=this.queryManager.getCurrentQueryResult(this),a=i.data,s=i.partial,u=this.queryManager.queryStore.get(this.queryId),c=this.options.fetchPolicy,l="network-only"===c||"no-cache"===c;if(u){var d=u.networkStatus;if(n=u,void 0===(r=this.options.errorPolicy)&&(r="none"),n&&(n.networkError||"none"===r&&ce(n.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:d,error:new de({graphQLErrors:u.graphQLErrors,networkError:u.networkError})};u.variables&&(this.options.variables=o({},this.options.variables,u.variables),this.variables=this.options.variables),t={data:a,loading:se(d),networkStatus:d},u.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=u.graphQLErrors)}else{var f=l||s&&"cache-only"!==c;t={data:a,loading:f,networkStatus:f?oe.loading:oe.ready}}return s||this.updateLastResult(o({},t,{stale:!1})),o({},t,{partial:s})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&(0,l.D)(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new c.ej(3)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),(0,l.D)(this.variables,e)||(this.variables=o({},this.variables,e)),(0,l.D)(this.options.variables,this.variables)||(this.options.variables=o({},this.options.variables,this.variables)),this.queryManager.fetchQuery(this.queryId,o({},this.options,{fetchPolicy:t}),le.refetch))},t.prototype.fetchMore=function(e){var t=this;(0,c.kG)(e.updateQuery,4);var n=o({},e.query?e:o({},this.options,e,{variables:o({},this.variables,e.variables)}),{fetchPolicy:"network-only"}),r=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(r,n,le.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:n.variables})})),t.queryManager.stopQuery(r),i}),(function(e){throw t.queryManager.stopQuery(r),e}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:n,variables:i})}))},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=o({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n=e.fetchPolicy;return this.setVariables(this.options.variables,t!==n&&("cache-only"===t||"standby"===t||"network-only"===n),e.fetchResults)},t.prototype.setVariables=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=!0),this.isTornDown=!1,e=e||this.variables,!t&&(0,l.D)(e,this.variables)?this.observers.size&&n?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.getQueryWithPreviousResult(this.queryId),r=n.previousResult,i=n.variables,o=n.document,a=G((function(){return e(r,{variables:i})}));a&&(t.dataStore.markUpdateQueryResult(o,i,a),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){me(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:F(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var n=e._subscription._observer;n&&!n.error&&(n.error=pe)}catch(i){}var r=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),r&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this.queryManager,n=this.queryId;this.shouldSubscribe&&t.addObservableQuery(n,this),this.options.pollInterval&&(me(this),t.startPollingQuery(this.options,n));var r=function(t){e.updateLastResult(o({},e.lastResult,{errors:t.graphQLErrors,networkStatus:oe.error,loading:!1})),he(e.observers,"error",e.lastError=t)};t.observeQuery(n,this.options,{next:function(n){if(e.lastError||e.isDifferentFromLastResult(n)){var r=e.updateLastResult(n),i=e.options,o=i.query,a=i.variables,s=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,a).then((function(i){var a=e.variables;e.variables=e.options.variables=i,!n.loading&&r&&"cache-only"!==s&&t.transform(o).serverQuery&&!(0,l.D)(a,i)?e.refetch():he(e.observers,"next",n)})):he(e.observers,"next",n)}},error:r}).catch(r)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(ue);function pe(e){}function he(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function me(e){var t=e.options.fetchPolicy;(0,c.kG)("cache-first"!==t&&"cache-only"!==t,5)}var ge=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutation:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var n=this.store[e];n&&(n.loading=!1,n.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}(),ve=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];(0,c.kG)(!t||t.document===e.document||(0,l.D)(t.document,e.document),19);var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==oe.loading&&((0,l.D)(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?oe.setVariables:e.isPoll?oe.poll:e.isRefetch?oe.refetch:oe.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:n,metadata:e.metadata},"string"===typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=oe.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=ce(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=oe.ready,"string"===typeof n&&this.store[n]&&(this.store[n].networkStatus=oe.ready))},e.prototype.markQueryError=function(e,t,n){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=oe.error,"string"===typeof n&&this.markQueryResultClient(n,!0))},e.prototype.markQueryResultClient=function(e,t){var n=this.store&&this.store[e];n&&(n.networkError=null,n.previousVariables=null,t&&(n.networkStatus=oe.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(n){e.indexOf(n)<0?t.stopQuery(n):t.store[n].networkStatus=oe.loading}))},e}();var ye=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=V(t.resolvers,e)})):this.resolvers=V(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,u=e.onlyRunForcedResolvers,c=void 0!==u&&u;return a(this,void 0,void 0,(function(){return s(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,c).then((function(e){return o({},n,{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return v(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?function(e){E(e);var t=D([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,u.visit)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return h(e)&&"__typename"===e.name.value})))return null}}})),t}(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return o({},e,{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);(0,c.kG)(!1,6)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),a(this,void 0,void 0,(function(){return s(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return o({},t,e.exportedVariables)}))]:[2,o({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,u.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return u.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:I(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,u){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===u&&(u=!1),a(this,void 0,void 0,(function(){var a,c,l,d,f,p,h,m,g;return s(this,(function(s){var v;return a=O(e),c=T(e),l=x(c),d=a.operation,f=d?(v=d).charAt(0).toUpperCase()+v.slice(1):"Query",h=(p=this).cache,m=p.client,g={fragmentMap:l,context:o({},n,{cache:h,client:m}),variables:r,fragmentMatcher:i,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:u},[2,this.resolveSelectionSet(a.selectionSet,t,g).then((function(e){return{result:e,exportedVariables:g.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,u,l,d=this;return s(this,(function(f){return r=n.fragmentMap,i=n.context,o=n.variables,u=[t],l=function(e){return a(d,void 0,void 0,(function(){var a,l;return s(this,(function(s){return g(e,o)?h(e)?[2,this.resolveField(e,t,n).then((function(t){var n;"undefined"!==typeof t&&u.push(((n={})[p(e)]=t,n))}))]:(m(e)?a=e:(a=r[e.name.value],(0,c.kG)(a,7)),a&&a.typeCondition&&(l=a.typeCondition.name.value,n.fragmentMatcher(t,l,i))?[2,this.resolveSelectionSet(a.selectionSet,t,n).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return Z(u)}))]}))}))},e.prototype.resolveField=function(e,t,n){return a(this,void 0,void 0,(function(){var r,i,o,a,u,c,l,d,h,m=this;return s(this,(function(s){return r=n.variables,i=e.name.value,o=p(e),a=i!==o,u=t[o]||t[i],c=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[l])&&(h=d[a?i:o])&&(c=Promise.resolve(h(t,f(e,r),n.context,{field:e})))),[2,c.then((function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=t)}))})),e.selectionSet?null==t?t:Array.isArray(t)?m.resolveSubSelectedArray(e,t,n):e.selectionSet?m.resolveSelectionSet(e.selectionSet,t,n):void 0:t}))]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n){var r=this;return Promise.all(t.map((function(t){return null===t?null:Array.isArray(t)?r.resolveSubSelectedArray(e,t,n):e.selectionSet?r.resolveSelectionSet(e.selectionSet,t,n):void 0})))},e}();function be(e){var t=new Set,n=null;return new ue((function(r){return t.add(r),n=n||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(r)&&!t.size&&n&&(n.unsubscribe(),n=null)}}))}var _e=Object.prototype.hasOwnProperty,Ee=function(){function e(e){var t=e.link,n=e.queryDeduplication,r=void 0!==n&&n,i=e.store,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,u=void 0!==s&&s,c=e.clientAwareness,l=void 0===c?{}:c,d=e.localState,f=e.assumeImmutableResults;this.mutationStore=new ge,this.queryStore=new ve,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(B?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=r,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=l,this.localState=d||new ye({cache:i.getCache()}),this.ssrMode=u,this.assumeImmutableResults=!!f}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.fetchQueryRejectFns.forEach((function(e){e(new c.ej(8))}))},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,u=e.refetchQueries,l=void 0===u?[]:u,d=e.awaitRefetchQueries,f=void 0!==d&&d,p=e.update,h=e.errorPolicy,m=void 0===h?"none":h,g=e.fetchPolicy,v=e.context,y=void 0===v?{}:v;return a(this,void 0,void 0,(function(){var e,a,u,d=this;return s(this,(function(s){switch(s.label){case 0:return(0,c.kG)(t,9),(0,c.kG)(!g||"no-cache"===g,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,y)]:[3,2];case 1:n=s.sent(),s.label=2;case 2:return a=function(){var e={};return i&&d.queries.forEach((function(t,n){var r=t.observableQuery;if(r){var o=r.queryName;o&&_e.call(i,o)&&(e[n]={updater:i[o],query:d.queryStore.get(n)})}})),e},this.mutationStore.initMutation(e,t,n),this.dataStore.markMutationInit({mutationId:e,document:t,variables:n,updateQueries:a(),update:p,optimisticResponse:r}),this.broadcastQueries(),u=this,[2,new Promise((function(i,s){var c,d;u.getObservableFromLink(t,o({},y,{optimisticResponse:r}),n,!1).subscribe({next:function(r){U(r)&&"none"===m?d=new de({graphQLErrors:r.errors}):(u.mutationStore.markMutationResult(e),"no-cache"!==g&&u.dataStore.markMutationResult({mutationId:e,result:r,document:t,variables:n,updateQueries:a(),update:p}),c=r)},error:function(t){u.mutationStore.markMutationError(e,t),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),u.broadcastQueries(),u.setQuery(e,(function(){return{document:null}})),s(new de({networkError:t}))},complete:function(){if(d&&u.mutationStore.markMutationError(e,d),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:r}),u.broadcastQueries(),d)s(d);else{"function"===typeof l&&(l=l(c));var t=[];ce(l)&&l.forEach((function(e){if("string"===typeof e)u.queries.forEach((function(n){var r=n.observableQuery;r&&r.queryName===e&&t.push(r.refetch())}));else{var n={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(n.context=e.context),t.push(u.query(n))}})),Promise.all(f?t:[]).then((function(){u.setQuery(e,(function(){return{document:null}})),"ignore"===m&&c&&U(c)&&delete c.errors,i(c)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,n,r){return a(this,void 0,void 0,(function(){var i,a,u,c,l,d,f,p,h,m,g,y,b,_,E,S,w,T,O=this;return s(this,(function(s){switch(s.label){case 0:return i=t.metadata,a=void 0===i?null:i,u=t.fetchPolicy,c=void 0===u?"cache-first":u,l=t.context,d=void 0===l?{}:l,f=this.transform(t.query).document,p=this.getVariables(f,t.variables),this.transform(f).hasClientExports?[4,this.localState.addExportedVariables(f,p,d)]:[3,2];case 1:p=s.sent(),s.label=2;case 2:if(t=o({},t,{variables:p}),g=m="network-only"===c||"no-cache"===c,m||(y=this.dataStore.getCache().diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),b=y.complete,_=y.result,g=!b||"cache-and-network"===c,h=_),E=g&&"cache-only"!==c&&"standby"!==c,v(["live"],f)&&(E=!0),S=this.idCounter++,w="no-cache"!==c?this.updateQueryWatch(e,f,t):void 0,this.setQuery(e,(function(){return{document:f,lastRequestId:S,invalidated:!0,cancel:w}})),this.invalidate(r),this.queryStore.initQuery({queryId:e,document:f,storePreviousVariables:E,variables:p,isPoll:n===le.poll,isRefetch:n===le.refetch,metadata:a,fetchMoreForQueryId:r}),this.broadcastQueries(),E){if(T=this.fetchRequest({requestId:S,queryId:e,document:f,options:t,fetchMoreForQueryId:r}).catch((function(t){throw t.hasOwnProperty("graphQLErrors")?t:(S>=O.getQuery(e).lastRequestId&&(O.queryStore.markQueryError(e,t,r),O.invalidate(e),O.invalidate(r),O.broadcastQueries()),new de({networkError:t}))})),"cache-and-network"!==c)return[2,T];T.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!E),this.invalidate(e),this.invalidate(r),this.transform(f).hasForcedResolvers?[2,this.localState.runResolvers({document:f,remoteResult:{data:h},context:d,variables:p,onlyRunForcedResolvers:!0}).then((function(n){return O.markQueryResult(e,n,t,r),O.broadcastQueries(),n}))]:(this.broadcastQueries(),[2,{data:h}])}}))}))},e.prototype.markQueryResult=function(e,t,n,r){var i=n.fetchPolicy,o=n.variables,a=n.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,r,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,n){var r=this;function i(e,t){if(n[e])try{n[e](t)}catch(r){}}return function(n,o){if(r.invalidate(e,!1),n){var a=r.getQuery(e),s=a.observableQuery,u=a.document,c=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==c){var l=se(n.networkStatus),d=s&&s.getLastResult(),f=!(!d||d.networkStatus===n.networkStatus),p=t.returnPartialData||!o&&n.previousVariables||f&&t.notifyOnNetworkStatusChange||"cache-only"===c||"cache-and-network"===c;if(!l||p){var h=ce(n.graphQLErrors),m=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===m&&h||n.networkError)return i("error",new de({graphQLErrors:n.graphQLErrors,networkError:n.networkError}));try{var g=void 0,v=void 0;if(o)"no-cache"!==c&&"network-only"!==c&&r.setQuery(e,(function(){return{newData:null}})),g=o.result,v=!o.complete;else{var y=s&&s.getLastError(),b="none"!==m&&(y&&y.graphQLErrors)!==n.graphQLErrors;if(d&&d.data&&!b)g=d.data,v=!1;else{var _=r.dataStore.getCache().diff({query:u,variables:n.previousVariables||n.variables,returnPartialData:!0,optimistic:!0});g=_.result,v=!_.complete}}var E=v&&!(t.returnPartialData||"cache-only"===c),S={data:E?d&&d.data:g,loading:l,networkStatus:n.networkStatus,stale:E};"all"===m&&h&&(S.errors=n.graphQLErrors),i("next",S)}catch(w){i("error",new de({networkError:w}))}}}}}},e.prototype.transform=function(e){var t,n=this.transformCache;if(!n.has(e)){var r=this.dataStore.getCache(),i=r.transformDocument(e),o=(t=r.transformForLink(i),D([k],E(t))),a=this.localState.clientQuery(i),s=this.localState.serverQuery(o),u={document:i,hasClientExports:y(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),clientQuery:a,serverQuery:s,defaultVars:C(S(i))},c=function(e){e&&!n.has(e)&&n.set(e,u)};c(e),c(i),c(a),c(s)}return n.get(e)},e.prototype.getVariables=function(e,t){return o({},this.transform(e).defaultVars,t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),(0,c.kG)("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),"undefined"===typeof e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=o({},e);return new fe({queryManager:this,options:n,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return(0,c.kG)(e.query,12),(0,c.kG)("Document"===e.query.kind,13),(0,c.kG)(!e.returnPartialData,14),(0,c.kG)(!e.pollInterval,15),new Promise((function(n,r){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,r),i.result().then(n,r).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,n){var r=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:n.variables,optimistic:!0,previousResult:function(){var t=null,n=r.getQuery(e).observableQuery;if(n){var i=n.getLastResult();i&&(t=i.data)}return t},callback:function(t){r.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new c.ej(16))}));var e=[];return this.queries.forEach((function(t,n){t.observableQuery&&e.push(n)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then((function(){return e.reFetchObservableQueries()}))},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.queries.forEach((function(r,i){var o=r.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||n.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(n)},e.prototype.observeQuery=function(e,t,n){return this.addQueryListener(e,this.queryListenerForObserver(e,t,n)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.variables;n=this.transform(n).document,i=this.getVariables(n,i);var o=function(e){return t.getObservableFromLink(n,{},e,!1).map((function(i){if(r&&"no-cache"===r||(t.dataStore.markSubscriptionResult(i,n,e),t.broadcastQueries()),U(i))throw new de({graphQLErrors:i.errors});return i}))};if(this.transform(n).hasClientExports){var a=this.localState.addExportedVariables(n,i).then(o);return new ue((function(e){var t=null;return a.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(i)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var n=e.options,r=n.variables,i=n.query,o=n.fetchPolicy,a=n.returnPartialData,s=e.getLastResult(),u=this.getQuery(e.queryId).newData;if(u&&u.complete)return{data:u.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var c=this.dataStore.getCache().diff({query:i,variables:r,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=c.result,d=c.complete;return{data:d||a?l:void 0,partial:!d}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"===typeof e){var n=this.getQuery(e).observableQuery;(0,c.kG)(n,17),t=n}else t=e;var r=t.options,i=r.variables,o=r.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,n){t.invalidated&&t.listeners.forEach((function(r){r&&r(e.queryStore.get(n),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r){var i,a=this;void 0===r&&(r=this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var u=this.inFlightLinkObservables,c=this.link,l={query:s,variables:n,operationName:w(s)||void 0,context:this.prepareContext(o({},t,{forceFetch:!r}))};if(t=l.context,r){var d=u.get(s)||new Map;u.set(s,d);var f=JSON.stringify(n);if(!(i=d.get(f))){d.set(f,i=be(ie(c,l)));var p=function(){d.delete(f),d.size||u.delete(s),h.unsubscribe()},h=i.subscribe({next:p,error:p,complete:p})}}else i=be(ie(c,l))}else i=ue.of({data:{}}),t=this.prepareContext(t);var m=this.transform(e).clientQuery;return m&&(i=function(e,t){return new ue((function(n){var r=n.next,i=n.error,o=n.complete,a=0,s=!1,u={next:function(e){++a,new Promise((function(n){n(t(e))})).then((function(e){--a,r&&r.call(n,e),s&&u.complete()}),(function(e){--a,i&&i.call(n,e)}))},error:function(e){i&&i.call(n,e)},complete:function(){s=!0,a||o&&o.call(n)}},c=e.subscribe(u);return function(){return c.unsubscribe()}}))}(i,(function(e){return a.localState.runResolvers({document:m,remoteResult:e,context:t,variables:n})}))),i},e.prototype.fetchRequest=function(e){var t,n,r=this,i=e.requestId,o=e.queryId,a=e.document,s=e.options,u=e.fetchMoreForQueryId,c=s.variables,l=s.errorPolicy,d=void 0===l?"none":l,f=s.fetchPolicy;return new Promise((function(e,l){var p=r.getObservableFromLink(a,s.context,c),h="fetchRequest:"+o;r.fetchQueryRejectFns.set(h,l);var m=function(){r.fetchQueryRejectFns.delete(h),r.setQuery(o,(function(e){e.subscriptions.delete(g)}))},g=p.map((function(e){if(i>=r.getQuery(o).lastRequestId&&(r.markQueryResult(o,e,s,u),r.queryStore.markQueryResult(o,e,u),r.invalidate(o),r.invalidate(u),r.broadcastQueries()),"none"===d&&ce(e.errors))return l(new de({graphQLErrors:e.errors}));if("all"===d&&(n=e.errors),u||"no-cache"===f)t=e.data;else{var p=r.dataStore.getCache().diff({variables:c,query:a,optimistic:!1,returnPartialData:!0}),h=p.result;(p.complete||s.returnPartialData)&&(t=h)}})).subscribe({error:function(e){m(),l(e)},complete:function(){m(),e({data:t,errors:n,loading:!1,networkStatus:oe.ready,stale:!1})}});r.setQuery(o,(function(e){e.subscriptions.add(g)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var n=this.getQuery(e),r=o({},n,t(n));this.queries.set(e,r)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return o({},t,{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==oe.ready&&t.networkStatus!==oe.error},e.prototype.startPollingQuery=function(e,t,n){var r=this,i=e.pollInterval;if((0,c.kG)(i,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=i,a.options=o({},e,{fetchPolicy:"network-only"});var s=function(){var e=r.pollingInfoByQueryId.get(t);e&&(r.checkInFlight(t)?u():r.fetchQuery(t,e.options,le.poll).then(u,u))},u=function(){var e=r.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};n&&this.addQueryListener(t,n),u()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),Se=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,n,r,i){void 0===i&&(i=!1);var o=!U(e);i&&U(e)&&e.data&&(o=!0),!r&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:n})},e.prototype.markSubscriptionResult=function(e,t,n){U(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:n})},e.prototype.markMutationInit=function(e){var t,n=this;e.optimisticResponse&&(t="function"===typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(r){var i=n.cache;n.cache=r;try{n.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{n.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!U(e.result)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],r=e.updateQueries;r&&Object.keys(r).forEach((function(i){var o=r[i],a=o.query,s=o.updater,u=t.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),c=u.result;if(u.complete){var l=G((function(){return s(c,{mutationResult:e.result,queryName:w(a.document)||void 0,queryVariables:a.variables})}));l&&n.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(t){n.forEach((function(e){return t.write(e)}));var r=e.update;r&&G((function(){return r(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,n){this.cache.write({result:n,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),we=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.cache,r=e.ssrMode,i=void 0!==r&&r,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,u=e.queryDeduplication,l=void 0===u||u,d=e.defaultOptions,f=e.assumeImmutableResults,p=void 0!==f&&f,h=e.resolvers,m=e.typeDefs,g=e.fragmentMatcher,v=e.name,y=e.version,b=e.link;if(!b&&h&&(b=re.empty()),!b||!n)throw new c.ej(1);this.link=b,this.cache=n,this.store=new Se(n),this.disableNetworkFetches=i||a>0,this.queryDeduplication=l,this.defaultOptions=d||{},this.typeDefs=m,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);"undefined"!==typeof s&&(s&&"undefined"!==typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.4",this.localState=new ye({cache:n,client:this,resolvers:h,fragmentMatcher:g}),this.queryManager=new Ee({link:this.link,store:this.store,queryDeduplication:l,ssrMode:i,clientAwareness:{name:v,version:y},localState:this.localState,assumeImmutableResults:p,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=o({},this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=o({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=o({},this.defaultOptions.query,e)),(0,c.kG)("cache-and-network"!==e.fetchPolicy,2),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=o({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=o({},this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return ie(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore()})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e}(),Te=we},65558:function(e,t,n){"use strict";n.d(t,{q:function(){return a}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};var i=n(72058),o=n(99904);function a(e){return new i.i0((function(t,n){return new o.Z((function(r){var i,o,a;try{i=n(t).subscribe({next:function(i){i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function(i){(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n}))?o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(i)},complete:function(){a||r.complete.bind(r)()}})}catch(s){e({networkError:s,operation:t,forward:n}),r.error(s)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(e){function t(t){var n=e.call(this)||this;return n.link=a(t),n}(function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(i.i0)},82406:function(e,t,n){"use strict";n.d(t,{U2:function(){return c},$g:function(){return l},SC:function(){return a},dO:function(){return u},E4:function(){return d},rg:function(){return p},gE:function(){return f}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=300&&s(t,n,"Response not successful: Received status code "+t.status),Array.isArray(n)||n.hasOwnProperty("data")||n.hasOwnProperty("errors")||s(t,n,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),n}))}},c=function(e){if(!e&&"undefined"===typeof fetch){throw"undefined"===typeof window&&"node-fetch",new o.ej(1)}},l=function(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}},d=function(e,t){for(var n=[],o=2;o0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var s=u()(t);a+="("+s+")"}return n&&Object.keys(n).forEach((function(e){-1===f.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function h(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return l(n,r,i,t)})),n}return null}function m(e){return e.alias?e.alias.value:e.name.value}function g(e){return"Field"===e.kind}function v(e){return"InlineFragment"===e.kind}function y(e){return e&&"id"===e.type&&"boolean"===typeof e.generated}function b(e,t){return void 0===t&&(t=!1),o({type:"id",generated:t},"string"===typeof e?{id:e,typename:void 0}:e)}function _(e){return null!=e&&"object"===typeof e&&"json"===e.type}function E(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=h(e,t)})),n}return null}function S(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(w).map((function(e){var t=e.arguments;e.name.value,(0,i.kG)(t&&1===t.length,14);var n=t[0];(0,i.kG)(n.name&&"if"===n.name.value,15);var r=n.value;return(0,i.kG)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),16),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,o=!1;return"Variable"===r.value.kind?(o=t[r.value.name.value],(0,i.kG)(void 0!==o,13)):o=r.value.value,"skip"===n.name.value?!o:o}));var n}function w(e){var t=e.name.value;return"skip"===t||"include"===t}function T(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i.ej(11);"FragmentDefinition"===e.kind&&r.push(e)})),"undefined"===typeof n&&((0,i.kG)(1===r.length,12),n=r[0].name.value),o(o({},e),{definitions:a([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions)})}function O(e){for(var t=[],n=1;n1){var r=[];t=Z(t,r);for(var i=1;i0?a-4:a;for(n=0;n>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;sc?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},65470:function(e,t,n){var r;r=function(){var e=!0;function t(t){function n(e){var n=t.match(e);return n&&n.length>1&&n[1]||""}function r(e){var n=t.match(e);return n&&n.length>1&&n[2]||""}var i,a=n(/(ipod|iphone|ipad)/i).toLowerCase(),s=!/like android/i.test(t)&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),c=!u&&/nexus\s*[0-9]+/i.test(t),l=/CrOS/.test(t),d=/silk/i.test(t),f=/sailfish/i.test(t),p=/tizen/i.test(t),h=/(web|hpw)(o|0)s/i.test(t),m=/windows phone/i.test(t),g=(/SamsungBrowser/i.test(t),!m&&/windows/i.test(t)),v=!a&&!d&&/macintosh/i.test(t),y=!s&&!f&&!p&&!h&&/linux/i.test(t),b=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=n(/version\/(\d+(\.\d+)?)/i),E=/tablet/i.test(t)&&!/tablet pc/i.test(t),S=!E&&/[^-]mobi/i.test(t),w=/xbox/i.test(t);/opera/i.test(t)?i={name:"Opera",opera:e,version:_||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:e,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:e,version:_||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?i={name:"NAVER Whale browser",whale:e,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?i={name:"MZ Browser",mzbrowser:e,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:e,version:_||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?i={name:"Focus",focus:e,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:e,version:_||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:e,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:e,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:e,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:e,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:e,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:e,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:m?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},b?(i.msedge=e,i.version=b):(i.msie=e,i.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:e,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:l?i={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:e,version:b}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:e,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||_}:f?i={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:e,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:e,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=e,i.osname="Firefox OS")):d?i={name:"Amazon Silk",silk:e,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:e,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:e,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:_||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:h?(i={name:"WebOS",osname:"WebOS",webos:e,version:_||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=e)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:e,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:p?i={name:"Tizen",osname:"Tizen",tizen:e,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:e,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(t)?i={name:"Chromium",chromium:e,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:e,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:s?i={name:"Android",version:_}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:e},_&&(i.version=_)):a?(i={name:"iphone"==a?"iPhone":"ipad"==a?"iPad":"iPod"},_&&(i.version=_)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:n(/googlebot\/(\d+(\.\d+))/i)||_}:{name:n(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=e):(i.name=i.name||"Webkit",i.webkit=e),!i.version&&_&&(i.version=_)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=e,i.version=i.version||n(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!s&&!i.silk?!i.windowsphone&&a?(i[a]=e,i.ios=e,i.osname="iOS"):v?(i.mac=e,i.osname="macOS"):w?(i.xbox=e,i.osname="Xbox"):g?(i.windows=e,i.osname="Windows"):y&&(i.linux=e,i.osname="Linux"):(i.android=e,i.osname="Android");var T="";i.windows?T=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?T=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?T=(T=n(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):a?T=(T=n(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):s?T=n(/android[ \/-](\d+(\.\d+)*)/i):i.webos?T=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?T=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?T=n(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(T=n(/tizen[\/\s](\d+(\.\d+)*)/i)),T&&(i.osversion=T);var O=!i.windows&&T.split(".")[0];return E||c||"ipad"==a||s&&(3==O||O>=4&&!S)||i.silk?i.tablet=e:(S||"iphone"==a||"ipod"==a||s||u||i.blackberry||i.webos||i.bada)&&(i.mobile=e),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.whale&&1===o([i.version,"1.0"])||i.mzbrowser&&1===o([i.version,"6.0"])||i.focus&&1===o([i.version,"1.0"])||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=e:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=e:i.x=e,i}var n=t("undefined"!==typeof navigator&&navigator.userAgent||"");function r(e){return e.split(".").length}function i(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n=0;){if(n[0][t]>n[1][t])return 1;if(n[0][t]!==n[1][t])return-1;if(0===t)return 0}}function a(e,r,i){var a=n;"string"===typeof r&&(i=r,r=void 0),void 0===r&&(r=!1),i&&(a=t(i));var s=""+a.version;for(var u in e)if(e.hasOwnProperty(u)&&a[u]){if("string"!==typeof e[u])throw new Error("Browser version in the minVersion map should be a string: "+u+": "+String(e));return o([s,e[u]])<0}return r}return n.test=function(e){for(var t=0;ta)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=function(e){if(u.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||K(e.length)?s(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),s(e<0?0:0|h(e))}function f(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(i)return r?-1:W(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),K(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=t.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128===(192&n)&&(u=(31&t)<<6|63&n,u>127&&(o=u));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(u=(15&t)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(u=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;rr.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tn&&(e+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n);for(let u=0;u>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function P(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;ir)&&(n=r);let i="";for(let o=t;on)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function N(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function I(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,o){return t=+t,n>>>=0,o||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return t=+t,n>>>=0,o||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=J((function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<>>=0,t>>>=0,n||D(e,t,this.length);let r=this[e],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=J((function(e){V(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<>>=0,t||D(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){k(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,!r){k(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=J((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=J((function(e,t=0){return I(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=0,o=1,a=0;for(this[t]=255&e;++i>0)-a&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);k(this,e,t,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/o>>0)-a&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=J((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=J((function(e,t=0){return I(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function H(e,t,n,r,i,o){if(e>n||e3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new j.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){V(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Z(t,e.length-(n+1))}(r,i,o)}function V(e,t){if("number"!==typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){if(Math.floor(e)!==e)throw V(e,n),new j.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}G("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),G("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),G("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=U(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=U(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function W(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function z(e,t,n,r){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function K(e){return e!==e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function J(e){return"undefined"===typeof BigInt?$:e}function $(){throw new Error("BigInt not supported")}},35035:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var n,r="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),c=n(99763),l=n(25821);function d(e,t){if(!Boolean(e))throw new Error(t)}var f=function(e,t){return e instanceof t};function p(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||d(0,"Body must be a string. Received: ".concat((0,l.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||d(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||d(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:c.YF,get:function(){return"Source"}}])&&p(t.prototype,n),r&&p(t,r),e}();var m=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"}),g=n(87392),v=function(){function e(e){var t=new s.WU(u.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==u.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=b(this,e)}while(e.kind===u.COMMENT);return e},e}();function y(e){return isNaN(e)?u.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function b(e,t){for(var n=e.source,r=n.body,i=r.length,a=t.end;a31||9===o));return new s.WU(u.COMMENT,t,c,n,r,i,a.slice(t+1,c))}function S(e,t,n,r,i,a){var c=e.body,l=n,d=t,f=!1;if(45===l&&(l=c.charCodeAt(++d)),48===l){if((l=c.charCodeAt(++d))>=48&&l<=57)throw o(e,d,"Invalid number, unexpected digit after 0: ".concat(y(l),"."))}else d=w(e,d,l),l=c.charCodeAt(d);if(46===l&&(f=!0,l=c.charCodeAt(++d),d=w(e,d,l),l=c.charCodeAt(d)),69!==l&&101!==l||(f=!0,43!==(l=c.charCodeAt(++d))&&45!==l||(l=c.charCodeAt(++d)),d=w(e,d,l),l=c.charCodeAt(d)),46===l||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(l))throw o(e,d,"Invalid number, expected digit but got: ".concat(y(l),"."));return new s.WU(f?u.FLOAT:u.INT,t,d,r,i,a,c.slice(t,d))}function w(e,t,n){var r=e.body,i=t,a=n;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw o(e,i,"Invalid number, expected digit but got: ".concat(y(a),"."))}function T(e,t,n,r,i){for(var a,c,l,d,f=e.body,p=t+1,h=p,m=0,g="";p=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function C(e,t,n,r,i){for(var o=e.body,a=o.length,c=t+1,l=0;c!==a&&!isNaN(l=o.charCodeAt(c))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++c;return new s.WU(u.NAME,t,c,n,r,i,o.slice(t,c))}var P=function(){function e(e,t){var n=function(e){return f(e,h)}(e)?e:new h(e);this._lexer=new v(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(u.NAME);return{kind:a.h.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:a.h.DOCUMENT,definitions:this.many(u.SOF,this.parseDefinition,u.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(u.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(u.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(u.BRACE_L))return{kind:a.h.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(u.NAME)&&(t=this.parseName()),{kind:a.h.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(u.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(u.PAREN_L,this.parseVariableDefinition,u.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:a.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(u.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(u.DOLLAR),{kind:a.h.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:a.h.SELECTION_SET,selections:this.many(u.BRACE_L,this.parseSelection,u.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(u.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(u.COLON)?(e=r,t=this.parseName()):t=r,{kind:a.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.PAREN_L,t,u.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(u.COLON),{kind:a.h.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:a.h.ARGUMENT,name:this.parseName(),value:(this.expectToken(u.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(u.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(u.NAME)?{kind:a.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:a.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:a.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:a.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case u.BRACKET_L:return this.parseList(e);case u.BRACE_L:return this.parseObject(e);case u.INT:return this._lexer.advance(),{kind:a.h.INT,value:t.value,loc:this.loc(t)};case u.FLOAT:return this._lexer.advance(),{kind:a.h.FLOAT,value:t.value,loc:this.loc(t)};case u.STRING:case u.BLOCK_STRING:return this.parseStringLiteral();case u.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:a.h.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:a.h.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:a.h.NULL,loc:this.loc(t)};default:return{kind:a.h.ENUM,value:t.value,loc:this.loc(t)}}case u.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:a.h.STRING,value:e.value,block:e.kind===u.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:a.h.LIST,values:this.any(u.BRACKET_L,(function(){return t.parseValueLiteral(e)}),u.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:a.h.OBJECT,fields:this.any(u.BRACE_L,(function(){return t.parseObjectField(e)}),u.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(u.COLON),{kind:a.h.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(u.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(u.AT),{kind:a.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(u.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(u.BRACKET_R),e={kind:a.h.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(u.BANG)?{kind:a.h.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:a.h.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===u.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(u.STRING)||this.peek(u.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),r=this.many(u.BRACE_L,this.parseOperationTypeDefinition,u.BRACE_R);return{kind:a.h.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.COLON);var n=this.parseNamedType();return{kind:a.h.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseDirectives(!0);return{kind:a.h.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:a.h.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(u.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(u.AMP)||this.peek(u.NAME));return t}return this.delimitedMany(u.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(u.BRACE_L)&&this._lexer.lookahead().kind===u.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(u.BRACE_L,this.parseFieldDefinition,u.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(u.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:a.h.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(u.PAREN_L,this.parseInputValueDef,u.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(u.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(u.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:a.h.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:a.h.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:a.h.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(u.EQUALS)?this.delimitedMany(u.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:a.h.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(u.BRACE_L,this.parseEnumValueDefinition,u.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:a.h.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:a.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(u.BRACE_L,this.parseInputValueDef,u.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===u.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(u.BRACE_L,this.parseOperationTypeDefinition,u.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:a.h.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:a.h.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:a.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:a.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:a.h.UNION_TYPE_EXTENSION,name:t,directives:n,types:r,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:a.h.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return{kind:a.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:a.h.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(u.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==m[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new s.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw o(this._lexer.source,t.start,"Expected ".concat(L(e),", found ").concat(A(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==u.NAME||t.value!==e)throw o(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(A(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===u.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return o(this._lexer.source,t.start,"Unexpected ".concat(A(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]},t.many=function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function A(e){var t=e.value;return L(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function L(e){return function(e){return e===u.BANG||e===u.DOLLAR||e===u.AMP||e===u.PAREN_L||e===u.PAREN_R||e===u.SPREAD||e===u.COLON||e===u.EQUALS||e===u.AT||e===u.BRACKET_L||e===u.BRACKET_R||e===u.BRACE_L||e===u.PIPE||e===u.BRACE_R}(e)?'"'.concat(e,'"'):e}var R=new Map,D=new Map,k=!0,N=!1;function I(e){return e.replace(/[\s,]+/g," ").trim()}function B(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=I((a=e.loc).source.body.substring(a.start,a.end)),o=D.get(r);o&&!o.has(i)?k&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||D.set(r,o=new Set),o.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var a})),(0,r.pi)((0,r.pi)({},e),{definitions:n})}function M(e){var t=I(e);if(!R.has(t)){var n=function(e,t){return new P(e,t).parseDocument()}(e,{experimentalFragmentVariables:N,allowLegacyFragmentVariables:N});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");R.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"===typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(B(n)))}return R.get(t)}function F(e){for(var t=[],n=1;ns)return"[Array]";for(var n=Math.min(a,e.length),r=e.length-n,i=[],o=0;o1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>s)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(n){return n+": "+u(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},7706:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},18554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=n},91807:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(e){return null!=e&&"string"===typeof e.kind},t.Token=t.Location=void 0;var r,i=(r=n(50972))&&r.__esModule?r:{default:r};var o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=o,(0,i.default)(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,i.default)(a)},70849:function(e,t){"use strict";function n(e){for(var t=0;ta&&n(t[s-1]);)--s;return t.slice(a,s).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";!s||r&&i||(u+="\n"+t);u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n");return'"""'+u.replace(/"""/g,'\\"""')+'"""'}},23033:function(e,t,n){"use strict";t.S=function(e){return(0,r.visit)(e,{leave:o})};var r=n(80285),i=n(70849);var o={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return s(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=c("(",s(e.variableDefinitions,", "),")"),i=s(e.directives," "),o=e.selectionSet;return n||i||r||"query"!==t?s([t,s([n,r]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+c(" = ",r)+c(" ",s(i," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,o=e.selectionSet,a=c("",t,": ")+n,u=a+c("(",s(r,", "),")");return u.length>80&&(u=a+c("(\n",l(s(r,"\n")),"\n)")),s([u,s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",c("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(c("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(c("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),u(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?c("(\n",l(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,c("= ",r),s(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["interface",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),u(r)]," ")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),u(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?c("(\n",l(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),u(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend interface",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),u(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),u(r)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function u(e){return c("{\n",l(s(e,"\n")),"\n}")}function c(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function l(e){return c(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},80285:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,c=Array.isArray(e),l=[e],d=-1,f=[],p=void 0,h=void 0,m=void 0,g=[],v=[],y=e;do{var b=++d===l.length,_=b&&0!==f.length;if(b){if(h=0===v.length?void 0:g[g.length-1],p=m,m=v.pop(),_){if(c)p=p.slice();else{for(var E={},S=0,w=Object.keys(p);S>1,l=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},16284:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var r=n(97582),i=n(59055),o=n(95957),a=n(61092);function s(e,t){return t?Object.keys(e).reduce((function(n,i){var o,a;return n[i]=(o=e[i],(a=t[i])?(0,r.pi)((0,r.pi)((0,r.pi)({},o||{}),a||{}),Object.keys(o).reduce((function(e,t){return e[t]=(0,r.pi)((0,r.pi)({},o[t]),a[t]||{}),e}),{})):o),n}),(0,r.pi)({},e)):e}function u(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}var c=function(){function e(t,n,i,c){var l,d=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===a.du.literal&&"string"===typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return(0,a.FK)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=d.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"===typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=c||{},p=(f.formatters,(0,r._T)(f,["formatters"]));this.ast=e.__parse(t,(0,r.pi)((0,r.pi)({},p),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=s(e.formats,i),this.formatters=c&&c.formatters||(void 0===(l=this.formatterCache)&&(l={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,o.H)((function(){for(var e,t=[],n=0;n0?new Intl.Locale(t[0]):new Intl.Locale("string"===typeof e?e:e[0])}},e.__parse=i.Qc,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},11050:function(e,t,n){"use strict";n.d(t,{C8:function(){return a},HR:function(){return u},YR:function(){return s},jK:function(){return r},u_:function(){return o}});var r,i=n(97582);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(r||(r={}));var o=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=r,i}return(0,i.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),a=function(e){function t(t,n,i,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),r.INVALID_VALUE,o)||this}return(0,i.ZT)(t,e),t}(o),s=function(e){function t(t,n,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),r.INVALID_VALUE,i)||this}return(0,i.ZT)(t,e),t}(o),u=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),r.MISSING_VALUE,n)||this}return(0,i.ZT)(t,e),t}(o)},61092:function(e,t,n){"use strict";n.d(t,{FK:function(){return s},Gt:function(){return a},du:function(){return r}});var r,i=n(59055),o=n(11050);function a(e){return"function"===typeof e}function s(e,t,n,u,c,l,d){if(1===e.length&&(0,i.O4)(e[0]))return[{type:r.literal,value:e[0].value}];for(var f=[],p=0,h=e;p1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(T,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(O.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(S.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(S,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var o=i.options[0];"w"===o?t=(0,a.pi)((0,a.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=(0,a.pi)((0,a.pi)({},t),x(o)))}else if(w.test(i.stem))t=(0,a.pi)((0,a.pi)({},t),x(i.stem));else{var s=C(i.stem);s&&(t=(0,a.pi)((0,a.pi)({},t),s));var u=P(i.stem);u&&(t=(0,a.pi)((0,a.pi)({},t),u))}}return t}var R,D={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function k(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(D[n||""]||D[r||""]||D["".concat(r,"-001")]||D["001"])[0]}var N=new RegExp("^".concat(y.source,"*")),I=new RegExp("".concat(y.source,"*$"));function B(e,t){return{start:e,end:t}}var M=!!String.prototype.startsWith&&"_a".startsWith("a",1),F=!!String.fromCodePoint,j=!!Object.fromEntries,G=!!String.prototype.codePointAt,U=!!String.prototype.trimStart,H=!!String.prototype.trimEnd,V=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Z=!0;try{Z="a"===(null===(R=J("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===R?void 0:R[0])}catch(ae){Z=!1}var q,W=M?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Q=F?String.fromCodePoint:function(){for(var e=[],t=0;to;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},z=j?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},K=U?function(e){return e.trimStart()}:function(e){return e.replace(N,"")},X=H?function(e){return e.trimEnd()}:function(e){return e.replace(I,"")};function J(e,t){return new RegExp(e,t)}if(Z){var $=J("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q=function(e,t){var n;return $.lastIndex=t,null!==(n=$.exec(e)[1])&&void 0!==n?n:""}}else q=function(e,t){for(var n=[];;){var r=Y(e,t);if(void 0===r||ne(r)||re(r))break;n.push(r),t+=r>=65536?2:1}return Q.apply(void 0,n)};var ee=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var o=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(e,n)).err)return s;o.push(s.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(r.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&te(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;o.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;o.push(s.val)}}else{var u=this.clonePosition();this.bump(),o.push({type:i.pound,location:B(u,this.clonePosition())})}}}return{val:o,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(o,"/>"),location:B(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var s=a.val,u=this.clonePosition();if(this.bumpIf("")?{val:{type:i.tag,value:o,children:s,location:B(n,this.clonePosition())},err:null}:this.error(r.INVALID_TAG,B(u,this.clonePosition())))}return this.error(r.UNCLOSED_TAG,B(n,this.clonePosition()))}return this.error(r.INVALID_TAG,B(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var a=this.tryParseUnquoted(e,t);if(a)r+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;r+=s}}}var u=B(n,this.clonePosition());return{val:{type:i.literal,value:r,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(te(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Q.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Q(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(r.EMPTY_ARGUMENT,B(n,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(r.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:o,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,o,n);default:return this.error(r.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=q(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:B(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,s){var u,c=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(r.EXPECT_ARGUMENT_TYPE,B(c,d));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((S=this.parseSimpleArgStyleIfPossible()).err)return S;if(0===(v=X(S.val)).length)return this.error(r.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));f={style:v,styleLocation:B(p,this.clonePosition())}}if((w=this.tryParseArgumentClose(s)).err)return w;var h=B(s,this.clonePosition());if(f&&W(null===f||void 0===f?void 0:f.style,"::",0)){var m=K(f.style.slice(2));if("number"===l)return(S=this.parseNumberSkeletonFromString(m,f.styleLocation)).err?S:{val:{type:i.number,value:n,location:h,style:S.val},err:null};if(0===m.length)return this.error(r.EXPECT_DATE_TIME_SKELETON,h);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r>1),u=k(t);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(m,this.locale));var v={type:o.dateTime,pattern:g,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?_(g):{}};return{val:{type:"date"===l?i.date:i.time,value:n,location:h,style:v},err:null}}return{val:{type:"number"===l?i.number:"date"===l?i.date:i.time,value:n,location:h,style:null!==(u=null===f||void 0===f?void 0:f.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(r.EXPECT_SELECT_ARGUMENT_OPTIONS,B(y,(0,a.pi)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),E=0;if("select"!==l&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));var S;if(this.bumpSpace(),(S=this.tryParseDecimalInteger(r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return S;this.bumpSpace(),b=this.parseIdentifierIfPossible(),E=S.val}var w,T=this.tryParsePluralOrSelectOptions(e,l,t,b);if(T.err)return T;if((w=this.tryParseArgumentClose(s)).err)return w;var O=B(s,this.clonePosition());return"select"===l?{val:{type:i.select,value:n,options:z(T.val),location:O},err:null}:{val:{type:i.plural,value:n,options:z(T.val),offset:E,pluralType:"plural"===l?"cardinal":"ordinal",location:O},err:null};default:return this.error(r.INVALID_ARGUMENT_TYPE,B(c,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(r.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(E).filter((function(e){return e.length>0}));n=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=B(r,this.clonePosition());return i?V(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Y(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ne(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!==n&&void 0!==n?n:null},e}();function te(e){return e>=97&&e<=122||e>=65&&e<=90}function ne(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function re(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function ie(e){e.forEach((function(e){if(delete e.location,f(e)||p(e))for(var t in e.options)delete e.options[t].location,ie(e.options[t].value);else c(e)&&g(e.style)||(l(e)||d(e))&&v(e.style)?delete e.style.location:m(e)&&ie(e.children)}))}function oe(e,t){void 0===t&&(t={}),t=(0,a.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new ee(e,t).parse();if(n.err){var i=SyntaxError(r[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return(null===t||void 0===t?void 0:t.captureLocation)||ie(n.val),n.val}},29367:function(e){"use strict";const t=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);e.exports=e=>!t.has(e&&e.code)},36808:function(e,t,n){var r,i;!function(o){if(void 0===(i="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};et,stringify:JSON.stringify}},58299:function(e,t,n){"use strict";const r=n(81136),i=n(69572).isFunction,o=n(69572).isBoolean,a=n(69572).isObject,s=n(69572).isArray,u=n(69572).isRegex,c=n(69572).assign,l=n(69572).keys;e.exports=function(e,t){t=t||c({},r),i(t)&&(t={compare:t});const n=t.space||r.space,d=o(t.cycles)?t.cycles:r.cycles,f=t.replacer||r.replacer,p=t.stringify||r.stringify,h=t.compare&&(m=t.compare,function(e){return function(t,n){const r={key:t,value:e[t]},i={key:n,value:e[n]};return m(r,i)}});var m;d||p(e);const g=[];return function e(t,r,i,o){const c=n?"\n"+new Array(o+1).join(n):"",m=n?": ":":";if(i=function(e){return null===e||void 0===e?e:u(e)?e.toString():e.toJSON?e.toJSON():e}(i),void 0!==(i=f.call(t,r,i))){if(!a(i)||null===i)return p(i);if(s(i)){const t=[];for(let r=0;r"object"===typeof e,isFunction:e=>"function"===typeof e,isBoolean:e=>"boolean"===typeof e,isRegex:e=>e instanceof RegExp,keys:Object.keys}},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),i=n(80401),o=n(57667),a=n(21327),s=n(81866);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++ti?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++rl))return!1;var f=u.get(e),p=u.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h-1&&e%1==0&&e-1}},54705:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},24785:function(e,t,n){var r=n(1989),i=n(38407),o=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},42634:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},24523:function(e,t,n){var r=n(88306);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},33498:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},45357:function(e,t,n){var r=n(96874),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),i=n(57071),o=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},55514:function(e,t,n){var r=n(24523),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},40327:function(e,t,n){var r=n(33448);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},89567:function(e,t,n){var r=n(40554);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},8400:function(e,t,n){var r=n(14259),i=n(16612),o=n(40554),a=Math.ceil,s=Math.max;e.exports=function(e,t,n){t=(n?i(e,t,n):void 0===t)?1:s(o(t),0);var u=null==e?0:e.length;if(!u||t<1)return[];for(var c=0,l=0,d=Array(a(u/t));c-1&&e%1==0&&e<=9007199254740991}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},68630:function(e,t,n){var r=n(44239),i=n(85924),o=n(37005),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==l}},33448:function(e,t,n){var r=n(44239),i=n(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},36719:function(e,t,n){var r=n(38749),i=n(7518),o=n(31167),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},3674:function(e,t,n){var r=n(14636),i=n(280),o=n(98612);e.exports=function(e){return o(e)?r(e):i(e)}},81704:function(e,t,n){var r=n(14636),i=n(10313),o=n(98612);e.exports=function(e){return o(e)?r(e,!0):i(e)}},88306:function(e,t,n){var r=n(83369);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},82492:function(e,t,n){var r=n(42980),i=n(21463)((function(e,t,n){r(e,t,n)}));e.exports=i},51463:function(e,t,n){var r=n(89567);e.exports=function(e){return r(2,e)}},39601:function(e,t,n){var r=n(40371),i=n(79152),o=n(15403),a=n(40327);e.exports=function(e){return o(e)?r(a(e)):i(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},18601:function(e,t,n){var r=n(14841),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},40554:function(e,t,n){var r=n(18601);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},14841:function(e,t,n){var r=n(27561),i=n(13218),o=n(33448),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},59881:function(e,t,n){var r=n(98363),i=n(81704);e.exports=function(e){return r(e,i(e))}},79833:function(e,t,n){var r=n(80531);e.exports=function(e){return null==e?"":r(e)}},7544:function(e,t,n){e.exports=n(49945)},11752:function(e,t,n){e.exports=n(70765)},21071:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t0}},92052:function(e,t,n){"use strict";n.d(t,{$K:function(){return S},C3:function(){return y},Dx:function(){return s},FZ:function(){return c},Fg:function(){return f},I1:function(){return v},MF:function(){return i},Vu:function(){return r},YD:function(){return o},Ye:function(){return _},Z8:function(){return E},bW:function(){return p},dI:function(){return u},eI:function(){return a},fl:function(){return w},ge:function(){return l},iq:function(){return b},ki:function(){return m},w_:function(){return d},xu:function(){return h},zZ:function(){return g}});var r=6e5,i=25e4,o=1e4,a="last_speed_test_date",s=864e5,u=60,c=6e4,l="manage-single-lessons",d=("/:lang?/".concat("manage-lessons","/:tutoringId"),"/:lang?/".concat(l,"/:tutoringId"),"new_transfer_flow_web"),f="disable_agora_signaling_fe",p="https://static.preply.com/images/new/speed-test-image-4mb.png",h=new Date("2022-09-08T11:00:00Z"),m=50,g=25,v=.5,y=1,b={.5:{minutes:25,totalMinutes:25},1:{hours:0,minutes:50,totalMinutes:50}},_={.5:{minutes:25,totalMinutes:25},.75:{minutes:40,totalMinutes:40},1:{hours:0,minutes:50,totalMinutes:50},1.5:{hours:1,minutes:20,totalMinutes:80},2:{hours:1,minutes:50,totalMinutes:110},2.5:{hours:2,minutes:20,totalMinutes:140},3:{hours:2,minutes:50,totalMinutes:170},3.5:{hours:3,minutes:20,totalMinutes:200}},E={US:"US"},S={THUMBS_UP:"https://static.preply.com/ds/illustrations/tokyo-ui/thumbs-up.svg",AWESOME:"https://static.preply.com/ds/illustrations/tokyo-ui/awesome.svg",LANGUAGE_FLASH_CARDS:"https://static.preply.com/ds/illustrations/tokyo-ui/language-flash-cards.svg",POLYGLOT:"https://static.preply.com/ds/illustrations/tokyo-ui/polyglot.svg",CALENDAR:"https://static.preply.com/ds/illustrations/tokyo-ui/calendar.svg",OPEN_BOOK:"https://static.preply.com/ds/illustrations/tokyo-ui/open-book.svg",GREAT_HOMEWORK:"https://static.preply.com/ds/illustrations/tokyo-ui/great-homework.svg",ROCK_ON:"https://static.preply.com/ds/illustrations/tokyo-ui/rock-on.svg",HARD_WORK1:"https://static.preply.com/ds/illustrations/tokyo-ui/hard-work-1.svg",HARD_WORK2:"https://static.preply.com/ds/illustrations/tokyo-ui/hard-work-2.svg",MAP:"https://static.preply.com/ds/illustrations/tokyo-ui/map.svg",GROWTH:"https://static.preply.com/ds/illustrations/tokyo-ui/growth.svg",SMILEY:"https://static.preply.com/ds/illustrations/tokyo-ui/smiley.svg",BUBBLES:"https://static.preply.com/ds/illustrations/tokyo-ui/bubbles.svg",DESK:"https://static.preply.com/ds/illustrations/tokyo-ui/desk.svg",LAMP_AND_BOOKS:"https://static.preply.com/ds/illustrations/tokyo-ui/lamp-and-books.svg",PROGRESS_STEPS:"https://static.preply.com/ds/illustrations/tokyo-ui/progress-steps.svg",DISCO_BALL:"https://static.preply.com/ds/illustrations/tokyo-ui/disco-ball.svg",LAPTOP_2:"https://static.preply.com/ds/illustrations/tokyo-ui/laptop-2.svg",CONFETTI:"https://static.preply.com/ds/illustrations/tokyo-ui/confetti.svg",PRESENT:"https://static.preply.com/ds/illustrations/tokyo-ui/present.svg",BOOKS:"https://static.preply.com/ds/illustrations/tokyo-ui/books.svg",BOOKS3:"https://static.preply.com/ds/illustrations/tokyo-ui/books-3.svg"},w=function(e){return e.SEARCH="SEARCH",e.TUTOR_PROFILE="TUTOR_PROFILE",e.LESSON_INSIGHTS="LESSON_INSIGHTS",e.END_LESSON_FLOW="END_LESSON_FLOW",e.PLACEMENT_TEST="PLACEMENT_TEST",e.LESSON_RATING="LESSON_RATING",e.LEARN_PAGE="LEARN_PAGE",e.EXERCISE_PAGE="EXERCISE_PAGE",e.TRANSFER_CREDITS="TRANSFER_CREDITS",e.MY_LESSONS="MY_LESSONS",e.CANCEL_SUBSCRIPTION="CANCEL_SUBSCRIPTION",e.CHAT="CHAT",e.LEARN_PROGRESS="LEARN_PROGRESS",e.PRICE_CHANGE_FLOW="PRICE_CHANGE_FLOW",e.CHECKOUT="CHECKOUT",e.TUTOR_FEEDBACK_PAGE="TUTOR_FEEDBACK_PAGE",e}({})},4590:function(e,t,n){"use strict";n.d(t,{Jj:function(){return s}});var r=n(21071),i=n(67294),o=i.createContext({styles:{}}),a=function(e){var t=e.criticalCSS,n=e.filename,r=e.styles,o=e.children;return t.styles[n]=r,i.createElement(i.Fragment,null,o)},s=function(e,t){return t.__getFilename&&t.__getCSS?i.forwardRef((function(n,s){return i.createElement(o.Consumer,null,(function(o){return i.createElement(a,{criticalCSS:o,filename:t.__getFilename(),styles:t.__getCSS()},i.createElement(e,(0,r.gY)({ref:s},n)))}))})):e}},34045:function(e,t,n){"use strict";n.d(t,{C6:function(){return c},Cb:function(){return f},I:function(){return g},XF:function(){return p},g7:function(){return u},pA:function(){return m}});var r=n(21071),i=n(40802),o=n(83024),a=n(88468),s=n(49104),u=function(e){return e[e.EVENT_TYPE_GOALS=28]="EVENT_TYPE_GOALS",e[e.EVENT_TYPE_PLACEMENT_TEST=30]="EVENT_TYPE_PLACEMENT_TEST",e[e.EVENT_TYPE_RECURRENT_LESSONS=34]="EVENT_TYPE_RECURRENT_LESSONS",e[e.EVENT_TYPE_SINGLE_LESSONS=52]="EVENT_TYPE_SINGLE_LESSONS",e[e.EVENT_TYPE_CUSTOM=13]="EVENT_TYPE_CUSTOM",e[e.EVENT_TYPE_TUTOR_CALENDAR=48]="EVENT_TYPE_TUTOR_CALENDAR",e[e.EVENT_TYPE_TUTOR_DASHBOARD=31]="EVENT_TYPE_TUTOR_DASHBOARD",e[e.REAL_USER_MONITORING=26]="REAL_USER_MONITORING",e[e.EVENT_TYPE_PREPLY_SPACE=12]="EVENT_TYPE_PREPLY_SPACE",e[e.RUNTIME_ERROR=69]="RUNTIME_ERROR",e[e.COMPONENT_DID_MOUNT=71]="COMPONENT_DID_MOUNT",e[e.TUTOR_REGISTRATION=35]="TUTOR_REGISTRATION",e[e.CURR_EVENT_TYPE=22]="CURR_EVENT_TYPE",e}({}),c=function(e){if(navigator.sendBeacon)try{navigator.sendBeacon("/dwh/log_event",JSON.stringify((0,r.Zj)((0,r.Zj)({},e),{},{release:(0,s.EY)(),service:(0,s.sH)()})))}catch(t){i.$e((function(e){e.setLevel(o.z.Warning),i.Tb(t)}))}},l="/dwh/log_events_batch",d=function(e){return fetch(l,{method:"POST",headers:{"Content-Type":"application/json"},body:e}).then((function(e){return e.ok?e:Promise.reject(e)}))},f=function(e){var t=JSON.stringify(e.map((function(e){return(0,r.Zj)((0,r.Zj)({},function(e){return"null"===e.json_data&&delete e.json_data,e}(e)),{},{service:(0,s.sH)()})})));if(navigator.sendBeacon){var n=navigator.sendBeacon(l,t);return n||d(t)}return d(t)},p=function(e){try{return f(e)}catch(t){i.$e((function(e){e.setLevel(o.z.Warning),i.Tb(t)}))}return!1},h=new a._((function(e){return p(e.map((function(e){var t=e.args,n=e.invokedAt;return(0,r.Zj)((0,r.Zj)({},t[0]),{},{app_timestamp:n})})))}),{timeout:5e3,localStorageKey:"DWHEventsBatch",handleBatchStorageError:function(e){return i.Tb(e)},batchMaxSize:125}),m=function(e){return h.call((0,r.Zj)((0,r.Zj)({},e),{},{release:(0,s.EY)()}))};function g(e,t,n){c((0,r.Zj)((0,r.Zj)({},t),{},{json_data:JSON.stringify(n),event_name:e,event_type:u.EVENT_TYPE_CUSTOM}))}window.sendDWHEventInAsyncBatch=m},76453:function(e,t,n){"use strict";n.d(t,{SV:function(){return N},wb:function(){return R},mB:function(){return I}});var r=n(92777),i=n(82262),o=n(10748),a=n(81531),s=n(63553),u=n(37247),c=n(17674),l=n(21071),d=n(67294),f=n(40802),p=n(83024),h=n(51463),m=n.n(h),g=n(97582);function v(e){return e.toLowerCase()}var y=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],b=/[^A-Z0-9]+/gi;function _(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function E(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?y:n,i=t.stripRegexp,o=void 0===i?b:i,a=t.transform,s=void 0===a?v:a,u=t.delimiter,c=void 0===u?" ":u,l=_(_(e,r,"$1\0$2"),o,"\0"),d=0,f=l.length;"\0"===l.charAt(d);)d++;for(;"\0"===l.charAt(f-1);)f--;return l.slice(d,f).split("\0").map(s).join(c)}(e,(0,g.pi)({delimiter:"."},t))}function S(e,t){return void 0===t&&(t={}),E(e,(0,g.pi)({delimiter:"-"},t))}var w=n(30990),T=n(34045),O=n(49104);function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var i=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var C=function(e){(0,a.Z)(n,e);var t=x(n);function n(e,i){var a;return(0,r.Z)(this,n),a=t.call(this,e,i),(0,l._x)((0,o.Z)(a),"batch",void 0),a.batch=[],a}return(0,i.Z)(n,[{key:"getCurrentBatch",value:function(){return this.batch}},{key:"pushToBatch",value:function(e){return this.getCurrentBatch().push(e),this.batch}},{key:"emptyBatch",value:function(){this.batch=[]}}]),n}(n(56270).w),P=new RegExp([/Edge?\/(8[89]|9\d|\d{3,})\.\d+/,/Firefox\/(7[89]|[89]\d|\d{3,})\.\d+/,/Chrom(?:ium|e)\/(8[7-9]|9\d|\d{3,})\.\d+/,/(Maci|X1{2}).+ Version\/(14\.\d+|(1[5-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\//,/Chrome.+OPR\/([89]\d|\d{3,})\.\d+\.\d+/,/(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(15[._]([6-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)/,/Opera Mini/,/Android:?[ /-](13[1-9]|1[4-9]\d|[2-9]\d{2}|\d{4,})(\.\d+|)(\.\d+|)/,/Mobile Safari.+OPR\/([89]\d|\d{3,})\.\d+\.\d+/,/Android.+Firefox\/(13[2-9]|1[4-9]\d|[2-9]\d{2}|\d{4,})\.\d+/,/Android.+Chrom(?:ium|e)\/(13[1-9]|1[4-9]\d|[2-9]\d{2}|\d{4,})\.\d+/,/Android.+(?:UC? ?Browser|UCWEB|U3)[ /]?(15\.([5-9]|\d{2,})|(1[6-9]|[2-9]\d|\d{3,})\.\d+)\.\d+/,/SamsungBrowser\/(2[5-9]|[3-9]\d|\d{3,})\.\d+/,/Android.+MQ{2}Browser\/(14(\.(9|\d{2,})|)|(1[5-9]|[2-9]\d|\d{3,})(\.\d+|))(\.\d+|)/,/K[Aa][Ii]OS\/(2\.([5-9]|\d{2,})|([3-9]|\d{2,})\.\d+)(\.\d+|)/].map((function(e){return e.source})).join("|"));function A(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var i=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var L=new C((function(e){return(0,T.XF)(e.map((function(e){var t=(0,c.Z)(e.args,1)[0];return{event_type:T.g7.COMPONENT_DID_MOUNT,event_name:"web_client_component_did_mount",param1:"write_disable",json_data:t,release:(0,O.EY)()}})))}),{timeout:5e3}),R=m()((function(){window.addEventListener("beforeunload",(function(){L.setIsBatchingOn(!1)}))})),D=d.createContext(null),k=d.createContext(null),N=function(e){(0,a.Z)(n,e);var t=A(n);function n(e){var i;return(0,r.Z)(this,n),i=t.call(this,e),(0,l._x)((0,o.Z)(i),"reportedErrorMessage",null),i.state={hasError:!1},i}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.viewName,r=e.teamName;(this.context||{}).parentTeamName!==r&&(n.sendRenderingEventToDWH({viewName:t,teamName:r}),f.YA("teamName",r)),f.YA("viewName",t),R()}},{key:"componentDidCatch",value:function(e,t){var r=this.props,i=r.onError,o=r.viewName,a=r.teamName,s=r.skipDWH;if(!this.reportedErrorMessage||this.reportedErrorMessage!==e.message){this.reportedErrorMessage=e.message;var u=n.sendSentryError({error:e,info:t,teamName:a,viewName:o});u&&this.setState({sentryEventId:u,error:e}),s&&s(e)||(n.sendRenderingErrorToDWH({error:e,info:t,teamName:a,viewName:o,sentryEventId:u}),i&&i(e,t))}}},{key:"render",value:function(){var e=this.state,t=e.hasError,r=e.sentryEventId,i=e.timestamp,o=e.error,a=this.props,s=a.fallback,u=a.children,c=a.teamName,f=a.viewName;if(t)return s?d.cloneElement(s,{sentryEventId:r,timestamp:i,error:o}):null;var p=m()(n.sendRenderingErrorToDWH);return d.createElement(D.Provider,{value:{parentTeamName:c}},d.createElement(k.Provider,{value:{reportListItemError:function(e){var t="".concat(f,"-list-item"),r=n.sendSentryError((0,l.Zj)((0,l.Zj)({},e),{},{teamName:c,viewName:t}));return p((0,l.Zj)((0,l.Zj)({},e),{},{teamName:c,viewName:t})),r}}},u))}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0,timestamp:(new Date).toISOString()}}},{key:"sendRenderingErrorToDWH",value:function(e){var t=e.error,n=e.teamName,r=e.viewName,i=e.sentryEventId,o=e.info,a=navigator.userAgent,s=!a||function(e){return P.test(e)}(a),u="web_client_runtime_error";t instanceof w.cA&&t.networkError&&(u="web_client_runtime_error_apollo_network"),s||(u="web_client_runtime_error_unsupported_browser"),(0,T.C6)({event_type:T.g7.RUNTIME_ERROR,event_name:u,json_data:JSON.stringify({service:(0,O.sH)(),release:(0,O.EY)(),eventId:i,teamName:n,viewName:S(r),error:t&&t.toString(),componentStack:o.componentStack||""})})}},{key:"sendRenderingEventToDWH",value:function(e){var t=e.teamName,n=e.viewName;L.call(JSON.stringify({service:(0,O.sH)(),release:(0,O.EY)(),teamName:t,viewName:S(n)}))}}]),n}(d.Component);(0,l._x)(N,"sendSentryError",(function(e){var t=e.error,n=e.info,r=e.teamName,i=e.viewName;return f.Tb(t,{level:p.z.Critical,tags:{reactErrorBoundary:!0,viewName:S(i),teamName:r},contexts:{react:{componentStack:n.componentStack}}})})),N.contextType=D;var I=function(e){return function(t){return function(n){return d.createElement(N,e,d.createElement(t,n))}}};(function(e){(0,a.Z)(n,e);var t=A(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).state={hasError:!1},i}return(0,i.Z)(n,[{key:"componentDidCatch",value:function(e,t){var n=(this.context||{}).reportListItemError;if(n){var r=n({error:e,info:t});r&&this.setState({sentryEventId:r,error:e})}}},{key:"render",value:function(){var e=this.state,t=e.hasError,n=e.sentryEventId,r=e.timestamp,i=e.error,o=this.props,a=o.fallback,s=o.children;if(!(this.context||{}).reportListItemError)throw new Error("ErrorBoundaryListItem must be wrapped in ErrorBoundary");return t?a?d.cloneElement(a,{sentryEventId:n,timestamp:r,error:i}):null:s}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0,timestamp:(new Date).toISOString()}}}]),n}(d.Component)).contextType=k},56270:function(e,t,n){"use strict";n.d(t,{w:function(){return s}});var r=n(90116),i=n(92777),o=n(82262),a=n(21071),s=function(){function e(t,n){(0,i.Z)(this,e),(0,a._x)(this,"batchCallFn",void 0),(0,a._x)(this,"options",void 0),(0,a._x)(this,"isBatchingOn",void 0),(0,a._x)(this,"currentBatchDispatchTimeout",void 0),this.batchCallFn=t,this.options=n,this.isBatchingOn=!0}return(0,o.Z)(e,[{key:"call",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0){a=!0;var s=i.key.slice(i.key.indexOf("$")+1);e.has(s)?o=!1:e.add(s)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(var u=0,c=m.length;u=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{HOST:""}).HOST;return fetch("".concat(t,"/graphql/"),{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}({operationName:"FetchMultipleFlags",query:"\n query FetchMultipleFlags($flags: [String]!, $userId: Int) {\n flagsAreActive(ids: $flags, userId: $userId) {\n id\n isActive\n }\n }\n",variables:{flags:e}}).then((function(e){return e.json()})).then((function(e){var t=e.data;if(null===t||void 0===t||!t.flagsAreActive)throw new Error("Empty data in flagsAreActive response");return t.flagsAreActive.reduce((function(e,t){return t?U(U({},e),{},(0,l.Z)({},t.id,t.isActive)):e}),{})})).catch((function(e){return F.$e((function(t){t.setLevel(j.z.Error),F.Tb(e)})),{}}))},V=n(70715),Z="flag_enable_adora_snippet",q=M()((0,k.Z)(I().mark((function e(){var t;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H([Z]);case 2:return t=e.sent,(0,V.z)(Z),e.abrupt("return",!!t[Z]);case 5:case"end":return e.stop()}}),e)})))),W=M()((function(){return new Promise((function(e,t){var n=document.createElement("script");document.getElementsByTagName("head")[0].appendChild(n),n.type="text/javascript",n.src="https://adora-cdn.com/adora-start.03b23d73.js",n.integrity="ha384-LzHHJZ7386vU0jg5WoyRuu7hEJkWmzBEJJeGoMLyCyOUg1b0/fJl+mUCz55/ezCh",n.crossOrigin="anonymous",n.onload=function(){window.adoraStart({orgId:"b3b87eb3-cd3c-457b-a0bf-1c89c5a00b73"}),e()},n.onerror=function(e){t(e)},document.head.appendChild(n)}))})),Q=function(){var e=(0,k.Z)(I().mark((function e(){return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,q();case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:return e.next=7,W();case 7:return e.abrupt("return",!0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=(0,k.Z)(I().mark((function e(t){var n,r,i,o;return I().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.userCohorts,r=t.language,i=t.uid,e.prev=1,e.next=4,Q();case 4:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:window.adoraStart({orgId:"b3b87eb3-cd3c-457b-a0bf-1c89c5a00b73",uid:i,userCohorts:n,language:r}),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(1),o=new Error("Error loading Adora: ".concat(e.t0)),F.Tb(o,{extra:{teamName:"flex"}});case 14:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}();function Y(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t.toUTCString()}var K=n(17674),X=n(96894),J=function(e){var t=e.viewName,n=e.teamName,r=e.element,i=(0,X.a)({team:n,component:t});Object.entries(i).forEach((function(e){var t=(0,K.Z)(e,2),n=t[0],i=t[1];r.setAttribute(n,i)}))};function $(){if(!(globalThis.Blob&&globalThis.URL&&globalThis.Worker))return"noWorkerToStringSupport";try{!function(){if(!("requestIdleCallback"in globalThis))throw new Error("requestIdleCallback is not supported in this environment");globalThis.requestIdleCallback}()}catch(e){return"noRequestIdleCallback"}return"yes"}var ee={log:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?Math.floor(t):0,o[1]=n>0?Math.floor(n):0,o[2]=Math.floor(r),o[3]=Math.floor(i),o}function me(e){var t=e.rect;return 0===pe(t,"width")||0===pe(t,"height")}var ge="nullAttributeValue";function ve(){var e=function(){},t=function(){},n=new Promise((function(n,r){e=n,t=r}));return{resolver:e,rejecter:t,promise:n}}var ye=3e4;function be(e){var t=e.logger,n=e.elementRect,r=e.childrenData,i=Date.now(),o=!1,a=ve(),s=a.promise,u=a.resolver,c=a.rejecter;var l=setTimeout((function(){o=!0,u({bitmap:null,stopped:!0,stopReason:"timeout",nonDsComponentsPixel:0,pixelByComponentName:{},pixelCounts:fe(0)})}),ye);try{var d=function(){var e=new Blob(["(".concat(function(e){e.onmessage=function(t){var n,r=t.data,i=r.offset,o=r.elementRect,a=r.childrenData,s=r.returnBitmap;function u(e,t){var n,r,i,o;if("top"===t)return null!==(n=e[0])&&void 0!==n?n:0;if("left"===t)return null!==(r=e[1])&&void 0!==r?r:0;if("width"===t)return null!==(i=e[2])&&void 0!==i?i:0;if("height"===t)return null!==(o=e[3])&&void 0!==o?o:0;throw new Error("Invalid property: ".concat(t))}function c(e){var t=e.top,n=e.left,r=e.width,i=e.value;e.bitmap[t*r+n]=i}var l=a.map((function(e){return e.dsComponentName})),d=Array.from(new Set(l)),f=0,p=1,h=d.reduce((function(e,t){return t&&void 0===e[t]&&(e[t]=f,f++,p++),e}),{});h=Object.keys(h).reduce((function(e,t){var n=h[t];if(void 0===n)throw new Error("No pixel at ".concat(t," (this should be a TS-only protection)"));return e[t]=n+1,e}),{}),p++;var m,g,v,y=(m=u(o,"width"),g=u(o,"height"),(v=p)<=255?new Uint8Array(Math.floor(m)*Math.floor(g)):v<=65535?new Uint16Array(Math.floor(m)*Math.floor(g)):new Uint32Array(Math.floor(m)*Math.floor(g)));try{for(var b=0,_=a.length;b<_;b++){var E=a[b];if(!E)throw new Error("No childData at ".concat(b," (this should be a TS-only protection)"));var S=E.rect,w=E.dsComponentName,T=p;if(null!==w){var O=h[w];if(void 0===O)throw new Error("No dsComponentNamePixel for ".concat(w," (this should be a TS-only protection)"));T=O}var x=i.top,C=i.left,P=u(S,"top"),A=u(S,"left"),L=u(S,"width"),R=u(S,"height"),D=u(o,"height"),k=u(o,"width"),N=E.weight;if(void 0===N)throw new Error("No weight for ".concat(w," (this should be a TS-only protection)"));for(var I=0;IM)&&!(F>=A-C+L||F>=k);F++)F<0||(B>=0&&B=0&&MG)&&!(U>=P-x+R-1||U>D);U++)U<0||(j>=0&&U=0&&U").length>0&&(t=e.outerHTML.split(">")[0]+">"),t}(o);(function(e){return Se.apply(this,arguments)})({logger:t,getComponentData:a,requestIdleCallbackFunc:u,dsVisualCoverageContainerData:e,stopVisualCoverageCalculation:c,coverageContainersDataAttribute:l}).then((function(n){h.delete(e),p.push(function(e){var t,n=e.debugInfo,r=e.coverageContainerAttributeValue,i=e.result,o=e.result,a=o.pixelCounts,s=o.duration,u=o.pixelByComponentName,c=o.nonDsComponentsPixel,l=Object.entries(u).reduce((function(e,t){var n=(0,K.Z)(t,2),r=n[0];return e[n[1]]=r,e}),{}),d=0,f=oe({nonDsComponents:null!==(t=a[c])&&void 0!==t?t:0},a.reduce((function(e,t,n){if(0===n)return e.emptyPixel=t,e;var r=l[n];return r?(e[r]=t,d+=t,e):e}),{})),p=d/(d+f.nonDsComponents)*100,h=Object.values(s).reduce((function(e,t){return e+t}),0);return oe(oe({},i),{},{coverage:p,debugInfo:n,totalDuration:h,readablePixelCounts:f,coverageContainerAttributeValue:r})}({result:n,debugInfo:f,coverageContainerAttributeValue:s})),0===h.size&&(t.log("\ud83c\udfc1 Calculation end"),function(e){var t,n=se(e.mutableResults);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.pixelCounts.reduce((function(e,t){return e+t}),0);0===i&&r.warnings.push("zeroTotalPixels"),i===r.pixelCounts[ae]&&r.warnings.push("onlyEmptyPixels")}}catch(o){n.e(o)}finally{n.f()}}({mutableResults:p}),p.forEach((function(e){if(e.warnings=function(e){var t=e.warnings,n=(0,r.Z)(t);return(n.includes("doesNotContainChildren")||n.includes("hasNoSize"))&&(n=n.filter((function(e){return"zeroTotalPixels"!==e&&"onlyEmptyPixels"!==e}))),n}({warnings:e.warnings}),e.warnings.length>0)t.warn("Container: ".concat(e.debugInfo," - Warnings: ").concat(e.warnings));else{var n="".concat(e.coverage.toFixed(2)," %");t.log("Container: ".concat(e.debugInfo," - Coverage: ").concat(n))}})),i({stopped:!1,totalDuration:Date.now()-d,dsVisualCoverageResults:p}))})).catch((function(t){var r;h.delete(e);var i=new de({platform:"web",stopReason:"unknownStopReason",debugInfo:null!==s&&void 0!==s?s:ge,message:t instanceof Error?t.message:"".concat(t)});i.stack=t instanceof Error&&null!==(r=t.stack)&&void 0!==r?r:"",n(i)}))}))}else i({stopped:!0,totalDuration:-1,dsVisualCoverageResults:[]})}function Te(){if(!("requestIdleCallback"in globalThis))throw new Error("requestIdleCallback is not supported in this environment");return globalThis.requestIdleCallback}var Oe,xe,Ce=n(91529),Pe=10,Ae=(Oe={emptyPixel:0,nonDsComponent:1,unknownDsComponent:1,childOfUiDsComponent:1},(0,l.Z)(Oe,Ce.W_.Accordion,34),(0,l.Z)(Oe,Ce.W_.AlertDialog,50),(0,l.Z)(Oe,Ce.W_.AlertBannerProvider,0),(0,l.Z)(Oe,Ce.W_.AlertBanner,32),(0,l.Z)(Oe,Ce.W_.AlertBannerRoot,1),(0,l.Z)(Oe,Ce.W_.AlertBannerAction,1),(0,l.Z)(Oe,Ce.W_.Avatar,10),(0,l.Z)(Oe,Ce.W_.AvatarWithStatus,10),(0,l.Z)(Oe,Ce.W_.Badge,9),(0,l.Z)(Oe,Ce.W_.Box,9),(0,l.Z)(Oe,Ce.W_.BubbleCounter,9),(0,l.Z)(Oe,Ce.W_.Button,21),(0,l.Z)(Oe,Ce.W_.CalloutBanner,30),(0,l.Z)(Oe,Ce.W_.CalloutBannerText,9),(0,l.Z)(Oe,Ce.W_.Chip,0),(0,l.Z)(Oe,Ce.W_.Chips,0),(0,l.Z)(Oe,Ce.W_.SingleSelectChips,0),(0,l.Z)(Oe,Ce.W_.SingleSelectChipsItem,36),(0,l.Z)(Oe,Ce.W_.MultiSelectChips,0),(0,l.Z)(Oe,Ce.W_.MultiSelectChipsItem,36),(0,l.Z)(Oe,Ce.W_.DismissibleChips,0),(0,l.Z)(Oe,Ce.W_.DismissibleChipsItem,36),(0,l.Z)(Oe,Ce.W_.Dialog,60),(0,l.Z)(Oe,Ce.W_.DialogSteps,1),(0,l.Z)(Oe,Ce.W_.DialogStepsActions,1),(0,l.Z)(Oe,Ce.W_.DialogStepsNextContainer,1),(0,l.Z)(Oe,Ce.W_.DialogStepsPreviousContainer,1),(0,l.Z)(Oe,Ce.W_.DialogRoot,1),(0,l.Z)(Oe,Ce.W_.DialogFooter,1),(0,l.Z)(Oe,Ce.W_.DialogButtonStack,1),(0,l.Z)(Oe,Ce.W_.DialogCloseButton,1),(0,l.Z)(Oe,Ce.W_.DialogTitle,1),(0,l.Z)(Oe,Ce.W_.DialogDescription,1),(0,l.Z)(Oe,Ce.W_.DialogActions,1),(0,l.Z)(Oe,Ce.W_.DialogHeader,1),(0,l.Z)(Oe,Ce.W_.DialogOverlay,1),(0,l.Z)(Oe,Ce.W_.Divider,9),(0,l.Z)(Oe,Ce.W_.DropdownMenu,60),(0,l.Z)(Oe,Ce.W_.FieldAdditionalText,9),(0,l.Z)(Oe,Ce.W_.FieldButton,21),(0,l.Z)(Oe,Ce.W_.FieldLayout,35),(0,l.Z)(Oe,Ce.W_.CountryFlag,Pe),(0,l.Z)(Oe,Ce.W_.Heading,9),(0,l.Z)(Oe,Ce.W_.Icon,Pe),(0,l.Z)(Oe,Ce.W_.IconButton,21),(0,l.Z)(Oe,Ce.W_.IconTile,21),(0,l.Z)(Oe,Ce.W_.LayoutFlex,0),(0,l.Z)(Oe,Ce.W_.LayoutFlexItem,0),(0,l.Z)(Oe,Ce.W_.LayoutGrid,0),(0,l.Z)(Oe,Ce.W_.LayoutGridItem,0),(0,l.Z)(Oe,Ce.W_.Link,12),(0,l.Z)(Oe,Ce.W_.Loader,10),(0,l.Z)(Oe,Ce.W_.NumberField,35),(0,l.Z)(Oe,Ce.W_.OnboardingTooltip,46),(0,l.Z)(Oe,Ce.W_.PasswordField,35),(0,l.Z)(Oe,Ce.W_.PreplyLogo,10),(0,l.Z)(Oe,Ce.W_.ProgressBar,20),(0,l.Z)(Oe,Ce.W_.ProgressSteps,20),(0,l.Z)(Oe,Ce.W_.PromoDialog,60),(0,l.Z)(Oe,Ce.W_.RangeSlider,40),(0,l.Z)(Oe,Ce.W_.Rating,30),(0,l.Z)(Oe,Ce.W_.RatingInput,34),(0,l.Z)(Oe,Ce.W_.SelectField,21),(0,l.Z)(Oe,Ce.W_.SelectFieldOption,21),(0,l.Z)(Oe,Ce.W_.Slider,40),(0,l.Z)(Oe,Ce.W_.Steps,45),(0,l.Z)(Oe,Ce.W_.Switch,24),(0,l.Z)(Oe,Ce.W_.Text,9),(0,l.Z)(Oe,Ce.W_.TextareaField,35),(0,l.Z)(Oe,Ce.W_.TextField,35),(0,l.Z)(Oe,Ce.W_.TextHighlighted,9),(0,l.Z)(Oe,Ce.W_.TextInline,9),(0,l.Z)(Oe,Ce.u7.FormControl,35),(0,l.Z)(Oe,Ce.W_.Checkbox,22),(0,l.Z)(Oe,Ce.W_.InputDate,35),(0,l.Z)(Oe,Ce.W_.InputNumber,35),(0,l.Z)(Oe,Ce.W_.InputPassword,35),(0,l.Z)(Oe,Ce.W_.InputText,35),(0,l.Z)(Oe,Ce.W_.InputTime,35),(0,l.Z)(Oe,Ce.W_.ObserverIntersection,0),(0,l.Z)(Oe,Ce.W_.Panel,0),(0,l.Z)(Oe,Ce.W_.PanelBody,0),(0,l.Z)(Oe,Ce.W_.PanelFooter,0),(0,l.Z)(Oe,Ce.W_.PanelHeader,0),(0,l.Z)(Oe,Ce.W_.PanelSection,0),(0,l.Z)(Oe,Ce.W_.Radio,24),(0,l.Z)(Oe,Ce.W_.Select,60),(0,l.Z)(Oe,Ce.W_.SelectFieldLayout,60),(0,l.Z)(Oe,Ce.W_.Textarea,35),(0,l.Z)(Oe,Ce.W_.Toast,49),(0,l.Z)(Oe,Ce.W_.Tooltip,45),(0,l.Z)(Oe,Ce.k9.RebrandAccordion,0),(0,l.Z)(Oe,Ce.k9.RebrandAlert,0),(0,l.Z)(Oe,Ce.k9.RebrandBubble,0),(0,l.Z)(Oe,Ce.k9.RebrandBubbleOnIcon,0),(0,l.Z)(Oe,Ce.k9.RebrandCheckbox,0),(0,l.Z)(Oe,Ce.k9.RebrandChip,0),(0,l.Z)(Oe,Ce.k9.RebrandChoiceTile,32),(0,l.Z)(Oe,Ce.k9.RebrandDivider,0),(0,l.Z)(Oe,Ce.k9.RebrandDropdown,0),(0,l.Z)(Oe,Ce.k9.RebrandFlag,0),(0,l.Z)(Oe,Ce.k9.RebrandListItem,53),(0,l.Z)(Oe,Ce.k9.RebrandListMenu,53),(0,l.Z)(Oe,Ce.k9.RebrandModal,59),(0,l.Z)(Oe,Ce.k9.RebrandPopover,46),(0,l.Z)(Oe,Ce.k9.RebrandProgressBar,11),(0,l.Z)(Oe,Ce.k9.RebrandRadioButton,24),(0,l.Z)(Oe,Ce.k9.RebrandRadioGroup,24),(0,l.Z)(Oe,Ce.k9.RebrandRange,0),(0,l.Z)(Oe,Ce.k9.RebrandRating,0),(0,l.Z)(Oe,Ce.k9.RebrandSegmentedButtons,33),(0,l.Z)(Oe,Ce.k9.RebrandSegmentedControls,37),(0,l.Z)(Oe,Ce.k9.RebrandSelect,60),(0,l.Z)(Oe,Ce.k9.RebrandSlider,0),(0,l.Z)(Oe,Ce.k9.RebrandStackedImage,34),(0,l.Z)(Oe,Ce.k9.RebrandSwitch,0),(0,l.Z)(Oe,Ce.k9.RebrandTabs,44),(0,l.Z)(Oe,Ce.k9.RebrandToast,0),(0,l.Z)(Oe,Ce.k9.RebrandTooltip,45),(0,l.Z)(Oe,Ce.ox.DsCandidateAlert,32),(0,l.Z)(Oe,Ce.ox.DsCandidateAccordion,34),(0,l.Z)(Oe,Ce.ox.DsCandidateAvatar,10),(0,l.Z)(Oe,Ce.ox.DsCandidateAvatarWithStatus,10),(0,l.Z)(Oe,Ce.ox.DsCandidateBadge,9),(0,l.Z)(Oe,Ce.ox.DsCandidateBox,9),(0,l.Z)(Oe,Ce.ox.DsCandidateBubble,9),(0,l.Z)(Oe,Ce.ox.DsCandidateCheckbox,22),(0,l.Z)(Oe,Ce.ox.DsCandidateChip,36),(0,l.Z)(Oe,Ce.ox.DsCandidateChoiceTile,22),(0,l.Z)(Oe,Ce.ox.DsCandidateCollapsibleItem,34),(0,l.Z)(Oe,Ce.ox.DsCandidateCollapsibleList,34),(0,l.Z)(Oe,Ce.ox.DsCandidateDivider,9),(0,l.Z)(Oe,Ce.ox.DsCandidateFlag,Pe),(0,l.Z)(Oe,Ce.ox.DsCandidateFullScreenLayoutAccent,9),(0,l.Z)(Oe,Ce.ox.DsCandidateIcon,0),(0,l.Z)(Oe,Ce.ox.DsCandidateIconButton,21),(0,l.Z)(Oe,Ce.ox.DsCandidateIconFlat,0),(0,l.Z)(Oe,Ce.ox.DsCandidateIconFlatWithStyle,0),(0,l.Z)(Oe,Ce.ox.DsCandidateLink,0),(0,l.Z)(Oe,Ce.ox.DsCandidateListItem,53),(0,l.Z)(Oe,Ce.ox.DsCandidateProgressBar,11),(0,l.Z)(Oe,Ce.ox.DsCandidateRadio,24),(0,l.Z)(Oe,Ce.ox.DsCandidateRating,34),(0,l.Z)(Oe,Ce.ox.DsCandidateRatingStar,34),(0,l.Z)(Oe,Ce.ox.DsCandidateSegmentedControl,37),(0,l.Z)(Oe,Ce.ox.DsCandidateSegmentedControlActiveOption,37),(0,l.Z)(Oe,Ce.ox.DsCandidateSlider,40),(0,l.Z)(Oe,Ce.ox.DsCandidateStackedButton,21),(0,l.Z)(Oe,Ce.ox.DsCandidateSwitch,24),(0,l.Z)(Oe,Ce.ox.DsCandidateTab,44),(0,l.Z)(Oe,Ce.ox.DsCandidateTabs,44),(0,l.Z)(Oe,Ce.ox.DsCandidateTextArea,0),(0,l.Z)(Oe,Ce.ox.DsCandidateTextField,0),(0,l.Z)(Oe,Ce.ox.DsCandidateTooltip,45),(0,l.Z)(Oe,Ce.W_.SvgIcon,Pe),(0,l.Z)(Oe,Ce.W_.SvgTokyoUIIcon,Pe),(0,l.Z)(Oe,Ce.W_.SvgCountryFlag,Pe),(0,l.Z)(Oe,Ce.W_.SvgTokyoUIIllustration,Pe),Oe),Le=(xe={},(0,l.Z)(xe,Ce.W_.Box,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.LayoutFlex,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.LayoutFlexItem,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.LayoutGrid,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.LayoutGridItem,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.ObserverIntersection,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.Panel,"outdatedDsComponent"),(0,l.Z)(xe,Ce.W_.PanelBody,"outdatedDsComponent"),(0,l.Z)(xe,Ce.W_.PanelFooter,"outdatedDsComponent"),(0,l.Z)(xe,Ce.W_.PanelHeader,"outdatedDsComponent"),(0,l.Z)(xe,Ce.W_.PanelSection,"outdatedDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandChip,"outdatedDsComponent"),(0,l.Z)(xe,Ce.W_.Accordion,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.AlertDialog,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.AlertBannerProvider,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.AlertBanner,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.AlertBannerRoot,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.AlertBannerAction,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.AvatarWithStatus,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Avatar,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Badge,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.BubbleCounter,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Button,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.CalloutBanner,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.CalloutBannerText,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Chip,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Chips,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SingleSelectChips,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SingleSelectChipsItem,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.MultiSelectChips,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.MultiSelectChipsItem,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.DismissibleChips,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.DismissibleChipsItem,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Dialog,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.DialogSteps,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogStepsActions,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogStepsNextContainer,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogStepsPreviousContainer,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogRoot,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogFooter,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogButtonStack,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogCloseButton,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogTitle,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogDescription,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogActions,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogHeader,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.DialogOverlay,"ignoredDsComponent"),(0,l.Z)(xe,Ce.W_.Divider,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.DropdownMenu,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.FieldButton,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.FieldLayout,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.CountryFlag,"uiDsComponent"),(0,l.Z)(xe,Ce.u7.FormControl,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Heading,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.IconButton,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Icon,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.IconTile,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Link,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Loader,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.NumberField,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.PasswordField,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.PreplyLogo,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.ProgressBar,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.ProgressSteps,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.PromoDialog,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Rating,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.RatingInput,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.RangeSlider,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SelectField,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Slider,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Steps,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Switch,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.TextField,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.FieldAdditionalText,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.TextHighlighted,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.TextInline,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Text,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.TextareaField,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Textarea,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Toast,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Tooltip,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.OnboardingTooltip,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Checkbox,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.InputDate,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.InputNumber,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.InputPassword,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.InputText,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.InputTime,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Radio,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.Select,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SelectFieldLayout,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SelectFieldOption,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandModal,"ignoredDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandAccordion,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandAlert,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandBubble,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandBubbleOnIcon,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandCheckbox,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandChoiceTile,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandDivider,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandDropdown,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandFlag,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandListItem,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandListMenu,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandPopover,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandProgressBar,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandRadioButton,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandRadioGroup,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandRange,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandRating,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandSegmentedButtons,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandSegmentedControls,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandSelect,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandSlider,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandStackedImage,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandSwitch,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandTabs,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandToast,"uiDsComponent"),(0,l.Z)(xe,Ce.k9.RebrandTooltip,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateBox,"ignoredDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateFullScreenLayoutAccent,"ignoredDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateAlert,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateAccordion,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateAvatar,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateAvatarWithStatus,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateBadge,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateBubble,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateCheckbox,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateChip,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateChoiceTile,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateCollapsibleList,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateCollapsibleItem,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateDivider,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateFlag,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateIcon,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateIconFlat,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateIconFlatWithStyle,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateIconButton,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateLink,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateListItem,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateProgressBar,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateRadio,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateRating,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateRatingStar,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateSegmentedControlActiveOption,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateSegmentedControl,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateSlider,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateStackedButton,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateSwitch,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateTab,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateTabs,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateTextArea,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateTextField,"uiDsComponent"),(0,l.Z)(xe,Ce.ox.DsCandidateTooltip,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SvgIcon,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SvgTokyoUIIcon,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SvgCountryFlag,"uiDsComponent"),(0,l.Z)(xe,Ce.W_.SvgTokyoUIIllustration,"uiDsComponent"),xe);function Re(e){var t;return null===e?"nonDsComponent":e.startsWith("Rebrand")?"rebrandComponent":e.startsWith("DsCandidate")?"dsCandidateComponent":null!==(t=Le[e])&&void 0!==t?t:"unknownDsComponent"}function De(e){var t=e.readablePixelCounts,n={uiDsComponent:0,nonDsComponent:0,rebrandComponent:0,unknownDsComponent:0,ignoredDsComponent:0,outdatedDsComponent:0,dsCandidateComponent:0,childOfUiDsComponent:0};return Object.keys(t).forEach((function(e){var r=t[e];if(void 0===r)throw new Error("No pixelCount at ".concat(e," (this should be a TS-only protection)"));if("emptyPixel"===e);else if("nonDsComponents"===e)n.nonDsComponent+=r;else if("unknownDsComponent"===e)n.unknownDsComponent+=r;else if("childOfUiDsComponent"===e)n.childOfUiDsComponent+=r;else{switch(Re(e)){case"nonDsComponent":n.nonDsComponent+=r;break;case"rebrandComponent":n.rebrandComponent+=r;break;case"dsCandidateComponent":n.dsCandidateComponent+=r;break;case"ignoredDsComponent":n.ignoredDsComponent+=r;break;case"outdatedDsComponent":n.outdatedDsComponent+=r;break;case"uiDsComponent":n.uiDsComponent+=r;break;case"unknownDsComponent":n.unknownDsComponent+=r}}})),{pixelCountsByComponentType:n}}function ke(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(at){return!1}}();return function(){var n,r=(0,c.Z)(e);if(t){var i=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,u.Z)(this,n)}}var Ne=function(e){(0,s.Z)(n,e);var t=ke(n);function n(e){var r;return(0,i.Z)(this,n),r=t.call(this,e.message),Error.captureStackTrace&&Error.captureStackTrace((0,a.Z)(r),n),r.team=e.team,r.platform=e.platform,r.component=e.component,r.stopReason=e.stopReason,r}return(0,o.Z)(n)}((0,ce.Z)(Error)),Ie=n(88277),Be={result:"ignoreComponent"};function Me(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{weightByComponentName:Ae}).weightByComponentName;return function(t){var n=t.component;if(!globalThis.document.contains(n))return Be;if("iframe"===n.tagName)return Be;var r=globalThis.getComputedStyle(n);if("none"===r.display||"0"===r.opacity||"hidden"===r.visibility)return Be;var i="unableToParseTag";n.outerHTML.split(">").length>0&&(i=n.outerHTML.split(">")[0]+">");var o=i,a=n.getAttribute("data-preply-ds-component"),s=Re(a);if("nonDsComponent"===s)for(var u=n.parentElement;u;){if("uiDsComponent"===Re(u.getAttribute("data-preply-ds-component"))){a="childOfUiDsComponent";break}u=u.parentElement}if(!a){var c=e.nonDsComponent;if(void 0===c)throw new Error("weightByComponentName.nonDsComponent is not defined (this should be a TS-only protection)");return{result:"countComponent",debugInfo:o,dsComponentName:a,debugColor:"red",weight:c}}var l=e[a];if("number"!==typeof l){var d=e.unknownDsComponent;if(void 0===d)throw new Error("weightByComponentName.unknownDsComponent is not defined (this should be a TS-only protection)");return{result:"countComponent",debugInfo:o,dsComponentName:a,debugColor:"yellow",weight:d}}var f="green";switch(s){case"rebrandComponent":f="purple";break;case"outdatedDsComponent":f="orange"}return{result:"countComponent",weight:l,debugInfo:o,dsComponentName:a,debugColor:f}}}function Fe(e){if(!function(e){return!!e&&"object"===typeof e&&!Array.isArray(e)}(e))return!1;if(!e.hasOwnProperty("team"))return!1;if(!e.hasOwnProperty("component"))return!1;var t=e.team,n=e.component;if("string"!==typeof t)return!1;if("string"!==typeof n)return!1;if(e.hasOwnProperty("ignore")){if("boolean"!==typeof e.ignore)return!1;e.ignore}return!!{}&&!!{}}function je(e){return function(e){if(Fe(e))return e;throw new Error("Invalid DsVisualCoverageContainerAttribute")}(JSON.parse(e))}function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{}).coverageContainerDomAttribute,t=void 0===e?Ie.W:e;return function(e){var n=e.component,r=n.getAttribute(t);if(!r)return{result:"isNotCoverageContainer"};var i=globalThis.getComputedStyle(n);return"none"===i.display||"0"===i.opacity||"hidden"===i.visibility||je(r).ignore?{result:"ignoreCoverageContainer",coverageContainer:r}:{result:"isCoverageContainer",coverageContainer:r}}}function Ze(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(at){return!1}}();return function(){var n,r=(0,c.Z)(e);if(t){var i=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,u.Z)(this,n)}}var qe=function(e){(0,s.Z)(n,e);var t=Ze(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this,e.message)).platform=e.platform,r.team=e.dsVisualCoverageData.team,r.component=e.dsVisualCoverageData.component,r}return(0,o.Z)(n)}((0,ce.Z)(Error)),We=n(34045);function Qe(e){var t=Date.now(),n=Math.floor(t/1e3);return Math.floor(n/60)%60%5===0&&n%600}));o.forEach(c),s.log(t)}})}catch(d){u(d)}}),o),s.log("Interval started")},cancel:function(){var e;null===(e=i)||void 0===e||e.cancel(),clearInterval(r)}}}catch(d){return u(d),{start:ze,cancel:ze}}}var Ke=n(76453),Xe=n(92052),Je=n(32811),$e=n(1631),et=n(75665),tt=n(36634),nt=n(11107),rt=n(35985),it=n(70949);var ot,at,st,ut=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart(t||100)-1)return n||i;if(n=n?i+">"+n:i,r.id)break;e=r.parentNode}}catch(e){}return n},ft=-1,pt=function(){return ft},ht=function(e){addEventListener("pageshow",(function(t){t.persisted&&(ft=t.timeStamp,e(t))}),!0)},mt=function(){var e=ut();return e&&e.activationStart||0},gt=function(e,t){var n=ut(),r="navigate";return pt()>=0?r="back-forward-cache":n&&(document.prerendering||mt()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},vt=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},yt=function(e,t,n,r){var i,o;return function(a){t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},bt=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},_t=function(e){document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&e()}))},Et=function(e){var t=!1;return function(){t||(e(),t=!0)}},St=-1,wt=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},Tt=function(e){"hidden"===document.visibilityState&&St>-1&&(St="visibilitychange"===e.type?e.timeStamp:0,xt())},Ot=function(){addEventListener("visibilitychange",Tt,!0),addEventListener("prerenderingchange",Tt,!0)},xt=function(){removeEventListener("visibilitychange",Tt,!0),removeEventListener("prerenderingchange",Tt,!0)},Ct=function(){return St<0&&(St=wt(),Ot(),ht((function(){setTimeout((function(){St=wt(),Ot()}),0)}))),{get firstHiddenTime(){return St}}},Pt=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},At=[1800,3e3],Lt=function(e,t){t=t||{},Pt((function(){var n,r=Ct(),i=gt("FCP"),o=vt("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimet.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};Ft.set(r.id,r),Mt.push(r)}Mt.sort((function(e,t){return t.latency-e.latency})),Mt.length>10&&Mt.splice(10).forEach((function(e){return Ft.delete(e.id)}))}}},Vt=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=Et(e),"hidden"===document.visibilityState?e():(n=t(e),_t(e)),n},Zt=[200,500],qt=[],Wt=[],Qt=new WeakMap,zt=new Map,Yt=-1,Kt=function(e){qt=qt.concat(e),Xt()},Xt=function(){Yt<0&&(Yt=Vt(Jt))},Jt=function(){zt.size>10&&zt.forEach((function(e,t){Ft.has(t)||zt.delete(t)}));var e=Mt.map((function(e){return Qt.get(e.entries[0])})),t=Wt.length-50;Wt=Wt.filter((function(n,r){return r>=t||e.includes(n)}));for(var n=new Set,r=0;r=0;r--){var i=Wt[r];if(Math.abs(n-i.renderTime)<=8){(t=i).startTime=Math.min(e.startTime,t.startTime),t.processingStart=Math.min(e.processingStart,t.processingStart),t.processingEnd=Math.max(e.processingEnd,t.processingEnd),t.entries.push(e);break}}t||(t={startTime:e.startTime,processingStart:e.processingStart,processingEnd:e.processingEnd,renderTime:n,entries:[e]},Wt.push(t)),(e.interactionId||"first-input"===e.entryType)&&Qt.set(e,t),Xt()}));var $t=function(e,t){for(var n,r=[],i=0;n=qt[i];i++)if(!(n.startTime+n.durationt)break;r.push(n)}return r},en=function(e,t){at||(at=vt("long-animation-frame",Kt)),function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},Pt((function(){var n;Bt();var r,i=gt("INP"),o=function(e){Vt((function(){e.forEach(Ht);var t,n=(t=Math.min(Mt.length-1,Math.floor(Gt()/50)),Mt[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())}))},a=vt("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=yt(e,i,Zt,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),_t((function(){o(a.takeRecords()),r(!0)})),ht((function(){jt=0,Mt.length=0,Ft.clear(),i=gt("INP"),r=yt(e,i,Zt,t.reportAllChanges)})))})))}((function(t){var n=function(e){var t=e.entries[0],n=Qt.get(t),r=t.processingStart,i=n.processingEnd,o=n.entries.sort((function(e,t){return e.processingStart-t.processingStart})),a=$t(t.startTime,i),s=e.entries.find((function(e){return e.target})),u=s&&s.target||zt.get(t.interactionId),c=[t.startTime+t.duration,i].concat(a.map((function(e){return e.startTime+e.duration}))),l=Math.max.apply(Math,c),d={interactionTarget:dt(u),interactionTargetElement:u,interactionType:t.name.startsWith("key")?"keyboard":"pointer",interactionTime:t.startTime,nextPaintTime:l,processedEventEntries:o,longAnimationFrameEntries:a,inputDelay:r-t.startTime,processingDuration:i-r,presentationDelay:Math.max(l-i,0),loadState:ct(t.startTime)};return Object.assign(e,{attribution:d})}(t);e(n)}),t)},tn=[2500,4e3],nn={},rn=[800,1800],on=function e(t){document.prerendering?Pt((function(){return e(t)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},an=function(e,t){t=t||{};var n=gt("TTFB"),r=yt(e,n,rn,t.reportAllChanges);on((function(){var i=ut();i&&(n.value=Math.max(i.responseStart-mt(),0),n.entries=[i],r(!0),ht((function(){n=gt("TTFB",0),(r=yt(e,n,rn,t.reportAllChanges))(!0)})))}))},sn=(new Date,n(10625)),un=function(){return"deviceMemory"in navigator?navigator.deviceMemory:null},cn=function(){return"hardwareConcurrency"in navigator?navigator.hardwareConcurrency:null},ln=function(){var e;return"connection"in navigator&&null!==(e=navigator.connection)&&void 0!==e&&e.effectiveType?navigator.connection.effectiveType:null};function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fn(e){for(var t=1;tr.value&&(r.value=i,r.entries=o,n())},s=vt("layout-shift",a);s&&(n=yt(e,r,Rt,t.reportAllChanges),_t((function(){a(s.takeRecords()),n(!0)})),ht((function(){i=0,r=gt("CLS",0),n=yt(e,r,Rt,t.reportAllChanges),bt((function(){return n()}))})),setTimeout(n,0))})))}((function(t){var n=function(e){var t,n={};if(e.entries.length){var r=e.entries.reduce((function(e,t){return e&&e.value>t.value?e:t}));if(r&&r.sources&&r.sources.length){var i=(t=r.sources).find((function(e){return e.node&&1===e.node.nodeType}))||t[0];i&&(n={largestShiftTarget:dt(i.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:i,largestShiftEntry:r,loadState:ct(r.startTime)})}}return Object.assign(e,{attribution:n})}(t);e(n)}),void 0)}((function(e){var t=e.id,n=e.name,r=e.value,i=e.attribution,o={largestShiftTarget:i.largestShiftTarget,largestShiftTime:i.largestShiftTime,largestShiftValue:i.largestShiftValue,loadState:i.loadState};hn((function(){return{id:t,name:n,value:r,viewName:_r(),payload:o}}))})),function(e,t){!function(e,t){t=t||{},Pt((function(){var n,r=Ct(),i=gt("LCP"),o=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach((function(e){e.startTime1&&void 0!==arguments[1]?arguments[1]:{}).HOST,n=void 0===t?"":t;return fetch("".concat(n,"/graphql/"),{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"query IsUserAuthenticated { currentUser { id } } "})}).then((function(e){if(!e.ok)throw{message:"Network response was not ok",response:e};return e.json()})).then((function(t){if(t.data.currentUser){var r="updateOnlineStatusTime";null===window.localStorage.getItem(r)&&(window.localStorage.setItem(r,Y(2)),fetch("".concat(n,"/graphql/"),{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"mutation UpdateUserProfile { updateUserProfile(data: {}){ profile { id } } }"})}));var i=setInterval((function(){var t=window.localStorage.getItem(r);if(t){var o=new Date(t);new Date>o&&(window.localStorage.setItem(r,Y(2)),fetch("".concat(n,"/graphql/"),{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"mutation UpdateUserProfile { updateUserProfile(data: {}){ profile { id } } }"})}).then((function(e){if(!e.ok)throw{message:"Network response was not ok",response:e};return e.json()})).then((function(e){e.errors&&clearInterval(i)})).catch((function(t){clearInterval(i),e(t)})))}}),1e4)}}))})(e).catch(e)})),(0,l.Z)((0,a.Z)(e),"setUserTimezoneCookieIfNotPresent",(function(){L().get(tt.E9.browserTimezone)||L().set(tt.E9.browserTimezone,(0,et.PU)(),{expires:365,path:"/",secure:!0})})),(0,l.Z)((0,a.Z)(e),"onUserAuthenticated",(function(){e.setState({loadAnnouncements:!0}),e.startReportingOnlineStatus()})),e}return(0,o.Z)(n,[{key:"componentDidCatch",value:function(e,t){var n=$e.a.captureException(e,void 0,{info:t},{tags:{componentDidCatch:"_app"}});Ke.SV.sendRenderingErrorToDWH({error:e,info:t,teamName:"matching",viewName:"_app",sentryEventId:n});var r=(0,Tn.Pc)(e);this.setState({errorType:r})}},{key:"componentDidMount",value:function(){v().beforePopState((function(e){var t=e.url,n=e.as,r=e.options;return t.startsWith("/search")?("shallow"in r||(r.shallow=!0),!0):(location.href=n||t,!1)})),zn();var e,t,n=this.props.reactIntlLocale;window.recaptchaOptions={lang:n,useRecaptchaNet:!1,removeOnUnmount:!1,enterprise:!0},z({language:n,uid:null===(e=this.props.gtmBranchUser)||void 0===e?void 0:e.toString(),userCohorts:{isTutor:Boolean(null===(t=this.props.gtmBranchUser)||void 0===t||null===(t=t.tutor)||void 0===t?void 0:t.id)}}),this.setUserTimezoneCookieIfNotPresent(),this.props.isSeoCrawler||this.startReportingOnlineStatus(),Ke.SV.sendRenderingEventToDWH({teamName:"matching",viewName:"_app"}),(0,Ke.wb)();var r,i=(r=this.props.gtmBranchUser)?null!==r&&void 0!==r&&r.client?"student":"tutor":"anonymous";Dr(this.props.viewName||"unset"),"yes"===$()&&this.props.appFlags&&("tutor"===i?((0,xn.z)(Cn.E.CALCULATE_DS_COVERAGE_TUTOR),this.props.appFlags[Cn.E.CALCULATE_DS_COVERAGE_TUTOR]&&Ye({userType:i,log:!1,checkInterval:500}).start()):((0,xn.z)(Cn.E.CALCULATE_DS_COVERAGE_STUDENT),this.props.appFlags[Cn.E.CALCULATE_DS_COVERAGE_STUDENT]&&Ye({userType:i,log:!1,checkInterval:500}).start()),wn())}},{key:"componentDidUpdate",value:function(){Dr(this.props.viewName||"unset")}},{key:"render",value:function(){var e,t,n,i,o,a,s,u,c=this.props,l=c.Component,d=c.pageProps,f=c.locale,p=c.apolloClient2,h=c.reactIntlLocale,g=c.messages,v=c.bowserFlags,y=c.countryCode,_=c.absoluteUrl,E=c.viewName,S=c.browserTimezoneCookie,w=c.currency,T=c.currencyCodeCookie,O=c.christmasBannerCookie,C=c.router,A=c.gtmBranchUser,L=c.copycatFlags,k=c.isSeoCrawler,N=c.clientLocale,I=c.headerSSRData,B=c.landingPageLast,M={messages:g,locale:h},F=this.props.appFlags||(null===(e=this.props.errorPageProps)||void 0===e?void 0:e.appFlags),j=(0,nt.Nh)({viewName:E}),G=(0,it.p)({clientLocale:N,intlData:M,browserTimezoneCookie:S,currency:w,currencyCodeCookie:T,christmasBannerCookie:O,bowserFlags:v,countryCode:y,copycatFlags:L,appFlags:F,isSeoCrawler:k,viewName:E,headerSSRData:I,nextRouter:C,bioBreaks:{isActive:!A||(null===A||void 0===A||null===(t=A.client)||void 0===t?void 0:t.isInBioBreakExp)||!(null===A||void 0===A||!A.tutor),isEligible:!A||!(null===A||void 0===A||!A.dateJoined)&&new Date((null===A||void 0===A?void 0:A.dateJoined)||"")>=Xe.xu||(null===A||void 0===A||null===(n=A.client)||void 0===n?void 0:n.isEligibleForBioBreakI2),isEligibleI2:null===A||void 0===A||null===(i=A.client)||void 0===i?void 0:i.isEligibleForBioBreakI2,trialLessonDuration:Xe.ki,shortTrialLessonDuration:Xe.zZ,isActiveSub:null===A||void 0===A||null===(o=A.client)||void 0===o?void 0:o.isInBioBreakExpSub,isEligibleSub:null===A||void 0===A||null===(a=A.client)||void 0===a?void 0:a.isEligibleForBioBreakSub},uid:this.props.uidCookie,themeProviderData:{isRebranded:j},landingPageLast:B});if(this.state.hasError)return this.state.errorType&&[].concat((0,r.Z)(Tn.GX),(0,r.Z)(Tn.Yp)).includes(this.state.errorType)||500===(null===(u=this.props.errorPageProps)||void 0===u?void 0:u.statusCode)?G((0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(x,{children:[(0,b.jsx)(Rr,Pr(Pr({},this.props.announcementsInitialProps),{},{viewName:E})),(0,b.jsx)(wr.u,Pr({},this.props.errorPageProps||{statusCode:404}))]})})):(0,b.jsx)(b.Fragment,{});var U,H,V=E||"not-found-page",Z=(0,b.jsx)(Ke.SV,{viewName:V,teamName:(0,sn.L)(E),children:(0,b.jsx)(x,{children:(0,b.jsx)(l,Pr(Pr({},d),{},{language:f,absoluteUrl:_,viewName:E,onUserAuthenticated:this.onUserAuthenticated}))})});return U=null===(s=this.props)||void 0===s||null===(s=s.router)||void 0===s?void 0:s.query,(H="_remove_app")in U&&"1"===U[H]?G(Z):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(P(),{children:(0,b.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"})}),G((0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(Ke.SV,{viewName:"node-ssr-load-intersection-observer-polyfill",teamName:"fe-platform",children:(0,b.jsx)(Jn,{})}),(0,b.jsx)(Ke.SV,{viewName:"node-ssr-load-seamless-scroll-polyfill",teamName:"flex",children:(0,b.jsx)($n,{})}),(0,b.jsx)(Ke.SV,{viewName:"node-ssr-gtm",teamName:"martech",children:(0,b.jsx)(Ar,{language:f,viewName:E,countryCode:y,currentUser:A,loadingStrategy:"awaitForIdle",userCentricsVariant:null!==F&&void 0!==F&&F[Cn.E.EXP_COOKIE_COMPLIANCE_WEB]?"cookie_compliance_web":"default"})}),(0,b.jsx)(Ke.SV,{viewName:"node-ssr-auto-translation-tracking",teamName:"subx",children:(0,b.jsx)(Lr,{sourceLang:f,viewName:E})}),(0,b.jsx)(Ke.SV,{viewName:"node-ssr-announcements",teamName:"matching",children:(0,b.jsx)(Rr,Pr({viewName:E,loadAnnouncements:this.state.loadAnnouncements},this.props.announcementsInitialProps))}),(0,b.jsx)(R.e,{client:this.apolloClient3||Wn(),children:(0,b.jsx)(m.Suspense,{children:p?(0,b.jsx)(D.eT,{client:p,children:Z}):Z})}),(0,b.jsx)(vn,{locale:this.props.locale,initialShowPrivacyPolicyPanel:this.props.showPrivacyPolicyPanel}),!(null===F||void 0===F||!F[Cn.E.ENABLE_A11Y_MONITOR])&&(0,b.jsx)(Je.G,{viewName:E})]}))]})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return{hasError:e.hasError||t.hasError||!1,errorType:e.errorType||t.errorType||void 0,loadAnnouncements:t.loadAnnouncements||!1}}},{key:"getDerivedStateFromError",value:function(){return{hasError:!0,pageProps:{}}}}]),n}(f());(0,l.Z)(kr,"getInitialProps",Sr),(0,On.h)({MyApp:kr});var Nr=(0,g.withRouter)(kr)},32811:function(e,t,n){"use strict";n.d(t,{G:function(){return m}});var r=n(50029),i=n(64687),o=n.n(i),a=function(e){return"deviceMemory"in e&&"hardwareConcurrency"in e&&"connection"in e};var s=n(21071),u=n(34045);function c(e){var t=e.viewName,n=e.teamName;return a(navigator)?{event_name:"a11y_monitor_init_v4",event_type:u.g7.EVENT_TYPE_CUSTOM,json_data:{viewName:t,teamName:n,deviceMemory:navigator.deviceMemory,connection:navigator.connection.effectiveType,hardwareConcurrency:navigator.hardwareConcurrency}}:{event_name:"a11y_monitor_init_v4",event_type:u.g7.EVENT_TYPE_CUSTOM,json_data:{viewName:t,teamName:n,deviceMemory:-1,connection:"unknown",hardwareConcurrency:navigator.hardwareConcurrency}}}function l(e){var t=e.viewName,n=e.teamName,r=e.axeObserverRunData;return{event_name:"a11y_violations_v4",event_type:u.g7.EVENT_TYPE_CUSTOM,view_name:t,json_data:(0,s.Zj)((0,s.Zj)({},r),{},{viewName:t,teamName:n})}}var d=n(67294),f=n(35985),p=n(10625),h=new Set(["b2b-cms-page","b2b-language-test","b2c2b-referral","b2c2b-referral-landing","careers","careers-apply","courses_detail","courses_home","courses_specialty","courses_specialty","courses_subject","enterprise-english-training","enterprise-french-training","enterprise-german-training","enterprise-spanish-training","enterprise-landing","learn-online","placement","seo-classes-by-level","seo-classes","seo-cms-page-old","seo-cms-page","seo-landing-course","seo-landing-instant-conversations","seo-preply-global","seo-reviews","test-your-vocab-how-it-works","test-your-vocab-result","test-your-vocab","vacancies"]);function m(e){var t=e.viewName;return(0,d.useEffect)((function(){if(function(){if(!a(navigator))return!1;var e="4g"===navigator.connection.effectiveType,t=navigator.deviceMemory>=2,n=navigator.hardwareConcurrency>=2;return e&&t&&n}()&&!h.has(t)){var e=(0,p.p)(t),i=null;return function(){s.apply(this,arguments)}(),function(){i&&i.disconnect()}}function s(){return(s=(0,r.Z)(o().mark((function r(){var a;return o().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([n.e(60209),n.e(65297)]).then(n.bind(n,65297)).then((function(e){return e.AxeObserver}));case 2:a=r.sent,i=new a((function(n){(0,f.pA)(l({axeObserverRunData:n,viewName:t,teamName:e}))})),(0,f.pA)(c({viewName:t,teamName:e})),i.observe(document.body);case 6:case"end":return r.stop()}}),r)})))).apply(this,arguments)}}),[t]),null}},36634:function(e,t,n){"use strict";n.d(t,{mx:function(){return N},rx:function(){return L},L4:function(){return q},We:function(){return M},H:function(){return u},wb:function(){return A},tF:function(){return C},E9:function(){return v},bX:function(){return S},fD:function(){return y},GM:function(){return w},dF:function(){return b},e0:function(){return k},hO:function(){return h},bG:function(){return H},SZ:function(){return D},y5:function(){return R},tC:function(){return c},jb:function(){return B},FG:function(){return O},J5:function(){return x},H3:function(){return g},Jd:function(){return U},f$:function(){return j},Eb:function(){return F},a1:function(){return G},C1:function(){return _},Ub:function(){return E},el:function(){return P},AI:function(){return W},Cn:function(){return f},q_:function(){return p},tD:function(){return T},c2:function(){return Z},m_:function(){return s},_k:function(){return m},vP:function(){return V},wq:function(){return I}});var r=n(59499),i=n(90116);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}var a=e;if(t){var s=g()(t);a+="("+s+")"}return n&&Object.keys(n).forEach((function(e){-1===C.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@"+e+"("+JSON.stringify(n[e])+")":a+="@"+e)})),a}function A(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return x(n,r,i,t)})),n}return null}function L(e){return e.alias?e.alias.value:e.name.value}function R(e){return"Field"===e.kind}function D(e){return"InlineFragment"===e.kind}function k(e){return e&&"id"===e.type&&"boolean"===typeof e.generated}function N(e,t){return void 0===t&&(t=!1),f({type:"id",generated:t},"string"===typeof e?{id:e,typename:void 0}:e)}function I(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=A(e,t)})),n}return null}function B(e,t){return void 0===t&&(t={}),(n=e.directives,n?n.filter(M).map((function(e){var t=e.arguments;e.name.value,(0,h.kG)(t&&1===t.length,2);var n=t[0];(0,h.kG)(n.name&&"if"===n.name.value,3);var r=n.value;return(0,h.kG)(r&&("Variable"===r.kind||"BooleanValue"===r.kind),4),{directive:e,ifArgument:n}})):[]).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t[r.value.name.value],(0,h.kG)(void 0!==i,1)):i=r.value.value,"skip"===n.name.value?!i:i}));var n}function M(e){var t=e.name.value;return"skip"===t||"include"===t}function F(e){for(var t=[],n=1;n1){var r=[];t=ee(t,r);for(var i=1;i-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),ae=Object.prototype.hasOwnProperty,se=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=(0,te.re)((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){t!==this.data[e]&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){ae.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(n){t.set(n,e[n])})),Object.keys(this.data).forEach((function(n){ae.call(e,n)||t.delete(n)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function ue(e){return new se(e)}var ce=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.cacheKeyRoot,i=void 0===r?new te.Gl(W):r,o=n.freezeResults,a=void 0!==o&&o,s=this,u=s.executeStoreQuery,c=s.executeSelectionSet,l=s.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=(0,te.re)((function(e){return u.call(t,e)}),{makeCacheKey:function(e){var t=e.query,n=e.rootValue,r=e.contextValue,o=e.variableValues,a=e.fragmentMatcher;if(r.store instanceof se)return i.lookup(r.store,t,a,JSON.stringify(o),n.id)}}),this.executeSelectionSet=(0,te.re)((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,n=e.rootValue,r=e.execContext;if(r.contextValue.store instanceof se)return i.lookup(r.contextValue.store,t,r.fragmentMatcher,JSON.stringify(r.variableValues),n.id)}}),this.executeSubSelectedArray=(0,te.re)((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.field,n=e.array,r=e.execContext;if(r.contextValue.store instanceof se)return i.lookup(r.contextValue.store,t,n,JSON.stringify(r.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(f({},e,{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.variables,i=e.previousResult,o=e.returnPartialData,a=void 0===o||o,s=e.rootId,u=void 0===s?"ROOT_QUERY":s,c=e.fragmentMatcherFunction,l=e.config;r=F({},Z(function(e){var t=G(e);return(0,h.kG)(t&&"query"===t.operation,12),t}(n)),r);var d={store:t,dataIdFromObject:l&&l.dataIdFromObject,cacheRedirects:l&&l.cacheRedirects||{}},f=this.executeStoreQuery({query:n,rootValue:{type:"id",id:u,generated:!0,typename:"Query"},contextValue:d,variableValues:r,fragmentMatcher:c}),p=f.missing&&f.missing.length>0;return p&&!a&&f.missing.forEach((function(e){if(!e.tolerable)throw new h.ej(8)})),i&&(0,v.D)(i,f.result)&&(f.result=i),{result:f.result,complete:!p}},e.prototype.executeStoreQuery=function(e){var t=e.query,n=e.rootValue,r=e.contextValue,i=e.variableValues,o=e.fragmentMatcher,a=void 0===o?de:o,s=H(t),u={query:t,fragmentMap:V(U(t)),contextValue:r,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:n,execContext:u})},e.prototype.executeSelectionSet=function(e){var t=this,n=e.selectionSet,r=e.rootValue,i=e.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,u={result:null},c=[],l=a.store.get(r.id),d=l&&l.__typename||"ROOT_QUERY"===r.id&&"Query"||void 0;function p(e){var t;return e.missing&&(u.missing=u.missing||[],(t=u.missing).push.apply(t,e.missing)),e.result}return n.selections.forEach((function(e){var n;if(B(e,s))if(R(e)){var u=p(t.executeField(l,d,e,i));"undefined"!==typeof u&&c.push(((n={})[L(e)]=u,n))}else{var m=void 0;if(D(e))m=e;else if(!(m=o[e.name.value]))throw new h.ej(9);var g=m.typeCondition&&m.typeCondition.name.value,v=!g||i.fragmentMatcher(r,g,a);if(v){var y=t.executeSelectionSet({selectionSet:m.selectionSet,rootValue:r,execContext:i});"heuristic"===v&&y.missing&&(y=f({},y,{missing:y.missing.map((function(e){return f({},e,{tolerable:!0})}))})),c.push(p(y))}}})),u.result=X(c),this.freezeResults,u},e.prototype.executeField=function(e,t,n,r){var i=r.variableValues,o=r.contextValue,a=function(e,t,n,r,i,o){o.resultKey;var a=o.directives,s=n;(r||a)&&(s=P(s,r,a));var u=void 0;if(e&&"undefined"===typeof(u=e[s])&&i.cacheRedirects&&"string"===typeof t){var c=i.cacheRedirects[t];if(c){var l=c[n];l&&(u=l(e,r,{getCacheKey:function(e){var t=i.dataIdFromObject(e);return t&&N({id:t,typename:e.__typename})}}))}}if("undefined"===typeof u)return{result:u,missing:[{object:e,fieldName:s,tolerable:!1}]};d=u,null!=d&&"object"===typeof d&&"json"===d.type&&(u=u.json);var d;return{result:u}}(e,t,n.name.value,A(n,i),o,{resultKey:L(n),directives:I(n,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:n,array:a.result,execContext:r})):n.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:n.selectionSet,rootValue:a.result,execContext:r})):(le(n,a.result),this.freezeResults,a)},e.prototype.combineExecResults=function(){for(var e,t=[],n=0;n=0)return!0;n[e].push(t)}else n[e]=[t];return!1}var ye={fragmentMatcher:new ie,dataIdFromObject:function(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var be=Object.prototype.hasOwnProperty,_e=function(e){function t(t,n,r){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=n,i.transaction=r,i}return d(t,e),t.prototype.toObject=function(){return f({},this.parent.toObject(),this.data)},t.prototype.get=function(e){return be.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(fe),Ee=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;n.watches=new Set,n.typenameDocumentCache=new Map,n.cacheKeyRoot=new te.Gl(W),n.silenceBroadcast=!1,n.config=f({},ye,t),n.config.customResolvers&&(n.config.cacheRedirects=n.config.customResolvers),n.config.cacheResolvers&&(n.config.cacheRedirects=n.config.cacheResolvers),n.addTypename=!!n.config.addTypename,n.data=n.config.resultCaching?new se:new fe,n.optimisticData=n.data,n.storeWriter=new he,n.storeReader=new ce({cacheKeyRoot:n.cacheKeyRoot,freezeResults:t.freezeResults});var r=n,i=r.maybeBroadcastWatch;return n.maybeBroadcastWatch=(0,te.re)((function(e){return i.call(n,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return r.data instanceof se?r.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),n}return d(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){if("string"===typeof e.rootId&&"undefined"===typeof this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:n,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:n}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,n=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:n,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new h.ej(1)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){for(var t=[],n=0,r=this.optimisticData;r instanceof _e;)r.optimisticId===e?++n:t.push(r),r=r.parent;if(n>0){for(this.optimisticData=r;t.length>0;){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var n=this.data,r=this.silenceBroadcast;this.silenceBroadcast=!0,"string"===typeof t&&(this.data=this.optimisticData=new _e(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=r,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(n=e,t=(0,T.visit)(j(n),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r&&!r.some((function(e){return R(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(R(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return f(f({},e),{selections:p(r,[q])})}}}}}),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}var n;return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(w),Se=function(e,t){return Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Se(e,t)};var we=function(){return we=Object.assign||function(e){for(var t,n=1,r=arguments.length;n2&&void 0!==arguments[2]?arguments[2]:{};return(0,i.set)(e,t,f(f({},n),{},{secure:true}))},g=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.length>a.bX,i=r?t.substring(0,a.bX):t;m(e,i,n),r&&(0,u.JZ)({event_name:"cookie_trimmed",json_data:{name:e,original_value:t}})},v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=window.location.hostname.endsWith("preply.com");g(e,t,f({expires:365,domain:r?".preply.com":".".concat(window.location.hostname),path:"/"},n))},y=function(e){var t=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),n=new RegExp("[\\?&]".concat(t,"=([^&#]*)")).exec(window.location.search);return n?decodeURIComponent(n[1].replace(/\+/g," ")):""},b=function(e){var t=function(e){try{return atob(e)}catch(t){return null}}(y("pref"));if(t){var n=y("id"),r=n.length>0?n:void 0,i=y("share_source");return{mSource:"invitee",mSourceDetails:t,refLinkTimestamp:r,refShareSource:i.length>0?i:void 0}}if(y("aff_sub"))return{mSource:"salesdoubler",mSourceDetails:y("aff_sub")};if(y("utm_source")){if(y("utm_medium"))return{mSource:"campaign",mSourceDetails:"".concat(y("utm_source"),"(").concat(y("utm_medium"),")")}}else{if(e.indexOf("yandex")>-1)return e.indexOf("jsredir")>-1&&e.indexOf("/clck/")>-1?{mSource:"yandex(organic)",mSourceDetails:e}:{mSource:"yandex(cpc)",mSourceDetails:y("yclid")};if(e.indexOf("googleads")>-1)return{mSource:"google(display)",mSourceDetails:y("gclid")};if(document.URL.indexOf("gclid")>-1||e.indexOf("adurl")>-1)return{mSource:"google(cpc)",mSourceDetails:y("gclid")};if(e.indexOf("google")>-1)return{mSource:"google(organic)",mSourceDetails:""};if(e.indexOf("facebook")>-1||e.indexOf("vkontakte")>-1||e.indexOf("vk.com")>-1||e.indexOf("twitter")>-1)return{mSource:"social",mSourceDetails:e};if(e.indexOf(location.host)>-1)return{mSource:"preply",mSourceDetails:""};if(e.length>0)return{mSource:"referral",mSourceDetails:e}}return{mSource:"other",mSourceDetails:""}},_=function(){var e=(new Date).toISOString();if(""===p("is_source_set")&&-1===document.referrer.indexOf("paypal.com")){var t=window.location.pathname,n=document.referrer,r=b(n),i=r.mSource,o=r.mSourceDetails,s=r.refLinkTimestamp,u=r.refShareSource;v("m_source",i),v("m_source_landing",t),v("m_source_details",o),v("is_source_set","yes"),s&&v("ref_link_timestamp",s),u&&v("ref_share_source",u),v("source_page",document.referrer||""),v("landing_page",window.location.href),v("visit_time",e);var l=(0,c.jI)();l&&v(a.E9.lastCampaignPage,l)}else-1!==document.referrer.indexOf(location.hostname)||-1!==document.referrer.indexOf("paypal.com")||p("source_page")===document.referrer&&p("landing_page")===window.location.href||(v("source_page_last",document.referrer||""),v(a.E9.landingPageLast,window.location.href),v("visit_time_last",e));return{m_source:p("m_source"),m_source_landing:p("m_source_landing"),m_source_details:p("m_source_details"),source_page:p("source_page"),landing_page:p("landing_page"),visit_time:p("visit_time"),source_page_last:p("source_page_last"),landing_page_last:p(a.E9.landingPageLast),visit_time_last:p("visit_time_last"),last_campaign_page:p(a.E9.lastCampaignPage)}},E=function(e){var t={};return t.mSource=o().get("m_source"),t.mSourceDetails=o().get("m_source_details"),t.mSourceLanding=o().get("m_source_landing"),t.sourcePage=o().get("source_page"),t.sourcePageLast=o().get("source_page_last"),t.landingPage=o().get("landing_page"),t.landingPageLast=o().get("landing_page_last"),t.visitTime=o().get("visit_time"),t.lpuuid=o().get("lpuuid"),t.clientId=function(){try{return window.ga&&window.ga.getAll&&window.ga.getAll().length>0?window.ga.getAll()[0].get("clientId"):null}catch(e){return null}}(),t.timezone=e,t},S=function(e){if(l(a.E9,e)){var t=a.E9[e];if("string"===typeof t)return s.w.of((0,i.get)(t))}return s.w.none()},w=function(e,t){return s.w.of(e.cookies[t])},T=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(l(a.E9,e)){var r=a.E9[e];m(r,t,n)}}},58753:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(65470),i=n.n(r),o=function(e){return i()._detect(e.get("User-Agent")||"")}},75665:function(e,t,n){"use strict";n.d(t,{Kp:function(){return p},PU:function(){return c},Sv:function(){return l},Ui:function(){return d},cV:function(){return h},iu:function(){return f}});var r=n(59499),i=n(83024),o=n(1631);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:null,n=e&&e.profile&&e.profile.timezone?e.profile.timezone.tzname:t||c();return u.includes((null===n||void 0===n?void 0:n.toLowerCase())||"")?(o.a.Sentry.captureMessage("Unknown user timezone ".concat(n),i.z.Warning),"UTC"):n},d=function(e,t){var n="ua"===e?"uk":e;try{return new Intl.DateTimeFormat(n,t)}catch(i){var r=new Error("Invalid timezone: ".concat(null===t||void 0===t?void 0:t.timeZone,". Original error: ").concat(i));return o.a.captureException(r),new Intl.DateTimeFormat(n,s(s({},t),{},{timeZone:l(null)||c()}))}},f=function(e,t,n){return d(t,n).format(e)},p=function(e,t){return f(e,void 0,{timeZone:t,hour12:!1,hour:"2-digit",minute:"2-digit"})},h=function(e,t,n){return f(t,e,{timeZone:n,weekday:!(arguments.length>3&&void 0!==arguments[3])||arguments[3]?"short":"long"})}},46771:function(e,t,n){"use strict";n.d(t,{F8:function(){return v},GP:function(){return p},GX:function(){return g},Pc:function(){return b},X5:function(){return f},Yp:function(){return m},e$:function(){return E},fb:function(){return _},u7:function(){return h},vP:function(){return d}});var r=n(82262),i=n(92777),o=n(10748),a=n(81531),s=n(63553),u=n(37247),c=n(46576);function l(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,u.Z)(e);if(t){var i=(0,u.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var d=function(e){(0,a.Z)(n,e);var t=l(n);function n(e){var r;return(0,i.Z)(this,n),r=t.call(this,e),Object.setPrototypeOf((0,o.Z)(r),n.prototype),r.name="GQLResponseError",r}return(0,r.Z)(n)}((0,c.Z)(Error)),f=function(e){(0,a.Z)(n,e);var t=l(n);function n(e,r){var a;(0,i.Z)(this,n);var s=r,u=s.map((function(e){var t;return null===(t=e.extensions)||void 0===t||null===(t=t.exception)||void 0===t?void 0:t.type})).filter(Boolean),c=u.length>0?" - error type: ".concat(u[0]):"";return a=t.call(this,"".concat(e).concat(c)),Object.setPrototypeOf((0,o.Z)(a),n.prototype),a.name="GQLError",a.errors=r,a.gqlErrors=s,a}return(0,r.Z)(n)}((0,c.Z)(Error)),p=function(e){(0,a.Z)(n,e);var t=l(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this,e)).name="PageNotFoundError",r}return(0,r.Z)(n)}((0,c.Z)(Error)),h=function(e){(0,a.Z)(n,e);var t=l(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this,e)).name="PageGoneError",r}return(0,r.Z)(n)}((0,c.Z)(Error)),m=["SubjectIsNotRecognized","CityIsNotRecognized","SeoPageNotFoundError","PageNotFoundError","DoesNotExist","URIError"],g=["SeoPageGone","PageGoneError"],v=["SeoPageRedirect","QuestionRedirect"],y=function(e){return e instanceof Error&&"GQLError"===e.name},b=function(e){var t,n,r,i;return y(e)&&null!==(t=e.gqlErrors)&&void 0!==t&&t[0]?e.gqlErrors[0].type||(null===(n=e.gqlErrors[0].extensions)||void 0===n?void 0:n.type)||(null===(r=e.gqlErrors[0].extensions)||void 0===r||null===(r=r.response)||void 0===r||null===(r=r.body)||void 0===r||null===(r=r.errors)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.type)||(null===(i=e.gqlErrors[0].extensions)||void 0===i?void 0:i.code)||"unknown GQL error":e instanceof Error?e.name:"unknown"},_=function(e){return[].concat(m,g,v).includes(b(e))},E=function(e){var t,n,r;return y(e)&&null!==(t=e.gqlErrors)&&void 0!==t&&t[0]?(null===(n=e.gqlErrors)||void 0===n||null===(n=n[0].extensions)||void 0===n||null===(n=n.response)||void 0===n||null===(n=n.body)||void 0===n||null===(n=n.errors)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.message)||(null===(r=e.gqlErrors)||void 0===r?void 0:r[0].message)||"Couldn't extract error message from GQL error":e instanceof Error?e.message:null}},96627:function(e,t,n){"use strict";n.d(t,{B:function(){return f}});var r,i=n(50029),o=n(71383),a=n(64687),s=n.n(a),u=n(59567),c=n(10846),l=n(90758),d=(0,u.ZP)(r||(r=(0,o.Z)(["\n query CurrentCurrency {\n currentCurrency {\n ...CurrencyData\n }\n }\n ","\n"])),c.vB),f=function(){var e=(0,i.Z)(s().mark((function e(t){var n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.headers,e.next=3,(0,l.P)({headers:n,query:d});case 3:return r=e.sent,e.abrupt("return",r.currentCurrency);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},90758:function(e,t,n){"use strict";n.d(t,{P:function(){return b}});var r=n(59499),i=n(50029),o=n(64687),a=n.n(o),s=n(36808),u=n(87066),c=n(36634),l=n(1631),d=n(46771),f=n(34174),p=n(34155);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t=200&&e<500}});case 17:if(P=e.sent,T=P.status,l.a.Sentry.setTag("gql_http_status_code",T),A=JSON.stringify(P.data),L=P.headers["content-type"],g(L)){e.next=27;break}throw l.a.Sentry.setTag("gql_http_content_type",L),R=A.slice(0,300),l.a.Sentry.setContext("response_body",{bodyTruncated:R,length:A.length}),new d.vP("Non JSON response for '".concat(_,"' HTTP ").concat(T,": ").concat(R));case 27:e.prev=27,O=P.data,e.next=34;break;case 31:throw e.prev=31,e.t0=e.catch(27),new d.vP("JSON parse failed for '".concat(_,"' HTTP ").concat(T,": ").concat(e.t0.message));case 34:if(!O.errors){e.next=38;break}throw l.a.Sentry.setContext("request_body",{requestBody:x,length:JSON.stringify(x).length}),l.a.Sentry.setContext("request_headers",E),new d.X5("Failed GQL request '".concat(_,"'"),O.errors);case 38:return e.abrupt("return",O.data);case 39:return e.prev=39,v(T,_,i||null,O),e.finish(39);case 42:case"end":return e.stop()}}),e,null,[[12,,39,42],[27,31]])})));return function(t){return e.apply(this,arguments)}}()},91639:function(e,t,n){"use strict";n.d(t,{B:function(){return v},_:function(){return g}});var r=n(90116),i=n(59499),o=n(50029),a=n(64687),s=n.n(a),u=n(8400),c=n.n(u),l=n(82492),d=n.n(l),f=n(90758),p=n(94286);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t=0;t--){var n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function b(e){try{if(e.stacktrace)return y(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(n){}return t?y(t):null}catch(r){return m.h&&f.kg.error("Cannot extract url for event "+(0,p.jH)(e)),null}}var _,E=n(20535),S=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){_=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t0?t:(0,G.l)();return 0===u.length&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:l}),e}function W(e,t,n,r){(0,p.EG)(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function Q(){var e=(0,w.Gd)(),t=e.getClient();return[e,t&&t.getOptions().attachStacktrace]}var z=n(46769),Y=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){(0,z.c)((function(t,n){var r=(0,w.Gd)().getIntegration(e);return r?function(e,t,n,r){if(!n.exception||!n.exception.values||!r||!(0,j.V9)(r.originalException,Error))return n;var i=K(t,r.originalException,e);return n.exception.values=(0,l.fl)(i,n.exception.values),n}(r._key,r._limit,t,n):t}))},e.id="LinkedErrors",e}();function K(e,t,n,r){if(void 0===r&&(r=[]),!(0,j.V9)(t[n],Error)||r.length+1>=e)return r;var i=(0,U.GJ)(t[n]);return K(e,t[n],n,(0,l.fl)([i],r))}var X=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(function(e,t){if(!t)return!1;if(function(e,t){var n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!$(e,t))return!1;if(!J(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){var n=ee(t),r=ee(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!$(e,t))return!1;if(!J(e,t))return!1;return!0}(e,t))return!0;return!1}(t,r._previousEvent))return P.h&&f.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(i){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.id="Dedupe",e}();function J(e,t){var n=te(e),r=te(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(var i=0;i=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Pe=n(34754),Ae="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Le=function(){function e(t){this.name=e.id,this._options=xe({depth:3},t)}return e.prototype.setupOnce=function(t,n){t((function(t,r){var i=n().getIntegration(e);return i?i.enhanceEventWithErrorData(t,r):t}))},e.prototype.enhanceEventWithErrorData=function(e,t){var n;if(!t||!t.originalException||!(0,j.VZ)(t.originalException))return e;var r=t.originalException.name||t.originalException.constructor.name,i=this._extractErrorData(t.originalException);if(i){var o=xe({},e.contexts),a=(0,Pe.Fv)(i,this._options.depth);return(0,j.PO)(a)&&(o=xe(xe({},e.contexts),((n={})[r]=xe({},a),n))),xe(xe({},e),{contexts:o})}return e},e.prototype._extractErrorData=function(e){var t,n,r,i;try{var o=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],a={};try{for(var s=Ce(Object.keys(e)),u=s.next();!u.done;u=s.next()){var c=u.value;if(-1===o.indexOf(c)){var l=e[c];a[c]=(0,j.VZ)(l)?l.toString():l}}}catch(m){t={error:m}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}if("function"===typeof e.toJSON){var d=e.toJSON();try{for(var p=Ce(Object.keys(d)),h=p.next();!h.done;h=p.next()){l=d[c=h.value];a[c]=(0,j.VZ)(l)?l.toString():l}}catch(g){r={error:g}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}return a}catch(v){Ae&&f.kg.error("Unable to extract extra data from the Error object:",v)}return null},e.id="ExtraErrorData",e}();function Re(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var De=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function ke(e){var t=De.exec(e);return t?t.slice(1):[]}function Ne(){for(var e=[],t=0;t=-1&&!r;i--){var o=i>=0?e[i]:"/";o&&(n=o+"/"+n,r="/"===o.charAt(0))}return(r?"/":"")+(n=Re(n.split("/").filter((function(e){return!!e})),!r).join("/"))||"."}function Ie(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}var Be=function(){function e(t){var n=this;void 0===t&&(t={}),this.name=e.id,this._prefix="app:///",this._iteratee=function(e){if(!e.filename)return e;var t=/^[A-Z]:\\/.test(e.filename),r=/^\//.test(e.filename);if(t||r){var i=t?e.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):e.filename,o=n._root?function(e,t){e=Ne(e).substr(1),t=Ne(t).substr(1);for(var n=Ie(e.split("/")),r=Ie(t.split("/")),i=Math.min(n.length,r.length),o=i,a=0;a1&&void 0!==arguments[1]?arguments[1]:1,n=Number(e);return Number.isFinite(n)?n:t}(Qe.SENTRY_SAMPLE_RATE,1)},Ye="[SentryExt.captureException]";var Ke,Xe={dsn:ze.dsn,release:ze.release,environment:ze.environment,sampleRate:ze.rate,attachStacktrace:!0,normalizeDepth:7,integrations:[new Le,new Be({root:"/project/.next"})],ignoreErrors:[].concat((0,s.Z)(Ze.Yp),(0,s.Z)(Ze.GX),(0,s.Z)(Ze.F8)),beforeSend:function(e,t){return(null===t||void 0===t?void 0:t.originalException)instanceof Ze.vP&&(e.fingerprint=[null===t||void 0===t?void 0:t.originalException.name]),He.firefox&&parseInt(String(He.version),10)<=50&&(null===t||void 0===t?void 0:t.originalException)instanceof Error&&null!==t&&void 0!==t&&t.originalException.message.startsWith("invalid time zone in DateTimeFormat()")||"Chrome"===He.name&&String(He.version).startsWith("63.0")&&"Windows"===He.osname&&"7"===He.osversion?null:e},beforeBreadcrumb:function(e){var t;return"default"===e.type&&"console"===e.category&&"error"===e.level&&null!==(t=e.message)&&void 0!==t&&t.startsWith(Ye)?null:e}},Je=Xe;Je.allowUrls=[/\/_next\/static\//],null===(Ke=Je.integrations)||void 0===Ke||Ke.push(new Me),oe(Xe),he.e((function(e){e.setTag("ssr","false");var t=window.__NEXT_DATA__;t&&t.props&&(t.props.viewName&&e.setTag("view_name",t.props.viewName),t.props.uidCookie&&e.setUser({id:t.props.uidCookie}),e.setTag("page_load_id",t.props.pageLoadId))}));var $e={Sentry:a,config:ze,captureException:function(e,t,n,r){var i=Ye;n&&n.tag&&(i="".concat(i," (").concat(n.tag,")")),t&&t.req&&(i="".concat(i," ").concat(t.req.method," ").concat(t.req.url,","));var o,a,s,u=function(e){return e instanceof Error&&(null===e||void 0===e?void 0:e.isAxiosError)}(e)?["Request failed",null===(o=e.config)||void 0===o||null===(o=o.method)||void 0===o?void 0:o.toUpperCase(),null===(a=e.config)||void 0===a?void 0:a.url,null===(s=e.response)||void 0===s?void 0:s.status].join(" "):e;return console.error(i,u),he.e((function(r){if(e&&e instanceof Error&&e.message){var i=function(){if(null!==t&&void 0!==t&&t.req&&null!==t&&void 0!==t&&t.req){var e=t.req.viewName;if(e)return e}var n;return null===(n=window)||void 0===n||null===(n=n.__NEXT_DATA__)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.viewName}();Ve.includes(i)?r.setFingerprint([e.message,"any_search_page"]):r.setFingerprint([e.message])}if(t){t.req;var o=t.res,a=t.query,s=t.pathname;o&&o.statusCode&&r.setExtra("statusCode",o.statusCode),r.setTag("ssr","false"),r.setExtra("query",a),r.setExtra("pathname",s)}n&&Object.keys(n).forEach((function(e){return r.setExtra(e,n[e])}))})),he.Tb(e,r)}}},22457:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=function(e){for(var t in e)e[t].displayName=t}},97631:function(e,t,n){"use strict";n.d(t,{e:function(){return d},z:function(){return l}});var r=n(59499),i=n(83024),o=n(60722),a=n(87066),s=n(36634),u=n(1631),c=function(e,t,n){var i,o=new URLSearchParams((i={},(0,r.Z)(i,s.J5.originPageAlias,t),(0,r.Z)(i,s.J5.pageLoadId,n),i));return"".concat(s.H,"/api/log_flag/").concat(e,"?").concat(o.toString())},l=function(e){if(["http:","https:"].includes(location.protocol)&&navigator.sendBeacon)try{var t,n,r=null===(t=window.__NEXT_DATA__)||void 0===t||null===(t=t.props)||void 0===t?void 0:t.viewName,a=null===(n=window.__NEXT_DATA__)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.pageLoadId;if(!navigator.sendBeacon(c(e,r,a))){var s="trackExperimentFromClient(): sendBeacon failed";u.a.Sentry.captureMessage(s,{fingerprint:[s],level:i.z.Critical})}}catch(l){throw l instanceof Error&&"TypeError"===l.name&&"Illegal invocation"===l.message&&(u.a.Sentry.captureMessage("sendBeacon illegal invocation"),u.a.Sentry.setExtra("sendBeacon",navigator.sendBeacon.toString()),u.a.Sentry.setExtra("navigator",navigator),u.a.Sentry.captureMessage("sendBeacon: ".concat(navigator.sendBeacon.toString())),u.a.Sentry.captureMessage("navigator: ".concat(navigator)),u.a.Sentry.captureMessage("sendBeacon illegal invocation",{fingerprint:["sendBeacon illegal invocation"],level:i.z.Critical,extra:{nagivator:navigator,sendBeacon:navigator.sendBeacon.toString()}}),(0,o.R)("sendBeacon_illegal_invocation")),l}},d=function(e){var t=e.fetchHeaders;return a.Z.get(c(e.flagName,e.view,e.pageLoadId),{headers:t})}},10846:function(e,t,n){"use strict";n.d(t,{FW:function(){return l},Gf:function(){return h},Ng:function(){return f},nV:function(){return d},vB:function(){return p}});var r,i,o,a=n(71383),s=n(73540),u=n.n(s),c=n(59567),l=function(e){return e.ANONYM="anonym",e.STUDENT="student",e.ACTIVE_TUTOR="active_tutor",e.DROPPED_TUTOR="dropped_tutor",e.UNFINISHED_TUTOR="unfinished_tutor",e}({}),d=(0,c.ZP)(r||(r=(0,a.Z)(["\n fragment UserTypeFragment on Query {\n currentUser {\n id\n email\n client {\n id\n }\n tutor {\n id\n wasApproved\n }\n }\n }\n"]))),f=function(e){return u()([[function(){return!e},function(){return l.ANONYM}],[function(){return!(!e||!e.client)},function(){return l.STUDENT}],[function(){return!!(e&&e.tutor&&e.tutor.wasApproved)},function(){return l.ACTIVE_TUTOR}],[function(){return!(!e||e.client||e.tutor)},function(){return l.DROPPED_TUTOR}],[function(){return!(!e||!e.tutor||e.tutor.wasApproved)},function(){return l.UNFINISHED_TUTOR}]])},p=(0,c.ZP)(i||(i=(0,a.Z)(["\n fragment CurrencyData on CurrencyNode {\n id\n code\n symbol\n factor\n translatedCode\n }\n"]))),h=(0,c.ZP)(o||(o=(0,a.Z)(["\n fragment UserDateJoined on UserNode {\n dateJoined\n }\n"])))},66779:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r=function(e,t){var n,r=null===(n=e.host)||void 0===n?void 0:n.includes("localhost"),i=e["cf-ipcountry"]||e["cloudfront-viewer-country"];return r&&t("fake_country")||(null===i||void 0===i?void 0:i.toString())}},86787:function(e,t,n){"use strict";n.d(t,{V0:function(){return S}});var r=n(87066),i=n(29367);function o(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,u,"next",e)}function u(e){o(a,r,i,s,u,"throw",e)}s(void 0)}))}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=500&&e.response.status<=599)}function m(e){return!!e.config&&(h(e)&&-1!==p.indexOf(e.config.method))}function g(e){return d(e)||m(e)}var v={retries:3,retryCondition:g,retryDelay:function(){return 0},shouldResetTimeout:!1,onRetry:()=>{}};function y(e,t){var n=function(e,t){return u(u(u({},v),t),e[l])}(e,t);return n.retryCount=n.retryCount||0,e[l]=n,n}function b(){return(b=a((function*(e,t){var{retries:n,retryCondition:r}=e,i=e.retryCount(y(e,t).lastRequestTime=Date.now(),e))),r=e.interceptors.response.use(null,function(){var n=a((function*(n){var{config:r}=n;if(!r)return Promise.reject(n);var i=y(r,t);if(yield function(e,t){return b.apply(this,arguments)}(i,n)){i.retryCount+=1;var{retryDelay:o,shouldResetTimeout:a,onRetry:s}=i,u=o(i.retryCount,n);if(function(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}(e,r),!a&&r.timeout&&i.lastRequestTime){var c=Date.now()-i.lastRequestTime,l=r.timeout-c-u;if(l<=0)return Promise.reject(n);r.timeout=l}return r.transformRequest=[e=>e],yield s(i.retryCount,n,r),new Promise((t=>setTimeout((()=>t(e(r))),u)))}return Promise.reject(n)}));return function(e){return n.apply(this,arguments)}}());return{requestInterceptorId:n,responseInterceptorId:r}}_.isNetworkError=d,_.isSafeRequestError=function(e){return!!e.config&&(h(e)&&-1!==f.indexOf(e.config.method))},_.isIdempotentRequestError=m,_.isNetworkOrIdempotentRequestError=g,_.exponentialDelay=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,n=Math.pow(2,e)*t;return n+.2*n*Math.random()},_.isRetryableError=h;n(36377),n(1631);var E=n(34155),S=function(e){var t=r.Z.create({baseURL:E.env.APOLLO_HOST});return _(t,{retries:3,retryDelay:_.exponentialDelay,retryCondition:function(e){return!0},onRetry:function(e,t){0}}),t.post("/graphql/",{operationName:"GetSwitchIsActive",query:'\n query GetSwitchIsActive {\n switchIsActive(id: "'.concat(e,'") {\n id\n isActive\n }\n }\n ')})}},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(25930)}])},4519:function(){},70240:function(){},39133:function(){},12186:function(){},15274:function(){},12250:function(){},272:function(){},45467:function(){},6306:function(){},14057:function(){},44209:function(){},25279:function(){},26188:function(){},33289:function(){},27284:function(){},53695:function(){},69406:function(){},44459:function(){},3327:function(){},31751:function(){},5152:function(e,t,n){e.exports=n(69108)},9008:function(e,t,n){e.exports=n(66484)},11163:function(e,t,n){e.exports=n(18326)},7697:function(e,t,n){"use strict";n.d(t,{Gl:function(){return A},re:function(){return k}});var r=null,i={},o=1,a="@wry/context:Slot",s=Array,u=s[a]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=r;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return r.slots[this.id]},e.prototype.withValue=function(e,t,n,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=r;r={parent:s,slots:a};try{return t.apply(i,n)}finally{r=s}},e.bind=function(e){var t=r;return function(){var n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}},e.noContext=function(e,t,n){if(!r)return e.apply(n,t);var i=r;try{return r=null,e.apply(n,t)}finally{r=i}},e}();try{Object.defineProperty(s,a,{value:s[a]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();u.bind,u.noContext;function c(){}var l=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=c),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},e.prototype.set=function(e,t){var n=this.getEntry(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),d=new u,f=[],p=[],h=100;function m(e,t){if(!e)throw new Error(t||"assertion failure")}function g(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var v=function(){function e(t,n){this.fn=t,this.args=n,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(m(!this.recomputing,"already recomputing"),function(e){var t=d.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),b(e)?S(t,e):w(t,e),t}(this)||!O(this))return b(this)?function(e){var t=x(e);d.withValue(e,y,[e]),function(e){if("function"===typeof e.subscribe)try{P(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}(e)&&function(e){if(e.dirty=!1,b(e))return;E(e)}(e);return t.forEach(O),g(e.value)}(this):g(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,_(this),P(this))},e.prototype.dispose=function(){var e=this;x(this).forEach(O),P(this),this.parents.forEach((function(t){t.setDirty(),C(t,e)}))},e.count=0,e}();function y(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function b(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function _(e){e.parents.forEach((function(t){return S(t,e)}))}function E(e){e.parents.forEach((function(t){return w(t,e)}))}function S(e,t){if(m(e.childValues.has(t)),m(b(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=p.pop()||new Set;e.dirtyChildren.add(t),_(e)}function w(e,t){m(e.childValues.has(t)),m(!b(t));var n=e.childValues.get(t);0===n.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)||e.setDirty(),T(e,t),b(e)||E(e)}function T(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(p.length0&&(t=[],e.childValues.forEach((function(n,r){C(e,r),t.push(r)}))),m(null===e.dirtyChildren),t}function C(e,t){t.parents.delete(e),e.childValues.delete(t),T(e,t)}function P(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var A=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t1)for(var n=1;n1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(T,(function(e,n,r,i,o,a){if(n)t.minimumIntegerDigits=r.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(O.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(S.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(S,(function(e,n,r,i,o,a){return"*"===r?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=i.options[0];"w"===a?t=(0,o.pi)((0,o.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=(0,o.pi)((0,o.pi)({},t),x(a)))}else if(w.test(i.stem))t=(0,o.pi)((0,o.pi)({},t),x(i.stem));else{var s=C(i.stem);s&&(t=(0,o.pi)((0,o.pi)({},t),s));var u=P(i.stem);u&&(t=(0,o.pi)((0,o.pi)({},t),u))}}return t}var R,D={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function k(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(D[n||""]||D[r||""]||D["".concat(r,"-001")]||D["001"])[0]}var N=new RegExp("^".concat(y.source,"*")),I=new RegExp("".concat(y.source,"*$"));function B(e,t){return{start:e,end:t}}var M=!!String.prototype.startsWith&&"_a".startsWith("a",1),F=!!String.fromCodePoint,j=!!Object.fromEntries,G=!!String.prototype.codePointAt,U=!!String.prototype.trimStart,H=!!String.prototype.trimEnd,V=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Z=!0;try{Z="a"===(null===(R=J("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===R?void 0:R[0])}catch(et){Z=!1}var q,W=M?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Q=F?String.fromCodePoint:function(){for(var e=[],t=0;to;){if((n=e[o++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},z=j?Object.fromEntries:function(e){for(var t={},n=0,r=e;n=n)){var r,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:r-56320+(i-55296<<10)+65536}},K=U?function(e){return e.trimStart()}:function(e){return e.replace(N,"")},X=H?function(e){return e.trimEnd()}:function(e){return e.replace(I,"")};function J(e,t){return new RegExp(e,t)}if(Z){var $=J("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");q=function(e,t){var n;return $.lastIndex=t,null!==(n=$.exec(e)[1])&&void 0!==n?n:""}}else q=function(e,t){for(var n=[];;){var r=Y(e,t);if(void 0===r||te(r)||ne(r))break;n.push(r),t+=r>=65536?2:1}return Q.apply(void 0,n)};!function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){if((o=this.parseArgument(e,n)).err)return o;r.push(o.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(d.UNMATCHED_CLOSING_TAG,B(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ee(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;r.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;r.push(o.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:f.pound,location:B(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:f.literal,value:"<".concat(r,"/>"),location:B(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:f.tag,value:r,children:o,location:B(n,this.clonePosition())},err:null}:this.error(d.INVALID_TAG,B(a,this.clonePosition())))}return this.error(d.UNCLOSED_TAG,B(n,this.clonePosition()))}return this.error(d.INVALID_TAG,B(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{var o=this.tryParseUnquoted(e,t);if(o)r+=o;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=B(n,this.clonePosition());return{val:{type:f.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ee(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Q.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Q(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(d.EMPTY_ARGUMENT,B(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(d.MALFORMED_ARGUMENT,B(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:f.argument,value:r,location:B(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,B(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(d.MALFORMED_ARGUMENT,B(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=q(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:B(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(s){case"":return this.error(d.EXPECT_ARGUMENT_TYPE,B(a,u));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((S=this.parseSimpleArgStyleIfPossible()).err)return S;if(0===(v=X(S.val)).length)return this.error(d.EXPECT_ARGUMENT_STYLE,B(this.clonePosition(),this.clonePosition()));c={style:v,styleLocation:B(l,this.clonePosition())}}if((w=this.tryParseArgumentClose(r)).err)return w;var h=B(r,this.clonePosition());if(c&&W(null===c||void 0===c?void 0:c.style,"::",0)){var m=K(c.style.slice(2));if("number"===s)return(S=this.parseNumberSkeletonFromString(m,c.styleLocation)).err?S:{val:{type:f.number,value:n,location:h,style:S.val},err:null};if(0===m.length)return this.error(d.EXPECT_DATE_TIME_SKELETON,h);var g=m;this.locale&&(g=function(e,t){for(var n="",r=0;r>1),u=k(t);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===i?"H":i}return n}(m,this.locale));var v={type:p.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?_(g):{}};return{val:{type:"date"===s?f.date:f.time,value:n,location:h,style:v},err:null}}return{val:{type:"number"===s?f.number:"date"===s?f.date:f.time,value:n,location:h,style:null!==(i=null===c||void 0===c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS,B(y,(0,o.pi)({},y)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),E=0;if("select"!==s&&"offset"===b.value){if(!this.bumpIf(":"))return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,B(this.clonePosition(),this.clonePosition()));var S;if(this.bumpSpace(),(S=this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return S;this.bumpSpace(),b=this.parseIdentifierIfPossible(),E=S.val}var w,T=this.tryParsePluralOrSelectOptions(e,s,t,b);if(T.err)return T;if((w=this.tryParseArgumentClose(r)).err)return w;var O=B(r,this.clonePosition());return"select"===s?{val:{type:f.select,value:n,options:z(T.val),location:O},err:null}:{val:{type:f.plural,value:n,options:z(T.val),offset:E,pluralType:"plural"===s?"cardinal":"ordinal",location:O},err:null};default:return this.error(d.INVALID_ARGUMENT_TYPE,B(a,u))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(d.EXPECT_ARGUMENT_CLOSING_BRACE,B(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(d.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,B(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(E).filter((function(e){return e.length>0}));n=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=B(r,this.clonePosition());return i?V(o*=n)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Y(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&te(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!==n&&void 0!==n?n:null}}();function ee(e){return e>=97&&e<=122||e>=65&&e<=90}function te(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ne(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function re(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=(0,o.pi)({timeZone:t},e[r]),n}),{})}function ie(e,t){return Object.keys((0,o.pi)((0,o.pi)({},e),t)).reduce((function(n,r){return n[r]=(0,o.pi)((0,o.pi)({},e[r]||{}),t[r]||{}),n}),{})}function oe(e,t){if(!t)return e;var n=g.C.formats;return(0,o.pi)((0,o.pi)((0,o.pi)({},n),e),{date:ie(re(n.date,t),re(e.date||{},t)),time:ie(re(n.time,t),re(e.time||{},t))})}var ae=function(e,t,n,r,i){var a=e.locale,s=e.formats,u=e.messages,c=e.defaultLocale,l=e.defaultFormats,d=e.fallbackOnEmptyString,p=e.onError,h=e.timeZone,g=e.defaultRichTextElements;void 0===n&&(n={id:""});var y=n.id,b=n.defaultMessage;(0,m.kG)(!!y,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var _=String(y),E=u&&Object.prototype.hasOwnProperty.call(u,_)&&u[_];if(Array.isArray(E)&&1===E.length&&E[0].type===f.literal)return E[0].value;if(!r&&E&&"string"===typeof E&&!g)return E.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=(0,o.pi)((0,o.pi)({},g),r||{}),s=oe(s,h),l=oe(l,h),!E){if(!1===d&&""===E)return E;if((!b||a&&a.toLowerCase()!==c.toLowerCase())&&p(new v.$6(n,a)),b)try{return t.getMessageFormat(b,c,l,i).format(r)}catch(S){return p(new v.X9('Error formatting default message for: "'.concat(_,'", rendering default message verbatim'),a,n,S)),"string"===typeof b?b:_}return _}try{return t.getMessageFormat(E,a,s,(0,o.pi)({formatters:t},i||{})).format(r)}catch(S){p(new v.X9('Error formatting message: "'.concat(_,'", using ').concat(b?"default message":"id"," as fallback."),a,n,S))}if(b)try{return t.getMessageFormat(b,c,l,i).format(r)}catch(S){p(new v.X9('Error formatting the default message for: "'.concat(_,'", rendering message verbatim'),a,n,S))}return"string"===typeof E?E:"string"===typeof b?b:_},se=n(82644),ue=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function ce(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=a&&(0,se.TB)(i,"number",a,o)||{};return t(r,(0,se.L6)(n,ue,s))}function le(e,t,n,r){void 0===r&&(r={});try{return ce(e,t,r).format(n)}catch(i){e.onError(new v.Qe("Error formatting number.",e.locale,i))}return String(n)}function de(e,t,n,r){void 0===r&&(r={});try{return ce(e,t,r).formatToParts(n)}catch(i){e.onError(new v.Qe("Error formatting number.",e.locale,i))}return[]}var fe=n(11050),pe=["numeric","style"];function he(e,t,n,r,i){void 0===i&&(i={}),r||(r="second"),Intl.RelativeTimeFormat||e.onError(new fe.u_('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',fe.jK.MISSING_INTL_API));try{return function(e,t,n){var r=e.locale,i=e.formats,o=e.onError;void 0===n&&(n={});var a=n.format,s=!!a&&(0,se.TB)(i,"relative",a,o)||{};return t(r,(0,se.L6)(n,pe,s))}(e,t,i).format(n,r)}catch(o){e.onError(new v.Qe("Error formatting relative time.",e.locale,o))}return String(n)}var me=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function ge(e,t,n,r){var i=e.locale,a=e.formats,s=e.onError,u=e.timeZone;void 0===r&&(r={});var c=r.format,l=(0,o.pi)((0,o.pi)({},u&&{timeZone:u}),c&&(0,se.TB)(a,t,c,s)),d=(0,se.L6)(r,me,l);return"time"!==t||d.hour||d.minute||d.second||d.timeStyle||d.dateStyle||(d=(0,o.pi)((0,o.pi)({},d),{hour:"numeric",minute:"numeric"})),n(i,d)}function ve(e,t){for(var n=[],r=2;r-1}var Ze=function(e){var t=(0,s.Z)(),n=t.formatRelativeTime,r=t.textComponent,i=e.children,u=n(e.value||0,e.unit,(0,o._T)(e,["children","value","unit"]));return"function"===typeof i?i(u):r?a.createElement(r,null,u):a.createElement(a.Fragment,null,u)},qe=function(e){var t=e.value,n=e.unit,r=e.updateIntervalInSeconds,i=(0,o._T)(e,["value","unit","updateIntervalInSeconds"]);(0,m.kG)(!r||!(!r||!Ve(n)),"Cannot schedule update with unit longer than hour");var s,u=a.useState(),c=u[0],l=u[1],d=a.useState(0),f=d[0],p=d[1],h=a.useState(0),g=h[0],v=h[1];n===c&&t===f||(p(t||0),l(n),v(Ve(n)?function(e,t){if(!e)return 0;switch(t){case"second":return e;case"minute":return 60*e;default:return e*je}}(t,n):0)),a.useEffect((function(){function e(){clearTimeout(s)}if(e(),!r||!Ve(n))return e;var t=g-r,i=Ge(t);if("day"===i)return e;var o=Ue(i),a=t-t%o,u=a>=g?a-o:a,c=Math.abs(u-g);return g!==u&&(s=setTimeout((function(){return v(u)}),1e3*c)),e}),[g,r,n]);var y=t||0,b=n;if(Ve(n)&&"number"===typeof g&&r){var _=Ue(b=Ge(g));y=Math.round(g/_)}return a.createElement(Ze,(0,o.pi)({value:y,unit:b},i))};qe.displayName="FormattedRelativeTime",qe.defaultProps={value:0,unit:"second"};var We=qe;function Qe(e){return e}function ze(e){return e}var Ye=l("formatDate"),Ke=l("formatTime"),Xe=l("formatNumber"),Je=l("formatList"),$e=l("formatDisplayName");c("formatDate"),c("formatTime")},17729:function(e,t,n){"use strict";n.d(t,{ZP:function(){return f},_y:function(){return d},zt:function(){return l}});var r=n(97582),i=n(67294),o=n(8679),a=n.n(o),s=n(22588);var u="undefined"===typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?i.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=i.createContext(null)),c=u.Consumer,l=u.Provider,d=u;function f(e,t){var n,o=t||{},u=o.intlPropName,l=void 0===u?"intl":u,d=o.forwardRef,f=void 0!==d&&d,p=o.enforceContext,h=void 0===p||p,m=function(t){return i.createElement(c,null,(function(n){var o;h&&(0,s.lq)(n);var a=((o={})[l]=n,o);return i.createElement(e,(0,r.pi)({},t,a,{ref:f?t.forwardedRef:null}))}))};return m.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),m.WrappedComponent=e,f?a()(i.forwardRef((function(e,t){return i.createElement(m,(0,r.pi)({},e,{forwardedRef:t}))})),e):a()(m,e)}},2217:function(e,t,n){"use strict";var r=n(97582),i=n(67294),o=n(27528),a=n(22588);function s(e){var t=(0,o.Z)(),n=t.formatMessage,r=t.textComponent,a=void 0===r?i.Fragment:r,s=e.id,u=e.description,c=e.defaultMessage,l=e.values,d=e.children,f=e.tagName,p=void 0===f?a:f,h=n({id:s,description:u,defaultMessage:c},l,{ignoreTag:e.ignoreTag});return"function"===typeof d?d(Array.isArray(h)?h:[h]):p?i.createElement(p,null,i.Children.toArray(h)):i.createElement(i.Fragment,null,h)}s.displayName="FormattedMessage";var u=i.memo(s,(function(e,t){var n=e.values,i=(0,r._T)(e,["values"]),o=t.values,s=(0,r._T)(t,["values"]);return(0,a.wU)(o,n)&&(0,a.wU)(i,s)}));u.displayName="MemoizedFormattedMessage",t.Z=u},27528:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(67294),i=n(17729),o=n(22588);function a(){var e=r.useContext(i._y);return(0,o.lq)(e),e}},22588:function(e,t,n){"use strict";n.d(t,{Z0:function(){return u},dt:function(){return c},lq:function(){return s},wU:function(){return l}});var r=n(97582),i=n(67294),o=n(25687),a=n(82644);function s(e){(0,o.kG)(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var u=(0,r.pi)((0,r.pi)({},a.Z0),{textComponent:i.Fragment});function c(e){return function(t){return e(i.Children.toArray(t))}}function l(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)};return t}();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=n(" "),t.s1=n(" "),t.s2=n(" "),t.s0-=n(e),t.s0<0&&(t.s0+=1),t.s1-=n(e),t.s1<0&&(t.s1+=1),t.s2-=n(e),t.s2<0&&(t.s2+=1),n=null}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function u(e,t){var n=new a(e),r=t&&t.state,i=n.next;return i.int32=function(){return 4294967296*n.next()|0},i.double=function(){return i()+11102230246251565e-32*(2097152*i()|0)},i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0===(r=function(){return u}.call(t,n,t,i))||(i.exports=r):this.alea=u}(0,e=n.nmd(e),n.amdD)},89049:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.b,n=t.c,r=t.d,i=t.a;return e=e<<25^e>>>7^n,n=n-r|0,r=r<<24^r>>>8^i,i=i-e|0,t.b=e=e<<20^e>>>12^n,t.c=n=n-r|0,t.d=r<<16^n>>>16^i,t.a=i-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0===(r=function(){return u}.call(t,n,t,i))||(i.exports=r):this.tychei=u}(0,e=n.nmd(e),n.amdD)},68652:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.x=0,t.y=0,t.z=0,t.w=0,t.next=function(){var e=t.x^t.x<<11;return t.x=t.y,t.y=t.z,t.z=t.w,t.w^=t.w>>>19^e^e>>>8},e===(0|e)?t.x=e:n+=e;for(var r=0;r>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0===(r=function(){return u}.call(t,n,t,i))||(i.exports=r):this.xor128=u}(0,e=n.nmd(e),n.amdD)},3618:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.w,i=t.X,o=t.i;return t.w=r=r+1640531527|0,n=i[o+34&127],e=i[o=o+1&127],n^=n<<13,e^=e<<17,n^=n>>>15,e^=e>>>12,n=i[o]=n^e,t.i=o,n+(r^r>>>16)|0},function(e,t){var n,r,i,o,a,s=[],u=128;for(t===(0|t)?(r=t,t=null):(t+="\0",r=0,u=Math.max(u,t.length)),i=0,o=-32;o>>15,r^=r<<4,r^=r>>>13,o>=0&&(a=a+1640531527|0,i=0==(n=s[127&o]^=r+a)?i+1:0);for(i>=128&&(s[127&(t&&t.length||0)]=-1),i=127,o=512;o>0;--o)r=s[i+34&127],n=s[i=i+1&127],r^=r<<13,n^=n<<17,r^=r>>>15,n^=n>>>12,s[i]=r^n;e.w=a,e.X=s,e.i=i}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function u(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.X&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0===(r=function(){return u}.call(t,n,t,i))||(i.exports=r):this.xor4096=u}(0,e=n.nmd(e),n.amdD)},92030:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this;t.next=function(){var e,n,r=t.x,i=t.i;return e=r[i],n=(e^=e>>>7)^e<<24,n^=(e=r[i+1&7])^e>>>10,n^=(e=r[i+3&7])^e>>>3,n^=(e=r[i+4&7])^e<<7,e=r[i+7&7],n^=(e^=e<<13)^e<<9,r[i]=n,t.i=i+1&7,n},function(e,t){var n,r=[];if(t===(0|t))r[0]=t;else for(t=""+t,n=0;n0;--n)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function u(e,t){null==e&&(e=+new Date);var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&(r.x&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0===(r=function(){return u}.call(t,n,t,i))||(i.exports=r):this.xorshift7=u}(0,e=n.nmd(e),n.amdD)},90801:function(e,t,n){var r;!function(e,i,o){function a(e){var t=this,n="";t.next=function(){var e=t.x^t.x>>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:n+=e;for(var r=0;r>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function u(e,t){var n=new a(e),r=t&&t.state,i=function(){return(n.next()>>>0)/4294967296};return i.double=function(){do{var e=((n.next()>>>11)+(n.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},i.int32=n.next,i.quick=i,r&&("object"==typeof r&&s(r,n),i.state=function(){return s(n,{})}),i}i&&i.exports?i.exports=u:n.amdD&&n.amdO?void 0===(r=function(){return u}.call(t,n,t,i))||(i.exports=r):this.xorwow=u}(0,e=n.nmd(e),n.amdD)},51971:function(e,t,n){var r;!function(i,o,a){var s,u=256,c=a.pow(u,6),l=a.pow(2,52),d=2*l,f=u-1;function p(e,t,n){var r=[],f=v(g((t=1==t?{entropy:!0}:t||{}).entropy?[e,y(o)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(u):(e=new Uint8Array(u),(i.crypto||i.msCrypto).getRandomValues(e)),y(e)}catch(r){var t=i.navigator,n=t&&t.plugins;return[+new Date,i,n,i.screen,y(o)]}}():e,3),r),p=new h(r),b=function(){for(var e=p.g(6),t=c,n=0;e=d;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|p.g(4)},b.quick=function(){return p.g(4)/4294967296},b.double=b,v(y(p.S),o),(t.pass||n||function(e,t,n,r){return r&&(r.S&&m(r,p),e.state=function(){return m(p,{})}),n?(a.random=e,t):e})(b,f,"global"in t?t.global:this==a,t.state)}function h(e){var t,n=e.length,r=this,i=0,o=r.i=r.j=0,a=r.S=[];for(n||(e=[n++]);i1,i=!1,o=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(s){return n.error(s)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:c,value:function(){return this}}],[{key:"from",value:function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var r=d(t,c);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return p(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(a("iterator")&&(r=d(t,u)))return new n((function(e){m((function(){if(!e.closed){var n=!0,i=!1,o=void 0;try{for(var a,s=r.call(t)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value;if(e.next(u),e.closed)return}}catch(c){i=!0,o=c}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){m((function(){if(!e.closed){for(var n=0;n=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,r.ZT)(t,e),t}(Error),y=n(18056),b=n(76487),_=n(5466),E=n(5144),S=n(51761),w=n(97359),T=n(30320),O=n(53712),x=n(19065),C=n(10542),P=n(13154),A=n(75028),L=n(21436),R=Object.prototype.hasOwnProperty;function D(e){return null===e||void 0===e}function k(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"===typeof n&&(t&&(t.keyObject=D(r)?D(i)?void 0:{_id:i}:{id:r}),D(r)&&!D(i)&&(r=i),!D(r)))return"".concat(n,":").concat("number"===typeof r||"string"===typeof r?r:JSON.stringify(r))}var N={dataIdFromObject:k,addTypename:!0,resultCaching:!0,canonizeResults:!1};function I(e){var t=e.canonizeResults;return void 0===t?N.canonizeResults:t}var B=/^[_a-z][_0-9a-z]*/i;function M(e){var t=e.match(B);return t?t[0]:e}function F(e,t,n){return!!(0,P.s)(t)&&((0,L.k)(t)?t.every((function(t){return F(e,t,n)})):e.selections.every((function(e){if((0,S.My)(e)&&(0,x.LZ)(e,n)){var r=(0,S.u2)(e);return R.call(t,r)&&(!e.selectionSet||F(e.selectionSet,t[r],n))}return!0})))}function j(e){return(0,P.s)(e)&&!(0,S.Yk)(e)&&!(0,L.k)(e)}function G(e,t){var n=(0,s.F)((0,c.kU)(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var U=Object.create(null),H=function(){return U},V=Object.create(null),Z=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,C.J)((0,S.Yk)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,S.Yk)(e)?n.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return(0,S.kQ)(e);if((0,S.Yk)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,S.kQ)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,r.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),R.call(this.data,e)){var n=this.data[e];if(n&&R.call(n,t))return n[t]}return"__typename"===t&&R.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof z?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),R.call(this.data,e)?this.data[e]:this instanceof z?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,S.Yk)(e)&&(e=e.__ref),(0,S.Yk)(t)&&(t=t.__ref);var o="string"===typeof e?this.lookup(n=e):e,a="string"===typeof t?this.lookup(n=t):t;if(a){(0,i.kG)("string"===typeof n,2);var s=new d.w0(K).merge(o,a);if(this.data[n]=s,s!==o&&(delete this.refs[n],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==s[e]){u[e]=1;var t=M(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||r instanceof z||delete s[e]}})),!u.__typename||o&&o.__typename||this.policies.rootTypenamesById[n]!==s.__typename||delete u.__typename,Object.keys(u).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,o=this.lookup(e);if(o){var a=Object.create(null),s=!1,u=!0,c={DELETE:U,INVALIDATE:V,isReference:S.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"===typeof t?{fieldName:t,from:r||(0,S.kQ)(e)}:t,{store:n})}};if(Object.keys(o).forEach((function(l){var d=M(l),f=o[l];if(void 0!==f){var p="function"===typeof t?t:t[l]||t[d];if(p){var h=p===H?U:p((0,C.J)(f),(0,r.pi)((0,r.pi)({},c),{fieldName:d,storeFieldName:l,storage:n.getStorage(e,l)}));if(h===V)n.group.dirty(e,l);else if(h===U&&(h=void 0),h!==f&&(a[l]=h,s=!0,f=h,!1!==globalThis.__DEV__)){var m=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.kG.warn(3,e),!0};if((0,S.Yk)(h))m(h);else if(Array.isArray(h))for(var g=!1,v=void 0,y=0,b=h;y0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof z?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach((function(r){R.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])}));var r=Object.keys(n);if(r.length){for(var i=this;i instanceof z;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!R.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach((function(e){(0,S.Yk)(e)&&(t[e.__ref]=!0),(0,P.s)(e)&&Object.keys(e).forEach((function(t){var n=e[t];(0,P.s)(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),q=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.dP)():null,this.keyMaker=new A.B(T.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(W(e,t));var n=M(t);n!==t&&this.d(W(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(W(e,t),"__exists"===t?"forget":"setDirty")},e}();function W(e,t){return t+"#"+e}function Q(e,t){X(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=void 0===r||r,o=t.seed,a=e.call(this,n,new q(i))||this;return a.stump=new Y(a),a.storageTrie=new A.B(T.mr),o&&a.replace(o),a}return(0,r.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(Z||(Z={}));var z=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,r.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach((function(n){(0,a.D)(r[n],i[n])||t.group.dirty(e,n)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(n){t.group.dirty(e,n)}))):t.delete(e)})),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,r.pi)((0,r.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return R.call(this.data,t)?(0,r.pi)((0,r.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Z),Y=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new q(t.group.caching,t.group))||this}return(0,r.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(z);function K(e,t,n){var r=e[n],i=t[n];return(0,a.D)(r,i)?r:i}function X(e){return!!(e instanceof Z&&e.group.caching)}var J=function(){function e(){this.known=new(T.sy?WeakSet:Set),this.pool=new A.B(T.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,P.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,P.s)(e)){var t=function(e){return(0,P.s)(e)?(0,L.k)(e)?e.slice(0):(0,r.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,P.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(s=this.pool.lookupArray(r)).array||(this.known.add(s.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,u=o.length;if(a.sorted.forEach((function(n){o.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(o)).object){var c=s.object=Object.create(i);this.known.add(c),a.sorted.forEach((function(e,t){c[e]=o[u+t]})),!1!==globalThis.__DEV__&&Object.freeze(c)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function $(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ee=function(){function e(e){var t=this;this.knownResults=new(T.mr?WeakMap:Map),this.config=(0,O.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:I(e)}),this.canon=e.canon||new J,this.executeSelectionSet=(0,o.re)((function(e){var n,i=e.context.canonizeResults,o=$(e);o[3]=!i;var a=(n=t.executeSelectionSet).peek.apply(n,o);return a?i?(0,r.pi)((0,r.pi)({},a),{result:t.canon.admit(a.result)}):a:(Q(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||u.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:$,makeCacheKey:function(e,t,n,r){if(X(n.store))return n.store.makeCacheKey(e,(0,S.Yk)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,o.re)((function(e){return Q(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||u.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(X(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new J},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,u=void 0===s||s,l=e.canonizeResults,d=void 0===l?this.config.canonizeResults:l,f=this.config.cache.policies;a=(0,r.pi)((0,r.pi)({},(0,c.O4)((0,c.iW)(n))),a);var p,h=(0,S.kQ)(o),m=this.executeSelectionSet({selectionSet:(0,c.p$)(n).selectionSet,objectOrReference:h,enclosingRef:h,context:(0,r.pi)({store:t,query:n,policies:f,variables:a,varString:(0,_.B)(a),canonizeResults:d},G(n,this.config.fragments))});if(m.missing&&(p=[new v(te(m.missing),m.missing,n,a)],!u))throw p[0];return{result:m.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,n,r){if(X(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,S.Yk)(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var u,c=a.variables,l=a.policies,f=a.store.getFieldValue(r,"__typename"),p=[],h=new d.w0;function m(e,t){var n;return e.missing&&(u=h.merge(u,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"===typeof f&&!l.rootIdsByTypename[f]&&p.push({__typename:f});var g=new Set(n.selections);g.forEach((function(e){var n,d;if((0,x.LZ)(e,c))if((0,S.My)(e)){var v=l.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),y=(0,S.u2)(e);void 0===v?b.Gw.added(e)||(u=h.merge(u,((n={})[y]="Can't find field '".concat(e.name.value,"' on ").concat((0,S.Yk)(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):(0,L.k)(v)?v.length>0&&(v=m(t.executeSubSelectedArray({field:e,array:v,enclosingRef:o,context:a}),y)):e.selectionSet?null!=v&&(v=m(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:v,enclosingRef:(0,S.Yk)(v)?v:o,context:a}),y)):a.canonizeResults&&(v=t.canon.pass(v)),void 0!==v&&p.push(((d={})[y]=v,d))}else{var _=(0,s.hi)(e,a.lookupFragment);if(!_&&e.kind===w.h.FRAGMENT_SPREAD)throw(0,i._K)(10,e.name.value);_&&l.fragmentMatches(_,f)&&_.selectionSet.selections.forEach(g.add,g)}}));var v={result:(0,d.bw)(p),missing:u},y=a.canonizeResults?this.canon.admit(v):(0,C.J)(v);return y.result&&this.knownResults.set(y.result,n),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,a=e.enclosingRef,s=e.context,u=new d.w0;function c(e,n){var r;return e.missing&&(t=u.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,L.k)(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:s}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,S.Yk)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){(0,P.s)(n)&&((0,i.kG)(!(0,S.Yk)(n),11,function(e,t){return(0,S.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n),t.name.value),Object.values(n).forEach(r.add,r))}))}}(s.store,r,e),e)})),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function te(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var ne=n(79487),re=n(13887),ie=n(66438),oe=Object.create(null);function ae(e){var t=JSON.stringify(e);return oe[t]||(oe[t]=Object.create(null))}function se(e){var t=ae(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=ce(e,(function(e){var o=fe(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&R.call(t,e[0])&&(o=fe(t,e,de)),(0,i.kG)(void 0!==o,5,e.join("."),t),o}));return"".concat(n.typename,":").concat(JSON.stringify(o))})}function ue(e){var t=ae(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=ce(e,(function(e){var n=e[0],o=n.charAt(0);if("@"!==o)if("$"!==o){if(t)return fe(t,e)}else{var a=n.slice(1);if(i&&R.call(i,a)){var s=e.slice(0);return s[0]=a,fe(i,s)}}else if(r&&(0,L.O)(r.directives)){var u=n.slice(1),c=r.directives.find((function(e){return e.name.value===u})),l=c&&(0,S.NC)(c,i);return l&&fe(l,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function ce(e,t){var n=new d.w0;return le(e).reduce((function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e}),Object.create(null))}function le(e){var t=ae(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){(0,L.k)(t)?(le(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),(0,L.k)(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function de(e,t){return e[t]}function fe(e,t,n){return n=n||de,pe(t.reduce((function e(t,r){return(0,L.k)(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function pe(e){return(0,P.s)(e)?(0,L.k)(e)?e.map(pe):ce(Object.keys(e).sort(),(function(t){return fe(e,t)})):e}var he=n(87493);function me(e){return void 0!==e.args?e.args:e.field?(0,S.NC)(e.field,e.variables):null}var ge=function(){},ve=function(e,t){return t.fieldName},ye=function(e,t,n){return(0,n.mergeObjects)(e,t)},be=function(e,t){return t},_e=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,r.pi)({dataIdFromObject:k},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,i=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var a,s=t&&t.storeObject||e,u=(0,r.pi)((0,r.pi)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=Se(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),l=c&&c.keyFn||this.config.dataIdFromObject;return he.Os.withValue(!0,(function(){for(;l;){var t=l((0,r.pi)((0,r.pi)({},e),s),u);if(!(0,L.k)(t)){a=t;break}l=se(t)}})),a=a?String(a):void 0,u.keyObject?[a,u.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var i=e[n],o=i.queryType,a=i.mutationType,s=i.subscriptionType,u=(0,r._T)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),R.call(t.toBeAdded,n)?t.toBeAdded[n].push(u):t.toBeAdded[n]=[u]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?ye:!1===t?be:e.merge}a(r,t.merge),r.keyFn=!1===i?ge:(0,L.k)(i)?se(i):"function"===typeof i?i:r.keyFn,o&&Object.keys(o).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?ve:(0,L.k)(s)?ue(s):"function"===typeof s?s:r.keyFn,"function"===typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||ve)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,i.kG)(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(n){t.getSupertypeSet(n,!0),e[n].forEach((function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(B);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!R.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(n,r){if(n.test(e)){var o=t.supertypeMap.get(r);o&&o.forEach((function(e){return i.add(e)}))}}))),i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,a=(0,r._T)(i,["fields"]);Object.assign(n,a),Object.assign(n.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(n){t.updateTypePolicy(e,n)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&u.indexOf(t)<0&&u.push(t)},l=!(!n||!this.fuzzySubtypes.size),d=!1,f=0;f1?s:t}:(o=(0,r.pi)({},a),R.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.kG.warn(8,(0,re.v)(Array.from(e))),void 0===o.variables&&(o.variables=n),o}function we(e){return function(t,n){if((0,L.k)(t)||(0,L.k)(n))throw(0,i._K)(9);if((0,P.s)(t)&&(0,P.s)(n)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(n,"__typename");if(o&&a&&o!==a)return n;if((0,S.Yk)(t)&&j(n))return e.merge(t.__ref,n),t;if(j(t)&&(0,S.Yk)(n))return e.merge(t,n.__ref),n;if(j(t)&&j(n))return(0,r.pi)((0,r.pi)({},t),n)}return n}}function Te(e,t,n){var i="".concat(t).concat(n),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===n?e:(0,r.pi)((0,r.pi)({},e),{clientOnly:t,deferred:n})),o}var Oe=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,o=t.query,s=t.result,u=t.dataId,l=t.variables,f=t.overwrite,p=(0,c.$H)(o),h=new d.w0;l=(0,r.pi)((0,r.pi)({},(0,c.O4)(p)),l);var m=(0,r.pi)((0,r.pi)({store:e,written:Object.create(null),merge:function(e,t){return h.merge(e,t)},variables:l,varString:(0,_.B)(l)},G(o,this.fragments)),{overwrite:!!f,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),g=this.processSelectionSet({result:s||Object.create(null),dataId:u,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:m});if(!(0,S.Yk)(g))throw(0,i._K)(12,s);return m.incomingById.forEach((function(t,o){var s=t.storeObject,u=t.mergeTree,c=t.fieldNodeSet,l=(0,S.kQ)(o);if(u&&u.map.size){var d=n.applyMerges(u,l,s,m);if((0,S.Yk)(d))return;s=d}if(!1!==globalThis.__DEV__&&!m.overwrite){var f=Object.create(null);c.forEach((function(e){e.selectionSet&&(f[e.name.value]=!0)}));Object.keys(s).forEach((function(e){(function(e){return!0===f[M(e)]})(e)&&!function(e){var t=u&&u.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,o){var s=function(e){var t=o.getFieldValue(e,n);return"object"===typeof t&&t},u=s(e);if(!u)return;var c=s(t);if(!c)return;if((0,S.Yk)(u))return;if((0,a.D)(u,c))return;if(Object.keys(u).every((function(e){return void 0!==o.getFieldValue(c,e)})))return;var l=o.getFieldValue(e,"__typename")||o.getFieldValue(t,"__typename"),d=M(n),f="".concat(l,".").concat(d);if(Re.has(f))return;Re.add(f);var p=[];(0,L.k)(u)||(0,L.k)(c)||[u,c].forEach((function(e){var t=o.getFieldValue(e,"__typename");"string"!==typeof t||p.includes(t)||p.push(t)}));!1!==globalThis.__DEV__&&i.kG.warn(15,d,l,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",f,(0,r.pi)({},u),(0,r.pi)({},c))}(l,s,e,m.store)}))}e.merge(o,s)})),e.retain(g.__ref),g},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,o=e.result,a=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),d=n&&c.rootTypenamesById[n]||(0,S.qw)(o,a,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"===typeof d&&(l.__typename=d);var f=function(){var e=Se(arguments,l,s.variables);if((0,S.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var n=c.readField((0,r.pi)((0,r.pi)({},e),{from:t.storeObject}),s);if(void 0!==n)return n}}return c.readField(e,s)},p=new Set;this.flattenFields(a,o,s,d).forEach((function(e,n){var r,a=(0,S.u2)(n),s=o[a];if(p.add(n),void 0!==s){var h=c.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),m=Ce(u,h),g=t.processFieldValue(s,n,n.selectionSet?Te(e,!1,!1):e,m),v=void 0;n.selectionSet&&((0,S.Yk)(g)||j(g))&&(v=f("__typename",g));var y=c.getMergeFunction(d,n.name.value,v);y?m.info={field:n,typename:d,merge:y}:Le(u,h),l=e.merge(l,((r={})[h]=g,r))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||b.Gw.added(n)||c.getReadFunction(d,n.name.value)||!1!==globalThis.__DEV__&&i.kG.error(13,(0,S.u2)(n),o)}));try{var h=c.identify(o,{typename:d,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:l,readField:f}),m=h[0],g=h[1];n=n||m,g&&(l=s.merge(l,g))}catch(E){if(!n)throw E}if("string"===typeof n){var v=(0,S.kQ)(n),y=s.written[n]||(s.written[n]=[]);if(y.indexOf(a)>=0)return v;if(y.push(a),this.reader&&this.reader.isFresh(o,v,a,s))return v;var _=s.incomingById.get(n);return _?(_.storeObject=s.merge(_.storeObject,l),_.mergeTree=Pe(_.mergeTree,u),p.forEach((function(e){return _.fieldNodeSet.add(e)}))):s.incomingById.set(n,{storeObject:l,mergeTree:Ae(u)?void 0:u,fieldNodeSet:p}),v}return l},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,L.k)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,n,Ce(r,o));return Le(r,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?(0,ne.X)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,S.qw)(t,e,n.fragmentMap));var o=new Map,a=this.cache.policies,u=new A.B(!1);return function e(c,l){var d=u.lookup(c,l.clientOnly,l.deferred);d.visited||(d.visited=!0,c.selections.forEach((function(u){if((0,x.LZ)(u,n.variables)){var c=l.clientOnly,d=l.deferred;if(c&&d||!(0,L.O)(u.directives)||u.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(c=!0),"defer"===t){var r=(0,S.NC)(e,n.variables);r&&!1===r.if||(d=!0)}})),(0,S.My)(u)){var f=o.get(u);f&&(c=c&&f.clientOnly,d=d&&f.deferred),o.set(u,Te(n,c,d))}else{var p=(0,s.hi)(u,n.lookupFragment);if(!p&&u.kind===w.h.FRAGMENT_SPREAD)throw(0,i._K)(14,u.name.value);p&&a.fragmentMatches(p,r,t,n.variables)&&e(p.selectionSet,Te(n,c,d))}}})))}(e,n),o},e.prototype.applyMerges=function(e,t,n,o,a){var s,u=this;if(e.map.size&&!(0,S.Yk)(n)){var c,l=(0,L.k)(n)||!(0,S.Yk)(t)&&!j(t)?void 0:t,d=n;l&&!a&&(a=[(0,S.Yk)(l)?l.__ref:l]);var f=function(e,t){return(0,L.k)(e)?"number"===typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=f(l,t),r=f(d,t);if(void 0!==r){a&&a.push(t);var s=u.applyMerges(e,n,r,o,a);s!==r&&(c=c||new Map).set(t,s),a&&(0,i.kG)(a.pop()===t)}})),c&&(n=(0,L.k)(d)?d.slice(0):(0,r.pi)({},d),c.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):n},e}(),xe=[];function Ce(e,t){var n=e.map;return n.has(t)||n.set(t,xe.pop()||{map:new Map}),n.get(t)}function Pe(e,t){if(e===t||!t||Ae(t))return e;if(!e||Ae(e))return t;var n=e.info&&t.info?(0,r.pi)((0,r.pi)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:n,map:i?new Map:e.map.size?e.map:t.map};if(i){var a=new Set(t.map.keys());e.map.forEach((function(e,n){o.map.set(n,Pe(e,t.map.get(n))),a.delete(n)})),a.forEach((function(n){o.map.set(n,Pe(t.map.get(n),e.map.get(n)))}))}return o}function Ae(e){return!e||!(e.info||e.map.size)}function Le(e,t){var n=e.map,r=n.get(t);r&&Ae(r)&&(xe.push(r),n.delete(t))}var Re=new Set;var De=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new y.A(b.Gw),n.assumeImmutableResults=!0,n.makeVar=ie.QS,n.txCount=0,n.config=function(e){return(0,O.o)(N,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new _e({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,r.ZT)(t,e),t.prototype.init=function(){var e=this.data=new Z.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new Oe(this,this.storeReader=new ee({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:I(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=(0,o.re)((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize||u.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(X(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,(0,_.B)({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,r.pi)((0,r.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(i){if(i instanceof v)return null;throw i}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(R.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,r.pi)((0,r.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,ie._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,ie.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;_.B.reset(),E.S.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,S.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1!==globalThis.__DEV__&&i.kG.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(R.call(e,"id"))return!1;e=(0,r.pi)((0,r.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),_.B.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,ie.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var r=n,o=r.data,a=r.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=i(n)}finally{--n.txCount,n.data=o,n.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,r.pi)((0,r.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"===typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"===typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,r.pi)((0,r.pi)({},e),{onWatchUpdated:function(e,t){var n=u.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach((function(e){return n.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);t&&(e.optimistic&&"string"===typeof t.optimistic&&(r.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,r,n))||n&&(0,a.D)(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(g);!1!==globalThis.__DEV__&&(De.prototype.getMemoryInternals=p.q4)},66438:function(e,t,n){"use strict";n.d(t,{QS:function(){return c},_v:function(){return u},ab:function(){return i},li:function(){return s}});var r=n(59583),i=new r.g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,r.dP)()}),t}function s(e){a(e).vars.forEach((function(t){return t.forgetCache(e)}))}function u(e){a(e).vars.forEach((function(t){return t.attachCache(e)}))}function c(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach((function(e){a(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var u=Array.from(n);n.clear(),u.forEach((function(t){return t(e)}))}}else{var c=i.getValue();c&&(o(c),a(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}},17369:function(e,t,n){"use strict";n.d(t,{f:function(){return fe}});var r=n(54708),i=n(65604),o=n(48702),a=o.i.execute,s=n(49379),u=n(56429),c=n(70116),l=n(37280),d=n(19065),f=n(76487),p=n(23361),h=n(5466),m=n(18056),g=n(65988);function v(e,t,n){return new g.y((function(r){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(n){if(e){var o=function(){return r.closed?0:e(n)};i=i.then(o,o).then((function(e){return r.next(e)}),(function(e){return r.error(e)}))}else r[t](n)}}var a={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then((function(){return r.complete()}))}},s=e.subscribe(a);return function(){return s.unsubscribe()}}))}var y=n(21436);function b(e){var t=_(e);return(0,y.O)(t)}function _(e){var t=(0,y.O)(e.errors)?e.errors.slice(0):[];return(0,l.GG)(e)&&(0,y.O)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var E=n(36765),S=n(51761),w=n(13154),T=n(60897);function O(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}var x=n(30320);function C(e){function t(t){Object.defineProperty(e,t,{value:g.y})}return x.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function P(e){return e&&"function"===typeof e.then}var A=function(e){function t(t){var n=e.call(this,(function(e){return n.addObserver(e),function(){return n.removeObserver(e)}}))||this;return n.observers=new Set,n.promise=new Promise((function(e,t){n.resolve=e,n.reject=t})),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),O(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),O(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var i=(void 0===r?[]:r).shift();i?P(i)?i.then((function(e){return n.sub=e.subscribe(n.handlers)}),n.handlers.error):n.sub=i.subscribe(n.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),O(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch((function(e){})),"function"===typeof t&&(t=[new g.y(t)]),P(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return(0,r.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach((function(n){return n(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(n,r){t||(t=!0,e(n,r))}))},t}(g.y);C(A);var L=n(30990),R=n(1644),D=n(53712),k=n(79487);var N=n(39613),I=Object.assign,B=Object.hasOwnProperty,M=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,(function(e){try{var n=e._subscription._observer;n&&!n.error&&(n.error=j)}catch(t){}var r=!a.observers.size;a.observers.add(e);var i=a.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(a.maskResult(i.result)),r&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=U(o.fetchPolicy),a.isTornDown=!1,a.subscribeToMore=a.subscribeToMore.bind(a),a.maskResult=a.maskResult.bind(a);var s=n.defaultOptions.watchQuery,u=(void 0===s?{}:s).fetchPolicy,c=void 0===u?"cache-first":u,l=o.fetchPolicy,d=void 0===l?c:l,f=o.initialFetchPolicy,p=void 0===f?"standby"===d?c:d:f;a.options=(0,r.pi)((0,r.pi)({},o),{initialFetchPolicy:p,fetchPolicy:d}),a.queryId=i.queryId||n.generateQueryId();var h=(0,E.$H)(a.query);return a.queryName=h&&h.name&&h.name.value,a}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:n},i=e.subscribe(r)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||R.Ie.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,R.Oj)(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if(U(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,c.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,!s.complete||i.networkStatus!==R.Ie.loading||"cache-first"!==a&&"cache-only"!==a||(i.networkStatus=R.Ie.ready,i.loading=!1)):i.partial=!0,i.networkStatus===R.Ie.ready&&(i.error||i.errors)&&(i.networkStatus=R.Ie.error),!1===globalThis.__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||G(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),r=this.queryManager.dataMasking,i=r?n.nonReactiveQuery:this.query;return(r||n.hasNonreactiveDirective?!(0,N.W)(i,this.last.result,e,this.variables):!(0,c.D)(this.last.result,e))||t&&!(0,c.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,c.D)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,n={pollInterval:0},o=this.options.fetchPolicy;if(n.fetchPolicy="no-cache"===o?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&B.call(e,"variables")){var a=(0,E.iW)(this.query),s=a.variableDefinitions;s&&s.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&i.kG.warn(21,e,(null===(t=a.name)||void 0===t?void 0:t.value)||a)}return e&&!(0,c.D)(this.options.variables,e)&&(n.variables=this.options.variables=(0,r.pi)((0,r.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,R.Ie.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.pi)((0,r.pi)({},e.query?e:(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},this.options),{query:this.options.query}),e),{variables:(0,r.pi)((0,r.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var o=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var a=this.queryInfo,s=a.networkStatus;a.networkStatus=R.Ie.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=null===e||void 0===e?void 0:e.updateQuery,l="no-cache"!==this.options.fetchPolicy;return l||(0,i.kG)(c,22),this.queryManager.fetchQuery(o,n,R.Ie.fetchMore).then((function(i){if(t.queryManager.removeQuery(o),a.networkStatus===R.Ie.fetchMore&&(a.networkStatus=s),l)t.queryManager.cache.batch({update:function(r){var o=e.updateQuery;o?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return o(e,{fetchMoreResult:i.data,variables:n.variables})})):r.writeQuery({query:n.query,variables:n.variables,data:i.data})},onWatchUpdated:function(e){u.add(e.query)}});else{var d=t.getLast("result"),f=c(d.data,{fetchMoreResult:i.data,variables:n.variables});t.reportResult((0,r.pi)((0,r.pi)({},d),{networkStatus:s,loading:(0,R.Oj)(s),data:f}),t.variables)}return t.maskResult(i)})).finally((function(){l&&!u.has(t.query)&&F(t)}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var i=e.updateQuery;i&&t.updateQuery((function(e,t){return i(e,(0,r.pi)({subscriptionData:n},t))}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&i.kG.error(23,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,D.o)(this.options,e||{});I(this.options,t)},t.prototype.setVariables=function(e){return(0,c.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},R.Ie.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,i=n.complete,o=e(r,{variables:this.variables,complete:!!i,previousData:r});o&&(t.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"===typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n&&this.hasObservers()){if(!t||t.interval!==n){(0,i.kG)(n,24),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&((0,R.Oj)(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},R.Ie.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!(0,c.D)(t,this.last.variables)&&(n=void 0),this.last=(0,r.pi)({result:this.queryManager.assumeImmutableResults?e:(0,k.X)(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var i=t===R.Ie.refetch||t===R.Ie.fetchMore||t===R.Ie.poll,o=this.options.variables,a=this.options.fetchPolicy,s=(0,D.o)(this.options,e||{}),u=i?s:I(this.options,s),l=this.transformDocument(u.query);this.lastQuery=l,i||(this.updatePolling(),!e||!e.variables||(0,c.D)(e.variables,o)||"standby"===u.fetchPolicy||u.fetchPolicy!==a&&"function"!==typeof u.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=R.Ie.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=U(u.fetchPolicy));var d=function(){n.concast===h&&(n.waitForOwnResult=!1)},f=u.variables&&(0,r.pi)({},u.variables),p=this.fetch(u,t,l),h=p.concast,m=p.fromLink,g={next:function(e){(0,c.D)(n.variables,f)&&(d(),n.reportResult(e,f))},error:function(e){(0,c.D)(n.variables,f)&&((0,L.MS)(e)||(e=new L.cA({networkError:e})),d(),n.reportError(e,f))}};return i||!m&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=h,this.observer=g),h.addObserver(g),h},t.prototype.reobserve=function(e,t){return(n=this.reobserveAsConcast(e,t).promise.then(this.maskResult)).catch((function(){})),n;var n},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,r.pi)((0,r.pi)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t}(g.y);function F(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=r,"function"===typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):n}}):e.reobserve()}function j(e){!1!==globalThis.__DEV__&&i.kG.error(25,e.message,e.stack)}function G(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(26,e)}function U(e){return"network-only"===e||"no-cache"===e||"standby"===e}C(M);var H=n(182),V=new(x.mr?WeakMap:Map);function Z(e,t){var n=e[t];"function"===typeof n&&(e[t]=function(){return V.set(e,(V.get(e)+1)%1e15),n.apply(this,arguments)})}function q(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var W=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;V.has(n)||(V.set(n,0),Z(n,"evict"),Z(n,"modify"),Z(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||R.Ie.loading;return this.variables&&this.networkStatus!==R.Ie.loading&&!(0,c.D)(this.variables,e.variables)&&(t=R.Ie.setVariables),(0,c.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){q(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,c.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError())||(this.updateLastDiff(e),this.dirty||(0,c.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return n.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():F(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;q(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,R.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.pi)((0,r.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===V.get(this.cache)&&(0,c.D)(t,n.variables)&&(0,c.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new H.w0,a=(0,y.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,y.O)(e.incremental)){var s=(0,l.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(Q(e,n.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:V.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(n.variables),s=o.diff(a);!i.stopped&&(0,c.D)(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=R.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=R.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Q(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!b(e);return!r&&n&&e.data&&(r=!0),r}var z=n(5144),Y=n(75028),K=n(38991),X=n(66331),J=n(30142),$=n(87493);var ee=n(54522),te=Object.prototype.hasOwnProperty,ne=Object.create(null),re=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new K.s(X.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Y.B(!1),this.noCacheWarningsByQueryId=new Set;var n=new m.A((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches((0,i._K)(27))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,r.mG)(this,arguments,void 0,(function(e){var t,n,o,a,s,u,c,l=e.mutation,d=e.variables,f=e.optimisticResponse,p=e.updateQueries,h=e.refetchQueries,m=void 0===h?[]:h,g=e.awaitRefetchQueries,y=void 0!==g&&g,E=e.update,S=e.onQueryUpdated,w=e.fetchPolicy,T=void 0===w?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.fetchPolicy)||"network-only":w,O=e.errorPolicy,x=void 0===O?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":O,C=e.keepRootFields,P=e.context;return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return(0,i.kG)(l,28),(0,i.kG)("network-only"===T||"no-cache"===T,29),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),n=this.getDocumentInfo(l).hasClientExports,d=this.getVariables(l,d),n?[4,this.localState.addExportedVariables(l,d,P)]:[3,2];case 1:d=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:d,loading:!0,error:null}),a=f&&this.markMutationOptimistic(f,{mutationId:t,document:l,variables:d,fetchPolicy:T,errorPolicy:x,context:P,updateQueries:p,update:E,keepRootFields:C}),this.broadcastQueries(),s=this,[2,new Promise((function(e,n){return v(s.getObservableFromLink(l,(0,r.pi)((0,r.pi)({},P),{optimisticResponse:a?f:void 0}),d,{},!1),(function(e){if(b(e)&&"none"===x)throw new L.cA({graphQLErrors:_(e)});o&&(o.loading=!1,o.error=null);var n=(0,r.pi)({},e);return"function"===typeof m&&(m=m(n)),"ignore"===x&&b(n)&&delete n.errors,s.markMutationResult({mutationId:t,result:n,document:l,variables:d,fetchPolicy:T,errorPolicy:x,context:P,update:E,updateQueries:p,awaitRefetchQueries:y,refetchQueries:m,removeOptimistic:a?t:void 0,onQueryUpdated:S,keepRootFields:C})})).subscribe({next:function(n){s.broadcastQueries(),"hasNext"in n&&!1!==n.hasNext||e((0,r.pi)((0,r.pi)({},n),{data:s.maskOperation({document:l,data:n.data,fetchPolicy:T,id:t})}))},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),n(e instanceof L.cA?e:new L.cA({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&Q(i,e.errorPolicy)){if((0,l.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.GG)(i)&&(0,y.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=(0,l.mT)(s.result,i)),"undefined"!==typeof u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach((function(e,r){var a=e.observableQuery,s=a&&a.queryName;if(s&&te.call(c,s)){var u=c[s],l=n.queries.get(r),d=l.document,f=l.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var m=u(h,{mutationResult:i,queryName:d&&(0,E.rY)(d)||void 0,queryVariables:f});m&&o.push({result:m,dataId:"ROOT_QUERY",query:d,variables:f})}}}))}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach((function(e){return t.write(e)}));var s=e.update,u=!(0,l.M0)(i)||(0,l.GG)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,r.pi)((0,r.pi)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return d.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"===typeof e?e(t.variables,{IGNORE:ne}):e;return o!==ne&&(this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult((0,r.pi)((0,r.pi)({},t),{result:{data:o}}),e)}catch(a){!1!==globalThis.__DEV__&&i.kG.error(a)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:(0,d.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,d.FS)(["nonreactive"],e),nonReactiveQuery:(0,f.UU)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,f.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,E.O4)((0,E.$H)(e)),asQuery:(0,r.pi)((0,r.pi)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.pi)((0,r.pi)({},e),{operation:"query"}):e}))})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.pi)((0,r.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);"undefined"===typeof(e=(0,r.pi)((0,r.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new W(this),i=new M({queryManager:this,queryInfo:n,options:e});return i.lastQuery=t,this.queries.set(i.queryId,n),n.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var n=this;void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,30),(0,i.kG)("Document"===e.query.kind,31),(0,i.kG)(!e.returnPartialData,32),(0,i.kG)(!e.pollInterval,33);var o=this.transform(e.query);return this.fetchQuery(t,(0,r.pi)((0,r.pi)({},e),{query:o})).then((function(i){return i&&(0,r.pi)((0,r.pi)({},i),{data:n.maskOperation({document:o,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})})).finally((function(){return n.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i._K)(34)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=R.Ie.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,o=new Map,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach((function(e){if("string"===typeof e)o.set(e,e),a.set(e,!1);else if((0,S.JW)(e)){var n=(0,z.S)(t.transform(e));o.set(n,(0,E.rY)(e)),a.set(n,!1)}else(0,w.s)(e)&&e.query&&s.add(e)})),this.queries.forEach((function(t,r){var i=t.observableQuery,o=t.document;if(i){if("all"===e)return void n.set(r,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&a.has(s)||o&&a.has((0,z.S)(o)))&&(n.set(r,i),s&&a.set(s,!0),o&&a.set((0,z.S)(o),!0))}})),s.size&&s.forEach((function(e){var o=(0,T.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new M({queryManager:t,queryInfo:a,options:(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),n.set(o,s)})),!1!==globalThis.__DEV__&&a.size&&a.forEach((function(e,t){if(!e){var n=o.get(t);n?!1!==globalThis.__DEV__&&i.kG.warn(35,n):!1!==globalThis.__DEV__&&i.kG.warn(36)}})),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach((function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,u,e,l).map((function(r){"no-cache"!==i&&(Q(r,a)&&t.cache.write({query:n,result:r.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=b(r),s=(0,L.ls)(r);if(o||s){var u={};if(o&&(u.graphQLErrors=r.errors),s&&(u.protocolErrors=r.extensions[L.YG]),"none"===a||s)throw new L.cA(u)}return"ignore"===a&&delete r.errors,r}))};if(this.getDocumentInfo(n).hasClientExports){var f=this.localState.addExportedVariables(n,r,u).then(d);return new g.y((function(e){var t=null;return f.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return d(r)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i,o){var s,u,c=this;void 0===o&&(o=null!==(s=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var l=this.getDocumentInfo(e),d=l.serverQuery,f=l.clientQuery;if(d){var p=this.inFlightLinkObservables,m=this.link,y={query:d,variables:n,operationName:(0,E.rY)(d)||void 0,context:this.prepareContext((0,r.pi)((0,r.pi)({},t),{forceFetch:!o})),extensions:i};if(t=y.context,o){var b=(0,z.S)(d),_=(0,h.B)(n),S=p.lookup(b,_);if(!(u=S.observable)){var w=new A([a(m,y)]);u=S.observable=w,w.beforeNext((function e(t,n){"next"===t&&"hasNext"in n&&n.hasNext?w.beforeNext(e):p.remove(b,_)}))}}else u=new A([a(m,y)])}else u=new A([g.y.of({data:{}})]),t=this.prepareContext(t);return f&&(u=v(u,(function(e){return c.localState.runResolvers({document:f,remoteResult:e,context:t,variables:n})}))),u},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return v(this.getObservableFromLink(i,n.context,n.variables),(function(o){var a=_(o),s=a.length>0,u=n.errorPolicy;if(r>=e.lastRequestId){if(s&&"none"===u)throw e.markError(new L.cA({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:R.Ie.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=a,c.networkStatus=R.Ie.error),c}),(function(t){var n=(0,L.MS)(t)?t:new L.cA({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;void 0===n&&(n=R.Ie.loading),void 0===r&&(r=t.query);var o,a,s=this.getVariables(r,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,d=void 0===l?c&&c.fetchPolicy||"cache-first":l,f=t.errorPolicy,p=void 0===f?c&&c.errorPolicy||"none":f,h=t.returnPartialData,m=void 0!==h&&h,g=t.notifyOnNetworkStatusChange,v=void 0!==g&&g,y=t.context,b=void 0===y?{}:y,_=Object.assign({},t,{query:r,variables:s,fetchPolicy:d,errorPolicy:p,returnPartialData:m,notifyOnNetworkStatusChange:v,context:b}),E=function(e){_.variables=e;var r=i.fetchQueryByPolicy(u,_,n);return"standby"!==_.fetchPolicy&&r.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),r},S=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){S(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(_.query).hasClientExports)o=new A(this.localState.addExportedVariables(_.query,_.variables,_.context).then(E).then((function(e){return e.sources}))),a=!0;else{var w=E(_.variables);a=w.fromLink,o=new A(w.sources)}return o.promise.then(S,S),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,T.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof W&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach((function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),l},e.prototype.maskOperation=function(e){var t,n,r,o=e.document,a=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,u=e.id,c=null===(t=(0,E.$H)(o))||void 0===t?void 0:t.operation,l=(null!==(n=null===c||void 0===c?void 0:c[0])&&void 0!==n?n:"o")+u;!this.dataMasking||"no-cache"!==s||(0,p.YU)(o)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&i.kG.warn(37,null!==(r=(0,E.rY)(o))&&void 0!==r?r:"Unnamed ".concat(null!==c&&void 0!==c?c:"operation")))}return this.dataMasking?function(e,t,n){var r;if(!n.fragmentMatches)return!1!==globalThis.__DEV__&&(0,$.Kk)(),e;var o=(0,E.$H)(t);return(0,i.kG)(o,51),null==e?e:(0,J.K)(e,o.selectionSet,{operationType:o.operation,operationName:null===(r=o.name)||void 0===r?void 0:r.value,fragmentMap:(0,p.F)((0,E.kU)(t)),cache:n,mutableTargets:new $.Td,knownChanged:new $.wd})}(a,o,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?(0,ee.r)(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,d=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var m=function(){return e.getDiff()},v=function(t,n){void 0===n&&(n=e.networkStatus||R.Ie.loading);var s=t.result;!1===globalThis.__DEV__||d||(0,c.D)(s,{})||G(t.missing);var u=function(e){return g.y.of((0,r.pi)({data:e,loading:(0,R.Oj)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return u(e.data||void 0)})):"none"===l&&n===R.Ie.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},y="no-cache"===s?0:n===R.Ie.refetch&&"merge"!==u?1:2,b=function(){return i.getResultsFromLink(e,y,{query:o,variables:a,context:f,fetchPolicy:s,errorPolicy:l})},_=p&&"number"===typeof h&&h!==n&&(0,R.Oj)(n);switch(s){default:case"cache-first":return(E=m()).complete?{fromLink:!1,sources:[v(E,e.markReady())]}:d||_?{fromLink:!0,sources:[v(E),b()]}:{fromLink:!0,sources:[b()]};case"cache-and-network":var E;return(E=m()).complete||d||_?{fromLink:!0,sources:[v(E),b()]}:{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[v(m(),e.markReady())]};case"network-only":return _?{fromLink:!0,sources:[v(m()),b()]}:{fromLink:!0,sources:[b()]};case"no-cache":return _?{fromLink:!0,sources:[v(e.getDiff()),b()]}:{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new W(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)((0,r.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),ie=n(77304),oe=n(97359);function ae(e){return e.kind===oe.h.FIELD||e.kind===oe.h.FRAGMENT_SPREAD||e.kind===oe.h.INLINE_FRAGMENT}var se=n(66438),ue=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,H.Ee)(t.resolvers,e)})):this.resolvers=(0,H.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,r.mG)(this,arguments,void 0,(function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then((function(e){return(0,r.pi)((0,r.pi)({},n),{data:e.result})}))]:[2,n]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,d.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,f.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.pi)((0,r.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,r.mG)(this,arguments,void 0,(function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.Jh)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return(0,r.pi)((0,r.pi)({},t),e.exportedVariables)}))]:[2,(0,r.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,ie.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return ie.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,f.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,r.mG)(this,arguments,void 0,(function(e,t,n,i,o,a){var s,u,c,l,d,f,h,m,g,v;return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,r.Jh)(this,(function(y){return s=(0,E.p$)(e),u=(0,E.kU)(e),c=(0,p.F)(u),l=this.collectSelectionsToResolve(s,c),d=s.operation,f=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",m=(h=this).cache,g=h.client,v={fragmentMap:c,context:(0,r.pi)((0,r.pi)({},n),{cache:m,client:g}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},!1,[2,this.resolveSelectionSet(s.selectionSet,false,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n,o){return(0,r.mG)(this,void 0,void 0,(function(){var a,s,u,c,l,f=this;return(0,r.Jh)(this,(function(p){return a=o.fragmentMap,s=o.context,u=o.variables,c=[n],l=function(e){return(0,r.mG)(f,void 0,void 0,(function(){var l,f;return(0,r.Jh)(this,(function(r){return(t||o.selectionsToResolve.has(e))&&(0,d.LZ)(e,u)?(0,S.My)(e)?[2,this.resolveField(e,t,n,o).then((function(t){var n;"undefined"!==typeof t&&c.push(((n={})[(0,S.u2)(e)]=t,n))}))]:((0,S.Ao)(e)?l=e:(l=a[e.name.value],(0,i.kG)(l,19,e.name.value)),l&&l.typeCondition&&(f=l.typeCondition.name.value,o.fragmentMatcher(n,f,s))?[2,this.resolveSelectionSet(l.selectionSet,t,n,o).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return(0,H.bw)(c)}))]}))}))},e.prototype.resolveField=function(e,t,n,i){return(0,r.mG)(this,void 0,void 0,(function(){var o,a,s,u,c,l,d,f,p,h=this;return(0,r.Jh)(this,(function(r){return n?(o=i.variables,a=e.name.value,s=(0,S.u2)(e),u=a!==s,c=n[s]||n[a],l=Promise.resolve(c),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(d=n.__typename||i.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[u?a:s])&&(l=Promise.resolve(se.ab.withValue(this.cache,p,[n,(0,S.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(n){var r,o;if(void 0===n&&(n=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=n)}))})),!e.selectionSet)return n;if(null==n)return n;var a=null!==(o=null===(r=e.directives)||void 0===r?void 0:r.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||a,n,i):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,n,i):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map((function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(o){if(!r.has(o)){var a=new Set;r.set(o,a),(0,ie.Vn)(o,{Directive:function(e,t,r,i,o){"client"===e.name.value&&o.forEach((function(e){n(e)&&ae(e)&&a.add(e)}))},FragmentSpread:function(r,o,s,u,c){var l=t[r.name.value];(0,i.kG)(l,20,r.name.value);var d=e(l);d.size>0&&(c.forEach((function(e){n(e)&&ae(e)&&a.add(e)})),a.add(r),d.forEach((function(e){a.add(e)})))}})}return r.get(o)}(e)},e}(),ce=n(14012),le=n(88244),de=!1,fe=function(){function e(e){var t,n=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(16);var a=e.uri,c=e.credentials,l=e.headers,d=e.cache,f=e.documentTransform,p=e.ssrMode,h=void 0!==p&&p,m=e.ssrForceFetchDelay,g=void 0===m?0:m,v=e.connectToDevTools,y=e.queryDeduplication,b=void 0===y||y,_=e.defaultOptions,E=e.defaultContext,S=e.assumeImmutableResults,w=void 0===S?d.assumeImmutableResults:S,T=e.resolvers,O=e.typeDefs,x=e.fragmentMatcher,C=e.name,P=e.version,A=e.devtools,L=e.dataMasking,R=e.link;R||(R=a?new u.u({uri:a,credentials:c,headers:l}):o.i.empty()),this.link=R,this.cache=d,this.disableNetworkFetches=h||g>0,this.queryDeduplication=b,this.defaultOptions=_||Object.create(null),this.typeDefs=O,this.devtoolsConfig=(0,r.pi)((0,r.pi)({},A),{enabled:null!==(t=null===A||void 0===A?void 0:A.enabled)&&void 0!==t?t:v}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout((function(){return n.disableNetworkFetches=!1}),g),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.i,this.localState=new ue({cache:d,client:this,resolvers:T,fragmentMatcher:x}),this.queryManager=new re({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:f,queryDeduplication:b,ssrMode:h,dataMasking:!!L,clientAwareness:{name:C,version:P},localState:this.localState,assumeImmutableResults:w,onBroadcast:this.devtoolsConfig.enabled?function(){n.devToolsHookCb&&n.devToolsHookCb({action:{},state:{queries:n.queryManager.getQueryStore(),mutations:n.queryManager.mutationStore||{}},dataWithOptimisticResults:n.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("undefined"!==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,de||!1===globalThis.__DEV__||(de=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout((function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"===typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: %s",n)}}),1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,ce.J)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,ce.J)(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,ce.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map((function(i){return(0,r.pi)((0,r.pi)({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:n})})}))},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,r.pi)((0,r.pi)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((function(e,t){n.push(t),r.push(e)}));var o=Promise.all(r);return o.queries=n,o.results=r,o.catch((function(e){!1!==globalThis.__DEV__&&i.kG.debug(18,e)})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(fe.prototype.getMemoryInternals=le.su)},39613:function(e,t,n){"use strict";n.d(t,{W:function(){return c}});var r=n(54708),i=n(70116),o=n(36765),a=n(23361),s=n(19065),u=n(51761);function c(e,t,n,s){var u=t.data,c=(0,r._T)(t,["data"]),d=n.data,f=(0,r._T)(n,["data"]);return(0,i.Z)(c,f)&&l((0,o.p$)(e).selectionSet,u,d,{fragmentMap:(0,a.F)((0,o.kU)(e)),variables:s})}function l(e,t,n,r){if(t===n)return!0;var o=new Set;return e.selections.every((function(e){if(o.has(e))return!0;if(o.add(e),!(0,s.LZ)(e,r.variables))return!0;if(d(e))return!0;if((0,u.My)(e)){var c=(0,u.u2)(e),f=t&&t[c],p=n&&n[c],h=e.selectionSet;if(!h)return(0,i.Z)(f,p);var m=Array.isArray(f),g=Array.isArray(p);if(m!==g)return!1;if(m&&g){var v=f.length;if(p.length!==v)return!1;for(var y=0;y-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}})),t}function y(e,t){if(e.status>=300){p(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}var b=n(5144),_={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},E=function(e,t){return t(e)};function S(e,t){for(var n=[],i=2;i-1;){if(S=void 0,A=[u.slice(0,E),u.slice(E+s.length)],u=A[1],w=(S=A[0]).indexOf("\r\n\r\n"),T=v(S.slice(0,w)),(O=T["content-type"])&&-1===O.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(x=S.slice(w))if(C=y(e,x),Object.keys(C).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if((0,m.yU)(C)){if(P={},"payload"in C){if(1===Object.keys(C).length&&null===C.payload)return[2];P=(0,r.pi)({},C.payload)}"errors"in C&&(P=(0,r.pi)((0,r.pi)({},P),{extensions:(0,r.pi)((0,r.pi)({},"extensions"in P?P.extensions:null),(L={},L[h.YG]=C.errors,L))})),t(P)}else t(C);else if(1===Object.keys(C).length&&"hasNext"in C&&!C.hasNext)return[2];E=u.indexOf(s)}return[3,1];case 3:return[2]}}))}))}(t,a):(i=e,function(e){return e.text().then((function(t){return y(e,t)})).then((function(t){return Array.isArray(t)||g.call(t,"data")||g.call(t,"errors")||p(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})(t).then(a)})).then((function(){I=void 0,n.complete()})).catch((function(e){I=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,n)})),function(){I&&I.abort()}}))}))},A=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,P(t).request)||this;return n.options=t,n}return(0,r.ZT)(t,e),t}(i.i)},30142:function(e,t,n){"use strict";n.d(t,{K:function(){return c}});var r=n(97359),i=n(10542),o=n(51761),a=n(19065),s=n(87493),u=n(65604);function c(e,t,n){return s.Os.withValue(!0,(function(){var r=l(e,t,n,!1);return Object.isFrozen(e)&&(0,i.J)(r),r}))}function l(e,t,n,i,s){var c,f=n.knownChanged,p=function(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(var h=0,m=Array.from(e.entries());h=0&&e.indexOf(t,n)===n}(n,d)}}return!1}function c(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}t.Z=s;const d="{ [native code] }";function f(e,t){let n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},59583:function(e,t,n){"use strict";n.d(t,{g7:function(){return g},dP:function(){return H},re:function(){return W}});const r=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return i.call(e,(e=>t=t.getChildTrie(e))),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&nglobalThis))||p((()=>global))||Object.create(null),g=m[h]||Array[h]||function(e){try{Object.defineProperty(m,h,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",f++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=l;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===d)break;return e!==l&&(l.slots[this.id]=t),!0}return l&&(l.slots[this.id]=d),!1}getValue(){if(this.hasValue())return l.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=l;l={parent:o,slots:i};try{return t.apply(r,n)}finally{l=o}}static bind(e){const t=l;return function(){const n=l;try{return l=t,e.apply(this,arguments)}finally{l=n}}}static noContext(e,t,n){if(!l)return e.apply(n,t);{const r=l;try{return l=null,e.apply(n,t)}finally{l=r}}}}),{bind:v,noContext:y}=g;const b=new g;const{hasOwnProperty:_}=Object.prototype,E=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function S(e){const{unsubscribe:t}=e;"function"===typeof t&&(e.unsubscribe=void 0,t())}const w=[],T=100;function O(e,t){if(!e)throw new Error(t||"assertion failure")}function x(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function C(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function P(e){return e.slice(0)}class A{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++A.count}peek(){if(1===this.value.length&&!D(this))return L(this),this.value[0]}recompute(e){return O(!this.recomputing,"already recomputing"),L(this),D(this)?function(e,t){j(e),b.withValue(e,R,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{S(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(n){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,D(e))return;N(e)}(e);return C(e.value)}(this,e):C(this.value)}setDirty(){this.dirty||(this.dirty=!0,k(this),S(this))}dispose(){this.setDirty(),j(this),I(this,((e,t)=>{e.setDirty(),G(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=w.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(E(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),w.push(this.deps),this.deps=null)}}function L(e){const t=b.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),D(e)?B(t,e):M(t,e),t}function R(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=P(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!x(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(i){}}catch(o){e.value[1]=o}e.recomputing=!1}function D(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function k(e){I(e,B)}function N(e){I(e,M)}function I(e,t){const n=e.parents.size;if(n){const r=E(e.parents);for(let i=0;i0&&e.childValues.forEach(((t,n)=>{G(e,n)})),e.forgetDeps(),O(null===e.dirtyChildren)}function G(e,t){t.parents.delete(e),e.childValues.delete(t),F(e,t)}A.count=0;const U={setDirty:!0,dispose:!0,forget:!0};function H(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=b.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"===typeof n&&(S(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&_.call(U,n)?n:"setDirty";E(r).forEach((e=>e[i]())),t.delete(e),S(r)}},r}let V;function Z(...e){return(V||(V=new s("function"===typeof WeakMap))).lookupArray(e)}const q=new Set;function W(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=Z,normalizeResult:i,subscribe:o,cache:a=c.e}=Object.create(null)){const s="function"===typeof a?new a(t,(e=>e.dispose())):a,u=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new A(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));const u=a.recompute(Array.prototype.slice.call(arguments));return s.set(t,a),q.add(s),b.hasValue()||(q.forEach((e=>e.clean())),q.clear()),u};function l(e){const t=e&&s.get(e);t&&t.setDirty()}function d(e){const t=e&&s.get(e);if(t)return t.peek()}function f(e){return!!e&&s.delete(e)}return Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:o,cache:s}),u.dirtyKey=l,u.dirty=function(){l(r.apply(null,arguments))},u.peekKey=d,u.peek=function(){return d(r.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(r.apply(null,arguments))},u.makeCacheKey=r,u.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(u)}},54708:function(e,t,n){"use strict";n.d(t,{Jh:function(){return u},ZT:function(){return i},_T:function(){return a},ev:function(){return c},mG:function(){return s},pi:function(){return o}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1,i=!1,o=arguments[1];return new n((function(n){return t.subscribe({next:function(t){var a=!i;if(i=!0,!a||r)try{o=e(o,t)}catch(s){return n.error(s)}else o=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(o),n.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[d]=function(){return this},e.from=function(t){var n="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var i=p(t,d);if(i){var o=i.call(t);if(Object(o)!==o)throw new TypeError(o+" is not an object");return m(o)&&o.constructor===n?o:new n((function(e){return o.subscribe(e)}))}if(u("iterator")&&(i=p(t,l)))return new n((function(e){v((function(){if(!e.closed){for(var n,o=r(i.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){v((function(){if(!e.closed){for(var n=0;n0}},30320:function(e,t,n){"use strict";n.d(t,{DN:function(){return u},JC:function(){return d},Nq:function(){return c},aS:function(){return s},mr:function(){return o},sy:function(){return a}});var r=n(65604),i="ReactNative"==(0,r.wY)((function(){return navigator.product})),o="function"===typeof WeakMap&&!(i&&!global.HermesInternal),a="function"===typeof WeakSet,s="function"===typeof Symbol&&"function"===typeof Symbol.for,u=s&&Symbol.asyncIterator,c="function"===typeof(0,r.wY)((function(){return window.document.createElement})),l=(0,r.wY)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,d=(c||i)&&!l},5466:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r,i=n(38991),o=n(66331),a=n(88244),s=Object.assign((function(e){return JSON.stringify(e,u)}),{reset:function(){r=new i.L(o.Q.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"===typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var i=Object.keys(t);if(i.every(c))return t;var o=JSON.stringify(i),a=r.get(o);if(!a){i.sort();var s=JSON.stringify(i);a=r.get(s)||i,r.set(o,a),r.set(s,a)}var u=Object.create(n);return a.forEach((function(e){u[e]=t[e]})),u}}return t}function c(e,t,n){return 0===t||n[t-1]<=e}!1!==globalThis.__DEV__&&(0,a.zP)("canonicalStringify",(function(){return r.size})),s.reset()},79487:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(r.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach((function(e,r){n[r]=o(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(n){i[n]=o(e[n],t)})),i;default:return e}}},53712:function(e,t,n){"use strict";function r(){for(var e=[],t=0;t=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}n=r.merge(n,t)})),n}},60897:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=new Map;function i(e){var t=r.get(e)||1;return r.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},10542:function(e,t,n){"use strict";n.d(t,{J:function(){return o}});var r=n(13154);function i(e){var t=new Set([e]);return t.forEach((function(e){(0,r.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){(0,r.s)(e[n])&&t.add(e[n])}))})),e}function o(e){return!1!==globalThis.__DEV__&&i(e),e}},182:function(e,t,n){"use strict";n.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var r=n(54708),i=n(13154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t1)for(var r=new c,i=1;i")}},65604:function(e,t,n){"use strict";n.d(t,{CO:function(){return m},kG:function(){return y},wY:function(){return h},_K:function(){return b}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;var o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,u=function(e){function t(n){void 0===n&&(n=o);var r=e.call(this,"number"===typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,s(r,t.prototype),r}return i(t,e),t}(Error);function c(e,t){if(!e)throw new u(t)}var l=["debug","log","warn","error","silent"],d=l.indexOf("log");function f(e){return function(){if(l.indexOf(e)>=d)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(c||(c={}));var p=n(49379);function h(e){try{return e()}catch(a){}}var m=h((function(){return globalThis}))||h((function(){return window}))||h((function(){return self}))||h((function(){return global}))||h((function(){return h.constructor("return this")()})),g=n(13887);function v(e){return function(t){for(var n=[],r=1;r"}}function S(e,t){if(void 0===t&&(t=[]),e)return m[_]&&m[_](e,t.map(E))}function w(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:p.i,message:e,args:t.map(E)})))}globalThis.__DEV__},18056:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(75028),i=n(30320),o=n(36765),a=n(65604),s=n(99869),u=n(59583),c=n(66331);function l(e){return e}var d=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(l,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e((function(e){return(t(e)?n:r).transformDocument(e)}),{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new r.B(i.mr);this.performWork=(0,u.re)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return(0,a.kG)(Array.isArray(r),77),n.lookupArray(r)},max:c.Q["documentTransform.cache"],cache:s.k})}},e.prototype.performWork=function(e){return(0,o.A$)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e((function(e){return t.transformDocument(n.transformDocument(e))}),{cache:!1}),{left:this,right:t})},e}()},19065:function(e,t,n){"use strict";n.d(t,{FS:function(){return s},GT:function(){return c},LZ:function(){return a},mj:function(){return u}});var r=n(65604),i=n(77304),o=n(97359);function a(e,t){var n=e.directives;return!n||!n.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var n=e.arguments,i=e.name.value;(0,r.kG)(n&&1===n.length,79,i);var o=n[0];(0,r.kG)(o.name&&"if"===o.name.value,80,i);var a=o.value;(0,r.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),81,i),t.push({directive:e,ifArgument:o})}}));return t}(n).every((function(e){var n=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,r.kG)(void 0!==o,78,n.name.value)):o=i.value.value,"skip"===n.name.value?!o:o}))}function s(e,t,n){var r=new Set(e),o=r.size;return(0,i.Vn)(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return i.$_}}),n?!r.size:r.size80&&(u=a+c("(\n",l(s(r,"\n")),"\n)")),s([u,s(i," "),o]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+c(" ",s(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return s(["...",c("on ",t),s(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(c("(",s(r,", "),")")," ")+"on ".concat(n," ").concat(c("",s(i," ")," "))+o},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,i.LZ)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+s(e.values,", ")+"]"},ObjectValue:function(e){return"{"+s(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+c("(",s(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return s(["schema",s(t," "),u(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return s(["scalar",e.name,s(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["type",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?c("(\n",l(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+": "+r+c(" ",s(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return s([t+": "+n,c("= ",r),s(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["interface",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return s(["union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return s(["enum",t,s(n," "),u(r)]," ")})),EnumValueDefinition:a((function(e){return s([e.name,s(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return s(["input",t,s(n," "),u(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?c("(\n",l(s(n,"\n")),"\n)"):c("(",s(n,", "),")"))+(r?" repeatable":"")+" on "+s(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return s(["extend schema",s(t," "),u(n)]," ")},ScalarTypeExtension:function(e){return s(["extend scalar",e.name,s(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend type",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return s(["extend interface",t,c("implements ",s(n," & ")),s(r," "),u(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return s(["extend union",t,s(n," "),r&&0!==r.length?"= "+s(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return s(["extend enum",t,s(n," "),u(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return s(["extend input",t,s(n," "),u(r)]," ")}};function a(e){return function(t){return s([t.description,e(t)],"\n")}}function s(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null===e||void 0===e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function u(e){return c("{\n",l(s(e,"\n")),"\n}")}function c(e,t){return null!=t&&""!==t?e+t+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:""):""}function l(e){return c(" ",e.replace(/\n/g,"\n "))}function d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}var p,h=n(38991),m=n(66331),g=n(88244),v=Object.assign((function(e){var t=p.get(e);return t||(t=function(e){return(0,r.Vn)(e,{leave:o})}(e),p.set(e,t)),t}),{reset:function(){p=new h.s(m.Q.print||2e3)}});v.reset(),!1!==globalThis.__DEV__&&(0,g.zP)("print",(function(){return p?p.size:0}))},51761:function(e,t,n){"use strict";n.d(t,{Ao:function(){return b},JW:function(){return c},My:function(){return y},NC:function(){return m},PT:function(){return h},Yk:function(){return u},kQ:function(){return s},qw:function(){return v},u2:function(){return g},vb:function(){return l},vf:function(){return d}});var r=n(65604),i=n(13154),o=n(23361),a=n(5466);function s(e){return{__ref:String(e)}}function u(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function c(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function l(e,t,n,i){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return l(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(i||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return l(n,t,e,i),n[t.value]}));else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw(0,r._K)(96,t.value,n.kind);e[t.value]=null}}function d(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var i=r.name,o=r.value;return l(n[e.name.value],i,o,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return l(r,n,i,t)}))),h(e.name.value,r,n)}var f=["connection","include","skip","client","rest","export","nonreactive"],p=a.B,h=Object.assign((function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach((function(e){i[e]=t[e]})),"".concat(n.connection.key,"(").concat(p(i),")")}return n.connection.key}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach((function(e){-1===f.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(p(n[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=p;return p=e,t}});function m(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return l(n,r,i,t)})),n}return null}function g(e){return e.alias?e.alias.value:e.name.value}function v(e,t,n){for(var r,i=0,a=t.selections;i=0;--f)t.definitions[f].kind===o.h.OPERATION_DEFINITION&&++d;var g=h(e),v=function(e){return(0,l.O)(e)&&e.map(g).some((function(e){return e&&e.remove}))},y=new Map,b=!1,_={enter:function(e){if(v(e.directives))return b=!0,null}},E=(0,a.Vn)(t,{Field:_,InlineFragment:_,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(v(e.directives))return b=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){y.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===y.get(JSON.stringify(r))?e:d>0&&e.selectionSet.selections.every((function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value}))?(u(e.name.value).removed=!0,b=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return b=!0,null}}});if(!b)return t;var S=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){S(u(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},w=new Set;E.definitions.forEach((function(e){e.kind===o.h.OPERATION_DEFINITION?S(n(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){w.add(e)})):e.kind!==o.h.FRAGMENT_DEFINITION||0!==d||u(e.name.value).removed||w.add(e.name.value)})),w.forEach((function(e){S(u(e)).fragmentSpreads.forEach((function(e){w.add(e)}))}));var T={enter:function(e){if(t=e.name.value,!w.has(t)||u(t).removed)return null;var t}};return p((0,a.Vn)(E,{FragmentSpread:T,FragmentDefinition:T,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=S(n(e.name&&e.name.value)).transitiveVars;if(t.size{const{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,s.jsx)(c,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;const f=e+"CollectionSlot",p=(0,a.Z8)(f),h=r.forwardRef(((e,t)=>{const{scope:n,children:r}=e,i=l(f,n),a=(0,o.e)(t,i.collectionRef);return(0,s.jsx)(p,{ref:a,children:r})}));h.displayName=f;const m=e+"CollectionItemSlot",g="data-radix-collection-item",v=(0,a.Z8)(m),y=r.forwardRef(((e,t)=>{const{scope:n,children:i,...a}=e,u=r.useRef(null),c=(0,o.e)(t,u),d=l(m,n);return r.useEffect((()=>(d.itemMap.set(u,{ref:u,...a}),()=>{d.itemMap.delete(u)}))),(0,s.jsx)(v,{[g]:"",ref:c,children:i})}));return y.displayName=m,[{Provider:d,Slot:h,ItemSlot:y},function(t){const n=l(e+"CollectionConsumer",t);return r.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},u]}var c=new WeakMap;Map;function l(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=function(e,t){const n=e.length,r=d(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return-1===n?void 0:e[n]}function d(e){return e!==e||0===e?0:Math.trunc(e)}},28771:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return a}});var r=n(67294);function i(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function o(...e){return t=>{let n=!1;const r=e.map((e=>{const r=i(e,t);return n||"function"!=typeof r||(n=!0),r}));if(n)return()=>{for(let t=0;t{const{children:t,...o}=e,a=r.useMemo((()=>o),Object.values(o));return(0,i.jsx)(n.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){const o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[];const o=()=>{const t=n.map((e=>r.createContext(e)));return function(n){const i=n?.[e]||t;return r.useMemo((()=>({[`__scope${e}`]:{...n,[e]:i}})),[n,i])}};return o.scopeName=e,[function(t,o){const a=r.createContext(o),s=n.length;n=[...n,o];const u=t=>{const{scope:n,children:o,...u}=t,c=n?.[e]?.[s]||a,l=r.useMemo((()=>u),Object.values(u));return(0,i.jsx)(c.Provider,{value:l,children:o})};return u.displayName=t+"Provider",[u,function(n,i){const u=i?.[e]?.[s]||a,c=r.useContext(u);if(c)return c;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},s(o,...t)]}function s(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const i=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${t.scopeName}`]:i})),[i])}};return n.scopeName=t.scopeName,n}},46063:function(e,t,n){"use strict";n.d(t,{I0:function(){return b},XB:function(){return h},fC:function(){return y}});var r=n(67294),i=n(36206),o=n(75320),a=n(28771),s=n(79698);var u,c=n(85893),l="dismissableLayer.update",d="dismissableLayer.pointerDownOutside",f="dismissableLayer.focusOutside",p=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=r.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:_,...E}=e,S=r.useContext(p),[w,T]=r.useState(null),O=w?.ownerDocument??globalThis?.document,[,x]=r.useState({}),C=(0,a.e)(t,(e=>T(e))),P=Array.from(S.layers),[A]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),L=P.indexOf(A),R=w?P.indexOf(w):-1,D=S.layersWithOutsidePointerEventsDisabled.size>0,k=R>=L,N=function(e,t=globalThis?.document){const n=(0,s.W)(e),i=r.useRef(!1),o=r.useRef((()=>{}));return r.useEffect((()=>{const e=e=>{if(e.target&&!i.current){let r=function(){v(d,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);i.current=!1},r=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>i.current=!0}}((e=>{const t=e.target,n=[...S.branches].some((e=>e.contains(t)));k&&!n&&(m?.(e),b?.(e),e.defaultPrevented||_?.())}),O),I=function(e,t=globalThis?.document){const n=(0,s.W)(e),i=r.useRef(!1);return r.useEffect((()=>{const e=e=>{if(e.target&&!i.current){v(f,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}((e=>{const t=e.target;[...S.branches].some((e=>e.contains(t)))||(y?.(e),b?.(e),e.defaultPrevented||_?.())}),O);return function(e,t=globalThis?.document){const n=(0,s.W)(e);r.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}((e=>{R===S.layers.size-1&&(h?.(e),!e.defaultPrevented&&_&&(e.preventDefault(),_()))}),O),r.useEffect((()=>{if(w)return n&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(u=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(w)),S.layers.add(w),g(),()=>{n&&1===S.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=u)}}),[w,O,n,S]),r.useEffect((()=>()=>{w&&(S.layers.delete(w),S.layersWithOutsidePointerEventsDisabled.delete(w),g())}),[w,S]),r.useEffect((()=>{const e=()=>x({});return document.addEventListener(l,e),()=>document.removeEventListener(l,e)}),[]),(0,c.jsx)(o.WV.div,{...E,ref:C,style:{pointerEvents:D?k?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.Mj)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,i.Mj)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,i.Mj)(e.onPointerDownCapture,N.onPointerDownCapture)})}));h.displayName="DismissableLayer";var m=r.forwardRef(((e,t)=>{const n=r.useContext(p),i=r.useRef(null),s=(0,a.e)(t,i);return r.useEffect((()=>{const e=i.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),(0,c.jsx)(o.WV.div,{...e,ref:s})}));function g(){const e=new CustomEvent(l);document.dispatchEvent(e)}function v(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,o.jH)(i,a):i.dispatchEvent(a)}m.displayName="DismissableLayerBranch";var y=h,b=m},91276:function(e,t,n){"use strict";var r;n.d(t,{M:function(){return u}});var i=n(67294),o=n(9981),a=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>{}),s=0;function u(e){const[t,n]=i.useState(a());return(0,o.b)((()=>{e||n((e=>e??String(s++)))}),[e]),e||(t?`radix-${t}`:"")}},48521:function(e,t,n){"use strict";n.d(t,{ee:function(){return Qe},Eh:function(){return Ye},VY:function(){return ze},fC:function(){return We},D7:function(){return Le}});var r=n(67294);const i=["top","right","bottom","left"],o=Math.min,a=Math.max,s=Math.round,u=Math.floor,c=e=>({x:e,y:e}),l={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t,n){return a(e,o(t,n))}function p(e,t){return"function"===typeof e?e(t):e}function h(e){return e.split("-")[0]}function m(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(h(e))?"y":"x"}function b(e){return g(y(e))}function _(e){return e.replace(/start|end/g,(e=>d[e]))}function E(e){return e.replace(/left|right|bottom|top/g,(e=>l[e]))}function S(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function w(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function T(e,t,n){let{reference:r,floating:i}=e;const o=y(t),a=b(t),s=v(a),u=h(t),c="y"===o,l=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(u){case"top":p={x:l,y:r.y-i.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(m(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function O(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=p(t,e),m=S(h),g=s[f?"floating"===d?"reference":"floating":d],v=w(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:l,strategy:u})),y="floating"===d?{...a.floating,x:r,y:i}:a.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},E=w(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-E.top+m.top)/_.y,bottom:(E.bottom-v.bottom+m.bottom)/_.y,left:(v.left-E.left+m.left)/_.x,right:(E.right-v.right+m.right)/_.x}}const x=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:u}=t,{element:c,padding:l=0}=p(e,t)||{};if(null==c)return{};const d=S(l),h={x:n,y:r},g=b(i),y=v(g),_=await s.getDimensions(c),E="y"===g,w=E?"top":"left",T=E?"bottom":"right",O=E?"clientHeight":"clientWidth",x=a.reference[y]+a.reference[g]-h[g]-a.floating[y],C=h[g]-a.reference[g],P=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let A=P?P[O]:0;A&&await(null==s.isElement?void 0:s.isElement(P))||(A=u.floating[O]||a.floating[y]);const L=x/2-C/2,R=A/2-_[y]/2-1,D=o(d[w],R),k=o(d[T],R),N=D,I=A-_[y]-k,B=A/2-_[y]/2+L,M=f(N,B,I),F=null!=m(i)&&B!=M&&a.reference[y]/2-(Be+"-"+i)),t&&(o=o.concat(o.map(_)))),o}(a,y,g,x));const P=[a,...C],A=await O(t,S),L=[];let R=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&L.push(A[w]),l){const e=function(e,t,n){void 0===n&&(n=!1);const r=m(e),i=b(e),o=v(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=E(a)),[a,E(a)]}(r,o,x);L.push(A[e[0]],A[e[1]])}if(R=[...R,{placement:r,overflows:L}],!L.every((e=>e<=0))){var D,k;const e=((null==(D=i.flip)?void 0:D.index)||0)+1,t=P[e];if(t)return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==(k=R.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(f){case"bestFit":{var N;const e=null==(N=R.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:N[0];e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}};function P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A(e){return i.some((t=>e[t]>=0))}const L=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=p(e,t);switch(r){case"referenceHidden":{const e=P(await O(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=P(await O(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}};const R=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=h(n),s=m(n),u="y"===y(n),c=["left","top"].includes(a)?-1:1,l=o&&u?-1:1,d=p(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:v}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"===typeof v&&(g="end"===s?-1*v:v),u?{x:g*l,y:f*c}:{x:f*c,y:g*l}}(t,e);return{x:n+i.x,y:r+i.y,data:i}}}},D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=p(e,t),c={x:n,y:r},l=await O(t,u),d=y(h(i)),m=g(d);let v=c[m],b=c[d];if(o){const e="y"===m?"bottom":"right";v=f(v+l["y"===m?"top":"left"],v,v-l[e])}if(a){const e="y"===d?"bottom":"right";b=f(b+l["y"===d?"top":"left"],b,b-l[e])}const _=s.fn({...t,[m]:v,[d]:b});return{..._,data:{x:_.x-n,y:_.y-r}}}}},k=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:s}=t,{apply:u=(()=>{}),...c}=p(e,t),l=await O(t,c),d=h(n),f=m(n),g="y"===y(n),{width:v,height:b}=r.floating;let _,E;"top"===d||"bottom"===d?(_=d,E=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(E=d,_="end"===f?"top":"bottom");const S=b-l[_],w=v-l[E],T=!t.middlewareData.shift;let x=S,C=w;if(g){const e=v-l.left-l.right;C=f||T?o(w,e):e}else{const e=b-l.top-l.bottom;x=f||T?o(S,e):e}if(T&&!f){const e=a(l.left,0),t=a(l.right,0),n=a(l.top,0),r=a(l.bottom,0);g?C=v-2*(0!==e||0!==t?e+t:a(l.left,l.right)):x=b-2*(0!==n||0!==r?n+r:a(l.top,l.bottom))}await u({...t,availableWidth:C,availableHeight:x});const P=await i.getDimensions(s.floating);return v!==P.width||b!==P.height?{reset:{rects:!0}}:{}}}};function N(e){return M(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function B(e){var t;return null==(t=(M(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function M(e){return e instanceof Node||e instanceof I(e).Node}function F(e){return e instanceof Element||e instanceof I(e).Element}function j(e){return e instanceof HTMLElement||e instanceof I(e).HTMLElement}function G(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}function U(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=W(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function H(e){return["table","td","th"].includes(N(e))}function V(e){const t=Z(),n=W(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Z(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(e){return["html","body","#document"].includes(N(e))}function W(e){return I(e).getComputedStyle(e)}function Q(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function z(e){if("html"===N(e))return e;const t=e.assignedSlot||e.parentNode||G(e)&&e.host||B(e);return G(t)?t.host:t}function Y(e){const t=z(e);return q(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&U(t)?t:Y(t)}function K(e,t){var n;void 0===t&&(t=[]);const r=Y(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=I(r);return i?t.concat(o,o.visualViewport||[],U(r)?r:[]):t.concat(r,K(r))}function X(e){const t=W(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=j(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,u=s(n)!==o||s(r)!==a;return u&&(n=o,r=a),{width:n,height:r,$:u}}function J(e){return F(e)?e:e.contextElement}function $(e){const t=J(e);if(!j(t))return c(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=X(t);let a=(o?s(n.width):n.width)/r,u=(o?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}const ee=c(0);function te(e){const t=I(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ee}function ne(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=J(e);let a=c(1);t&&(r?F(r)&&(a=$(r)):a=$(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==I(e))&&t}(o,n,r)?te(o):c(0);let u=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const e=I(o),t=r&&F(r)?I(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=$(n),t=n.getBoundingClientRect(),r=W(n),i=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,d*=e.x,f*=e.y,u+=i,l+=o,n=I(n).frameElement}}return w({width:d,height:f,x:u,y:l})}function re(e){return ne(B(e)).left+Q(e).scrollLeft}function ie(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=I(e),r=B(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;const e=Z();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s,y:u}}(e,n);else if("document"===t)r=function(e){const t=B(e),n=Q(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+re(e);const u=-n.scrollTop;return"rtl"===W(r).direction&&(s+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:u}}(B(e));else if(F(t))r=function(e,t){const n=ne(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=j(e)?$(e):c(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=te(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return w(r)}function oe(e,t){const n=z(e);return!(n===t||!F(n)||q(n))&&("fixed"===W(n).position||oe(n,t))}function ae(e,t,n){const r=j(t),i=B(t),o="fixed"===n,a=ne(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const u=c(0);if(r||!r&&!o)if(("body"!==N(t)||U(i))&&(s=Q(t)),r){const e=ne(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=re(i));return{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function se(e,t){return j(e)&&"fixed"!==W(e).position?t?t(e):e.offsetParent:null}function ue(e,t){const n=I(e);if(!j(e))return n;let r=se(e,t);for(;r&&H(r)&&"static"===W(r).position;)r=se(r,t);return r&&("html"===N(r)||"body"===N(r)&&"static"===W(r).position&&!V(r))?n:r||function(e){let t=z(e);for(;j(t)&&!q(t);){if(V(t))return t;t=z(t)}return null}(e)||n}const ce={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=j(n),o=B(n);if(n===o)return t;let a={scrollLeft:0,scrollTop:0},s=c(1);const u=c(0);if((i||!i&&"fixed"!==r)&&(("body"!==N(n)||U(o))&&(a=Q(n)),j(n))){const e=ne(n);s=$(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+u.x,y:t.y*s.y-a.scrollTop*s.y+u.y}},getDocumentElement:B,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=K(e).filter((e=>F(e)&&"body"!==N(e))),i=null;const o="fixed"===W(e).position;let a=o?z(e):e;for(;F(a)&&!q(a);){const t=W(a),n=V(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||U(a)&&!n&&oe(e,a))?r=r.filter((e=>e!==a)):i=t,a=z(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=s[0],c=s.reduce(((e,n)=>{const r=ie(t,n,i);return e.top=a(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=a(r.left,e.left),e}),ie(t,u,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ue,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const i=this.getOffsetParent||ue,o=this.getDimensions;return{reference:ae(t,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return X(e)},getScale:$,isElement:F,isRTL:function(e){return"rtl"===W(e).direction}};function le(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:c="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:d=!1}=r,f=J(e),p=i||s?[...f?K(f):[],...K(t)]:[];p.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));const h=f&&l?function(e,t){let n,r=null;const i=B(e);function s(){clearTimeout(n),r&&r.disconnect(),r=null}return function c(l,d){void 0===l&&(l=!1),void 0===d&&(d=1),s();const{left:f,top:p,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const g={rootMargin:-u(p)+"px "+-u(i.clientWidth-(f+h))+"px "+-u(i.clientHeight-(p+m))+"px "+-u(f)+"px",threshold:a(0,o(1,d))||1};let v=!0;function y(e){const t=e[0].intersectionRatio;if(t!==d){if(!v)return c();t?c(!1,t):n=setTimeout((()=>{c(!1,1e-7)}),100)}v=!1}try{r=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(b){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),s}(f,n):null;let m,g=-1,v=null;c&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===f&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{v&&v.observe(t)}))),n()})),f&&!d&&v.observe(f),v.observe(t));let y=d?ne(e):null;return d&&function t(){const r=ne(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n();y=r,m=requestAnimationFrame(t)}(),n(),()=>{p.forEach((e=>{i&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),h&&h(),v&&v.disconnect(),v=null,d&&cancelAnimationFrame(m)}}const de=(e,t,n)=>{const r=new Map,i={platform:ce,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),u=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:d}=T(c,r,u),f=r,p={},h=0;for(let m=0;m({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"===typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?x({element:n.current,padding:r}).fn(t):{}:n?x({element:n,padding:r}).fn(t):{};var i}});var he="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function me(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!==r--;)if(!me(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!me(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ge(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ve(e,t){const n=ge(e);return Math.round(t*n)/n}function ye(e){const t=r.useRef(e);return he((()=>{t.current=e})),t}var be=n(75320),_e=n(85893),Ee=r.forwardRef(((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return(0,_e.jsx)(be.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,_e.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));Ee.displayName="Arrow";var Se=Ee,we=n(28771),Te=n(25360),Oe=n(79698),xe=n(9981),Ce=n(7546),Pe="Popper",[Ae,Le]=(0,Te.b)(Pe),[Re,De]=Ae(Pe),ke=e=>{const{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,_e.jsx)(Re,{scope:t,anchor:i,onAnchorChange:o,children:n})};ke.displayName=Pe;var Ne="PopperAnchor",Ie=r.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:i,...o}=e,a=De(Ne,n),s=r.useRef(null),u=(0,we.e)(t,s),c=r.useRef(null);return r.useEffect((()=>{const e=c.current;c.current=i?.current||s.current,e!==c.current&&a.onAnchorChange(c.current)})),i?null:(0,_e.jsx)(be.WV.div,{...o,ref:u})}));Ie.displayName=Ne;var Be="PopperContent",[Me,Fe]=Ae(Be),je=r.forwardRef(((e,t)=>{const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:b,..._}=e,E=De(Be,n),[S,w]=r.useState(null),T=(0,we.e)(t,(e=>w(e))),[O,x]=r.useState(null),P=(0,Ce.t)(O),A=P?.width??0,N=P?.height??0,I=i+("center"!==a?"-"+a:""),B="number"===typeof d?d:{top:0,right:0,bottom:0,left:0,...d},M=Array.isArray(l)?l:[l],F=M.length>0,j={padding:B,boundary:M.filter(Ve),altBoundary:F},{refs:G,floatingStyles:U,placement:H,isPositioned:V,middlewareData:Z}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:c,open:l}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(i);me(p,i)||h(i);const[m,g]=r.useState(null),[v,y]=r.useState(null),b=r.useCallback((e=>{e!=w.current&&(w.current=e,g(e))}),[g]),_=r.useCallback((e=>{e!==T.current&&(T.current=e,y(e))}),[y]),E=a||m,S=s||v,w=r.useRef(null),T=r.useRef(null),O=r.useRef(d),x=ye(c),C=ye(o),P=r.useCallback((()=>{if(!w.current||!T.current)return;const e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),de(w.current,T.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!me(O.current,t)&&(O.current=t,fe.flushSync((()=>{f(t)})))}))}),[p,t,n,C]);he((()=>{!1===l&&O.current.isPositioned&&(O.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[l]);const A=r.useRef(!1);he((()=>(A.current=!0,()=>{A.current=!1})),[]),he((()=>{if(E&&(w.current=E),S&&(T.current=S),E&&S){if(x.current)return x.current(E,S,P);P()}}),[E,S,P,x]);const L=r.useMemo((()=>({reference:w,floating:T,setReference:b,setFloating:_})),[b,_]),R=r.useMemo((()=>({reference:E,floating:S})),[E,S]),D=r.useMemo((()=>{const e={position:n,left:0,top:0};if(!R.floating)return e;const t=ve(R.floating,d.x),r=ve(R.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...ge(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,u,R.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:P,refs:L,elements:R,floatingStyles:D})),[d,P,L,R,D])}({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>le(...e,{animationFrame:"always"===v}),elements:{reference:E.anchor},middleware:[R({mainAxis:o+N,alignmentAxis:s}),c&&D({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?(void 0===q&&(q={}),{options:q,fn(e){const{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=p(q,e),c={x:t,y:n},l=y(r),d=g(l);let f=c[d],m=c[l];const v=p(a,e),b="number"===typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(s){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+b.mainAxis,n=i.reference[d]+i.reference[e]-b.mainAxis;fn&&(f=n)}if(u){var _,E;const e="y"===d?"width":"height",t=["top","left"].includes(h(r)),n=i.reference[l]-i.floating[e]+(t&&(null==(_=o.offset)?void 0:_[l])||0)+(t?0:b.crossAxis),a=i.reference[l]+i.reference[e]+(t?0:(null==(E=o.offset)?void 0:E[l])||0)-(t?b.crossAxis:0);ma&&(m=a)}return{[d]:f,[l]:m}}}):void 0,...j}),c&&C({...j}),k({...j,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),O&&pe({element:O,padding:u}),Ze({arrowWidth:A,arrowHeight:N}),m&&L({strategy:"referenceHidden",...j})]});var q;const[W,Q]=qe(H),z=(0,Oe.W)(b);(0,xe.b)((()=>{V&&z?.()}),[V,z]);const Y=Z.arrow?.x,K=Z.arrow?.y,X=0!==Z.arrow?.centerOffset,[J,$]=r.useState();return(0,xe.b)((()=>{S&&$(window.getComputedStyle(S).zIndex)}),[S]),(0,_e.jsx)("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:V?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,_e.jsx)(Me,{scope:n,placedSide:W,onArrowChange:x,arrowX:Y,arrowY:K,shouldHideArrow:X,children:(0,_e.jsx)(be.WV.div,{"data-side":W,"data-align":Q,..._,ref:T,style:{..._.style,animation:V?void 0:"none"}})})})}));je.displayName=Be;var Ge="PopperArrow",Ue={top:"bottom",right:"left",bottom:"top",left:"right"},He=r.forwardRef((function(e,t){const{__scopePopper:n,...r}=e,i=Fe(Ge,n),o=Ue[i.placedSide];return(0,_e.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,_e.jsx)(Se,{...r,ref:t,style:{...r.style,display:"block"}})})}));function Ve(e){return null!==e}He.displayName=Ge;var Ze=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,o=0!==i.arrow?.centerOffset,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[u,c]=qe(n),l={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+a/2,f=(i.arrow?.y??0)+s/2;let p="",h="";return"bottom"===u?(p=o?l:`${d}px`,h=-s+"px"):"top"===u?(p=o?l:`${d}px`,h=`${r.floating.height+s}px`):"right"===u?(p=-s+"px",h=o?l:`${f}px`):"left"===u&&(p=`${r.floating.width+s}px`,h=o?l:`${f}px`),{data:{x:p,y:h}}}});function qe(e){const[t,n="center"]=e.split("-");return[t,n]}var We=ke,Qe=Ie,ze=je,Ye=He},42651:function(e,t,n){"use strict";n.d(t,{h:function(){return u}});var r=n(67294),i=n(73935),o=n(75320),a=n(9981),s=n(85893),u=r.forwardRef(((e,t)=>{const{container:n,...u}=e,[c,l]=r.useState(!1);(0,a.b)((()=>l(!0)),[]);const d=n||c&&globalThis?.document?.body;return d?i.createPortal((0,s.jsx)(o.WV.div,{...u,ref:t}),d):null}));u.displayName="Portal"},29115:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var r=n(67294),i=n(28771),o=n(9981);var a=e=>{const{present:t,children:n}=e,a=function(e){const[t,n]=r.useState(),i=r.useRef(null),a=r.useRef(e),u=r.useRef("none"),c=e?"mounted":"unmounted",[l,d]=function(e,t){return r.useReducer(((e,n)=>t[e][n]??e),e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=s(i.current);u.current="mounted"===l?e:"none"}),[l]),(0,o.b)((()=>{const t=i.current,n=a.current;if(n!==e){const r=u.current,i=s(t);if(e)d("MOUNT");else if("none"===i||"none"===t?.display)d("UNMOUNT");else{d(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}a.current=e}}),[e,d]),(0,o.b)((()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,r=r=>{const o=s(i.current).includes(CSS.escape(r.animationName));if(r.target===t&&o&&(d("ANIMATION_END"),!a.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)}))}},o=e=>{e.target===t&&(u.current=s(i.current))};return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}d("ANIMATION_END")}),[t,d]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback((e=>{i.current=e?getComputedStyle(e):null,n(e)}),[])}}(t),u="function"===typeof n?n({present:a.isPresent}):r.Children.only(n),c=(0,i.e)(a.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(u));return"function"===typeof n||a.isPresent?r.cloneElement(u,{ref:c}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},75320:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return u}});var r=n(67294),i=n(73935),o=n(88426),a=n(85893),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{const n=(0,o.Z8)(`Primitive.${t}`),i=r.forwardRef(((e,r)=>{const{asChild:i,...o}=e,s=i?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...o,ref:r})}));return i.displayName=`Primitive.${t}`,{...e,[t]:i}}),{});function u(e,t){e&&i.flushSync((()=>e.dispatchEvent(t)))}},88426:function(e,t,n){"use strict";n.d(t,{Z8:function(){return a},fC:function(){return s},sA:function(){return l}});var r=n(67294),i=n(28771),o=n(85893);function a(e){const t=u(e),n=r.forwardRef(((e,n)=>{const{children:i,...a}=e,s=r.Children.toArray(i),u=s.find(d);if(u){const e=u.props.children,i=s.map((t=>t===u?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:t));return(0,o.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...a,ref:n,children:i})}));return n.displayName=`${e}.Slot`,n}var s=a("Slot");function u(e){const t=r.forwardRef(((e,t)=>{const{children:n,...o}=e;if(r.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),a=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{const t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(a.ref=t?(0,i.F)(t,e):e),r.cloneElement(n,a)}return r.Children.count(n)>1?r.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}var c=Symbol("radix.slottable");function l(e){const t=({children:e})=>(0,o.jsx)(o.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=c,t}function d(e){return r.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}},67626:function(e,t,n){"use strict";n.d(t,{fC:function(){return ee},l_:function(){return $},zt:function(){return J}});var r=n(67294),i=n(73935),o=n(36206),a=n(28771),s=n(65936),u=n(25360),c=n(46063),l=n(42651),d=n(29115),f=n(75320),p=n(79698),h=n(77342),m=n(9981),g=n(96219),v=n(85893),y="ToastProvider",[b,_,E]=(0,s.B)("Toast"),[S,w]=(0,u.b)("Toast",[E]),[T,O]=S(y),x=e=>{const{__scopeToast:t,label:n="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:a=50,children:s}=e,[u,c]=r.useState(null),[l,d]=r.useState(0),f=r.useRef(!1),p=r.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${y}\`. Expected non-empty \`string\`.`),(0,v.jsx)(b.Provider,{scope:t,children:(0,v.jsx)(T,{scope:t,label:n,duration:i,swipeDirection:o,swipeThreshold:a,toastCount:l,viewport:u,onViewportChange:c,onToastAdd:r.useCallback((()=>d((e=>e+1))),[]),onToastRemove:r.useCallback((()=>d((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:s})})};x.displayName=y;var C="ToastViewport",P=["F8"],A="toast.viewportPause",L="toast.viewportResume",R=r.forwardRef(((e,t)=>{const{__scopeToast:n,hotkey:i=P,label:o="Notifications ({hotkey})",...s}=e,u=O(C,n),l=_(n),d=r.useRef(null),p=r.useRef(null),h=r.useRef(null),m=r.useRef(null),g=(0,a.e)(t,m,u.onViewportChange),y=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=u.toastCount>0;r.useEffect((()=>{const e=e=>{0!==i.length&&i.every((t=>e[t]||e.code===t))&&m.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[i]),r.useEffect((()=>{const e=d.current,t=m.current;if(E&&e&&t){const n=()=>{if(!u.isClosePausedRef.current){const e=new CustomEvent(A);t.dispatchEvent(e),u.isClosePausedRef.current=!0}},r=()=>{if(u.isClosePausedRef.current){const e=new CustomEvent(L);t.dispatchEvent(e),u.isClosePausedRef.current=!1}},i=t=>{!e.contains(t.relatedTarget)&&r()},o=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",i),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",o),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",o),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[E,u.isClosePausedRef]);const S=r.useCallback((({tabbingDirection:e})=>{const t=l().map((t=>{const n=t.ref.current,r=[n,...K(n)];return"forwards"===e?r:r.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[l]);return r.useEffect((()=>{const e=m.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){const n=document.activeElement,r=t.shiftKey;if(t.target===e&&r)return void p.current?.focus();const i=S({tabbingDirection:r?"backwards":"forwards"}),o=i.findIndex((e=>e===n));X(i.slice(o+1))?t.preventDefault():r?p.current?.focus():h.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[l,S]),(0,v.jsxs)(c.I0,{ref:d,role:"region","aria-label":o.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&(0,v.jsx)(k,{ref:p,onFocusFromOutsideViewport:()=>{X(S({tabbingDirection:"forwards"}))}}),(0,v.jsx)(b.Slot,{scope:n,children:(0,v.jsx)(f.WV.ol,{tabIndex:-1,...s,ref:g})}),E&&(0,v.jsx)(k,{ref:h,onFocusFromOutsideViewport:()=>{X(S({tabbingDirection:"backwards"}))}})]})}));R.displayName=C;var D="ToastFocusProxy",k=r.forwardRef(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=O(D,n);return(0,v.jsx)(g.TX,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:e=>{const t=e.relatedTarget;!o.viewport?.contains(t)&&r()}})}));k.displayName=D;var N="Toast",I=r.forwardRef(((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:a,...s}=e,[u,c]=(0,h.T)({prop:r,defaultProp:i??!0,onChange:a,caller:N});return(0,v.jsx)(d.z,{present:n||u,children:(0,v.jsx)(F,{open:u,...s,ref:t,onClose:()=>c(!1),onPause:(0,p.W)(e.onPause),onResume:(0,p.W)(e.onResume),onSwipeStart:(0,o.Mj)(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:(0,o.Mj)(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)})),onSwipeCancel:(0,o.Mj)(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:(0,o.Mj)(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),c(!1)}))})})}));I.displayName=N;var[B,M]=S(N,{onClose(){}}),F=r.forwardRef(((e,t)=>{const{__scopeToast:n,type:s="foreground",duration:u,open:l,onClose:d,onEscapeKeyDown:h,onPause:m,onResume:g,onSwipeStart:y,onSwipeMove:_,onSwipeCancel:E,onSwipeEnd:S,...w}=e,T=O(N,n),[x,C]=r.useState(null),P=(0,a.e)(t,(e=>C(e))),R=r.useRef(null),D=r.useRef(null),k=u||T.duration,I=r.useRef(0),M=r.useRef(k),F=r.useRef(0),{onToastAdd:G,onToastRemove:U}=T,H=(0,p.W)((()=>{const e=x?.contains(document.activeElement);e&&T.viewport?.focus(),d()})),V=r.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(F.current),I.current=(new Date).getTime(),F.current=window.setTimeout(H,e))}),[H]);r.useEffect((()=>{const e=T.viewport;if(e){const t=()=>{V(M.current),g?.()},n=()=>{const e=(new Date).getTime()-I.current;M.current=M.current-e,window.clearTimeout(F.current),m?.()};return e.addEventListener(A,n),e.addEventListener(L,t),()=>{e.removeEventListener(A,n),e.removeEventListener(L,t)}}}),[T.viewport,k,m,g,V]),r.useEffect((()=>{l&&!T.isClosePausedRef.current&&V(k)}),[l,k,T.isClosePausedRef,V]),r.useEffect((()=>(G(),()=>U())),[G,U]);const Z=r.useMemo((()=>x?Q(x):null),[x]);return T.viewport?(0,v.jsxs)(v.Fragment,{children:[Z&&(0,v.jsx)(j,{__scopeToast:n,role:"status","aria-live":"foreground"===s?"assertive":"polite",children:Z}),(0,v.jsx)(B,{scope:n,onClose:H,children:i.createPortal((0,v.jsx)(b.ItemSlot,{scope:n,children:(0,v.jsx)(c.fC,{asChild:!0,onEscapeKeyDown:(0,o.Mj)(h,(()=>{T.isFocusedToastEscapeKeyDownRef.current||H(),T.isFocusedToastEscapeKeyDownRef.current=!1})),children:(0,v.jsx)(f.WV.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":T.swipeDirection,...w,ref:P,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,o.Mj)(e.onKeyDown,(e=>{"Escape"===e.key&&(h?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(T.isFocusedToastEscapeKeyDownRef.current=!0,H()))})),onPointerDown:(0,o.Mj)(e.onPointerDown,(e=>{0===e.button&&(R.current={x:e.clientX,y:e.clientY})})),onPointerMove:(0,o.Mj)(e.onPointerMove,(e=>{if(!R.current)return;const t=e.clientX-R.current.x,n=e.clientY-R.current.y,r=Boolean(D.current),i=["left","right"].includes(T.swipeDirection),o=["left","up"].includes(T.swipeDirection)?Math.min:Math.max,a=i?o(0,t):0,s=i?0:o(0,n),u="touch"===e.pointerType?10:2,c={x:a,y:s},l={originalEvent:e,delta:c};r?(D.current=c,z("toast.swipeMove",_,l,{discrete:!1})):Y(c,T.swipeDirection,u)?(D.current=c,z("toast.swipeStart",y,l,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(n)>u)&&(R.current=null)})),onPointerUp:(0,o.Mj)(e.onPointerUp,(e=>{const t=D.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),D.current=null,R.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};Y(t,T.swipeDirection,T.swipeThreshold)?z("toast.swipeEnd",S,r,{discrete:!0}):z("toast.swipeCancel",E,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),T.viewport)})]}):null})),j=e=>{const{__scopeToast:t,children:n,...i}=e,o=O(N,t),[a,s]=r.useState(!1),[u,c]=r.useState(!1);return function(e=(()=>{})){const t=(0,p.W)(e);(0,m.b)((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>s(!0))),r.useEffect((()=>{const e=window.setTimeout((()=>c(!0)),1e3);return()=>window.clearTimeout(e)}),[]),u?null:(0,v.jsx)(l.h,{asChild:!0,children:(0,v.jsx)(g.TX,{...i,children:a&&(0,v.jsxs)(v.Fragment,{children:[o.label," ",n]})})})},G=r.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return(0,v.jsx)(f.WV.div,{...r,ref:t})}));G.displayName="ToastTitle";var U=r.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return(0,v.jsx)(f.WV.div,{...r,ref:t})}));U.displayName="ToastDescription";var H="ToastAction",V=r.forwardRef(((e,t)=>{const{altText:n,...r}=e;return n.trim()?(0,v.jsx)(W,{altText:n,asChild:!0,children:(0,v.jsx)(q,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${H}\`. Expected non-empty \`string\`.`),null)}));V.displayName=H;var Z="ToastClose",q=r.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e,i=M(Z,n);return(0,v.jsx)(W,{asChild:!0,children:(0,v.jsx)(f.WV.button,{type:"button",...r,ref:t,onClick:(0,o.Mj)(e.onClick,i.onClose)})})}));q.displayName=Z;var W=r.forwardRef(((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return(0,v.jsx)(f.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})}));function Q(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){return e.nodeType===e.ELEMENT_NODE}(e)){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...Q(e))}})),t}function z(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,f.jH)(i,o):i.dispatchEvent(o)}var Y=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return"left"===t||"right"===t?o&&r>n:!o&&i>n};function K(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function X(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var J=x,$=R,ee=I},66908:function(e,t,n){"use strict";n.d(t,{Eh:function(){return K},VY:function(){return Y},fC:function(){return W},h_:function(){return z},xz:function(){return Q},zt:function(){return q}});var r=n(67294),i=n(36206),o=n(28771),a=n(25360),s=n(46063),u=n(91276),c=n(48521),l=n(42651),d=n(29115),f=n(75320),p=n(88426),h=n(77342),m=n(96219),g=n(85893),[v,y]=(0,a.b)("Tooltip",[c.D7]),b=(0,c.D7)(),_="TooltipProvider",E=700,S="tooltip.open",[w,T]=v(_),O=e=>{const{__scopeTooltip:t,delayDuration:n=E,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=e,s=r.useRef(!0),u=r.useRef(!1),c=r.useRef(0);return r.useEffect((()=>{const e=c.current;return()=>window.clearTimeout(e)}),[]),(0,g.jsx)(w,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:r.useCallback((()=>{window.clearTimeout(c.current),s.current=!1}),[]),onClose:r.useCallback((()=>{window.clearTimeout(c.current),c.current=window.setTimeout((()=>s.current=!0),i)}),[i]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback((e=>{u.current=e}),[]),disableHoverableContent:o,children:a})};O.displayName=_;var x="Tooltip",[C,P]=v(x),A=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:o,onOpenChange:a,disableHoverableContent:s,delayDuration:l}=e,d=T(x,e.__scopeTooltip),f=b(t),[p,m]=r.useState(null),v=(0,u.M)(),y=r.useRef(0),_=s??d.disableHoverableContent,E=l??d.delayDuration,w=r.useRef(!1),[O,P]=(0,h.T)({prop:i,defaultProp:o??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(S))):d.onClose(),a?.(e)},caller:x}),A=r.useMemo((()=>O?w.current?"delayed-open":"instant-open":"closed"),[O]),L=r.useCallback((()=>{window.clearTimeout(y.current),y.current=0,w.current=!1,P(!0)}),[P]),R=r.useCallback((()=>{window.clearTimeout(y.current),y.current=0,P(!1)}),[P]),D=r.useCallback((()=>{window.clearTimeout(y.current),y.current=window.setTimeout((()=>{w.current=!0,P(!0),y.current=0}),E)}),[E,P]);return r.useEffect((()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)}),[]),(0,g.jsx)(c.fC,{...f,children:(0,g.jsx)(C,{scope:t,contentId:v,open:O,stateAttribute:A,trigger:p,onTriggerChange:m,onTriggerEnter:r.useCallback((()=>{d.isOpenDelayedRef.current?D():L()}),[d.isOpenDelayedRef,D,L]),onTriggerLeave:r.useCallback((()=>{_?R():(window.clearTimeout(y.current),y.current=0)}),[R,_]),onOpen:L,onClose:R,disableHoverableContent:_,children:n})})};A.displayName=x;var L="TooltipTrigger",R=r.forwardRef(((e,t)=>{const{__scopeTooltip:n,...a}=e,s=P(L,n),u=T(L,n),l=b(n),d=r.useRef(null),p=(0,o.e)(t,d,s.onTriggerChange),h=r.useRef(!1),m=r.useRef(!1),v=r.useCallback((()=>h.current=!1),[]);return r.useEffect((()=>()=>document.removeEventListener("pointerup",v)),[v]),(0,g.jsx)(c.ee,{asChild:!0,...l,children:(0,g.jsx)(f.WV.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:p,onPointerMove:(0,i.Mj)(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(m.current||u.isPointerInTransitRef.current||(s.onTriggerEnter(),m.current=!0))})),onPointerLeave:(0,i.Mj)(e.onPointerLeave,(()=>{s.onTriggerLeave(),m.current=!1})),onPointerDown:(0,i.Mj)(e.onPointerDown,(()=>{s.open&&s.onClose(),h.current=!0,document.addEventListener("pointerup",v,{once:!0})})),onFocus:(0,i.Mj)(e.onFocus,(()=>{h.current||s.onOpen()})),onBlur:(0,i.Mj)(e.onBlur,s.onClose),onClick:(0,i.Mj)(e.onClick,s.onClose)})})}));R.displayName=L;var D="TooltipPortal",[k,N]=v(D,{forceMount:void 0}),I=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=P(D,t);return(0,g.jsx)(k,{scope:t,forceMount:n,children:(0,g.jsx)(d.z,{present:n||o.open,children:(0,g.jsx)(l.h,{asChild:!0,container:i,children:r})})})};I.displayName=D;var B="TooltipContent",M=r.forwardRef(((e,t)=>{const n=N(B,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=P(B,e.__scopeTooltip);return(0,g.jsx)(d.z,{present:r||a.open,children:a.disableHoverableContent?(0,g.jsx)(H,{side:i,...o,ref:t}):(0,g.jsx)(F,{side:i,...o,ref:t})})})),F=r.forwardRef(((e,t)=>{const n=P(B,e.__scopeTooltip),i=T(B,e.__scopeTooltip),a=r.useRef(null),s=(0,o.e)(t,a),[u,c]=r.useState(null),{trigger:l,onClose:d}=n,f=a.current,{onPointerInTransitChange:p}=i,h=r.useCallback((()=>{c(null),p(!1)}),[p]),m=r.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),o=function(e){const t=e.slice();return t.sort(((e,t)=>e.xt.x?1:e.yt.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())]);c(o),p(!0)}),[p]);return r.useEffect((()=>()=>h()),[h]),r.useEffect((()=>{if(l&&f){const e=e=>m(e,f),t=e=>m(e,l);return l.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[l,f,m,h]),r.useEffect((()=>{if(u){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||f?.contains(t),i=!function(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;or!==d>r&&n<(l-u)*(r-c)/(d-c)+u&&(i=!i)}return i}(n,u);r?h():i&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[l,f,u,d,h]),(0,g.jsx)(H,{...e,ref:s})})),[j,G]=v(x,{isInside:!1}),U=(0,p.sA)("TooltipContent"),H=r.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:u,...l}=e,d=P(B,n),f=b(n),{onClose:p}=d;return r.useEffect((()=>(document.addEventListener(S,p),()=>document.removeEventListener(S,p))),[p]),r.useEffect((()=>{if(d.trigger){const e=e=>{const t=e.target;t?.contains(d.trigger)&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[d.trigger,p]),(0,g.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,g.jsxs)(c.VY,{"data-state":d.stateAttribute,...f,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(U,{children:i}),(0,g.jsx)(j,{scope:n,isInside:!0,children:(0,g.jsx)(m.fC,{id:d.contentId,role:"tooltip",children:o||i})})]})})}));M.displayName=B;var V="TooltipArrow",Z=r.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,i=b(n);return G(V,n).isInside?null:(0,g.jsx)(c.Eh,{...i,...r,ref:t})}));Z.displayName=V;var q=O,W=A,Q=R,z=I,Y=M,K=Z},79698:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(67294);function i(e){const t=r.useRef(e);return r.useEffect((()=>{t.current=e})),r.useMemo((()=>(...e)=>t.current?.(...e)),[])}},77342:function(e,t,n){"use strict";var r;n.d(t,{T:function(){return s}});var i=n(67294),o=n(9981),a=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.b;function s({prop:e,defaultProp:t,onChange:n=(()=>{}),caller:r}){const[o,s,u]=function({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return a((()=>{s.current=t}),[t]),i.useEffect((()=>{o.current!==n&&(s.current?.(n),o.current=n)}),[n,o]),[n,r,s]}({defaultProp:t,onChange:n}),c=void 0!==e,l=c?e:o;{const t=i.useRef(void 0!==e);i.useEffect((()=>{const e=t.current;if(e!==c){const t=e?"controlled":"uncontrolled",n=c?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c}),[c,r])}const d=i.useCallback((t=>{if(c){const n=function(e){return"function"===typeof e}(t)?t(e):t;n!==e&&u.current?.(n)}else s(t)}),[c,e,s,u]);return[l,d]}Symbol("RADIX:SYNC_STATE")},9981:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var r=n(67294),i=globalThis?.document?r.useLayoutEffect:()=>{}},7546:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});var r=n(67294),i=n(9981);function o(e){const[t,n]=r.useState(void 0);return(0,i.b)((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let i,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}},96219:function(e,t,n){"use strict";n.d(t,{C2:function(){return a},TX:function(){return s},fC:function(){return u}});var r=n(67294),i=n(75320),o=n(85893),a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=r.forwardRef(((e,t)=>(0,o.jsx)(i.WV.span,{...e,ref:t,style:{...a,...e.style}})));s.displayName="VisuallyHidden";var u=s},2379:function(e,t,n){"use strict";function r(){}n.d(t,{e:function(){return i}});class i{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},99869:function(e,t,n){"use strict";function r(){}n.d(t,{k:function(){return u}});const i=r,o="undefined"!==typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},a="undefined"!==typeof WeakMap?WeakMap:Map,s="undefined"!==typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:r,unregister:r}};class u{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new a,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new o(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new s(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},75028:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});const r=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,(e=>t=t.getChildTrie(e))),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n{const t=a.call(e);return c[t]||(c[t]=t.slice(8,-1).toLowerCase())});var c;const l=e=>(e=e.toLowerCase(),t=>u(t)===e),d=e=>t=>typeof t===e,{isArray:f}=Array,p=d("undefined");const h=l("ArrayBuffer");const m=d("string"),g=d("function"),v=d("number"),y=e=>null!==e&&"object"===typeof e,b=e=>{if("object"!==u(e))return!1;const t=s(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_=l("Date"),E=l("File"),S=l("Blob"),w=l("FileList"),T=l("URLSearchParams"),[O,x,C,P]=["ReadableStream","Request","Response","Headers"].map(l);function A(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let r,i;if("object"!==typeof e&&(e=[e]),f(e))for(r=0,i=e.length;r0;)if(r=n[i],t===r.toLowerCase())return r;return null}const R="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,D=e=>!p(e)&&e!==R;const k=(N="undefined"!==typeof Uint8Array&&s(Uint8Array),e=>N&&e instanceof N);var N;const I=l("HTMLFormElement"),B=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),M=l("RegExp"),F=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};A(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)};const j=l("AsyncFunction"),G=((e,t)=>{return e?setImmediate:t?(n=`axios@${Math.random()}`,r=[],R.addEventListener("message",(({source:e,data:t})=>{e===R&&t===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),R.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,g(R.postMessage)),U="undefined"!==typeof queueMicrotask?queueMicrotask.bind(R):"undefined"!==typeof o&&o.nextTick||G;var H={isArray:f,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=u(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:m,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:b,isReadableStream:O,isRequest:x,isResponse:C,isHeaders:P,isUndefined:p,isDate:_,isFile:E,isBlob:S,isRegExp:M,isFunction:g,isStream:e=>y(e)&&g(e.pipe),isURLSearchParams:T,isTypedArray:k,isFileList:w,forEach:A,merge:function e(){const{caseless:t}=D(this)&&this||{},n={},r=(r,i)=>{const o=t&&L(n,i)||i;b(n[o])&&b(r)?n[o]=e(n[o],r):b(r)?n[o]=e({},r):f(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i(A(t,((t,r)=>{n&&g(t)?e[r]=i(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const u={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||u[a]||(t[a]=e[a],u[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:u,kindOfTest:l,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(f(e))return e;let t=e.length;if(!v(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:B,hasOwnProp:B,reduceDescriptors:F,freezeMethods:e=>{F(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return f(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:L,global:R,isContextDefined:D,isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=f(e)?[]:{};return A(e,((e,t)=>{const o=n(e,r+1);!p(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:j,isThenable:e=>e&&(y(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:G,asap:U};function V(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}H.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Z=V.prototype,q={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{q[e]={value:e}})),Object.defineProperties(V,q),Object.defineProperty(Z,"isAxiosError",{value:!0}),V.from=(e,t,n,r,i,o)=>{const a=Object.create(Z);return H.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),V.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var W=V,Q=n(48764).Buffer;function z(e){return H.isPlainObject(e)||H.isArray(e)}function Y(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function K(e,t,n){return e?e.concat(t).map((function(e,t){return e=Y(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const X=H.toFlatObject(H,{},null,(function(e){return/^is[A-Z]/.test(e)}));var J=function(e,t,n){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!H.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(H.isDate(e))return e.toISOString();if(!s&&H.isBlob(e))throw new W("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(e)||H.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Q.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"===typeof e)if(H.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(H.isArray(e)&&function(e){return H.isArray(e)&&!e.some(z)}(e)||(H.isFileList(e)||H.endsWith(n,"[]"))&&(s=H.toArray(e)))return n=Y(n),s.forEach((function(e,r){!H.isUndefined(e)&&null!==e&&t.append(!0===a?K([n],r,o):null===a?n:n+"[]",u(e))})),!1;return!!z(e)||(t.append(K(i,n,o),u(e)),!1)}const l=[],d=Object.assign(X,{defaultVisitor:c,convertValue:u,isVisitable:z});if(!H.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!H.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),H.forEach(n,(function(n,o){!0===(!(H.isUndefined(n)||null===n)&&i.call(t,n,H.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),l.pop()}}(e),t};function $(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ee(e,t){this._pairs=[],e&&J(e,this,t)}const te=ee.prototype;te.append=function(e,t){this._pairs.push([e,t])},te.toString=function(e){const t=e?function(t){return e.call(this,t,$)}:$;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ne=ee;function re(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,n){if(!t)return e;const r=n&&n.encode||re;H.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):H.isURLSearchParams(t)?t.toString():new ne(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var oe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ae={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},se={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:ne,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const ue="undefined"!==typeof window&&"undefined"!==typeof document,ce="object"===typeof navigator&&navigator||void 0,le=ue&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),de="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,fe=ue&&window.location.href||"http://localhost";var pe={...r,...se};var he=function(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&H.isArray(r)?r.length:o,s)return H.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&H.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&H.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r{t(function(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const me={transitional:ae,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=H.isObject(e);i&&H.isHTMLForm(e)&&(e=new FormData(e));if(H.isFormData(e))return r?JSON.stringify(he(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return J(e,new pe.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return pe.isNode&&H.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=H.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return J(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||me.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(n){if("SyntaxError"===i.name)throw W.from(i,W.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],(e=>{me.headers[e]={}}));var ge=me;const ve=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const ye=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function _e(e){return!1===e||null==e?e:H.isArray(e)?e.map(_e):String(e)}function Ee(e,t,n,r,i){return H.isFunction(r)?r.call(this,t,n):(i&&(t=n),H.isString(t)?H.isString(r)?-1!==t.indexOf(r):H.isRegExp(r)?r.test(t):void 0:void 0)}class Se{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=be(t);if(!i)throw new Error("header name must be a non-empty string");const o=H.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=_e(e))}const o=(e,t)=>H.forEach(e,((e,n)=>i(e,n,t)));if(H.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(H.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&ve[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(H.isHeaders(e))for(const[a,s]of e.entries())i(s,a,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=be(e)){const n=H.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(H.isFunction(t))return t.call(this,e,n);if(H.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const n=H.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ee(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=be(e)){const i=H.findKey(n,e);!i||t&&!Ee(0,n[i],i,t)||(delete n[i],r=!0)}}return H.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Ee(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return H.forEach(this,((r,i)=>{const o=H.findKey(n,i);if(o)return t[o]=_e(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=_e(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return H.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&H.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ye]=this[ye]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=be(e);t[r]||(!function(e,t){const n=H.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return H.isArray(e)?e.forEach(r):r(e),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(Se.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),H.freezeMethods(Se);var we=Se;function Te(e,t){const n=this||ge,r=t||n,i=we.from(r.headers);let o=r.data;return H.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function Oe(e){return!(!e||!e.__CANCEL__)}function xe(e,t,n){W.call(this,null==e?"canceled":e,W.ERR_CANCELED,t,n),this.name="CanceledError"}H.inherits(xe,W,{__CANCEL__:!0});var Ce=xe;function Pe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Ae=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const u=Date.now(),c=r[a];i||(i=u),n[o]=s,r[o]=u;let l=a,d=0;for(;l!==o;)d+=n[l++],l%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]};const Re=(e,t,n=3)=>{let r=0;const i=Ae(50,250);return Le((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,u=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&o<=a?(a-o)/u:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},De=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ke=e=>(...t)=>H.asap((()=>e(...t)));var Ne=pe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,pe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,Ie=pe.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];H.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),H.isString(r)&&a.push("path="+r),H.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Be(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Me=e=>e instanceof we?{...e}:e;function Fe(e,t){t=t||{};const n={};function r(e,t,n,r){return H.isPlainObject(e)&&H.isPlainObject(t)?H.merge.call({caseless:r},e,t):H.isPlainObject(t)?H.merge({},t):H.isArray(t)?t.slice():t}function i(e,t,n,i){return H.isUndefined(t)?H.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!H.isUndefined(t))return r(void 0,t)}function a(e,t){return H.isUndefined(t)?H.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>i(Me(e),Me(t),0,!0)};return H.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=u[r]||i,a=o(e[r],t[r],r);H.isUndefined(a)&&o!==s||(n[r]=a)})),n}var je=e=>{const t=Fe({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:u}=t;if(t.headers=s=we.from(s),t.url=ie(Be(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&s.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),H.isFormData(r))if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(pe.hasStandardBrowserEnv&&(i&&H.isFunction(i)&&(i=i(t)),i||!1!==i&&Ne(t.url))){const e=o&&a&&Ie.read(a);e&&s.set(o,e)}return t};var Ge="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=je(e);let i=r.data;const o=we.from(r.headers).normalize();let a,s,u,c,l,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=we.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Pe((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new W("Request aborted",W.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new W("Network Error",W.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||ae;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new W(t,i.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&H.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),H.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([u,l]=Re(p,!0),m.addEventListener("progress",u)),f&&m.upload&&([s,c]=Re(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ce(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===pe.protocols.indexOf(v)?n(new W("Unsupported protocol "+v+":",W.ERR_BAD_REQUEST,e)):m.send(i||null)}))};var Ue=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof W?t:new Ce(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new W(`timeout ${t} of ms exceeded`,W.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>H.asap(a),s}};const He=function*(e,t){let n=e.byteLength;if(!t||n{const i=async function*(e,t){for await(const n of Ve(e))yield*He(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},qe="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,We=qe&&"function"===typeof ReadableStream,Qe=qe&&("function"===typeof TextEncoder?(ze=new TextEncoder,e=>ze.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var ze;const Ye=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},Ke=We&&Ye((()=>{let e=!1;const t=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Xe=We&&Ye((()=>H.isReadableStream(new Response("").body))),Je={stream:Xe&&(e=>e.body)};var $e;qe&&($e=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Je[e]&&(Je[e]=H.isFunction($e[e])?t=>t[e]():(t,n)=>{throw new W(`Response type '${e}' is not supported`,W.ERR_NOT_SUPPORT,n)})})));const et=async(e,t)=>{const n=H.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(H.isBlob(e))return e.size;if(H.isSpecCompliantForm(e)){const t=new Request(pe.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return H.isArrayBufferView(e)||H.isArrayBuffer(e)?e.byteLength:(H.isURLSearchParams(e)&&(e+=""),H.isString(e)?(await Qe(e)).byteLength:void 0)})(t):n};const tt={http:null,xhr:Ge,fetch:qe&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:u,responseType:c,headers:l,withCredentials:d="same-origin",fetchOptions:f}=je(e);c=c?(c+"").toLowerCase():"text";let p,h=Ue([i,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(u&&Ke&&"get"!==n&&"head"!==n&&0!==(g=await et(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(H.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=De(g,Re(ke(u)));r=Ze(n.body,65536,e,t)}}H.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(p);const a=Xe&&("stream"===c||"response"===c);if(Xe&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=H.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&De(t,Re(ke(s),!0))||[];o=new Response(Ze(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await Je[H.findKey(Je,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Pe(t,n,{data:v,headers:we.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,e,p),{cause:v.cause||v});throw W.from(v,v&&v.code,e,p)}})};H.forEach(tt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const nt=e=>`- ${e}`,rt=e=>H.isFunction(e)||null===e||!1===e;var it=e=>{e=H.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(nt).join("\n"):" "+nt(e[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ot(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function at(e){ot(e),e.headers=we.from(e.headers),e.data=Te.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return it(e.adapter||ge.adapter)(e).then((function(t){return ot(e),t.data=Te.call(e,e.transformResponse,t),t.headers=we.from(t.headers),t}),(function(t){return Oe(t)||(ot(e),t&&t.response&&(t.response.data=Te.call(e,e.transformResponse,t.response),t.response.headers=we.from(t.response.headers))),Promise.reject(t)}))}const st="1.8.4",ut={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ut[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ct={};ut.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new W(r(i," has been removed"+(t?" in "+t:"")),W.ERR_DEPRECATED);return t&&!ct[i]&&(ct[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},ut.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var lt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new W("option "+o+" must be "+n,W.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new W("Unknown option "+o,W.ERR_BAD_OPTION)}},validators:ut};const dt=lt.validators;class ft{constructor(e){this.defaults=e,this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Fe(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&<.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),null!=r&&(H.isFunction(r)?t.paramsSerializer={serialize:r}:lt.assertOptions(r,{encode:dt.function,serialize:dt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lt.assertOptions(t,{baseUrl:dt.spelling("baseURL"),withXsrfToken:dt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&H.merge(i.common,i[t.method]);i&&H.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=we.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const u=[];let c;this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)}));let l,d=0;if(!s){const e=[at.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,u),l=e.length,c=Promise.resolve(t);d{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new Ce(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new ht((function(t){e=t})),cancel:e}}}var mt=ht;const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach((([e,t])=>{gt[t]=e}));var vt=gt;const yt=function e(t){const n=new pt(t),r=i(pt.prototype.request,n);return H.extend(r,pt.prototype,n,{allOwnKeys:!0}),H.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Fe(t,n))},r}(ge);yt.Axios=pt,yt.CanceledError=Ce,yt.CancelToken=mt,yt.isCancel=Oe,yt.VERSION=st,yt.toFormData=J,yt.AxiosError=W,yt.Cancel=yt.CanceledError,yt.all=function(e){return Promise.all(e)},yt.spread=function(e){return function(t){return e.apply(null,t)}},yt.isAxiosError=function(e){return H.isObject(e)&&!0===e.isAxiosError},yt.mergeConfig=Fe,yt.AxiosHeaders=we,yt.formToJSON=e=>he(H.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=it,yt.HttpStatusCode=vt,yt.default=yt;var bt=yt},14158:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{_:function(){return E}});var i=n(99763);function o(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,o=t+1;(n=r.exec(e.body))&&n.index120){for(var h=Math.floor(l/80),m=l%80,g=[],v=0;v0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==s&&void 0!==s&&s.stack?(Object.defineProperty(m(y),"stack",{value:s.stack,writable:!0,configurable:!0}),h(y)):(Error.captureStackTrace?Error.captureStackTrace(m(y),l):Object.defineProperty(m(y),"stack",{value:Error().stack,writable:!0,configurable:!0}),y)}return t=l,(n=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;na)return"[Array]";for(var n=Math.min(o,e.length),r=e.length-n,i=[],s=0;s1&&i.push("... ".concat(r," more items"));return"["+i.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>a)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var n=e.constructor.name;if("string"===typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(n){return n+": "+u(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},45695:function(e,t){"use strict";var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=n},29749:function(e,t,n){"use strict";n.d(t,{Ye:function(){return o},WU:function(){return a},UG:function(){return s}});var r=n(45695);function i(e){var t=e.prototype.toJSON;"function"===typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,r.Z&&(e.prototype[r.Z]=t)}var o=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var a=function(){function e(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function s(e){return null!=e&&"string"===typeof e.kind}i(a)},87392:function(e,t,n){"use strict";function r(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,o=null,a=0;ao&&i(t[a-1]);)--a;return t.slice(o,a).join("\n")}function i(e){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a="\\"===e[e.length-1],s=!r||o||a||n,u="";return!s||r&&i||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,s&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}n.d(t,{LZ:function(){return o},W7:function(){return r}})},97359:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"})},77304:function(e,t,n){"use strict";n.d(t,{$_:function(){return a},Vn:function(){return s}});var r=n(25821),i=n(29749),o={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},a=Object.freeze({});function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=void 0,c=Array.isArray(e),l=[e],d=-1,f=[],p=void 0,h=void 0,m=void 0,g=[],v=[],y=e;do{var b=++d===l.length,_=b&&0!==f.length;if(b){if(h=0===v.length?void 0:g[g.length-1],p=m,m=v.pop(),_){if(c)p=p.slice();else{for(var E={},S=0,w=Object.keys(p);S2&&void 0!==arguments[2]?arguments[2]:[];return(0,o.x)(n).filter(a).map((function(e){return"".concat(t,"--").concat(e)})).map((function(t){return s(e,t)}))},c=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return[s(e,t)].concat((0,i.Z)(u(e,t,n)))},l=function e(t,n){return"object"===typeof n?Object.entries(n).map((function(n){var i=(0,r.Z)(n,2),o=i[0],a=i[1],s="_"===o?"":"".concat(o,"--"),u=e(t,a);return"".concat(s).concat(u)})):n?["".concat(t,"-").concat(n)]:[]},d=function e(t,n){if("object"===typeof n&&!Array.isArray(n))return Object.entries(n).flatMap((function(n){var i=(0,r.Z)(n,2),o=i[0],a=i[1],s="_"===o?"":"".concat(o,"--");return e(t,a).map((function(e){return"".concat(s).concat(e)}))}));if(n){var i=function(e){var t=Array.isArray(e)?e:[e],n=(0,r.Z)(t,4),i=n[0],o=n[1],a=n[2],s=n[3],u=null!==o&&void 0!==o?o:i;return[i,u,null!==a&&void 0!==a?a:i,null!==s&&void 0!==s?s:u]}(n),o=(0,r.Z)(i,4),a=o[0],s=o[1],u=o[2],c=o[3];return["".concat(t,"-top-").concat(a),"".concat(t,"-right-").concat(s),"".concat(t,"-bottom-").concat(u),"".concat(t,"-left-").concat(c)]}return[]},f=function e(t,n,i){if("object"===typeof i){if(void 0===t)throw new Error('"ifTrue" param is mandatory in responsive props');if(void 0===n)throw new Error('"ifFalse" param is mandatory in responsive props');return Object.entries(i).map((function(i){var o=(0,r.Z)(i,2),a=o[0],s=o[1],u="_"===a?"":"".concat(a,"--"),c=e(t,n,s);return"".concat(u).concat(c)}))}return i&&void 0!==t?["".concat(t)]:!1===i&&void 0!==n?["".concat(n)]:[]}},4710:function(e,t,n){"use strict";n.d(t,{J:function(){return d},_:function(){return f}});var r=n(90116),i=n(59499),o=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,a=["noreferrer","noopener"],s=["nofollow"],u={target:"_blank"};function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0;(0,u.Z)(this,e),this.styles=t,this.name=n,this.extend=r,this.tokens=i}return(0,c.Z)(e,[{key:"inheritedToken",value:function(e,t){var n;return this.extend.find((function(r){return void 0!==(n=r.getToken(e,t))})),n}},{key:"colorSchemeToken",value:function(e,t){var n,r=e[A.AL],i=this.tokens&&this.tokens["t".concat(r)];if(i)return t.getNames().find((function(e){return void 0!==(n=i[e])})),n}},{key:"getClassName",value:function(){var t=this.extend.map((function(e){return e.getClassName()})),n=(0,l.Yi)(this.styles,e.PREFIX+this.name);return[].concat((0,s.Z)(t),[n]).join(" ")}},{key:"getStyles",value:function(){var e=(0,L.x)(this.extend.map((function(e){return e.getStyles()})))||[];return[].concat((0,s.Z)(e),[this.styles])}},{key:"getToken",value:function(e,t){var n=e[A.AL],r=e[A.Ei],i=this.tokens&&this.tokens["t".concat(n)],o=r?this.colorSchemeToken(e,t):i;return void 0===o&&this.extend?this.inheritedToken(e,t):o}}]),e}();R.PREFIX="ds-";var D=".ds-tokyo-ui__PkpFv{--42e7c5:Figtree-NotoSans;--51aa6f:Figtree,Noto Sans,sans-serif;--99b156:Platform-NotoSans;--94de40:Platform,Noto Sans,sans-serif;--785e90:#fff;--e69490:#f4f4f8;--08d599:#ebebf1;--d509f9:#121117;--e76fbe:#1c1b23;--948fbe:#302f3b;--500977:#ff7aac;--79b619:#ffe5f0;--4c36a1:#d13d76;--4655ff:#d8f8f2;--b672cf:#067560;--cb4237:#cce2ff;--09357a:#0450b4;--2a7ee8:#fff5c2;--97d56d:#966208;--fb576a:#ffe2e0;--6f622b:#a3120a;--a63697:rgba(18,17,23,.56);--8a41f5:#dcdce5;--b599a6:#19ac91;--2c31d4:#c5c5d1;--8d5131:8px;--a8b89c:#6a697c;--04daeb:#dcdce5;--e05289:#a8a8b6;--99d31f:2px;--c0b12c:2px;--30ac95:rgba(71,71,133,.06);--097d14:rgba(92,92,138,.12);--0aee7b:8px;--5eeb28:4px;--ea1746:#121117;--0bbea4:rgba(71,71,133,.06);--33e933:rgba(92,92,138,.12);--f13872:underline;--3d8452:56px;--c82a41:48px;--5eca09:40px;--088917:16px;--e1d8e9:12px;--da30a3:8px;--79f043:28px;--aebd97:24px;--d17b90:16px;--56d354:18px;--c84e20:18px;--f20194:14px;--dc9bea:0.005em;--ad1bd2:0.005em;--9663af:0.0125em;--4c2ede:24px;--5c2532:24px;--50cd80:16px;--dad9ec:4px;--c4d145:0.5px;--54e6b5:rgba(18,17,23,.06);--8517a6:4px;--86aa8e:24px;--32bbec:32px;--950ab5:48px;--cc5dc7:64px;--796da2:96px;--329ba7:160px;--7d9a55:12px;--7d3ab7:12px;--523f7d:16px;--3e174a:4px;--bd3f63:4px;--23067e:8px;--0cf20e:2px;--4a76d7:2px;--e5a39b:#fff;--a95a51:#c5c5d1;--62b71e:#19ac91;--93d4a2:4px;--956cdb:#121117;--6e40a7:#fff;--8feee9:2px;--25e959:2px;--0d8aa3:4px;--62f094:8px;--796ab1:8px;--3d1d33:8px;--eba8f8:#ffe5f0;--694afa:#d8f8f2;--22f022:#ffe2e0;--02372a:#fff5c2;--7a1a33:#cce2ff;--a453d7:#ebebf1;--54c075:#d13d76;--47c404:#067560;--cdb1f6:#a3120a;--08fa29:#966208;--fa3428:#0450b4;--50e919:#302f3b;--dede3f:#121117;--2a2719:#121117;--036159:#a3120a;--84e571:#121117;--f3be0c:#121117;--d7e14c:#121117;--732eb5:#fff;--30c365:#fff;--90eeff:#fff;--363237:#fff;--506df4:#fff;--ab5158:#fff;--9270b5:24px;--77547f:32px;--19bcb6:#121117;--38413d:#fff;--adc668:0px;--9817c7:2px;--7dcb5e:4px;--2071ea:8px;--f3f949:16px;--bb0f63:300px;--a814c9:0px 0px 8px rgba(9,15,25,.1);--656bbc:16px;--81dc82:24px;--2a6452:32px;--03d2e4:48px;--8c9f05:700;--b1d4f5:700;--26b05f:700;--be9403:700;--6b93f9:700;--e1e6cd:700;--cd577e:96px;--890dda:64px;--0728b9:48px;--5d91ee:32px;--d4d05b:24px;--054730:20px;--2e9eee:96px;--a1602a:68px;--aaf219:52px;--ba6c7f:36px;--a7e8c0:32px;--ced741:24px;--d662ea:-0.005em;--65a2cd:-0.005em;--ceac96:0em;--6408ce:0.01em;--3e1763:0.0125em;--b63a2b:0.0175em;--330e49:4px;--58c1e5:4px;--d3e233:12px;--4df4f0:12px;--d4ea3f:14px;--33b293:14px;--97511e:14px;--16878a:14px;--7f027e:16px;--58dc82:16px;--8098ff:16px;--4f1e3c:16px;--3cfa3f:20px;--3b44b6:20px;--63f88d:20px;--4afac4:20px;--56c416:400;--756814:600;--c2057a:400;--b38b97:400;--fbec20:600;--9d502c:600;--59913e:400;--55b888:400;--a4fde7:600;--ea7bfd:600;--f9dbd7:400;--500731:400;--c7a8eb:600;--333137:600;--bc6f38:16px;--f8ebff:16px;--ff8dfa:20px;--5f3bbf:20px;--a8f0e2:20px;--bd5dd5:20px;--11f5c9:24px;--d59274:24px;--2285fa:24px;--f70f04:24px;--206b00:28px;--c18960:28px;--942b2f:28px;--ae63b1:28px;--be8c45:0.01em;--03e2b6:0.01em;--cdd9f4:0.005em;--40ba00:0.005em;--a566de:0.005em;--ca673a:0.005em;--b2e406:0em;--40d520:0em;--95d383:0em;--f69e59:0em;--2585de:-0.005em;--e4d866:-0.005em;--5b62c3:-0.005em;--64a0ba:-0.0025em;--ba54c4:normal;--782782:normal;--8dee8a:normal;--02d236:italic;--92feb8:normal;--7cc250:italic;--61e1de:normal;--b09e9d:italic;--82c3d5:normal;--dd40d0:italic;--1952bb:normal;--bed3e0:italic;--9c1713:normal;--ec8789:italic;--5b0e00:400;--5ea101:400;--2734e9:500;--800787:700;--41d493:#121117;--211bc0:#fff;--d9209f:#4d4c5c;--cbc724:#6a697c;--7b0f41:#a3120a;--95df5b:#ffe2e0;--d9baa3:2px;--c4b051:8px;--343d89:16px;--b44390:400;--360264:24px;--b8c41f:0em;--0ab3be:normal;--f20dfa:#fff;--4d3319:hsla(0,0%,100%,.18);--49ddff:hsla(0,0%,100%,.12);--80a5f3:#f4f4f8;--a6a9d5:#ebebf1;--74a3af:#dcdce5;--af2e1d:#c5c5d1;--d5f871:#a8a8b6;--8bfda5:#6a697c;--0173a4:#4d4c5c;--86b6a6:#302f3b;--6bf658:#1c1b23;--4cafda:#121117;--28b0ce:rgba(18,17,23,.72);--5aceca:rgba(18,17,23,.64);--b445b1:rgba(18,17,23,.56);--a6b6d6:rgba(18,17,23,.15);--7e1290:rgba(18,17,23,.12);--eef3ec:rgba(18,17,23,.1);--12d28a:rgba(18,17,23,.06);--7462da:rgba(18,17,23,0);--7cff10:#ffe5f0;--a3fc38:#ffdbe9;--0b843f:#ffc2d9;--31cc7a:#fe9fc3;--b9cbfe:#ff7aac;--41808e:#d13d76;--7f3c2c:#b32357;--a18a09:#901443;--1b751d:#760530;--c7cf7d:#fffae0;--22af46:#fff5c2;--dd0191:#ffef9e;--31143a:#ffe875;--3ea0e4:#ffdf3d;--5d05f5:#f6c823;--bd99a5:#d09c0b;--0bcf7c:#966208;--6c5e74:#704c06;--54533d:#e5f0ff;--a924f9:#cce2ff;--f666ce:#99c5ff;--06de71:#57a0ff;--7571cc:#2885fd;--0e2c54:#006af5;--35becd:#0450b4;--d520e9:#033c87;--263dfb:#052f66;--84512d:#e0faf6;--31eaed:#d8f8f2;--ce63f5:#b4f3e7;--f1be0c:#7bead6;--61d300:#3ddabe;--415865:#19ac91;--099ce2:#067560;--004764:#0d594b;--d300ce:#0e4037;--c4695c:#ffeceb;--51a6ac:#ffe2e0;--9ef6e6:#fdc2be;--b659de:#f87e77;--1a01c2:#f54238;--f99920:#c9160d;--1a9540:#a3120a;--37fd29:#880d07;--0a79dd:#63110d;--d751dc:#fff;--eb4daa:hsla(0,0%,100%,.18);--0c596f:hsla(0,0%,100%,.12);--d4e1b8:#f4f4f8;--e986ec:#ebebf1;--8a8cb8:#dcdce5;--e7dcf4:#c5c5d1;--d48a93:#a8a8b6;--9b582c:#6a697c;--bd0a12:#4d4c5c;--5540cb:#302f3b;--3f9d59:#1c1b23;--0d2c1d:#121117;--258d80:rgba(18,17,23,.72);--74c4c2:rgba(18,17,23,.64);--e5323a:rgba(18,17,23,.56);--c7adf9:rgba(18,17,23,.15);--2caf2d:rgba(18,17,23,.12);--dd0d89:rgba(18,17,23,.06);--0fbb17:rgba(18,17,23,0);--696262:#ffe5f0;--2a8bdc:#ffdbe9;--9c55fe:#ffc2d9;--55b1b2:#fe9fc3;--e2e617:#ff7aac;--28075b:#d13d76;--0d21bc:#b32357;--dcc28c:#901443;--e2ccaa:#760530;--f73f81:#fffae0;--05c737:#fff5c2;--32d8a2:#ffef9e;--92f9a7:#ffe875;--4db3c1:#ffdf3d;--2d6e08:#f6c823;--2db5c2:#d09c0b;--b31329:#966208;--66ebdf:#704c06;--6ae6f0:#e5f0ff;--b916ba:#cce2ff;--c6fc9c:#99c5ff;--b773b2:#57a0ff;--e848c4:#2885fd;--e57766:#006af5;--fdf041:#0450b4;--cd5904:#033c87;--440fc3:#052f66;--9fac3a:#e0faf6;--32b0b3:#d8f8f2;--873ad3:#b4f3e7;--202011:#7bead6;--4f3eb4:#3ddabe;--c47d0d:#19ac91;--985403:#067560;--2c9147:#0d594b;--0d9ea5:#0e4037;--f951e9:#ffeceb;--3aa891:#ffe2e0;--ba4c34:#fdc2be;--943cfc:#f87e77;--8af651:#f54238;--f5bfe7:#c9160d;--1bd221:#a3120a;--38cd90:#880d07;--e9fcc6:#63110d;--411986:#121117;--347274:#121117;--3485b3:#121117;--826199:#121117;--6045b5:#121117;--57195c:#fff;--7f32d7:#6a697c;--f88582:#fff;--27aa3b:#fff;--48c8a1:#121117;--3250df:#121117;--250d1b:#fff;--4aaaef:#fff;--7d366e:#121117;--480cdf:#fff;--ccca30:#fff;--488097:#fff;--9a7c6b:#6a697c;--226406:#ebebf1;--ff9376:#ebebf1;--cf27db:#ff7aac;--ae8a27:transparent;--83c38a:transparent;--a8903a:transparent;--1147e4:transparent;--f99bbd:#c9160d;--22605a:#121117;--8c3891:rgba(18,17,23,.56);--1c0876:#57a0ff;--d78653:#3ddabe;--63afb0:transparent;--754e2b:#19ac91;--2033ec:transparent;--3d8e0b:#fe9fc3;--92d63b:rgba(71,71,133,.06);--4d016b:rgba(71,71,133,.06);--77f2f6:rgba(18,17,23,.06);--9aaafa:rgba(71,71,133,.06);--5cd326:#a3120a;--b2e035:rgba(18,17,23,.72);--173f0d:rgba(18,17,23,.72);--ab3e6b:#99c5ff;--689a70:#7bead6;--4df5c9:hsla(0,0%,100%,.12);--d8c7e0:#067560;--e45436:rgba(18,17,23,.06);--5cd9cc:#121117;--5a73d2:rgba(92,92,138,.12);--7b2a72:rgba(92,92,138,.12);--391000:rgba(18,17,23,.12);--39f6f6:rgba(92,92,138,.12);--bd5da9:#880d07;--7605f1:rgba(18,17,23,.64);--003ddf:#121117;--6bda6d:#121117;--608d83:#121117;--5e5ef1:hsla(0,0%,100%,.18);--3b4318:#0d594b;--e96577:rgba(18,17,23,.12);--65f18f:#dcdce5;--9637ca:#121117;--ac18ee:#121117;--1b2716:rgba(20,20,82,.15);--c324de:transparent;--d8d4a0:transparent;--a0106b:#63110d;--d4d142:#a8a8b6;--bfac34:#fff;--9b0207:transparent;--7e0dcd:#121117;--15969b:#121117;--0831da:transparent;--e6fc24:#ff7aac;--5a42a7:rgba(20,20,82,.15);--6ecc42:rgba(20,20,82,.15);--b0be93:700;--159ab0:700;--720fdf:700;--89b95f:700;--39a2b3:700;--1d1a85:700;--17e721:600;--a3f251:600;--9643c1:600;--8cd94c:600;--972c8b:400;--1bc44d:400;--87a7e3:400;--6ee694:400;--3c5fe9:600;--42bbea:600;--0342bd:600;--3381db:600;--59d394:600;--d61910:600;--54ffae:600;--026ea8:400;--bf8d53:96px;--3a5e2f:64px;--817e05:48px;--4b4360:32px;--f8fa20:24px;--bdd851:20px;--d48fc4:20px;--475c79:16px;--fdb733:14px;--e3a55b:12px;--41f57b:20px;--9c8f04:16px;--f7d879:14px;--bf49ba:12px;--7447eb:20px;--303203:16px;--94ac84:14px;--456a0c:18px;--6361c2:18px;--48baa1:18px;--570d54:14px;--3f1843:16px;--772bea:96px;--e7b73e:68px;--43b169:52px;--59d312:36px;--8a818f:32px;--2ca391:24px;--3e10b3:28px;--e33d9e:24px;--754361:20px;--732f40:16px;--c621fc:28px;--3dd5bc:24px;--1cb31f:20px;--fcd839:16px;--3630f6:28px;--e6cb11:22px;--fdcd31:20px;--b54d51:24px;--7e6bed:24px;--a4f1d9:24px;--6e1c88:16px;--030292:24px;--099715:56px;--f462c6:48px;--132408:40px;--a56722:2px;--54d505:16px;--042d7a:12px;--ec1249:8px;--8eaeb1:28px;--79559d:24px;--b190c9:16px;--894bd7:0.005em;--cf9a36:0.005em;--abb4c9:0.005em;--b7aa0a:0.0125em;--c142cd:0em;--d434fb:0px;--109103:1px;--05dd73:2px;--590b8d:4px;--f30851:6px;--66b80b:8px;--813599:12px;--558c4c:16px;--b53873:20px;--1e685c:24px;--f1b498:32px;--08eb25:48px;--42fccf:64px;--d2f1e9:96px;--d42f82:160px;--15ac89:0px;--f3fdd6:1px;--26b8e3:2px;--53860b:4px;--c484d1:8px;--10649b:12px;--9866ee:16px;--76ac8f:20px;--f316e1:24px;--7789ee:32px;--ece0fe:40px;--51a539:48px;--4c51a9:64px;--9fa3b4:96px;--f0bc49:160px;--565b6d:0px;--e38d71:2px;--5e8be4:4px;--701685:16px;--fa4b1a:8px;--aa6dcb:300px;--4d6aa3:0px 4px 16px 0px rgba(18,17,23,.15);--ecd97a:0px 8px 32px 0px rgba(18,17,23,.15);--df7dbb:0px 16px 48px 0px rgba(18,17,23,.15);--e719fa:#121117;--3b13b3:#121117;--de2ee3:#121117;--c9cca6:0px;--e8124b:0px;--e8fcd2:0px;--b2d31a:4px;--b4ecf2:8px;--f4d3f2:16px;--987abc:16px;--ecae98:32px;--3b86b2:48px;--009604:0.15;--302716:0.15;--9952ce:0.15;--369822:24;--10844c:20;--03df56:16;--e19989:underline;--223210:underline;--6e2798:underline;--74cfa2:unset;--c6c73d:unset;--ce0e6a:unset;--5c0a2f:underline;--31d455:underline;--91f4fa:unset;--af7137:unset;--4d5ea8:unset;--6c9741:unset;--6e7352:unset;--fb8624:unset;--fd7ece:unset;--c82204:unset;--0b1b71:2px;--d57208:48px;--3caeb9:40px;--0191ea:6px;--cab35d:linear-gradient(93deg,#2885fd,#ff7aac);--dae170:linear-gradient(93deg,#99c5ff,#ffc2d9);--decc79:linear-gradient(93deg,#cce2ff,#ffdbe9);--8921db:#ffeceb;--9447ca:#fffae0;--d415d7:#e0faf6;--fe4130:#e5f0ff;--3f296a:#f4f4f8;--c4f789:linear-gradient(93deg,#e5f0ff,#ffe5f0);--df0244:#f87e77;--6b244f:#ffe875;--dc59fd:#7bead6;--970975:220ms;--1f4492:cubic-bezier(0.22,1,0.36,1);--445832:cubic-bezier;--166d80:0.22;--0147d0:1;--218e06:0.36;--fd6d5b:1;--018058:220ms cubic-bezier(0.22,1,0.36,1)}.ds-tokyo-ui__PkpFv.ds-scheme--base{--603ec6:#006af5;--d2baa6:#121117;--1614c9:#121117;--937543:#121117;--9cf6ec:#121117;--255ddc:#121117;--f68030:#fff;--96343f:#fff;--8d482c:#fff;--4a94de:#121117;--c93681:#121117;--81b7df:#fff;--ad44c3:#fff;--aa08fb:#121117;--508b34:#ff7aac;--e56164:transparent;--28f3c1:transparent;--e46449:transparent;--64bffa:transparent;--faae28:#c9160d;--d64a99:#121117;--7a038f:rgba(18,17,23,.56);--6c36b5:#57a0ff;--4aa1b1:#3ddabe;--c54155:transparent;--7dbfce:#19ac91;--1bdcc0:transparent;--44bfe9:#121117;--ab736c:#121117;--10556e:rgba(20,20,82,.15);--0e9e01:transparent;--39e128:transparent;--b357d0:#63110d;--d2723c:rgba(18,17,23,0);--38faba:transparent;--4a9eb5:#121117;--f103e9:#121117;--fe1378:#fff;--a7eddc:transparent;--8e8894:#ff7aac;--902b50:#fe9fc3;--0d124d:rgba(71,71,133,.06);--ec17be:rgba(71,71,133,.06);--afc176:rgba(18,17,23,.06);--3b749f:rgba(71,71,133,.06);--064c43:#a3120a;--549e56:rgba(18,17,23,.72);--077a93:rgba(18,17,23,.72);--dcdb32:#99c5ff;--46a009:#7bead6;--8a16b5:hsla(0,0%,100%,.12);--dd2815:#067560;--f043dc:rgba(18,17,23,.06);--c1c1ca:#121117;--33b439:rgba(92,92,138,.12);--b0bf50:rgba(92,92,138,.12);--2ee553:rgba(18,17,23,.12);--6beb48:rgba(92,92,138,.12);--152a7a:#880d07;--936fce:rgba(18,17,23,.64);--45d93a:#121117;--fc3d8b:#121117;--dd5a43:#121117;--de59a1:hsla(0,0%,100%,.18);--b3e453:#0d594b;--5bba7d:rgba(18,17,23,.12);--df6151:#121117;--0d6ae2:#121117;--175a77:#121117;--6609c6:#121117;--e69072:#121117;--c3136e:#fff;--145384:#fff;--55bfda:#fff;--3e45d7:#121117;--e91696:#121117;--79a09e:#fff;--ddcea1:#fff;--59b757:#121117;--15cee1:#fff;--22cb4c:#121117;--8274ee:#121117;--e9f226:#121117;--ddf285:#121117;--f9fba8:#fff;--f772e8:#fff;--b62751:#fff;--cb03bc:#fff;--58d992:#fff;--77e945:#fff;--d4762b:#fff;--349ae3:#121117;--5f5238:#121117;--a0b42b:#6a697c;--a5cfbe:#ebebf1;--16a985:#ebebf1;--1ca8a8:#ebebf1;--15af87:transparent;--c6b68f:#121117;--7cbffc:#fff;--19fdf0:#121117;--883d0f:#fff;--e66f2a:unset;--65e1ef:#d13d76;--47fcde:#ff7aac;--ce5fb9:#6a697c;--065570:#dcdce5;--468ceb:unset;--179b80:#d13d76;--1253e2:#ff7aac;--1d39ac:#6a697c;--be41c4:#dcdce5;--a5fc76:unset;--68bd17:#121117;--c50238:#121117;--977d1a:#121117;--6c2ddf:#4d4c5c;--8da8cb:#6a697c;--1da698:#121117;--ad48d7:#067560;--2be49e:#0450b4;--98c505:#966208;--802584:#a3120a;--2d51ae:#cce2ff;--292009:#d8f8f2;--df6b06:#fff;--e5b0a4:#f4f4f8;--aa7c4d:#ebebf1;--301ea7:#ffe5f0;--a2a233:#d8f8f2;--86df85:#cce2ff;--d908ab:#fff5c2;--0c251f:#ffe2e0;--628fb7:#121117;--a2f1c8:#4d4c5c;--c07ea8:#6a697c;--690731:#d13d76;--0bad98:#6a697c;--c2b191:#fff;--3e566f:#067560;--aad149:#0450b4;--d7c974:#966208;--8ec9e5:#a3120a;--0a84f6:#6a697c;--95b129:#121117;--a987e0:#4d4c5c;--684972:#6a697c;--7696fe:#067560;--adb50a:#0450b4;--38e02f:#966208;--dc4541:#a3120a;--d74a90:#d13d76;--e6a034:#fff;--12f66e:#6a697c;--3546c3:#fff;--302ecf:#f4f4f8;--a5c761:#ebebf1;--02a0d5:rgba(18,17,23,.56);--319b29:#dcdce5;--cd91ab:#ff7aac;--706789:#57a0ff;--560eda:#ffe5f0;--e4c520:#d13d76;--1836a4:#d8f8f2;--ae7f1f:#067560;--94a45e:#cce2ff;--79dffb:#0450b4;--b503b8:#fff5c2;--34fc43:#966208;--f15644:#ffe2e0;--87fcf8:#a3120a;--cbc115:#19ac91;--7ff085:#c5c5d1;--4983fe:#121117;--19649f:#1c1b23;--a469f2:#302f3b;--c03289:#dcdce5;--11d206:#121117;--6e162c:rgba(18,17,23,.1);--5b4fe9:#006af5;--378feb:#121117;--a44465:#a3120a;--fede46:#f4f4f8;--4bc397:#ff7aac;--1b76a1:#dcdce5;--725aa0:#067560;--1e9600:#121117;--76310d:#121117;--bdfcc7:rgba(20,20,82,.15);--51977c:transparent;--04cdaf:transparent;--958f21:#63110d;--896b03:rgba(18,17,23,0);--4a0597:transparent;--a4c18c:#121117;--632796:#121117;--19fa74:#fff;--98c0df:transparent;--2ecd73:#ff7aac;--9ddbb2:#121117;--9b7461:#121117;--dca6dc:rgba(20,20,82,.15);--caac97:transparent;--64fa43:rgba(92,92,138,.12);--fb2597:#63110d;--285db3:rgba(18,17,23,0);--8307ea:transparent;--173e42:#121117;--412e8f:#121117;--0d330c:#fff;--76758a:transparent;--6a507d:#ff7aac;--f0720e:#a8a8b6;--3f0f51:#a8a8b6;--fd08b7:#a8a8b6;--3e2684:#a8a8b6;--af2d26:rgba(18,17,23,0);--e117c7:#a8a8b6;--e1a214:rgba(18,17,23,0);--659377:#dcdce5;--e7f949:#a8a8b6;--f6a20e:#a8a8b6;--e797f1:#a8a8b6;--7d2338:#a8a8b6;--6ac212:#a8a8b6;--dfbd08:#6a697c;--4dc516:#6a697c;--161e2d:#6a697c;--c2913b:#6a697c;--d746c0:#6a697c;--ff8727:#6a697c;--2c5ff8:#6a697c;--8415f2:#6a697c;--a6c6fb:#6a697c;--5c2f26:#6a697c;--e0ef5a:#6a697c;--412530:#6a697c;--643228:#6a697c;--818487:#dcdce5;--ce895b:#dcdce5;--a8b810:#dcdce5;--b973db:#dcdce5;--625417:transparent;--1ce20d:#dcdce5;--720019:#dcdce5;--249654:#dcdce5;--8c7723:#dcdce5;--07d682:#dcdce5;--b1756a:#dcdce5;--e8c509:#dcdce5;--d35901:#dcdce5;color:#121117}.ds-tokyo-ui__PkpFv .ds-scheme--base.ds-scheme----bg{background-color:#fff}",k={__id:"/home/runner/work/design-system/design-system/packages/web-root/src/generated/themes.module.less",__css:D,"ds-tokyo-ui":"ds-tokyo-ui__PkpFv"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(D);var N=[new R(k,"tokyo-ui",[],P)],I=function(e){var t=e.theme,n=void 0===t?"tokyo-ui":t,o=e.colorScheme,a=void 0===o?r.y_:o,s=e.tag,u=e.target,c=e.dataSet,l=e.children;return v.createElement(i.C,{themes:N,colorSchemes:h},v.createElement(m.f,{theme:n},v.createElement(g.Ag,{colorScheme:a},v.createElement(x,{tag:s,target:u,dataSet:c},v.createElement(y.zt,{delayDuration:700,skipDelayDuration:300},v.createElement(C.C,{theme:n},l))))))}},52587:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return r}})},63553:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(86831),i=n(10748);function o(e,t){if(t&&("object"===(0,r.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},90607:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},17674:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(14666);var i=n(2937),o=n(14882);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},71383:function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,{Z:function(){return r}})},90116:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(52587);var i=n(28811),o=n(2937);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},96714:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(86831);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},86831:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},2937:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(52587);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},46576:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(37247),i=n(90607);function o(e,t,n){return o=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,i.Z)(o,n.prototype),o},o.apply(null,arguments)}function a(e){var t="function"===typeof Map?new Map:void 0;return a=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return o(e,arguments,(0,r.Z)(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),(0,i.Z)(a,e)},a(e)}},97582:function(e,t,n){"use strict";n.d(t,{ZT:function(){return i},_T:function(){return a},ev:function(){return s},pi:function(){return o}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n