1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7844],{66252:function(t,e,r){r.d(e,{x:function(){return s}});var n=r(78287),i=r(73914),o=r(85317);function s(t){var e=i.useContext((0,o.K)()),r=t||e.client;return(0,n.kG)(!!r,49),r}},50319:function(t,e,r){r.d(e,{D:function(){return c}});var n=r(97582),i=r(73914),o=r(14012),s=r(30020),u=r(14692),a=r(30990),l=r(66252);function c(t,e){var r=(0,l.x)(null==e?void 0:e.client);(0,u.Vp)(t,u.n_.Mutation);var c=i.useState({called:!1,loading:!1,client:r}),h=c[0],d=c[1],p=i.useRef({result:h,mutationId:0,isMounted:!0,client:r,mutation:t,options:e});Object.assign(p.current,{client:r,options:e,mutation:t});var f=i.useCallback(function(t){void 0===t&&(t={});var e=p.current,r=e.options,i=e.mutation,u=(0,n.pi)((0,n.pi)({},r),{mutation:i}),l=t.client||p.current.client;p.current.result.loading||u.ignoreResults||!p.current.isMounted||d(p.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});var c=++p.current.mutationId,h=(0,o.J)(u,t);return l.mutate(h).then(function(e){var r,n,i=e.data,o=e.errors,u=o&&o.length>0?new a.cA({graphQLErrors:o}):void 0,f=t.onError||(null===(r=p.current.options)||void 0===r?void 0:r.onError);if(u&&f&&f(u,h),c===p.current.mutationId&&!h.ignoreResults){var v={called:!0,loading:!1,data:i,error:u,client:l};p.current.isMounted&&!(0,s.D)(p.current.result,v)&&d(p.current.result=v)}var b=t.onCompleted||(null===(n=p.current.options)||void 0===n?void 0:n.onCompleted);return u||null==b||b(e.data,h),e}).catch(function(e){if(c===p.current.mutationId&&p.current.isMounted){var r,n={loading:!1,error:e,data:void 0,called:!0,client:l};(0,s.D)(p.current.result,n)||d(p.current.result=n)}var i=t.onError||(null===(r=p.current.options)||void 0===r?void 0:r.onError);if(i)return i(e,h),{data:void 0,errors:e};throw e})},[]),v=i.useCallback(function(){if(p.current.isMounted){var t={called:!1,loading:!1,client:r};Object.assign(p.current,{mutationId:0,result:t}),d(t)}},[]);return i.useEffect(function(){return p.current.isMounted=!0,function(){p.current.isMounted=!1}},[]),[f,(0,n.pi)({reset:v},h)]}},6812:function(t,e,r){r.d(e,{A:function(){return S},a:function(){return w}});var n=r(97582),i=r(78287),o=r(73914),s=r.t(o,2),u=r(30320),a=!1,l=s.useSyncExternalStore||function(t,e,r){var n=e();!1===globalThis.__DEV__||a||n===e()||(a=!0,!1!==globalThis.__DEV__&&i.kG.error(58));var s=o.useState({inst:{value:n,getSnapshot:e}}),l=s[0].inst,h=s[1];return u.JC?o.useLayoutEffect(function(){Object.assign(l,{value:n,getSnapshot:e}),c(l)&&h({inst:l})},[t,n,e]):Object.assign(l,{value:n,getSnapshot:e}),o.useEffect(function(){return c(l)&&h({inst:l}),t(function(){c(l)&&h({inst:l})})},[t]),n};function c(t){var e=t.value,r=t.getSnapshot;try{return e!==r()}catch(t){return!0}}var h=r(30020),d=r(14012),p=r(85317),f=r(30990),v=r(1644),b=r(14692),y=r(66252),g=r(10542),k=r(53712),O=r(21436),m=Symbol.for("apollo.hook.wrappers"),Q=Object.prototype.hasOwnProperty;function w(t,e){var r,n,i,o;return void 0===e&&(e=Object.create(null)),(r=P,(o=(i=(n=(0,y.x)(e&&e.client).queryManager)&&n[m])&&i.useQuery)?o(r):r)(t,e)}function P(t,e){return S((0,y.x)(e.client),t).useQuery(e)}function S(t,e){var r=o.useRef();r.current&&t===r.current.client&&e===r.current.query||(r.current=new R(t,e,r.current));var n=r.current;return n.forceUpdateState=o.useReducer(function(t){return t+1},0)[1],n}var R=function(){function t(t,e,r){var n=this;this.client=t,this.query=e,this.forceUpdate=function(){return n.forceUpdateState()},this.ssrDisabledResult=(0,g.J)({loading:!0,data:void 0,error:void 0,networkStatus:v.Ie.loading}),this.skipStandbyResult=(0,g.J)({loading:!1,data:void 0,error:void 0,networkStatus:v.Ie.ready}),this.toQueryResultCache=new(u.mr?WeakMap:Map),(0,b.Vp)(e,b.n_.Query);var i=r&&r.result,o=i&&i.data;o&&(this.previousData=o)}return t.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&i.kG.warn(51)},t.prototype.executeQuery=function(t){var e,r=this;t.query&&Object.assign(this,{query:t.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=t);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(e=this.result)||void 0===e?void 0:e.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise(function(t){var e;n.subscribe({next:function(t){e=t},error:function(){t(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){t(r.toQueryResult(e))}})})},t.prototype.useQuery=function(t){var e=this;this.renderPromises=o.useContext((0,p.K)()).renderPromises,this.useOptions(t);var r=this.useObservableQuery(),n=l(o.useCallback(function(t){if(e.renderPromises)return function(){};e.forceUpdate=t;var n=function(){var t=e.result,n=r.getCurrentResult();t&&t.loading===n.loading&&t.networkStatus===n.networkStatus&&(0,h.D)(t.data,n.data)||e.setResult(n)},i=function(t){if(o.unsubscribe(),o=r.resubscribeAfterError(n,i),!Q.call(t,"graphQLErrors"))throw t;var s=e.result;(!s||s&&s.loading||!(0,h.D)(t,s.error))&&e.setResult({data:s&&s.data,error:t,loading:!1,networkStatus:v.Ie.error})},o=r.subscribe(n,i);return function(){setTimeout(function(){return o.unsubscribe()}),e.forceUpdate=function(){return e.forceUpdateState()}}},[r,this.renderPromises,this.client.disableNetworkFetches]),function(){return e.getCurrentResult()},function(){return e.getCurrentResult()});return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},t.prototype.useOptions=function(e){var r,n=this.createWatchQueryOptions(this.queryHookOptions=e),i=this.watchQueryOptions;!(0,h.D)(n,i)&&(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=e.onCompleted||t.prototype.onCompleted,this.onError=e.onError||t.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},t.prototype.getObsQueryOptions=function(){var t=[],e=this.client.defaultOptions.watchQuery;return e&&t.push(e),this.queryHookOptions.defaultOptions&&t.push(this.queryHookOptions.defaultOptions),t.push((0,k.o)(this.observable&&this.observable.options,this.watchQueryOptions)),t.reduce(d.J)},t.prototype.createWatchQueryOptions=function(t){void 0===t&&(t={});var e,r=t.skip,i=Object.assign((t.ssr,t.onCompleted,t.onError,t.defaultOptions,(0,n._T)(t,["skip","ssr","onCompleted","onError","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),r){var o=i.fetchPolicy,s=void 0===o?this.getDefaultFetchPolicy():o,u=i.initialFetchPolicy;Object.assign(i,{initialFetchPolicy:void 0===u?s:u,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(e=this.observable)||void 0===e?void 0:e.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},t.prototype.getDefaultFetchPolicy=function(){var t,e;return(null===(t=this.queryHookOptions.defaultOptions)||void 0===t?void 0:t.fetchPolicy)||(null===(e=this.client.defaultOptions.watchQuery)||void 0===e?void 0:e.fetchPolicy)||"cac
1he-first"},t.prototype.onCompleted=function(t){},t.prototype.onError=function(t){},t.prototype.useObservableQuery=function(){var t=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=o.useMemo(function(){return{refetch:t.refetch.bind(t),reobserve:t.reobserve.bind(t),fetchMore:t.fetchMore.bind(t),updateQuery:t.updateQuery.bind(t),startPolling:t.startPolling.bind(t),stopPolling:t.stopPolling.bind(t),subscribeToMore:t.subscribeToMore.bind(t)}},[t]);var e=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&e&&(this.renderPromises.registerSSRObservable(t),t.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(t)),t},t.prototype.setResult=function(t){var e=this.result;e&&e.data&&(this.previousData=e.data),this.result=t,this.forceUpdate(),this.handleErrorOrCompleted(t,e)},t.prototype.handleErrorOrCompleted=function(t,e){var r=this;if(!t.loading){var n=this.toApolloError(t);Promise.resolve().then(function(){n?r.onError(n):t.data&&(null==e?void 0:e.networkStatus)!==t.networkStatus&&t.networkStatus===v.Ie.ready&&r.onCompleted(t.data)}).catch(function(t){!1!==globalThis.__DEV__&&i.kG.warn(t)})}},t.prototype.toApolloError=function(t){return(0,O.O)(t.errors)?new f.cA({graphQLErrors:t.errors}):t.error},t.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},t.prototype.toQueryResult=function(t){var e=this.toQueryResultCache.get(t);if(e)return e;var r=t.data,i=(t.partial,(0,n._T)(t,["data","partial"]));return this.toQueryResultCache.set(t,e=(0,n.pi)((0,n.pi)((0,n.pi)({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!e.error&&(0,O.O)(t.errors)&&(e.error=new f.cA({graphQLErrors:t.errors})),e},t.prototype.unsafeHandlePartialRefetch=function(t){t.partial&&this.queryHookOptions.partialRefetch&&!t.loading&&(!t.data||0===Object.keys(t.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(t,{loading:!0,networkStatus:v.Ie.refetch}),this.observable.refetch())},t}()},14692:function(t,e,r){r.d(e,{Vp:function(){return d},n_:function(){return i}});var n,i,o,s=r(78287),u=r(38991),a=r(66331),l=r(88244);function c(t){var e;switch(t){case i.Query:e="Query";break;case i.Mutation:e="Mutation";break;case i.Subscription:e="Subscription"}return e}function h(t){o||(o=new u.s(a.Q.parser||1e3));var e,r,n=o.get(t);if(n)return n;(0,s.kG)(!!t&&!!t.kind,60,t);for(var l=[],c=[],h=[],d=[],p=0,f=t.definitions;p<f.length;p++){var v=f[p];if("FragmentDefinition"===v.kind){l.push(v);continue}if("OperationDefinition"===v.kind)switch(v.operation){case"query":c.push(v);break;case"mutation":h.push(v);break;case"subscription":d.push(v)}}(0,s.kG)(!l.length||c.length||h.length||d.length,61),(0,s.kG)(c.length+h.length+d.length<=1,62,t,c.length,d.length,h.length),r=c.length?i.Query:i.Mutation,c.length||h.length||(r=i.Subscription);var b=c.length?c:h.length?h:d;(0,s.kG)(1===b.length,63,t,b.length);var y=b[0];e=y.variableDefinitions||[];var g={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:r,variables:e};return o.set(t,g),g}function d(t,e){var r=h(t),n=c(e),i=c(r.type);(0,s.kG)(r.type===e,64,n,n,i)}(n=i||(i={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription",h.resetCache=function(){o=void 0},!1!==globalThis.__DEV__&&(0,l.zP)("parser",function(){return o?o.size:0})}}]); 2//# sourceMappingURL=7844-65f1dc088dba3021.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.