text: !function(){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}function n(e){var t={exports:{}};return e(t,t.exports),t.exports
  /*
  	object-assign
  	(c) Sindre Sorhus
  	@license MIT
  	*/}var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var s=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=o(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(r){s=r(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(l[s[f]]=n[s[f]])}}return l},l=n((function(e,t){var n=60103,r=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,a=60110,o=60112;t.Suspense=60113;var l=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var c=Symbol.for;n=c("react.element"),r=c("react.portal"),t.Fragment=c("react.fragment"),t.StrictMode=c("react.strict_mode"),t.Profiler=c("react.profiler"),i=c("react.provider"),a=c("react.context"),o=c("react.forward_ref"),t.Suspense=c("react.suspense"),l=c("react.memo"),u=c("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function m(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var g=y.prototype=new v;g.constructor=y,s(g,m.prototype),g.isPureReactComponent=!0;var b={current:null},w=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,i)&&!E.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:b.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var S=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return o=o(l=e),e=""===a?"."+x(l,0):a,Array.isArray(o)?(i="",null!=e&&(i=e.replace(S,"$&/")+"/"),T(o,t,i,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=""===a?".":a+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=a+x(s=e[u],u);l+=T(s,t,i,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=T(s=s.value,t,i,c=a+x(s,u++),o);else if("object"===s)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function C(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function R(){var e=N.current;if(null===e)throw Error(d(321));return e}var D={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:s};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(d(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null==e)throw Error(d(267,e));var i=s({},e.props),a=e.key,o=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=b.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];i.children=u}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:o,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:C}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"}));
  /** @license React v17.0.2
  	 * react.production.min.js
  	 *
  	 * Copyright (c) Facebook, Inc. and its affiliates.
  	 *
  	 * This source code is licensed under the MIT license found in the
  	 * LICENSE file in the root directory of this source tree.
  	 */
  /** @license React v17.0.2
  	 * react.development.js
  	 *
  	 * Copyright (c) Facebook, Inc. and its affiliates.
  	 *
  	 * This source code is licensed under the MIT license found in the
  	 * LICENSE file in the root directory of this source tree.
  	 */
  n((function(e,t){}));var u=n((function(e){e.exports=l})),c=n((function(e,t){var n,r,i,a;if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,p=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,v=null,y=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+g;try{v(!0,e)?E.postMessage(null):(m=!1,v=null)}catch(e){throw E.postMessage(null),e}}else m=!1},n=function(e){v=e,m||(m=!0,E.postMessage(null))},r=function(e,n){y=d((function(){e(t.unstable_now())}),n)},i=function(){p(y),y=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<x(i,t)))break e;e[r]=t,e[n]=i,n=r}}function _(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,l=e[s];if(void 0!==o&&0>x(o,n))void 0!==l&&0>x(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>x(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],O=[],C=1,N=null,R=3,D=!1,I=!1,A=!1;function P(e){for(var t=_(O);null!==t;){if(null===t.callback)S(O);else{if(!(t.startTime<=e))break;S(O),t.sortIndex=t.expirationTime,k(T,t)}t=_(O)}}function F(e){if(A=!1,P(e),!I)if(null!==_(T))I=!0,n(M);else{var t=_(O);null!==t&&r(F,t.startTime-e)}}function M(e,n){I=!1,A&&(A=!1,i()),D=!0;var a=R;try{for(P(n),N=_(T);null!==N&&(!(N.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=N.callback;if("function"==typeof o){N.callback=null,R=N.priorityLevel;var s=o(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?N.callback=s:N===_(T)&&S(T),P(n)}else S(T);N=_(T)}if(null!==N)var l=!0;else{var u=_(O);null!==u&&r(F,u.startTime-n),l=!1}return l}finally{N=null,R=a,D=!1}}var L=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||D||(I=!0,n(M))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return _(T)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,a,o){var s=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:C++,callback:a,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,k(O,e),null===_(T)&&e===_(O)&&(A?i():A=!0,r(F,o-s))):(e.sortIndex=l,k(T,e),I||D||(I=!0,n(M))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}}));
  /** @license React v0.20.2
  	 * scheduler.production.min.js
  	 *
  	 * Copyright (c) Facebook, Inc. and its affiliates.
  	 *
  	 * This source code is licensed under the MIT license found in the
  	 * LICENSE file in the root directory of this source tree.
  	 */
  /** @license React v0.20.2
  	 * scheduler.development.js
  	 *
  	 * Copyright (c) Facebook, Inc. and its affiliates.
  	 *
  	 * This source code is licensed under the MIT license found in the
  	 * LICENSE file in the root directory of this source tree.
  	 */
  n((function(e,t){}));var f=n((function(e){e.exports=c}));
  /** @license React v17.0.2
  	 * react-dom.production.min.js
  	 *
  	 * Copyright (c) Facebook, Inc. and its affiliates.
  	 *
  	 * This source code is licensed under the MIT license found in the
  	 * LICENSE file in the root directory of this source tree.
  	 */function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!u)throw Error(d(227));var p=new Set,h={};function m(e,t){v(e,t),v(e+"Capture",t)}function v(e,t){for(h[e]=t,e=0;e<t.length;e++)p.add(t[e])}var y=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),g=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b=Object.prototype.hasOwnProperty,w={},E={};function k(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_[e]=new k(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_[t]=new k(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_[e]=new k(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){_[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_[e]=new k(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){_[e]=new k(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){_[e]=new k(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){_[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)}));var S=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}function T(e,t,n,r){var i=_.hasOwnProperty(t)?_[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!b.call(E,e)||!b.call(w,e)&&(g.test(e)?E[e]=!0:(w[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(S,x);_[t]=new k(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(S,x);_[t]=new k(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(S,x);_[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){_[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)})),_.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){_[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)}));var O=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,C=60103,N=60106,R=60107,D=60108,I=60114,A=60109,P=60110,F=60112,M=60113,L=60120,q=60115,j=60116,V=60121,z=60128,$=60129,Q=60130,U=60131;if("function"==typeof Symbol&&Symbol.for){var B=Symbol.for;C=B("react.element"),N=B("react.portal"),R=B("react.fragment"),D=B("react.strict_mode"),I=B("react.profiler"),A=B("react.provider"),P=B("react.context"),F=B("react.forward_ref"),M=B("react.suspense"),L=B("react.suspense_list"),q=B("react.memo"),j=B("react.lazy"),V=B("react.block"),B("react.scope"),z=B("react.opaque.id"),$=B("react.debug_trace_mode"),Q=B("react.offscreen"),U=B("react.legacy_hidden")}var W,K="function"==typeof Symbol&&Symbol.iterator;function H(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=K&&e[K]||e["@@iterator"])?e:null}function Y(e){if(void 0===W)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);W=t&&t[1]||""}return"\n"+W+e}var G=!1;function J(e,t){if(!e||G)return"";G=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{G=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Y(e):""}function X(e){switch(e.tag){case 5:return Y(e.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return e=J(e.type,!1);case 11:return e=J(e.type.render,!1);case 22:return e=J(e.type._render,!1);case 1:return e=J(e.type,!0);default:return""}}function Z(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case R:return"Fragment";case N:return"Portal";case I:return"Profiler";case D:return"StrictMode";case M:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case F:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case q:return Z(e.type);case V:return Z(e._render);case j:t=e._payload,e=e._init;try{return Z(e(t))}catch(e){}}return null}function ee(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function te(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ne(e){e._valueTracker||(e._valueTracker=function(e){var t=te(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function re(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=te(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ie(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function ae(e,t){var n=t.checked;return s({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function oe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ee(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function se(e,t){null!=(t=t.checked)&&T(e,"checked",t,!1)}function le(e,t){se(e,t);var n=ee(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&ce(e,t.type,ee(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ue(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ce(e,t,n){"number"===t&&ie(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function fe(e,t){return e=s({children:void 0},t),(t=function(e){var t="";return u.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function de(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ee(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(d(91));return s({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function he(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(d(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(d(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ee(n)}}function me(e,t){var n=ee(t.value),r=ee(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ve(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var ye="http://www.w3.org/1999/xhtml",ge="http://www.w3.org/2000/svg";function be(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function we(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?be(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ee,ke=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==ge||"innerHTML"in e)e.innerHTML=t;else{for((Ee=Ee||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ee.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function _e(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Se={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},xe=["Webkit","ms","Moz","O"];function Te(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Se.hasOwnProperty(e)&&Se[e]?(""+t).trim():t+"px"}function Oe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Te(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Se).forEach((function(e){xe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Se[t]=Se[e]}))}));var Ce=s({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ne(e,t){if(t){if(Ce[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(d(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(d(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(d(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(d(62))}}function Re(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function De(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ie=null,Ae=null,Pe=null;function Fe(e){if(e=li(e)){if("function"!=typeof Ie)throw Error(d(280));var t=e.stateNode;t&&(t=ci(t),Ie(e.stateNode,e.type,t))}}function Me(e){Ae?Pe?Pe.push(e):Pe=[e]:Ae=e}function Le(){if(Ae){var e=Ae,t=Pe;if(Pe=Ae=null,Fe(e),t)for(e=0;e<t.length;e++)Fe(t[e])}}function qe(e,t){return e(t)}function je(e,t,n,r,i){return e(t,n,r,i)}function Ve(){}var ze=qe,$e=!1,Qe=!1;function Ue(){null===Ae&&null===Pe||(Ve(),Le())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=ci(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(d(231,t,typeof n));return n}var We=!1;if(y)try{var Ke={};Object.defineProperty(Ke,"passive",{get:function(){We=!0}}),window.addEventListener("test",Ke,Ke),window.removeEventListener("test",Ke,Ke)}catch(Bb){We=!1}function He(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ye=!1,Ge=null,Je=!1,Xe=null,Ze={onError:function(e){Ye=!0,Ge=e}};function et(e,t,n,r,i,a,o,s,l){Ye=!1,Ge=null,He.apply(Ze,arguments)}function tt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function nt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function rt(e){if(tt(e)!==e)throw Error(d(188))}function it(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=tt(e)))throw Error(d(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return rt(i),e;if(a===r)return rt(i),t;a=a.sibling}throw Error(d(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(d(189))}}if(n.alternate!==r)throw Error(d(190))}if(3!==n.tag)throw Error(d(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function at(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var ot,st,lt,ut,ct=!1,ft=[],dt=null,pt=null,ht=null,mt=new Map,vt=new Map,yt=[],gt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function bt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function wt(e,t){switch(e){case"focusin":case"focusout":dt=null;break;case"dragenter":case"dragleave":pt=null;break;case"mouseover":case"mouseout":ht=null;break;case"pointerover":case"pointerout":mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vt.delete(t.pointerId)}}function Et(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=bt(t,n,r,i,a),null!==t&&(null!==(t=li(t))&&st(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function kt(e){var t=si(e.target);if(null!==t){var n=tt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=nt(n)))return e.blockedOn=t,void ut(e.lanePriority,(function(){f.unstable_runWithPriority(e.priority,(function(){lt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function _t(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=an(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=li(n))&&st(t),e.blockedOn=n,!1;t.shift()}return!0}function St(e,t,n){_t(e)&&n.delete(t)}function xt(){for(ct=!1;0<ft.length;){var e=ft[0];if(null!==e.blockedOn){null!==(e=li(e.blockedOn))&&ot(e);break}for(var t=e.targetContainers;0<t.length;){var n=an(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ft.shift()}null!==dt&&_t(dt)&&(dt=null),null!==pt&&_t(pt)&&(pt=null),null!==ht&&_t(ht)&&(ht=null),mt.forEach(St),vt.forEach(St)}function Tt(e,t){e.blockedOn===t&&(e.blockedOn=null,ct||(ct=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,xt)))}function Ot(e){function t(t){return Tt(t,e)}if(0<ft.length){Tt(ft[0],e);for(var n=1;n<ft.length;n++){var r=ft[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==dt&&Tt(dt,e),null!==pt&&Tt(pt,e),null!==ht&&Tt(ht,e),mt.forEach(t),vt.forEach(t),n=0;n<yt.length;n++)(r=yt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<yt.length&&null===(n=yt[0]).blockedOn;)kt(n),null===n.blockedOn&&yt.shift()}function Ct(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Nt={animationend:Ct("Animation","AnimationEnd"),animationiteration:Ct("Animation","AnimationIteration"),animationstart:Ct("Animation","AnimationStart"),transitionend:Ct("Transition","TransitionEnd")},Rt={},Dt={};function It(e){if(Rt[e])return Rt[e];if(!Nt[e])return e;var t,n=Nt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Dt)return Rt[e]=n[t];return e}y&&(Dt=document.createElement("div").style,"AnimationEvent"in window||(delete Nt.animationend.animation,delete Nt.animationiteration.animation,delete Nt.animationstart.animation),"TransitionEvent"in window||delete Nt.transitionend.transition);var At=It("animationend"),Pt=It("animationiteration"),Ft=It("animationstart"),Mt=It("transitionend"),Lt=new Map,qt=new Map,jt=["abort","abort",At,"animationEnd",Pt,"animationIteration",Ft,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Mt,"transitionEnd","waiting","waiting"];function Vt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),qt.set(r,t),Lt.set(r,i),m(i,[r])}}(0,f.unstable_now)();var zt=8;function $t(e){if(0!=(1&e))return zt=15,1;if(0!=(2&e))return zt=14,2;if(0!=(4&e))return zt=13,4;var t=24&e;return 0!==t?(zt=12,t):0!=(32&e)?(zt=11,32):0!==(t=192&e)?(zt=10,t):0!=(256&e)?(zt=9,256):0!==(t=3584&e)?(zt=8,t):0!=(4096&e)?(zt=7,4096):0!==(t=4186112&e)?(zt=6,t):0!==(t=62914560&e)?(zt=5,t):67108864&e?(zt=4,67108864):0!=(134217728&e)?(zt=3,134217728):0!==(t=805306368&e)?(zt=2,t):0!=(1073741824&e)?(zt=1,1073741824):(zt=8,e)}function Qt(e,t){var n=e.pendingLanes;if(0===n)return zt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=zt=15;else if(0!==(a=134217727&n)){var l=a&~o;0!==l?(r=$t(l),i=zt):0!==(s&=a)&&(r=$t(s),i=zt)}else 0!==(a=n&~o)?(r=$t(a),i=zt):0!==s&&(r=$t(s),i=zt);if(0===r)return 0;if(r=n&((0>(r=31-Yt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if($t(t),i<=zt)return t;zt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Yt(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Wt(24&~t))?Bt(10,t):e;case 10:return 0===(e=Wt(192&~t))?Bt(8,t):e;case 8:return 0===(e=Wt(3584&~t))&&(0===(e=Wt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Wt(805306368&~t))&&(t=268435456),t}throw Error(d(358,e))}function Wt(e){return e&-e}function Kt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Yt(t)]=n}var Yt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/Jt|0)|0},Gt=Math.log,Jt=Math.LN2;var Xt=f.unstable_UserBlockingPriority,Zt=f.unstable_runWithPriority,en=!0;function tn(e,t,n,r){$e||Ve();var i=rn,a=$e;$e=!0;try{je(i,e,t,n,r)}finally{($e=a)||Ue()}}function nn(e,t,n,r){Zt(Xt,rn.bind(null,e,t,n,r))}function rn(e,t,n,r){var i;if(en)if((i=0==(4&t))&&0<ft.length&&-1<gt.indexOf(e))e=bt(null,e,t,n,r),ft.push(e);else{var a=an(e,t,n,r);if(null===a)i&&wt(e,r);else{if(i){if(-1<gt.indexOf(e))return e=bt(a,e,t,n,r),void ft.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return dt=Et(dt,e,t,n,r,i),!0;case"dragenter":return pt=Et(pt,e,t,n,r,i),!0;case"mouseover":return ht=Et(ht,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return mt.set(a,Et(mt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,vt.set(a,Et(vt.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;wt(e,r)}Vr(e,t,r,null,n)}}}function an(e,t,n,r){var i=De(r);if(null!==(i=si(i))){var a=tt(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=nt(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Vr(e,t,r,i,n),null}var on=null,sn=null,ln=null;function un(){if(ln)return ln;var e,t,n=sn,r=n.length,i="value"in on?on.value:on.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return ln=i.slice(e,1<t?1-t:void 0)}function cn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function fn(){return!0}function dn(){return!1}function pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?fn:dn,this.isPropagationStopped=dn,this}return s(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=fn)},persist:function(){},isPersistent:fn}),t}var hn,mn,vn,yn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gn=pn(yn),bn=s({},yn,{view:0,detail:0}),wn=pn(bn),En=s({},bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vn&&(vn&&"mousemove"===e.type?(hn=e.screenX-vn.screenX,mn=e.screenY-vn.screenY):mn=hn=0,vn=e),hn)},movementY:function(e){return"movementY"in e?e.movementY:mn}}),kn=pn(En),_n=pn(s({},En,{dataTransfer:0})),Sn=pn(s({},bn,{relatedTarget:0})),xn=pn(s({},yn,{animationName:0,elapsedTime:0,pseudoElement:0})),Tn=s({},yn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),On=pn(Tn),Cn=pn(s({},yn,{data:0})),Nn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Dn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function In(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Dn[e])&&!!t[e]}function An(){return In}var Pn=s({},bn,{key:function(e){if(e.key){var t=Nn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=cn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Rn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?cn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?cn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Fn=pn(Pn),Mn=pn(s({},En,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ln=pn(s({},bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),qn=pn(s({},yn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=s({},En,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Vn=pn(jn),zn=[9,13,27,32],$n=y&&"CompositionEvent"in window,Qn=null;y&&"documentMode"in document&&(Qn=document.documentMode);var Un=y&&"TextEvent"in window&&!Qn,Bn=y&&(!$n||Qn&&8<Qn&&11>=Qn),Wn=String.fromCharCode(32),Kn=!1;function Hn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1;var Jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Jn[e.type]:"textarea"===t}function Zn(e,t,n,r){Me(r),0<(t=$r(t,"onChange")).length&&(n=new gn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var er=null,tr=null;function nr(e){Pr(e,0)}function rr(e){if(re(ui(e)))return e}function ir(e,t){if("change"===e)return t}var ar=!1;if(y){var or;if(y){var sr="oninput"in document;if(!sr){var lr=document.createElement("div");lr.setAttribute("oninput","return;"),sr="function"==typeof lr.oninput}or=sr}else or=!1;ar=or&&(!document.documentMode||9<document.documentMode)}function ur(){er&&(er.detachEvent("onpropertychange",cr),tr=er=null)}function cr(e){if("value"===e.propertyName&&rr(tr)){var t=[];if(Zn(t,tr,e,De(e)),e=nr,$e)e(t);else{$e=!0;try{qe(e,t)}finally{$e=!1,Ue()}}}}function fr(e,t,n){"focusin"===e?(ur(),tr=n,(er=t).attachEvent("onpropertychange",cr)):"focusout"===e&&ur()}function dr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return rr(tr)}function pr(e,t){if("click"===e)return rr(t)}function hr(e,t){if("input"===e||"change"===e)return rr(t)}var mr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},vr=Object.prototype.hasOwnProperty;function yr(e,t){if(mr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!vr.call(t,n[r])||!mr(e[n[r]],t[n[r]]))return!1;return!0}function gr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function br(e,t){var n,r=gr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=gr(r)}}function wr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?wr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Er(){for(var e=window,t=ie();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ie((e=t.contentWindow).document)}return t}function kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var _r=y&&"documentMode"in document&&11>=document.documentMode,Sr=null,xr=null,Tr=null,Or=!1;function Cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Or||null==Sr||Sr!==ie(r)||("selectionStart"in(r=Sr)&&kr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Tr&&yr(Tr,r)||(Tr=r,0<(r=$r(xr,"onSelect")).length&&(t=new gn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}Vt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Vt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Vt(jt,2);for(var Nr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Rr=0;Rr<Nr.length;Rr++)qt.set(Nr[Rr],0);v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),m("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),m("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),m("onBeforeInput",["compositionend","keypress","textInput","paste"]),m("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),m("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(Dr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,o,s,l){if(et.apply(this,arguments),Ye){if(!Ye)throw Error(d(198));var u=Ge;Ye=!1,Ge=null,Je||(Je=!0,Xe=u)}}(r,t,void 0,e),e.currentTarget=null}function Pr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Ar(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Ar(i,s,u),a=l}}}if(Je)throw e=Xe,Je=!1,Xe=null,e}function Fr(e,t){var n=fi(t),r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Lr(e){e[Mr]||(e[Mr]=!0,p.forEach((function(t){Ir.has(t)||qr(t,!1,e,null),qr(t,!0,e,null)})))}function qr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&Ir.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=fi(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),jr(a,e,i,t),o.add(s))}function jr(e,t,n,r){var i=qt.get(t);switch(void 0===i?2:i){case 0:i=tn;break;case 1:i=nn;break;default:i=rn}n=i.bind(null,t,n,e),i=void 0,!We||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=si(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Qe)return e(t,n);Qe=!0;try{ze(e,t,n)}finally{Qe=!1,Ue()}}((function(){var r=a,i=De(n),o=[];e:{var s=Lt.get(e);if(void 0!==s){var l=gn,u=e;switch(e){case"keypress":if(0===cn(n))break e;case"keydown":case"keyup":l=Fn;break;case"focusin":u="focus",l=Sn;break;case"focusout":u="blur",l=Sn;break;case"beforeblur":case"afterblur":l=Sn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=kn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=_n;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ln;break;case At:case Pt:case Ft:l=xn;break;case Mt:l=qn;break;case"scroll":l=wn;break;case"wheel":l=Vn;break;case"copy":case"cut":case"paste":l=On;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Mn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Be(h,d))&&c.push(zr(h,m,p)))),f)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!si(u)&&!u[ai])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?si(u):null)&&(u!==(f=tt(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=kn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Mn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==l?s:ui(l),p=null==u?s:ui(u),(s=new c(m,h+"leave",l,n,i)).target=f,s.relatedTarget=p,m=null,si(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(d=u,h=0,p=c=l;p;p=Qr(p))h++;for(p=0,m=d;m;m=Qr(m))p++;for(;0<h-p;)c=Qr(c),h--;for(;0<p-h;)d=Qr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Qr(c),d=Qr(d)}c=null}else c=null;null!==l&&Ur(o,s,l,c,!1),null!==u&&null!==f&&Ur(o,f,u,c,!0)}if("select"===(l=(s=r?ui(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=ir;else if(Xn(s))if(ar)v=hr;else{v=dr;var y=fr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=pr);switch(v&&(v=v(e,r))?Zn(o,v,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ce(s,"number",s.value)),y=r?ui(r):window,e){case"focusin":(Xn(y)||"true"===y.contentEditable)&&(Sr=y,xr=r,Tr=null);break;case"focusout":Tr=xr=Sr=null;break;case"mousedown":Or=!0;break;case"contextmenu":case"mouseup":case"dragend":Or=!1,Cr(o,n,i);break;case"selectionchange":if(_r)break;case"keydown":case"keyup":Cr(o,n,i)}var g;if($n)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Gn?Hn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Gn&&(g=un()):(sn="value"in(on=i)?on.value:on.textContent,Gn=!0)),0<(y=$r(r,b)).length&&(b=new Cn(b,e,null,n,i),o.push({event:b,listeners:y}),g?b.data=g:null!==(g=Yn(n))&&(b.data=g))),(g=Un?function(e,t){switch(e){case"compositionend":return Yn(t);case"keypress":return 32!==t.which?null:(Kn=!0,Wn);case"textInput":return(e=t.data)===Wn&&Kn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!$n&&Hn(e,t)?(e=un(),ln=sn=on=null,Gn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=$r(r,"onBeforeInput")).length&&(i=new Cn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g))}Pr(o,t)}))}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $r(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Be(e,n))&&r.unshift(zr(e,a,i)),null!=(a=Be(e,t))&&r.push(zr(e,a,i))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ur(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Be(n,a))&&o.unshift(zr(n,l,s)):i||null!=(l=Be(n,a))&&o.push(zr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Br(){}var Wr=null,Kr=null;function Hr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Yr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Gr="function"==typeof setTimeout?setTimeout:void 0,Jr="function"==typeof clearTimeout?clearTimeout:void 0;function Xr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Zr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function ei(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ti=0;var ni=Math.random().toString(36).slice(2),ri="__reactFiber$"+ni,ii="__reactProps$"+ni,ai="__reactContainer$"+ni,oi="__reactEvents$"+ni;function si(e){var t=e[ri];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ai]||n[ri]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ei(e);null!==e;){if(n=e[ri])return n;e=ei(e)}return t}n=(e=n).parentNode}return null}function li(e){return!(e=e[ri]||e[ai])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ui(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(d(33))}function ci(e){return e[ii]||null}function fi(e){var t=e[oi];return void 0===t&&(t=e[oi]=new Set),t}var di=[],pi=-1;function hi(e){return{current:e}}function mi(e){0>pi||(e.current=di[pi],di[pi]=null,pi--)}function vi(e,t){pi++,di[pi]=e.current,e.current=t}var yi={},gi=hi(yi),bi=hi(!1),wi=yi;function Ei(e,t){var n=e.type.contextTypes;if(!n)return yi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function ki(e){return null!=(e=e.childContextTypes)}function _i(){mi(bi),mi(gi)}function Si(e,t,n){if(gi.current!==yi)throw Error(d(168));vi(gi,t),vi(bi,n)}function xi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(d(108,Z(t)||"Unknown",i));return s({},n,r)}function Ti(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yi,wi=gi.current,vi(gi,e),vi(bi,bi.current),!0}function Oi(e,t,n){var r=e.stateNode;if(!r)throw Error(d(169));n?(e=xi(e,t,wi),r.__reactInternalMemoizedMergedChildContext=e,mi(bi),mi(gi),vi(gi,e)):mi(bi),vi(bi,n)}var Ci=null,Ni=null,Ri=f.unstable_runWithPriority,Di=f.unstable_scheduleCallback,Ii=f.unstable_cancelCallback,Ai=f.unstable_shouldYield,Pi=f.unstable_requestPaint,Fi=f.unstable_now,Mi=f.unstable_getCurrentPriorityLevel,Li=f.unstable_ImmediatePriority,qi=f.unstable_UserBlockingPriority,ji=f.unstable_NormalPriority,Vi=f.unstable_LowPriority,zi=f.unstable_IdlePriority,$i={},Qi=void 0!==Pi?Pi:function(){},Ui=null,Bi=null,Wi=!1,Ki=Fi(),Hi=1e4>Ki?Fi:function(){return Fi()-Ki};function Yi(){switch(Mi()){case Li:return 99;case qi:return 98;case ji:return 97;case Vi:return 96;case zi:return 95;default:throw Error(d(332))}}function Gi(e){switch(e){case 99:return Li;case 98:return qi;case 97:return ji;case 96:return Vi;case 95:return zi;default:throw Error(d(332))}}function Ji(e,t){return e=Gi(e),Ri(e,t)}function Xi(e,t,n){return e=Gi(e),Di(e,t,n)}function Zi(){if(null!==Bi){var e=Bi;Bi=null,Ii(e)}ea()}function ea(){if(!Wi&&null!==Ui){Wi=!0;var e=0;try{var t=Ui;Ji(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ui=null}catch(t){throw null!==Ui&&(Ui=Ui.slice(e+1)),Di(Li,Zi),t}finally{Wi=!1}}}var ta=O.ReactCurrentBatchConfig;function na(e,t){if(e&&e.defaultProps){for(var n in t=s({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ra=hi(null),ia=null,aa=null,oa=null;function sa(){oa=aa=ia=null}function la(e){var t=ra.current;mi(ra),e.type._context._currentValue=t}function ua(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ca(e,t){ia=e,oa=aa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&($o=!0),e.firstContext=null)}function fa(e,t){if(oa!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(oa=e,t=1073741823),t={context:e,observedBits:t,next:null},null===aa){if(null===ia)throw Error(d(308));aa=t,ia.dependencies={lanes:0,firstContext:t,responders:null}}else aa=aa.next=t;return e._currentValue}var da=!1;function pa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function va(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ya(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ga(e,t,n,r){var i=e.updateQueue;da=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var u=l,c=u.next;u.next=null,null===o?a=c:o.next=c,o=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==o&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==a){for(d=i.baseState,o=0,f=c=u=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,l);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(l="function"==typeof(h=m.payload)?h.call(p,d,l):h))break e;d=s({},d,l);break e;case 2:da=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,o|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Ws|=o,e.lanes=o,e.memoizedState=d}}function ba(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(d(191,i));i.call(r)}}}var wa=(new u.Component).refs;function Ea(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:s({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ka={isMounted:function(e){return!!(e=e._reactInternals)&&tt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yl(),i=gl(e),a=ma(r,i);a.payload=t,null!=n&&(a.callback=n),va(e,a),bl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yl(),i=gl(e),a=ma(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),va(e,a),bl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yl(),r=gl(e),i=ma(n,r);i.tag=2,null!=t&&(i.callback=t),va(e,i),bl(e,r,n)}};function _a(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!yr(n,r)||!yr(i,a))}function Sa(e,t,n){var r=!1,i=yi,a=t.contextType;return"object"==typeof a&&null!==a?a=fa(a):(i=ki(t)?wi:gi.current,a=(r=null!=(r=t.contextTypes))?Ei(e,i):yi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ka,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function xa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ka.enqueueReplaceState(t,t.state,null)}function Ta(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=wa,pa(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=fa(a):(a=ki(t)?wi:gi.current,i.context=Ei(e,a)),ga(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Ea(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ka.enqueueReplaceState(i,i.state,null),ga(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var Oa=Array.isArray;function Ca(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(d(309));var r=n.stateNode}if(!r)throw Error(d(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===wa&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(d(284));if(!n._owner)throw Error(d(290,e))}return e}function Na(e,t){if("textarea"!==e.type)throw Error(d(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ra(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Jl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function o(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=tu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Ca(e,t,n),r.return=e,r):((r=Xl(n.type,n.key,n.props,null,e.mode,r)).ref=Ca(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=nu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,a){return null===t||7!==t.tag?((t=Zl(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=tu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case C:return(n=Xl(t.type,t.key,t.props,null,e.mode,n)).ref=Ca(e,null,t),n.return=e,n;case N:return(t=nu(t,e.mode,n)).return=e,t}if(Oa(t)||H(t))return(t=Zl(t,e.mode,n,null)).return=e,t;Na(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case C:return n.key===i?n.type===R?c(e,t,n.props.children,r,i):l(e,t,n,r):null;case N:return n.key===i?u(e,t,n,r):null}if(Oa(n)||H(n))return null!==i?null:c(e,t,n,r,null);Na(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case C:return e=e.get(null===r.key?n:r.key)||null,r.type===R?c(t,e,r.props.children,i,r.key):l(t,e,r,i);case N:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Oa(r)||H(r))return c(t,e=e.get(n)||null,r,i,null);Na(t,r)}return null}function m(i,o,s,l){for(var u=null,c=null,d=o,m=o=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var y=p(i,d,s[m],l);if(null===y){null===d&&(d=v);break}e&&d&&null===y.alternate&&t(i,d),o=a(y,o,m),null===c?u=y:c.sibling=y,c=y,d=v}if(m===s.length)return n(i,d),u;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(o=a(d,o,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(i,d);m<s.length;m++)null!==(v=h(d,i,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(i,e)})),u}function v(i,o,s,l){var u=H(s);if("function"!=typeof u)throw Error(d(150));if(null==(s=u.call(s)))throw Error(d(151));for(var c=u=null,m=o,v=o=0,y=null,g=s.next();null!==m&&!g.done;v++,g=s.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(i,m,g.value,l);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,v),null===c?u=b:c.sibling=b,c=b,m=y}if(g.done)return n(i,m),u;if(null===m){for(;!g.done;v++,g=s.next())null!==(g=f(i,g.value,l))&&(o=a(g,o,v),null===c?u=g:c.sibling=g,c=g);return u}for(m=r(i,m);!g.done;v++,g=s.next())null!==(g=h(m,i,v,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,r,a,s){var l="object"==typeof a&&null!==a&&a.type===R&&null===a.key;l&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case C:e:{for(u=a.key,l=r;null!==l;){if(l.key===u){if(7===l.tag){if(a.type===R){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}}else if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=Ca(e,l,a),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}a.type===R?((r=Zl(a.props.children,e.mode,s,a.key)).return=e,e=r):((s=Xl(a.type,a.key,a.props,null,e.mode,s)).ref=Ca(e,r,a),s.return=e,e=s)}return o(e);case N:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=nu(a,e.mode,s)).return=e,e=r}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=tu(a,e.mode,s)).return=e,e=r),o(e);if(Oa(a))return m(e,r,a,s);if(H(a))return v(e,r,a,s);if(u&&Na(e,a),void 0===a&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(d(152,Z(e.type)||"Component"))}return n(e,r)}}var Da=Ra(!0),Ia=Ra(!1),Aa={},Pa=hi(Aa),Fa=hi(Aa),Ma=hi(Aa);function La(e){if(e===Aa)throw Error(d(174));return e}function qa(e,t){switch(vi(Ma,t),vi(Fa,e),vi(Pa,Aa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:we(null,"");break;default:t=we(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}mi(Pa),vi(Pa,t)}function ja(){mi(Pa),mi(Fa),mi(Ma)}function Va(e){La(Ma.current);var t=La(Pa.current),n=we(t,e.type);t!==n&&(vi(Fa,e),vi(Pa,n))}function za(e){Fa.current===e&&(mi(Pa),mi(Fa))}var $a=hi(0);function Qa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ua=null,Ba=null,Wa=!1;function Ka(e,t){var n=Yl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ha(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ya(e){if(Wa){var t=Ba;if(t){var n=t;if(!Ha(e,t)){if(!(t=Zr(n.nextSibling))||!Ha(e,t))return e.flags=-1025&e.flags|2,Wa=!1,void(Ua=e);Ka(Ua,n)}Ua=e,Ba=Zr(t.firstChild)}else e.flags=-1025&e.flags|2,Wa=!1,Ua=e}}function Ga(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ua=e}function Ja(e){if(e!==Ua)return!1;if(!Wa)return Ga(e),Wa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Yr(t,e.memoizedProps))for(t=Ba;t;)Ka(e,t),t=Zr(t.nextSibling);if(Ga(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(d(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ba=Zr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ba=null}}else Ba=Ua?Zr(e.stateNode.nextSibling):null;return!0}function Xa(){Ba=Ua=null,Wa=!1}var Za=[];function eo(){for(var e=0;e<Za.length;e++)Za[e]._workInProgressVersionPrimary=null;Za.length=0}var to=O.ReactCurrentDispatcher,no=O.ReactCurrentBatchConfig,ro=0,io=null,ao=null,oo=null,so=!1,lo=!1;function uo(){throw Error(d(321))}function co(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mr(e[n],t[n]))return!1;return!0}function fo(e,t,n,r,i,a){if(ro=a,io=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,to.current=null===e||null===e.memoizedState?qo:jo,e=n(r,i),lo){a=0;do{if(lo=!1,!(25>a))throw Error(d(301));a+=1,oo=ao=null,t.updateQueue=null,to.current=Vo,e=n(r,i)}while(lo)}if(to.current=Lo,t=null!==ao&&null!==ao.next,ro=0,oo=ao=io=null,so=!1,t)throw Error(d(300));return e}function po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oo?io.memoizedState=oo=e:oo=oo.next=e,oo}function ho(){if(null===ao){var e=io.alternate;e=null!==e?e.memoizedState:null}else e=ao.next;var t=null===oo?io.memoizedState:oo.next;if(null!==t)oo=t,ao=e;else{if(null===e)throw Error(d(310));e={memoizedState:(ao=e).memoizedState,baseState:ao.baseState,baseQueue:ao.baseQueue,queue:ao.queue,next:null},null===oo?io.memoizedState=oo=e:oo=oo.next=e}return oo}function mo(e,t){return"function"==typeof t?t(e):t}function vo(e){var t=ho(),n=t.queue;if(null===n)throw Error(d(311));n.lastRenderedReducer=e;var r=ao,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=o=a=null,l=i;do{var u=l.lane;if((ro&u)===u)null!==s&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(o=s=c,a=r):s=s.next=c,io.lanes|=u,Ws|=u}l=l.next}while(null!==l&&l!==i);null===s?a=r:s.next=o,mr(r,t.memoizedState)||($o=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function yo(e){var t=ho(),n=t.queue;if(null===n)throw Error(d(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{a=e(a,o.action),o=o.next}while(o!==i);mr(a,t.memoizedState)||($o=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function go(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(ro&e)===e)&&(t._workInProgressVersionPrimary=r,Za.push(t))),e)return n(t._source);throw Za.push(t),Error(d(350))}function bo(e,t,n,r){var i=qs;if(null===i)throw Error(d(349));var a=t._getVersion,o=a(t._source),s=to.current,l=s.useState((function(){return go(i,t,n)})),u=l[1],c=l[0];l=oo;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var v=io;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=a(t._source);if(!mr(o,e)){e=n(t._source),mr(c,e)||(u(e),e=gl(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,s=e;0<s;){var l=31-Yt(s),f=1<<l;r[l]|=e,s&=~f}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=gl(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),mr(h,n)&&mr(m,t)&&mr(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:mo,lastRenderedState:c}).dispatch=u=Mo.bind(null,io,e),l.queue=e,l.baseQueue=null,c=go(i,t,n),l.memoizedState=l.baseState=c),c}function wo(e,t,n){return bo(ho(),e,t,n)}function Eo(e){var t=po();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:mo,lastRenderedState:e}).dispatch=Mo.bind(null,io,e),[t.memoizedState,e]}function ko(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=io.updateQueue)?(t={lastEffect:null},io.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function _o(e){return e={current:e},po().memoizedState=e}function So(){return ho().memoizedState}function xo(e,t,n,r){var i=po();io.flags|=e,i.memoizedState=ko(1|t,n,void 0,void 0===r?null:r)}function To(e,t,n,r){var i=ho();r=void 0===r?null:r;var a=void 0;if(null!==ao){var o=ao.memoizedState;if(a=o.destroy,null!==r&&co(r,o.deps))return void ko(t,n,a,r)}io.flags|=e,i.memoizedState=ko(1|t,n,a,r)}function Oo(e,t){return xo(516,4,e,t)}function Co(e,t){return To(516,4,e,t)}function No(e,t){return To(4,2,e,t)}function Ro(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Do(e,t,n){return n=null!=n?n.concat([e]):null,To(4,2,Ro.bind(null,t,e),n)}function Io(){}function Ao(e,t){var n=ho();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Po(e,t){var n=ho();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&co(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Fo(e,t){var n=Yi();Ji(98>n?98:n,(function(){e(!0)})),Ji(97<n?97:n,(function(){var n=no.transition;no.transition=1;try{e(!1),t()}finally{no.transition=n}}))}function Mo(e,t,n){var r=yl(),i=gl(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===io||null!==o&&o===io)lo=so=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,mr(l,s))return}catch(e){}bl(e,i,r)}}var Lo={readContext:fa,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useLayoutEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useMutableSource:uo,useOpaqueIdentifier:uo,unstable_isNewReconciler:!1},qo={readContext:fa,useCallback:function(e,t){return po().memoizedState=[e,void 0===t?null:t],e},useContext:fa,useEffect:Oo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,xo(4,2,Ro.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xo(4,2,e,t)},useMemo:function(e,t){var n=po();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=po();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Mo.bind(null,io,e),[r.memoizedState,e]},useRef:_o,useState:Eo,useDebugValue:Io,useDeferredValue:function(e){var t=Eo(e),n=t[0],r=t[1];return Oo((function(){var t=no.transition;no.transition=1;try{r(e)}finally{no.transition=t}}),[e]),n},useTransition:function(){var e=Eo(!1),t=e[0];return _o(e=Fo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=po();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},bo(r,e,t,n)},useOpaqueIdentifier:function(){if(Wa){var e=!1,t=function(e){return{$$typeof:z,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(ti++).toString(36))),Error(d(355))})),n=Eo(t)[1];return 0==(2&io.mode)&&(io.flags|=516,ko(5,(function(){n("r:"+(ti++).toString(36))}),void 0,null)),t}return Eo(t="r:"+(ti++).toString(36)),t},unstable_isNewReconciler:!1},jo={readContext:fa,useCallback:Ao,useContext:fa,useEffect:Co,useImperativeHandle:Do,useLayoutEffect:No,useMemo:Po,useReducer:vo,useRef:So,useState:function(){return vo(mo)},useDebugValue:Io,useDeferredValue:function(e){var t=vo(mo),n=t[0],r=t[1];return Co((function(){var t=no.transition;no.transition=1;try{r(e)}finally{no.transition=t}}),[e]),n},useTransition:function(){var e=vo(mo)[0];return[So().current,e]},useMutableSource:wo,useOpaqueIdentifier:function(){return vo(mo)[0]},unstable_isNewReconciler:!1},Vo={readContext:fa,useCallback:Ao,useContext:fa,useEffect:Co,useImperativeHandle:Do,useLayoutEffect:No,useMemo:Po,useReducer:yo,useRef:So,useState:function(){return yo(mo)},useDebugValue:Io,useDeferredValue:function(e){var t=yo(mo),n=t[0],r=t[1];return Co((function(){var t=no.transition;no.transition=1;try{r(e)}finally{no.transition=t}}),[e]),n},useTransition:function(){var e=yo(mo)[0];return[So().current,e]},useMutableSource:wo,useOpaqueIdentifier:function(){return yo(mo)[0]},unstable_isNewReconciler:!1},zo=O.ReactCurrentOwner,$o=!1;function Qo(e,t,n,r){t.child=null===e?Ia(t,null,n,r):Da(t,e.child,n,r)}function Uo(e,t,n,r,i){n=n.render;var a=t.ref;return ca(t,i),r=fo(e,t,n,r,a,i),null===e||$o?(t.flags|=1,Qo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,cs(e,t,i))}function Bo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Gl(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Wo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:yr)(i,r)&&e.ref===t.ref)?cs(e,t,a):(t.flags|=1,(e=Jl(o,r)).ref=t.ref,e.return=t,t.child=e)}function Wo(e,t,n,r,i,a){if(null!==e&&yr(e.memoizedProps,r)&&e.ref===t.ref){if($o=!1,0==(a&i))return t.lanes=e.lanes,cs(e,t,a);0!=(16384&e.flags)&&($o=!0)}return Yo(e,t,n,r,a)}function Ko(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},Ol(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Ol(t,e),null;t.memoizedState={baseLanes:0},Ol(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ol(t,r);return Qo(e,t,i,n),t.child}function Ho(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Yo(e,t,n,r,i){var a=ki(n)?wi:gi.current;return a=Ei(t,a),ca(t,i),n=fo(e,t,n,r,a,i),null===e||$o?(t.flags|=1,Qo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,cs(e,t,i))}function Go(e,t,n,r,i){if(ki(n)){var a=!0;Ti(t)}else a=!1;if(ca(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),Sa(t,n,r),Ta(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=fa(u):u=Ei(t,u=ki(n)?wi:gi.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==u)&&xa(t,o,r,u),da=!1;var d=t.memoizedState;o.state=d,ga(t,r,o,i),l=t.memoizedState,s!==r||d!==l||bi.current||da?("function"==typeof c&&(Ea(t,n,c,r),l=t.memoizedState),(s=da||_a(t,n,s,r,d,l,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ha(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:na(t.type,s),o.props=u,f=t.pendingProps,d=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=fa(l):l=Ei(t,l=ki(n)?wi:gi.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==l)&&xa(t,o,r,l),da=!1,d=t.memoizedState,o.state=d,ga(t,r,o,i);var h=t.memoizedState;s!==f||d!==h||bi.current||da?("function"==typeof p&&(Ea(t,n,p,r),h=t.memoizedState),(u=da||_a(t,n,u,r,d,h,l))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Jo(e,t,n,r,a,i)}function Jo(e,t,n,r,i,a){Ho(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&Oi(t,n,!1),cs(e,t,a);r=t.stateNode,zo.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Da(t,e.child,null,a),t.child=Da(t,null,s,a)):Qo(e,t,s,a),t.memoizedState=r.state,i&&Oi(t,n,!0),t.child}function Xo(e){var t=e.stateNode;t.pendingContext?Si(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Si(0,t.context,!1),qa(e,t.containerInfo)}var Zo,es,ts,ns={dehydrated:null,retryLane:0};function rs(e,t,n){var r,i=t.pendingProps,a=$a.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),vi($a,1&a),null===e?(void 0!==i.fallback&&Ya(t),e=i.children,a=i.fallback,o?(e=is(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ns,e):"number"==typeof i.unstable_expectedLoadTime?(e=is(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ns,t.lanes=33554432,e):((n=eu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=os(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=ns,i):(n=as(e,t,i.children,n),t.memoizedState=null,n))}function is(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=eu(t,i,0,null),n=Zl(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function as(e,t,n,r){var i=e.child;return e=i.sibling,n=Jl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function os(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Jl(o,s),null!==e?r=Jl(e,r):(r=Zl(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ss(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ua(e.return,t)}function ls(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function us(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Qo(e,t,r.children,n),0!=(2&(r=$a.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ss(e,n);else if(19===e.tag)ss(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(vi($a,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Qa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ls(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Qa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ls(t,!0,n,null,a,t.lastEffect);break;case"together":ls(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function cs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ws|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(d(153));if(null!==t.child){for(n=Jl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Jl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function fs(e,t){if(!Wa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ds(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ki(t.type)&&_i(),null;case 3:return ja(),mi(bi),mi(gi),eo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ja(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:za(t);var i=La(Ma.current);if(n=t.type,null!==e&&null!=t.stateNode)es(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(d(166));return null}if(e=La(Pa.current),Ja(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ri]=t,r[ii]=a,n){case"dialog":Fr("cancel",r),Fr("close",r);break;case"iframe":case"object":case"embed":Fr("load",r);break;case"video":case"audio":for(e=0;e<Dr.length;e++)Fr(Dr[e],r);break;case"source":Fr("error",r);break;case"img":case"image":case"link":Fr("error",r),Fr("load",r);break;case"details":Fr("toggle",r);break;case"input":oe(r,a),Fr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Fr("invalid",r);break;case"textarea":he(r,a),Fr("invalid",r)}for(var o in Ne(n,a),e=null,a)a.hasOwnProperty(o)&&(i=a[o],"children"===o?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):h.hasOwnProperty(o)&&null!=i&&"onScroll"===o&&Fr("scroll",r));switch(n){case"input":ne(r),ue(r,a,!0);break;case"textarea":ne(r),ve(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(o=9===i.nodeType?i:i.ownerDocument,e===ye&&(e=be(n)),e===ye?"script"===n?((e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),"select"===n&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ri]=t,e[ii]=r,Zo(e,t),t.stateNode=e,o=Re(n,r),n){case"dialog":Fr("cancel",e),Fr("close",e),i=r;break;case"iframe":case"object":case"embed":Fr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Dr.length;i++)Fr(Dr[i],e);i=r;break;case"source":Fr("error",e),i=r;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),i=r;break;case"details":Fr("toggle",e),i=r;break;case"input":oe(e,r),i=ae(e,r),Fr("invalid",e);break;case"option":i=fe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=s({},r,{value:void 0}),Fr("invalid",e);break;case"textarea":he(e,r),i=pe(e,r),Fr("invalid",e);break;default:i=r}Ne(n,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var u=l[a];"style"===a?Oe(e,u):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&ke(e,u):"children"===a?"string"==typeof u?("textarea"!==n||""!==u)&&_e(e,u):"number"==typeof u&&_e(e,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(h.hasOwnProperty(a)?null!=u&&"onScroll"===a&&Fr("scroll",e):null!=u&&T(e,a,u,o))}switch(n){case"input":ne(e),ue(e,r,!1);break;case"textarea":ne(e),ve(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ee(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?de(e,!!r.multiple,a,!1):null!=r.defaultValue&&de(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Br)}Hr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)ts(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(d(166));n=La(Ma.current),La(Pa.current),Ja(t)?(r=t.stateNode,n=t.memoizedProps,r[ri]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ri]=t,t.stateNode=r)}return null;case 13:return mi($a),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ja(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&$a.current)?0===Qs&&(Qs=3):(0!==Qs&&3!==Qs||(Qs=4),null===qs||0==(134217727&Ws)&&0==(134217727&Ks)||_l(qs,Vs))),(r||n)&&(t.flags|=4),null);case 4:return ja(),null===e&&Lr(t.stateNode.containerInfo),null;case 10:return la(t),null;case 19:if(mi($a),null===(r=t.memoizedState))return null;if(a=0!=(64&t.flags),null===(o=r.rendering))if(a)fs(r,!1);else{if(0!==Qs||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(o=Qa(e))){for(t.flags|=64,fs(r,!1),null!==(a=o.updateQueue)&&(t.updateQueue=a,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(o=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return vi($a,1&$a.current|2),t.child}e=e.sibling}null!==r.tail&&Hi()>Js&&(t.flags|=64,a=!0,fs(r,!1),t.lanes=33554432)}else{if(!a)if(null!==(e=Qa(o))){if(t.flags|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),fs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate&&!Wa)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Hi()-r.renderingStartTime>Js&&1073741824!==n&&(t.flags|=64,a=!0,fs(r,!1),t.lanes=33554432);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=r.last)?n.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Hi(),n.sibling=null,t=$a.current,vi($a,a?1&t|2:1&t),n):null;case 23:case 24:return Cl(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(d(156,t.tag))}function ps(e){switch(e.tag){case 1:ki(e.type)&&_i();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ja(),mi(bi),mi(gi),eo(),0!=(64&(t=e.flags)))throw Error(d(285));return e.flags=-4097&t|64,e;case 5:return za(e),null;case 13:return mi($a),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return mi($a),null;case 4:return ja(),null;case 10:return la(e),null;case 23:case 24:return Cl(),null;default:return null}}function hs(e,t){try{var n="",r=t;do{n+=X(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ms(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Zo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},es=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,La(Pa.current);var a,o=null;switch(n){case"input":i=ae(e,i),r=ae(e,r),o=[];break;case"option":i=fe(e,i),r=fe(e,r),o=[];break;case"select":i=s({},i,{value:void 0}),r=s({},r,{value:void 0}),o=[];break;case"textarea":i=pe(e,i),r=pe(e,r),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(c in Ne(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(h.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(h.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Fr("scroll",e),o||l===u||(o=[])):"object"==typeof u&&null!==u&&u.$$typeof===z?u.toString():(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},ts=function(e,t,n,r){n!==r&&(t.flags|=4)};var vs="function"==typeof WeakMap?WeakMap:Map;function ys(e,t,n){(n=ma(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tl||(tl=!0,nl=r),ms(0,t)},n}function gs(e,t,n){(n=ma(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ms(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===rl?rl=new Set([this]):rl.add(this),ms(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var bs="function"==typeof WeakSet?WeakSet:Set;function ws(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Bl(e,t)}else t.current=null}function Es(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:na(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Xr(t.stateNode.containerInfo))}throw Error(d(163))}function ks(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&($l(n,e),zl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:na(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ba(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ba(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ot(n)))))}throw Error(d(163))}function _s(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=Te("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Ss(e,t){if(Ni&&"function"==typeof Ni.onCommitFiberUnmount)try{Ni.onCommitFiberUnmount(Ci,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))$l(t,n);else{r=t;try{i()}catch(e){Bl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ws(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Bl(t,e)}break;case 5:ws(t);break;case 4:Rs(e,t)}}function xs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Ts(e){return 5===e.tag||3===e.tag||4===e.tag}function Os(e){e:{for(var t=e.return;null!==t;){if(Ts(t))break e;t=t.return}throw Error(d(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(d(161))}16&n.flags&&(_e(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ts(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Cs(e,n,t):Ns(e,n,t)}function Cs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(Cs(e,t,n),e=e.sibling;null!==e;)Cs(e,t,n),e=e.sibling}function Ns(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ns(e,t,n),e=e.sibling;null!==e;)Ns(e,t,n),e=e.sibling}function Rs(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(d(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var o=e,s=i,l=s;;)if(Ss(o,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===s)break e;for(;null===l.sibling;){if(null===l.return||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(o=n,s=i.stateNode,8===o.nodeType?o.parentNode.removeChild(s):o.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(Ss(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Ds(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[ii]=r,"input"===e&&"radio"===r.type&&null!=r.name&&se(n,r),Re(e,i),t=Re(e,r),i=0;i<a.length;i+=2){var o=a[i],s=a[i+1];"style"===o?Oe(n,s):"dangerouslySetInnerHTML"===o?ke(n,s):"children"===o?_e(n,s):T(n,o,s,t)}switch(e){case"input":le(n,r);break;case"textarea":me(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?de(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?de(n,!!r.multiple,r.defaultValue,!0):de(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(d(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Ot(n.containerInfo)));case 13:return null!==t.memoizedState&&(Gs=Hi(),_s(t.child,!0)),void Is(t);case 19:return void Is(t);case 23:case 24:return void _s(t,null!==t.memoizedState)}throw Error(d(163))}function Is(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new bs),t.forEach((function(t){var r=Kl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function As(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ps=Math.ceil,Fs=O.ReactCurrentDispatcher,Ms=O.ReactCurrentOwner,Ls=0,qs=null,js=null,Vs=0,zs=0,$s=hi(0),Qs=0,Us=null,Bs=0,Ws=0,Ks=0,Hs=0,Ys=null,Gs=0,Js=1/0;function Xs(){Js=Hi()+500}var Zs,el=null,tl=!1,nl=null,rl=null,il=!1,al=null,ol=90,sl=[],ll=[],ul=null,cl=0,fl=null,dl=-1,pl=0,hl=0,ml=null,vl=!1;function yl(){return 0!=(48&Ls)?Hi():-1!==dl?dl:dl=Hi()}function gl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Yi()?1:2;if(0===pl&&(pl=Bs),0!==ta.transition){0!==hl&&(hl=null!==Ys?Ys.pendingLanes:0),e=pl;var t=4186112&~hl;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Yi(),0!=(4&Ls)&&98===e?e=Bt(12,pl):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),pl),e}function bl(e,t,n){if(50<cl)throw cl=0,fl=null,Error(d(185));if(null===(e=wl(e,t)))return null;Ht(e,t,n),e===qs&&(Ks|=t,4===Qs&&_l(e,Vs));var r=Yi();1===t?0!=(8&Ls)&&0==(48&Ls)?Sl(e):(El(e,n),0===Ls&&(Xs(),Zi())):(0==(4&Ls)||98!==r&&99!==r||(null===ul?ul=new Set([e]):ul.add(e)),El(e,n)),Ys=e}function wl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function El(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Yt(o),l=1<<s,u=a[s];if(-1===u){if(0==(l&r)||0!=(l&i)){u=t,$t(l);var c=zt;a[s]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=t&&(e.expiredLanes|=l);o&=~l}if(r=Qt(e,e===qs?Vs:0),t=zt,0===r)null!==n&&(n!==$i&&Ii(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==$i&&Ii(n)}15===t?(n=Sl.bind(null,e),null===Ui?(Ui=[n],Bi=Di(Li,ea)):Ui.push(n),n=$i):14===t?n=Xi(99,Sl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(d(358,e))}}(t),n=Xi(n,kl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function kl(e){if(dl=-1,hl=pl=0,0!=(48&Ls))throw Error(d(327));var t=e.callbackNode;if(Vl()&&e.callbackNode!==t)return null;var n=Qt(e,e===qs?Vs:0);if(0===n)return null;var r=n,i=Ls;Ls|=16;var a=Dl();for(qs===e&&Vs===r||(Xs(),Nl(e,r));;)try{Pl();break}catch(t){Rl(e,t)}if(sa(),Fs.current=a,Ls=i,null!==js?r=0:(qs=null,Vs=0,r=Qs),0!=(Bs&Ks))Nl(e,0);else if(0!==r){if(2===r&&(Ls|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(n=Ut(e))&&(r=Il(e,n))),1===r)throw t=Us,Nl(e,0),_l(e,n),El(e,Hi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(d(345));case 2:case 5:Ll(e);break;case 3:if(_l(e,n),(62914560&n)===n&&10<(r=Gs+500-Hi())){if(0!==Qt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){yl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gr(Ll.bind(null,e),r);break}Ll(e);break;case 4:if(_l(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var o=31-Yt(n);a=1<<o,(o=r[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=Hi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ps(n/1960))-n)){e.timeoutHandle=Gr(Ll.bind(null,e),n);break}Ll(e);break;default:throw Error(d(329))}}return El(e,Hi()),e.callbackNode===t?kl.bind(null,e):null}function _l(e,t){for(t&=~Hs,t&=~Ks,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Yt(t),r=1<<n;e[n]=-1,t&=~r}}function Sl(e){if(0!=(48&Ls))throw Error(d(327));if(Vl(),e===qs&&0!=(e.expiredLanes&Vs)){var t=Vs,n=Il(e,t);0!=(Bs&Ks)&&(n=Il(e,t=Qt(e,t)))}else n=Il(e,t=Qt(e,0));if(0!==e.tag&&2===n&&(Ls|=64,e.hydrate&&(e.hydrate=!1,Xr(e.containerInfo)),0!==(t=Ut(e))&&(n=Il(e,t))),1===n)throw n=Us,Nl(e,0),_l(e,t),El(e,Hi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ll(e),El(e,Hi()),null}function xl(e,t){var n=Ls;Ls|=1;try{return e(t)}finally{0===(Ls=n)&&(Xs(),Zi())}}function Tl(e,t){var n=Ls;Ls&=-2,Ls|=8;try{return e(t)}finally{0===(Ls=n)&&(Xs(),Zi())}}function Ol(e,t){vi($s,zs),zs|=t,Bs|=t}function Cl(){zs=$s.current,mi($s)}function Nl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Jr(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&_i();break;case 3:ja(),mi(bi),mi(gi),eo();break;case 5:za(r);break;case 4:ja();break;case 13:case 19:mi($a);break;case 10:la(r);break;case 23:case 24:Cl()}n=n.return}qs=e,js=Jl(e.current,null),Vs=zs=Bs=t,Qs=0,Us=null,Hs=Ks=Ws=0}function Rl(e,t){for(;;){var n=js;try{if(sa(),to.current=Lo,so){for(var r=io.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}so=!1}if(ro=0,oo=ao=io=null,lo=!1,Ms.current=null,null===n||null===n.return){Qs=1,Us=t,js=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Vs,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&$a.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(u),d.updateQueue=y}else v.add(u);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var g=ma(-1,1);g.tag=2,va(s,g)}s.lanes|=1;break e}l=void 0,s=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new vs,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var w=Wl.bind(null,a,u,s);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((Z(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Qs&&(Qs=2),l=hs(l,s),d=o;do{switch(d.tag){case 3:a=l,d.flags|=4096,t&=-t,d.lanes|=t,ya(d,ys(0,a,t));break e;case 1:a=l;var E=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof E.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===rl||!rl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,ya(d,gs(d,a,t));break e}}d=d.return}while(null!==d)}Ml(n)}catch(e){t=e,js===n&&null!==n&&(js=n=n.return);continue}break}}function Dl(){var e=Fs.current;return Fs.current=Lo,null===e?Lo:e}function Il(e,t){var n=Ls;Ls|=16;var r=Dl();for(qs===e&&Vs===t||Nl(e,t);;)try{Al();break}catch(t){Rl(e,t)}if(sa(),Ls=n,Fs.current=r,null!==js)throw Error(d(261));return qs=null,Vs=0,Qs}function Al(){for(;null!==js;)Fl(js)}function Pl(){for(;null!==js&&!Ai();)Fl(js)}function Fl(e){var t=Zs(e.alternate,e,zs);e.memoizedProps=e.pendingProps,null===t?Ml(e):js=t,Ms.current=null}function Ml(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ds(n,t,zs)))return void(js=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&zs)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=ps(t)))return n.flags&=2047,void(js=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Qs&&(Qs=5)}function Ll(e){var t=Yi();return Ji(99,ql.bind(null,e,t)),null}function ql(e,t){do{Vl()}while(null!==al);if(0!=(48&Ls))throw Error(d(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(d(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,s=e.expirationTimes;0<a;){var l=31-Yt(a),u=1<<l;i[l]=0,o[l]=-1,s[l]=-1,a&=~u}if(null!==ul&&0==(24&r)&&ul.has(e)&&ul.delete(e),e===qs&&(js=qs=null,Vs=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ls,Ls|=32,Ms.current=null,Wr=en,kr(o=Er())){if("selectionStart"in o)s={start:o.selectionStart,end:o.selectionEnd};else e:if(s=(s=o.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&0!==u.rangeCount){s=u.anchorNode,a=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{s.nodeType,l.nodeType}catch(e){s=null;break e}var c=0,f=-1,p=-1,h=0,m=0,v=o,y=null;t:for(;;){for(var g;v!==s||0!==a&&3!==v.nodeType||(f=c+a),v!==l||0!==u&&3!==v.nodeType||(p=c+u),3===v.nodeType&&(c+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===o)break t;if(y===s&&++h===a&&(f=c),y===l&&++m===u&&(p=c),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}s=-1===f||-1===p?null:{start:f,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Kr={focusedElem:o,selectionRange:s},en=!1,ml=null,vl=!1,el=r;do{try{jl()}catch(e){if(null===el)throw Error(d(330));Bl(el,e),el=el.nextEffect}}while(null!==el);ml=null,el=r;do{try{for(o=e;null!==el;){var b=el.flags;if(16&b&&_e(el.stateNode,""),128&b){var w=el.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&b){case 2:Os(el),el.flags&=-3;break;case 6:Os(el),el.flags&=-3,Ds(el.alternate,el);break;case 1024:el.flags&=-1025;break;case 1028:el.flags&=-1025,Ds(el.alternate,el);break;case 4:Ds(el.alternate,el);break;case 8:Rs(o,s=el);var k=s.alternate;xs(s),null!==k&&xs(k)}el=el.nextEffect}}catch(e){if(null===el)throw Error(d(330));Bl(el,e),el=el.nextEffect}}while(null!==el);if(E=Kr,w=Er(),b=E.focusedElem,o=E.selectionRange,w!==b&&b&&b.ownerDocument&&wr(b.ownerDocument.documentElement,b)){null!==o&&kr(b)&&(w=o.start,void 0===(E=o.end)&&(E=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(E,b.value.length)):(E=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),s=b.textContent.length,k=Math.min(o.start,s),o=void 0===o.end?k:Math.min(o.end,s),!E.extend&&k>o&&(s=o,o=k,k=s),s=br(b,k),a=br(b,o),s&&a&&(1!==E.rangeCount||E.anchorNode!==s.node||E.anchorOffset!==s.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&((w=w.createRange()).setStart(s.node,s.offset),E.removeAllRanges(),k>o?(E.addRange(w),E.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),E.addRange(w))))),w=[];for(E=b;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(E=w[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}en=!!Wr,Kr=Wr=null,e.current=n,el=r;do{try{for(b=e;null!==el;){var _=el.flags;if(36&_&&ks(b,el.alternate,el),128&_){w=void 0;var S=el.ref;if(null!==S){var x=el.stateNode;el.tag,w=x,"function"==typeof S?S(w):S.current=w}}el=el.nextEffect}}catch(e){if(null===el)throw Error(d(330));Bl(el,e),el=el.nextEffect}}while(null!==el);el=null,Qi(),Ls=i}else e.current=n;if(il)il=!1,al=e,ol=t;else for(el=r;null!==el;)t=el.nextEffect,el.nextEffect=null,8&el.flags&&((_=el).sibling=null,_.stateNode=null),el=t;if(0===(r=e.pendingLanes)&&(rl=null),1===r?e===fl?cl++:(cl=0,fl=e):cl=0,n=n.stateNode,Ni&&"function"==typeof Ni.onCommitFiberRoot)try{Ni.onCommitFiberRoot(Ci,n,void 0,64==(64&n.current.flags))}catch(e){}if(El(e,Hi()),tl)throw tl=!1,e=nl,nl=null,e;return 0!=(8&Ls)||Zi(),null}function jl(){for(;null!==el;){var e=el.alternate;vl||null===ml||(0!=(8&el.flags)?at(el,ml)&&(vl=!0):13===el.tag&&As(e,el)&&at(el,ml)&&(vl=!0));var t=el.flags;0!=(256&t)&&Es(e,el),0==(512&t)||il||(il=!0,Xi(97,(function(){return Vl(),null}))),el=el.nextEffect}}function Vl(){if(90!==ol){var e=97<ol?97:ol;return ol=90,Ji(e,Ql)}return!1}function zl(e,t){sl.push(t,e),il||(il=!0,Xi(97,(function(){return Vl(),null})))}function $l(e,t){ll.push(t,e),il||(il=!0,Xi(97,(function(){return Vl(),null})))}function Ql(){if(null===al)return!1;var e=al;if(al=null,0!=(48&Ls))throw Error(d(331));var t=Ls;Ls|=32;var n=ll;ll=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],o=i.destroy;if(i.destroy=void 0,"function"==typeof o)try{o()}catch(e){if(null===a)throw Error(d(330));Bl(a,e)}}for(n=sl,sl=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===a)throw Error(d(330));Bl(a,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Ls=t,Zi(),!0}function Ul(e,t,n){va(e,t=ys(0,t=hs(n,t),1)),t=yl(),null!==(e=wl(e,1))&&(Ht(e,1,t),El(e,t))}function Bl(e,t){if(3===e.tag)Ul(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ul(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===rl||!rl.has(r))){var i=gs(n,e=hs(t,e),1);if(va(n,i),i=yl(),null!==(n=wl(n,1)))Ht(n,1,i),El(n,i);else if("function"==typeof r.componentDidCatch&&(null===rl||!rl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Wl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=yl(),e.pingedLanes|=e.suspendedLanes&n,qs===e&&(Vs&n)===n&&(4===Qs||3===Qs&&(62914560&Vs)===Vs&&500>Hi()-Gs?Nl(e,0):Hs|=n),El(e,t)}function Kl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Yi()?1:2:(0===pl&&(pl=Bs),0===(t=Wt(62914560&~pl))&&(t=4194304))),n=yl(),null!==(e=wl(e,t))&&(Ht(e,t,n),El(e,n))}function Hl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Yl(e,t,n,r){return new Hl(e,t,n,r)}function Gl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Jl(e,t){var n=e.alternate;return null===n?((n=Yl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,r,i,a){var o=2;if(r=e,"function"==typeof e)Gl(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case R:return Zl(n.children,i,a,t);case $:o=8,i|=16;break;case D:o=8,i|=1;break;case I:return(e=Yl(12,n,t,8|i)).elementType=I,e.type=I,e.lanes=a,e;case M:return(e=Yl(13,n,t,i)).type=M,e.elementType=M,e.lanes=a,e;case L:return(e=Yl(19,n,t,i)).elementType=L,e.lanes=a,e;case Q:return eu(n,i,a,t);case U:return(e=Yl(24,n,t,i)).elementType=U,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case A:o=10;break e;case P:o=9;break e;case F:o=11;break e;case q:o=14;break e;case j:o=16,r=null;break e;case V:o=22;break e}throw Error(d(130,null==e?e:typeof e,""))}return(t=Yl(o,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Zl(e,t,n,r){return(e=Yl(7,e,r,t)).lanes=n,e}function eu(e,t,n,r){return(e=Yl(23,e,r,t)).elementType=Q,e.lanes=n,e}function tu(e,t,n){return(e=Yl(6,e,null,t)).lanes=n,e}function nu(e,t,n){return(t=Yl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ru(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Kt(0),this.expirationTimes=Kt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kt(0),this.mutableSourceEagerHydrationData=null}function iu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:N,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function au(e,t,n,r){var i=t.current,a=yl(),o=gl(i);e:if(n){t:{if(tt(n=n._reactInternals)!==n||1!==n.tag)throw Error(d(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(ki(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(d(171))}if(1===n.tag){var l=n.type;if(ki(l)){n=xi(n,l,s);break e}}n=s}else n=yi;return null===t.context?t.context=n:t.pendingContext=n,(t=ma(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),va(i,t),bl(i,o,a),o}function ou(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function su(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lu(e,t){su(e,t),(e=e.alternate)&&su(e,t)}function uu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new ru(e,t,null!=n&&!0===n.hydrate),t=Yl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,pa(t),e[ai]=n.current,Lr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function cu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function fu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=ou(o);s.call(e)}}au(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new uu(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var l=i;i=function(){var e=ou(o);l.call(e)}}Tl((function(){au(t,o,e,i)}))}return ou(o)}function du(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!cu(t))throw Error(d(200));return iu(e,t,null,n)}Zs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||bi.current)$o=!0;else{if(0==(n&r)){switch($o=!1,t.tag){case 3:Xo(t),Xa();break;case 5:Va(t);break;case 1:ki(t.type)&&Ti(t);break;case 4:qa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;vi(ra,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?rs(e,t,n):(vi($a,1&$a.current),null!==(t=cs(e,t,n))?t.sibling:null);vi($a,1&$a.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return us(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),vi($a,$a.current),r)break;return null;case 23:case 24:return t.lanes=0,Ko(e,t,n)}return cs(e,t,n)}$o=0!=(16384&e.flags)}else $o=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Ei(t,gi.current),ca(t,n),i=fo(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ki(r)){var a=!0;Ti(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,pa(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&Ea(t,r,o,e),i.updater=ka,t.stateNode=i,i._reactInternals=t,Ta(t,r,e,n),t=Jo(null,t,r,!0,a,n)}else t.tag=0,Qo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Gl(e)?1:0;if(null!=e){if((e=e.$$typeof)===F)return 11;if(e===q)return 14}return 2}(i),e=na(i,e),a){case 0:t=Yo(null,t,i,e,n);break e;case 1:t=Go(null,t,i,e,n);break e;case 11:t=Uo(null,t,i,e,n);break e;case 14:t=Bo(null,t,i,na(i.type,e),r,n);break e}throw Error(d(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Yo(e,t,r,i=t.elementType===r?i:na(r,i),n);case 1:return r=t.type,i=t.pendingProps,Go(e,t,r,i=t.elementType===r?i:na(r,i),n);case 3:if(Xo(t),r=t.updateQueue,null===e||null===r)throw Error(d(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ha(e,t),ga(t,r,null,n),(r=t.memoizedState.element)===i)Xa(),t=cs(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ba=Zr(t.stateNode.containerInfo.firstChild),Ua=t,a=Wa=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Za.push(a);for(n=Ia(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Qo(e,t,r,n),Xa();t=t.child}return t;case 5:return Va(t),null===e&&Ya(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Yr(r,i)?o=null:null!==a&&Yr(r,a)&&(t.flags|=16),Ho(e,t),Qo(e,t,o,n),t.child;case 6:return null===e&&Ya(t),null;case 13:return rs(e,t,n);case 4:return qa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Da(t,null,r,n):Qo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Uo(e,t,r,i=t.elementType===r?i:na(r,i),n);case 7:return Qo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Qo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var s=t.type._context;if(vi(ra,s._currentValue),s._currentValue=a,null!==o)if(s=o.value,0===(a=mr(s,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(o.children===i.children&&!bi.current){t=cs(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){o=s.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&a)){1===s.tag&&((u=ma(-1,n&-n)).tag=2,va(s,u)),s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),ua(s.return,n),l.lanes|=n;break}u=u.next}}else o=10===s.tag&&s.type===t.type?null:s.child;if(null!==o)o.return=s;else for(o=s;null!==o;){if(o===t){o=null;break}if(null!==(s=o.sibling)){s.return=o.return,o=s;break}o=o.return}s=o}Qo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ca(t,n),r=r(i=fa(i,a.unstable_observedBits)),t.flags|=1,Qo(e,t,r,n),t.child;case 14:return a=na(i=t.type,t.pendingProps),Bo(e,t,i,a=na(i.type,a),r,n);case 15:return Wo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:na(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ki(r)?(e=!0,Ti(t)):e=!1,ca(t,n),Sa(t,r,i),Ta(t,r,i,n),Jo(null,t,r,!0,e,n);case 19:return us(e,t,n);case 23:case 24:return Ko(e,t,n)}throw Error(d(156,t.tag))},uu.prototype.render=function(e){au(e,this._internalRoot,null,null)},uu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;au(null,e,null,(function(){t[ai]=null}))},ot=function(e){13===e.tag&&(bl(e,4,yl()),lu(e,4))},st=function(e){13===e.tag&&(bl(e,67108864,yl()),lu(e,67108864))},lt=function(e){if(13===e.tag){var t=yl(),n=gl(e);bl(e,n,t),lu(e,n)}},ut=function(e,t){return t()},Ie=function(e,t,n){switch(t){case"input":if(le(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ci(r);if(!i)throw Error(d(90));re(r),le(r,i)}}}break;case"textarea":me(e,n);break;case"select":null!=(t=n.value)&&de(e,!!n.multiple,t,!1)}},qe=xl,je=function(e,t,n,r,i){var a=Ls;Ls|=4;try{return Ji(98,e.bind(null,t,n,r,i))}finally{0===(Ls=a)&&(Xs(),Zi())}},Ve=function(){0==(49&Ls)&&(function(){if(null!==ul){var e=ul;ul=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,El(e,Hi())}))}Zi()}(),Vl())},ze=function(e,t){var n=Ls;Ls|=2;try{return e(t)}finally{0===(Ls=n)&&(Xs(),Zi())}};var pu={Events:[li,ui,ci,Me,Le,Vl,{current:!1}]},hu={findFiberByHostInstance:si,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},mu={bundleType:hu.bundleType,version:hu.version,rendererPackageName:hu.rendererPackageName,rendererConfig:hu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:O.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=it(e))?null:e.stateNode},findFiberByHostInstance:hu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vu.isDisabled&&vu.supportsFiber)try{Ci=vu.inject(mu),Ni=vu}catch(Bb){}}var yu={__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pu,createPortal:du,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(d(188));throw Error(d(268,Object.keys(e)))}return e=null===(e=it(t))?null:e.stateNode},flushSync:function(e,t){var n=Ls;if(0!=(48&n))return e(t);Ls|=1;try{if(e)return Ji(99,e.bind(null,t))}finally{Ls=n,Zi()}},hydrate:function(e,t,n){if(!cu(t))throw Error(d(200));return fu(null,e,t,!0,n)},render:function(e,t,n){if(!cu(t))throw Error(d(200));return fu(null,e,t,!1,n)},unmountComponentAtNode:function(e){if(!cu(e))throw Error(d(40));return!!e._reactRootContainer&&(Tl((function(){fu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ai]=null}))})),!0)},unstable_batchedUpdates:xl,unstable_createPortal:function(e,t){return du(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!cu(n))throw Error(d(200));if(null==e||void 0===e._reactInternals)throw Error(d(38));return fu(e,t,n,!1,r)},version:"17.0.2"},gu=0,bu={__interactionsRef:null,__subscriberRef:null,unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++gu},unstable_subscribe:function(){},unstable_trace:function(e,t,n){return n()},unstable_unsubscribe:function(){},unstable_wrap:function(e){return e}};
  /** @license React v0.20.2
  	 * scheduler-tracing.development.js
  	 *
  	 * Copyright (c) Facebook, Inc. and its affiliates.
  	 *
  	 * This source code is licensed under the MIT license found in the
  	 * LICENSE file in the root directory of this source tree.
  	 */
  n((function(e,t){})),n((function(e){e.exports=bu})),
  /** @license React v17.0.2
  	 * react-dom.development.js
  	 *
  	 * Copyright (c) Facebook, Inc. and its affiliates.
  	 *
  	 * This source code is licensed under the MIT license found in the
  	 * LICENSE file in the root directory of this source tree.
  	 */
  n((function(e,t){}));var wu=n((function(e){!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=yu})),Eu=function(e,t){return Eu=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])},Eu(e,t)};
  /*! *****************************************************************************
  	Copyright (c) Microsoft Corporation.
  
  	Permission to use, copy, modify, and/or distribute this software for any
  	purpose with or without fee is hereby granted.
  
  	THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  	REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  	AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  	INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  	LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  	OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  	PERFORMANCE OF THIS SOFTWARE.
  	***************************************************************************** */function ku(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}Eu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _u=function(){return _u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_u.apply(this,arguments)};function Su(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function xu(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function Tu(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function Ou(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var Cu="Invariant Violation",Nu=Object.setPrototypeOf,Ru=void 0===Nu?function(e,t){return e.__proto__=t,e}:Nu,Du=function(e){function t(n){void 0===n&&(n=Cu);var r=e.call(this,"number"==typeof n?Cu+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=Cu,Ru(r,t.prototype),r}return ku(t,e),t}(Error);function Iu(e,t){if(!e)throw new Du(t)}var Au=["debug","log","warn","error","silent"],Pu=Au.indexOf("log");function Fu(e){return function(){if(Au.indexOf(e)>=Pu){var t=console[e]||console.log;return t.apply(console,arguments)}}}function Mu(e){try{return e()}catch(e){}}!function(e){e.debug=Fu("debug"),e.log=Fu("log"),e.warn=Fu("warn"),e.error=Fu("error")}(Iu||(Iu={}));var Lu=Mu((function(){return globalThis}))||Mu((function(){return window}))||Mu((function(){return self}))||Mu((function(){return global}))||Mu((function(){return Function("return this")()})),qu="__",ju=[qu,qu].join("DEV");var Vu=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(Lu,ju,{value:"production"!==Mu((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),Lu[ju]}}();function zu(e){try{return e()}catch(e){}}var $u=zu((function(){return globalThis}))||zu((function(){return window}))||zu((function(){return self}))||zu((function(){return global}))||zu((function(){return Function("return this")()})),Qu=!1;function Uu(){Qu&&(delete $u.process,Qu=!1)}function Bu(e){return Bu="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},Bu(e)}!$u||zu((function(){return"production"}))||zu((function(){return process}))||(Object.defineProperty($u,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Qu=!0);var Wu="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function Ku(e,t){for(var n,r=/\r\n|[\n\r]/g,i=1,a=t+1;(n=r.exec(e.body))&&n.index<t;)i+=1,a=t+1-(n.index+n[0].length);return{line:i,column:a}}function Hu(e){return Yu(e.source,Ku(e.source,e.start))}function Yu(e,t){var n=e.locationOffset.column-1,r=Ju(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?n:0,l=t.column+s,u="".concat(e.name,":").concat(o,":").concat(l,"\n"),c=r.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){for(var d=Math.floor(l/80),p=l%80,h=[],m=0;m<f.length;m+=80)h.push(f.slice(m,m+80));return u+Gu([["".concat(o),h[0]]].concat(h.slice(1,d+1).map((function(e){return["",e]})),[[" ",Ju(p-1)+"^"],["",h[d+1]]]))}return u+Gu([["".concat(o-1),c[i-1]],["".concat(o),f],["",Ju(l-1)+"^"],["".concat(o+1),c[i+1]]])}function Gu(e){var t=e.filter((function(e){return e[0],void 0!==e[1]})),n=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,r=e[0],i=e[1];return Ju(n-(t=r).length)+t+(i?" | "+i:" |")})).join("\n")}function Ju(e){return Array(e+1).join(" ")}function Xu(e){return Xu="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},Xu(e)}function Zu(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 ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nc(e,t){return!t||"object"!==Xu(t)&&"function"!=typeof t?rc(e):t}function rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ic(e){var t="function"==typeof Map?new Map:void 0;return ic=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(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ac(e,arguments,lc(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),sc(r,e)},ic(e)}function ac(e,t,n){return ac=oc()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&sc(i,n.prototype),i},ac.apply(null,arguments)}function oc(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function sc(e,t){return sc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sc(e,t)}function lc(e){return lc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lc(e)}var uc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sc(e,t)}(s,e);var t,n,r,i,a,o=(t=s,n=oc(),function(){var e,r=lc(t);if(n){var i=lc(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return nc(this,e)});function s(e,t,n,r,i,a,l){var u,c,f,d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(d=o.call(this,e)).name="GraphQLError",d.originalError=null!=a?a:void 0,d.nodes=cc(Array.isArray(t)?t:t?[t]:void 0);for(var p=[],h=0,m=null!==(v=d.nodes)&&void 0!==v?v:[];h<m.length;h++){var v,y=m[h].loc;null!=y&&p.push(y)}p=cc(p),d.source=null!=n?n:null===(u=p)||void 0===u?void 0:u[0].source,d.positions=null!=r?r:null===(c=p)||void 0===c?void 0:c.map((function(e){return e.start})),d.locations=r&&n?r.map((function(e){return Ku(n,e)})):null===(f=p)||void 0===f?void 0:f.map((function(e){return Ku(e.source,e.start)})),d.path=null!=i?i:void 0;var g,b=null==a?void 0:a.extensions;return null==l&&("object"==Bu(g=b)&&null!==g)?d.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zu(Object(n),!0).forEach((function(t){ec(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},b):d.extensions=null!=l?l:{},Object.defineProperties(rc(d),{message:{enumerable:!0},locations:{enumerable:null!=d.locations},path:{enumerable:null!=d.path},extensions:{enumerable:null!=d.extensions&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=a&&a.stack?(Object.defineProperty(rc(d),"stack",{value:a.stack,writable:!0,configurable:!0}),nc(d)):(Error.captureStackTrace?Error.captureStackTrace(rc(d),s):Object.defineProperty(rc(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return r=s,(i=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];i.loc&&(t+="\n\n"+Hu(i.loc))}else if(e.source&&e.locations)for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];t+="\n\n"+Yu(e.source,s)}return t}(this)}},{key:Wu,get:function(){return"Object"}}])&&tc(r.prototype,i),a&&tc(r,a),s}(ic(Error));function cc(e){return void 0===e||0===e.length?void 0:e}function fc(e,t,n){return new uc("Syntax Error: ".concat(n),void 0,e,[t])}var dc=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"});var pc="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function hc(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,pc&&(e.prototype[pc]=t)}var mc=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}();hc(mc);var vc=function(){function e(e,t,n,r,i,a,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=a,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function yc(e){return null!=e&&"string"==typeof e.kind}hc(vc);var gc=Object.freeze({SOF:"<SOF>",EOF:"<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"});function bc(e){return bc="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},bc(e)}function wc(e){return Ec(e,[])}function Ec(e,t){switch(bc(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(pc)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:Ec(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,i=[],a=0;a<n;++a)i.push(Ec(e[a],t));1===r?i.push("... 1 more item"):r>1&&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>2)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+": "+Ec(e[n],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function kc(e,t){if(!Boolean(e))throw new Error(t)}function _c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Sc=function(){function e(e){var t=arguments.length>1&&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||kc(0,"Body must be a string. Received: ".concat(wc(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||kc(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||kc(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,r;return t=e,(n=[{key:Wu,get:function(){return"Source"}}])&&_c(t.prototype,n),r&&_c(t,r),e}();var xc=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"});function Tc(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,r=!0,i=0,a=null,o=0;o<e.length;++o)switch(e.charCodeAt(o)){case 13:10===e.charCodeAt(o+1)&&++o;case 10:n=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!n&&(null===a||i<a)&&(a=i),r=!1}return null!==(t=a)&&void 0!==t?t:0}(e);if(0!==n)for(var r=1;r<t.length;r++)t[r]=t[r].slice(n);for(var i=0;i<t.length&&Oc(t[i]);)++i;for(var a=t.length;a>i&&Oc(t[a-1]);)--a;return t.slice(i,a).join("\n")}function Oc(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var Cc=function(){function e(e){var t=new vc(gc.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!==gc.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Rc(this,e)}while(e.kind===gc.COMMENT);return e},e}();function Nc(e){return isNaN(e)?gc.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Rc(e,t){for(var n=e.source,r=n.body,i=r.length,a=t.end;a<i;){var o=r.charCodeAt(a),s=e.line,l=1+a-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++e.line,e.lineStart=a;continue;case 13:10===r.charCodeAt(a+1)?a+=2:++a,++e.line,e.lineStart=a;continue;case 33:return new vc(gc.BANG,a,a+1,s,l,t);case 35:return Ic(n,a,s,l,t);case 36:return new vc(gc.DOLLAR,a,a+1,s,l,t);case 38:return new vc(gc.AMP,a,a+1,s,l,t);case 40:return new vc(gc.PAREN_L,a,a+1,s,l,t);case 41:return new vc(gc.PAREN_R,a,a+1,s,l,t);case 46:if(46===r.charCodeAt(a+1)&&46===r.charCodeAt(a+2))return new vc(gc.SPREAD,a,a+3,s,l,t);break;case 58:return new vc(gc.COLON,a,a+1,s,l,t);case 61:return new vc(gc.EQUALS,a,a+1,s,l,t);case 64:return new vc(gc.AT,a,a+1,s,l,t);case 91:return new vc(gc.BRACKET_L,a,a+1,s,l,t);case 93:return new vc(gc.BRACKET_R,a,a+1,s,l,t);case 123:return new vc(gc.BRACE_L,a,a+1,s,l,t);case 124:return new vc(gc.PIPE,a,a+1,s,l,t);case 125:return new vc(gc.BRACE_R,a,a+1,s,l,t);case 34:return 34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)?Mc(n,a,s,l,t,e):Fc(n,a,s,l,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Ac(n,a,o,s,l,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return jc(n,a,s,l,t)}throw fc(n,a,Dc(o))}var u=e.line,c=1+a-e.lineStart;return new vc(gc.EOF,i,i,u,c,t)}function Dc(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(Nc(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Nc(e),".")}function Ic(e,t,n,r,i){var a,o=e.body,s=t;do{a=o.charCodeAt(++s)}while(!isNaN(a)&&(a>31||9===a));return new vc(gc.COMMENT,t,s,n,r,i,o.slice(t+1,s))}function Ac(e,t,n,r,i,a){var o=e.body,s=n,l=t,u=!1;if(45===s&&(s=o.charCodeAt(++l)),48===s){if((s=o.charCodeAt(++l))>=48&&s<=57)throw fc(e,l,"Invalid number, unexpected digit after 0: ".concat(Nc(s),"."))}else l=Pc(e,l,s),s=o.charCodeAt(l);if(46===s&&(u=!0,s=o.charCodeAt(++l),l=Pc(e,l,s),s=o.charCodeAt(l)),69!==s&&101!==s||(u=!0,43!==(s=o.charCodeAt(++l))&&45!==s||(s=o.charCodeAt(++l)),l=Pc(e,l,s),s=o.charCodeAt(l)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw fc(e,l,"Invalid number, expected digit but got: ".concat(Nc(s),"."));return new vc(u?gc.FLOAT:gc.INT,t,l,r,i,a,o.slice(t,l))}function Pc(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 fc(e,i,"Invalid number, expected digit but got: ".concat(Nc(a),"."))}function Fc(e,t,n,r,i){for(var a=e.body,o=t+1,s=o,l=0,u="";o<a.length&&!isNaN(l=a.charCodeAt(o))&&10!==l&&13!==l;){if(34===l)return u+=a.slice(s,o),new vc(gc.STRING,t,o+1,n,r,i,u);if(l<32&&9!==l)throw fc(e,o,"Invalid character within String: ".concat(Nc(l),"."));if(++o,92===l){switch(u+=a.slice(s,o-1),l=a.charCodeAt(o)){case 34:u+='"';break;case 47:u+="/";break;case 92:u+="\\";break;case 98:u+="\b";break;case 102:u+="\f";break;case 110:u+="\n";break;case 114:u+="\r";break;case 116:u+="\t";break;case 117:var c=Lc(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(c<0){var f=a.slice(o+1,o+5);throw fc(e,o,"Invalid character escape sequence: \\u".concat(f,"."))}u+=String.fromCharCode(c),o+=4;break;default:throw fc(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(l),"."))}s=++o}}throw fc(e,o,"Unterminated string.")}function Mc(e,t,n,r,i,a){for(var o=e.body,s=t+3,l=s,u=0,c="";s<o.length&&!isNaN(u=o.charCodeAt(s));){if(34===u&&34===o.charCodeAt(s+1)&&34===o.charCodeAt(s+2))return c+=o.slice(l,s),new vc(gc.BLOCK_STRING,t,s+3,n,r,i,Tc(c));if(u<32&&9!==u&&10!==u&&13!==u)throw fc(e,s,"Invalid character within String: ".concat(Nc(u),"."));10===u?(++s,++a.line,a.lineStart=s):13===u?(10===o.charCodeAt(s+1)?s+=2:++s,++a.line,a.lineStart=s):92===u&&34===o.charCodeAt(s+1)&&34===o.charCodeAt(s+2)&&34===o.charCodeAt(s+3)?(c+=o.slice(l,s)+'"""',l=s+=4):++s}throw fc(e,s,"Unterminated string.")}function Lc(e,t,n,r){return qc(e)<<12|qc(t)<<8|qc(n)<<4|qc(r)}function qc(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function jc(e,t,n,r,i){for(var a=e.body,o=a.length,s=t+1,l=0;s!==o&&!isNaN(l=a.charCodeAt(s))&&(95===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122);)++s;return new vc(gc.NAME,t,s,n,r,i,a.slice(t,s))}var Vc=function(){function e(e,t){var n=function(e){return e instanceof Sc}(e)?e:new Sc(e);this._lexer=new Cc(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(gc.NAME);return{kind:dc.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:dc.DOCUMENT,definitions:this.many(gc.SOF,this.parseDefinition,gc.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(gc.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(gc.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(gc.BRACE_L))return{kind:dc.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(gc.NAME)&&(t=this.parseName()),{kind:dc.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(gc.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(gc.PAREN_L,this.parseVariableDefinition,gc.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:dc.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(gc.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(gc.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(gc.DOLLAR),{kind:dc.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:dc.SELECTION_SET,selections:this.many(gc.BRACE_L,this.parseSelection,gc.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(gc.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(gc.COLON)?(e=r,t=this.parseName()):t=r,{kind:dc.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(gc.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(gc.PAREN_L,t,gc.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(gc.COLON),{kind:dc.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:dc.ARGUMENT,name:this.parseName(),value:(this.expectToken(gc.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(gc.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(gc.NAME)?{kind:dc.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:dc.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:dc.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:dc.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 gc.BRACKET_L:return this.parseList(e);case gc.BRACE_L:return this.parseObject(e);case gc.INT:return this._lexer.advance(),{kind:dc.INT,value:t.value,loc:this.loc(t)};case gc.FLOAT:return this._lexer.advance(),{kind:dc.FLOAT,value:t.value,loc:this.loc(t)};case gc.STRING:case gc.BLOCK_STRING:return this.parseStringLiteral();case gc.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:dc.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:dc.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:dc.NULL,loc:this.loc(t)};default:return{kind:dc.ENUM,value:t.value,loc:this.loc(t)}}case gc.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:dc.STRING,value:e.value,block:e.kind===gc.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:dc.LIST,values:this.any(gc.BRACKET_L,(function(){return t.parseValueLiteral(e)}),gc.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:dc.OBJECT,fields:this.any(gc.BRACE_L,(function(){return t.parseObjectField(e)}),gc.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(gc.COLON),{kind:dc.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(gc.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(gc.AT),{kind:dc.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(gc.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(gc.BRACKET_R),e={kind:dc.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(gc.BANG)?{kind:dc.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:dc.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===gc.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(gc.STRING)||this.peek(gc.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(gc.BRACE_L,this.parseOperationTypeDefinition,gc.BRACE_R);return{kind:dc.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(gc.COLON);var n=this.parseNamedType();return{kind:dc.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:dc.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),a=this.parseFieldsDefinition();return{kind:dc.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a,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(gc.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(gc.AMP)||this.peek(gc.NAME));return t}return this.delimitedMany(gc.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(gc.BRACE_L)&&this._lexer.lookahead().kind===gc.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(gc.BRACE_L,this.parseFieldDefinition,gc.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(gc.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:dc.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(gc.PAREN_L,this.parseInputValueDef,gc.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(gc.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(gc.EQUALS)&&(r=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:dc.INPUT_VALUE_DEFINITION,description:t,name:n,type:i,defaultValue:r,directives:a,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),a=this.parseFieldsDefinition();return{kind:dc.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a,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:dc.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(gc.EQUALS)?this.delimitedMany(gc.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:dc.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(gc.BRACE_L,this.parseEnumValueDefinition,gc.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseDirectives(!0);return{kind:dc.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:dc.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(gc.BRACE_L,this.parseInputValueDef,gc.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===gc.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(gc.BRACE_L,this.parseOperationTypeDefinition,gc.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:dc.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:dc.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:dc.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:dc.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:dc.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:dc.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:dc.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(gc.AT);var n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:dc.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(gc.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==xc[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 mc(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 fc(this._lexer.source,t.start,"Expected ".concat($c(e),", found ").concat(zc(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!==gc.NAME||t.value!==e)throw fc(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(zc(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===gc.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return fc(this._lexer.source,t.start,"Unexpected ".concat(zc(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 zc(e){var t=e.value;return $c(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function $c(e){return function(e){return e===gc.BANG||e===gc.DOLLAR||e===gc.AMP||e===gc.PAREN_L||e===gc.PAREN_R||e===gc.SPREAD||e===gc.COLON||e===gc.EQUALS||e===gc.AT||e===gc.BRACKET_L||e===gc.BRACKET_R||e===gc.BRACE_L||e===gc.PIPE||e===gc.BRACE_R}(e)?'"'.concat(e,'"'):e}var Qc={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"]},Uc=Object.freeze({});function Bc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qc,r=void 0,i=Array.isArray(e),a=[e],o=-1,s=[],l=void 0,u=void 0,c=void 0,f=[],d=[],p=e;do{var h=++o===a.length,m=h&&0!==s.length;if(h){if(u=0===d.length?void 0:f[f.length-1],l=c,c=d.pop(),m){if(i)l=l.slice();else{for(var v={},y=0,g=Object.keys(l);y<g.length;y++){var b=g[y];v[b]=l[b]}l=v}for(var w=0,E=0;E<s.length;E++){var k=s[E][0],_=s[E][1];i&&(k-=w),i&&null===_?(l.splice(k,1),w++):l[k]=_}}o=r.index,a=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(u=c?i?o:a[o]:void 0,null==(l=c?c[u]:p))continue;c&&f.push(u)}var S,x=void 0;if(!Array.isArray(l)){if(!yc(l))throw new Error("Invalid AST Node: ".concat(wc(l),"."));var T=Wc(t,l.kind,h);if(T){if((x=T.call(t,l,u,c,f,d))===Uc)break;if(!1===x){if(!h){f.pop();continue}}else if(void 0!==x&&(s.push([u,x]),!h)){if(!yc(x)){f.pop();continue}l=x}}}if(void 0===x&&m&&s.push([u,l]),h)f.pop();else r={inArray:i,index:o,keys:a,edits:s,prev:r},a=(i=Array.isArray(l))?l:null!==(S=n[l.kind])&&void 0!==S?S:[],o=-1,s=[],c&&d.push(c),c=l}while(void 0!==r);return 0!==s.length&&(p=s[s.length-1][1]),p}function Wc(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var a=n?e.leave:e.enter;if(a){if("function"==typeof a)return a;var o=a[t];if("function"==typeof o)return o}}}function Kc(e){return Bc(e,{leave:Hc})}var Hc={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return Gc(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=Xc("(",Gc(e.variableDefinitions,", "),")"),i=Gc(e.directives," "),a=e.selectionSet;return n||i||r||"query"!==t?Gc([t,Gc([n,r]),i,a]," "):a},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,i=e.directives;return t+": "+n+Xc(" = ",r)+Xc(" ",Gc(i," "))},SelectionSet:function(e){return Jc(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet,o=Xc("",t,": ")+n,s=o+Xc("(",Gc(r,", "),")");return s.length>80&&(s=o+Xc("(\n",Zc(Gc(r,"\n")),"\n)")),Gc([s,Gc(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+Xc(" ",Gc(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return Gc(["...",Xc("on ",t),Gc(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(Xc("(",Gc(r,", "),")")," ")+"on ".concat(n," ").concat(Xc("",Gc(i," ")," "))+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?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],a='"'===e[e.length-1],o="\\"===e[e.length-1],s=!r||a||o||n,l="";return!s||r&&i||(l+="\n"+t),l+=t?e.replace(/\n/g,"\n"+t):e,s&&(l+="\n"),'"""'+l.replace(/"""/g,'\\"""')+'"""'}(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"["+Gc(e.values,", ")+"]"},ObjectValue:function(e){return"{"+Gc(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+Xc("(",Gc(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:Yc((function(e){var t=e.directives,n=e.operationTypes;return Gc(["schema",Gc(t," "),Jc(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:Yc((function(e){return Gc(["scalar",e.name,Gc(e.directives," ")]," ")})),ObjectTypeDefinition:Yc((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Gc(["type",t,Xc("implements ",Gc(n," & ")),Gc(r," "),Jc(i)]," ")})),FieldDefinition:Yc((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(tf(n)?Xc("(\n",Zc(Gc(n,"\n")),"\n)"):Xc("(",Gc(n,", "),")"))+": "+r+Xc(" ",Gc(i," "))})),InputValueDefinition:Yc((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return Gc([t+": "+n,Xc("= ",r),Gc(i," ")]," ")})),InterfaceTypeDefinition:Yc((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Gc(["interface",t,Xc("implements ",Gc(n," & ")),Gc(r," "),Jc(i)]," ")})),UnionTypeDefinition:Yc((function(e){var t=e.name,n=e.directives,r=e.types;return Gc(["union",t,Gc(n," "),r&&0!==r.length?"= "+Gc(r," | "):""]," ")})),EnumTypeDefinition:Yc((function(e){var t=e.name,n=e.directives,r=e.values;return Gc(["enum",t,Gc(n," "),Jc(r)]," ")})),EnumValueDefinition:Yc((function(e){return Gc([e.name,Gc(e.directives," ")]," ")})),InputObjectTypeDefinition:Yc((function(e){var t=e.name,n=e.directives,r=e.fields;return Gc(["input",t,Gc(n," "),Jc(r)]," ")})),DirectiveDefinition:Yc((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(tf(n)?Xc("(\n",Zc(Gc(n,"\n")),"\n)"):Xc("(",Gc(n,", "),")"))+(r?" repeatable":"")+" on "+Gc(i," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return Gc(["extend schema",Gc(t," "),Jc(n)]," ")},ScalarTypeExtension:function(e){return Gc(["extend scalar",e.name,Gc(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Gc(["extend type",t,Xc("implements ",Gc(n," & ")),Gc(r," "),Jc(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Gc(["extend interface",t,Xc("implements ",Gc(n," & ")),Gc(r," "),Jc(i)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return Gc(["extend union",t,Gc(n," "),r&&0!==r.length?"= "+Gc(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return Gc(["extend enum",t,Gc(n," "),Jc(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return Gc(["extend input",t,Gc(n," "),Jc(r)]," ")}};function Yc(e){return function(t){return Gc([t.description,e(t)],"\n")}}function Gc(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function Jc(e){return Xc("{\n",Zc(Gc(e,"\n")),"\n}")}function Xc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function Zc(e){return Xc("  ",e.replace(/\n/g,"\n  "))}function ef(e){return-1!==e.indexOf("\n")}function tf(e){return null!=e&&e.some(ef)}function nf(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,r=e.name.value;__DEV__?Iu(n&&1===n.length,"Incorrect number of arguments for the @".concat(r," directive.")):Iu(n&&1===n.length,38);var i=n[0];__DEV__?Iu(i.name&&"if"===i.name.value,"Invalid argument for the @".concat(r," directive.")):Iu(i.name&&"if"===i.name.value,39);var a=i.value;__DEV__?Iu(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(r," directive must be a variable or a boolean value.")):Iu(a&&("Variable"===a.kind||"BooleanValue"===a.kind),40),t.push({directive:e,ifArgument:i})}}));return t}(n).every((function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?Iu(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):Iu(void 0!==i,37)):i=r.value.value,"skip"===n.name.value?!i:i}))}function rf(e,t){return function(e){var t=[];return Bc(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function af(e){return e&&rf(["client"],e)&&rf(["export"],e)}function of(e,t){var n=t,r=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new Du("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new Du(41);"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n&&(__DEV__?Iu(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):Iu(1===r.length,42),n=r[0].name.value),_u(_u({},e),{definitions:Ou([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function sf(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function lf(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=t&&t[e.name.value];return __DEV__?Iu(n,"No fragment named ".concat(e.name.value,".")):Iu(n,43),n;default:return null}}function uf(e){return null!==e&&"object"==typeof e}function cf(e){return{__ref:String(e)}}function ff(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function df(e,t,n,r){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 i={};n.fields.map((function(e){return df(i,e.name,e.value,r)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[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 df(n,t,e,r),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 __DEV__?new Du('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new Du(52);e[t.value]=null}}Uu(),__DEV__?Iu("boolean"==typeof Vu,Vu):Iu("boolean"==typeof Vu,36);var pf=["connection","include","skip","client","rest","export"],hf=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(mf(i),")")}return n.connection.key}var a=e;if(t){var o=mf(t);a+="(".concat(o,")")}return n&&Object.keys(n).forEach((function(e){-1===pf.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(mf(n[e]),")"):a+="@".concat(e))})),a}),{setStringify:function(e){var t=mf;return mf=e,t}}),mf=function(e){return JSON.stringify(e,vf)};function vf(e,t){return uf(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{})),t}function yf(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,i=e.value;return df(n,r,i,t)})),n}return null}function gf(e){return e.alias?e.alias.value:e.name.value}function bf(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var a=i[r];if(wf(a)){if("__typename"===a.name.value)return e[gf(a)]}else{var o=bf(e,lf(a,n).selectionSet,n);if("string"==typeof o)return o}}}function wf(e){return"Field"===e.kind}function Ef(e){return"InlineFragment"===e.kind}function kf(e){__DEV__?Iu(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Iu(e&&"Document"===e.kind,44);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new Du('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new Du(45);return e}));return __DEV__?Iu(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):Iu(t.length<=1,46),e}function _f(e){return kf(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Sf(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function xf(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Tf(e){var t=_f(e);return __DEV__?Iu(t&&"query"===t.operation,"Must contain a query definition."):Iu(t&&"query"===t.operation,47),t}function Of(e){var t;kf(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new Du("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new Du(51)}function Cf(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach((function(e){e.defaultValue&&df(t,e.variable.name,e.defaultValue)})),t}function Nf(e,t,n){var r=0;return e.forEach((function(n,i){t.call(this,n,i,e)&&(e[r++]=n)}),n),e.length=r,e}var Rf={kind:"Field",name:{kind:"Name",value:"__typename"}};function Df(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&Df(t[e.name.value],t)}))}function If(e){return Df(_f(e)||function(e){__DEV__?Iu("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):Iu("Document"===e.kind,48),__DEV__?Iu(e.definitions.length<=1,"Fragment must have exactly one definition."):Iu(e.definitions.length<=1,49);var t=e.definitions[0];return __DEV__?Iu("FragmentDefinition"===t.kind,"Must be a fragment definition."):Iu("FragmentDefinition"===t.kind,50),t}(e),sf(xf(e)))?null:e}function Af(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function Pf(e,t){var n=Object.create(null),r=[],i=Object.create(null),a=[],o=If(Bc(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(n[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(Af(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&r.push({name:e.value.name.value})})),t.selectionSet&&Lf(t.selectionSet).forEach((function(e){a.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){i[e.name.value]=!0}},Directive:{enter:function(t){if(Af(e)(t))return null}}}));return o&&Nf(r,(function(e){return!!e.name&&!n[e.name]})).length&&(o=function(e,t){var n=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return If(Bc(t,{OperationDefinition:{enter:function(t){return _u(_u({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))})):[]})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var r=0;if(t.arguments&&t.arguments.forEach((function(e){n(e)&&(r+=1)})),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}(r,o)),o&&Nf(a,(function(e){return!!e.name&&!i[e.name]})).length&&(o=function(e,t){function n(t){if(e.some((function(e){return e.name===t.name.value})))return null}return If(Bc(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}(a,o)),o}var Ff=Object.assign((function(e){return Bc(kf(e),{SelectionSet:{enter:function(e,t,n){if(!n||"OperationDefinition"!==n.kind){var r=e.selections;if(r)if(!r.some((function(e){return wf(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=n;if(!(wf(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return _u(_u({},e),{selections:Ou(Ou([],r,!0),[Rf],!1)})}}}}})}),{added:function(e){return e===Rf}}),Mf={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&Iu.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function Lf(e){var t=[];return e.selections.forEach((function(e){(wf(e)||Ef(e))&&e.selectionSet?Lf(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function qf(e){return"query"===Of(e).operation?e:Bc(e,{OperationDefinition:{enter:function(e){return _u(_u({},e),{operation:"query"})}}})}var jf=Object.prototype.hasOwnProperty;function Vf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return zf(e)}function zf(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Qf,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var $f=function(e,t,n){return this.merge(e[n],t[n])},Qf=function(){function e(e){void 0===e&&(e=$f),this.reconciler=e,this.isObject=uf,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return uf(t)&&uf(e)?(Object.keys(t).forEach((function(i){if(jf.call(e,i)){var a=e[i];if(t[i]!==a){var o=n.reconciler.apply(n,Ou([e,t,i],r,!1));o!==a&&((e=n.shallowCopyForMerge(e))[i]=o)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){if(uf(e)){if(this.pastCopies.has(e)){if(!Object.isFrozen(e))return e;this.pastCopies.delete(e)}e=Array.isArray(e)?e.slice(0):_u({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)}return e},e}();function Uf(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Bf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bf(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=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 Bf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kf(e,t,n){return t&&Wf(e.prototype,t),n&&Wf(e,n),e}var Hf=function(){return"function"==typeof Symbol},Yf=function(e){return Hf()&&Boolean(Symbol[e])},Gf=function(e){return Yf(e)?Symbol[e]:"@@"+e};Hf()&&!Yf("observable")&&(Symbol.observable=Symbol("observable"));var Jf=Gf("iterator"),Xf=Gf("observable"),Zf=Gf("species");function ed(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function td(e){var t=e.constructor;return void 0!==t&&null===(t=t[Zf])&&(t=void 0),void 0!==t?t:fd}function nd(e){return e instanceof fd}function rd(e){rd.log?rd.log(e):setTimeout((function(){throw e}))}function id(e){Promise.resolve().then((function(){try{e()}catch(e){rd(e)}}))}function ad(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=ed(t,"unsubscribe");n&&n.call(t)}}catch(e){rd(e)}}function od(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function sd(e,t,n){e._state="running";var r=e._observer;try{var i=ed(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(od(e),!i)throw n;i.call(r,n);break;case"complete":od(e),i&&i.call(r)}}catch(e){rd(e)}"closed"===e._state?ad(e):"running"===e._state&&(e._state="ready")}function ld(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void id((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(sd(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)}))):void sd(e,t,n);e._queue.push({type:t,value:n})}}var ud=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new cd(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(od(this),ad(this))},Kf(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),cd=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){ld(this._subscription,"next",e)},t.error=function(e){ld(this._subscription,"error",e)},t.complete=function(){ld(this._subscription,"complete")},Kf(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),fd=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new ud(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,a)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function a(){i.unsubscribe(),n()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(td(this))((function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(td(this))((function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=td(this),r=arguments.length>1,i=!1,a=arguments[1],o=a;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(e){return n.error(e)}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<t;r++)n[r]=arguments[r];var i=td(this);return new i((function(t){var r,a=0;return function e(o){r=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):e(i.from(n[a++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=td(this);return new n((function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&r.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),a.unsubscribe()}}))},t[Xf]=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 r=ed(t,Xf);if(r){var i=r.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return nd(i)&&i.constructor===n?i:new n((function(e){return i.subscribe(e)}))}if(Yf("iterator")&&(r=ed(t,Jf)))return new n((function(e){id((function(){if(!e.closed){for(var n,i=Uf(r.call(t));!(n=i()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new n((function(e){id((function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i="function"==typeof this?this:e;return new i((function(e){id((function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}}))}))},Kf(e,null,[{key:Zf,get:function(){return this}}]),e}();Hf()&&Object.defineProperty(fd,Symbol("extensions"),{value:{symbol:Xf,hostReportError:rd},configurable:!0}),function(e){var t,n=e.Symbol;if("function"==typeof n)if(n.observable)t=n.observable;else{t="function"==typeof n.for?n.for("https://github.com/benlesh/symbol-observable"):n("https://github.com/benlesh/symbol-observable");try{n.observable=t}catch(e){}}else t="@@observable"}("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")());var dd=fd.prototype,pd="@@observable";dd[pd]||(dd[pd]=function(){return this});var hd=Object.prototype.toString;function md(e){return vd(e)}function vd(e,t){switch(hd.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]=vd(e,t)})),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach((function(n){r[n]=vd(e[n],t)})),r;default:return e}}function yd(e){var t=new Set([e]);return t.forEach((function(e){uf(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(n){uf(e[n])&&t.add(e[n])}))})),e}function gd(e){return __DEV__&&yd(e),e}function bd(e,t,n){var r=[];e.forEach((function(e){return e[t]&&r.push(e)})),r.forEach((function(e){return e[t](n)}))}function wd(e,t,n){return new fd((function(r){var i=r.next,a=r.error,o=r.complete,s=0,l=!1,u={then:function(e){return new Promise((function(t){return t(e())}))}};function c(e,t){return e?function(t){++s;var n=function(){return e(t)};u=u.then(n,n).then((function(e){--s,i&&i.call(r,e),l&&f.complete()}),(function(e){throw--s,e})).catch((function(e){a&&a.call(r,e)}))}:function(e){return t&&t.call(r,e)}}var f={next:c(t,i),error:c(n,a),complete:function(){l=!0,s||o&&o.call(r)}},d=e.subscribe(f);return function(){return d.unsubscribe()}}))}var Ed="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),kd="function"==typeof WeakSet,_d="function"==typeof Symbol&&"function"==typeof Symbol.for;function Sd(e){function t(t){Object.defineProperty(e,t,{value:fd})}return _d&&Symbol.species&&t(Symbol.species),t("@@species"),e}function xd(e){return e&&"function"==typeof e.then}var Td=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.addCount=0,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],bd(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),bd(n.observers,"error",e))},complete:function(){if(null!==n.sub){var e=n.sources.shift();e?xd(e)?e.then((function(e){return n.sub=e.subscribe(n.handlers)})):n.sub=e.subscribe(n.handlers):(n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),bd(n.observers,"complete"))}}},n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch((function(e){})),"function"==typeof t&&(t=[new fd(t)]),xd(t)?t.then((function(e){return n.start(e)}),n.handlers.error):n.start(t),n}return ku(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),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,n=!1,r=function(){n||(n=!0,t.observers.delete(i),e())},i={next:r,error:r,complete:r},a=this.addCount;this.addObserver(i),this.addCount=a},t}(fd);function Od(e){return Array.isArray(e)&&e.length>0}function Cd(e){return e.errors&&e.errors.length>0||!1}function Nd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)}))})),n}Sd(Td);var Rd=new Map;function Dd(e){var t=Rd.get(e)||1;return Rd.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}var Id=_d?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function Ad(){var e=u.createContext[Id];return e||(Object.defineProperty(u.createContext,Id,{value:e=u.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var Pd=function(e){var t=e.client,n=e.children,r=Ad();return u.createElement(r.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?Iu(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):Iu(e.client,26),u.createElement(r.Provider,{value:e},n)}))};function Fd(e){var t=u.useContext(Ad()),n=e||t.client;return __DEV__?Iu(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClientApolloClient instance in via options.'):Iu(!!n,29),n}var Md=Object.prototype,Ld=Md.toString,qd=Md.hasOwnProperty,jd=Function.prototype.toString,Vd=new Map;function zd(e,t){try{return $d(e,t)}finally{Vd.clear()}}function $d(e,t){if(e===t)return!0;var n,r,i,a=Ld.call(e);if(a!==Ld.call(t))return!1;switch(a){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(Wd(e,t))return!0;var o=Qd(e),s=Qd(t),l=o.length;if(l!==s.length)return!1;for(var u=0;u<l;++u)if(!qd.call(t,o[u]))return!1;for(u=0;u<l;++u){var c=o[u];if(!$d(e[c],t[c]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(Wd(e,t))return!0;for(var f=e.entries(),d="[object Map]"===a;;){var p=f.next();if(p.done)break;var h=p.value,m=h[0],v=h[1];if(!t.has(m))return!1;if(d&&!$d(v,t.get(m)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var y=e.byteLength;if(y===t.byteLength)for(;y--&&e[y]===t[y];);return-1===y;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var g=jd.call(e);return g===jd.call(t)&&(r=Bd,!((i=(n=g).length-r.length)>=0&&n.indexOf(r,i)===i))}return!1}function Qd(e){return Object.keys(e).filter(Ud,e)}function Ud(e){return void 0!==this[e]}var Bd="{ [native code] }";function Wd(e,t){var n=Vd.get(e);if(n){if(n.has(t))return!0}else Vd.set(e,n=new Set);return n.add(t),!1}function Kd(e){return e.hasOwnProperty("graphQLErrors")}var Hd=function(e){function t(n){var r,i,a=n.graphQLErrors,o=n.clientErrors,s=n.networkError,l=n.errorMessage,u=n.extraInfo,c=e.call(this,l)||this;return c.graphQLErrors=a||[],c.clientErrors=o||[],c.networkError=s||null,c.message=l||(i="",(Od((r=c).graphQLErrors)||Od(r.clientErrors))&&(r.graphQLErrors||[]).concat(r.clientErrors||[]).forEach((function(e){var t=e?e.message:"Error message not found.";i+="".concat(t,"\n")})),r.networkError&&(i+="".concat(r.networkError.message,"\n")),i=i.replace(/\n$/,"")),c.extraInfo=u,c.__proto__=t.prototype,c}return ku(t,e),t}(Error);function Yd(e){return new fd((function(t){t.error(e)}))}var Gd=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r};function Jd(e,t){return t?t(e):fd.of()}function Xd(e){return"function"==typeof e?new tp(e):e}function Zd(e){return e.request.length<=1}var ep=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return ku(t,e),t}(Error),tp=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return fd.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Xd).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,n,r){var i=Xd(n),a=Xd(r||new e(Jd));return Zd(i)&&Zd(a)?new e((function(e){return t(e)?i.request(e)||fd.of():a.request(e)||fd.of()})):new e((function(e,n){return t(e)?i.request(e,n)||fd.of():a.request(e,n)||fd.of()}))},e.execute=function(e,t){return e.request(function(e,t){var n=_u({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=_u(_u({},n),"function"==typeof e?e(n):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return _u({},n)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Sf(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw __DEV__?new Du("illegal argument: ".concat(i)):new Du(24)}return e}(t))))||fd.of()},e.concat=function(t,n){var r=Xd(t);if(Zd(r))return __DEV__&&Iu.warn(new ep("You are calling concat on a terminating link, which will have no effect",r)),r;var i=Xd(n);return Zd(i)?new e((function(e){return r.request(e,(function(e){return i.request(e)||fd.of()}))||fd.of()})):new e((function(e,t){return r.request(e,(function(e){return i.request(e,t)||fd.of()}))||fd.of()}))},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Jd)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new Du("request is not implemented"):new Du(19)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),np=tp.empty,rp=tp.from,ip=tp.split,ap=tp.concat,op=tp.execute,sp=Object.prototype.hasOwnProperty;function lp(e){return function(t){return t.text().then((function(e){try{return JSON.parse(e)}catch(r){var n=r;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}})).then((function(n){return t.status>=300&&Gd(t,n,"Response not successful: Received status code ".concat(t.status)),Array.isArray(n)||sp.call(n,"data")||sp.call(n,"errors")||Gd(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),n}))}}var up=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new Du("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new Du(21);throw r.parseError=e,r}return n},cp={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},fp=function(e,t){return t(e)};function dp(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},a={};n.forEach((function(e){i=_u(_u(_u({},i),e.options),{headers:_u(_u({},i.headers),pp(e.headers))}),e.credentials&&(i.credentials=e.credentials),a=_u(_u({},a),e.http)}));var o=e.operationName,s=e.extensions,l=e.variables,u=e.query,c={operationName:o,variables:l};return a.includeExtensions&&(c.extensions=s),a.includeQuery&&(c.query=t(u,Kc)),{options:i,body:c}}function pp(e){if(e){var t=Object.create(null);return Object.keys(Object(e)).forEach((function(n){t[n.toLowerCase()]=e[n]})),t}return e}var hp=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new Du("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new Du(20)},mp=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}},vp=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")};function yp(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=up(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var a=void 0;try{a=up(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",a)}var o="",s=e,l=e.indexOf("#");-1!==l&&(o=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+n.join("&")+o}}var gp=Mu((function(){return fetch})),bp=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,a=void 0===i?fp:i,o=e.includeExtensions,s=e.useGETForQueries,l=e.includeUnusedVariables,u=void 0!==l&&l,c=Su(e,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&hp(r||gp);var f={http:{includeExtensions:o},options:c.fetchOptions,credentials:c.credentials,headers:c.headers};return new tp((function(e){var t=vp(e,n),i=e.getContext(),o={};if(i.clientAwareness){var l=i.clientAwareness,c=l.name,d=l.version;c&&(o["apollographql-client-name"]=c),d&&(o["apollographql-client-version"]=d)}var p,h=_u(_u({},o),i.headers),m={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:h},v=dp(e,a,cp,f,m),y=v.options,g=v.body;if(g.variables&&!u){var b=new Set(Object.keys(g.variables));Bc(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&b.delete(e.name.value)}}),b.size&&(g.variables=_u({},g.variables),b.forEach((function(e){delete g.variables[e]})))}if(!y.signal){var w=mp(),E=w.controller,k=w.signal;(p=E)&&(y.signal=k)}if(s&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(y.method="GET"),"GET"===y.method){var _=yp(t,g),S=_.newURI,x=_.parseError;if(x)return Yd(x);t=S}else try{y.body=up(g,"Payload")}catch(x){return Yd(x)}return new fd((function(n){return(r||Mu((function(){return fetch}))||gp)(t,y).then((function(t){return e.setContext({response:t}),t})).then(lp(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){p&&p.abort()}}))}))},wp=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,bp(t).request)||this;return n.options=t,n}return ku(t,e),t}(tp),Ep=function(){return Object.create(null)},kp=Array.prototype,_p=kp.forEach,Sp=kp.slice,xp=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=Ep),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return _p.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(Sp.call(e)))},e.prototype.getChildTrie=function(t){var n=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r},e}();var Tp=null,Op={},Cp=1,Np="@wry/context:Slot",Rp=Array,Dp=Rp[Np]||function(){var e=function(){function e(){this.id=["slot",Cp++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=Tp;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Op)break;return e!==Tp&&(Tp.slots[this.id]=t),!0}return Tp&&(Tp.slots[this.id]=Op),!1},e.prototype.getValue=function(){if(this.hasValue())return Tp.slots[this.id]},e.prototype.withValue=function(e,t,n,r){var i,a=((i={__proto__:null})[this.id]=e,i),o=Tp;Tp={parent:o,slots:a};try{return t.apply(r,n)}finally{Tp=o}},e.bind=function(e){var t=Tp;return function(){var n=Tp;try{return Tp=t,e.apply(this,arguments)}finally{Tp=n}}},e.noContext=function(e,t,n){if(!Tp)return e.apply(n,t);var r=Tp;try{return Tp=null,e.apply(n,t)}finally{Tp=r}},e}();try{Object.defineProperty(Rp,Np,{value:Rp[Np]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();function Ip(){}Dp.bind,Dp.noContext;var Ap,Pp=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=Ip),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.getNode(e);return t&&t.value},e.prototype.getNode=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.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)},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}(),Fp=new Dp,Mp=Object.prototype.hasOwnProperty,Lp=void 0===(Ap=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:Ap;function qp(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var jp=[];function Vp(e,t){if(!e)throw new Error(t||"assertion failure")}function zp(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var $p=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!Bp(this))return Qp(this),this.value[0]},e.prototype.recompute=function(e){return Vp(!this.recomputing,"already recomputing"),Qp(this),Bp(this)?function(e,t){Xp(e),Fp.withValue(e,Up,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{qp(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,Bp(e))return;Kp(e)}(e);return zp(e.value)}(this,e):zp(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Wp(this),qp(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),Xp(this),Hp(this,(function(t,n){t.setDirty(),Zp(t,e)}))},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=jp.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(Lp(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),jp.push(this.deps),this.deps=null)},e.count=0,e}();function Qp(e){var t=Fp.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Bp(e)?Yp(t,e):Gp(t,e),t}function Up(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function Bp(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function Wp(e){Hp(e,Yp)}function Kp(e){Hp(e,Gp)}function Hp(e,t){var n=e.parents.size;if(n)for(var r=Lp(e.parents),i=0;i<n;++i)t(r[i],e)}function Yp(e,t){Vp(e.childValues.has(t)),Vp(Bp(t));var n=!Bp(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=jp.pop()||new Set;e.dirtyChildren.add(t),n&&Wp(e)}function Gp(e,t){Vp(e.childValues.has(t)),Vp(!Bp(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(),Jp(e,t),Bp(e)||Kp(e)}function Jp(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(jp.length<100&&jp.push(n),e.dirtyChildren=null))}function Xp(e){e.childValues.size>0&&e.childValues.forEach((function(t,n){Zp(e,n)})),e.forgetDeps(),Vp(null===e.dirtyChildren)}function Zp(e,t){t.parents.delete(e),e.childValues.delete(t),Jp(e,t)}var eh={setDirty:!0,dispose:!0,forget:!0};function th(e){var t=new Map,n=e&&e.subscribe;function r(e){var r=Fp.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(qp(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&Mp.call(eh,n)?n:"setDirty";Lp(r).forEach((function(e){return e[i]()})),t.delete(e),qp(r)}},r}function nh(){var e=new xp("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}nh();var rh=new Set;function ih(e,t){void 0===t&&(t=Object.create(null));var n=new Pp(t.max||Math.pow(2,16),(function(e){return e.dispose()})),r=t.keyArgs,i=t.makeCacheKey||nh(),a=function(){var a=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===a)return e.apply(null,arguments);var o=n.get(a);o||(n.set(a,o=new $p(e)),o.subscribe=t.subscribe,o.forget=function(){return n.delete(a)});var s=o.recompute(Array.prototype.slice.call(arguments));return n.set(a,o),rh.add(n),Fp.hasValue()||(rh.forEach((function(e){return e.clean()})),rh.clear()),s};function o(e){var t=n.get(e);t&&t.setDirty()}function s(e){var t=n.get(e);if(t)return t.peek()}function l(e){return n.delete(e)}return Object.defineProperty(a,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),a.dirtyKey=o,a.dirty=function(){o(i.apply(null,arguments))},a.peekKey=s,a.peek=function(){return s(i.apply(null,arguments))},a.forgetKey=l,a.forget=function(){return l(i.apply(null,arguments))},a.makeCacheKey=i,a.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(a)}var ah,oh=function(){function e(){this.getFragmentDoc=ih(of)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(n)}),r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(_u(_u({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(_u(_u({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=Su(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=Su(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(_u(_u({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(_u(_u({},e),{data:i})),i)}})},e}();ah||(ah={});var sh=function(e,t,n,r){this.message=e,this.path=t,this.query=n,this.variables=r},lh=Object.prototype.hasOwnProperty;function uh(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=void 0!==r?{id:r}:void 0!==i?{_id:i}:void 0),void 0===r&&(r=i),void 0!==r))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var ch={dataIdFromObject:uh,addTypename:!0,resultCaching:!0,canonizeResults:!1};function fh(e){var t=e.canonizeResults;return void 0===t?ch.canonizeResults:t}var dh=/^[_a-z][_0-9a-z]*/i;function ph(e){var t=e.match(dh);return t?t[0]:e}function hh(e,t,n){return!!uf(t)&&(Array.isArray(t)?t.every((function(t){return hh(e,t,n)})):e.selections.every((function(e){if(wf(e)&&nf(e,n)){var r=gf(e);return lh.call(t,r)&&(!e.selectionSet||hh(e.selectionSet,t[r],n))}return!0})))}function mh(e){return uf(e)&&!ff(e)&&!Array.isArray(e)}var vh=Object.create(null),yh=function(){return vh},gh=Object.create(null),bh=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 gd(ff(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return ff(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return cf(e);if(ff(e))return e;var r=n.policies.identify(e)[0];if(r){var i=cf(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return _u({},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),lh.call(this.data,e)){var n=this.data[e];if(n&&lh.call(n,t))return n[t]}return"__typename"===t&&lh.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof _h?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),lh.call(this.data,e)?this.data[e]:this instanceof _h?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;ff(e)&&(e=e.__ref),ff(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){__DEV__?Iu("string"==typeof n,"store.merge expects a string ID"):Iu("string"==typeof n,1);var o=new Qf(xh).merge(i,a);if(this.data[n]=o,o!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach((function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=ph(e);t===e||r.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||r instanceof _h||delete o[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==o.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return r.group.dirty(n,e)}))}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,o=!0,s={DELETE:vh,INVALIDATE:gh,isReference:ff,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||cf(e)}:t,{store:n})}};if(Object.keys(r).forEach((function(l){var u=ph(l),c=r[l];if(void 0!==c){var f="function"==typeof t?t:t[l]||t[u];if(f){var d=f===yh?vh:f(gd(c),_u(_u({},s),{fieldName:u,storeFieldName:l,storage:n.getStorage(e,l)}));d===gh?n.group.dirty(e,l):(d===vh&&(d=void 0),d!==c&&(i[l]=d,a=!0,c=d))}void 0!==c&&(o=!1)}})),a)return this.merge(e,i),o&&(this instanceof _h?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?((r={})[o]=yh,r):yh)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(lh.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof _h&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach((function(t){lh.call(e.policies.rootTypenamesById,t)||n.push(t)})),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(n){e&&lh.call(e,n)||t.delete(n)})),e){var n=e.__META,r=Su(e,["__META"]);Object.keys(r).forEach((function(e){t.merge(e,r[e])})),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){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 _h?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){lh.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 _h;)i=i.parent;r.forEach((function(e){return i.delete(e)}))}return r},e.prototype.findChildRefIds=function(e){if(!lh.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){ff(e)&&(t[e.__ref]=!0),uf(e)&&Object.keys(e).forEach((function(t){var n=e[t];uf(n)&&r.add(n)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),wh=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?th():null,this.keyMaker=new xp(Ed)},e.prototype.depend=function(e,t){if(this.d){this.d(Eh(e,t));var n=ph(t);n!==t&&this.d(Eh(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Eh(e,t),"__exists"===t?"forget":"setDirty")},e}();function Eh(e,t){return t+"#"+e}function kh(e,t){Th(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,a=t.seed,o=e.call(this,n,new wh(i))||this;return o.stump=new Sh(o),o.storageTrie=new xp(Ed),a&&o.replace(a),o}return ku(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}(bh||(bh={}));var _h=function(e){function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return ku(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){zd(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 _u(_u({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return lh.call(this.data,t)?_u(_u({},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}(bh),Sh=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new wh(t.group.caching,t.group))||this}return ku(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(_h);function xh(e,t,n){var r=e[n],i=t[n];return zd(r,i)?r:i}function Th(e){return!!(e instanceof bh&&e.group.caching)}var Oh,Ch,Nh=function(){function e(){this.known=new(kd?WeakSet:Set),this.pool=new xp(Ed),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return uf(e)&&this.known.has(e)},e.prototype.pass=function(e){if(uf(e)){var t=function(e){return uf(e)?Array.isArray(e)?e.slice(0):_u({__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(uf(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),__DEV__&&Object.freeze(r)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],o=this.sortedKeys(e);a.push(o.json);var s,l=a.length;if(o.sorted.forEach((function(n){a.push(t.admit(e[n]))})),!(s=this.pool.lookupArray(a)).object){var u=s.object=Object.create(i);this.known.add(u),o.sorted.forEach((function(e,t){u[e]=a[l+t]})),__DEV__&&Object.freeze(u)}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}(),Rh=Object.assign((function(e){if(uf(e)){void 0===Oh&&Dh();var t=Oh.admit(e),n=Ch.get(t);return void 0===n&&Ch.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)}),{reset:Dh});function Dh(){Oh=new Nh,Ch=new(Ed?WeakMap:Map)}function Ih(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Ah=function(){function e(e){var t=this;this.knownResults=new(Ed?WeakMap:Map),this.config=Nd(e,{addTypename:!1!==e.addTypename,canonizeResults:fh(e)}),this.canon=e.canon||new Nh,this.executeSelectionSet=ih((function(e){var n,r=e.context.canonizeResults,i=Ih(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?_u(_u({},a),{result:t.canon.admit(a.result)}):a:(kh(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:Ih,makeCacheKey:function(e,t,n,r){if(Th(n.store))return n.store.makeCacheKey(e,ff(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=ih((function(e){return kh(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(Th(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Nh},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=void 0===r?"ROOT_QUERY":r,a=e.variables,o=e.returnPartialData,s=void 0===o||o,l=e.canonizeResults,u=void 0===l?this.config.canonizeResults:l,c=this.config.cache.policies;a=_u(_u({},Cf(Tf(n))),a);var f,d=cf(i),p=new Qf,h=this.executeSelectionSet({selectionSet:Of(n).selectionSet,objectOrReference:d,enclosingRef:d,context:{store:t,query:n,policies:c,variables:a,varString:Rh(a),canonizeResults:u,fragmentMap:sf(xf(n)),merge:function(e,t){return p.merge(e,t)}}});if(h.missing&&(f=[new sh(Ph(h.missing),h.missing,n,a)],!s))throw f[0];return{result:h.result,complete:!f,missing:f}},e.prototype.isFresh=function(e,t,n,r){if(Th(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,i=e.enclosingRef,a=e.context;if(ff(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 o,s=a.variables,l=a.policies,u=a.store.getFieldValue(r,"__typename"),c={};function f(e,t){var n;return e.missing&&(o=a.merge(o,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof u&&!l.rootIdsByTypename[u]&&(c={__typename:u});var d=new Set(n.selections);d.forEach((function(e){var n,p;if(nf(e,s))if(wf(e)){var h=l.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),m=gf(e);void 0===h?Ff.added(e)||(o=a.merge(o,((n={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(ff(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):Array.isArray(h)?h=f(t.executeSubSelectedArray({field:e,array:h,enclosingRef:i,context:a}),m):e.selectionSet?null!=h&&(h=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:ff(h)?h:i,context:a}),m)):a.canonizeResults&&(h=t.canon.pass(h)),void 0!==h&&(c=a.merge(c,((p={})[m]=h,p)))}else{var v=lf(e,a.fragmentMap);v&&l.fragmentMatches(v,u)&&v.selectionSet.selections.forEach(d.add,d)}}));var p={result:c,missing:o},h=a.canonizeResults?this.canon.admit(p):gd(p);return h.result&&this.knownResults.set(h.result,n),h},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,a=e.enclosingRef,o=e.context;function s(e,n){var r;return e.missing&&(t=o.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map((function(e,t){return null===e?null:Array.isArray(e)?s(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:o}),t):r.selectionSet?s(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:ff(e)?e:a,context:o}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach((function(n){uf(n)&&(__DEV__?Iu(!ff(n),"Missing selection set for object of type ".concat(function(e,t){return ff(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,n)," returned for query field ").concat(t.name.value)):Iu(!ff(n),5),Object.values(n).forEach(r.add,r))}))}}(o.store,r,e),e)})),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function Ph(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var Fh=new Dp,Mh=new WeakMap;function Lh(e){var t=Mh.get(e);return t||Mh.set(e,t={vars:new Set,dep:th()}),t}function qh(e){Lh(e).vars.forEach((function(t){return t.forgetCache(e)}))}function jh(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){Lh(e).dep.dirty(r),Vh(e)}));var o=Array.from(n);n.clear(),o.forEach((function(t){return t(e)}))}}else{var s=Fh.getValue();s&&(i(s),Lh(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Lh(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Vh(e){e.broadcastWatches&&e.broadcastWatches()}var zh=Object.create(null);function $h(e){var t=JSON.stringify(e);return zh[t]||(zh[t]=Object.create(null))}function Qh(e){var t=$h(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=Bh(e,(function(e){var i=Hh(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&lh.call(t,e[0])&&(i=Hh(t,e,Kh)),__DEV__?Iu(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):Iu(void 0!==i,2),i}));return"".concat(n.typename,":").concat(JSON.stringify(i))})}function Uh(e){var t=$h(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,a=n.fieldName,o=Bh(e,(function(e){var n=e[0],a=n.charAt(0);if("@"!==a)if("$"!==a){if(t)return Hh(t,e)}else{var o=n.slice(1);if(i&&lh.call(i,o)){var s=e.slice(0);return s[0]=o,Hh(i,s)}}else if(r&&Od(r.directives)){var l=n.slice(1),u=r.directives.find((function(e){return e.name.value===l})),c=u&&yf(u,i);return c&&Hh(c,e.slice(1))}})),s=JSON.stringify(o);return(t||"{}"!==s)&&(a+=":"+s),a})}function Bh(e,t){var n=new Qf;return Wh(e).reduce((function(e,r){var i,a=t(r);if(void 0!==a){for(var o=r.length-1;o>=0;--o)(i={})[r[o]]=a,a=i;e=n.merge(e,a)}return e}),Object.create(null))}function Wh(e){var t=$h(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach((function(t,i){Array.isArray(t)?(Wh(t).forEach((function(e){return n.push(r.concat(e))})),r.length=0):(r.push(t),Array.isArray(e[i+1])||(n.push(r.slice(0)),r.length=0))}))}return t.paths}function Kh(e,t){return e[t]}function Hh(e,t,n){return n=n||Kh,Yh(t.reduce((function e(t,r){return Array.isArray(t)?t.map((function(t){return e(t,r)})):t&&n(t,r)}),e))}function Yh(e){return uf(e)?Array.isArray(e)?e.map(Yh):Bh(Object.keys(e).sort(),(function(t){return Hh(e,t)})):e}function Gh(e){return void 0!==e.args?e.args:e.field?yf(e.field,e.variables):null}hf.setStringify(Rh);var Jh=function(){},Xh=function(e,t){return t.fieldName},Zh=function(e,t,n){return(0,n.mergeObjects)(e,t)},em=function(e,t){return t},tm=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=_u({dataIdFromObject:uh},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,r=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,o=t&&t.storeObject||e,s=_u(_u({},t),{typename:i,storeObject:o,readField:t&&t.readField||function(){var e=rm(arguments,o);return r.readField(e,{store:r.cache.data,variables:e.variables})}}),l=i&&this.getTypePolicy(i),u=l&&l.keyFn||this.config.dataIdFromObject;u;){var c=u(e,s);if(!Array.isArray(c)){a=c;break}u=Qh(c)}return a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(n){var r=e[n],i=r.queryType,a=r.mutationType,o=r.subscriptionType,s=Su(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),o&&t.setRootTypename("Subscription",n),lh.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]}))},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?Zh:!1===t?em:e.merge}o(r,t.merge),r.keyFn=!1===i?Jh:Array.isArray(i)?Qh(i):"function"==typeof i?i:r.keyFn,a&&Object.keys(a).forEach((function(t){var r=n.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;r.keyFn=!1===s?Xh:Array.isArray(s)?Uh(s):"function"==typeof s?s:r.keyFn,"function"==typeof l&&(r.read=l),o(r,u)}r.read&&r.merge&&(r.keyFn=r.keyFn||Xh)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?Iu(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):Iu(!r||r===e,3),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(dh);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!lh.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach((function(e){var r=t.getTypePolicy(e),i=r.fields,a=Su(r,["fields"]);Object.assign(n,a),Object.assign(n.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.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 i=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 o=this.getSupertypeSet(t,!0),s=[o],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!n||!this.fuzzySubtypes.size),c=!1,f=0;f<s.length;++f){var d=s[f];if(d.has(a))return o.has(a)||(c&&__DEV__&&Iu.warn("Inferring subtype ".concat(t," of supertype ").concat(a)),o.add(a)),!0;d.forEach(l),u&&f===s.length-1&&hh(e.selectionSet,n,r)&&(u=!1,c=!0,this.fuzzySubtypes.forEach((function(e,n){var r=t.match(e);r&&r[0]===t&&l(n)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),a=i&&i.keyFn;if(a&&n)for(var o={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=Gh(e);a;){var l=a(s,o);if(!Array.isArray(l)){t=l||r;break}a=Uh(l)}return void 0===t&&(t=e.field?function(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,a=r.value;return df(n[e.name.value],i,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,i=e.value;return df(r,n,i,t)}))),hf(e.name.value,r,n)}(e.field,e.variables):hf(r,Gh(e))),!1===t?r:r===ph(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),a=ph(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a,!1),l=s&&s.read;if(l){var u=nm(this,n,e,t,t.store.getStorage(ff(n)?n.__ref:n,i));return Fh.withValue(this.cache,l,[o,u])}return o}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===Zh?im(r.store)(e,t):s===em?t:(r.overwrite&&(e=void 0),s(e,t,nm(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function nm(e,t,n,r,i){var a=e.getStoreFieldName(n),o=ph(a),s=n.variables||r.variables,l=r.store,u=l.toReference,c=l.canRead;return{args:Gh(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:ff,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(rm(arguments,t,r),r)},mergeObjects:im(r.store)}}function rm(e,t,n){var r,i,a,o=e[0],s=e[1],l=e.length;return"string"==typeof o?r={fieldName:o,from:l>1?s:t}:(r=_u({},o),lh.call(r,"from")||(r.from=t)),__DEV__&&void 0===r.from&&__DEV__&&Iu.warn("Undefined 'from' passed to readField with arguments ".concat((i=Array.from(e),a=Dd("stringifyForDisplay"),JSON.stringify(i,(function(e,t){return void 0===t?a:t})).split(JSON.stringify(a)).join("<undefined>")))),void 0===r.variables&&(r.variables=n),r}function im(e){return function(t,n){if(Array.isArray(t)||Array.isArray(n))throw __DEV__?new Du("Cannot automatically merge arrays"):new Du(4);if(uf(t)&&uf(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(ff(t)&&mh(n))return e.merge(t.__ref,n),t;if(mh(t)&&ff(n))return e.merge(t,n.__ref),n;if(mh(t)&&mh(n))return _u(_u({},t),n)}return n}}function am(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:_u(_u({},e),{clientOnly:t,deferred:n})),i}var om=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,l=_f(r),u=new Qf;o=_u(_u({},Cf(l)),o);var c={store:e,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:o,varString:Rh(o),fragmentMap:sf(xf(r)),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},f=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:c});if(!ff(f))throw __DEV__?new Du("Could not identify object ".concat(JSON.stringify(i))):new Du(6);return c.incomingById.forEach((function(t,r){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=cf(r);if(a&&a.map.size){var l=n.applyMerges(a,s,i,c);if(ff(l))return;i=l}if(__DEV__&&!c.overwrite){var u=Object.create(null);o.forEach((function(e){e.selectionSet&&(u[e.name.value]=!0)}));Object.keys(i).forEach((function(e){(function(e){return!0===u[ph(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},a=i(e);if(!a)return;var o=i(t);if(!o)return;if(ff(a))return;if(zd(a,o))return;if(Object.keys(a).every((function(e){return void 0!==r.getFieldValue(o,e)})))return;var s=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=ph(n),u="".concat(s,".").concat(l);if(dm.has(u))return;dm.add(u);var c=[];Array.isArray(a)||Array.isArray(o)||[a,o].forEach((function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)}));__DEV__&&Iu.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(u," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(a).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(o).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}(s,i,e,c.store)}))}e.merge(r,i)})),e.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,l=Object.create(null),u=n&&s.rootTypenamesById[n]||bf(r,i,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof u&&(l.__typename=u);var c=function(){var e=rm(arguments,l,a.variables);if(ff(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=s.readField(_u(_u({},e),{from:t.storeObject}),a);if(void 0!==n)return n}}return s.readField(e,a)},f=new Set;this.flattenFields(i,r,a,u).forEach((function(e,n){var i,a=gf(n),d=r[a];if(f.add(n),void 0!==d){var p=s.getStoreFieldName({typename:u,fieldName:n.name.value,field:n,variables:e.variables}),h=lm(o,p),m=t.processFieldValue(d,n,n.selectionSet?am(e,!1,!1):e,h),v=void 0;n.selectionSet&&(ff(m)||mh(m))&&(v=c("__typename",m));var y=s.getMergeFunction(u,n.name.value,v);y?h.info={field:n,typename:u,merge:y}:fm(o,p),l=e.merge(l,((i={})[p]=m,i))}else!__DEV__||e.clientOnly||e.deferred||Ff.added(n)||s.getReadFunction(u,n.name.value)||__DEV__&&Iu.error("Missing field '".concat(gf(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))}));try{var d=s.identify(r,{typename:u,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:l,readField:c}),p=d[0],h=d[1];n=n||p,h&&(l=a.merge(l,h))}catch(e){if(!n)throw e}if("string"==typeof n){var m=cf(n),v=a.written[n]||(a.written[n]=[]);if(v.indexOf(i)>=0)return m;if(v.push(i),this.reader&&this.reader.isFresh(r,m,i,a))return m;var y=a.incomingById.get(n);return y?(y.storeObject=a.merge(y.storeObject,l),y.mergeTree=um(y.mergeTree,o),f.forEach((function(e){return y.fieldNodeSet.add(e)}))):a.incomingById.set(n,{storeObject:l,mergeTree:cm(o)?void 0:o,fieldNodeSet:f}),m}return l},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map((function(e,a){var o=i.processFieldValue(e,t,n,lm(r,a));return fm(r,a),o})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?md(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=bf(t,e,n.fragmentMap));var i=new Map,a=this.cache.policies,o=new xp(!1);return function e(s,l){var u=o.lookup(s,l.clientOnly,l.deferred);u.visited||(u.visited=!0,s.selections.forEach((function(o){if(nf(o,n.variables)){var s=l.clientOnly,u=l.deferred;if(s&&u||!Od(o.directives)||o.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var r=yf(e,n.variables);r&&!1===r.if||(u=!0)}})),wf(o)){var c=i.get(o);c&&(s=s&&c.clientOnly,u=u&&c.deferred),i.set(o,am(n,s,u))}else{var f=lf(o,n.fragmentMap);f&&a.fragmentMatches(f,r,t,n.variables)&&e(f.selectionSet,am(n,s,u))}}})))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var a,o=this;if(e.map.size&&!ff(n)){var s,l=Array.isArray(n)||!ff(t)&&!mh(t)?void 0:t,u=n;l&&!i&&(i=[ff(l)?l.__ref:l]);var c=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var n=c(l,t),a=c(u,t);if(void 0!==a){i&&i.push(t);var f=o.applyMerges(e,n,a,r,i);f!==a&&(s=s||new Map).set(t,f),i&&Iu(i.pop()===t)}})),s&&(n=Array.isArray(u)?u.slice(0):_u({},u),s.forEach((function(e,t){n[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),sm=[];function lm(e,t){var n=e.map;return n.has(t)||n.set(t,sm.pop()||{map:new Map}),n.get(t)}function um(e,t){if(e===t||!t||cm(t))return e;if(!e||cm(e))return t;var n=e.info&&t.info?_u(_u({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var a=new Set(t.map.keys());e.map.forEach((function(e,n){i.map.set(n,um(e,t.map.get(n))),a.delete(n)})),a.forEach((function(n){i.map.set(n,um(t.map.get(n),e.map.get(n)))}))}return i}function cm(e){return!e||!(e.info||e.map.size)}function fm(e,t){var n=e.map,r=n.get(t);r&&cm(r)&&(sm.push(r),n.delete(t))}var dm=new Set;var pm,hm=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=jh,n.txCount=0,n.config=function(e){return Nd(ch,e)}(t),n.addTypename=!!n.config.addTypename,n.policies=new tm({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return ku(t,e),t.prototype.init=function(){var e=this.data=new bh.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;this.storeWriter=new om(this,this.storeReader=new Ah({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:fh(this.config),canon:e?void 0:n&&n.canon})),this.maybeBroadcastWatch=ih((function(e,n){return t.broadcastWatch(e,n)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Th(n)){var r=e.optimistic,i=e.rootId,a=e.variables;return n.makeCacheKey(e.query,e.callback,Rh({optimistic:r,rootId:i,variables:a}))}}}),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(_u(_u({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof sh)return null;throw e}},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(lh.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(_u(_u({},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||function(e){Lh(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&qh(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Rh.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},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(ff(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&Iu.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(lh.call(e,"id"))return!1;e=_u(_u({},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(),Rh.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),qh(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,r=e.update,i=e.optimistic,a=void 0===i||i,o=e.removeOptimistic,s=e.onWatchUpdated,l=function(e){var i=n,a=i.data,o=i.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=a,n.optimisticData=o}},u=new Set;return s&&!this.txCount&&this.broadcastWatches(_u(_u({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,l):!1===a?l(this.data):l(),"string"==typeof o&&(this.optimisticData=this.optimisticData.removeLayer(o)),s&&u.size?(this.broadcastWatches(_u(_u({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.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){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Ff(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(n){return t.maybeBroadcastWatch(n,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&&zd(n.result,r.result)||e.callback(e.lastDiff=r,n)},t}(oh);function mm(e){return!!e&&e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(pm||(pm={}));var vm=Object.assign,ym=Object.hasOwnProperty,gm=!1,bm=function(e){function t(t){var n=t.queryManager,r=t.queryInfo,i=t.options,a=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=wm)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=i,a.queryId=r.queryId||n.generateQueryId();var o=_f(i.query);return a.queryName=o&&o.name&&o.name.value,a.initialFetchPolicy=i.fetchPolicy||"cache-first",a.queryManager=n,a.queryInfo=r,a}return ku(t,e),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.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||pm.ready,r=_u(_u({},t),{loading:mm(n),networkStatus:n}),i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var o=this.queryInfo.getDiff();(o.complete||this.options.returnPartialData)&&(r.data=o.result),zd(r.data,{})&&(r.data=void 0),o.complete?(delete r.partial,!o.complete||r.networkStatus!==pm.loading||"cache-first"!==a&&"cache-only"!==a||(r.networkStatus=pm.ready,r.loading=!1)):r.partial=!0,!__DEV__||o.complete||this.options.partialRefetch||r.loading||r.data||r.error||Em(o.missing)}return e&&this.updateLastResult(r),r},t.prototype.isDifferentFromLastResult=function(e){return!this.last||!zd(this.last.result,e)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||zd(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},r=this.options.fetchPolicy;if(n.fetchPolicy="standby"===r||"cache-and-network"===r?r:"no-cache"===r?"no-cache":"network-only",__DEV__&&e&&ym.call(e,"variables")){var i=Tf(this.options.query),a=i.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&Iu.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!zd(this.options.variables,e)&&(n.variables=this.options.variables=_u(_u({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,pm.refetch)},t.prototype.fetchMore=function(e){var t=this,n=_u(_u({},e.query?e:_u(_u(_u({},this.options),e),{variables:_u(_u({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=pm.fetchMore,this.observe()),this.queryManager.fetchQuery(r,n,pm.fetchMore).then((function(r){var i=r.data,a=e.updateQuery;return a?(__DEV__&&!gm&&(__DEV__&&Iu.warn("The updateQuery callback for fetchMore is deprecated, and will be removed\nin the next major version of Apollo Client.\n\nPlease convert updateQuery functions to field policies with appropriate\nread and merge functions, or use/adapt a helper function (such as\nconcatPagination, offsetLimitPagination, or relayStylePagination) from\n@apollo/client/utilities.\n\nThe field policy system handles pagination more effectively than a\nhand-written updateQuery function, and you only need to define the policy\nonce, rather than every time you call fetchMore."),gm=!0),t.updateQuery((function(e){return a(e,{fetchMoreResult:i,variables:n.variables})}))):t.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),r})).finally((function(){t.queryManager.stopQuery(r),t.reobserve()}))},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 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):__DEV__&&Iu.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return zd(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:e},pm.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,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.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n){if(!t||t.interval!==n){__DEV__?Iu(n,"Attempted to start a polling query without a polling interval."):Iu(n,10),(t||(this.pollingInfo={})).interval=n;var r=function(){e.pollingInfo&&(mm(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"network-only"},pm.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=_u(_u({},this.last),{result:this.queryManager.assumeImmutableResults?e:md(e),variables:t}),Od(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var n=this;this.isTornDown=!1;var r=t===pm.refetch||t===pm.fetchMore||t===pm.poll,i=this.options.variables,a=r?Nd(this.options,e):vm(this.options,Nd(e));r||(this.updatePolling(),e&&e.variables&&!e.fetchPolicy&&!zd(e.variables,i)&&(a.fetchPolicy=this.initialFetchPolicy,void 0===t&&(t=pm.setVariables)));var o=a.variables&&_u({},a.variables),s=this.fetch(a,t),l={next:function(e){n.reportResult(e,o)},error:function(e){n.reportError(e,o)}};return r||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=s,this.observer=l),s.addObserver(l),s.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){(this.getLastError()||this.isDifferentFromLastResult(e))&&(this.updateLastResult(e,t),bd(this.observers,"next",e))},t.prototype.reportError=function(e,t){var n=_u(_u({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:pm.error,loading:!1});this.updateLastResult(n,t),bd(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},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}(fd);function wm(e){__DEV__&&Iu.error("Unhandled error",e.message,e.stack)}function Em(e){__DEV__&&e&&__DEV__&&Iu.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function km(e){var t=e.fetchPolicy,n=void 0===t?"cache-first":t,r=e.nextFetchPolicy;r&&(e.fetchPolicy="function"==typeof r?r.call(e,n):r)}Sd(bm);var _m=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=Vf(t.resolvers,e)})):this.resolvers=Vf(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,a=e.onlyRunForcedResolvers,o=void 0!==a&&a;return xu(this,void 0,void 0,(function(){return Tu(this,(function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then((function(e){return _u(_u({},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 rf(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){kf(e);var t=Pf([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=Bc(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return wf(e)&&"__typename"===e.name.value})))return null}}})),t}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return _u(_u({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),xu(this,void 0,void 0,(function(){return Tu(this,(function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then((function(e){return _u(_u({},t),e.exportedVariables)}))]:[2,_u({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Bc(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 Uc}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:qf(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,r,i,a){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),xu(this,void 0,void 0,(function(){var o,s,l,u,c,f,d,p,h;return Tu(this,(function(m){return o=Of(e),s=xf(e),l=sf(s),u=o.operation,c=u?u.charAt(0).toUpperCase()+u.slice(1):"Query",d=(f=this).cache,p=f.client,h={fragmentMap:l,context:_u(_u({},n),{cache:d,client:p}),variables:r,fragmentMatcher:i,defaultOperationType:c,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(o.selectionSet,t,h).then((function(e){return{result:e,exportedVariables:h.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,n){return xu(this,void 0,void 0,(function(){var r,i,a,o,s,l=this;return Tu(this,(function(u){return r=n.fragmentMap,i=n.context,a=n.variables,o=[t],s=function(e){return xu(l,void 0,void 0,(function(){var s,l;return Tu(this,(function(u){return nf(e,a)?wf(e)?[2,this.resolveField(e,t,n).then((function(t){var n;void 0!==t&&o.push(((n={})[gf(e)]=t,n))}))]:(Ef(e)?s=e:(s=r[e.name.value],__DEV__?Iu(s,"No fragment named ".concat(e.name.value)):Iu(s,9)),s&&s.typeCondition&&(l=s.typeCondition.name.value,n.fragmentMatcher(t,l,i))?[2,this.resolveSelectionSet(s.selectionSet,t,n).then((function(e){o.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(s)).then((function(){return zf(o)}))]}))}))},e.prototype.resolveField=function(e,t,n){return xu(this,void 0,void 0,(function(){var r,i,a,o,s,l,u,c,f,d=this;return Tu(this,(function(p){return r=n.variables,i=e.name.value,a=gf(e),o=i!==a,s=t[a]||t[i],l=Promise.resolve(s),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(u=t.__typename||n.defaultOperationType,(c=this.resolvers&&this.resolvers[u])&&(f=c[o?i:a])&&(l=Promise.resolve(Fh.withValue(this.cache,f,[t,yf(e,r),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(t){return void 0===t&&(t=s),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)?d.resolveSubSelectedArray(e,t,n):e.selectionSet?d.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}(),Sm=new(Ed?WeakMap:Map);function xm(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return Sm.set(e,(Sm.get(e)+1)%1e15),n.apply(this,arguments)})}function Tm(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Om=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.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;Sm.has(n)||(Sm.set(n,0),xm(n,"evict"),xm(n,"modify"),xm(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||pm.loading;return this.variables&&this.networkStatus!==pm.loading&&!zd(this.variables,e.variables)&&(t=pm.setVariables),zd(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(){Tm(this),this.lastDiff=void 0,this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&zd(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},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=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||zd(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.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():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Tm(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(mm(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,this.subscriptions.forEach((function(e){return e.unsubscribe()}));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 r=_u(_u({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&zd(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Sm.get(this.cache)&&zd(t,n.variables)&&zd(e.data,n.result.data))},e.prototype.markResult=function(e,t,n){var r=this;this.graphQLErrors=Od(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(t.variables)):0!==n&&(Cm(e,t.errorPolicy)?this.cache.performTransaction((function(i){if(r.shouldWrite(e,t.variables))i.writeQuery({query:r.document,data:e.data,variables:t.variables,overwrite:1===n}),r.lastWrite={result:e,variables:t.variables,dmCount:Sm.get(r.cache)};else if(r.lastDiff&&r.lastDiff.diff.complete)return void(e.data=r.lastDiff.diff.result);var a=r.getDiffOptions(t.variables),o=i.diff(a);r.stopped||r.updateWatch(t.variables),r.updateLastDiff(o,a),o.complete&&(e.data=o.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=pm.ready},e.prototype.markError=function(e){return this.networkStatus=pm.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Cm(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!Cd(e);return!r&&n&&e.data&&(r=!0),r}var Nm=Object.prototype.hasOwnProperty,Rm=function(){function e(e){var t=e.cache,n=e.link,r=e.queryDeduplication,i=void 0!==r&&r,a=e.onBroadcast,o=e.ssrMode,s=void 0!==o&&o,l=e.clientAwareness,u=void 0===l?{}:l,c=e.localState,f=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Ed?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.queryDeduplication=i,this.clientAwareness=u,this.localState=c||new _m({cache:t}),this.ssrMode=s,this.assumeImmutableResults=!!f,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,n){e.stopQueryNoBroadcast(n)})),this.cancelPendingFetches(__DEV__?new Du("QueryManager stopped while query was in flight"):new Du(11))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,n=e.variables,r=e.optimisticResponse,i=e.updateQueries,a=e.refetchQueries,o=void 0===a?[]:a,s=e.awaitRefetchQueries,l=void 0!==s&&s,u=e.update,c=e.onQueryUpdated,f=e.errorPolicy,d=void 0===f?"none":f,p=e.fetchPolicy,h=void 0===p?"network-only":p,m=e.keepRootFields,v=e.context;return xu(this,void 0,void 0,(function(){var e,a,s;return Tu(this,(function(f){switch(f.label){case 0:return __DEV__?Iu(t,"mutation option is required. You must specify your GraphQL document in the mutation option."):Iu(t,12),__DEV__?Iu("network-only"===h||"no-cache"===h,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):Iu("network-only"===h||"no-cache"===h,13),e=this.generateMutationId(),t=this.transform(t).document,n=this.getVariables(t,n),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,n,v)]:[3,2];case 1:n=f.sent(),f.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:n,loading:!0,error:null}),r&&this.markMutationOptimistic(r,{mutationId:e,document:t,variables:n,fetchPolicy:h,errorPolicy:d,context:v,updateQueries:i,update:u,keepRootFields:m}),this.broadcastQueries(),s=this,[2,new Promise((function(f,p){return wd(s.getObservableFromLink(t,_u(_u({},v),{optimisticResponse:r}),n,!1),(function(f){if(Cd(f)&&"none"===d)throw new Hd({graphQLErrors:f.errors});a&&(a.loading=!1,a.error=null);var p=_u({},f);return"function"==typeof o&&(o=o(p)),"ignore"===d&&Cd(p)&&delete p.errors,s.markMutationResult({mutationId:e,result:p,document:t,variables:n,fetchPolicy:h,errorPolicy:d,context:v,update:u,updateQueries:i,awaitRefetchQueries:l,refetchQueries:o,removeOptimistic:r?e:void 0,onQueryUpdated:c,keepRootFields:m})})).subscribe({next:function(e){s.broadcastQueries(),f(e)},error:function(t){a&&(a.loading=!1,a.error=t),r&&s.cache.removeOptimistic(e),s.broadcastQueries(),p(t instanceof Hd?t:new Hd({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&Cm(r,e.errorPolicy)){i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables});var o=e.updateQueries;o&&this.queries.forEach((function(e,a){var s=e.observableQuery,l=s&&s.queryName;if(l&&Nm.call(o,l)){var u=o[l],c=n.queries.get(a),f=c.document,d=c.variables,p=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var m=u(h,{mutationResult:r,queryName:f&&Sf(f)||void 0,queryVariables:d});m&&i.push({result:m,dataId:"ROOT_QUERY",query:f,variables:d})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var s=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach((function(e){return t.write(e)}));var o=e.update;if(o){if(!a){var s=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});s.complete&&(r=_u(_u({},r),{data:s.result}))}o(t,r,{context:e.context,variables:e.variables})}a||e.keepRootFields||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 s.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(s).then((function(){return r}))}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{n.markMutationResult(_u(_u({},t),{result:{data:r}}),e)}catch(e){__DEV__&&Iu.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).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){var t,n=this.transformCache;if(!n.has(e)){var r=this.cache.transformDocument(e),i=(t=this.cache.transformForLink(r),Pf([Mf],kf(t))),a=this.localState.clientQuery(r),o=i&&this.localState.serverQuery(i),s={document:r,hasClientExports:af(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:a,serverQuery:o,defaultVars:Cf(_f(r)),asQuery:_u(_u({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?_u(_u({},e),{operation:"query"}):e}))})},l=function(e){e&&!n.has(e)&&n.set(e,s)};l(e),l(r),l(a),l(o)}return n.get(e)},e.prototype.getVariables=function(e,t){return _u(_u({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=_u(_u({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new Om(this),n=new bm({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:e.query,observableQuery:n,variables:e.variables}),n},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?Iu(e.query,"query option is required. You must specify your GraphQL document in the query option."):Iu(e.query,14),__DEV__?Iu("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):Iu("Document"===e.query.kind,15),__DEV__?Iu(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):Iu(!e.returnPartialData,16),__DEV__?Iu(!e.pollInterval,"pollInterval option only supported on watchQuery."):Iu(!e.pollInterval,17),this.fetchQuery(t,e).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(__DEV__?new Du("Store reset while query was in flight (not completed in link chain)"):new Du(18)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=pm.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,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var n;"string"==typeof e?r.set(e,!1):uf(n=e)&&"Document"===n.kind&&Array.isArray(n.definitions)?r.set(t.transform(e).document,!1):uf(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void n.set(i,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&r.has(s)||o&&r.has(o))&&(n.set(i,a),s&&r.set(s,!0),o&&r.set(o,!0))}})),i.size&&i.forEach((function(e){var r=Dd("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),a=new bm({queryManager:t,queryInfo:i,options:_u(_u({},e),{fetchPolicy:"network-only"})});Iu(a.queryId===r),i.setObservableQuery(a),n.set(r,a)})),__DEV__&&r.size&&r.forEach((function(e,t){e||__DEV__&&Iu.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),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 a=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&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.fetchPolicy,i=e.errorPolicy,a=e.variables,o=e.context,s=void 0===o?{}:o;n=this.transform(n).document,a=this.getVariables(n,a);var l=function(e){return t.getObservableFromLink(n,s,e).map((function(a){if("no-cache"!==r&&(Cm(a,i)&&t.cache.write({query:n,result:a.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),Cd(a))throw new Hd({graphQLErrors:a.errors});return a}))};if(this.transform(n).hasClientExports){var u=this.localState.addExportedVariables(n,a,s).then(l);return new fd((function(e){var t=null;return u.then((function(n){return t=n.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(a)},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.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,r){var i,a,o=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var l=this.inFlightLinkObservables,u=this.link,c={query:s,variables:n,operationName:Sf(s)||void 0,context:this.prepareContext(_u(_u({},t),{forceFetch:!r}))};if(t=c.context,r){var f=l.get(s)||new Map;l.set(s,f);var d=Rh(n);if(!(a=f.get(d))){var p=new Td([op(u,c)]);f.set(d,a=p),p.cleanup((function(){f.delete(d)&&f.size<1&&l.delete(s)}))}}else a=new Td([op(u,c)])}else a=new Td([fd.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(a=wd(a,(function(e){return o.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})}))),a},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId();return wd(this.getObservableFromLink(e.document,n.context,n.variables),(function(i){var a=Od(i.errors);if(r>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new Hd({graphQLErrors:i.errors}));e.markResult(i,n,t),e.markReady()}var o={data:i.data,loading:!1,networkStatus:e.networkStatus||pm.ready};return a&&"ignore"!==n.errorPolicy&&(o.errors=i.errors),o}),(function(t){var n=Kd(t)?t:new Hd({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n}))},e.prototype.fetchQueryObservable=function(e,t,n){var r=this;void 0===n&&(n=pm.loading);var i=this.transform(t.query).document,a=this.getVariables(i,t.variables),o=this.getQuery(e),s=t.fetchPolicy,l=void 0===s?"cache-first":s,u=t.errorPolicy,c=void 0===u?"none":u,f=t.returnPartialData,d=void 0!==f&&f,p=t.notifyOnNetworkStatusChange,h=void 0!==p&&p,m=t.context,v=void 0===m?{}:m,y=Object.assign({},t,{query:i,variables:a,fetchPolicy:l,errorPolicy:c,returnPartialData:d,notifyOnNetworkStatusChange:h,context:v}),g=function(e){return y.variables=e,r.fetchQueryByPolicy(o,y,n)};this.fetchCancelFns.set(e,(function(e){setTimeout((function(){return b.cancel(e)}))}));var b=new Td(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(g):g(y.variables));return b.cleanup((function(){r.fetchCancelFns.delete(e),km(t)})),b},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?Dd("refetchQueries"):void 0:o,l=e.onQueryUpdated,u=new Map;r&&this.getObservableQueries(r).forEach((function(e,n){u.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})}));var c=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof Om&&e.watcher.observableQuery;if(r){if(l){u.delete(r.queryId);var i=l(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),i}null!==l&&u.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),u.size&&u.forEach((function(e,n){var r,i=e.oq,a=e.lastDiff,o=e.diff;if(l){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}r=l(i,o,a)}l&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)})),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,u=t.returnPartialData,c=t.context,f=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var p=function(){return e.getDiff(a)},h=function(t,n){void 0===n&&(n=e.networkStatus||pm.loading);var o=t.result;!__DEV__||u||zd(o,{})||Em(t.missing);var s=function(e){return fd.of(_u({data:e,loading:mm(n),networkStatus:n},t.complete?null:{partial:!0}))};return o&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:o},context:c,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return s(e.data||void 0)})):s(o)},m="no-cache"===o?0:n===pm.refetch&&"merge"!==s?1:2,v=function(){return r.getResultsFromLink(e,m,{variables:a,context:c,fetchPolicy:o,errorPolicy:l})},y=f&&"number"==typeof d&&d!==n&&mm(n);switch(o){default:case"cache-first":return(g=p()).complete?[h(g,e.markReady())]:u||y?[h(g),v()]:[v()];case"cache-and-network":var g;return(g=p()).complete||u||y?[h(g),v()]:[v()];case"cache-only":return[h(p(),e.markReady())];case"network-only":return y?[h(p()),v()]:[v()];case"no-cache":return y?[h(e.getDiff()),v()]:[v()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Om(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return _u(_u({},t),{clientAwareness:this.clientAwareness})},e}(),Dm=!1;function Im(e,t){return Nd(e,t,t.variables&&{variables:_u(_u({},e.variables),t.variables)})}var Am=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,a=e.cache,o=e.ssrMode,s=void 0!==o&&o,l=e.ssrForceFetchDelay,u=void 0===l?0:l,c=e.connectToDevTools,f=void 0===c?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:c,d=e.queryDeduplication,p=void 0===d||d,h=e.defaultOptions,m=e.assumeImmutableResults,v=void 0!==m&&m,y=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,w=e.name,E=e.version,k=e.link;if(k||(k=n?new wp({uri:n,credentials:r,headers:i}):tp.empty()),!a)throw __DEV__?new Du("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new Du(7);if(this.link=k,this.cache=a,this.disableNetworkFetches=s||u>0,this.queryDeduplication=p,this.defaultOptions=h||{},this.typeDefs=g,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),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),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Dm&&__DEV__&&(Dm=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var _=window.navigator,S=_&&_.userAgent,x=void 0;"string"==typeof S&&(S.indexOf("Chrome/")>-1?x="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":S.indexOf("Firefox/")>-1&&(x="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),x&&__DEV__&&Iu.log("Download the Apollo DevTools for a better development experience: "+x)}this.version="3.5.5",this.localState=new _m({cache:a,client:this,resolvers:y,fragmentMatcher:b}),this.queryManager=new Rm({cache:this.cache,link:this.link,queryDeduplication:p,ssrMode:s,clientAwareness:{name:w,version:E},localState:this.localState,assumeImmutableResults:v,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Im(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=_u(_u({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Im(this.defaultOptions.query,e)),__DEV__?Iu("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):Iu("cache-and-network"!==e.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=_u(_u({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Im(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){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return op(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 i=Promise.all(r);return i.queries=n,i.results=r,i.catch((function(e){__DEV__&&Iu.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),i},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},e}(),Pm=new Map,Fm=new Map,Mm=!0,Lm=!1;function qm(e){return e.replace(/[\s,]+/g," ").trim()}function jm(e){var t=new Set,n=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=qm((o=e.loc).source.body.substring(o.start,o.end)),a=Fm.get(r);a&&!a.has(i)?Mm&&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"):a||Fm.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var o})),_u(_u({},e),{definitions:n})}function Vm(e){var t=qm(e);if(!Pm.has(t)){var n=function(e,t){return new Vc(e,t).parseDocument()}(e,{experimentalFragmentVariables:Lm,allowLegacyFragmentVariables:Lm});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Pm.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}(jm(n)))}return Pm.get(t)}function zm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]})),Vm(r)}function $m(){Pm.clear(),Fm.clear()}function Qm(){Mm=!1}function Um(){Lm=!0}function Bm(){Lm=!1}var Wm,Km,Hm=zm,Ym=$m,Gm=Qm,Jm=Um,Xm=Bm;(Wm=zm||(zm={})).gql=Hm,Wm.resetCaches=Ym,Wm.disableFragmentWarnings=Gm,Wm.enableExperimentalFragmentVariables=Jm,Wm.disableExperimentalFragmentVariables=Xm,zm.default=zm,function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(Km||(Km={}));var Zm=new Map;function ev(e){var t;switch(e){case Km.Query:t="Query";break;case Km.Mutation:t="Mutation";break;case Km.Subscription:t="Subscription"}return t}function tv(e){var t,n,r=Zm.get(e);if(r)return r;__DEV__?Iu(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):Iu(!!e&&!!e.kind,30);var i=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),o=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),s=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));__DEV__?Iu(!i.length||a.length||o.length||s.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):Iu(!i.length||a.length||o.length||s.length,31),__DEV__?Iu(a.length+o.length+s.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(a.length," queries, ").concat(s.length," ")+"subscriptions and ".concat(o.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):Iu(a.length+o.length+s.length<=1,32),n=a.length?Km.Query:Km.Mutation,a.length||o.length||(n=Km.Subscription);var l=a.length?a:o.length?o:s;__DEV__?Iu(1===l.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(l.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):Iu(1===l.length,33);var u=l[0];t=u.variableDefinitions||[];var c={name:u.name&&"Name"===u.name.kind?u.name.value:"data",type:n,variables:t};return Zm.set(e,c),c}function nv(e,t){var n=tv(e),r=ev(t),i=ev(n.type);__DEV__?Iu(n.type===t,"Running a ".concat(r," requires a graphql ")+"".concat(r,", but a ").concat(i," was used instead.")):Iu(n.type===t,34)}function rv(e,t){var n,r=u.useContext(Ad()),i=Fd(null==t?void 0:t.client);nv(e,Km.Query);var a,o=u.useState((function(){var n=iv(e,t),a=null;return r.renderPromises&&(a=r.renderPromises.getSSRObservable(n)),a||(a=i.watchQuery(n),r.renderPromises&&r.renderPromises.registerSSRObservable(a,n)),r.renderPromises&&!1!==(null==t?void 0:t.ssr)&&!(null==t?void 0:t.skip)&&a.getCurrentResult().loading&&r.renderPromises.addQueryPromise({getOptions:function(){return iv(e,t)},fetchData:function(){return new Promise((function(e){var t=a.subscribe({next:function(n){n.loading||(e(),t.unsubscribe())},error:function(){e(),t.unsubscribe()},complete:function(){e()}})}))}},(function(){return null})),a})),s=o[0],l=o[1],c=u.useState((function(){var e,n,r=s.getCurrentResult();return!r.loading&&t&&(r.error?null===(e=t.onError)||void 0===e||e.call(t,r.error):r.data&&(null===(n=t.onCompleted)||void 0===n||n.call(t,r.data))),r})),f=c[0],d=c[1],p=u.useRef({client:i,query:e,options:t,result:f,previousData:void 0,watchQueryOptions:iv(e,t)});u.useEffect((function(){var n,r,a,o=iv(e,t);if(p.current.client===i&&zd(p.current.query,e))zd(p.current.watchQueryOptions,o)||(s.setOptions(o).catch((function(){})),a=s.getCurrentResult(),p.current.watchQueryOptions=o);else{var u=i.watchQuery(o);l(u),a=u.getCurrentResult()}if(a){var c=p.current.result;c.data&&(p.current.previousData=c.data),d(p.current.result=a),!a.loading&&t&&(f.loading||(f.error?null===(n=t.onError)||void 0===n||n.call(t,f.error):f.data&&(null===(r=t.onCompleted)||void 0===r||r.call(t,f.data))))}Object.assign(p.current,{client:i,query:e,options:t})}),[s,i,e,t]),u.useEffect((function(){if(!r.renderPromises){var e=s.subscribe(t,(function n(r){var i,a,o=s.last;e.unsubscribe();try{s.resetLastResults(),e=s.subscribe(t,n)}finally{s.last=o}if(!r.hasOwnProperty("graphQLErrors"))throw r;var l=p.current.result;(l&&l.loading||!zd(r,l.error))&&(d(p.current.result={data:l.data,error:r,loading:!1,networkStatus:pm.error}),null===(a=null===(i=p.current.options)||void 0===i?void 0:i.onError)||void 0===a||a.call(i,r))}));return function(){return e.unsubscribe()}}function t(){var e,t,n=p.current.result,r=s.getCurrentResult();n&&n.loading===r.loading&&n.networkStatus===r.networkStatus&&zd(n.data,r.data)||(n.data&&(p.current.previousData=n.data),d(p.current.result=r),r.loading||null===(t=null===(e=p.current.options)||void 0===e?void 0:e.onCompleted)||void 0===t||t.call(e,r.data))}}),[s,r.renderPromises,i.disableNetworkFetches]),a=(n=f).partial,f=Su(n,["partial"]),!a||!(null==t?void 0:t.partialRefetch)||f.loading||f.data&&0!==Object.keys(f.data).length||"cache-only"===s.options.fetchPolicy||(f=_u(_u({},f),{loading:!0,networkStatus:pm.refetch}),s.refetch()),r.renderPromises&&!1!==(null==t?void 0:t.ssr)&&!(null==t?void 0:t.skip)&&f.loading&&s.setOptions(iv(e,t)).catch((function(){})),(r.renderPromises||i.disableNetworkFetches)&&!1===(null==t?void 0:t.ssr)?f=p.current.result={loading:!0,data:void 0,error:void 0,networkStatus:pm.loading}:((null==t?void 0:t.skip)||"standby"===(null==t?void 0:t.fetchPolicy))&&(f={loading:!1,data:void 0,error:void 0,networkStatus:pm.ready}),f.errors&&f.errors.length&&(f=_u(_u({},f),{error:f.error||new Hd({graphQLErrors:f.errors})}));var h=u.useMemo((function(){return{refetch:s.refetch.bind(s),fetchMore:s.fetchMore.bind(s),updateQuery:s.updateQuery.bind(s),startPolling:s.startPolling.bind(s),stopPolling:s.stopPolling.bind(s),subscribeToMore:s.subscribeToMore.bind(s)}}),[s]);return _u(_u(_u({},h),{variables:s.variables,client:i,called:!0,previousData:p.current.previousData}),f)}function iv(e,t){var n;void 0===t&&(t={});var r=t.skip;t.ssr,t.onCompleted,t.onError,t.displayName;var i=Su(t,["skip","ssr","onCompleted","onError","displayName"]);return r?i.fetchPolicy="standby":(!(null===(n=i.context)||void 0===n?void 0:n.renderPromises)||"network-only"!==i.fetchPolicy&&"cache-and-network"!==i.fetchPolicy)&&i.fetchPolicy||(i.fetchPolicy="cache-first"),_u({query:e},i)}var av=["refetch","fetchMore","updateQuery","startPolling","subscribeToMore"];function ov(e,t){var n=Fd(null==t?void 0:t.client);nv(e,Km.Mutation);var r=u.useState({called:!1,loading:!1,client:n}),i=r[0],a=r[1],o=u.useRef({result:i,mutationId:0,isMounted:!0,execute:null,client:n,mutation:e,options:t}),s=u.useMemo((function(){return null!=o.current.execute&&o.current.client===n&&zd(t,o.current.options)&&zd(e,o.current.mutation)||(o.current.client=n,o.current.options=t,o.current.mutation=e,o.current.execute=function(r){void 0===r&&(r={});var i=_u(_u({},t),{mutation:e});o.current.result.loading||i.ignoreResults||a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:n});var s=++o.current.mutationId,l=Im(i,r);return n.mutate(l).then((function(e){var t,u,c=e.data,f=e.errors,d=f&&f.length>0?new Hd({graphQLErrors:f}):void 0;if(s===o.current.mutationId&&!l.ignoreResults){var p={called:!0,loading:!1,data:c,error:d,client:n};o.current.isMounted&&!zd(o.current.result,p)&&a(o.current.result=p)}return null===(t=i.onCompleted)||void 0===t||t.call(i,e.data),null===(u=r.onCompleted)||void 0===u||u.call(r,e.data),e})).catch((function(e){var t,u;if(s===o.current.mutationId&&o.current.isMounted){var c={loading:!1,error:e,data:void 0,called:!0,client:n};zd(o.current.result,c)||a(o.current.result=c)}if(i.onError||l.onError)return null===(t=i.onError)||void 0===t||t.call(i,e),null===(u=r.onError)||void 0===u||u.call(r,e),{data:void 0,errors:e};throw e}))}),o.current.execute}),[n,e,t]),l=u.useCallback((function(){a({called:!1,loading:!1,client:n})}),[]);return u.useEffect((function(){return function(){o.current.isMounted=!1}}),[]),[s,_u({reset:l},i)]}var sv=Object.freeze({__proto__:null,ApolloClient:Am,mergeOptions:Im,ObservableQuery:bm,applyNextFetchPolicy:km,get NetworkStatus(){return pm},isApolloError:Kd,ApolloError:Hd,get Cache(){return ah},ApolloCache:oh,InMemoryCache:hm,MissingFieldError:sh,defaultDataIdFromObject:uh,makeVar:jh,fromError:Yd,toPromise:function(e){var t=!1;return new Promise((function(n,r){e.subscribe({next:function(e){t?__DEV__&&Iu.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,n(e))},error:r})}))},fromPromise:function(e){return new fd((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))},throwServerError:Gd,Observable:fd,isReference:ff,makeReference:cf,get gql(){return zm},resetCaches:$m,disableFragmentWarnings:Qm,enableExperimentalFragmentVariables:Um,disableExperimentalFragmentVariables:Bm,empty:np,from:rp,split:ip,concat:ap,execute:op,ApolloLink:tp,parseAndCheckHttpResponse:lp,serializeFetchParameter:up,fallbackHttpConfig:cp,defaultPrinter:fp,selectHttpOptionsAndBody:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return n.unshift(t),dp.apply(void 0,Ou([e,fp],n,!1))},selectHttpOptionsAndBodyInternal:dp,checkFetcher:hp,createSignalIfSupported:mp,selectURI:vp,createHttpLink:bp,HttpLink:wp,rewriteURIForGET:yp,setLogVerbosity:function(e){var t=Au[Pu];return Pu=Math.max(0,Au.indexOf(e)),t},ApolloProvider:Pd,ApolloConsumer:function(e){var t=Ad();return u.createElement(t.Consumer,null,(function(t){return __DEV__?Iu(t&&t.client,'Could not find "client" in the context of ApolloConsumer. Wrap the root component in an <ApolloProvider>.'):Iu(t&&t.client,25),e.children(t.client)}))},getApolloContext:Ad,resetApolloContext:Ad,get DocumentType(){return Km},operationName:ev,parser:tv,useApolloClient:Fd,useLazyQuery:function(e,t){var n=u.useState({called:!1,resolves:[]}),r=n[0],i=n[1],a=u.useCallback((function(e){var t,n=new Promise((function(e){return t=e}));return i((function(n){return n.called&&o&&o.refetch(null==e?void 0:e.variables),{called:!0,resolves:Ou(Ou([],n.resolves,!0),[t],!1),options:e}})),n}),[]),o=rv(e,_u(_u(_u({},t),r.options),{fetchPolicy:r.called?null==t?void 0:t.fetchPolicy:"standby",skip:void 0}));if(u.useEffect((function(){var e=r.resolves;!o.loading&&e.length&&(i((function(e){return _u(_u({},e),{resolves:[]})})),e.forEach((function(e){return e(o)})))}),[o,r]),!r.called){o=_u(_u({},o),{loading:!1,data:void 0,error:void 0,called:!1});for(var s=function(e){var t=o[e];o[e]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return i((function(e){return _u(_u({},e),{called:!0})})),t.apply(void 0,e)}},l=0,c=av;l<c.length;l++){s(c[l])}}return[a,o]},useMutation:ov,useQuery:rv,useSubscription:function(e,t){var n=Fd(null==t?void 0:t.client);nv(e,Km.Subscription);var r=u.useState({loading:!(null==t?void 0:t.skip),error:void 0,data:void 0,variables:null==t?void 0:t.variables}),i=r[0],a=r[1],o=u.useState((function(){return(null==t?void 0:t.skip)?null:n.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})})),s=o[0],l=o[1],c=u.useRef({client:n,subscription:e,options:t});return u.useEffect((function(){var r,i,o,s,u=null==t?void 0:t.shouldResubscribe;"function"==typeof u&&(u=!!u(t)),(null==t?void 0:t.skip)&&!(null==t?void 0:t.skip)!=!(null===(r=c.current.options)||void 0===r?void 0:r.skip)?(a({loading:!1,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),l(null)):!1===u||n===c.current.client&&e===c.current.subscription&&(null==t?void 0:t.fetchPolicy)===(null===(i=c.current.options)||void 0===i?void 0:i.fetchPolicy)&&!(null==t?void 0:t.skip)==!(null===(o=c.current.options)||void 0===o?void 0:o.skip)&&zd(null==t?void 0:t.variables,null===(s=c.current.options)||void 0===s?void 0:s.variables)||(a({loading:!0,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),l(n.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context}))),Object.assign(c.current,{client:n,subscription:e,options:t})}),[n,e,t]),u.useEffect((function(){if(s){var e=s.subscribe({next:function(e){var r,i,o={loading:!1,data:e.data,error:void 0,variables:null==t?void 0:t.variables};a(o),null===(i=null===(r=c.current.options)||void 0===r?void 0:r.onSubscriptionData)||void 0===i||i.call(r,{client:n,subscriptionData:o})},error:function(e){a({loading:!1,data:void 0,error:e,variables:null==t?void 0:t.variables})},complete:function(){var e,t;null===(t=null===(e=c.current.options)||void 0===e?void 0:e.onSubscriptionComplete)||void 0===t||t.call(e)}});return function(){e.unsubscribe()}}}),[s]),i},useReactiveVar:function(e){var t=e(),n=u.useState(t)[1];return u.useEffect((function(){var r=e();if(t===r)return e.onNextChange(n);n(r)}),[t]),t}}),lv=t(sv),uv=n((function(e,t){var n,r=lv,i=u;!function(e){e.REQUEST="REQUEST",e.ERROR="ERROR",e.SUCCESS="SUCCESS",e.CANCEL="CANCEL"}(n||(n={}));var a=n,o=function(e){function t(t){e.call(this),this.dispatcher=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.request=function(e,t){var n=this;this.dispatcher.dispatch({type:a.REQUEST,payload:{operation:e}});var i=t(e);return new r.Observable((function(t){var r=!0,o=i.subscribe({next:function(i){r=!1,n.dispatcher.dispatch({type:a.SUCCESS,payload:{operation:e,result:i}}),t.next(i)},error:function(i){r=!1,n.dispatcher.dispatch({type:a.ERROR,payload:{operation:e,networkError:i}}),t.error(i)},complete:t.complete.bind(t)});return function(){r&&n.dispatcher.dispatch({type:a.CANCEL,payload:{operation:e}}),o&&o.unsubscribe()}}))},t}(r.ApolloLink),s=function(){this.listeners=[]};function l(e,t,n){var r=i.useReducer(t,n),a=r[0],o=r[1];return i.useEffect((function(){var t;function n(e){t=requestAnimationFrame((function(){o(e)}))}return e.addListener(n),function(){e.removeListener(n),cancelAnimationFrame(t)}}),[e]),a}s.prototype.addListener=function(e){this.listeners.push(e)},s.prototype.removeListener=function(e){this.listeners=this.listeners.filter((function(t){return t!==e}))},s.prototype.dispatch=function(e){this.listeners.forEach((function(t){t(e)}))};var c="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function f(e,t){return e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&e.operation===t}))}function d(e){return function(t,n){if(void 0===t&&(t=0),!f(n.payload.operation,e))return t;switch(n.type){case a.REQUEST:return t+1;case a.ERROR:case a.SUCCESS:case a.CANCEL:return Math.max(t-1,0)}return t}}function p(e){return function(t,n){if(!f(n.payload.operation,e))return t;switch(n.type){case a.REQUEST:return;case a.ERROR:var r=n.payload;return{networkError:r.networkError,operation:r.operation};case a.SUCCESS:var i=n.payload,o=i.result;return o&&o.errors?{graphQLErrors:o.errors,response:o,operation:i.operation}:t}return t}}var h=d("query"),m=d("mutation"),v=p("query"),y=p("mutation"),g={numPendingQueries:0,numPendingMutations:0,queryError:void 0,mutationError:void 0};function b(e){return!1!==e.getContext().useApolloNetworkStatus}t.ActionTypes=a,t.createNetworkStatusNotifier=function(){var e=new s;return{link:new o(e),useApolloNetworkStatus:function(t){return function(e,t){t||(t={});var n,r,a=(n=t.shouldHandleOperation||b,r=i.useRef((function(){throw new Error("Function is called before it was assigned.")})),c((function(){r.current=n})),i.useCallback((function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return r.current.apply(r,e)}),[]));return l(e,i.useMemo((function(){return function(e,t){return a(t.payload.operation)?function(e,t){if(f(t.payload.operation,"subscription"))return e;var n=Object.assign({},e);return n.numPendingQueries=h(n.numPendingQueries,t),n.numPendingMutations=m(n.numPendingMutations,t),n.queryError=v(n.queryError,t),n.mutationError=y(n.mutationError,t),Object.keys(e).some((function(t){return n[t]!==e[t]}))?n:e}(e,t):e}}),[a]),g)}(e,t)},useApolloNetworkStatusReducer:function(t,n){return l(e,t,n)}}}}));const cv=(e,t)=>{switch(t.type){case uv.ActionTypes.REQUEST:return e+1;case uv.ActionTypes.ERROR:case uv.ActionTypes.SUCCESS:case uv.ActionTypes.CANCEL:return Math.max(e-1,0);default:return e}},fv=(e,t)=>{switch(t.type){case uv.ActionTypes.REQUEST:return[];case uv.ActionTypes.ERROR:const{networkError:n}=t.payload;return[n];case uv.ActionTypes.SUCCESS:const{result:r}=t.payload;return!0===(null!=r&&null!=r.errors)?[...r.errors]:e;default:return e}};var dv="3.3.1",pv="https://github.com/electerious/Ackee",hv=(e,t)=>({get:()=>{const n=localStorage.getItem(e);return null==n?t:JSON.parse(n)},set:t=>{const n=JSON.stringify(t);return localStorage.setItem(e,n),t},reset:()=>(localStorage.removeItem(e),t)});const mv=Symbol(),vv=Symbol(),{get:yv,set:gv,reset:bv}=hv("ackee_token_3.3.1"),wv=(e,t)=>{switch(t.type){case mv:return gv(t.token);case vv:return bv();default:return e}};var Ev=function(){function e(e){var t=e.batchDebounce,n=e.batchInterval,r=e.batchMax,i=e.batchHandler,a=e.batchKey;this.queuedRequests=new Map,this.batchDebounce=t,this.batchInterval=n,this.batchMax=r||0,this.batchHandler=i,this.batchKey=a||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=_u({},e),r=!1,i=this.batchKey(e.operation);return n.observable||(n.observable=new fd((function(e){t.queuedRequests.has(i)||t.queuedRequests.set(i,[]),r||(t.queuedRequests.get(i).push(n),r=!0),n.next=n.next||[],e.next&&n.next.push(e.next.bind(e)),n.error=n.error||[],e.error&&n.error.push(e.error.bind(e)),n.complete=n.complete||[],e.complete&&n.complete.push(e.complete.bind(e)),1===t.queuedRequests.get(i).length?t.scheduleQueueConsumption(i):t.batchDebounce&&(clearTimeout(t.scheduledBatchTimer),t.scheduleQueueConsumption(i)),t.queuedRequests.get(i).length===t.batchMax&&t.consumeQueue(i)}))),n.observable},e.prototype.consumeQueue=function(e){var t=e||"",n=this.queuedRequests.get(t);if(n){this.queuedRequests.delete(t);var r=n.map((function(e){return e.operation})),i=n.map((function(e){return e.forward})),a=[],o=[],s=[],l=[];n.forEach((function(e,t){a.push(e.observable),o.push(e.next),s.push(e.error),l.push(e.complete)}));var u=this.batchHandler(r,i)||fd.of(),c=function(e){s.forEach((function(t){t&&t.forEach((function(t){return t(e)}))}))};return u.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),o.length!==e.length){var t=new Error("server returned results with length ".concat(e.length,", expected length of ").concat(o.length));return t.result=e,c(t)}e.forEach((function(e,t){o[t]&&o[t].forEach((function(t){return t(e)}))}))},error:c,complete:function(){l.forEach((function(e){e&&e.forEach((function(e){return e()}))}))}}),a}},e.prototype.scheduleQueueConsumption=function(e){var t=this,n=e||"";this.scheduledBatchTimer=setTimeout((function(){t.queuedRequests.get(n)&&t.queuedRequests.get(n).length&&t.consumeQueue(n)}),this.batchInterval)},e}(),kv=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.batchDebounce,a=r.batchInterval,o=void 0===a?10:a,s=r.batchMax,l=void 0===s?0:s,u=r.batchHandler,c=void 0===u?function(){return null}:u,f=r.batchKey,d=void 0===f?function(){return""}:f;return n.batcher=new Ev({batchDebounce:i,batchInterval:o,batchMax:l,batchHandler:c,batchKey:d}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}return ku(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(tp),_v=function(e){function t(t){var n=e.call(this)||this,r=t||{},i=r.uri,a=void 0===i?"/graphql":i,o=r.fetch,s=r.print,l=void 0===s?fp:s,u=r.includeExtensions,c=r.batchInterval,f=r.batchDebounce,d=r.batchMax,p=r.batchKey,h=Su(r,["uri","fetch","print","includeExtensions","batchInterval","batchDebounce","batchMax","batchKey"]);hp(o),o||(o=fetch);var m={http:{includeExtensions:u},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};n.batchDebounce=f,n.batchInterval=c||10,n.batchMax=d||10;return p=p||function(e){var t=e.getContext(),n={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return vp(e,a)+JSON.stringify(n)},n.batcher=new kv({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:p,batchHandler:function(e){var t=vp(e[0],a),n=e[0].getContext(),r={};if(n.clientAwareness){var i=n.clientAwareness,s=i.name,u=i.version;s&&(r["apollographql-client-name"]=s),u&&(r["apollographql-client-version"]=u)}var c,f={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:_u(_u({},r),n.headers)},d=e.map((function(e){return dp(e,l,cp,m,f)})),p=d.map((function(e){return e.body})),h=d[0].options;if("GET"===h.method)return Yd(new Error("apollo-link-batch-http does not support GET requests"));try{h.body=up(p,"Payload")}catch(e){return Yd(e)}if(!h.signal){var v=mp(),y=v.controller,g=v.signal;(c=y)&&(h.signal=g)}return new fd((function(n){return o(t,h).then((function(t){return e.forEach((function(e){return e.setContext({response:t})})),t})).then(lp(e)).then((function(e){return n.next(e),n.complete(),e})).catch((function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e))})),function(){c&&c.abort()}}))}}),n}return ku(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(tp),Sv=(new Intl.DateTimeFormat).resolvedOptions().timeZone;function xv(){return xv=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},xv.apply(this,arguments)}var Tv,Ov=Tv||(Tv={});Ov.Pop="POP",Ov.Push="PUSH",Ov.Replace="REPLACE";function Cv(e){e.preventDefault(),e.returnValue=""}function Nv(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Rv(e){var t=e.pathname,n=e.search;return(void 0===t?"/":t)+(void 0===n?"":n)+(void 0===(e=e.hash)?"":e)}function Dv(e){var t={};if(e){var n=e.indexOf("#");0<=n&&(t.hash=e.substr(n),e=e.substr(0,n)),0<=(n=e.indexOf("?"))&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var Iv=n((function(t,n){var r=[].slice;!function(e,r){null!==n?t.exports=r():e.UrlPattern=r()}(e,(function(){var e,t,n,i,a,o,s,l,u,c,f,d,p,h,m;return u=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},s=function(e,t){var n,r,i;for(i=[],n=-1,r=e.length;++n<r;)i=i.concat(t(e[n]));return i},h=function(e,t){var n,r,i;for(i="",n=-1,r=e.length;++n<r;)i+=t(e[n]);return i},p=function(e){return new RegExp(e.toString()+"|").exec("").length-1},f=function(e,t){var n,r,i,a,o;for(a={},n=-1,i=e.length;++n<i;)r=e[n],null!=(o=t[n])&&(null!=a[r]?(Array.isArray(a[r])||(a[r]=[a[r]]),a[r].push(o)):a[r]=o);return a},(e={}).Result=function(e,t){this.value=e,this.rest=t},e.Tagged=function(e,t){this.tag=e,this.value=t},e.tag=function(t,n){return function(r){var i,a;if(null!=(i=n(r)))return a=new e.Tagged(t,i.value),new e.Result(a,i.rest)}},e.regex=function(t){return function(n){var r,i;if(null!=(r=t.exec(n)))return i=r[0],new e.Result(i,n.slice(i.length))}},e.sequence=function(){var t;return t=1<=arguments.length?r.call(arguments,0):[],function(n){var r,i,a,o,s;for(r=-1,i=t.length,s=[],a=n;++r<i;){if(null==(o=(0,t[r])(a)))return;s.push(o.value),a=o.rest}return new e.Result(s,a)}},e.pick=function(){var t,n;return t=arguments[0],n=2<=arguments.length?r.call(arguments,1):[],function(r){var i,a;if(null!=(a=e.sequence.apply(e,n)(r)))return i=a.value,a.value=i[t],a}},e.string=function(t){var n;return n=t.length,function(r){if(r.slice(0,n)===t)return new e.Result(t,r.slice(n))}},e.lazy=function(e){var t;return t=null,function(n){return null==t&&(t=e()),t(n)}},e.baseMany=function(t,n,r,i,a){var o,s,l;for(s=a,l=r?"":[];(null==n||null==n(s))&&null!=(o=t(s));)r?l+=o.value:l.push(o.value),s=o.rest;if(!i||0!==l.length)return new e.Result(l,s)},e.many1=function(t){return function(n){return e.baseMany(t,null,!1,!0,n)}},e.concatMany1Till=function(t,n){return function(r){return e.baseMany(t,n,!0,!0,r)}},e.firstChoice=function(){var e;return e=1<=arguments.length?r.call(arguments,0):[],function(t){var n,r,i;for(n=-1,r=e.length;++n<r;)if(null!=(i=(0,e[n])(t)))return i}},d=function(t){var n;return(n={}).wildcard=e.tag("wildcard",e.string(t.wildcardChar)),n.optional=e.tag("optional",e.pick(1,e.string(t.optionalSegmentStartChar),e.lazy((function(){return n.pattern})),e.string(t.optionalSegmentEndChar))),n.name=e.regex(new RegExp("^["+t.segmentNameCharset+"]+")),n.named=e.tag("named",e.pick(1,e.string(t.segmentNameStartChar),e.lazy((function(){return n.name})))),n.escapedChar=e.pick(1,e.string(t.escapeChar),e.regex(/^./)),n.static=e.tag("static",e.concatMany1Till(e.firstChoice(e.lazy((function(){return n.escapedChar})),e.regex(/^./)),e.firstChoice(e.string(t.segmentNameStartChar),e.string(t.optionalSegmentStartChar),e.string(t.optionalSegmentEndChar),n.wildcard))),n.token=e.lazy((function(){return e.firstChoice(n.wildcard,n.optional,n.named,n.static)})),n.pattern=e.many1(e.lazy((function(){return n.token}))),n},l={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},o=function(e,t){if(Array.isArray(e))return h(e,(function(e){return o(e,t)}));switch(e.tag){case"wildcard":return"(.*?)";case"named":return"(["+t+"]+)";case"static":return u(e.value);case"optional":return"(?:"+o(e.value,t)+")?"}},a=function(e,t){return null==t&&(t=l.segmentValueCharset),"^"+o(e,t)+"$"},i=function(e){if(Array.isArray(e))return s(e,i);switch(e.tag){case"wildcard":return["_"];case"named":return[e.value];case"static":return[];case"optional":return i(e.value)}},c=function(e,t,n,r){var i,a,o;if(null==r&&(r=!1),null!=(o=e[t])){if(!((i=n[t]||0)>(Array.isArray(o)?o.length-1:0)))return a=Array.isArray(o)?o[i]:o,r&&(n[t]=i+1),a;if(r)throw new Error("too few values provided for key `"+t+"`")}else if(r)throw new Error("no values provided for key `"+t+"`")},n=function(e,t,r){var i,a;if(Array.isArray(e)){for(i=-1,a=e.length;++i<a;)if(n(e[i],t,r))return!0;return!1}switch(e.tag){case"wildcard":return null!=c(t,"_",r,!1);case"named":return null!=c(t,e.value,r,!1);case"static":return!1;case"optional":return n(e.value,t,r)}},m=function(e,t,r){if(Array.isArray(e))return h(e,(function(e){return m(e,t,r)}));switch(e.tag){case"wildcard":return c(t,"_",r,!0);case"named":return c(t,e.value,r,!0);case"static":return e.value;case"optional":return n(e.value,t,r)?m(e.value,t,r):""}},(t=function(e,n){var r,o,s;if(e instanceof t)return this.isRegex=e.isRegex,this.regex=e.regex,this.ast=e.ast,void(this.names=e.names);if(this.isRegex=e instanceof RegExp,"string"!=typeof e&&!this.isRegex)throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=e,null!=n){if(!Array.isArray(n))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(r=p(this.regex),n.length!==r)throw new Error("regex contains "+r+" groups but array of group names contains "+n.length);this.names=n}}else{if(""===e)throw new Error("argument must not be the empty string");if(e.replace(/\s+/g,"")!==e)throw new Error("argument must not contain whitespace");if(o={escapeChar:(null!=n?n.escapeChar:void 0)||l.escapeChar,segmentNameStartChar:(null!=n?n.segmentNameStartChar:void 0)||l.segmentNameStartChar,segmentNameCharset:(null!=n?n.segmentNameCharset:void 0)||l.segmentNameCharset,segmentValueCharset:(null!=n?n.segmentValueCharset:void 0)||l.segmentValueCharset,optionalSegmentStartChar:(null!=n?n.optionalSegmentStartChar:void 0)||l.optionalSegmentStartChar,optionalSegmentEndChar:(null!=n?n.optionalSegmentEndChar:void 0)||l.optionalSegmentEndChar,wildcardChar:(null!=n?n.wildcardChar:void 0)||l.wildcardChar},null==(s=d(o).pattern(e)))throw new Error("couldn't parse pattern");if(""!==s.rest)throw new Error("could only partially parse pattern");this.ast=s.value,this.regex=new RegExp(a(this.ast,o.segmentValueCharset)),this.names=i(this.ast)}}).prototype.match=function(e){var t,n;return null==(n=this.regex.exec(e))?null:(t=n.slice(1),this.names?f(this.names,t):t)},t.prototype.stringify=function(e){if(null==e&&(e={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(e!==Object(e))throw new Error("argument must be an object or undefined");return m(this.ast,e,{})},t.escapeForRegex=u,t.concatMap=s,t.stringConcatMap=h,t.regexGroupCount=p,t.keysAndValuesToObject=f,t.P=e,t.newParser=d,t.defaultOptions=l,t.astNodeToRegexString=a,t.astNodeToNames=i,t.getParam=c,t.astNodeContainsSegmentsForProvidedParams=n,t.stringify=m,t}))}));const Av=Symbol(),Pv=Symbol(),Fv=Symbol(),Mv=Symbol(),Lv=Symbol(),qv=Symbol(),jv=Symbol(),Vv=Symbol(),zv=Symbol(),$v=Symbol(),Qv=Symbol(),Uv=Symbol(),Bv=Symbol(),Wv=[{pattern:new Iv("/"),key:Av},{pattern:new Iv("/domains/:domainId"),key:Pv},{pattern:new Iv("/insights/views"),key:Fv},{pattern:new Iv("/insights/pages"),key:Mv},{pattern:new Iv("/insights/referrers"),key:Lv},{pattern:new Iv("/insights/durations"),key:qv},{pattern:new Iv("/insights/events"),key:jv},{pattern:new Iv("/insights/systems"),key:Vv},{pattern:new Iv("/insights/devices"),key:zv},{pattern:new Iv("/insights/browsers"),key:$v},{pattern:new Iv("/insights/sizes"),key:Qv},{pattern:new Iv("/insights/languages"),key:Uv},{pattern:new Iv("/settings"),key:Bv}],Kv=Wv[0],Hv=({pathname:e})=>!0===Wv.some((t=>null!=t.pattern.match(e)))?e:Kv.pattern.stringify();var Yv=()=>{const e=u.useMemo((()=>function(e){function t(){var e=Dv(s.location.hash.substr(1)),t=e.pathname,n=e.search;e=e.hash;var r=l.state||{};return[r.idx,{pathname:void 0===t?"/":t,search:void 0===n?"":n,hash:void 0===e?"":e,state:r.usr||null,key:r.key||"default"}]}function n(){if(u)h.call(u),u=null;else{var e=Tv.Pop,n=t(),r=n[0];if(n=n[1],h.length){if(null!=r){var i=f-r;i&&(u={action:e,location:n,retry:function(){o(-1*i)}},o(i))}}else a(e)}}function r(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=-1===(n=(t=s.location.href).indexOf("#"))?t:t.slice(0,n)),n+"#"+("string"==typeof e?e:Rv(e))}function i(e,t){return void 0===t&&(t=null),xv({pathname:d.pathname,hash:"",search:""},"string"==typeof e?Dv(e):e,{state:t,key:Math.random().toString(36).substr(2,8)})}function a(e){c=e,e=t(),f=e[0],d=e[1],p.call({action:c,location:d})}function o(e){l.go(e)}void 0===e&&(e={});var s=void 0===(e=e.window)?document.defaultView:e,l=s.history,u=null;s.addEventListener("popstate",n),s.addEventListener("hashchange",(function(){Rv(t()[1])!==Rv(d)&&n()}));var c=Tv.Pop,f=(e=t())[0],d=e[1],p=Nv(),h=Nv();return null==f&&(f=0,l.replaceState(xv({},l.state,{idx:f}),"")),{get action(){return c},get location(){return d},createHref:r,push:function e(t,n){var o=Tv.Push,u=i(t,n);if(!h.length||(h.call({action:o,location:u,retry:function(){e(t,n)}}),0)){var c=[{usr:u.state,key:u.key,idx:f+1},r(u)];u=c[0],c=c[1];try{l.pushState(u,"",c)}catch(e){s.location.assign(c)}a(o)}},replace:function e(t,n){var o=Tv.Replace,s=i(t,n);h.length&&(h.call({action:o,location:s,retry:function(){e(t,n)}}),1)||(s=[{usr:s.state,key:s.key,idx:f},r(s)],l.replaceState(s[0],"",s[1]),a(o))},go:o,back:function(){o(-1)},forward:function(){o(1)},listen:function(e){return p.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&s.addEventListener("beforeunload",Cv),function(){t(),h.length||s.removeEventListener("beforeunload",Cv)}}}}()),[]),[t,n]=u.useState(Hv(e.location));u.useEffect((()=>e.listen((({location:e})=>{n(Hv(e))}))),[e]);return{setRoute:u.useCallback((t=>{e.push({pathname:t})}),[e]),route:t}},Gv=1;var Jv,Xv,Zv,ey={nextValue:function(){return(Gv=(9301*Gv+49297)%233280)/233280},seed:function(e){Gv=e}},ty="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function ny(){Zv=!1}function ry(e){if(e){if(e!==Jv){if(e.length!==ty.length)throw new Error("Custom alphabet for shortid must be "+ty.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+ty.length+" unique characters. These characters were not unique: "+t.join(", "));Jv=e,ny()}}else Jv!==ty&&(Jv=ty,ny())}function iy(){return Zv||(Zv=function(){Jv||ry(ty);for(var e,t=Jv.split(""),n=[],r=ey.nextValue();t.length>0;)r=ey.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}(),Zv)}var ay={get:function(){return Jv||ty},characters:function(e){return ry(e),Jv},seed:function(e){ey.seed(e),Xv!==e&&(ny(),Xv=e)},lookup:function(e){return iy()[e]},shuffled:iy},oy="object"==typeof window&&(window.crypto||window.msCrypto),sy=oy&&oy.getRandomValues?function(e){return oy.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},ly=function(e,t,n){for(var r=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*r*n/t.length),a="";;)for(var o=e(i),s=i;s--;)if((a+=t[o[s]&r]||"").length===+n)return a};var uy,cy,fy=function(e){for(var t,n=0,r="";!t;)r+=ly(sy,ay.get(),1),t=e<Math.pow(16,n+1),n++;return r};var dy=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===cy?uy++:(uy=0,cy=n),t+=fy(7),t+=fy(e),uy>0&&(t+=fy(uy)),t+=fy(n)};var py=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+ay.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)},hy=n((function(e){var t=0;function n(){return dy(t)}e.exports=n,e.exports.generate=n,e.exports.seed=function(t){return ay.seed(t),e.exports},e.exports.worker=function(n){return t=n,e.exports},e.exports.characters=function(e){return void 0!==e&&ay.characters(e),ay.shuffled()},e.exports.isValid=py})),my=hy,vy=()=>`_${my.generate()}`;const yy=Symbol(),gy=Symbol(),by=Symbol(),wy={},Ey=(e,t)=>{switch(t.type){case yy:return{...e,[t.modalId]:{id:t.modalId,type:t.payload.type,props:t.payload.props}};case gy:const n={...e};return delete n[t.modalId],n;case by:return wy;default:return e}};var ky="TOP",_y="NEW",Sy="RECENT";var xy="LAST_24_HOURS",Ty="LAST_7_DAYS",Oy="LAST_30_DAYS",Cy="LAST_6_MONTHS";var Ny="DAILY",Ry="MONTHLY",Dy="YEARLY";var Iy="UNIQUE",Ay="TOTAL";var Py="WITH_SOURCE",Fy="NO_SOURCE",My="ONLY_SOURCE";var Ly="WITH_MODEL",qy="NO_MODEL";var jy="WITH_VERSION",Vy="NO_VERSION";var zy="BROWSER_HEIGHT",$y="BROWSER_RESOLUTION",Qy="BROWSER_WIDTH",Uy="SCREEN_HEIGHT",By="SCREEN_RESOLUTION",Wy="SCREEN_WIDTH";var Ky="WITH_VERSION",Hy="NO_VERSION";const Yy=Symbol(),Gy=Symbol(),Jy=Symbol(),Xy=Symbol(),Zy=Symbol(),eg=Symbol(),tg=Symbol(),ng=Symbol(),rg=Symbol(),ig=Symbol(),{get:ag,set:og,reset:sg}=hv("ackee_filter_3.3.1",{sorting:ky,range:Ty,interval:Ny,viewsType:Iy,referrersType:Py,devicesType:Ly,browsersType:jy,sizesType:$y,systemsType:Ky}),lg=(e,t)=>{switch(t.type){case Yy:return og({...e,sorting:t.payload});case Gy:return og({...e,range:t.payload});case Jy:return og({...e,interval:t.payload});case Xy:return og({...e,viewsType:t.payload});case Zy:return og({...e,referrersType:t.payload});case eg:return og({...e,devicesType:t.payload});case tg:return og({...e,browsersType:t.payload});case ng:return og({...e,sizesType:t.payload});case rg:return og({...e,systemsType:t.payload});case ig:return sg();default:return e}};const ug=["Token invalid","Token missing","Username or password incorrect"];var cg=e=>!0===ug.includes(e.message),fg="function"==typeof Symbol&&Symbol.for,dg=fg?Symbol.for("react.element"):60103,pg=fg?Symbol.for("react.portal"):60106,hg=fg?Symbol.for("react.fragment"):60107,mg=fg?Symbol.for("react.strict_mode"):60108,vg=fg?Symbol.for("react.profiler"):60114,yg=fg?Symbol.for("react.provider"):60109,gg=fg?Symbol.for("react.context"):60110,bg=fg?Symbol.for("react.async_mode"):60111,wg=fg?Symbol.for("react.concurrent_mode"):60111,Eg=fg?Symbol.for("react.forward_ref"):60112,kg=fg?Symbol.for("react.suspense"):60113,_g=fg?Symbol.for("react.suspense_list"):60120,Sg=fg?Symbol.for("react.memo"):60115,xg=fg?Symbol.for("react.lazy"):60116,Tg=fg?Symbol.for("react.block"):60121,Og=fg?Symbol.for("react.fundamental"):60117,Cg=fg?Symbol.for("react.responder"):60118,Ng=fg?Symbol.for("react.scope"):60119;function Rg(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case dg:switch(e=e.type){case bg:case wg:case hg:case vg:case mg:case kg:return e;default:switch(e=e&&e.$$typeof){case gg:case Eg:case xg:case Sg:case yg:return e;default:return t}}case pg:return t}}}function Dg(e){return Rg(e)===wg}var Ig={AsyncMode:bg,ConcurrentMode:wg,ContextConsumer:gg,ContextProvider:yg,Element:dg,ForwardRef:Eg,Fragment:hg,Lazy:xg,Memo:Sg,Portal:pg,Profiler:vg,StrictMode:mg,Suspense:kg,isAsyncMode:function(e){return Dg(e)||Rg(e)===bg},isConcurrentMode:Dg,isContextConsumer:function(e){return Rg(e)===gg},isContextProvider:function(e){return Rg(e)===yg},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===dg},isForwardRef:function(e){return Rg(e)===Eg},isFragment:function(e){return Rg(e)===hg},isLazy:function(e){return Rg(e)===xg},isMemo:function(e){return Rg(e)===Sg},isPortal:function(e){return Rg(e)===pg},isProfiler:function(e){return Rg(e)===vg},isStrictMode:function(e){return Rg(e)===mg},isSuspense:function(e){return Rg(e)===kg},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===hg||e===wg||e===vg||e===mg||e===kg||e===_g||"object"==typeof e&&null!==e&&(e.$$typeof===xg||e.$$typeof===Sg||e.$$typeof===yg||e.$$typeof===gg||e.$$typeof===Eg||e.$$typeof===Og||e.$$typeof===Cg||e.$$typeof===Ng||e.$$typeof===Tg)},typeOf:Rg};
  /** @license React v16.13.1
  	 * react-is.development.js
  	 *
  	 * Copyright (c) Facebook, Inc. and its affiliates.
  	 *
  	 * This source code is licensed under the MIT license found in the
  	 * LICENSE file in the root directory of this source tree.
  	 */
  n((function(e,t){})),n((function(e){e.exports=Ig}));function Ag(){}function Pg(){}Function.call.bind(Object.prototype.hasOwnProperty),Pg.resetWarningCache=Ag;var Fg=n((function(e){e.exports=function(){function e(e,t,n,r,i,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Pg,resetWarningCache:Ag};return n.PropTypes=n,n}()})),Mg=e=>[e.message,e.stack].join("\n");const Lg=e=>{e.target.select(),document.execCommand("copy")},qg=e=>{const t=u.createElement("textarea",{className:"input",id:e.id,required:e.required,disabled:e.disabled,readOnly:e.readOnly,placeholder:e.placeholder,value:e.value,rows:e.rows,onChange:e.onChange,onFocus:!0===e.copyOnFocus?Lg:void 0});return!0===e.copyOnFocus?u.createElement("div",{className:"inputMessage",title:"Copied to clipboard"},t):t};qg.propTypes={id:Fg.string,required:Fg.bool,disabled:Fg.bool,readOnly:Fg.bool,placeholder:Fg.string,value:Fg.string,rows:Fg.number,onChange:Fg.func,copyOnFocus:Fg.bool};const jg=e=>u.createElement("div",{className:"spacer",style:{"--size":e.size}});jg.propTypes={size:Fg.number.isRequired};
  /*!
  	  Copyright (c) 2018 Jed Watson.
  	  Licensed under the MIT License (MIT), see
  	  http://jedwatson.github.io/classnames
  	*/
  var Vg=n((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if("string"===a||"number"===a)e.push(i);else if(Array.isArray(i)){if(i.length){var o=n.apply(null,i);o&&e.push(o)}}else if("object"===a)if(i.toString===Object.prototype.toString)for(var s in i)t.call(i,s)&&i[s]&&e.push(s);else e.push(i.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));const zg=e=>{const t=null!=e.onClick,n=u.createElement("button",{className:"headline__button link",onClick:e.onClick},e.children);return u.createElement(e.type,{className:Vg({headline:!0,[`headline--${e.size}`]:null!=e.size,"headline--no-spacing":!1===e.spacing},e.className)},!0===t?n:e.children)};zg.propTypes={type:Fg.oneOf(["h1","h2","h3","h4","h5","h6","div"]).isRequired,size:Fg.oneOf(["medium","small"]),spacing:Fg.bool,className:Fg.string,children:Fg.node.isRequired,onClick:Fg.func};const $g=e=>u.createElement(e.type,{className:Vg({text:!0,"text--no-spacing":!1===e.spacing},e.className)},e.children);$g.propTypes={type:Fg.oneOf(["p","div"]).isRequired,spacing:Fg.bool,className:Fg.string,children:Fg.node.isRequired};const Qg=e=>u.createElement("div",{className:Vg({message:!0,[`message--${e.status}`]:null!=e.status},e.className)},e.children);Qg.propTypes={status:Fg.oneOf(["success","warning","error"]).isRequired,className:Fg.string,children:Fg.node.isRequired};const Ug=e=>{return u.createElement("div",{className:"card card--overlay"},u.createElement("div",{className:"card__inner align-center"},u.createElement(jg,{size:2.4}),u.createElement(zg,{type:"h1"},"Oops"),u.createElement($g,{type:"p"},"Something went wrong."),u.createElement(jg,{size:2.5}),u.createElement(Qg,{status:"error"},"Please report this issue on GitHub if you can't resolve it by yourself."),u.createElement(qg,{rows:6,value:(t=e.errors,t.map(Mg).join("\n\n")),readOnly:!0}),u.createElement(jg,{size:1})),u.createElement("div",{className:"card__footer"},u.createElement("a",{className:"card__button link",href:pv,target:"_blank",rel:"noopener"},"Help"),u.createElement("div",{className:"card__separator"}),u.createElement("button",{className:"card__button card__button--primary link color-white",onClick:()=>{e.reset(),window.location.hash="",window.location.reload()}},"Reload Ackee")));var t};Ug.propTypes={errors:Fg.array.isRequired,reset:Fg.func.isRequired};const Bg=e=>{e.target.select(),document.execCommand("copy")},Wg=e=>{const t=u.useRef(null);u.useEffect((()=>{!0===e.focused&&t.current.focus()}),[]);const n={text:"text",username:"text",password:"password"}[e.type],r={text:void 0,username:"username",password:"current-password"}[e.type],i=u.createElement("input",{ref:t,className:"input",autoCapitalize:"off",autoCorrect:"off",autoComplete:r,type:n,id:e.id,required:e.required,disabled:e.disabled,readOnly:e.readOnly,placeholder:e.placeholder,value:e.value,onChange:e.onChange,onFocus:!0===e.copyOnFocus?Bg:void 0});return!0===e.copyOnFocus?u.createElement("div",{className:"inputMessage",title:"Copied to clipboard"},i):i};Wg.propTypes={type:Fg.oneOf(["text","username","password"]).isRequired,id:Fg.string,required:Fg.bool,disabled:Fg.bool,readOnly:Fg.bool,focused:Fg.bool,placeholder:Fg.string.isRequired,value:Fg.string,onChange:Fg.func,copyOnFocus:Fg.bool};const Kg=()=>u.createElement("div",{className:"spinner"},u.createElement("div",{className:"spinner__circle spinner__circle--primary"}),u.createElement("div",{className:"spinner__circle spinner__circle--white"}),u.createElement("div",{className:"spinner__circle spinner__circle--dimmed"})),Hg=zm`
  	mutation createToken($input: CreateTokenInput!) {
  		createToken(input: $input) {
  			payload {
  				id
  			}
  		}
  	}
  `;var Yg=e=>{const[t,n]=u.useState(e),r=u.useCallback((e=>t=>{n((n=>({...n,[e]:t.target.value})))}),[n]);return[t,r]};const Gg=e=>{const t=(()=>{const[e,{loading:t,error:n}]=ov(Hg);return{mutate:e,loading:t,error:n}})(),n=null!=t.error,r=!0===t.loading,[i,a]=Yg({username:!0===window.env.isDemoMode?"admin":"",password:!0===window.env.isDemoMode?"123456":""});return u.createElement("form",{className:"card card--overlay",onSubmit:async n=>{n.preventDefault();const{data:r}=await t.mutate({variables:{input:i}});e.setToken(r.createToken.payload.id)}},u.createElement("div",{className:"card__inner align-center"},u.createElement(jg,{size:2.4}),u.createElement(zg,{type:"h1"},"Ackee"),u.createElement($g,{type:"p"},"Welcome back, sign in to continue."),u.createElement(jg,{size:2.5}),!0===n&&u.createElement(Qg,{status:"error"},t.error.message),u.createElement(Wg,{type:"username",required:!0,disabled:!0===r,focused:!0,placeholder:"Username",value:i.username,onChange:a("username")}),u.createElement(Wg,{type:"password",required:!0,disabled:!0===r,placeholder:"Password",value:i.password,onChange:a("password")}),u.createElement(jg,{size:1})),u.createElement("div",{className:"card__footer"},u.createElement("a",{className:"card__button link",href:pv,target:"_blank",rel:"noopener"},"Help"),u.createElement("div",{className:"card__separator"}),u.createElement("button",{className:"card__button card__button--primary link color-white",disabled:!0===r},!0===r?u.createElement(Kg):"Sign In →")))};Gg.propTypes={setToken:Fg.func.isRequired};var Jg=e=>u.useMemo((()=>{const t=Wv.find((t=>null!=t.pattern.match(e)));return{...t,params:t.pattern.match(e)}}),[e]);var Xg="undefined"!=typeof Element,Zg="function"==typeof Map,eb="function"==typeof Set,tb="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function nb(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r,i,a;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!nb(e[r],t[r]))return!1;return!0}if(Zg&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!nb(r.value[1],t.get(r.value[0])))return!1;return!0}if(eb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(tb&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(Xg&&e instanceof Element)return!1;for(r=n;0!=r--;)if(("_owner"!==i[r]&&"__v"!==i[r]&&"__o"!==i[r]||!e.$$typeof)&&!nb(e[i[r]],t[i[r]]))return!1;return!0}return e!=e&&t!=t}var rb=function(e,t){try{return nb(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};var ib=(e,t)=>{const[n,r]=u.useState();return function(e,t){void 0===t&&(t=!0);var n=u.useRef(null),r=u.useRef(!1),i=u.useRef(e);i.current=e;var a=u.useCallback((function(e){r.current&&(i.current(e),n.current=requestAnimationFrame(a))}),[]),o=u.useMemo((function(){return[function(){r.current&&(r.current=!1,n.current&&cancelAnimationFrame(n.current))},function(){r.current||(r.current=!0,n.current=requestAnimationFrame(a))},function(){return r.current}]}),[]);u.useEffect((function(){return t&&o[1](),o[0]}),[])}((()=>{if(null==e.current)return;if(null==t.current)return;const i=((e,t)=>{const n=document.scrollingElement.getBoundingClientRect(),r=e.current.getBoundingClientRect(),i=t.current.getBoundingClientRect();return{body:{width:n.width,height:n.height,relative:{x:n.left,y:n.top},absolute:{x:n.left,y:n.top}},target:{width:r.width,height:r.height,relative:{x:r.left,y:r.top},absolute:{x:r.left+-1*n.left,y:r.top+-1*n.top}},element:{width:i.width,height:i.height}}})(e,t);!1!==(!1===rb(n||{},i))&&r(i)}),!0),n},ab=e=>`${Math.round(e)}px`;const ob=e=>u.createElement("div",{className:"keyHint"},e.children);ob.propTypes={children:Fg.node.isRequired};const sb=Symbol(),lb=Symbol(),ub=Symbol(),cb=e=>u.createElement("p",{className:"context__content"},e.children);cb.propTypes={children:Fg.node.isRequired};const fb=e=>{const t=null!=e.keyHint,n=null!=e.description;return u.createElement("button",{className:Vg({context__button:!0,active:!0===e.active,link:!0}),onClick:e.onClick},u.createElement("div",{className:"context__head"},u.createElement("div",{className:"context__label"},e.label),!0===t&&u.createElement(ob,{},e.keyHint)),!0===n&&u.createElement("div",{className:"context__description"},e.description))};fb.propTypes={label:Fg.string.isRequired,description:Fg.string,active:Fg.bool.isRequired,onClick:Fg.func.isRequired,keyHint:Fg.node};const db=()=>u.createElement("div",{className:"context__separator"}),pb=e=>{const t=u.useRef(),n=ib(e.targetRef,t);((e,t)=>{const[n,r]=u.useState(!1);u.useEffect((()=>{const e=requestAnimationFrame((()=>r(!0)));return()=>cancelAnimationFrame(e)}),[]),u.useEffect((()=>{if(!1===n)return;const r=n=>{!1!=(null!=e&&null!=e.current)&&!0!=(!0===e.current.contains(n.target))&&t()};return document.addEventListener("click",r),()=>document.removeEventListener("click",r)}),[t,n])})(t,e.onAwayClick);const r=null==n?void 0:ab(e.x(n)),i=null==n?void 0:ab(e.y(n));return wu.createPortal(u.createElement("div",{ref:t,className:Vg({context:!0,"context--fixed":!0===e.fixed,"context--tooltip":!0===e.tooltip,"context--floating":!0===e.floating,visible:null!=n}),style:{"--x":r,"--y":i}},e.items.map(((t,n)=>t.type===sb?u.createElement(cb,{key:n,...t}):t.type===lb?u.createElement(fb,{key:t.label+n,...t,onClick:n=>{t.onClick(n),e.onItemClick(n)}}):t.type===ub?u.createElement(db,{key:n}):void 0))),document.body)};pb.propTypes={targetRef:Fg.shape({current:Fg.instanceOf(Element)}),fixed:Fg.bool,x:Fg.func.isRequired,y:Fg.func.isRequired,tooltip:Fg.bool,floating:Fg.bool,items:Fg.arrayOf(Fg.object).isRequired,onItemClick:Fg.func.isRequired,onAwayClick:Fg.func.isRequired};const hb=e=>u.createElement("svg",{viewBox:"0 0 512 512",className:e.className},u.createElement("path",{d:"M256,298.3L256,298.3L256,298.3l174.2-167.2c4.3-4.2,11.4-4.1,15.8,0.2l30.6,29.9c4.4,4.3,4.5,11.3,0.2,15.5L264.1,380.9c-2.2,2.2-5.2,3.2-8.1,3c-3,0.1-5.9-0.9-8.1-3L35.2,176.7c-4.3-4.2-4.2-11.2,0.2-15.5L66,131.3c4.4-4.3,11.5-4.4,15.8-0.2L256,298.3z"}));hb.propTypes={className:Fg.string};const mb={sortings:{[ky]:"Top",[_y]:"New",[Sy]:"Recent"},ranges:{[xy]:"24 hours",[Ty]:"7 days",[Oy]:"30 days",[Cy]:"6 months"},intervals:{[Ny]:"Daily",[Ry]:"Monthly",[Dy]:"Yearly"},views:{[Iy]:"Unique",[Ay]:"Total"},referrers:{[Py]:"Combined",[Fy]:"Referrers",[My]:"Sources"},sizes:{[$y]:"Browser sizes",[Qy]:"Browser widths",[zy]:"Browser heights",[By]:"Screen sizes",[Wy]:"Screen widths",[Uy]:"Screen heights"}},vb=e=>Math.max(10,Math.min(e.body.width-e.element.width-10,e.target.relative.x+e.target.width/2-e.element.width/2)),yb=e=>e.target.relative.y-e.element.height-10,gb=(e,t,n=!0)=>({label:e,items:t,visible:n}),bb=(e,t,n,r,i)=>({type:lb,label:e,description:t,active:r===i,onClick:()=>n(i)}),wb=()=>({type:ub}),Eb=(...e)=>e.find((e=>!1===e.active)),kb=e=>{const t=u.useRef(),[n,r]=u.useState(!1),i=()=>r(!1);return!1===e.visible?null:u.createElement(u.Fragment,{},u.createElement("button",{ref:t,className:"filter__button color-white link",onClick:()=>r(!n)},u.createElement("span",{},e.label),u.createElement(hb,{className:"filter__arrow"})),!0===n&&u.createElement(pb,{targetRef:t,fixed:!0,x:vb,y:yb,floating:!0,items:e.items,onItemClick:i,onAwayClick:i}))},_b=e=>{const t=[bb("Top","Top entries first",e.setSortingFilter,e.filters.sorting,ky),bb("New","New entries only",e.setSortingFilter,e.filters.sorting,_y),bb("Recent","Entries sorted by time",e.setSortingFilter,e.filters.sorting,Sy)],n=[bb("24 hours","Show last 24 hours",e.setRangeFilter,e.filters.range,xy),bb("7 days","Show last 7 days",e.setRangeFilter,e.filters.range,Ty),bb("30 days","Show last 30 days",e.setRangeFilter,e.filters.range,Oy),bb("6 months","Show last 6 months",e.setRangeFilter,e.filters.range,Cy)],r=[bb("Daily","Grouped by day",e.setIntervalFilter,e.filters.interval,Ny),bb("Monthly","Grouped by month",e.setIntervalFilter,e.filters.interval,Ry),bb("Yearly","Grouped by year",e.setIntervalFilter,e.filters.interval,Dy)],i=gb(mb.sortings[e.filters.sorting],t),a=gb(mb.ranges[e.filters.range],n,e.filters.sorting===ky),o=gb(mb.intervals[e.filters.interval],r),s={[Fv]:[gb(mb.views[e.filters.viewsType],[bb("Unique","Unique site views",e.setViewsTypeFilter,e.filters.viewsType,Iy),bb("Total","Total page views",e.setViewsTypeFilter,e.filters.viewsType,Ay)]),o],[Mv]:[i,a],[Lv]:[i,gb(mb.referrers[e.filters.referrersType],[bb("Combined","Prefer source parameter",e.setReferrersTypeFilter,e.filters.referrersType,Py),bb("↳ referrers only",void 0,e.setReferrersTypeFilter,e.filters.referrersType,Fy),bb("↳ sources only",void 0,e.setReferrersTypeFilter,e.filters.referrersType,My)]),a],[qv]:[o],[jv]:[o,i],[Vv]:[gb(mb.sortings[e.filters.sorting],[...t,wb(),Eb(bb("Show version","Include system version",e.setSystemsTypeFilter,e.filters.systemsType,Ky),bb("Hide version","Don't include version",e.setSystemsTypeFilter,e.filters.systemsType,Hy))]),a],[zv]:[gb(mb.sortings[e.filters.sorting],[...t,wb(),Eb(bb("Show model","Include device model",e.setDevicesTypeFilter,e.filters.devicesType,Ly),bb("Hide model","Don't include model",e.setDevicesTypeFilter,e.filters.devicesType,qy))]),a],[$v]:[gb(mb.sortings[e.filters.sorting],[...t,wb(),Eb(bb("Show version","Include browser version",e.setBrowsersTypeFilter,e.filters.browsersType,jy),bb("Hide version","Don't include version",e.setBrowsersTypeFilter,e.filters.browsersType,Vy))]),a],[Qv]:[i,gb(mb.sizes[e.filters.sizesType],[bb("Browser sizes","Width and height combined",e.setSizesTypeFilter,e.filters.sizesType,$y),bb("↳ widths",void 0,e.setSizesTypeFilter,e.filters.sizesType,Qy),bb("↳ heights",void 0,e.setSizesTypeFilter,e.filters.sizesType,zy),wb(),bb("Screen sizes","Width and height combined",e.setSizesTypeFilter,e.filters.sizesType,By),bb("↳ widths",void 0,e.setSizesTypeFilter,e.filters.sizesType,Wy),bb("↳ heights",void 0,e.setSizesTypeFilter,e.filters.sizesType,Uy)]),a],[Uv]:[i,a]}[Jg(e.route).key];if(null==s)return null;const l=s.map((e=>u.createElement(kb,e)));return wu.createPortal(u.createElement("div",{className:"filter"},u.createElement("div",{className:"filter__bar"},...l)),document.body)};_b.propTypes={filters:Fg.object.isRequired,setSortingFilter:Fg.func.isRequired,setRangeFilter:Fg.func.isRequired,setIntervalFilter:Fg.func.isRequired,setViewsTypeFilter:Fg.func.isRequired,setReferrersTypeFilter:Fg.func.isRequired,setDevicesTypeFilter:Fg.func.isRequired,setBrowsersTypeFilter:Fg.func.isRequired,setSizesTypeFilter:Fg.func.isRequired,setSystemsTypeFilter:Fg.func.isRequired,route:Fg.string.isRequired};
  /*!
  	 * hotkeys-js v3.8.7
  	 * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
  	 * 
  	 * Copyright (c) 2021 kenny wong <wowohoo@qq.com>
  	 * http://jaywcjlove.github.io/hotkeys
  	 * 
  	 * Licensed under the MIT license.
  	 */
  var Sb="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function xb(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function Tb(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Ob(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var Cb={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Sb?173:189,"=":Sb?61:187,";":Sb?59:186,"'":222,"[":219,"]":221,"\\":220},Nb={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Rb={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Db={16:!1,18:!1,17:!1,91:!1},Ib={},Ab=1;Ab<20;Ab++)Cb["f".concat(Ab)]=111+Ab;var Pb=[],Fb="all",Mb=[],Lb=function(e){return Cb[e.toLowerCase()]||Nb[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function qb(e){Fb=e||"all"}function jb(){return Fb||"all"}var Vb=function(e){var t=e.key,n=e.scope,r=e.method,i=e.splitKey,a=void 0===i?"+":i;Ob(t).forEach((function(e){var t=e.split(a),i=t.length,o=t[i-1],s="*"===o?"*":Lb(o);if(Ib[s]){n||(n=jb());var l=i>1?Tb(Nb,t):[];Ib[s]=Ib[s].map((function(e){return(!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,i=!0,a=0;a<n.length;a++)-1===r.indexOf(n[a])&&(i=!1);return i}(e.mods,l)?{}:e}))}}))};function zb(e,t,n){var r;if(t.scope===n||"all"===t.scope){for(var i in r=t.mods.length>0,Db)Object.prototype.hasOwnProperty.call(Db,i)&&(!Db[i]&&t.mods.indexOf(+i)>-1||Db[i]&&-1===t.mods.indexOf(+i))&&(r=!1);(0!==t.mods.length||Db[16]||Db[18]||Db[17]||Db[91])&&!r&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function $b(e){var t=Ib["*"],n=e.keyCode||e.which||e.charCode;if(Qb.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===Pb.indexOf(n)&&229!==n&&Pb.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=Rb[t];e[t]&&-1===Pb.indexOf(n)?Pb.push(n):!e[t]&&Pb.indexOf(n)>-1?Pb.splice(Pb.indexOf(n),1):"metaKey"===t&&e[t]&&3===Pb.length&&(e.ctrlKey||e.shiftKey||e.altKey||(Pb=Pb.slice(Pb.indexOf(n))))})),n in Db){for(var r in Db[n]=!0,Nb)Nb[r]===n&&(Qb[r]=!0);if(!t)return}for(var i in Db)Object.prototype.hasOwnProperty.call(Db,i)&&(Db[i]=e[Rb[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===Pb.indexOf(17)&&Pb.push(17),-1===Pb.indexOf(18)&&Pb.push(18),Db[17]=!0,Db[18]=!0);var a=jb();if(t)for(var o=0;o<t.length;o++)t[o].scope===a&&("keydown"===e.type&&t[o].keydown||"keyup"===e.type&&t[o].keyup)&&zb(e,t[o],a);if(n in Ib)for(var s=0;s<Ib[n].length;s++)if(("keydown"===e.type&&Ib[n][s].keydown||"keyup"===e.type&&Ib[n][s].keyup)&&Ib[n][s].key){for(var l=Ib[n][s],u=l.splitKey,c=l.key.split(u),f=[],d=0;d<c.length;d++)f.push(Lb(c[d]));f.sort().join("")===Pb.sort().join("")&&zb(e,l,a)}}}function Qb(e,t,n){Pb=[];var r=Ob(e),i=[],a="all",o=document,s=0,l=!1,u=!0,c="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(a=t.scope),t.element&&(o=t.element),t.keyup&&(l=t.keyup),void 0!==t.keydown&&(u=t.keydown),"string"==typeof t.splitKey&&(c=t.splitKey)),"string"==typeof t&&(a=t);s<r.length;s++)i=[],(e=r[s].split(c)).length>1&&(i=Tb(Nb,e)),(e="*"===(e=e[e.length-1])?"*":Lb(e))in Ib||(Ib[e]=[]),Ib[e].push({keyup:l,keydown:u,scope:a,mods:i,shortcut:r[s],method:n,key:r[s],splitKey:c});void 0!==o&&!function(e){return Mb.indexOf(e)>-1}(o)&&window&&(Mb.push(o),xb(o,"keydown",(function(e){$b(e)})),xb(window,"focus",(function(){Pb=[]})),xb(o,"keyup",(function(e){$b(e),function(e){var t=e.keyCode||e.which||e.charCode,n=Pb.indexOf(t);if(n>=0&&Pb.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&Pb.splice(0,Pb.length),93!==t&&224!==t||(t=91),t in Db)for(var r in Db[t]=!1,Nb)Nb[r]===t&&(Qb[r]=!1)}(e)})))}var Ub={setScope:qb,getScope:jb,deleteScope:function(e,t){var n,r;for(var i in e||(e=jb()),Ib)if(Object.prototype.hasOwnProperty.call(Ib,i))for(n=Ib[i],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;jb()===e&&qb(t||"all")},getPressedKeyCodes:function(){return Pb.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=Lb(e)),-1!==Pb.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},unbind:function(e){if(e){if(Array.isArray(e))e.forEach((function(e){e.key&&Vb(e)}));else if("object"==typeof e)e.key&&Vb(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n[0],a=n[1];"function"==typeof i&&(a=i,i=""),Vb({key:e,scope:i,method:a,splitKey:"+"})}}else Object.keys(Ib).forEach((function(e){return delete Ib[e]}))}};for(var Bb in Ub)Object.prototype.hasOwnProperty.call(Ub,Bb)&&(Qb[Bb]=Ub[Bb]);if("undefined"!=typeof window){var Wb=window.hotkeys;Qb.noConflict=function(e){return e&&window.hotkeys===Qb&&(window.hotkeys=Wb),Qb},window.hotkeys=Qb}Qb.filter=function(){return!0};var Kb=function(e,t){var n=e.target,r=n&&n.tagName;return Boolean(r&&t&&t.includes(r))};function Hb(e,t,n,r){n instanceof Array&&(r=n,n=void 0);var i=n||{},a=i.enableOnTags,o=i.filter,s=i.keyup,l=i.keydown,c=i.filterPreventDefault,f=void 0===c||c,d=i.enabled,p=void 0===d||d,h=i.enableOnContentEditable,m=void 0!==h&&h,v=u.useRef(null),y=u.useCallback((function(e,n){var r;return o&&!o(e)?!f:!!(Kb(e,["INPUT","TEXTAREA","SELECT"])&&!Kb(e,a)||null!=(r=e.target)&&r.isContentEditable&&!m)||(null===v.current||document.activeElement===v.current)&&(t(e,n),!0)}),r?[v,a,o].concat(r):[v,a,o]);return u.useEffect((function(){if(p)return s&&!0!==l&&(n.keydown=!1),Qb(e,n||{},y),function(){return Qb.unbind(e,y)};Qb.unbind(e,y)}),[y,e,p]),v}var Yb=(e,t,n,r)=>{const{loading:i,data:a}=rv(e,{fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first",...r}),o=u.useMemo((()=>t(a)),[a]),s=u.useMemo((()=>n(o)),[o]),l=u.useMemo((()=>((e,t)=>{const n=!0===t,r=null==e||0===e.length;return{isLoading:n,isEmpty:r,isInitializing:!0===r&&!0===t,isUpdating:!1===r&&!0===t}})(o,i)),[o,i]);return{value:s,status:l}},Gb=zm`
  	fragment domainFields on Domain {
  		id
  		title
  	}
  `;const Jb=zm`
  	query fetchDomains {
  		domains {
  			...domainFields
  		}
  	}
  
  	${Gb}
  `;var Xb=()=>Yb(Jb,(e=>e?.domains),((e=[])=>e),{fetchPolicy:"cache-first",nextFetchPolicy:"cache-first"});const Zb=Symbol(),ew=Symbol(),tw=e=>Math.max(10,Math.min(e.body.width-e.element.width-10,e.target.absolute.x+e.target.width-e.element.width)),nw=e=>e.target.absolute.y+e.target.height+10,rw=e=>e.find((e=>!0===e.active)),iw=e=>u.createElement("div",{className:Vg({header__spinner:!0,"header__spinner--white":"white"===e.color,"header__spinner--primary":"primary"===e.color,"header__spinner--visible":!0===e.loading})}),aw=e=>u.createElement("div",{className:"header__logo"},u.createElement(iw,{color:"white",loading:e.loading}),u.createElement(iw,{color:"primary",loading:e.loading})),ow=e=>u.createElement("button",{className:Vg({header__button:!0,active:!0===e.active,link:!0,"color-white":!0===e.active}),onClick:e.onClick},e.children),sw=e=>{const t=u.useRef(),[n,r]=u.useState(!1),i=()=>r(!1),a=null!=rw(e.items);return u.createElement(u.Fragment,{},u.createElement("button",{ref:t,className:Vg({header__button:!0,hovered:!0===n,active:!0===a,link:!0,"color-white":!0===a}),onClick:()=>r(!n)},e.children,u.createElement(hb,{className:"header__arrow"})),!0===n&&u.createElement(pb,{targetRef:t,x:tw,y:nw,items:e.items,onItemClick:i,onAwayClick:i}))},lw=e=>u.createElement("header",{className:"header"},u.createElement(aw,{loading:e.loading}),u.createElement("nav",{className:"header__nav"},u.createElement("div",{className:"header__buttons"},e.items.map(((e,t)=>e.type===Zb?u.createElement(ow,{key:t,...e},e.label):e.type===ew?u.createElement(sw,{key:t,...e},e.label(rw(e.items))):void 0)))));lw.propTypes={loading:Fg.bool.isRequired,items:Fg.arrayOf(Fg.object).isRequired};const uw=(e,t,n,r)=>({type:Zb,onClick:()=>r(t),active:n===t,label:e}),cw=(e,t)=>({type:ew,items:t,label:e}),fw=(e,t,n,r,i)=>({type:lb,onClick:()=>r(t),active:n===t,label:e,keyHint:i}),dw=()=>({type:ub}),pw="modals_views",hw="modals_durations",mw="modals_domain_add",vw="modals_domain_edit",yw="modals_event_add",gw="modals_event_edit",bw="modals_permanent_token_add",ww="modals_permanent_token_edit";var Ew={current:Fg.bool.isRequired,closeModal:Fg.func.isRequired};const kw=e=>(Hb("esc",e.closeModal,{filter:()=>!0===e.current,enableOnTags:["INPUT","SELECT","TEXTAREA"]}),u.createElement("div",{className:Vg({modal:!0,visible:!0===e.visible})},u.createElement("div",{className:"modal__inner"},e.children)));kw.propTypes={...Ew,visible:Fg.bool.isRequired,children:Fg.node.isRequired};const _w=()=>u.createElement("div",{className:"loader"},u.createElement("div",{className:"loader__circle"})),Sw=()=>u.createElement("div",{className:"updater"},u.createElement("div",{className:"updater__circle"})),xw=e=>u.createElement("div",{className:"status"},null!=e.icon&&u.createElement(e.icon,{}),e.children);xw.propTypes={icon:Fg.oneOf([_w,Sw]),children:Fg.node.isRequired};const Tw=e=>u.createElement("svg",{viewBox:"0 0 24 24",className:e.className},u.createElement("path",{d:"M14.601 21.5c0 1.38-1.116 2.5-2.499 2.5-1.378 0-2.499-1.12-2.499-2.5s1.121-2.5 2.499-2.5c1.383 0 2.499 1.119 2.499 2.5zm-2.42-21.5c-4.029 0-7.06 2.693-7.06 8h3.955c0-2.304.906-4.189 3.024-4.189 1.247 0 2.57.828 2.684 2.411.123 1.666-.767 2.511-1.892 3.582-2.924 2.78-2.816 4.049-2.816 7.196h3.943c0-1.452-.157-2.508 1.838-4.659 1.331-1.436 2.986-3.222 3.021-5.943.047-3.963-2.751-6.398-6.697-6.398z"}));Tw.propTypes={className:Fg.string};const Ow=e=>Math.max(10,Math.min(e.body.width-e.element.width-10,e.target.relative.x+e.target.width/2-e.element.width/2)),Cw=e=>e.target.relative.y-e.element.height-10,Nw=e=>{const t=u.useRef(),[n,r]=u.useState(!1),i=()=>r(!1),a=[{type:sb,children:e.children}];return u.createElement("button",{ref:t,type:"button",className:"link tooltip",onClick:()=>r(!n)},u.createElement(Tw,{className:"tooltip__icon"}),!0===n&&u.createElement(pb,{targetRef:t,fixed:!0,x:Ow,y:Cw,tooltip:!0,items:a,onItemClick:i,onAwayClick:i},e.children))};Nw.propTypes={children:Fg.node.isRequired};const Rw=e=>!0===e.isInitializing?u.createElement(xw,{icon:_w},"Loading"):!0===e.isUpdating?u.createElement(xw,{icon:Sw},"Updating"):!0===e.isEmpty?u.createElement(xw,{},"No data",u.createElement(Nw,{},"There is either no data available or collecting detailed data is disabled in ackee-tracker.")):u.createElement(xw,{},e.children);Rw.propTypes={isEmpty:Fg.bool.isRequired,isInitializing:Fg.bool.isRequired,isUpdating:Fg.bool.isRequired,children:Fg.node.isRequired};var Dw=e=>"t.co"===e.hostname?new URL(`https://twitter.com/search?q=${encodeURIComponent(e.origin+e.pathname)}`):e,Iw=e=>(t,n)=>t+n[e];const Aw=e=>{const t=null!=e.url,n=!0===t?"a":"div",r=!0===t?{href:Dw(e.url).href,target:"_blank",rel:"noopener"}:{};return u.createElement(n,{className:"flexList__row",...r},u.createElement("div",{className:"flexList__column flexList__column--text-adjustment flexList__column--fixed-width flexList__column--spacing-left flexList__column--spacing-right",style:{"--width":`${e.counterWidth}px`}},u.createElement("div",{className:"flexList__bar flexList__bar--counter",style:{"--width":`${e.barWidth}%`}}),u.createElement("span",{className:"color-primary"},`${e.count}`)),u.createElement("div",{className:"flexList__column flexList__column--text-adjustment"},u.createElement("span",{className:"flexList__truncated"},e.text)))},Pw=e=>{const t=e.items.reduce(Iw("count"),0),n=({count:e})=>e/t*100,r=e.items.reduce(((t,n)=>{const r=e.formatter(n.count),i=9*String(r).length;return i>t?i:t}),0);return u.createElement("div",{className:"flexList"},u.createElement("div",{className:"flexList__inner"},e.items.map(((t,i)=>u.createElement(Aw,{key:t.text+i,barWidth:n(t),counterWidth:r,count:e.formatter(t.count),url:t.url,text:t.text})))))};Pw.propTypes={items:Fg.arrayOf(Fg.shape({url:Fg.object,text:Fg.string.isRequired,count:Fg.number.isRequired})).isRequired,formatter:Fg.func.isRequired};var Fw=zm`
  	fragment viewsField on DomainStatistics {
  		views(interval: $interval, type: $type, limit: $limit) {
  			id
  			count
  		}
  	}
  `,Mw=e=>new Array(e).fill(),Lw=e=>(t,n)=>{const r=String(t[e]),i=String(n[e]);return r.localeCompare(i,"en",{numeric:!0})};const qw=zm`
  	query fetchCombinedViews($interval: Interval!, $type: ViewType!, $limit: Int) {
  		domains {
  			id
  			title
  			statistics {
  				id
  				...viewsField
  			}
  		}
  	}
  
  	${Fw}
  `;var jw=e=>Yb(qw,(e=>e?.domains),(t=>((e=[],t)=>{const n=Mw(t).map((()=>[]));return e.reduce(((e,t)=>(t.statistics.views.forEach(((n,r)=>{const i=e[r],a={text:t.title,count:n.count};e[r]=[...i,a].sort(Lw("count")).reverse()})),e)),n)})(t,e.limit)),{variables:e}),Vw=e=>{switch(e){case 0:return"Today";case 1:return"Yesterday";default:return`${e} days ago`}};function zw(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function $w(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Qw(e){$w(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Uw(e,t){$w(2,arguments);var n=Qw(e),r=zw(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),a=new Date(n.getTime());a.setMonth(n.getMonth()+r+1,0);var o=a.getDate();return i>=o?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)}function Bw(e,t){$w(2,arguments);var n=zw(t);return Uw(e,12*n)}var Ww=e=>{switch(e){case 0:return"This month";case 1:return"Last month";default:return function(e,t){$w(2,arguments);var n=zw(t);return Uw(e,-n)}(new Date,e).toLocaleString("en-US",{month:"long",year:"numeric"})}},Kw=e=>{switch(e){case 0:return"This year";case 1:return"Last year";default:return function(e,t){$w(2,arguments);var n=zw(t);return Bw(e,-n)}(new Date,e).getFullYear()}},Hw=e=>{switch(e){case Ny:return Vw;case Ry:return Ww;case Dy:return Kw}},Yw=e=>Number.parseFloat(e).toFixed(2).replace(".00","")+"x";const Gw=e=>{const{value:t,status:n}=jw({interval:e.interval,type:e.type,limit:e.limit}),r={[Iy]:"Site Views",[Ay]:"Page Views"}[e.type];return u.createElement("div",{className:"card"},u.createElement("div",{className:"card__inner"},u.createElement(zg,{type:"h2",size:"medium"},r),u.createElement($g,{type:"div",spacing:!1},u.createElement(Rw,n,Hw(e.interval)(e.index))),u.createElement(Pw,{items:t[e.index],formatter:Yw})),u.createElement("div",{className:"card__footer"},u.createElement("button",{type:"button",className:"card__button card__button--primary link",onClick:e.closeModal},"Close")))};Gw.propTypes={...Ew,index:Fg.number.isRequired,interval:Fg.string.isRequired,type:Fg.string.isRequired,limit:Fg.number.isRequired};var Jw=zm`
  	fragment durationsField on DomainStatistics {
  		durations(interval: $interval, limit: $limit) {
  			id
  			count
  		}
  	}
  `;const Xw=zm`
  	query fetchCombinedDurations($interval: Interval!, $limit: Int) {
  		domains {
  			id
  			title
  			statistics {
  				id
  				...durationsField
  			}
  		}
  	}
  
  	${Jw}
  `;var Zw=e=>Yb(Xw,(e=>e?.domains),(t=>((e=[],t)=>{const n=Mw(t).map((()=>[]));return e.reduce(((e,t)=>(t.statistics.durations.forEach(((n,r)=>{const i=e[r],a={text:t.title,count:n.count};e[r]=[...i,a].sort(Lw("count")).reverse()})),e)),n)})(t,e.limit)),{variables:e});const eE=e=>(e=>e.replace(/^0/,""))((e=>e.replace(/(:00:00|:00)$/,""))(e)),tE=function(){return`${this.value}${this.unit}`};var nE=e=>{const t=new Date(e).toISOString().substr(11,8),n=null==t.match(/^00:00:/),r=null==t.match(/^00:/);return!1===n?{value:eE(t.substr(6)),unit:"s",toString:tE}:!1===r?{value:eE(t.substr(3)),unit:"m",toString:tE}:{value:eE(t),unit:"h",toString:tE}};const rE=e=>{const{value:t,status:n}=Zw({interval:e.interval,limit:e.limit});return u.createElement("div",{className:"card"},u.createElement("div",{className:"card__inner"},u.createElement(zg,{type:"h2",size:"medium"},"Durations"),u.createElement($g,{type:"div",spacing:!1},u.createElement(Rw,n,Hw(e.interval)(e.index))),u.createElement(Pw,{items:t[e.index],formatter:nE})),u.createElement("div",{className:"card__footer"},u.createElement("button",{type:"button",className:"card__button card__button--primary link",onClick:e.closeModal},"Close")))};rE.propTypes={...Ew,index:Fg.number.isRequired,interval:Fg.string.isRequired,limit:Fg.number.isRequired};const iE=e=>u.createElement("label",{className:Vg({label:!0,"label--no-spacing":!1===e.spacing}),htmlFor:e.htmlFor},e.children);iE.propTypes={spacing:Fg.bool,htmlFor:Fg.string.isRequired,children:Fg.node.isRequired};var aE=(e,t)=>(n=[],{readField:r})=>[...n,e].map((e=>({ref:e,[t]:r(t,e)}))).sort(Lw(t)).map((e=>e.ref));const oE=zm`
  	mutation createDomain($input: CreateDomainInput!) {
  		createDomain(input: $input) {
  			payload {
  				...domainFields
  			}
  		}
  	}
  
  	${Gb}
  `,sE=(e,t)=>{const n=t.data.createDomain.payload,r=Gb;e.modify({fields:{domains:(...t)=>{const i=e.writeFragment({data:n,fragment:r});return aE(i,"title")(...t)}}})};const lE=e=>{const t=(()=>{const[e,{loading:t,error:n}]=ov(oE);return{mutate:t=>e({update:sE,...t}),loading:t,error:n}})(),n=!0===t.loading,[r,i]=Yg({title:""}),a=vy();return u.createElement("form",{className:"card",onSubmit:async n=>{n.preventDefault(),await t.mutate({variables:{input:r}}),e.closeModal()}},u.createElement("div",{className:"card__inner"},u.createElement(jg,{size:.5}),u.createElement(iE,{htmlFor:a},"Domain title"),u.createElement(Wg,{type:"text",id:a,required:!0,disabled:!0===n,focused:!0,placeholder:"Domain title",value:r.title,onChange:i("title")})),u.createElement("div",{className:"card__footer"},u.createElement("button",{type:"button",className:"card__button link",onClick:e.closeModal},"Close"),u.createElement("div",{className:"card__separator"}),u.createElement("button",{className:"card__button card__button--primary link color-white",disabled:!0===n},!0===n?u.createElement(Kg):"Add")))};lE.propTypes={...Ew};const uE=zm`
  	mutation updateDomain($id: ID!, $input: UpdateDomainInput!) {
  		updateDomain(id: $id, input: $input) {
  			payload {
  				...domainFields
  			}
  		}
  	}
  
  	${Gb}
  `;var cE=e=>(t=[],{readField:n})=>t.filter((t=>e!==n("id",t)));const fE=zm`
  	mutation deleteDomain($id: ID!) {
  		deleteDomain(id: $id) {
  			success
  		}
  	}
  `,dE=e=>(t,n)=>{!1!==n.data.deleteDomain.success&&t.modify({fields:{domains:cE(e)}})};const pE=e=>{const t=(e=>{const[t,{loading:n,error:r}]=ov(uE,{variables:{id:e}});return{mutate:n=>t({optimisticResponse:{updateDomain:{payload:{id:e,title:n.variables.input.title,__typename:"Domain"},__typename:"UpdateDomainPayload"}},...n}),loading:n,error:r}})(e.id),n=(e=>{const[t,{loading:n,error:r}]=ov(fE,{variables:{id:e}});return{mutate:n=>t({update:dE(e),optimisticResponse:{deleteDomain:{success:!0,__typename:"DeleteDomainPayload"}},...n}),loading:n,error:r}})(e.id),[r,i]=Yg({title:e.title}),a=vy(),o=vy(),s=vy(),l=window.env.customTracker.url||"/tracker.js",c=new URL(l,location.href).href,f=location.origin;return u.createElement("form",{className:"card",onSubmit:n=>{n.preventDefault(),t.mutate({variables:{input:r}}),e.closeModal()}},u.createElement("div",{className:"card__inner"},u.createElement(jg,{size:.5}),u.createElement(iE,{htmlFor:a},"Domain title"),u.createElement(Wg,{type:"text",id:a,required:!0,focused:!0,placeholder:"Domain title",value:r.title,onChange:i("title")}),u.createElement(iE,{htmlFor:o},"Domain id"),u.createElement(Wg,{type:"text",id:o,readOnly:!0,placeholder:"Domain id",value:e.id,copyOnFocus:!0}),u.createElement(iE,{htmlFor:s},"Embed code"),u.createElement(qg,{id:s,readOnly:!0,rows:4,value:`<script async src="${c}" data-ackee-server="${f}" data-ackee-domain-id="${e.id}"><\/script>`,copyOnFocus:!0})),u.createElement("div",{className:"card__footer"},u.createElement("button",{type:"button",className:"card__button link",onClick:e.closeModal},"Close"),u.createElement("div",{className:"card__separator"}),u.createElement("button",{type:"button",className:"card__button link color-destructive",onClick:t=>{t.preventDefault();!1!==confirm(`Are you sure you want to delete the domain "${e.title}"? This action cannot be undone.`)&&(n.mutate(),e.closeModal())}},"Delete"),u.createElement("div",{className:"card__separator"}),u.createElement("button",{className:"card__button card__button--primary link color-white"},"Rename")))};pE.propTypes={...Ew,id:Fg.string.isRequired,title:Fg.string.isRequired};var hE="TOTAL_CHART",mE="AVERAGE_CHART",vE="TOTAL_LIST",yE="AVERAGE_LIST";const gE=e=>u.createElement("select",{className:"select",id:e.id,required:e.required,disabled:e.disabled,value:e.value,onChange:e.onChange},e.items.map(((e,t)=>u.createElement("option",{key:e.value+t,value:e.value},e.label))));gE.propTypes={id:Fg.string,required:Fg.bool,disabled:Fg.bool,value:Fg.string,onChange:Fg.func.isRequired,items:Fg.arrayOf(Fg.shape({value:Fg.string.isRequired,label:Fg.string.isRequired})).isRequired};var bE=zm`
  	fragment eventFields on Event {
  		id
  		title
  		type
  	}
  `;const wE=zm`
  	mutation createEvent($input: CreateEventInput!) {
  		createEvent(input: $input) {
  			payload {
  				...eventFields
  			}
  		}
  	}
  
  	${bE}
  `,EE=(e,t)=>{const n=t.data.createEvent.payload,r=bE;e.modify({fields:{events:(...t)=>{const i=e.writeFragment({data:n,fragment:r});return aE(i,"title")(...t)}}})};const kE=e=>{const t=(()=>{const[e,{loading:t,error:n}]=ov(wE);return{mutate:t=>e({update:EE,...t}),loading:t,error:n}})(),n=!0===t.loading,[r,i]=Yg({title:"",type:hE}),a=vy(),o=vy();return u.createElement("form",{className:"card",onSubmit:async n=>{n.preventDefault(),await t.mutate({variables:{input:r}}),e.closeModal()}},u.createElement("div",{className:"card__inner"},u.createElement(jg,{size:.5}),u.createElement(iE,{htmlFor:a},"Event title"),u.createElement(Wg,{type:"text",id:a,required:!0,disabled:!0===n,focused:!0,placeholder:"Event title",value:r.title,onChange:i("title")}),u.createElement("div",{className:"card__group"},u.createElement(iE,{spacing:!1,htmlFor:o},"Event type"),u.createElement(Nw,{},"Specifies how the aggregated data will be displayed in the UI. Can be changed at any time.")),u.createElement(gE,{id:o,required:!0,disabled:!0===n,value:r.type,items:[{value:hE,label:"Chart with total sums"},{value:mE,label:"Chart with average values"},{value:vE,label:"List with total sums"},{value:yE,label:"List with average values"}],onChange:i("type")})),u.createElement("div",{className:"card__footer"},u.createElement("button",{type:"button",className:"card__button link",onClick:e.closeModal},"Close"),u.createElement("div",{className:"card__separator"}),u.createElement("button",{className:"card__button card__button--primary link color-white",disabled:!0===n},!0===n?u.createElement(Kg):"Add")))};kE.propTypes={...Ew};const _E=zm`
  	mutation updateEvent($id: ID!, $input: UpdateEventInput!) {
  		updateEvent(id: $id, input: $input) {
  			payload {
  				...eventFields
  			}
  		}
  	}
  
  	${bE}
  `;const SE=zm`
  	mutation deleteEvent($id: ID!) {
  		deleteEvent(id: $id) {
  			success
  		}
  	}
  `,xE=e=>(t,n)=>{!1!==n.data.deleteEvent.success&&t.modify({fields:{events:cE(e)}})};const TE=e=>{const t=(e=>{const[t,{loading:n,error:r}]=ov(_E,{variables:{id:e}});return{mutate:n=>t({optimisticResponse:{updateEvent:{payload:{id:e,title:n.variables.input.title,type:n.variables.input.type,__typename:"Event"},__typename:"UpdateEventPayload"}},...n}),loading:n,error:r}})(e.id),n=(e=>{const[t,{loading:n,error:r}]=ov(SE,{variables:{id:e}});return{mutate:n=>t({update:xE(e),optimisticResponse:{deleteEvent:{success:!0,__typename:"DeleteEventPayload"}},...n}),loading:n,error:r}})(e.id),[r,i]=Yg({title:e.title,type:e.type}),a=vy(),o=vy(),s=vy(),l=vy();return u.createElement("form",{className:"card",onSubmit:n=>{n.preventDefault(),t.mutate({variables:{input:r}}),e.closeModal()}},u.createElement("div",{className:"card__inner"},u.createElement(jg,{size:.5}),u.createElement(iE,{htmlFor:a},"Event title"),u.createElement(Wg,{type:"text",id:a,required:!0,focused:!0,placeholder:"Event title",value:r.title,onChange:i("title")}),u.createElement("div",{className:"card__group"},u.createElement(iE,{spacing:!1,htmlFor:o},"Event type"),u.createElement(Nw,{},"Specifies how the aggregated data will be displayed in the UI. Can be changed at any time.")),u.createElement(gE,{id:o,required:!0,value:r.type,items:[{value:hE,label:"Chart with total sums"},{value:mE,label:"Chart with average values"},{value:vE,label:"List with total sums"},{value:yE,label:"List with average values"}],onChange:i("type")}),u.createElement(iE,{htmlFor:s},"Event id"),u.createElement(Wg,{type:"text",id:s,readOnly:!0,placeholder:"Event id",value:e.id,copyOnFocus:!0}),u.createElement(iE,{htmlFor:l},"Usage example"),u.createElement(qg,{id:l,readOnly:!0,rows:3,value:`ackeeTracker.action('${e.id}', { key: 'Click', value: 1 })`,copyOnFocus:!0})),u.createElement("div",{className:"card__footer"},u.createElement("button",{type:"button",className:"card__button link",onClick:e.closeModal},"Close"),u.createElement("div",{className:"card__separator"}),u.createElement("button",{type:"button",className:"card__button link color-destructive",onClick:t=>{t.preventDefault();!1!==confirm(`Are you sure you want to delete the event "${e.title}"? This action cannot be undone.`)&&(n.mutate(),e.closeModal())}},"Delete"),u.createElement("div",{className:"card__separator"}),u.createElement("button",{className:"card__button card__button--primary link color-white"},"Save")))};TE.propTypes={...Ew,id:Fg.string.isRequired,title:Fg.string.isRequired};var OE=zm`
  	fragment permanentTokenFields on PermanentToken {
  		id
  		title
  	}
  `;const CE=zm`
  	mutation createPermanentToken($input: CreatePermanentTokenInput!) {
  		createPermanentToken(input: $input) {
  			payload {
  				...permanentTokenFields
  			}
  		}
  	}
  
  	${OE}
  `,NE=(e,t)=>{const n=t.data.createPermanentToken.payload,r=OE;e.modify({fields:{permanentTokens:(...t)=>{const i=e.writeFragment({data:n,fragment:r});return aE(i,"title")(...t)}}})};const RE=e=>{const t=(()=>{const[e,{loading:t,error:n}]=ov(CE);return{mutate:t=>e({update:NE,...t}),loading:t,error:n}})(),n=!0===t.loading,[r,i]=Yg({title:""}),a=vy();return u.createElement("form",{className:"card",onSubmit:async n=>{n.preventDefault(),await t.mutate({variables:{input:r}}),e.closeModal()}},u.createElement("div",{className:"card__inner"},u.createElement(jg,{size:.5}),u.createElement(iE,{htmlFor:a},"Permanent token title"),u.createElement(Wg,{type:"text",id:a,required:!0,disabled:!0===n,focused:!0,placeholder:"Permanent token title",value:r.title,onChange:i("title")})),u.createElement("div",{className:"card__footer"},u.createElement("button",{type:"button",className:"card__button link",onClick:e.closeModal},"Close"),u.createElement("div",{className:"card__separator "}),u.createElement("button",{className:"card__button card__button--primary link color-white",disabled:!0===n},!0===n?u.createElement(Kg):"Add")))};RE.propTypes={...Ew};const DE=zm`
  	mutation updatePermanentToken($id: ID!, $input: UpdatePermanentTokenInput!) {
  		updatePermanentToken(id: $id, input: $input) {
  			payload {
  				...permanentTokenFields
  			}
  		}
  	}
  
  	${OE}
  `;const IE=zm`
  	mutation deletePermanentToken($id: ID!) {
  		deletePermanentToken(id: $id) {
  			success
  		}
  	}
  `,AE=e=>(t,n)=>{!1!==n.data.deletePermanentToken.success&&t.modify({fields:{permanentTokens:cE(e)}})};const PE=e=>{const t=(e=>{const[t,{loading:n,error:r}]=ov(DE,{variables:{id:e}});return{mutate:n=>t({optimisticResponse:{updatePermanentToken:{payload:{id:e,title:n.variables.input.title,__typename:"PermanentToken"},__typename:"UpdatePermanentTokenPayload"}},...n}),loading:n,error:r}})(e.id),n=(e=>{const[t,{loading:n,error:r}]=ov(IE,{variables:{id:e}});return{mutate:n=>t({update:AE(e),optimisticResponse:{deletePermanentToken:{success:!0,__typename:"DeletePermanentTokenPayload"}},...n}),loading:n,error:r}})(e.id),[r,i]=Yg({title:e.title}),a=vy(),o=vy();return u.createElement("form",{className:"card",onSubmit:n=>{n.preventDefault(),t.mutate({variables:{input:r}}),e.closeModal()}},u.createElement("div",{className:"card__inner"},u.createElement(jg,{size:.5}),u.createElement(iE,{htmlFor:a},"Permanent token title"),u.createElement(Wg,{type:"text",id:a,required:!0,focused:!0,placeholder:"Permanent token title",value:r.title,onChange:i("title")}),u.createElement(iE,{htmlFor:o},"Permanent token id"),u.createElement(Wg,{type:"text",id:o,readOnly:!0,placeholder:"Permanent token id",value:e.id,copyOnFocus:!0})),u.createElement("div",{className:"card__footer"},u.createElement("button",{type:"button",className:"card__button link",onClick:e.closeModal},"Close"),u.createElement("div",{className:"card__separator "}),u.createElement("button",{type:"button",className:"card__button link color-destructive",onClick:t=>{t.preventDefault();!1!==confirm(`Are you sure you want to delete the permanent token "${e.title}"? This action cannot be undone.`)&&(n.mutate(),e.closeModal())}},"Delete"),u.createElement("div",{className:"card__separator "}),u.createElement("button",{className:"card__button card__button--primary link color-white"},"Rename")))};PE.propTypes={...Ew,id:Fg.string.isRequired,title:Fg.string.isRequired};const FE={[pw]:Gw,[hw]:rE,[mw]:lE,[vw]:pE,[yw]:kE,[gw]:TE,[bw]:RE,[ww]:PE},ME=e=>Object.entries(e.modals).map((([t,n],r,i)=>{const a={current:i.length-1===r,closeModal:e.removeModal.bind(null,t)};return u.createElement(kw,{key:t,visible:!0,...a},u.createElement(FE[n.type],{...a,...n.props}))}));ME.propTypes={modals:Fg.object.isRequired,removeModal:Fg.func.isRequired};const LE={activeVisitors:0,averageViews:{count:0,change:null},averageDuration:{count:0,change:null},viewsToday:0,viewsMonth:0,viewsYear:0};var qE=(e={})=>({...LE,...e});const jE=zm`
  	query fetchMergedActiveVisitors {
  		facts {
  			id
  			activeVisitors
  		}
  	}
  `;var VE=zm`
  	fragment factsFields on Facts {
  		id
  		activeVisitors
  		averageViews {
  			count
  			change
  		}
  		averageDuration {
  			count
  			change
  		}
  		viewsToday
  		viewsMonth
  		viewsYear
  	}
  `;const zE=zm`
  	query fetchMergedFacts {
  		facts {
  			...factsFields
  		}
  	}
  
  	${VE}
  `;var $E=()=>Yb(zE,(e=>e?.facts),qE),QE=(e=[],t)=>Mw(t).map(((t,n)=>{const r=e[n];return null==r?0:r.count}));const UE=zm`
  	query fetchMergedViews($interval: Interval!, $type: ViewType!, $limit: Int) {
  		statistics {
  			id
  			...viewsField
  		}
  	}
  
  	${Fw}
  `;var BE=(e,t)=>Yb(UE,(e=>e?.statistics.views),(t=>QE(t,e.limit)),{variables:e,...t}),WE=(e=[],t)=>Mw(t).map(((t,n)=>{const r=e[n];return null==r?0:r.count}));const KE=zm`
  	query fetchMergedDurations($interval: Interval!, $limit: Int) {
  		statistics {
  			id
  			...durationsField
  		}
  	}
  
  	${Jw}
  `;var HE=e=>Yb(KE,(e=>e?.statistics.durations),(t=>WE(t,e.limit)),{variables:e}),YE=zm`
  	fragment pagesField on DomainStatistics {
  		pages(sorting: $sorting, range: $range) {
  			id
  			value
  			count
  			created
  		}
  	}
  `,GE=(e=[])=>e.map((e=>({url:new URL(e.value),text:new URL(e.value).href,count:e.count,date:null==e.created?null:new Date(e.created)})));const JE=zm`
  	query fetchMergedPages($sorting: Sorting!, $range: Range) {
  		statistics {
  			id
  			...pagesField
  		}
  	}
  
  	${YE}
  `;var XE=e=>Yb(JE,(e=>e?.statistics.pages),GE,{variables:e}),ZE=zm`
  	fragment referrersField on DomainStatistics {
  		referrers(sorting: $sorting, type: $type, range: $range) {
  			id
  			value
  			count
  			created
  		}
  	}
  `,ek=function(e){if("string"!=typeof e)return!1;var t=e.match(tk);if(!t)return!1;var n=t[1];if(!n)return!1;if(nk.test(n)||rk.test(n))return!0;return!1},tk=/^(?:\w+:)?\/\/(\S+)$/,nk=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,rk=/^[^\s\.]+\.\S{2,}$/;var ik=(e=[])=>e.map((e=>({url:!0===ek(e.value)?new URL(e.value):null,text:!0===ek(e.value)?new URL(e.value).href:e.value,count:e.count,date:null==e.created?null:new Date(e.created)})));const ak=zm`
  	query fetchMergedReferrers($sorting: Sorting!, $type: ReferrerType!, $range: Range) {
  		statistics {
  			id
  			...referrersField
  		}
  	}
  
  	${ZE}
  `;var ok=e=>Yb(ak,(e=>e?.statistics.referrers),ik,{variables:e}),sk=zm`
  	fragment systemsField on DomainStatistics {
  		systems(sorting: $sorting, type: $type, range: $range) {
  			id
  			value
  			count
  			created
  		}
  	}
  `,lk=(e=[])=>e.map((e=>({text:e.value,count:e.count,date:null==e.created?null:new Date(e.created)})));const uk=zm`
  	query fetchMergedSystems($sorting: Sorting!, $type: SystemType!, $range: Range) {
  		statistics {
  			id
  			...systemsField
  		}
  	}
  
  	${sk}
  `;var ck=e=>Yb(uk,(e=>e?.statistics.systems),lk,{variables:e}),fk=zm`
  	fragment devicesField on DomainStatistics {
  		devices(sorting: $sorting, type: $type, range: $range) {
  			id
  			value
  			count
  			created
  		}
  	}
  `,dk=(e=[])=>e.map((e=>({text:e.value,count:e.count,date:null==e.created?null:new Date(e.created)})));const pk=zm`
  	query fetchMergedDevices($sorting: Sorting!, $type: DeviceType!, $range: Range) {
  		statistics {
  			id
  			...devicesField
  		}
  	}
  
  	${fk}
  `;var hk=e=>Yb(pk,(e=>e?.statistics.devices),dk,{variables:e}),mk=zm`
  	fragment browsersField on DomainStatistics {
  		browsers(sorting: $sorting, type: $type, range: $range) {
  			id
  			value
  			count
  			created
  		}
  	}
  `,vk=(e=[])=>e.map((e=>({text:e.value,count:e.count,date:null==e.created?null:new Date(e.created)})));const yk=zm`
  	query fetchMergedBrowsers($sorting: Sorting!, $type: BrowserType!, $range: Range) {
  		statistics {
  			id
  			...browsersField
  		}
  	}
  
  	${mk}
  `;var gk=e=>Yb(yk,(e=>e?.statistics.browsers),vk,{variables:e}),bk=zm`
  	fragment sizesField on DomainStatistics {
  		sizes(sorting: $sorting, type: $type, range: $range) {
  			id
  			value
  			count
  			created
  		}
  	}
  `,wk=(e=[])=>e.map((e=>({text:e.value,count:e.count,date:null==e.created?null:new Date(e.created)})));const Ek=zm`
  	query fetchMergedSizes($sorting: Sorting!, $type: SizeType!, $range: Range) {
  		statistics {
  			id
  			...sizesField
  		}
  	}
  
  	${bk}
  `;var kk=e=>Yb(Ek,(e=>e?.statistics.sizes),wk,{variables:e}),_k=zm`
  	fragment languagesField on DomainStatistics {
  		languages(sorting: $sorting, range: $range) {
  			id
  			value
  			count
  			created
  		}
  	}
  `,Sk=(e=[])=>e.map((e=>({text:e.value,count:e.count,date:null==e.created?null:new Date(e.created)})));const xk=zm`
  	query fetchMergedLanguages($sorting: Sorting!, $range: Range) {
  		statistics {
  			id
  			...languagesField
  		}
  	}
  
  	${_k}
  `;var Tk=e=>Yb(xk,(e=>e?.statistics.languages),Sk,{variables:e});const Ok="KMGTPEZY".split("");var Ck=function(e,t){e=Math.abs(e);for(var n=0;e>=1e3&&++n<Ok.length;)e/=1e3;return t&&(e=t(e)),0===n?e:e+Ok[n-1]},Nk=e=>{const t=Math.round(e),n=Ck(t,(e=>Number.parseFloat(e).toFixed(1)));return n.replace(".0","")},Rk=(e,t)=>{switch(t){case 0:return e[0];case 1:return e[1];default:return e[2]}};const Dk=e=>u.createElement("div",{className:Vg("badge",`badge--${e.type}`)},u.createElement("span",{className:"badge__value"},e.value));Dk.propTypes={type:Fg.oneOf(["positive","negative","neutral"]).isRequired,value:Fg.string.isRequired};const Ik=e=>u.createElement("svg",{viewBox:"0 0 512 512",className:e.className},u.createElement("path",{d:"m464 256c0-114.87-93.13-208-208-208s-208 93.13-208 208 93.13 208 208 208 208-93.13 208-208zm-212.65 91.36a16 16 0 0 1 -.09-22.63l52.32-52.73h-133.58a16 16 0 0 1 0-32h133.58l-52.32-52.73a16 16 0 1 1 22.74-22.54l79.39 80a16 16 0 0 1 0 22.54l-79.39 80a16 16 0 0 1 -22.65.09z"}));Ik.propTypes={className:Fg.string};const Ak=e=>e>5?"positive":e<-5?"negative":"neutral",Pk=(e,t)=>e>0?`A ${t} increase when comparing the last 7 days with the previous 7 days`:e<0?`A ${t} decrease when comparing the last 7 days with the previous 7 days`:"No change when comparing the last 7 days with the previous 7 days",Fk=e=>{const t=e.value,n=`${Math.abs(e.value)}%`;return u.createElement("div",{className:Vg("badge","badge--with-icon",`badge--${Ak(t)}`),title:Pk(t,n)},u.createElement(Ik,{className:"badge__icon"}),u.createElement("span",{className:"badge__value"},n))};Fk.propTypes={value:Fg.number.isRequired};const Mk=e=>u.createElement("div",{className:"valueUnit"},u.createElement(zg,{type:"div",spacing:!1},e.value),u.createElement($g,{type:"div",spacing:!1},e.unit));Mk.propTypes={value:Fg.oneOfType([Fg.number,Fg.string]).isRequired,unit:Fg.string.isRequired};const Lk=e=>u.createElement("div",{className:"facts__card"},u.createElement(zg,{type:"h2",size:"small",className:"facts__top"},e.headline),u.createElement("div",{className:"facts__left",title:e.title},u.createElement(Mk,{value:e.value,unit:e.unit})),null!=e.addition&&u.createElement("div",{className:"facts__right"},e.addition)),qk=e=>{const{value:t}=e.hook(...e.hookArgs),{activeVisitors:n,averageViews:r,averageDuration:i,viewsToday:a,viewsMonth:o,viewsYear:s}=t;return u.createElement("div",{className:"facts"},u.createElement(Lk,{headline:"Active visitors",value:n,unit:Rk(["visitors","visitor","visitors"],n),addition:u.createElement(Dk,{type:"positive",value:"Live"})}),u.createElement(Lk,{headline:"Average views",value:Nk(r.count),unit:"per day",title:`An average of ${r.count} views per day during the last 14 days`,addition:null!=r.change&&u.createElement(Fk,{value:r.change})}),u.createElement(Lk,{headline:"Average duration",value:nE(i.count).value,unit:nE(i.count).unit,title:`An average visit duration of ${nE(i.count).value}${nE(i.count).unit} per day during the last 14 days`,addition:null!=i.change&&u.createElement(Fk,{value:i.change})}),u.createElement(Lk,{headline:"Views today",value:Nk(a),unit:Rk(["views","view","views"],a)}),u.createElement(Lk,{headline:"Views this month",value:Nk(o),unit:Rk(["views","view","views"],o)}),u.createElement(Lk,{headline:"Views this year",value:Nk(s),unit:Rk(["views","view","views"],s)}))};qk.propTypes={hook:Fg.func.isRequired,hookArgs:Fg.array.isRequired};const jk=e=>{const{value:t,status:n}=e.hook(...e.hookArgs),[r,i]=u.useState(" ");return u.createElement("div",{className:Vg({card:!0,"card--wide":!0===e.wide})},u.createElement("div",{className:"card__inner"},u.createElement(zg,{type:"h2",size:"medium",onClick:e.onMore},e.headline),u.createElement($g,{type:"div",spacing:!1},u.createElement(Rw,n,r)),u.createElement(e.renderer,{...e.rendererProps,items:t,setStatusLabel:i})))};jk.propTypes={wide:Fg.bool,headline:Fg.string.isRequired,onMore:Fg.func,hook:Fg.func.isRequired,hookArgs:Fg.array.isRequired,renderer:Fg.elementType.isRequired,rendererProps:Fg.object};const Vk=e=>{return t=Math.max.apply(Math,e),10*Math.ceil(t/10);var t},zk=(e,t)=>0===e&&0===t?0:e/t*100,$k=e=>u.createElement("div",{className:Vg({barChart__row:!0,"barChart__row--top":"top"===e.position,"barChart__row--middle":"middle"===e.position,"barChart__row--bottom":"bottom"===e.position,"color-light":!0})},e.children),Qk=e=>u.createElement("div",{className:Vg({barChart__column:!0,"barChart__column--disabled":null==e.onClick,active:e.active}),onMouseEnter:e.onEnter,onMouseLeave:e.onLeave,onClick:e.onClick},u.createElement("div",{className:"barChart__bar color-black",style:{"--size":e.size},"data-label":e.label})),Uk=e=>{return u.createElement("div",{className:"barChart"},u.createElement("div",{className:"barChart__axis"},u.createElement($k,{position:"top"},e.formatter(Vk(e.items))),u.createElement($k,{position:"middle"},e.formatter((t=e.items,Vk(t)/2))),u.createElement($k,{position:"bottom"},e.formatter(0))),u.createElement("div",{className:"barChart__columns"},e.items.map(((t,n)=>u.createElement(Qk,{key:n,active:e.active===n,size:`${zk(t,Vk(e.items))}%`,onEnter:()=>e.onItemEnter(n),onLeave:()=>e.onItemLeave(n),onClick:null==e.onItemClick?void 0:()=>e.onItemClick(n),label:e.formatter(t)})))));var t};Uk.propTypes={items:Fg.arrayOf(Fg.number).isRequired,formatter:Fg.func.isRequired,onItemEnter:Fg.func.isRequired,onItemLeave:Fg.func.isRequired,onItemClick:Fg.func};const Bk=e=>{const[t,n]=u.useState(0),r=u.useCallback((e=>n(e)),[n]),i=u.useCallback((()=>n(0)),[n]),a=((e,t)=>Hw(t)(e))(t,e.interval);return u.useEffect((()=>e.setStatusLabel(a)),[a]),u.createElement(Uk,{items:e.items,formatter:e.formatter,active:t,onItemEnter:r,onItemLeave:i,onItemClick:e.onItemClick})};Bk.propTypes={items:Fg.array.isRequired,interval:Fg.string.isRequired,formatter:Fg.func.isRequired,setStatusLabel:Fg.func.isRequired,onItemClick:Fg.func};var Wk=e=>u.createElement(Bk,{...e,formatter:Nk});const Kk=e=>nE(e).toString();var Hk=e=>u.createElement(Bk,{...e,formatter:Kk});function Yk(e,t,n,r,i,a){var o=Math.round(Math.abs(e)/t);return a?o<=1?i:"in "+o+" "+n+"s":o<=1?r:o+" "+n+"s ago"}var Gk=[{max:276e4,value:6e4,name:"minute",past:"a minute ago",future:"in a minute"},{max:72e6,value:36e5,name:"hour",past:"an hour ago",future:"in an hour"},{max:5184e5,value:864e5,name:"day",past:"yesterday",future:"tomorrow"},{max:24192e5,value:6048e5,name:"week",past:"last week",future:"in a week"},{max:28512e6,value:2592e6,name:"month",past:"last month",future:"in a month"}],Jk=e=>{const t=function(e,t){var n=Date.now()-e.getTime();if(Math.abs(n)<6e4)return"just now";for(var r=0;r<Gk.length;r++)if(Math.abs(n)<Gk[r].max||t&&Gk[r].name===t)return Yk(n,Gk[r].value,Gk[r].name,Gk[r].past,Gk[r].future,n<0);return Yk(n,31536e6,"year","last year","in a year",n<0)}(e);return t.charAt(0).toUpperCase()+t.slice(1)},Xk=e=>({[xy]:"Last 24 hours",[Ty]:"Last 7 days",[Oy]:"Last 30 days",[Cy]:"Last 6 months"}[e]);const Zk=e=>{const t=null!=e.url,n=!0===t?"a":"div",r=!0===t?{href:Dw(e.url).href,target:"_blank",rel:"noopener"}:{};return u.createElement(n,{className:"flexList__row flexList__row--has-hover",onMouseEnter:e.onEnter,onMouseLeave:e.onLeave,...r},u.createElement("div",{className:"flexList__column flexList__column--text-adjustment"},u.createElement("span",{className:"flexList__truncated",title:e.text},e.text)))},e_=e=>u.createElement("div",{className:"flexList"},u.createElement("div",{className:"flexList__inner"},e.items.map(((t,n)=>u.createElement(Zk,{key:t.text+n,onEnter:()=>e.onItemEnter(n),onLeave:()=>e.onItemLeave(n),...t})))));e_.propTypes={items:Fg.arrayOf(Fg.shape({url:Fg.object,text:Fg.string.isRequired})).isRequired,onItemEnter:Fg.func.isRequired,onItemLeave:Fg.func.isRequired};const t_=e=>{const[t,n]=u.useState(),r=u.useCallback((e=>n(e)),[n]),i=u.useCallback((()=>n()),[n]),a=(o=e.items[t],s=e.range,l=e.sorting===Sy,o&&o.date?Jk(o.date):l?"Recent":Xk(s));var o,s,l;return u.useEffect((()=>e.setStatusLabel(a)),[a]),e.sorting===ky?u.createElement(Pw,{items:e.items,formatter:Yw}):u.createElement(e_,{items:e.items,onItemEnter:r,onItemLeave:i})};t_.propTypes={items:Fg.array.isRequired,sorting:Fg.string.isRequired,range:Fg.string.isRequired,setStatusLabel:Fg.func.isRequired};const n_=e=>{const t=null==e.url,[n,r]=u.useState(t);return u.createElement("img",{className:Vg({favicon:!0,"favicon--missing":!0===n}),src:!0===n?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=":e.url,onError:()=>r(!0)})};n_.propTypes={url:Fg.string};const r_=e=>{const t=null!=e.barWidth;return u.createElement("div",{className:"flexList__column flexList__column--spacing-right"},!0===t&&u.createElement("div",{className:"flexList__bar flexList__bar--favicon",style:{"--width":`${e.barWidth}%`}}),u.createElement(n_,{url:e.faviconUrl}))},i_=e=>{const t=e.url.hostname,n=e.url.pathname;return u.createElement("a",{className:"flexList__row",href:Dw(e.url).href,target:"_blank",rel:"noopener",onMouseEnter:e.onEnter,onMouseLeave:e.onLeave},u.createElement(r_,{barWidth:e.barWidth,faviconUrl:e.faviconUrl}),u.createElement("div",{className:"flexList__column flexList__column--text-adjustment"},u.createElement("span",{},t),u.createElement("span",{className:"flexList__obscured",title:n},n)))},a_=e=>u.createElement("a",{className:"flexList__row flexList__row--has-hover",onMouseEnter:e.onEnter,onMouseLeave:e.onLeave},u.createElement(r_,{barWidth:e.barWidth}),u.createElement("div",{className:"flexList__column flexList__column--text-adjustment"},u.createElement("span",{className:"flexList__truncated",title:e.text},e.text))),o_=e=>{const t=e.items.reduce(Iw("count"),0),n=!1===Number.isNaN(t),r=({count:e})=>e/t*100;return u.createElement("div",{className:"flexList"},u.createElement("div",{className:"flexList__inner"},e.items.map(((t,i)=>{const a={key:t.text+i,barWidth:!0===n?r(t):void 0,onEnter:()=>e.onItemEnter(i),onLeave:()=>e.onItemLeave(i)};return null==t.url?u.createElement(a_,{...a,text:t.text}):u.createElement(i_,{...a,faviconUrl:new URL("/favicon.ico",t.url).href,url:t.url})}))))};o_.propTypes={items:Fg.arrayOf(Fg.shape({url:Fg.object,text:Fg.string.isRequired,count:Fg.number})).isRequired,onItemEnter:Fg.func.isRequired,onItemLeave:Fg.func.isRequired};const s_=e=>{const[t,n]=u.useState(),r=u.useCallback((e=>n(e)),[n]),i=u.useCallback((()=>n()),[n]),a=(o=e.items[t],s=e.range,l=e.sorting===Sy,c=e.sorting===_y,o&&o.date?Jk(o.date):o&&o.count?`${o.count} ${1===o.count?"visit":"visits"}`:l?"Recent":c?"New":Xk(s));var o,s,l,c;return u.useEffect((()=>e.setStatusLabel(a)),[a]),u.createElement(o_,{items:e.items,onItemEnter:r,onItemLeave:i})};s_.propTypes={items:Fg.array.isRequired,sorting:Fg.string.isRequired,range:Fg.string.isRequired,setStatusLabel:Fg.func.isRequired};const l_=e=>(Yb(jE,(e=>e?.facts),qE,{pollInterval:5e3}),u.createElement(u.Fragment,{},u.createElement(qk,{hook:$E,hookArgs:[]}),u.createElement("div",{className:"content__spacer"}),u.createElement(jk,{wide:!0,headline:"Views",onMore:()=>e.setRoute("/insights/views"),hook:BE,hookArgs:[{interval:Ny,type:Iy,limit:14}],renderer:Wk,rendererProps:{interval:Ny,onItemClick:t=>e.addModal(pw,{index:t,interval:Ny,type:Iy,limit:14})}}),u.createElement(jk,{wide:!0,headline:"Durations",onMore:()=>e.setRoute("/insights/durations"),hook:HE,hookArgs:[{interval:Ny,limit:14}],renderer:Hk,rendererProps:{interval:Ny,onItemClick:t=>e.addModal(hw,{index:t,interval:Ny,limit:14})}}),u.createElement(jk,{headline:"Pages",onMore:()=>e.setRoute("/insights/pages"),hook:XE,hookArgs:[{sorting:ky,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Referrers",onMore:()=>e.setRoute("/insights/referrers"),hook:ok,hookArgs:[{sorting:ky,type:Py,range:xy}],renderer:s_,rendererProps:{sorting:ky,range:xy}}),u.createElement("div",{className:"content__spacer"}),u.createElement(jk,{headline:"Systems",onMore:()=>e.setRoute("/insights/systems"),hook:ck,hookArgs:[{sorting:ky,type:Ky,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Devices",onMore:()=>e.setRoute("/insights/devices"),hook:hk,hookArgs:[{sorting:ky,type:Ly,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Browsers",onMore:()=>e.setRoute("/insights/browsers"),hook:gk,hookArgs:[{sorting:ky,type:jy,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Sizes",onMore:()=>e.setRoute("/insights/sizes"),hook:kk,hookArgs:[{sorting:ky,type:$y,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Languages",onMore:()=>e.setRoute("/insights/languages"),hook:Tk,hookArgs:[{sorting:ky,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}})));l_.propTypes={setRoute:Fg.func.isRequired};const u_=zm`
  	query fetchActiveVisitors($id: ID!) {
  		domain(id: $id) {
  			id
  			facts {
  				id
  				activeVisitors
  			}
  		}
  	}
  `;const c_=zm`
  	query fetchFacts($id: ID!) {
  		domain(id: $id) {
  			id
  			facts {
  				...factsFields
  			}
  		}
  	}
  
  	${VE}
  `;var f_=e=>Yb(c_,(e=>e?.domain.facts),qE,{variables:{id:e}});const d_=zm`
  	query fetchViews($id: ID!, $interval: Interval!, $type: ViewType!, $limit: Int) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...viewsField
  			}
  		}
  	}
  
  	${Fw}
  `;var p_=(e,t)=>Yb(d_,(e=>e?.domain.statistics.views),(e=>QE(e,t.limit)),{variables:{...t,id:e}});const h_=zm`
  	query fetchDurations($id: ID!, $interval: Interval!, $limit: Int) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...durationsField
  			}
  		}
  	}
  
  	${Jw}
  `;var m_=(e,t)=>Yb(h_,(e=>e?.domain.statistics.durations),(e=>WE(e,t.limit)),{variables:{...t,id:e}});const v_=zm`
  	query fetchPages($id: ID!, $sorting: Sorting!, $range: Range) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...pagesField
  			}
  		}
  	}
  
  	${YE}
  `;var y_=(e,t)=>Yb(v_,(e=>e?.domain.statistics.pages),GE,{variables:{...t,id:e}});const g_=zm`
  	query fetchReferrers($id: ID!, $sorting: Sorting!, $type: ReferrerType!, $range: Range) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...referrersField
  			}
  		}
  	}
  
  	${ZE}
  `;var b_=(e,t)=>Yb(g_,(e=>e?.domain.statistics.referrers),ik,{variables:{...t,id:e}});const w_=zm`
  	query fetchSystems($id: ID!, $sorting: Sorting!, $type: SystemType!, $range: Range) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...systemsField
  			}
  		}
  	}
  
  	${sk}
  `;var E_=(e,t)=>Yb(w_,(e=>e?.domain.statistics.systems),lk,{variables:{...t,id:e}});const k_=zm`
  	query fetchDevices($id: ID!, $sorting: Sorting!, $type: DeviceType!, $range: Range) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...devicesField
  			}
  		}
  	}
  
  	${fk}
  `;var __=(e,t)=>Yb(k_,(e=>e?.domain.statistics.devices),dk,{variables:{...t,id:e}});const S_=zm`
  	query fetchBrowsers($id: ID!, $sorting: Sorting!, $type: BrowserType!, $range: Range) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...browsersField
  			}
  		}
  	}
  
  	${mk}
  `;var x_=(e,t)=>Yb(S_,(e=>e?.domain.statistics.browsers),vk,{variables:{...t,id:e}});const T_=zm`
  	query fetchSizes($id: ID!, $sorting: Sorting!, $type: SizeType!, $range: Range) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...sizesField
  			}
  		}
  	}
  
  	${bk}
  `;var O_=(e,t)=>Yb(T_,(e=>e?.domain.statistics.sizes),wk,{variables:{...t,id:e}});const C_=zm`
  	query fetchLanguages($id: ID!, $sorting: Sorting!, $range: Range) {
  		domain(id: $id) {
  			id
  			statistics {
  				id
  				...languagesField
  			}
  		}
  	}
  
  	${_k}
  `;var N_=(e,t)=>Yb(C_,(e=>e?.domain.statistics.languages),Sk,{variables:{...t,id:e}});const R_=e=>{const t=Jg(e.route).params.domainId;return(e=>{Yb(u_,(e=>e?.domain.facts),qE,{variables:{id:e},pollInterval:5e3})})(t),u.createElement(u.Fragment,{},u.createElement(qk,{hook:f_,hookArgs:[t]}),u.createElement("div",{className:"content__spacer"}),u.createElement(jk,{wide:!0,headline:"Views",onMore:()=>e.setRoute("/insights/views"),hook:p_,hookArgs:[t,{interval:Ny,type:Iy,limit:14}],renderer:Wk,rendererProps:{interval:Ny}}),u.createElement(jk,{wide:!0,headline:"Durations",onMore:()=>e.setRoute("/insights/durations"),hook:m_,hookArgs:[t,{interval:Ny,limit:14}],renderer:Hk,rendererProps:{interval:Ny}}),u.createElement(jk,{headline:"Pages",onMore:()=>e.setRoute("/insights/pages"),hook:y_,hookArgs:[t,{sorting:ky,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Referrers",onMore:()=>e.setRoute("/insights/referrers"),hook:b_,hookArgs:[t,{sorting:ky,type:Py,range:xy}],renderer:s_,rendererProps:{sorting:ky,range:xy}}),u.createElement("div",{className:"content__spacer"}),u.createElement(jk,{headline:"Systems",onMore:()=>e.setRoute("/insights/systems"),hook:E_,hookArgs:[t,{sorting:ky,type:Ky,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Devices",onMore:()=>e.setRoute("/insights/devices"),hook:__,hookArgs:[t,{sorting:ky,type:Ly,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Browsers",onMore:()=>e.setRoute("/insights/browsers"),hook:x_,hookArgs:[t,{sorting:ky,type:jy,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Sizes",onMore:()=>e.setRoute("/insights/sizes"),hook:O_,hookArgs:[t,{sorting:ky,type:$y,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}),u.createElement(jk,{headline:"Languages",onMore:()=>e.setRoute("/insights/languages"),hook:N_,hookArgs:[t,{sorting:ky,range:xy}],renderer:t_,rendererProps:{sorting:ky,range:xy}}))};R_.propTypes={route:Fg.string.isRequired,setRoute:Fg.func.isRequired};const D_=e=>{const t=Xb();return u.createElement(u.Fragment,{},u.createElement(jk,{wide:!0,headline:{[Iy]:"Site Views",[Ay]:"Page Views"}[e.filters.viewsType],hook:BE,hookArgs:[{interval:e.filters.interval,type:e.filters.viewsType,limit:14}],renderer:Wk,rendererProps:{interval:e.filters.interval,onItemClick:t=>e.addModal(pw,{index:t,interval:e.filters.interval,type:e.filters.viewsType,limit:14})}}),t.value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:p_,hookArgs:[t.id,{interval:e.filters.interval,type:e.filters.viewsType,limit:7}],renderer:Wk,rendererProps:{interval:e.filters.interval}}))))};D_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const I_=e=>Xb().value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:y_,hookArgs:[t.id,{sorting:e.filters.sorting,range:e.filters.range}],renderer:t_,rendererProps:{sorting:e.filters.sorting,range:e.filters.range}})));I_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const A_=e=>Xb().value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:b_,hookArgs:[t.id,{sorting:e.filters.sorting,type:e.filters.referrersType,range:e.filters.range}],renderer:s_,rendererProps:{sorting:e.filters.sorting,range:e.filters.range}})));A_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const P_=e=>{const t=Xb();return u.createElement(u.Fragment,{},u.createElement(jk,{wide:!0,headline:"Durations",hook:HE,hookArgs:[{interval:e.filters.interval,limit:14}],renderer:Hk,rendererProps:{interval:e.filters.interval,onItemClick:t=>e.addModal(hw,{index:t,interval:e.filters.interval,limit:14})}}),t.value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:m_,hookArgs:[t.id,{interval:e.filters.interval,limit:7}],renderer:Hk,rendererProps:{interval:e.filters.interval}}))))};P_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const F_=zm`
  	query fetchEvents {
  		events {
  			...eventFields
  		}
  	}
  
  	${bE}
  `;var M_=()=>Yb(F_,(e=>e?.events),((e=[])=>e),{fetchPolicy:"cache-first",nextFetchPolicy:"cache-first"}),L_=zm`
  	fragment chartField on EventStatistics {
  		chart(interval: $interval, type: $type, limit: $limit) {
  			id
  			count
  		}
  	}
  `;const q_=zm`
  	query fetchEventChartEntries($id: ID!, $interval: Interval!, $type: EventChartType!, $limit: Int) {
  		event(id: $id) {
  			id
  			statistics {
  				id
  				...chartField
  			}
  		}
  	}
  
  	${L_}
  `;var j_=(e,t)=>Yb(q_,(e=>e?.event.statistics.chart),(e=>((e=[],t)=>Mw(t).map(((t,n)=>{const r=e[n];return null==r?0:r.count})))(e,t.limit)),{variables:{...t,id:e}}),V_=zm`
  	fragment listField on EventStatistics {
  		list(sorting: $sorting, type: $type, range: $range) {
  			id
  			value
  			count
  			created
  		}
  	}
  `,z_=(e=[])=>e.map((e=>({text:e.value,count:e.count,date:null==e.created?null:new Date(e.created)})));const $_=zm`
  	query fetchEventListEntries($id: ID!, $sorting: Sorting!, $type: EventListType!, $range: Range) {
  		event(id: $id) {
  			id
  			statistics {
  				id
  				...listField
  			}
  		}
  	}
  
  	${V_}
  `;var Q_=(e,t)=>Yb($_,(e=>e?.event.statistics.list),z_,{variables:{...t,id:e}}),U_=e=>{const t=Ck(e,(e=>Number.parseFloat(e).toFixed(2)));return t.replace(".00","")},B_=e=>u.createElement(Bk,{...e,formatter:U_});const W_=(e,t)=>{switch(e.type){case hE:case mE:return{hook:j_,hookArgs:[e.id,{interval:t.filters.interval,type:e.type===mE?"AVERAGE":"TOTAL",limit:7}],renderer:B_,rendererProps:{interval:t.filters.interval}};case vE:case yE:return{hook:Q_,hookArgs:[e.id,{sorting:t.filters.sorting,type:e.type===yE?"AVERAGE":"TOTAL",range:t.filters.range}],renderer:t_,rendererProps:{sorting:t.filters.sorting,range:t.filters.range}}}},K_=e=>M_().value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,...W_(t,e)})));K_.propTypes={filters:Fg.object.isRequired};const H_=e=>Xb().value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:E_,hookArgs:[t.id,{sorting:e.filters.sorting,type:e.filters.systemsType,range:e.filters.range}],renderer:t_,rendererProps:{sorting:e.filters.sorting,range:e.filters.range}})));H_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const Y_=e=>Xb().value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:__,hookArgs:[t.id,{sorting:e.filters.sorting,type:e.filters.devicesType,range:e.filters.range}],renderer:t_,rendererProps:{sorting:e.filters.sorting,range:e.filters.range}})));Y_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const G_=e=>Xb().value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:x_,hookArgs:[t.id,{sorting:e.filters.sorting,type:e.filters.browsersType,range:e.filters.range}],renderer:t_,rendererProps:{sorting:e.filters.sorting,range:e.filters.range}})));G_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const J_=e=>Xb().value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:O_,hookArgs:[t.id,{sorting:e.filters.sorting,type:e.filters.sizesType,range:e.filters.range}],renderer:t_,rendererProps:{sorting:e.filters.sorting,range:e.filters.range}})));J_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const X_=e=>Xb().value.map((t=>u.createElement(jk,{key:t.id,headline:t.title,onMore:()=>e.setRoute(`/domains/${t.id}`),hook:N_,hookArgs:[t.id,{sorting:e.filters.sorting,range:e.filters.range}],renderer:t_,rendererProps:{sorting:e.filters.sorting,range:e.filters.range}})));X_.propTypes={setRoute:Fg.func.isRequired,filters:Fg.object.isRequired};const Z_=zm`
  	mutation deleteToken($id: ID!) {
  		deleteToken(id: $id) {
  			success
  		}
  	}
  `;const eS=zm`
  	query permanentTokens {
  		permanentTokens {
  			...permanentTokenFields
  		}
  	}
  
  	${OE}
  `;const tS=e=>u.createElement("div",{className:"card card--wide"},u.createElement("div",{className:"card__inner"},u.createElement(zg,{type:"h2",size:"medium"},e.headline),u.createElement(jg,{size:1.6}),e.children));tS.propTypes={headline:Fg.string.isRequired,children:Fg.oneOfType([Fg.arrayOf(Fg.node),Fg.node]).isRequired};const nS=e=>u.createElement(e.type,{onClick:e.onClick,href:e.href,target:e.target,className:Vg({linkItem:!0,"linkItem--disabled":!0===e.disabled,link:!0})},u.createElement("span",{},e.children),null!=e.text&&u.createElement("span",{},e.text));nS.propTypes={type:Fg.oneOf(["p","a","button"]).isRequired,href:Fg.string,target:Fg.string,onClick:Fg.func,disabled:Fg.bool,text:Fg.string,children:Fg.node.isRequired};const rS=()=>u.createElement("hr",{className:"line"}),iS=e=>u.createElement(Qg,{status:"warning"},`Loading ${e.label}...`),aS=e=>{const t=(()=>{const[e,{loading:t,error:n}]=ov(Z_);return{mutate:e,loading:t,error:n}})(),n=Xb(),r=M_(),i=Yb(eS,(e=>e?.permanentTokens),((e=[])=>e),{fetchPolicy:"cache-first",nextFetchPolicy:"cache-first"}),a=(e,t,n,r)=>[...e.map((e=>[u.createElement(nS,{type:"button",text:e.id,onClick:()=>t(e)},e.title),u.createElement(rS)])).flat(),u.createElement(nS,{type:"button",onClick:n},r)],o=u.createElement(iS,{label:"domains"}),s=u.createElement(iS,{label:"events"}),l=u.createElement(iS,{label:"permanent tokens"}),c=a(n.value,(t=>e.addModal(vw,t)),(()=>e.addModal(mw)),"New domain"),f=a(r.value,(t=>e.addModal(gw,t)),(()=>e.addModal(yw)),"New event"),d=a(i.value,(t=>e.addModal(ww,t)),(()=>e.addModal(bw)),"New permanent token");return u.createElement(u.Fragment,{},u.createElement(tS,{headline:"Account"},u.createElement(nS,{type:"p",disabled:!0,text:dv},"Version"),u.createElement(rS),u.createElement(nS,{type:"button",onClick:async()=>{await t.mutate({variables:{id:e.token}}),e.reset()}},"Sign Out")),u.createElement(tS,{headline:"Domains"},...!0===n.status.isInitializing?[o]:c),u.createElement(tS,{headline:"Events"},...!0===r.status.isInitializing?[s]:f),u.createElement(tS,{headline:"Permanent Tokens"},...!0===i.status.isInitializing?[l]:d),u.createElement(tS,{headline:"Donate"},u.createElement(nS,{type:"a",href:"https://github.com/sponsors/electerious",target:"_blank",rel:"noopener"},"Become a GitHub sponsor"),u.createElement(rS),u.createElement(nS,{type:"a",href:"https://www.buymeacoffee.com/electerious",target:"_blank",rel:"noopener"},"Buy me a coffee"),u.createElement(rS),u.createElement(nS,{type:"a",href:"https://paypal.me/electerious",target:"_blank",rel:"noopener"},"Donate via PayPal")),u.createElement(tS,{headline:"Help"},u.createElement(nS,{type:"a",href:"https://ackee.electerious.com",target:"_blank",rel:"noopener"},"Website and documentation"),u.createElement(rS),u.createElement(nS,{type:"a",href:pv,target:"_blank",rel:"noopener"},"Ackee on GitHub"),u.createElement(rS),u.createElement(nS,{type:"a",href:"https://github.com/electerious/ackee-tracker",target:"_blank",rel:"noopener"},"Add Ackee to your sites")))};aS.propTypes={reset:Fg.func.isRequired,token:Fg.string.isRequired,addModal:Fg.func.isRequired};const oS={[Av]:l_,[Pv]:R_,[Fv]:D_,[Mv]:I_,[Lv]:A_,[qv]:P_,[jv]:K_,[Vv]:H_,[zv]:Y_,[$v]:G_,[Qv]:J_,[Uv]:X_,[Bv]:aS},sS=e=>{const t=Jg(e.route),n=Xb();Hb("o",(()=>e.setRoute("/"))),Hb("v",(()=>e.setRoute("/insights/views"))),Hb("p",(()=>e.setRoute("/insights/pages"))),Hb("r",(()=>e.setRoute("/insights/referrers"))),Hb("d",(()=>e.setRoute("/insights/durations"))),Hb("e",(()=>e.setRoute("/insights/events"))),Hb("s",(()=>e.setRoute("/settings"))),Hb("0,1,2,3,4,5,6,7,8,9",((t,{key:r})=>((e,t,n)=>{const r=e[n];null!=r&&t(`/domains/${r.id}`)})(n.value,e.setRoute,r)),[n.value]);const r=n.value.length>0,i=n.value.map(((t,n)=>fw(t.title,`/domains/${t.id}`,e.route,e.setRoute,((e,t)=>e<t?e:void 0)(n,10)))),a=[fw("Views","/insights/views",e.route,e.setRoute,"v"),fw("Pages","/insights/pages",e.route,e.setRoute,"p"),fw("Referrers","/insights/referrers",e.route,e.setRoute,"r"),fw("Durations","/insights/durations",e.route,e.setRoute,"d"),dw(),fw("Events","/insights/events",e.route,e.setRoute,"e"),dw(),fw("Systems","/insights/systems",e.route,e.setRoute),fw("Devices","/insights/devices",e.route,e.setRoute),fw("Browsers","/insights/browsers",e.route,e.setRoute),fw("Sizes","/insights/sizes",e.route,e.setRoute),fw("Languages","/insights/languages",e.route,e.setRoute)],o=[uw("Overview","/",e.route,e.setRoute),!0===r?cw((e=>null==e?"Domains":e.label),i):void 0,cw((e=>null==e?"Insights":e.label),a),uw("Settings","/settings",e.route,e.setRoute)].filter(Boolean);return u.createElement("div",{},u.createElement(ME,{modals:e.modals,removeModal:e.removeModal}),u.createElement(lw,{loading:e.loading,items:o}),u.createElement("main",{className:"content"},u.createElement(oS[t.key],{reset:e.reset,route:e.route,setRoute:e.setRoute,token:e.token,addModal:e.addModal,filters:e.filters})))},lS=e=>{const t=e.useErrors(),n=((e,t,n)=>!1!=(null!=e)&&(1!=t.filter(cg).length>0||(n(),!1)))(e.token,t,e.reset);if(!0===(!1===n))return u.createElement(Gg,{setToken:e.setToken});return!0===t.length>0?u.createElement(Ug,{errors:t,reset:e.reset}):u.createElement(u.Fragment,{},u.createElement(_b,{filters:e.filters,setSortingFilter:e.setSortingFilter,setRangeFilter:e.setRangeFilter,setIntervalFilter:e.setIntervalFilter,setViewsTypeFilter:e.setViewsTypeFilter,setReferrersTypeFilter:e.setReferrersTypeFilter,setDevicesTypeFilter:e.setDevicesTypeFilter,setBrowsersTypeFilter:e.setBrowsersTypeFilter,setSizesTypeFilter:e.setSizesTypeFilter,setSystemsTypeFilter:e.setSystemsTypeFilter,route:e.route}),u.createElement(sS,e))},uS=class extends u.Component{constructor(e){super(e),this.state={error:void 0}}static getDerivedStateFromError(e){return{error:e}}render(){return!0===(null!=this.state.error)?u.createElement(Ug,{errors:[this.state.error],reset:this.props.reset}):this.props.children}};uS.propTypes={reset:Fg.func.isRequired},!0===window.env.isDemoMode&&console.warn("Ackee runs in demo mode");const{statusLink:cS,useLoading:fS,useErrors:dS}=(()=>{const{link:e,useApolloNetworkStatusReducer:t}=uv.createNetworkStatusNotifier();return{statusLink:e,useLoading:()=>t(cv,0)>0,useErrors:()=>t(fv,[])}})(),pS=(hS=[cS,(mS=(e,{headers:t})=>({headers:{...t,Authorization:`Bearer ${yv()}`}}),new tp((function(e,t){var n=Su(e,[]);return new fd((function(r){var i,a=!1;return Promise.resolve(n).then((function(t){return mS(t,e.getContext())})).then(e.setContext).then((function(){a||(i=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}))})).catch(r.error.bind(r)),function(){a=!0,i&&i.unsubscribe()}}))}))),new _v({uri:"/api",headers:{"Time-Zone":Sv}})],new Am({link:rp(hS),cache:new hm({})}));var hS,mS;wu.render(u.createElement((()=>{const[e,t]=u.useState(Date.now()),n=fS(),r=Yv(),i=(()=>{const[e,t]=u.useReducer(wv,yv()),n=u.useCallback((e=>t({type:mv,token:e})),[t]);return{token:e,setToken:n,resetToken:u.useCallback((()=>t({type:vv})),[t])}})(),a=(()=>{const[e,t]=u.useReducer(Ey,wy),n=u.useCallback(((e,n)=>t({type:yy,modalId:vy(),payload:{type:e,props:n}})),[t]);return{modals:e,addModal:n,removeModal:u.useCallback((e=>t({type:gy,modalId:e})),[t]),resetModals:u.useCallback((()=>t({type:by})),[t])}})(),o=(()=>{const[e,t]=u.useReducer(lg,ag());return{filters:e,setSortingFilter:u.useCallback((e=>t({type:Yy,payload:e})),[t]),setRangeFilter:u.useCallback((e=>t({type:Gy,payload:e})),[t]),setIntervalFilter:u.useCallback((e=>t({type:Jy,payload:e})),[t]),setViewsTypeFilter:u.useCallback((e=>t({type:Xy,payload:e})),[t]),setReferrersTypeFilter:u.useCallback((e=>t({type:Zy,payload:e})),[t]),setDevicesTypeFilter:u.useCallback((e=>t({type:eg,payload:e})),[t]),setBrowsersTypeFilter:u.useCallback((e=>t({type:tg,payload:e})),[t]),setSizesTypeFilter:u.useCallback((e=>t({type:ng,payload:e})),[t]),setSystemsTypeFilter:u.useCallback((e=>t({type:rg,payload:e})),[t]),resetFilters:u.useCallback((()=>t({type:ig})),[t])}})(),s=u.useCallback((()=>{i.resetToken(),a.resetModals(),o.resetFilters(),pS.clearStore(),t(Date.now())}),[i.resetToken,a.resetModals,o.resetFilters,pS.resetStore,t]);var l;return u.useEffect((()=>{if(0!=(!0===navigator.platform.includes("Win")))return document.body.classList.add("customScrollbar"),()=>document.body.classList.remove("customScrollbar")}),[]),l=r.route,u.useEffect((()=>{document.scrollingElement.scrollTop=0}),[l]),u.createElement(Pd,{client:pS},u.createElement(uS,{reset:s},u.createElement(lS,{key:e,reset:s,useErrors:dS,loading:n,...status,...r,...i,...a,...o})))})),document.querySelector("#main"))}();
  