!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5f2824d8-81dd-4e53-8add-ae962c46d429",e._sentryDebugIdIdentifier="sentry-dbid-5f2824d8-81dd-4e53-8add-ae962c46d429")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"5.21.0"};"use strict";(self.webpackChunktaskcade=self.webpackChunktaskcade||[]).push([[459],{94985:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(62556);function i(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Zq)(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}},50400:(e,t,n)=>{n.d(t,{Z:()=>s});var r=n(62556),i=n(138),o=n(62057),a=n(67977);function s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),u=1,c=1;t&&(0,r.Re)(e)&&(u=e.offsetWidth>0&&(0,i.NM)(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,i.NM)(s.height)/e.offsetHeight||1);var l=((0,r.kK)(e)?(0,o.Z)(e):window).visualViewport,f=!(0,a.Z)()&&n,d=(s.left+(f&&l?l.offsetLeft:0))/u,p=(s.top+(f&&l?l.offsetTop:0))/c,h=s.width/u,v=s.height/c;return{width:h,height:v,top:p,right:d+h,bottom:p+v,left:d,x:d,y:p}}},43062:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(62057);function i(e){return(0,r.Z)(e).getComputedStyle(e)}},67252:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(62556);function i(e){return(((0,r.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},96333:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e){return e?(e.nodeName||"").toLowerCase():null}},93779:(e,t,n)=>{n.d(t,{Z:()=>l});var r=n(62057),i=n(96333),o=n(43062),a=n(62556),s=n(95923),u=n(85918);function c(e){return(0,a.Re)(e)&&"fixed"!==(0,o.Z)(e).position?e.offsetParent:null}function l(e){for(var t,n=(0,r.Z)(e),l=c(e);l&&(t=l,["table","td","th"].indexOf((0,i.Z)(t))>=0)&&"static"===(0,o.Z)(l).position;)l=c(l);return l&&("html"===(0,i.Z)(l)||"body"===(0,i.Z)(l)&&"static"===(0,o.Z)(l).position)?n:l||function(e){var t=/firefox/i.test((0,u.Z)());if(/Trident/i.test((0,u.Z)())&&(0,a.Re)(e)&&"fixed"===(0,o.Z)(e).position)return null;var n=(0,s.Z)(e);for((0,a.Zq)(n)&&(n=n.host);(0,a.Re)(n)&&0>["html","body"].indexOf((0,i.Z)(n));){var r=(0,o.Z)(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)||n}},95923:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(96333),i=n(67252),o=n(62556);function a(e){return"html"===(0,r.Z)(e)?e:e.assignedSlot||e.parentNode||((0,o.Zq)(e)?e.host:null)||(0,i.Z)(e)}},62057:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}},82163:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(62057);function i(e){var t=(0,r.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},4063:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(50400),i=n(67252),o=n(82163);function a(e){return(0,r.Z)((0,i.Z)(e)).left+(0,o.Z)(e).scrollLeft}},62556:(e,t,n)=>{n.d(t,{Re:()=>o,Zq:()=>a,kK:()=>i});var r=n(62057);function i(e){var t=(0,r.Z)(e).Element;return e instanceof t||e instanceof Element}function o(e){var t=(0,r.Z)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,r.Z)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},67977:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(85918);function i(){return!/^((?!chrome|android).)*safari/i.test((0,r.Z)())}},60611:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(43062);function i(e){var t=(0,r.Z)(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}},63624:(e,t,n)=>{n.d(t,{Z:()=>function e(t,n){void 0===n&&(n=[]);var u,c=function e(t){return["html","body","#document"].indexOf((0,o.Z)(t))>=0?t.ownerDocument.body:(0,a.Re)(t)&&(0,i.Z)(t)?t:e((0,r.Z)(t))}(t),l=c===(null==(u=t.ownerDocument)?void 0:u.body),f=(0,s.Z)(c),d=l?[f].concat(f.visualViewport||[],(0,i.Z)(c)?c:[]):c,p=n.concat(d);return l?p:p.concat(e((0,r.Z)(d)))}});var r=n(95923),i=n(60611),o=n(96333),a=n(62556),s=n(62057)},87701:(e,t,n)=>{n.d(t,{BL:()=>c,Ct:()=>y,DH:()=>O,F2:()=>o,I:()=>i,MS:()=>E,N7:()=>m,Pj:()=>d,XM:()=>_,YP:()=>h,bw:()=>v,cW:()=>S,d7:()=>s,ij:()=>g,iv:()=>x,k5:()=>p,mv:()=>u,r5:()=>b,t$:()=>a,ut:()=>l,wX:()=>w,we:()=>r,xs:()=>k,zV:()=>f});var r="top",i="bottom",o="right",a="left",s="auto",u=[r,i,o,a],c="start",l="end",f="clippingParents",d="viewport",p="popper",h="reference",v=u.reduce(function(e,t){return e.concat([t+"-"+c,t+"-"+l])},[]),y=[].concat(u,[s]).reduce(function(e,t){return e.concat([t,t+"-"+c,t+"-"+l])},[]),m="beforeRead",g="read",b="afterRead",_="beforeMain",O="main",w="afterMain",x="beforeWrite",S="write",E="afterWrite",k=[m,g,b,_,O,w,x,S,E]},75046:(e,t,n)=>{n.r(t),n.d(t,{afterMain:()=>r.wX,afterRead:()=>r.r5,afterWrite:()=>r.MS,applyStyles:()=>a,arrow:()=>m,auto:()=>r.d7,basePlacements:()=>r.mv,beforeMain:()=>r.XM,beforeRead:()=>r.N7,beforeWrite:()=>r.iv,bottom:()=>r.I,clippingParents:()=>r.zV,computeStyles:()=>S,createPopper:()=>W,createPopperBase:()=>H,createPopperLite:()=>Y,detectOverflow:()=>C.Z,end:()=>r.ut,eventListeners:()=>k,flip:()=>M,hide:()=>I,left:()=>r.t$,main:()=>r.DH,modifierPhases:()=>r.xs,offset:()=>R,placements:()=>r.Ct,popper:()=>r.k5,popperGenerator:()=>G,popperOffsets:()=>L,preventOverflow:()=>V,read:()=>r.ij,reference:()=>r.YP,right:()=>r.F2,start:()=>r.BL,top:()=>r.we,variationPlacements:()=>r.bw,viewport:()=>r.Pj,write:()=>r.cW});var r=n(87701),i=n(96333),o=n(62556);let a={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]||{},r=t.attributes[e]||{},a=t.elements[e];(0,o.Re)(a)&&(0,i.Z)(a)&&(Object.assign(a.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?a.removeAttribute(e):a.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 r=t.elements[e],a=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,o.Re)(r)&&(0,i.Z)(r)&&(Object.assign(r.style,s),Object.keys(a).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};var s=n(6206),u=n(50400);function c(e){var t=(0,u.Z)(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}var l=n(94985),f=n(93779),d=n(11516),p=n(138);function h(e,t,n){return(0,p.Fp)(e,(0,p.VV)(t,n))}var v=n(63293),y=n(33706);let m={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,i=e.state,o=e.name,a=e.options,u=i.elements.arrow,l=i.modifiersData.popperOffsets,p=(0,s.Z)(i.placement),m=(0,d.Z)(p),g=[r.t$,r.F2].indexOf(p)>=0?"height":"width";if(u&&l){var b=(t="function"==typeof(t=a.padding)?t(Object.assign({},i.rects,{placement:i.placement})):t,(0,v.Z)("number"!=typeof t?t:(0,y.Z)(t,r.mv))),_=c(u),O="y"===m?r.we:r.t$,w="y"===m?r.I:r.F2,x=i.rects.reference[g]+i.rects.reference[m]-l[m]-i.rects.popper[g],S=l[m]-i.rects.reference[m],E=(0,f.Z)(u),k=E?"y"===m?E.clientHeight||0:E.clientWidth||0:0,P=b[O],T=k-_[g]-b[w],j=k/2-_[g]/2+(x/2-S/2),D=h(P,j,T);i.modifiersData[o]=((n={})[m]=D,n.centerOffset=D-j,n)}},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,l.Z)(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var g=n(62057),b=n(67252),_=n(43062),O=n(14943),w={top:"auto",right:"auto",bottom:"auto",left:"auto"};function x(e){var t,n,i,o,a,s,u,c=e.popper,l=e.popperRect,d=e.placement,h=e.variation,v=e.offsets,y=e.position,m=e.gpuAcceleration,O=e.adaptive,x=e.roundOffsets,S=e.isFixed,E=v.x,k=void 0===E?0:E,P=v.y,T=void 0===P?0:P,j="function"==typeof x?x({x:k,y:T}):{x:k,y:T};k=j.x,T=j.y;var D=v.hasOwnProperty("x"),C=v.hasOwnProperty("y"),M=r.t$,N=r.we,A=window;if(O){var I=(0,f.Z)(c),R="clientHeight",F="clientWidth";I===(0,g.Z)(c)&&(I=(0,b.Z)(c),"static"!==(0,_.Z)(I).position&&"absolute"===y&&(R="scrollHeight",F="scrollWidth")),(d===r.we||(d===r.t$||d===r.F2)&&h===r.ut)&&(N=r.I,T-=(S&&I===A&&A.visualViewport?A.visualViewport.height:I[R])-l.height,T*=m?1:-1),(d===r.t$||(d===r.we||d===r.I)&&h===r.ut)&&(M=r.F2,k-=(S&&I===A&&A.visualViewport?A.visualViewport.width:I[F])-l.width,k*=m?1:-1)}var L=Object.assign({position:y},O&&w),q=!0===x?(t={x:k,y:T},n=(0,g.Z)(c),i=t.x,o=t.y,a=n.devicePixelRatio||1,{x:(0,p.NM)(i*a)/a||0,y:(0,p.NM)(o*a)/a||0}):{x:k,y:T};return(k=q.x,T=q.y,m)?Object.assign({},L,((u={})[N]=C?"0":"",u[M]=D?"0":"",u.transform=1>=(A.devicePixelRatio||1)?"translate("+k+"px, "+T+"px)":"translate3d("+k+"px, "+T+"px, 0)",u)):Object.assign({},L,((s={})[N]=C?T+"px":"",s[M]=D?k+"px":"",s.transform="",s))}let S={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=n.adaptive,o=n.roundOffsets,a=void 0===o||o,u={placement:(0,s.Z)(t.placement),variation:(0,O.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,x(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===i||i,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,x(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var E={passive:!0};let k={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=(0,g.Z)(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,E)}),s&&u.addEventListener("resize",n.update,E),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,E)}),s&&u.removeEventListener("resize",n.update,E)}},data:{}};var P={left:"right",right:"left",bottom:"top",top:"bottom"};function T(e){return e.replace(/left|right|bottom|top/g,function(e){return P[e]})}var j={start:"end",end:"start"};function D(e){return e.replace(/start|end/g,function(e){return j[e]})}var C=n(9966);let M={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var o=n.mainAxis,a=void 0===o||o,u=n.altAxis,c=void 0===u||u,l=n.fallbackPlacements,f=n.padding,d=n.boundary,p=n.rootBoundary,h=n.altBoundary,v=n.flipVariations,y=void 0===v||v,m=n.allowedAutoPlacements,g=t.options.placement,b=(0,s.Z)(g)===g,_=l||(b||!y?[T(g)]:function(e){if((0,s.Z)(e)===r.d7)return[];var t=T(e);return[D(e),t,D(t)]}(g)),w=[g].concat(_).reduce(function(e,n){var i,o,a,u,c,l,h,v,g,b,_,w;return e.concat((0,s.Z)(n)===r.d7?(o=(i={placement:n,boundary:d,rootBoundary:p,padding:f,flipVariations:y,allowedAutoPlacements:m}).placement,a=i.boundary,u=i.rootBoundary,c=i.padding,l=i.flipVariations,v=void 0===(h=i.allowedAutoPlacements)?r.Ct:h,0===(_=(b=(g=(0,O.Z)(o))?l?r.bw:r.bw.filter(function(e){return(0,O.Z)(e)===g}):r.mv).filter(function(e){return v.indexOf(e)>=0})).length&&(_=b),Object.keys(w=_.reduce(function(e,n){return e[n]=(0,C.Z)(t,{placement:n,boundary:a,rootBoundary:u,padding:c})[(0,s.Z)(n)],e},{})).sort(function(e,t){return w[e]-w[t]})):n)},[]),x=t.rects.reference,S=t.rects.popper,E=new Map,k=!0,P=w[0],j=0;j=0,R=I?"width":"height",F=(0,C.Z)(t,{placement:M,boundary:d,rootBoundary:p,altBoundary:h,padding:f}),L=I?A?r.F2:r.t$:A?r.I:r.we;x[R]>S[R]&&(L=T(L));var q=T(L),V=[];if(a&&V.push(F[N]<=0),c&&V.push(F[L]<=0,F[q]<=0),V.every(function(e){return e})){P=M,k=!1;break}E.set(M,V)}if(k)for(var B=y?3:1,Q=function(e){var t=w.find(function(t){var n=E.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return P=t,"break"},Z=B;Z>0&&"break"!==Q(Z);Z--);t.placement!==P&&(t.modifiersData[i]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function N(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 A(e){return[r.we,r.F2,r.I,r.t$].some(function(t){return e[t]>=0})}let I={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=(0,C.Z)(t,{elementContext:"reference"}),s=(0,C.Z)(t,{altBoundary:!0}),u=N(a,r),c=N(s,i,o),l=A(u),f=A(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}},R={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.offset,a=void 0===o?[0,0]:o,u=r.Ct.reduce(function(e,n){var i,o,u,c,l,f;return e[n]=(i=t.rects,o=(0,s.Z)(n),u=[r.t$,r.we].indexOf(o)>=0?-1:1,l=(c="function"==typeof a?a(Object.assign({},i,{placement:n})):a)[0],f=c[1],l=l||0,f=(f||0)*u,[r.t$,r.F2].indexOf(o)>=0?{x:f,y:l}:{x:l,y:f}),e},{}),c=u[t.placement],l=c.x,f=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=f),t.modifiersData[i]=u}};var F=n(72581);let L={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,F.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var q=n(23607);let V={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,a=n.altAxis,u=n.boundary,l=n.rootBoundary,v=n.altBoundary,y=n.padding,m=n.tether,g=void 0===m||m,b=n.tetherOffset,_=void 0===b?0:b,w=(0,C.Z)(t,{boundary:u,rootBoundary:l,padding:y,altBoundary:v}),x=(0,s.Z)(t.placement),S=(0,O.Z)(t.placement),E=!S,k=(0,d.Z)(x),P="x"===k?"y":"x",T=t.modifiersData.popperOffsets,j=t.rects.reference,D=t.rects.popper,M="function"==typeof _?_(Object.assign({},t.rects,{placement:t.placement})):_,N="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(T){if(void 0===o||o){var R,F="y"===k?r.we:r.t$,L="y"===k?r.I:r.F2,V="y"===k?"height":"width",B=T[k],Q=B+w[F],Z=B-w[L],K=g?-D[V]/2:0,z=S===r.BL?j[V]:D[V],U=S===r.BL?-D[V]:-j[V],G=t.elements.arrow,H=g&&G?c(G):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,q.Z)(),Y=W[F],X=W[L],J=h(0,j[V],H[V]),$=E?j[V]/2-K-J-Y-N.mainAxis:z-J-Y-N.mainAxis,ee=E?-j[V]/2+K+J+X+N.mainAxis:U+J+X+N.mainAxis,et=t.elements.arrow&&(0,f.Z)(t.elements.arrow),en=et?"y"===k?et.clientTop||0:et.clientLeft||0:0,er=null!=(R=null==A?void 0:A[k])?R:0,ei=h(g?(0,p.VV)(Q,B+$-er-en):Q,B,g?(0,p.Fp)(Z,B+ee-er):Z);T[k]=ei,I[k]=ei-B}if(void 0!==a&&a){var eo,ea,es="x"===k?r.we:r.t$,eu="x"===k?r.I:r.F2,ec=T[P],el="y"===P?"height":"width",ef=ec+w[es],ed=ec-w[eu],ep=-1!==[r.we,r.t$].indexOf(x),eh=null!=(ea=null==A?void 0:A[P])?ea:0,ev=ep?ef:ec-j[el]-D[el]-eh+N.altAxis,ey=ep?ec+j[el]+D[el]-eh-N.altAxis:ed,em=g&&ep?(eo=h(ev,ec,ey))>ey?ey:eo:h(g?ev:ef,ec,g?ey:ed);T[P]=em,I[P]=em-ec}t.modifiersData[i]=I}},requiresIfExists:["offset"]};var B=n(82163),Q=n(4063),Z=n(60611),K=n(63624),z={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var e=arguments.length,t=Array(e),n=0;n{n.d(t,{Z:()=>s});var r=n(6206),i=n(14943),o=n(11516),a=n(87701);function s(e){var t,n=e.reference,s=e.element,u=e.placement,c=u?(0,r.Z)(u):null,l=u?(0,i.Z)(u):null,f=n.x+n.width/2-s.width/2,d=n.y+n.height/2-s.height/2;switch(c){case a.we:t={x:f,y:n.y-s.height};break;case a.I:t={x:f,y:n.y+n.height};break;case a.F2:t={x:n.x+n.width,y:d};break;case a.t$:t={x:n.x-s.width,y:d};break;default:t={x:n.x,y:n.y}}var p=c?(0,o.Z)(c):null;if(null!=p){var h="y"===p?"height":"width";switch(l){case a.BL:t[p]=t[p]-(n[h]/2-s[h]/2);break;case a.ut:t[p]=t[p]+(n[h]/2-s[h]/2)}}return t}},9966:(e,t,n)=>{n.d(t,{Z:()=>x});var r=n(87701),i=n(62057),o=n(67252),a=n(4063),s=n(67977),u=n(43062),c=n(82163),l=n(138),f=n(63624),d=n(93779),p=n(62556),h=n(50400),v=n(95923),y=n(94985),m=n(96333);function g(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function b(e,t,n){var f,d,v,y,m,b,_,O,w,x;return t===r.Pj?g(function(e,t){var n=(0,i.Z)(e),r=(0,o.Z)(e),u=n.visualViewport,c=r.clientWidth,l=r.clientHeight,f=0,d=0;if(u){c=u.width,l=u.height;var p=(0,s.Z)();(p||!p&&"fixed"===t)&&(f=u.offsetLeft,d=u.offsetTop)}return{width:c,height:l,x:f+(0,a.Z)(e),y:d}}(e,n)):(0,p.kK)(t)?((f=(0,h.Z)(t,!1,"fixed"===n)).top=f.top+t.clientTop,f.left=f.left+t.clientLeft,f.bottom=f.top+t.clientHeight,f.right=f.left+t.clientWidth,f.width=t.clientWidth,f.height=t.clientHeight,f.x=f.left,f.y=f.top,f):g((d=(0,o.Z)(e),y=(0,o.Z)(d),m=(0,c.Z)(d),b=null==(v=d.ownerDocument)?void 0:v.body,_=(0,l.Fp)(y.scrollWidth,y.clientWidth,b?b.scrollWidth:0,b?b.clientWidth:0),O=(0,l.Fp)(y.scrollHeight,y.clientHeight,b?b.scrollHeight:0,b?b.clientHeight:0),w=-m.scrollLeft+(0,a.Z)(d),x=-m.scrollTop,"rtl"===(0,u.Z)(b||y).direction&&(w+=(0,l.Fp)(y.clientWidth,b?b.clientWidth:0)-_),{width:_,height:O,x:w,y:x}))}var _=n(72581),O=n(63293),w=n(33706);function x(e,t){void 0===t&&(t={});var n,i,a,s,c,x,S=t,E=S.placement,k=void 0===E?e.placement:E,P=S.strategy,T=void 0===P?e.strategy:P,j=S.boundary,D=void 0===j?r.zV:j,C=S.rootBoundary,M=void 0===C?r.Pj:C,N=S.elementContext,A=void 0===N?r.k5:N,I=S.altBoundary,R=S.padding,F=void 0===R?0:R,L=(0,O.Z)("number"!=typeof F?F:(0,w.Z)(F,r.mv)),q=A===r.k5?r.YP:r.k5,V=e.rects.popper,B=e.elements[void 0!==I&&I?q:A],Q=(n=(0,p.kK)(B)?B:B.contextElement||(0,o.Z)(e.elements.popper),c=(s=[].concat("clippingParents"===D?(i=(0,f.Z)((0,v.Z)(n)),a=["absolute","fixed"].indexOf((0,u.Z)(n).position)>=0&&(0,p.Re)(n)?(0,d.Z)(n):n,(0,p.kK)(a)?i.filter(function(e){return(0,p.kK)(e)&&(0,y.Z)(e,a)&&"body"!==(0,m.Z)(e)}):[]):[].concat(D),[M]))[0],(x=s.reduce(function(e,t){var r=b(n,t,T);return e.top=(0,l.Fp)(r.top,e.top),e.right=(0,l.VV)(r.right,e.right),e.bottom=(0,l.VV)(r.bottom,e.bottom),e.left=(0,l.Fp)(r.left,e.left),e},b(n,c,T))).width=x.right-x.left,x.height=x.bottom-x.top,x.x=x.left,x.y=x.top,x),Z=(0,h.Z)(e.elements.reference),K=(0,_.Z)({reference:Z,element:V,strategy:"absolute",placement:k}),z=g(Object.assign({},V,K)),U=A===r.k5?z:Z,G={top:Q.top-U.top+L.top,bottom:U.bottom-Q.bottom+L.bottom,left:Q.left-U.left+L.left,right:U.right-Q.right+L.right},H=e.modifiersData.offset;if(A===r.k5&&H){var W=H[k];Object.keys(G).forEach(function(e){var t=[r.F2,r.I].indexOf(e)>=0?1:-1,n=[r.we,r.I].indexOf(e)>=0?"y":"x";G[e]+=W[n]*t})}return G}},33706:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}},6206:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e){return e.split("-")[0]}},23607:(e,t,n)=>{n.d(t,{Z:()=>r});function r(){return{top:0,right:0,bottom:0,left:0}}},11516:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}},14943:(e,t,n)=>{n.d(t,{Z:()=>r});function r(e){return e.split("-")[1]}},138:(e,t,n)=>{n.d(t,{Fp:()=>r,NM:()=>o,VV:()=>i});var r=Math.max,i=Math.min,o=Math.round},63293:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(23607);function i(e){return Object.assign({},(0,r.Z)(),e)}},85918:(e,t,n)=>{n.d(t,{Z:()=>r});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}},96656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorRanges=t.ColorNames=t.ThemeColors=t.NoticeColorNames=t.ThemeColorNames=t.SupportedColors=t.Colors=void 0,function(e){e.BRAND="#ff2d60",e.BLUE="#54c4fa",e.RED="#fc8d8c",e.GREEN="#62e163",e.PURPLE="#c89cff",e.YELLOW="#f9d600",e.ORANGE="#f88f33",e.CINNABAR="#e74c3c",e.ROSE="#ef5777",e.SUCCESS="#43BC6A",e.WARNING="#FFDD28",e.DANGER="#EB6461",e.UPGRADE="#F5C34A",e.INFO="#999999"}(i||(t.Colors=i={})),t.SupportedColors=new Map([["blue",i.BLUE],["red",i.RED],["green",i.GREEN],["purple",i.PURPLE],["yellow",i.YELLOW],["orange",i.ORANGE],["cinnabar",i.CINNABAR],["brand",i.BRAND]]),t.ThemeColorNames={Blue:"blue",Red:"red",Green:"green",Purple:"purple",Yellow:"yellow",Orange:"orange",Cinnabar:"cinnabar",Rose:"rose"},t.NoticeColorNames={Info:"info",Success:"success",Warning:"warning",Danger:"danger",Upgrade:"upgrade"},t.ThemeColors=((n={})[t.ThemeColorNames.Blue]=i.BLUE,n[t.ThemeColorNames.Red]=i.RED,n[t.ThemeColorNames.Green]=i.GREEN,n[t.ThemeColorNames.Purple]=i.PURPLE,n[t.ThemeColorNames.Yellow]=i.YELLOW,n[t.ThemeColorNames.Orange]=i.ORANGE,n[t.ThemeColorNames.Cinnabar]=i.CINNABAR,n[t.ThemeColorNames.Rose]=i.ROSE,n[t.NoticeColorNames.Success]=i.SUCCESS,n[t.NoticeColorNames.Warning]=i.WARNING,n[t.NoticeColorNames.Danger]=i.DANGER,n[t.NoticeColorNames.Upgrade]=i.UPGRADE,n[t.NoticeColorNames.Info]=i.INFO,n),t.ColorNames={Red:"red",Yellow:"yellow",Green:"green",Blue:"blue",Purple:"purple",Amber:"amber",Gold:"gold",Orange:"orange",Ruby:"ruby",Sapphire:"sapphire",Aqua:"aqua",Emerald:"emerald",AppLight:"applight",AppDark:"appdark",TextLight:"textlight",TextDark:"textdark"};var n,r,i,o=["hsl(0,0%,0%)","hsl(0,0%,20%)","hsl(0,0%,25%)","hsl(0,0%,30%)","hsl(0,0%,40%)","hsl(0,0%,60%)","hsl(0,0%,80%)","hsl(0,0%,90%)","hsl(0,0%,97%)","hsl(0,0%,99%)","hsl(0,0%,100%)"],a=["hsl(210,10%,100%)","hsl(216,10%,90%)","hsl(210,10%,86%)","hsl(210,10%,83%)","hsl(210,10%,80%)","hsl(210,6%,60%)","hsl(207,6%,30%)","hsl(213,9%,19%)","hsl(218,10%,16%)","hsl(210,10%,12%)","hsl(210,10%,10%)"];t.ColorRanges=((r={})[t.ColorNames.Red]=["hsl(347,92%,10%)","hsl(347,92%,30%)","hsl(347,92%,50%)","hsl(347,92%,70%)","hsl(347,92%,90%)"],r[t.ColorNames.Yellow]=["hsl(54,100%,10%)","hsl(54,100%,30%)","hsl(54,100%,50%)","hsl(54,100%,70%)","hsl(54,100%,90%)"],r[t.ColorNames.Green]=["hsl(69,79%,10%)","hsl(69,79%,30%)","hsl(69,79%,50%)","hsl(69,79%,70%)","hsl(69,79%,90%)"],r[t.ColorNames.Blue]=["hsl(202,88%,10%)","hsl(202,88%,30%)","hsl(202,88%,50%)","hsl(202,88%,70%)","hsl(202,88%,90%)"],r[t.ColorNames.Purple]=["hsl(250,68%,10%)","hsl(250,68%,30%)","hsl(250,68%,50%)","hsl(250,68%,70%)","hsl(250,68%,90%)"],r[t.ColorNames.Amber]=["hsl(32,97%,10%)","hsl(32,97%,30%)","hsl(32,97%,50%)","hsl(32,97%,70%)","hsl(32,97%,90%)"],r[t.ColorNames.Gold]=["hsl(47,100%,10%)","hsl(47,100%,30%)","hsl(47,100%,50%)","hsl(47,100%,70%)","hsl(47,100%,90%)"],r[t.ColorNames.Orange]=["hsl(20,97%,10%)","hsl(20,97%,30%)","hsl(20,97%,50%)","hsl(20,97%,70%)","hsl(20,97%,90%)"],r[t.ColorNames.Ruby]=["hsl(360,93%,10%)","hsl(360,93%,30%)","hsl(360,93%,50%)","hsl(360,93%,70%)","hsl(360,93%,90%)"],r[t.ColorNames.Sapphire]=["hsl(219,66%,10%)","hsl(219,66%,30%)","hsl(219,66%,50%)","hsl(219,66%,70%)","hsl(219,66%,90%)"],r[t.ColorNames.Aqua]=["hsl(188,88%,10%)","hsl(188,88%,30%)","hsl(188,88%,50%)","hsl(188,88%,70%)","hsl(188,88%,90%)"],r[t.ColorNames.Emerald]=["hsl(112,77%,10%)","hsl(112,77%,30%)","hsl(112,77%,50%)","hsl(112,77%,70%)","hsl(112,77%,90%)"],r[t.ColorNames.AppLight]=o,r[t.ColorNames.AppDark]=a,r[t.ColorNames.TextLight]=[1,4,5,6,7].map(function(e){return o[e]}),r[t.ColorNames.TextDark]=[1,4,5,6,7].map(function(e){return a[e]}),r),t.default=i},9148:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UiBorderRadiusBase=t.BorderRadiusNames=void 0;var r,i=n(67862);t.BorderRadiusNames={none:"none",sm:"sm",base:"base",md:"md",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl"};var o=((r={})[t.BorderRadiusNames.none]=0,r[t.BorderRadiusNames.sm]=.125,r[t.BorderRadiusNames.base]=.25,r[t.BorderRadiusNames.md]=.375,r[t.BorderRadiusNames.lg]=.5,r[t.BorderRadiusNames.xl]=.75,r[t.BorderRadiusNames["2xl"]]=1,r[t.BorderRadiusNames["3xl"]]=1.5,r);t.UiBorderRadiusBase={BorderRadiusNames:t.BorderRadiusNames,getPxRaw:function(e,t){return void 0===t&&(t=i.ROOT_FONT_SIZE),o[e]*t},getRem:function(e){return o[e]}}},68959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UiSpacingBase=void 0;var n={0:0,.5:.125,1:.25,1.5:.375,2:.5,2.5:.625,3:.75,3.5:.875,4:1,5:1.25,6:1.5,7:1.75,8:2,9:2.25,10:2.5,11:2.75,12:3,14:3.5,16:4,20:5,24:6,28:7,32:8,36:9,40:10,44:11,48:12,52:13,56:14,60:15,64:16,72:18,80:20,96:24};t.UiSpacingBase={SpacingNames:[0,.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],getPx:function(e,t){return void 0===t&&(t=16),"".concat(n[e]*t,"px")},getPxRaw:function(e,t){return void 0===t&&(t=16),n[e]*t},getRem:function(e){return"".concat(n[e],"rem")}}},67862:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UiTypographyBase=t.UiTextStylesNames=t.ArticleTextStylesNames=t.ROOT_FONT_SIZE=void 0,t.ROOT_FONT_SIZE=16,t.ArticleTextStylesNames={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",body:"body"},t.UiTextStylesNames={lg:"lg",md:"md",sm:"sm",xs:"xs",xxs:"xxs"};var n,r=((n={})[t.ArticleTextStylesNames.heading1]={fontSize:48,lineHeight:52},n[t.ArticleTextStylesNames.heading2]={fontSize:32,lineHeight:36},n[t.ArticleTextStylesNames.heading3]={fontSize:24,lineHeight:36},n[t.ArticleTextStylesNames.heading4]={fontSize:18,lineHeight:28},n[t.ArticleTextStylesNames.body]={fontSize:16,lineHeight:18},n[t.UiTextStylesNames.lg]={fontSize:18,lineHeight:21.6},n[t.UiTextStylesNames.md]={fontSize:16,lineHeight:19.2},n[t.UiTextStylesNames.sm]={fontSize:14.222,lineHeight:16.9},n[t.UiTextStylesNames.xs]={fontSize:12.642,lineHeight:15.2},n[t.UiTextStylesNames.xxs]={fontSize:11.237,lineHeight:13.5},n);t.UiTypographyBase={ArticleTextStylesNames:t.ArticleTextStylesNames,UiTextStylesNames:t.UiTextStylesNames,getFontSize:function(e){return r[e].fontSize},getLineHeight:function(e){return r[e].fontSize},getFontSizeRatio:function(e,n){return void 0===n&&(n=t.ROOT_FONT_SIZE),r[e].fontSize/n},getLineHeightRatio:function(e){return r[e].lineHeight/r[e].fontSize}}},56224:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UiTypographyBase=t.UiTextStylesNames=t.UiSpacingBase=t.UiBorderRadiusBase=t.ThemeColors=t.ThemeColorNames=t.SupportedColors=t.NoticeColorNames=t.getHslColorScale=t.getColorScheme=t.createColorScheme=t.ColorScale=t.Colors=t.ColorRanges=t.ColorNames=t.BorderRadiusNames=t.ArticleTextStylesNames=void 0;var s=o(n(96656));t.Colors=s.default,Object.defineProperty(t,"ColorNames",{enumerable:!0,get:function(){return s.ColorNames}}),Object.defineProperty(t,"ColorRanges",{enumerable:!0,get:function(){return s.ColorRanges}}),Object.defineProperty(t,"NoticeColorNames",{enumerable:!0,get:function(){return s.NoticeColorNames}}),Object.defineProperty(t,"SupportedColors",{enumerable:!0,get:function(){return s.SupportedColors}}),Object.defineProperty(t,"ThemeColorNames",{enumerable:!0,get:function(){return s.ThemeColorNames}}),Object.defineProperty(t,"ThemeColors",{enumerable:!0,get:function(){return s.ThemeColors}});var u=n(9148);Object.defineProperty(t,"BorderRadiusNames",{enumerable:!0,get:function(){return u.BorderRadiusNames}}),Object.defineProperty(t,"UiBorderRadiusBase",{enumerable:!0,get:function(){return u.UiBorderRadiusBase}});var c=n(68959);Object.defineProperty(t,"UiSpacingBase",{enumerable:!0,get:function(){return c.UiSpacingBase}});var l=n(67862);Object.defineProperty(t,"ArticleTextStylesNames",{enumerable:!0,get:function(){return l.ArticleTextStylesNames}}),Object.defineProperty(t,"UiTextStylesNames",{enumerable:!0,get:function(){return l.UiTextStylesNames}}),Object.defineProperty(t,"UiTypographyBase",{enumerable:!0,get:function(){return l.UiTypographyBase}});var f=a(n(8900));t.ColorScale=f.default;var d=a(n(25891));t.createColorScheme=d.default;var p=a(n(50593));t.getColorScheme=p.default;var h=a(n(71918));t.getHslColorScale=h.default},8900:function(e,t){var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._scale=e}return e.prototype.cache=function(e,t){null==this._cache?this._cache=new Map([[e,t]]):this._cache.set(e,t)},e.prototype.hex=function(e){var t,n="hex:".concat(e),r=null===(t=this._cache)||void 0===t?void 0:t.get(n);return null==r&&(r=this._scale("number"==typeof e?e:parseInt(e,10)).hex(),this.cache(n,r)),r},e.prototype.hsl=function(e){var t,n="hsl:".concat(e),r=null===(t=this._cache)||void 0===t?void 0:t.get(n);return null==r&&(r=this._scale("number"==typeof e?e:parseInt(e,10)).css("hsl"),this.cache(n,r)),r},e.prototype.rgba=function(e,t){var n,r="rgba:".concat(e,"+").concat(t),i=null===(n=this._cache)||void 0===n?void 0:n.get(r);return null==i&&(i=this._scale("number"==typeof e?e:parseInt(e,10)).alpha(t).css(),this.cache(r,i)),i},e.prototype.rgbSs=function(e){var t,r="rgbSs:".concat(e),i=null===(t=this._cache)||void 0===t?void 0:t.get(r);if(null==i){var o=n(this._scale("number"==typeof e?e:parseInt(e,10)).rgb(),3),a=o[0],s=o[1],u=o[2];i="".concat(a," ").concat(s," ").concat(u),this.cache(r,i)}return i},Object.defineProperty(e.prototype,"default",{get:function(){return this.hex(50)},enumerable:!1,configurable:!0}),e}();t.default=r},25891:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(28670));t.default=function(e){var t=(0,i.default)(e);return Object.freeze({base:t.hex(),darker10:t.darken(.1).hex(),alpha5:t.alpha(.05).css(),alpha10:t.alpha(.1).css(),alpha20:t.alpha(.2).css(),alpha30:t.alpha(.3).css(),alpha50:t.alpha(.5).css(),alpha80:t.alpha(.8).css(),alpha90:t.alpha(.9).css()})}},50593:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(25891)),o=new Map([["red",(0,i.default)("#FC8D8C")],["blue",(0,i.default)("#54C4FA")],["green",(0,i.default)("#62E163")],["purple",(0,i.default)("#C89CFF")],["pink",(0,i.default)("#F899DA")],["yellow",(0,i.default)("#F9D600")]]);t.default=function(e){if(null!=e){var t=o.get(e);return null!=t||(t=(0,i.default)(e),o.set(e,t)),t}}},71918:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(28670)),o=n(96656),a=r(n(8900)),s=new Map;t.default=function(e,t){var n=s.get(e);if(null!=n)return n;var r=i.default.scale(o.ColorRanges[e]).domain(null!=t?t:[10,90]).mode("hsl");return n=new a.default(r),s.set(e,n),n}},48602:function(e,t,n){var r,i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var f=u(n(67294)),d=l(n(61233)),p=u(n(19314)),h=l(n(75603)),v=d.default.div(r||(r=i(["\n pointer-events: auto;\n position: relative;\n\n & > * {\n pointer-events: ",";\n }\n"],["\n pointer-events: auto;\n position: relative;\n\n & > * {\n pointer-events: ",";\n }\n"])),function(e){return e.$isDraggingOver?"none":"auto"}),y=function(e){var t=e.children,n=e.className,r=e.onItemAdd,i=e.horizontal,a=e.placeholder,s=e.acceptedTypes,u=c(e,["children","className","onItemAdd","horizontal","placeholder","acceptedTypes"]),l=(0,f.useContext)(p.default),d=(0,h.default)({acceptedTypes:s,dropEffect:"copy",onDrop:function(e){if(-1===m){console.warn("invalid drag");return}r(e,m)},horizontal:i}),y=d.referenceProps,m=d.placeholderIndex,g=d.placeholderSize,b=(0,f.useMemo)(function(){var e=f.default.Children.toArray(t);return -1!==m&&(null==e||e.splice(m,0,f.default.createElement(a,{key:"placeholder","data-is-placeholder":"true",size:g,horizontal:i}))),e},[a,t,i,m,g]);return f.default.createElement(v,o({},u,y,{className:n,$isDraggingOver:null==l?void 0:l.isDraggingOver}),b)};t.default=function(e){var t=e.children;return f.default.createElement(p.ListDragTargetProvider,null,f.default.createElement(y,o({},e),t))}},54396:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},u=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var c=a(n(67294)),l=n(48492),f=n(44355),d=n(96863);t.default=c.forwardRef(function(e,t){var n=e.children,i=e.initialFocus,o=e.isSubmenu,a=e.loop,p=e.onKeyDown,h=s(e,["children","initialFocus","isSubmenu","loop","onKeyDown"]),v=null!=o&&o,y=c.useRef(null),m=u((0,d.useRovingTabindex)({loop:a}),2),g=m[0],b=m[1],_=(0,d.useRovingTabindexStateProvider)(),O=(0,d.useRovingTabindexDispatchProvider)(),w=c.useContext(f.PopupDispatchContext),x=c.useCallback(function(e){e.key===l.KeyboardKeys.Escape?(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),null==w||w({type:"Collapse"})):e.key!==l.KeyboardKeys.ArrowLeft||e.shiftKey?e.key!==l.KeyboardKeys.ArrowUp||e.shiftKey?e.key!==l.KeyboardKeys.ArrowDown||e.shiftKey||(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),b({type:d.ActionTypes.Next})):(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),b({type:d.ActionTypes.Previous})):v&&(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),null==w||w({type:"Collapse"})),null==p||p(e)},[b,v,p,w]),S=g.stops.length,E=c.useRef(S);return c.useEffect(function(){E.current=S},[S]),c.useEffect(function(){var e,t;"first"===i?E.current>0?b({type:d.ActionTypes.First}):null===(e=y.current)||void 0===e||e.focus():"last"===i&&(E.current>0?b({type:d.ActionTypes.Last}):null===(t=y.current)||void 0===t||t.focus())},[b,i]),c.useImperativeHandle(t,function(){return{dispatch:b}},[b]),c.createElement(_,{value:g},c.createElement(O,{value:b},c.createElement("div",r({},h,{ref:y,role:"menu",onKeyDown:x,tabIndex:-1}),n)))})},88311:function(e,t,n){var r,i,o,a,s,u,c,l,f=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},d=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),p=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),h=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return p(t,e),t},v=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalDialog=t.ModalDialogContext=t.Dialog=t.Backdrop=t.ModalDialogOpacity=void 0;var m=n(58780),g=y(n(94184)),b=h(n(67294)),_=y(n(73935)),O=h(n(61233)),w=y(n(84375)),x=n(77495);(r=o||(t.ModalDialogOpacity=o={})).Opaque="opaque",r.Translucent="translucent",r.Transparent="transparent";var S=((i={})[o.Opaque]=.9,i[o.Translucent]=.4,i[o.Transparent]=0,i);function E(e){return(0,O.keyframes)(a||(a=f(["\n from {\n background-color: rgba(0, 0, 0, 0);\n }\n to {\n background-color: rgba(0, 0, 0, ",");\n }\n "],["\n from {\n background-color: rgba(0, 0, 0, 0);\n }\n to {\n background-color: rgba(0, 0, 0, ",");\n }\n "])),S[e])}var k=(0,O.keyframes)(s||(s=f(["\n from {\n transform: scale(0.9);\n opacity: 0;\n }\n to {\n transform: scale(1.0);\n opacity: 1;\n }\n"],["\n from {\n transform: scale(0.9);\n opacity: 0;\n }\n to {\n transform: scale(1.0);\n opacity: 1;\n }\n"])));t.Backdrop=O.default.div(u||(u=f(["\n pointer-events: auto;\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.entering {\n animation: "," ","ms ease-in-out 1 normal forwards;\n }\n\n &.entered {\n background-color: rgba(0, 0, 0, ",");\n }\n\n &.exiting {\n animation: "," ","ms ease-in-out 1 reverse forwards;\n }\n\n &.exited {\n background-color: rgba(0, 0, 0, 0);\n }\n"],["\n pointer-events: auto;\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n &.entering {\n animation: "," ","ms ease-in-out 1 normal forwards;\n }\n\n &.entered {\n background-color: rgba(0, 0, 0, ",");\n }\n\n &.exiting {\n animation: "," ","ms ease-in-out 1 reverse forwards;\n }\n\n &.exited {\n background-color: rgba(0, 0, 0, 0);\n }\n"])),function(e){return E(e.$opacity)},200,function(e){return S[e.$opacity]},function(e){return E(e.$opacity)},200),t.Dialog=O.default.div(l||(l=f(["\n ","\n border-radius: 1.5rem;\n overflow: visible;\n margin: 0 1.25rem;\n\n & > div {\n min-width: 360px;\n }\n @media (min-width: 768px) {\n & > div {\n min-width: 550px;\n }\n }\n\n .entering & {\n animation: "," ","ms ease-in-out 1 normal forwards;\n }\n\n .entered & {\n opacity: 1;\n }\n\n .exiting & {\n animation: "," ","ms ease-in-out 1 reverse forwards;\n }\n\n .exited & {\n opacity: 0;\n }\n"],["\n ","\n border-radius: 1.5rem;\n overflow: visible;\n margin: 0 1.25rem;\n\n & > div {\n min-width: 360px;\n }\n @media (min-width: 768px) {\n & > div {\n min-width: 550px;\n }\n }\n\n .entering & {\n animation: "," ","ms ease-in-out 1 normal forwards;\n }\n\n .entered & {\n opacity: 1;\n }\n\n .exiting & {\n animation: "," ","ms ease-in-out 1 reverse forwards;\n }\n\n .exited & {\n opacity: 0;\n }\n"])),function(e){return!e.$disableBackground&&(0,O.css)(c||(c=f(["\n background-color: ",";\n "],["\n background-color: ",";\n "])),e.theme.appColors.hex(100))},k,200,k,200),t.ModalDialogContext=b.createContext(void 0),t.ModalDialog=function(e){var n,r,i,a,s=e.children,u=e.isOpen,c=null!==(n=e.dialogBackdropValue)&&void 0!==n?n:"backdrop",l=v(b.useState(!1),2),f=l[0],d=l[1],p=null===(r=e.autofocus)||void 0===r||r,h=null!==(a=null!==(i=e.backdropOpacity)&&void 0!==i?i:e.opacity)&&void 0!==a?a:o.Opaque,y=b.useContext(w.default),O={};null!=e.close&&(O.close=e.close),null!=e.open&&(O.open=e.open);var S=v((0,m.useMachine)(x.DialogMachine,{context:{timeout:200},actions:O,guards:{}}),2),E=S[0],k=S[1],P=b.useRef(null),T=b.useMemo(function(){return{state:E,send:k}},[k,E]);b.useEffect(function(){u&&k("ENTER")},[u,k]),b.useEffect(function(){var e;"entered"===E.value&&!0===p&&(null===(e=P.current)||void 0===e||e.focus())},[p,E.value]);var j=b.useCallback(function(e){k({type:"EXIT",payload:{force:!0===e}})},[k]);if(!u)return null;var D=null==y?void 0:y.overlay;if(null==D)return null;var C=E.toStrings();return _.default.createPortal(b.createElement(t.ModalDialogContext.Provider,{value:T},b.createElement(t.Backdrop,{"data-dialog":c,className:(0,g.default)("backdrop",C,e.backdropClassName),onMouseUp:function(e){0===e.button&&e.target instanceof Element&&e.target.getAttribute("data-dialog")===c&&f&&k({type:"EXIT",payload:{source:"backdrop"}})},onMouseDown:function(e){0===e.button&&e.target instanceof Element&&e.target.getAttribute("data-dialog")===c&&d(!0)},onMouseDownCapture:function(e){0===e.button&&d(!1)},$opacity:h},b.createElement(t.Dialog,{className:(0,g.default)("dialog",e.className),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),"Escape"===e.key&&j()},ref:P,tabIndex:-1,$disableBackground:e.disableBackground},s({exit:j,state:E,send:k})))),D)},t.default=t.ModalDialog},26591:function(e,t,n){var r,i,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),u=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Notice=void 0;var c=n(56224),l=u(n(61233));t.Notice=l.default.div(i||(i=o(["\n border: 1px solid;\n border-radius: 10px;\n padding: 8px 12px;\n color: ",";\n ","\n"],["\n border: 1px solid;\n border-radius: 10px;\n padding: 8px 12px;\n color: ",";\n ","\n"])),function(e){return e.theme.isNightMode?"#e5e5e5":"#333"},function(e){var t,n=null!==(t=e.$type)&&void 0!==t?t:"info",i=c.ThemeColors[n],a=(0,c.getColorScheme)(i);if(null!=a){var s=a.alpha10,u="info"!==n?a.base:e.theme.isNightMode?"#666":"#ccc";return(0,l.css)(r||(r=o(["\n border-color: ",";\n background: ",";\n "],["\n border-color: ",";\n background: ",";\n "])),u,s)}})},81679:function(e,t,n){var r,i=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(61233)).default.span(r||(r=i(["\n font-size: 13px;\n color: ",";\n text-transform: uppercase;\n"],["\n font-size: 13px;\n color: ",";\n text-transform: uppercase;\n"])),function(e){var t;return(null===(t=e.theme)||void 0===t?void 0:t.isNightMode)?"#ccc":"#999"});t.default=a},7790:function(e,t,n){var r,i,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupContainer=void 0;var d=c(n(67294)),p=f(n(73935)),h=f(n(61233)),v=f(n(84375)),y=n(44355),m=h.default.div(r||(r=o(["\n pointer-events: auto;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: none;\n"],["\n pointer-events: auto;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: none;\n"])));t.PopupContainer=h.default.div(i||(i=o(["\n pointer-events: auto;\n position: absolute;\n"],["\n pointer-events: auto;\n position: absolute;\n"]))),t.default=d.forwardRef(function(e,n){var r,i=e.children,o=e.modal,s=e.dispatch,u=e.onBackdropClick,c=e.onBackdropMouseDown,f=e.onClick,h=l(e,["children","modal","dispatch","onBackdropClick","onBackdropMouseDown","onClick"]),g=d.useContext(v.default),b=null!==(r=null==g?void 0:g.overlay)&&void 0!==r?r:"undefined"!=typeof document?document.body:void 0,_=d.useMemo(function(){return null==u?function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),null==s||s({type:"Collapse"})}:u},[s,u]),O=d.useMemo(function(){return null==f?function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}:f},[f]);if(null==b)return null;var w=d.createElement(t.PopupContainer,a({onClick:O,ref:n},h),d.createElement(y.PopupDispatchContext.Provider,{value:s},i));return p.default.createPortal(o?d.createElement(m,{onClick:_,onMouseDown:c},w):w,b)})},94683:function(e,t,n){var r,i,o,a=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return u(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Combo=t.Key=void 0;var l=c(n(61233));t.Key=l.default.span(r||(r=a(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n min-width: calc(\n var(--Shortcut__Key--font-size, ",") +\n (var(--Shortcut__Key--padding, ",") * 2)\n );\n padding: var(--Shortcut__Key--padding, ",");\n border-radius: 3px;\n background-color: ",";\n\n color: ",";\n font-size: var(--Shortcut__Key--font-size, ",");\n line-height: var(--Shortcut__Key--font-size, ",");\n text-transform: uppercase;\n\n :not(:last-child) {\n margin-right: var(--Shortcut__Key--gap, ",");\n }\n"],["\n display: flex;\n justify-content: center;\n align-items: center;\n\n min-width: calc(\n var(--Shortcut__Key--font-size, ",") +\n (var(--Shortcut__Key--padding, ",") * 2)\n );\n padding: var(--Shortcut__Key--padding, ",");\n border-radius: 3px;\n background-color: ",";\n\n color: ",";\n font-size: var(--Shortcut__Key--font-size, ",");\n line-height: var(--Shortcut__Key--font-size, ",");\n text-transform: uppercase;\n\n :not(:last-child) {\n margin-right: var(--Shortcut__Key--gap, ",");\n }\n"])),function(e){var t;return null!==(t=e.fontSize)&&void 0!==t?t:"11px"},function(e){var t;return null!==(t=e.padding)&&void 0!==t?t:"4px"},function(e){var t;return null!==(t=e.padding)&&void 0!==t?t:"4px"},function(e){return e.alwaysDark||e.theme.isNightMode?"#666":"#e5e5e5"},function(e){return e.alwaysDark||e.theme.isNightMode?"#e5e5e5":"#333"},function(e){var t;return null!==(t=e.fontSize)&&void 0!==t?t:"11px"},function(e){var t;return null!==(t=e.fontSize)&&void 0!==t?t:"11px"},function(e){var t;return null!==(t=e.gap)&&void 0!==t?t:"3px"}),t.Combo=l.default.span(o||(o=a(["\n display: flex;\n --Shortcut__Key--font-size: ",";\n --Shortcut__Key--padding: ",";\n --Shortcut__Key--gap: ",";\n\n ",";\n"],["\n display: flex;\n --Shortcut__Key--font-size: ",";\n --Shortcut__Key--padding: ",";\n --Shortcut__Key--gap: ",";\n\n ",";\n"])),function(e){var t;return null!==(t=e.fontSize)&&void 0!==t?t:"11px"},function(e){var t;return null!==(t=e.padding)&&void 0!==t?t:"4px"},function(e){var t;return null!==(t=e.gap)&&void 0!==t?t:"3px"},function(e){return e.alwaysDark&&(0,l.css)(i||(i=a(["\n "," {\n background-color: #666;\n color: #e5e5e5;\n }\n "],["\n "," {\n background-color: #666;\n color: #e5e5e5;\n }\n "])),t.Key)})},67450:function(e,t,n){var r,i,o,a,s=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return c(t,e),t},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=f(n(67294)),p=l(n(61233)),h=(0,p.keyframes)(r||(r=s(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"],["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),v=(0,p.keyframes)(i||(i=s(["\n 0% { opacity: 0; }\n 66% { opacity: 0; }\n 100% { opacity: 1; }\n"],["\n 0% { opacity: 0; }\n 66% { opacity: 0; }\n 100% { opacity: 1; }\n"]))),y=p.default.div(o||(o=s(["\n position: relative;\n width: ",";\n height: ",";\n border: 2px solid ",";\n border-top-color: rgba(0, 0, 0, 0.1);\n border-right-color: rgba(0, 0, 0, 0.1);\n border-bottom-color: rgba(0, 0, 0, 0.1);\n border-radius: 100%;\n -webkit-animation: "," infinite 0.75s linear;\n -moz-animation: "," infinite 0.75s linear;\n -o-animation: "," infinite 0.75s linear;\n animation: "," infinite 0.75s linear;\n"],["\n position: relative;\n width: ",";\n height: ",";\n border: 2px solid ",";\n border-top-color: rgba(0, 0, 0, 0.1);\n border-right-color: rgba(0, 0, 0, 0.1);\n border-bottom-color: rgba(0, 0, 0, 0.1);\n border-radius: 100%;\n -webkit-animation: "," infinite 0.75s linear;\n -moz-animation: "," infinite 0.75s linear;\n -o-animation: "," infinite 0.75s linear;\n animation: "," infinite 0.75s linear;\n"])),function(e){return e.size?"".concat(e.size,"px"):"25px"},function(e){return e.size?"".concat(e.size,"px"):"25px"},function(e){return e.color?"".concat(e.color):"rgba(125, 125, 125, 0.9)"},h,h,h,h),m=p.default.div(a||(a=s(["\n display: flex;\n align-items: ",";\n justify-content: ",";\n justify-self: ",";\n min-width: ",";\n min-height: ",";\n margin-bottom: ",";\n -webkit-animation: "," ease 0s normal\n forwards 1 ",";\n -moz-animation: "," ease 0s normal forwards\n 1 ",";\n -o-animation: "," ease 0s normal forwards 1\n ",";\n animation: "," ease 0s normal forwards 1\n ",";\n"],["\n display: flex;\n align-items: ",";\n justify-content: ",";\n justify-self: ",";\n min-width: ",";\n min-height: ",";\n margin-bottom: ",";\n -webkit-animation: "," ease 0s normal\n forwards 1 ",";\n -moz-animation: "," ease 0s normal forwards\n 1 ",";\n -o-animation: "," ease 0s normal forwards 1\n ",";\n animation: "," ease 0s normal forwards 1\n ",";\n"])),function(e){return e.align?"".concat(e.align):"center"},function(e){return e.justify?"".concat(e.justify):"center"},function(e){return e.justify?"".concat(e.justify):"center"},function(e){return e.width?"".concat(e.width,"px"):"100%"},function(e){return e.height?"".concat(e.height,"px"):"inherit"},function(e){return null!=e.marginBottom?"".concat(e.marginBottom,"px"):"inherit"},function(e){return e.delay?"".concat(e.delay,"s"):"200ms"},v,function(e){return e.delay?"".concat(e.delay,"s"):"200ms"},v,function(e){return e.delay?"".concat(e.delay,"s"):"200ms"},v,function(e){return e.delay?"".concat(e.delay,"s"):"200ms"},v);t.default=function(e){var t,n,r,i,o,a,s=e.delay,u=e.marginBottom,c=null!==(t=e.width)&&void 0!==t?t:0,l=null!==(n=e.height)&&void 0!==n?n:0,f=null!==(r=e.size)&&void 0!==r?r:0,p=null!==(i=e.justify)&&void 0!==i?i:"center",h=null!==(o=e.align)&&void 0!==o?o:"",v=null!==(a=e.color)&&void 0!==a?a:"";return d.default.createElement(m,{height:l,width:c,justify:p,align:h,delay:s,marginBottom:u},d.default.createElement(y,{size:f,color:v}))}},91901:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(67294));t.default=function(e){var t=e.className,n=e.onChange,r=e.type,o=e.value;return i.default.createElement("div",{className:t,role:"tablist"},i.default.Children.map(e.children,function(e){if(!i.default.isValidElement(e))return e;var t=null!=o&&e.props.value===o;return i.default.cloneElement(e,{selected:t,type:r,onClick:function(t){var r,i;null===(i=(r=e.props).onClick)||void 0===i||i.call(r,t),t.isDefaultPrevented()||null==n||n(e.props.value)}})}))}},22380:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(94184)),s=o(n(67294));t.default=function(e){var t,n,o=null,u=s.default.Children.toArray(e.children);try{for(var c=i(u),l=c.next();!l.done;l=c.next()){var f=l.value;if(s.default.isValidElement(f)&&f.props.value===e.value){o=f;break}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}if(null==o)return null;var d=r(r({},o.props),{role:"tabpanel"});return null!=e.className&&(null!=d.className?d.className=(0,a.default)(e.className,d.className):d.className=e.className),s.default.cloneElement(o,d)}},97918:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TabPanelSwitch=t.TabList=void 0;var i=n(91901);Object.defineProperty(t,"TabList",{enumerable:!0,get:function(){return r(i).default}});var o=n(22380);Object.defineProperty(t,"TabPanelSwitch",{enumerable:!0,get:function(){return r(o).default}})},62901:function(e,t,n){var r,i,o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n "," {\n bottom: -12px;\n\n &::before {\n border-top-color: rgba(0, 0, 0, 0.85);\n }\n }\n\n &[data-popper-placement^='bottom'] > "," {\n top: -12px;\n\n &::before {\n border-bottom-color: rgba(0, 0, 0, 0.85);\n }\n }\n\n &[data-popper-placement^='left'] > "," {\n right: -12px;\n\n &::before {\n border-left-color: rgba(0, 0, 0, 0.85);\n }\n }\n\n &[data-popper-placement^='right'] > "," {\n left: -12px;\n\n &::before {\n border-right-color: rgba(0, 0, 0, 0.85);\n }\n }\n"],["\n pointer-events: none;\n position: absolute;\n color: white;\n background-color: rgba(0, 0, 0, 0.85);\n border-radius: 4px;\n padding: 8px 12px;\n font-size: 14px;\n line-height: 1rem;\n user-select: none;\n font-weight: 500;\n\n &[data-popper-placement^='top'] > "," {\n bottom: -12px;\n\n &::before {\n border-top-color: rgba(0, 0, 0, 0.85);\n }\n }\n\n &[data-popper-placement^='bottom'] > "," {\n top: -12px;\n\n &::before {\n border-bottom-color: rgba(0, 0, 0, 0.85);\n }\n }\n\n &[data-popper-placement^='left'] > "," {\n right: -12px;\n\n &::before {\n border-left-color: rgba(0, 0, 0, 0.85);\n }\n }\n\n &[data-popper-placement^='right'] > "," {\n left: -12px;\n\n &::before {\n border-right-color: rgba(0, 0, 0, 0.85);\n }\n }\n"])),t.TooltipArrow,t.TooltipArrow,t.TooltipArrow,t.TooltipArrow),t.default=function(e){var n,r,i=e.children,o=e.arrowProps,s=e.popperProps,u=(0,f.useContext)(h.default),c=null!==(n=null==u?void 0:u.overlay)&&void 0!==n?n:null===(r=(0,v.default)())||void 0===r?void 0:r.body;return null==c?null:d.default.createPortal(f.default.createElement(t.TooltipContainer,a({},s),i,f.default.createElement(t.TooltipArrow,a({},o))),c)}},48492:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardKeys=void 0,function(e){e.Unidentified="Unidentified",e.Alt="Alt",e.Control="Control",e.Shift="Shift",e.Enter="Enter",e.Tab="Tab",e.Space=" ",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.ArrowUp="ArrowUp",e.End="End",e.Home="Home",e.Backspace="Backspace",e.Delete="Delete",e.ContextMenu="ContextMenu",e.Escape="Escape"}(n||(t.KeyboardKeys=n={}))},91872:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModifierKeys=t.DraftModifierKeys=void 0;var i=r(n(38750)),o="Control",a="Command";t.DraftModifierKeys={Alt:"Alt",Control:o,Command:a,ControlSymbol:"Ctrl",CommandSymbol:"⌘",Shift:"Shift"};var s=(0,i.default)(function(e){return null==e?o:/(Mac|iPhone|iPod|iPad|iOS)/i.test(e)?a:o});Object.defineProperty(t.DraftModifierKeys,"Mod",{configurable:!1,enumerable:!0,get:function(){return"undefined"==typeof window?this.Control:s(window.navigator.userAgent)}}),Object.defineProperty(t.DraftModifierKeys,"ModSymbol",{configurable:!1,enumerable:!0,get:function(){return this.Mod===this.Command?this.CommandSymbol:this.ControlSymbol}}),t.ModifierKeys=t.DraftModifierKeys},30337:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.DndProvider=void 0;var s=o(n(67294)),u=s.default.createContext(void 0);t.DndProvider=function(e){var t=e.children,n=a((0,s.useState)({height:0,width:0}),2),r=n[0],i=n[1],o=a((0,s.useState)({dx:0,dy:0}),2),c=o[0],l=o[1];return s.default.createElement(u.Provider,{value:{placeholderSize:r,setPlaceholderSize:i,mouseToCenterOffset:c,setMouseToCenterOffset:l}},t)},t.default=u},84375:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.LayersProvider=void 0;var s=o(n(67294)),u=s.default.createContext(void 0);t.LayersProvider=function(e){var t=e.children,n=(0,s.useRef)(null),r=(0,s.useRef)(null),i=a((0,s.useState)({app:n.current,overlay:r.current}),2),o=i[0],c=i[1];return(0,s.useEffect)(function(){c({app:n.current,overlay:r.current})},[]),s.default.createElement(u.Provider,{value:o},s.default.createElement("div",{id:"app-layer",ref:n,style:{position:"relative",zIndex:0}},t),s.default.createElement("div",{id:"overlay-layer",ref:r,style:{position:"fixed",zIndex:1,top:"0px",right:"0px",bottom:"0px",left:"0px",overflow:"hidden",pointerEvents:"none"}}))},t.default=u},19314:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ListDragTargetProvider=void 0;var s=o(n(67294)),u=s.default.createContext(void 0);t.ListDragTargetProvider=function(e){var t=e.children,n=(0,s.useRef)(null),r=a((0,s.useState)(null),2),i=r[0],o=r[1],c=a((0,s.useState)(!1),2),l=c[0],f=c[1];return s.default.createElement(u.Provider,{value:{listRef:n,draggedItemIndex:i,setDraggedItemIndex:o,isDraggingOver:l,setIsDraggingOver:f}},t)},t.default=u},37129:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MenuGroupActionTypes=void 0;var a=o(n(67294));t.MenuGroupActionTypes={Activate:"Activate",Dismiss:"Dismiss"};var s=a.createContext(void 0);t.default=s},19907:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DATATRANSFER_TYPE_FILES=void 0;var a=n(67294),s=o(n(30337));function u(e,t){return e.filter(function(e){return t.includes(e)}).length>0}t.DATATRANSFER_TYPE_FILES="Files",t.default=function(e){var n=e.acceptedTypes,o=e.dropEffect,c=e.onDragEnter,l=e.onDragOver,f=e.onDragLeave,d=e.onDrop,p=(0,a.useContext)(s.default),h=r((0,a.useState)(!1),2),v=h[0],y=h[1],m=(0,a.useCallback)(function(e){var t=e.nativeEvent.dataTransfer;if(null!=t){var r=t.types;u(n,r)?(e.preventDefault(),y(!0),null==c||c(e)):console.warn("Unsupported types: ".concat(r))}},[n,c]),g=(0,a.useCallback)(function(e){var t=e.nativeEvent.dataTransfer;if(null!=t){var r=t.types;if(!u(n,r)){console.warn("Unsupported types: ".concat(r));return}e.preventDefault(),null!=t&&(t.dropEffect=o),null==l||l(e)}},[n,o,l]),b=(0,a.useCallback)(function(e){e.preventDefault(),null==f||f(e),y(!1)},[f]),_=(0,a.useCallback)(function(e){var r,o,a=e.nativeEvent.dataTransfer;if(null!=a){var s=a.types;if(!u(n,s)){console.warn("Unsupported types: ".concat(s));return}e.preventDefault();var c={};try{for(var l=i(n),f=l.next();!f.done;f=l.next()){var p=f.value;if(p===t.DATATRANSFER_TYPE_FILES){var h=a.files;h.length>0&&(c[t.DATATRANSFER_TYPE_FILES]=h);continue}var v=a.getData(p);v.length>0&&(c[p]=v)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}Object.keys(c).length>0&&(null==d||d(c),y(!1))}},[n,d]);return{referenceProps:(0,a.useMemo)(function(){return{onDragEnter:m,onDragOver:g,onDragLeave:b,onDrop:_}},[m,g,b,_]),isDragging:v,placeholderSize:null==p?void 0:p.placeholderSize}}},79174:function(e,t,n){var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(67294),s=o(n(30337)),u=o(n(19314));t.default=function(e){var t=e.getData,n=e.effectAllowed,o=e.onDragStart,c=e.onDragEnd,l=(0,a.useContext)(s.default),f=(0,a.useContext)(u.default),d=(0,a.useRef)(null),p=(0,a.useCallback)(function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation();var a,s,u=e.nativeEvent,c=u.dataTransfer,p=u.target,h=u.offsetX,v=u.offsetY;if(null!=c&&p instanceof HTMLElement){null==l||l.setMouseToCenterOffset({dx:p.clientWidth/2-h,dy:p.clientHeight/2-v});try{for(var y=r(Object.entries(t().data)),m=y.next();!m.done;m=y.next()){var g=i(m.value,2),b=g[0],_=g[1];c.setData(b,_)}}catch(e){a={error:e}}finally{try{m&&!m.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}c.effectAllowed=n;var O=t().dragImage;if(null!=O&&(document.body.appendChild(O),c.setDragImage(O,0,0),requestAnimationFrame(function(){O.remove()})),null==o||o(),null!=d.current){var w=null==f?void 0:f.listRef.current;if(null!=w){var x=Array.from(w.children).indexOf(d.current);null==f||f.setDraggedItemIndex(x),requestAnimationFrame(function(){null!=d.current&&(d.current.dataset.isDragging="true")});var S=d.current.getBoundingClientRect();null==l||l.setPlaceholderSize({height:S.height,width:S.width})}}}},[l,n,t,f,o]),h=(0,a.useCallback)(function(e){var t=e.dataTransfer.dropEffect;null==c||c(t),null!=d.current&&delete d.current.dataset.isDragging},[c]);return{referenceProps:(0,a.useMemo)(function(){return{ref:d,draggable:!0,onDragStart:p,onDragEnd:h}},[p,h])}}},75603:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(67294),s=o(n(19314)),u=o(n(51491));t.default=function(e){var t=e.onDrop,n=e.onDragLeave,o=e.horizontal,c=(0,a.useContext)(s.default),l=i((0,a.useState)(-1),2),f=l[0],d=l[1],p=(0,a.useCallback)(function(e){var t,n;null!==(n=null===(t=null==c?void 0:c.listRef.current)||void 0===t?void 0:t.parentElement)&&void 0!==n&&n.dataset.isDragging||(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),null==c||c.setIsDraggingOver(!0))},[c]),h=(0,a.useCallback)(function(e){var t,n,r=null==c?void 0:c.listRef.current;if(null===(t=null==r?void 0:r.parentElement)||void 0===t||!t.dataset.isDragging){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation();var i=e.nativeEvent,a=i.target,s=i.offsetX,u=i.offsetY;if(a instanceof HTMLElement&&null!=r&&a===r){var l=Array.from(r.children).filter(function(e){return!e.dataset.isPlaceholder});if(0===l.length){0!==f&&d(0);return}for(var p=o?s:u,h=0;hg&&p<=x){n=h-1===(null==c?void 0:c.draggedItemIndex)?-1:h;break}if(p>x&&p<=b){n=h+1===(null==c?void 0:c.draggedItemIndex)?-1:h+1;break}}}null!=n&&n!==f&&d(n)}}},[null==c?void 0:c.listRef,null==c?void 0:c.draggedItemIndex,o,f]),v=(0,a.useCallback)(function(e){null==n||n(e),d(-1),e.target===(null==c?void 0:c.listRef.current)&&(null==c||c.setIsDraggingOver(!1))},[c,n]),y=(0,a.useCallback)(function(e){null==t||t(e),d(-1),null==c||c.setIsDraggingOver(!1)},[t,c]),m=(0,u.default)(r(r({},e),{onDragEnter:p,onDragOver:h,onDragLeave:v,onDrop:y})),g=m.referenceProps,b=m.placeholderSize;return{referenceProps:r(r({},g),{ref:null==c?void 0:c.listRef}),placeholderIndex:f,placeholderSize:b}}},6915:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(67294)),u=n(48492),c=a(n(81970)),l=n(44355);t.default=function(e){var t=e.dispatch,n=e.ref,r=e.state,i=e.onClick,o=e.onKeyDown,a=s.useCallback(function(e){null==o||o(e),!e.isDefaultPrevented()&&(e.key===u.KeyboardKeys.Enter||e.key===u.KeyboardKeys.Space?(e.stopPropagation(),!(0,c.default)(e.currentTarget,e.key)&&(e.preventDefault(),r.expanded?t({type:l.PopupActionTypes.Collapse}):t({type:l.PopupActionTypes.Expand,payload:"first"}))):e.key===u.KeyboardKeys.ArrowDown?(e.stopPropagation(),e.preventDefault(),t({type:l.PopupActionTypes.Expand,payload:"first"})):e.key===u.KeyboardKeys.ArrowUp?(e.stopPropagation(),e.preventDefault(),t({type:l.PopupActionTypes.Expand,payload:"last"})):e.key===u.KeyboardKeys.Escape&&r.expanded&&t({type:l.PopupActionTypes.Collapse}))},[t,o,r.expanded]),f=s.useCallback(function(e){null==i||i(e),e.isDefaultPrevented()||(r.expanded?t({type:l.PopupActionTypes.Collapse}):t({type:l.PopupActionTypes.Expand,payload:"first"}))},[t,i,r.expanded]);return{props:{"aria-expanded":!!r.expanded||void 0,"aria-haspopup":"menu",onClick:f,onKeyDown:a,ref:n,role:"button",tabIndex:0}}}},39674:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(67294)),u=n(48492),c=a(n(37129)),l=n(96863),f=a(n(81970));t.default=function(e){var t=e.onClick,n=e.onKeyDown,r=e.onMouseEnter,i=e.stopRef,o=e.disabled,a=e.name,d=e.value,p=null==e?void 0:e.submenuPopupState,h=null!=p,v=(0,l.useRovingStop)({stopRef:i,disabled:o}),y=v.dispatch,m=v.navigated,g=v.state,b=v.tabIndex,_=s.useContext(c.default),O=s.useCallback(function(e){null==t||t(e),e.isDefaultPrevented()||h||null==_||_({type:"Activate",payload:{name:a,value:d}})},[h,_,a,t,d]),w=s.useCallback(function(e){if(e.key!==u.KeyboardKeys.ArrowUp||e.shiftKey){if(e.key!==u.KeyboardKeys.ArrowDown||e.shiftKey){if(e.key===u.KeyboardKeys.Home)e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),y({type:l.ActionTypes.First});else if(e.key===u.KeyboardKeys.End)e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),y({type:l.ActionTypes.Last});else if(e.key===u.KeyboardKeys.Enter||e.key===u.KeyboardKeys.Space){if(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),(0,f.default)(e.currentTarget,e.key))return;e.preventDefault(),e.currentTarget.click()}else e.key===u.KeyboardKeys.ArrowRight&&!e.shiftKey&&h&&(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),e.currentTarget.click())}else e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),y({type:l.ActionTypes.Next})}else e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),y({type:l.ActionTypes.Previous});null==n||n(e)},[y,h,n]),x=s.useCallback(function(e){y({type:l.ActionTypes.Navigate,payload:i}),null==r||r(e)},[y,r,i]);return s.useEffect(function(){var e;m&&(null===(e=i.current)||void 0===e||e.focus())},[m,i]),{dispatch:y,navigated:m,props:{"aria-haspopup":h?"menu":void 0,"aria-expanded":null!=p&&!!p.expanded||void 0,onClick:O,onKeyDown:w,onMouseEnter:x,ref:i,role:"menuitem",tabIndex:b},state:g}}},29112:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(67294)),u=n(48492);t.default=function(e){var t=e.options,n=e.loop,r=void 0!==n&&n,i=e.selectedIndex,o=null!=i&&i>=0?i:0,c=a(s.useState(0),2),l=c[0],f=c[1],d=s.useCallback(function(){f(o)},[o]);return s.useEffect(function(){f(o)},[o]),{activeIndex:l,resetActiveIndex:d,options:t.map(function(e,t){return{value:e,props:{active:t===l,onMouseEnter:function(){return f(t)}}}}),onKeyDownHandler:function(e){switch(e.key){case u.KeyboardKeys.ArrowDown:var n=l+1;n>t.length-1&&(n=r?0:t.length-1),f(n),e.preventDefault();break;case u.KeyboardKeys.ArrowUp:var n=l-1;n<0&&(n=r?t.length-1:0),f(n),e.preventDefault()}}}}},48818:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=a(n(67294)),l=u(n(35506));t.default=function(e){var t,n,i=null!==(t=null==e?void 0:e.placement)&&void 0!==t?t:"auto",o=null!==(n=null==e?void 0:e.strategy)&&void 0!==n?n:"absolute",a=(0,c.useRef)(null),u=(0,c.useRef)(null),f=(0,c.useRef)(null),d=s((0,c.useState)(!1),2),p=d[0],h=d[1],v=c.default.useCallback(function(){return[{name:"arrow",options:{element:u.current}},{name:"offset",options:{offset:[0,8]}}]},[]),y=(0,l.default)({computeModifiersCallback:v,referenceElementRef:a,popperElementRef:f,visible:p,placement:i,strategy:o,name:"tooltip"}),m=(0,c.useCallback)(function(){h(!p)},[p]),g=(0,c.useMemo)(function(){return{ref:a}},[]),b=(0,c.useMemo)(function(){if(!p)return{arrowProps:{ref:u},popperProps:{ref:f}};if(null==y.state)return{arrowProps:{"data-popper-arrow":!0,ref:u,style:{visibility:"hidden"}},popperProps:{ref:f,role:"tooltip",style:{visibility:"hidden"}}};var e=y.state,t=e.attributes,n=e.styles;return{arrowProps:r(r({},t.arrow),{"data-popper-arrow":!0,ref:u,style:n.arrow}),popperProps:r(r({},t.popper),{role:"tooltip",ref:f,style:n.popper})}},[y.state,p]);return{arrowProps:b.arrowProps,popperProps:b.popperProps,referenceProps:g,onToggle:m,visible:p,setVisible:h,popperInstanceRef:y.instanceRef}}},90891:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var c=a(n(67294)),l=u(n(29112));t.default=function(e){var t=s((0,c.useState)(!1),2),n=t[0],i=t[1],o=(0,l.default)(r(r({},e),{visible:n}));return{instanceRef:o.instanceRef,popperProps:o.popperProps,referenceProps:o.referenceProps,onToggle:c.default.useCallback(function(){i(function(e){return!e})},[]),visible:n,setVisible:i}}},29730:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useMenuItem=t.useMenuButton=t.useListDragTarget=t.useForkRef=t.useDragTarget=t.useDraggable=t.useControlledTooltip=t.UiSpacing=t.TooltipContainer=t.TooltipArrow=t.Tooltip=t.ThemeProvider=t.ThemeContext=t.ThemeColors=t.ThemeColorNames=t.TabPanelSwitch=t.TabList=t.SupportedColors=t.Spinner=t.Shortcut=t.RovingTabindexPattern=t.popupReducer=t.PopupDispatchContext=t.Popup=t.Popover=t.Overline=t.NoticeColorNames=t.Notice=t.ModifierKeys=t.ModalDialogOpacity=t.ModalDialogContext=t.ModalDialog=t.MenuGroupContext=t.Menu=t.ListDragTargetContext=t.ListDragTarget=t.LayersProvider=t.LayersContext=t.KeyboardKeys=t.isKeyClick=t.getHslColorScale=t.getColorScheme=t.DropPermission=t.Draggable=t.DndProvider=t.DndContext=t.DATATRANSFER_TYPE_FILES=t.ColorScale=t.Colors=t.ColorNames=void 0,t.useUncontrolledPopover=t.useTooltip=t.useTheme=t.useSelect=t.usePopupEvents=t.usePopup=t.usePopper=t.usePopover=void 0;var s=n(56224);Object.defineProperty(t,"ColorNames",{enumerable:!0,get:function(){return s.ColorNames}}),Object.defineProperty(t,"Colors",{enumerable:!0,get:function(){return s.Colors}}),Object.defineProperty(t,"ColorScale",{enumerable:!0,get:function(){return s.ColorScale}}),Object.defineProperty(t,"getColorScheme",{enumerable:!0,get:function(){return s.getColorScheme}}),Object.defineProperty(t,"getHslColorScale",{enumerable:!0,get:function(){return s.getHslColorScale}}),Object.defineProperty(t,"NoticeColorNames",{enumerable:!0,get:function(){return s.NoticeColorNames}}),Object.defineProperty(t,"SupportedColors",{enumerable:!0,get:function(){return s.SupportedColors}}),Object.defineProperty(t,"ThemeColorNames",{enumerable:!0,get:function(){return s.ThemeColorNames}}),Object.defineProperty(t,"ThemeColors",{enumerable:!0,get:function(){return s.ThemeColors}}),Object.defineProperty(t,"UiSpacing",{enumerable:!0,get:function(){return s.UiSpacingBase}});var u=a(n(48602));t.Draggable=u.default;var c=a(n(14753));t.ListDragTarget=c.default;var l=a(n(54396));t.Menu=l.default;var f=n(88311);Object.defineProperty(t,"ModalDialog",{enumerable:!0,get:function(){return f.ModalDialog}}),Object.defineProperty(t,"ModalDialogContext",{enumerable:!0,get:function(){return f.ModalDialogContext}}),Object.defineProperty(t,"ModalDialogOpacity",{enumerable:!0,get:function(){return f.ModalDialogOpacity}});var d=n(26591);Object.defineProperty(t,"Notice",{enumerable:!0,get:function(){return d.Notice}});var p=a(n(81679));t.Overline=p.default;var h=a(n(7790));t.Popover=h.default;var v=a(n(40986));t.Popup=v.default;var y=o(n(94683));t.Shortcut=y;var m=a(n(67450));t.Spinner=m.default;var g=n(97918);Object.defineProperty(t,"TabList",{enumerable:!0,get:function(){return g.TabList}}),Object.defineProperty(t,"TabPanelSwitch",{enumerable:!0,get:function(){return g.TabPanelSwitch}});var b=o(n(62901));t.Tooltip=b.default,Object.defineProperty(t,"TooltipArrow",{enumerable:!0,get:function(){return b.TooltipArrow}}),Object.defineProperty(t,"TooltipContainer",{enumerable:!0,get:function(){return b.TooltipContainer}});var _=n(48492);Object.defineProperty(t,"KeyboardKeys",{enumerable:!0,get:function(){return _.KeyboardKeys}});var O=n(91872);Object.defineProperty(t,"ModifierKeys",{enumerable:!0,get:function(){return O.ModifierKeys}});var w=o(n(30337));t.DndContext=w.default,Object.defineProperty(t,"DndProvider",{enumerable:!0,get:function(){return w.DndProvider}});var x=o(n(84375));t.LayersContext=x.default,Object.defineProperty(t,"LayersProvider",{enumerable:!0,get:function(){return x.LayersProvider}});var S=a(n(19314));t.ListDragTargetContext=S.default;var E=a(n(37129));t.MenuGroupContext=E.default;var k=o(n(19907));t.ThemeContext=k.default,Object.defineProperty(t,"ThemeProvider",{enumerable:!0,get:function(){return k.ThemeProvider}}),Object.defineProperty(t,"useTheme",{enumerable:!0,get:function(){return k.useTheme}});var P=a(n(71315));t.useControlledTooltip=P.default;var T=a(n(79174));t.useDraggable=T.default;var j=o(n(51491));t.useDragTarget=j.default,Object.defineProperty(t,"DATATRANSFER_TYPE_FILES",{enumerable:!0,get:function(){return j.DATATRANSFER_TYPE_FILES}});var D=a(n(75603));t.useListDragTarget=D.default;var C=a(n(6915));t.useMenuButton=C.default;var M=a(n(39674));t.useMenuItem=M.default;var N=a(n(29112));t.usePopover=N.default;var A=a(n(35506));t.usePopper=A.default;var I=o(n(44355));t.usePopup=I.default,Object.defineProperty(t,"PopupDispatchContext",{enumerable:!0,get:function(){return I.PopupDispatchContext}}),Object.defineProperty(t,"popupReducer",{enumerable:!0,get:function(){return I.popupReducer}});var R=a(n(40689));t.usePopupEvents=R.default;var F=a(n(73741));t.useSelect=F.default;var L=a(n(48818));t.useTooltip=L.default;var q=a(n(90891));t.useUncontrolledPopover=q.default;var V=n(75383);Object.defineProperty(t,"DropPermission",{enumerable:!0,get:function(){return V.DropPermission}});var B=o(n(96863));t.RovingTabindexPattern=B;var Q=a(n(81970));t.isKeyClick=Q.default;var Z=a(n(83571));t.useForkRef=Z.default},77495:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DropPermission=void 0,function(e){e[e.Allow=0]="Allow",e[e.Deny=1]="Deny",e[e.DenyAndPropagate=2]="DenyAndPropagate"}(n||(t.DropPermission=n={}))},84623:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ActionTypes=void 0,function(e){e.Register="Register",e.Unregister="Unregister",e.Previous="Previous",e.Next="Next",e.Navigate="Navigate",e.First="First",e.Last="Last",e.Deactivate="Deactivate"}(n||(t.ActionTypes=n={}))},88976:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useRovingTabindexStateProvider=t.useRovingTabindexDispatchProvider=t.useRovingTabindexDispatch=t.useRovingTabindexState=t.createRovingTabindexStateContextOnce=t.createRovingTabindexDispatchContextOnce=void 0;var s=o(n(67294)),u=a(n(85326)),c=a(n(63531));t.createRovingTabindexDispatchContextOnce=(0,c.default)(2,function(){return s.createContext(void 0)}),t.createRovingTabindexStateContextOnce=(0,c.default)(2,function(){return s.createContext(void 0)}),t.useRovingTabindexState=function(){var e=(0,t.createRovingTabindexStateContextOnce)(),n=s.useContext(e);return(0,u.default)(null!=n,"No RovingTabindexState provider available"),n},t.useRovingTabindexDispatch=function(){var e=(0,t.createRovingTabindexDispatchContextOnce)(),n=s.useContext(e);return(0,u.default)(null!=n,"No RovingTabindexDispatch provider available"),n},t.useRovingTabindexDispatchProvider=function(){return(0,t.createRovingTabindexDispatchContextOnce)().Provider},t.useRovingTabindexStateProvider=function(){return(0,t.createRovingTabindexStateContextOnce)().Provider}},96863:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useRovingTabindex=t.useRovingStop=t.reducer=void 0;var a=o(n(66942));t.reducer=a.default;var s=o(n(45836));t.useRovingStop=s.default;var u=o(n(70129));t.useRovingTabindex=u.default,i(n(84623),t),i(n(88976),t)},66942:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i=0)return e;var a=e.stops.findIndex(function(e){return null!=e.current&&null!=n.current&&!!(e.current.compareDocumentPosition(n.current)&Node.DOCUMENT_POSITION_PRECEDING)});if(-1===a)return r(r({},e),{stops:o(o([],i(e.stops),!1),[n],!1)});var s=e.navigatedIndex,u=e.stops;return s>a&&(s+=1),u=o(o(o([],i(u.slice(0,a)),!1),[n],!1),i(u.slice(a)),!1),r(r({},e),{navigatedIndex:s,stops:u})}(e,t);case a.ActionTypes.Unregister:return function(e,t){var n=t.payload,i=e.stops.findIndex(function(e){return e===n});if(-1===i)return e;var o=e.navigatedIndex,a=e.stops;return a=a.filter(function(e,t){return t!==i}),o===i?o=-1:o>i&&(o-=1),r(r({},e),{navigatedIndex:o,stops:a})}(e,t);case a.ActionTypes.Next:return function(e,t){if(0===e.stops.length)return e;var n=e.navigatedIndex;if(-1===n)n=0;else{var i=n+1;if(i>=e.stops.length){if(!e.loop)return e;i%=e.stops.length}n=i}return r(r({},e),{active:!0,navigatedIndex:n})}(e,0);case a.ActionTypes.Previous:return function(e,t){if(0===e.stops.length)return e;var n=e.navigatedIndex;if(-1===n)n=e.stops.length-1;else{var i=n-1;if(i<0){if(!e.loop)return e;i+=e.stops.length}n=i}return r(r({},e),{active:!0,navigatedIndex:n})}(e,0);case a.ActionTypes.Navigate:return function(e,t){var n=t.payload;if(null==n&&-1!==e.navigatedIndex)return r(r({},e),{active:!0,navigatedIndex:-1});var i=e.stops.findIndex(function(e){return e===n});return -1===i?e:r(r({},e),{active:!0,navigatedIndex:i})}(e,t);case a.ActionTypes.First:return 0===e.stops.length?e:r(r({},e),{active:!0,navigatedIndex:0});case a.ActionTypes.Last:return 0===e.stops.length?e:r(r({},e),{active:!0,navigatedIndex:e.stops.length-1});case a.ActionTypes.Deactivate:return e.active?r(r({},e),{active:!1,navigatedIndex:-1}):e;default:return e}}},45836:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(67294)),s=n(84623),u=n(88976);t.default=function(e){var t=e.stopRef,n=null==e?void 0:e.disabled,r=(0,u.useRovingTabindexState)(),i=(0,u.useRovingTabindexDispatch)();a.useEffect(function(){if(!n)return i({type:s.ActionTypes.Register,payload:t}),function(){i({type:s.ActionTypes.Unregister,payload:t})}},[n,i,t]);var o=r.stops[r.navigatedIndex]===t,c=n?void 0:r.navigatedIndex<0?r.stops[0]===t?0:-1:r.stops[r.navigatedIndex]===t?0:-1;return{disabled:n,dispatch:i,navigated:o,state:r,tabIndex:c}}},70129:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(67294)),o=r(n(66942));t.default=function(e){return i.default.useReducer(o.default,e,function(e){var t,n;return{active:null===(t=null==e?void 0:e.active)||void 0===t||t,loop:null!==(n=null==e?void 0:e.loop)&&void 0!==n&&n,navigatedIndex:-1,stops:[]}})}},85326:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw Error("Assertion Failed: ".concat(t))}},63531:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n;if("function"!=typeof t)throw TypeError("Expected a function");return function(){for(var r=[],i=0;i0){if("function"!=typeof t)throw TypeError("Expected a function");n=t.apply(this,r)}return e<=1&&(t=void 0),n}}},58474:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if("undefined"!=typeof document)return document}},81970:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=n(48492);t.default=function(e,t){return"BUTTON"===e.nodeName?t===r.KeyboardKeys.Enter||t===r.KeyboardKeys.Space:"A"===e.nodeName&&t===r.KeyboardKeys.Enter}},90025:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}},83571:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(67294)),u=a(n(90025));t.default=function(e,t){return s.useMemo(function(){return null==e&&null==t?null:function(n){(0,u.default)(e,n),(0,u.default)(t,n)}},[e,t])}},38750:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var r=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function i(e,t){if(e.length!==t.length)return!1;for(var n,i,o=0;o{n.r(t),n.d(t,{createActorContext:()=>_,shallowEqual:()=>u.wU,useActor:()=>d,useInterpret:()=>p.k,useMachine:()=>r.e,useSelector:()=>y,useSpawn:()=>g});var r=n(1338),i=n(67294),o=n(73469),a=n(29157),s=n(52798),u=n(15568);function c(e){return e}function l(e){return"state"in e}function f(e){return"getSnapshot"in e?(0,u.cs)(e)?(0,u.Uz)(e):e.getSnapshot():l(e)?e.state:void 0}function d(e,t){void 0===t&&(t=f);var n=(0,i.useRef)(e),r=(0,i.useRef)([]),l=(0,i.useCallback)(function(t){return e.subscribe(t).unsubscribe},[e]),d=(0,i.useCallback)(function(){return t(e)},[e,t]),p=(0,i.useCallback)(function(t,n){return(0,u.cs)(e)?(0,u.AM)(e,t,n):t===n},[e]),h=(0,s.useSyncExternalStoreWithSelector)(l,d,d,c,p),v=(0,a.Z)(function(){return function(){for(var e=[],t=0;t0;){var t=r.current.shift();e.send(t)}},[e]),[h,v]}var p=n(41617),h=function(e,t){return e===t},v=function(e,t){if((0,u.cs)(e)){if(0===e.status&&t.current)return t.current;var n=(0,u.Uz)(e);return t.current=0===e.status?n:null,n}return l(e)?e.state:void 0};function y(e,t,n,r){void 0===n&&(n=h);var o=(0,i.useRef)(null),a=(0,i.useCallback)(function(t){return e.subscribe(t).unsubscribe},[e]),u=(0,i.useCallback)(function(){return r?r(e):v(e,o)},[e,r]);return(0,s.useSyncExternalStoreWithSelector)(a,u,u,t,n)}var m=n(68199);function g(e){return(0,a.Z)(function(){return(0,m.YP)(e)})}var b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n component."));return e}return a.displayName="ActorProvider(".concat(e.id,")"),{Provider:a,useActorRef:s,useActor:function(){return d(s())},useSelector:function(e,t){return y(s(),e,t)}}}},29157:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(67294);function i(e){var t=r.useRef();return t.current||(t.current={v:e()}),t.current.v}},41617:(e,t,n)=>{n.d(t,{h:()=>d,k:()=>p});var r=n(67294),i=n(73469),o=n(59805),a=n(89823),s=n(54911),u=n(29157),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},f=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function d(e,t){var n=(0,u.Z)(function(){return"function"==typeof e?e():e}),r=t.context,a=t.guards,s=t.actions,f=t.activities,d=t.services,p=t.delays,h=(t.state,l(t,["context","guards","actions","activities","services","delays","state"])),v=(0,u.Z)(function(){var e=n.withConfig({context:r,guards:a,actions:s,activities:f,services:d,delays:p},function(){return c(c({},n.context),r)});return(0,o.kJ)(e,h)});return(0,i.Z)(function(){Object.assign(v.machine.options.actions,s),Object.assign(v.machine.options.guards,a),Object.assign(v.machine.options.activities,f),Object.assign(v.machine.options.services,d),Object.assign(v.machine.options.delays,p)},[s,a,f,d,p]),v}function p(e){for(var t=[],n=1;n{n.d(t,{e:()=>f});var r=n(67294),i=n(52798),o=n(59805),a=n(54911),s=n(41617),u=n(15568),c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function l(e){return e}function f(e){for(var t=[],n=1;n{n.d(t,{AM:()=>u,Uz:()=>i,cs:()=>s,wU:()=>a});var r=n(59805);function i(e){return 0!==e.status?e.getSnapshot():e.machine.initialState}function o(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function a(e,t){if(o(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i0||"boolean"==typeof t.changed);return!(n.changed||i)}},73469:(e,t,n)=>{n.d(t,{Z:()=>r});let r=n(67294).useLayoutEffect},53250:(e,t,n)=>{/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(67294),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useState,a=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,c(i)&&l({inst:i})},[e,n,t]),a(function(){return c(i)&&l({inst:i}),e(function(){c(i)&&l({inst:i})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},50139:(e,t,n)=>{/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(67294),i=n(61688),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useSyncExternalStore,s=r.useRef,u=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var p=a(e,(f=c(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return s=t}return s=e}if(t=s,o(a,e))return t;var n=r(e);return void 0!==i&&i(t,n)?t:(a=e,s=n)}var a,s,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,i]))[0],f[1]);return u(function(){d.hasValue=!0,d.value=p},[p]),l(p),p}},61688:(e,t,n)=>{e.exports=n(53250)},52798:(e,t,n)=>{e.exports=n(50139)},98933:(e,t,n)=>{n.d(t,{Xg:()=>u,f3:()=>c,mu:()=>s,vk:()=>l});var r=n(63056),i=n(89823),o=n(10797);function a(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[i.L$]=function(){return this},t}function s(e,t,n,r){var o,s=(0,i.j)(e.src),c=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[s.type],l=e.data?(0,i.QX)(e.data,n,r):void 0,f=c?u(c,e.id,l):a(e.id);return f.meta=e,f}function u(e,t,n){var r=a(t);if(r.deferred=!0,(0,i.O4)(e)){var s=r.state=(0,o.J)(void 0,function(){return(n?e.withContext(n):e).initialState});r.getSnapshot=function(){return s}}return r}function c(e){return function(e){try{return"function"==typeof e.send}catch(e){return!1}}(e)&&"id"in e}function l(e){var t;return(0,r.pi)(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[i.L$]=function(){return this},t),e)}},90629:(e,t,n)=>{n.d(t,{C:()=>s,J:()=>a});var r=n(8889),i=n(14066),o=!1;function a(e,t,n){return void 0===n&&(n=e.context),new r.n(e,t,n)}function s(e,t){return i.M||"predictableActionArguments"in e||o||(o=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new r.n(e,t)}},54911:(e,t,n)=>{n.d(t,{TL:()=>c,ZM:()=>f,j1:()=>l,j_:()=>function e(t,n){if(t===n)return!0;if(void 0===t||void 0===n)return!1;if((0,o.HD)(t)||(0,o.HD)(n))return t===n;var r=Object.keys(t),i=Object.keys(n);return r.length===i.length&&r.every(function(r){return e(t[r],n[r])})}});var r=n(63056),i=n(87353),o=n(89823),a=n(56115),s=n(30375),u=n(14066);function c(e){return"object"==typeof e&&null!==e&&"value"in e&&"_event"in e}function l(e,t){var n=e.exec;return(0,r.pi)((0,r.pi)({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}var f=function(){function e(e){var t,n=this;this.actions=[],this.activities=i.qP,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||i.qP,this.meta=(0,a.xZ)(e.configuration),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return(0,a.nJ)(n.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:s.initEvent,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=s.initEvent;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),(0,o.HD)(e))return[e];var i=Object.keys(e);return i.concat.apply(i,(0,r.ev)([],(0,r.CR)(i.map(function(r){return n.toStrings(e[r],t).map(function(e){return r+t+e})})),!1))},e.prototype.toJSON=function(){this.configuration,this.transitions;var e=this.tags;this.machine;var t=(0,r._T)(this,["configuration","transitions","tags","machine"]);return(0,r.pi)((0,r.pi)({},t),{tags:Array.from(e)})},e.prototype.matches=function(e){return(0,o.W)(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){u.M&&(0,o.ZK)(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var t,n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some(function(e){return void 0!==e.target||e.actions.length})},e}()},8889:(e,t,n)=>{n.d(t,{n:()=>y});var r=n(63056),i=n(89823),o=n(54911),a=n(3884),s=n(30375),u=n(14066),c=n(87353),l=n(56115),f=n(98933);function d(e){return(0,r.pi)((0,r.pi)({type:a.invoke},e),{toJSON:function(){e.onDone,e.onError;var t=(0,r._T)(e,["onDone","onError"]);return(0,r.pi)((0,r.pi)({},t),{type:a.invoke,src:function(e){if("string"==typeof e){var t={type:e};return t.toString=function(){return e},t}return e}(e.src)})}})}var p={},h=function(e){return"#"===e[0]},v=function(e,t,n){var r=n.slice(0,-1).some(function(e){return!("cond"in e)&&!("in"in e)&&((0,i.HD)(e.target)||(0,i.O4)(e.target))});(0,i.ZK)(!r,"One or more transitions for ".concat(""===t?"the transient event":"event '".concat(t,"'")," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")},y=function(){function e(t,n,o,a){void 0===o&&(o="context"in t?t.context:void 0);var f,h=this;this.config=t,this._context=o,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null==a?void 0:a.parent,this.key=this.config.key||(null==a?void 0:a.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:c.iS),this.id=this.config.id||(0,r.ev)([this.machine.key],(0,r.CR)(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(f=this.config.schema)&&void 0!==f?f:{},this.description=this.config.description,u.M||(0,i.ZK)(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,i.Q8)(this.config.states,function(t,n){var i,o=new e(t,{},void 0,{parent:h,key:n});return Object.assign(h.idMap,(0,r.pi)(((i={})[o.id]=o,i),o.idMap)),o}):p;var v=0;!function e(t){var n,i;t.order=v++;try{for(var o=(0,r.XA)((0,l.nI)(t)),a=o.next();!a.done;a=o.next()){var s=a.value;e(s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(e){return""===e.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,i.qo)(this.config.entry||this.config.onEntry).map(function(e){return(0,s.toActionObject)(e)}),this.onExit=(0,i.qo)(this.config.exit||this.config.onExit).map(function(e){return(0,s.toActionObject)(e)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,i.qo)(this.config.invoke).map(function(e,t){if((0,i.O4)(e)){var n,o,a=(0,i.bx)(h.id,t);return h.machine.options.services=(0,r.pi)(((n={})[a]=e,n),h.machine.options.services),d({src:a,id:a})}if((0,i.HD)(e.src)){var a=e.id||(0,i.bx)(h.id,t);return d((0,r.pi)((0,r.pi)({},e),{id:a,src:e.src}))}if((0,i.O4)(e.src)||(0,i.mf)(e.src)){var a=e.id||(0,i.bx)(h.id,t);return h.machine.options.services=(0,r.pi)(((o={})[a]=e.src,o),h.machine.options.services),d((0,r.pi)((0,r.pi)({id:a},e),{src:a}))}var s=e.src;return d((0,r.pi)((0,r.pi)({id:(0,i.bx)(h.id,t)},e),{src:s}))}),this.activities=(0,i.qo)(this.config.activities).concat(this.invoke).map(function(e){return(0,s.toActivityDefinition)(e)}),this.transition=this.transition.bind(this),this.tags=(0,i.qo)(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||(0,l.ac)(this).forEach(function(e){return e.on})},e.prototype.withConfig=function(t,n){var i=this.options,o=i.actions,a=i.activities,s=i.guards,u=i.services,c=i.delays;return new e(this.config,{actions:(0,r.pi)((0,r.pi)({},o),t.actions),activities:(0,r.pi)((0,r.pi)({},a),t.activities),guards:(0,r.pi)((0,r.pi)({},s),t.guards),services:(0,r.pi)((0,r.pi)({},u),t.services),delays:(0,r.pi)((0,r.pi)({},c),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return(0,i.mf)(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:(0,i.Q8)(this.states,function(e){return e.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce(function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=""===e,n=this.transitions.filter(function(n){var r=n.eventType===e;return t?r:r||"*"===n.eventType});return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=(0,i.mf)(t)?"".concat(e.id,":delay[").concat(n,"]"):t,o=(0,s.after)(r,e.id);return e.onEntry.push((0,s.send)(o,{delay:t})),e.onExit.push((0,s.cancel)(o)),o};return((0,i.kJ)(t)?t.map(function(e,t){var i=n(e.delay,t);return(0,r.pi)((0,r.pi)({},e),{event:i})}):(0,i.xH)(Object.keys(t).map(function(e,o){var a=t[e],s=(0,i.HD)(a)?{target:a}:a,u=isNaN(+e)?e:+e,c=n(u,o);return(0,i.qo)(s).map(function(e){return(0,r.pi)((0,r.pi)({},e),{event:c,delay:u})})}))).map(function(t){var n=t.delay;return(0,r.pi)((0,r.pi)({},e.formatTransition(t)),{delay:n})})},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var a=e instanceof o.ZM?e.value:(0,i.WM)(e,this.delimiter);if((0,i.HD)(a)){var s=this.getStateNode(a).initial;return void 0!==s?this.getStateNodes(((t={})[a]=s,t)):[this,this.states[a]]}var u=Object.keys(a),c=[this];return c.push.apply(c,(0,r.ev)([],(0,r.CR)((0,i.xH)(u.map(function(e){return n.getStateNode(e).getStateNodes(a[e])}))),!1)),c},e.prototype.handles=function(e){var t=(0,i.x6)(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof o.ZM?e:o.ZM.create(e),n=Array.from((0,l.P_)([],this.getStateNodes(t.value)));return new o.ZM((0,r.pi)((0,r.pi)({},t),{value:this.resolve(t.value),configuration:n,done:(0,l.Ij)(n,this),tags:(0,l.Oe)(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),i=this.getStateNode(r[0])._transition(e[r[0]],t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var o,a,s={};try{for(var u=(0,r.XA)(Object.keys(e)),c=u.next();!c.done;c=u.next()){var l=c.value,f=e[l];if(f){var d=this.getStateNode(l)._transition(f,t,n);d&&(s[l]=d)}}}catch(e){o={error:e}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}var p=Object.keys(s).map(function(e){return s[e]}),h=(0,i.xH)(p.map(function(e){return e.transitions}));if(!p.some(function(e){return e.transitions.length>0}))return this.next(t,n);var v=(0,i.xH)(Object.keys(s).map(function(e){return s[e].configuration}));return{transitions:h,exitSet:(0,i.xH)(p.map(function(e){return e.exitSet})),configuration:v,source:t,actions:(0,i.xH)(Object.keys(s).map(function(e){return s[e].actions}))}},e.prototype._transition=function(e,t,n){return(0,i.HD)(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,(0,i.g5)(t))},e.prototype.next=function(e,t){var n,o,a,s=this,u=t.name,c=[],l=[];try{for(var f=(0,r.XA)(this.getCandidates(u)),d=f.next();!d.done;d=f.next()){var p=d.value,v=p.cond,y=p.in,m=e.context,g=!y||((0,i.HD)(y)&&h(y)?e.matches((0,i.WM)(this.getStateNodeById(y).path,this.delimiter)):(0,i.W)((0,i.WM)(y,this.delimiter),(0,i.ET)(this.path.slice(0,-2))(e.value))),b=!1;try{b=!v||(0,i.vx)(this.machine,v,m,t,e)}catch(e){throw Error("Unable to evaluate guard '".concat(v.name||v.type,"' in transition for event '").concat(u,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(b&&g){void 0!==p.target&&(l=p.target),c.push.apply(c,(0,r.ev)([],(0,r.CR)(p.actions),!1)),a=p;break}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}if(a){if(!l.length)return{transitions:[a],exitSet:[],configuration:e.value?[this]:[],source:e,actions:c};var _=(0,i.xH)(l.map(function(t){return s.getRelativeStateNodes(t,e.historyValue)})),O=!!a.internal;return{transitions:[a],exitSet:O?[]:(0,i.xH)(l.map(function(e){return s.getPotentiallyReenteringNodes(e)})),configuration:_,source:e,actions:c}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order0,b=g?e.configuration:t?t.configuration:[],_=(0,l.Ij)(b,this),O=g?(0,l.NA)(this.machine,m):void 0,w=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,x=this.getActions(new Set(b),_,e,n,c,t,u),S=t?(0,r.pi)({},t.activities):{};try{for(var E=(0,r.XA)(x),k=E.next();!k.done;k=E.next()){var P=k.value;try{for(var T=(h=void 0,(0,r.XA)(P.actions)),j=T.next();!j.done;j=T.next()){var D=j.value;D.type===a.start?S[D.activity.id||D.activity.type]=D:D.type===a.stop&&(S[D.activity.id||D.activity.type]=!1)}}catch(e){h={error:e}}finally{try{j&&!j.done&&(v=T.return)&&v.call(T)}finally{if(h)throw h.error}}}}catch(e){d={error:e}}finally{try{k&&!k.done&&(p=E.return)&&p.call(E)}finally{if(d)throw d.error}}var C=(0,r.CR)((0,s.resolveActions)(this,t,n,c,x,u,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),M=C[0],N=C[1],A=(0,r.CR)((0,i.uK)(M,i.vK),2),I=A[0],R=A[1],F=M.filter(function(e){var t;return e.type===a.start&&(null===(t=e.activity)||void 0===t?void 0:t.type)===a.invoke}).reduce(function(e,t){return e[t.activity.id]=(0,f.mu)(t.activity,y.machine,N,c),e},t?(0,r.pi)({},t.children):{}),L=new o.ZM({value:O||t.value,context:N,_event:c,_sessionid:t?t._sessionid:null,historyValue:O?w?(0,i.yv)(w,O):void 0:t?t.historyValue:void 0,history:!O||e.source?t:void 0,actions:O?R:[],activities:O?S:t?t.activities:{},events:[],configuration:b,transitions:e.transitions,children:F,done:_,tags:(0,l.Oe)(b),machine:this}),q=n!==N;L.changed=c.name===a.update||q;var V=L.history;V&&delete V.history;var B=!_&&(this._transient||m.some(function(e){return e._transient}));if(!g&&(!B||""===c.name))return L;var Q=L;if(!_)for(B&&(Q=this.resolveRaisedTransition(Q,{type:a.nullEvent},c,u));I.length;){var Z=I.shift();Q=this.resolveRaisedTransition(Q,Z._event,c,u)}var K=Q.changed||(V?!!Q.actions.length||q||typeof V.value!=typeof Q.value||!(0,o.j_)(Q.value,V.value):void 0);return Q.changed=K,Q.history=V,Q},e.prototype.getStateNode=function(e){if(h(e))return this.machine.getStateNodeById(e);if(!this.states)throw Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=h(e)?e.slice(1):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&h(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=(0,i.Q9)(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||p;switch(this.type){case"parallel":return(0,i.Q8)(this.initialStateValue,function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):p});case"compound":if((0,i.HD)(e)){var r=this.getStateNode(e);if("parallel"===r.type||"compound"===r.type)return(t={})[e]=r.initialStateValue,t;return e}if(!Object.keys(e).length)return this.initialStateValue||{};return(0,i.Q8)(e,function(e,t){return e?n.getStateNode(t).resolve(e):p});default:return e||p}},e.prototype.getResolvedPath=function(e){if(h(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw Error("Unable to find state node '".concat(e,"'"));return t.path}return(0,i.Q9)(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=(0,i.ib)(this.states,function(e){return e.initialStateValue||p},function(e){return"history"!==e.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=(0,l.N9)(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=(0,i.HD)(t.target)&&h(t.target)?(0,i.on)(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;if((0,l.N9)(this))return[this];if("compound"===this.type&&!this.initial)return u.M||(0,i.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var t=(0,i.SA)(this.initialStateValue);return(0,i.xH)(t.map(function(t){return e.getFromRelativePath(t)}))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=(0,r.CR)(e),n=t[0],i=t.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(i)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:(0,i.ib)(this.states,function(t,n){if(!e)return t.historyValue();var r=(0,i.HD)(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)},function(e){return!e.history})}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?(0,i.xH)((0,i.SA)(r).map(function(e){return n.getFromRelativePath(e)})):n.initialStateNodes}var o=(0,i.gk)(n.path,"states")(e).current;return(0,i.HD)(o)?[n.getStateNode(o)]:(0,i.xH)((0,i.SA)(o).map(function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=(0,i.xH)(Object.keys(this.states).map(function(t){return e.states[t].stateIds}));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var e,t,n,i,o=this.states,a=new Set(this.ownEvents);if(o)try{for(var s=(0,r.XA)(Object.keys(o)),u=s.next();!u.done;u=s.next()){var c=o[u.value];if(c.states)try{for(var l=(n=void 0,(0,r.XA)(c.events)),f=l.next();!f.done;f=l.next()){var d=f.value;a.add("".concat(d))}}catch(e){n={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(e){return!(!e.target&&!e.actions.length&&e.internal)}).map(function(e){return e.eventType})))},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map(function(e){if(!(0,i.HD)(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}})},e.prototype.formatTransition=function(e){var t=this,n=(0,i.rg)(e.target),o="internal"in e?e.internal:!n||n.some(function(e){return(0,i.HD)(e)&&e[0]===t.delimiter}),a=this.machine.options.guards,u=this.resolveTarget(n),c=(0,r.pi)((0,r.pi)({},e),{actions:(0,s.toActionObjects)((0,i.qo)(e.actions)),cond:(0,i.Qi)(e.cond,a),target:u,source:this,internal:o,eventType:e.event,toJSON:function(){return(0,r.pi)((0,r.pi)({},c),{target:c.target?c.target.map(function(e){return"#".concat(e.id)}):void 0,source:"#".concat(t.id)})}});return c},e.prototype.formatTransitions=function(){var e,t,n,o=this;if(this.config.on){if(Array.isArray(this.config.on))n=this.config.on;else{var a=this.config.on,c=a["*"],l=(0,r._T)(a,["*"]);n=(0,i.xH)(Object.keys(l).map(function(e){u.M||""!==e||(0,i.ZK)(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(o.id,'".'));var t=(0,i.jh)(e,l[e]);return u.M||v(o,e,t),t}).concat((0,i.jh)("*",void 0===c?[]:c)))}}else n=[];var f=this.config.always?(0,i.jh)("",this.config.always):[],d=this.config.onDone?(0,i.jh)(String((0,s.done)(this.id)),this.config.onDone):[];u.M||(0,i.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var p=(0,i.xH)(this.invoke.map(function(e){var t=[];return e.onDone&&t.push.apply(t,(0,r.ev)([],(0,r.CR)((0,i.jh)(String((0,s.doneInvoke)(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,(0,r.ev)([],(0,r.CR)((0,i.jh)(String((0,s.error)(e.id)),e.onError)),!1)),t})),h=this.after,y=(0,i.xH)((0,r.ev)((0,r.ev)((0,r.ev)((0,r.ev)([],(0,r.CR)(d),!1),(0,r.CR)(p),!1),(0,r.CR)(n),!1),(0,r.CR)(f),!1).map(function(e){return(0,i.qo)(e).map(function(e){return o.formatTransition(e)})}));try{for(var m=(0,r.XA)(h),g=m.next();!g.done;g=m.next()){var b=g.value;y.push(b)}}catch(t){e={error:t}}finally{try{g&&!g.done&&(t=m.return)&&t.call(m)}finally{if(e)throw e.error}}return y},e}()},63056:(e,t,n)=>{n.d(t,{CR:()=>a,XA:()=>o,_T:()=>i,ev:()=>s,pi:()=>r});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function o(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i{n.r(t),n.d(t,{after:()=>f,assign:()=>l,cancel:()=>u,choose:()=>_,doneState:()=>d,error:()=>g,errorExecution:()=>y,errorPlatform:()=>m,init:()=>h,invoke:()=>v,log:()=>p,nullEvent:()=>c,pure:()=>O,raise:()=>a,send:()=>s,start:()=>i,stop:()=>o,update:()=>b});var r=n(59043),i=r.M.Start,o=r.M.Stop,a=r.M.Raise,s=r.M.Send,u=r.M.Cancel,c=r.M.NullEvent,l=r.M.Assign,f=r.M.After,d=r.M.DoneState,p=r.M.Log,h=r.M.Init,v=r.M.Invoke,y=r.M.ErrorExecution,m=r.M.ErrorPlatform,g=r.M.ErrorCustom,b=r.M.Update,_=r.M.Choose,O=r.M.Pure},30375:(e,t,n)=>{n.r(t),n.d(t,{actionTypes:()=>o,after:()=>D,assign:()=>T,cancel:()=>S,choose:()=>F,done:()=>C,doneInvoke:()=>M,error:()=>N,escalate:()=>R,forwardTo:()=>I,getActionFunction:()=>c,initEvent:()=>u,isActionObject:()=>j,log:()=>w,pure:()=>A,raise:()=>p,resolveActions:()=>function e(t,n,u,c,d,p,v){void 0===v&&(v=!1);var m=v?[]:L(d),g=m.length?(0,a.dt)(u,c,m,n):u,b=v?[u]:void 0,_=[];return[(0,a.xH)(d.map(function(d){var m,O,w=[];try{for(var S=(0,r.XA)(d.actions),E=S.next();!E.done;E=S.next()){var k=E.value,T=function(d,m){var O;switch(m.type){case o.raise:var w=h(m,g,c,t.options.delays);return p&&"number"==typeof w.delay&&p(w,g,c),w;case o.send:var S=y(m,g,c,t.options.delays);if(!s.M){var E=m.delay;(0,a.ZK)(!(0,a.HD)(E)||"number"==typeof S.delay,"No delay reference for delay expression '".concat(E,"' was found on machine '").concat(t.id,"'"))}return p&&S.to!==i.K.Internal&&("entry"===d?_.push(S):p(S,g,c)),S;case o.log:var k=x(m,g,c);return null==p||p(k,g,c),k;case o.choose:var T=null===(O=m.conds.find(function(e){var r=(0,a.Qi)(e.cond,t.options.guards);return!r||(0,a.vx)(t,r,g,c,p?void 0:n)}))||void 0===O?void 0:O.actions;if(!T)return[];var j=(0,r.CR)(e(t,n,g,c,[{type:d,actions:f((0,a.qo)(T),t.options.actions)}],p,v),2),D=j[0];return g=j[1],null==b||b.push(g),D;case o.pure:var T=m.get(g,c.data);if(!T)return[];var C=(0,r.CR)(e(t,n,g,c,[{type:d,actions:f((0,a.qo)(T),t.options.actions)}],p,v),2),M=C[0];return g=C[1],null==b||b.push(g),M;case o.stop:var k=P(m,g,c);return null==p||p(k,u,c),k;case o.assign:g=(0,a.dt)(g,c,[m],p?void 0:n),null==b||b.push(g);break;default:var N=l(m,t.options.actions),A=N.exec;if(p)p(N,g,c);else if(A&&b){var I=b.length-1;N=(0,r.pi)((0,r.pi)({},N),{exec:function(e){for(var t=[],n=1;nx,resolveRaise:()=>h,resolveSend:()=>y,resolveStop:()=>P,respond:()=>_,send:()=>v,sendParent:()=>m,sendTo:()=>g,sendUpdate:()=>b,start:()=>E,stop:()=>k,toActionObject:()=>l,toActionObjects:()=>f,toActivityDefinition:()=>d});var r=n(63056),i=n(59043),o=n(3884),a=n(89823),s=n(14066),u=(0,a.g5)({type:o.init});function c(e,t){return t&&t[e]||void 0}function l(e,t){var n;if((0,a.HD)(e)||"number"==typeof e){var i=c(e,t);n=(0,a.mf)(i)?{type:e,exec:i}:i||{type:e,exec:void 0}}else if((0,a.mf)(e))n={type:e.name||e.toString(),exec:e};else{var i=c(e.type,t);if((0,a.mf)(i))n=(0,r.pi)((0,r.pi)({},e),{exec:i});else if(i){var o=i.type||e.type;n=(0,r.pi)((0,r.pi)((0,r.pi)({},i),e),{type:o})}else n=e}return n}var f=function(e,t){return e?((0,a.kJ)(e)?e:[e]).map(function(e){return l(e,t)}):[]};function d(e){var t=l(e);return(0,r.pi)((0,r.pi)({id:(0,a.HD)(e)?e:t.id},t),{type:t.type})}function p(e,t){return{type:o.raise,event:"function"==typeof e?e:(0,a._v)(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}function h(e,t,n,i){var s,u={_event:n},c=(0,a.g5)((0,a.mf)(e.event)?e.event(t,n.data,u):e.event);if((0,a.HD)(e.delay)){var l=i&&i[e.delay];s=(0,a.mf)(l)?l(t,n.data,u):l}else s=(0,a.mf)(e.delay)?e.delay(t,n.data,u):e.delay;return(0,r.pi)((0,r.pi)({},e),{type:o.raise,_event:c,delay:s})}function v(e,t){return{to:t?t.to:void 0,type:o.send,event:(0,a.mf)(e)?e:(0,a._v)(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:(0,a.mf)(e)?e.name:(0,a.x6)(e)}}function y(e,t,n,i){var o,s={_event:n},u=(0,a.g5)((0,a.mf)(e.event)?e.event(t,n.data,s):e.event);if((0,a.HD)(e.delay)){var c=i&&i[e.delay];o=(0,a.mf)(c)?c(t,n.data,s):c}else o=(0,a.mf)(e.delay)?e.delay(t,n.data,s):e.delay;var l=(0,a.mf)(e.to)?e.to(t,n.data,s):e.to;return(0,r.pi)((0,r.pi)({},e),{to:l,_event:u,event:u.data,delay:o})}function m(e,t){return v(e,(0,r.pi)((0,r.pi)({},t),{to:i.K.Parent}))}function g(e,t,n){return v(t,(0,r.pi)((0,r.pi)({},n),{to:e}))}function b(){return m(o.update)}function _(e,t){return v(e,(0,r.pi)((0,r.pi)({},t),{to:function(e,t,n){return n._event.origin}}))}var O=function(e,t){return{context:e,event:t}};function w(e,t){return void 0===e&&(e=O),{type:o.log,label:t,expr:e}}var x=function(e,t,n){return(0,r.pi)((0,r.pi)({},e),{value:(0,a.HD)(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},S=function(e){return{type:o.cancel,sendId:e}};function E(e){var t=d(e);return{type:i.M.Start,activity:t,exec:void 0}}function k(e){var t=(0,a.mf)(e)?e:d(e);return{type:i.M.Stop,activity:t,exec:void 0}}function P(e,t,n){var r=(0,a.mf)(e.activity)?e.activity(t,n.data):e.activity;return{type:i.M.Stop,activity:"string"==typeof r?{id:r}:r}}var T=function(e){return{type:o.assign,assignment:e}};function j(e){return"object"==typeof e&&"type"in e}function D(e,t){return"".concat(i.M.After,"(").concat(e,")").concat(t?"#".concat(t):"")}function C(e,t){var n="".concat(i.M.DoneState,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function M(e,t){var n="".concat(i.M.DoneInvoke,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function N(e,t){var n="".concat(i.M.ErrorPlatform,".").concat(e),r={type:n,data:t};return r.toString=function(){return n},r}function A(e){return{type:i.M.Pure,get:e}}function I(e,t){if(!s.M&&(!e||"function"==typeof e)){var n=e;e=function(){for(var e=[],t=0;t{n.d(t,{YP:()=>o});var r=n(98933),i=n(89823);function o(e,t){void 0===t&&(t={});var n=e.initialState,o=new Set,a=[],s=!1,u=function(){if(!s){for(s=!0;a.length>0;){var t=a.shift();n=e.transition(n,t,l),o.forEach(function(e){return e.next(n)})}s=!1}},c=(0,r.vk)({id:t.id,send:function(e){a.push(e),u()},getSnapshot:function(){return n},subscribe:function(e,t,r){var a=(0,i.zM)(e,t,r);return o.add(a),a.next(n),{unsubscribe:function(){o.delete(a)}}}}),l={parent:t.parent,self:c,id:t.id||"anonymous",observers:o};return n=e.start?e.start(l):n,c}},87353:(e,t,n)=>{n.d(t,{TV:()=>o,iS:()=>r,qP:()=>i,rt:()=>a});var r=".",i={},o="xstate.guard",a=""},14066:(e,t,n)=>{n.d(t,{M:()=>r});var r=!0},94679:(e,t,n)=>{n.r(t),n.d(t,{ActionTypes:()=>y.M,Interpreter:()=>o.Ng,InterpreterStatus:()=>o.TM,Machine:()=>a.J,SpecialTargets:()=>y.K,State:()=>l.ZM,StateNode:()=>h.n,actions:()=>r,assign:()=>m,cancel:()=>g,choose:()=>T,createMachine:()=>a.C,createSchema:()=>d,doneInvoke:()=>S,forwardTo:()=>x,interpret:()=>o.kJ,log:()=>k,mapState:()=>c,matchState:()=>f,matchesState:()=>u.W,pure:()=>P,raise:()=>E,send:()=>b,sendParent:()=>O,sendTo:()=>_,sendUpdate:()=>w,spawn:()=>o.Cs,spawnBehavior:()=>v.YP,stop:()=>j,t:()=>p,toActorRef:()=>i.vk,toEventObject:()=>u._v,toObserver:()=>u.zM,toSCXMLEvent:()=>u.g5});var r=n(30375),i=n(98933),o=n(59805),a=n(90629),s=n(63056),u=n(89823);function c(e,t){try{for(var n,r,i,o=(0,s.XA)(Object.keys(e)),a=o.next();!a.done;a=o.next()){var c=a.value;(0,u.W)(c,t)&&(!i||t.length>i.length)&&(i=c)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e[i]}var l=n(54911);function f(e,t,n){var r,i,o=l.ZM.from(e,e instanceof l.ZM?e.context:void 0);try{for(var a=(0,s.XA)(t),u=a.next();!u.done;u=a.next()){var c=(0,s.CR)(u.value,2),f=c[0],d=c[1];if(o.matches(f))return d(o)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return n(o)}function d(e){return e}var p=d,h=n(8889),v=n(68199),y=n(59043),m=r.assign,g=r.cancel,b=r.send,_=r.sendTo,O=r.sendParent,w=r.sendUpdate,x=r.forwardTo,S=r.doneInvoke,E=r.raise,k=r.log,P=r.pure,T=r.choose,j=r.stop},59805:(e,t,n)=>{n.d(t,{Ng:()=>O,TM:()=>r,kJ:()=>x,Cs:()=>w});var r,i=n(63056),o=n(59043),a=n(54911),s=n(3884),u=n(30375),c=n(14066),l=n(89823),f={deferEvents:!1},d=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=(0,i.pi)((0,i.pi)({},f),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents){this.schedule(e);return}this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(!this.initialized||this.processingEvent){this.queue.push(e);return}if(0!==this.queue.length)throw Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),p=n(98933),h=new Map,v=0,y={bookId:function(){return"x:".concat(v++)},register:function(e,t){return h.set(e,t),e},get:function(e){return h.get(e)},free:function(e){h.delete(e)}};function m(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void(c.M||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}var g=n(10797),b=n(68199),_={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(r||(r={}));var O=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var a=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=r.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if((0,l.kJ)(e))return a.batch(e),a.state;var n=(0,l.g5)((0,l._v)(e,t));if(a.status===r.Stopped)return c.M||(0,l.ZK)(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(a.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),a.state;if(a.status!==r.Running&&!a.options.deferEvents)throw Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(a.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return a.scheduler.schedule(function(){a.forward(n);var e=a._nextState(n);a.update(e,n)}),a._state},this.sendTo=function(e,t,n){var f=a.parent&&(t===o.K.Parent||a.parent.id===t),d=f?a.parent:(0,l.HD)(t)?t===o.K.Internal?a:a.children.get(t)||y.get(t):(0,l.Bc)(t)?t:void 0;if(!d){if(!f)throw Error("Unable to send event to child '".concat(t,"' from service '").concat(a.id,"'."));c.M||(0,l.ZK)(!1,"Service '".concat(a.id,"' has no parent: unable to send event ").concat(e.type));return}if("machine"in d){if(a.status!==r.Stopped||a.parent!==d||a.state.done){var p=(0,i.pi)((0,i.pi)({},e),{name:e.name===s.error?"".concat((0,u.error)(a.id)):e.name,origin:a.sessionId});!n&&a.machine.config.predictableActionArguments?a._outgoingQueue.push([d,p]):d.send(p)}}else!n&&a.machine.config.predictableActionArguments?a._outgoingQueue.push([d,e.data]):d.send(e.data)},this._exec=function(e,t,n,i){void 0===i&&(i=a.machine.options.actions);var f=e.exec||(0,u.getActionFunction)(e.type,i),d=(0,l.mf)(f)?f:f?f.exec:e.exec;if(d)try{return d(t,n.data,a.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:a.state,_event:n})}catch(e){throw a.parent&&a.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case s.raise:a.defer(e);break;case s.send:if("number"==typeof e.delay){a.defer(e);return}e.to?a.sendTo(e._event,e.to,n===u.initEvent):a.send(e._event);break;case s.cancel:a.cancel(e.sendId);break;case s.start:if(a.status!==r.Running)return;var p=e.activity;if(!a.machine.config.predictableActionArguments&&!a.state.activities[p.id||p.type])break;if(p.type===o.M.Invoke){var h=(0,l.j)(p.src),v=a.machine.options.services?a.machine.options.services[h.type]:void 0,y=p.id,m=p.data;c.M||(0,l.ZK)(!("forward"in p),"`forward` property is deprecated (found in invocation of '".concat(p.src,"' in in machine '").concat(a.machine.id,"'). ")+"Please use `autoForward` instead.");var g="autoForward"in p?p.autoForward:!!p.forward;if(!v){c.M||(0,l.ZK)(!1,"No service found for invocation '".concat(p.src,"' in machine '").concat(a.machine.id,"'."));return}var b=m?(0,l.QX)(m,t,n):void 0;if("string"==typeof v)return;var _=(0,l.mf)(v)?v(t,n.data,{data:b,src:h,meta:p.meta}):v;if(!_)return;var O=void 0;(0,l.O4)(_)&&(_=b?_.withContext(b):_,O={autoForward:g}),a.spawn(_,y,O)}else a.spawnActivity(p);break;case s.stop:a.stopChild(e.activity.id);break;case s.log:var w=e.label,x=e.value;w?a.logger(w,x):a.logger(x);break;default:c.M||(0,l.ZK)(!1,"No implementation found for action type '".concat(e.type,"'"))}};var f=(0,i.pi)((0,i.pi)({},e.defaultOptions),n),p=f.clock,h=f.logger,v=f.parent,m=f.id,g=void 0!==m?m:t.id;this.id=g,this.logger=h,this.clock=p,this.parent=v,this.options=f,this.scheduler=new d({deferEvents:this.options.deferEvents}),this.sessionId=y.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:(0,g.J)(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return c.M||(0,l.ZK)(this.status!==r.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var o=(0,i.XA)(e.actions),a=o.next();!a.done;a=o.next()){var s=a.value;this.exec(s,e,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,a,s,c,f,d,p=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||t===u.initEvent)&&this.options.execute)this.execute(this.state);else for(var h=void 0;h=this._outgoingQueue.shift();)h[0].send(h[1]);if(this.children.forEach(function(e){p.state.children[e.id]=e}),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var v=(0,i.XA)(this.eventListeners),m=v.next();!m.done;m=v.next()){var g=m.value;g(e.event)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}try{for(var b=(0,i.XA)(this.listeners),_=b.next();!_.done;_=b.next()){var g=_.value;g(e,e.event)}}catch(e){o={error:e}}finally{try{_&&!_.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}try{for(var O=(0,i.XA)(this.contextListeners),w=O.next();!w.done;w=O.next())(0,w.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(e){s={error:e}}finally{try{w&&!w.done&&(c=O.return)&&c.call(O)}finally{if(s)throw s.error}}if(this.state.done){var x=e.configuration.find(function(e){return"final"===e.type&&e.parent===p.machine}),S=x&&x.doneData?(0,l.QX)(x.doneData,e.context,t):void 0;this._doneEvent=(0,u.doneInvoke)(this.id,S);try{for(var E=(0,i.XA)(this.doneListeners),k=E.next();!k.done;k=E.next()){var g=k.value;g(this._doneEvent)}}catch(e){f={error:e}}finally{try{k&&!k.done&&(d=E.return)&&d.call(E)}finally{if(f)throw f.error}}this._stop(),this._stopChildren(),y.free(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===r.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var i=this,o=(0,l.zM)(e,t,n);this.listeners.add(o.next),this.status!==r.NotStarted&&o.next(this.state);var a=function(){i.doneListeners.delete(a),i.stopListeners.delete(a),o.complete()};return this.status===r.Stopped?o.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){i.listeners.delete(o.next),i.doneListeners.delete(a),i.stopListeners.delete(a)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===r.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===r.Running)return this;this.machine._init(),y.register(this.sessionId,this),this.initialized=!0,this.status=r.Running;var n=void 0===e?this.initialState:(0,g.J)(this,function(){return(0,a.TL)(e)?t.machine.resolveState(e):t.machine.resolveState(a.ZM.from(e,t.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){t.update(n,u.initEvent)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(e){(0,l.mf)(e.stop)&&e.stop()}),this.children.clear()},e.prototype._stop=function(){var e,t,n,o,a,s,u,c,l,f;try{for(var p=(0,i.XA)(this.listeners),h=p.next();!h.done;h=p.next()){var v=h.value;this.listeners.delete(v)}}catch(t){e={error:t}}finally{try{h&&!h.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}try{for(var y=(0,i.XA)(this.stopListeners),m=y.next();!m.done;m=y.next()){var v=m.value;v(),this.stopListeners.delete(v)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}try{for(var g=(0,i.XA)(this.contextListeners),b=g.next();!b.done;b=g.next()){var v=b.value;this.contextListeners.delete(v)}}catch(e){a={error:e}}finally{try{b&&!b.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}try{for(var _=(0,i.XA)(this.doneListeners),O=_.next();!O.done;O=_.next()){var v=O.value;this.doneListeners.delete(v)}}catch(e){u={error:e}}finally{try{O&&!O.done&&(c=_.return)&&c.call(_)}finally{if(u)throw u.error}}if(!this.initialized)return this;this.initialized=!1,this.status=r.Stopped,this._initialState=void 0;try{for(var w=(0,i.XA)(Object.keys(this.delayedEventsMap)),x=w.next();!x.done;x=w.next()){var S=x.value;this.clock.clearTimeout(this.delayedEventsMap[S])}}catch(e){l={error:e}}finally{try{x&&!x.done&&(f=w.return)&&f.call(w)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new d({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule(function(){var t=(0,l.g5)({type:"xstate.stop"}),n=(0,g.J)(e,function(){var n=(0,l.xH)((0,i.ev)([],(0,i.CR)(e.state.configuration),!1).sort(function(e,t){return t.order-e.order}).map(function(t){return(0,u.toActionObjects)(t.onExit,e.machine.options.actions)})),r=(0,i.CR)((0,u.resolveActions)(e.machine,e.state,e.state.context,t,[{type:"exit",actions:n}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),o=r[0],s=r[1],c=new a.ZM({value:e.state.value,context:s,_event:t,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter(function(e){return!(0,l.vK)(e)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return c.changed=!0,c});e.update(n,t),e._stopChildren(),y.free(e.sessionId)}),this},e.prototype.batch=function(e){var t=this;if(this.status===r.NotStarted&&this.options.deferEvents)c.M||(0,l.ZK)(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==r.Running)throw Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var r,o,s=t.state,u=!1,c=[];try{for(var f=(0,i.XA)(e),d=f.next();!d.done;d=f.next()){var p=d.value;!function(e){var r=(0,l.g5)(e);t.forward(r),s=(0,g.J)(t,function(){return t.machine.transition(s,r,void 0,n||void 0)}),c.push.apply(c,(0,i.ev)([],(0,i.CR)(t.machine.config.predictableActionArguments?s.actions:s.actions.map(function(e){return(0,a.j1)(e,s)})),!1)),u=u||!!s.changed}(p)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}s.changed=u,s.actions=c,t.update(s,(0,l.g5)(e[e.length-1]))})}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=(0,l.g5)(e);if(0===r.name.indexOf(s.errorPlatform)&&!this.state.nextEvents.some(function(e){return 0===e.indexOf(s.errorPlatform)}))throw r.data.data;return(0,g.J)(this,function(){return n.machine.transition(n.state,r,void 0,t||void 0)})},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=(0,i.XA)(this.forwardTo),o=r.next();!o.done;o=r.next()){var a=o.value,s=this.children.get(a);if(!s)throw Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));s.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout(function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),(0,l.mf)(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==r.Running)return(0,p.Xg)(e,t);if((0,l.y8)(e))return this.spawnPromise(Promise.resolve(e),t);if((0,l.mf)(e))return this.spawnCallback(e,t);if((0,p.f3)(e))return this.spawnActor(e,t);if((0,l.bi)(e))return this.spawnObservable(e,t);if((0,l.O4)(e))return this.spawnMachine(e,(0,i.pi)((0,i.pi)({},n),{id:t}));if((0,l.HV)(e))return this.spawnBehavior(e,t);throw Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'))},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,(0,i.pi)((0,i.pi)({},this.options),{parent:this,id:n.id||t.id})),a=(0,i.pi)((0,i.pi)({},_),n);return a.sync&&o.onTransition(function(e){r.send(s.update,{state:e,id:o.id})}),this.children.set(o.id,o),a.autoForward&&this.forwardTo.add(o.id),o.onDone(function(e){r.removeChild(o.id),r.send((0,l.g5)(e,{origin:o.id}))}).start(),o},e.prototype.spawnBehavior=function(e,t){var n=(0,b.YP)(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,i=this,o=!1;e.then(function(e){o||(r=e,i.removeChild(t),i.send((0,l.g5)((0,u.doneInvoke)(t,e),{origin:t})))},function(e){if(!o){i.removeChild(t);var n=(0,u.error)(t,e);try{i.send((0,l.g5)(n,{origin:t}))}catch(r){(0,l.v4)(e,r,t),i.devTools&&i.devTools.send(n,i.state),i.machine.strict&&i.stop()}}});var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var i=(0,l.zM)(t,n,r),o=!1;return e.then(function(e){!o&&(i.next(e),o||i.complete())},function(e){o||i.error(e)}),{unsubscribe:function(){return o=!0}}},stop:function(){o=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[l.L$]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,i,o=this,a=!1,s=new Set,c=new Set;try{i=e(function(e){r=e,c.forEach(function(t){return t(e)}),a||o.send((0,l.g5)(e,{origin:t}))},function(e){s.add(e)})}catch(e){this.send((0,u.error)(t,e))}if((0,l.y8)(i))return this.spawnPromise(i,t);var f=((n={id:t,send:function(e){return s.forEach(function(t){return t(e)})},subscribe:function(e){var t=(0,l.zM)(e);return c.add(t.next),{unsubscribe:function(){c.delete(t.next)}}},stop:function(){a=!0,(0,l.mf)(i)&&i()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[l.L$]=function(){return this},n);return this.children.set(t,f),f},e.prototype.spawnObservable=function(e,t){var n,r,i=this,o=e.subscribe(function(e){r=e,i.send((0,l.g5)(e,{origin:t}))},function(e){i.removeChild(t),i.send((0,l.g5)((0,u.error)(t,e),{origin:t}))},function(){i.removeChild(t),i.send((0,l.g5)((0,u.doneInvoke)(t),{origin:t}))}),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return o.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[l.L$]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(!t){c.M||(0,l.ZK)(!1,"No implementation found for activity '".concat(e.type,"'"));return}var n=t(this.state.context,e);this.spawnEffect(e.id,n)},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[l.L$]=function(){return this},n))},e.prototype.attachDev=function(){var e=m();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect((0,i.pi)((0,i.pi)({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:(0,i.pi)({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(e){if(m()){var t=function(){var e=m();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[l.L$]=function(){return this},e.prototype.getSnapshot=function(){return this.status===r.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=x,e}();function w(e,t){var n=(0,l.HD)(t)?(0,i.pi)((0,i.pi)({},_),{name:t}):(0,i.pi)((0,i.pi)((0,i.pi)({},_),{name:(0,l.EL)()}),t);return(0,g.F)(function(t){if(!c.M){var r=(0,l.O4)(e)||(0,l.mf)(e);(0,l.ZK)(!!t||r,'Attempted to spawn an Actor (ID: "'.concat((0,l.O4)(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return t?t.spawn(e,n.name,n):(0,p.Xg)(e,n.name)})}function x(e,t){return new O(e,t)}},10797:(e,t,n)=>{n.d(t,{F:()=>o,J:()=>i});var r=[],i=function(e,t){r.push(e);var n=t(e);return r.pop(),n},o=function(e){return e(r[r.length-1])}},56115:(e,t,n)=>{n.d(t,{G:()=>s,Ij:()=>function e(t,n){return"compound"===n.type?s(n).some(function(e){return"final"===e.type&&d(t,e)}):"parallel"===n.type&&s(n).every(function(n){return e(t,n)})},N9:()=>o,NA:()=>f,Oe:()=>v,P_:()=>c,ac:()=>u,e$:()=>d,nI:()=>a,nJ:()=>p,xZ:()=>h});var r=n(63056),i=n(89823),o=function(e){return"atomic"===e.type||"final"===e.type};function a(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function s(e){return a(e).filter(function(e){return"history"!==e.type})}function u(e){var t=[e];return o(e)?t:t.concat((0,i.xH)(s(e).map(u)))}function c(e,t){var n,i,o,a,u,c,f,d,p=l(new Set(e)),h=new Set(t);try{for(var v=(0,r.XA)(h),y=v.next();!y.done;y=v.next())for(var m=y.value,g=m.parent;g&&!h.has(g);)h.add(g),g=g.parent}catch(e){n={error:e}}finally{try{y&&!y.done&&(i=v.return)&&i.call(v)}finally{if(n)throw n.error}}var b=l(h);try{for(var _=(0,r.XA)(h),O=_.next();!O.done;O=_.next()){var m=O.value;if("compound"!==m.type||b.get(m)&&b.get(m).length){if("parallel"===m.type)try{for(var w=(u=void 0,(0,r.XA)(s(m))),x=w.next();!x.done;x=w.next()){var S=x.value;h.has(S)||(h.add(S),p.get(S)?p.get(S).forEach(function(e){return h.add(e)}):S.initialStateNodes.forEach(function(e){return h.add(e)}))}}catch(e){u={error:e}}finally{try{x&&!x.done&&(c=w.return)&&c.call(w)}finally{if(u)throw u.error}}}else p.get(m)?p.get(m).forEach(function(e){return h.add(e)}):m.initialStateNodes.forEach(function(e){return h.add(e)})}}catch(e){o={error:e}}finally{try{O&&!O.done&&(a=_.return)&&a.call(_)}finally{if(o)throw o.error}}try{for(var E=(0,r.XA)(h),k=E.next();!k.done;k=E.next())for(var m=k.value,g=m.parent;g&&!h.has(g);)h.add(g),g=g.parent}catch(e){f={error:e}}finally{try{k&&!k.done&&(d=E.return)&&d.call(E)}finally{if(f)throw f.error}}return h}function l(e){var t,n,i=new Map;try{for(var o=(0,r.XA)(e),a=o.next();!a.done;a=o.next()){var s=a.value;i.has(s)||i.set(s,[]),s.parent&&(i.has(s.parent)||i.set(s.parent,[]),i.get(s.parent).push(s))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}function f(e,t){var n=c([e],t);return function e(t,n){var r=n.get(t);if(!r)return{};if("compound"===t.type){var i=r[0];if(!i)return{};if(o(i))return i.key}var a={};return r.forEach(function(t){a[t.key]=e(t,n)}),a}(e,l(n))}function d(e,t){return Array.isArray(e)?e.some(function(e){return e===t}):e instanceof Set&&e.has(t)}function p(e){return(0,r.ev)([],(0,r.CR)(new Set((0,i.xH)((0,r.ev)([],(0,r.CR)(e.map(function(e){return e.ownEvents})),!1)))),!1)}function h(e){return void 0===e&&(e=[]),e.reduce(function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e},{})}function v(e){return new Set((0,i.xH)(e.map(function(e){return e.tags})))}},59043:(e,t,n)=>{var r,i;n.d(t,{K:()=>i,M:()=>r}),function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(r||(r={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(i||(i={}))},89823:(e,t,n)=>{n.d(t,{Bc:()=>A,EL:()=>I,ET:()=>v,HD:()=>j,HV:()=>w,JQ:()=>_,L$:()=>M,O4:()=>N,Q8:()=>p,Q9:()=>l,QX:()=>b,Qi:()=>D,SA:()=>function e(t){return t?j(t)?[[t]]:m(Object.keys(t).map(function(n){var r=t[n];return"string"==typeof r||r&&Object.keys(r).length?e(t[n]).map(function(e){return[n].concat(e)}):[[n]]})):[[]]},W:()=>function e(t,n,r){void 0===r&&(r=s.iS);var i=f(t,r),o=f(n,r);return j(o)?!!j(i)&&o===i:j(i)?i in o:Object.keys(i).every(function(t){return t in o&&e(i[t],o[t])})},WM:()=>f,ZK:()=>k,_v:()=>R,bi:()=>C,bx:()=>K,dt:()=>E,g5:()=>F,gk:()=>y,ib:()=>h,j:()=>Q,jh:()=>L,kJ:()=>P,mf:()=>T,on:()=>d,qo:()=>g,rg:()=>q,uK:()=>x,v4:()=>V,vK:()=>z,vx:()=>B,x6:()=>c,xH:()=>m,y8:()=>O,yv:()=>S,zM:()=>Z});var r,i=n(63056),o=n(59043),a=n(3884),s=n(87353),u=n(14066);function c(e){try{return j(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw Error("Events must be strings or objects with a string event.type property.")}}function l(e,t){try{if(P(e))return e;return e.toString().split(t)}catch(t){throw Error("'".concat(e,"' is not a valid state path."))}}function f(e,t){return"object"==typeof e&&"value"in e&&"context"in e&&"event"in e&&"_event"in e?e.value:P(e)?d(e):"string"!=typeof e?e:d(l(e,t))}function d(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r{n.d(t,{h:()=>em});var r=n(97582),i=n(99672),o=n(9964),a=n(30020),s=n(23361),u=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,o.re)(s.Yk)}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,r.pi)((0,r.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,r.pi)((0,r.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,i=(0,r._T)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,i=e.fragment,o=e.fragmentName,a=(0,r._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var i=n.readQuery(e),o=t(i);return null==o?i:(n.writeQuery((0,r.pi)((0,r.pi)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var i=n.readFragment(e),o=t(i);return null==o?i:(n.writeFragment((0,r.pi)((0,r.pi)({},e),{data:o})),o)}})},e}(),c=function(e){function t(n,r,i,o){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,r.ZT)(t,e),t}(Error),l=n(18056),f=n(76487),d=n(51761),p=n(97359),h=n(30320),v=n(53712),y=n(36765),m=n(182),g=n(19065),b=n(48702),_=n(13154),O=n(75028),w=n(21436),x=Object.prototype.hasOwnProperty;function S(e){return null==e}function E(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=S(r)?S(i)?void 0:{_id:i}:{id:r}),S(r)&&!S(i)&&(r=i),!S(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var k={dataIdFromObject:E,addTypename:!0,resultCaching:!0,canonizeResults:!1};function P(e){var t=e.canonizeResults;return void 0===t?k.canonizeResults:t}var T=/^[_a-z][_0-9a-z]*/i;function j(e){var t=e.match(T);return t?t[0]:e}function D(e){return(0,_.s)(e)&&!(0,d.Yk)(e)&&!(0,w.k)(e)}function C(e,t){var n=(0,s.F)((0,y.kU)(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var M=Object.create(null),N=function(){return M},A=Object.create(null),I=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,b.J)((0,d.Yk)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,d.Yk)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,d.kQ)(e);if((0,d.Yk)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,d.kQ)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,r.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),x.call(this.data,e)){var n=this.data[e];if(n&&x.call(n,t))return n[t]}return"__typename"===t&&x.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof L?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),x.call(this.data,e))?this.data[e]:this instanceof L?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,d.Yk)(e)&&(e=e.__ref),(0,d.Yk)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){(0,i.kG)("string"==typeof n,1);var s=new m.w0(V).merge(o,a);if(this.data[n]=s,s!==o&&(delete this.refs[n],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach(function(e){if(!o||o[e]!==s[e]){u[e]=1;var t=j(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||r instanceof L||delete s[e]}}),u.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,o=this.lookup(e);if(o){var a=Object.create(null),s=!1,u=!0,c={DELETE:M,INVALIDATE:A,isReference:d.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,d.kQ)(e)}:t,{store:n})}};if(Object.keys(o).forEach(function(l){var f=j(l),p=o[l];if(void 0!==p){var h="function"==typeof t?t:t[l]||t[f];if(h){var v=h===N?M:h((0,b.J)(p),(0,r.pi)((0,r.pi)({},c),{fieldName:f,storeFieldName:l,storage:n.getStorage(e,l)}));if(v===A)n.group.dirty(e,l);else if(v===M&&(v=void 0),v!==p&&(a[l]=v,s=!0,p=v,!1!==globalThis.__DEV__)){var y=function(e){if(void 0===n.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.kG.warn(2,e),!0};if((0,d.Yk)(v))y(v);else if(Array.isArray(v))for(var m=!1,g=void 0,_=0,O=v;_0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof L?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){x.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof L;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!x.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){(0,d.Yk)(e)&&(t[e.__ref]=!0),(0,_.s)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,_.s)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),R=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.dP)():null,this.keyMaker=new O.B(h.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=j(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function F(e,t){B(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new R(void 0===r||r))||this;return o.stump=new q(o),o.storageTrie=new O.B(h.mr),i&&o.replace(i),o}return(0,r.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(I||(I={}));var L=function(e){function t(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return(0,r.ZT)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){(0,a.D)(r[n],i[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,r.pi)((0,r.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return x.call(this.data,t)?(0,r.pi)((0,r.pi)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(I),q=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new R(t.group.caching,t.group))||this}return(0,r.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(L);function V(e,t,n){var r=e[n],i=t[n];return(0,a.D)(r,i)?r:i}function B(e){return!!(e instanceof I&&e.group.caching)}var Q=n(80900);function Z(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var K=function(){function e(e){var t=this;this.knownResults=new(h.mr?WeakMap:Map),this.config=(0,v.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:P(e)}),this.canon=e.canon||new Q.h,this.executeSelectionSet=(0,o.re)(function(e){var n,i=e.context.canonizeResults,o=Z(e);o[3]=!i;var a=(n=t.executeSelectionSet).peek.apply(n,o);return a?i?(0,r.pi)((0,r.pi)({},a),{result:t.canon.admit(a.result)}):a:(F(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:Z,makeCacheKey:function(e,t,n,r){if(B(n.store))return n.store.makeCacheKey(e,(0,d.Yk)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,o.re)(function(e){return F(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(B(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Q.h},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,i=e.query,o=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;a=(0,r.pi)((0,r.pi)({},(0,y.O4)((0,y.iW)(i))),a);var p=(0,d.kQ)(void 0===o?"ROOT_QUERY":o),h=this.executeSelectionSet({selectionSet:(0,y.p$)(i).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,r.pi)({store:n,query:i,policies:f,variables:a,varString:(0,Q.B)(a),canonizeResults:l},C(i,this.config.fragments))});if(h.missing&&(t=[new c(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,i,a)],!(void 0===s||s)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(B(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,o=e.objectOrReference,a=e.enclosingRef,u=e.context;if((0,d.Yk)(o)&&!u.policies.rootTypenamesById[o.__ref]&&!u.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var c=u.variables,l=u.policies,h=u.store.getFieldValue(o,"__typename"),v=[],y=new m.w0;function _(e,n){var r;return e.missing&&(t=y.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof h&&!l.rootIdsByTypename[h]&&v.push({__typename:h});var O=new Set(r.selections);O.forEach(function(e){var r,m;if((0,g.LZ)(e,c)){if((0,d.My)(e)){var b=l.readField({fieldName:e.name.value,field:e,variables:u.variables,from:o},u),x=(0,d.u2)(e);void 0===b?f.Gw.added(e)||(t=y.merge(t,((r={})[x]="Can't find field '".concat(e.name.value,"' on ").concat((0,d.Yk)(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),r))):(0,w.k)(b)?b=_(n.executeSubSelectedArray({field:e,array:b,enclosingRef:a,context:u}),x):e.selectionSet?null!=b&&(b=_(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:b,enclosingRef:(0,d.Yk)(b)?b:a,context:u}),x)):u.canonizeResults&&(b=n.canon.pass(b)),void 0!==b&&v.push(((m={})[x]=b,m))}else{var S=(0,s.hi)(e,u.lookupFragment);if(!S&&e.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(9,e.name.value);S&&l.fragmentMatches(S,h)&&S.selectionSet.selections.forEach(O.add,O)}}});var x={result:(0,m.bw)(v),missing:t},S=u.canonizeResults?this.canon.admit(x):(0,b.J)(x);return S.result&&this.knownResults.set(S.result,r),S},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,a=e.enclosingRef,s=e.context,u=new m.w0;function c(e,n){var r;return e.missing&&(t=u.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,w.k)(e)?c(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:s}),t):r.selectionSet?c(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,d.Yk)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){(0,_.s)(n)&&((0,i.kG)(!(0,d.Yk)(n),10,(0,d.Yk)(n)?e.get(n.__ref,"__typename"):n&&n.__typename,t.name.value),Object.values(n).forEach(r.add,r))})}}(s.store,r,e),e)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}(),z=n(79487),U=n(13887),G=n(66438),H=Object.create(null);function W(e){var t=JSON.stringify(e);return H[t]||(H[t]=Object.create(null))}function Y(e){var t=W(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},o=n.keyObject=J(e,function(e){var o=ee(n.storeObject,e,r);return void 0===o&&t!==n.storeObject&&x.call(t,e[0])&&(o=ee(t,e,$)),(0,i.kG)(void 0!==o,4,e.join("."),t),o});return"".concat(n.typename,":").concat(JSON.stringify(o))})}function X(e){var t=W(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=JSON.stringify(J(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&(0,w.O)(r.directives)){var a=n.slice(1),s=r.directives.find(function(e){return e.name.value===a}),u=s&&(0,d.NC)(s,i);return u&&ee(u,e.slice(1))}return}if("$"===o){var c=n.slice(1);if(i&&x.call(i,c)){var l=e.slice(0);return l[0]=c,ee(i,l)}return}if(t)return ee(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function J(e,t){var n=new m.w0;return(function e(t){var n=W(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,o){(0,w.k)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,w.k)(t[o+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function $(e,t){return e[t]}function ee(e,t,n){return n=n||$,function e(t){return(0,_.s)(t)?(0,w.k)(t)?t.map(e):J(Object.keys(t).sort(),function(e){return ee(t,e)}):t}(t.reduce(function e(t,r){return(0,w.k)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function et(e){return void 0!==e.args?e.args:e.field?(0,d.NC)(e.field,e.variables):null}d.PT.setStringify(Q.B);var en=function(){},er=function(e,t){return t.fieldName},ei=function(e,t,n){return(0,n.mergeObjects)(e,t)},eo=function(e,t){return t},ea=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,r.pi)({dataIdFromObject:E},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,i,o=this,a=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,u=(0,r.pi)((0,r.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=eu(arguments,s);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l((0,r.pi)((0,r.pi)({},e),s),u);if((0,w.k)(f))l=Y(f);else{i=f;break}}return i=i?String(i):void 0,u.keyObject?[i,u.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var i=e[n],o=i.queryType,a=i.mutationType,s=i.subscriptionType,u=(0,r._T)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),x.call(t.toBeAdded,n)?t.toBeAdded[n].push(u):t.toBeAdded[n]=[u]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ei:!1===t?eo:e.merge}a(r,t.merge),r.keyFn=!1===i?en:(0,w.k)(i)?Y(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;r.keyFn=!1===s?er:(0,w.k)(s)?X(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),a(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||er)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,i.kG)(!r||r===e,5,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(T);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!x.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,r){if(n.test(e)){var o=t.supertypeMap.get(r);o&&o.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),o=i.fields;Object.assign(n,(0,r._T)(i,["fields"])),Object.assign(n.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(n&&this.fuzzySubtypes.size),f=!1,p=0;p1?s:t}:(o=(0,r.pi)({},a),x.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.kG.warn(7,(0,U.v)(Array.from(e))),void 0===o.variables&&(o.variables=n),o}function ec(e){return function(t,n){if((0,w.k)(t)||(0,w.k)(n))throw(0,i._K)(8);if((0,_.s)(t)&&(0,_.s)(n)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(n,"__typename");if(o&&a&&o!==a)return n;if((0,d.Yk)(t)&&D(n))return e.merge(t.__ref,n),t;if(D(t)&&(0,d.Yk)(n))return e.merge(t,n.__ref),n;if(D(t)&&D(n))return(0,r.pi)((0,r.pi)({},t),n)}return n}}function el(e,t,n){var i="".concat(t).concat(n),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===n?e:(0,r.pi)((0,r.pi)({},e),{clientOnly:t,deferred:n})),o}var ef=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,o=t.query,s=t.result,u=t.dataId,c=t.variables,l=t.overwrite,f=(0,y.$H)(o),p=new m.w0;c=(0,r.pi)((0,r.pi)({},(0,y.O4)(f)),c);var h=(0,r.pi)((0,r.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,Q.B)(c)},C(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:s||Object.create(null),dataId:u,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,d.Yk)(v))throw(0,i._K)(11,s);return h.incomingById.forEach(function(t,r){var o=t.storeObject,s=t.mergeTree,u=t.fieldNodeSet,c=(0,d.kQ)(r);if(s&&s.map.size){var l=n.applyMerges(s,c,o,h);if((0,d.Yk)(l))return;o=l}if(!1!==globalThis.__DEV__&&!h.overwrite){var f=Object.create(null);u.forEach(function(e){e.selectionSet&&(f[e.name.value]=!0)});var p=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(o).forEach(function(e){!0!==f[j(e)]||p(e)||function(e,t,n,r){var o=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},s=o(e);if(s){var u=o(t);if(!(!u||(0,d.Yk)(s)||(0,a.D)(s,u)||Object.keys(s).every(function(e){return void 0!==r.getFieldValue(u,e)}))){var c=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),l=j(n),f="".concat(c,".").concat(l);if(!ey.has(f)){ey.add(f);var p=[];(0,w.k)(s)||(0,w.k)(u)||[s,u].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),!1!==globalThis.__DEV__&&i.kG.warn(14,l,c,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",f,s,u)}}}}(c,o,e,h.store)})}e.merge(r,o)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,o=e.result,a=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),p=n&&c.rootTypenamesById[n]||(0,d.qw)(o,a,s.fragmentMap)||n&&s.store.get(n,"__typename");"string"==typeof p&&(l.__typename=p);var h=function(){var e=eu(arguments,l,s.variables);if((0,d.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var n=c.readField((0,r.pi)((0,r.pi)({},e),{from:t.storeObject}),s);if(void 0!==n)return n}}return c.readField(e,s)},v=new Set;this.flattenFields(a,o,s,p).forEach(function(e,n){var r,a=o[(0,d.u2)(n)];if(v.add(n),void 0!==a){var s=c.getStoreFieldName({typename:p,fieldName:n.name.value,field:n,variables:e.variables}),y=ep(u,s),m=t.processFieldValue(a,n,n.selectionSet?el(e,!1,!1):e,y),g=void 0;n.selectionSet&&((0,d.Yk)(m)||D(m))&&(g=h("__typename",m));var b=c.getMergeFunction(p,n.name.value,g);b?y.info={field:n,typename:p,merge:b}:ev(u,s),l=e.merge(l,((r={})[s]=m,r))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||f.Gw.added(n)||c.getReadFunction(p,n.name.value)||!1===globalThis.__DEV__||i.kG.error(12,(0,d.u2)(n),o)});try{var y=c.identify(o,{typename:p,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:l,readField:h}),m=y[0],g=y[1];n=n||m,g&&(l=s.merge(l,g))}catch(e){if(!n)throw e}if("string"==typeof n){var b=(0,d.kQ)(n),_=s.written[n]||(s.written[n]=[]);if(_.indexOf(a)>=0||(_.push(a),this.reader&&this.reader.isFresh(o,b,a,s)))return b;var O=s.incomingById.get(n);return O?(O.storeObject=s.merge(O.storeObject,l),O.mergeTree=function e(t,n){if(t===n||!n||eh(n))return t;if(!t||eh(t))return n;var i=t.info&&n.info?(0,r.pi)((0,r.pi)({},t.info),n.info):t.info||n.info,o=t.map.size&&n.map.size,a={info:i,map:o?new Map:t.map.size?t.map:n.map};if(o){var s=new Set(n.map.keys());t.map.forEach(function(t,r){a.map.set(r,e(t,n.map.get(r))),s.delete(r)}),s.forEach(function(r){a.map.set(r,e(n.map.get(r),t.map.get(r)))})}return a}(O.mergeTree,u),v.forEach(function(e){return O.fieldNodeSet.add(e)})):s.incomingById.set(n,{storeObject:l,mergeTree:eh(u)?void 0:u,fieldNodeSet:v}),b}return l},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,w.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,ep(r,o));return ev(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):!1!==globalThis.__DEV__?(0,z.X)(e):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,d.qw)(t,e,n.fragmentMap));var o=new Map,a=this.cache.policies,u=new O.B(!1);return function e(c,l){var f=u.lookup(c,l.clientOnly,l.deferred);f.visited||(f.visited=!0,c.selections.forEach(function(u){if((0,g.LZ)(u,n.variables)){var c=l.clientOnly,f=l.deferred;if(!(c&&f)&&(0,w.O)(u.directives)&&u.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(c=!0),"defer"===t){var r=(0,d.NC)(e,n.variables);r&&!1===r.if||(f=!0)}}),(0,d.My)(u)){var h=o.get(u);h&&(c=c&&h.clientOnly,f=f&&h.deferred),o.set(u,el(n,c,f))}else{var v=(0,s.hi)(u,n.lookupFragment);if(!v&&u.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(13,u.name.value);v&&a.fragmentMatches(v,r,t,n.variables)&&e(v.selectionSet,el(n,c,f))}}}))}(e,n),o},e.prototype.applyMerges=function(e,t,n,o,a){var s=this;if(e.map.size&&!(0,d.Yk)(n)){var u,c,l=!(0,w.k)(n)&&((0,d.Yk)(t)||D(t))?t:void 0,f=n;l&&!a&&(a=[(0,d.Yk)(l)?l.__ref:l]);var p=function(e,t){return(0,w.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=p(l,t),r=p(f,t);if(void 0!==r){a&&a.push(t);var u=s.applyMerges(e,n,r,o,a);u!==r&&(c=c||new Map).set(t,u),a&&(0,i.kG)(a.pop()===t)}}),c&&(n=(0,w.k)(f)?f.slice(0):(0,r.pi)({},f),c.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,o,a&&(u=o.store).getStorage.apply(u,a)):n},e}(),ed=[];function ep(e,t){var n=e.map;return n.has(t)||n.set(t,ed.pop()||{map:new Map}),n.get(t)}function eh(e){return!e||!(e.info||e.map.size)}function ev(e,t){var n=e.map,r=n.get(t);r&&eh(r)&&(ed.push(r),n.delete(t))}var ey=new Set,em=function(e){function t(t){void 0===t&&(t={});var n,r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new l.A(f.Gw),r.assumeImmutableResults=!0,r.makeVar=G.QS,r.txCount=0,r.config=(n=t,(0,v.o)(k,n)),r.addTypename=!!r.config.addTypename,r.policies=new ea({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,r.ZT)(t,e),t.prototype.init=function(){var e=this.data=new I.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new ef(this,this.storeReader=new K({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:P(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=(0,o.re)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(B(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,(0,Q.B)({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,r.pi)((0,r.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof c)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(x.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,r.pi)((0,r.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,G._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,G.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){Q.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,d.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(x.call(e,"id"))return!1;e=(0,r.pi)((0,r.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Q.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,G.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var r=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=i(n)}finally{--n.txCount,n.data=r,n.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,r.pi)((0,r.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,r.pi)((0,r.pi)({},e),{onWatchUpdated:function(e,t){var n=u.call(this,e,t);return!1!==n&&l.delete(e),n}})),l.size&&l.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&(0,a.D)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(u)},80900:(e,t,n)=>{n.d(t,{B:()=>f,h:()=>l});var r,i,o=n(97582),a=n(75028),s=n(13154),u=n(30320),c=n(21436),l=function(){function e(){this.known=new(u.sy?WeakSet:Set),this.pool=new a.B(u.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.s)(e)){var t=(0,s.s)(e)?(0,c.k)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.s)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return i.array||(this.known.add(i.array=r),!1!==globalThis.__DEV__&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],u=this.sortedKeys(e);a.push(u.json);var c=a.length;u.sorted.forEach(function(n){a.push(t.admit(e[n]))});var i=this.pool.lookupArray(a);if(!i.object){var l=i.object=Object.create(o);this.known.add(l),u.sorted.forEach(function(e,t){l[e]=a[c+t]}),!1!==globalThis.__DEV__&&Object.freeze(l)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}(),f=Object.assign(function(e){if((0,s.s)(e)){void 0===r&&d();var t=r.admit(e),n=i.get(t);return void 0===n&&i.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:d});function d(){r=new l,i=new(u.mr?WeakMap:Map)}},66438:(e,t,n)=>{n.d(t,{QS:()=>c,_v:()=>u,ab:()=>i,li:()=>s});var r=n(9964),i=new(n(82455)).g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,r.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(r),e.broadcastWatches&&e.broadcastWatches()});var u=Array.from(n);n.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),a(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var o=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}},31892:(e,t,n)=>{n.d(t,{f:()=>ev});var r=n(97582),i=n(99672),o=n(93581),a=o.i.execute,s=n(49379),u=n(19065),c=n(48216),l=n(15049),f=n(11037),d=n(11172),p=n(23178),h=n(3453),v=n(16261),y=n(64004),m=n(76487),g=n(36765),b=(0,i.wY)(function(){return fetch}),_=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,a=e.fetch,s=e.print,_=void 0===s?h.sb:s,O=e.includeExtensions,w=e.preserveHeaderCase,x=e.useGETForQueries,S=e.includeUnusedVariables,E=void 0!==S&&S,k=(0,r._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,p.U)(a||b);var P={http:{includeExtensions:O,preserveHeaderCase:w},options:k.fetchOptions,credentials:k.credentials,headers:k.headers};return new o.i(function(e){var t,o,s=(0,f.r)(e,n),p=e.getContext(),O={};if(p.clientAwareness){var w=p.clientAwareness,S=w.name,k=w.version;S&&(O["apollographql-client-name"]=S),k&&(O["apollographql-client-version"]=k)}var T=(0,r.pi)((0,r.pi)({},O),p.headers),j={http:p.http,options:p.fetchOptions,credentials:p.credentials,headers:T};if((0,u.FS)(["client"],e.query)){var D=(0,m.ob)(e.query);if(!D)return(0,v.Q)(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=D}var C=(0,h.ve)(e,_,h.SC,P,j),M=C.options,N=C.body;N.variables&&!E&&(N.variables=(0,y.e)(N.variables,e.query)),M.signal||"undefined"==typeof AbortController||(o=new AbortController,M.signal=o.signal);var A="OperationDefinition"===(t=(0,g.p$)(e.query)).kind&&"subscription"===t.operation,I=(0,u.FS)(["defer"],e.query);if(x&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(M.method="GET"),I||A){M.headers=M.headers||{};var R="multipart/mixed;";A&&I&&!1!==globalThis.__DEV__&&i.kG.warn(38),A?R+="boundary=graphql;subscriptionSpec=1.0,application/json":I&&(R+="deferSpec=20220824,application/json"),M.headers.accept=R}if("GET"===M.method){var F=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=(0,l.g)(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var o=void 0;try{o=(0,l.g)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+n.join("&")+a}}(s,N),L=F.newURI,q=F.parseError;if(q)return(0,v.Q)(q);s=L}else try{M.body=(0,l.g)(N,"Payload")}catch(e){return(0,v.Q)(e)}return new c.y(function(t){var n=a||(0,i.wY)(function(){return fetch})||b,r=t.next.bind(t);return n(s,M).then(function(t){e.setContext({response:t});var n,i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?(0,d.TF)(t,r):(0,d.dO)(e)(t).then(r)}).then(function(){o=void 0,t.complete()}).catch(function(e){o=void 0,(0,d.S3)(e,t)}),function(){o&&o.abort()}})})},O=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,_(t).request)||this;return n.options=t,n}return(0,r.ZT)(t,e),t}(o.i),w=n(30020),x=n(37280),S=n(80900),E=n(30320),k=n(18056);function P(e,t,n){return new c.y(function(r){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(n){if(e){var o=function(){return r.closed?0:e(n)};i=i.then(o,o).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var a={next:o(t,"next"),error:o(n,"error"),complete:function(){i.then(function(){return r.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}var T=n(21436);function j(e){var t=D(e);return(0,T.O)(t)}function D(e){var t=(0,T.O)(e.errors)?e.errors.slice(0):[];return(0,x.GG)(e)&&(0,T.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var C=n(51761),M=n(13154),N=n(60897);function A(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function I(e){function t(t){Object.defineProperty(e,t,{value:c.y})}return E.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function R(e){return e&&"function"==typeof e.then}var F=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),A(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),A(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;if(null!==e){var r=(void 0===t?[]:t).shift();r?R(r)?r.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=r.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),A(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new c.y(t)]),R(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,r.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(c.y);I(F);var L=n(30990),q=n(1644),V=n(53712),B=n(79487),Q=n(23361);function Z(e){return!!e.directives&&e.directives.some(K)}function K(e){return"nonreactive"===e.name.value}var z=Object.assign,U=Object.hasOwnProperty,G=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=W)}catch(e){}var n=!a.observers.size;a.observers.add(e);var r=a.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=n,a.waitForOwnResult=X(o.fetchPolicy),a.isTornDown=!1;var s=n.defaultOptions.watchQuery,u=(void 0===s?{}:s).fetchPolicy,c=void 0===u?"cache-first":u,l=o.fetchPolicy,f=void 0===l?c:l,d=o.initialFetchPolicy,p=void 0===d?"standby"===f?c:f:d;a.options=(0,r.pi)((0,r.pi)({},o),{initialFetchPolicy:p,fetchPolicy:f}),a.queryId=i.queryId||n.generateQueryId();var h=(0,g.$H)(a.query);return a.queryName=h&&h.name&&h.name.value,a}return(0,r.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||q.Ie.ready,i=(0,r.pi)((0,r.pi)({},t),{loading:(0,q.Oj)(n),networkStatus:n}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if(X(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,w.D)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===q.Ie.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=q.Ie.ready,i.loading=!1)):i.partial=!0,!1===globalThis.__DEV__||s.complete||this.options.partialRefetch||i.loading||i.data||i.error||Y(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){var n,i,o,a,s,c,l;return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?(n=this.query,i=this.last.result,o=this.variables,a=i.data,s=(0,r._T)(i,["data"]),c=e.data,l=(0,r._T)(e,["data"]),!((0,w.Z)(s,l)&&function e(t,n,r,i){if(n===r)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!(0,u.LZ)(t,i.variables)||Z(t)))return!0;if((0,C.My)(t)){var a=(0,C.u2)(t),s=n&&n[a],c=r&&r[a],l=t.selectionSet;if(!l)return(0,w.Z)(s,c);var f=Array.isArray(s),d=Array.isArray(c);if(f!==d)return!1;if(f&&d){var p=s.length;if(c.length!==p)return!1;for(var h=0;h0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(c.y);function H(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=r,"function"==typeof r)?r.apply(this,arguments):n}}):e.reobserve()}function W(e){!1!==globalThis.__DEV__&&i.kG.error(23,e.message,e.stack)}function Y(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(24,e)}function X(e){return"network-only"===e||"no-cache"===e||"standby"===e}I(G);var J=n(77304),$=n(97359);function ee(e){return e.kind===$.h.FIELD||e.kind===$.h.FRAGMENT_SPREAD||e.kind===$.h.INLINE_FRAGMENT}function et(e){return(e.kind===Kind.VARIABLE||e.kind===Kind.INT||e.kind===Kind.FLOAT||e.kind===Kind.STRING||e.kind===Kind.BOOLEAN||e.kind===Kind.NULL||e.kind===Kind.ENUM||e.kind===Kind.LIST||e.kind===Kind.OBJECT)&&(e.kind===Kind.LIST?e.values.some(et):e.kind===Kind.OBJECT?e.fields.some(e=>et(e.value)):e.kind!==Kind.VARIABLE)}var en=n(182),er=n(66438),ei=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,en.Ee)(t.resolvers,e)}):this.resolvers=(0,en.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(e){return t?[2,this.resolveDocument(t,n.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,r.pi)((0,r.pi)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,u.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,m.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.pi)((0,r.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.mG)(this,void 0,void 0,function(){return(0,r.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,r.pi)((0,r.pi)({},t),e.exportedVariables)})]:[2,(0,r.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,J.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return J.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,m.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,n,i,o,a){return void 0===n&&(n={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,r.mG)(this,void 0,void 0,function(){var s,u,c,l,f,d,p,h,v,y;return(0,r.Jh)(this,function(m){return s=(0,g.p$)(e),u=(0,g.kU)(e),c=(0,Q.F)(u),l=this.collectSelectionsToResolve(s,c),d=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=this,h=p.cache,v=p.client,y={fragmentMap:c,context:(0,r.pi)((0,r.pi)({},n),{cache:h,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,y).then(function(e){return{result:e,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,o){return(0,r.mG)(this,void 0,void 0,function(){var a,s,c,l,f,d=this;return(0,r.Jh)(this,function(p){return a=o.fragmentMap,s=o.context,c=o.variables,l=[n],f=function(e){return(0,r.mG)(d,void 0,void 0,function(){var f,d;return(0,r.Jh)(this,function(r){return(t||o.selectionsToResolve.has(e))&&(0,u.LZ)(e,c)?(0,C.My)(e)?[2,this.resolveField(e,t,n,o).then(function(t){var n;void 0!==t&&l.push(((n={})[(0,C.u2)(e)]=t,n))})]:((0,C.Ao)(e)?f=e:(f=a[e.name.value],(0,i.kG)(f,18,e.name.value)),f&&f.typeCondition&&(d=f.typeCondition.name.value,o.fragmentMatcher(n,d,s)))?[2,this.resolveSelectionSet(f.selectionSet,t,n,o).then(function(e){l.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(f)).then(function(){return(0,en.bw)(l)})]})})},e.prototype.resolveField=function(e,t,n,i){return(0,r.mG)(this,void 0,void 0,function(){var o,a,s,u,c,l,f,d,p,h=this;return(0,r.Jh)(this,function(r){return n?(o=i.variables,u=(a=e.name.value)!==(s=(0,C.u2)(e)),l=Promise.resolve(c=n[s]||n[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=n.__typename||i.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(p=d[u?a:s])&&(l=Promise.resolve(er.ab.withValue(this.cache,p,[n,(0,C.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(n){if(void 0===n&&(n=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var r,o,a=null!==(o=null===(r=e.directives)||void 0===r?void 0:r.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(n)?h.resolveSubSelectedArray(e,t||a,n,i):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,n,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(o){if(!r.has(o)){var a=new Set;r.set(o,a),(0,J.Vn)(o,{Directive:function(e,t,r,i,o){"client"===e.name.value&&o.forEach(function(e){n(e)&&ee(e)&&a.add(e)})},FragmentSpread:function(r,o,s,u,c){var l=t[r.name.value];(0,i.kG)(l,19,r.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){n(e)&&ee(e)&&a.add(e)}),a.add(r),f.forEach(function(e){a.add(e)}))}})}return r.get(o)}(e)},e}(),eo=new(E.mr?WeakMap:Map);function ea(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return eo.set(e,(eo.get(e)+1)%1e15),n.apply(this,arguments)})}function es(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var eu=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;eo.has(n)||(eo.set(n,0),ea(n,"evict"),ea(n,"modify"),ea(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||q.Ie.loading;return this.variables&&this.networkStatus!==q.Ie.loading&&!(0,w.D)(this.variables,e.variables)&&(t=q.Ie.setVariables),(0,w.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){es(this),this.dirty=!1},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,w.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,w.D)(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():H(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;es(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,q.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.pi)((0,r.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,w.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===eo.get(this.cache)&&(0,w.D)(t,n.variables)&&(0,w.D)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,o=new en.w0,a=(0,T.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,T.O)(e.incremental)){var s=(0,x.mT)(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(ec(e,n.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:eo.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(n.variables),s=o.diff(a);!i.stopped&&(0,w.D)(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=q.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=q.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function ec(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!j(e);return!r&&n&&e.data&&(r=!0),r}var el=n(68470),ef=Object.prototype.hasOwnProperty,ed=function(){function e(e){var t=this,n=e.cache,r=e.link,i=e.defaultOptions,o=e.documentTransform,a=e.queryDeduplication,s=e.onBroadcast,u=e.ssrMode,c=e.clientAwareness,l=e.localState,f=e.assumeImmutableResults,d=void 0===f?!!n.assumeImmutableResults:f;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(E.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var p=new k.A(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=n,this.link=r,this.defaultOptions=i||Object.create(null),this.queryDeduplication=void 0!==a&&a,this.clientAwareness=void 0===c?{}:c,this.localState=l||new ei({cache:n}),this.ssrMode=void 0!==u&&u,this.assumeImmutableResults=d,this.documentTransform=o?p.concat(o).concat(p):p,(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches((0,i._K)(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,n,o=e.mutation,a=e.variables,s=e.optimisticResponse,u=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,d=void 0!==f&&f,p=e.update,h=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,m=e.errorPolicy,g=void 0===m?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":m,b=e.keepRootFields,_=e.context;return(0,r.mG)(this,void 0,void 0,function(){var e,t,n,c;return(0,r.Jh)(this,function(f){switch(f.label){case 0:if((0,i.kG)(o,26),(0,i.kG)("network-only"===y||"no-cache"===y,27),e=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),t=this.getDocumentInfo(o).hasClientExports,a=this.getVariables(o,a),!t)return[3,2];return[4,this.localState.addExportedVariables(o,a,_)];case 1:a=f.sent(),f.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:y,errorPolicy:g,context:_,updateQueries:u,update:p,keepRootFields:b}),this.broadcastQueries(),c=this,[2,new Promise(function(t,i){return P(c.getObservableFromLink(o,(0,r.pi)((0,r.pi)({},_),{optimisticResponse:s}),a,!1),function(t){if(j(t)&&"none"===g)throw new L.cA({graphQLErrors:D(t)});n&&(n.loading=!1,n.error=null);var i=(0,r.pi)({},t);return"function"==typeof l&&(l=l(i)),"ignore"===g&&j(i)&&delete i.errors,c.markMutationResult({mutationId:e,result:i,document:o,variables:a,fetchPolicy:y,errorPolicy:g,context:_,update:p,updateQueries:u,awaitRefetchQueries:d,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:h,keepRootFields:b})}).subscribe({next:function(e){c.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){n&&(n.loading=!1,n.error=t),s&&c.cache.removeOptimistic(e),c.broadcastQueries(),i(t instanceof L.cA?t:new L.cA({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&ec(i,e.errorPolicy)){if((0,x.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,x.GG)(i)&&(0,T.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=(0,x.mT)(s.result,i)),void 0!==u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,r){var a=e.observableQuery,s=a&&a.queryName;if(s&&ef.call(c,s)){var u=c[s],l=n.queries.get(r),f=l.document,d=l.variables,p=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var v=u(h,{mutationResult:i,queryName:f&&(0,g.rY)(f)||void 0,queryVariables:d});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:d})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,u=!(0,x.M0)(i)||(0,x.GG)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,r.pi)((0,r.pi)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,r.pi)((0,r.pi)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:(0,u.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,u.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,m.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,g.O4)((0,g.$H)(e)),asQuery:(0,r.pi)((0,r.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.pi)((0,r.pi)({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.pi)((0,r.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,r.pi)((0,r.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new eu(this),i=new G({queryManager:this,queryInfo:n,options:e});return i.lastQuery=t,this.queries.set(i.queryId,n),n.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,28),(0,i.kG)("Document"===e.query.kind,29),(0,i.kG)(!e.returnPartialData,30),(0,i.kG)(!e.pollInterval,31),this.fetchQuery(t,(0,r.pi)((0,r.pi)({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i._K)(32)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=q.Ie.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,C.JW)(e)?o.set(t.transform(e),!1):(0,M.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,r){var i=t.observableQuery,a=t.document;if(i){if("all"===e){n.set(r,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(n.set(r,i),s&&o.set(s,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,N.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new G({queryManager:t,queryInfo:a,options:(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),n.set(o,s)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){e||!1===globalThis.__DEV__||i.kG.warn("string"==typeof t?33:34,t)}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=void 0===i?"none":i,a=e.variables,s=e.context,u=void 0===s?{}:s;n=this.transform(n),a=this.getVariables(n,a);var l=function(e){return t.getObservableFromLink(n,u,e).map(function(i){"no-cache"!==r&&(ec(i,o)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=j(i),s=(0,L.ls)(i);if(a||s){var u={};if(a&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[L.YG]),"none"===o||s)throw new L.cA(u)}return"ignore"===o&&delete i.errors,i})};if(this.getDocumentInfo(n).hasClientExports){var f=this.localState.addExportedVariables(n,a,u).then(l);return new c.y(function(e){var t=null;return f.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return l(a)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i){var o,s,u=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var l=this.getDocumentInfo(e),f=l.serverQuery,d=l.clientQuery;if(f){var p=this.inFlightLinkObservables,h=this.link,v={query:f,variables:n,operationName:(0,g.rY)(f)||void 0,context:this.prepareContext((0,r.pi)((0,r.pi)({},t),{forceFetch:!i}))};if(t=v.context,i){var y=(0,el.S)(f),m=p.get(y)||new Map;p.set(y,m);var b=(0,S.B)(n);if(!(s=m.get(b))){var _=new F([a(h,v)]);m.set(b,s=_),_.beforeNext(function(){m.delete(b)&&m.size<1&&p.delete(y)})}}else s=new F([a(h,v)])}else s=new F([c.y.of({data:{}})]),t=this.prepareContext(t);return d&&(s=P(s,function(e){return u.localState.runResolvers({document:d,remoteResult:e,context:t,variables:n})})),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return P(this.getObservableFromLink(i,n.context,n.variables),function(o){var a=D(o),s=a.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new L.cA({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:q.Ie.ready};return s&&"ignore"!==n.errorPolicy&&(u.errors=a,u.networkStatus=q.Ie.error),u},function(t){var n=(0,L.MS)(t)?t:new L.cA({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i,o,a=this;void 0===n&&(n=q.Ie.loading),void 0===r&&(r=t.query);var s=this.getVariables(r,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,d=t.errorPolicy,p=void 0===d?c&&c.errorPolicy||"none":d,h=t.returnPartialData,v=t.notifyOnNetworkStatusChange,y=t.context,m=Object.assign({},t,{query:r,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===y?{}:y}),g=function(e){m.variables=e;var r=a.fetchQueryByPolicy(u,m,n);return"standby"!==m.fetchPolicy&&r.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),r},b=function(){return a.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)i=new F(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),o=!0;else{var _=g(m.variables);o=_.fromLink,i=new F(_.sources)}return i.promise.then(b,b),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,N.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof eu&&e.watcher.observableQuery;if(r){if(u){c.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&l.set(r,i),i}null!==u&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=u(i,a,o)}u&&!0!==r||(r=i.refetch()),!1!==r&&l.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,d=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:o,variables:a,networkStatus:n});var v=function(){return e.getDiff()},y=function(t,n){void 0===n&&(n=e.networkStatus||q.Ie.loading);var s=t.result;!1===globalThis.__DEV__||f||(0,w.D)(s,{})||Y(t.missing);var u=function(e){return c.y.of((0,r.pi)({data:e,loading:(0,q.Oj)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:d,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===l&&n===q.Ie.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},m="no-cache"===s?0:n===q.Ie.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,m,{query:o,variables:a,context:d,fetchPolicy:s,errorPolicy:l})},b=p&&"number"==typeof h&&h!==n&&(0,q.Oj)(n);switch(s){default:case"cache-first":var _=v();if(_.complete)return{fromLink:!1,sources:[y(_,e.markReady())]};if(f||b)return{fromLink:!0,sources:[y(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var _=v();if(_.complete||f||b)return{fromLink:!0,sources:[y(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[y(v(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[y(v()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(b)return{fromLink:!0,sources:[y(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new eu(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.pi)((0,r.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),ep=n(14012),eh=!1,ev=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(15);var n=e.uri,r=e.credentials,a=e.headers,u=e.cache,c=e.documentTransform,l=e.ssrMode,f=void 0!==l&&l,d=e.ssrForceFetchDelay,p=void 0===d?0:d,h=e.connectToDevTools,v=void 0===h?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:h,y=e.queryDeduplication,m=void 0===y||y,g=e.defaultOptions,b=e.assumeImmutableResults,_=void 0===b?u.assumeImmutableResults:b,w=e.resolvers,x=e.typeDefs,S=e.fragmentMatcher,E=e.name,k=e.version,P=e.link;P||(P=n?new O({uri:n,credentials:r,headers:a}):o.i.empty()),this.link=P,this.cache=u,this.disableNetworkFetches=f||p>0,this.queryDeduplication=m,this.defaultOptions=g||Object.create(null),this.typeDefs=x,p&&setTimeout(function(){return t.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.i,this.localState=new ei({cache:u,client:this,resolvers:w,fragmentMatcher:S}),this.queryManager=new ed({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:c,queryDeduplication:m,ssrMode:f,clientAwareness:{name:E,version:k},localState:this.localState,assumeImmutableResults:_,onBroadcast:v?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),v&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}eh||!1===globalThis.__DEV__||(eh=!0,setTimeout(function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?n="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(n="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n&&!1!==globalThis.__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: %s",n)}},1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,ep.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,ep.J)(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.pi)((0,r.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,ep.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var o=Promise.all(r);return o.queries=n,o.results=r,o.catch(function(e){!1!==globalThis.__DEV__&&i.kG.debug(17,e)}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},1644:(e,t,n)=>{var r;function i(e){return!!e&&e<7}n.d(t,{Ie:()=>r,Oj:()=>i}),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"}(r||(r={}))},30990:(e,t,n)=>{n.d(t,{MS:()=>s,YG:()=>o,cA:()=>c,ls:()=>a});var r=n(97582);n(99672);var i=n(13154),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){var t=(0,r.ev)((0,r.ev)((0,r.ev)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.s)(e)&&e.message||"Error message not found."}).join("\n")},c=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,o=n.clientErrors,a=n.networkError,s=n.errorMessage,c=n.extraInfo,l=e.call(this,s)||this;return l.name="ApolloError",l.graphQLErrors=r||[],l.protocolErrors=i||[],l.clientErrors=o||[],l.networkError=a||null,l.message=s||u(l),l.extraInfo=c,l.__proto__=t.prototype,l}return(0,r.ZT)(t,e),t}(Error)},93581:(e,t,n)=>{n.d(t,{i:()=>l});var r=n(99672),i=n(48216),o=n(97582),a=n(36765);function s(e,t){return t?t(e):i.y.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var o=u(n),a=u(r||new e(s));return new e(c(o)&&c(a)?function(e){return t(e)?o.request(e)||i.y.of():a.request(e)||i.y.of()}:function(e,n){return t(e)?o.request(e,n)||i.y.of():a.request(e,n)||i.y.of()})},e.execute=function(e,t){var n,s,u,c;return e.request((u=t.context,(s={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);nt.indexOf(o))throw(0,r._K)(43,o)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),c=(0,o.pi)({},u),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){c="function"==typeof e?(0,o.pi)((0,o.pi)({},c),e(c)):(0,o.pi)((0,o.pi)({},c),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},c)}}),s))||i.y.of()},e.concat=function(t,n){var o=u(t);if(c(o))return!1!==globalThis.__DEV__&&r.kG.warn(35,o),o;var a=u(n);return new e(c(a)?function(e){return o.request(e,function(e){return a.request(e)||i.y.of()})||i.y.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.y.of()})||i.y.of()})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,r._K)(36)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},23178:(e,t,n)=>{n.d(t,{U:()=>i});var r=n(99672),i=function(e){if(!e&&"undefined"==typeof fetch)throw(0,r._K)(37)}},11172:(e,t,n)=>{n.d(t,{S3:()=>d,dO:()=>p,TF:()=>l});var r=n(97582),i=n(30320);function o(e){var t={next:function(){return e.read()}};return i.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var a=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},s=n(30990),u=n(37280),c=Object.prototype.hasOwnProperty;function l(e,t){var n;return(0,r.mG)(this,void 0,void 0,function(){var a,c,l,d,p,h,v,y,m,g,b,_,O,w,x,S,E,k,P,T,j,D;return(0,r.Jh)(this,function(C){switch(C.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),c=null===(n=e.headers)||void 0===n?void 0:n.get("content-type"),l="boundary=",d=(null==c?void 0:c.includes(l))?null==c?void 0:c.substring((null==c?void 0:c.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",p="\r\n--".concat(d),h="",v=function(e){var t,n,r,a,s,u,c=e;if(e.body&&(c=e.body),t=c,i.DN&&t[Symbol.asyncIterator])return r=c[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(c.getReader)return o(c.getReader());if(c.stream)return o(c.stream().getReader());if(c.arrayBuffer)return a=c.arrayBuffer(),s=!1,u={next:function(){return s?Promise.resolve({value:void 0,done:!0}):(s=!0,new Promise(function(e,t){a.then(function(t){e({value:t,done:!1})}).catch(t)}))}},i.DN&&(u[Symbol.asyncIterator]=function(){return this}),u;if(c.pipe)return function(e){var t=null,n=null,r=!1,o=[],a=[];function s(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function u(e){n=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function c(){r=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",u),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",u),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise(function(e,t){return n?t(n):o.length?e({value:o.shift(),done:!1}):r?e({value:void 0,done:!0}):void a.push([e,t])})}};return i.DN&&(l[Symbol.asyncIterator]=function(){return this}),l}(c);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),y=!0,C.label=1;case 1:if(!y)return[3,3];return[4,v.next()];case 2:for(g=(m=C.sent()).value,b=m.done,_="string"==typeof g?g:a.decode(g),O=h.length-p.length+1,y=!b,h+=_,w=h.indexOf(p,O);w>-1;){if(x=void 0,x=(j=[h.slice(0,w),h.slice(w+p.length)])[0],h=j[1],S=x.indexOf("\r\n\r\n"),(E=function(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}(x.slice(0,S))["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(k=x.slice(S)){if(Object.keys(P=f(e,k)).length>1||"data"in P||"incremental"in P||"errors"in P||"payload"in P)(0,u.yU)(P)?(T={},"payload"in P&&(T=(0,r.pi)({},P.payload)),"errors"in P&&(T=(0,r.pi)((0,r.pi)({},T),{extensions:(0,r.pi)((0,r.pi)({},"extensions"in T?T.extensions:null),((D={})[s.YG]=P.errors,D))})),t(T)):t(P);else if(1===Object.keys(P).length&&"hasNext"in P&&!P.hasNext)return[2]}w=h.indexOf(p)}return[3,1];case 3:return[2]}})})}function f(e,t){e.status>=300&&a(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function d(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function p(e){return function(t){return t.text().then(function(e){return f(t,e)}).then(function(n){return t.status>=300&&a(t,n,"Response not successful: Received status code ".concat(t.status)),Array.isArray(n)||c.call(n,"data")||c.call(n,"errors")||a(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})}}},3453:(e,t,n)=>{n.d(t,{SC:()=>o,sb:()=>a,ve:()=>s});var r=n(97582),i=n(68470),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function s(e,t){for(var n=[],o=2;o{n.d(t,{r:()=>r});var r=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}},15049:(e,t,n)=>{n.d(t,{g:()=>i});var r=n(99672),i=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var i=(0,r._K)(39,t,e.message);throw i.parseError=e,i}return n}},64004:(e,t,n)=>{n.d(t,{e:()=>o});var r=n(97582),i=n(77304);function o(e,t){var n=(0,r.pi)({},e),o=new Set(Object.keys(e));return(0,i.Vn)(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&o.delete(e.name.value)}}),o.forEach(function(e){delete n[e]}),n}},16261:(e,t,n)=>{n.d(t,{Q:()=>i});var r=n(48216);function i(e){return new r.y(function(t){t.error(e)})}},85317:(e,t,n)=>{n.d(t,{K:()=>s});var r=n(67294),i=n(30320),o=n(99672),a=i.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function s(){(0,o.kG)(!0,45);var e=r.createContext[a];return e||(Object.defineProperty(r.createContext,a,{value:e=r.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},53768:(e,t,n)=>{n.d(t,{e:()=>s});var r=n(97582),i=n(99672),o=n(67294),a=n(85317),s=function(e){var t=e.client,n=e.children,s=(0,a.K)(),u=o.useContext(s),c=o.useMemo(function(){return(0,r.pi)((0,r.pi)({},u),{client:t||u.client})},[u,t]);return(0,i.kG)(c.client,46),o.createElement(s.Provider,{value:c},n)}},21436:(e,t,n)=>{n.d(t,{O:()=>i,k:()=>r});var r=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},30320:(e,t,n)=>{n.d(t,{DN:()=>s,JC:()=>l,aS:()=>a,mr:()=>i,sy:()=>o});var r=n(99672),i="function"==typeof WeakMap&&"ReactNative"!==(0,r.wY)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,u="function"==typeof(0,r.wY)(function(){return window.document.createElement}),c=(0,r.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,l=u&&!c},79487:(e,t,n)=>{n.d(t,{X:()=>i});var r=Object.prototype.toString;function i(e){return function e(t,n){switch(r.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var i=t.slice(0);return n.set(t,i),i.forEach(function(t,r){i[r]=e(t,n)}),i;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var o=Object.create(Object.getPrototypeOf(t));return n.set(t,o),Object.keys(t).forEach(function(r){o[r]=e(t[r],n)}),o;default:return t}}(e)}},53712:(e,t,n)=>{n.d(t,{o:()=>r});function r(){for(var e=[],t=0;t{n.d(t,{GG:()=>a,M0:()=>s,mT:()=>c,yU:()=>u});var r=n(13154),i=n(21436),o=n(182);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function u(e){return(0,r.s)(e)&&"payload"in e}function c(e,t){var n=e,r=new o.w0;return a(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}n=r.merge(n,t)}),n}},60897:(e,t,n)=>{n.d(t,{X:()=>i});var r=new Map;function i(e){var t=r.get(e)||1;return r.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},48702:(e,t,n)=>{n.d(t,{J:()=>i});var r=n(13154);function i(e){if(!1!==globalThis.__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,r.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){(0,r.s)(e[n])&&t.add(e[n])})})}return e}},182:(e,t,n)=>{n.d(t,{Ee:()=>a,bw:()=>s,w0:()=>c});var r=n(97582),i=n(13154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t1)for(var r=new c,i=1;i{n.d(t,{J:()=>o});var r=n(97582),i=n(53712);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,r.pi)((0,r.pi)({},e&&e.variables),t.variables))})}},13154:(e,t,n)=>{function r(e){return null!==e&&"object"==typeof e}n.d(t,{s:()=>r})},13887:(e,t,n)=>{n.d(t,{v:()=>i});var r=n(60897);function i(e,t){void 0===t&&(t=0);var n=(0,r.X)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("")}},99672:(e,t,n)=>{n.d(t,{kG:()=>m,wY:()=>p,_K:()=>g});var r=n(97582),i="Invariant Violation",o=Object.setPrototypeOf,a=void 0===o?function(e,t){return e.__proto__=t,e}:o,s=function(e){function t(n){void 0===n&&(n=i);var r=e.call(this,"number"==typeof n?i+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=i,a(r,t.prototype),r}return(0,r.ZT)(t,e),t}(Error);function u(e,t){if(!e)throw new s(t)}var c=["debug","log","warn","error","silent"],l=c.indexOf("log");function f(e){return function(){if(c.indexOf(e)>=l)return(console[e]||console.log).apply(console,arguments)}}!function(e){e.debug=f("debug"),e.log=f("log"),e.warn=f("warn"),e.error=f("error")}(u||(u={}));var d=n(49379);function p(e){try{return e()}catch(e){}}let h=p(function(){return globalThis})||p(function(){return window})||p(function(){return self})||p(function(){return global})||p(function(){return p.constructor("return this")()});var v=n(13887);function y(e){return function(t){for(var n=[],r=1;r{n.d(t,{A:()=>u});var r=n(75028),i=n(30320),o=n(36765),a=n(99672);function s(e){return e}var u=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new r.B(i.mr,function(e){return{key:e}}))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(s,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;(0,o.A$)(e);var n=this.transform(e);return this.resultCache.add(n),t&&(t.value=n),n},e.prototype.concat=function(t){var n=this;return new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1})},e.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);if(t)return(0,a.kG)(Array.isArray(t),65),this.stableCacheKeys.lookupArray(t)}},e}()},19065:(e,t,n)=>{n.d(t,{FS:()=>a,LZ:()=>o,mj:()=>s});var r=n(99672),i=n(77304);function o(e,t){var n,i=e.directives;return!i||!i.length||(n=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;(0,r.kG)(i&&1===i.length,67,o);var a=i[0];(0,r.kG)(a.name&&"if"===a.name.value,68,o);var s=a.value;(0,r.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),69,o),n.push({directive:e,ifArgument:a})}}),n).every(function(e){var n=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,r.kG)(void 0!==o,66,n.name.value)):o=i.value.value,"skip"===n.name.value?!o:o})}function a(e,t,n){var r=new Set(e),o=r.size;return(0,i.Vn)(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return i.$_}}),n?!r.size:r.size{n.d(t,{F:()=>a,Yk:()=>o,hi:()=>s});var r=n(97582),i=n(99672);function o(e,t){var n=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i._K)(70,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)}),void 0===n&&((0,i.kG)(1===o.length,71,o.length),n=o[0].name.value),(0,r.pi)((0,r.pi)({},e),{definitions:(0,r.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return(0,i.kG)(r,72,n),r||null;default:return null}}},36765:(e,t,n)=>{n.d(t,{$H:()=>a,A$:()=>o,O4:()=>d,iW:()=>c,kU:()=>u,p$:()=>f,pD:()=>l,rY:()=>s});var r=n(99672),i=n(51761);function o(e){(0,r.kG)(e&&"Document"===e.kind,73);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,r._K)(74,e.kind);return e});return(0,r.kG)(t.length<=1,75,t.length),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,r.kG)(t&&"query"===t.operation,76),t}function l(e){(0,r.kG)("Document"===e.kind,77),(0,r.kG)(e.definitions.length<=1,78);var t=e.definitions[0];return(0,r.kG)("FragmentDefinition"===t.kind,79),t}function f(e){o(e);for(var t,n=0,i=e.definitions;n{n.d(t,{S:()=>o});var r=n(73486),i=n(30320).mr?new WeakMap:void 0,o=function(e){var t;return(t=null==i?void 0:i.get(e))||(t=(0,r.S)(e),null==i||i.set(e,t)),t}},51761:(e,t,n)=>{n.d(t,{Ao:()=>g,JW:()=>u,My:()=>m,NC:()=>v,PT:()=>d,Yk:()=>s,kQ:()=>a,qw:()=>function e(t,n,r){for(var i,a=0,s=n.selections;ay,vb:()=>c,vf:()=>l});var r=n(99672),i=n(13154),o=n(23361);function a(e){return{__ref:String(e)}}function s(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,n,i){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var o={};n.fields.map(function(e){return c(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===n.kind){var a=(i||{})[n.name.value];e[t.value]=a}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return c(n,t,e,i),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw(0,r._K)(81,t.value,n.kind)}function l(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,o=r.value;return c(n[e.name.value],i,o,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),d(e.name.value,r,n)}var f=["connection","include","skip","client","rest","export","nonreactive"],d=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===f.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(p(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,h)};function h(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return c(n,e.name,e.value,t)}),n}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},76487:(e,t,n)=>{n.d(t,{Gw:()=>h,aL:()=>v,bi:()=>p,ob:()=>y});var r=n(97582),i=n(99672),o=n(97359),a=n(77304),s=n(36765),u=n(51761),c=n(23361),l=n(21436),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function d(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function p(e,t){(0,s.A$)(t);for(var n,u,f,p=d(""),h=d(""),v=function(e){for(var t=0,n=void 0;t=0;--m)t.definitions[m].kind===o.h.OPERATION_DEFINITION&&++y;var g=(n=new Map,u=new Map,e.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=n.get(e.name.value);return!t&&u.size&&u.forEach(function(n,r){r(e)&&(t=n)}),t}),b=function(e){return(0,l.O)(e)&&e.map(g).some(function(e){return e&&e.remove})},_=new Map,O=!1,w={enter:function(e){if(b(e.directives))return O=!0,null}},x=(0,a.Vn)(t,{Field:w,InlineFragment:w,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var o=v(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(b(e.directives))return O=!0,null;var o=v(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){_.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===_.get(JSON.stringify(r))?e:y>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(h(e.name.value).removed=!0,O=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return O=!0,null}}});if(!O)return t;var S=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){S(h(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},E=new Set;x.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?S(p(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){E.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==y||h(e.name.value).removed||E.add(e.name.value)}),E.forEach(function(e){S(h(e)).fragmentSpreads.forEach(function(e){E.add(e)})});var k={enter:function(e){var t;if(t=e.name.value,!E.has(t)||h(t).removed)return null}};return f=(0,a.Vn)(x,{FragmentSpread:k,FragmentDefinition:k,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=S(p(e.name&&e.name.value)).transitiveVars;if(t.size{n.d(t,{ZB:()=>o});var r=n(97582),i=n(182);function o(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var n=t.canRead,i=t.readField;if(!e)return e;var o=[],s="",u="";e.edges.forEach(function(e){n(i("node",e))&&(o.push(e),e.cursor&&(s=s||e.cursor||"",u=e.cursor||u))}),o.length>1&&s===u&&(s="");var c=e.pageInfo||{},l=c.startCursor,f=c.endCursor;return(0,r.pi)((0,r.pi)({},a(e)),{edges:o,pageInfo:(0,r.pi)((0,r.pi)({},e.pageInfo),{startCursor:l||s,endCursor:f||u})})},merge:function(e,t,n){var o=n.args,s=n.isReference,u=n.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var c=t.edges?t.edges.map(function(e){return s(e=(0,r.pi)({},e))&&(e.cursor=u("cursor",e)),e}):[];if(t.pageInfo){var l=t.pageInfo,f=l.startCursor,d=l.endCursor,p=c[0],h=c[c.length-1];p&&f&&(p.cursor=f),h&&d&&(h.cursor=d);var v=p&&p.cursor;v&&!f&&(t=(0,i.Ee)(t,{pageInfo:{startCursor:v}}));var y=h&&h.cursor;y&&!d&&(t=(0,i.Ee)(t,{pageInfo:{endCursor:y}}))}var m=e.edges,g=[];if(o&&o.after){var b=m.findIndex(function(e){return e.cursor===o.after});b>=0&&(m=m.slice(0,b+1))}else if(o&&o.before){var b=m.findIndex(function(e){return e.cursor===o.before});g=b<0?m:m.slice(b),m=[]}else t.edges&&(m=[]);var _=(0,r.ev)((0,r.ev)((0,r.ev)([],m,!0),c,!0),g,!0),O=(0,r.pi)((0,r.pi)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var w=t.pageInfo,x=w.hasPreviousPage,S=w.hasNextPage,f=w.startCursor,d=w.endCursor;Object.assign(O,(0,r._T)(w,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),m.length||(void 0!==x&&(O.hasPreviousPage=x),void 0===f||(O.startCursor=f)),g.length||(void 0!==S&&(O.hasNextPage=S),void 0===d||(O.endCursor=d))}return(0,r.pi)((0,r.pi)((0,r.pi)({},a(e)),a(t)),{edges:_,pageInfo:O})}}}var a=function(e){return(0,r._T)(e,s)},s=["edges","pageInfo"]},49379:(e,t,n)=>{n.d(t,{i:()=>r});var r="3.8.6"},82455:(e,t,n)=>{n.d(t,{g7:()=>c});let r=null,i={},o=1;function a(e){try{return e()}catch(e){}}let s="@wry/context:Slot",u=a(()=>globalThis)||a(()=>global)||Object.create(null),c=u[s]||Array[s]||function(e){try{Object.defineProperty(u,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=r;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===i)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=i),!1}getValue(){if(this.hasValue())return r.slots[this.id]}withValue(e,t,n,i){let o={__proto__:null,[this.id]:e},a=r;r={parent:a,slots:o};try{return t.apply(i,n)}finally{r=a}}static bind(e){let t=r;return function(){let n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}}static noContext(e,t,n){if(!r)return e.apply(n,t);{let i=r;try{return r=null,e.apply(n,t)}finally{r=i}}}}),{bind:l,noContext:f}=c},30020:(e,t,n)=>{n.d(t,{D:()=>s,Z:()=>u});let{toString:r,hasOwnProperty:i}=Object.prototype,o=Function.prototype.toString,a=new Map;function s(e,t){try{return function e(t,n){if(t===n)return!0;let a=r.call(t);if(a!==r.call(n))return!1;switch(a){case"[object Array]":if(t.length!==n.length)break;case"[object Object]":{if(d(t,n))return!0;let r=c(t),o=c(n),a=r.length;if(a!==o.length)return!1;for(let e=0;e=0&&e.indexOf(t,n)===n}(e,f)}}return!1}(e,t)}finally{a.clear()}}let u=s;function c(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}let f="{ [native code] }";function d(e,t){let n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},75028:(e,t,n)=>{n.d(t,{B:()=>s});let r=()=>Object.create(null),{forEach:i,slice:o}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return i.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(o.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n{n.d(t,{a:()=>r});function r(e,t){if(!e)throw Error(t)}},25821:(e,t,n)=>{function r(e){return function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){if(null===t)return"null";if(n.includes(t))return"[Circular]";let r=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,r)}else if(Array.isArray(t))return function(t,n){if(0===t.length)return"[]";if(n.length>2)return"[Array]";let r=Math.min(10,t.length),i=t.length-r,o=[];for(let i=0;i1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,r);return function(t,n){let r=Object.entries(t);return 0===r.length?"{}":n.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]":"{ "+r.map(([t,r])=>t+": "+e(r,n)).join(", ")+" }"}(t,r)}(t,n);default:return String(t)}}(e,[])}n.d(t,{X:()=>r})},72380:(e,t,n)=>{var r;n.d(t,{UG:()=>u,WU:()=>o,Ye:()=>i,h8:()=>a,ku:()=>r});class i{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 o{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,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}}}let a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},s=new Set(Object.keys(a));function u(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&s.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(r||(r={}))},87392:(e,t,n)=>{n.d(t,{LZ:()=>o,wv:()=>i});var r=n(68297);function i(e){var t,n;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,a+1)}function o(e,t){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,r.FD)(e.charCodeAt(0))),s=n.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!(null!=t&&t.minimize)&&(!o||e.length>70||l||a||s),d="",p=o&&(0,r.FD)(e.charCodeAt(0));return(f&&!p||a)&&(d+="\n"),d+=n,(f||l)&&(d+="\n"),'"""'+d+'"""'}},68297:(e,t,n)=>{function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}n.d(t,{FD:()=>r,HQ:()=>s,LQ:()=>a,X1:()=>i})},97359:(e,t,n)=>{var r;n.d(t,{h:()=>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.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"}(r||(r={}))},73486:(e,t,n)=>{n.d(t,{S:()=>u});var r=n(87392);let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}let a=["\\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 s=n(77304);function u(e){return(0,s.Vn)(e,c)}let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=d("(",l(e.variableDefinitions,", "),")"),n=l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+d(" = ",n)+d(" ",l(r," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=d("",e,": ")+t,a=o+d("(",l(n,", "),")");return a.length>80&&(a=o+d("(\n",p(l(n,"\n")),"\n)")),l([a,l(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>l(["...",d("on ",e),l(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${d("(",l(n,", "),")")} on ${t} ${d("",l(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.LZ)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>d("",e,"\n")+l(["schema",l(t," "),f(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>d("",e,"\n")+l(["scalar",t,l(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>d("",e,"\n")+l(["type",t,d("implements ",l(n," & ")),l(r," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>d("",e,"\n")+t+(h(n)?d("(\n",p(l(n,"\n")),"\n)"):d("(",l(n,", "),")"))+": "+r+d(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>d("",e,"\n")+l([t+": "+n,d("= ",r),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>d("",e,"\n")+l(["interface",t,d("implements ",l(n," & ")),l(r," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>d("",e,"\n")+l(["union",t,l(n," "),d("= ",l(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>d("",e,"\n")+l(["enum",t,l(n," "),f(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>d("",e,"\n")+l([t,l(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>d("",e,"\n")+l(["input",t,l(n," "),f(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>d("",e,"\n")+"directive @"+t+(h(n)?d("(\n",p(l(n,"\n")),"\n)"):d("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend type",e,d("implements ",l(t," & ")),l(n," "),f(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend interface",e,d("implements ",l(t," & ")),l(n," "),f(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>l(["extend union",e,l(t," "),d("= ",l(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>l(["extend enum",e,l(t," "),f(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>l(["extend input",e,l(t," "),f(n)]," ")}};function l(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function f(e){return d("{\n",p(l(e,"\n")),"\n}")}function d(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return d(" ",e.replace(/\n/g,"\n "))}function h(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},77304:(e,t,n)=>{n.d(t,{$_:()=>s,Vn:()=>u});var r=n(37826),i=n(25821),o=n(72380),a=n(97359);let s=Object.freeze({});function u(e,t,n=o.h8){let u,c,l;let f=new Map;for(let e of Object.values(a.h))f.set(e,function(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let d=Array.isArray(e),p=[e],h=-1,v=[],y=e,m=[],g=[];do{var b,_,O;let e;let a=++h===p.length,w=a&&0!==v.length;if(a){if(c=0===g.length?void 0:m[m.length-1],y=l,l=g.pop(),w){if(d){y=y.slice();let e=0;for(let[t,n]of v){let r=t-e;null===n?(y.splice(r,1),e++):y[r]=n}}else for(let[e,t]of(y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y)),v))y[e]=t}h=u.index,p=u.keys,v=u.edits,d=u.inArray,u=u.prev}else if(l){if(null==(y=l[c=d?h:p[h]]))continue;m.push(c)}if(!Array.isArray(y)){(0,o.UG)(y)||(0,r.a)(!1,`Invalid AST Node: ${(0,i.X)(y)}.`);let n=a?null===(b=f.get(y.kind))||void 0===b?void 0:b.leave:null===(_=f.get(y.kind))||void 0===_?void 0:_.enter;if((e=null==n?void 0:n.call(t,y,c,l,m,g))===s)break;if(!1===e){if(!a){m.pop();continue}}else if(void 0!==e&&(v.push([c,e]),!a)){if((0,o.UG)(e))y=e;else{m.pop();continue}}}void 0===e&&w&&v.push([c,y]),a?m.pop():(u={inArray:d,index:h,keys:p,edits:v,prev:u},p=(d=Array.isArray(y))?y:null!==(O=n[y.kind])&&void 0!==O?O:[],h=-1,v=[],l&&g.push(l),l=y)}while(void 0!==u)return 0!==v.length?v[v.length-1][1]:e}},9964:(e,t,n)=>{let r;n.d(t,{dP:()=>E,re:()=>T});var i=n(75028);function o(){}class a{constructor(e=1/0,t=o){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){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{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){let 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)}}let s=new(n(82455)).g7,{hasOwnProperty:u}=Object.prototype,c=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function l(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let f=[];function d(e,t){if(!e)throw Error(t||"assertion failure")}function p(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class h{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,++h.count}peek(){if(1===this.value.length&&!m(this))return v(this),this.value[0]}recompute(e){var t;return d(!this.recomputing,"already recomputing"),v(this),m(this)&&(w(this),s.withValue(this,y,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{l(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,m(this)||(t=this,g(t,_)))),p(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,g(this,b),l(this))}dispose(){this.setDirty(),w(this),g(this,(e,t)=>{e.setDirty(),x(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=f.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(c(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),f.push(this.deps),this.deps=null)}}function v(e){let t=s.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),m(e)?b(t,e):_(t,e),t}function y(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function m(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function g(e,t){let n=e.parents.size;if(n){let r=c(e.parents);for(let i=0;i0&&n===t.length&&e[n-1]===t[n-1]}(n,t.value)&&e.setDirty(),O(e,t),m(e)||g(e,_)}function O(e,t){let n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(f.length<100&&f.push(n),e.dirtyChildren=null))}function w(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{x(e,n)}),e.forgetDeps(),d(null===e.dirtyChildren)}function x(e,t){t.parents.delete(e),e.childValues.delete(t),O(e,t)}h.count=0;let S={setDirty:!0,dispose:!0,forget:!0};function E(e){let t=new Map,n=e&&e.subscribe;function r(e){let r=s.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(l(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){let r=t.get(e);if(r){let i=n&&u.call(S,n)?n:"setDirty";c(r).forEach(e=>e[i]()),t.delete(e),l(r)}},r}function k(...e){return(r||(r=new i.B("function"==typeof WeakMap))).lookupArray(e)}let P=new Set;function T(e,{max:t=65536,makeCacheKey:n=k,keyArgs:r,subscribe:i}=Object.create(null)){let o=new a(t,e=>e.dispose()),u=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=o.get(t);a||(o.set(t,a=new h(e)),a.subscribe=i,a.forget=()=>o.delete(t));let u=a.recompute(Array.prototype.slice.call(arguments));return o.set(t,a),P.add(o),s.hasValue()||(P.forEach(e=>e.clean()),P.clear()),u};function c(e){let t=o.get(e);t&&t.setDirty()}function l(e){let t=o.get(e);if(t)return t.peek()}function f(e){return o.delete(e)}return Object.defineProperty(u,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,makeCacheKey:n,keyArgs:r,subscribe:i}),u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))},u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))},u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}},48216:(e,t,n)=>{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nw});var a=function(){return"function"==typeof Symbol},s=function(e){return a()&&!!Symbol[e]},u=function(e){return s(e)?Symbol[e]:"@@"+e};a()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var c=u("iterator"),l=u("observable"),f=u("species");function d(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:w}function h(e){h.log?h.log(e):setTimeout(function(){throw e})}function v(e){Promise.resolve().then(function(){try{e()}catch(e){h(e)}})}function y(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var n=d(t,"unsubscribe");n&&n.call(t)}}catch(e){h(e)}}}function m(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,n){e._state="running";var r=e._observer;try{var i=d(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(m(e),i)i.call(r,n);else throw n;break;case"complete":m(e),i&&i.call(r)}}catch(e){h(e)}"closed"===e._state?y(e):"running"===e._state&&(e._state="ready")}function b(e,t,n){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:n});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],v(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n1,i=!1,o=arguments[1],a=o;return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){r.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[l]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=d(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof w&&o.constructor===n?o:new n(function(e){return o.subscribe(e)})}if(s("iterator")&&(i=d(t,c)))return new n(function(e){v(function(){if(!e.closed){for(var n,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(e))){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(n=o()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){v(function(){if(!e.closed){for(var n=0;n