(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@font-face{font-family:nunito_sans;src:url(https://storage.googleapis.com/microsites-microservice/fonts/NunitoSans-Light.woff2) format("woff");font-weight:400}@font-face{font-family:nunito_sans;src:url(https://storage.googleapis.com/microsites-microservice/fonts/NunitoSans-Regular.woff2) format("woff");font-weight:500}@font-face{font-family:nunito_sans;src:url(https://storage.googleapis.com/microsites-microservice/fonts/NunitoSans-SemiBold.woff2) format("woff");font-weight:600}@font-face{font-family:nunito_sans;src:url(https://storage.googleapis.com/microsites-microservice/fonts/NunitoSans-Bold.woff2) format("woff");font-weight:700}@font-face{font-family:nunito_sans;src:url(https://storage.googleapis.com/microsites-microservice/fonts/NunitoSans-ExtraBold.woff2) format("woff");font-weight:800}@font-face{font-family:nunito_sans;src:url(https://storage.googleapis.com/microsites-microservice/fonts/NunitoSans-Black.woff2) format("woff");font-weight:900}#microsite__product-testing{font-family:nunito_sans,sans-serif;color:#432b0e;background-color:#f5f5f5}')),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); (function(kn,Ut){typeof exports=="object"&&typeof module<"u"?module.exports=Ut():typeof define=="function"&&define.amd?define(Ut):(kn=typeof globalThis<"u"?globalThis:kn||self,kn["product-testing"]=Ut())})(this,(function(){"use strict";var h5=Object.defineProperty;var d5=(kn,Ut,_r)=>Ut in kn?h5(kn,Ut,{enumerable:!0,configurable:!0,writable:!0,value:_r}):kn[Ut]=_r;var Sx=(kn,Ut,_r)=>d5(kn,typeof Ut!="symbol"?Ut+"":Ut,_r);function kn(e,r){for(var i=0;io[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _r={exports:{}},po={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Np;function Ex(){if(Np)return po;Np=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(o,u,s){var f=null;if(s!==void 0&&(f=""+s),u.key!==void 0&&(f=""+u.key),"key"in u){s={};for(var d in u)d!=="key"&&(s[d]=u[d])}else s=u;return u=s.ref,{$$typeof:e,type:o,key:f,ref:u!==void 0?u:null,props:s}}return po.Fragment=r,po.jsx=i,po.jsxs=i,po}var sc={exports:{}},Se={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var $p;function Tx(){if($p)return Se;$p=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function x(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,k={};function D(T,w,E){this.props=T,this.context=w,this.refs=k,this.updater=E||O}D.prototype.isReactComponent={},D.prototype.setState=function(T,w){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,w,"setState")},D.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function N(){}N.prototype=D.prototype;function j(T,w,E){this.props=T,this.context=w,this.refs=k,this.updater=E||O}var z=j.prototype=new N;z.constructor=j,A(z,D.prototype),z.isPureReactComponent=!0;var I=Array.isArray;function G(){}var B={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function oe(T,w,E){var Z=E.ref;return{$$typeof:e,type:T,key:w,ref:Z!==void 0?Z:null,props:E}}function _e(T,w){return oe(T.type,w,T.props)}function ce(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function Te(T){var w={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(E){return w[E]})}var ge=/\/+/g;function Xe(T,w){return typeof T=="object"&&T!==null&&T.key!=null?Te(""+T.key):w.toString(36)}function dt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(G,G):(T.status="pending",T.then(function(w){T.status==="pending"&&(T.status="fulfilled",T.value=w)},function(w){T.status==="pending"&&(T.status="rejected",T.reason=w)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function Q(T,w,E,Z,re){var fe=typeof T;(fe==="undefined"||fe==="boolean")&&(T=null);var ie=!1;if(T===null)ie=!0;else switch(fe){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(T.$$typeof){case e:case r:ie=!0;break;case y:return ie=T._init,Q(ie(T._payload),w,E,Z,re)}}if(ie)return re=re(T),ie=Z===""?"."+Xe(T,0):Z,I(re)?(E="",ie!=null&&(E=ie.replace(ge,"$&/")+"/"),Q(re,w,E,"",function(He){return He})):re!=null&&(ce(re)&&(re=_e(re,E+(re.key==null||T&&T.key===re.key?"":(""+re.key).replace(ge,"$&/")+"/")+ie)),w.push(re)),1;ie=0;var ve=Z===""?".":Z+":";if(I(T))for(var pe=0;pe>>1,H=Q[L];if(0>>1;Lu(E,me))Zu(re,E)?(Q[L]=re,Q[Z]=me,L=Z):(Q[L]=E,Q[w]=me,L=w);else if(Zu(re,me))Q[L]=re,Q[Z]=me,L=Z;else break e}}return te}function u(Q,te){var me=Q.sortIndex-te.sortIndex;return me!==0?me:Q.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var m=[],p=[],y=1,g=null,b=3,x=!1,O=!1,A=!1,k=!1,D=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function z(Q){for(var te=i(p);te!==null;){if(te.callback===null)o(p);else if(te.startTime<=Q)o(p),te.sortIndex=te.expirationTime,r(m,te);else break;te=i(p)}}function I(Q){if(A=!1,z(Q),!O)if(i(m)!==null)O=!0,G||(G=!0,Te());else{var te=i(p);te!==null&&dt(I,te.startTime-Q)}}var G=!1,B=-1,J=5,oe=-1;function _e(){return k?!0:!(e.unstable_now()-oeQ&&_e());){var L=g.callback;if(typeof L=="function"){g.callback=null,b=g.priorityLevel;var H=L(g.expirationTime<=Q);if(Q=e.unstable_now(),typeof H=="function"){g.callback=H,z(Q),te=!0;break t}g===i(m)&&o(m),z(Q)}else o(m);g=i(m)}if(g!==null)te=!0;else{var T=i(p);T!==null&&dt(I,T.startTime-Q),te=!1}}break e}finally{g=null,b=me,x=!1}te=void 0}}finally{te?Te():G=!1}}}var Te;if(typeof j=="function")Te=function(){j(ce)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,Xe=ge.port2;ge.port1.onmessage=ce,Te=function(){Xe.postMessage(null)}}else Te=function(){D(ce,0)};function dt(Q,te){B=D(function(){Q(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Q){Q.callback=null},e.unstable_forceFrameRate=function(Q){0>Q||125L?(Q.sortIndex=me,r(p,Q),i(m)===null&&Q===i(p)&&(A?(N(B),B=-1):A=!0,dt(I,me-L))):(Q.sortIndex=H,r(m,Q),O||x||(O=!0,G||(G=!0,Te()))),Q},e.unstable_shouldYield=_e,e.unstable_wrapCallback=function(Q){var te=b;return function(){var me=b;b=te;try{return Q.apply(this,arguments)}finally{b=me}}}})(hc)),hc}var qp;function wx(){return qp||(qp=1,fc.exports=Dx()),fc.exports}var dc={exports:{}},Gt={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Bp;function Ax(){if(Bp)return Gt;Bp=1;var e=mo();function r(m){var p="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),dc.exports=Ax(),dc.exports}var Vp;function Cx(){if(Vp)return vo;Vp=1;/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var e=wx(),r=mo(),i=pc();function o(t){var n="https://react.dev/errors/"+t;if(1H||(t.current=L[H],L[H]=null,H--)}function E(t,n){H++,L[H]=t.current,t.current=n}var Z=T(null),re=T(null),fe=T(null),ie=T(null);function ve(t,n){switch(E(fe,n),E(re,t),E(Z,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?H_(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=H_(n),t=G_(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}w(Z),E(Z,t)}function pe(){w(Z),w(re),w(fe)}function He(t){t.memoizedState!==null&&E(ie,t);var n=Z.current,a=G_(n,t.type);n!==a&&(E(re,t),E(Z,a))}function Ae(t){re.current===t&&(w(Z),w(re)),ie.current===t&&(w(ie),Il._currentValue=me)}var Fe,de;function xe(t){if(Fe===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Fe=n&&n[1]||"",de=-1)":-1c||C[l]!==U[c]){var Y=` `+C[l].replace(" at new "," at ");return t.displayName&&Y.includes("")&&(Y=Y.replace("",t.displayName)),Y}while(1<=l&&0<=c);break}}}finally{Ce=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?xe(a):""}function ct(t,n){switch(t.tag){case 26:case 27:case 5:return xe(t.type);case 16:return xe("Lazy");case 13:return t.child!==n&&n!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return Le(t.type,!1);case 11:return Le(t.type.render,!1);case 1:return Le(t.type,!0);case 31:return xe("Activity");default:return""}}function $t(t){try{var n="",a=null;do n+=ct(t,a),a=t,t=t.return;while(t);return n}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var kt=Object.prototype.hasOwnProperty,bn=e.unstable_scheduleCallback,Ur=e.unstable_cancelCallback,ln=e.unstable_shouldYield,qr=e.unstable_requestPaint,Rt=e.unstable_now,GN=e.unstable_getCurrentPriorityLevel,E0=e.unstable_ImmediatePriority,T0=e.unstable_UserBlockingPriority,Gu=e.unstable_NormalPriority,YN=e.unstable_LowPriority,O0=e.unstable_IdlePriority,XN=e.log,ZN=e.unstable_setDisableYieldValue,el=null,un=null;function Br(t){if(typeof XN=="function"&&ZN(t),un&&typeof un.setStrictMode=="function")try{un.setStrictMode(el,t)}catch{}}var sn=Math.clz32?Math.clz32:JN,PN=Math.log,KN=Math.LN2;function JN(t){return t>>>=0,t===0?32:31-(PN(t)/KN|0)|0}var Yu=256,Xu=262144,Zu=4194304;function Ri(t){var n=t&42;if(n!==0)return n;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Pu(t,n,a){var l=t.pendingLanes;if(l===0)return 0;var c=0,h=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var _=l&134217727;return _!==0?(l=_&~h,l!==0?c=Ri(l):(v&=_,v!==0?c=Ri(v):a||(a=_&~t,a!==0&&(c=Ri(a))))):(_=l&~h,_!==0?c=Ri(_):v!==0?c=Ri(v):a||(a=l&~t,a!==0&&(c=Ri(a)))),c===0?0:n!==0&&n!==c&&(n&h)===0&&(h=c&-c,a=n&-n,h>=a||h===32&&(a&4194048)!==0)?n:c}function tl(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function WN(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function D0(){var t=Zu;return Zu<<=1,(Zu&62914560)===0&&(Zu=4194304),t}function Eh(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}function nl(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function e4(t,n,a,l,c,h){var v=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var _=t.entanglements,C=t.expirationTimes,U=t.hiddenUpdates;for(a=v&~a;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var o4=/[\n"\\]/g;function xn(t){return t.replace(o4,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Ch(t,n,a,l,c,h,v,_){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),n!=null?v==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+_n(n)):t.value!==""+_n(n)&&(t.value=""+_n(n)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),n!=null?kh(t,v,_n(n)):a!=null?kh(t,v,_n(a)):l!=null&&t.removeAttribute("value"),c==null&&h!=null&&(t.defaultChecked=!!h),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?t.name=""+_n(_):t.removeAttribute("name")}function U0(t,n,a,l,c,h,v,_){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),n!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Ah(t);return}a=a!=null?""+_n(a):"",n=n!=null?""+_n(n):a,_||n===t.value||(t.value=n),t.defaultValue=n}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=_?t.checked:!!l,t.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),Ah(t)}function kh(t,n,a){n==="number"&&Wu(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function ja(t,n,a,l){if(t=t.options,n){n={};for(var c=0;c"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nh=!1;if(ir)try{var ol={};Object.defineProperty(ol,"passive",{get:function(){Nh=!0}}),window.addEventListener("test",ol,ol),window.removeEventListener("test",ol,ol)}catch{Nh=!1}var Vr=null,$h=null,ts=null;function G0(){if(ts)return ts;var t,n=$h,a=n.length,l,c="value"in Vr?Vr.value:Vr.textContent,h=c.length;for(t=0;t=sl),J0=" ",W0=!1;function eb(t,n){switch(t){case"keyup":return j4.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tb(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Fa=!1;function $4(t,n){switch(t){case"compositionend":return tb(n);case"keypress":return n.which!==32?null:(W0=!0,J0);case"textInput":return t=n.data,t===J0&&W0?null:t;default:return null}}function L4(t,n){if(Fa)return t==="compositionend"||!Bh&&eb(t,n)?(t=G0(),ts=$h=Vr=null,Fa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:a,offset:n-t};t=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=sb(a)}}function fb(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?fb(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function hb(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Wu(t.document);n instanceof t.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)t=n.contentWindow;else break;n=Wu(t.document)}return n}function Qh(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var H4=ir&&"documentMode"in document&&11>=document.documentMode,Ua=null,Hh=null,dl=null,Gh=!1;function db(t,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Gh||Ua==null||Ua!==Wu(l)||(l=Ua,"selectionStart"in l&&Qh(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),dl&&hl(dl,l)||(dl=l,l=Xs(Hh,"onSelect"),0>=v,c-=v,Gn=1<<32-sn(n)+c|a<De?(je=he,he=null):je=he.sibling;var qe=q($,he,F[De],P);if(qe===null){he===null&&(he=je);break}t&&he&&qe.alternate===null&&n($,he),M=h(qe,M,De),Ue===null?ye=qe:Ue.sibling=qe,Ue=qe,he=je}if(De===F.length)return a($,he),$e&&or($,De),ye;if(he===null){for(;DeDe?(je=he,he=null):je=he.sibling;var fi=q($,he,qe.value,P);if(fi===null){he===null&&(he=je);break}t&&he&&fi.alternate===null&&n($,he),M=h(fi,M,De),Ue===null?ye=fi:Ue.sibling=fi,Ue=fi,he=je}if(qe.done)return a($,he),$e&&or($,De),ye;if(he===null){for(;!qe.done;De++,qe=F.next())qe=K($,qe.value,P),qe!==null&&(M=h(qe,M,De),Ue===null?ye=qe:Ue.sibling=qe,Ue=qe);return $e&&or($,De),ye}for(he=l(he);!qe.done;De++,qe=F.next())qe=V(he,$,De,qe.value,P),qe!==null&&(t&&qe.alternate!==null&&he.delete(qe.key===null?De:qe.key),M=h(qe,M,De),Ue===null?ye=qe:Ue.sibling=qe,Ue=qe);return t&&he.forEach(function(f5){return n($,f5)}),$e&&or($,De),ye}function et($,M,F,P){if(typeof F=="object"&&F!==null&&F.type===A&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case x:e:{for(var ye=F.key;M!==null;){if(M.key===ye){if(ye=F.type,ye===A){if(M.tag===7){a($,M.sibling),P=c(M,F.props.children),P.return=$,$=P;break e}}else if(M.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===J&&Ii(ye)===M.type){a($,M.sibling),P=c(M,F.props),bl(P,F),P.return=$,$=P;break e}a($,M);break}else n($,M);M=M.sibling}F.type===A?(P=Li(F.props.children,$.mode,P,F.key),P.return=$,$=P):(P=fs(F.type,F.key,F.props,null,$.mode,P),bl(P,F),P.return=$,$=P)}return v($);case O:e:{for(ye=F.key;M!==null;){if(M.key===ye)if(M.tag===4&&M.stateNode.containerInfo===F.containerInfo&&M.stateNode.implementation===F.implementation){a($,M.sibling),P=c(M,F.children||[]),P.return=$,$=P;break e}else{a($,M);break}else n($,M);M=M.sibling}P=Wh(F,$.mode,P),P.return=$,$=P}return v($);case J:return F=Ii(F),et($,M,F,P)}if(dt(F))return se($,M,F,P);if(Te(F)){if(ye=Te(F),typeof ye!="function")throw Error(o(150));return F=ye.call(F),be($,M,F,P)}if(typeof F.then=="function")return et($,M,gs(F),P);if(F.$$typeof===j)return et($,M,ps($,F),P);bs($,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,M!==null&&M.tag===6?(a($,M.sibling),P=c(M,F),P.return=$,$=P):(a($,M),P=Jh(F,$.mode,P),P.return=$,$=P),v($)):a($,M)}return function($,M,F,P){try{gl=0;var ye=et($,M,F,P);return Pa=null,ye}catch(he){if(he===Za||he===vs)throw he;var Ue=fn(29,he,null,$.mode);return Ue.lanes=P,Ue.return=$,Ue}finally{}}}var Qi=$b(!0),Lb=$b(!1),Xr=!1;function fd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hd(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Zr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Pr(t,n,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Ge&2)!==0){var c=l.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n,n=cs(t),_b(t,null,a),n}return ss(t,l,n,a),cs(t)}function _l(t,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=t.pendingLanes,a|=l,n.lanes=a,A0(t,a)}}function dd(t,n){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var c=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var v={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?c=h=v:h=h.next=v,a=a.next}while(a!==null);h===null?c=h=n:h=h.next=n}else c=h=n;a={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=n:t.next=n,a.lastBaseUpdate=n}var pd=!1;function xl(){if(pd){var t=Xa;if(t!==null)throw t}}function Sl(t,n,a,l){pd=!1;var c=t.updateQueue;Xr=!1;var h=c.firstBaseUpdate,v=c.lastBaseUpdate,_=c.shared.pending;if(_!==null){c.shared.pending=null;var C=_,U=C.next;C.next=null,v===null?h=U:v.next=U,v=C;var Y=t.alternate;Y!==null&&(Y=Y.updateQueue,_=Y.lastBaseUpdate,_!==v&&(_===null?Y.firstBaseUpdate=U:_.next=U,Y.lastBaseUpdate=C))}if(h!==null){var K=c.baseState;v=0,Y=U=C=null,_=h;do{var q=_.lane&-536870913,V=q!==_.lane;if(V?(ze&q)===q:(l&q)===q){q!==0&&q===Ya&&(pd=!0),Y!==null&&(Y=Y.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var se=t,be=_;q=n;var et=a;switch(be.tag){case 1:if(se=be.payload,typeof se=="function"){K=se.call(et,K,q);break e}K=se;break e;case 3:se.flags=se.flags&-65537|128;case 0:if(se=be.payload,q=typeof se=="function"?se.call(et,K,q):se,q==null)break e;K=g({},K,q);break e;case 2:Xr=!0}}q=_.callback,q!==null&&(t.flags|=64,V&&(t.flags|=8192),V=c.callbacks,V===null?c.callbacks=[q]:V.push(q))}else V={lane:q,tag:_.tag,payload:_.payload,callback:_.callback,next:null},Y===null?(U=Y=V,C=K):Y=Y.next=V,v|=q;if(_=_.next,_===null){if(_=c.shared.pending,_===null)break;V=_,_=V.next,V.next=null,c.lastBaseUpdate=V,c.shared.pending=null}}while(!0);Y===null&&(C=K),c.baseState=C,c.firstBaseUpdate=U,c.lastBaseUpdate=Y,h===null&&(c.shared.lanes=0),ti|=v,t.lanes=v,t.memoizedState=K}}function Fb(t,n){if(typeof t!="function")throw Error(o(191,t));t.call(n)}function Ub(t,n){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;th?h:8;var v=Q.T,_={};Q.T=_,zd(t,!1,n,a);try{var C=c(),U=Q.S;if(U!==null&&U(_,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var Y=e3(C,l);Ol(t,n,Y,vn(t))}else Ol(t,n,l,vn(t))}catch(K){Ol(t,n,{then:function(){},status:"rejected",reason:K},vn())}finally{te.p=h,v!==null&&_.types!==null&&(v.types=_.types),Q.T=v}}function o3(){}function Rd(t,n,a,l){if(t.tag!==5)throw Error(o(476));var c=y1(t).queue;v1(t,c,n,me,a===null?o3:function(){return g1(t),a(l)})}function y1(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:me},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cr,lastRenderedState:a},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function g1(t){var n=y1(t);n.next===null&&(n=t.alternate.memoizedState),Ol(t,n.next.queue,{},vn())}function Md(){return Vt(Il)}function b1(){return xt().memoizedState}function _1(){return xt().memoizedState}function l3(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var a=vn();t=Zr(a);var l=Pr(n,t,a);l!==null&&(an(l,n,a),_l(l,n,a)),n={cache:ld()},t.payload=n;return}n=n.return}}function u3(t,n,a){var l=vn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Cs(t)?S1(n,a):(a=Ph(t,n,a,l),a!==null&&(an(a,t,l),E1(a,n,l)))}function x1(t,n,a){var l=vn();Ol(t,n,a,l)}function Ol(t,n,a,l){var c={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Cs(t))S1(n,c);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var v=n.lastRenderedState,_=h(v,a);if(c.hasEagerState=!0,c.eagerState=_,cn(_,v))return ss(t,n,c,0),nt===null&&us(),!1}catch{}finally{}if(a=Ph(t,n,c,l),a!==null)return an(a,t,l),E1(a,n,l),!0}return!1}function zd(t,n,a,l){if(l={lane:2,revertLane:fp(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Cs(t)){if(n)throw Error(o(479))}else n=Ph(t,a,l,2),n!==null&&an(n,t,2)}function Cs(t){var n=t.alternate;return t===Oe||n!==null&&n===Oe}function S1(t,n){Ja=Ss=!0;var a=t.pending;a===null?n.next=n:(n.next=a.next,a.next=n),t.pending=n}function E1(t,n,a){if((a&4194048)!==0){var l=n.lanes;l&=t.pendingLanes,a|=l,n.lanes=a,A0(t,a)}}var Dl={readContext:Vt,use:Os,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};Dl.useEffectEvent=vt;var T1={readContext:Vt,use:Os,useCallback:function(t,n){return Kt().memoizedState=[t,n===void 0?null:n],t},useContext:Vt,useEffect:l1,useImperativeHandle:function(t,n,a){a=a!=null?a.concat([t]):null,ws(4194308,4,f1.bind(null,n,t),a)},useLayoutEffect:function(t,n){return ws(4194308,4,t,n)},useInsertionEffect:function(t,n){ws(4,2,t,n)},useMemo:function(t,n){var a=Kt();n=n===void 0?null:n;var l=t();if(Hi){Br(!0);try{t()}finally{Br(!1)}}return a.memoizedState=[l,n],l},useReducer:function(t,n,a){var l=Kt();if(a!==void 0){var c=a(n);if(Hi){Br(!0);try{a(n)}finally{Br(!1)}}}else c=n;return l.memoizedState=l.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},l.queue=t,t=t.dispatch=u3.bind(null,Oe,t),[l.memoizedState,t]},useRef:function(t){var n=Kt();return t={current:t},n.memoizedState=t},useState:function(t){t=Dd(t);var n=t.queue,a=x1.bind(null,Oe,n);return n.dispatch=a,[t.memoizedState,a]},useDebugValue:Cd,useDeferredValue:function(t,n){var a=Kt();return kd(a,t,n)},useTransition:function(){var t=Dd(!1);return t=v1.bind(null,Oe,t.queue,!0,!1),Kt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,a){var l=Oe,c=Kt();if($e){if(a===void 0)throw Error(o(407));a=a()}else{if(a=n(),nt===null)throw Error(o(349));(ze&127)!==0||Hb(l,n,a)}c.memoizedState=a;var h={value:a,getSnapshot:n};return c.queue=h,l1(Yb.bind(null,l,h,t),[t]),l.flags|=2048,eo(9,{destroy:void 0},Gb.bind(null,l,h,a,n),null),a},useId:function(){var t=Kt(),n=nt.identifierPrefix;if($e){var a=Yn,l=Gn;a=(l&~(1<<32-sn(l)-1)).toString(32)+a,n="_"+n+"R_"+a,a=Es++,0<\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?h.multiple=!0:l.size&&(h.size=l.size);break;default:h=typeof l.is=="string"?v.createElement(c,{is:l.is}):v.createElement(c)}}h[Bt]=n,h[Jt]=l;e:for(v=n.child;v!==null;){if(v.tag===5||v.tag===6)h.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===n)break e;for(;v.sibling===null;){if(v.return===null||v.return===n)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}n.stateNode=h;e:switch(Ht(h,c,l),c){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&hr(n)}}return ut(n),Yd(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,a),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==l&&hr(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(o(166));if(t=fe.current,Ha(n)){if(t=n.stateNode,a=n.memoizedProps,l=null,c=It,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}t[Bt]=n,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||V_(t.nodeValue,a)),t||Gr(n,!0)}else t=Zs(t).createTextNode(l),t[Bt]=n,n.stateNode=t}return ut(n),null;case 31:if(a=n.memoizedState,t===null||t.memoizedState!==null){if(l=Ha(n),a!==null){if(t===null){if(!l)throw Error(o(318));if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Bt]=n}else Fi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ut(n),t=!1}else a=rd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return n.flags&256?(dn(n),n):(dn(n),null);if((n.flags&128)!==0)throw Error(o(558))}return ut(n),null;case 13:if(l=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Ha(n),l!==null&&l.dehydrated!==null){if(t===null){if(!c)throw Error(o(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[Bt]=n}else Fi(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ut(n),c=!1}else c=rd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=!0;if(!c)return n.flags&256?(dn(n),n):(dn(n),null)}return dn(n),(n.flags&128)!==0?(n.lanes=a,n):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=n.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool),h=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==c&&(l.flags|=2048)),a!==t&&a&&(n.child.flags|=8192),js(n,n.updateQueue),ut(n),null);case 4:return pe(),t===null&&mp(n.stateNode.containerInfo),ut(n),null;case 10:return ur(n.type),ut(n),null;case 19:if(w(_t),l=n.memoizedState,l===null)return ut(n),null;if(c=(n.flags&128)!==0,h=l.rendering,h===null)if(c)Al(l,!1);else{if(yt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(h=xs(t),h!==null){for(n.flags|=128,Al(l,!1),t=h.updateQueue,n.updateQueue=t,js(n,t),n.subtreeFlags=0,t=a,a=n.child;a!==null;)xb(a,t),a=a.sibling;return E(_t,_t.current&1|2),$e&&or(n,l.treeForkCount),n.child}t=t.sibling}l.tail!==null&&Rt()>Us&&(n.flags|=128,c=!0,Al(l,!1),n.lanes=4194304)}else{if(!c)if(t=xs(h),t!==null){if(n.flags|=128,c=!0,t=t.updateQueue,n.updateQueue=t,js(n,t),Al(l,!0),l.tail===null&&l.tailMode==="hidden"&&!h.alternate&&!$e)return ut(n),null}else 2*Rt()-l.renderingStartTime>Us&&a!==536870912&&(n.flags|=128,c=!0,Al(l,!1),n.lanes=4194304);l.isBackwards?(h.sibling=n.child,n.child=h):(t=l.last,t!==null?t.sibling=h:n.child=h,l.last=h)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Rt(),t.sibling=null,a=_t.current,E(_t,c?a&1|2:a&1),$e&&or(n,l.treeForkCount),t):(ut(n),null);case 22:case 23:return dn(n),vd(),l=n.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&(ut(n),n.subtreeFlags&6&&(n.flags|=8192)):ut(n),a=n.updateQueue,a!==null&&js(n,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),t!==null&&w(Bi),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),ur(Tt),ut(n),null;case 25:return null;case 30:return null}throw Error(o(156,n.tag))}function d3(t,n){switch(td(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return ur(Tt),pe(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Ae(n),null;case 31:if(n.memoizedState!==null){if(dn(n),n.alternate===null)throw Error(o(340));Fi()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 13:if(dn(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Fi()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return w(_t),null;case 4:return pe(),null;case 10:return ur(n.type),null;case 22:case 23:return dn(n),vd(),t!==null&&w(Bi),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return ur(Tt),null;case 25:return null;default:return null}}function X1(t,n){switch(td(n),n.tag){case 3:ur(Tt),pe();break;case 26:case 27:case 5:Ae(n);break;case 4:pe();break;case 31:n.memoizedState!==null&&dn(n);break;case 13:dn(n);break;case 19:w(_t);break;case 10:ur(n.type);break;case 22:case 23:dn(n),vd(),t!==null&&w(Bi);break;case 24:ur(Tt)}}function Cl(t,n){try{var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var c=l.next;a=c;do{if((a.tag&t)===t){l=void 0;var h=a.create,v=a.inst;l=h(),v.destroy=l}a=a.next}while(a!==c)}}catch(_){Pe(n,n.return,_)}}function Wr(t,n,a){try{var l=n.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var h=c.next;l=h;do{if((l.tag&t)===t){var v=l.inst,_=v.destroy;if(_!==void 0){v.destroy=void 0,c=n;var C=a,U=_;try{U()}catch(Y){Pe(c,C,Y)}}}l=l.next}while(l!==h)}}catch(Y){Pe(n,n.return,Y)}}function Z1(t){var n=t.updateQueue;if(n!==null){var a=t.stateNode;try{Ub(n,a)}catch(l){Pe(t,t.return,l)}}}function P1(t,n,a){a.props=Gi(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Pe(t,n,l)}}function kl(t,n){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(c){Pe(t,n,c)}}function Xn(t,n){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(c){Pe(t,n,c)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){Pe(t,n,c)}else a.current=null}function K1(t){var n=t.type,a=t.memoizedProps,l=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(c){Pe(t,t.return,c)}}function Xd(t,n,a){try{var l=t.stateNode;N3(l,t.type,a,n),l[Jt]=n}catch(c){Pe(t,t.return,c)}}function J1(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oi(t.type)||t.tag===4}function Zd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||J1(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&oi(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Pd(t,n,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(t),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=rr));else if(l!==4&&(l===27&&oi(t.type)&&(a=t.stateNode,n=null),t=t.child,t!==null))for(Pd(t,n,a),t=t.sibling;t!==null;)Pd(t,n,a),t=t.sibling}function Ns(t,n,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,n?a.insertBefore(t,n):a.appendChild(t);else if(l!==4&&(l===27&&oi(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Ns(t,n,a),t=t.sibling;t!==null;)Ns(t,n,a),t=t.sibling}function W1(t){var n=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,c=n.attributes;c.length;)n.removeAttributeNode(c[0]);Ht(n,l,a),n[Bt]=t,n[Jt]=a}catch(h){Pe(t,t.return,h)}}var dr=!1,wt=!1,Kd=!1,e_=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function p3(t,n){if(t=t.containerInfo,gp=nc,t=hb(t),Qh(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var c=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var v=0,_=-1,C=-1,U=0,Y=0,K=t,q=null;t:for(;;){for(var V;K!==a||c!==0&&K.nodeType!==3||(_=v+c),K!==h||l!==0&&K.nodeType!==3||(C=v+l),K.nodeType===3&&(v+=K.nodeValue.length),(V=K.firstChild)!==null;)q=K,K=V;for(;;){if(K===t)break t;if(q===a&&++U===c&&(_=v),q===h&&++Y===l&&(C=v),(V=K.nextSibling)!==null)break;K=q,q=K.parentNode}K=V}a=_===-1||C===-1?null:{start:_,end:C}}else a=null}a=a||{start:0,end:0}}else a=null;for(bp={focusedElem:t,selectionRange:a},nc=!1,Ft=n;Ft!==null;)if(n=Ft,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Ft=t;else for(;Ft!==null;){switch(n=Ft,h=n.alternate,t=n.flags,n.tag){case 0:if((t&4)!==0&&(t=n.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a title"))),Ht(h,l,a),h[Bt]=t,Lt(h),l=h;break e;case"link":var v=ox("link","href",c).get(l+(a.href||""));if(v){for(var _=0;_et&&(v=et,et=be,be=v);var $=cb(_,be),M=cb(_,et);if($&&M&&(V.rangeCount!==1||V.anchorNode!==$.node||V.anchorOffset!==$.offset||V.focusNode!==M.node||V.focusOffset!==M.offset)){var F=K.createRange();F.setStart($.node,$.offset),V.removeAllRanges(),be>et?(V.addRange(F),V.extend(M.node,M.offset)):(F.setEnd(M.node,M.offset),V.addRange(F))}}}}for(K=[],V=_;V=V.parentNode;)V.nodeType===1&&K.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_a?32:a,Q.T=null,a=ip,ip=null;var h=ri,v=gr;if(Mt=0,ao=ri=null,gr=0,(Ge&6)!==0)throw Error(o(331));var _=Ge;if(Ge|=4,f_(h.current),u_(h,h.current,v,a),Ge=_,$l(0,!1),un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot(el,h)}catch{}return!0}finally{te.p=c,Q.T=l,C_(t,n)}}function R_(t,n,a){n=En(a,n),n=Ld(t.stateNode,n,2),t=Pr(t,n,2),t!==null&&(nl(t,2),Zn(t))}function Pe(t,n,a){if(t.tag===3)R_(t,t,a);else for(;n!==null;){if(n.tag===3){R_(n,t,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ni===null||!ni.has(l))){t=En(a,t),a=M1(2),l=Pr(n,a,2),l!==null&&(z1(a,l,n,t),nl(l,2),Zn(l));break}}n=n.return}}function up(t,n,a){var l=t.pingCache;if(l===null){l=t.pingCache=new y3;var c=new Set;l.set(n,c)}else c=l.get(n),c===void 0&&(c=new Set,l.set(n,c));c.has(a)||(ep=!0,c.add(a),t=S3.bind(null,t,n,a),n.then(t,t))}function S3(t,n,a){var l=t.pingCache;l!==null&&l.delete(n),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,nt===t&&(ze&a)===a&&(yt===4||yt===3&&(ze&62914560)===ze&&300>Rt()-Fs?(Ge&2)===0&&oo(t,0):tp|=a,io===ze&&(io=0)),Zn(t)}function M_(t,n){n===0&&(n=D0()),t=$i(t,n),t!==null&&(nl(t,n),Zn(t))}function E3(t){var n=t.memoizedState,a=0;n!==null&&(a=n.retryLane),M_(t,a)}function T3(t,n){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,c=t.memoizedState;c!==null&&(a=c.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(n),M_(t,a)}function O3(t,n){return bn(t,n)}var Hs=null,uo=null,sp=!1,Gs=!1,cp=!1,ai=0;function Zn(t){t!==uo&&t.next===null&&(uo===null?Hs=uo=t:uo=uo.next=t),Gs=!0,sp||(sp=!0,w3())}function $l(t,n){if(!cp&&Gs){cp=!0;do for(var a=!1,l=Hs;l!==null;){if(t!==0){var c=l.pendingLanes;if(c===0)var h=0;else{var v=l.suspendedLanes,_=l.pingedLanes;h=(1<<31-sn(42|t)+1)-1,h&=c&~(v&~_),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,$_(l,h))}else h=ze,h=Pu(l,l===nt?h:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(h&3)===0||tl(l,h)||(a=!0,$_(l,h));l=l.next}while(a);cp=!1}}function D3(){z_()}function z_(){Gs=sp=!1;var t=0;ai!==0&&L3()&&(t=ai);for(var n=Rt(),a=null,l=Hs;l!==null;){var c=l.next,h=j_(l,n);h===0?(l.next=null,a===null?Hs=c:a.next=c,c===null&&(uo=a)):(a=l,(t!==0||(h&3)!==0)&&(Gs=!0)),l=c}Mt!==0&&Mt!==5||$l(t),ai!==0&&(ai=0)}function j_(t,n){for(var a=t.suspendedLanes,l=t.pingedLanes,c=t.expirationTimes,h=t.pendingLanes&-62914561;0_)break;var Y=C.transferSize,K=C.initiatorType;Y&&Q_(K)&&(C=C.responseEnd,v+=Y*(C<_?1:(_-U)/(C-U)))}if(--l,n+=8*(h+v)/(c.duration/1e3),t++,10"u"?null:document;function nx(t,n,a){var l=so;if(l&&typeof n=="string"&&n){var c=xn(n);c='link[rel="'+t+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),tx.has(c)||(tx.add(c),t={rel:t,crossOrigin:a,href:n},l.querySelector(c)===null&&(n=l.createElement("link"),Ht(n,"link",t),Lt(n),l.head.appendChild(n)))}}function G3(t){br.D(t),nx("dns-prefetch",t,null)}function Y3(t,n){br.C(t,n),nx("preconnect",t,n)}function X3(t,n,a){br.L(t,n,a);var l=so;if(l&&t&&n){var c='link[rel="preload"][as="'+xn(n)+'"]';n==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+xn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+xn(a.imageSizes)+'"]')):c+='[href="'+xn(t)+'"]';var h=c;switch(n){case"style":h=co(t);break;case"script":h=fo(t)}Cn.has(h)||(t=g({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:t,as:n},a),Cn.set(h,t),l.querySelector(c)!==null||n==="style"&&l.querySelector(ql(h))||n==="script"&&l.querySelector(Bl(h))||(n=l.createElement("link"),Ht(n,"link",t),Lt(n),l.head.appendChild(n)))}}function Z3(t,n){br.m(t,n);var a=so;if(a&&t){var l=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+xn(l)+'"][href="'+xn(t)+'"]',h=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=fo(t)}if(!Cn.has(h)&&(t=g({rel:"modulepreload",href:t},n),Cn.set(h,t),a.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Bl(h)))return}l=a.createElement("link"),Ht(l,"link",t),Lt(l),a.head.appendChild(l)}}}function P3(t,n,a){br.S(t,n,a);var l=so;if(l&&t){var c=Ma(l).hoistableStyles,h=co(t);n=n||"default";var v=c.get(h);if(!v){var _={loading:0,preload:null};if(v=l.querySelector(ql(h)))_.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":n},a),(a=Cn.get(h))&&Dp(t,a);var C=v=l.createElement("link");Lt(C),Ht(C,"link",t),C._p=new Promise(function(U,Y){C.onload=U,C.onerror=Y}),C.addEventListener("load",function(){_.loading|=1}),C.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Ks(v,n,l)}v={type:"stylesheet",instance:v,count:1,state:_},c.set(h,v)}}}function K3(t,n){br.X(t,n);var a=so;if(a&&t){var l=Ma(a).hoistableScripts,c=fo(t),h=l.get(c);h||(h=a.querySelector(Bl(c)),h||(t=g({src:t,async:!0},n),(n=Cn.get(c))&&wp(t,n),h=a.createElement("script"),Lt(h),Ht(h,"link",t),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(c,h))}}function J3(t,n){br.M(t,n);var a=so;if(a&&t){var l=Ma(a).hoistableScripts,c=fo(t),h=l.get(c);h||(h=a.querySelector(Bl(c)),h||(t=g({src:t,async:!0,type:"module"},n),(n=Cn.get(c))&&wp(t,n),h=a.createElement("script"),Lt(h),Ht(h,"link",t),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(c,h))}}function rx(t,n,a,l){var c=(c=fe.current)?Ps(c):null;if(!c)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=co(a.href),a=Ma(c).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=co(a.href);var h=Ma(c).hoistableStyles,v=h.get(t);if(v||(c=c.ownerDocument||c,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,v),(h=c.querySelector(ql(t)))&&!h._p&&(v.instance=h,v.state.loading=5),Cn.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Cn.set(t,a),h||W3(c,t,a,v.state))),n&&l===null)throw Error(o(528,""));return v}if(n&&l!==null)throw Error(o(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=fo(a),a=Ma(c).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function co(t){return'href="'+xn(t)+'"'}function ql(t){return'link[rel="stylesheet"]['+t+"]"}function ix(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function W3(t,n,a,l){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=t.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),Ht(n,"link",a),Lt(n),t.head.appendChild(n))}function fo(t){return'[src="'+xn(t)+'"]'}function Bl(t){return"script[async]"+t}function ax(t,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=t.querySelector('style[data-href~="'+xn(a.href)+'"]');if(l)return n.instance=l,Lt(l),l;var c=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Lt(l),Ht(l,"style",c),Ks(l,a.precedence,t),n.instance=l;case"stylesheet":c=co(a.href);var h=t.querySelector(ql(c));if(h)return n.state.loading|=4,n.instance=h,Lt(h),h;l=ix(a),(c=Cn.get(c))&&Dp(l,c),h=(t.ownerDocument||t).createElement("link"),Lt(h);var v=h;return v._p=new Promise(function(_,C){v.onload=_,v.onerror=C}),Ht(h,"link",l),n.state.loading|=4,Ks(h,a.precedence,t),n.instance=h;case"script":return h=fo(a.src),(c=t.querySelector(Bl(h)))?(n.instance=c,Lt(c),c):(l=a,(c=Cn.get(h))&&(l=g({},a),wp(l,c)),t=t.ownerDocument||t,c=t.createElement("script"),Lt(c),Ht(c,"link",l),t.head.appendChild(c),n.instance=c);case"void":return null;default:throw Error(o(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,Ks(l,a.precedence,t));return n.instance}function Ks(t,n,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,h=c,v=0;v title"):null)}function e5(t,n,a){if(a===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function ux(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function t5(t,n,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=co(l.href),h=n.querySelector(ql(c));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=Ws.bind(t),n.then(t,t)),a.state.loading|=4,a.instance=h,Lt(h);return}h=n.ownerDocument||n,l=ix(l),(c=Cn.get(c))&&Dp(l,c),h=h.createElement("link"),Lt(h);var v=h;v._p=new Promise(function(_,C){v.onload=_,v.onerror=C}),Ht(h,"link",l),a.instance=h}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Ws.bind(t),n.addEventListener("load",a),n.addEventListener("error",a))}}var Ap=0;function n5(t,n){return t.stylesheets&&t.count===0&&tc(t,t.stylesheets),0Ap?50:800)+n);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(c)}}:null}function Ws(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ec=null;function tc(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ec=new Map,n.forEach(r5,t),ec=null,Ws.call(t))}function r5(t,n){if(!(n.state.loading&4)){var a=ec.get(t);if(a)var l=a.get(null);else{a=new Map,ec.set(t,a);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),cc.exports=Cx(),cc.exports}var Rx=kx(),mc=function(e,r){return mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(i[u]=o[u])},mc(e,r)};function In(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");mc(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}var R=function(){return R=Object.assign||function(r){for(var i,o=1,u=arguments.length;o0&&s[s.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]0?At(Pi,--yn):0,Zi--,St===10&&(Zi=1,Xl--),St}function zn(){return St=yn2||bo(St)>3?"":" "}function Ix(e,r){for(;--r&&zn()&&!(St<48||St>102||St>57&&St<65||St>70&&St<97););return Kl(e,Pl()+(r<6&&Tr()==32&&zn()==32))}function _c(e){for(;zn();)switch(St){case e:return yn;case 34:case 39:e!==34&&e!==39&&_c(St);break;case 40:e===41&&_c(e);break;case 92:zn();break}return yn}function Vx(e,r){for(;zn()&&e+St!==57;)if(e+St===84&&Tr()===47)break;return"/*"+Kl(r,yn-1)+"*"+yc(e===47?e:zn())}function Qx(e){for(;!bo(Tr());)zn();return Kl(e,yn)}function Hx(e){return qx(Jl("",null,null,null,[""],e=Ux(e),0,[0],e))}function Jl(e,r,i,o,u,s,f,d,m){for(var p=0,y=0,g=f,b=0,x=0,O=0,A=1,k=1,D=1,N=0,j="",z=u,I=s,G=o,B=j;k;)switch(O=N,N=zn()){case 40:if(O!=108&&At(B,g-1)==58){Yl(B+=we(bc(N),"&","&\f"),"&\f",Yp(p?d[p-1]:0))!=-1&&(D=-1);break}case 34:case 39:case 91:B+=bc(N);break;case 9:case 10:case 13:case 32:B+=Bx(O);break;case 92:B+=Ix(Pl()-1,7);continue;case 47:switch(Tr()){case 42:case 47:go(Gx(Vx(zn(),Pl()),r,i,m),m),(bo(O||1)==5||bo(Tr()||1)==5)&&Mn(B)&&hi(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*A:d[p++]=Mn(B)*D;case 125*A:case 59:case 0:switch(N){case 0:case 125:k=0;case 59+y:D==-1&&(B=we(B,/\f/g,"")),x>0&&(Mn(B)-g||A===0&&O===47)&&go(x>32?Wp(B+";",o,i,g-1,m):Wp(we(B," ","")+";",o,i,g-2,m),m);break;case 59:B+=";";default:if(go(G=Jp(B,r,i,p,y,u,d,j,z=[],I=[],g,s),s),N===123)if(y===0)Jl(B,r,G,G,z,s,g,d,I);else{switch(b){case 99:if(At(B,3)===110)break;case 108:if(At(B,2)===97)break;default:y=0;case 100:case 109:case 115:}y?Jl(e,G,G,o&&go(Jp(e,G,G,0,0,u,d,j,u,z=[],g,I),I),u,I,g,d,o?z:I):Jl(B,G,G,G,[""],I,0,d,I)}}p=y=x=0,A=D=1,j=B="",g=f;break;case 58:g=1+Mn(B),x=O;default:if(A<1){if(N==123)--A;else if(N==125&&A++==0&&Fx()==125)continue}switch(B+=yc(N),N*A){case 38:D=y>0?1:(B+="\f",-1);break;case 44:d[p++]=(Mn(B)-1)*D,D=1;break;case 64:Tr()===45&&(B+=bc(zn())),b=Tr(),y=g=Mn(j=B+=Qx(Pl())),N++;break;case 45:O===45&&Mn(B)==2&&(A=0)}}return s}function Jp(e,r,i,o,u,s,f,d,m,p,y,g){for(var b=u-1,x=u===0?s:[""],O=Zp(x),A=0,k=0,D=0;A0?x[N]+" "+j:we(j,/&\f/g,x[N])))&&(m[D++]=z);return Zl(e,r,i,u===0?Gl:d,m,p,y,g)}function Gx(e,r,i,o){return Zl(e,r,i,Hp,yc(Lx()),hi(e,2,-2),0,o)}function Wp(e,r,i,o,u){return Zl(e,r,i,vc,hi(e,0,o),hi(e,o+1,-1),o,u)}function em(e,r,i){switch(Nx(e,r)){case 5103:return Be+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Be+e+e;case 4855:return Be+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return yo+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Be+e+yo+e+it+e+e;case 5936:switch(At(e,r+11)){case 114:return Be+e+it+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Be+e+it+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Be+e+it+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Be+e+it+e+e;case 6165:return Be+e+it+"flex-"+e+e;case 5187:return Be+e+we(e,/(\w+).+(:[^]+)/,Be+"box-$1$2"+it+"flex-$1$2")+e;case 5443:return Be+e+it+"flex-item-"+we(e,/flex-|-self/g,"")+(Pn(e,/flex-|baseline/)?"":it+"grid-row-"+we(e,/flex-|-self/g,""))+e;case 4675:return Be+e+it+"flex-line-pack"+we(e,/align-content|flex-|-self/g,"")+e;case 5548:return Be+e+it+we(e,"shrink","negative")+e;case 5292:return Be+e+it+we(e,"basis","preferred-size")+e;case 6060:return Be+"box-"+we(e,"-grow","")+Be+e+it+we(e,"grow","positive")+e;case 4554:return Be+we(e,/([^-])(transform)/g,"$1"+Be+"$2")+e;case 6187:return we(we(we(e,/(zoom-|grab)/,Be+"$1"),/(image-set)/,Be+"$1"),e,"")+e;case 5495:case 3959:return we(e,/(image-set\([^]*)/,Be+"$1$`$1");case 4968:return we(we(e,/(.+:)(flex-)?(.*)/,Be+"box-pack:$3"+it+"flex-pack:$3"),/space-between/,"justify")+Be+e+e;case 4200:if(!Pn(e,/flex-|baseline/))return it+"grid-column-align"+hi(e,r)+e;break;case 2592:case 3360:return it+we(e,"template-","")+e;case 4384:case 3616:return i&&i.some(function(o,u){return r=u,Pn(o.props,/grid-\w+-end/)})?~Yl(e+(i=i[r].value),"span",0)?e:it+we(e,"-start","")+e+it+"grid-row-span:"+(~Yl(i,"span",0)?Pn(i,/\d+/):+Pn(i,/\d+/)-+Pn(e,/\d+/))+";":it+we(e,"-start","")+e;case 4896:case 4128:return i&&i.some(function(o){return Pn(o.props,/grid-\w+-start/)})?e:it+we(we(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return we(e,/(.+)-inline(.+)/,Be+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mn(e)-1-r>6)switch(At(e,r+1)){case 109:if(At(e,r+4)!==45)break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+Be+"$2-$3$1"+yo+(At(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Yl(e,"stretch",0)?em(we(e,"stretch","fill-available"),r,i)+e:e}break;case 5152:case 5920:return we(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,u,s,f,d,m,p){return it+u+":"+s+p+(f?it+u+"-span:"+(d?m:+m-+s)+p:"")+e});case 4949:if(At(e,r+6)===121)return we(e,":",":"+Be)+e;break;case 6444:switch(At(e,At(e,14)===45?18:11)){case 120:return we(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Be+(At(e,14)===45?"inline-":"")+"box$3$1"+Be+"$2$3$1"+it+"$2box$3")+e;case 100:return we(e,":",":"+it)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return we(e,"scroll-","scroll-snap-")+e}return e}function Wl(e,r){for(var i="",o=0;o-1&&!e.return)switch(e.type){case vc:e.return=em(e.value,e.length,i);return;case Gp:return Wl([Er(e,{value:we(e.value,"@","@"+Be)})],o);case Gl:if(e.length)return $x(i=e.props,function(u){switch(Pn(u,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ki(Er(e,{props:[we(u,/:(read-\w+)/,":"+yo+"$1")]})),Ki(Er(e,{props:[u]})),gc(e,{props:Pp(i,o)});break;case"::placeholder":Ki(Er(e,{props:[we(u,/:(plac\w+)/,":"+Be+"input-$1")]})),Ki(Er(e,{props:[we(u,/:(plac\w+)/,":"+yo+"$1")]})),Ki(Er(e,{props:[we(u,/:(plac\w+)/,it+"input-$1")]})),Ki(Er(e,{props:[u]})),gc(e,{props:Pp(i,o)});break}return""})}}var Kx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Yt={NODE_ENV:"production"},Ji=typeof process<"u"&&Yt!==void 0&&(Yt.REACT_APP_SC_ATTR||Yt.SC_ATTR)||"data-styled",tm="active",nm="data-styled-version",eu="6.3.9",xc=`/*!sc*/ `,_o=typeof window<"u"&&typeof document<"u",jn=tt.createContext===void 0,Jx=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Yt!==void 0&&Yt.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Yt.REACT_APP_SC_DISABLE_SPEEDY!==""?Yt.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Yt.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Yt!==void 0&&Yt.SC_DISABLE_SPEEDY!==void 0&&Yt.SC_DISABLE_SPEEDY!==""?Yt.SC_DISABLE_SPEEDY!=="false"&&Yt.SC_DISABLE_SPEEDY:Yt.NODE_ENV!=="production"),Wx={},Sc=Object.freeze([]),Wi=Object.freeze({});function rm(e,r,i){return i===void 0&&(i=Wi),e.theme!==i.theme&&e.theme||r||i.theme}var im=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),eS=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,tS=/(^-|-$)/g;function am(e){return e.replace(eS,"-").replace(tS,"")}var nS=/(a)(d)/gi,om=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ec(e){var r,i="";for(r=Math.abs(e);r>52;r=r/52|0)i=om(r%52)+i;return(om(r%52)+i).replace(nS,"$1-$2")}var Tc,di=function(e,r){for(var i=r.length;i;)e=33*e^r.charCodeAt(--i);return e},lm=function(e){return di(5381,e)};function Oc(e){return Ec(lm(e)>>>0)}function rS(e){return e.displayName||e.name||"Component"}function Dc(e){return typeof e=="string"&&Yt.NODE_ENV==="production"}var um=typeof Symbol=="function"&&Symbol.for,sm=um?Symbol.for("react.memo"):60115,iS=um?Symbol.for("react.forward_ref"):60112,aS={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},oS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},cm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lS=((Tc={})[iS]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tc[sm]=cm,Tc);function fm(e){return("type"in(r=e)&&r.type.$$typeof)===sm?cm:"$$typeof"in e?lS[e.$$typeof]:aS;var r}var uS=Object.defineProperty,sS=Object.getOwnPropertyNames,hm=Object.getOwnPropertySymbols,cS=Object.getOwnPropertyDescriptor,fS=Object.getPrototypeOf,dm=Object.prototype;function pm(e,r,i){if(typeof r!="string"){if(dm){var o=fS(r);o&&o!==dm&&pm(e,o,i)}var u=sS(r);hm&&(u=u.concat(hm(r)));for(var s=fm(e),f=fm(r),d=0;d0?" Args: ".concat(r.join(", ")):""))}var hS=(function(){function e(r){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=r,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(r){if(r===this._cGroup)return this._cIndex;var i=this._cIndex;if(r>this._cGroup)for(var o=this._cGroup;o=r;o--)i-=this.groupSizes[o];return this._cGroup=r,this._cIndex=i,i},e.prototype.insertRules=function(r,i){if(r>=this.groupSizes.length){for(var o=this.groupSizes,u=o.length,s=u;r>=s;)if((s<<=1)<0)throw vi(16,"".concat(r));this.groupSizes=new Uint32Array(s),this.groupSizes.set(o),this.length=s;for(var f=u;f0&&this._cGroup>r&&(this._cIndex+=m)},e.prototype.clearGroup=function(r){if(r0&&this._cGroup>r&&(this._cIndex-=i)}},e.prototype.getGroup=function(r){var i="";if(r>=this.length||this.groupSizes[r]===0)return i;for(var o=this.groupSizes[r],u=this.indexOfGroup(r),s=u+o,f=u;f=0){var o=document.createTextNode(i);return this.element.insertBefore(o,this.nodes[r]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(r){this.element.removeChild(this.nodes[r]),this.length--},e.prototype.getRule=function(r){return r0&&(k+=D+",")}),m+=O+A+'{content:"'+k+'"}'+xc},y=0;y0?".".concat(r):O},y=m.slice();y.push(function(O){O.type===Gl&&O.value.includes("&")&&(o||(o=new RegExp("\\".concat(i,"\\b"),"g")),O.props[0]=O.props[0].replace(ES,i).replace(o,p))}),f.prefix&&y.push(Px),y.push(Yx);var g=[],b=Xx(y.concat(Zx(function(O){return g.push(O)}))),x=function(O,A,k,D){A===void 0&&(A=""),k===void 0&&(k=""),D===void 0&&(D="&"),r=D,i=A,o=void 0;var N=(function(z){if(!gm(z))return z;for(var I=z.length,G="",B=0,J=0,oe=0,_e=!1,ce=0;ce=3&&(32|z.charCodeAt(J-1))==108&&(32|z.charCodeAt(J-2))==114&&(32|z.charCodeAt(J-3))==117)_e=1,J++;else if(_e>0)ce===41?_e--:ce===40&&_e++,J++;else if(ce===yi&&J+1B&&G.push(z.substring(B,J)),B=J+=2;else if(ce===Kn&&J+1B&&G.push(z.substring(B,J));J="A"&&e<="Z"};function Sm(e){for(var r="",i=0;i>>0);if(!i.hasNameForId(this.componentId,f)){var d=o(s,".".concat(f),void 0,this.componentId);i.insertRules(this.componentId,f,d)}u=mi(u,f),this.staticRulesId=f}else{for(var m=di(this.baseHash,o.hash),p="",y=0;y>>0);if(!i.hasNameForId(this.componentId,x)){var O=o(p,".".concat(x),void 0,this.componentId);i.insertRules(this.componentId,x,O)}u=mi(u,x)}}return{className:u,css:typeof window>"u"?i.getTag().getGroup(ea(this.componentId)):""}},e})(),ta=jn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:tt.createContext(void 0);ta.Consumer;function kS(e){if(jn)return e.children;var r=tt.useContext(ta),i=tt.useMemo(function(){return(function(o,u){if(!o)throw vi(14);if(pi(o)){var s=o(u);return s}if(Array.isArray(o)||typeof o!="object")throw vi(8);return u?R(R({},u),o):o})(e.theme,r)},[e.theme,r]);return e.children?tt.createElement(ta.Provider,{value:i},e.children):null}var Nc={};function RS(e,r,i){var o=wc(e),u=e,s=!Dc(e),f=r.attrs,d=f===void 0?Sc:f,m=r.componentId,p=m===void 0?(function(z,I){var G=typeof z!="string"?"sc":am(z);Nc[G]=(Nc[G]||0)+1;var B="".concat(G,"-").concat(Oc(eu+G+Nc[G]));return I?"".concat(I,"-").concat(B):B})(r.displayName,r.parentComponentId):m,y=r.displayName,g=y===void 0?(function(z){return Dc(z)?"styled.".concat(z):"Styled(".concat(rS(z),")")})(e):y,b=r.displayName&&r.componentId?"".concat(am(r.displayName),"-").concat(r.componentId):r.componentId||p,x=o&&u.attrs?u.attrs.concat(d).filter(Boolean):d,O=r.shouldForwardProp;if(o&&u.shouldForwardProp){var A=u.shouldForwardProp;if(r.shouldForwardProp){var k=r.shouldForwardProp;O=function(z,I){return A(z,I)&&k(z,I)}}else O=A}var D=new CS(i,b,o?u.componentStyle:void 0);function N(z,I){return(function(G,B,J){var oe=G.attrs,_e=G.componentStyle,ce=G.defaultProps,Te=G.foldedComponentIds,ge=G.styledComponentId,Xe=G.target,dt=jn?void 0:tt.useContext(ta),Q=jc(),te=G.shouldForwardProp||Q.shouldForwardProp,me=rm(B,dt,ce)||(jn?void 0:Wi),L=(function(ve,pe,He){for(var Ae,Fe=R(R({},pe),{className:void 0,theme:He}),de=0;de2&&au.registerId(this.componentId+r);var s=this.componentId+r;this.isStatic?o.hasNameForId(s,s)||this.createStyles(r,i,o,u):(this.removeStyles(r,o),this.createStyles(r,i,o,u))},e})();function zS(e){for(var r=[],i=1;i"u"||!y.styleSheet.server)&&m(b,p,y.styleSheet,g,y.stylis),jn||tt.useLayoutEffect(function(){return y.styleSheet.server||m(b,p,y.styleSheet,g,y.stylis),function(){var A;s.removeStyles(b,y.styleSheet),A=y.styleSheet.options.target,typeof document<"u"&&(A??document).querySelectorAll('style[data-styled-global="'.concat(u,'"]')).forEach(function(k){return k.remove()})}},[b,p,y.styleSheet,g,y.stylis]),jn){var x=u+b,O=typeof window>"u"?y.styleSheet.getTag().getGroup(ea(x)):"";if(O)return tt.createElement("style",{key:"".concat(u,"-").concat(b),"data-styled-global":u,children:O})}return null};function m(p,y,g,b,x){if(s.isStatic)s.renderStyles(p,Wx,g,x);else{var O=R(R({},y),{theme:rm(y,b,d.defaultProps)});s.renderStyles(p,O,g,x)}}return tt.memo(d)}function gi(e){for(var r=[],i=1;i(e.loginG="#238728",e.warning="#F4E42C",e.inputGrey="#EEEEEE",e.redD="#A9132F",e.red="#D20A2D",e.orange="#DE4238",e.orangeL="#F8A694",e.orangeXL="#FDC99B",e.orangeXXL="#FCEDEC",e.beige="#DDD8CC",e.beigeXL="#f0ede6",e.yellowD="#E3C216",e.yellowM="#EDCE5F",e.yellow="#EFD964",e.yellowL="#FEFBEF",e.lime="#C7DC8A",e.mint="#86D293",e.greenD="#00594F",e.green="#51BE64",e.greenL="#61CD74",e.greenXL="#F1F9F7",e.tealXD="#4DAEB4",e.tealD="#AEDFE6",e.teal="#9AD6D3",e.tealL="#A1D6CA",e.tealXL="#84B6A0",e.grayXD="#231F20",e.grayD="#464D54",e.grayM="#5A5F65",e.gray="#666D76",e.grayL="#D5DEE4",e.grayXL="#E7EEF3",e.grayXXL="#EFF5FA",e.grayLite="#575653",e.graniteD="#4F5468",e.inverseG="#3A3938",e.granite="#8C98A3",e.graniteL="#ADB4B9",e.white="#FFFFFF",e.black="#000000",e.facebook="#4267B2",e.google="#DB4437",e.apple="#7D7D7D",e.info="#CCFFFF",e.infoIcon="#66CCFF",e.feedbackOk="#F0FAF2",e))(Cm||{});const Dr={xsmall:520,medium:768,large:1024,xlarge:1280,xxlarge:1440,xxxlarge:1920},wr=e=>`@media(${e})`,at={custom:wr,xsmall:wr(`max-width: ${Dr.xsmall}px`),small:wr(`max-width: ${Dr.medium-1}px`),medium:wr(`min-width: ${Dr.medium}px`),large:wr(`min-width: ${Dr.large}px`),xlarge:wr(`min-width: ${Dr.xlarge}px`),xxlarge:wr(`min-width: ${Dr.xxlarge}px`),xxxlarge:wr(`min-width: ${Dr.xxxlarge}px`)},ke={regular:` font-family: "nunito_sans", Arial, Verdana, Helvetica, sans-serif; font-weight: 400; `,semibold:` font-family: "nunito_sans", Arial, Verdana, Helvetica, sans-serif; font-weight: 600; `,bold:` font-family: "nunito_sans", Arial, Verdana, Helvetica, sans-serif; font-weight: 700; `,extrabold:` font-family: "nunito_sans", Arial, Verdana, Helvetica, sans-serif; font-weight: 800; `,black:` font-family: "nunito_sans", Arial, Verdana, Helvetica, sans-serif; font-weight: 900; `},Xt={layout:{bodyScrollBar:{width:14},header:{height:100},checkoutHeader:{height:60},categoryBar:{height:60},letterHeader:{height:60},container:{width:1180},productListGrid:{width:3*270+40},bottomBarHeight:{sideNav:37,product:60,cart:{mobile:132,tablet:152},checkout:{mobile:64,tablet:82}}},fontWeight:ke,typo:{body:{font:ke.regular,fontSize:16,lineHeight:22,letterSpacing:"-0.02em",color:"#666D76"},boldBody:{font:ke.bold,fontSize:16,lineHeight:22,letterSpacing:"-0.02em",color:"#666D76"},ebold16:{font:ke.extrabold,fontSize:16,lineHeight:24,letterSpacing:"-0.02em",color:"#666D76"},h1:{font:ke.bold,fontSize:54,lineHeight:54,letterSpacing:"-0.02em",color:"#464D54"},extraboldH1:{font:ke.extrabold,fontSize:54,lineHeight:54,letterSpacing:"-0.02em",color:"#464D54"},h2:{font:ke.extrabold,fontSize:40,lineHeight:40,letterSpacing:"-0.01em",color:"#464D54"},blackH2:{font:ke.black,fontSize:40,lineHeight:48,letterSpacing:"-0.01em",color:"#464D54"},h3:{font:ke.bold,fontSize:30,lineHeight:36,letterSpacing:"-0.02em",color:"#464D54"},extraboldH3:{font:ke.extrabold,fontSize:30,lineHeight:36,letterSpacing:"-0.02em",color:"#464D54"},regularH4:{font:ke.regular,fontSize:24,lineHeight:33,letterSpacing:"-0.02em",color:"#464D54"},h4:{font:ke.bold,fontSize:24,lineHeight:30,letterSpacing:"-0.02em",color:"#464D54"},extraboldH4:{font:ke.extrabold,fontSize:24,lineHeight:30,letterSpacing:"-0.02em",color:"#464D54"},extrabold14:{font:ke.extrabold,fontSize:14,lineHeight:17,letterSpacing:"-0.02em"},h5:{font:ke.bold,fontSize:20,lineHeight:20,letterSpacing:"-0.02em",color:"#464D54"},extraboldH5:{font:ke.extrabold,fontSize:20,lineHeight:28,letterSpacing:"-0.02em",color:"#464D54"},h6:{font:ke.semibold,fontSize:18,lineHeight:24,letterSpacing:"-0.02em",color:"#464D54"},semiboldH6:{font:ke.bold,fontSize:18,lineHeight:24,letterSpacing:"-0.02em",color:"#464D54"},boldH6:{font:ke.extrabold,fontSize:18,lineHeight:24,letterSpacing:"-0.02em",color:"#464D54"},regular18:{font:ke.regular,fontSize:18,lineHeight:24,letterSpacing:"-0.02em"},extraBold16:{font:ke.extrabold,letterSpacing:"-0.02em"},bold16:{font:ke.bold,letterSpacing:"-0.02em",fontSize:16,lineHeight:22,color:"#666D76"},semibold16:{font:ke.semibold,letterSpacing:"-0.02em"},semiboldUpper16:{font:ke.semibold,letterSpacing:"-0.02em",textTransform:"uppercase"},boldUpper16:{font:ke.bold,letterSpacing:"-0.02em",textTransform:"uppercase"},regular14:{fontSize:14,lineHeight:17,letterSpacing:"-0.02em"},semibold14:{font:ke.semibold,fontSize:14,lineHeight:28,letterSpacing:"-0.02em"},bold14:{font:ke.bold,fontSize:14,lineHeight:17,letterSpacing:"-0.02em"},boldUpper14:{font:ke.bold,fontSize:14,lineHeight:17,letterSpacing:"-0.02em",textTransform:"uppercase"},regular12:{fontSize:12,lineHeight:15},semibold12:{font:ke.semibold,fontSize:12,lineHeight:15},bold12:{font:ke.bold,fontSize:12,lineHeight:15},ebold12:{font:ke.extrabold,fontSize:12,lineHeight:16},semiboldUpper12:{font:ke.semibold,fontSize:12,lineHeight:12,textTransform:"uppercase",letterSpacing:"0.1em"},boldUpper12:{font:ke.bold,fontSize:12,lineHeight:12,textTransform:"uppercase",letterSpacing:"0.05em"},regular10:{fontSize:10,lineHeight:12},bold10:{font:ke.bold,fontSize:10,lineHeight:12},upper10:{fontSize:10,lineHeight:10,textTransform:"uppercase",letterSpacing:"0.05em"},semiboldUpper10:{font:ke.semibold,fontSize:10,lineHeight:10,textTransform:"uppercase"},boldUpper10:{font:ke.bold,fontSize:10,lineHeight:10,textTransform:"uppercase",letterSpacing:"0.05em"},bold8:{font:ke.bold,fontSize:8,lineHeight:8}},color:{...Cm},radius:{mini:"2px",small:"4px",medium:"8px",large:"20px"},shadow:{gray:"0px 0px 20px rgba(213, 222, 228, 0.5)",red:"0px 8px 16px rgba(215, 24, 60, 0.16)"},transition:{hover:"200ms ease-out",motion:"300ms ease-in-out"},button:{login:{background:"#238728",color:"#FFFFFF",hover:{background:"#238728"},disabled:{background:"#238728",color:"#8C98A3"}},warning:{background:"#F4E42C",color:"#575653",hover:{background:"#F4E42C"},disabled:{background:"#F4E42C",color:"#8C98A3"}},inverse:{background:"#3A3938",color:"#FFFFFF",hover:{background:"#3A3938"},disabled:{background:"#3A3938",color:"#8C98A3"}},inverseGrey:{background:"#FFFFFF",color:"#8C98A3",hover:{background:"#FFFFFF"},disabled:{background:"#FFFFFF",color:"#8C98A3"}},primary:{background:"#D20A2D",color:"#FFFFFF",hover:{background:"#A9132F"},disabled:{background:"#E7EEF3",color:"#8C98A3"}},secondary:{background:"#FFFFFF",color:"#D20A2D",borderColor:"#D20A2D",hover:{background:"#FFFFFF",borderColor:"#A9132F",color:"#A9132F"},focus:{background:"#A9132F",color:"#FFFFFF"},disabled:{color:"#8C98A3",borderColor:"#ADB4B9"}},toggle:{background:"#EFF5FA",color:"#8C98A3",hover:{background:"#EFF5FA",color:"#D20A2D"},pressed:{color:"#D20A2D"},disabled:{color:"#ADB4B9"}},transparent:{background:"transparent",color:"#FFFFFF",hover:{background:"#A9132F"},pressed:{color:"#D20A2D"},disabled:{color:"#ADB4B9"}}},input:{background:"#EFF5FA",color:"#464D54",borderColor:"#EFF5FA",placeholder:{color:"#8C98A3"},focus:{background:"#FFFFFF",borderColor:"#D5DEE4"},disabled:{background:"#D5DEE4",color:"#464D54",borderColor:"#D5DEE4"},error:{color:"#DE4238",borderColor:"#DE4238"}},dropdown:{background:{color:"#FFFFFF",hover:"#E7EEF3"},color:"#464D54",borderColor:"#D5DEE4"}},km=(e,r)=>typeof e=="number"&&e>1?`flex-basis: ${e}px;`:typeof e=="number"&&e<=1?`flex: 0 0 calc(${e*100}% - ${r}px);`:e==="grow"?"flex: 1 1 auto;":e==="none"?"flex: 0 0 auto;":"flex: 0 1 auto;",So=e=>` ${e.$alignSelf?`align-self: ${e.$alignSelf};`:""} ${e.$order?`order: ${e.$order};`:""} ${km(e.$flex||"shrink",e.$gutterMargin||0)} ${e.$gutterMargin?` margin-left: ${e.$gutterMargin/2}px; margin-right: ${e.$gutterMargin/2}px; `:""} ${e.$gutterMargin===0?` margin-left: 0px; margin-right: 0px; `:""} `,jS=W.div` align-self: ${e=>e.$alignSelf||"auto"}; ${e=>e.$order&&`order: ${e.$order};`} ${e=>km(e.$flex||"shrink",e.$gutterMargin||0)} ${e=>e.$gutterMargin?` margin-left: ${e.$gutterMargin/2}px; margin-right: ${e.$gutterMargin/2}px; `:""} ${e=>e.$gutterMargin===0?` margin-left: 0px; margin-right: 0px; `:""} ${e=>e.$bpMedium&&` ${at.medium} { ${So(e.$bpMedium)} } `} ${e=>e.$bpLarge&&` ${at.large} { ${So(e.$bpLarge)} } `} ${e=>e.$bpXLarge&&` ${at.xlarge} { ${So(e.$bpXLarge)} } `} ${e=>e.$bpXXLarge&&` ${at.xxlarge} { ${So(e.$bpXXLarge)} } `} ${e=>e.$bpXXXLarge&&` ${at.xxxlarge} { ${So(e.$bpXXXLarge)} } `} `,Eo=e=>` ${e.$display?`display: ${e.$display};`:""} ${e.$flexDirection?`flex-direction: ${e.$flexDirection};`:""} ${e.$flexWrap?`flex-wrap: ${e.$flexWrap};`:""} ${e.$justifyContent?`justify-content: ${e.$justifyContent};`:""} ${e.$alignItems?`align-items: ${e.$alignItems};`:""} ${e.$alignContent?`align-content: ${e.$alignContent};`:""} ${e.$gutterMargin?` margin-left: ${e.$gutterMargin/2*-1}px; margin-right: ${e.$gutterMargin/2*-1}px; `:""} ${e.$gutterMargin===0?` margin-left: 0px; margin-right: 0px; `:""} `,ae={Container:W.div` display: ${e=>e.$display||"flex"}; flex-direction: ${e=>e.$flexDirection||"row"}; flex-wrap: ${e=>e.$flexWrap||"nowrap"}; justify-content: ${e=>e.$justifyContent||"flex-start"}; align-items: ${e=>e.$alignItems||"stretch"}; align-content: ${e=>e.$alignContent||"stretch"}; gap: ${e=>e.$gap||0}; ${e=>e.$gutterMargin?` margin-left: ${e.$gutterMargin/2*-1}px; margin-right: ${e.$gutterMargin/2*-1}px; `:""} ${e=>e.$gutterMargin===0&&` margin-left: 0px; margin-right: 0px; `} ${e=>e.$bpMedium&&` ${at.medium} { ${Eo(e.$bpMedium)} } `} ${e=>e.$bpLarge&&` ${at.large} { ${Eo(e.$bpLarge)} } `} ${e=>e.$bpXLarge&&` ${at.xlarge} { ${Eo(e.$bpXLarge)} } `} ${e=>e.$bpXXLarge&&` ${at.xxlarge} { ${Eo(e.$bpXXLarge)} } `} ${e=>e.$bpXXXLarge&&` ${at.xxxlarge} { ${Eo(e.$bpXXXLarge)} } `} `,Item:jS},Rm=W(ae.Container)` justify-content: center; padding-top: 40px; margin-bottom: 20px; text-align: center; @media (min-width: 768px) { margin-bottom: 40px; margin-top: ${({marginTop:e=0})=>e}px; padding-top: 0; } `,Nn=W.img` width: 100%; height: auto; max-width: ${({maxWidth:e})=>e?e+"px":"100%"}; `,To=W.div` position: relative; overflow: hidden; `,Lc=W.div` max-width: 1144px; color: #000; margin: 0 auto; margin-top: ${({marginTop:e})=>e?e+"px":"0"}; padding-left: 10px; padding-right: 10px; @media (min-width: 1200px) { padding-left: 0; padding-right: 0; } `,NS=W.section` background-image: url('https://storage.googleapis.com/microsites-microservice/product-testing/frontend/hero_mobile__1.webp'); background-size: 310px; background-repeat: no-repeat; background-position: bottom; position: relative; z-index: 1; background-color: #FFA7B5; padding-bottom: 16em; @media (min-width: 768px) { background-size: contain; background-position: right center; background-repeat: no-repeat; padding: 75px 0; } @media (min-width: 1024px) { background-image: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 6%), url('https://storage.googleapis.com/microsites-microservice/product-testing/frontend/hero_desktop.webp'); background-size: contain; background-position: right center; background-repeat: no-repeat; padding: 75px 0; } `,$S=W.div` color: white; font-family: 'Playfair Display', serif; margin-top: 0; padding-top: 30px; text-align: center; @media(min-width: 768px) { padding-top: 0; } `,LS=W.div` margin: 0 auto; width: 258px; @media(min-width: 768px) { width: 100%; margin: 0; } `,FS=W.div` background-color: white; text-align: center; border-bottom: 1px solid #E7EEF3; overflow-x: auto; position: sticky; top: ${({headerHeight:e})=>`${e}px`}; // Ha kell header alá left: 0; right: 0; width: 100%; z-index: 2; &::-webkit-scrollbar { display: none; } `,US=W.div` padding: 20px; position: relative; max-width: 1200px; margin: 0 auto; `,qS=W.ul` display: inline-flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; min-width: 635px; @media (min-width: 768px) { gap: 40px; } `,BS=W.li` list-style: none; `,IS=W.a` font-weight: bold; color: #464D54 !important; text-decoration: none !important; &:hover { text-decoration: none; color: #e60000; } `,Mm=W(To)` height: 100%; position: relative; margin: 0 auto; `,zm=W(To)` padding-bottom: 15px; padding-left: 0; padding-right: 0; @media (min-width: 768px) { padding-bottom: 37px; padding-left: 10px; padding-right: 10px; } `,VS=W(ae.Container)` padding: 40px 20px; max-width: 755px; margin: 20px auto; position: relative; @media (min-width: 767px) { border: 1px solid #D5DEE4; border-radius: 20px; margin: 50px auto; } `,QS=W(ae.Container)` background-color: #FFF; padding: 0 10px; position: relative; text-align: center; @media (min-width: 767px) { position: absolute; top: -20px; } `,HS=W(ae.Container)` margin: 20px auto; @media (min-width: 767px) { margin: 25px auto } `,GS=W.div` background-color: ${e=>e.error?"#FDEDED":"#DFF5E1"}; border: 1px solid ${e=>e.error?"#de4238":"#00A651"}; color: ${e=>e.error?"#de4238":"#00A651"}; padding: 15px; border-radius: 8px; text-align: center; `,YS=W(ae.Container)` max-width: 756px; justify-content: center; margin: 0 auto; `,XS=W(ae.Container)` margin-top: 20px; @media (min-width: 768px) { margin-top: 40px; } `,ZS=W.li` list-style-type: disc !important; margin-bottom: 24px `,PS=W.ul` padding: 0 20px; `,KS=gi` 0% { opacity: 0; } 100% { opacity: 1; } `,JS=gi` 0% { right: -100%; } 100% { right: 0; } `,WS=W.div` position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: ${e=>e.isOpen?"block":"none"}; animation-name: ${KS}; animation-duration: 0.5s; z-index: 10; `,eE=W.div` position: fixed; top: 0; right: ${e=>e.isOpen?"0":"-100%"}; height: 100%; max-width: 440px; background: white; padding: 20px; box-shadow: -1px 0 10px rgba(0, 0, 0, 0.2); transition: right 0.3s ease-in-out; display: flex; overflow-y: scroll; flex-direction: column; animation-name: ${JS}; animation-duration: 1s; z-index: 11; max-height: 100vh; `,tE=W.div` .hide-for-medium { @media (min-width: 768px) { display: none; } } .show-for-medium { @media (max-width: 767px) { display: none; } } `,nE=gi` from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } `,rE=W.div` position: relative; width: 100%; height: 368px; margin-top: 20px; border-radius: 12px; overflow: hidden; animation: ${nE} 0.5s ease-out; `,iE=W.div` width: 100%; height: 100%; background: #f5f5f5; cursor: pointer; `,aE=W.div` position: absolute; top: 50%; left: 12px; right: 12px; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; button { pointer-events: all; } `,jm=W.button` background: rgba(255, 255, 255, 0.9); border: none; border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.2s ease; &:hover { background: #fff; transform: scale(1.05); } svg { fill: #464D54; } `,oE=W.div` margin-top: 16px; padding: 12px 0; `,lE=W.div` position: relative; width: 68px; height: 68px; border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; flex-shrink: 0; border: 1px solid #E7EEF3; ${({active:e})=>e&&st` border-color: #D6203D; box-shadow: 0 0 0 1px rgba(214, 32, 61, 0.2); transform: scale(1.05); `} &:hover { transform: scale(1.02); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } @media (max-width: 768px) { width: 56px; height: 56px; } `,uE=W.img` width: 100%; height: 100%; display: block; transition: transform 0.2s ease; `,sE=gi` from { opacity: 0; } to { opacity: 1; } `,cE=W.div` position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(102, 109, 118, 0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; animation: ${sE} 0.3s ease-out; `,fE=W.div` max-width: 90vw; max-height: 90vh; border-radius: 16px; overflow: hidden; box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3); `,hE=W.button` position: absolute; top: 20px; right: 24px; background: #EFF5FA; border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #D20A2D; cursor: pointer; z-index: 10; transition: all 0.2s; &:hover { background: #fff; border-color: #D6203D; color: #D6203D; transform: scale(1.05); } `,dE=W.div` position: relative; background: #FFF; display: flex; justify-content: center; @media (min-width: 800px) { width: 800px; height: 600px; } `,pE=W.div` width: 320px; height: 100%; display: flex; justify-content: center; align-items: flex-end; overflow: auto; `,mE=W.div` position: absolute; top: 50%; left: 20px; right: 20px; display: flex; justify-content: space-between; transform: translateY(-50%); z-index: 1; `,Nm=W.button` background: rgba(255, 255, 255, 0.95); border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); transition: all 0.2s ease; &:hover { background: #fff; border-color: #fff; transform: scale(1.1); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); } svg { fill: #464D54; } `,vE=W.div` background: #f8fafc; padding: 0 5px; @media (min-width: 768px) { padding: 0 40px; } `,yE=W.div` width: 80px; height: 80px; border-radius: 12px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; flex-shrink: 0; border: 3px solid transparent; margin: 0 2px; ${({active:e})=>e&&st` border-color: #D6203D; box-shadow: 0 0 0 3px rgba(214, 32, 61, 0.15); `} &:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); } `,gE=W.img` width: 100%; height: 100%; object-fit: cover; `,bE=(e={},r)=>Object.entries(e).map(([i,o])=>{const u=r.typo[o]??{};return u.fontSize?` ${at[i]} { ${u.font} font-size: ${u.fontSize}px; line-height: ${u.lineHeight}px; letter-spacing: ${u.letterSpacing}; color: ${u.color}; } `:""}).join(""),_E=(e={})=>Object.entries(e).map(([r,i])=>{const o=at[r];return o?` ${o} { color: ${i}; } `:""}).join(""),xE=W.div` ${({variant:e="body",theme:r})=>{const i=r.typo[e]??{};return` ${i.font} font-size: ${i.fontSize}px; line-height: ${i.lineHeight}px; letter-spacing: ${i.letterSpacing}; color: ${i.color}; `}} ${({$bpVariant:e,theme:r})=>bE(e,r)} `,SE=W(xE)` color: ${e=>e.color}; ${({$bpColor:e})=>_E(e)}; `;W.span` font-size: 16px; line-height: 22px; `;const $m=st` font-size: 16px; line-height: 22px; margin-bottom: 20px; `;W.p` ${$m} `,W.div` ${$m} `,W.h1` display: block; color: ${Xt.color.grayD}; font-size: 24px; line-height: 30px; ${Xt.fontWeight.extrabold}; margin-top: 0; margin-bottom: 20px; text-transform: uppercase; ${at.medium} { font-size: 39px; line-height: 46px; } ${at.large} { font-size: 54px; line-height: 54px; } `,W.h2` display: block; color: ${Xt.color.grayD}; font-size: 24px; line-height: 30px; ${Xt.fontWeight.extrabold}; margin-top: 0; margin-bottom: 20px; ${at.medium} { font-size: 32px; line-height: 36px; } ${at.large} { font-size: 40px; line-height: 40px; } `,W.h3` display: block; color: ${Xt.color.grayD}; font-size: 24px; line-height: 30px; ${e=>e.extrabold?e.theme.fontWeight.extrabold:e.theme.fontWeight.bold}; margin-top: 0; margin-bottom: ${e=>e.mb||20}px; ${at.medium} { font-size: 26px; line-height: 30px; } ${at.large} { font-size: 30px; line-height: 36px; } `,W.h4` display: block; color: ${Xt.color.grayD}; font-size: 18px; line-height: 24px; ${Xt.fontWeight.bold}; margin-top: 0; margin-bottom: 20px; ${at.medium} { font-size: 20px; line-height: 26px; } ${at.large} { font-size: 24px; line-height: 30px; } `,W.h5` display: block; color: ${Xt.color.grayD}; font-size: 20px; line-height: 24px; ${Xt.fontWeight.bold}; margin-top: 0; margin-bottom: 20px; `,W.h6` display: block; color: ${Xt.color.grayD}; font-size: 18px; line-height: 24px; ${Xt.fontWeight.bold}; margin-top: 0; margin-bottom: 20px; `,W.span` font-size: 14px; line-height: 18px; ${Xt.fontWeight.bold}; color: ${e=>e.$color||Xt.color.gray}; `,W.span` font-size: 12px; line-height: 18px; ${Xt.fontWeight.bold}; color: ${e=>e.$color||Xt.color.gray}; `;const Ie={ResponsiveText:SE},EE=()=>S.jsxs(S.Fragment,{children:[S.jsxs(Ie.ResponsiveText,{variant:"body",$bpVariant:{medium:"regular18"},style:{fontWeight:700},color:"#FFF",children:["Szeretnél részt venni termékteszteléseken és új termékeket kipróbálni? ",S.jsx("br",{})," Időről időre új lehetőségekkel jelentkezünk."]}),S.jsx(Ie.ResponsiveText,{variant:"regular14",$bpVariant:{medium:"body"},color:"#FFF",children:"Érdemes rendszeresen visszalátogatni, hogy ne maradj le róluk!"}),S.jsx(Ie.ResponsiveText,{variant:"regular14",$bpVariant:{medium:"body"},style:{fontWeight:700},color:"#FFF",children:"Ha épp nincs aktív tesztelés, figyeld továbbra is az oldalt!"})]}),TE=({currentProductTest:e})=>S.jsx("div",{style:{fontFamily:"nunito_sans"},dangerouslySetInnerHTML:{__html:e.hero_description}}),OE=({currentProductTest:e})=>S.jsx(S.Fragment,{children:S.jsx(NS,{id:"hero",children:S.jsx(Lc,{children:S.jsx($S,{children:S.jsx(ae.Container,{children:S.jsx(ae.Item,{$flex:1,$bpMedium:{$flex:1/2},children:S.jsxs(ae.Container,{$gap:"24px",$flexDirection:"column",children:[S.jsx(LS,{children:S.jsx(Nn,{src:"https://storage.googleapis.com/microsites-microservice/product-testing/frontend/rossmann_logo.webp",alt:"Rossmann terméktesztelés",style:{marginBottom:10}})}),e?S.jsx(TE,{currentProductTest:e}):S.jsx(EE,{})]})})})})})})}),DE=[{id:"productsToTest",label:"Terméktesztelés"},{id:"ASZF",label:"Játékszabályzat és adatkezelési tájékoztató"},{id:"testedProducts",label:"Eddigi Termékeink"}];function wE(){const[e,r]=ue.useState(0);ue.useEffect(()=>{const o=document.querySelector("header"),u=o?o.lastElementChild:null,s=()=>{r(o&&u?u.getBoundingClientRect().height:0)};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[]);const i=o=>{const u=document.getElementById("submenu"),s=document.getElementById(o);s&&u&&window.scrollTo({top:s.getBoundingClientRect().top+window.scrollY-u.getBoundingClientRect().height-e,behavior:"smooth"})};return S.jsx(FS,{id:"submenu",headerHeight:e,children:S.jsx(US,{children:S.jsx(qS,{children:DE.map(({id:o,label:u})=>S.jsx(BS,{children:S.jsx(IS,{href:`#${o}`,onClick:s=>{s.preventDefault(),i(o)},children:u})},o))})})})}var ou={},Lm;function AE(){if(Lm)return ou;Lm=1,ou.match=s,ou.parse=f;var e=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,u=/(dpi|dpcm|dppx)?$/;function s(y,g){return f(y).some(function(b){var x=b.inverse,O=b.type==="all"||g.type===b.type;if(O&&x||!(O||x))return!1;var A=b.expressions.every(function(k){var D=k.feature,N=k.modifier,j=k.value,z=g[D];if(!z)return!1;switch(D){case"orientation":case"scan":return z.toLowerCase()===j.toLowerCase();case"width":case"height":case"device-width":case"device-height":j=p(j),z=p(z);break;case"resolution":j=m(j),z=m(z);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":j=d(j),z=d(z);break;case"grid":case"color":case"color-index":case"monochrome":j=parseInt(j,10)||1,z=parseInt(z,10)||0;break}switch(N){case"min":return z>=j;case"max":return z<=j;default:return z===j}});return A&&!x||!A&&x})}function f(y){return y.split(",").map(function(g){g=g.trim();var b=g.match(e),x=b[1],O=b[2],A=b[3]||"",k={};return k.inverse=!!x&&x.toLowerCase()==="not",k.type=O?O.toLowerCase():"all",A=A.match(/\([^\)]+\)/g)||[],k.expressions=A.map(function(D){var N=D.match(r),j=N[1].toLowerCase().match(i);return{modifier:j[1],feature:j[2],value:N[2]}}),k})}function d(y){var g=Number(y),b;return g||(b=y.match(/^(\d+)\s*\/\s*(\d+)$/),g=b[1]/b[2]),g}function m(y){var g=parseFloat(y),b=String(y).match(u)[1];switch(b){case"dpcm":return g/2.54;case"dppx":return g*96;default:return g}}function p(y){var g=parseFloat(y),b=String(y).match(o)[1];switch(b){case"em":return g*16;case"rem":return g*16;case"cm":return g*96/2.54;case"mm":return g*96/2.54/10;case"in":return g*96;case"pt":return g*72;case"pc":return g*72/12;default:return g}}return ou}var Fc,Fm;function CE(){if(Fm)return Fc;Fm=1;var e=AE().match,r=typeof window<"u"?window.matchMedia:null;function i(u,s,f){var d=this,m;r&&!f&&(m=r.call(window,u)),m?(this.matches=m.matches,this.media=m.media,m.addListener(g)):(this.matches=e(u,s),this.media=u),this.addListener=p,this.removeListener=y,this.dispose=b;function p(x){m&&m.addListener(x)}function y(x){m&&m.removeListener(x)}function g(x){d.matches=x.matches,d.media=x.media}function b(){m&&m.removeListener(g)}}function o(u,s,f){return new i(u,s,f)}return Fc=o,Fc}var kE=CE();const RE=Ut(kE);var ME=/[A-Z]/g,zE=/^ms-/,Uc={};function jE(e){return"-"+e.toLowerCase()}function Um(e){if(Uc.hasOwnProperty(e))return Uc[e];var r=e.replace(ME,jE);return Uc[e]=zE.test(r)?"-"+r:r}function NE(e,r){if(e===r)return!0;if(!e||!r)return!1;const i=Object.keys(e),o=Object.keys(r),u=i.length;if(o.length!==u)return!1;for(let s=0;s`not ${e}`,HE=(e,r)=>{const i=Um(e);return typeof r=="number"&&(r=`${r}px`),r===!0?i:r===!1?QE(i):`(${i}: ${r})`},GE=e=>e.join(" and "),YE=e=>{const r=[];return Object.keys(VE.all).forEach(i=>{const o=e[i];o!=null&&r.push(HE(i,o))}),GE(r)},XE=ue.createContext(void 0),ZE=e=>e.query||YE(e),Qm=e=>e?Object.keys(e).reduce((i,o)=>(i[Um(o)]=e[o],i),{}):void 0,Hm=()=>{const e=ue.useRef(!1);return ue.useEffect(()=>{e.current=!0},[]),e.current},PE=e=>{const r=ue.useContext(XE),i=()=>Qm(e)||Qm(r),[o,u]=ue.useState(i);return ue.useEffect(()=>{const s=i();NE(o,s)||u(s)},[e,r]),o},KE=e=>{const r=()=>ZE(e),[i,o]=ue.useState(r);return ue.useEffect(()=>{const u=r();i!==u&&o(u)},[e]),i},JE=(e,r)=>{const i=()=>RE(e,r||{},!!r),[o,u]=ue.useState(i),s=Hm();return ue.useEffect(()=>{if(s){const f=i();return u(f),()=>{f&&f.dispose()}}},[e,r]),o},WE=e=>{const[r,i]=ue.useState(e.matches);return ue.useEffect(()=>{const o=u=>{i(u.matches)};return e.addListener(o),i(e.matches),()=>{e.removeListener(o)}},[e]),r},Gm=(e,r,i)=>{const o=PE(r),u=KE(e);if(!u)throw new Error("Invalid or missing MediaQuery!");const s=JE(u,o),f=WE(s);return Hm(),ue.useEffect(()=>{},[f]),ue.useEffect(()=>()=>{s&&s.dispose()},[]),f},Ar=tt.forwardRef((e,r)=>{const{type:i="button",btnLabel:o,asDiv:u,icon:s,iconPosition:f="start",size:d="large",...m}=e;return S.jsxs(nT,{as:u?"div":"button",type:u?void 0:i,size:d,ref:r,...m,children:[s&&S.jsx(Vc,{$order:f==="start"?1:2,children:s}),S.jsx(eT,{$order:f==="start"?2:1,children:o})]})}),Vc=W.span.attrs(()=>({"aria-hidden":"true"}))` order: ${e=>e.$order}; display: flex; align-items: center; justify-content: center; ${e=>e.$order===1&&` margin-right: 10px; `}; ${e=>e.$order===2&&` margin-left: 10px; `}; `,eT=W.span` order: ${e=>e.$order}; `,tT=st` border-radius: ${e=>e.theme.radius.small}; text-transform: uppercase; ${e=>e.theme.fontWeight.bold}; `,Ym=st` font-size: 16px; line-height: 22px; padding: 17px 32px; min-height: 60px; `,Xm=st` font-size: 16px; line-height: 23px; padding: 10px 20px; ${Vc} { height: 23px; } `,Zm=st` font-size: 14px; line-height: 18px; padding: 10px 8px; ${Vc} { height: 18px; } `,nT=W.button` ${tT}; display: ${e=>e.fullWidth==="always"?"flex":"inline-flex"}; width: ${e=>e.fullWidth==="always"?"100%":"auto"}; justify-content: center; align-items: center; ${e=>e.size==="small"&&Zm} ${e=>e.size==="medium"&&Xm} ${e=>e.size==="large"&&Ym} ${at.small} { display: ${e=>e.fullWidth?"flex":"inline-flex"}; width: ${e=>e.fullWidth?"100%":"auto"}; &.pull-apart-on-mobile { justify-content: space-between; } } ${e=>e.responsive&&` ${at.small} { ${Zm} } ${at.medium} { ${Xm} } ${at.large} { ${Ym} } `} `;W(Ar)` background-color: ${e=>e.theme.button.inverse.background}; color: ${e=>e.theme.button.inverse.color}; transition: background-color ${e=>e.theme.transition.hover}; border: solid 1px #ffffff; width: 100%; height: 73px; &:hover:not([disabled]) { background-color: ${e=>e.theme.button.inverse.hover.background}; } &:disabled { background-color: ${e=>e.theme.button.inverse.disabled.background}; color: ${e=>e.theme.button.inverse.disabled.color}; cursor: not-allowed; } `;const rT=W(Ar)` background-color: ${e=>e.theme.button.primary.background}; color: ${e=>e.theme.button.primary.color}; transition: background-color ${e=>e.theme.transition.hover}; width: 100%; border: none; height: 61px; &:hover:not([disabled]) { background-color: ${e=>e.theme.button.primary.hover.background}; } &:disabled { background-color: ${e=>e.theme.button.primary.disabled.background}; color: ${e=>e.theme.button.primary.disabled.color}; cursor: not-allowed; } `;W(Ar)` background-color: ${e=>e.theme.button.login.background}; color: ${e=>e.theme.button.login.color}; transition: background-color ${e=>e.theme.transition.hover}; border: none; width: 100%; height: 73px; &:hover:not([disabled]) { background-color: ${e=>e.theme.button.login.hover.background}; } &:disabled { background-color: ${e=>e.theme.button.login.disabled.background}; color: ${e=>e.theme.button.login.disabled.color}; cursor: not-allowed; } `,W(Ar)` background-color: ${e=>e.theme.button.warning.background}; color: ${e=>e.theme.button.warning.color}; transition: background-color ${e=>e.theme.transition.hover}; width: 100%; border: none; height: 73px; &:hover:not([disabled]) { background-color: ${e=>e.theme.button.warning.hover.background}; } &:disabled { background-color: ${e=>e.theme.button.warning.disabled.background}; color: ${e=>e.theme.button.warning.disabled.color}; cursor: not-allowed; } `;const iT=W(Ar)` background-color: ${e=>e.theme.button.secondary.background}; color: ${e=>e.theme.button.secondary.color}; transition: color ${e=>e.theme.transition.hover}, border-color ${e=>e.theme.transition.hover}; border: 1px solid ${e=>e.theme.button.secondary.color}; height: 61px; &:hover:not([disabled]) { background-color: ${e=>e.theme.button.secondary.hover.background}; border-color: ${e=>e.theme.button.secondary.hover.borderColor}; color: ${e=>e.theme.button.secondary.hover.color}; } &:active:not([disabled]) { background-color: ${e=>e.theme.button.secondary.focus.background}; color: ${e=>e.theme.button.secondary.focus.color}; } &:disabled { color: ${e=>e.theme.button.secondary.disabled.color}; border-color: ${e=>e.theme.button.secondary.disabled.borderColor}; cursor: not-allowed; } `;W(Ar)` color: ${e=>e.theme.button.secondary.color}; text-transform: none; padding: 0; transition: color ${e=>e.theme.transition.hover}; ${e=>e.theme.fontWeight.regular} &:hover:not([disabled]) { color: ${e=>e.theme.button.secondary.hover.color}; } &:active:not([disabled]) { color: ${e=>e.theme.button.secondary.hover.color}; } &:disabled { color: ${e=>e.theme.button.secondary.disabled.color}; cursor: not-allowed; } `,W(Ar)` background-color: ${e=>e.theme.button.transparent.background}; color: ${e=>e.theme.button.transparent.color}; transition: background-color ${e=>e.theme.transition.hover}; border: solid 1px #ffffff; width: 100%; height: 61px; &:hover:not([disabled]) { background-color: ${e=>e.theme.button.transparent.hover.background}; } &:disabled { background-color: ${e=>e.theme.button.transparent.disabled.background}; color: ${e=>e.theme.button.transparent.disabled.color}; cursor: not-allowed; } `;const aT=W(Ar)` background-color: ${e=>e.theme.button.inverseGrey.background}; color: ${e=>e.theme.button.inverseGrey.color}; transition: background-color ${e=>e.theme.transition.hover}; border: solid 1px #cccccc; width: 100%; height: 61px; &:hover:not([disabled]) { background-color: ${e=>e.theme.button.inverse.hover.background}; } &:disabled { cursor: default; } `,Jn={Primary:rT,Secondary:iT,InverseGrey:aT},Oo={showProductsPage:!1,id:null},Pm=ue.createContext({...Oo,setShowProductsPageWithId:()=>{},resetState:()=>{}}),oT=({children:e})=>{const[r,i]=ue.useState(Oo.showProductsPage),[o,u]=ue.useState(Oo.id),s=d=>{i(!0),u(d)},f=()=>{i(Oo.showProductsPage),u(Oo.id)};return S.jsx(Pm.Provider,{value:{showProductsPage:r,id:o,setShowProductsPageWithId:s,resetState:f},children:e})},Do=()=>ue.useContext(Pm),lT=({product:e})=>{const r=Do();return S.jsx(ae.Container,{$flexDirection:"column",style:{backgroundColor:"#FFF",borderRadius:8,maxWidth:562,position:"relative",overflow:"hidden",boxShadow:"0 4px 10px 0 #46464640"},children:S.jsxs(ae.Container,{style:{height:"100%",width:"100%"},children:[S.jsx(ae.Item,{$flex:1/2,children:S.jsx(ae.Container,{$justifyContent:"center",$alignItems:"center",style:{padding:20},children:S.jsx("div",{style:{width:241,height:450,overflow:"hidden"},children:S.jsx(Nn,{src:e.primaryImage.url,alt:"",role:"presentation",style:{width:"100%",height:"100%",objectFit:"cover"}})})})}),S.jsxs(ae.Item,{$flex:1/2,style:{position:"relative",display:"flex",flexDirection:"column",height:"100%",padding:"0 20px 20px 0"},children:[S.jsx(Nn,{src:"https://storage.googleapis.com/microsites-microservice/product-testing/frontend/product_to_test_logo.webp",alt:"",role:"presentation",style:{maxWidth:250,marginBottom:20}}),S.jsxs(ae.Container,{$flexDirection:"column",$gap:"20px",style:{flex:1},children:[S.jsx(Ie.ResponsiveText,{variant:"ebold16",color:"#D6203D",style:{paddingRight:15},children:e.name}),S.jsx("div",{dangerouslySetInnerHTML:{__html:e.short_description}})]}),S.jsx(ae.Container,{$justifyContent:"center",style:{paddingTop:16},children:S.jsx(Jn.Secondary,{onClick:()=>r.setShowProductsPageWithId(e.id),btnLabel:"RÉSZLETEK",style:{minHeight:44,height:44,width:"100%"}})})]})]})})},uT=({product:e})=>{const r=Do();return S.jsxs(ae.Container,{$flexDirection:"column",$alignItems:"center",style:{boxShadow:"0 4px 10px 0 #46464640",backgroundColor:"#FFF",borderRadius:8,position:"relative"},children:[S.jsxs(ae.Container,{$flexDirection:"column",$justifyContent:"center",$alignItems:"center",style:{padding:"0 10px 10px"},children:[S.jsx(ae.Item,{children:S.jsx(Nn,{src:"https://storage.googleapis.com/microsites-microservice/product-testing/frontend/product_to_test_logo.webp",alt:"",role:"presentation",maxWidth:250})}),S.jsx(ae.Item,{style:{padding:"0 40px",marginBottom:10},children:S.jsx(Nn,{src:e.primaryImage.url,alt:"",role:"presentation",maxWidth:281})}),S.jsx(ae.Item,{style:{position:"relative"},children:S.jsxs(ae.Container,{$flexDirection:"column",$gap:"20px",$justifyContent:"space-between",children:[S.jsx(Ie.ResponsiveText,{variant:"ebold16",color:"#D6203D",style:{paddingRight:15},children:e.name}),S.jsx("div",{dangerouslySetInnerHTML:{__html:e.short_description}})]})})]}),S.jsx(ae.Container,{style:{padding:16,width:"100%"},children:S.jsx(Jn.Secondary,{onClick:()=>r.setShowProductsPageWithId(e.id),btnLabel:"RÉSZLETEK",style:{minHeight:44,height:44,width:"100%"}})})]})},sT=({product:e})=>Gm({query:"(min-width: 768px)"})?S.jsx(lT,{product:e}):S.jsx(uT,{product:e});function cT({currentProductTest:e}){return S.jsx(ae.Container,{$flexDirection:"column",$justifyContent:"center",$bpMedium:{$flexDirection:"row"},$flexWrap:"wrap",$gap:"20px",style:{margin:"0 15px 40px 15px"},children:S.jsx(sT,{product:e})})}function fT(){return S.jsxs(YS,{$flexDirection:"column",children:[S.jsx(PS,{children:S.jsx(ZS,{children:"A Játékban kizárólag az a természetes személy vehet részt, aki a Szervező által szervezett, ROSSMANN+ elnevezésű programban („ROSSMANN+ Program”) érvényesen regisztrált, akár plasztik kedvezménykártyával, akár a ROSSMANN mobil applikáció használatával „előhívható” virtuális kedvezménykártyával („Kedvezménykártya”) rendelkezik („Résztvevő”, illetve „Résztvevők”), a ROSSMANN+ programban lévő fiókjába e-mail címével és jelszavával be tud jelentkezni, valamint betöltötte 18. életévét."})}),S.jsx(XS,{id:"ASZF",$justifyContent:"center",$alignItems:"center",$flexDirection:"column",children:S.jsx("a",{href:"https://shop.rossmann.hu/adventi-kalendarium-2025-aszf",target:"_blank",style:{textDecoration:"none",textAlign:"center"},children:S.jsx(Ie.ResponsiveText,{variant:"bold16",color:"#D20A2D",children:"Játékszabályzat és adatkezelési tájékoztató"})})})]})}function hT({currentProductTest:e}){return S.jsx(Lc,{children:S.jsx(Mm,{id:"productsToTest",children:S.jsxs(zm,{style:{position:"relative",zIndex:1},children:[S.jsx(Rm,{marginTop:60,children:S.jsx(Ie.ResponsiveText,{variant:"h4",$bpVariant:{medium:"extraboldH3"},color:"#464D54",children:"Terméktesztelés"})}),e?S.jsx(cT,{currentProductTest:e}):S.jsx(ae.Container,{$justifyContent:"center",style:{textAlign:"center",marginBottom:40},children:S.jsx(Ie.ResponsiveText,{variant:"extraboldH3",color:"#464D54",children:"Jelenleg nincs tesztelhető termék, kérlek nézz vissza később!"})}),S.jsx(fT,{})]})})})}const dT=({product:e,openModal:r})=>S.jsx(ae.Container,{$flexDirection:"column",style:{backgroundColor:"#FFF",borderRadius:8,maxWidth:562,position:"relative",overflow:"hidden",boxShadow:"0 4px 10px 0 #46464640"},children:S.jsxs(ae.Container,{style:{height:"100%",width:"100%"},children:[S.jsx(ae.Item,{$flex:1/2,children:S.jsx(ae.Container,{$justifyContent:"center",$alignItems:"center",style:{padding:20},children:S.jsx("div",{style:{width:241,height:450,overflow:"hidden"},children:S.jsx(Nn,{src:e.primaryImage.url,alt:"",role:"presentation",style:{width:"100%",height:"100%",objectFit:"cover"}})})})}),S.jsxs(ae.Item,{$flex:1/2,style:{position:"relative",display:"flex",flexDirection:"column",height:"100%",padding:"0 20px 20px 0"},children:[S.jsx(Nn,{src:"https://storage.googleapis.com/microsites-microservice/product-testing/frontend/product_to_test_logo.webp",alt:"",role:"presentation",style:{maxWidth:250,marginBottom:20}}),S.jsxs(ae.Container,{$flexDirection:"column",$gap:"20px",style:{flex:1},children:[S.jsx(Ie.ResponsiveText,{variant:"ebold16",color:"#D6203D",style:{paddingRight:15},children:e.name}),S.jsx("div",{dangerouslySetInnerHTML:{__html:e.short_description}})]}),S.jsxs(ae.Container,{$flexDirection:"column",$justifyContent:"center",style:{paddingTop:16},$gap:"10px",children:[S.jsx(Jn.InverseGrey,{btnLabel:"A játék véget ért",disabled:!0,style:{minHeight:44,height:44,width:263}}),S.jsx(Jn.Primary,{btnLabel:"Nyertesek",onClick:()=>r(e.id),style:{minHeight:44,height:44,width:263}})]})]})]})}),pT=({product:e,openModal:r})=>S.jsxs(ae.Container,{$flexDirection:"column",$alignItems:"center",style:{boxShadow:"0 4px 10px 0 #46464640",backgroundColor:"#FFF",borderRadius:8,position:"relative"},children:[S.jsxs(ae.Container,{$flexDirection:"column",$justifyContent:"center",$alignItems:"center",style:{padding:"0 10px 10px"},children:[S.jsx(ae.Item,{children:S.jsx(Nn,{src:"https://storage.googleapis.com/microsites-microservice/product-testing/frontend/product_to_test_logo.webp",alt:"",role:"presentation",maxWidth:250})}),S.jsx(ae.Item,{style:{padding:"0 40px",marginBottom:10},children:S.jsx(Nn,{src:e.primaryImage.url,alt:"",role:"presentation",maxWidth:281})}),S.jsx(ae.Item,{style:{position:"relative"},children:S.jsxs(ae.Container,{$flexDirection:"column",$gap:"20px",$justifyContent:"space-between",children:[S.jsx(Ie.ResponsiveText,{variant:"ebold16",color:"#D6203D",style:{paddingRight:15},children:e.name}),S.jsx("div",{dangerouslySetInnerHTML:{__html:e.short_description}})]})})]}),S.jsxs(ae.Container,{$flexDirection:"column",style:{padding:16,width:"100%"},$gap:"10px",children:[S.jsx(Jn.InverseGrey,{btnLabel:"A játék véget ért",disabled:!0,style:{minHeight:44,height:44,width:"100%"}}),S.jsx(Jn.Primary,{btnLabel:"Nyertesek",onClick:()=>r(e.id),style:{minHeight:44,height:44,width:"100%"}})]})]}),mT=({product:e,openModal:r})=>Gm({query:"(min-width: 768px)"})?S.jsx(dT,{openModal:r,product:e}):S.jsx(pT,{product:e,openModal:r});function vT({openModal:e,previousProductTests:r}){return S.jsx(ae.Container,{$flexDirection:"column",$justifyContent:"center",$bpMedium:{$flexDirection:"row"},$flexWrap:"wrap",$gap:"20px",style:{margin:"0 25px 40px 25px"},children:r.map(i=>S.jsx(mT,{openModal:e,product:i}))})}function yT({openModal:e,previousProductTests:r}){return S.jsx(To,{children:S.jsx(Mm,{id:"testedProducts",children:S.jsxs(zm,{style:{position:"relative",zIndex:1},children:[S.jsx(Rm,{children:S.jsx(Ie.ResponsiveText,{variant:"h4",$bpVariant:{medium:"extraboldH3"},color:"#464D54",children:"Eddigi terméktesztek"})}),S.jsx(vT,{openModal:e,previousProductTests:r})]})})})}var Qc="Invariant Violation",Km=Object.setPrototypeOf,gT=Km===void 0?function(e,r){return e.__proto__=r,e}:Km,Jm=(function(e){In(r,e);function r(i){i===void 0&&(i=Qc);var o=e.call(this,typeof i=="number"?Qc+": "+i+" (see https://github.com/apollographql/invariant-packages)":i)||this;return o.framesToPop=1,o.name=Qc,gT(o,r.prototype),o}return r})(Error);function bi(e,r){if(!e)throw new Jm(r)}var Wm=["debug","log","warn","error","silent"],bT=Wm.indexOf("log");function lu(e){return function(){if(Wm.indexOf(e)>=bT){var r=console[e]||console.log;return r.apply(console,arguments)}}}(function(e){e.debug=lu("debug"),e.log=lu("log"),e.warn=lu("warn"),e.error=lu("error")})(bi||(bi={}));var Hc="3.14.0";function $n(e){try{return e()}catch{}}const uu=$n(function(){return globalThis})||$n(function(){return window})||$n(function(){return self})||$n(function(){return globalThis})||$n(function(){return $n.constructor("return this")()});var ev=new Map;function Gc(e){var r=ev.get(e)||1;return ev.set(e,r+1),"".concat(e,":").concat(r,":").concat(Math.random().toString(36).slice(2))}function tv(e,r){r===void 0&&(r=0);var i=Gc("stringifyForDisplay");return JSON.stringify(e,function(o,u){return u===void 0?i:u},r).split(JSON.stringify(i)).join("")}function su(e){return function(r){for(var i=[],o=1;o"}}function Yc(e,r){if(r===void 0&&(r=[]),!!e)return uu[nv]&&uu[nv](e,r.map(rv))}function Xc(e,r){if(r===void 0&&(r=[]),!!e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Hc,message:e,args:r.map(rv)})))}function cu(e,r){if(!!!e)throw new Error(r)}function _T(e){return typeof e=="object"&&e!==null}function xT(e,r){if(!!!e)throw new Error("Unexpected invariant triggered.")}const ST=/\r\n|[\n\r]/g;function Zc(e,r){let i=0,o=1;for(const u of e.body.matchAll(ST)){if(typeof u.index=="number"||xT(!1),u.index>=r)break;i=u.index+u[0].length,o+=1}return{line:o,column:r+1-i}}function ET(e){return iv(e.source,Zc(e.source,e.start))}function iv(e,r){const i=e.locationOffset.column-1,o="".padStart(i)+e.body,u=r.line-1,s=e.locationOffset.line-1,f=r.line+s,d=r.line===1?i:0,m=r.column+d,p=`${e.name}:${f}:${m} `,y=o.split(/\r\n|[\n\r]/g),g=y[u];if(g.length>120){const b=Math.floor(m/80),x=m%80,O=[];for(let A=0;A["|",A]),["|","^".padStart(x)],["|",O[b+1]]])}return p+av([[`${f-1} |`,y[u-1]],[`${f} |`,g],["|","^".padStart(m)],[`${f+1} |`,y[u+1]]])}function av(e){const r=e.filter(([o,u])=>u!==void 0),i=Math.max(...r.map(([o])=>o.length));return r.map(([o,u])=>o.padStart(i)+(u?" "+u:"")).join(` `)}function TT(e){const r=e[0];return r==null||"kind"in r||"length"in r?{nodes:r,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:r}class Pc extends Error{constructor(r,...i){var o,u,s;const{nodes:f,source:d,positions:m,path:p,originalError:y,extensions:g}=TT(i);super(r),this.name="GraphQLError",this.path=p??void 0,this.originalError=y??void 0,this.nodes=ov(Array.isArray(f)?f:f?[f]:void 0);const b=ov((o=this.nodes)===null||o===void 0?void 0:o.map(O=>O.loc).filter(O=>O!=null));this.source=d??(b==null||(u=b[0])===null||u===void 0?void 0:u.source),this.positions=m??(b==null?void 0:b.map(O=>O.start)),this.locations=m&&d?m.map(O=>Zc(d,O)):b==null?void 0:b.map(O=>Zc(O.source,O.start));const x=_T(y==null?void 0:y.extensions)?y==null?void 0:y.extensions:void 0;this.extensions=(s=g??x)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),y!=null&&y.stack?Object.defineProperty(this,"stack",{value:y.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Pc):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let r=this.message;if(this.nodes)for(const i of this.nodes)i.loc&&(r+=` `+ET(i.loc));else if(this.source&&this.locations)for(const i of this.locations)r+=` `+iv(this.source,i);return r}toJSON(){const r={message:this.message};return this.locations!=null&&(r.locations=this.locations),this.path!=null&&(r.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(r.extensions=this.extensions),r}}function ov(e){return e===void 0||e.length===0?void 0:e}function Ct(e,r,i){return new Pc(`Syntax Error: ${i}`,{source:e,positions:[r]})}class OT{constructor(r,i,o){this.start=r.start,this.end=i.end,this.startToken=r,this.endToken=i,this.source=o}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class lv{constructor(r,i,o,u,s,f){this.kind=r,this.start=i,this.end=o,this.line=u,this.column=s,this.value=f,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const uv={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},DT=new Set(Object.keys(uv));function sv(e){const r=e==null?void 0:e.kind;return typeof r=="string"&&DT.has(r)}var na;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(na||(na={}));var Kc;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Kc||(Kc={}));var ne;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"})(ne||(ne={}));function Jc(e){return e===9||e===32}function wo(e){return e>=48&&e<=57}function cv(e){return e>=97&&e<=122||e>=65&&e<=90}function fv(e){return cv(e)||e===95}function wT(e){return cv(e)||wo(e)||e===95}function AT(e){var r;let i=Number.MAX_SAFE_INTEGER,o=null,u=-1;for(let f=0;fd===0?f:f.slice(i)).slice((r=o)!==null&&r!==void 0?r:0,u+1)}function CT(e){let r=0;for(;r1&&o.slice(1).every(x=>x.length===0||Jc(x.charCodeAt(0))),f=i.endsWith('\\"""'),d=e.endsWith('"')&&!f,m=e.endsWith("\\"),p=d||m,y=!u||e.length>70||p||s||f;let g="";const b=u&&Jc(e.charCodeAt(0));return(y&&!b||s)&&(g+=` `),g+=i,(y||p)&&(g+=` `),'"""'+g+'"""'}var X;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(X||(X={}));class RT{constructor(r){const i=new lv(X.SOF,0,0,0,0);this.source=r,this.lastToken=i,this.token=i,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let r=this.token;if(r.kind!==X.EOF)do if(r.next)r=r.next;else{const i=zT(this,r.end);r.next=i,i.prev=r,r=i}while(r.kind===X.COMMENT);return r}}function MT(e){return e===X.BANG||e===X.DOLLAR||e===X.AMP||e===X.PAREN_L||e===X.PAREN_R||e===X.DOT||e===X.SPREAD||e===X.COLON||e===X.EQUALS||e===X.AT||e===X.BRACKET_L||e===X.BRACKET_R||e===X.BRACE_L||e===X.PIPE||e===X.BRACE_R}function ra(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function fu(e,r){return hv(e.charCodeAt(r))&&dv(e.charCodeAt(r+1))}function hv(e){return e>=55296&&e<=56319}function dv(e){return e>=56320&&e<=57343}function _i(e,r){const i=e.source.body.codePointAt(r);if(i===void 0)return X.EOF;if(i>=32&&i<=126){const o=String.fromCodePoint(i);return o==='"'?`'"'`:`"${o}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function Et(e,r,i,o,u){const s=e.line,f=1+i-e.lineStart;return new lv(r,i,o,s,f,u)}function zT(e,r){const i=e.source.body,o=i.length;let u=r;for(;u=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function UT(e,r){const i=e.source.body;switch(i.charCodeAt(r+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` `,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Ct(e.source,r,`Invalid character escape sequence: "${i.slice(r,r+2)}".`)}function qT(e,r){const i=e.source.body,o=i.length;let u=e.lineStart,s=r+3,f=s,d="";const m=[];for(;smv?"["+YT(e)+"]":"{ "+i.map(([u,s])=>u+": "+hu(s,r)).join(", ")+" }"}function GT(e,r){if(e.length===0)return"[]";if(r.length>mv)return"[Array]";const i=Math.min(IT,e.length),o=e.length-i,u=[];for(let s=0;s1&&u.push(`... ${o} more items`),"["+u.join(", ")+"]"}function YT(e){const r=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(r==="Object"&&typeof e.constructor=="function"){const i=e.constructor.name;if(typeof i=="string"&&i!=="")return i}return r}var XT={NODE_ENV:"production"};const ZT=globalThis.process&&XT.NODE_ENV==="production"?function(r,i){return r instanceof i}:function(r,i){if(r instanceof i)return!0;if(typeof r=="object"&&r!==null){var o;const u=i.prototype[Symbol.toStringTag],s=Symbol.toStringTag in r?r[Symbol.toStringTag]:(o=r.constructor)===null||o===void 0?void 0:o.name;if(u===s){const f=ef(r);throw new Error(`Cannot use ${u} "${f}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other relied on modules, use "resolutions" to ensure only one version is installed. https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and spurious results.`)}}return!1};class vv{constructor(r,i="GraphQL request",o={line:1,column:1}){typeof r=="string"||cu(!1,`Body must be a string. Received: ${ef(r)}.`),this.body=r,this.name=i,this.locationOffset=o,this.locationOffset.line>0||cu(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||cu(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function PT(e){return ZT(e,vv)}function KT(e,r){const i=new JT(e,r),o=i.parseDocument();return Object.defineProperty(o,"tokenCount",{enumerable:!1,value:i.tokenCount}),o}class JT{constructor(r,i={}){const{lexer:o,...u}=i;if(o)this._lexer=o;else{const s=PT(r)?r:new vv(r);this._lexer=new RT(s)}this._options=u,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const r=this.expectToken(X.NAME);return this.node(r,{kind:ne.NAME,value:r.value})}parseDocument(){return this.node(this._lexer.token,{kind:ne.DOCUMENT,definitions:this.many(X.SOF,this.parseDefinition,X.EOF)})}parseDefinition(){if(this.peek(X.BRACE_L))return this.parseOperationDefinition();const r=this.peekDescription(),i=r?this._lexer.lookahead():this._lexer.token;if(r&&i.kind===X.BRACE_L)throw Ct(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(i.kind===X.NAME){switch(i.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()}switch(i.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(r)throw Ct(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");switch(i.value){case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(i)}parseOperationDefinition(){const r=this._lexer.token;if(this.peek(X.BRACE_L))return this.node(r,{kind:ne.OPERATION_DEFINITION,operation:na.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const i=this.parseDescription(),o=this.parseOperationType();let u;return this.peek(X.NAME)&&(u=this.parseName()),this.node(r,{kind:ne.OPERATION_DEFINITION,operation:o,description:i,name:u,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const r=this.expectToken(X.NAME);switch(r.value){case"query":return na.QUERY;case"mutation":return na.MUTATION;case"subscription":return na.SUBSCRIPTION}throw this.unexpected(r)}parseVariableDefinitions(){return this.optionalMany(X.PAREN_L,this.parseVariableDefinition,X.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ne.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(X.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(X.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const r=this._lexer.token;return this.expectToken(X.DOLLAR),this.node(r,{kind:ne.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ne.SELECTION_SET,selections:this.many(X.BRACE_L,this.parseSelection,X.BRACE_R)})}parseSelection(){return this.peek(X.SPREAD)?this.parseFragment():this.parseField()}parseField(){const r=this._lexer.token,i=this.parseName();let o,u;return this.expectOptionalToken(X.COLON)?(o=i,u=this.parseName()):u=i,this.node(r,{kind:ne.FIELD,alias:o,name:u,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(X.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(r){const i=r?this.parseConstArgument:this.parseArgument;return this.optionalMany(X.PAREN_L,i,X.PAREN_R)}parseArgument(r=!1){const i=this._lexer.token,o=this.parseName();return this.expectToken(X.COLON),this.node(i,{kind:ne.ARGUMENT,name:o,value:this.parseValueLiteral(r)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const r=this._lexer.token;this.expectToken(X.SPREAD);const i=this.expectOptionalKeyword("on");return!i&&this.peek(X.NAME)?this.node(r,{kind:ne.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(r,{kind:ne.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const r=this._lexer.token,i=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(r,{kind:ne.FRAGMENT_DEFINITION,description:i,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(r,{kind:ne.FRAGMENT_DEFINITION,description:i,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(r){const i=this._lexer.token;switch(i.kind){case X.BRACKET_L:return this.parseList(r);case X.BRACE_L:return this.parseObject(r);case X.INT:return this.advanceLexer(),this.node(i,{kind:ne.INT,value:i.value});case X.FLOAT:return this.advanceLexer(),this.node(i,{kind:ne.FLOAT,value:i.value});case X.STRING:case X.BLOCK_STRING:return this.parseStringLiteral();case X.NAME:switch(this.advanceLexer(),i.value){case"true":return this.node(i,{kind:ne.BOOLEAN,value:!0});case"false":return this.node(i,{kind:ne.BOOLEAN,value:!1});case"null":return this.node(i,{kind:ne.NULL});default:return this.node(i,{kind:ne.ENUM,value:i.value})}case X.DOLLAR:if(r)if(this.expectToken(X.DOLLAR),this._lexer.token.kind===X.NAME){const o=this._lexer.token.value;throw Ct(this._lexer.source,i.start,`Unexpected variable "$${o}" in constant value.`)}else throw this.unexpected(i);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const r=this._lexer.token;return this.advanceLexer(),this.node(r,{kind:ne.STRING,value:r.value,block:r.kind===X.BLOCK_STRING})}parseList(r){const i=()=>this.parseValueLiteral(r);return this.node(this._lexer.token,{kind:ne.LIST,values:this.any(X.BRACKET_L,i,X.BRACKET_R)})}parseObject(r){const i=()=>this.parseObjectField(r);return this.node(this._lexer.token,{kind:ne.OBJECT,fields:this.any(X.BRACE_L,i,X.BRACE_R)})}parseObjectField(r){const i=this._lexer.token,o=this.parseName();return this.expectToken(X.COLON),this.node(i,{kind:ne.OBJECT_FIELD,name:o,value:this.parseValueLiteral(r)})}parseDirectives(r){const i=[];for(;this.peek(X.AT);)i.push(this.parseDirective(r));return i}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(r){const i=this._lexer.token;return this.expectToken(X.AT),this.node(i,{kind:ne.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(r)})}parseTypeReference(){const r=this._lexer.token;let i;if(this.expectOptionalToken(X.BRACKET_L)){const o=this.parseTypeReference();this.expectToken(X.BRACKET_R),i=this.node(r,{kind:ne.LIST_TYPE,type:o})}else i=this.parseNamedType();return this.expectOptionalToken(X.BANG)?this.node(r,{kind:ne.NON_NULL_TYPE,type:i}):i}parseNamedType(){return this.node(this._lexer.token,{kind:ne.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(X.STRING)||this.peek(X.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const r=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");const o=this.parseConstDirectives(),u=this.many(X.BRACE_L,this.parseOperationTypeDefinition,X.BRACE_R);return this.node(r,{kind:ne.SCHEMA_DEFINITION,description:i,directives:o,operationTypes:u})}parseOperationTypeDefinition(){const r=this._lexer.token,i=this.parseOperationType();this.expectToken(X.COLON);const o=this.parseNamedType();return this.node(r,{kind:ne.OPERATION_TYPE_DEFINITION,operation:i,type:o})}parseScalarTypeDefinition(){const r=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");const o=this.parseName(),u=this.parseConstDirectives();return this.node(r,{kind:ne.SCALAR_TYPE_DEFINITION,description:i,name:o,directives:u})}parseObjectTypeDefinition(){const r=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");const o=this.parseName(),u=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),f=this.parseFieldsDefinition();return this.node(r,{kind:ne.OBJECT_TYPE_DEFINITION,description:i,name:o,interfaces:u,directives:s,fields:f})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(X.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(X.BRACE_L,this.parseFieldDefinition,X.BRACE_R)}parseFieldDefinition(){const r=this._lexer.token,i=this.parseDescription(),o=this.parseName(),u=this.parseArgumentDefs();this.expectToken(X.COLON);const s=this.parseTypeReference(),f=this.parseConstDirectives();return this.node(r,{kind:ne.FIELD_DEFINITION,description:i,name:o,arguments:u,type:s,directives:f})}parseArgumentDefs(){return this.optionalMany(X.PAREN_L,this.parseInputValueDef,X.PAREN_R)}parseInputValueDef(){const r=this._lexer.token,i=this.parseDescription(),o=this.parseName();this.expectToken(X.COLON);const u=this.parseTypeReference();let s;this.expectOptionalToken(X.EQUALS)&&(s=this.parseConstValueLiteral());const f=this.parseConstDirectives();return this.node(r,{kind:ne.INPUT_VALUE_DEFINITION,description:i,name:o,type:u,defaultValue:s,directives:f})}parseInterfaceTypeDefinition(){const r=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");const o=this.parseName(),u=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),f=this.parseFieldsDefinition();return this.node(r,{kind:ne.INTERFACE_TYPE_DEFINITION,description:i,name:o,interfaces:u,directives:s,fields:f})}parseUnionTypeDefinition(){const r=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");const o=this.parseName(),u=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(r,{kind:ne.UNION_TYPE_DEFINITION,description:i,name:o,directives:u,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(X.EQUALS)?this.delimitedMany(X.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const r=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");const o=this.parseName(),u=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(r,{kind:ne.ENUM_TYPE_DEFINITION,description:i,name:o,directives:u,values:s})}parseEnumValuesDefinition(){return this.optionalMany(X.BRACE_L,this.parseEnumValueDefinition,X.BRACE_R)}parseEnumValueDefinition(){const r=this._lexer.token,i=this.parseDescription(),o=this.parseEnumValueName(),u=this.parseConstDirectives();return this.node(r,{kind:ne.ENUM_VALUE_DEFINITION,description:i,name:o,directives:u})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Ct(this._lexer.source,this._lexer.token.start,`${du(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const r=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");const o=this.parseName(),u=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(r,{kind:ne.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:o,directives:u,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(X.BRACE_L,this.parseInputValueDef,X.BRACE_R)}parseTypeSystemExtension(){const r=this._lexer.lookahead();if(r.kind===X.NAME)switch(r.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(r)}parseSchemaExtension(){const r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const i=this.parseConstDirectives(),o=this.optionalMany(X.BRACE_L,this.parseOperationTypeDefinition,X.BRACE_R);if(i.length===0&&o.length===0)throw this.unexpected();return this.node(r,{kind:ne.SCHEMA_EXTENSION,directives:i,operationTypes:o})}parseScalarTypeExtension(){const r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const i=this.parseName(),o=this.parseConstDirectives();if(o.length===0)throw this.unexpected();return this.node(r,{kind:ne.SCALAR_TYPE_EXTENSION,name:i,directives:o})}parseObjectTypeExtension(){const r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const i=this.parseName(),o=this.parseImplementsInterfaces(),u=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(o.length===0&&u.length===0&&s.length===0)throw this.unexpected();return this.node(r,{kind:ne.OBJECT_TYPE_EXTENSION,name:i,interfaces:o,directives:u,fields:s})}parseInterfaceTypeExtension(){const r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const i=this.parseName(),o=this.parseImplementsInterfaces(),u=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(o.length===0&&u.length===0&&s.length===0)throw this.unexpected();return this.node(r,{kind:ne.INTERFACE_TYPE_EXTENSION,name:i,interfaces:o,directives:u,fields:s})}parseUnionTypeExtension(){const r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const i=this.parseName(),o=this.parseConstDirectives(),u=this.parseUnionMemberTypes();if(o.length===0&&u.length===0)throw this.unexpected();return this.node(r,{kind:ne.UNION_TYPE_EXTENSION,name:i,directives:o,types:u})}parseEnumTypeExtension(){const r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const i=this.parseName(),o=this.parseConstDirectives(),u=this.parseEnumValuesDefinition();if(o.length===0&&u.length===0)throw this.unexpected();return this.node(r,{kind:ne.ENUM_TYPE_EXTENSION,name:i,directives:o,values:u})}parseInputObjectTypeExtension(){const r=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const i=this.parseName(),o=this.parseConstDirectives(),u=this.parseInputFieldsDefinition();if(o.length===0&&u.length===0)throw this.unexpected();return this.node(r,{kind:ne.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:o,fields:u})}parseDirectiveDefinition(){const r=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(X.AT);const o=this.parseName(),u=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const f=this.parseDirectiveLocations();return this.node(r,{kind:ne.DIRECTIVE_DEFINITION,description:i,name:o,arguments:u,repeatable:s,locations:f})}parseDirectiveLocations(){return this.delimitedMany(X.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const r=this._lexer.token,i=this.parseName();if(Object.prototype.hasOwnProperty.call(Kc,i.value))return i;throw this.unexpected(r)}parseSchemaCoordinate(){const r=this._lexer.token,i=this.expectOptionalToken(X.AT),o=this.parseName();let u;!i&&this.expectOptionalToken(X.DOT)&&(u=this.parseName());let s;return(i||u)&&this.expectOptionalToken(X.PAREN_L)&&(s=this.parseName(),this.expectToken(X.COLON),this.expectToken(X.PAREN_R)),i?s?this.node(r,{kind:ne.DIRECTIVE_ARGUMENT_COORDINATE,name:o,argumentName:s}):this.node(r,{kind:ne.DIRECTIVE_COORDINATE,name:o}):u?s?this.node(r,{kind:ne.ARGUMENT_COORDINATE,name:o,fieldName:u,argumentName:s}):this.node(r,{kind:ne.MEMBER_COORDINATE,name:o,memberName:u}):this.node(r,{kind:ne.TYPE_COORDINATE,name:o})}node(r,i){return this._options.noLocation!==!0&&(i.loc=new OT(r,this._lexer.lastToken,this._lexer.source)),i}peek(r){return this._lexer.token.kind===r}expectToken(r){const i=this._lexer.token;if(i.kind===r)return this.advanceLexer(),i;throw Ct(this._lexer.source,i.start,`Expected ${yv(r)}, found ${du(i)}.`)}expectOptionalToken(r){return this._lexer.token.kind===r?(this.advanceLexer(),!0):!1}expectKeyword(r){const i=this._lexer.token;if(i.kind===X.NAME&&i.value===r)this.advanceLexer();else throw Ct(this._lexer.source,i.start,`Expected "${r}", found ${du(i)}.`)}expectOptionalKeyword(r){const i=this._lexer.token;return i.kind===X.NAME&&i.value===r?(this.advanceLexer(),!0):!1}unexpected(r){const i=r??this._lexer.token;return Ct(this._lexer.source,i.start,`Unexpected ${du(i)}.`)}any(r,i,o){this.expectToken(r);const u=[];for(;!this.expectOptionalToken(o);)u.push(i.call(this));return u}optionalMany(r,i,o){if(this.expectOptionalToken(r)){const u=[];do u.push(i.call(this));while(!this.expectOptionalToken(o));return u}return[]}many(r,i,o){this.expectToken(r);const u=[];do u.push(i.call(this));while(!this.expectOptionalToken(o));return u}delimitedMany(r,i){this.expectOptionalToken(r);const o=[];do o.push(i.call(this));while(this.expectOptionalToken(r));return o}advanceLexer(){const{maxTokens:r}=this._options,i=this._lexer.advance();if(i.kind!==X.EOF&&(++this._tokenCounter,r!==void 0&&this._tokenCounter>r))throw Ct(this._lexer.source,i.start,`Document contains more that ${r} tokens. Parsing aborted.`)}}function du(e){const r=e.value;return yv(e.kind)+(r!=null?` "${r}"`:"")}function yv(e){return MT(e)?`"${e}"`:e}function WT(e){return`"${e.replace(eO,tO)}"`}const eO=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function tO(e){return nO[e.charCodeAt(0)]}const nO=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],pu=Object.freeze({});function Ln(e,r,i=uv){const o=new Map;for(const D of Object.values(ne))o.set(D,rO(r,D));let u,s=Array.isArray(e),f=[e],d=-1,m=[],p=e,y,g;const b=[],x=[];do{d++;const D=d===f.length,N=D&&m.length!==0;if(D){if(y=x.length===0?void 0:b[b.length-1],p=g,g=x.pop(),N)if(s){p=p.slice();let z=0;for(const[I,G]of m){const B=I-z;G===null?(p.splice(B,1),z++):p[B]=G}}else{p={...p};for(const[z,I]of m)p[z]=I}d=u.index,f=u.keys,m=u.edits,s=u.inArray,u=u.prev}else if(g){if(y=s?d:f[d],p=g[y],p==null)continue;b.push(y)}let j;if(!Array.isArray(p)){var O,A;sv(p)||cu(!1,`Invalid AST Node: ${ef(p)}.`);const z=D?(O=o.get(p.kind))===null||O===void 0?void 0:O.leave:(A=o.get(p.kind))===null||A===void 0?void 0:A.enter;if(j=z==null?void 0:z.call(r,p,y,g,b,x),j===pu)break;if(j===!1){if(!D){b.pop();continue}}else if(j!==void 0&&(m.push([y,j]),!D))if(sv(j))p=j;else{b.pop();continue}}if(j===void 0&&N&&m.push([y,p]),D)b.pop();else{var k;u={inArray:s,index:d,keys:f,edits:m,prev:u},s=Array.isArray(p),f=s?p:(k=i[p.kind])!==null&&k!==void 0?k:[],d=-1,m=[],g&&x.push(g),g=p}}while(u!==void 0);return m.length!==0?m[m.length-1][1]:e}function rO(e,r){const i=e[r];return typeof i=="object"?i:typeof i=="function"?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}function iO(e){return Ln(e,oO)}const aO=80,oO={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>le(e.definitions,` `)},OperationDefinition:{leave(e){const r=tf(e.variableDefinitions)?Ee(`( `,le(e.variableDefinitions,` `),` )`):Ee("(",le(e.variableDefinitions,", "),")"),i=Ee("",e.description,` `)+le([e.operation,le([e.name,r]),le(e.directives," ")]," ");return(i==="query"?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:r,defaultValue:i,directives:o,description:u})=>Ee("",u,` `)+e+": "+r+Ee(" = ",i)+Ee(" ",le(o," "))},SelectionSet:{leave:({selections:e})=>Fn(e)},Field:{leave({alias:e,name:r,arguments:i,directives:o,selectionSet:u}){const s=Ee("",e,": ")+r;let f=s+Ee("(",le(i,", "),")");return f.length>aO&&(f=s+Ee(`( `,mu(le(i,` `)),` )`)),le([f,le(o," "),u]," ")}},Argument:{leave:({name:e,value:r})=>e+": "+r},FragmentSpread:{leave:({name:e,directives:r})=>"..."+e+Ee(" ",le(r," "))},InlineFragment:{leave:({typeCondition:e,directives:r,selectionSet:i})=>le(["...",Ee("on ",e),le(r," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:r,variableDefinitions:i,directives:o,selectionSet:u,description:s})=>Ee("",s,` `)+`fragment ${e}${Ee("(",le(i,", "),")")} on ${r} ${Ee("",le(o," ")," ")}`+u},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:r})=>r?kT(e):WT(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+le(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+le(e,", ")+"}"},ObjectField:{leave:({name:e,value:r})=>e+": "+r},Directive:{leave:({name:e,arguments:r})=>"@"+e+Ee("(",le(r,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:r,operationTypes:i})=>Ee("",e,` `)+le(["schema",le(r," "),Fn(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:r})=>e+": "+r},ScalarTypeDefinition:{leave:({description:e,name:r,directives:i})=>Ee("",e,` `)+le(["scalar",r,le(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:r,interfaces:i,directives:o,fields:u})=>Ee("",e,` `)+le(["type",r,Ee("implements ",le(i," & ")),le(o," "),Fn(u)]," ")},FieldDefinition:{leave:({description:e,name:r,arguments:i,type:o,directives:u})=>Ee("",e,` `)+r+(tf(i)?Ee(`( `,mu(le(i,` `)),` )`):Ee("(",le(i,", "),")"))+": "+o+Ee(" ",le(u," "))},InputValueDefinition:{leave:({description:e,name:r,type:i,defaultValue:o,directives:u})=>Ee("",e,` `)+le([r+": "+i,Ee("= ",o),le(u," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:r,interfaces:i,directives:o,fields:u})=>Ee("",e,` `)+le(["interface",r,Ee("implements ",le(i," & ")),le(o," "),Fn(u)]," ")},UnionTypeDefinition:{leave:({description:e,name:r,directives:i,types:o})=>Ee("",e,` `)+le(["union",r,le(i," "),Ee("= ",le(o," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:r,directives:i,values:o})=>Ee("",e,` `)+le(["enum",r,le(i," "),Fn(o)]," ")},EnumValueDefinition:{leave:({description:e,name:r,directives:i})=>Ee("",e,` `)+le([r,le(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:r,directives:i,fields:o})=>Ee("",e,` `)+le(["input",r,le(i," "),Fn(o)]," ")},DirectiveDefinition:{leave:({description:e,name:r,arguments:i,repeatable:o,locations:u})=>Ee("",e,` `)+"directive @"+r+(tf(i)?Ee(`( `,mu(le(i,` `)),` )`):Ee("(",le(i,", "),")"))+(o?" repeatable":"")+" on "+le(u," | ")},SchemaExtension:{leave:({directives:e,operationTypes:r})=>le(["extend schema",le(e," "),Fn(r)]," ")},ScalarTypeExtension:{leave:({name:e,directives:r})=>le(["extend scalar",e,le(r," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:r,directives:i,fields:o})=>le(["extend type",e,Ee("implements ",le(r," & ")),le(i," "),Fn(o)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:r,directives:i,fields:o})=>le(["extend interface",e,Ee("implements ",le(r," & ")),le(i," "),Fn(o)]," ")},UnionTypeExtension:{leave:({name:e,directives:r,types:i})=>le(["extend union",e,le(r," "),Ee("= ",le(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:r,values:i})=>le(["extend enum",e,le(r," "),Fn(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:r,fields:i})=>le(["extend input",e,le(r," "),Fn(i)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:r})=>le([e,Ee(".",r)])},ArgumentCoordinate:{leave:({name:e,fieldName:r,argumentName:i})=>le([e,Ee(".",r),Ee("(",i,":)")])},DirectiveCoordinate:{leave:({name:e})=>le(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:r})=>le(["@",e,Ee("(",r,":)")])}};function le(e,r=""){var i;return(i=e==null?void 0:e.filter(o=>o).join(r))!==null&&i!==void 0?i:""}function Fn(e){return Ee(`{ `,mu(le(e,` `)),` }`)}function Ee(e,r,i=""){return r!=null&&r!==""?e+r+i:""}function mu(e){return Ee(" ",e.replace(/\n/g,` `))}function tf(e){var r;return(r=e==null?void 0:e.some(i=>i.includes(` `)))!==null&&r!==void 0?r:!1}function gv(e){return e.kind===ne.FIELD||e.kind===ne.FRAGMENT_SPREAD||e.kind===ne.INLINE_FRAGMENT}function Co(e,r){var i=e.directives;return!i||!i.length?!0:sO(i).every(function(o){var u=o.directive,s=o.ifArgument,f=!1;return s.value.kind==="Variable"?(f=r&&r[s.value.name.value],ee(f!==void 0,106,u.name.value)):f=s.value.value,u.name.value==="skip"?!f:f})}function ko(e,r,i){var o=new Set(e),u=o.size;return Ln(r,{Directive:function(s){if(o.delete(s.name.value)&&(!i||!o.size))return pu}}),i?!o.size:o.sizeObject.create(null),{forEach:hO,slice:bv}=Array.prototype,{hasOwnProperty:dO}=Object.prototype;class Wn{constructor(r=!0,i=fO){this.weakness=r,this.makeData=i}lookup(){return this.lookupArray(arguments)}lookupArray(r){let i=this;return hO.call(r,o=>i=i.getChildTrie(o)),dO.call(i,"data")?i.data:i.data=this.makeData(bv.call(r))}peek(){return this.peekArray(arguments)}peekArray(r){let i=this;for(let o=0,u=r.length;i&&o=0})||!1,vO=(xv||_v)&&!mO;function pt(e){return e!==null&&typeof e=="object"}function yO(e,r){var i=r,o=[];e.definitions.forEach(function(s){if(s.kind==="OperationDefinition")throw Pt(113,s.operation,s.name?" named '".concat(s.name.value,"'"):"");s.kind==="FragmentDefinition"&&o.push(s)}),typeof i>"u"&&(ee(o.length===1,114,o.length),i=o[0].name.value);var u=R(R({},e),{definitions:ht([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:i}}]}}],e.definitions,!0)});return u}function ia(e){e===void 0&&(e=[]);var r={};return e.forEach(function(i){r[i.name.value]=i}),r}function yu(e,r){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{var i=e.name.value;if(typeof r=="function")return r(i);var o=r&&r[i];return ee(o,115,i),o||null}default:return null}}function gO(e){var r=!0;return Ln(e,{FragmentSpread:function(i){if(r=!!i.directives&&i.directives.some(function(o){return o.name.value==="unmask"}),!r)return pu}}),r}function bO(){}class af{constructor(r=1/0,i=bO){this.max=r,this.dispose=i,this.map=new Map,this.newest=null,this.oldest=null}has(r){return this.map.has(r)}get(r){const i=this.getNode(r);return i&&i.value}get size(){return this.map.size}getNode(r){const i=this.map.get(r);if(i&&i!==this.newest){const{older:o,newer:u}=i;u&&(u.older=o),o&&(o.newer=u),i.older=this.newest,i.older.newer=i,i.newer=null,this.newest=i,i===this.oldest&&(this.oldest=u)}return i}set(r,i){let o=this.getNode(r);return o?o.value=i:(o={key:r,value:i,newer:null,older:this.newest},this.newest&&(this.newest.newer=o),this.newest=o,this.oldest=this.oldest||o,this.map.set(r,o),o.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(r){const i=this.map.get(r);return i?(i===this.newest&&(this.newest=i.older),i===this.oldest&&(this.oldest=i.newer),i.newer&&(i.newer.older=i.older),i.older&&(i.older.newer=i.newer),this.map.delete(r),this.dispose(i.value,r),!0):!1}}function of(){}const _O=of,xO=typeof WeakRef<"u"?WeakRef:function(e){return{deref:()=>e}},SO=typeof WeakMap<"u"?WeakMap:Map,EO=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:of,unregister:of}},TO=10024;class gu{constructor(r=1/0,i=_O){this.max=r,this.dispose=i,this.map=new SO,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const o=this.unfinalizedNodes.values();for(let u=0;u0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new EO(this.deleteNode.bind(this))}has(r){return this.map.has(r)}get(r){const i=this.getNode(r);return i&&i.value}getNode(r){const i=this.map.get(r);if(i&&i!==this.newest){const{older:o,newer:u}=i;u&&(u.older=o),o&&(o.newer=u),i.older=this.newest,i.older.newer=i,i.newer=null,this.newest=i,i===this.oldest&&(this.oldest=u)}return i}set(r,i){let o=this.getNode(r);return o?o.value=i:(o={key:r,value:i,newer:null,older:this.newest},this.newest&&(this.newest.newer=o),this.newest=o,this.oldest=this.oldest||o,this.scheduleFinalization(o),this.map.set(r,o),this.size++,o.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(r){r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.size--;const i=r.key||r.keyRef&&r.keyRef.deref();this.dispose(r.value,i),r.keyRef?this.registry.unregister(r):this.unfinalizedNodes.delete(r),i&&this.map.delete(i)}delete(r){const i=this.map.get(r);return i?(this.deleteNode(i),!0):!1}scheduleFinalization(r){this.unfinalizedNodes.add(r),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var lf=new WeakSet;function Sv(e){e.size<=(e.max||-1)||lf.has(e)||(lf.add(e),setTimeout(function(){e.clean(),lf.delete(e)},100))}var uf=function(e,r){var i=new gu(e,r);return i.set=function(o,u){var s=gu.prototype.set.call(this,o,u);return Sv(this),s},i},OO=function(e,r){var i=new af(e,r);return i.set=function(o,u){var s=af.prototype.set.call(this,o,u);return Sv(this),s},i},DO=Symbol.for("apollo.cacheSize"),Vn=R({},uu[DO]),Si={};function sf(e,r){Si[e]=r}var wO=globalThis.__DEV__!==!1?RO:void 0,AO=globalThis.__DEV__!==!1?MO:void 0,CO=globalThis.__DEV__!==!1?Ev:void 0;function kO(){var e={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(e).map(function(r){var i=r[0],o=r[1];return[i,Vn[i]||o]}))}function RO(){var e,r,i,o,u;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:kO(),sizes:R({print:(e=Si.print)===null||e===void 0?void 0:e.call(Si),parser:(r=Si.parser)===null||r===void 0?void 0:r.call(Si),canonicalStringify:(i=Si.canonicalStringify)===null||i===void 0?void 0:i.call(Si),links:ff(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:Ov(this.queryManager.documentTransform)}},(u=(o=this.cache).getMemoryInternals)===null||u===void 0?void 0:u.call(o))}}function Ev(){return{cache:{fragmentQueryDocuments:Cr(this.getFragmentDoc)}}}function MO(){var e=this.config.fragments;return R(R({},Ev.apply(this)),{addTypenameDocumentTransform:Ov(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Cr(this.storeReader.executeSelectionSet),executeSubSelectedArray:Cr(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Cr(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Cr(e==null?void 0:e.findFragmentSpreads),lookup:Cr(e==null?void 0:e.lookup),transform:Cr(e==null?void 0:e.transform)}})}function zO(e){return!!e&&"dirtyKey"in e}function Cr(e){return zO(e)?e.size:void 0}function Tv(e){return e!=null}function Ov(e){return cf(e).map(function(r){return{cache:r}})}function cf(e){return e?ht(ht([Cr(e==null?void 0:e.performWork)],cf(e==null?void 0:e.left),!0),cf(e==null?void 0:e.right),!0).filter(Tv):[]}function ff(e){var r;return e?ht(ht([(r=e==null?void 0:e.getMemoryInternals)===null||r===void 0?void 0:r.call(e)],ff(e==null?void 0:e.left),!0),ff(e==null?void 0:e.right),!0).filter(Tv):[]}var kr=Object.assign(function(r){return JSON.stringify(r,jO)},{reset:function(){aa=new OO(Vn.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&sf("canonicalStringify",function(){return aa.size});var aa;kr.reset();function jO(e,r){if(r&&typeof r=="object"){var i=Object.getPrototypeOf(r);if(i===Object.prototype||i===null){var o=Object.keys(r);if(o.every(NO))return r;var u=JSON.stringify(o),s=aa.get(u);if(!s){o.sort();var f=JSON.stringify(o);s=aa.get(f)||o,aa.set(u,s),aa.set(f,s)}var d=Object.create(i);return s.forEach(function(m){d[m]=r[m]}),d}}return r}function NO(e,r,i){return r===0||i[r-1]<=e}function oa(e){return{__ref:String(e)}}function Ye(e){return!!(e&&typeof e=="object"&&typeof e.__ref=="string")}function $O(e){return pt(e)&&e.kind==="Document"&&Array.isArray(e.definitions)}function LO(e){return e.kind==="StringValue"}function FO(e){return e.kind==="BooleanValue"}function UO(e){return e.kind==="IntValue"}function qO(e){return e.kind==="FloatValue"}function BO(e){return e.kind==="Variable"}function IO(e){return e.kind==="ObjectValue"}function VO(e){return e.kind==="ListValue"}function QO(e){return e.kind==="EnumValue"}function HO(e){return e.kind==="NullValue"}function la(e,r,i,o){if(UO(i)||qO(i))e[r.value]=Number(i.value);else if(FO(i)||LO(i))e[r.value]=i.value;else if(IO(i)){var u={};i.fields.map(function(f){return la(u,f.name,f.value,o)}),e[r.value]=u}else if(BO(i)){var s=(o||{})[i.name.value];e[r.value]=s}else if(VO(i))e[r.value]=i.values.map(function(f){var d={};return la(d,r,f,o),d[r.value]});else if(QO(i))e[r.value]=i.value;else if(HO(i))e[r.value]=null;else throw Pt(124,r.value,i.kind)}function GO(e,r){var i=null;e.directives&&(i={},e.directives.forEach(function(u){i[u.name.value]={},u.arguments&&u.arguments.forEach(function(s){var f=s.name,d=s.value;return la(i[u.name.value],f,d,r)})}));var o=null;return e.arguments&&e.arguments.length&&(o={},e.arguments.forEach(function(u){var s=u.name,f=u.value;return la(o,s,f,r)})),Dv(e.name.value,o,i)}var YO=["connection","include","skip","client","rest","export","nonreactive"],Ro=kr,Dv=Object.assign(function(e,r,i){if(r&&i&&i.connection&&i.connection.key)if(i.connection.filter&&i.connection.filter.length>0){var o=i.connection.filter?i.connection.filter:[];o.sort();var u={};return o.forEach(function(d){u[d]=r[d]}),"".concat(i.connection.key,"(").concat(Ro(u),")")}else return i.connection.key;var s=e;if(r){var f=Ro(r);s+="(".concat(f,")")}return i&&Object.keys(i).forEach(function(d){YO.indexOf(d)===-1&&(i[d]&&Object.keys(i[d]).length?s+="@".concat(d,"(").concat(Ro(i[d]),")"):s+="@".concat(d))}),s},{setStringify:function(e){var r=Ro;return Ro=e,r}});function bu(e,r){if(e.arguments&&e.arguments.length){var i={};return e.arguments.forEach(function(o){var u=o.name,s=o.value;return la(i,u,s,r)}),i}return null}function er(e){return e.alias?e.alias.value:e.name.value}function hf(e,r,i){for(var o,u=0,s=r.selections;uclass{constructor(){this.id=["slot",ZO++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let r=qt;r;r=r.parent)if(this.id in r.slots){const i=r.slots[this.id];if(i===Cv)break;return r!==qt&&(qt.slots[this.id]=i),!0}return qt&&(qt.slots[this.id]=Cv),!1}getValue(){if(this.hasValue())return qt.slots[this.id]}withValue(r,i,o,u){const s={__proto__:null,[this.id]:r},f=qt;qt={parent:f,slots:s};try{return i.apply(u,o)}finally{qt=f}}static bind(r){const i=qt;return function(){const o=qt;try{return qt=i,r.apply(this,arguments)}finally{qt=o}}}static noContext(r,i,o){if(qt){const u=qt;try{return qt=null,r.apply(o,i)}finally{qt=u}}else return r.apply(o,i)}};function kv(e){try{return e()}catch{}}const pf="@wry/context:Slot",Rv=kv(()=>globalThis)||kv(()=>globalThis)||Object.create(null),ca=Rv[pf]||Array[pf]||(function(e){try{Object.defineProperty(Rv,pf,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(PO()),{bind:b5,noContext:_5}=ca,_u=new ca,{hasOwnProperty:KO}=Object.prototype,mf=Array.from||function(e){const r=[];return e.forEach(i=>r.push(i)),r};function vf(e){const{unsubscribe:r}=e;typeof r=="function"&&(e.unsubscribe=void 0,r())}const jo=[],JO=100;function fa(e,r){if(!e)throw new Error(r||"assertion failure")}function Mv(e,r){const i=e.length;return i>0&&i===r.length&&e[i-1]===r[i-1]}function zv(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function jv(e){return e.slice(0)}class xu{constructor(r){this.fn=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++xu.count}peek(){if(this.value.length===1&&!Mr(this))return Nv(this),this.value[0]}recompute(r){return fa(!this.recomputing,"already recomputing"),Nv(this),Mr(this)?WO(this,r):zv(this.value)}setDirty(){this.dirty||(this.dirty=!0,$v(this),vf(this))}dispose(){this.setDirty(),Bv(this),yf(this,(r,i)=>{r.setDirty(),Iv(r,this)})}forget(){this.dispose()}dependOn(r){r.add(this),this.deps||(this.deps=jo.pop()||new Set),this.deps.add(r)}forgetDeps(){this.deps&&(mf(this.deps).forEach(r=>r.delete(this)),this.deps.clear(),jo.push(this.deps),this.deps=null)}}xu.count=0;function Nv(e){const r=_u.getValue();if(r)return e.parents.add(r),r.childValues.has(e)||r.childValues.set(e,[]),Mr(e)?Fv(r,e):Uv(r,e),r}function WO(e,r){return Bv(e),_u.withValue(e,eD,[e,r]),nD(e,r)&&tD(e),zv(e.value)}function eD(e,r){e.recomputing=!0;const{normalizeResult:i}=e;let o;i&&e.value.length===1&&(o=jv(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,r),i&&o&&!Mv(o,e.value))try{e.value[0]=i(e.value[0],o[0])}catch{}}catch(u){e.value[1]=u}e.recomputing=!1}function Mr(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function tD(e){e.dirty=!1,!Mr(e)&&Lv(e)}function $v(e){yf(e,Fv)}function Lv(e){yf(e,Uv)}function yf(e,r){const i=e.parents.size;if(i){const o=mf(e.parents);for(let u=0;u0&&e.childValues.forEach((r,i)=>{Iv(e,i)}),e.forgetDeps(),fa(e.dirtyChildren===null)}function Iv(e,r){r.parents.delete(e),e.childValues.delete(r),qv(e,r)}function nD(e,r){if(typeof e.subscribe=="function")try{vf(e),e.unsubscribe=e.subscribe.apply(null,r)}catch{return e.setDirty(),!1}return!0}const rD={setDirty:!0,dispose:!0,forget:!0};function Vv(e){const r=new Map;function i(o){const u=_u.getValue();if(u){let s=r.get(o);s||r.set(o,s=new Set),u.dependOn(s)}}return i.dirty=function(u,s){const f=r.get(u);if(f){const d=s&&KO.call(rD,s)?s:"setDirty";mf(f).forEach(m=>m[d]()),r.delete(u),vf(f)}},i}let Qv;function iD(...e){return(Qv||(Qv=new Wn(typeof WeakMap=="function"))).lookupArray(e)}const gf=new Set;function No(e,{max:r=Math.pow(2,16),keyArgs:i,makeCacheKey:o=iD,normalizeResult:u,subscribe:s,cache:f=af}=Object.create(null)){const d=typeof f=="function"?new f(r,b=>b.dispose()):f,m=function(){const b=o.apply(null,i?i.apply(null,arguments):arguments);if(b===void 0)return e.apply(null,arguments);let x=d.get(b);x||(d.set(b,x=new xu(e)),x.normalizeResult=u,x.subscribe=s,x.forget=()=>d.delete(b));const O=x.recompute(Array.prototype.slice.call(arguments));return d.set(b,x),gf.add(d),_u.hasValue()||(gf.forEach(A=>A.clean()),gf.clear()),O};Object.defineProperty(m,"size",{get:()=>d.size,configurable:!1,enumerable:!1}),Object.freeze(m.options={max:r,keyArgs:i,makeCacheKey:o,normalizeResult:u,subscribe:s,cache:d});function p(b){const x=b&&d.get(b);x&&x.setDirty()}m.dirtyKey=p,m.dirty=function(){p(o.apply(null,arguments))};function y(b){const x=b&&d.get(b);if(x)return x.peek()}m.peekKey=y,m.peek=function(){return y(o.apply(null,arguments))};function g(b){return b?d.delete(b):!1}return m.forgetKey=g,m.forget=function(){return g(o.apply(null,arguments))},m.makeCacheKey=o,m.getKey=i?function(){return o.apply(null,i.apply(null,arguments))}:o,Object.freeze(m)}function aD(e){return e}var Hv=(function(){function e(r,i){i===void 0&&(i=Object.create(null)),this.resultCache=nf?new WeakSet:new Set,this.transform=r,i.getCacheKey&&(this.getCacheKey=i.getCacheKey),this.cached=i.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(r){return[r]},e.identity=function(){return new e(aD,{cache:!1})},e.split=function(r,i,o){return o===void 0&&(o=e.identity()),Object.assign(new e(function(u){var s=r(u)?i:o;return s.transformDocument(u)},{cache:!1}),{left:i,right:o})},e.prototype.resetCache=function(){var r=this;if(this.cached){var i=new Wn(xi);this.performWork=No(e.prototype.performWork.bind(this),{makeCacheKey:function(o){var u=r.getCacheKey(o);if(u)return ee(Array.isArray(u),105),i.lookupArray(u)},max:Vn["documentTransform.cache"],cache:gu})}},e.prototype.performWork=function(r){return ua(r),this.transform(r)},e.prototype.transformDocument=function(r){if(this.resultCache.has(r))return r;var i=this.performWork(r);return this.resultCache.add(i),i},e.prototype.concat=function(r){var i=this;return Object.assign(new e(function(o){return r.transformDocument(i.transformDocument(o))},{cache:!1}),{left:this,right:r})},e})(),$o,Ti=Object.assign(function(e){var r=$o.get(e);return r||(r=iO(e),$o.set(e,r)),r},{reset:function(){$o=new uf(Vn.print||2e3)}});Ti.reset(),globalThis.__DEV__!==!1&&sf("print",function(){return $o?$o.size:0});var mt=Array.isArray;function gn(e){return Array.isArray(e)&&e.length>0}var Gv={kind:ne.FIELD,name:{kind:ne.NAME,value:"__typename"}};function Yv(e,r){return!e||e.selectionSet.selections.every(function(i){return i.kind===ne.FRAGMENT_SPREAD&&Yv(r[i.name.value],r)})}function oD(e){return Yv(Ei(e)||Av(e),ia(sa(e)))?null:e}function lD(e){var r=new Map,i=new Map;return e.forEach(function(o){o&&(o.name?r.set(o.name,o):o.test&&i.set(o.test,o))}),function(o){var u=r.get(o.name.value);return!u&&i.size&&i.forEach(function(s,f){f(o)&&(u=s)}),u}}function Xv(e){var r=new Map;return function(o){o===void 0&&(o=e);var u=r.get(o);return u||r.set(o,u={variables:new Set,fragmentSpreads:new Set}),u}}function Zv(e,r){ua(r);for(var i=Xv(""),o=Xv(""),u=function(D){for(var N=0,j=void 0;N=0;--f)r.definitions[f].kind===ne.OPERATION_DEFINITION&&++s;var d=lD(e),m=function(D){return gn(D)&&D.map(d).some(function(N){return N&&N.remove})},p=new Map,y=!1,g={enter:function(D){if(m(D.directives))return y=!0,null}},b=Ln(r,{Field:g,InlineFragment:g,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(D,N,j,z,I){var G=u(I);G&&G.variables.add(D.name.value)}},FragmentSpread:{enter:function(D,N,j,z,I){if(m(D.directives))return y=!0,null;var G=u(I);G&&G.fragmentSpreads.add(D.name.value)}},FragmentDefinition:{enter:function(D,N,j,z){p.set(JSON.stringify(z),D)},leave:function(D,N,j,z){var I=p.get(JSON.stringify(z));if(D===I)return D;if(s>0&&D.selectionSet.selections.every(function(G){return G.kind===ne.FIELD&&G.name.value==="__typename"}))return o(D.name.value).removed=!0,y=!0,null}},Directive:{leave:function(D){if(d(D))return y=!0,null}}});if(!y)return r;var x=function(D){return D.transitiveVars||(D.transitiveVars=new Set(D.variables),D.removed||D.fragmentSpreads.forEach(function(N){x(o(N)).transitiveVars.forEach(function(j){D.transitiveVars.add(j)})})),D},O=new Set;b.definitions.forEach(function(D){D.kind===ne.OPERATION_DEFINITION?x(i(D.name&&D.name.value)).fragmentSpreads.forEach(function(N){O.add(N)}):D.kind===ne.FRAGMENT_DEFINITION&&s===0&&!o(D.name.value).removed&&O.add(D.name.value)}),O.forEach(function(D){x(o(D)).fragmentSpreads.forEach(function(N){O.add(N)})});var A=function(D){return!!(!O.has(D)||o(D).removed)},k={enter:function(D){if(A(D.name.value))return null}};return oD(Ln(b,{FragmentSpread:k,FragmentDefinition:k,OperationDefinition:{leave:function(D){if(D.variableDefinitions){var N=x(i(D.name&&D.name.value)).transitiveVars;if(N.size1)for(var o=new zr,u=1;u=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dD(e,r){if(e){if(typeof e=="string")return Jv(e,r);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Jv(e,r)}}function Jv(e,r){(r==null||r>e.length)&&(r=e.length);for(var i=0,o=new Array(r);i1,d=!1,m=arguments[1],p=m;return new s(function(y){return u.subscribe({next:function(g){var b=!d;if(d=!0,!b||f)try{p=o(p,g)}catch(x){return y.error(x)}else p=g},error:function(g){y.error(g)},complete:function(){if(!d&&!f)return y.error(new TypeError("Cannot reduce an empty sequence"));y.next(p),y.complete()}})})},r.concat=function(){for(var o=this,u=arguments.length,s=new Array(u),f=0;f=0&&d.splice(b,1),p()}});d.push(g)},error:function(y){f.error(y)},complete:function(){p()}});function p(){m.closed&&d.length===0&&f.complete()}return function(){d.forEach(function(y){return y.unsubscribe()}),m.unsubscribe()}})},r[Tf]=function(){return this},e.from=function(o){var u=typeof this=="function"?this:e;if(o==null)throw new TypeError(o+" is not an object");var s=Eu(o,Tf);if(s){var f=s.call(o);if(Object(f)!==f)throw new TypeError(f+" is not an object");return mD(f)&&f.constructor===u?f:new u(function(d){return f.subscribe(d)})}if(Sf("iterator")&&(s=Eu(o,pD),s))return new u(function(d){Tu(function(){if(!d.closed){for(var m=hD(s.call(o)),p;!(p=m()).done;){var y=p.value;if(d.next(y),d.closed)return}d.complete()}})});if(Array.isArray(o))return new u(function(d){Tu(function(){if(!d.closed){for(var m=0;m=0;--d){var m=f[d],p=!isNaN(+m),y=p?[]:{};y[m]=s,s=y}i=o.merge(i,s)}),i}function Ou(e){var r=Cf(e);return gn(r)}function Cf(e){var r=gn(e.errors)?e.errors.slice(0):[];return va(e)&&gn(e.incremental)&&e.incremental.forEach(function(i){i.errors&&r.push.apply(r,i.errors)}),r}function Oi(){for(var e=[],r=0;r-1;){if(k=void 0,B=[d.slice(0,A),d.slice(A+f.length)],k=B[0],d=B[1],D=k.indexOf(`\r \r `),N=YD(k.slice(0,D)),j=N["content-type"],j&&j.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(z=k.slice(D),z){if(I=py(e,z),Object.keys(I).length>1||"data"in I||"incremental"in I||"errors"in I||"payload"in I)if(DD(I)){if(G={},"payload"in I){if(Object.keys(I).length===1&&I.payload===null)return[2];G=R({},I.payload)}"errors"in I&&(G=R(R({},G),{extensions:R(R({},"extensions"in G?G.extensions:null),(J={},J[zf]=I.errors,J))})),r(G)}else r(I);else if(Object.keys(I).length===1&&"hasNext"in I&&!I.hasNext)return[2]}A=d.indexOf(f)}return[3,1];case 3:return[2]}})})}function YD(e){var r={};return e.split(` `).forEach(function(i){var o=i.indexOf(":");if(o>-1){var u=i.slice(0,o).trim().toLowerCase(),s=i.slice(o+1).trim();r[u]=s}}),r}function py(e,r){if(e.status>=300){var i=function(){try{return JSON.parse(r)}catch{return r}};sy(e,i(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(r)}catch(u){var o=u;throw o.name="ServerParseError",o.response=e,o.statusCode=e.status,o.bodyText=r,o}}function XD(e,r){e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e)}function ZD(e){return function(r){return r.text().then(function(i){return py(r,i)}).then(function(i){return!Array.isArray(i)&&!dy.call(i,"data")&&!dy.call(i,"errors")&&sy(r,i,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(o){return o.operationName}):e.operationName,"'.")),i})}}var jf=function(e,r){var i;try{i=JSON.stringify(e)}catch(u){var o=Pt(54,r,u.message);throw o.parseError=u,o}return i},PD={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},KD={accept:"*/*","content-type":"application/json"},JD={method:"POST"},WD={http:PD,headers:KD,options:JD},ew=function(e,r){return r(e)};function tw(e,r){for(var i=[],o=2;o"u")throw Pt(51)},iw=function(e,r){var i=e.getContext(),o=i.uri;return o||(typeof r=="function"?r(e):r||"/graphql")};function aw(e,r){var i=[],o=function(g,b){i.push("".concat(g,"=").concat(encodeURIComponent(b)))};if("query"in r&&o("query",r.query),r.operationName&&o("operationName",r.operationName),r.variables){var u=void 0;try{u=jf(r.variables,"Variables map")}catch(g){return{parseError:g}}o("variables",u)}if(r.extensions){var s=void 0;try{s=jf(r.extensions,"Extensions map")}catch(g){return{parseError:g}}o("extensions",s)}var f="",d=e,m=e.indexOf("#");m!==-1&&(f=e.substr(m),d=e.substr(0,m));var p=d.indexOf("?")===-1?"?":"&",y=d+p+i.join("&")+f;return{newURI:y}}var my=$n(function(){return fetch}),ow=function(e){e===void 0&&(e={});var r=e.uri,i=r===void 0?"/graphql":r,o=e.fetch,u=e.print,s=u===void 0?ew:u,f=e.includeExtensions,d=e.preserveHeaderCase,m=e.useGETForQueries,p=e.includeUnusedVariables,y=p===void 0?!1:p,g=Rn(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&rw(o||my);var b={http:{includeExtensions:f,preserveHeaderCase:d},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new Bo(function(x){var O=iw(x,i),A=x.getContext(),k={};if(A.clientAwareness){var D=A.clientAwareness,N=D.name,j=D.version;N&&(k["apollographql-client-name"]=N),j&&(k["apollographql-client-version"]=j)}var z=R(R({},k),A.headers),I={http:A.http,options:A.fetchOptions,credentials:A.credentials,headers:z};if(ko(["client"],x.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ee.warn(52);var G=Pv(x.query);if(!G)return kf(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));x.query=G}var B=tw(x,s,WD,b,I),J=B.options,oe=B.body;oe.variables&&!y&&(oe.variables=kD(oe.variables,x.query));var _e;!J.signal&&typeof AbortController<"u"&&(_e=new AbortController,J.signal=_e.signal);var ce=function(L){return L.kind==="OperationDefinition"&&L.operation==="mutation"},Te=function(L){return L.kind==="OperationDefinition"&&L.operation==="subscription"},ge=Te(zo(x.query)),Xe=ko(["defer"],x.query);if(m&&!x.query.definitions.some(ce)&&(J.method="GET"),Xe||ge){J.headers=J.headers||{};var dt="multipart/mixed;";ge&&Xe&&globalThis.__DEV__!==!1&&ee.warn(53),ge?dt+="boundary=graphql;subscriptionSpec=1.0,application/json":Xe&&(dt+="deferSpec=20220824,application/json"),J.headers.accept=dt}if(J.method==="GET"){var Q=aw(O,oe),te=Q.newURI,me=Q.parseError;if(me)return kf(me);O=te}else try{J.body=jf(oe,"Payload")}catch(L){return kf(L)}return new rt(function(L){var H=o||$n(function(){return fetch})||my,T=L.next.bind(L);return H(O,J).then(function(w){var E;x.setContext({response:w});var Z=(E=w.headers)===null||E===void 0?void 0:E.get("content-type");return Z!==null&&/^multipart\/mixed/i.test(Z)?GD(w,T):ZD(x)(w).then(T)}).then(function(){_e=void 0,L.complete()}).catch(function(w){_e=void 0,XD(w,L)}),function(){_e&&_e.abort()}})})},vy=(function(e){In(r,e);function r(i){i===void 0&&(i={});var o=e.call(this,ow(i).request)||this;return o.options=i,o}return r})(Bo);const{toString:yy,hasOwnProperty:lw}=Object.prototype,gy=Function.prototype.toString,Nf=new Map;function Qe(e,r){try{return $f(e,r)}finally{Nf.clear()}}function $f(e,r){if(e===r)return!0;const i=yy.call(e),o=yy.call(r);if(i!==o)return!1;switch(i){case"[object Array]":if(e.length!==r.length)return!1;case"[object Object]":{if(_y(e,r))return!0;const u=by(e),s=by(r),f=u.length;if(f!==s.length)return!1;for(let d=0;d=0&&e.indexOf(r,i)===i}function _y(e,r){let i=Nf.get(e);if(i){if(i.has(r))return!0}else Nf.set(e,i=new Set);return i.add(r),!1}function xy(e,r,i,o){var u=r.data,s=Rn(r,["data"]),f=i.data,d=Rn(i,["data"]);return Qe(s,d)&&wu(zo(e).selectionSet,u,f,{fragmentMap:ia(sa(e)),variables:o})}function wu(e,r,i,o){if(r===i)return!0;var u=new Set;return e.selections.every(function(s){if(u.has(s)||(u.add(s),!Co(s,o.variables))||Sy(s))return!0;if(Rr(s)){var f=er(s),d=r&&r[f],m=i&&i[f],p=s.selectionSet;if(!p)return Qe(d,m);var y=Array.isArray(d),g=Array.isArray(m);if(y!==g)return!1;if(y&&g){var b=d.length;if(m.length!==b)return!1;for(var x=0;x"u"&&(ee(u.length===1,61,u.length),o=u[0].name.value);var s=u.find(function(f){return f.name.value===o});return ee(!!s,62,o),e==null||Qe(e,{})?e:wy(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:ia(sa(r)),cache:i,mutableTargets:new Ey,knownChanged:new Ty})}function pw(e,r,i){var o;if(!i.fragmentMatches)return globalThis.__DEV__!==!1&&Dy(),e;var u=Ei(r);return ee(u,63),e==null?e:wy(e,u.selectionSet,{operationType:u.operation,operationName:(o=u.name)===null||o===void 0?void 0:o.value,fragmentMap:ia(sa(r)),cache:i,mutableTargets:new Ey,knownChanged:new Ty})}var Cy=(function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=No(yO,{max:Vn["cache.fragmentQueryDocuments"]||1e3,cache:gu})}return e.prototype.lookupFragment=function(r){return null},e.prototype.batch=function(r){var i=this,o=typeof r.optimistic=="string"?r.optimistic:r.optimistic===!1?null:void 0,u;return this.performTransaction(function(){return u=r.update(i)},o),u},e.prototype.recordOptimisticTransaction=function(r,i){this.performTransaction(r,i)},e.prototype.transformDocument=function(r){return r},e.prototype.transformForLink=function(r){return r},e.prototype.identify=function(r){},e.prototype.gc=function(){return[]},e.prototype.modify=function(r){return!1},e.prototype.readQuery=function(r,i){var o=this;return i===void 0&&(i=!!r.optimistic),globalThis.__DEV__!==!1&>(r,"canonizeResults","cache.readQuery"),zt("canonizeResults",function(){return o.read(R(R({},r),{rootId:r.id||"ROOT_QUERY",optimistic:i}))})},e.prototype.watchFragment=function(r){var i=this,o=r.fragment,u=r.fragmentName,s=r.from,f=r.optimistic,d=f===void 0?!0:f,m=Rn(r,["fragment","fragmentName","from","optimistic"]),p=this.getFragmentDoc(o,u),y=typeof s>"u"||typeof s=="string"?s:this.identify(s),g=!!r[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var b=u||Av(o).name.value;y||globalThis.__DEV__!==!1&&ee.warn(1,b)}var x=R(R({},m),{returnPartialData:!0,id:y,query:p,optimistic:d}),O;return new rt(function(A){return i.watch(R(R({},x),{immediate:!0,callback:function(k){var D=g?Ay(k.result,o,i,u):k.result;if(!(O&&xy(p,{data:O.result},{data:D},r.variables))){var N={data:D,complete:!!k.complete};k.missing&&(N.missing=Su(k.missing.map(function(j){return j.missing}))),O=R(R({},k),{result:D}),A.next(N)}}}))})},e.prototype.readFragment=function(r,i){var o=this;return i===void 0&&(i=!!r.optimistic),globalThis.__DEV__!==!1&>(r,"canonizeResults","cache.readFragment"),zt("canonizeResults",function(){return o.read(R(R({},r),{query:o.getFragmentDoc(r.fragment,r.fragmentName),rootId:r.id,optimistic:i}))})},e.prototype.writeQuery=function(r){var i=r.id,o=r.data,u=Rn(r,["id","data"]);return this.write(Object.assign(u,{dataId:i||"ROOT_QUERY",result:o}))},e.prototype.writeFragment=function(r){var i=r.id,o=r.data,u=r.fragment,s=r.fragmentName,f=Rn(r,["id","data","fragment","fragmentName"]);return this.write(Object.assign(f,{query:this.getFragmentDoc(u,s),dataId:i,result:o}))},e.prototype.updateQuery=function(r,i){return globalThis.__DEV__!==!1&>(r,"canonizeResults","cache.updateQuery"),this.batch({update:function(o){var u=zt("canonizeResults",function(){return o.readQuery(r)}),s=i(u);return s==null?u:(o.writeQuery(R(R({},r),{data:s})),s)}})},e.prototype.updateFragment=function(r,i){return globalThis.__DEV__!==!1&>(r,"canonizeResults","cache.updateFragment"),this.batch({update:function(o){var u=zt("canonizeResults",function(){return o.readFragment(r)}),s=i(u);return s==null?u:(o.writeFragment(R(R({},r),{data:s})),s)}})},e})();globalThis.__DEV__!==!1&&(Cy.prototype.getMemoryInternals=CO);var ky=(function(e){In(r,e);function r(i,o,u,s){var f,d=e.call(this,i)||this;if(d.message=i,d.path=o,d.query=u,d.variables=s,Array.isArray(d.path)){d.missing=d.message;for(var m=d.path.length-1;m>=0;--m)d.missing=(f={},f[d.path[m]]=d.missing,f)}else d.missing=d.path;return d.__proto__=r.prototype,d}return r})(Error),jt=Object.prototype.hasOwnProperty;function Vo(e){return e==null}function Ry(e,r){var i=e.__typename,o=e.id,u=e._id;if(typeof i=="string"&&(r&&(r.keyObject=Vo(o)?Vo(u)?void 0:{_id:u}:{id:o}),Vo(o)&&!Vo(u)&&(o=u),!Vo(o)))return"".concat(i,":").concat(typeof o=="number"||typeof o=="string"?o:JSON.stringify(o))}var My={dataIdFromObject:Ry,addTypename:!0,resultCaching:!0,canonizeResults:!1};function mw(e){return Oi(My,e)}function zy(e){var r=e.canonizeResults;return r===void 0?My.canonizeResults:r}function vw(e,r){return Ye(r)?e.get(r.__ref,"__typename"):r&&r.__typename}var jy=/^[_a-z][_0-9a-z]*/i;function Nr(e){var r=e.match(jy);return r?r[0]:e}function Ff(e,r,i){return pt(r)?mt(r)?r.every(function(o){return Ff(e,o,i)}):e.selections.every(function(o){if(Rr(o)&&Co(o,i)){var u=er(o);return jt.call(r,u)&&(!o.selectionSet||Ff(o.selectionSet,r[u],i))}return!0}):!1}function ya(e){return pt(e)&&!Ye(e)&&!mt(e)}function yw(){return new zr}function Ny(e,r){var i=ia(sa(e));return{fragmentMap:i,lookupFragment:function(o){var u=i[o];return!u&&r&&(u=r.lookup(o)),u||null}}}var Au=Object.create(null),Uf=function(){return Au},$y=Object.create(null),Qo=(function(){function e(r,i){var o=this;this.policies=r,this.group=i,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(u,s){return pa(Ye(u)?o.get(u.__ref,s):u&&u[s])},this.canRead=function(u){return Ye(u)?o.has(u.__ref):typeof u=="object"},this.toReference=function(u,s){if(typeof u=="string")return oa(u);if(Ye(u))return u;var f=o.policies.identify(u)[0];if(f){var d=oa(f);return s&&o.merge(f,u),d}}}return e.prototype.toObject=function(){return R({},this.data)},e.prototype.has=function(r){return this.lookup(r,!0)!==void 0},e.prototype.get=function(r,i){if(this.group.depend(r,i),jt.call(this.data,r)){var o=this.data[r];if(o&&jt.call(o,i))return o[i]}if(i==="__typename"&&jt.call(this.policies.rootTypenamesById,r))return this.policies.rootTypenamesById[r];if(this instanceof $r)return this.parent.get(r,i)},e.prototype.lookup=function(r,i){if(i&&this.group.depend(r,"__exists"),jt.call(this.data,r))return this.data[r];if(this instanceof $r)return this.parent.lookup(r,i);if(this.policies.rootTypenamesById[r])return Object.create(null)},e.prototype.merge=function(r,i){var o=this,u;Ye(r)&&(r=r.__ref),Ye(i)&&(i=i.__ref);var s=typeof r=="string"?this.lookup(u=r):r,f=typeof i=="string"?this.lookup(u=i):i;if(f){ee(typeof u=="string",2);var d=new zr(bw).merge(s,f);if(this.data[u]=d,d!==s&&(delete this.refs[u],this.group.caching)){var m=Object.create(null);s||(m.__exists=1),Object.keys(f).forEach(function(p){if(!s||s[p]!==d[p]){m[p]=1;var y=Nr(p);y!==p&&!o.policies.hasKeyArgs(d.__typename,y)&&(m[y]=1),d[p]===void 0&&!(o instanceof $r)&&delete d[p]}}),m.__typename&&!(s&&s.__typename)&&this.policies.rootTypenamesById[u]===d.__typename&&delete m.__typename,Object.keys(m).forEach(function(p){return o.group.dirty(u,p)})}}},e.prototype.modify=function(r,i){var o=this,u=this.lookup(r);if(u){var s=Object.create(null),f=!1,d=!0,m={DELETE:Au,INVALIDATE:$y,isReference:Ye,toReference:this.toReference,canRead:this.canRead,readField:function(p,y){return o.policies.readField(typeof p=="string"?{fieldName:p,from:y||oa(r)}:p,{store:o})}};if(Object.keys(u).forEach(function(p){var y=Nr(p),g=u[p];if(g!==void 0){var b=typeof i=="function"?i:i[p]||i[y];if(b){var x=b===Uf?Au:b(pa(g),R(R({},m),{fieldName:y,storeFieldName:p,storage:o.getStorage(r,p)}));if(x===$y)o.group.dirty(r,p);else if(x===Au&&(x=void 0),x!==g&&(s[p]=x,f=!0,g=x,globalThis.__DEV__!==!1)){var O=function(I){if(o.lookup(I.__ref)===void 0)return globalThis.__DEV__!==!1&&ee.warn(3,I),!0};if(Ye(x))O(x);else if(Array.isArray(x))for(var A=!1,k=void 0,D=0,N=x;D0){var i=--this.rootIds[r];return i||delete this.rootIds[r],i}return 0},e.prototype.getRootIdSet=function(r){return r===void 0&&(r=new Set),Object.keys(this.rootIds).forEach(r.add,r),this instanceof $r?this.parent.getRootIdSet(r):Object.keys(this.policies.rootTypenamesById).forEach(r.add,r),r},e.prototype.gc=function(){var r=this,i=this.getRootIdSet(),o=this.toObject();i.forEach(function(f){jt.call(o,f)&&(Object.keys(r.findChildRefIds(f)).forEach(i.add,i),delete o[f])});var u=Object.keys(o);if(u.length){for(var s=this;s instanceof $r;)s=s.parent;u.forEach(function(f){return s.delete(f)})}return u},e.prototype.findChildRefIds=function(r){if(!jt.call(this.refs,r)){var i=this.refs[r]=Object.create(null),o=this.data[r];if(!o)return i;var u=new Set([o]);u.forEach(function(s){Ye(s)&&(i[s.__ref]=!0),pt(s)&&Object.keys(s).forEach(function(f){var d=s[f];pt(d)&&u.add(d)})})}return this.refs[r]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e})(),Ly=(function(){function e(r,i){i===void 0&&(i=null),this.caching=r,this.parent=i,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Vv():null,this.keyMaker=new Wn(xi)},e.prototype.depend=function(r,i){if(this.d){this.d(qf(r,i));var o=Nr(i);o!==i&&this.d(qf(r,o)),this.parent&&this.parent.depend(r,i)}},e.prototype.dirty=function(r,i){this.d&&this.d.dirty(qf(r,i),i==="__exists"?"forget":"setDirty")},e})();function qf(e,r){return r+"#"+e}function Fy(e,r){Ho(e)&&e.group.depend(r,"__exists")}(function(e){var r=(function(i){In(o,i);function o(u){var s=u.policies,f=u.resultCaching,d=f===void 0?!0:f,m=u.seed,p=i.call(this,s,new Ly(d))||this;return p.stump=new gw(p),p.storageTrie=new Wn(xi),m&&p.replace(m),p}return o.prototype.addLayer=function(u,s){return this.stump.addLayer(u,s)},o.prototype.removeLayer=function(){return this},o.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},o})(e);e.Root=r})(Qo||(Qo={}));var $r=(function(e){In(r,e);function r(i,o,u,s){var f=e.call(this,o.policies,s)||this;return f.id=i,f.parent=o,f.replay=u,f.group=s,u(f),f}return r.prototype.addLayer=function(i,o){return new r(i,this,o,this.group)},r.prototype.removeLayer=function(i){var o=this,u=this.parent.removeLayer(i);return i===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(s){var f=o.data[s],d=u.lookup(s);d?f?f!==d&&Object.keys(f).forEach(function(m){Qe(f[m],d[m])||o.group.dirty(s,m)}):(o.group.dirty(s,"__exists"),Object.keys(d).forEach(function(m){o.group.dirty(s,m)})):o.delete(s)}),u):u===this.parent?this:u.addLayer(this.id,this.replay)},r.prototype.toObject=function(){return R(R({},this.parent.toObject()),this.data)},r.prototype.findChildRefIds=function(i){var o=this.parent.findChildRefIds(i);return jt.call(this.data,i)?R(R({},o),e.prototype.findChildRefIds.call(this,i)):o},r.prototype.getStorage=function(){for(var i=this.parent;i.parent;)i=i.parent;return i.getStorage.apply(i,arguments)},r})(Qo),gw=(function(e){In(r,e);function r(i){return e.call(this,"EntityStore.Stump",i,function(){},new Ly(i.group.caching,i.group))||this}return r.prototype.removeLayer=function(){return this},r.prototype.merge=function(i,o){return this.parent.merge(i,o)},r})($r);function bw(e,r,i){var o=e[i],u=r[i];return Qe(o,u)?o:u}function Ho(e){return!!(e instanceof Qo&&e.group.caching)}function _w(e){return pt(e)?mt(e)?e.slice(0):R({__proto__:Object.getPrototypeOf(e)},e):e}var Uy=(function(){function e(){this.known=new(nf?WeakSet:Set),this.pool=new Wn(xi),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(r){return pt(r)&&this.known.has(r)},e.prototype.pass=function(r){if(pt(r)){var i=_w(r);return this.passes.set(i,r),i}return r},e.prototype.admit=function(r){var i=this;if(pt(r)){var o=this.passes.get(r);if(o)return o;var u=Object.getPrototypeOf(r);switch(u){case Array.prototype:{if(this.known.has(r))return r;var s=r.map(this.admit,this),f=this.pool.lookupArray(s);return f.array||(this.known.add(f.array=s),globalThis.__DEV__!==!1&&Object.freeze(s)),f.array}case null:case Object.prototype:{if(this.known.has(r))return r;var d=Object.getPrototypeOf(r),m=[d],p=this.sortedKeys(r);m.push(p.json);var y=m.length;p.sorted.forEach(function(x){m.push(i.admit(r[x]))});var f=this.pool.lookupArray(m);if(!f.object){var g=f.object=Object.create(d);this.known.add(g),p.sorted.forEach(function(x,O){g[x]=m[y+O]}),globalThis.__DEV__!==!1&&Object.freeze(g)}return f.object}}}return r},e.prototype.sortedKeys=function(r){var i=Object.keys(r),o=this.pool.lookupArray(i);if(!o.keys){i.sort();var u=JSON.stringify(i);(o.keys=this.keysByJSON.get(u))||this.keysByJSON.set(u,o.keys={sorted:i,json:u})}return o.keys},e})();function qy(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var xw=(function(){function e(r){var i=this;this.knownResults=new(xi?WeakMap:Map),this.config=Oi(r,{addTypename:r.addTypename!==!1,canonizeResults:zy(r)}),this.canon=r.canon||new Uy,this.executeSelectionSet=No(function(o){var u,s=o.context.canonizeResults,f=qy(o);f[3]=!s;var d=(u=i.executeSelectionSet).peek.apply(u,f);return d?s?R(R({},d),{result:i.canon.admit(d.result)}):d:(Fy(o.context.store,o.enclosingRef.__ref),i.execSelectionSetImpl(o))},{max:this.config.resultCacheMaxSize||Vn["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:qy,makeCacheKey:function(o,u,s,f){if(Ho(s.store))return s.store.makeCacheKey(o,Ye(u)?u.__ref:u,s.varString,f)}}),this.executeSubSelectedArray=No(function(o){return Fy(o.context.store,o.enclosingRef.__ref),i.execSubSelectedArrayImpl(o)},{max:this.config.resultCacheMaxSize||Vn["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(o){var u=o.field,s=o.array,f=o.context;if(Ho(f.store))return f.store.makeCacheKey(u,s,f.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Uy},e.prototype.diffQueryAgainstStore=function(r){var i=r.store,o=r.query,u=r.rootId,s=u===void 0?"ROOT_QUERY":u,f=r.variables,d=r.returnPartialData,m=d===void 0?!0:d,p=r.canonizeResults,y=p===void 0?this.config.canonizeResults:p,g=this.config.cache.policies;f=R(R({},df(wv(o))),f);var b=oa(s),x=this.executeSelectionSet({selectionSet:zo(o).selectionSet,objectOrReference:b,enclosingRef:b,context:R({store:i,query:o,policies:g,variables:f,varString:kr(f),canonizeResults:y},Ny(o,this.config.fragments))}),O;if(x.missing&&(O=[new ky(Sw(x.missing),x.missing,o,f)],!m))throw O[0];return{result:x.result,complete:!O,missing:O}},e.prototype.isFresh=function(r,i,o,u){if(Ho(u.store)&&this.knownResults.get(r)===o){var s=this.executeSelectionSet.peek(o,i,u,this.canon.isKnown(r));if(s&&r===s.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(r){var i=this,o=r.selectionSet,u=r.objectOrReference,s=r.enclosingRef,f=r.context;if(Ye(u)&&!f.policies.rootTypenamesById[u.__ref]&&!f.store.has(u.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(u.__ref," object")};var d=f.variables,m=f.policies,p=f.store,y=p.getFieldValue(u,"__typename"),g=[],b,x=new zr;this.config.addTypename&&typeof y=="string"&&!m.rootIdsByTypename[y]&&g.push({__typename:y});function O(j,z){var I;return j.missing&&(b=x.merge(b,(I={},I[z]=j.missing,I))),j.result}var A=new Set(o.selections);A.forEach(function(j){var z,I;if(Co(j,d))if(Rr(j)){var G=m.readField({fieldName:j.name.value,field:j,variables:f.variables,from:u},f),B=er(j);G===void 0?bf.added(j)||(b=x.merge(b,(z={},z[B]="Can't find field '".concat(j.name.value,"' on ").concat(Ye(u)?u.__ref+" object":"object "+JSON.stringify(u,null,2)),z))):mt(G)?G.length>0&&(G=O(i.executeSubSelectedArray({field:j,array:G,enclosingRef:s,context:f}),B)):j.selectionSet?G!=null&&(G=O(i.executeSelectionSet({selectionSet:j.selectionSet,objectOrReference:G,enclosingRef:Ye(G)?G:s,context:f}),B)):f.canonizeResults&&(G=i.canon.pass(G)),G!==void 0&&g.push((I={},I[B]=G,I))}else{var J=yu(j,f.lookupFragment);if(!J&&j.kind===ne.FRAGMENT_SPREAD)throw Pt(10,j.name.value);J&&m.fragmentMatches(J,y)&&J.selectionSet.selections.forEach(A.add,A)}});var k=Su(g),D={result:k,missing:b},N=f.canonizeResults?this.canon.admit(D):pa(D);return N.result&&this.knownResults.set(N.result,o),N},e.prototype.execSubSelectedArrayImpl=function(r){var i=this,o=r.field,u=r.array,s=r.enclosingRef,f=r.context,d,m=new zr;function p(y,g){var b;return y.missing&&(d=m.merge(d,(b={},b[g]=y.missing,b))),y.result}return o.selectionSet&&(u=u.filter(f.store.canRead)),u=u.map(function(y,g){return y===null?null:mt(y)?p(i.executeSubSelectedArray({field:o,array:y,enclosingRef:s,context:f}),g):o.selectionSet?p(i.executeSelectionSet({selectionSet:o.selectionSet,objectOrReference:y,enclosingRef:Ye(y)?y:s,context:f}),g):(globalThis.__DEV__!==!1&&Ew(f.store,o,y),y)}),{result:f.canonizeResults?this.canon.admit(u):u,missing:d}},e})();function Sw(e){try{JSON.stringify(e,function(r,i){if(typeof i=="string")throw i;return i})}catch(r){return r}}function Ew(e,r,i){if(!r.selectionSet){var o=new Set([i]);o.forEach(function(u){pt(u)&&(ee(!Ye(u),11,vw(e,u),r.name.value),Object.values(u).forEach(o.add,o))})}}var Bf=new ca,By=new WeakMap;function Go(e){var r=By.get(e);return r||By.set(e,r={vars:new Set,dep:Vv()}),r}function Iy(e){Go(e).vars.forEach(function(r){return r.forgetCache(e)})}function Tw(e){Go(e).vars.forEach(function(r){return r.attachCache(e)})}function Ow(e){var r=new Set,i=new Set,o=function(s){if(arguments.length>0){if(e!==s){e=s,r.forEach(function(m){Go(m).dep.dirty(o),Dw(m)});var f=Array.from(i);i.clear(),f.forEach(function(m){return m(e)})}}else{var d=Bf.getValue();d&&(u(d),Go(d).dep(o))}return e};o.onNextChange=function(s){return i.add(s),function(){i.delete(s)}};var u=o.attachCache=function(s){return r.add(s),Go(s).vars.add(o),o};return o.forgetCache=function(s){return r.delete(s)},o}function Dw(e){e.broadcastWatches&&e.broadcastWatches()}var Vy=Object.create(null);function If(e){var r=JSON.stringify(e);return Vy[r]||(Vy[r]=Object.create(null))}function Qy(e){var r=If(e);return r.keyFieldsFn||(r.keyFieldsFn=function(i,o){var u=function(f,d){return o.readField(d,f)},s=o.keyObject=Vf(e,function(f){var d=ga(o.storeObject,f,u);return d===void 0&&i!==o.storeObject&&jt.call(i,f[0])&&(d=ga(i,f,Yy)),ee(d!==void 0,5,f.join("."),i),d});return"".concat(o.typename,":").concat(JSON.stringify(s))})}function Hy(e){var r=If(e);return r.keyArgsFn||(r.keyArgsFn=function(i,o){var u=o.field,s=o.variables,f=o.fieldName,d=Vf(e,function(p){var y=p[0],g=y.charAt(0);if(g==="@"){if(u&&gn(u.directives)){var b=y.slice(1),x=u.directives.find(function(D){return D.name.value===b}),O=x&&bu(x,s);return O&&ga(O,p.slice(1))}return}if(g==="$"){var A=y.slice(1);if(s&&jt.call(s,A)){var k=p.slice(0);return k[0]=A,ga(s,k)}return}if(i)return ga(i,p)}),m=JSON.stringify(d);return(i||m!=="{}")&&(f+=":"+m),f})}function Vf(e,r){var i=new zr;return Gy(e).reduce(function(o,u){var s,f=r(u);if(f!==void 0){for(var d=u.length-1;d>=0;--d)f=(s={},s[u[d]]=f,s);o=i.merge(o,f)}return o},Object.create(null))}function Gy(e){var r=If(e);if(!r.paths){var i=r.paths=[],o=[];e.forEach(function(u,s){mt(u)?(Gy(u).forEach(function(f){return i.push(o.concat(f))}),o.length=0):(o.push(u),mt(e[s+1])||(i.push(o.slice(0)),o.length=0))})}return r.paths}function Yy(e,r){return e[r]}function ga(e,r,i){return i=i||Yy,Xy(r.reduce(function o(u,s){return mt(u)?u.map(function(f){return o(f,s)}):u&&i(u,s)},e))}function Xy(e){return pt(e)?mt(e)?e.map(Xy):Vf(Object.keys(e).sort(),function(r){return ga(e,r)}):e}function Qf(e){return e.args!==void 0?e.args:e.field?bu(e.field,e.variables):null}var ww=function(){},Zy=function(e,r){return r.fieldName},Py=function(e,r,i){var o=i.mergeObjects;return o(e,r)},Ky=function(e,r){return r},Aw=(function(){function e(r){this.config=r,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=R({dataIdFromObject:Ry},r),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),r.possibleTypes&&this.addPossibleTypes(r.possibleTypes),r.typePolicies&&this.addTypePolicies(r.typePolicies)}return e.prototype.identify=function(r,i){var o,u=this,s=i&&(i.typename||((o=i.storeObject)===null||o===void 0?void 0:o.__typename))||r.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var f=i&&i.storeObject||r,d=R(R({},i),{typename:s,storeObject:f,readField:i&&i.readField||function(){var g=Hf(arguments,f);return u.readField(g,{store:u.cache.data,variables:g.variables})}}),m,p=s&&this.getTypePolicy(s),y=p&&p.keyFn||this.config.dataIdFromObject;return Lf.withValue(!0,function(){for(;y;){var g=y(R(R({},r),f),d);if(mt(g))y=Qy(g);else{m=g;break}}}),m=m?String(m):void 0,d.keyObject?[m,d.keyObject]:[m]},e.prototype.addTypePolicies=function(r){var i=this;Object.keys(r).forEach(function(o){var u=r[o],s=u.queryType,f=u.mutationType,d=u.subscriptionType,m=Rn(u,["queryType","mutationType","subscriptionType"]);s&&i.setRootTypename("Query",o),f&&i.setRootTypename("Mutation",o),d&&i.setRootTypename("Subscription",o),jt.call(i.toBeAdded,o)?i.toBeAdded[o].push(m):i.toBeAdded[o]=[m]})},e.prototype.updateTypePolicy=function(r,i,o){var u=this.getTypePolicy(r),s=i.keyFields,f=i.fields;function d(m,p){m.merge=typeof p=="function"?p:p===!0?Py:p===!1?Ky:m.merge}d(u,i.merge),u.keyFn=s===!1?ww:mt(s)?Qy(s):typeof s=="function"?s:u.keyFn,f&&Object.keys(f).forEach(function(m){var p=o[m];(!p||(p==null?void 0:p.typename)!==r)&&(p=o[m]={typename:r});var y=f[m];if(typeof y=="function")p.read=y;else{var g=y.keyArgs,b=y.read,x=y.merge;p.keyFn=g===!1?Zy:mt(g)?Hy(g):typeof g=="function"?g:p.keyFn,typeof b=="function"&&(p.read=b),d(p,x)}p.read&&p.merge&&(p.keyFn=p.keyFn||Zy)})},e.prototype.setRootTypename=function(r,i){i===void 0&&(i=r);var o="ROOT_"+r.toUpperCase(),u=this.rootTypenamesById[o];i!==u&&(ee(!u||u===r,6,r),u&&delete this.rootIdsByTypename[u],this.rootIdsByTypename[i]=o,this.rootTypenamesById[o]=i)},e.prototype.addPossibleTypes=function(r){var i=this;this.usingPossibleTypes=!0,Object.keys(r).forEach(function(o){i.getSupertypeSet(o,!0),r[o].forEach(function(u){i.getSupertypeSet(u,!0).add(o);var s=u.match(jy);(!s||s[0]!==u)&&i.fuzzySubtypes.set(u,new RegExp(u))})})},e.prototype.getTypePolicy=function(r){var i=this;if(!jt.call(this.typePolicies,r)){var o=this.typePolicies[r]=Object.create(null);o.fields=Object.create(null);var u=this.supertypeMap.get(r);!u&&this.fuzzySubtypes.size&&(u=this.getSupertypeSet(r,!0),this.fuzzySubtypes.forEach(function(f,d){if(f.test(r)){var m=i.supertypeMap.get(d);m&&m.forEach(function(p){return u.add(p)})}})),u&&u.size&&u.forEach(function(f){var d=i.getTypePolicy(f),m=d.fields,p=Rn(d,["fields"]);Object.assign(o,p),Object.assign(o.fields,m)})}var s=this.toBeAdded[r];return s&&s.length&&s.splice(0).forEach(function(f){i.updateTypePolicy(r,f,i.typePolicies[r].fields)}),this.typePolicies[r]},e.prototype.getFieldPolicy=function(r,i){if(r)return this.getTypePolicy(r).fields[i]},e.prototype.getSupertypeSet=function(r,i){var o=this.supertypeMap.get(r);return!o&&i&&this.supertypeMap.set(r,o=new Set),o},e.prototype.fragmentMatches=function(r,i,o,u){var s=this;if(!r.typeCondition)return!0;if(!i)return!1;var f=r.typeCondition.name.value;if(i===f)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(f))for(var d=this.getSupertypeSet(i,!0),m=[d],p=function(O){var A=s.getSupertypeSet(O,!1);A&&A.size&&m.indexOf(A)<0&&m.push(A)},y=!!(o&&this.fuzzySubtypes.size),g=!1,b=0;b1?u:r}:(f=R({},o),jt.call(f,"from")||(f.from=r)),globalThis.__DEV__!==!1&&f.from===void 0&&globalThis.__DEV__!==!1&&ee.warn(8,tv(Array.from(e))),f.variables===void 0&&(f.variables=i),f}function Wy(e){return function(i,o){if(mt(i)||mt(o))throw Pt(9);if(pt(i)&&pt(o)){var u=e.getFieldValue(i,"__typename"),s=e.getFieldValue(o,"__typename"),f=u&&s&&u!==s;if(f)return o;if(Ye(i)&&ya(o))return e.merge(i.__ref,o),i;if(ya(i)&&Ye(o))return e.merge(i,o.__ref),o;if(ya(i)&&ya(o))return R(R({},i),o)}return o}}function Gf(e,r,i){var o="".concat(r).concat(i),u=e.flavors.get(o);return u||e.flavors.set(o,u=e.clientOnly===r&&e.deferred===i?e:R(R({},e),{clientOnly:r,deferred:i})),u}var Cw=(function(){function e(r,i,o){this.cache=r,this.reader=i,this.fragments=o}return e.prototype.writeToStore=function(r,i){var o=this,u=i.query,s=i.result,f=i.dataId,d=i.variables,m=i.overwrite,p=Ei(u),y=yw();d=R(R({},df(p)),d);var g=R(R({store:r,written:Object.create(null),merge:function(x,O){return y.merge(x,O)},variables:d,varString:kr(d)},Ny(u,this.fragments)),{overwrite:!!m,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),b=this.processSelectionSet({result:s||Object.create(null),dataId:f,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:g});if(!Ye(b))throw Pt(12,s);return g.incomingById.forEach(function(x,O){var A=x.storeObject,k=x.mergeTree,D=x.fieldNodeSet,N=oa(O);if(k&&k.map.size){var j=o.applyMerges(k,N,A,g);if(Ye(j))return;A=j}if(globalThis.__DEV__!==!1&&!g.overwrite){var z=Object.create(null);D.forEach(function(B){B.selectionSet&&(z[B.name.value]=!0)});var I=function(B){return z[Nr(B)]===!0},G=function(B){var J=k&&k.map.get(B);return!!(J&&J.info&&J.info.merge)};Object.keys(A).forEach(function(B){I(B)&&!G(B)&&kw(N,A,B,g.store)})}r.merge(O,A)}),r.retain(b.__ref),b},e.prototype.processSelectionSet=function(r){var i=this,o=r.dataId,u=r.result,s=r.selectionSet,f=r.context,d=r.mergeTree,m=this.cache.policies,p=Object.create(null),y=o&&m.rootTypenamesById[o]||hf(u,s,f.fragmentMap)||o&&f.store.get(o,"__typename");typeof y=="string"&&(p.__typename=y);var g=function(){var j=Hf(arguments,p,f.variables);if(Ye(j.from)){var z=f.incomingById.get(j.from.__ref);if(z){var I=m.readField(R(R({},j),{from:z.storeObject}),f);if(I!==void 0)return I}}return m.readField(j,f)},b=new Set;this.flattenFields(s,u,f,y).forEach(function(j,z){var I,G=er(z),B=u[G];if(b.add(z),B!==void 0){var J=m.getStoreFieldName({typename:y,fieldName:z.name.value,field:z,variables:j.variables}),oe=tg(d,J),_e=i.processFieldValue(B,z,z.selectionSet?Gf(j,!1,!1):j,oe),ce=void 0;z.selectionSet&&(Ye(_e)||ya(_e))&&(ce=g("__typename",_e));var Te=m.getMergeFunction(y,z.name.value,ce);Te?oe.info={field:z,typename:y,merge:Te}:ng(d,J),p=j.merge(p,(I={},I[J]=_e,I))}else globalThis.__DEV__!==!1&&!j.clientOnly&&!j.deferred&&!bf.added(z)&&!m.getReadFunction(y,z.name.value)&&globalThis.__DEV__!==!1&&ee.error(13,er(z),u)});try{var x=m.identify(u,{typename:y,selectionSet:s,fragmentMap:f.fragmentMap,storeObject:p,readField:g}),O=x[0],A=x[1];o=o||O,A&&(p=f.merge(p,A))}catch(j){if(!o)throw j}if(typeof o=="string"){var k=oa(o),D=f.written[o]||(f.written[o]=[]);if(D.indexOf(s)>=0||(D.push(s),this.reader&&this.reader.isFresh(u,k,s,f)))return k;var N=f.incomingById.get(o);return N?(N.storeObject=f.merge(N.storeObject,p),N.mergeTree=Yf(N.mergeTree,d),b.forEach(function(j){return N.fieldNodeSet.add(j)})):f.incomingById.set(o,{storeObject:p,mergeTree:Cu(d)?void 0:d,fieldNodeSet:b}),k}return p},e.prototype.processFieldValue=function(r,i,o,u){var s=this;return!i.selectionSet||r===null?globalThis.__DEV__!==!1?ay(r):r:mt(r)?r.map(function(f,d){var m=s.processFieldValue(f,i,o,tg(u,d));return ng(u,d),m}):this.processSelectionSet({result:r,selectionSet:i.selectionSet,context:o,mergeTree:u})},e.prototype.flattenFields=function(r,i,o,u){u===void 0&&(u=hf(i,r,o.fragmentMap));var s=new Map,f=this.cache.policies,d=new Wn(!1);return(function m(p,y){var g=d.lookup(p,y.clientOnly,y.deferred);g.visited||(g.visited=!0,p.selections.forEach(function(b){if(Co(b,o.variables)){var x=y.clientOnly,O=y.deferred;if(!(x&&O)&&gn(b.directives)&&b.directives.forEach(function(D){var N=D.name.value;if(N==="client"&&(x=!0),N==="defer"){var j=bu(D,o.variables);(!j||j.if!==!1)&&(O=!0)}}),Rr(b)){var A=s.get(b);A&&(x=x&&A.clientOnly,O=O&&A.deferred),s.set(b,Gf(o,x,O))}else{var k=yu(b,o.lookupFragment);if(!k&&b.kind===ne.FRAGMENT_SPREAD)throw Pt(14,b.name.value);k&&f.fragmentMatches(k,u,i,o.variables)&&m(k.selectionSet,Gf(o,x,O))}}}))})(r,o),s},e.prototype.applyMerges=function(r,i,o,u,s){var f,d=this;if(r.map.size&&!Ye(o)){var m=!mt(o)&&(Ye(i)||ya(i))?i:void 0,p=o;m&&!s&&(s=[Ye(m)?m.__ref:m]);var y,g=function(b,x){return mt(b)?typeof x=="number"?b[x]:void 0:u.store.getFieldValue(b,String(x))};r.map.forEach(function(b,x){var O=g(m,x),A=g(p,x);if(A!==void 0){s&&s.push(x);var k=d.applyMerges(b,O,A,u,s);k!==A&&(y=y||new Map,y.set(x,k)),s&&ee(s.pop()===x)}}),y&&(o=mt(p)?p.slice(0):R({},p),y.forEach(function(b,x){o[x]=b}))}return r.info?this.cache.policies.runMergeFunction(i,o,r.info,u,s&&(f=u.store).getStorage.apply(f,s)):o},e})(),eg=[];function tg(e,r){var i=e.map;return i.has(r)||i.set(r,eg.pop()||{map:new Map}),i.get(r)}function Yf(e,r){if(e===r||!r||Cu(r))return e;if(!e||Cu(e))return r;var i=e.info&&r.info?R(R({},e.info),r.info):e.info||r.info,o=e.map.size&&r.map.size,u=o?new Map:e.map.size?e.map:r.map,s={info:i,map:u};if(o){var f=new Set(r.map.keys());e.map.forEach(function(d,m){s.map.set(m,Yf(d,r.map.get(m))),f.delete(m)}),f.forEach(function(d){s.map.set(d,Yf(r.map.get(d),e.map.get(d)))})}return s}function Cu(e){return!e||!(e.info||e.map.size)}function ng(e,r){var i=e.map,o=i.get(r);o&&Cu(o)&&(eg.push(o),i.delete(r))}var rg=new Set;function kw(e,r,i,o){var u=function(g){var b=o.getFieldValue(g,i);return typeof b=="object"&&b},s=u(e);if(s){var f=u(r);if(f&&!Ye(s)&&!Qe(s,f)&&!Object.keys(s).every(function(g){return o.getFieldValue(f,g)!==void 0})){var d=o.getFieldValue(e,"__typename")||o.getFieldValue(r,"__typename"),m=Nr(i),p="".concat(d,".").concat(m);if(!rg.has(p)){rg.add(p);var y=[];!mt(s)&&!mt(f)&&[s,f].forEach(function(g){var b=o.getFieldValue(g,"__typename");typeof b=="string"&&!y.includes(b)&&y.push(b)}),globalThis.__DEV__!==!1&&ee.warn(15,m,d,y.length?"either ensure all objects of type "+y.join(" and ")+" have an ID or a custom merge function, or ":"",p,R({},s),R({},f))}}}}var ig=(function(e){In(r,e);function r(i){i===void 0&&(i={});var o=e.call(this)||this;return o.watches=new Set,o.addTypenameTransform=new Hv(bf),o.assumeImmutableResults=!0,o.makeVar=Ow,o.txCount=0,globalThis.__DEV__!==!1&&(gt(i,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),gt(i,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),o.config=mw(i),o.addTypename=!!o.config.addTypename,o.policies=new Aw({cache:o,dataIdFromObject:o.config.dataIdFromObject,possibleTypes:o.config.possibleTypes,typePolicies:o.config.typePolicies}),o.init(),o}return r.prototype.init=function(){var i=this.data=new Qo.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=i.stump,this.resetResultCache()},r.prototype.resetResultCache=function(i){var o=this,u=this.storeReader,s=this.config.fragments;this.addTypenameTransform.resetCache(),s==null||s.resetCaches(),this.storeWriter=new Cw(this,this.storeReader=new xw({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:zy(this.config),canon:i?void 0:u&&u.canon,fragments:s}),s),this.maybeBroadcastWatch=No(function(f,d){return o.broadcastWatch(f,d)},{max:this.config.resultCacheMaxSize||Vn["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(f){var d=f.optimistic?o.optimisticData:o.data;if(Ho(d)){var m=f.optimistic,p=f.id,y=f.variables;return d.makeCacheKey(f.query,f.callback,kr({optimistic:m,id:p,variables:y}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(f){return f.resetCaching()})},r.prototype.restore=function(i){return this.init(),i&&this.data.replace(i),this},r.prototype.extract=function(i){return i===void 0&&(i=!1),(i?this.optimisticData:this.data).extract()},r.prototype.read=function(i){globalThis.__DEV__!==!1&>(i,"canonizeResults","cache.read");var o=i.returnPartialData,u=o===void 0?!1:o;try{return this.storeReader.diffQueryAgainstStore(R(R({},i),{store:i.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:u})).result||null}catch(s){if(s instanceof ky)return null;throw s}},r.prototype.write=function(i){try{return++this.txCount,this.storeWriter.writeToStore(this.data,i)}finally{!--this.txCount&&i.broadcast!==!1&&this.broadcastWatches()}},r.prototype.modify=function(i){if(jt.call(i,"id")&&!i.id)return!1;var o=i.optimistic?this.optimisticData:this.data;try{return++this.txCount,o.modify(i.id||"ROOT_QUERY",i.fields)}finally{!--this.txCount&&i.broadcast!==!1&&this.broadcastWatches()}},r.prototype.diff=function(i){return globalThis.__DEV__!==!1&>(i,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore(R(R({},i),{store:i.optimistic?this.optimisticData:this.data,rootId:i.id||"ROOT_QUERY",config:this.config}))},r.prototype.watch=function(i){var o=this;return this.watches.size||Tw(this),this.watches.add(i),i.immediate&&this.maybeBroadcastWatch(i),function(){o.watches.delete(i)&&!o.watches.size&&Iy(o),o.maybeBroadcastWatch.forget(i)}},r.prototype.gc=function(i){globalThis.__DEV__!==!1&>(i||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),kr.reset(),Ti.reset();var o=this.optimisticData.gc();return i&&!this.txCount&&(i.resetResultCache?this.resetResultCache(i.resetResultIdentities):i.resetResultIdentities&&this.storeReader.resetCanon()),o},r.prototype.retain=function(i,o){return(o?this.optimisticData:this.data).retain(i)},r.prototype.release=function(i,o){return(o?this.optimisticData:this.data).release(i)},r.prototype.identify=function(i){if(Ye(i))return i.__ref;try{return this.policies.identify(i)[0]}catch(o){globalThis.__DEV__!==!1&&ee.warn(o)}},r.prototype.evict=function(i){if(!i.id){if(jt.call(i,"id"))return!1;i=R(R({},i),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(i,this.data)}finally{!--this.txCount&&i.broadcast!==!1&&this.broadcastWatches()}},r.prototype.reset=function(i){var o=this;return this.init(),kr.reset(),i&&i.discardWatches?(this.watches.forEach(function(u){return o.maybeBroadcastWatch.forget(u)}),this.watches.clear(),Iy(this)):this.broadcastWatches(),Promise.resolve()},r.prototype.removeOptimistic=function(i){var o=this.optimisticData.removeLayer(i);o!==this.optimisticData&&(this.optimisticData=o,this.broadcastWatches())},r.prototype.batch=function(i){var o=this,u=i.update,s=i.optimistic,f=s===void 0?!0:s,d=i.removeOptimistic,m=i.onWatchUpdated,p,y=function(b){var x=o,O=x.data,A=x.optimisticData;++o.txCount,b&&(o.data=o.optimisticData=b);try{return p=u(o)}finally{--o.txCount,o.data=O,o.optimisticData=A}},g=new Set;return m&&!this.txCount&&this.broadcastWatches(R(R({},i),{onWatchUpdated:function(b){return g.add(b),!1}})),typeof f=="string"?this.optimisticData=this.optimisticData.addLayer(f,y):f===!1?y(this.data):y(),typeof d=="string"&&(this.optimisticData=this.optimisticData.removeLayer(d)),m&&g.size?(this.broadcastWatches(R(R({},i),{onWatchUpdated:function(b,x){var O=m.call(this,b,x);return O!==!1&&g.delete(b),O}})),g.size&&g.forEach(function(b){return o.maybeBroadcastWatch.dirty(b)})):this.broadcastWatches(i),p},r.prototype.performTransaction=function(i,o){return this.batch({update:i,optimistic:o||o!==null})},r.prototype.transformDocument=function(i){return this.addTypenameToDocument(this.addFragmentsToDocument(i))},r.prototype.fragmentMatches=function(i,o){return this.policies.fragmentMatches(i,o)},r.prototype.lookupFragment=function(i){var o;return((o=this.config.fragments)===null||o===void 0?void 0:o.lookup(i))||null},r.prototype.broadcastWatches=function(i){var o=this;this.txCount||this.watches.forEach(function(u){return o.maybeBroadcastWatch(u,i)})},r.prototype.addFragmentsToDocument=function(i){var o=this.config.fragments;return o?o.transform(i):i},r.prototype.addTypenameToDocument=function(i){return this.addTypename?this.addTypenameTransform.transformDocument(i):i},r.prototype.broadcastWatch=function(i,o){var u=this,s=i.lastDiff,f=zt("canonizeResults",function(){return u.diff(i)});o&&(i.optimistic&&typeof o.optimistic=="string"&&(f.fromOptimisticTransaction=!0),o.onWatchUpdated&&o.onWatchUpdated.call(this,i,f,s)===!1)||(!s||!Qe(s.result,f.result))&&i.callback(i.lastDiff=f,s)},r})(Cy);globalThis.__DEV__!==!1&&(ig.prototype.getMemoryInternals=AO);var Ne;(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"})(Ne||(Ne={}));function ba(e){return e?e<7:!1}var ag=Object.assign,Rw=Object.hasOwnProperty,Yo=(function(e){In(r,e);function r(i){var o=i.queryManager,u=i.queryInfo,s=i.options,f=this,d=r.inactiveOnCreation.getValue();f=e.call(this,function(D){f._getOrCreateQuery();try{var N=D._subscription._observer;N&&!N.error&&(N.error=Mw)}catch{}var j=!f.observers.size;f.observers.add(D);var z=f.last;return z&&z.error?D.error&&D.error(z.error):z&&z.result&&D.next&&D.next(f.maskResult(z.result)),j&&f.reobserve().catch(function(){}),function(){f.observers.delete(D)&&!f.observers.size&&f.tearDownQuery()}})||this,f.observers=new Set,f.subscriptions=new Set,f.dirty=!1,f._getOrCreateQuery=function(){return d&&(o.queries.set(f.queryId,u),d=!1),f.queryManager.getOrCreateQuery(f.queryId)},f.queryInfo=u,f.queryManager=o,f.waitForOwnResult=Xf(s.fetchPolicy),f.isTornDown=!1,f.subscribeToMore=f.subscribeToMore.bind(f),f.maskResult=f.maskResult.bind(f);var m=o.defaultOptions.watchQuery,p=m===void 0?{}:m,y=p.fetchPolicy,g=y===void 0?"cache-first":y,b=s.fetchPolicy,x=b===void 0?g:b,O=s.initialFetchPolicy,A=O===void 0?x==="standby"?g:x:O;f.options=R(R({},s),{initialFetchPolicy:A,fetchPolicy:x}),f.queryId=u.queryId||o.generateQueryId();var k=Ei(f.query);return f.queryName=k&&k.name&&k.name.value,f}return Object.defineProperty(r.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),r.prototype.result=function(){var i=this;return globalThis.__DEV__!==!1&&jr("observableQuery.result",function(){globalThis.__DEV__!==!1&&ee.warn(23)}),new Promise(function(o,u){var s={next:function(d){o(d),i.observers.delete(s),i.observers.size||i.queryManager.removeQuery(i.queryId),setTimeout(function(){f.unsubscribe()},0)},error:u},f=i.subscribe(s)})},r.prototype.resetDiff=function(){this.queryInfo.resetDiff()},r.prototype.getCurrentFullResult=function(i){var o=this;i===void 0&&(i=!0);var u=zt("getLastResult",function(){return o.getLastResult(!0)}),s=this.queryInfo.networkStatus||u&&u.networkStatus||Ne.ready,f=R(R({},u),{loading:ba(s),networkStatus:s}),d=this.options.fetchPolicy,m=d===void 0?"cache-first":d;if(!(Xf(m)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var p=this.queryInfo.getDiff();(p.complete||this.options.returnPartialData)&&(f.data=p.result),Qe(f.data,{})&&(f.data=void 0),p.complete?(delete f.partial,p.complete&&f.networkStatus===Ne.loading&&(m==="cache-first"||m==="cache-only")&&(f.networkStatus=Ne.ready,f.loading=!1)):f.partial=!0,f.networkStatus===Ne.ready&&(f.error||f.errors)&&(f.networkStatus=Ne.error),globalThis.__DEV__!==!1&&!p.complete&&!this.options.partialRefetch&&!f.loading&&!f.data&&!f.error&&og(p.missing)}return i&&this.updateLastResult(f),f},r.prototype.getCurrentResult=function(i){return i===void 0&&(i=!0),this.maskResult(this.getCurrentFullResult(i))},r.prototype.isDifferentFromLastResult=function(i,o){if(!this.last)return!0;var u=this.queryManager.getDocumentInfo(this.query),s=this.queryManager.dataMasking,f=s?u.nonReactiveQuery:this.query,d=s||u.hasNonreactiveDirective?!xy(f,this.last.result,i,this.variables):!Qe(this.last.result,i);return d||o&&!Qe(this.last.variables,o)},r.prototype.getLast=function(i,o){var u=this.last;if(u&&u[i]&&(!o||Qe(u.variables,this.variables)))return u[i]},r.prototype.getLastResult=function(i){return globalThis.__DEV__!==!1&&jr("getLastResult",function(){globalThis.__DEV__!==!1&&ee.warn(24)}),this.getLast("result",i)},r.prototype.getLastError=function(i){return globalThis.__DEV__!==!1&&jr("getLastError",function(){globalThis.__DEV__!==!1&&ee.warn(25)}),this.getLast("error",i)},r.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&jr("resetLastResults",function(){globalThis.__DEV__!==!1&&ee.warn(26)}),delete this.last,this.isTornDown=!1},r.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&ee.warn(27),this.queryManager.resetErrors(this.queryId)},r.prototype.refetch=function(i){var o,u={pollInterval:0},s=this.options.fetchPolicy;if(s==="no-cache"?u.fetchPolicy="no-cache":u.fetchPolicy="network-only",globalThis.__DEV__!==!1&&i&&Rw.call(i,"variables")){var f=wv(this.query),d=f.variableDefinitions;(!d||!d.some(function(m){return m.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&ee.warn(28,i,((o=f.name)===null||o===void 0?void 0:o.value)||f)}return i&&!Qe(this.options.variables,i)&&(u.variables=this.options.variables=R(R({},this.options.variables),i)),this.queryInfo.resetLastWrite(),this.reobserve(u,Ne.refetch)},r.prototype.fetchMore=function(i){var o=this,u=R(R({},i.query?i:R(R(R(R({},this.options),{query:this.options.query}),i),{variables:R(R({},this.options.variables),i.variables)})),{fetchPolicy:"no-cache"});u.query=this.transformDocument(u.query);var s=this.queryManager.generateQueryId();this.lastQuery=i.query?this.transformDocument(this.options.query):u.query;var f=this.queryInfo,d=f.networkStatus;f.networkStatus=Ne.fetchMore,u.notifyOnNetworkStatusChange&&this.observe();var m=new Set,p=i==null?void 0:i.updateQuery,y=this.options.fetchPolicy!=="no-cache";return y||ee(p,29),this.queryManager.fetchQuery(s,u,Ne.fetchMore).then(function(g){if(o.queryManager.removeQuery(s),f.networkStatus===Ne.fetchMore&&(f.networkStatus=d),y)o.queryManager.cache.batch({update:function(O){var A=i.updateQuery;A?O.updateQuery({query:o.query,variables:o.variables,returnPartialData:!0,optimistic:!1},function(k){return A(k,{fetchMoreResult:g.data,variables:u.variables})}):O.writeQuery({query:u.query,variables:u.variables,data:g.data})},onWatchUpdated:function(O){m.add(O.query)}});else{var b=o.getLast("result"),x=p(b.data,{fetchMoreResult:g.data,variables:u.variables});o.reportResult(R(R({},b),{networkStatus:d,loading:ba(d),data:x}),o.variables)}return o.maskResult(g)}).finally(function(){y&&!m.has(o.query)&&o.reobserveCacheFirst()})},r.prototype.subscribeToMore=function(i){var o=this,u=this.queryManager.startGraphQLSubscription({query:i.document,variables:i.variables,context:i.context}).subscribe({next:function(s){var f=i.updateQuery;f&&o.updateQuery(function(d,m){return f(d,R({subscriptionData:s},m))})},error:function(s){if(i.onError){i.onError(s);return}globalThis.__DEV__!==!1&&ee.error(30,s)}});return this.subscriptions.add(u),function(){o.subscriptions.delete(u)&&u.unsubscribe()}},r.prototype.setOptions=function(i){return globalThis.__DEV__!==!1&&(gt(i,"canonizeResults","setOptions"),jr("setOptions",function(){globalThis.__DEV__!==!1&&ee.warn(31)})),this.reobserve(i)},r.prototype.silentSetOptions=function(i){var o=Oi(this.options,i||{});ag(this.options,o)},r.prototype.setVariables=function(i){var o=this;return Qe(this.variables,i)?this.observers.size?zt("observableQuery.result",function(){return o.result()}):Promise.resolve():(this.options.variables=i,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:i},Ne.setVariables):Promise.resolve())},r.prototype.updateQuery=function(i){var o=this.queryManager,u=o.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),s=u.result,f=u.complete,d=i(s,{variables:this.variables,complete:!!f,previousData:s});d&&(o.cache.writeQuery({query:this.options.query,data:d,variables:this.variables}),o.broadcastQueries())},r.prototype.startPolling=function(i){this.options.pollInterval=i,this.updatePolling()},r.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},r.prototype.applyNextFetchPolicy=function(i,o){if(o.nextFetchPolicy){var u=o.fetchPolicy,s=u===void 0?"cache-first":u,f=o.initialFetchPolicy,d=f===void 0?s:f;s==="standby"||(typeof o.nextFetchPolicy=="function"?o.fetchPolicy=o.nextFetchPolicy(s,{reason:i,options:o,observable:this,initialFetchPolicy:d}):i==="variables-changed"?o.fetchPolicy=d:o.fetchPolicy=o.nextFetchPolicy)}return o.fetchPolicy},r.prototype.fetch=function(i,o,u){var s=this._getOrCreateQuery();return s.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(s,i,o,u)},r.prototype.updatePolling=function(){var i=this;if(!this.queryManager.ssrMode){var o=this,u=o.pollingInfo,s=o.options.pollInterval;if(!s||!this.hasObservers()){u&&(clearTimeout(u.timeout),delete this.pollingInfo);return}if(!(u&&u.interval===s)){ee(s,32);var f=u||(this.pollingInfo={});f.interval=s;var d=function(){var p,y;i.pollingInfo&&(!ba(i.queryInfo.networkStatus)&&!(!((y=(p=i.options).skipPollAttempt)===null||y===void 0)&&y.call(p))?i.reobserve({fetchPolicy:i.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},Ne.poll).then(m,m):m())},m=function(){var p=i.pollingInfo;p&&(clearTimeout(p.timeout),p.timeout=setTimeout(d,p.interval))};m()}}},r.prototype.updateLastResult=function(i,o){var u=this;o===void 0&&(o=this.variables);var s=zt("getLastError",function(){return u.getLastError()});return s&&this.last&&!Qe(o,this.last.variables)&&(s=void 0),this.last=R({result:this.queryManager.assumeImmutableResults?i:ay(i),variables:o},s?{error:s}:null)},r.prototype.reobserveAsConcast=function(i,o){var u=this;this.isTornDown=!1;var s=o===Ne.refetch||o===Ne.fetchMore||o===Ne.poll,f=this.options.variables,d=this.options.fetchPolicy,m=Oi(this.options,i||{}),p=s?m:ag(this.options,m),y=this.transformDocument(p.query);this.lastQuery=y,s||(this.updatePolling(),i&&i.variables&&!Qe(i.variables,f)&&p.fetchPolicy!=="standby"&&(p.fetchPolicy===d||typeof p.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",p),o===void 0&&(o=Ne.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Xf(p.fetchPolicy));var g=function(){u.concast===O&&(u.waitForOwnResult=!1)},b=p.variables&&R({},p.variables),x=this.fetch(p,o,y),O=x.concast,A=x.fromLink,k={next:function(D){Qe(u.variables,b)&&(g(),u.reportResult(D,b))},error:function(D){Qe(u.variables,b)&&(hy(D)||(D=new Qn({networkError:D})),g(),u.reportError(D,b))}};return!s&&(A||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=O,this.observer=k),O.addObserver(k),O},r.prototype.reobserve=function(i,o){return _D(this.reobserveAsConcast(i,o).promise.then(this.maskResult))},r.prototype.resubscribeAfterError=function(){for(var i=this,o=[],u=0;u0},r.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(i){return i.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},r.prototype.transformDocument=function(i){return this.queryManager.transform(i)},r.prototype.maskResult=function(i){return i&&"data"in i?R(R({},i),{data:this.queryManager.maskOperation({document:this.query,data:i.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):i},r.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},r.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},r.prototype.scheduleNotify=function(){var i=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return i.notify()},0)))},r.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!ba(this.queryInfo.networkStatus))){var i=this.queryInfo.getDiff();i.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},r.prototype.reobserveCacheFirst=function(){var i=this.options,o=i.fetchPolicy,u=i.nextFetchPolicy;return o==="cache-and-network"||o==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(s,f){return this.nextFetchPolicy=u,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(s,f):o}}):this.reobserve()},r.inactiveOnCreation=new ca,r})(rt);oy(Yo);function Mw(e){globalThis.__DEV__!==!1&&ee.error(33,e.message,e.stack)}function og(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&ee.debug(34,e)}function Xf(e){return e==="network-only"||e==="no-cache"||e==="standby"}var _a=new(xi?WeakMap:Map);function Zf(e,r){var i=e[r];typeof i=="function"&&(e[r]=function(){return _a.set(e,(_a.get(e)+1)%1e15),i.apply(this,arguments)})}var Pf=(function(){function e(r,i){i===void 0&&(i=r.generateQueryId()),this.queryId=i,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var o=this.cache=r.cache;_a.has(o)||(_a.set(o,0),Zf(o,"evict"),Zf(o,"modify"),Zf(o,"reset"))}return e.prototype.init=function(r){var i=r.networkStatus||Ne.loading;return this.variables&&this.networkStatus!==Ne.loading&&!Qe(this.variables,r.variables)&&(i=Ne.setVariables),Qe(r.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:r.document,variables:r.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:i}),r.observableQuery&&this.setObservableQuery(r.observableQuery),r.lastRequestId&&(this.lastRequestId=r.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var r=this,i=this.getDiffOptions();if(this.lastDiff&&Qe(i,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var o=this.observableQuery;if(o&&o.options.fetchPolicy==="no-cache")return{complete:!1};var u=zt("canonizeResults",function(){return r.cache.diff(i)});return this.updateLastDiff(u,i),u},e.prototype.updateLastDiff=function(r,i){this.lastDiff=r?{diff:r,options:i||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(r){var i;return r===void 0&&(r=this.variables),{query:this.document,variables:r,returnPartialData:!0,optimistic:!0,canonizeResults:(i=this.observableQuery)===null||i===void 0?void 0:i.options.canonizeResults}},e.prototype.setDiff=function(r){var i=this,o,u=this.lastDiff&&this.lastDiff.diff;r&&!r.complete&&zt("getLastError",function(){var s;return(s=i.observableQuery)===null||s===void 0?void 0:s.getLastError()})||(this.updateLastDiff(r),Qe(u&&u.result,r&&r.result)||(o=this.observableQuery)===null||o===void 0||o.scheduleNotify())},e.prototype.setObservableQuery=function(r){r!==this.observableQuery&&(this.observableQuery=r,r&&(r.queryInfo=this))},e.prototype.stop=function(){var r;if(!this.stopped){this.stopped=!0,(r=this.observableQuery)===null||r===void 0||r.resetNotifications(),this.cancel();var i=this.observableQuery;i&&i.stopPolling()}},e.prototype.cancel=function(){var r;(r=this.cancelWatch)===null||r===void 0||r.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(r){var i=this;r===void 0&&(r=this.variables);var o=this.observableQuery;if(!(o&&o.options.fetchPolicy==="no-cache")){var u=R(R({},this.getDiffOptions(r)),{watcher:this,callback:function(s){return i.setDiff(s)}});(!this.lastWatch||!Qe(u,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=u))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(r,i){var o=this.lastWrite;return!(o&&o.dmCount===_a.get(this.cache)&&Qe(i,o.variables)&&Qe(r.data,o.result.data))},e.prototype.markResult=function(r,i,o,u){var s=this,f,d=new zr,m=gn(r.errors)?r.errors.slice(0):[];if((f=this.observableQuery)===null||f===void 0||f.resetNotifications(),"incremental"in r&&gn(r.incremental)){var p=uy(this.getDiff().result,r);r.data=p}else if("hasNext"in r&&r.hasNext){var y=this.getDiff();r.data=d.merge(y.result,r.data)}this.graphQLErrors=m,o.fetchPolicy==="no-cache"?this.updateLastDiff({result:r.data,complete:!0},this.getDiffOptions(o.variables)):u!==0&&(Kf(r,o.errorPolicy)?this.cache.performTransaction(function(g){if(s.shouldWrite(r,o.variables))g.writeQuery({query:i,data:r.data,variables:o.variables,overwrite:u===1}),s.lastWrite={result:r,variables:o.variables,dmCount:_a.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete){r.data=s.lastDiff.diff.result;return}var b=s.getDiffOptions(o.variables),x=zt("canonizeResults",function(){return g.diff(b)});!s.stopped&&Qe(s.variables,o.variables)&&s.updateWatch(o.variables),s.updateLastDiff(x,b),x.complete&&(r.data=x.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ne.ready},e.prototype.markError=function(r){var i;return this.networkStatus=Ne.error,this.lastWrite=void 0,(i=this.observableQuery)===null||i===void 0||i.resetNotifications(),r.graphQLErrors&&(this.graphQLErrors=r.graphQLErrors),r.networkError&&(this.networkError=r.networkError),r},e})();function Kf(e,r){r===void 0&&(r="none");var i=r==="ignore"||r==="all",o=!Ou(e);return!o&&i&&e.data&&(o=!0),o}var zw=Object.prototype.hasOwnProperty,lg=Object.create(null),jw=(function(){function e(r){var i=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new uf(Vn["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Wn(!1),this.noCacheWarningsByQueryId=new Set;var o=new Hv(function(s){return i.cache.transformDocument(s)},{cache:!1});this.cache=r.cache,this.link=r.link,this.defaultOptions=r.defaultOptions,this.queryDeduplication=r.queryDeduplication,this.clientAwareness=r.clientAwareness,this.localState=r.localState,this.ssrMode=r.ssrMode,this.assumeImmutableResults=r.assumeImmutableResults,this.dataMasking=r.dataMasking;var u=r.documentTransform;this.documentTransform=u?o.concat(u).concat(o):o,this.defaultContext=r.defaultContext||Object.create(null),(this.onBroadcast=r.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var r=this;this.queries.forEach(function(i,o){r.stopQueryNoBroadcast(o)}),this.cancelPendingFetches(Pt(35))},e.prototype.cancelPendingFetches=function(r){this.fetchCancelFns.forEach(function(i){return i(r)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(r){return xr(this,arguments,void 0,function(i){var o,u,s,f,d,m,p,y=i.mutation,g=i.variables,b=i.optimisticResponse,x=i.updateQueries,O=i.refetchQueries,A=O===void 0?[]:O,k=i.awaitRefetchQueries,D=k===void 0?!1:k,N=i.update,j=i.onQueryUpdated,z=i.fetchPolicy,I=z===void 0?((m=this.defaultOptions.mutate)===null||m===void 0?void 0:m.fetchPolicy)||"network-only":z,G=i.errorPolicy,B=G===void 0?((p=this.defaultOptions.mutate)===null||p===void 0?void 0:p.errorPolicy)||"none":G,J=i.keepRootFields,oe=i.context;return Sr(this,function(_e){switch(_e.label){case 0:return ee(y,36),ee(I==="network-only"||I==="no-cache",37),o=this.generateMutationId(),y=this.cache.transformForLink(this.transform(y)),u=this.getDocumentInfo(y).hasClientExports,g=this.getVariables(y,g),u?[4,this.localState.addExportedVariables(y,g,oe)]:[3,2];case 1:g=_e.sent(),_e.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[o]={mutation:y,variables:g,loading:!0,error:null}),f=b&&this.markMutationOptimistic(b,{mutationId:o,document:y,variables:g,fetchPolicy:I,errorPolicy:B,context:oe,updateQueries:x,update:N,keepRootFields:J}),this.broadcastQueries(),d=this,[2,new Promise(function(ce,Te){return Af(d.getObservableFromLink(y,R(R({},oe),{optimisticResponse:f?b:void 0}),g,{},!1),function(ge){if(Ou(ge)&&B==="none")throw new Qn({graphQLErrors:Cf(ge)});s&&(s.loading=!1,s.error=null);var Xe=R({},ge);return typeof A=="function"&&(A=A(Xe)),B==="ignore"&&Ou(Xe)&&delete Xe.errors,d.markMutationResult({mutationId:o,result:Xe,document:y,variables:g,fetchPolicy:I,errorPolicy:B,context:oe,update:N,updateQueries:x,awaitRefetchQueries:D,refetchQueries:A,removeOptimistic:f?o:void 0,onQueryUpdated:j,keepRootFields:J})}).subscribe({next:function(ge){d.broadcastQueries(),(!("hasNext"in ge)||ge.hasNext===!1)&&ce(R(R({},ge),{data:d.maskOperation({document:y,data:ge.data,fetchPolicy:I,id:o})}))},error:function(ge){s&&(s.loading=!1,s.error=ge),f&&d.cache.removeOptimistic(o),d.broadcastQueries(),Te(ge instanceof Qn?ge:new Qn({networkError:ge}))}})})]}})})},e.prototype.markMutationResult=function(r,i){var o=this;i===void 0&&(i=this.cache);var u=r.result,s=[],f=r.fetchPolicy==="no-cache";if(!f&&Kf(u,r.errorPolicy)){if(va(u)||s.push({result:u.data,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables}),va(u)&&gn(u.incremental)){var d=i.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(r.document).asQuery,variables:r.variables,optimistic:!1,returnPartialData:!0}),m=void 0;d.result&&(m=uy(d.result,u)),typeof m<"u"&&(u.data=m,s.push({result:m,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables}))}var p=r.updateQueries;p&&this.queries.forEach(function(g,b){var x=g.observableQuery,O=x&&x.queryName;if(!(!O||!zw.call(p,O))){var A=p[O],k=o.queries.get(b),D=k.document,N=k.variables,j=i.diff({query:D,variables:N,returnPartialData:!0,optimistic:!1}),z=j.result,I=j.complete;if(I&&z){var G=A(z,{mutationResult:u,queryName:D&&Mo(D)||void 0,queryVariables:N});G&&s.push({result:G,dataId:"ROOT_QUERY",query:D,variables:N})}}})}if(s.length>0||(r.refetchQueries||"").length>0||r.update||r.onQueryUpdated||r.removeOptimistic){var y=[];if(this.refetchQueries({updateCache:function(g){f||s.forEach(function(A){return g.write(A)});var b=r.update,x=!OD(u)||va(u)&&!u.hasNext;if(b){if(!f){var O=g.diff({id:"ROOT_MUTATION",query:o.getDocumentInfo(r.document).asQuery,variables:r.variables,optimistic:!1,returnPartialData:!0});O.complete&&(u=R(R({},u),{data:O.result}),"incremental"in u&&delete u.incremental,"hasNext"in u&&delete u.hasNext)}x&&b(g,u,{context:r.context,variables:r.variables})}!f&&!r.keepRootFields&&x&&g.modify({id:"ROOT_MUTATION",fields:function(A,k){var D=k.fieldName,N=k.DELETE;return D==="__typename"?A:N}})},include:r.refetchQueries,optimistic:!1,removeOptimistic:r.removeOptimistic,onQueryUpdated:r.onQueryUpdated||null}).forEach(function(g){return y.push(g)}),r.awaitRefetchQueries||r.onQueryUpdated)return Promise.all(y).then(function(){return u})}return Promise.resolve(u)},e.prototype.markMutationOptimistic=function(r,i){var o=this,u=typeof r=="function"?r(i.variables,{IGNORE:lg}):r;return u===lg?!1:(this.cache.recordOptimisticTransaction(function(s){try{o.markMutationResult(R(R({},i),{result:{data:u}}),s)}catch(f){globalThis.__DEV__!==!1&&ee.error(f)}},i.mutationId),!0)},e.prototype.fetchQuery=function(r,i,o){return this.fetchConcastWithInfo(this.getOrCreateQuery(r),i,o).concast.promise},e.prototype.getQueryStore=function(){var r=Object.create(null);return this.queries.forEach(function(i,o){r[o]={variables:i.variables,networkStatus:i.networkStatus,networkError:i.networkError,graphQLErrors:i.graphQLErrors}}),r},e.prototype.resetErrors=function(r){var i=this.queries.get(r);i&&(i.networkError=void 0,i.graphQLErrors=[])},e.prototype.transform=function(r){return this.documentTransform.transformDocument(r)},e.prototype.getDocumentInfo=function(r){var i=this.transformCache;if(!i.has(r)){var o={hasClientExports:lO(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),hasNonreactiveDirective:ko(["nonreactive"],r),nonReactiveQuery:sD(r),clientQuery:this.localState.clientQuery(r),serverQuery:Zv([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],r),defaultVars:df(Ei(r)),asQuery:R(R({},r),{definitions:r.definitions.map(function(u){return u.kind==="OperationDefinition"&&u.operation!=="query"?R(R({},u),{operation:"query"}):u})})};i.set(r,o)}return i.get(r)},e.prototype.getVariables=function(r,i){return R(R({},this.getDocumentInfo(r).defaultVars),i)},e.prototype.watchQuery=function(r){var i=this.transform(r.query);r=R(R({},r),{variables:this.getVariables(i,r.variables)}),typeof r.notifyOnNetworkStatusChange>"u"&&(r.notifyOnNetworkStatusChange=!1);var o=new Pf(this),u=new Yo({queryManager:this,queryInfo:o,options:r});return u.lastQuery=i,Yo.inactiveOnCreation.getValue()||this.queries.set(u.queryId,o),o.init({document:i,observableQuery:u,variables:u.variables}),u},e.prototype.query=function(r,i){var o=this;i===void 0&&(i=this.generateQueryId()),ee(r.query,38),ee(r.query.kind==="Document",39),ee(!r.returnPartialData,40),ee(!r.pollInterval,41);var u=this.transform(r.query);return this.fetchQuery(i,R(R({},r),{query:u})).then(function(s){return s&&R(R({},s),{data:o.maskOperation({document:u,data:s.data,fetchPolicy:r.fetchPolicy,id:i})})}).finally(function(){return o.stopQuery(i)})},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(r){this.stopQueryInStoreNoBroadcast(r),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(r){var i=this.queries.get(r);i&&i.stop()},e.prototype.clearStore=function(r){return r===void 0&&(r={discardWatches:!0}),this.cancelPendingFetches(Pt(42)),this.queries.forEach(function(i){i.observableQuery?i.networkStatus=Ne.loading:i.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(r)},e.prototype.getObservableQueries=function(r){var i=this;r===void 0&&(r="active");var o=new Map,u=new Map,s=new Map,f=new Set;return Array.isArray(r)&&r.forEach(function(d){if(typeof d=="string")u.set(d,d),s.set(d,!1);else if($O(d)){var m=Ti(i.transform(d));u.set(m,Mo(d)),s.set(m,!1)}else pt(d)&&d.query&&f.add(d)}),this.queries.forEach(function(d,m){var p=d.observableQuery,y=d.document;if(p){if(r==="all"){o.set(m,p);return}var g=p.queryName,b=p.options.fetchPolicy;if(b==="standby"||r==="active"&&!p.hasObservers())return;(r==="active"||g&&s.has(g)||y&&s.has(Ti(y)))&&(o.set(m,p),g&&s.set(g,!0),y&&s.set(Ti(y),!0))}}),f.size&&f.forEach(function(d){var m=Gc("legacyOneTimeQuery"),p=i.getOrCreateQuery(m).init({document:d.query,variables:d.variables}),y=new Yo({queryManager:i,queryInfo:p,options:R(R({},d),{fetchPolicy:"network-only"})});ee(y.queryId===m),p.setObservableQuery(y),o.set(m,y)}),globalThis.__DEV__!==!1&&s.size&&s.forEach(function(d,m){if(!d){var p=u.get(m);p?globalThis.__DEV__!==!1&&ee.warn(43,p):globalThis.__DEV__!==!1&&ee.warn(44)}}),o},e.prototype.reFetchObservableQueries=function(r){var i=this;r===void 0&&(r=!1);var o=[];return this.getObservableQueries(r?"all":"active").forEach(function(u,s){var f=u.options.fetchPolicy;zt("resetLastResults",function(){return u.resetLastResults()}),(r||f!=="standby"&&f!=="cache-only")&&o.push(u.refetch()),(i.queries.get(s)||u.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(o)},e.prototype.startGraphQLSubscription=function(r){var i=this,o=r.query,u=r.variables,s=r.fetchPolicy,f=r.errorPolicy,d=f===void 0?"none":f,m=r.context,p=m===void 0?{}:m,y=r.extensions,g=y===void 0?{}:y;o=this.transform(o),u=this.getVariables(o,u);var b=function(O){return i.getObservableFromLink(o,p,O,g).map(function(A){s!=="no-cache"&&(Kf(A,d)&&i.cache.write({query:o,result:A.data,dataId:"ROOT_SUBSCRIPTION",variables:O}),i.broadcastQueries());var k=Ou(A),D=QD(A);if(k||D){var N={};if(k&&(N.graphQLErrors=A.errors),D&&(N.protocolErrors=A.extensions[zf]),d==="none"||D)throw new Qn(N)}return d==="ignore"&&delete A.errors,A})};if(this.getDocumentInfo(o).hasClientExports){var x=this.localState.addExportedVariables(o,u,p).then(b);return new rt(function(O){var A=null;return x.then(function(k){return A=k.subscribe(O)},O.error),function(){return A&&A.unsubscribe()}})}return b(u)},e.prototype.stopQuery=function(r){this.stopQueryNoBroadcast(r),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(r){this.stopQueryInStoreNoBroadcast(r),this.removeQuery(r)},e.prototype.removeQuery=function(r){var i;this.fetchCancelFns.delete(r),this.queries.has(r)&&((i=this.queries.get(r))===null||i===void 0||i.stop(),this.queries.delete(r))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(r){var i;return(i=r.observableQuery)===null||i===void 0?void 0:i.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(r,i,o,u,s){var f=this,d;s===void 0&&(s=(d=i==null?void 0:i.queryDeduplication)!==null&&d!==void 0?d:this.queryDeduplication);var m,p=this.getDocumentInfo(r),y=p.serverQuery,g=p.clientQuery;if(y){var b=this,x=b.inFlightLinkObservables,O=b.link,A={query:y,variables:o,operationName:Mo(y)||void 0,context:this.prepareContext(R(R({},i),{forceFetch:!s})),extensions:u};if(i=A.context,s){var k=Ti(y),D=kr(o),N=x.lookup(k,D);if(m=N.observable,!m){var j=new ma([Mf(O,A)]);m=N.observable=j,j.beforeNext(function z(I,G){I==="next"&&"hasNext"in G&&G.hasNext?j.beforeNext(z):x.remove(k,D)})}}else m=new ma([Mf(O,A)])}else m=new ma([rt.of({data:{}})]),i=this.prepareContext(i);return g&&(m=Af(m,function(z){return f.localState.runResolvers({document:g,remoteResult:z,context:i,variables:o})})),m},e.prototype.getResultsFromLink=function(r,i,o){var u=r.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(o.query);return Af(this.getObservableFromLink(s,o.context,o.variables),function(f){var d=Cf(f),m=d.length>0,p=o.errorPolicy;if(u>=r.lastRequestId){if(m&&p==="none")throw r.markError(new Qn({graphQLErrors:d}));r.markResult(f,s,o,i),r.markReady()}var y={data:f.data,loading:!1,networkStatus:Ne.ready};return m&&p==="none"&&(y.data=void 0),m&&p!=="ignore"&&(y.errors=d,y.networkStatus=Ne.error),y},function(f){var d=hy(f)?f:new Qn({networkError:f});throw u>=r.lastRequestId&&r.markError(d),d})},e.prototype.fetchConcastWithInfo=function(r,i,o,u){var s=this;o===void 0&&(o=Ne.loading),u===void 0&&(u=i.query);var f=this.getVariables(u,i.variables),d=this.defaultOptions.watchQuery,m=i.fetchPolicy,p=m===void 0?d&&d.fetchPolicy||"cache-first":m,y=i.errorPolicy,g=y===void 0?d&&d.errorPolicy||"none":y,b=i.returnPartialData,x=b===void 0?!1:b,O=i.notifyOnNetworkStatusChange,A=O===void 0?!1:O,k=i.context,D=k===void 0?{}:k,N=Object.assign({},i,{query:u,variables:f,fetchPolicy:p,errorPolicy:g,returnPartialData:x,notifyOnNetworkStatusChange:A,context:D}),j=function(J){N.variables=J;var oe=s.fetchQueryByPolicy(r,N,o);return N.fetchPolicy!=="standby"&&oe.sources.length>0&&r.observableQuery&&r.observableQuery.applyNextFetchPolicy("after-fetch",i),oe},z=function(){return s.fetchCancelFns.delete(r.queryId)};this.fetchCancelFns.set(r.queryId,function(J){z(),setTimeout(function(){return I.cancel(J)})});var I,G;if(this.getDocumentInfo(N.query).hasClientExports)I=new ma(this.localState.addExportedVariables(N.query,N.variables,N.context).then(j).then(function(J){return J.sources})),G=!0;else{var B=j(N.variables);G=B.fromLink,I=new ma(B.sources)}return I.promise.then(z,z),{concast:I,fromLink:G}},e.prototype.refetchQueries=function(r){var i=this,o=r.updateCache,u=r.include,s=r.optimistic,f=s===void 0?!1:s,d=r.removeOptimistic,m=d===void 0?f?Gc("refetchQueries"):void 0:d,p=r.onQueryUpdated,y=new Map;u&&this.getObservableQueries(u).forEach(function(b,x){y.set(x,{oq:b,lastDiff:(i.queries.get(x)||b.queryInfo).getDiff()})});var g=new Map;return o&&this.cache.batch({update:o,optimistic:f&&m||!1,removeOptimistic:m,onWatchUpdated:function(b,x,O){var A=b.watcher instanceof Pf&&b.watcher.observableQuery;if(A){if(p){y.delete(A.queryId);var k=p(A,x,O);return k===!0&&(k=A.refetch()),k!==!1&&g.set(A,k),k}p!==null&&y.set(A.queryId,{oq:A,lastDiff:O,diff:x})}}}),y.size&&y.forEach(function(b,x){var O=b.oq,A=b.lastDiff,k=b.diff,D;p&&(k||(k=zt("canonizeResults",function(){return i.cache.diff(O.queryInfo.getDiffOptions())})),D=p(O,k,A)),(!p||D===!0)&&(D=O.refetch()),D!==!1&&g.set(O,D),x.indexOf("legacyOneTimeQuery")>=0&&i.stopQueryNoBroadcast(x)}),m&&this.cache.removeOptimistic(m),g},e.prototype.maskOperation=function(r){var i,o,u,s=r.document,f=r.data;if(globalThis.__DEV__!==!1){var d=r.fetchPolicy,m=r.id,p=(i=Ei(s))===null||i===void 0?void 0:i.operation,y=((o=p==null?void 0:p[0])!==null&&o!==void 0?o:"o")+m;this.dataMasking&&d==="no-cache"&&!gO(s)&&!this.noCacheWarningsByQueryId.has(y)&&(this.noCacheWarningsByQueryId.add(y),globalThis.__DEV__!==!1&&ee.warn(45,(u=Mo(s))!==null&&u!==void 0?u:"Unnamed ".concat(p??"operation")))}return this.dataMasking?pw(f,s,this.cache):f},e.prototype.maskFragment=function(r){var i=r.data,o=r.fragment,u=r.fragmentName;return this.dataMasking?Ay(i,o,this.cache,u):i},e.prototype.fetchQueryByPolicy=function(r,i,o){var u=this,s=i.query,f=i.variables,d=i.fetchPolicy,m=i.refetchWritePolicy,p=i.errorPolicy,y=i.returnPartialData,g=i.context,b=i.notifyOnNetworkStatusChange,x=r.networkStatus;r.init({document:s,variables:f,networkStatus:o});var O=function(){return r.getDiff()},A=function(z,I){I===void 0&&(I=r.networkStatus||Ne.loading);var G=z.result;globalThis.__DEV__!==!1&&!y&&!Qe(G,{})&&og(z.missing);var B=function(J){return rt.of(R({data:J,loading:ba(I),networkStatus:I},z.complete?null:{partial:!0}))};return G&&u.getDocumentInfo(s).hasForcedResolvers?u.localState.runResolvers({document:s,remoteResult:{data:G},context:g,variables:f,onlyRunForcedResolvers:!0}).then(function(J){return B(J.data||void 0)}):p==="none"&&I===Ne.refetch&&Array.isArray(z.missing)?B(void 0):B(G)},k=d==="no-cache"?0:o===Ne.refetch&&m!=="merge"?1:2,D=function(){return u.getResultsFromLink(r,k,{query:s,variables:f,context:g,fetchPolicy:d,errorPolicy:p})},N=b&&typeof x=="number"&&x!==o&&ba(o);switch(d){default:case"cache-first":{var j=O();return j.complete?{fromLink:!1,sources:[A(j,r.markReady())]}:y||N?{fromLink:!0,sources:[A(j),D()]}:{fromLink:!0,sources:[D()]}}case"cache-and-network":{var j=O();return j.complete||y||N?{fromLink:!0,sources:[A(j),D()]}:{fromLink:!0,sources:[D()]}}case"cache-only":return{fromLink:!1,sources:[A(O(),r.markReady())]};case"network-only":return N?{fromLink:!0,sources:[A(O()),D()]}:{fromLink:!0,sources:[D()]};case"no-cache":return N?{fromLink:!0,sources:[A(r.getDiff()),D()]}:{fromLink:!0,sources:[D()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(r){return r&&!this.queries.has(r)&&this.queries.set(r,new Pf(this,r)),this.queries.get(r)},e.prototype.prepareContext=function(r){r===void 0&&(r={});var i=this.localState.prepareContext(r);return R(R(R({},this.defaultContext),i),{clientAwareness:this.clientAwareness})},e})(),Nw=(function(){function e(r){var i=r.cache,o=r.client,u=r.resolvers,s=r.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=i,o&&(this.client=o),u&&this.addResolvers(u),s&&this.setFragmentMatcher(s)}return e.prototype.addResolvers=function(r){var i=this;this.resolvers=this.resolvers||{},Array.isArray(r)?r.forEach(function(o){i.resolvers=Kv(i.resolvers,o)}):this.resolvers=Kv(this.resolvers,r)},e.prototype.setResolvers=function(r){this.resolvers={},this.addResolvers(r)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(r){return xr(this,arguments,void 0,function(i){var o=i.document,u=i.remoteResult,s=i.context,f=i.variables,d=i.onlyRunForcedResolvers,m=d===void 0?!1:d;return Sr(this,function(p){return o?[2,this.resolveDocument(o,u.data,s,f,this.fragmentMatcher,m).then(function(y){return R(R({},u),{data:y.result})})]:[2,u]})})},e.prototype.setFragmentMatcher=function(r){this.fragmentMatcher=r},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(r){return ko(["client"],r)&&this.resolvers?r:null},e.prototype.serverQuery=function(r){return Pv(r)},e.prototype.prepareContext=function(r){var i=this.cache;return R(R({},r),{cache:i,getCacheKey:function(o){return i.identify(o)}})},e.prototype.addExportedVariables=function(r){return xr(this,arguments,void 0,function(i,o,u){return o===void 0&&(o={}),u===void 0&&(u={}),Sr(this,function(s){return i?[2,this.resolveDocument(i,this.buildRootValueFromCache(i,o)||{},this.prepareContext(u),o).then(function(f){return R(R({},o),f.exportedVariables)})]:[2,R({},o)]})})},e.prototype.shouldForceResolvers=function(r){var i=!1;return Ln(r,{Directive:{enter:function(o){if(o.name.value==="client"&&o.arguments&&(i=o.arguments.some(function(u){return u.name.value==="always"&&u.value.kind==="BooleanValue"&&u.value.value===!0}),i))return pu}}}),i},e.prototype.buildRootValueFromCache=function(r,i){return this.cache.diff({query:uD(r),variables:i,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(r,i){return xr(this,arguments,void 0,function(o,u,s,f,d,m){var p,y,g,b,x,O,A,k,D,N,j;return s===void 0&&(s={}),f===void 0&&(f={}),d===void 0&&(d=function(){return!0}),m===void 0&&(m=!1),Sr(this,function(z){return p=zo(o),y=sa(o),g=ia(y),b=this.collectSelectionsToResolve(p,g),x=p.operation,O=x?x.charAt(0).toUpperCase()+x.slice(1):"Query",A=this,k=A.cache,D=A.client,N={fragmentMap:g,context:R(R({},s),{cache:k,client:D}),variables:f,fragmentMatcher:d,defaultOperationType:O,exportedVariables:{},selectionsToResolve:b,onlyRunForcedResolvers:m},j=!1,[2,this.resolveSelectionSet(p.selectionSet,j,u,N).then(function(I){return{result:I,exportedVariables:N.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(r,i,o,u){return xr(this,void 0,void 0,function(){var s,f,d,m,p,y=this;return Sr(this,function(g){return s=u.fragmentMap,f=u.context,d=u.variables,m=[o],p=function(b){return xr(y,void 0,void 0,function(){var x,O;return Sr(this,function(A){return!i&&!u.selectionsToResolve.has(b)?[2]:Co(b,d)?Rr(b)?[2,this.resolveField(b,i,o,u).then(function(k){var D;typeof k<"u"&&m.push((D={},D[er(b)]=k,D))})]:(XO(b)?x=b:(x=s[b.name.value],ee(x,21,b.name.value)),x&&x.typeCondition&&(O=x.typeCondition.name.value,u.fragmentMatcher(o,O,f))?[2,this.resolveSelectionSet(x.selectionSet,i,o,u).then(function(k){m.push(k)})]:[2]):[2]})})},[2,Promise.all(r.selections.map(p)).then(function(){return Su(m)})]})})},e.prototype.resolveField=function(r,i,o,u){return xr(this,void 0,void 0,function(){var s,f,d,m,p,y,g,b,x,O=this;return Sr(this,function(A){return o?(s=u.variables,f=r.name.value,d=er(r),m=f!==d,p=o[d]||o[f],y=Promise.resolve(p),(!u.onlyRunForcedResolvers||this.shouldForceResolvers(r))&&(g=o.__typename||u.defaultOperationType,b=this.resolvers&&this.resolvers[g],b&&(x=b[m?f:d],x&&(y=Promise.resolve(Bf.withValue(this.cache,x,[o,bu(r,s),u.context,{field:r,fragmentMap:u.fragmentMap}]))))),[2,y.then(function(k){var D,N;if(k===void 0&&(k=p),r.directives&&r.directives.forEach(function(z){z.name.value==="export"&&z.arguments&&z.arguments.forEach(function(I){I.name.value==="as"&&I.value.kind==="StringValue"&&(u.exportedVariables[I.value.value]=k)})}),!r.selectionSet||k==null)return k;var j=(N=(D=r.directives)===null||D===void 0?void 0:D.some(function(z){return z.name.value==="client"}))!==null&&N!==void 0?N:!1;if(Array.isArray(k))return O.resolveSubSelectedArray(r,i||j,k,u);if(r.selectionSet)return O.resolveSelectionSet(r.selectionSet,i||j,k,u)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(r,i,o,u){var s=this;return Promise.all(o.map(function(f){if(f===null)return null;if(Array.isArray(f))return s.resolveSubSelectedArray(r,i,f,u);if(r.selectionSet)return s.resolveSelectionSet(r.selectionSet,i,f,u)}))},e.prototype.collectSelectionsToResolve=function(r,i){var o=function(f){return!Array.isArray(f)},u=this.selectionsToResolveCache;function s(f){if(!u.has(f)){var d=new Set;u.set(f,d),Ln(f,{Directive:function(m,p,y,g,b){m.name.value==="client"&&b.forEach(function(x){o(x)&&gv(x)&&d.add(x)})},FragmentSpread:function(m,p,y,g,b){var x=i[m.name.value];ee(x,22,m.name.value);var O=s(x);O.size>0&&(b.forEach(function(A){o(A)&&gv(A)&&d.add(A)}),d.add(m),O.forEach(function(A){d.add(A)}))}})}return u.get(f)}return s(r)},e})(),ug=!1,sg=(function(){function e(r){var i=this,o,u,s;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!r.cache)throw Pt(16);var f=r.uri,d=r.credentials,m=r.headers,p=r.cache,y=r.documentTransform,g=r.ssrMode,b=g===void 0?!1:g,x=r.ssrForceFetchDelay,O=x===void 0?0:x,A=r.connectToDevTools,k=r.queryDeduplication,D=k===void 0?!0:k,N=r.defaultOptions,j=r.defaultContext,z=r.assumeImmutableResults,I=z===void 0?p.assumeImmutableResults:z,G=r.resolvers,B=r.typeDefs,J=r.fragmentMatcher,oe=r.clientAwareness,_e=r.name,ce=r.version,Te=r.devtools,ge=r.dataMasking;globalThis.__DEV__!==!1&&(gt(r,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),gt(r,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),gt(r,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),gt(r,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),gt(r,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),gt(r,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),gt(r,"typeDefs","ApolloClient"),r.link||globalThis.__DEV__!==!1&&ee.warn(17));var Xe=r.link;Xe||(Xe=f?new vy({uri:f,credentials:d,headers:m}):Bo.empty()),this.link=Xe,this.cache=p,this.disableNetworkFetches=b||O>0,this.queryDeduplication=D,this.defaultOptions=N||Object.create(null),this.typeDefs=B,this.devtoolsConfig=R(R({},Te),{enabled:(o=Te==null?void 0:Te.enabled)!==null&&o!==void 0?o:A}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),O&&setTimeout(function(){return i.disableNetworkFetches=!1},O),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Hc,this.localState=new Nw({cache:p,client:this,resolvers:G,fragmentMatcher:J}),this.queryManager=new jw({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:j,documentTransform:y,queryDeduplication:D,ssrMode:b,dataMasking:!!ge,clientAwareness:{name:(u=oe==null?void 0:oe.name)!==null&&u!==void 0?u:_e,version:(s=oe==null?void 0:oe.version)!==null&&s!==void 0?s:ce},localState:this.localState,assumeImmutableResults:I,onBroadcast:this.devtoolsConfig.enabled?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(r){this.disableNetworkFetches=r},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var r=window,i=Symbol.for("apollo.devtools");(r[i]=r[i]||[]).push(this),r.__APOLLO_CLIENT__=this,!ug&&globalThis.__DEV__!==!1&&(ug=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var o=window.navigator,u=o&&o.userAgent,s=void 0;typeof u=="string"&&(u.indexOf("Chrome/")>-1?s="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":u.indexOf("Firefox/")>-1&&(s="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),s&&globalThis.__DEV__!==!1&&ee.log("Download the Apollo DevTools for a better development experience: %s",s)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(r){return this.defaultOptions.watchQuery&&(r=Uo(this.defaultOptions.watchQuery,r)),this.disableNetworkFetches&&(r.fetchPolicy==="network-only"||r.fetchPolicy==="cache-and-network")&&(r=R(R({},r),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(gt(r,"canonizeResults","client.watchQuery"),gt(r,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(r)},e.prototype.query=function(r){return this.defaultOptions.query&&(r=Uo(this.defaultOptions.query,r)),ee(r.fetchPolicy!=="cache-and-network",18),this.disableNetworkFetches&&r.fetchPolicy==="network-only"&&(r=R(R({},r),{fetchPolicy:"cache-first"})),globalThis.__DEV__!==!1&&(gt(r,"canonizeResults","client.query"),gt(r,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),r.fetchPolicy==="standby"&&globalThis.__DEV__!==!1&&ee.warn(19)),this.queryManager.query(r)},e.prototype.mutate=function(r){return this.defaultOptions.mutate&&(r=Uo(this.defaultOptions.mutate,r)),this.queryManager.mutate(r)},e.prototype.subscribe=function(r){var i=this,o=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(r).map(function(u){return R(R({},u),{data:i.queryManager.maskOperation({document:r.query,data:u.data,fetchPolicy:r.fetchPolicy,id:o})})})},e.prototype.readQuery=function(r,i){return i===void 0&&(i=!1),this.cache.readQuery(r,i)},e.prototype.watchFragment=function(r){var i;return this.cache.watchFragment(R(R({},r),(i={},i[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,i)))},e.prototype.readFragment=function(r,i){return i===void 0&&(i=!1),this.cache.readFragment(r,i)},e.prototype.writeQuery=function(r){var i=this.cache.writeQuery(r);return r.broadcast!==!1&&this.queryManager.broadcastQueries(),i},e.prototype.writeFragment=function(r){var i=this.cache.writeFragment(r);return r.broadcast!==!1&&this.queryManager.broadcastQueries(),i},e.prototype.__actionHookForDevTools=function(r){this.devToolsHookCb=r},e.prototype.__requestRaw=function(r){return Mf(this.link,r)},e.prototype.resetStore=function(){var r=this;return Promise.resolve().then(function(){return r.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(r.resetStoreCallbacks.map(function(i){return i()}))}).then(function(){return r.reFetchObservableQueries()})},e.prototype.clearStore=function(){var r=this;return Promise.resolve().then(function(){return r.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(r.clearStoreCallbacks.map(function(i){return i()}))})},e.prototype.onResetStore=function(r){var i=this;return this.resetStoreCallbacks.push(r),function(){i.resetStoreCallbacks=i.resetStoreCallbacks.filter(function(o){return o!==r})}},e.prototype.onClearStore=function(r){var i=this;return this.clearStoreCallbacks.push(r),function(){i.clearStoreCallbacks=i.clearStoreCallbacks.filter(function(o){return o!==r})}},e.prototype.reFetchObservableQueries=function(r){return this.queryManager.reFetchObservableQueries(r)},e.prototype.refetchQueries=function(r){var i=this.queryManager.refetchQueries(r),o=[],u=[];i.forEach(function(f,d){o.push(d),u.push(f)});var s=Promise.all(u);return s.queries=o,s.results=u,s.catch(function(f){globalThis.__DEV__!==!1&&ee.debug(20,f)}),s},e.prototype.getObservableQueries=function(r){return r===void 0&&(r="active"),this.queryManager.getObservableQueries(r)},e.prototype.extract=function(r){return this.cache.extract(r)},e.prototype.restore=function(r){return this.cache.restore(r)},e.prototype.addResolvers=function(r){this.localState.addResolvers(r)},e.prototype.setResolvers=function(r){this.localState.setResolvers(r)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(r){this.localState.setFragmentMatcher(r)},e.prototype.setLink=function(r){this.link=this.queryManager.link=r},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e})();globalThis.__DEV__!==!1&&(sg.prototype.getMemoryInternals=wO);var ku=new Map,Jf=new Map,cg=!0,Ru=!1;function fg(e){return e.replace(/[\s,]+/g," ").trim()}function $w(e){return fg(e.source.body.substring(e.start,e.end))}function Lw(e){var r=new Set,i=[];return e.definitions.forEach(function(o){if(o.kind==="FragmentDefinition"){var u=o.name.value,s=$w(o.loc),f=Jf.get(u);f&&!f.has(s)?cg&&console.warn("Warning: fragment with name "+u+` already exists. graphql-tag enforces all fragment names across your application to be unique; read more about this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):f||Jf.set(u,f=new Set),f.add(s),r.has(s)||(r.add(s),i.push(o))}else i.push(o)}),R(R({},e),{definitions:i})}function Fw(e){var r=new Set(e.definitions);r.forEach(function(o){o.loc&&delete o.loc,Object.keys(o).forEach(function(u){var s=o[u];s&&typeof s=="object"&&r.add(s)})});var i=e.loc;return i&&(delete i.startToken,delete i.endToken),e}function Uw(e){var r=fg(e);if(!ku.has(r)){var i=KT(e,{experimentalFragmentVariables:Ru,allowLegacyFragmentVariables:Ru});if(!i||i.kind!=="Document")throw new Error("Not a valid GraphQL document.");ku.set(r,Fw(Lw(i)))}return ku.get(r)}function on(e){for(var r=[],i=1;i0?new Qn({graphQLErrors:I}):void 0,B=p.onError||((N=f.current.options)===null||N===void 0?void 0:N.onError);if(G&&B&&B(G,k),A===f.current.mutationId&&!k.ignoreResults){var J={called:!0,loading:!1,data:z,error:G,client:O};f.current.isMounted&&!Qe(f.current.result,J)&&s(f.current.result=J)}var oe=p.onCompleted||((j=f.current.options)===null||j===void 0?void 0:j.onCompleted);return G||oe==null||oe(D.data,k),D},function(D){var N;if(A===f.current.mutationId&&f.current.isMounted){var j={loading:!1,error:D,data:void 0,called:!0,client:O};Qe(f.current.result,j)||s(f.current.result=j)}var z=p.onError||((N=f.current.options)===null||N===void 0?void 0:N.onError);if(z)return z(D,k),{data:void 0,errors:D};throw D})},[]),m=Ke.useCallback(function(){if(f.current.isMounted){var p={called:!1,loading:!1,client:f.current.client};Object.assign(f.current,{mutationId:0,result:p}),s(p)}},[]);return Ke.useEffect(function(){var p=f.current;return p.isMounted=!0,function(){p.isMounted=!1}},[]),[d,R({reset:m},u)]}const Zo={},Dg=on` fragment Image on Image { file_path id is_active is_primary url position } `,fA=on` fragment Segment on Segment { id slug title url } `,ih=on` fragment Participant on Participant { email first_name id is_excluded last_name reason webshop_external_id } `,hA=on` mutation createParticipant($input: ParticipantInput!, $productTestId: ID!) { createParticipant(input: $input, productTestId: $productTestId) { ...Participant } } ${ih}`;function dA(e){const r={...Zo,...e};return cA(hA,r)}const pA=on` query currentProductTest { currentProductTest { active_from active_to draw_date hero_description id name primaryImage { file_path id is_primary position is_active url } short_description } } `;function mA(e){const r={...Zo,...e};return zu(pA,r)}const vA=on` query getProductTestById($id: ID!) { getProductTestById(id: $id) { active_from active_to draw_date hero_description id is_active long_description name short_description visible_from visible_to images { ...Image } participants { ...Participant } segments { ...Segment } winners { id participant { ...Participant } } } } ${Dg} ${ih} ${fA}`;function yA(e){const r={...Zo,...e};return zu(vA,r)}const gA=on` query listPreviousProductTests { listPreviousProductTests { active_from active_to draw_date hero_description id name primaryImage { ...Image } short_description } } ${Dg}`;function bA(e){const r={...Zo,...e};return zu(gA,r)}const _A=on` query listWinners($productTestId: ID!) { listWinners(productTestId: $productTestId) { id participant { ...Participant } productTest { name } } } ${ih}`;function xA(e){const r={...Zo,...e};return zu(_A,r)}const SA=({isOpen:e,onClose:r,productTestId:i})=>{var d;const o=m=>{e&&m.target===m.currentTarget&&r()},{data:u,loading:s}=xA({variables:{productTestId:i??""}}),f=(u==null?void 0:u.listWinners)||[];return S.jsx(WS,{isOpen:e,onClick:o,children:S.jsxs(eE,{isOpen:e,children:[S.jsx(ae.Container,{$justifyContent:"flex-end",style:{position:"fixed",right:25},children:S.jsx("img",{style:{cursor:"pointer",width:60},onClick:r,src:"https://storage.googleapis.com/react-microsites/advent-calendar-2025/modal/close-modal.webp",alt:"Alapítványok listájának bezárása"})}),S.jsxs(ae.Container,{$flexDirection:"column",style:{marginTop:"3em"},$gap:"30px",children:[S.jsx(Ie.ResponsiveText,{variant:"boldH6",color:"#464D54",$bpVariant:{medium:"h3"},children:"Nyertesek listája"}),f&&S.jsxs(S.Fragment,{children:[S.jsx(Ie.ResponsiveText,{variant:"body",color:"#0D1A38",children:"A terméktesztelés lezárult. Gratulálunk a nyerteseknek! Köszönjük a részvételt minden játékosnak."}),S.jsx(Ie.ResponsiveText,{variant:"body",color:"#0D1A38",children:"Az érintetteket e-mailben értesítjük a további részletekről."}),S.jsxs(Ie.ResponsiveText,{variant:"body",color:"#0D1A38",children:["A(z) ",(d=f[0])==null?void 0:d.productTest.name," nyerteseinek listája alább olvasható."]})]}),S.jsx(ae.Item,{children:s?S.jsx(Ie.ResponsiveText,{variant:"h6",color:"#231F20",children:"Nyertesek betöltése..."}):f.map((m,p)=>S.jsx(ae.Container,{$justifyContent:"space-between",style:{marginBottom:20,borderBottom:"1px solid #DDE6EF",paddingBottom:10},children:S.jsx(ae.Item,{children:S.jsxs(Ie.ResponsiveText,{variant:"body",$bpVariant:{medium:"body"},color:"#0D1A38",children:[m==null?void 0:m.participant.last_name," ",m==null?void 0:m.participant.first_name]})})},"foundation-"+p))})]})]})})},EA=gi` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,TA=W(Nn)` animation: ${EA} 2s linear infinite; max-width: 30px; margin-bottom: 7px; `,wg=()=>S.jsxs(OA,{children:[S.jsx(TA,{src:"https://storage.googleapis.com/microsites-microservice/product-testing/frontend/loader-large.svg",alt:"",role:"presentation"}),S.jsx(Ie.ResponsiveText,{variant:"h5",children:"Terméktesztek betöltése..."}),S.jsx(Ie.ResponsiveText,{variant:"body",children:"Kis türelmet kérünk."})]}),OA=W(To)` height: 437px; display: flex; justify-content: center; align-items: center; flex-direction: column; `,DA=()=>{const[e,r]=ue.useState(null),[i,o]=ue.useState(!1),{data:u,loading:s}=mA(),{data:f,loading:d}=bA(),m=(u==null?void 0:u.currentProductTest)||null,p=(f==null?void 0:f.listPreviousProductTests)??[];if(s||d)return S.jsx(wg,{});const y=g=>{r(g),o(!0)};return S.jsxs(S.Fragment,{children:[S.jsx(OE,{currentProductTest:m}),S.jsx(wE,{}),S.jsx(hT,{currentProductTest:m}),p&&p.length>0&&S.jsx(yT,{openModal:y,previousProductTests:p}),i&&S.jsx(SA,{productTestId:e,isOpen:i,onClose:()=>o(!1)})]})},wA=({productTest:e,onImageClick:r})=>{const i=e.images.filter(m=>m.url),[o,u]=ue.useState(0),s=m=>{u(m)},f=()=>{u(m=>(m+1)%i.length)},d=()=>{u(m=>(m-1+i.length)%i.length)};return i.length?S.jsxs(S.Fragment,{children:[S.jsxs(rE,{children:[S.jsx(iE,{onClick:()=>r==null?void 0:r(o),children:S.jsx(Nn,{src:i[o].url,alt:"",role:"presentation",style:{width:"100%",height:"100%",objectFit:"contain",backgroundColor:"#FFF"}})}),S.jsxs(aE,{children:[S.jsx(jm,{onClick:d,"aria-label":"Előző kép",children:S.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",children:S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),S.jsx(jm,{onClick:f,"aria-label":"Következő kép",children:S.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",children:S.jsx("path",{d:"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"})})})]})]}),S.jsx(oE,{children:S.jsx(ae.Container,{$flexDirection:"row",$gap:"8px",style:{padding:"8px 0 11px 2px",overflowX:"auto"},children:i.map((m,p)=>S.jsx(lE,{active:p===o,onClick:()=>s(p),children:S.jsx(uE,{src:m.url,alt:"",style:{objectFit:"cover"}})},p))})}),S.jsx(Ie.ResponsiveText,{variant:"regular12",color:"#464D54",style:{marginBottom:20},children:"Kattints a képre a nagyításhoz és a galériához!"})]}):null},AA=({images:e,initialIndex:r,isOpen:i,onClose:o})=>{const[u,s]=ue.useState(r);ue.useEffect(()=>{if(!i)return;const p=y=>y.key==="Escape"&&o();return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[i,o]),ue.useEffect(()=>{s(r)},[r]);const f=ue.useCallback(p=>{s(p)},[]),d=ue.useCallback(()=>{s(p=>(p+1)%e.length)},[e.length]),m=ue.useCallback(()=>{s(p=>(p-1+e.length)%e.length)},[e.length]);return i?S.jsx(cE,{onClick:o,children:S.jsxs(fE,{onClick:p=>p.stopPropagation(),children:[S.jsx(hE,{onClick:o,"aria-label":"Bezár",children:"×"}),S.jsxs(mE,{children:[S.jsx(Nm,{onClick:m,"aria-label":"Előző kép",children:S.jsx("svg",{fill:"#D20A2D",viewBox:"0 0 24 24",width:"32",height:"32",children:S.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})})}),S.jsx(Nm,{onClick:d,"aria-label":"Következő kép",children:S.jsx("svg",{fill:"#D20A2D",viewBox:"0 0 24 24",width:"32",height:"32",children:S.jsx("path",{d:"M8.59 16.59L10 18l6-6-6-6-1.41 1.41L13.17 12z"})})})]}),S.jsx(dE,{children:S.jsx(pE,{children:S.jsx("img",{src:e[u].url,alt:"",style:{width:"100%",height:"100%",objectFit:"contain",backgroundColor:"#FFF"}})})}),S.jsx(vE,{children:S.jsx(ae.Container,{$flexDirection:"row",$gap:"12px",style:{padding:"24px 0",overflowX:"auto"},children:e.map((p,y)=>S.jsx(yE,{active:y===u,onClick:()=>f(y),children:S.jsx(gE,{src:p.url,style:{objectFit:"cover"}})},y))})})]})}):null},CA=({productTest:e})=>{const[r,i]=ue.useState(!1),[o,u]=ue.useState(0),s=e.images.filter(d=>d.url),f=d=>{u(d),i(!0)};return S.jsx(tE,{children:S.jsxs(ae.Container,{$flexDirection:"column",$bpMedium:{$flexDirection:"row"},$gap:"20px",children:[S.jsxs(ae.Item,{$flex:1,$bpMedium:{$flex:1/2},children:[S.jsx(Ie.ResponsiveText,{className:"hide-for-medium",variant:"extraboldH5",color:"#464D54",children:e.name}),S.jsx(wA,{productTest:e,onImageClick:d=>f(d)})]}),S.jsx(AA,{images:s,initialIndex:o,isOpen:r,onClose:()=>i(!1)}),S.jsx(ae.Item,{$flex:1,$bpMedium:{$flex:1/2},children:S.jsxs(ae.Container,{$flexDirection:"column",$gap:"20px",children:[S.jsx(Ie.ResponsiveText,{className:"show-for-medium",variant:"h3",color:"#464D54",children:e.name}),S.jsxs(ae.Container,{$flexDirection:"column",$alignItems:"center",$bpMedium:{$flexDirection:"row"},$gap:"10px",children:[S.jsx(kA,{btnLabel:"Szeretnék tesztelni",onClick:()=>{var d;return window.scrollTo({top:(d=document.getElementById("product-test-form"))==null?void 0:d.offsetTop,behavior:"smooth"})}}),S.jsx(RA,{btnLabel:"Mutasd a terméket",onClick:()=>window.open(e.segments[0].url,"_blank")})]})]})})]})})},kA=W(Jn.Primary)` min-height: 44px; height: 44px; padding: 0; @media (min-width: 576px) { max-width: 216px; } `,RA=W(Jn.Secondary)` min-height: 44px; width: 100%; height: 44px; padding: 10px; @media (min-width: 576px) { max-width: 269px; } `,MA=({productTestDescription:e})=>S.jsx(ae.Container,{style:{marginBottom:20},children:S.jsx(ae.Item,{$flex:1,$bpMedium:{$flex:1/2},children:S.jsxs(ae.Container,{$flexDirection:"column",$gap:"16px",children:[S.jsx(ae.Container,{children:S.jsx(Ie.ResponsiveText,{color:"#464D54",variant:"ebold16",style:{padding:20,borderBottom:"3px solid #464D54"},children:"Terméktesztelés információk"})}),S.jsx(ae.Container,{style:{padding:20},children:S.jsx("div",{dangerouslySetInnerHTML:{__html:e}})})]})})});var Ag=pc();const wi={render:"ComponentBridge.render",renderComplete:"ComponentBridge.renderComplete",unmount:"ComponentBridge.unmount",hookUpdate:"ComponentBridge.hookUpdate",hookUnmount:"ComponentBridge.hookUnmount",hookReturn:"ComponentBridge.hookReturn"};function Po(e,r){window.dispatchEvent(new CustomEvent(e,{detail:r}))}function Cg(e,r){const i=o=>{r(o.detail)};return window.addEventListener(e,i),function(){window.removeEventListener(e,i)}}ue.memo(({elementDescriptor:{props:e,htmlElement:r,key:i},componentDescriptor:{Component:o}})=>(console.log("[HOST] BridgedElementRenderer render",e,r),Ag.createPortal(tt.createElement(o,{...e}),r,i))),ue.memo(({hookDescriptor:{hook:e},hookUpdate:{hookParams:r,key:i}})=>{const o=e(...r);return ue.useEffect(()=>{Po(wi.hookReturn,{key:i,hookReturn:o})},[o,i]),null});function Ai(e){return ue.memo(r=>{const i=ue.useRef(`${Math.random()}`),o=ue.useRef(null),u=ue.useRef({});console.log("[CLIENT] render",e,r);const s=zA(r,u.current);return ue.useEffect(()=>{console.log("[CLIENT] render effect",e,r),Po(wi.render,{props:jA(r,u.current,i.current),htmlElement:o.current,componentName:e,key:i.current})}),ue.useEffect(()=>{const f=i.current,d=Cg(wi.renderComplete,({key:m})=>{var p;if(m===i.current){console.log("[CLIENT] renderComplete",m);for(const[y,g]of Object.entries(u.current)){const b=document.getElementById(kg(y,i.current));b&&((p=b.parentNode)==null||p.replaceChild(g,b))}}});return()=>{Po(wi.unmount,{key:f}),d()}},[]),tt.createElement(tt.Fragment,null,tt.createElement("div",{ref:o}),s)})}function kg(e,r){return`ComponentBridge.${r}.${e}`}function zA(e,r){return Object.entries(e).map(([i,o])=>ue.isValidElement(o)?(r[i]??(r[i]=document.createElement("div")),Ag.createPortal(o,r[i],i)):null)}function jA(e,r,i){const o={...e};for(const[u]of Object.entries(e))r[u]&&(o[u]=tt.createElement("div",{id:kg(u,i)}));return o}var ju=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function NA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $A(){this.__data__=[],this.size=0}var LA=$A;function FA(e,r){return e===r||e!==e&&r!==r}var Rg=FA,UA=Rg;function qA(e,r){for(var i=e.length;i--;)if(UA(e[i][0],r))return i;return-1}var Nu=qA,BA=Nu,IA=Array.prototype,VA=IA.splice;function QA(e){var r=this.__data__,i=BA(r,e);if(i<0)return!1;var o=r.length-1;return i==o?r.pop():VA.call(r,i,1),--this.size,!0}var HA=QA,GA=Nu;function YA(e){var r=this.__data__,i=GA(r,e);return i<0?void 0:r[i][1]}var XA=YA,ZA=Nu;function PA(e){return ZA(this.__data__,e)>-1}var KA=PA,JA=Nu;function WA(e,r){var i=this.__data__,o=JA(i,e);return o<0?(++this.size,i.push([e,r])):i[o][1]=r,this}var eC=WA,tC=LA,nC=HA,rC=XA,iC=KA,aC=eC;function Sa(e){var r=-1,i=e==null?0:e.length;for(this.clear();++rd))return!1;var p=s.get(e),y=s.get(r);if(p&&y)return p==r&&y==e;var g=-1,b=!0,x=i&HR?new BR:void 0;for(s.set(e,r),s.set(r,e);++g-1&&e%1==0&&e-1&&e%1==0&&e<=tz}var Jg=nz,rz=Lu,iz=Jg,az=Bu,oz="[object Arguments]",lz="[object Array]",uz="[object Boolean]",sz="[object Date]",cz="[object Error]",fz="[object Function]",hz="[object Map]",dz="[object Number]",pz="[object Object]",mz="[object RegExp]",vz="[object Set]",yz="[object String]",gz="[object WeakMap]",bz="[object ArrayBuffer]",_z="[object DataView]",xz="[object Float32Array]",Sz="[object Float64Array]",Ez="[object Int8Array]",Tz="[object Int16Array]",Oz="[object Int32Array]",Dz="[object Uint8Array]",wz="[object Uint8ClampedArray]",Az="[object Uint16Array]",Cz="[object Uint32Array]",ot={};ot[xz]=ot[Sz]=ot[Ez]=ot[Tz]=ot[Oz]=ot[Dz]=ot[wz]=ot[Az]=ot[Cz]=!0,ot[oz]=ot[lz]=ot[bz]=ot[uz]=ot[_z]=ot[sz]=ot[cz]=ot[fz]=ot[hz]=ot[dz]=ot[pz]=ot[mz]=ot[vz]=ot[yz]=ot[gz]=!1;function kz(e){return az(e)&&iz(e.length)&&!!ot[rz(e)]}var Rz=kz;function Mz(e){return function(r){return e(r)}}var zz=Mz,Vu={exports:{}};Vu.exports,(function(e,r){var i=Mg,o=r&&!r.nodeType&&r,u=o&&!0&&e&&!e.nodeType&&e,s=u&&u.exports===o,f=s&&i.process,d=(function(){try{var m=u&&u.require&&u.require("util").types;return m||f&&f.binding&&f.binding("util")}catch{}})();e.exports=d})(Vu,Vu.exports);var jz=Vu.exports,Nz=Rz,$z=zz,Wg=jz,e0=Wg&&Wg.isTypedArray,Lz=e0?$z(e0):Nz,t0=Lz,Fz=LM,Uz=XM,qz=sh,Bz=Kg,Iz=ez,Vz=t0,Qz=Object.prototype,Hz=Qz.hasOwnProperty;function Gz(e,r){var i=qz(e),o=!i&&Uz(e),u=!i&&!o&&Bz(e),s=!i&&!o&&!u&&Vz(e),f=i||o||u||s,d=f?Fz(e.length,String):[],m=d.length;for(var p in e)(r||Hz.call(e,p))&&!(f&&(p=="length"||u&&(p=="offset"||p=="parent")||s&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||Iz(p,m)))&&d.push(p);return d}var Yz=Gz,Xz=Object.prototype;function Zz(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||Xz;return e===i}var Pz=Zz;function Kz(e,r){return function(i){return e(r(i))}}var Jz=Kz,Wz=Jz,ej=Wz(Object.keys,Object),tj=ej,nj=Pz,rj=tj,ij=Object.prototype,aj=ij.hasOwnProperty;function oj(e){if(!nj(e))return rj(e);var r=[];for(var i in Object(e))aj.call(e,i)&&i!="constructor"&&r.push(i);return r}var lj=oj,uj=Fg,sj=Jg;function cj(e){return e!=null&&sj(e.length)&&!uj(e)}var fj=cj,hj=Yz,dj=lj,pj=fj;function mj(e){return pj(e)?hj(e):dj(e)}var vj=mj,yj=OM,gj=NM,bj=vj;function _j(e){return yj(e,bj,gj)}var xj=_j,n0=xj,Sj=1,Ej=Object.prototype,Tj=Ej.hasOwnProperty;function Oj(e,r,i,o,u,s){var f=i&Sj,d=n0(e),m=d.length,p=n0(r),y=p.length;if(m!=y&&!f)return!1;for(var g=m;g--;){var b=d[g];if(!(f?b in r:Tj.call(r,b)))return!1}var x=s.get(e),O=s.get(r);if(x&&O)return x==r&&O==e;var A=!0;s.set(e,r),s.set(r,e);for(var k=f;++g{const d=Cg(wi.hookReturn,({key:m,hookReturn:p})=>{m===i.current&&!y0(s.current,p)&&u(p)});return()=>{d()}},[]),ue.useEffect(()=>{y0(r,f.current)||(Po(wi.hookUpdate,{hookParams:r,hookName:e,key:i.current}),f.current=r)},[r]),ue.useEffect(()=>{const d=i.current;return()=>{Po(wi.hookUnmount,{key:d})}},[]),o}}Ai("rossmann-sale"),Ai("link"),Ai("tabs"),Ai("text"),Ai("product-card"),Ai("button");const cN=Ai("product-segment-carousel"),fN=sN("useAccount"),hN=({productTestSegments:e})=>S.jsx(S.Fragment,{children:e.map(r=>S.jsx(cN,{title:r.title,productSegmentSlug:r.slug,allProducts:{label:"Még több termék",link:r.url}},r.id))}),dN=({user:e,children:r})=>e?e.rossmann_plus_profile?r:S.jsxs(g0,{$flexDirection:"column",$gap:"40px",children:[S.jsx(Ie.ResponsiveText,{variant:"body",color:"#464D54",children:"Még nem vagy ROSSMANN+ tag! Ahhoz, hogy részt vehess a játékban, ROSSMANN+ tagsággal kell rendelkezned."}),S.jsx("a",{href:"https://shop.rossmann.hu/termekteszteles-jatekszbalyzat",target:"_blank",style:{color:"#D20A2D",textDecoration:"underline",fontWeight:700},children:"Játékszabályzat és adatkezelési tájékoztató."})," "]}):S.jsxs(g0,{$flexDirection:"column",$gap:"40px",children:[S.jsx(Ie.ResponsiveText,{variant:"body",color:"#464D54",children:"Kérjük, jelentkezz be fiókodba, hogy részt tudj venni a Terméktesztelésen! Ahhoz, hogy részt vehess a játékban, ROSSMANN+ tagsággal kell rendelkezned."}),S.jsx("a",{href:"https://shop.rossmann.hu/termekteszteles-jatekszbalyzat",target:"_blank",style:{color:"#D20A2D",textDecoration:"underline",fontWeight:700},children:"Játékszabályzat és adatkezelési tájékoztató."})]}),g0=W(ae.Container)` padding: 10px; @media (min-width: 768px) { padding: 50px 85px; } `,pN=({formMessage:e})=>e?S.jsx(GS,{error:e.isError,children:S.jsx(Ie.ResponsiveText,{variant:"regular14",color:e.isError?"#de4238":"#00A651",style:{textAlign:"center"},children:e.message})}):null;var vh={exports:{}},yh,b0;function mN(){if(b0)return yh;b0=1;function e(L){return L&&typeof L=="object"&&"default"in L?L.default:L}var r=e(mo()),i=pc();function o(L,H){for(var T=Object.getOwnPropertyNames(H),w=0;ww.length&&A(L,H.length-1);)H=H.slice(0,H.length-1);return H.length}for(var E=w.length,Z=H.length;Z>=w.length;Z--){var re=H[Z];if(!A(L,Z)&&k(L,Z,re)){E=Z+1;break}}return E}function j(L,H){return N(L,H)===L.mask.length}function z(L,H){var T=L.maskChar,w=L.mask,E=L.prefix;if(!T){for((H=G(L,"",H,0)).lengthH.length&&(H+=E.slice(H.length,w)),fe.every(function(ve){for(;Fe=ve,A(L,Ae=w)&&Fe!==E[Ae];){if(w>=H.length&&(H+=E[w]),pe=ve,He=w,Z&&A(L,He)&&pe===Z)return!0;if(++w>=E.length)return!1}var pe,He,Ae,Fe;return!k(L,w,ve)&&ve!==Z||(w=E.length)return!1;var ve,pe;return(k(L,w,ie)||ie===Z)&&w++,wE.start?He=(pe=B(L,w,ve=ie.slice(E.start,T.end),Ae))?E.length:0:ie.length=Z.length?Ae=Z.length:Ae=re.length&&Aee.theme.typo[e.variant].font?e.theme.typo[e.variant].font:""} font-size: ${e=>e.theme.typo[e.variant].fontSize?`${e.theme.typo[e.variant].fontSize}px`:`${e.theme.typo.body.fontSize}px`}; line-height: ${e=>e.theme.typo[e.variant].lineHeight?`${e.theme.typo[e.variant].lineHeight}px`:`${e.theme.typo.body.lineHeight}px`}; text-transform: ${e=>e.theme.typo[e.variant].textTransform||""}; letter-spacing: ${e=>e.theme.typo[e.variant].letterSpacing||""}; color: ${e=>e.theme.typo[e.variant].color?e.theme.typo[e.variant].color:""}; ${e=>e.$color&&`color: ${e.theme.color[e.$color]};`}; ${e=>e.variantMedium?st` ${at.medium} { ${e.theme.typo[e.variantMedium].font?e.theme.typo[e.variantMedium].font:""} font-size: ${e.theme.typo[e.variantMedium].fontSize?`${e.theme.typo[e.variantMedium].fontSize}px`:`${e.theme.typo.body.fontSize}px`}; line-height: ${e.theme.typo[e.variantMedium].lineHeight?`${e.theme.typo[e.variantMedium].lineHeight}px`:`${e.theme.typo.body.lineHeight}px`}; text-transform: ${e.theme.typo[e.variantMedium].textTransform||""}; letter-spacing: ${e.theme.typo[e.variantMedium].letterSpacing||""}; color: ${e.theme.typo[e.variantMedium].color?e.theme.typo[e.variantMedium].color:""}; ${e.$color&&`color: ${e.theme.color[e.$color]};`}; } `:""} `;var bt=(e=>(e.loginG="#238728",e.warning="#F4E42C",e.inputGrey="#EEEEEE",e.redD="#A9132F",e.red="#D20A2D",e.orange="#DE4238",e.orangeL="#F8A694",e.orangeXL="#FDC99B",e.orangeXXL="#FCEDEC",e.beige="#DDD8CC",e.beigeXL="#f0ede6",e.yellowD="#E3C216",e.yellowM="#EDCE5F",e.yellow="#EFD964",e.yellowL="#FEFBEF",e.lime="#C7DC8A",e.mint="#86D293",e.greenD="#00594F",e.green="#51BE64",e.greenL="#61CD74",e.greenXL="#F1F9F7",e.tealXD="#4DAEB4",e.tealD="#AEDFE6",e.teal="#9AD6D3",e.tealL="#A1D6CA",e.tealXL="#84B6A0",e.grayXD="#231F20",e.grayD="#464D54",e.grayM="#5A5F65",e.gray="#666D76",e.grayL="#D5DEE4",e.grayXL="#E7EEF3",e.grayXXL="#EFF5FA",e.grayLite="#575653",e.graniteD="#4F5468",e.inverseG="#3A3938",e.granite="#8C98A3",e.graniteL="#ADB4B9",e.white="#FFFFFF",e.black="#000000",e.facebook="#4267B2",e.google="#DB4437",e.apple="#7D7D7D",e.info="#CCFFFF",e.infoIcon="#66CCFF",e.feedbackOk="#F0FAF2",e))(bt||{});const Nt={xsmall:520,medium:768,large:1024,xlarge:1280,xxlarge:1440,xxxlarge:1920},Lr=e=>`@media(${e})`,Fr={custom:Lr,xsmall:Lr(`max-width: ${Nt.xsmall}px`),small:Lr(`max-width: ${Nt.medium-1}px`),medium:Lr(`min-width: ${Nt.medium}px`),large:Lr(`min-width: ${Nt.large}px`),xlarge:Lr(`min-width: ${Nt.xlarge}px`),xxlarge:Lr(`min-width: ${Nt.xxlarge}px`),xxxlarge:Lr(`min-width: ${Nt.xxxlarge}px`)};({...bt});const _N=st` /* Slider */ .slick-slider { position: relative; display: block; box-sizing: border-box; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; -khtml-user-select: none; -ms-touch-action: touch-action: auto !important; touch-action: touch-action: auto !important; -webkit-tap-highlight-color: transparent; } .slick-list { position: relative; display: block; overflow: hidden; margin: 0; padding: 0; } .slick-list:focus { outline: none; } .slick-list.dragging { cursor: pointer; cursor: hand; } .slick-slider .slick-track, .slick-slider .slick-list { -webkit-transform: translate3d(0, 0, 0); -moz-transform: translate3d(0, 0, 0); -ms-transform: translate3d(0, 0, 0); -o-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } .slick-track { position: relative; top: 0; left: 0; display: block; margin-left: auto; margin-right: auto; } .slick-track:before, .slick-track:after { display: table; content: ""; } .slick-track:after { clear: both; } .slick-loading .slick-track { visibility: hidden; } .slick-slide { display: none; float: left; height: 100%; min-height: 1px; } [dir="rtl"] .slick-slide { float: right; } .slick-slide img { display: block; } .slick-slide.slick-loading img { display: none; } .slick-slide.dragging img { pointer-events: none; } .slick-initialized .slick-slide { display: block; } .slick-loading .slick-slide { visibility: hidden; } .slick-vertical .slick-slide { display: block; height: auto; border: 1px solid transparent; } .slick-arrow.slick-hidden { display: none; } `,xN=st` .tooltip-container { border-radius: 4px; display: flex; flex-direction: row; align-items: center; transition: opacity 0.3s; z-index: 9999; &--dark { background-color: ${bt.grayD}; border: none; &[data-popper-placement*="top"] { .tooltip-arrow { &:before { border-color: ${bt.grayD} transparent transparent transparent; } &:after { border-color: ${bt.grayD} transparent transparent transparent; } } } &[data-popper-placement*="bottom"] { .tooltip-arrow { &:before { border-color: transparent transparent ${bt.grayD} transparent; } &:after { border-color: transparent transparent ${bt.grayD} transparent; } } } &[data-popper-placement*="right"] { .tooltip-arrow { &:before { border-color: transparent ${bt.grayD} transparent transparent; } &:after { border-color: transparent ${bt.grayD} transparent transparent; } } } &[data-popper-placement*="left"] { .tooltip-arrow { &:before { border-color: transparent transparent transparent ${bt.grayD}; } &:after { border-color: transparent transparent transparent ${bt.grayD}; } } } } &--yellow { background-color: ${bt.yellowL}; border: 1px solid ${bt.yellowM}; &[data-popper-placement*="top"] { .tooltip-arrow { &:before { border-color: ${bt.yellowM} transparent transparent transparent; } &:after { border-color: ${bt.yellowL} transparent transparent transparent; } } } &[data-popper-placement*="bottom"] { .tooltip-arrow { &:before { border-color: transparent transparent ${bt.yellowM} transparent; } &:after { border-color: transparent transparent ${bt.yellowL} transparent; } } } &[data-popper-placement*="right"] { .tooltip-arrow { &:before { border-color: transparent ${bt.yellowM} transparent transparent; } &:after { border-color: transparent ${bt.yellowL} transparent transparent; } } } &[data-popper-placement*="left"] { .tooltip-arrow { &:before { border-color: transparent transparent transparent ${bt.yellowM}; } &:after { border-color: transparent transparent transparent ${bt.yellowL}; } } } } } .tooltip-container[data-popper-interactive="false"] { pointer-events: none; } .tooltip-arrow { height: 1rem; position: absolute; width: 1rem; pointer-events: none; } .tooltip-arrow::before { border-style: solid; content: ""; display: block; height: 0; margin: auto; width: 0; } .tooltip-arrow::after { border-style: solid; content: ""; display: block; height: 0; margin: auto; position: absolute; width: 0; } .tooltip-container[data-popper-placement*="bottom"] .tooltip-arrow { left: 0; margin-top: 0; top: -6px; } .tooltip-container[data-popper-placement*="bottom"] .tooltip-arrow::before { border-width: 0 0.5rem 0.4rem 0.5rem; position: absolute; top: 0; } .tooltip-container[data-popper-placement*="bottom"] .tooltip-arrow::after { border-width: 0 0.5rem 0.4rem 0.5rem; } .tooltip-container[data-popper-placement*="top"] .tooltip-arrow { bottom: 0; left: 0; margin-bottom: -1rem; } .tooltip-container[data-popper-placement*="top"] .tooltip-arrow::before { border-width: 0.4rem 0.5rem 0 0.5rem; position: absolute; top: 0; } .tooltip-container[data-popper-placement*="top"] .tooltip-arrow::after { border-width: 0.4rem 0.5rem 0 0.5rem; } .tooltip-container[data-popper-placement*="right"] .tooltip-arrow { left: 0; margin-left: -0.7rem; } .tooltip-container[data-popper-placement*="right"] .tooltip-arrow::before { border-width: 0.5rem 0.4rem 0.5rem 0; } .tooltip-container[data-popper-placement*="right"] .tooltip-arrow::after { border-width: 0.5rem 0.4rem 0.5rem 0; left: 6px; top: 0; } .tooltip-container[data-popper-placement*="left"] .tooltip-arrow { margin-right: -0.7rem; right: 0; } .tooltip-container[data-popper-placement*="left"] .tooltip-arrow::before { border-width: 0.5rem 0 0.5rem 0.4em; } .tooltip-container[data-popper-placement*="left"] .tooltip-arrow::after { border-width: 0.5rem 0 0.5rem 0.4em; left: 3px; top: 0; } `,SN=st` .Toastify__toast-container { z-index: 9999; -webkit-transform: translate3d(0, 0, 9999px); position: fixed; width: 100%; box-sizing: border-box; ${Fr.medium} { width: auto; max-width: 400px; } } .Toastify__toast-container--top-left { top: 1em; left: 1em; } .Toastify__toast-container--top-center { top: 1em; left: 50%; transform: translateX(-50%); } .Toastify__toast-container--top-right { top: 1em; right: 1em; } .Toastify__toast-container--bottom-left { bottom: 1em; left: 1em; } .Toastify__toast-container--bottom-center { bottom: 1em; left: 50%; transform: translateX(-50%); } .Toastify__toast-container--bottom-right { bottom: 1em; right: 1em; } @media only screen and (max-width: 480px) { .Toastify__toast-container { width: 100vw; padding: 0; left: 0; margin: 0; } .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right { top: 0; transform: translateX(0); } .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right { bottom: 0; transform: translateX(0); } .Toastify__toast-container--rtl { right: 0; left: initial; } } .Toastify__toast { position: relative; box-sizing: border-box; margin-bottom: 1rem; border-radius: 8px; max-height: 800px; overflow: hidden; cursor: pointer; direction: ltr; } .Toastify__toast--rtl { direction: rtl; } .Toastify__toast--dark { background: #121212; color: #fff; } .Toastify__toast--default { background: #fff; color: #aaa; } .Toastify__toast--info { background: #3498db; } .Toastify__toast--success { background: ${e=>e.theme.color.greenXL}; border: 1px solid ${e=>e.theme.color.green}; } .Toastify__toast--warning { background: ${e=>e.theme.color.yellowL}; border: 1px solid ${e=>e.theme.color.yellowD}; } .Toastify__toast--error { background: ${e=>e.theme.color.orangeXXL}; border: 1px solid ${e=>e.theme.color.orange}; } .Toastify__toast-body { display: flex; align-items: flex-start; padding: 20px 10px 20px 20px; } .Toastify--animate { animation-fill-mode: both; animation-duration: 0.7s; } @media only screen and (max-width: 480px) { .Toastify__toast { margin-left: 15px; margin-right: 15px; } } .Toastify__close-button { color: #fff; background: transparent; outline: none; border: none; padding: 0; cursor: pointer; opacity: 0.7; transition: 0.3s ease; -ms-flex-item-align: start; align-self: flex-start; } .Toastify__close-button--default { color: #000; opacity: 0.3; } .Toastify__close-button > svg { fill: currentColor; height: 16px; width: 14px; } .Toastify__close-button:hover, .Toastify__close-button:focus { opacity: 1; } @keyframes Toastify__bounceInRight { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; transform: translate3d(3000px, 0, 0); } 60% { opacity: 1; transform: translate3d(-25px, 0, 0); } 75% { transform: translate3d(10px, 0, 0); } 90% { transform: translate3d(-5px, 0, 0); } to { transform: none; } } @keyframes Toastify__bounceOutRight { 20% { opacity: 1; transform: translate3d(-20px, 0, 0); } to { opacity: 0; transform: translate3d(2000px, 0, 0); } } @keyframes Toastify__bounceInLeft { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; transform: translate3d(-3000px, 0, 0); } 60% { opacity: 1; transform: translate3d(25px, 0, 0); } 75% { transform: translate3d(-10px, 0, 0); } 90% { transform: translate3d(5px, 0, 0); } to { transform: none; } } @keyframes Toastify__bounceOutLeft { 20% { opacity: 1; transform: translate3d(20px, 0, 0); } to { opacity: 0; transform: translate3d(-2000px, 0, 0); } } @keyframes Toastify__bounceInUp { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } from { opacity: 0; transform: translate3d(0, 3000px, 0); } 60% { opacity: 1; transform: translate3d(0, -20px, 0); } 75% { transform: translate3d(0, 10px, 0); } 90% { transform: translate3d(0, -5px, 0); } to { transform: translate3d(0, 0, 0); } } @keyframes Toastify__bounceOutUp { 20% { transform: translate3d(0, -10px, 0); } 40%, 45% { opacity: 1; transform: translate3d(0, 20px, 0); } to { opacity: 0; transform: translate3d(0, -2000px, 0); } } @keyframes Toastify__bounceInDown { from, 60%, 75%, 90%, to { animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 0% { opacity: 0; transform: translate3d(0, -3000px, 0); } 60% { opacity: 1; transform: translate3d(0, 25px, 0); } 75% { transform: translate3d(0, -10px, 0); } 90% { transform: translate3d(0, 5px, 0); } to { transform: none; } } @keyframes Toastify__bounceOutDown { 20% { transform: translate3d(0, 10px, 0); } 40%, 45% { opacity: 1; transform: translate3d(0, -20px, 0); } to { opacity: 0; transform: translate3d(0, 2000px, 0); } } .Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left { animation-name: Toastify__bounceInLeft; } .Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right { animation-name: Toastify__bounceInRight; } .Toastify__bounce-enter--top-center { animation-name: Toastify__bounceInDown; } .Toastify__bounce-enter--bottom-center { animation-name: Toastify__bounceInUp; } .Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left { animation-name: Toastify__bounceOutLeft; } .Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right { animation-name: Toastify__bounceOutRight; } .Toastify__bounce-exit--top-center { animation-name: Toastify__bounceOutUp; } .Toastify__bounce-exit--bottom-center { animation-name: Toastify__bounceOutDown; } @keyframes Toastify__zoomIn { from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } } @keyframes Toastify__zoomOut { from { opacity: 1; } 50% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } to { opacity: 0; } } .Toastify__zoom-enter { animation-name: Toastify__zoomIn; } .Toastify__zoom-exit { animation-name: Toastify__zoomOut; } @keyframes Toastify__flipIn { from { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); animation-timing-function: ease-in; opacity: 0; } 40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); animation-timing-function: ease-in; } 60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; } 80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); } to { transform: perspective(400px); } } @keyframes Toastify__flipOut { from { transform: perspective(400px); } 30% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); opacity: 1; } to { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; } } .Toastify__flip-enter { animation-name: Toastify__flipIn; } .Toastify__flip-exit { animation-name: Toastify__flipOut; } @keyframes Toastify__slideInRight { from { transform: translate3d(110%, 0, 0); visibility: visible; } to { transform: translate3d(0, 0, 0); } } @keyframes Toastify__slideInLeft { from { transform: translate3d(-110%, 0, 0); visibility: visible; } to { transform: translate3d(0, 0, 0); } } @keyframes Toastify__slideInUp { from { transform: translate3d(0, 110%, 0); visibility: visible; } to { transform: translate3d(0, 0, 0); } } @keyframes Toastify__slideInDown { from { transform: translate3d(0, -110%, 0); visibility: visible; } to { transform: translate3d(0, 0, 0); } } @keyframes Toastify__slideOutRight { from { transform: translate3d(0, 0, 0); } to { visibility: hidden; transform: translate3d(110%, 0, 0); } } @keyframes Toastify__slideOutLeft { from { transform: translate3d(0, 0, 0); } to { visibility: hidden; transform: translate3d(-110%, 0, 0); } } @keyframes Toastify__slideOutDown { from { transform: translate3d(0, 0, 0); } to { visibility: hidden; transform: translate3d(0, 500px, 0); } } @keyframes Toastify__slideOutUp { from { transform: translate3d(0, 0, 0); } to { visibility: hidden; transform: translate3d(0, -500px, 0); } } .Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left { animation-name: Toastify__slideInLeft; } .Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right { animation-name: Toastify__slideInRight; } .Toastify__slide-enter--top-center { animation-name: Toastify__slideInDown; } .Toastify__slide-enter--bottom-center { animation-name: Toastify__slideInUp; } .Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left { animation-name: Toastify__slideOutLeft; } .Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right { animation-name: Toastify__slideOutRight; } .Toastify__slide-exit--top-center { animation-name: Toastify__slideOutUp; } .Toastify__slide-exit--bottom-center { animation-name: Toastify__slideOutDown; } @keyframes Toastify__trackProgress { 0% { transform: scaleX(1); } 100% { transform: scaleX(0); } } .Toastify__progress-bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 5px; z-index: var(--toastify-z-index); opacity: 0.7; transform-origin: left; } .Toastify__progress-bar--animated { animation: Toastify__trackProgress linear 1 forwards; } /*# sourceMappingURL=ReactToastify.css.map */ `,gh=st` border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; `;st` display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: ${e=>e.$lineCount}; overflow: hidden; text-overflow: ellipsis; white-space: normal; `;const EN=gi` 0% { opacity: 0; } 100% { opacity: 1; } `;st` animation: ${EN} 200ms forwards; display: block; pointer-events: all; `,gi` 0% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.3) rotate(20deg); } 100% { transform: scale(1) rotate(0deg); } `,zS` @font-face { font-family: "IcoMoon-Free"; src: url("IcoMoon-Free.woff2") format("woff2"), url("IcoMoon-Free.woff") format("woff"), url("IcoMoon-Free.ttf") format("truetype"); font-weight: normal; font-style: normal; font-display: swap; } html { box-sizing: border-box; height: 100%; } *, *::before, *::after { box-sizing: inherit; } :focus { outline: none; } body { width:100%; height: 100%; margin: 0; background-color: ${e=>e.theme.color.white}; color: ${e=>e.theme.color.gray}; font-family: "nunito_sans", Arial, Verdana, Helvetica, sans-serif; ${e=>e.theme.fontWeight.regular}; font-size: 16px; line-height: 22px; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; ::-webkit-scrollbar { background-color: ${e=>e.theme.color.white}; width: ${e=>e.theme.layout.bodyScrollBar.width}px; } ::-webkit-scrollbar-track { border-left: 1px solid ${e=>e.theme.color.grayL}; } ::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 8px; background-color: ${e=>e.theme.color.graniteL}; background-clip: content-box; } * { font-family: inherit; } } #__next { min-height: 100vh; height: auto; display: flex; flex-direction: column; } h1, h2, h3, h4, h5, h6 { margin: 0; } p { margin-top: 0; margin-bottom: 0; } a { color: inherit; text-decoration: none; cursor: pointer; transition: all ${e=>e.theme.transition.hover}; &.link-red { color: ${e=>e.theme.color.red}; :hover { color: ${e=>e.theme.color.redD}; text-decoration: underline; } } } input[type="text"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; } button { background-color: transparent; border: none; color: inherit; cursor: pointer; display: block; font-family: inherit; font-size: 100%; margin: 0; padding: 0; transition: color ${e=>e.theme.transition.hover}; -webkit-tap-highlight-color: rgba(0,0,0,0); &.button-red { color: ${e=>e.theme.color.red}; &:disabled { color: ${e=>e.theme.color.granite}; cursor: not-allowed; } :hover:enabled { color: ${e=>e.theme.color.redD}; } } &.button-red-underline { color: ${e=>e.theme.color.red}; &:disabled { color: ${e=>e.theme.color.granite}; cursor: not-allowed; } :hover:enabled { color: ${e=>e.theme.color.redD}; text-decoration: underline; } } } blockquote { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; quotes: "" ""; &::before, &::after { content: "" } } img { vertical-align: bottom; } article, aside, header, footer, main, nav { display: block; } address { font-style: normal; } figure { margin: 0; } svg { display: block; } fieldset { border: 0; margin: 0; padding: 0; } ul, ol{ list-style-type: none; margin: 0; padding: 0; } li { list-style-type: none; } iframe { border: none; } video { width: 100% !important; height: auto !important; } /* Utility Classes */ .show-for-sr { ${gh} } .fw-extrabold { ${e=>e.theme.fontWeight.extrabold}; } .fw-bold { ${e=>e.theme.fontWeight.bold}; } .fw-semibold { ${e=>e.theme.fontWeight.semibold}; } .clr-grayD { color: ${e=>e.theme.color.grayD}; } .clr-red { color: ${e=>e.theme.color.red}; } .clr-green { color: ${e=>e.theme.color.green}; } /* Visibility Classes */ .show-for-small-only { ${Fr.custom(`min-width: ${Nt.medium}px`)} { display: none !important; } } .show-for-medium { ${Fr.custom(`max-width: ${Nt.medium-1}px`)} { display: none !important; } } .show-for-medium-only { ${`@media (max-width: ${Nt.medium-1}px), (min-width: ${Nt.large}px)`} { display: none !important; } } .hide-for-medium { ${Fr.custom(`min-width: ${Nt.medium}px`)} { display: none !important; } } .show-for-large { ${Fr.custom(`max-width: ${Nt.large-1}px`)} { display: none !important; } } .hide-for-large { ${Fr.custom(`min-width: ${Nt.large}px`)} { display: none !important; } } .show-for-xlarge { ${Fr.custom(`max-width: ${Nt.xlarge-1}px`)} { display: none !important; } } .hide-for-xlarge { ${Fr.custom(`min-width: ${Nt.xlarge}px`)} { display: none !important; } } .hide-for-large-only { ${`@media (min-width: ${Nt.large}px) and (max-width: ${Nt.xlarge-1}px)`} { display: none !important; } } /* vendor */ ${_N} ${xN} ${SN} .ReactCollapse--collapse { transition: height 500ms; } .grecaptcha-badge { visibility: hidden; } .mapboxgl-popup-close-button { margin-right: 5px !important; font-size: 20px !important; } `;const bh=tt.forwardRef(({label:e,hint:r,errorMessage:i,warningMessage:o,innerRef:u,onEnterPressed:s,onKeyDown:f,mask:d,...m},p)=>{const[y,g]=ue.useState(!0),b=O=>{O.key==="Enter"&&s?(s(),O.preventDefault(),O.stopPropagation()):f&&f(O)},x=O=>{O.target.value?g(!1):g(!0)};return S.jsxs(x0,{children:[(e||r)&&S.jsxs(_h,{$justifyContent:"space-between",errorMessage:i,children:[S.jsx(Aa,{className:"fw-bold",children:e}),r&&S.jsx(Aa,{$rightAlign:!0,children:r})]}),d?S.jsx(CN,{mask:d,autoComplete:"on",inputRef:u,$empty:y,$isError:!!i,onBlur:x,onKeyDown:b,...m}):S.jsx(wN,{autoComplete:"on",ref:p,$empty:y,$isError:!!i,onBlur:x,onKeyDown:b,...m}),i&&S.jsx(Jo,{children:i}),o&&S.jsx(Jo,{children:o})]},e)});tt.forwardRef(({label:e,hint:r,errorMessage:i,passwordStrength:o,innerRef:u,onEnterPressed:s,...f},d)=>{const[m,p]=ue.useState(!0),[y,g]=ue.useState(!1),{color:b}=ue.useContext(ta);ue.useEffect(()=>{window.innerWidth{k.key==="Enter"&&s&&(s(),k.preventDefault(),k.stopPropagation())},O=k=>{k.target.value?p(!1):p(!0)},A=()=>{const k=["Gyenge","Gyenge","Közepes","Közepes","Erős"],D=o!==void 0&&o>0?k[o-1]:"Jelszó erőssége",N=()=>o?o>4?"green":o>2?"yellowD":o>0?"red":"grayXXL":"grayXXL";return o!==void 0?S.jsxs(ae.Container,{$justifyContent:"space-between",$alignItems:"center",children:[S.jsx(RN,{"aria-hidden":"true",children:[...Array(5)].map((j,z)=>S.jsx(MN,{isActive:o>=z+1,bgColor:N()},z))}),S.jsx(bN,{variant:"regular12",as:"span",children:D})]}):null};return S.jsxs(TN,{children:[S.jsxs(_h,{$justifyContent:"space-between",errorMessage:i,children:[S.jsx(Aa,{className:"fw-bold",children:e}),r&&S.jsx(Aa,{$rightAlign:!0,css:` color: ${b.gray}; `,children:r})]}),S.jsx(AN,{type:y?"text":"password",ref:d,$empty:m,$isError:!!i,onBlur:O,onKeyDown:x,...f,autoComplete:"off"}),S.jsxs(ON,{tabIndex:-1,onClick:()=>g(!y),children:[S.jsx("span",{className:"show-for-sr",children:"Show/Hide password"}),y?S.jsx(SVGEye2,{}):S.jsx(SVGEye1,{})]}),A(),i&&S.jsx(Jo,{children:i})]},e)});const TN=W.label` display: block; padding-bottom: 8px; position: relative; `,ON=W.button.attrs(()=>({type:"button"}))` align-items: center; display: flex; justify-content: center; height: 40px; width: 40px; position: absolute; right: 0; top: 19px; `,DN=tt.forwardRef(({label:e,hideLabel:r,hint:i,errorMessage:o,innerRef:u,...s},f)=>{const[d,m]=ue.useState(!0),p=y=>{y.target.value?m(!1):m(!0)};return S.jsxs(x0,{children:[S.jsxs(_h,{$justifyContent:"space-between",errorMessage:o,children:[r?S.jsx("span",{className:"show-for-sr",children:e}):S.jsx(Aa,{className:"fw-bold",children:e}),i&&S.jsx(Aa,{$rightAlign:!0,children:i})]}),S.jsx(kN,{ref:f,$empty:d,$isError:!!o,onBlur:p,...s}),o&&S.jsx(Jo,{children:o})]})}),x0=W.label` display: block; padding-bottom: 8px; `,_h=W(ae.Container)` margin-bottom: ${e=>e.noMargin?0:4}px; color: ${e=>e.errorMessage?e.theme.color.orange:e.theme.color.gray}; `,Aa=W.span` font-size: 12px; line-height: 15px; font-variant: tabular-nums; ${e=>e.$hideLabel&&st` ${gh}; `} ${e=>e.$rightAlign&&st` text-align: right; `} `,Jo=W.p` color: ${e=>e.theme.color.orange}; font-size: 12px; line-height: 18px; margin-bottom: 8px; `,S0=st` background-clip: padding-box; background-color: ${e=>e.$inverse?e.$empty?e.theme.input.focus.background:e.theme.input.background:e.$empty?e.theme.input.background:e.theme.input.focus.background}; border-radius: ${e=>e.theme.radius.small}; border: 1px solid; border-color: ${e=>e.$isError?e.theme.input.error.borderColor:e.theme.input.borderColor}; color: ${e=>e.$isError?e.theme.input.error.color:e.theme.input.color}; caret-color: ${e=>e.theme.color.gray}; ${e=>e.theme.fontWeight.regular}; font-size: 16px; line-height: 24px; height: 40px; padding: 8px 20px; margin-bottom: 8px; display: block; width: 100%; flex: 1; transition: all ${e=>e.theme.transition.hover}; &::placeholder { color: ${e=>e.$isError?e.theme.input.error.color:e.theme.input.placeholder.color}; } &:focus { outline: none; border-color: ${e=>e.$isError?e.theme.input.error.color:e.theme.input.focus.borderColor}; background-color: ${e=>e.theme.input.focus.background}; box-shadow: ${e=>e.theme.shadow.gray}; } &:disabled { color: ${e=>e.theme.input.disabled.color}; background-color: ${e=>e.theme.input.disabled.background}; border-color: ${e=>e.theme.input.disabled.borderColor}; cursor: not-allowed; } &:read-only { cursor: default; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; &:focus { box-shadow: none; } } &:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active { -webkit-text-fill-color: ${e=>e.theme.color.gray} !important; transition: background-color 5500s ease-in-out 0s; } &[type="file"] { padding-right: 56px; } &::-ms-reveal { display: none; } `,xh=st` ${S0}; overflow: ${e=>e.noWrap&&"hidden"}; text-overflow: ${e=>e.noWrap&&"ellipsis"}; white-space: ${e=>e.noWrap&&"nowrap"}; `,wN=W.input` ${xh} `,AN=W.input` ${xh} padding-right: 50px; `,CN=W(gN)` ${xh} `,kN=W.textarea` ${S0} min-width: 100%; width: 100%; max-width: 100%; min-height: 90px; height: auto; `,RN=W.div` flex: 1; display: flex; `,MN=W.span` width: 20px; height: 2px; margin-right: 5px; border-radius: 1px; background-color: ${e=>e.isActive?e.theme.color[e.bgColor]:e.theme.color.grayXXL}; `;function zN({title:e,titleId:r,...i}){return S.jsxs("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-labelledby":r,...i,children:[e?S.jsx("title",{id:r,children:e}):null,S.jsx("path",{d:"M2 15.065l5.517 5.797L22 4.195",stroke:"currentColor",strokeLinejoin:"round"})]})}const jN=tt.forwardRef(({label:e,disabled:r,size:i,checked:o,onChange:u,errorMessage:s,innerRef:f,className:d,testId:m,...p},y)=>S.jsxs(NN,{className:d,children:[S.jsx($N,{type:"checkbox",ref:y,disabled:!!r,checked:o,onChange:u,...p}),S.jsx(Wo,{"aria-hidden":!0,$checked:o,$isError:!!s,$disabled:!!r,$size:i,children:S.jsx(ki,{$size:i,children:S.jsx(zN,{width:16,height:16,strokeWidth:2})})}),S.jsxs(FN,{children:[typeof e=="string"?S.jsx(LN,{$size:i,children:e}):e,s&&S.jsx(Jo,{css:` margin-top: 8px; `,children:s})]})]})),NN=W.label` display: flex; `,ki=W.span` width: ${e=>e.$size==="large"?24:18}px; height: ${e=>e.$size==="large"?24:18}px; display: flex; justify-content: center; align-items: center; border-radius: 1px; color: ${e=>e.theme.color.white}; background-color: ${e=>e.theme.color.white}; transform: scale(0); transition: background-color 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); `,Wo=W.div` border-radius: ${e=>e.theme.radius.mini}; background-color: ${e=>e.theme.color.grayXXL}; border: 1px solid; border-color: ${e=>e.$isError?e.theme.input.error.borderColor:e.theme.color.grayL}; flex-shrink: 0; width: ${e=>e.$size==="large"?32:24}px; height: ${e=>e.$size==="large"?32:24}px; display: flex; justify-content: center; align-items: center; position: relative; transition: background-color 0.2s ease-out; cursor: ${e=>e.$disabled?"not-allowed":"pointer"}; > svg { pointer-events: none; } ${e=>e.$checked&&!e.$disabled?st` background-color: ${r=>r.theme.color.white}; ${ki} { background-color: ${r=>r.theme.color.green}; transform: scale(1); } `:""} ${e=>e.$disabled&&!e.$checked?st` background-color: ${r=>r.theme.color.grayXL}; border-color: ${r=>r.theme.color.grayXL}; ${ki} { background-color: ${r=>r.theme.color.grayXL}; } `:""} ${e=>e.$disabled&&e.$checked?st` background-color: ${r=>r.theme.color.white}; border-color: ${r=>r.theme.color.grayL}; ${ki} { background-color: ${r=>r.theme.color.grayL}; } `:""} `,$N=W.input.attrs(()=>({type:"checkbox"}))` ${gh}; &:focus { ~ ${Wo} { box-shadow: ${e=>e.theme.shadow.gray}; } } &:checked { ~ ${Wo} { background-color: ${e=>e.theme.color.white}; ${ki} { background-color: ${e=>e.theme.color.green}; transform: scale(1); } } } &:disabled { ~ ${Wo} { background-color: ${e=>e.theme.color.grayXL}; border-color: ${e=>e.theme.color.grayXL}; ${ki} { background-color: ${e=>e.theme.color.grayXL}; } } } &:disabled:checked { ~ ${Wo} { background-color: ${e=>e.theme.color.white}; border-color: ${e=>e.theme.color.grayL}; ${ki} { background-color: ${e=>e.theme.color.grayL}; } } } `,LN=W.span` display: block; color: ${e=>e.theme.color.grayD}; font-size: 14px; line-height: 17px; padding-top: ${e=>e.$size==="large"?7:3}px; `,FN=W.div` margin-left: 15px; `,UN=({reason:e,setReason:r,lastNameState:i,firstNameState:o,emailValue:u,setLastNameState:s,setFirstNameState:f,setEmailValue:d,isRuleAccepted:m,handleCheckboxChange:p,errors:y})=>S.jsx(HS,{$flexDirection:"column",$justifyContent:"center",$alignItems:"center",children:S.jsxs(ae.Container,{$flexDirection:"column",$gap:"15px",style:{maxWidth:562,width:"100%"},children:[S.jsx(ae.Item,{children:S.jsxs(Ie.ResponsiveText,{variant:"body",color:"#464D54",children:["Ahhoz, hogy részt vehess a játékban"," ",S.jsx("a",{style:{color:"#D20A2D"},href:"https://plus.rossmann.hu",target:"_blank",children:S.jsx("u",{children:"ROSSMANN+ tagsággal"})})," ","kell rendelkezned."]})}),S.jsx(ae.Item,{children:S.jsx(Ie.ResponsiveText,{variant:"extraboldH4",children:"Jelentkező adatai"})}),S.jsx(ae.Item,{children:S.jsx(DN,{name:"reason",value:e,onChange:g=>r(g.target.value),errorMessage:y.reason,label:"Miért szeretnéd kipróbálni a terméket?*",placeholder:"Kérjük, hogy a válaszodban ne adj meg egészségügyi adatot, illetve egyéb különleges adatnak minősülő adatot!"})}),S.jsx(ae.Item,{children:S.jsx(bh,{name:"lastname",placeholder:"Vezetéknév",label:"Vezetéknév*",value:i,onChange:g=>s(g.target.value),errorMessage:y.lastName})}),S.jsx(ae.Item,{children:S.jsx(bh,{name:"firstname",placeholder:"Keresztnév",label:"Keresztnév*",value:o,onChange:g=>f(g.target.value),errorMessage:y.firstName})}),S.jsx(ae.Item,{children:S.jsx(bh,{name:"email",placeholder:"pelda@pelda.com",label:"Email*",value:u,onChange:g=>d(g.target.value),errorMessage:y.email,readOnly:!0})}),S.jsx(ae.Item,{children:S.jsxs(ae.Container,{$flexDirection:"column",$gap:"20px",children:[S.jsx(jN,{label:S.jsxs(S.Fragment,{children:["18. életévemet betöltöttem, valamint megismertem és elfogadom a"," ",S.jsx("a",{href:"#",style:{color:"#D20A2D"},children:"Játékszabályzatot és Adatkezelési tájékoztatót."}),"*"]}),style:{padding:0},checked:m,onChange:p,errorMessage:y.rules}),S.jsx(Ie.ResponsiveText,{variant:"regular14",color:"#464D54",style:{paddingLeft:38},children:"A csillaggal megjelölt mezők kötelezően kitöltendőek"})]})})]})}),qN=({isSubmitting:e})=>S.jsx(ae.Container,{$justifyContent:"flex-start",children:S.jsx(Jn.Primary,{type:"submit",disabled:e,btnLabel:e?"Jelentkezés küldése...":"Jelentkezem a terméktesztelésre",style:{marginTop:20,minHeight:44,height:61}})}),BN=({productTestId:e})=>{const r=fN(),i=r==null?void 0:r.user,[o,u]=ue.useState(!1),[s,f]=ue.useState(""),[d,m]=ue.useState(!1),[p,y]=ue.useState(""),[g,b]=ue.useState(""),[x,O]=ue.useState(""),[A]=dA(),k=Do(),[D,N]=ue.useState({reason:"",lastName:"",firstName:"",email:"",rules:""}),[j,z]=ue.useState(null);ue.useEffect(()=>{i&&(y(i.lastname||""),b(i.firstname||""),O(i.email||""))},[i]),e||k.resetState();const I=()=>{u(!o)},G=async B=>{var J,oe,_e;if(B.preventDefault(),N({reason:"",lastName:"",firstName:"",email:"",rules:""}),z(null),!o){N(ce=>({...ce,rules:"Kérjük, fogadd el a Játékszabályzatot!"}));return}if(!s.trim()){N(ce=>({...ce,reason:"Kötelező mező!"}));return}if(!p.trim()){N(ce=>({...ce,lastName:"Kötelező mező!"}));return}if(!g.trim()){N(ce=>({...ce,firstName:"Kötelező mező!"}));return}if(!x.trim()){N(ce=>({...ce,email:"Kötelező mező!"}));return}m(!0);try{await A({variables:{input:{first_name:g.trim(),last_name:p.trim(),email:x,reason:s},productTestId:e}}),z({message:"Sikeres jelentkezés! Sok szerencsét kívánunk!",isError:!1})}catch(ce){const Te=(_e=(oe=(J=ce==null?void 0:ce.graphQLErrors)==null?void 0:J[0])==null?void 0:oe.extensions)==null?void 0:_e.debugMessage;z({message:Te||"Hiba történt a jelentkezés során. Kérjük, próbáld újra!",isError:!0})}finally{m(!1)}};return S.jsxs(VS,{id:"product-test-form",$justifyContent:"center",$flexDirection:"column",$alignItems:"center",onSubmit:G,as:"form",children:[S.jsx(QS,{children:S.jsx(Ie.ResponsiveText,{variant:"extraboldH3",color:"#464D54",children:"Jelentkezés terméktesztelésre"})}),S.jsx(pN,{formMessage:j}),S.jsxs(dN,{user:i,children:[S.jsx(UN,{reason:s,setReason:f,lastNameState:p,firstNameState:g,emailValue:x,setLastNameState:y,setFirstNameState:b,setEmailValue:O,isRuleAccepted:o,handleCheckboxChange:I,errors:D}),S.jsx(qN,{isSubmitting:d})]})]})},IN=()=>{const e=Do(),{data:r,loading:i}=yA({variables:{id:e.id??""}});if(i)return S.jsx(wg,{});const o=(r==null?void 0:r.getProductTestById)??null;return S.jsx(To,{style:{backgroundColor:"#FFF"},children:S.jsxs(Lc,{children:[S.jsx(ae.Container,{children:S.jsx(Ie.ResponsiveText,{onClick:e.resetState,variant:"ebold12",color:"#D6203D",style:{marginBottom:8,cursor:"pointer",margin:"25px 0"},children:"Vissza a terméktesztelés oldalra"})}),S.jsx(CA,{productTest:o}),S.jsx(MA,{productTestDescription:o.long_description}),S.jsx(hN,{productTestSegments:o.segments}),S.jsx(BN,{productTestId:e.id})]})})};function VN(){return S.jsx(oT,{children:S.jsx(kS,{theme:Xt,children:S.jsx(QN,{})})})}function QN(){return Do().showProductsPage?S.jsx(IN,{}):S.jsx(DA,{})}const HN=new ig,Hu=class Hu{static createClient(){return new sg({link:Hu.httpLink,cache:HN})}};Sx(Hu,"httpLink",new vy({uri:"https://product-testing.ms.beta.rossmann.hu/graphql"}));let Sh=Hu;return e=>{e.id="microsite__product-testing",Rx.createRoot(e).render(S.jsx(ue.StrictMode,{children:S.jsx(Hw,{client:Sh.createClient(),children:S.jsx(VN,{})})}))}})); //# sourceMappingURL=product-testing.umd.cjs.map