"use strict";(self.webpackChunkfindagrave_frontend=self.webpackChunkfindagrave_frontend||[]).push([[9826],{90711(e,t,n){n.d(t,{n4:()=>E,UD:()=>w});var r=n(86354),i=n(30222),s=n(58979),o=n(5581);var a=n(67604),c=n(50793),u=n(19760),l=n(10134),h=n(36906);function d(e,t,n){void 0===n&&(n=!1);var d,f,p=(0,o.sb)(t),m=(0,o.sb)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,h.LI)(t.width)/e.offsetWidth||1,r=(0,h.LI)(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),y=(0,u.A)(t),v=(0,r.A)(e,m,n),b={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(p||!p&&!n)&&(("body"!==(0,a.A)(t)||(0,l.A)(y))&&(b=(d=t)!==(0,s.A)(d)&&(0,o.sb)(d)?{scrollLeft:(f=d).scrollLeft,scrollTop:f.scrollTop}:(0,i.A)(d)),(0,o.sb)(t)?((g=(0,r.A)(t,!0)).x+=t.clientLeft,g.y+=t.clientTop):y&&(g.x=(0,c.A)(y))),{x:v.left+b.scrollLeft-g.x,y:v.top+b.scrollTop-g.y,width:v.width,height:v.height}}var f=n(6979),p=n(75867),m=n(88579),y=n(14278);function v(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}var b={placement:"bottom",modifiers:[],strategy:"absolute"};function g(){for(var e=arguments.length,t=new Array(e),n=0;ni});var r=n(5581);function i(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},86354(e,t,n){n.d(t,{A:()=>a});var r=n(5581),i=n(36906),s=n(58979),o=n(22283);function a(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),c=1,u=1;t&&(0,r.sb)(e)&&(c=e.offsetWidth>0&&(0,i.LI)(a.width)/e.offsetWidth||1,u=e.offsetHeight>0&&(0,i.LI)(a.height)/e.offsetHeight||1);var l=((0,r.vq)(e)?(0,s.A)(e):window).visualViewport,h=!(0,o.A)()&&n,d=(a.left+(h&&l?l.offsetLeft:0))/c,f=(a.top+(h&&l?l.offsetTop:0))/u,p=a.width/c,m=a.height/u;return{width:p,height:m,top:f,right:d+p,bottom:f+m,left:d,x:d,y:f}}},40271(e,t,n){n.d(t,{A:()=>i});var r=n(58979);function i(e){return(0,r.A)(e).getComputedStyle(e)}},19760(e,t,n){n.d(t,{A:()=>i});var r=n(5581);function i(e){return(((0,r.vq)(e)?e.ownerDocument:e.document)||window.document).documentElement}},6979(e,t,n){n.d(t,{A:()=>i});var r=n(86354);function i(e){var t=(0,r.A)(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}},67604(e,t,n){function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{A:()=>r})},88579(e,t,n){n.d(t,{A:()=>h});var r=n(58979),i=n(67604),s=n(40271),o=n(5581);function a(e){return["table","td","th"].indexOf((0,i.A)(e))>=0}var c=n(52083),u=n(72398);function l(e){return(0,o.sb)(e)&&"fixed"!==(0,s.A)(e).position?e.offsetParent:null}function h(e){for(var t=(0,r.A)(e),n=l(e);n&&a(n)&&"static"===(0,s.A)(n).position;)n=l(n);return n&&("html"===(0,i.A)(n)||"body"===(0,i.A)(n)&&"static"===(0,s.A)(n).position)?t:n||function(e){var t=/firefox/i.test((0,u.A)());if(/Trident/i.test((0,u.A)())&&(0,o.sb)(e)&&"fixed"===(0,s.A)(e).position)return null;var n=(0,c.A)(e);for((0,o.Ng)(n)&&(n=n.host);(0,o.sb)(n)&&["html","body"].indexOf((0,i.A)(n))<0;){var r=(0,s.A)(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}},52083(e,t,n){n.d(t,{A:()=>o});var r=n(67604),i=n(19760),s=n(5581);function o(e){return"html"===(0,r.A)(e)?e:e.assignedSlot||e.parentNode||((0,s.Ng)(e)?e.host:null)||(0,i.A)(e)}},58979(e,t,n){function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{A:()=>r})},30222(e,t,n){n.d(t,{A:()=>i});var r=n(58979);function i(e){var t=(0,r.A)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},50793(e,t,n){n.d(t,{A:()=>o});var r=n(86354),i=n(19760),s=n(30222);function o(e){return(0,r.A)((0,i.A)(e)).left+(0,s.A)(e).scrollLeft}},5581(e,t,n){n.d(t,{Ng:()=>o,sb:()=>s,vq:()=>i});var r=n(58979);function i(e){return e instanceof(0,r.A)(e).Element||e instanceof Element}function s(e){return e instanceof(0,r.A)(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.A)(e).ShadowRoot||e instanceof ShadowRoot)}},22283(e,t,n){n.d(t,{A:()=>i});var r=n(72398);function i(){return!/^((?!chrome|android).)*safari/i.test((0,r.A)())}},10134(e,t,n){n.d(t,{A:()=>i});var r=n(40271);function i(e){var t=(0,r.A)(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}},75867(e,t,n){n.d(t,{A:()=>u});var r=n(52083),i=n(10134),s=n(67604),o=n(5581);function a(e){return["html","body","#document"].indexOf((0,s.A)(e))>=0?e.ownerDocument.body:(0,o.sb)(e)&&(0,i.A)(e)?e:a((0,r.A)(e))}var c=n(58979);function u(e,t){var n;void 0===t&&(t=[]);var s=a(e),o=s===(null==(n=e.ownerDocument)?void 0:n.body),l=(0,c.A)(s),h=o?[l].concat(l.visualViewport||[],(0,i.A)(s)?s:[]):s,d=t.concat(h);return o?d:d.concat(u((0,r.A)(h)))}},14278(e,t,n){n.d(t,{DD:()=>y,EP:()=>x,GM:()=>S,LF:()=>b,LG:()=>w,M9:()=>k,Mn:()=>r,OM:()=>c,Ol:()=>m,R9:()=>d,SE:()=>T,WY:()=>h,_N:()=>l,ci:()=>v,iW:()=>E,ir:()=>p,kb:()=>o,ni:()=>u,pA:()=>O,pG:()=>s,qZ:()=>a,sQ:()=>i,v5:()=>g,xf:()=>f});var r="top",i="bottom",s="right",o="left",a="auto",c=[r,i,s,o],u="start",l="end",h="clippingParents",d="viewport",f="popper",p="reference",m=c.reduce(function(e,t){return e.concat([t+"-"+u,t+"-"+l])},[]),y=[].concat(c,[a]).reduce(function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])},[]),v="beforeRead",b="read",g="afterRead",w="beforeMain",E="main",x="afterMain",O="beforeWrite",k="write",T="afterWrite",S=[v,b,g,w,E,x,O,k,T]},33011(e,t,n){n.r(t),n.d(t,{EP:()=>r.EP,v5:()=>r.v5,SE:()=>r.SE,ZM:()=>i.A,UE:()=>s.A,qZ:()=>r.qZ,OM:()=>r.OM,LG:()=>r.LG,ci:()=>r.ci,pA:()=>r.pA,sQ:()=>r.sQ,WY:()=>r.WY,KC:()=>o.A,n4:()=>m.n,eR:()=>f.n4,Ls:()=>v,__:()=>p.A,_N:()=>r._N,Gc:()=>a.A,UU:()=>c.A,jD:()=>u.A,kb:()=>r.kb,iW:()=>r.iW,GM:()=>r.GM,cY:()=>l.A,DD:()=>r.DD,xf:()=>r.xf,UD:()=>f.UD,Zo:()=>h.A,V7:()=>d.A,LF:()=>r.LF,ir:()=>r.ir,pG:()=>r.pG,ni:()=>r.ni,Mn:()=>r.Mn,Ol:()=>r.Ol,R9:()=>r.R9,M9:()=>r.M9});var r=n(14278),i=n(16607),s=n(78256),o=n(1262),a=n(59068),c=n(80644),u=n(89081),l=n(18490),h=n(85059),d=n(10192),f=n(90711),p=n(46397),m=n(71576),y=[a.A,h.A,o.A,i.A],v=(0,f.UD)({defaultModifiers:y})},16607(e,t,n){var r=n(67604),i=n(5581);const s={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},s=t.attributes[e]||{},o=t.elements[e];(0,i.sb)(o)&&(0,r.A)(o)&&(Object.assign(o.style,n),Object.keys(s).forEach(function(e){var t=s[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var s=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,i.sb)(s)&&(0,r.A)(s)&&(Object.assign(s.style,a),Object.keys(o).forEach(function(e){s.removeAttribute(e)}))})}},requires:["computeStyles"]};n.d(t,["A",0,s])},78256(e,t,n){var r=n(32632),i=n(6979),s=n(85446),o=n(88579),a=n(39703),c=n(86523),u=n(54318),l=n(71007),h=n(14278);const d={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,s=e.name,d=e.options,f=n.elements.arrow,p=n.modifiersData.popperOffsets,m=(0,r.A)(n.placement),y=(0,a.A)(m),v=[h.kb,h.pG].indexOf(m)>=0?"height":"width";if(f&&p){var b=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,u.A)("number"!=typeof e?e:(0,l.A)(e,h.OM))}(d.padding,n),g=(0,i.A)(f),w="y"===y?h.Mn:h.kb,E="y"===y?h.sQ:h.pG,x=n.rects.reference[v]+n.rects.reference[y]-p[y]-n.rects.popper[v],O=p[y]-n.rects.reference[y],k=(0,o.A)(f),T=k?"y"===y?k.clientHeight||0:k.clientWidth||0:0,S=x/2-O/2,A=b[w],N=T-g[v]-b[E],_=T/2-g[v]/2+S,I=(0,c.u)(A,_,N),D=y;n.modifiersData[s]=((t={})[D]=I,t.centerOffset=I-_,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&(0,s.A)(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};n.d(t,["A",0,d])},1262(e,t,n){var r=n(14278),i=n(88579),s=n(58979),o=n(19760),a=n(40271),c=n(32632),u=n(98101),l=n(36906),h={top:"auto",right:"auto",bottom:"auto",left:"auto"};function d(e){var t,n=e.popper,c=e.popperRect,u=e.placement,d=e.variation,f=e.offsets,p=e.position,m=e.gpuAcceleration,y=e.adaptive,v=e.roundOffsets,b=e.isFixed,g=f.x,w=void 0===g?0:g,E=f.y,x=void 0===E?0:E,O="function"==typeof v?v({x:w,y:x}):{x:w,y:x};w=O.x,x=O.y;var k=f.hasOwnProperty("x"),T=f.hasOwnProperty("y"),S=r.kb,A=r.Mn,N=window;if(y){var _=(0,i.A)(n),I="clientHeight",D="clientWidth";if(_===(0,s.A)(n)&&(_=(0,o.A)(n),"static"!==(0,a.A)(_).position&&"absolute"===p&&(I="scrollHeight",D="scrollWidth")),u===r.Mn||(u===r.kb||u===r.pG)&&d===r._N)A=r.sQ,x-=(b&&_===N&&N.visualViewport?N.visualViewport.height:_[I])-c.height,x*=m?1:-1;if(u===r.kb||(u===r.Mn||u===r.sQ)&&d===r._N)S=r.pG,w-=(b&&_===N&&N.visualViewport?N.visualViewport.width:_[D])-c.width,w*=m?1:-1}var C,R=Object.assign({position:p},y&&h),F=!0===v?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:(0,l.LI)(n*i)/i||0,y:(0,l.LI)(r*i)/i||0}}({x:w,y:x},(0,s.A)(n)):{x:w,y:x};return w=F.x,x=F.y,m?Object.assign({},R,((C={})[A]=T?"0":"",C[S]=k?"0":"",C.transform=(N.devicePixelRatio||1)<=1?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",C)):Object.assign({},R,((t={})[A]=T?x+"px":"",t[S]=k?w+"px":"",t.transform="",t))}const f={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,s=n.adaptive,o=void 0===s||s,a=n.roundOffsets,l=void 0===a||a,h={placement:(0,c.A)(t.placement),variation:(0,u.A)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,d(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,d(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};n.d(t,["A",0,f])},59068(e,t,n){var r=n(58979),i={passive:!0};const s={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,s=e.options,o=s.scroll,a=void 0===o||o,c=s.resize,u=void 0===c||c,l=(0,r.A)(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&h.forEach(function(e){e.addEventListener("scroll",n.update,i)}),u&&l.addEventListener("resize",n.update,i),function(){a&&h.forEach(function(e){e.removeEventListener("scroll",n.update,i)}),u&&l.removeEventListener("resize",n.update,i)}},data:{}};n.d(t,["A",0,s])},80644(e,t,n){n.d(t,{A:()=>h});var r={left:"right",right:"left",bottom:"top",top:"bottom"};function i(e){return e.replace(/left|right|bottom|top/g,function(e){return r[e]})}var s=n(32632),o={start:"end",end:"start"};function a(e){return e.replace(/start|end/g,function(e){return o[e]})}var c=n(46397),u=n(98101),l=n(14278);const h={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,h=void 0===o||o,d=n.altAxis,f=void 0===d||d,p=n.fallbackPlacements,m=n.padding,y=n.boundary,v=n.rootBoundary,b=n.altBoundary,g=n.flipVariations,w=void 0===g||g,E=n.allowedAutoPlacements,x=t.options.placement,O=(0,s.A)(x),k=p||(O===x||!w?[i(x)]:function(e){if((0,s.A)(e)===l.qZ)return[];var t=i(e);return[a(e),t,a(t)]}(x)),T=[x].concat(k).reduce(function(e,n){return e.concat((0,s.A)(n)===l.qZ?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,h=n.flipVariations,d=n.allowedAutoPlacements,f=void 0===d?l.DD:d,p=(0,u.A)(r),m=p?h?l.Ol:l.Ol.filter(function(e){return(0,u.A)(e)===p}):l.OM,y=m.filter(function(e){return f.indexOf(e)>=0});0===y.length&&(y=m);var v=y.reduce(function(t,n){return t[n]=(0,c.A)(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[(0,s.A)(n)],t},{});return Object.keys(v).sort(function(e,t){return v[e]-v[t]})}(t,{placement:n,boundary:y,rootBoundary:v,padding:m,flipVariations:w,allowedAutoPlacements:E}):n)},[]),S=t.rects.reference,A=t.rects.popper,N=new Map,_=!0,I=T[0],D=0;D=0,M=P?"width":"height",L=(0,c.A)(t,{placement:C,boundary:y,rootBoundary:v,altBoundary:b,padding:m}),j=P?F?l.pG:l.kb:F?l.sQ:l.Mn;S[M]>A[M]&&(j=i(j));var V=i(j),q=[];if(h&&q.push(L[R]<=0),f&&q.push(L[j]<=0,L[V]<=0),q.every(function(e){return e})){I=C,_=!1;break}N.set(C,q)}if(_)for(var U=function(e){var t=T.find(function(t){var n=N.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return I=t,"break"},Q=w?3:1;Q>0;Q--){if("break"===U(Q))break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},89081(e,t,n){var r=n(14278),i=n(46397);function s(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function o(e){return[r.Mn,r.pG,r.sQ,r.kb].some(function(t){return e[t]>=0})}const a={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,c=t.modifiersData.preventOverflow,u=(0,i.A)(t,{elementContext:"reference"}),l=(0,i.A)(t,{altBoundary:!0}),h=s(u,r),d=s(l,a,c),f=o(h),p=o(d);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}};n.d(t,["A",0,a])},18490(e,t,n){var r=n(32632),i=n(14278);const s={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,s=e.name,o=n.offset,a=void 0===o?[0,0]:o,c=i.DD.reduce(function(e,n){return e[n]=function(e,t,n){var s=(0,r.A)(e),o=[i.kb,i.Mn].indexOf(s)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,c=a[0],u=a[1];return c=c||0,u=(u||0)*o,[i.kb,i.pG].indexOf(s)>=0?{x:u,y:c}:{x:c,y:u}}(n,t.rects,a),e},{}),u=c[t.placement],l=u.x,h=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[s]=c}};n.d(t,["A",0,s])},85059(e,t,n){var r=n(1815);const i={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,r.A)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};n.d(t,["A",0,i])},10192(e,t,n){n.d(t,{A:()=>f});var r=n(14278),i=n(32632),s=n(39703);var o=n(86523),a=n(6979),c=n(88579),u=n(46397),l=n(98101),h=n(67364),d=n(36906);const f={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,f=e.name,p=n.mainAxis,m=void 0===p||p,y=n.altAxis,v=void 0!==y&&y,b=n.boundary,g=n.rootBoundary,w=n.altBoundary,E=n.padding,x=n.tether,O=void 0===x||x,k=n.tetherOffset,T=void 0===k?0:k,S=(0,u.A)(t,{boundary:b,rootBoundary:g,padding:E,altBoundary:w}),A=(0,i.A)(t.placement),N=(0,l.A)(t.placement),_=!N,I=(0,s.A)(A),D="x"===I?"y":"x",C=t.modifiersData.popperOffsets,R=t.rects.reference,F=t.rects.popper,P="function"==typeof T?T(Object.assign({},t.rects,{placement:t.placement})):T,M="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(C){if(m){var V,q="y"===I?r.Mn:r.kb,U="y"===I?r.sQ:r.pG,Q="y"===I?"height":"width",B=C[I],z=B+S[q],W=B-S[U],G=O?-F[Q]/2:0,K=N===r.ni?R[Q]:F[Q],H=N===r.ni?-F[Q]:-R[Q],$=t.elements.arrow,Y=O&&$?(0,a.A)($):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,h.A)(),X=J[q],Z=J[U],ee=(0,o.u)(0,R[Q],Y[Q]),te=_?R[Q]/2-G-ee-X-M.mainAxis:K-ee-X-M.mainAxis,ne=_?-R[Q]/2+G+ee+Z+M.mainAxis:H+ee+Z+M.mainAxis,re=t.elements.arrow&&(0,c.A)(t.elements.arrow),ie=re?"y"===I?re.clientTop||0:re.clientLeft||0:0,se=null!=(V=null==L?void 0:L[I])?V:0,oe=B+te-se-ie,ae=B+ne-se,ce=(0,o.u)(O?(0,d.jk)(z,oe):z,B,O?(0,d.T9)(W,ae):W);C[I]=ce,j[I]=ce-B}if(v){var ue,le="x"===I?r.Mn:r.kb,he="x"===I?r.sQ:r.pG,de=C[D],fe="y"===D?"height":"width",pe=de+S[le],me=de-S[he],ye=-1!==[r.Mn,r.kb].indexOf(A),ve=null!=(ue=null==L?void 0:L[D])?ue:0,be=ye?pe:de-R[fe]-F[fe]-ve+M.altAxis,ge=ye?de+R[fe]+F[fe]-ve-M.altAxis:me,we=O&&ye?(0,o.P)(be,de,ge):(0,o.u)(O?be:pe,de,O?ge:me);C[D]=we,j[D]=we-de}t.modifiersData[f]=j}},requiresIfExists:["offset"]}},71576(e,t,n){n.d(t,{n:()=>p});var r=n(90711),i=n(59068),s=n(85059),o=n(1262),a=n(16607),c=n(18490),u=n(80644),l=n(10192),h=n(78256),d=n(89081),f=[i.A,s.A,o.A,a.A,c.A,u.A,l.A,h.A,d.A],p=(0,r.UD)({defaultModifiers:f})},1815(e,t,n){n.d(t,{A:()=>a});var r=n(32632),i=n(98101),s=n(39703),o=n(14278);function a(e){var t,n=e.reference,a=e.element,c=e.placement,u=c?(0,r.A)(c):null,l=c?(0,i.A)(c):null,h=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2;switch(u){case o.Mn:t={x:h,y:n.y-a.height};break;case o.sQ:t={x:h,y:n.y+n.height};break;case o.pG:t={x:n.x+n.width,y:d};break;case o.kb:t={x:n.x-a.width,y:d};break;default:t={x:n.x,y:n.y}}var f=u?(0,s.A)(u):null;if(null!=f){var p="y"===f?"height":"width";switch(l){case o.ni:t[f]=t[f]-(n[p]/2-a[p]/2);break;case o._N:t[f]=t[f]+(n[p]/2-a[p]/2)}}return t}},46397(e,t,n){n.d(t,{A:()=>k});var r=n(14278),i=n(58979),s=n(19760),o=n(50793),a=n(22283);var c=n(40271),u=n(30222),l=n(36906);var h=n(75867),d=n(88579),f=n(5581),p=n(86354),m=n(52083),y=n(85446),v=n(67604);function b(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function g(e,t,n){return t===r.R9?b(function(e,t){var n=(0,i.A)(e),r=(0,s.A)(e),c=n.visualViewport,u=r.clientWidth,l=r.clientHeight,h=0,d=0;if(c){u=c.width,l=c.height;var f=(0,a.A)();(f||!f&&"fixed"===t)&&(h=c.offsetLeft,d=c.offsetTop)}return{width:u,height:l,x:h+(0,o.A)(e),y:d}}(e,n)):(0,f.vq)(t)?function(e,t){var n=(0,p.A)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):b(function(e){var t,n=(0,s.A)(e),r=(0,u.A)(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=(0,l.T9)(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),h=(0,l.T9)(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),d=-r.scrollLeft+(0,o.A)(e),f=-r.scrollTop;return"rtl"===(0,c.A)(i||n).direction&&(d+=(0,l.T9)(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:h,x:d,y:f}}((0,s.A)(e)))}function w(e,t,n,r){var i="clippingParents"===t?function(e){var t=(0,h.A)((0,m.A)(e)),n=["absolute","fixed"].indexOf((0,c.A)(e).position)>=0&&(0,f.sb)(e)?(0,d.A)(e):e;return(0,f.vq)(n)?t.filter(function(e){return(0,f.vq)(e)&&(0,y.A)(e,n)&&"body"!==(0,v.A)(e)}):[]}(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(t,n){var i=g(e,n,r);return t.top=(0,l.T9)(i.top,t.top),t.right=(0,l.jk)(i.right,t.right),t.bottom=(0,l.jk)(i.bottom,t.bottom),t.left=(0,l.T9)(i.left,t.left),t},g(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var E=n(1815),x=n(54318),O=n(71007);function k(e,t){void 0===t&&(t={});var n=t,i=n.placement,o=void 0===i?e.placement:i,a=n.strategy,c=void 0===a?e.strategy:a,u=n.boundary,l=void 0===u?r.WY:u,h=n.rootBoundary,d=void 0===h?r.R9:h,m=n.elementContext,y=void 0===m?r.xf:m,v=n.altBoundary,g=void 0!==v&&v,k=n.padding,T=void 0===k?0:k,S=(0,x.A)("number"!=typeof T?T:(0,O.A)(T,r.OM)),A=y===r.xf?r.ir:r.xf,N=e.rects.popper,_=e.elements[g?A:y],I=w((0,f.vq)(_)?_:_.contextElement||(0,s.A)(e.elements.popper),l,d,c),D=(0,p.A)(e.elements.reference),C=(0,E.A)({reference:D,element:N,strategy:"absolute",placement:o}),R=b(Object.assign({},N,C)),F=y===r.xf?R:D,P={top:I.top-F.top+S.top,bottom:F.bottom-I.bottom+S.bottom,left:I.left-F.left+S.left,right:F.right-I.right+S.right},M=e.modifiersData.offset;if(y===r.xf&&M){var L=M[o];Object.keys(P).forEach(function(e){var t=[r.pG,r.sQ].indexOf(e)>=0?1:-1,n=[r.Mn,r.sQ].indexOf(e)>=0?"y":"x";P[e]+=L[n]*t})}return P}},71007(e,t,n){function r(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}n.d(t,{A:()=>r})},32632(e,t,n){function r(e){return e.split("-")[0]}n.d(t,{A:()=>r})},67364(e,t,n){function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{A:()=>r})},39703(e,t,n){function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{A:()=>r})},98101(e,t,n){function r(e){return e.split("-")[1]}n.d(t,{A:()=>r})},36906(e,t,n){n.d(t,{LI:()=>s,T9:()=>r,jk:()=>i});var r=Math.max,i=Math.min,s=Math.round},54318(e,t,n){n.d(t,{A:()=>i});var r=n(67364);function i(e){return Object.assign({},(0,r.A)(),e)}},72398(e,t,n){function r(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}n.d(t,{A:()=>r})},86523(e,t,n){n.d(t,{P:()=>s,u:()=>i});var r=n(36906);function i(e,t,n){return(0,r.T9)(e,(0,r.jk)(t,n))}function s(e,t,n){var r=i(e,t,n);return r>n?n:r}},31863(e,t,n){const r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0,i=e=>async(t,n)=>{"string"==typeof t&&(t=(new r.TextEncoder).encode(t)),n={outputFormat:"hex",...n};const i=await r.crypto.subtle.digest(e,t);return"hex"===n.outputFormat?(e=>{const t=new DataView(e);let n="";for(let e=0;eX});var r=n(31635);function i(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const s=/\r\n|[\n\r]/g;function o(e,t){let n=0,r=1;for(const o of e.body.matchAll(s)){if("number"==typeof o.index||i(!1),o.index>=t)break;n=o.index+o[0].length,r+=1}return{line:r,column:t+1-n}}function a(e){return c(e.source,o(e.source,e.start))}function c(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=1===t.line?n:0,c=t.column+a,l=`${e.name}:${o}:${c}\n`,h=r.split(/\r\n|[\n\r]/g),d=h[i];if(d.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return l+u([[o-1+" |",h[i-1]],[`${o} |`,d],["|","^".padStart(c)],[`${o+1} |`,h[i+1]]])}function u(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class l extends Error{constructor(e,...t){var n,r,i;const{nodes:s,source:a,positions:c,path:u,originalError:d,extensions:f}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=d?d:void 0,this.nodes=h(Array.isArray(s)?s:s?[s]:void 0);const p=h(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p||null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=c?c:null==p?void 0:p.map(e=>e.start),this.locations=c&&a?c.map(e=>o(a,e)):null==p?void 0:p.map(e=>o(e.source,e.start));const m="object"==typeof(y=null==d?void 0:d.extensions)&&null!==y?null==d?void 0:d.extensions:void 0;var y;this.extensions=null!==(i=null!=f?f:m)&&void 0!==i?i: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}}),null!=d&&d.stack?Object.defineProperty(this,"stack",{value:d.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+a(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+c(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function h(e){return void 0===e||0===e.length?void 0:e}function d(e,t,n){return new l(`Syntax Error: ${n}`,{source:e,positions:[t]})}var f,p=n(50475);!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",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"}(f||(f={}));var m,y=n(43298),v=n(75995),b=n(79646);!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"}(m||(m={}));class g{constructor(e){const t=new p.ou(m.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==m.EOF)do{if(e.next)e=e.next;else{const t=S(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===m.COMMENT);return e}}function w(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function E(e,t){return x(e.charCodeAt(t))&&O(e.charCodeAt(t+1))}function x(e){return e>=55296&&e<=56319}function O(e){return e>=56320&&e<=57343}function k(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return m.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function T(e,t,n,r,i){const s=e.line,o=1+n-e.lineStart;return new p.ou(t,n,r,s,o,i)}function S(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function P(e,t){const n=e.source.body;switch(n.charCodeAt(t+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:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function M(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,s=t+3,o=s,a="";const c=[];for(;s0||(0,j.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,j.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Q{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=function(e){return q(e,U)}(e)?e:new U(e);this._lexer=new g(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(m.NAME);return this.node(e,{kind:y.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.b.DOCUMENT,definitions:this.many(m.SOF,this.parseDefinition,m.EOF)})}parseDefinition(){if(this.peek(m.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===m.BRACE_L)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===m.NAME){switch(t.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(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(m.BRACE_L))return this.node(e,{kind:y.b.OPERATION_DEFINITION,operation:p.cE.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(m.NAME)&&(r=this.parseName()),this.node(e,{kind:y.b.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(m.NAME);switch(e.value){case"query":return p.cE.QUERY;case"mutation":return p.cE.MUTATION;case"subscription":return p.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(m.PAREN_L,this.parseVariableDefinition,m.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.b.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(m.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(m.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(m.DOLLAR),this.node(e,{kind:y.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.b.SELECTION_SET,selections:this.many(m.BRACE_L,this.parseSelection,m.BRACE_R)})}parseSelection(){return this.peek(m.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(m.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:y.b.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(m.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(m.PAREN_L,t,m.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(m.COLON),this.node(t,{kind:y.b.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(m.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(m.NAME)?this.node(e,{kind:y.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:y.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:y.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:y.b.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case m.BRACKET_L:return this.parseList(e);case m.BRACE_L:return this.parseObject(e);case m.INT:return this.advanceLexer(),this.node(t,{kind:y.b.INT,value:t.value});case m.FLOAT:return this.advanceLexer(),this.node(t,{kind:y.b.FLOAT,value:t.value});case m.STRING:case m.BLOCK_STRING:return this.parseStringLiteral();case m.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:y.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:y.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:y.b.NULL});default:return this.node(t,{kind:y.b.ENUM,value:t.value})}case m.DOLLAR:if(e){if(this.expectToken(m.DOLLAR),this._lexer.token.kind===m.NAME){const e=this._lexer.token.value;throw d(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:y.b.STRING,value:e.value,block:e.kind===m.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:y.b.LIST,values:this.any(m.BRACKET_L,()=>this.parseValueLiteral(e),m.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:y.b.OBJECT,fields:this.any(m.BRACE_L,()=>this.parseObjectField(e),m.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(m.COLON),this.node(t,{kind:y.b.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(m.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(m.AT),this.node(t,{kind:y.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(m.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(m.BRACKET_R),t=this.node(e,{kind:y.b.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(m.BANG)?this.node(e,{kind:y.b.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:y.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(m.STRING)||this.peek(m.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);return this.node(e,{kind:y.b.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(m.COLON);const n=this.parseNamedType();return this.node(e,{kind:y.b.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:y.b.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:y.b.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(m.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseFieldDefinition,m.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(m.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(e,{kind:y.b.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(m.PAREN_L,this.parseInputValueDef,m.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(m.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(m.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(e,{kind:y.b.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(e,{kind:y.b.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:s})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:y.b.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(m.EQUALS)?this.delimitedMany(m.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:y.b.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(m.BRACE_L,this.parseEnumValueDefinition,m.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:y.b.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw d(this._lexer.source,this._lexer.token.start,`${B(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:y.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(m.BRACE_L,this.parseInputValueDef,m.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===m.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(m.BRACE_L,this.parseOperationTypeDefinition,m.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.b.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:y.b.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.b.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.b.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(m.AT);const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:y.b.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(m.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:y.b.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,directives:i,repeatable:s,locations:o})}parseDirectiveLocations(){return this.delimitedMany(m.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(f,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(m.AT),n=this.parseName();let r,i;return!t&&this.expectOptionalToken(m.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(m.PAREN_L)&&(i=this.parseName(),this.expectToken(m.COLON),this.expectToken(m.PAREN_R)),t?i?this.node(e,{kind:y.b.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:y.b.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:y.b.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:y.b.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:y.b.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new p.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw d(this._lexer.source,t.start,`Expected ${z(e)}, found ${B(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==m.NAME||t.value!==e)throw d(this._lexer.source,t.start,`Expected "${e}", found ${B(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===m.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return d(this._lexer.source,t.start,`Unexpected ${B(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==m.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw d(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function B(e){const t=e.value;return z(e.kind)+(null!=t?` "${t}"`:"")}function z(e){return function(e){return e===m.BANG||e===m.DOLLAR||e===m.AMP||e===m.PAREN_L||e===m.PAREN_R||e===m.DOT||e===m.SPREAD||e===m.COLON||e===m.EQUALS||e===m.AT||e===m.BRACKET_L||e===m.BRACKET_R||e===m.BRACE_L||e===m.PIPE||e===m.BRACE_R}(e)?`"${e}"`:e}var W=new Map,G=new Map,K=!0,H=!1;function $(e){return e.replace(/[\s,]+/g," ").trim()}function Y(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,i=$((o=e.loc).source.body.substring(o.start,o.end)),s=G.get(r);s&&!s.has(i)?K&&console.warn("Warning: fragment with name "+r+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||G.set(r,s=new Set),s.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e);var o}),(0,r.Cl)((0,r.Cl)({},e),{definitions:n})}function J(e){var t=$(e);if(!W.has(t)){var n=function(e,t){const n=new Q(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}(e,{experimentalFragmentVariables:H,allowLegacyFragmentVariables:H,experimentalFragmentArguments:H});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");W.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Y(n)))}return W.get(t)}function X(e){for(var t=[],n=1;nh});var r=n(75508),i=n(52616),s=n(55604),o=n(58307);function a(e){return 0===e.length?o.D:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var c=n(94384),u=n(61209),l=n(7008),h=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var s,o=this,a=(s=e)&&s instanceof r.vU||function(e){return e&&(0,u.T)(e.next)&&(0,u.T)(e.error)&&(0,u.T)(e.complete)}(s)&&(0,i.Uv)(s)?e:new r.Ms(e,t,n);return(0,l.Y)(function(){var e=o,t=e.operator,n=e.source;a.add(t?t.call(a,n):n?o._subscribe(a):o._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))(function(t,i){var s=new r.Ms({next:function(t){try{e(t)}catch(e){i(e),s.unsubscribe()}},error:i,complete:t});n.subscribe(s)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[s.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;to});var r=n(31635),i=n(27291),s=n(31179),o=function(e){function t(t,n,r){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===r&&(r=s.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return(0,r.C6)(t,e),t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,s=n._infiniteTimeWindow,o=n._timestampProvider,a=n._windowTime;r||(i.push(t),!s&&i.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;iu});var r=n(31635),i=n(93776),s=n(52616),o=(0,n(82947).L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),a=n(6174),c=n(7008),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,r.C6)(t,e),t.prototype.lift=function(e){var t=new l(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new o},t.prototype.next=function(e){var t=this;(0,c.Y)(function(){var n,i;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var s=(0,r.Ju)(t.currentObservers),o=s.next();!o.done;o=s.next()){o.value.next(e)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;(0,c.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,c.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?s.Kn:(this.currentObservers=null,o.push(e),new s.yU(function(){t.currentObservers=null,(0,a.o)(o,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new i.c;return e.source=this,e},t.create=function(e,t){return new l(e,t)},t}(i.c),l=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,r.C6)(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:s.Kn},t}(u)},75508(e,t,n){n.d(t,{Ms:()=>v,vU:()=>f});var r=n(31635),i=n(61209),s=n(52616),o=n(94384),a=n(22564),c=n(92357),u=l("C",void 0,void 0);function l(e,t,n){return{kind:e,value:t,error:n}}var h=n(96744),d=n(7008),f=function(e){function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,(0,s.Uv)(t)&&t.add(n)):n.destination=w,n}return(0,r.C6)(t,e),t.create=function(e,t,n){return new v(e,t,n)},t.prototype.next=function(e){this.isStopped?g(function(e){return l("N",e,void 0)}(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?g(l("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?g(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(s.yU),p=Function.prototype.bind;function m(e,t){return p.call(e,t)}var y=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),v=function(e){function t(t,n,r){var s,a,c=e.call(this)||this;(0,i.T)(t)||!t?s={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:c&&o.$.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},s={next:t.next&&m(t.next,a),error:t.error&&m(t.error,a),complete:t.complete&&m(t.complete,a)}):s=t;return c.destination=new y(s),c}return(0,r.C6)(t,e),t}(f);function b(e){o.$.useDeprecatedSynchronousErrorHandling?(0,d.l)(e):(0,a.m)(e)}function g(e,t){var n=o.$.onStoppedNotification;n&&h.f.setTimeout(function(){return n(e,t)})}var w={closed:!0,next:c.l,error:function(e){throw e},complete:c.l}},52616(e,t,n){n.d(t,{Kn:()=>c,yU:()=>a,Uv:()=>u});var r=n(31635),i=n(61209),s=(0,n(82947).L)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),o=n(6174),a=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,o,a;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var u=(0,r.Ju)(c),h=u.next();!h.done;h=u.next()){h.value.remove(this)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else c.remove(this);var d=this.initialTeardown;if((0,i.T)(d))try{d()}catch(e){a=e instanceof s?e.errors:[e]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=(0,r.Ju)(f),m=p.next();!m.done;m=p.next()){var y=m.value;try{l(y)}catch(e){a=null!=a?a:[],e instanceof s?a=(0,r.fX)((0,r.fX)([],(0,r.zs)(a)),(0,r.zs)(e.errors)):a.push(e)}}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(a)throw new s(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,o.o)(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&(0,o.o)(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),c=a.EMPTY;function u(e){return e instanceof a||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function l(e){(0,i.T)(e)?e():e.unsubscribe()}},94384(e,t,n){n.d(t,{$:()=>r});var r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},77512(e,t,n){n.d(t,{s:()=>i});var r=(0,n(82947).L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function i(e,t){var n="object"==typeof t;return new Promise(function(i,s){var o,a=!1;e.subscribe({next:function(e){o=e,a=!0},error:s,complete:function(){a?i(o):n?i(t.defaultValue):s(new r)}})})}},35079(e,t,n){n.d(t,{x:()=>o});var r=n(93031);var i=n(82100),s=n(37968);function o(){for(var e=[],t=0;tr});var r=new(n(93776).c)(function(e){return e.complete()})},37968(e,t,n){n.d(t,{H:()=>E});var r=n(15964),i=n(56315),s=n(92908),o=n(64878);function a(e,t){return void 0===t&&(t=0),(0,s.N)(function(n,r){n.subscribe((0,o._)(r,function(n){return(0,i.N)(r,e,function(){return r.next(n)},t)},function(){return(0,i.N)(r,e,function(){return r.complete()},t)},function(n){return(0,i.N)(r,e,function(){return r.error(n)},t)}))})}function c(e,t){return void 0===t&&(t=0),(0,s.N)(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}var u=n(93776);var l=n(12059),h=n(61209);function d(e,t){if(!e)throw new Error("Iterable cannot be null");return new u.c(function(n){(0,i.N)(n,t,function(){var r=e[Symbol.asyncIterator]();(0,i.N)(n,t,function(){r.next().then(function(e){e.done?n.complete():n.next(e.value)})},0,!0)})})}var f=n(37541),p=n(3440),m=n(69391),y=n(58667),v=n(62471),b=n(43465),g=n(8438);function w(e,t){if(null!=e){if((0,f.l)(e))return function(e,t){return(0,r.Tg)(e).pipe(c(t),a(t))}(e,t);if((0,m.X)(e))return function(e,t){return new u.c(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if((0,p.y)(e))return function(e,t){return(0,r.Tg)(e).pipe(c(t),a(t))}(e,t);if((0,v.T)(e))return d(e,t);if((0,y.x)(e))return function(e,t){return new u.c(function(n){var r;return(0,i.N)(n,t,function(){r=e[l.l](),(0,i.N)(n,t,function(){var e,t,i;try{t=(e=r.next()).value,i=e.done}catch(e){return void n.error(e)}i?n.complete():n.next(t)},0,!0)}),function(){return(0,h.T)(null==r?void 0:r.return)&&r.return()}})}(e,t);if((0,g.U)(e))return function(e,t){return d((0,g.C)(e),t)}(e,t)}throw(0,b.L)(e)}function E(e,t){return t?w(e,t):(0,r.Tg)(e)}},15964(e,t,n){n.d(t,{Tg:()=>m});var r=n(31635),i=n(69391),s=n(3440),o=n(93776),a=n(37541),c=n(62471),u=n(43465),l=n(58667),h=n(8438),d=n(61209),f=n(22564),p=n(55604);function m(e){if(e instanceof o.c)return e;if(null!=e){if((0,a.l)(e))return b=e,new o.c(function(e){var t=b[p.s]();if((0,d.T)(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")});if((0,i.X)(e))return v=e,new o.c(function(e){for(var t=0;to});var r=n(93776),i=n(44838),s=n(98820);function o(e,t,n){void 0===e&&(e=0),void 0===n&&(n=i.b);var o=-1;return null!=t&&((0,s.m)(t)?n=t:o=t),new r.c(function(t){var r,i=(r=e)instanceof Date&&!isNaN(r)?+e-n.now():e;i<0&&(i=0);var s=0;return n.schedule(function(){t.closed||(t.next(s++),0<=o?this.schedule(void 0,o):t.complete())},i)})}},64878(e,t,n){n.d(t,{_:()=>i});var r=n(31635);function i(e,t,n,r,i){return new s(e,t,n,r,i)}var s=function(e){function t(t,n,r,i,s,o){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=o,a._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=r?function(){try{r()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,r.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(n(75508).vU)},41900(e,t,n){n.d(t,{F:()=>o});var r=n(58307),i=n(92908),s=n(64878);function o(e,t){return void 0===t&&(t=r.D),e=null!=e?e:a,(0,i.N)(function(n,r){var i,o=!0;n.subscribe((0,s._)(r,function(n){var s=t(n);!o&&e(i,s)||(o=!1,i=s,r.next(n))}))})}function a(e,t){return e===t}},16126(e,t,n){n.d(t,{p:()=>s});var r=n(92908),i=n(64878);function s(e,t){return(0,r.N)(function(n,r){var s=0;n.subscribe((0,i._)(r,function(n){return e.call(t,n,s++)&&r.next(n)}))})}},81160(e,t,n){n.d(t,{T:()=>s});var r=n(92908),i=n(64878);function s(e,t){return(0,r.N)(function(n,r){var s=0;n.subscribe((0,i._)(r,function(n){r.next(e.call(t,n,s++))}))})}},93031(e,t,n){n.d(t,{U:()=>s});var r=n(28452),i=n(58307);function s(e){return void 0===e&&(e=1/0),(0,r.Z)(i.D,e)}},28452(e,t,n){n.d(t,{Z:()=>u});var r=n(81160),i=n(15964),s=n(92908),o=n(56315),a=n(64878);var c=n(61209);function u(e,t,n){return void 0===n&&(n=1/0),(0,c.T)(t)?u(function(n,s){return(0,r.T)(function(e,r){return t(n,e,s,r)})((0,i.Tg)(e(n,s)))},n):("number"==typeof t&&(n=t),(0,s.N)(function(t,r){return function(e,t,n,r,s,c,u,l){var h=[],d=0,f=0,p=!1,m=function(){!p||h.length||d||t.complete()},y=function(e){return dc});var r=n(31635),i=n(15964),s=n(27291),o=n(75508),a=n(92908);function c(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new s.B}:t,r=e.resetOnError,c=void 0===r||r,l=e.resetOnComplete,h=void 0===l||l,d=e.resetOnRefCountZero,f=void 0===d||d;return function(e){var t,r,s,l=0,d=!1,p=!1,m=function(){null==r||r.unsubscribe(),r=void 0},y=function(){m(),t=s=void 0,d=p=!1},v=function(){var e=t;y(),null==e||e.unsubscribe()};return(0,a.N)(function(e,a){l++,p||d||m();var b=s=null!=s?s:n();a.add(function(){0!==--l||p||d||(r=u(v,f))}),b.subscribe(a),!t&&l>0&&(t=new o.Ms({next:function(e){return b.next(e)},error:function(e){p=!0,m(),r=u(y,c,e),b.error(e)},complete:function(){d=!0,m(),r=u(y,h),b.complete()}}),(0,i.Tg)(e).subscribe(t))})(e)}}function u(e,t){for(var n=[],s=2;ss});var r=n(39741),i=n(1005);function s(e,t,n){var s,o,a,c,u=!1;return e&&"object"==typeof e?(s=e.bufferSize,c=void 0===s?1/0:s,o=e.windowTime,t=void 0===o?1/0:o,u=void 0!==(a=e.refCount)&&a,n=e.scheduler):c=null!=e?e:1/0,(0,i.u)({connector:function(){return new r.m(c,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},59099(e,t,n){n.d(t,{M:()=>a});var r=n(61209),i=n(92908),s=n(64878),o=n(58307);function a(e,t,n){var a=(0,r.T)(e)||t||n?{next:e,error:t,complete:n}:e;return a?(0,i.N)(function(e,t){var n;null===(n=a.subscribe)||void 0===n||n.call(a);var r=!0;e.subscribe((0,s._)(t,function(e){var n;null===(n=a.next)||void 0===n||n.call(a,e),t.next(e)},function(){var e;r=!1,null===(e=a.complete)||void 0===e||e.call(a),t.complete()},function(e){var n;r=!1,null===(n=a.error)||void 0===n||n.call(a,e),t.error(e)},function(){var e,t;r&&(null===(e=a.unsubscribe)||void 0===e||e.call(a)),null===(t=a.finalize)||void 0===t||t.call(a)}))}):o.D}},44876(e,t,n){n.d(t,{R:()=>a});var r=n(31635),i=function(e){function t(t,n){return e.call(this)||this}return(0,r.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(52616).yU),s={setInterval:function(e,t){for(var n=[],i=2;io});var r=n(31635),i=n(31179),s=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=i.U.now,e}(),o=function(e){function t(t,n){void 0===n&&(n=s.now);var r=e.call(this,t,n)||this;return r.actions=[],r._active=!1,r}return(0,r.C6)(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(s)},31179(e,t,n){n.d(t,{U:()=>r});var r={now:function(){return(r.delegate||Date).now()},delegate:void 0}},96744(e,t,n){n.d(t,{f:()=>i});var r=n(31635),i={setTimeout:function(e,t){for(var n=[],s=2;sr});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},55604(e,t,n){n.d(t,{s:()=>r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},6174(e,t,n){function r(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}n.d(t,{o:()=>r})},82947(e,t,n){function r(e){var t=e(function(e){Error.call(e),e.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}n.d(t,{L:()=>r})},7008(e,t,n){n.d(t,{Y:()=>s,l:()=>o});var r=n(94384),i=null;function s(e){if(r.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var n=i,s=n.errorThrown,o=n.error;if(i=null,s)throw o}}else e()}function o(e){r.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},56315(e,t,n){function r(e,t,n,r,i){void 0===r&&(r=0),void 0===i&&(i=!1);var s=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(s),!i)return s}n.d(t,{N:()=>r})},58307(e,t,n){function r(e){return e}n.d(t,{D:()=>r})},69391(e,t,n){n.d(t,{X:()=>r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},62471(e,t,n){n.d(t,{T:()=>i});var r=n(61209);function i(e){return Symbol.asyncIterator&&(0,r.T)(null==e?void 0:e[Symbol.asyncIterator])}},61209(e,t,n){function r(e){return"function"==typeof e}n.d(t,{T:()=>r})},37541(e,t,n){n.d(t,{l:()=>s});var r=n(55604),i=n(61209);function s(e){return(0,i.T)(e[r.s])}},58667(e,t,n){n.d(t,{x:()=>s});var r=n(12059),i=n(61209);function s(e){return(0,i.T)(null==e?void 0:e[r.l])}},3440(e,t,n){n.d(t,{y:()=>i});var r=n(61209);function i(e){return(0,r.T)(null==e?void 0:e.then)}},8438(e,t,n){n.d(t,{C:()=>s,U:()=>o});var r=n(31635),i=n(61209);function s(e){return(0,r.AQ)(this,arguments,function(){var t,n,i;return(0,r.YH)(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,(0,r.N3)(t.read())];case 3:return n=s.sent(),i=n.value,n.done?[4,(0,r.N3)(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,(0,r.N3)(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function o(e){return(0,i.T)(null==e?void 0:e.getReader)}},98820(e,t,n){n.d(t,{m:()=>i});var r=n(61209);function i(e){return e&&(0,r.T)(e.schedule)}},92908(e,t,n){n.d(t,{N:()=>i});var r=n(61209);function i(e){return function(t){if(function(e){return(0,r.T)(null==e?void 0:e.lift)}(t))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw new TypeError("Unable to lift unknown Observable type")}}},92357(e,t,n){function r(){}n.d(t,{l:()=>r})},22564(e,t,n){n.d(t,{m:()=>s});var r=n(94384),i=n(96744);function s(e){i.f.setTimeout(function(){var t=r.$.onUnhandledError;if(!t)throw e;t(e)})}},43465(e,t,n){function r(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}n.d(t,{L:()=>r})},2712(e,t,n){n.d(t,{D:()=>at});var r=n(15381),i=n(6839),s=n(29993),o=n(43298),a=n(84705);const c={kind:o.b.FIELD,name:{kind:o.b.NAME,value:"__typename"}},u=Object.assign(function(e){return(0,a.YR)(e,{SelectionSet:{enter(e,t,n){if(n&&n.kind===o.b.OPERATION_DEFINITION)return;const{selections:r}=e;if(!r)return;if(r.some(e=>e.kind===o.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))return;const i=n;return i.kind===o.b.FIELD&&i.directives&&i.directives.some(e=>"export"===e.name.value)?void 0:{...e,selections:[...r,c]}}}})},{added:e=>e===c});var l=n(81212),h=n(41697),d=n(32417);function f(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}var p=n(65560),m=n(11744),y=n(32453),v=n(81160),b=n(59099),g=n(87718),w=n(93776),E=n(41900),x=n(1005),O=n(39741),k=n(25100);const T=(0,n(18316).B)(function(e,t,n){return function(e,t){let n,r;function i(e){return e!==n&&(n=e,r=t(n)),r}return Object.assign(e.pipe((0,v.T)(i),(0,g.t)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(e.getCurrentResult())})}(e,n)},{max:1,makeCacheKey:e=>e.slice(0,2)});var S=n(61701);var A=n(11437);function N(e,t){let n=t;const r=[];e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,p.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&((0,p.V1)(1===r.length,11,r.length),n=r[0].name.value);return{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}},...e.definitions]}}function _(...e){return i.NS.bind(null,...e)}class I{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){const t="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;let n;return this.performTransaction(()=>n=e.update(this),t),n}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new y.b(!0);watchFragment(e){const{fragment:t,fragmentName:n,from:i}=e,s=this.getFragmentDoc(t,n),o=(Array.isArray(i)?i:[i]).map(e=>{const t=null==e?e:this.toCacheId(e);return t});if(!Array.isArray(i)){const t=this.watchSingleFragment(o[0],s,e);return null===i?t:T(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}let a;function c(e){const t=e.reduce((e,t,n)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[n]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,r.L)(a,t)||(a=t),a}if(0===o.length)return F;let u=!1;const l=o.map(t=>this.watchSingleFragment(t,s,e)),h=function(e){return 0===e.length?S.w:new w.c(t=>{const{length:n}=e,r=new Array(n),i=new Map;e.forEach((e,t)=>{i.has(e)||i.set(e,new Set),i.get(e).add(t)});let s,o=i.size,a=i.size;i.forEach((n,i)=>{let c=!1;const u=i.subscribe({next:o=>{n.forEach(e=>r[e]=o),c||(c=!0,a--),a||(s||=new Set(e.filter(e=>e.dirty)),s.delete(i),s.size||(t.next(r.slice()),s=void 0))},complete:()=>{o--,o||t.complete()},error:t.error.bind(t)});t.add(u)})})}(l).pipe((0,v.T)(c),(0,b.M)({subscribe:()=>u=!0,unsubscribe:()=>u=!1}),(0,g.t)({bufferSize:1,refCount:!0}));return Object.assign(h,{getCurrentResult:()=>{if(u&&a)return a;const e=l.map(e=>e.getCurrentResult());return c(e)}})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,n){if(null===e)return C;const{optimistic:r=!0,variables:i}=n,s=[t,(0,h.M)({id:e,optimistic:r,variables:i})],o=this.fragmentWatches.lookupArray(s);if(!o.observable){let a,c=!1;function u(e){const r=e.result;return a&&(0,A.a)(t,{data:a.data},{data:r},n.variables)||(a={data:r,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(a.missing=e.missing.missing)),a}const l=new w.c(n=>{c=!0;const o=this.watch({variables:i,returnPartialData:!0,id:e,query:t,optimistic:r,immediate:!0,callback:e=>{l.dirty=!0,this.onAfterBroadcast(()=>{n.next(u(e)),l.dirty=!1})}});return()=>{c=!1,o(),this.fragmentWatches.removeArray(s)}}).pipe((0,E.F)(),(0,x.u)({connector:()=>new O.m(1),resetOnRefCountZero:()=>(0,k.O)(0)}));o.observable=Object.assign(l,{dirty:!1,getCurrentResult:()=>c&&a?a:u(this.diff({id:e,query:t,returnPartialData:!0,optimistic:r,variables:i}))})}return o.observable}getFragmentDoc=(0,i.LV)(N,{max:l.v["cache.fragmentQueryDocuments"]||1e3,cache:m.l,makeCacheKey:_(this)});readFragment(e,t=!!e.optimistic){const n=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:n,optimistic:t})}writeQuery({id:e,data:t,...n}){return this.write(Object.assign(n,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:n,...r}){const i=void 0!==r.from?this.toCacheId(r.from):r.id;return this.write(Object.assign(r,{query:this.getFragmentDoc(t,n),dataId:i,result:e}))}updateQuery(e,t){return this.batch({update(n){const r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(n){const r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment({...e,data:i}),i)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}const D=Object.freeze({data:null,dataState:"complete",complete:!0}),C=Object.assign(new w.c(e=>{e.next(D)}),{dirty:!1,getCurrentResult:()=>D}),R=Object.freeze({data:[],dataState:"complete",complete:!0}),F=Object.assign(new w.c(e=>{e.next(R)}),{getCurrentResult:()=>R});var P=n(33245);const{hasOwnProperty:M}=Object.prototype,L=function(e,t,n){return this.merge(e[n],t[n])},j=e=>isNaN(+e)?{}:[];class V{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||L}merge(e,t,n={}){const r=n.atPath;if(r?.length){const[i,...s]=r;void 0===e&&(e=j(i));let o=e[i];void 0===o&&s.length&&(o=j(s[0]));const a=this.merge(o,t,{...n,atPath:s});return o!==a&&((e=this.shallowCopyForMerge(e))[i]=a),e}return Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,P.U)(t)&&(0,P.U)(e)?(Object.keys(t).forEach(n=>{if(M.call(e,n)){const r=e[n];if(t[n]!==r){const i=this.reconciler(e,t,n);i!==r&&((e=this.shallowCopyForMerge(e))[n]=i)}}else(e=this.shallowCopyForMerge(e))[n]=t[n]}),e):t}isObject=P.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,P.U)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e))),e}}function q(e){return{__ref:String(e)}}var U=n(59313),Q=n(91581),B=n(42189),z=n(38016),W=n(63577),G=n(61927),K=n(15590),H=n(78812);const{hasOwnProperty:$}=Object.prototype;function Y({__typename:e,id:t,_id:n},r){if("string"==typeof e&&(r&&(r.keyObject=null!=t?{id:t}:null!=n?{_id:n}:void 0),null==t&&null!=n&&(t=n),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}const J={dataIdFromObject:Y,resultCaching:!0};const X=/^[_a-z][_0-9a-z]*/i;function Z(e){const t=e.match(X);return t?t[0]:e}function ee(e,t,n){return!!(0,P.U)(t)&&((0,B.c)(t)?t.every(t=>ee(e,t,n)):e.selections.every(e=>{if((0,z.d)(e)&&(0,W.M)(e,n)){const r=(0,G.u)(e);return $.call(t,r)&&(!e.selectionSet||ee(e.selectionSet,t[r],n))}return!0}))}function te(e){return(0,P.U)(e)&&!f(e)&&!(0,B.c)(e)}function ne(e,t){const n=(0,K.J)((0,H.z)(e));return{fragmentMap:n,lookupFragment(e){let r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}const re={},ie=()=>re,se={};class oe{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),$.call(this.data,e)){const n=this.data[e];if(n&&$.call(n,t))return n[t]}return"__typename"===t&&$.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof le?this.parent.get(e,t):void 0}lookup(e,t){return t&&this.group.depend(e,"__exists"),$.call(this.data,e)?this.data[e]:this instanceof le?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let n;f(e)&&(e=e.__ref),f(t)&&(t=t.__ref);const r="string"==typeof e?this.lookup(n=e):e,i="string"==typeof t?this.lookup(n=t):t;if(!i)return;(0,p.V1)("string"==typeof n,105);const s=new V({reconciler:de}).merge(r,i);if(this.data[n]=s,s!==r&&(delete this.refs[n],this.group.caching)){const e={};r||(e.__exists=1),Object.keys(i).forEach(t=>{if(!r||r[t]!==s[t]){e[t]=1;const n=Z(t);n===t||this.policies.hasKeyArgs(s.__typename,n)||(e[n]=1),void 0!==s[t]||this instanceof le||delete s[t]}}),!e.__typename||r&&r.__typename||this.policies.rootTypenamesById[n]!==s.__typename||delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(n,e))}}modify(e,t,n){const r=this.lookup(e);if(r){const i={};let s=!1,o=!0;const a={DELETE:re,INVALIDATE:se,isReference:f,toReference:this.toReference,canRead:this.canRead,readField:(t,n)=>this.policies.readField("string"==typeof t?{fieldName:t,from:n||q(e)}:t,{store:this})};if(Object.keys(r).forEach(c=>{const u=Z(c);let l=r[c];if(void 0===l)return;const h="function"==typeof t?t:t[c]||(n?void 0:t[u]);if(h){let t=h===ie?re:h((0,U.G)(l),{...a,fieldName:u,storeFieldName:c,storage:this.getStorage(e,c)});t===se?this.group.dirty(e,c):(t===re&&(t=void 0),t!==l&&(i[c]=t,s=!0,l=t))}void 0!==l&&(o=!1)}),s)return this.merge(e,i),o&&(this instanceof le?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,n){const r=this.lookup(e);if(r){const i=this.getFieldValue(r,"__typename"),s=t&&n?this.policies.getStoreFieldName({typename:i,fieldName:t,args:n}):t;return this.modify(e,s?{[s]:ie}:ie,!!n)}return!1}evict(e,t){let n=!1;return e.id&&($.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof le&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n}clear(){this.replace(null)}extract(){const e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{$.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&$.call(e,t)||this.delete(t)}),e){const{__META:t,...n}=e;Object.keys(n).forEach(e=>{this.merge(e,n[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){const t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof le?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){const e=this.getRootIdSet(),t=this.toObject();e.forEach(n=>{$.call(t,n)&&(Object.keys(this.findChildRefIds(n)).forEach(e.add,e),delete t[n])});const n=Object.keys(t);if(n.length){let e=this;for(;e instanceof le;)e=e.parent;n.forEach(t=>e.delete(t))}return n}refs={};findChildRefIds(e){if(!$.call(this.refs,e)){const t=this.refs[e]={},n=this.data[e];if(!n)return t;const r=new Set([n]);r.forEach(e=>{f(e)&&(t[e.__ref]=!0),(0,P.U)(e)&&Object.keys(e).forEach(t=>{const n=e[t];(0,P.U)(n)&&r.add(n)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,U.G)(f(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>f(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return q(e);if(f(e))return e;const[n]=this.policies.identify(e);if(n){const r=q(n);return t&&this.merge(n,e),r}};get supportsResultCaching(){return this.group.caching}}class ae{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?(0,i.yN)():null,this.keyMaker=new y.b}depend(e,t){if(this.d){this.d(ce(e,t));const n=Z(t);n!==t&&this.d(ce(e,n)),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(ce(e,t),"__exists"===t?"forget":"setDirty")}}function ce(e,t){return t+"#"+e}function ue(e,t){fe(e)&&e.group.depend(t,"__exists")}oe.Root=class extends oe{constructor({policies:e,resultCaching:t=!0,seed:n}){super(e,new ae(t)),n&&this.replace(n)}stump=new he(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new y.b;getStorage(){return this.storageTrie.lookupArray(arguments)}};class le extends oe{id;parent;replay;group;constructor(e,t,n,r){super(t.policies,r),this.id=e,this.parent=t,this.replay=n,this.group=r,n(this)}addLayer(e,t){return new le(e,this,t,this.group)}removeLayer(e){const t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{const n=this.data[e],i=t.lookup(e);i?n?n!==i&&Object.keys(n).forEach(t=>{(0,r.L)(n[t],i[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(i).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){const t=this.parent.findChildRefIds(e);return $.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class he extends le{constructor(e){super("EntityStore.Stump",e,()=>{},new ae(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function de(e,t,n){const i=e[n],s=t[n];return(0,r.L)(i,s)?i:s}function fe(e){return!(!e||!e.supportsResultCaching)}var pe=n(60857),me=n(53265),ye=n(45318);function ve(e,t){if(e.arguments&&e.arguments.length){const n={};return e.arguments.forEach(({name:e,value:r})=>(0,ye.J)(n,e,r,t)),n}return null}const be=["connection","include","skip","client","rest","export","nonreactive","stream"];let ge=h.M;const we=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){const e=n.connection.filter?n.connection.filter:[];e.sort();const r={};e.forEach(e=>{r[e]=t[e]});const i=ge(r);if("{}"!==i)return`${n.connection.key}(${i})`}return n.connection.key}let r=e;if(t){const e=ge(t);"{}"!==e&&(r+=`(${e})`)}return n&&Object.keys(n).forEach(e=>{-1===be.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?r+=`@${e}(${ge(n[e])})`:r+=`@${e}`)}),r},{setStringify(e){const t=ge;return ge=e,t}});var Ee=n(52213);const xe={};function Oe(e){const t=JSON.stringify(e);return xe[t]||(xe[t]={})}function ke(e){const t=Oe(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,n)=>{const r=(e,t)=>n.readField(t,e),i=n.keyObject=Se(e,e=>{let i=_e(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&$.call(t,e[0])&&(i=_e(t,e,Ne)),(0,p.V1)(void 0!==i,108,e.join("."),t),i});return`${n.typename}:${JSON.stringify(i)}`})}function Te(e){const t=Oe(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:n,variables:r,fieldName:i})=>{const s=Se(e,e=>{const i=e[0],s=i.charAt(0);if("@"!==s){if("$"===s){const t=i.slice(1);if(r&&$.call(r,t)){const n=e.slice(0);return n[0]=t,_e(r,n)}return}if(t)return _e(t,e)}else if(n&&(0,Ee.E)(n.directives)){const t=i.slice(1),s=n.directives.find(e=>e.name.value===t),o=s&&ve(s,r);return o&&_e(o,e.slice(1))}}),o=JSON.stringify(s);return(t||"{}"!==o)&&(i+=":"+o),i})}function Se(e,t){const n=new V;return Ae(e).reduce((e,r)=>{let i=t(r);if(void 0!==i){for(let e=r.length-1;e>=0;--e)i={[r[e]]:i};e=n.merge(e,i)}return e},{})}function Ae(e){const t=Oe(e);if(!t.paths){const n=t.paths=[],r=[];e.forEach((t,i)=>{(0,B.c)(t)?(Ae(t).forEach(e=>n.push(r.concat(e))),r.length=0):(r.push(t),(0,B.c)(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Ne(e,t){return e[t]}function _e(e,t,n){return n=n||Ne,Ie(t.reduce(function e(t,r){return(0,B.c)(t)?t.map(t=>e(t,r)):t&&n(t,r)},e))}function Ie(e){return(0,P.U)(e)?(0,B.c)(e)?e.map(Ie):Se(Object.keys(e).sort(),t=>_e(e,t)):e}const De=new i.DX,Ce=new WeakMap;function Re(e){let t=Ce.get(e);return t||Ce.set(e,t={vars:new Set,dep:(0,i.yN)()}),t}function Fe(e){Re(e).vars.forEach(t=>t.forgetCache(e))}function Pe(e){const t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(e=>{Re(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});const i=Array.from(n);n.clear(),i.forEach(t=>t(e))}}else{const e=De.getValue();e&&(i(e),Re(e).dep(r))}return e};r.onNextChange=e=>(n.add(e),()=>{n.delete(e)});const i=r.attachCache=e=>(t.add(e),Re(e).vars.add(r),r);return r.forgetCache=e=>t.delete(e),r}function Me(e){return void 0!==e.args?e.args:e.field?ve(e.field,e.variables):null}const Le=()=>{},je=(e,t)=>t.fieldName,Ve=(e,t,{mergeObjects:n})=>n(e,t),qe=(e,t)=>t,Ue=(e,t,{streamFieldInfo:n,existingData:r})=>{if(!e&&!r)return t;const i=[],s=e??r,o=n?.isLastChunk?t.length:Math.max(s.length,t.length);for(let e=0;e{const t=ze(e,i);return n.readField(t,{store:n.cache.data,variables:t.variables})})};let o;const a=r&&this.getTypePolicy(r);let c=a&&a.keyFn||this.config.dataIdFromObject;return pe.y.withValue(!0,()=>{for(;c;){const t=c({...e,...i},s);if(!(0,B.c)(t)){o=t;break}c=ke(t)}}),o=o?String(o):void 0,s.keyObject?[o,s.keyObject]:[o]}addTypePolicies(e){Object.keys(e).forEach(t=>{const{queryType:n,mutationType:r,subscriptionType:i,...s}=e[t];n&&this.setRootTypename("Query",t),r&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),$.call(this.toBeAdded,t)?this.toBeAdded[t].push(s):this.toBeAdded[t]=[s]})}updateTypePolicy(e,t,n){const r=this.getTypePolicy(e),{keyFields:i,fields:s}=t;function o(e,t){e.merge="function"==typeof t?t:!0===t?Ve:!1===t?qe:e.merge}o(r,t.merge),r.keyFn=!1===i?Le:(0,B.c)(i)?ke(i):"function"==typeof i?i:r.keyFn,s&&Object.keys(s).forEach(t=>{let r=n[t];r&&r?.typename===e||(r=n[t]={typename:e});const i=s[t];if("function"==typeof i)r.read=i;else{const{keyArgs:e,read:t,merge:n}=i;r.keyFn=!1===e?je:(0,B.c)(e)?Te(e):"function"==typeof e?e:r.keyFn,"function"==typeof t&&(r.read=t),o(r,n)}r.read&&r.merge&&(r.keyFn=r.keyFn||je)})}setRootTypename(e,t=e){const n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,p.V1)(!r||r===e,109,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);const n=e.match(X);n&&n[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!$.call(this.typePolicies,e)){const t=this.typePolicies[e]={};t.fields={};let n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,r)=>{if(t.test(e)){const e=this.supertypeMap.get(r);e&&e.forEach(e=>n.add(e))}})),n&&n.size&&n.forEach(e=>{const{fields:n,...r}=this.getTypePolicy(e);Object.assign(t,r),Object.assign(t.fields,n)})}const t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n}fragmentMatches(e,t,n,r){if(!e.typeCondition)return!0;if(!t)return!1;const i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){const s=this.getSupertypeSet(t,!0),o=[s],a=e=>{const t=this.getSupertypeSet(e,!1);t&&t.size&&o.indexOf(t)<0&&o.push(t)};let c=!(!n||!this.fuzzySubtypes.size),u=!1;for(let l=0;l{const r=t.match(e);r&&r[0]===t&&a(n)}))}}return!1}hasKeyArgs(e,t){const n=this.getFieldPolicy(e,t);return!(!n||!n.keyFn)}getStoreFieldName(e){const{typename:t,fieldName:n}=e,r=this.getFieldPolicy(t,n);let i,s=r&&r.keyFn;if(s&&t){const r={typename:t,fieldName:n,field:e.field||null,variables:e.variables},o=Me(e);for(;s;){const e=s(o,r);if(!(0,B.c)(e)){i=e||n;break}s=Te(e)}}return void 0===i&&(i=e.field?function(e,t){let n=null;e.directives&&(n={},e.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:r,value:i})=>(0,ye.J)(n[e.name.value],r,i,t))}));let r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(({name:e,value:n})=>(0,ye.J)(r,e,n,t))),we(e.name.value,r,n)}(e.field,e.variables):we(n,Me(e))),!1===i?n:n===Z(i)?i:n+":"+i}readField(e,t){const n=e.from;if(!n)return;if(!(e.field||e.fieldName))return;if(void 0===e.typename){const r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}const r=this.getStoreFieldName(e),i=Z(r),s=t.store.getFieldValue(n,r),o=this.getFieldPolicy(e.typename,i),a=o&&o.read;if(a){const i=Be(this,n,e,t,t.store.getStorage(f(n)?n.__ref:n,r));return De.withValue(this.cache,a,[s,i])}return s}getReadFunction(e,t){const n=this.getFieldPolicy(e,t);return n&&n.read}getMergeFunction(e,t,n){let r=this.getFieldPolicy(e,t),i=r&&r.merge;return!i&&n&&(r=this.getTypePolicy(n),i=r&&r.merge),i}runMergeFunction(e,t,{field:n,typename:i,merge:s,path:o},a,c){const u=e;if(s===Ve)return We(a.store)(e,t);if(s===qe)return t;a.overwrite&&(e=void 0);const l=a.extensions?.[me.DH]?.deref()?.peekArray(o);if(l){const{current:e,previous:n}=l;if(n&&(0,r.L)(n.incoming,t)&&(0,r.L)(n.streamFieldInfo,e))return n.result}const h=s(e,t,function(e,t,n,r,i,s){const o={...Be(e,t,n,r,i),extensions:r.extensions,existingData:s},a=r.extensions;if(a&&me.DH in a){const{[me.DH]:e,...t}=a,r=e?.deref()?.peekArray(n.path);r&&(o.streamFieldInfo=r.current),o.extensions=0===Object.keys(t).length?void 0:t}return o}(this,void 0,{typename:i,fieldName:n.name.value,field:n,variables:a.variables,path:o},a,c||{},u));return l&&(l.previous={incoming:t,streamFieldInfo:l.current,result:h}),h}}function Be(e,t,n,r,i){const s=e.getStoreFieldName(n),o=Z(s),a=n.variables||r.variables,{toReference:c,canRead:u}=r.store;return{args:Me(n),field:n.field||null,fieldName:o,storeFieldName:s,variables:a,isReference:f,toReference:c,storage:i,cache:e.cache,canRead:u,readField:(...n)=>e.readField(ze(n,t,a),r),mergeObjects:We(r.store)}}function ze(e,t,n){const{0:r,1:i,length:s}=e;let o;return"string"==typeof r?o={fieldName:r,from:s>1?i:t}:(o={...r},$.call(o,"from")||(o.from=t)),void 0===o.variables&&(o.variables=n),o}function We(e){return function(t,n){if((0,B.c)(t)||(0,B.c)(n))throw(0,p.vA)(112);if((0,P.U)(t)&&(0,P.U)(n)){const r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(f(t)&&te(n))return e.merge(t.__ref,n),t;if(te(t)&&f(n))return e.merge(t,n.__ref),n;if(te(t)&&te(n))return{...t,...n}}return n}}var Ge=n(25725),Ke=n(66938);var He=n(65016),$e=n(40);class Ye extends Error{message;path;query;variables;constructor(e,t,n,r){if(super(e),this.message=e,this.path=t,this.query=n,this.variables=r,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=Ye.prototype}missing}function Je(e){return[e.selectionSet,e.objectOrReference,e.context]}class Xe{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=(0,i.LV)(e=>{const t=Je(e),n=this.executeSelectionSet.peek(...t);return n||(ue(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:l.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Je,makeCacheKey(e,t,n){if(fe(n.store))return n.store.makeCacheKey(e,f(t)?t.__ref:t,n.varString)}}),this.executeSubSelectedArray=(0,i.LV)(e=>(ue(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:l.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:n}){if(fe(n.store))return n.store.makeCacheKey(e,t,n.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:n="ROOT_QUERY",variables:r,returnPartialData:i=!0}){const s=this.config.cache.policies;r=(0,Q.o)((0,Ge.w)(function(e){const t=(0,Ke.V)(e);return(0,p.V1)(t&&"query"===t.operation,13),t}(t)),r);const o=q(n),a=this.executeSelectionSet({selectionSet:(0,He.V)(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:s,variables:r,varString:(0,h.M)(r),...ne(t,this.config.fragments)}});let c;a.missing&&(c=new Ye(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(a.missing),a.missing,t,r));const u=!c,{result:l}=a;return{result:u?l:i?0===Object.keys(l).length?null:l:null,complete:u,missing:c}}isFresh(e,t,n,r){if(fe(r.store)&&this.knownResults.get(e)===n){const i=this.executeSelectionSet.peek(n,t,r);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:n,context:r}){if(f(t)&&!r.policies.rootTypenamesById[t.__ref]&&!r.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};const{variables:i,policies:s,store:a}=r,c=a.getFieldValue(t,"__typename"),l=[];let h;const d=new V;function m(e,t){return e.missing&&(h=d.merge(h,{[t]:e.missing})),e.result}"string"!=typeof c||s.rootIdsByTypename[c]||l.push({__typename:c});const y=new Set(e.selections);y.forEach(e=>{if((0,W.M)(e,i))if((0,z.d)(e)){let i=s.readField({fieldName:e.name.value,field:e,variables:r.variables,from:t},r);const o=(0,G.u)(e);void 0===i?u.added(e)||(h=d.merge(h,{[o]:`Can't find field '${e.name.value}' on ${f(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):(0,B.c)(i)?i.length>0&&(i=m(this.executeSubSelectedArray({field:e,array:i,enclosingRef:n,context:r}),o)):e.selectionSet&&null!=i&&(i=m(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:i,enclosingRef:f(i)?i:n,context:r}),o)),void 0!==i&&l.push({[o]:i})}else{const t=(0,$e.H)(e,r.lookupFragment);if(!t&&e.kind===o.b.FRAGMENT_SPREAD)throw(0,p.vA)(113,e.name.value);t&&s.fragmentMatches(t,c)&&t.selectionSet.selections.forEach(y.add,y)}});const v={result:function(e){let t=e[0]||{};const n=e.length;if(n>1){const r=new V;for(let i=1;ivoid 0===e||r.store.canRead(e))),{result:t=t.map((t,i)=>null===t?null:(0,B.c)(t)?o(this.executeSubSelectedArray({field:e,array:t,enclosingRef:n,context:r}),i):e.selectionSet?o(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:f(t)?t:n,context:r}),i):t),missing:i}}}function Ze(e,t,n){const r=`${t}${n}`;let i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:{...e,clientOnly:t,deferred:n}),i}class et{cache;reader;fragments;constructor(e,t,n){this.cache=e,this.reader=t,this.fragments=n}writeToStore(e,{query:t,result:n,dataId:r,variables:i,overwrite:s,extensions:o}){const a=(0,Ke.V)(t),c=new V;i={...(0,Ge.w)(a),...i};const u={store:e,written:{},merge:(e,t)=>c.merge(e,t),variables:i,varString:(0,h.M)(i),...ne(t,this.fragments),overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:o},l=this.processSelectionSet({result:n||{},dataId:r,selectionSet:a.selectionSet,mergeTree:{map:new Map},context:u,path:[]});if(!f(l))throw(0,p.vA)(115,n);return u.incomingById.forEach(({storeObject:t,mergeTree:n,fieldNodeSet:r},i)=>{const s=q(i);if(n&&n.map.size){const e=this.applyMerges(n,s,t,u);if(f(e))return;t=e}e.merge(i,t)}),e.retain(l.__ref),l}processSelectionSet({dataId:e,result:t,selectionSet:n,context:r,mergeTree:i,path:s}){const{policies:o}=this.cache;let a={};const c=e&&o.rootTypenamesById[e]||ot(t,n,r.fragmentMap)||e&&r.store.get(e,"__typename");"string"==typeof c&&(a.__typename=c);const u=(...e)=>{const t=ze(e,a,r.variables);if(f(t.from)){const e=r.incomingById.get(t.from.__ref);if(e){const n=o.readField({...t,from:e.storeObject},r);if(void 0!==n)return n}}return o.readField(t,r)},l=new Set;this.flattenFields(n,t,r,c).forEach((e,n)=>{const r=(0,G.u)(n),h=t[r],d=[...s,n.name.value];if(l.add(n),void 0!==h){const t=o.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),r=nt(i,t);let s,l=this.processFieldValue(h,n,n.selectionSet?Ze(e,!1,!1):e,r,d);n.selectionSet&&(f(l)||te(l))&&(s=u("__typename",l));const p=o.getMergeFunction(c,n.name.value,s);p?r.info={field:n,typename:c,merge:p,path:d}:e.extensions?.[me.DH]&&Array.isArray(l)&&function(e){return!!e.directives&&e.directives.some(e=>"stream"===e.name.value)}(n)?r.info={field:n,typename:c,merge:Ue,path:d}:st(i,t),a=e.merge(a,{[t]:l})}else 0});try{const[i,s]=o.identify(t,{typename:c,selectionSet:n,fragmentMap:r.fragmentMap,storeObject:a,readField:u});e=e||i,s&&(a=r.merge(a,s))}catch(t){if(!e)throw t}if("string"==typeof e){const s=q(e),o=r.written[e]||(r.written[e]=[]);if(o.indexOf(n)>=0)return s;if(o.push(n),this.reader&&this.reader.isFresh(t,s,n,r))return s;const c=r.incomingById.get(e);return c?(c.storeObject=r.merge(c.storeObject,a),c.mergeTree=rt(c.mergeTree,i),l.forEach(e=>c.fieldNodeSet.add(e))):r.incomingById.set(e,{storeObject:a,mergeTree:it(i)?void 0:i,fieldNodeSet:l}),s}return a}processFieldValue(e,t,n,r,i){return t.selectionSet&&null!==e?(0,B.c)(e)?e.map((e,s)=>{const o=this.processFieldValue(e,t,n,nt(r,s),[...i,s]);return st(r,s),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r,path:i}):e}flattenFields(e,t,n,r=ot(t,e,n.fragmentMap)){const i=new Map,{policies:s}=this.cache,a=new y.b(!1);return function e(c,u){const l=a.lookup(c,u.clientOnly,u.deferred);l.visited||(l.visited=!0,c.selections.forEach(a=>{if(!(0,W.M)(a,n.variables))return;let{clientOnly:c,deferred:l}=u;if(c&&l||!(0,Ee.E)(a.directives)||a.directives.forEach(e=>{const t=e.name.value;if("client"===t&&(c=!0),"defer"===t){const t=ve(e,n.variables);t&&!1===t.if||(l=!0)}}),(0,z.d)(a)){const e=i.get(a);e&&(c=c&&e.clientOnly,l=l&&e.deferred),i.set(a,Ze(n,c,l))}else{const i=(0,$e.H)(a,n.lookupFragment);if(!i&&a.kind===o.b.FRAGMENT_SPREAD)throw(0,p.vA)(117,a.name.value);i&&s.fragmentMatches(i,r,t,n.variables)&&e(i.selectionSet,Ze(n,c,l))}}))}(e,n),i}applyMerges(e,t,n,r,i){if(e.map.size&&!f(n)){const s=(0,B.c)(n)||!f(t)&&!te(t)?void 0:t,o=n;let a;s&&!i&&(i=[f(s)?s.__ref:s]);const c=(e,t)=>(0,B.c)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{const n=c(s,t),u=c(o,t);if(void 0===u)return;i&&i.push(t);const l=this.applyMerges(e,n,u,r,i);l!==u&&(a=a||new Map,a.set(t,l)),i&&(0,p.V1)(i.pop()===t)}),a&&(n=(0,B.c)(o)?o.slice(0):{...o},a.forEach((e,t)=>{n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&r.store.getStorage(...i)):n}}const tt=[];function nt({map:e},t){return e.has(t)||e.set(t,tt.pop()||{map:new Map}),e.get(t)}function rt(e,t){if(e===t||!t||it(t))return e;if(!e||it(e))return t;const n=e.info&&t.info?{...e.info,...t.info}:e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){const n=new Set(t.map.keys());e.map.forEach((e,r)=>{i.map.set(r,rt(e,t.map.get(r))),n.delete(r)}),n.forEach(n=>{i.map.set(n,rt(t.map.get(n),e.map.get(n)))})}return i}function it(e){return!e||!(e.info||e.map.size)}function st({map:e},t){const n=e.get(t);n&&it(n)&&(tt.push(n),e.delete(t))}new Set;function ot(e,t,n){let r;for(const n of t.selections)if((0,z.d)(n)){if("__typename"===n.name.value)return e[(0,G.u)(n)]}else r?r.push(n):r=[n];if("string"==typeof e.__typename)return e.__typename;if(r)for(const t of r){const r=ot(e,(0,$e.H)(t,n).selectionSet,n);if("string"==typeof r)return r}}class at extends I{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new s.c(u);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=Pe;constructor(e={}){super(),this.config=function(e){return(0,Q.o)(J,e)}(e),this.policies=new Qe({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){const e=this.data=new oe.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){const{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new et(this,this.storeReader=new Xe({cache:this,fragments:e}),e),this.maybeBroadcastWatch=(0,i.LV)((e,t)=>this.broadcastWatch(e,t),{max:l.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{const t=e.optimistic?this.optimisticData:this.data;if(fe(t)){const{optimistic:n,id:r,variables:i}=e;return t.makeCacheKey(e.query,e.callback,(0,h.M)({optimistic:n,id:r,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){const{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if($.call(e,"id")&&!e.id)return!1;const t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;return this.watches.size||Re(t=this).vars.forEach(e=>e.attachCache(t)),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&Fe(this),this.maybeBroadcastWatch.forget(e)}}gc(e){h.M.reset(),d.y.reset();const t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(f(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}}evict(e){if(!e.id){if($.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),h.M.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),Fe(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){const t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){const{update:t,optimistic:n=!0,removeOptimistic:r,onWatchUpdated:i}=e;let s;const o=e=>{const{data:n,optimisticData:r}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return s=t(this)}finally{--this.txCount,this.data=n,this.optimisticData=r}},a=new Set;return i&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(a.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,o):!1===n?o(this.data):o(),"string"==typeof r&&(this.optimisticData=this.optimisticData.removeLayer(r)),i&&a.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){const n=i.call(this,e,t);return!1!==n&&a.delete(e),n}}),a.size&&a.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),s}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){const t=this.onAfterBroadcast,n=new Set;this.onAfterBroadcast=e=>{n.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),n.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){const{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){const{lastDiff:n}=e,i=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,i,n))||n&&(0,r.L)(n.result,i.result)||e.callback(e.lastDiff=i,n)}}},9213(e,t,n){n.d(t,{R:()=>je});var r=n(50475),i=n(81160),s=n(84705);function o(e,t,n){const r=new Set(e),i=r.size;return(0,s.YR)(t,{Directive(e){if(r.delete(e.name.value)&&(!n||!r.size))return s.sP}}),n?!r.size:r.size"unmask"===e.value))return null}})}var m=n(32453),y=n(43298),v=n(93776),b=n(61209);function g(e,t){var n=(0,b.T)(e)?e:function(){return e},r=function(e){return e.error(n())};return new v.c(t?function(e){return t.schedule(r,0,e)}:r)}var w=n(28452),E=n(37968),x=n(77512),O=n(82100);function k(){for(var e=[],t=0;t{const r=$(e,t,n,!1);return Object.isFrozen(e)&&(0,W.G)(r),r})}function $(e,t,n,r,i){const{knownChanged:s}=n,o=function(e,t){if(t.has(e))return t.get(e);const n=Array.isArray(e)?[]:{};return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(const[i,a]of Array.from(e.entries())){if(null===a){o[i]=null;continue}const e=$(a,t,n,r,void 0);s.has(e)&&s.add(o),o[i]=e}return s.has(o)?o:e}for(const c of t.selections){let t;if(r&&s.add(o),c.kind===y.b.FIELD){const i=(0,G.u)(c),a=c.selectionSet;if(t=o[i]||e[i],void 0===t)continue;if(a&&null!==t){const o=$(e[i],a,n,r,void 0);s.has(o)&&(t=o)}o[i]=t}if(c.kind!==y.b.INLINE_FRAGMENT||c.typeCondition&&!n.cache.fragmentMatches(c,e.__typename)||(t=$(e,c.selectionSet,n,r,i)),c.kind===y.b.FRAGMENT_SPREAD){const r=c.name.value,s=n.fragmentMap[r]||(n.fragmentMap[r]=n.cache.lookupFragment(r));(0,a.V1)(s,39,r);const o=(0,K.s)(c);"mask"!==o&&(t=$(e,s.selectionSet,n,"migrate"===o,i))}s.has(t)&&s.add(o)}return"__typename"in e&&!("__typename"in o)&&(o.__typename=e.__typename),Object.keys(o).length!==Object.keys(e).length&&s.add(o),s.has(o)?o:e}var Y=n(15381);var J=n(81212),X=n(32417);function Z(e){return 7===e||8===e}function ee(e){return!Z(e)}function te(e){return!!e.errors?.length}function ne(e,t=()=>{}){return n=>new v.c(r=>{let i=t();return n.subscribe({next(t){let n;try{n=e(t,i)}catch(e){r.error(e)}void 0!==n&&r.next(n)},error(e){r.error(e)},complete(){r.complete()}})})}function re(e){const t={data:e.data};return e.error&&(t.error=e.error),t}var ie=n(80433);function se(e){let t=!1;return(0,s.YR)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value),t))return s.sP}}}),t}var oe=n(42189),ae=n(52213);function ce(e,t){(0,f.s)(t);const n=ue(""),r=ue(""),i=e=>{for(let t,i=0;i=0;--e)t.definitions[e].kind===y.b.OPERATION_DEFINITION&&++o;const c=function(e){const t=new Map,n=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}),e=>{let r=t.get(e.name.value);return!r&&n.size&&n.forEach((t,n)=>{n(e)&&(r=t)}),r}}(e),u=e=>(0,ae.E)(e)&&e.map(c).some(e=>e&&e.remove),l=new Map;let h=!1;const d={enter(e){if(u(e.directives))return h=!0,null}},p=(0,s.YR)(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,n,r,s){const o=i(s);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,n,r,s){if(u(e.directives))return h=!0,null;const o=i(s);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,n,r){l.set(JSON.stringify(r),e)},leave:(e,t,n,i)=>e===l.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every(e=>e.kind===y.b.FIELD&&"__typename"===e.name.value)?(r(e.name.value).removed=!0,h=!0,null):void 0},Directive:{leave(e){if(c(e))return h=!0,null}}});if(!h)return t;const m=e=>(e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{m(r(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),v=new Set;p.definitions.forEach(e=>{e.kind===y.b.OPERATION_DEFINITION?m(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{v.add(e)}):e.kind!==y.b.FRAGMENT_DEFINITION||0!==o||r(e.name.value).removed||v.add(e.name.value)}),v.forEach(e=>{m(r(e)).fragmentSpreads.forEach(e=>{v.add(e)})});const b={enter(e){if(t=e.name.value,!v.has(t)||r(t).removed)return null;var t}};return function(e){return le((0,Q.V)(e)||function(e){(0,a.V1)("Document"===e.kind,6),(0,a.V1)(e.definitions.length<=1,7);const t=e.definitions[0];return(0,a.V1)("FragmentDefinition"===t.kind,8),t}(e),(0,B.J)((0,z.z)(e)))?null:e}((0,s.YR)(p,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave(e){if(e.variableDefinitions){const t=m(n(e.name&&e.name.value)).transitiveVars;if(t.sizet.has(e.variable.name.value))}}}}}))}function ue(e){const t=new Map;return function(n=e){let r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function le(e,t){return!e||e.selectionSet.selections.every(e=>e.kind===y.b.FRAGMENT_SPREAD&&le(t[e.name.value],t))}var he=n(25725),de=n(33245);var fe,pe=n(82920),me=n(53265),ye=n(21510);!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",e[e.streaming=9]="streaming"}(fe||(fe={}));var ve=n(31635),be=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return(0,ve.C6)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(R.B),ge=n(11437);function we(e){return e.catch(()=>{}),e}const{assign:Ee,hasOwnProperty:xe}=Object,Oe={loading:!0,networkStatus:fe.loading,data:void 0,dataState:"empty",partial:!0},ke={loading:!1,networkStatus:fe.ready,data:void 0,dataState:"empty",partial:!0};class Te{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:n=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:r="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=r,initialFetchPolicy:s=("standby"===i?r:i)}=t;t[me._K]&&((0,a.V1)("standby"===i,82),this.variablesUnknown=!0),this.lastQuery=n,this.options={...t,initialFetchPolicy:s,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const o=(0,Q.V)(this.query);this.queryName=o&&o.name&&o.name.value}initializeObservablesQueue(){this.subject=new be({query:this.query,variables:this.variables,result:Oe,meta:{}});const e=this.subject.pipe((0,L.M)({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),ne(({query:e,variables:t,result:n,meta:r},i)=>{const{shouldEmit:s}=r;if(n===Oe&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===s)return;if(1===s)return c();const{previous:o,previousVariables:a}=i;if(o){const r=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,s=i?r.nonReactiveQuery:e;if((i||r.hasNonreactiveDirective?(0,ge.a)(s,o,n,t):(0,Y.L)(o,n))&&(0,Y.L)(a,t))return}if(3!==s||this.options.notifyOnNetworkStatusChange&&!(0,Y.L)(o,n))return c();function c(){return i.previous=n,i.previousVariables=t,n}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new R.B,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;!this.queryManager.prioritizeCacheValues||"network-only"!==t&&"cache-and-network"!==t||(t="cache-first");const n=()=>{const e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?fe.ready:fe.loading,partial:!e.complete})};switch(t){case"cache-only":return{...n(),loading:!1,networkStatus:fe.ready};case"cache-first":return n();case"cache-and-network":return{...n(),loading:!0,networkStatus:fe.loading};case"standby":return ke;default:return Oe}}resubscribeCache(){const{variables:e,fetchPolicy:t}=this.options,n=this.query,r="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!Se({query:n,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((r||i)&&this.unsubscribeFromCache?.(),r||!i)return;const s={query:n,variables:e,optimistic:!0,watcher:this,callback:e=>{const t=this.queryManager.getDocumentInfo(n);if((t.hasClientExports||t.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===e)return;const{result:r}=this.subject.getValue();(e.complete||!r.error&&r!==Oe&&r!==ke)&&((0,Y.L)(r.data,e.result)||this.scheduleNotify())}},o=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,o()},{query:n,variables:e})}stableLastResult;getCurrentResult(){const{result:e}=this.subject.getValue();let t=e.networkStatus===fe.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===Oe&&(t=this.getInitialResult()),(0,Y.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){const{fetchPolicy:t}=this.options,n={pollInterval:0};return n.fetchPolicy="no-cache"===t?"no-cache":"network-only",e&&!(0,Y.L)(this.variables,e)&&(n.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(n,{newNetworkStatus:fe.refetch})}fetchMore({query:e,variables:t,context:n,errorPolicy:r,updateQuery:i}){(0,a.V1)("cache-only"!==this.options.fetchPolicy,84,(0,pe.n)(this.query,"(anonymous)"));const s={...(0,h.o)(this.options,{errorPolicy:"none"},{query:e,context:n,errorPolicy:r}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};s.query=this.transformDocument(s.query),this.lastQuery=e?this.transformDocument(this.options.query):s.query;let o=!1;const c="no-cache"!==this.options.fetchPolicy;c||(0,a.V1)(i,85);const{finalize:u,pushNotification:l}=this.pushOperation(fe.fetchMore);l({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});const{promise:d,operator:f}=Ae(),{observable:p}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:fe.fetchMore,exposeExtensions:!0}),m=p.pipe(f,(0,_.p)(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{o=!1;const t=e.value,n=t[me.X];if(Z(e.value.networkStatus)&&u(),c){const e=this.getCacheDiff();this.cache.batch({update:e=>{i?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:n},e=>i(e,{fetchMoreResult:t.data,variables:s.variables})):e.writeQuery({query:s.query,variables:s.variables,data:t.data,extensions:n})},onWatchUpdated:(n,r)=>{if(n.watcher===this&&!(0,Y.L)(r.result,e.result)){o=!0;const e=this.getCurrentResult();ee(t.networkStatus)&&l({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===fe.error?fe.ready:t.networkStatus,loading:!1,data:r.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{const e=this.getCurrentResult(),n=i(e.data,{fetchMoreResult:t.data,variables:s.variables});l({kind:"N",value:{...e,networkStatus:fe.ready,loading:!1,data:n,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return we(d.then(e=>re(this.maskResult(e))).finally(()=>{if(m.unsubscribe(),u(),c&&!o){const e=this.getCurrentResult();"streaming"===e.dataState?l({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:fe.ready}}):l({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){const t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{const{updateQuery:n,onError:r}=e,{error:i}=t;i?r?r(i):a.V1.error(86,i):n&&this.updateQuery((e,r)=>n(e,{subscriptionData:t,...r}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){const t=(0,h.o)(this.options,e||{});Ee(this.options,t),this.updatePolling()}async setVariables(e){return e=this.getVariablesWithDefaults(e),(0,Y.L)(this.variables,e)?re(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:fe.setVariables}):re(this.getCurrentResult()))}updateQuery(e){const{queryManager:t}=this,{result:n,complete:r}=this.getCacheDiff({optimistic:!1}),i=e(n,{variables:this.variables,complete:!!r,previousData:n});i&&(this.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){const{fetchPolicy:n="cache-first",initialFetchPolicy:r=n}=t;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,n,{reason:e,options:t,observable:this,initialFetchPolicy:r}):t.fetchPolicy="variables-changed"===e?r:t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,n,r){const i=this.options.fetchPolicy;e.context??={};let s=!1;let{observable:o,fromLink:a}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:n,onCacheHit:()=>{s=!0},fetchQueryOperator:e=>new v.c(n=>{try{return e.subscribe({next(e){s=!0,n.next(e)},error:e=>n.error(e),complete:()=>n.complete()})}finally{s||(l.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:c,variables:u,meta:{shouldEmit:3,fetchPolicy:i}}))}}),observableQuery:this});const{query:c,variables:u}=this,l={abort:()=>{d.unsubscribe()},query:c,variables:u};this.activeOperations.add(l);let h=t==fe.refetch||t==fe.setVariables;o=o.pipe(r,(0,D.u)());const d=o.pipe((0,L.M)({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?l.override=t:delete l.override},finalize:()=>this.activeOperations.delete(l)})).subscribe({next:e=>{const t={};h&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(h=!1,t.shouldEmit=1),this.input.next({...e,query:c,variables:u,meta:t})}});return{fromLink:a,subscription:d,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;const{pollingInfo:e,options:{fetchPolicy:t,pollInterval:n}}=this,r=()=>{const{options:e}=this;return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(r())return void this.cancelPolling();if(e?.interval===n)return;(e||(this.pollingInfo={})).interval=n;const i=()=>{if(r())return this.cancelPolling();this.pollingInfo&&(ee(this.networkStatus)||this.options.skipPollAttempt?.()?s():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:fe.poll}).then(s,s))},s=()=>{const e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(i,e.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:n}=t||{};this.queryManager.obsQueries.add(this);const r=n===fe.refetch||n===fe.poll,i=this.variables,s=this.options.fetchPolicy,o=(0,h.o)(this.options,e||{});this.variablesUnknown&&="standby"===o.fetchPolicy;const a=r?o:Ee(this.options,o),c=this.transformDocument(a.query);this.lastQuery=c,e&&"variables"in e&&(a.variables=this.getVariablesWithDefaults(e.variables)),r||(this.updatePolling(),!e||!e.variables||(0,Y.L)(e.variables,i)||"standby"===a.fetchPolicy||a.fetchPolicy!==s&&"function"!=typeof a.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",a),void 0===n&&(n=fe.setVariables)));const u=this.networkStatus;n||(n=fe.loading,u!==fe.loading&&e?.variables&&!(0,Y.L)(e.variables,i)&&(n=fe.setVariables),"standby"===a.fetchPolicy&&(n=fe.ready)),"standby"===a.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();const{promise:l,operator:d}=Ae("standby"===a.fetchPolicy?{data:void 0}:void 0),{subscription:f,observable:p,fromLink:m}=this.fetch(a,n,c,d);r||!m&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=f);const y=Object.assign(we(l.then(e=>re(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{const e=p.subscribe({}),t=()=>e.unsubscribe();return l.then(t,t),y}});return y}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){const t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){const e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}const{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){const e=this.getCacheDiff();(0,Y.L)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:fe.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1;const{query:n,variables:r}=this,i=()=>{this.activeOperations.delete(s)},s={override:e,abort:()=>{t=!0,i()},query:n,variables:r};return this.activeOperations.add(s),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:n,variables:r,meta:{...i}})}}}calculateNetworkStatus(e){if(e===fe.streaming)return e;const t=Array.from(this.activeOperations.values()).reverse().find(e=>Se(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){const e="cache-only"===this.options.fetchPolicy;this.setResult(e?ke:Oe,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=ne(e=>{const{query:t,meta:n}=e;if("setResult"===e.source)return{query:t,variables:this.variables,result:e.value,meta:n};if("C"===e.kind)return;const r="resolvedVariables"in e?e.resolvedVariables:void 0;if(e.query!==this.query)return;if(!(0,Y.L)(r,this.variables)){if(!(0,Y.L)(e.variables,this.variables))return;r&&(this.options.variables=r,this.resubscribeCache())}const i=this.variables;let s;const o=this.subject.getValue();if("cache"===e.source){if(s=e.value,s.networkStatus===fe.ready&&s.partial&&(!this.options.returnPartialData||o.result.networkStatus===fe.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),s="E"===e.kind?{...Se(o,e)||r&&(0,Y.L)(r,o.variables)?o.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:fe.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===s.dataState&&(s.dataState="complete"),s.error&&(n.shouldEmit=1);else if("newNetworkStatus"===e.source){const t=Se(o,e)?o.result:this.getInitialResult(n.fetchPolicy),{resetError:r}=e.value,i=r?void 0:t.error,a=i?fe.error:fe.ready;s={...t,error:i,networkStatus:a}}return(0,a.V1)(s),s.error||delete s.error,s.networkStatus=this.calculateNetworkStatus(s.networkStatus),s.loading=ee(s.networkStatus),s=this.maskResult(s),void 0!==o.result.data&&s.data!==o.result.data&&(0,Y.L)(s.data,o.result.data)&&(s.data=o.result.data),{query:t,variables:i,result:s,meta:n}});reobserveCacheFirst(){const{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(n,r){return this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(n,r):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function Se(e,t){return!!(e&&t&&e.query===t.query&&(0,Y.L)(e.variables,t.variables))}function Ae(e){let t,n,r=e;return{promise:new Promise((e,r)=>{t=e,n=r}),operator:(0,L.M)({next(e){if("E"===e.kind)return n(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(r=e.value)},finalize:()=>{if(r)t(r);else{const e="The operation was aborted.",t="AbortError";n("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(new Error(e),{name:t}))}}})}}const Ne={},_e=new WeakMap;function Ie(e,t){const n=e[t];"function"==typeof n&&(e[t]=function(){return _e.set(e,(_e.get(e)+1)%1e15),n.apply(this,arguments)})}const De=new WeakMap;class Ce{cache;queryManager;id;observableQuery;incremental;constructor(e,t){const n=this.cache=e.cache,r=(De.get(e)||0)+1;De.set(e,r),this.id=r+"",this.observableQuery=t,this.queryManager=e,_e.has(n)||(_e.set(n,0),Ie(n,"evict"),Ie(n,"modify"),Ie(n,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){const{lastWrite:n}=this;return!(n&&n.dmCount===_e.get(this.cache)&&(0,Y.L)(t,n.variables)&&(0,Y.L)(e.data,n.result.data)&&e.extensions?.[me.DH]===n.result.extensions?.[me.DH])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,n){const{incrementalHandler:r}=this.queryManager;return r.isIncrementalResult(t)?(this.incremental||=r.startRequest({query:n}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:n,errorPolicy:r,cacheWriteBehavior:i}){const s={query:t,variables:n,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();const o=0===i,a=o?void 0:this.cache.diff(s);let c=this.maybeHandleIncrementalResult(a?.result,e,t);if(o)return c;if(Re(c,r)){let e=!1;this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:r=>{if(this.shouldWrite(c,n))r.writeQuery({query:t,data:c.data,variables:n,overwrite:1===i,extensions:c.extensions}),e=!0,this.lastWrite={result:c,variables:n,dmCount:_e.get(this.cache)};else if(a&&a.complete)return void(c={...c,data:a.result});const o=r.diff(s);o.complete&&(c={...c,data:o.result})}})}else this.lastWrite=void 0;return c}markMutationResult(e,t,n=this.cache){const r=[],i=0===t.cacheWriteBehavior;let s=this.maybeHandleIncrementalResult(i?void 0:n.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(s={...s,errors:[]}),te(s)&&"none"===t.errorPolicy)return Promise.resolve(s);const o=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!i&&Re(s,t.errorPolicy)){r.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:s.extensions});const{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{const n=t&&t.queryName;if(!n||!Object.hasOwnProperty.call(e,n))return;const i=e[n],{query:s,variables:a}=t,{result:c,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&c){const e=i(c,{mutationResult:o(),queryName:s&&(0,pe.n)(s)||void 0,queryVariables:a});e&&r.push({result:e,dataId:"ROOT_QUERY",query:s,variables:a})}})}let a=t.refetchQueries;if("function"==typeof a&&(a=a(o())),r.length>0||(a||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){const e=[];if(this.queryManager.refetchQueries({updateCache:e=>{i||r.forEach(t=>e.write(t));const{update:n}=t;if(n){if(!i){const n=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});n.complete&&(s={...s,data:n.result})}this.hasNext||n(e,s,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:n})=>"__typename"===t?e:n})},include:a,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(e,t){const n="function"==typeof e?e(t.variables,{IGNORE:Ne}):e;return n!==Ne&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:n},t,e)}catch(e){a.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:n,errorPolicy:r,cacheWriteBehavior:i}){0!==i&&(Re(e,r)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:n,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function Re(e,t="none"){const n="ignore"===t||"all"===t;let r=!te(e);return!r&&n&&e.data&&(r=!0),r}class Fe{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){const t=new l.c(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const n=e.documentTransform;this.documentTransform=n?t.concat(n).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,a.vA)(90))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:n,updateQueries:r,refetchQueries:s=[],awaitRefetchQueries:o=!1,update:a,onQueryUpdated:c,fetchPolicy:u,errorPolicy:l,keepRootFields:h,context:d}){const f=new Ce(this);e=this.cache.transformForLink(this.transform(e));const{hasClientExports:p}=this.getDocumentInfo(e);t=this.getVariables(e,t),p&&(t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:d}));const m=this.mutationStore&&(this.mutationStore[f.id]={mutation:e,variables:t,loading:!0,error:null}),y=n&&f.markMutationOptimistic(n,{document:e,variables:t,cacheWriteBehavior:"no-cache"===u?0:2,errorPolicy:l,context:d,updateQueries:r,update:a,keepRootFields:h});return this.broadcastQueries(),new Promise((p,v)=>{const b={};return this.getObservableFromLink(e,{...d,optimisticResponse:y?n:void 0},t,u,{},!1).observable.pipe(Pe(),(0,w.Z)(n=>{const i={...n};return(0,E.H)(f.markMutationResult(i,{document:e,variables:t,cacheWriteBehavior:"no-cache"===u?0:2,errorPolicy:l,context:d,update:a,updateQueries:r,awaitRefetchQueries:o,refetchQueries:s,removeOptimistic:y?f.id:void 0,onQueryUpdated:c,keepRootFields:h}))})).pipe((0,i.T)(e=>{if(te(e)&&"none"===l)throw new V.K(Le(e));return m&&(m.loading=!1,m.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!f.hasNext){const n={data:this.maskOperation({document:e,data:t.data,fetchPolicy:u,cause:b})};te(t)&&(n.error=new V.K(t)),Object.keys(t.extensions||{}).length&&(n.extensions=t.extensions),p(n)}},error:e=>(m&&(m.loading=!1,m.error=e),y&&this.cache.removeOptimistic(f.id),this.broadcastQueries(),"ignore"===l?p({data:void 0}):"all"===l?p({data:void 0,error:e}):void v(e))})})}fetchQuery(e,t){return(0,f.s)(e.query,r.cE.QUERY),(async()=>(0,x.s)(this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(ne(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return re(e.value)}})),{defaultValue:{data:void 0}}))()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new ie.A(J.v["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){const{transformCache:t}=this;if(!t.has(e)){const n=(0,Q.V)(e),r={hasClientExports:o(["client","export"],e,!0),hasForcedResolvers:se(e),hasNonreactiveDirective:o(["nonreactive"],e),hasIncrementalDirective:o(["defer"],e),nonReactiveQuery:Me(e),clientQuery:o(["client"],e)?e:null,serverQuery:ce([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:(0,he.w)(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,r)}const n=t.get(e);if(n.violation)throw n.violation;return n}getVariables(e,t){const n=this.getDocumentInfo(e).defaultVars,r=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?n[e]:t]);return{...n,...Object.fromEntries(r)}}watchQuery(e){(0,f.s)(e.query,r.cE.QUERY);const t=this.transform(e.query);void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0);return new Te({queryManager:this,options:e,transformedQuery:t})}query(e){const t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(n=>({...n,data:this.maskOperation({document:t,data:n?.data,fetchPolicy:e.fetchPolicy})}))}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,a.vA)(92)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){const t=new Set,n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)n.set(e,e),r.set(e,!1);else if(t=e,(0,de.U)(t)&&"Document"===t.kind&&Array.isArray(t.definitions)){const t=(0,X.y)(this.transform(e));n.set(t,(0,pe.n)(e)),r.set(t,!1)}else(0,de.U)(e)&&e.query&&i.add(e);var t}),this.obsQueries.forEach(n=>{const i=(0,X.y)(this.transform(n.options.query));if("all"===e)return void t.add(n);const{queryName:s,options:{fetchPolicy:o}}=n;"active"===e&&"standby"===o||("active"===e||s&&r.has(s)||i&&r.has(i))&&(t.add(n),s&&r.set(s,!0),i&&r.set(i,!0))}),i.size&&i.forEach(e=>{const n=new Te({queryManager:this,options:{...d(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(n)}),t}refetchObservableQueries(e=!1){const t=[];return this.getObservableQueries(e?"all":"active").forEach(n=>{const{fetchPolicy:r}=n.options;!e&&"standby"===r||"cache-only"===r||t.push(n.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let{query:t,variables:n}=e;const{fetchPolicy:s="cache-first",errorPolicy:o="none",context:a={},extensions:c={}}=e;let u;(0,f.s)(t,r.cE.SUBSCRIPTION),t=this.transform(t),n=this.getVariables(t,n);const l=(this.getDocumentInfo(t).hasClientExports?(0,E.H)(this.localState.getExportedVariables({client:this.client,document:t,variables:n,context:a})):k(n)).pipe((0,w.Z)(e=>{const{observable:n,restart:r}=this.getObservableFromLink(t,a,e,s,c),l=new Ce(this);return u=r,n.pipe((0,i.T)(n=>{l.markSubscriptionResult(n,{document:t,variables:e,errorPolicy:o,cacheWriteBehavior:"no-cache"===s?0:2});const r={data:n.data??void 0};return te(n)?r.error=new V.K(n):(0,q.uR)(n)&&(r.error=n.extensions[q.K$],delete n.extensions[q.K$]),n.extensions&&Object.keys(n.extensions).length&&(r.extensions=n.extensions),r.error&&"none"===o&&(r.data=void 0),"ignore"===o&&delete r.error,r}),N(e=>k("ignore"===o?{data:void 0}:{data:void 0,error:e})),(0,_.p)(e=>!(!e.data&&!e.error)))}));return Object.assign(l,{restart:()=>u?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new m.b(!1);getObservableFromLink(e,t,n,i,s,o=t?.queryDeduplication??this.queryDeduplication){let c={};const{serverQuery:l,clientQuery:h,operationType:d,hasIncrementalDirective:f}=this.getDocumentInfo(e),p=(0,pe.n)(e),m={client:this.client};if(l){const{inFlightLinkObservables:b,link:x}=this;try{const O=this.incrementalHandler.prepareRequest({query:l,variables:n,context:{...this.defaultContext,...t,queryDeduplication:o},extensions:s});function T(e){return new v.c(t=>{function n(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let r=n();return c.restart||=()=>{r.unsubscribe(),r=n()},()=>{r.unsubscribe(),c.restart=void 0}})}if(t=O.context,o){const S=(0,X.y)(l),_=(0,j.M)(n);c=b.lookup(S,_),c.observable||(c.observable=u(x,O,m).pipe(T,(y=()=>{b.peek(S,_)===c&&b.remove(S,_)},(0,A.N)(function(e,t){try{e.subscribe(t)}finally{t.add(y)}})),d===r.cE.SUBSCRIPTION?(0,D.u)():(0,C.t)({refCount:!0})))}else c.observable=u(x,O,m).pipe(T)}catch(I){c.observable=g(()=>I)}}else c.observable=k({data:{}});var y;if(h){const{operation:R}=(0,Q.V)(e);0,(0,a.V1)(!f,97,R[0].toUpperCase()+R.slice(1),p??"(anonymous)"),c.observable=c.observable.pipe((0,w.Z)(e=>(0,E.H)(this.localState.execute({client:this.client,document:h,remoteResult:e,context:t,variables:n,fetchPolicy:i}))))}return{restart:()=>c.restart?.(),observable:c.observable.pipe(N(e=>{throw function(e){U.add(e)}(e=(0,q.$b)(e)),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:n,observableQuery:r,exposeExtensions:s}){const{errorPolicy:o}=e,a=this.cache.transformForLink(e.query);return this.getObservableFromLink(a,e.context,e.variables,e.fetchPolicy).observable.pipe((0,i.T)(i=>{const c=t.markQueryResult(i,{...e,document:a,cacheWriteBehavior:n}),u=te(c);if(u&&"none"===o)throw t.resetLastWrite(),r?.resetNotifications(),new V.K(Le(c));const l={data:c.data,...t.hasNext?{loading:!0,networkStatus:fe.streaming,dataState:"streaming",partial:!0}:{dataState:c.data?"complete":"empty",loading:!1,networkStatus:fe.ready,partial:!c.data}};return s&&"extensions"in c&&(l[me.X]=c.extensions),u&&("none"===o&&(l.data=void 0,l.dataState="empty"),"ignore"!==o&&(l.error=new V.K(Le(c)),"streaming"!==l.dataState&&(l.networkStatus=fe.error))),l}),N(e=>{if("none"===o)throw t.resetLastWrite(),r?.resetNotifications(),e;const n={data:void 0,dataState:"empty",loading:!1,networkStatus:fe.ready,partial:!0};return"ignore"!==o&&(n.error=e,n.networkStatus=fe.error),k(n)}))}fetchObservableWithInfo(e,{networkStatus:t=fe.loading,query:n=e.query,fetchQueryOperator:r=e=>e,onCacheHit:i=()=>{},observableQuery:s,exposeExtensions:o}){const a=this.getVariables(n,e.variables);let{fetchPolicy:c="cache-first",errorPolicy:u="none",returnPartialData:l=!1,notifyOnNetworkStatusChange:h=!0,context:d={}}=e;!this.prioritizeCacheValues||"network-only"!==c&&"cache-and-network"!==c||(c="cache-first");const f=Object.assign({},e,{query:n,variables:a,fetchPolicy:c,errorPolicy:u,returnPartialData:l,notifyOnNetworkStatusChange:h,context:d}),p=new Ce(this,s),m=n=>{f.variables=n;const a="no-cache"===c?0:t===fe.refetch&&"merge"!==f.refetchWritePolicy?1:2,u=this.fetchQueryByPolicy(f,{queryInfo:p,cacheWriteBehavior:a,onCacheHit:i,observableQuery:s,exposeExtensions:o});return u.observable=u.observable.pipe(r),"standby"!==f.fetchPolicy&&s?.applyNextFetchPolicy("after-fetch",e),u},y=()=>{this.fetchCancelFns.delete(p.id)};this.fetchCancelFns.set(p.id,e=>{b.next({kind:"E",error:e,source:"network"})});const b=new R.B;let g,x;if(this.getDocumentInfo(f.query).hasClientExports)g=(0,E.H)(this.localState.getExportedVariables({client:this.client,document:f.query,variables:f.variables,context:f.context})).pipe((0,w.Z)(e=>m(e).observable)),x=!0;else{const e=m(f.variables);x=e.fromLink,g=e.observable}return{observable:new v.c(e=>{e.add(y),g.subscribe(e),b.subscribe(e)}).pipe((0,D.u)()),fromLink:x}}refetchQueries({updateCache:e,include:t,optimistic:n=!1,removeOptimistic:r=(n?(0,ye.v)("refetchQueries"):void 0),onQueryUpdated:i}){const s=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;const t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});const o=new Map;if(e){const t=new Set;this.cache.batch({update:e,optimistic:n&&r||!1,removeOptimistic:r,onWatchUpdated(e,n,r){const a=e.watcher;if(a instanceof Te&&!t.has(a)){if(t.add(a),i){s.delete(a);let e=i(a,n,r);return!0===e&&(e=a.refetch().retain()),!1!==e&&o.set(a,e),e}null!==i&&"cache-only"!==a.options.fetchPolicy&&s.set(a,{oq:a,lastDiff:r,diff:n})}}})}return s.size&&s.forEach(({oq:e,lastDiff:t,diff:n})=>{let r;i&&(n||(n=e.getCacheDiff()),r=i(e,n,t)),i&&!0!==r||(r=e.refetch().retain()),!1!==r&&o.set(e,r)}),r&&this.cache.removeOptimistic(r),o}noCacheWarningsByCause=new WeakSet;maskOperation(e){const{document:t,data:n}=e;return this.dataMasking?function(e,t,n){const r=(0,Q.V)(t);return(0,a.V1)(r,43),null==e?e:H(e,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:(0,B.J)((0,z.z)(t)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(n,t,this.cache):n}maskFragment(e){const{data:t,fragment:n,fragmentName:r}=e;return this.dataMasking?function(e,t,n,r){const i=t.definitions.filter(e=>e.kind===y.b.FRAGMENT_DEFINITION);void 0===r&&((0,a.V1)(1===i.length,41,i.length),r=i[0].name.value);const s=i.find(e=>e.name.value===r);return(0,a.V1)(!!s,42,r),null==e||(0,Y.L)(e,{})?e:H(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:(0,B.J)((0,z.z)(t)),cache:n,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,n,this.cache,r):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:n,errorPolicy:r,returnPartialData:s,context:o},{cacheWriteBehavior:a,onCacheHit:c,queryInfo:u,observableQuery:l,exposeExtensions:h}){const d=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),f=(i,a)=>{const u=i.result;const l=e=>(i.complete||s||(e=void 0),{data:e,dataState:i.complete?"complete":e?"partial":"empty",loading:ee(a),networkStatus:a,partial:!i.complete}),h=e=>k({kind:"N",value:l(e),resolvedVariables:t,source:"cache"});return(i.complete||s)&&this.getDocumentInfo(e).hasForcedResolvers?(c(),(0,E.H)(this.localState.execute({client:this.client,document:e,remoteResult:u?{data:u}:void 0,context:o,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:n}).then(e=>({kind:"N",value:l(e.data||void 0),resolvedVariables:t,source:"cache"})))):"none"===r&&a===fe.refetch&&i.missing?h(void 0):h(u||void 0)},p=()=>this.getResultsFromLink({query:e,variables:t,context:o,fetchPolicy:n,errorPolicy:r},{cacheWriteBehavior:a,queryInfo:u,observableQuery:l,exposeExtensions:h}).pipe(Pe(),(0,A.N)(function(e,t){e.subscribe((0,S._)(t,function(e){t.next(P.createNext(e))},function(){t.next(P.createComplete()),t.complete()},function(e){t.next(P.createError(e)),t.complete()}))}),(0,i.T)(e=>({...e,resolvedVariables:t,source:"network"})));switch(n){default:case"cache-first":{const e=d();return e.complete?{fromLink:!1,observable:f(e,fe.ready)}:s?{fromLink:!0,observable:(0,M.x)(f(e,fe.loading),p())}:{fromLink:!0,observable:p()}}case"cache-and-network":{const e=d();return e.complete||s?{fromLink:!0,observable:(0,M.x)(f(e,fe.loading),p())}:{fromLink:!0,observable:p()}}case"cache-only":return{fromLink:!1,observable:(0,M.x)(f(d(),fe.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:p()};case"standby":return{fromLink:!1,observable:F.w}}}}function Pe(){let e=!1;return(0,L.M)({next(){e=!0},complete(){(0,a.V1)(e,101)}})}function Me(e){return(0,s.YR)(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:y.b.DIRECTIVE,name:{kind:y.b.NAME,value:"nonreactive"}}]}}})}function Le(e){if(null==e.extensions?.[me.DH])return e;const{extensions:{[me.DH]:t,...n},...r}=e;return Object.keys(n).length>0&&(r.extensions=n),r}class je{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){const{cache:t,documentTransform:n,ssrMode:r=!1,ssrForceFetchDelay:i=0,queryDeduplication:s=!0,defaultOptions:o,defaultContext:a,assumeImmutableResults:u=t.assumeImmutableResults,localState:l,devtools:h,dataMasking:d,link:f,incrementalHandler:p=new c,experiments:m=[],refetchEventManager:y}=e;this.link=f,this.cache=t,this.queryDeduplication=s,this.defaultOptions=o||{},this.devtoolsConfig={...h,enabled:h?.enabled??!1},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=this.refetchObservableQueries.bind(this),this.version="4.2.11",this.queryManager=new Fe({client:this,defaultOptions:this.defaultOptions,defaultContext:a,documentTransform:n,queryDeduplication:s,ssrMode:r,dataMasking:!!d,clientOptions:e,incrementalHandler:p,assumeImmutableResults:u,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:l}),this.prioritizeCacheValues=r||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools(),m.forEach(t=>t.call(this,e)),this.refetchEventManager=y,this.refetchEventManager?.connect(this)}connectToDevTools(){if("undefined"==typeof window)return;const e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(e){const{refetchOn:t}=e;if(this.defaultOptions.watchQuery){const n=this.defaultOptions.watchQuery.refetchOn;let r;t&&"object"==typeof t&&("object"==typeof n?r={...n,...t}:null!=n&&(r=e=>{const r=t[e.source]??n;return"function"==typeof r?r(e):r})),e=d(this.defaultOptions.watchQuery,e),r&&(e.refetchOn=r)}return this.queryManager.watchQuery(e)}query=e=>(this.defaultOptions.query&&(e=d(this.defaultOptions.query,e)),this.queryManager.query(e));mutate=e=>{const t=d((0,h.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return(0,f.s)(t.mutation,r.cE.MUTATION),this.queryManager.mutate(t)};subscribe(e){const t={},n=this.queryManager.startGraphQLSubscription(e),r=n.pipe((0,i.T)(n=>({...n,data:this.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,cause:t})})));return Object.assign(r,{restart:n.restart})}readQuery(e,t=!!e.optimistic){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){const t=this.queryManager.dataMasking,n=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return n}readFragment(e,t=!!e.optimistic){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){const t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){const t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return u(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){const t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach((e,t)=>{n.push(t),r.push(e)});const i=Promise.all(r);return i.queries=n,i.results=r,i.catch(e=>{}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new l.c(p);transform(e,t=!1){const n=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(n):n}}},78740(e,t,n){n.d(t,{K:()=>s});var r=n(35974);function i(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}class s extends Error{static is(e){return(0,r.t)(e,"CombinedGraphQLErrors")}static formatMessage=i;errors;data;extensions;constructor(e,t=e.errors||[]){super(s.formatMessage(t,{result:e,defaultFormatMessage:i})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",(0,r.w)(this),Object.setPrototypeOf(this,s.prototype)}}},62335(e,t,n){n.d(t,{d:()=>s});var r=n(35974);function i(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class s extends Error{static is(e){return(0,r.t)(e,"CombinedProtocolErrors")}static formatMessage=i;errors;constructor(e){super(s.formatMessage(e,{defaultFormatMessage:i})),this.name="CombinedProtocolErrors",this.errors=e,(0,r.w)(this),Object.setPrototypeOf(this,s.prototype)}}},61024(e,t,n){n.d(t,{g:()=>i});var r=n(35974);class i extends Error{static is(e){return(0,r.t)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,r.w)(this),Object.setPrototypeOf(this,i.prototype)}}},99568(e,t,n){n.d(t,{K$:()=>o,uR:()=>a,$b:()=>c});var r=n(62335);var i=n(35974);class s extends Error{static is(e){return(0,i.t)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",(0,i.w)(this),Object.setPrototypeOf(this,s.prototype)}}const o=Symbol();function a(e){return"extensions"in e&&r.d.is(e.extensions[o])}function c(e){return function(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)}(e)?e:"string"==typeof e?new Error(e,{cause:e}):new s(e)}},35974(e,t,n){function r(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function i(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}n.d(t,{t:()=>r,w:()=>i})},48531(e,t,n){n.d(t,{C:()=>a});var r=n(61701),i=n(82920),s=n(66938);var o=n(65560);class a{static empty(){return new a(()=>r.w)}static from(e){if(0===e.length)return a.empty();const[t,...n]=e;return t.concat(...n)}static split(e,t,n=new a((e,t)=>t(e))){const r=new a((r,i)=>{const s=e(r);return s?t.request(r,i):n.request(r,i)});return Object.assign(r,{left:t,right:n})}static execute(e,t,n){return e.request(function(e,{client:t}){const n={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:(0,i.n)(e.query),operationType:(0,s.V)(e.query).operation};let r={...e.context};const o=()=>Object.freeze({...r});return Object.defineProperty(n,"setContext",{enumerable:!1,value:e=>{r="function"==typeof e?{...r,...e(o())}:{...r,...e}}}),Object.defineProperty(n,"getContext",{enumerable:!1,value:o}),Object.defineProperty(n,"client",{enumerable:!1,value:t}),n}(t,n),()=>r.w)}static concat(...e){return a.from(e)}constructor(e){e&&(this.request=e)}split(e,t,n){return this.concat(a.split(e,t,n))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){const n=new a((n,r)=>e.request(n,e=>t.request(e,r)));return Object.assign(n,{left:e,right:t})}request(e,t){throw(0,o.vA)(65)}left;right}},84942(e,t,n){n.d(t,{P:()=>D});var r=n(48531),i=n(91581);class s extends r.C{constructor(e={}){super((t,n)=>{const r=t.client,s=r.queryManager.clientOptions,o=t.getContext();{const{name:n,version:r,transport:a="headers"}=(0,i.o)({},s.clientAwareness,e.clientAwareness,o.clientAwareness);"headers"===a&&t.setContext(({headers:e})=>({headers:(0,i.o)({"apollographql-client-name":n,"apollographql-client-version":r},e)}))}{const{transport:n="extensions"}=(0,i.o)({},s.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===n&&(t.extensions=(0,i.o)({clientLibrary:{name:"@apollo/client",version:r.version}},t.extensions)),"headers"===n&&t.setContext(({headers:e})=>({headers:(0,i.o)({"apollographql-library-name":"@apollo/client","apollographql-library-version":r.version},e)}))}return n(t)})}}var o=n(93776),a=n(84705);var c=n(66938);function u(e,t){return(0,c.V)(e)?.operation===t}var l=n(62735),h=n(99568),d=n(62335),f=n(61024),p=n(35974);class m extends Error{static is(e){return(0,p.t)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,p.w)(this),Object.setPrototypeOf(this,m.prototype)}}var y=n(33245),v=n(65560);const{hasOwnProperty:b}=Object.prototype;function g(e){return(0,y.U)(e)&&"payload"in e}async function w(e,t){for await(const n of async function*(e){const t=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),r=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),i="\r\n--"+(r?r[1]??r[2]??r[3]??"-":"-");let s="";(0,v.V1)(e.body&&"function"==typeof e.body.getReader,62);const o=e.body.getReader();let a,c=!1,u=!1;const l=()=>u&&"-"==s[0]&&"-"==s[1];try{for(;!c;){({value:a,done:c}=await o.read());const e="string"==typeof a?a:t.decode(a),n=s.length-i.length+1;s+=e;let r=s.indexOf(i,n);for(;r>-1&&!l();){let e;u=!0,[e,s]=[s.slice(0,r),s.slice(r+i.length)];const t=e.indexOf("\r\n\r\n"),n=E(e.slice(0,t))["content-type"];if(n&&-1===n.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");const o=e.slice(t);o&&(yield o),r=s.indexOf(i)}if(l())return}throw new Error("premature end of multipart body")}finally{o.cancel()}}(e)){const r=x(e,n);if(0!=Object.keys(r).length)if(g(r)){if(1===Object.keys(r).length&&null===r.payload)return;let e={...r.payload};"errors"in r&&(e.extensions={...e.extensions,[h.K$]:new d.d(r.errors??[])}),t(e)}else t(r)}}function E(e){const t={};return e.split("\n").forEach(e=>{const n=e.indexOf(":");if(n>-1){const r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}function x(e,t){if(e.status>=300)throw new f.g(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(n){throw new m(n,{response:e,bodyText:t})}}function O(e,t){const n=e.headers.get("content-type");return n?.includes("application/graphql-response+json")?function(e,t){try{return JSON.parse(t)}catch(n){throw new m(n,{response:e,bodyText:t})}}(e,t):x(e,t)}var k=n(32417);const T={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},S=(e,t)=>t(e);function A(e,t,...n){let r={},i={};n.forEach(e=>{r={...r,...e.options,headers:{...r.headers,...e.headers}},e.credentials&&(r.credentials=e.credentials),r.headers.accept=(e.http?.accept||[]).concat(r.headers.accept).join(","),i={...i,...e.http}}),r.headers=function(e,t){if(!t){const t={};return Object.keys(Object(e)).forEach(n=>{t[n.toLowerCase()]=e[n]}),t}const n={};Object.keys(Object(e)).forEach(t=>{n[t.toLowerCase()]={originalName:t,value:e[t]}});const r={};return Object.keys(n).forEach(e=>{r[n[e].originalName]=n[e].value}),r}(r.headers,i.preserveHeaderCase);const{operationName:s,extensions:o,variables:a,query:c}=e,u={operationName:s,variables:a};return i.includeExtensions&&Object.keys(o||{}).length&&(u.extensions=o),i.includeQuery&&(u.query=t(c,k.y)),{options:r,body:u}}const N=(0,l.n)(()=>fetch);function _(){}class I extends r.C{constructor(e={}){let{uri:t="/graphql",fetch:n,print:r=S,includeExtensions:s,preserveHeaderCase:c,useGETForQueries:h,includeUnusedVariables:d=!1,...p}=e;const m={http:(0,i.o)({includeExtensions:s,preserveHeaderCase:c}),options:p.fetchOptions,credentials:p.credentials,headers:p.headers};super(e=>{let i=((e,t)=>{const n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")})(e,t);const s=e.getContext(),c={...s.http};u(e.query,"subscription")&&(c.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...c.accept||[]]);const p={http:c,options:s.fetchOptions,credentials:s.credentials,headers:s.headers},{options:y,body:v}=A(e,r,T,m,p);v.variables&&!d&&(v.variables=function(e,t){const n={...e},r=new Set(Object.keys(e));return(0,a.YR)(t,{Variable(e,t,n){n&&"VariableDefinition"!==n.kind&&r.delete(e.name.value)}}),r.forEach(e=>{delete n[e]}),n}(v.variables,e.query));let g=new AbortController,E=()=>{g=void 0};if(y.signal){const e=y.signal,t=()=>{g?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),E=()=>{g?.signal.removeEventListener("abort",E),g=void 0,e.removeEventListener("abort",t),E=_},g.signal.addEventListener("abort",E,{once:!0})}return y.signal=g.signal,h&&!function(e){return u(e,"mutation")}(e.query)&&(y.method="GET"),new o.c(t=>{if("GET"===y.method){const{newURI:e,parseError:t}=function(e,t){const n=[],r=(e,t)=>{n.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}r("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}r("extensions",e)}let i="",s=e;const o=e.indexOf("#");-1!==o&&(i=e.substr(o),s=e.substr(0,o));const a=-1===s.indexOf("?")?"?":"&";return{newURI:s+a+n.join("&")+i}}(i,v);if(t)throw t;i=e}else y.body=JSON.stringify(v);const r=n||(0,l.n)(()=>fetch)||N,s=t.next.bind(t);return r(i,y).then(t=>{e.setContext({response:t});const n=t.headers?.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?w(t,s):(r=e,e=>e.text().then(t=>{const n=O(e,t);if(!Array.isArray(n)&&!b.call(n,"data")&&!b.call(n,"errors"))throw new f.g(`Server response was malformed for query '${Array.isArray(r)?r.map(e=>e.operationName):r.operationName}'.`,{response:e,bodyText:t});return n}))(t).then(s);var r}).then(()=>{E(),t.complete()}).catch(e=>{E(),t.error(e)}),()=>{g&&g.abort()}})})}}class D extends r.C{constructor(e={}){const{left:t,right:n,request:i}=r.C.from([new s(e),new I(e)]);super(i),Object.assign(this,{left:t,right:n})}}},41316(e,t,n){n.d(t,{cW:()=>v});var r=n(93776),i=n(78740),s=n(99568),o=n(61024),a=n(48531),c=n(32417),u=n(81212);function l(e){return!!e&&("errors"in e||"data"in e)&&Object.keys(e).every(e=>"errors"===e||"data"===e||"extensions"===e)}var h=n(52213),d=n(91581),f=n(80433),p=n(65560);function m(e){const t={},n={};return(0,h.E)(e)&&e.forEach(e=>{t[e.message]=e,"string"==typeof e.extensions?.code&&(n[e.extensions.code]=e)}),{persistedQueryNotSupported:!(!t.PersistedQueryNotSupported&&!n.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!(!t.PersistedQueryNotFound&&!n.PERSISTED_QUERY_NOT_FOUND)}}const y={disable:({meta:e})=>e.persistedQueryNotSupported,retry:({meta:e})=>e.persistedQueryNotSupported||e.persistedQueryNotFound,useGETForHashedQueries:!1};class v extends a.C{constructor(e){let t;function n(){t=void 0}(0,p.V1)(e&&("function"==typeof e.sha256||"function"==typeof e.generateHash),59);const{sha256:a,generateHash:h=e=>Promise.resolve(a((0,c.y)(e))),disable:v,retry:b,useGETForHashedQueries:g}=(0,d.o)(y,e);let w=!0;const E=e=>new Promise(t=>t(h(e)));super((e,a)=>{(0,p.V1)(a,60);const{query:c}=e;return new r.c(r=>{let h,d,p=!1,y=!1;function x(t,r){return p?r():(p=!0,w=!v(t),w||(delete e.extensions.persistedQuery,n()),b(t)?(h&&h.unsubscribe(),e.setContext(({http:e,fetchOptions:t})=>({http:{...e,includeQuery:!0,...w?{includeExtensions:!0}:{}},fetchOptions:{...t,method:"POST"}})),y&&e.setContext({fetchOptions:d}),void(h=a(e).subscribe(O))):void r())}const O={next:t=>{if(!l(t)||!t.errors)return r.next(t);x({operation:e,error:new i.K(t),meta:m(t.errors),result:t},()=>r.next(t))},error:t=>{const n=(0,s.$b)(t),a=()=>r.error(t);if(o.g.is(n)&&n.bodyText)try{const t=JSON.parse(n.bodyText);if(l(t))return x({error:new i.K(t),result:t,operation:e,meta:m(t.errors)},a)}catch{}x({error:n,operation:e,meta:{persistedQueryNotSupported:!1,persistedQueryNotFound:!1}},a)},complete:r.complete.bind(r)};return e.setContext(({http:e})=>({http:w?{...e,includeQuery:!1,includeExtensions:!0}:e})),g&&w&&!function(e){return e.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)}(e)&&(e.setContext(({fetchOptions:e={}})=>(d=e,{fetchOptions:{...e,method:"GET"}})),y=!0),w?function(e){if(!e||"object"!=typeof e)return E(e);t||(t=new f.A(u.v["PersistedQueryLink.persistedQueryHashes"]||2e3));let n=t.get(e);return n||t.set(e,n=E(e)),n}(c).then(t=>{e.extensions.persistedQuery={version:1,sha256Hash:t},h=a(e).subscribe(O)}).catch(r.error.bind(r)):h=a(e).subscribe(O),()=>{h&&h.unsubscribe()}})}),this.resetHashCache=n}resetHashCache}},60857(e,t,n){n.d(t,{s:()=>i});const r=new(n(6839).DX);function i(e){const t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";const n=t.arguments?.find(({name:e})=>"mode"===e.value);return n&&"value"in n.value&&"migrate"===n.value.value?"migrate":"unmask"}n.d(t,["y",0,r])},81212(e,t,n){var r=n(13912);const i=Symbol.for("apollo.cacheSize"),s={...r.A[i]};n.d(t,["v",0,s])},29993(e,t,n){n.d(t,{c:()=>l});var r=n(11744),i=n(32453),s=n(6839),o=n(53489),a=n(65560),c=n(81212);function u(e){return e}class l{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new l(u,{cache:!1})}static split(e,t,n=l.identity()){return Object.assign(new l(r=>(e(r)?t:n).transformDocument(r),{cache:!1}),{left:t,right:n})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){const e=new i.b;this.performWork=(0,s.LV)(l.prototype.performWork.bind(this),{makeCacheKey:t=>{const n=this.getCacheKey(t);if(n)return(0,a.V1)(Array.isArray(n),20),e.lookupArray(n)},max:c.v["documentTransform.cache"],cache:r.l})}}performWork(e){return(0,o.s)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;const t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new l(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}},32417(e,t,n){n.d(t,{y:()=>v});var r=n(75995);const i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function s(e){return o[e.charCodeAt(0)]}const o=["\\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"];var a=n(84705);const c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>u(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=f(e.variableDefinitions)?h("(\n",u(e.variableDefinitions,"\n"),"\n)"):h("(",u(e.variableDefinitions,", "),")"),n=h("",e.description,"\n")+u([e.operation,u([e.name,t]),u(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>h("",i,"\n")+e+": "+t+h(" = ",n)+h(" ",u(r," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const s=h("",e,": ")+t;let o=s+h("(",u(n,", "),")");return o.length>80&&(o=s+h("(\n",d(u(n,"\n")),"\n)")),u([o,u(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+h(" ",u(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>u(["...",h("on ",e),u(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:s})=>h("",s,"\n")+`fragment ${e}${h("(",u(n,", "),")")} `+`on ${t} ${h("",u(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.yo)(e):`"${e.replace(i,s)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+u(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+u(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+h("(",u(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>h("",e,"\n")+u(["schema",u(t," "),l(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>h("",e,"\n")+u(["scalar",t,u(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>h("",e,"\n")+u(["type",t,h("implements ",u(n," & ")),u(r," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>h("",e,"\n")+t+(f(n)?h("(\n",d(u(n,"\n")),"\n)"):h("(",u(n,", "),")"))+": "+r+h(" ",u(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>h("",e,"\n")+u([t+": "+n,h("= ",r),u(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>h("",e,"\n")+u(["interface",t,h("implements ",u(n," & ")),u(r," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>h("",e,"\n")+u(["union",t,u(n," "),h("= ",u(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>h("",e,"\n")+u(["enum",t,u(n," "),l(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>h("",e,"\n")+u([t,u(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>h("",e,"\n")+u(["input",t,u(n," "),l(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:s})=>h("",e,"\n")+"directive @"+t+(f(n)?h("(\n",d(u(n,"\n")),"\n)"):h("(",u(n,", "),")"))+h(" ",u(r," "))+(i?" repeatable":"")+" on "+u(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>u(["extend schema",u(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>u(["extend scalar",e,u(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>u(["extend type",e,h("implements ",u(t," & ")),u(n," "),l(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>u(["extend interface",e,h("implements ",u(t," & ")),u(n," "),l(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>u(["extend union",e,u(t," "),h("= ",u(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>u(["extend enum",e,u(t," "),l(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>u(["extend input",e,u(t," "),l(n)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>u(["extend directive @"+e,u(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>u([e,h(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>u([e,h(".",t),h("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>u(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>u(["@",e,h("(",t,":)")])}};function u(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function l(e){return h("{\n",d(u(e,"\n")),"\n}")}function h(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function d(e){return h(" ",e.replace(/\n/g,"\n "))}function f(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var p=n(80433),m=n(81212);let y;const v=Object.assign(e=>{let t=y.get(e);return t||(t=function(e){return(0,a.YR)(e,c)}(e),y.set(e,t)),t},{reset(){y=new p.A(m.v.print||2e3)}});v.reset()},80433(e,t,n){var r=n(37783),i=n(11744);const s=new WeakSet;function o(e){e.size<=(e.max||-1)||s.has(e)||(s.add(e),setTimeout(()=>{e.clean(),s.delete(e)},100))}n.d(t,["A",0,function(e,t){const n=new i.l(e,t);return n.set=function(e,t){const n=i.l.prototype.set.call(this,e,t);return o(this),n},n},"V",0,function(e,t){const n=new r.C(e,t);return n.set=function(e,t){const n=r.C.prototype.set.call(this,e,t);return o(this),n},n}])},41697(e,t,n){var r=n(81212),i=n(80433);const s=Object.assign(function(e){return JSON.stringify(e,a)},{reset(){o=new i.V(r.v.canonicalStringify||1e3)}});let o;function a(e,t){if(t&&"object"==typeof t){const e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){const n=Object.keys(t);if(n.every(c))return t;const r=JSON.stringify(n);let i=o.get(r);if(!i){n.sort();const e=JSON.stringify(n);i=o.get(e)||n,o.set(r,i),o.set(e,i)}const s=Object.create(e);return i.forEach(e=>{s[e]=t[e]}),s}}return t}function c(e,t,n){return 0===t||n[t-1]<=e}s.reset(),n.d(t,["M",0,s])},53489(e,t,n){var r=n(43298),i=n(84705),s=n(65560),o=n(81212),a=n(82920);const c=(0,n(18316).B)((e,t)=>{(0,s.V1)(e&&"Document"===e.kind,1);const n=e.definitions.filter(e=>"OperationDefinition"===e.kind);t&&(0,s.V1)(1==n.length&&n[0].operation===t,4,t,t,n[0].operation),(0,i.YR)(e,{Field(t,i,o,c){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let i=e,o=[];for(const e of c)i=i[e],i.kind===r.b.FIELD&&o.push(i.alias?.value||i.name.value);throw o.splice(-1,1,t.name.value),(0,s.vA)(5,t.alias.value,o.join("."),n[0].operation,(0,a.n)(e,"(anonymous)"))}}})},{max:o.v.checkDocument||2e3});n.d(t,["s",0,c])},91581(e,t,n){function r(...e){const t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(n=>{const r=e[n];void 0!==r&&(t[n]=r)})}),t}n.d(t,{o:()=>r})},53265(e,t,n){const r=Symbol.for("apollo.result.extensions"),i=Symbol.for("apollo.result.streamInfo"),s=Symbol.for("apollo.observableQuery.variablesUnknown");n.d(t,["DH",0,i,"X",0,r,"_K",0,s])},15590(e,t,n){function r(e=[]){const t={};return e.forEach(e=>{t[e.name.value]=e}),t}n.d(t,{J:()=>r})},11437(e,t,n){n.d(t,{a:()=>h});var r=n(15381),i=n(15590),s=n(78812),o=n(40),a=n(65016),c=n(38016),u=n(61927),l=n(63577);function h(e,{data:t,...n},{data:o,...c},u){return(0,r.L)(n,c)&&d((0,a.V)(e).selectionSet,t,o,{fragmentMap:(0,i.J)((0,s.z)(e)),variables:u})}function d(e,t,n,i){if(t===n)return!0;const s=new Set;return e.selections.every(e=>{if(s.has(e))return!0;if(s.add(e),!(0,l.M)(e,i.variables))return!0;if(f(e))return!0;if((0,c.d)(e)){const s=(0,u.u)(e),o=t&&t[s],a=n&&n[s],c=e.selectionSet;if(!c)return(0,r.L)(o,a);const l=Array.isArray(o),h=Array.isArray(a);if(l!==h)return!1;if(l&&h){const e=o.length;if(a.length!==e)return!1;for(let t=0;ti});var r=n(45318);function i(e){const t={},n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(e=>{e.defaultValue&&(0,r.J)(t,e.variable.name,e.defaultValue)}),t}},78812(e,t,n){function r(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}n.d(t,{z:()=>r})},40(e,t,n){n.d(t,{H:()=>i});var r=n(65560);function i(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{const n=e.name.value;if("function"==typeof t)return t(n);const i=t&&t[n];return(0,r.V1)(i,9,n),i||null}default:return null}}},65016(e,t,n){n.d(t,{V:()=>s});var r=n(65560),i=n(53489);function s(e){let t;(0,i.s)(e);for(let n of e.definitions){if("OperationDefinition"===n.kind)return n;"FragmentDefinition"!==n.kind||t||(t=n)}if(t)return t;throw(0,r.vA)(12)}},66938(e,t,n){n.d(t,{V:()=>i});var r=n(53489);function i(e){return(0,r.s)(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}},82920(e,t,n){function r(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}n.d(t,{n:()=>r})},13912(e,t,n){var r=n(62735);const i=(0,r.n)(()=>globalThis)||(0,r.n)(()=>window)||(0,r.n)(()=>self)||(0,r.n)(()=>n.g)||(0,r.n)(function(){return r.n.constructor("return this")()});n.d(t,["A",0,i])},62735(e,t,n){function r(e){try{return e()}catch{}}n.d(t,{n:()=>r})},42189(e,t,n){const r=Array.isArray;n.d(t,["c",0,r])},38016(e,t,n){function r(e){return"Field"===e.kind}n.d(t,{d:()=>r})},52213(e,t,n){function r(e){return Array.isArray(e)&&e.length>0}n.d(t,{E:()=>r})},33245(e,t,n){function r(e){return null!==e&&"object"==typeof e}n.d(t,{U:()=>r})},21510(e,t,n){n.d(t,{v:()=>i});const r=new Map;function i(e){const t=r.get(e)||1;return r.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},59313(e,t,n){function r(e){return e}n.d(t,{G:()=>r})},18316(e,t,n){n.d(t,{B:()=>s});var r=n(32453),i=n(80433);function s(e,{max:t,makeCacheKey:n=e=>e}){const s=new r.b(!0),o=new i.A(t);return(...t)=>{const r=s.lookupArray(n(t)),i=o.get(r);if(i){if(i.error)throw i.error;return i.result}const a=o.set(r,{});try{return a.result=e(...t)}catch(e){throw a.error=e,e}}}},61927(e,t,n){function r(e){return e.alias?e.alias.value:e.name.value}n.d(t,{u:()=>r})},63577(e,t,n){n.d(t,{M:()=>i});var r=n(65560);function i({directives:e},t){return!e||!e.length||function(e){const t=[];e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;const n=e.arguments,i=e.name.value;(0,r.V1)(n&&1===n.length,16,i);const s=n[0];(0,r.V1)(s.name&&"if"===s.name.value,17,i);const o=s.value;(0,r.V1)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),18,i),t.push({directive:e,ifArgument:s})});return t}(e).every(({directive:e,ifArgument:n})=>{let i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],(0,r.V1)(void 0!==i,15,e.name.value)):i=n.value.value,"skip"===e.name.value?!i:i})}},45318(e,t,n){n.d(t,{J:()=>s});var r=n(43298),i=n(65560);function s(e,t,n,o){if(n.kind===r.b.INT||n.kind===r.b.FLOAT)e[t.value]=Number(n.value);else if(n.kind===r.b.BOOLEAN||n.kind===r.b.STRING)e[t.value]=n.value;else if(n.kind===r.b.OBJECT){const r={};n.fields.map(e=>s(r,e.name,e.value,o)),e[t.value]=r}else if(n.kind===r.b.VARIABLE){const r=(o||{})[n.name.value];e[t.value]=r}else if(n.kind===r.b.LIST)e[t.value]=n.values.map(e=>{const n={};return s(n,t,e,o),n[t.value]});else if(n.kind===r.b.ENUM)e[t.value]=n.value;else{if(n.kind!==r.b.NULL)throw(0,i.vA)(19,t.value,n.kind);e[t.value]=null}}},65560(e,t,n){n.d(t,{V1:()=>u,vA:()=>h});var r=n(13912),i=n(21510);const s="Invariant Violation";class o extends Error{constructor(e=s){super(e),this.name=s,Object.setPrototypeOf(this,o.prototype)}}const a=["debug","log","warn","error","silent"];let c=a.indexOf("silent");function u(e,...t){if(!e)throw h(...t)}function l(e){return function(t,...n){if(a.indexOf(e)>=c){const r=console[e]||console.log;if("number"==typeof t){const e=t;(t=p(e))||(t=m(e,n),n=[])}r(t,...n)}}}function h(e,...t){return new o(p(e,t)||m(e,t))}u.debug=l("debug"),u.log=l("log"),u.warn=l("warn"),u.error=l("error");const d=Symbol.for("ApolloErrorMessageHandler_4.2.11");function f(e){if("string"==typeof e)return e;try{return function(e,t=0){const n=(0,i.v)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?n:t,t).split(JSON.stringify(n)).join("")}(e,2).slice(0,1e3)}catch{return""}}function p(e,t=[]){if(e)return r.A[d]&&r.A[d](e,t.map(f))}function m(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,f(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:"4.2.11",message:e,args:t.map(f)}))}`}},37783(e,t,n){function r(){}n.d(t,{C:()=>i});class i{constructor(e=1/0,t=r){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},11744(e,t,n){function r(){}n.d(t,{l:()=>c});const i=r,s="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},o="undefined"!=typeof WeakMap?WeakMap:Map,a="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:r,unregister:r}};class c{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new o,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const n=t.key;delete t.key,t.keyRef=new s(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}},15381(e,t,n){n.d(t,{L:()=>a});const{toString:r,hasOwnProperty:i}=Object.prototype,s=Function.prototype.toString,o=new Map;function a(e,t){try{return c(e,t)}finally{o.clear()}}function c(e,t){if(e===t)return!0;const n=r.call(e);if(n!==r.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(d(e,t))return!0;const n=u(e),r=u(t),s=n.length;if(s!==r.length)return!1;for(let e=0;e=0&&e.indexOf(t,n)===n}(n,h)}}return!1}function u(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}const h="{ [native code] }";function d(e,t){let n=o.get(e);if(n){if(n.has(t))return!0}else o.set(e,n=new Set);return n.add(t),!1}},32453(e,t,n){n.d(t,{b:()=>a});const r=()=>Object.create(null),{forEach:i,slice:s}=Array.prototype,{hasOwnProperty:o}=Object.prototype;class a{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),o.call(t,"data")?t.data:t.data=this.makeData(s.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&nr})},80129(e,t,n){n.d(t,{N:()=>r});function r(e){return i(e,[])}function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,s=[];for(let r=0;r1&&s.push(`... ${r} more items`);return"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=n.map(([e,n])=>e+": "+i(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},50475(e,t,n){n.d(t,{Ll:()=>a,aZ:()=>r,cE:()=>c,ou:()=>i});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,s){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=s,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 s={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","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],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"]},o=new Set(Object.keys(s));function a(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}var c;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(c||(c={})),n.d(t,["aD",0,s])},75995(e,t,n){n.d(t,{OC:()=>i,yo:()=>o});var r=n(79646);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function s(e){let t=0;for(;t1&&i.slice(1).every(e=>0===e.length||(0,r.i0)(e.charCodeAt(0))),a=n.endsWith('\\"""'),c=e.endsWith('"')&&!a,u=e.endsWith("\\"),l=c||u,h=!(null!=t&&t.minimize)&&(!s||e.length>70||l||o||a);let d="";const f=s&&(0,r.i0)(e.charCodeAt(0));return(h&&!f||o)&&(d+="\n"),d+=n,(h||l)&&(d+="\n"),'"""'+d+'"""'}},79646(e,t,n){function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function s(e){return e>=97&&e<=122||e>=65&&e<=90}function o(e){return s(e)||95===e}function a(e){return s(e)||i(e)||95===e}n.d(t,{i0:()=>r,un:()=>o,xr:()=>a,yp:()=>i})},43298(e,t,n){var r;n.d(t,{b:()=>r}),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.DIRECTIVE_EXTENSION="DirectiveExtension",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"}(r||(r={}))},84705(e,t,n){n.d(t,{YR:()=>c});var r=n(46286),i=n(80129),s=n(50475),o=n(43298);const a=Object.freeze({});function c(e,t,n=s.aD){const c=new Map;for(const e of Object.values(o.b))c.set(e,u(t,e));let l,h,d,f=Array.isArray(e),p=[e],m=-1,y=[],v=e;const b=[],g=[];do{m++;const e=m===p.length,o=e&&0!==y.length;if(e){if(h=0===g.length?void 0:b[b.length-1],v=d,d=g.pop(),o)if(f){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;null===n?(v.splice(r,1),e++):v[r]=n}}else{v={...v};for(const[e,t]of y)v[e]=t}m=l.index,p=l.keys,y=l.edits,f=l.inArray,l=l.prev}else if(d){if(h=f?m:p[m],v=d[h],null==v)continue;b.push(h)}let u;if(!Array.isArray(v)){var w,E;(0,s.Ll)(v)||(0,r.U)(!1,`Invalid AST Node: ${(0,i.N)(v)}.`);const n=e?null===(w=c.get(v.kind))||void 0===w?void 0:w.leave:null===(E=c.get(v.kind))||void 0===E?void 0:E.enter;if(u=null==n?void 0:n.call(t,v,h,d,b,g),u===a)break;if(!1===u){if(!e){b.pop();continue}}else if(void 0!==u&&(y.push([h,u]),!e)){if(!(0,s.Ll)(u)){b.pop();continue}v=u}}var x;if(void 0===u&&o&&y.push([h,v]),e)b.pop();else l={inArray:f,index:m,keys:p,edits:y,prev:l},f=Array.isArray(v),p=f?v:null!==(x=n[v.kind])&&void 0!==x?x:[],m=-1,y=[],d&&g.push(d),d=v}while(void 0!==l);return 0!==y.length?y[y.length-1][1]:e}function u(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}n.d(t,["sP",0,a])},6839(e,t,n){n.d(t,{DX:()=>h,NS:()=>j,yN:()=>M,LV:()=>q});var r=n(32453),i=n(37783);let s=null;const o={};let a=1;function c(e){try{return e()}catch(e){}}const u="@wry/context:Slot",l=c(()=>globalThis)||c(()=>n.g)||Object.create(null),h=l[u]||Array[u]||function(e){try{Object.defineProperty(l,u,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",a++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=s;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===o)break;return e!==s&&(s.slots[this.id]=t),!0}return s&&(s.slots[this.id]=o),!1}getValue(){if(this.hasValue())return s.slots[this.id]}withValue(e,t,n,r){const i={__proto__:null,[this.id]:e},o=s;s={parent:o,slots:i};try{return t.apply(r,n)}finally{s=o}}static bind(e){const t=s;return function(){const n=s;try{return s=t,e.apply(this,arguments)}finally{s=n}}}static noContext(e,t,n){if(!s)return e.apply(n,t);{const r=s;try{return s=null,e.apply(n,t)}finally{s=r}}}}),{bind:d,noContext:f}=h;const p=new h;const{hasOwnProperty:m}=Object.prototype,y=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function v(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const b=[];function g(e,t){if(!e)throw new Error(t||"assertion failure")}function w(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function E(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function x(e){return e.slice(0)}class O{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++O.count}peek(){if(1===this.value.length&&!S(this))return k(this),this.value[0]}recompute(e){return g(!this.recomputing,"already recomputing"),k(this),S(this)?function(e,t){R(e),p.withValue(e,T,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{v(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,S(e))return;N(e)}(e);return E(e.value)}(this,e):E(this.value)}setDirty(){this.dirty||(this.dirty=!0,A(this),v(this))}dispose(){this.setDirty(),R(this),_(this,(e,t)=>{e.setDirty(),F(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=b.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(y(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),b.push(this.deps),this.deps=null)}}function k(e){const t=p.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),S(e)?I(t,e):D(t,e),t}function T(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=x(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!w(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function S(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function A(e){_(e,I)}function N(e){_(e,D)}function _(e,t){const n=e.parents.size;if(n){const r=y(e.parents);for(let i=0;i0&&e.childValues.forEach((t,n)=>{F(e,n)}),e.forgetDeps(),g(null===e.dirtyChildren)}function F(e,t){t.parents.delete(e),e.childValues.delete(t),C(e,t)}O.count=0;const P={setDirty:!0,dispose:!0,forget:!0};function M(e){const t=new Map,n=e&&e.subscribe;function r(e){const r=p.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(v(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){const r=t.get(e);if(r){const i=n&&m.call(P,n)?n:"setDirty";y(r).forEach(e=>e[i]()),t.delete(e),v(r)}},r}let L;function j(...e){return(L||(L=new r.b("function"==typeof WeakMap))).lookupArray(e)}const V=new Set;function q(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=j,normalizeResult:s,subscribe:o,cache:a=i.C}=Object.create(null)){const c="function"==typeof a?new a(t,e=>e.dispose()):a,u=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let i=c.get(t);i||(c.set(t,i=new O(e)),i.normalizeResult=s,i.subscribe=o,i.forget=()=>c.delete(t));const a=i.recompute(Array.prototype.slice.call(arguments));return c.set(t,i),V.add(c),p.hasValue()||(V.forEach(e=>e.clean()),V.clear()),a};function l(e){const t=e&&c.get(e);t&&t.setDirty()}function h(e){const t=e&&c.get(e);if(t)return t.peek()}function d(e){return!!e&&c.delete(e)}return Object.defineProperty(u,"size",{get:()=>c.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:s,subscribe:o,cache:c}),u.dirtyKey=l,u.dirty=function(){l(r.apply(null,arguments))},u.peekKey=h,u.peek=function(){return h(r.apply(null,arguments))},u.forgetKey=d,u.forget=function(){return d(r.apply(null,arguments))},u.makeCacheKey=r,u.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(u)}},31635(e,t,n){n.d(t,{AQ:()=>d,C6:()=>i,Cl:()=>s,Ju:()=>c,N3:()=>h,YH:()=>a,fX:()=>l,sH:()=>o,xN:()=>f,zs:()=>u});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function l(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i1||a(e,t)})},t&&(r[e]=t(r[e])))}function a(e,t){try{(n=i[e](t)).value instanceof h?Promise.resolve(n.value.v).then(c,u):l(s[0][2],n)}catch(e){l(s[0][3],e)}var n}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function f(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=c(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}Object.create}}]); //# sourceMappingURL=9826.21fea1861eaca9225d73.js.map