1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5700],{4853:function(e,t,n){n.r(t),n.d(t,{ReCAPTCHA:function(){return d},default:function(){return v}});var r,i,o=n(7294),a=n(5697),s=n.n(a),c=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function ReCAPTCHA(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(_assertThisInitialized(t)),t.handleErrored=t.handleErrored.bind(_assertThisInitialized(t)),t.handleChange=t.handleChange.bind(_assertThisInitialized(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(_assertThisInitialized(t)),t}ReCAPTCHA.prototype=Object.create(e.prototype),ReCAPTCHA.prototype.constructor=ReCAPTCHA,_setPrototypeOf(ReCAPTCHA,e);var t=ReCAPTCHA.prototype;return t.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},t.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},t.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},t.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},t.executeAsync=function(){var e=this;return new Promise(function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()})},t.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},t.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},t.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},t.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},t.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},t.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},t.componentDidMount=function(){this.explicitRender()},t.componentDidUpdate=function(){this.explicitRender()},t.handleRecaptchaRef=function(e){this.captcha=e},t.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,c));return o.createElement("div",_extends({},t,{ref:this.handleRecaptchaRef}))},ReCAPTCHA}(o.Component);d.displayName="ReCAPTCHA",d.propTypes={sitekey:s().string.isRequired,onChange:s().func,grecaptcha:s().object,theme:s().oneOf(["dark","light"]),type:s().oneOf(["image","audio"]),tabindex:s().number,onExpired:s().func,onErrored:s().func,size:s().oneOf(["compact","normal","invisible"]),stoken:s().string,hl:s().string,badge:s().oneOf(["bottomright","bottomleft","inline"]),isolated:s().bool}
1,d.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var u=n(8679),p=n.n(u);function async_script_loader_extends(){return(async_script_loader_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l={},h=0,f="onloadcallback";function getOptions(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var v=(r=function(){var e=getOptions(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+f+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+f+"&render=explicit"},i=(i={callbackName:f,globalName:"grecaptcha",attributes:getOptions().nonce?{nonce:getOptions().nonce}:{}})||{},function(e){var t=e.displayName||e.name||"Component",n=function(t){function AsyncScriptLoader(e,n){var r;return(r=t.call(this,e,n)||this).state={},r.__scriptURL="",r}AsyncScriptLoader.prototype=Object.create(t.prototype),AsyncScriptLoader.prototype.constructor=AsyncScriptLoader,AsyncScriptLoader.__proto__=t;var n=AsyncScriptLoader.prototype;return n.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+h++),this.__scriptLoaderID},n.setupScriptURL=function(){return this.__scriptURL="function"==typeof r?r():r,this.__scriptURL},n.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},n.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=l[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[i.callbackName]},n.componentDidMount=function(){var e=this,t=this.setupScriptURL(),n=this.asyncScriptLoaderGetScriptLoaderID(),r=i,o=r.globalName,a=r.callbackName,s=r.scriptId;if(o&&void 0!==window[o]&&(l[t]={loaded:!0,observers:{}}),l[t]){var c=l[t];if(c&&(c.loaded||c.errored)){this.asyncScriptLoaderHandleLoad(c);return}c.observers[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var d={};d[n]=function(t){return e.asyncScriptLoaderHandleLoad(t)},l[t]={loaded:!1,observers:d};var u=document.createElement("script");for(var p in u.src=t,u.async=!0,i.attributes)u.setAttribute(p,i.attributes[p]);s&&(u.id=s);var callObserverFuncAndRemoveObserver=function(e){if(l[t]){var n=l[t].observers;for(var r in n)e(n[r])&&delete n[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=l[t];e&&(e.loaded=!0,callObserverFuncAndRemoveObserver(function(t){return!a&&(t(e),!0)}))},u.onerror=function(){var e=l[t];e&&(e.errored=!0,callObserverFuncAndRemoveObserver(function(t){return t(e),!0}))},document.body.appendChild(u)},n.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===i.removeOnUnmount)for(var t=document.getElementsByTagName("script"),n=0;n<t.length;n+=1)t[n].src.indexOf(e)>-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=l[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===i.removeOnUnmount&&delete l[e])},n.render=function(){var t=i.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(a[t]=void 0!==window[t]?window[t]:void 0),a.ref=r,(0,o.createElement)(e,a)},AsyncScriptLoader}(o.Component),a=(0,o.forwardRef)(function(e,t){return(0,o.createElement)(n,async_script_loader_extends({},e,{forwardedRef:t}))});return a.displayName="AsyncScriptLoader("+t+")",a.propTypes={asyncScriptOnLoad:s().func},p()(a,e)})(d)},8149:function(e,t,n){n.d(t,{D:function(){return useMutation}});var r,i,o,a=n(7582),s=n(3914),c=n(4012),d=n(20),u=n(8287),p=n(8991),l=n(6331),h=n(8244),f=n(2747);function operationName(e){var t;switch(e){case i.Query:t="Query";break;case i.Mutation:t="Mutation";break;case i.Subscription:t="Subscription"}return t}function parser(e){(0,f.Jp)("parser",function(){!1!==globalThis.__DEV__&&u.kG.warn(93)}),o||(o=new p.s(l.Q.parser||1e3));var t,n,r=o.get(e);if(r)return r;(0,u.kG)(!!e&&!!e.kind,94,e);for(var a=[],s=[],c=[],d=[],h=0,v=e.definitions;h<v.length;h++){var g=v[h];if("FragmentDefinition"===g.kind){a.push(g);continue}if("OperationDefinition"===g.kind)switch(g.operation){case"query":s.push(g);break;case"mutation":c.push(g);break;case"subscription":d.push(g)}}(0,u.kG)(!a.length||s.length||c.length||d.length,95),(0,u.kG)(s.length+c.length+d.length<=1,96,e,s.length,d.length,c.length),n=s.length?i.Query:i.Mutation,s.length||c.length||(n=i.Subscription);var b=s.length?s:c.length?c:d;(0,u.kG)(1===b.length,97,e,b.length);var y=b[0];t=y.variableDefinitions||[];var m={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:n,variables:t};return o.set(e,m),m}(r=i||(i={}))[r.Query=0]="Query",r[r.Mutation=1]="Mutation",r[r.Subscription=2]="Subscription",parser.resetCache=function(){o=void 0},!1!==globalThis.__DEV__&&(0,h.zP)("parser",function(){return o?o.size:0});var v=n(990),g=n(5317),b=n(320).Nq?s.useLayoutEffect:s.useEffect;function useMutation(e,t){!1!==globalThis.__DEV__&&(n=t||{},r="ignoreResults",o=s.useRef(!1),!1!==globalThis.__DEV__&&r in n&&!o.current&&((0,f.MH)(n,r,"useMutation","If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly."),o.current=!0));var n,r,o,p,l,h,y,m,_,R,w=(p=null==t?void 0:t.client,l=s.useContext((0,g.K)()),h=p||l.client,(0,u.kG)(!!h,78),h);y=i.Mutation,m=(0,f.P6)("parser",parser,[e]),_=operationName(y),R=operationName(m.type),(0,u.kG)(m.type===y,98,_,_,R);
1var C=s.useState({called:!1,loading:!1,client:w}),x=C[0],O=C[1],L=s.useRef({result:x,mutationId:0,isMounted:!0,client:w,mutation:e,options:t});b(function(){Object.assign(L.current,{client:w,options:t,mutation:e})});var k=s.useCallback(function(e){void 0===e&&(e={});var t=L.current,n=t.options,r=t.mutation,i=(0,a.pi)((0,a.pi)({},n),{mutation:r}),o=e.client||L.current.client;L.current.result.loading||i.ignoreResults||!L.current.isMounted||O(L.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:o});var s=++L.current.mutationId,u=(0,c.J)(i,e);return o.mutate(u).then(function(t){var n,r,i=t.data,a=t.errors,c=a&&a.length>0?new v.cA({graphQLErrors:a}):void 0,p=e.onError||(null===(n=L.current.options)||void 0===n?void 0:n.onError);if(c&&p&&p(c,u),s===L.current.mutationId&&!u.ignoreResults){var l={called:!0,loading:!1,data:i,error:c,client:o};L.current.isMounted&&!(0,d.D)(L.current.result,l)&&O(L.current.result=l)}var h=e.onCompleted||(null===(r=L.current.options)||void 0===r?void 0:r.onCompleted);return c||null==h||h(t.data,u),t},function(t){if(s===L.current.mutationId&&L.current.isMounted){var n,r={loading:!1,error:t,data:void 0,called:!0,client:o};(0,d.D)(L.current.result,r)||O(L.current.result=r)}var i=e.onError||(null===(n=L.current.options)||void 0===n?void 0:n.onError);if(i)return i(t,u),{data:void 0,errors:t};throw t})},[]),E=s.useCallback(function(){if(L.current.isMounted){var e={called:!1,loading:!1,client:L.current.client};Object.assign(L.current,{mutationId:0,result:e}),O(e)}},[]);return s.useEffect(function(){var e=L.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[k,(0,a.pi)({reset:E},x)]}}}]);
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.