1import{a as go,b as xo}from"./chunk-DUTXHMIU.js";import{b as Oo}from"./chunk-FU6PCANQ.js";import{d as he,f as vo,g as So}from"./chunk-AUNUMEGC.js";import"./chunk-SBXSLUI6.js";import"./chunk-SCKLG3TR.js";import"./chunk-6T5S7WDA.js";import"./chunk-PLFVT6SD.js";import"./chunk-2RLMQMAI.js";import{a as j,b as V}from"./chunk-QZTTBRKJ.js";import{a as Co}from"./chunk-JAXSIZA7.js";import{a as bo,c as _r}from"./chunk-5RYQY2BF.js";import"./chunk-73YRZG2L.js";import"./chunk-JQQMGWN2.js";import"./chunk-BMW7OPR4.js";import"./chunk-I3ARN7UW.js";import{b as uo,d as fo,e as an,f as mo,g as ho}from"./chunk-OHZUIS7R.js";import"./chunk-JHJQ3NCT.js";import{a as cn,e as yo}from"./chunk-575NPPRY.js";import{a as no,d as co,e as lo}from"./chunk-GFH7CVU3.js";import{a as sn,b as io,c as oo,d as so,e as ao}from"./chunk-AKN3QZE6.js";import{a as po}from"./chunk-VZBGH6ZI.js";import{j as xt,l as Zi,m as Er,r as eo,t as to,u as ro}from"./chunk-BLDFNF7P.js";import{$ as rt,$a as Or,B as br,Bc as qe,Cb as Bi,Db as Wi,E as _i,Ea as Li,Fc as on,G as Mi,H as Ti,Hb as fe,Ia as qi,Ib as me,Jb as Ui,K as Di,Lb as Hi,M as tt,Mb as Gi,N as bt,Nb as re,Ob as C,Oc as Yi,P as Fi,Pb as S,Q as Pi,Qb as J,R as vr,Rc as Ji,T as je,Ub as Qt,Vb as kr,X as vt,Xb as de,Zb as oe,Zc as Xi,_ as Sr,_a as Qi,aa as nt,ab as Q,c as G,d as Re,e as xi,f as Ci,fb as wr,g as Oi,ga as xr,h as Ze,ha as Cr,hc as zt,i as wi,ia as Ii,j as Ve,ja as Ni,jb as te,k as et,l as ki,la as Ai,lc as Bt,mc as E,nc as $i,o as Ei,oc as nn,p as ee,pa as Ri,pb as Le,r as Lt,sa as Vi,t as gr,ub as St,vb as zi,vc as Wt,w as yr,z as qt,za as ji,zc as Ki}from"./chunk-BZKGIM2U.js";import{a as y,b as w,c as hr,d as H,h as jt}from"./chunk-5JJ6SBZ6.js";var aa=r=>({accepted:r});
1var wo="hasAcceptedCookies",Mr=class r{constructor(e){this.storageService=e}storageService;hasAccepted;ngOnInit(){this.hasAccepted=this.storageService.getItem(wo)}acceptCookies(){this.hasAccepted=!0,this.storageService.setItem(wo,!0)}static \u0275fac=function(t){return new(t||r)(te(cn))};static \u0275cmp=Le({type:r,selectors:[["cookie-footer"]],decls:8,vars:3,consts:[[1,"container",3,"ngClass"],["href","/info/privacy-policy"],[1,"mobile"],[1,"inline-button",3,"click"]],template:function(t,n){t&1&&(C(0,"div",0)(1,"p"),E(2," We use cookies to ensure that we give you the best experience on our website. By using our website, you agree to our use of cookies. Read the "),C(3,"a",1),E(4,"privacy policy."),S()(),J(5,"br",2),C(6,"div",3),de("click",function(){return n.acceptCookies()}),E(7,"ACCEPT"),S()()),t&2&&re("ngClass",qe(1,aa,!!n.hasAccepted))},dependencies:[Er,xt],styles:[`.container[_ngcontent-%COMP%]{width:100vw;background-color:#faf5f5;font-family:Montserrat;font-size:12px;text-align:center;position:fixed;bottom:0;z-index:10000;padding:11px 0}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:98vw;margin:auto;display:inline-block}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:underline}.container[_ngcontent-%COMP%] .inline-button[_ngcontent-%COMP%]{display:inline-block;border:solid #e8d0d0 2.5px;border-radius:10px;text-transform:uppercase;letter-spacing:1.5px;font-size:15px;padding:7px 15px;margin-left:20px;cursor:pointer}@media screen and (min-width:1050px){.container[_ngcontent-%COMP%] .mobile[_ngcontent-%COMP%]{display:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{max-width:none}.container[_ngcontent-%COMP%] .inline-button[_ngcontent-%COMP%]{margin-top:0}}@media screen and (min-width:1400px){.container[_ngcontent-%COMP%]{font-size:15px}}.accepted[_ngcontent-%COMP%]{transform:translateY(100%);transition:1s}input[_ngcontent-%COMP%]{transform:translateY(1.5px);margin-right:1.9px}input[type=checkbox][_ngcontent-%COMP%]{appearance:none;-webkit-appearance:none;width:16px;height:16px;border:2px solid black;border-radius:3px;border-width:1px;cursor:pointer;background-color:#fff}input[type=checkbox][_ngcontent-%COMP%]:checked{background-size:15px 15px;background-repeat:no-repeat;background-position:1px 1.5px;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.485 1.431a1.473 1.473 0 0 0-2.084 0l-6.272 6.272-2.272-2.272a1.473 1.473 0 0 0-2.084 2.084l3.314 3.314a1.473 1.473 0 0 0 2.084 0l7.314-7.314a1.473 1.473 0 0 0 0-2.084z'/%3E%3C/svg%3E")}.checkboxes[_ngcontent-%COMP%]{width:fit-content;margin:0 auto 20.5px;text-align:left;display:grid;grid-template-columns:1fr 1fr;gap:5px}.checkboxes[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-bottom:-2px}.checkboxes[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:8px;margin-left:6px}@media screen and (min-width:1050px){.checkboxes[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr;margin:0 auto 20.5px}}.inline-button.centered[_ngcontent-%COMP%]{margin-left:0}`]})};function ca(r,e){if(r&1&&E(0),r&2){let t=oe().$implicit;nn(" - ",t.suffix," ")}}function la(r,e){if(r&1&&(C(0,"a",2),E(1),S(),fe(2,ca,1,1)),r&2){let t=e.$implicit;re("routerLink",t.link),Q(),nn("",t.name," "),Q(),me(t.suffix?2:-1)}}var Tr=class r{constructor(e,t){this.breadcrumbService=e;this.platformService=t}breadcrumbService;platformService;fullPaths=[];destroy$=new Re;ngOnInit(){this.platformService.isServer()||this.breadcrumbService.history$.pipe(vr(this.destroy$)).subscribe(e=>{this.fullPaths=e})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(t){return new(t||r)(te(ho),te(po))};static \u0275cmp=Le({type:r,selectors:[["breadcrumbs"]],decls:5,vars:1,consts:[[1,"container"],[3,"routerLink"],[1,"breadcrumb","data",3,"routerLink"]],template:function(t,n){t&1&&(C(0,"article",0)(1,"a",1),E(2,"Home"),S(),Hi(3,la,3,3,null,null,Ui),S()),t&2&&(Q(),re("routerLink","/"),Q(2),Gi(n.fullPaths))},dependencies:[mo,fo],styles:['[_nghost-%COMP%]{font-family:Montserrat;font-size:12px}a[_ngcontent-%COMP%]:last-child{text-decoration:underline}.breadcrumb.data[_ngcontent-%COMP%]:before{text-decoration:none!important;font-family:Montserrat;display:inline-block;font-size:12px;margin:0 3px;content:"-"}']})};var un=r=>({"hamburger-animate":r});
1function fa(r,e){r&1&&(C(0,"section",2)(1,"div",27)(2,"p"),E(3," Your gown purchase counts this holiday season. Learn more about "),C(4,"a",28),E(5,"Cheer for Charity"),S(),E(6,". "),S()()())}function ma(r,e){if(r&1&&(C(0,"p"),E(1),S()),r&2){let t=oe();Q(),$i(t.numberOfLikes)}}function pa(r,e){r&1&&(C(0,"a",19)(1,"li"),E(2,"Find Your Dress"),S()())}function da(r,e){r&1&&Qt(0)}function ha(r,e){if(r&1&&St(0,da,1,0,"ng-container",31),r&2){oe(3);let t=zt(44);re("ngTemplateOutlet",t)}}function ga(r,e){r&1&&Qt(0)}function ya(r,e){if(r&1&&St(0,ga,1,0,"ng-container",31),r&2){oe(3);let t=zt(42);re("ngTemplateOutlet",t)}}function ba(r,e){if(r&1&&(C(0,"div",30)(1,"section"),fe(2,ha,1,1,"ng-container")(3,ya,1,1,"ng-container"),S()()),r&2){let t=oe(2);Q(),Bt(Wt("toggle-secondary-section ",t.seeTrends?"tertiary":"")),Q(),me(t.seeTrends?2:3)}}function va(r,e){if(r&1){let t=kr();C(0,"div",29),de("click",function(){xr(t);let i=oe();return Cr(i.toggleSubmenu())}),E(1,"Find Your Dress"),S(),fe(2,ba,4,4,"div",30)}if(r&2){let t=oe();Bt(Wt("li ",t.handleArrow())),Q(2),me(t.isSubMenuActive?2:-1)}}function Sa(r,e){r&1&&Qt(0)}function xa(r,e){if(r&1&&St(0,Sa,1,0,"ng-container",31),r&2){oe(2);let t=zt(44);re("ngTemplateOutlet",t)}}function Ca(r,e){r&1&&Qt(0)}function Oa(r,e){if(r&1&&St(0,Ca,1,0,"ng-container",31),r&2){oe(2);let t=zt(42);re("ngTemplateOutlet",t)}}function wa(r,e){if(r&1&&(C(0,"div"),fe(1,xa,1,1,"ng-container")(2,Oa,1,1,"ng-container"),S()),r&2){let t=oe();Bt(Wt("secondary ",t.seeTrends?"tertiary":"")),Q(),me(t.seeTrends?1:2)}}function ka(r,e){if(r&1){let t=kr();C(0,"article",32)(1,"article",33)(2,"h6"),E(3,"Our Collections"),S(),C(4,"a",34),E(5,"Maggie Sottero"),S(),C(6,"a",35),E(7,"Sottero and Midgley"),S(),C(8,"a",36),E(9,"Rebecca Ingram"),S(),C(10,"a",37),E(11,"View All"),S(),J(12,"br"),C(13,"h6"),E(14,"Our Favorites"),S(),C(15,"a",38),E(16,"New Arrivals"),S(),C(17,"a",39),E(18,"Bride's Favorites"),S(),C(19,"a",40),E(20,"Quick Ship"),S(),J(21,"br"),C(22,"h6"),E(23,"Trending Styles"),S(),C(24,"a",41),E(25,"Plus Size"),S(),C(26,"a",42),E(27,"Vintage"),S(),C(28,"a",43),E(29,"Classic"),S(),C(30,"a",44),E(31,"Long Sleeve"),S(),C(32,"a",45),E(33,"Modest"),S(),C(34,"a",46),E(35,"Affordable"),S(),C(36,"p",47),de("click",function(){xr(t);let i=oe();return Cr(i.toggleTrends())}),E(37,"More"),S()(),C(38,"article",48)(39,"h6"),E(40,"Dress Budget"),S(),C(41,"a",49),E(42,"Under $1,500"),S(),C(43,"a",50),E(44,"$1,500 - $2,000"),S(),C(45,"a",51),E(46,"$2,000 - $2,500"),S(),C(47,"a",52),E(48,"$2,500 - $3,000"),S(),C(49,"a",53),E(50,"$3,000+"),S(),J(51,"br"),C(52,"h6"),E(53,"Accessories"),S(),C(54,"a",54),E(55,"Essentials Edit"),S(),C(56,"a",55),E(57,"Jackets and Sleeves"),S(),C(58,"a",56),E(59,"Trains and Overskirts"),S(),C(60,"a",57),E(61,"Veils"),S(),C(62,"a",58),E(63,"View All Accessories"),S(),J(64,"br"),C(65,"h6"),E(66,"Incoming Wedspo!"),S(),C(67,"a",59),E(68,"Real Brides"),S(),J(69,"br"),S()()}}function Ea(r,e){if(r&1){let t=kr();C(0,"div",60)(1,"p",61),E(2,"Trending Wedding Dress Styles"),S(),C(3,"article",32)(4,"article",33)(5,"a",46),E(6,"Affordable"),S(),C(7,"a",62),E(8,"Vintage"),S(),C(9,"a",41),E(10,"Plus Size"),S(),C(11,"a",63),E(12,"Boho"),S(),C(13,"a",64),E(14,"Sexy"),S(),C(15,"a",44),E(16,"Long Sleeve"),S(),C(17,"a",65),E(18,"Off-the-Shoulder"),S(),C(19,"a",66),E(20,"Western"),S(),C(21,"a",67),E(22,"Princess"),S(),C(23,"a",68),E(24,"Simple"),S(),C(25,"a",69),E(26,"Lower-impact"),S()(),C(27,"article",48)(28,"a",45),E(29,"Modest"),S(),C(30,"a",70),E(31,"Satin"),S(),C(32,"a",71),E(33,"Lace"),S(),C(34,"a",72),E(35,"Unique"),S(),C(36,"a",73),E(37,"Colored"),S(),C(38,"a",74),E(39,"Beach"),S(),C(40,"a",75),E(41,"Off-White"),S(),C(42,"a",76),E(43,"Backless"),S(),C(44,"a",77),E(45,"Crepe"),S(),C(46,"a",78),E(47,"A-line"),S(),C(48,"a",79),E(49,"Mermaid"),S()()(),C(50,"p",80),de("click",function(){xr(t);let i=oe();return Cr(i.toggleTrends())}),E(51,"Back"),S()()}}function _a(r,e){r&1&&J(0,"app-search")}
1var Dr=class r{constructor(e,t,n,i,o,s){this.favorites=e;this.cdRef=t;this.elementRef=n;this.screen=i;this.auth=o;this.doc=s;wr(()=>{yr(2e3).pipe(Pi(()=>this.favorites.getFavoriteDresses()),_i(1)).subscribe({next:a=>{this.numberOfLikes=Math.min(a.length,99),this.cdRef.detectChanges()},error:a=>console.error("Error initializing likes:",a)}),this.favorites.updateFavs$.pipe(vr(this.destroy$)).subscribe(([a])=>{this.numberOfLikes=Math.min(Math.max(this.numberOfLikes+(a?1:-1),0),99),this.cdRef.detectChanges()})})}favorites;cdRef;elementRef;screen;auth;doc;searchState=nt(go);usingBanner=!1;isSubMenuActive=!1;isMenuActive=!1;isInSession=!1;searchOpen=!1;seeTrends=!1;isDesktop=!1;numberOfLikes=0;destroy$=new Re;ngOnInit(){this.isInSession=this.auth.hasToken()}ngAfterViewInit(){this.setIsDesktop()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}hamburgerAnimate(){return this.isMenuActive?"hamburger-animate":""}handleHamburgerToggle(){this.isMenuActive=!this.isMenuActive,this.searchState.close()}toggleSearch(){this.searchOpen=!this.searchOpen,this.searchOpen?this.searchState.open():this.searchState.close(),this.isMenuActive=!1}setIsDesktop(){this.isDesktop=this.screen.screenSizeIsMoreThanOrEqualTo(1050),this.cdRef.detectChanges()}toggleSubmenu(){this.isSubMenuActive=!this.isSubMenuActive}toggleTrends(){this.seeTrends=!this.seeTrends}handleArrow(){return this.isSubMenuActive?"open":""}logout(){this.favorites.logout(),this.isInSession=!1}onDocumentClick(e){this.elementRef.nativeElement.contains(e.target)||(this.isMenuActive&&(this.isMenuActive=!1),this.searchOpen&&(this.searchOpen=!1,this.searchState.close()))}onWindowResize(){this.setIsDesktop()}static \u0275fac=function(t){return new(t||r)(te(_r),te(Ji),te(ji),te(Co),te(bo),te(Ai))};static \u0275cmp=Le({type:r,selectors:[["app-header"]],hostBindings:function(t,n){t&1&&de("mousedown",function(o){return n.onDocumentClick(o)},Or)("resize",function(){return n.onWindowResize()},Qi)},inputs:{usingBanner:"usingBanner"},decls:46,vars:18,consts:[["secondaryMenu",""],["tertiaryMenu",""],[1,"banner"],[1,"header-archon-container"],[1,"manage-width"],[1,"burger",3,"click"],[1,"line","line-1",3,"ngClass"],[1,"line","line-2",3,"ngClass"],[1,"line","line-3",3,"ngClass"],["href","/",1,"site-title"],[1,"icon-maggie-sottero-logo"],[1,"double"],[2,"display","inherit",3,"click"],["ngSrc","images/logos/Search-Icon%20D
1ark.svg","alt","","width","21","height","21","sizes","21px",1,"search",2,"aspect-ratio","1"],["href","/favorites",1,"heart-link"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","width","200","height","200",1,"menu-heart",2,"cursor","pointer"],["fill","none","stroke-linecap","round","stroke-linejoin","round","data-name","Path 2"],["fill","#eddada","stroke","black","stroke-width","1","d","M7.816 4.764s-1.4-3.563-4.014-3.231-2.631 3.058-1.879 4.718 5.893 7.1 5.893 7.1 5.174-5.508 6.042-7.1.852-4.307-1.83-4.718-4.212 3.231-4.212 3.231Z",1,"heart-path"],[1,"main"],["id","menu-find-your-dress","href","/find-your-style"],["id","menu-style-quiz","href","/quiz"],["id","menu-find-a-boutique","href","/find-a-store"],["id","menu-store-events","href","/store-events"],["id","menu-our-blog","href","/blog"],["id","menu-our-heart","href","/our-heart"],["id","menu-my-favorites","href","/favorites"],[3,"class"],[1,"banner-copy"],["href","/cheer-for-charity"],["id","menu-find-your-dress",3,"click"],[1,"white",2,"width","100%","background-color","#fff"],[4,"ngTemplateOutlet"],[1,"secondary-flex"],[1,"col1"],["id","menu-maggie-fys","href","/find-your-style/maggiesottero"],["id","menu-midgley-fys","href","/find-your-style/sottero-and-midgley"],["id","menu-rebecca-fys","href","/find-your-style/rebecca-ingram"],["id","menu-default-fys","href","/find-your-style"],["id","menu-new-arrivals","href","/find-your-style/new-arrivals"],["id","menu-brides-favorites","href","/find-your-style/brides-favorites"],["id","menu-quick-ship","href","/find-your-style/quick-ship"],["id","menu-plus-size","href","/find-your-style/plus-sized-wedding-dresses"],["id","menu-vintage","href","/find-your-style/vintage-wedding-dresses"],["id","menu-classic","href","/classic-wedding-dresses"],["id","menu-long-sleeve","href","/find-your-style/long-sleeve-wedding-dresses"],["id","menu-modest","href","/find-your-style/modest-wedding-dresses"],["id","menu-affordable","href","/find-your-style/affordable-wedding-dresses"],["id","menu-more-trends",1,"more",3,"click"],[1,"col2"],["id","menu-under-1500","href","/find-your-style#categories=684"],["id","menu-1500-2000","href","/find-your-style#categories=685"],["id","menu-2000-2500","href","/find-your-style#categories=686"],["id","menu-2500-3000","href","/find-your-style#categories=687"],["id","menu-over-3000","href","/find-your-style#categories=688"],["id","menu-essentials-edit","href","/find-your-style/wedding-dress-accessories/essentials-edit"],["id","menu-jackets-and-sleeves","href","/find-your-style/wedding-dress-accessories/bridal-jackets-and-sleeves"],["id","menu-trains-and-overskirts","href","/find-your-style/wedding-dress-accessories/bridal-trains-and-skirts"],["id","menu-veils","href","/find-your-style/wedding-dress-accessories/wedding-veils"],["id","menu-view-all-accessories","href","/find-your-style/wedding-dress-accessories"],["id","menu-real-brides","href","/brides"],[1,"white",2,"width","100%","background-color","white"],[2,"font-weight","600"],["id","menu-vintage","href","/find-your-style/affordable-wedding-dresses"],["id","menu-boho","href","/find-your-style/boho-wedding-dresses"],["id","menu-sexy","href","/find-your-style/sexy-wedding-dresses"],["id","menu-off-the-sholder","href","/find-your-style/off-the-shoulder-wedding-dresses"],["id","menu-wester","href","/find-your-style/western-wedding-dresses"],["id","menu-princess","href","/find-your-style/princess-wedding-dresses"],["id","menu-simple","href","/find-your-style/simple-wedding-dresses"],["id","menu-lower-impact","href","/find-your-style/sustainable-wedding-dresses"],["id","menu-satin","href","/find-your-style/satin-wedding-dresses"],["id","menu-lace","href","/find-your-style/lace-wedding-dresses"],["id","menu-unique","href","/find-your-style/unique-wedding-dresses"],["id","menu-colored","href","/find-your-style/colored-wedding-dresses"],["id","menu-beach","href","/find-your-style/beach-wedding-dresses"],["id","menu-off-white","href","/find-your-style/off-white-wedding-dresses"],["id","menu-backless","href","/find-your-style/backless-wedding-dresses"],["id","menu-crepe","href","/find-your-style/crepe-wedding-dresses"],["id","menu-a-line","href","/find-your-style/a-line-wedding-dresses"],["id","menu-mermaid","href","/find-your-style/mermaid-wedding-dresses"],[1,"back",3,"click"]],template:function(t,n){t&1&&(fe(0,fa,7,0,"section",2),C(1,"div",3)(2,"section",4)(3,"button",5),de("click",function(){return n.handleHamburgerToggle()}),J(4,"span",6)(5,"span",7)(6,"span",8),S(),C(7,"a",9),J(8,"h2",10),S(),C(9,"div",11)(10,"button",12),de("click",function(){return n.toggleSearch()}),J(11,"img",13),S(),C(12,"a",14),Ii(),C(13,"svg",15)(14,"g",16),J(15,"path",17),S()(),fe(16,ma,2,1,"p"),S()()(),Ni(),C(17,"section")(18,"div",18)(19,"ul"),fe(20,pa,3,0,"a",19),fe(21,va,3,4),C(22,"a",20)(23,"li"),E(24,"Style Quiz"),S()(),C(25,"a",21)(26,"li"),E(27,"Find a Boutique"),S()(),C(28,"a",22)(29,"li"),E(30,"Store Events"),S()(),C(31,"a",23)(32,"li"),E(33,"Our Blog"),S()(),C(34,"a",24)(35,"li"),E(36,"Our Heart"),S()(),C(37,"a",25)(38,"li"),E(39,"My Favorites"),S()()()(),fe(40,wa,3,4,"div",26),S()(),St(41,ka,70,0,"ng-template",null,0,on)(43,Ea,52,0,"ng-template",null,1,on),fe(45,_a,1,0,"app-search")),t&2&&(me(n.usingBanner?0:-1),Q(4),re("ngClass",qe(12,un,n.isMenuActive)),Q(),re("ngClass",qe(14,un,n.isMenuActive)),Q(),re("ngClass",qe(16,un,n.isMenuActive)),Q(10),me(n.numberOfLikes>0?16:-1),Q(),Bt(Wt("sub-menu ",n.hamburgerAnimate())),Q(3),me(n.isDesktop?20:-1),Q(),me(n.isDesktop?-1:21),Q(19),me(n.isDesktop?40:-1),Q(5),me(n.searchState.isOpen()?45:-1))},dependencies:[Er,xt,Zi,xo,ro],styles:['section.banner[_ngcontent-%COMP%]{width:100%;background-color:#ebe3dc}section.banner[_ngcontent-%COMP%] .banner-copy[_ngcontent-%COMP%]{padding:10px 5vw;margin:auto;color:#272727;font-family:Montserrat;text-align:center}section.banner[_ngcontent-%COMP%] .banner-copy[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#3e3e3e;font-weight:700;font-family:Montserrat}@media screen and (max-width:400px){section.banner[_ngcontent-%COMP%] .banner-copy[_ngcontent-%COMP%]{padding:10px 1vw;font-size:13px}}.header-archon-container[_ngcontent-%COMP%]{width:100%;position:relative}.manage-width[_ngcontent-%COMP%]{height:3rem;display:flex;align-items:center;width:100%}@media screen and (min-width:1050px){.manage-width[_ngcontent-%COMP%]{height:3.5rem}}button.burger[_ngcontent-%COMP%]{margin-left:15px;
1display:flex;flex-direction:column;gap:9.4px;cursor:pointer;outline:none}button.burger[_ngcontent-%COMP%]:focus-visible{outline:2px solid #272727;outline-offset:4px}button.burger[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background-color:#000;width:31px;height:1.5px;border-radius:10px;display:block;transition:1s}button.burger[_ngcontent-%COMP%] .line-1[_ngcontent-%COMP%]{background:linear-gradient(to right,black 30%,transparent 35%)}button.burger[_ngcontent-%COMP%] .line-3[_ngcontent-%COMP%]{background:linear-gradient(to right,black 60%,transparent 40%)}button.burger[_ngcontent-%COMP%] .hamburger-animate[_ngcontent-%COMP%]{background:#000}button.burger[_ngcontent-%COMP%] .hamburger-animate.line-1[_ngcontent-%COMP%]{transform:rotate(45deg);transform-origin:left}button.burger[_ngcontent-%COMP%] .hamburger-animate.line-2[_ngcontent-%COMP%]{background:transparent}button.burger[_ngcontent-%COMP%] .hamburger-animate.line-3[_ngcontent-%COMP%]{transform:rotate(-45deg);transform-origin:left}a.site-title[_ngcontent-%COMP%]{display:block;margin:0 auto}.double[_ngcontent-%COMP%]{position:relative}.double[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:20px;text-align:center;background:transparent;font-family:swear-display;position:relative;top:-33.5px;left:5px;font-size:12px;font-weight:600}@media screen and (min-width:1050px){.double[_ngcontent-%COMP%]{margin-right:15px}}.search[_ngcontent-%COMP%]{position:absolute;top:4px;left:-28px;font-size:21px;width:21px;transform:translateY(50%)}.heart-link[_ngcontent-%COMP%]{display:block;transform:translate(8px)}.menu-heart[_ngcontent-%COMP%]{width:47px;height:50%;transform:translateY(24%)}.sub-menu[_ngcontent-%COMP%]{background-color:#fff;position:fixed;top:3rem;left:-100vw;width:100vw;display:flex;transition:1s}@media screen and (min-width:1050px){.sub-menu[_ngcontent-%COMP%]{top:3.5rem;width:clamp(0px,60vw,700px);left:clamp(-1000px,-60vw,0px)}}.sub-menu[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{background-color:#fafafa;width:100%}@media screen and (min-width:1050px){.sub-menu[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{min-width:230px;width:23vw;max-width:270px}}.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li[_ngcontent-%COMP%]:after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:#272727;position:absolute;top:3px;right:10px;transition:.3s}.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li.open[_ngcontent-%COMP%]:after{transition:.3s;transform:rotate(225deg)}.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li[_ngcontent-%COMP%]{width:fit-content;position:relative;padding-right:37px}.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li[_ngcontent-%COMP%]:after{top:6px;padding:4px}.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li[_ngcontent-%COMP%]{margin-left:15px;margin-top:30px;letter-spacing:1.2px;list-style-type:none;display:block}.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:first-child, .sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li[_ngcontent-%COMP%]:first-child{margin-top:15px}.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:last-child, .sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li[_ngcontent-%COMP%]:last-child{margin-bottom:45px}@media screen and (min-width:700px){.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li[_ngcontent-%COMP%]{margin-left:30px}}.sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .sub-menu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] div.li[_ngcontent-%COMP%]{font-family:swear-display;font-size:18px}.sub-menu.hamburger-animate[_ngcontent-%COMP%]{left:0}.toggle-secondary-section[_ngcontent-%COMP%]{width:100%;background-color:#fff;margin-top:15px}@media screen and (min-width:1050px){.secondary[_ngcontent-%COMP%]{width:calc(100% - 230px)}}.secondary[_ngcontent-%COMP%]:not(.tertiary) .secondary-flex[_ngcontent-%COMP%]{margin:auto}.secondary-flex[_ngcontent-%COMP%]{display:flex;gap:25px;padding:20px;width:fit-content;margin:0 auto 0 15px}@media screen and (min-width:700px){.secondary-flex[_ngcontent-%COMP%]{margin:30px}}.secondary-flex[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .secondary-flex[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .secondary-flex[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .secondary-flex[_ngcontent-%COMP%] br[_ngcontent-%COMP%]{display:block;font-family:Montserrat;font-size:13px;line-height:20px}.secondary-flex[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-weight:600}.sub-menu[_ngcontent-%COMP%] .secondary-flex[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin:0}.tertiary[_ngcontent-%COMP%]{width:236px;margin:20px auto 0;padding-bottom:25px}.tertiary[_ngcontent-%COMP%] .secondary-flex[_ngcontent-%COMP%]{padding:2px 0 15px;margin:0}.tertiary[_ngcontent-%COMP%] .col1[_ngcontent-%COMP%]{width:131px}.tertiary[_ngcontent-%COMP%] .col2[_ngcontent-%COMP%]{width:80px}.tertiary[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:block;font-family:Montserrat;font-size:13px}.tertiary[_ngcontent-%COMP%] .back[_ngcontent-%COMP%], .more[_ngcontent-%COMP%]{text-decoration:underline}.sub-menu[_ngcontent-%COMP%] .col1[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .sub-menu[_ngcontent-%COMP%] .col2[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{letter-spacing:normal}']})};var Ma=()=>[import("./chunk-TGYUSD6M.js").then(r=>r.FooterComponent)],Ta=r=>({hide:r});function Da(r,e){r&1&&J(0,"footer")}
1var Fr=class r{constructor(e,t){this.favoritesService=e;this.klaviyoService=t;wr(()=>{this.klaviyoService.setTag(),this.favoritesService.init()})}favoritesService;klaviyoService;usingBanner=!1;isScrolledUp=!0;lastScrollTop=0;title="Maggie Sottero";products=[];isReset;displayOnScrollUp(){if(typeof window>"u")return;let e=window.pageYOffset||document.documentElement.scrollTop;this.isScrolledUp=e<300||e<this.lastScrollTop,this.isReset=e>300,this.lastScrollTop=e<=0?0:e}static \u0275fac=function(t){return new(t||r)(te(_r),te(yo))};static \u0275cmp=Le({type:r,selectors:[["app-root"]],hostBindings:function(t,n){t&1&&de("scroll",function(){return n.displayOnScrollUp()},Or)},features:[Ki([])],decls:8,vars:3,consts:[[1,"push-footer-container"],[3,"ngClass"]],template:function(t,n){t&1&&(C(0,"div",0),J(1,"app-header",1)(2,"breadcrumbs")(3,"router-outlet"),S(),zi(4,Da,1,0),Bi(5,4,Ma),Wi(),J(7,"cookie-footer")),t&2&&(Q(),re("ngClass",qe(1,Ta,!n.isScrolledUp)))},dependencies:[Mr,Tr,Dr,uo,xt],styles:["app-header[_ngcontent-%COMP%]{background-color:#fff;position:fixed;display:block;z-index:100;right:0;left:0;top:0;transform:translateY(0);transition:transform .3s ease}app-header.hide[_ngcontent-%COMP%]{transform:translateY(-100%)}breadcrumbs[_ngcontent-%COMP%]{margin:60px 15px 15px;display:block}footer[_ngcontent-%COMP%]{position:relative;bottom:0}"]})};function ko(r,e){if(!!!r)throw new Error(e)}var fn={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","directives","locations"],SchemaExtension:["directives","operationTypes"],DirectiveExtension:["name","directives"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},Fa=new Set(Object.keys(fn));function mn(r){let e=r?.kind;return typeof e=="string"&&Fa.has(e)}var xe=(function(r){return r.QUERY="query",r.MUTATION="mutation",r.SUBSCRIPTION="subscription",r})(xe||{});var D=(function(r){return r.NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="Str
1ingValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.DIRECTIVE_EXTENSION="DirectiveExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r.TYPE_COORDINATE="TypeCoordinate",r.MEMBER_COORDINATE="MemberCoordinate",r.ARGUMENT_COORDINATE="ArgumentCoordinate",r.DIRECTIVE_COORDINATE="DirectiveCoordinate",r.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",r})(D||{});function pn(r){return r===9||r===32}function Eo(r,e){let t=r.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),i=n.length===1,o=n.length>1&&n.slice(1).every(p=>p.length===0||pn(p.charCodeAt(0))),s=t.endsWith('\\"""'),a=r.endsWith('"')&&!s,l=r.endsWith("\\"),c=a||l,u=!(e!=null&&e.minimize)&&(!i||r.length>70||c||o||s),f="",m=i&&pn(r.charCodeAt(0));return(u&&!m||o)&&(f+=` 2`),f+=t,(u||c)&&(f+=` 3`),'"""'+f+'"""'}function _o(r){return Pr(r,[])}function Pr(r,e){switch(typeof r){case"string":return JSON.stringify(r);case"function":return r.name?`[function ${r.name}]`:"[function]";case"object":return Pa(r,e);default:return String(r)}}function Pa(r,e){if(r===null)return"null";if(e.includes(r))return"[Circular]";let t=[...e,r];if(Ia(r)){let n=r.toJSON();if(n!==r)return typeof n=="string"?n:Pr(n,t)}else if(Array.isArray(r))return Aa(r,t);return Na(r,t)}function Ia(r){return typeof r.toJSON=="function"}function Na(r,e){let t=Object.entries(r);return t.length===0?"{}":e.length>2?"["+Ra(r)+"]":"{ "+t.map(([i,o])=>i+": "+Pr(o,e)).join(", ")+" }"}function Aa(r,e){if(r.length===0)return"[]";if(e.length>2)return"[Array]";let t=Math.min(10,r.length),n=r.length-t,i=[];for(let o=0;o<t;++o)i.push(Pr(r[o],e));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function Ra(r){let e=Object.prototype.toString.call(r).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof r.constructor=="function"){let t=r.constructor.name;if(typeof t=="string"&&t!=="")return t}return e}function Mo(r){return`"${r.replace(Va,ja)}"`}var Va=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ja(r){return La[r.charCodeAt(0)]}var La=["\\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 Te=Object.freeze({});function Y(r,e,t=fn){let n=new Map;for(let b of Object.values(D))n.set(b,dn(e,b));let i,o=Array.isArray(r),s=[r],a=-1,l=[],c=r,u,f,m=[],p=[];do{a++;let b=a===s.length,x=b&&l.length!==0;if(b){if(u=p.length===0?void 0:m[m.length-1],c=f,f=p.pop(),x)if(o){c=c.slice();let _=0;for(let[M,I]of l){let ae=M-_;I===null?(c.splice(ae,1),_++):c[ae]=I}}else{c=y({},c);for(let[_,M]of l)c[_]=M}a=i.index,s=i.keys,l=i.edits,o=i.inArray,i=i.prev}else if(f){if(u=o?a:s[a],c=f[u],c==null)continue;m.push(u)}let O;if(!Array.isArray(c)){var h,g;mn(c)||ko(!1,`Invalid AST Node: ${_o(c)}.`);let _=b?(h=n.get(c.kind))===null||h===void 0?void 0:h.leave:(g=n.get(c.kind))===null||g===void 0?void 0:g.enter;
3if(O=_?.call(e,c,u,f,m,p),O===Te)break;if(O===!1){if(!b){m.pop();continue}}else if(O!==void 0&&(l.push([u,O]),!b))if(mn(O))c=O;else{m.pop();continue}}if(O===void 0&&x&&l.push([u,c]),b)m.pop();else{var d;i={inArray:o,index:a,keys:s,edits:l,prev:i},o=Array.isArray(c),s=o?c:(d=t[c.kind])!==null&&d!==void 0?d:[],a=-1,l=[],f&&p.push(f),f=c}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:r}function dn(r,e){let t=r[e];return typeof t=="object"?t:typeof t=="function"?{enter:t,leave:void 0}:{enter:r.enter,leave:r.leave}}function Ot(r){return Y(r,Qa)}var qa=80,Qa={Name:{leave:r=>r.value},Variable:{leave:r=>"$"+r.name},Document:{leave:r=>T(r.definitions,` 4 5`)},OperationDefinition:{leave(r){let e=hn(r.variableDefinitions)?P(`( 6`,T(r.variableDefinitions,` 7`),` 8)`):P("(",T(r.variableDefinitions,", "),")"),t=P("",r.description,` 9`)+T([r.operation,T([r.name,e]),T(r.directives," ")]," ");return(t==="query"?"":t+" ")+r.selectionSet}},VariableDefinition:{leave:({variable:r,type:e,defaultValue:t,directives:n,description:i})=>P("",i,` 10`)+r+": "+e+P(" = ",t)+P(" ",T(n," "))},SelectionSet:{leave:({selections:r})=>ge(r)},Field:{leave({alias:r,name:e,arguments:t,directives:n,selectionSet:i}){let o=P("",r,": ")+e,s=o+P("(",T(t,", "),")");return s.length>qa&&(s=o+P(`( 11`,Ir(T(t,` 12`)),` 13)`)),T([s,T(n," "),i]," ")}},Argument:{leave:({name:r,value:e})=>r+": "+e},FragmentSpread:{leave:({name:r,directives:e})=>"..."+r+P(" ",T(e," "))},InlineFragment:{leave:({typeCondition:r,directives:e,selectionSet:t})=>T(["...",P("on ",r),T(e," "),t]," ")},FragmentDefinition:{leave:({name:r,typeCondition:e,variableDefinitions:t,directives:n,selectionSet:i,description:o})=>P("",o,` 14`)+`fragment ${r}${P("(",T(t,", "),")")} on ${e} ${P("",T(n," ")," ")}`+i},IntValue:{leave:({value:r})=>r},FloatValue:{leave:({value:r})=>r},StringValue:{leave:({value:r,block:e})=>e?Eo(r):Mo(r)},BooleanValue:{leave:({value:r})=>r?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:r})=>r},ListValue:{leave:({values:r})=>"["+T(r,", ")+"]"},ObjectValue:{leave:({fields:r})=>"{"+T(r,", ")+"}"},ObjectField:{leave:({name:r,value:e})=>r+": "+e},Directive:{leave:({name:r,arguments:e})=>"@"+r+P("(",T(e,", "),")")},NamedType:{leave:({name:r})=>r},ListType:{leave:({type:r})=>"["+r+"]"},NonNullType:{leave:({type:r})=>r+"!"},SchemaDefinition:{leave:({description:r,directives:e,operationTypes:t})=>P("",r,` 15`)+T(["schema",T(e," "),ge(t)]," ")},OperationTypeDefinition:{leave:({operation:r,type:e})=>r+": "+e},ScalarTypeDefinition:{leave:({description:r,name:e,directives:t})=>P("",r,` 16`)+T(["scalar",e,T(t," ")]," ")},ObjectTypeDefinition:{leave:({description:r,name:e,interfaces:t,directives:n,fields:i})=>P("",r,` 17`)+T(["type",e,P("implements ",T(t," & ")),T(n," "),ge(i)]," ")},FieldDefinition:{leave:({description:r,name:e,arguments:t,type:n,directives:i})=>P("",r,` 18`)+e+(hn(t)?P(`( 19`,Ir(T(t,` 20`)),` 21)`):P("(",T(t,", "),")"))+": "+n+P(" ",T(i," "))},InputValueDefinition:{leave:({description:r,name:e,type:t,defaultValue:n,directives:i})=>P("",r,` 22`)+T([e+": "+t,P("= ",n),T(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:r,name:e,interfaces:t,directives:n,fields:i})=>P("",r,` 23`)+T(["interface",e,P("implements ",T(t," & ")),T(n," "),ge(i)]," ")},UnionTypeDefinition:{leave:({description:r,name:e,directives:t,types:n})=>P("",r,` 24`)+T(["union",e,T(t," "),P("= ",T(n," | "))]," ")},EnumTypeDefinition:{leave:({description:r,name:e,directives:t,values:n})=>P("",r,` 25`)+T(["enum",e,T(t," "),ge(n)]," ")},EnumValueDefinition:{leave:({description:r,name:e,directives:t})=>P("",r,` 26`)+T([e,T(t," ")]," ")},InputObjectTypeDefinition:{leave:({description:r,name:e,directives:t,fields:n})=>P("",r,` 27`)+T(["input",e,T(t," "),ge(n)]," ")},DirectiveDefinition:{leave:({description:r,name:e,arguments:t,directives:n,repeatable:i,locations:o})=>P("",r,` 28`)+"directive @"+e+(hn(t)?P(`( 29`,Ir(T(t,` 30`)),` 31)`):P("(",T(t,", "),")"))+P(" ",T(n," "))+(i?" repeatable":"")+" on "+T(o," | ")},SchemaExtension:{leave:({directives:r,operationTypes:e})=>T(["extend schema",T(r," "),ge(e)]," ")},ScalarTypeExtension:{leave:({name:r,directives:e})=>
31T(["extend scalar",r,T(e," ")]," ")},ObjectTypeExtension:{leave:({name:r,interfaces:e,directives:t,fields:n})=>T(["extend type",r,P("implements ",T(e," & ")),T(t," "),ge(n)]," ")},InterfaceTypeExtension:{leave:({name:r,interfaces:e,directives:t,fields:n})=>T(["extend interface",r,P("implements ",T(e," & ")),T(t," "),ge(n)]," ")},UnionTypeExtension:{leave:({name:r,directives:e,types:t})=>T(["extend union",r,T(e," "),P("= ",T(t," | "))]," ")},EnumTypeExtension:{leave:({name:r,directives:e,values:t})=>T(["extend enum",r,T(e," "),ge(t)]," ")},InputObjectTypeExtension:{leave:({name:r,directives:e,fields:t})=>T(["extend input",r,T(e," "),ge(t)]," ")},DirectiveExtension:{leave:({name:r,directives:e})=>T(["extend directive @"+r,T(e," ")]," ")},TypeCoordinate:{leave:({name:r})=>r},MemberCoordinate:{leave:({name:r,memberName:e})=>T([r,P(".",e)])},ArgumentCoordinate:{leave:({name:r,fieldName:e,argumentName:t})=>T([r,P(".",e),P("(",t,":)")])},DirectiveCoordinate:{leave:({name:r})=>T(["@",r])},DirectiveArgumentCoordinate:{leave:({name:r,argumentName:e})=>T(["@",r,P("(",e,":)")])}};function T(r,e=""){var t;return(t=r?.filter(n=>n).join(e))!==null&&t!==void 0?t:""}function ge(r){return P(`{ 32`,Ir(T(r,` 33`)),` 34}`)}function P(r,e,t=""){return e!=null&&e!==""?r+e+t:""}function Ir(r){return P(" ",r.replace(/\n/g,` 35 `))}function hn(r){var e;return(e=r?.some(t=>t.includes(` 36`)))!==null&&e!==void 0?e:!1}function gn(r,e,t){let n=r.arguments?.find(i=>i.name.value===e);if(!(!n||n.value.kind!==t)&&n.value.kind===D.STRING)return n.value.value}function it(r){try{return r()}catch(e){}}var wt=it(()=>globalThis)||it(()=>window)||it(()=>self)||it(()=>global)||it(function(){return it.constructor("return this")()});var Ut="4.3.1";var To=new Map;function Ht(r){let e=To.get(r)||1;return To.set(r,e+1),`${r}:${e}:${Math.random().toString(36).slice(2)}`}function Gt(r,e=0){let t=Ht("stringifyForDisplay");return JSON.stringify(r,(n,i)=>i===void 0?t:i,e).split(JSON.stringify(t)).join("<undefined>")}var Do="Invariant Violation",yn=class r extends Error{constructor(e=Do){super(e),this.name=Do,Object.setPrototypeOf(this,r.prototype)}},Po=["debug","log","warn","error","silent"],Ha=Po.indexOf("silent");function v(r,...e){if(!r)throw z(...e)}function Nr(r){return function(e,...t){if(Po.indexOf(r)>=Ha){let n=console[r]||console.log;if(typeof e=="number"){let i=e;e=Io(i),e||(e=No(i,t),t=[])}n(e,...t)}}}v.debug=Nr("debug");v.log=Nr("log");v.warn=Nr("warn");v.error=Nr("error");function z(r,...e){return new yn(Io(r,e)||No(r,e))}var Fo=Symbol.for("ApolloErrorMessageHandler_"+Ut);function bn(r){if(typeof r=="string")return r;try{return Gt(r,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function Io(r,e=[]){if(r)return wt[Fo]&&wt[Fo](r,e.map(bn))}function No(r,e=[]){if(r)return typeof r=="string"?e.reduce((t,n)=>t.replace(/%[sdfo]/,bn(n)),r):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:Ut,message:r,args:e.map(bn)}))}`}function De(r,e,t,n){if(t.kind===D.INT||t.kind===D.FLOAT)r[e.value]=Number(t.value);else if(t.kind===D.BOOLEAN||t.kind===D.STRING)r[e.value]=t.value;else if(t.kind===D.OBJECT){let i={};t.fields.map(o=>De(i,o.name,o.value,n)),r[e.value]=i}else if(t.kind===D.VARIABLE){let i=(n||{})[t.name.value];r[e.value]=i}else if(t.kind===D.LIST)r[e.value]=t.values.map(i=>{let o={};return De(o,e,i,n),o[e.value]});else if(t.kind===D.ENUM)r[e.value]=t.value;else if(t.kind===D.NULL)r[e.value]=null;else throw z(21,e.value,t.kind)}function ot(r,e){if(r.arguments&&r.arguments.length){let t={};return r.arguments.forEach(({name:n,value:i})=>De(t,n,i,e)),t}return null}function vn(r){return r[0].toUpperCase()+r.slice(1)}var Ga=Symbol.for("apollo.cacheSize"),q=y({},wt[Ga]);function B(r,e){return r.definitions.find(t=>t.kind==="OperationDefinition"&&!!t.name)?.name.value??e}var $a=()=>Object.create(null),{forEach:Ka,slice:Ao}=Array.prototype,{hasOwnProperty:Ya}=Object.prototype,$=class r{constructor(e=!0,t=$a){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Ka.call(e,n=>t=t.getChildTrie(n)),Ya.call(t,"data")?t.data:t.data=this.makeData(Ao.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,i=e.length;t&&n<i;++n){let o=t.mapFor(e[n],!1);t=o&&o.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let n=e[0],i=this.mapFor(n,!1),o=i&&i.get(n);o&&(t=o.removeArray(Ao.call(e,1)),!o.data&&!o.weak&&!(o.strong&&o.strong.size)&&i.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),n=t.get(e);return n||t.set(e,n=new r(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&Ja(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}};function Ja(r){switch(typeof r){case"object":if(r===null)break;case"function":return!0}return!1}function Xa(){}var Qe=class{constructor(e=1/0,t=Xa){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}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:n,newer:i}=t;i&&(i.older=n),n&&(n.newer=i),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=i)}return t}set(e,t){let n=this.getNode(e);
36return 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):!1}};function Sn(){}var Za=Sn,ec=typeof WeakRef<"u"?WeakRef:function(r){return{deref:()=>r}},tc=typeof WeakMap<"u"?WeakMap:Map,rc=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Sn,unregister:Sn}},nc=10024,Ce=class{constructor(e=1/0,t=Za){this.max=e,this.dispose=t,this.map=new tc,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let n=this.unfinalizedNodes.values();for(let i=0;i<nc;i++){let o=n.next().value;if(!o)break;this.unfinalizedNodes.delete(o);let s=o.key;delete o.key,o.keyRef=new ec(s),this.registry.register(s,o,o)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new rc(this.deleteNode.bind(this))}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:n,newer:i}=t;i&&(i.older=n),n&&(n.newer=i),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=i)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return t?(this.deleteNode(t),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}};var xn=new WeakSet;function Ro(r){r.size<=(r.max||-1)||xn.has(r)||(xn.add(r),setTimeout(()=>{r.clean(),xn.delete(r)},100))}var st=function(r,e){let t=new Ce(r,e);return t.set=function(n,i){let o=Ce.prototype.set.call(this,n,i);return Ro(this),o},t},Cn=function(r,e){let t=new Qe(r,e);return t.set=function(n,i){let o=Qe.prototype.set.call(this,n,i);return Ro(this),o},t};function ze(r,{max:e,makeCacheKey:t=n=>n}){let n=new $(!0),i=new st(e);return(...o)=>{let s=n.lookupArray(t(o)),a=i.get(s);if(a){if(a.error)throw a.error;return a.result}let l=i.set(s,{});try{return l.result=r(...o)}catch(c){throw l.error=c,c}}}var ne=ze((r,e)=>{v(r&&r.kind==="Document",1);let t=r.definitions.filter(n=>n.kind==="OperationDefinition");!1,e&&v(t.length==1&&t[0].operation===e,4,e,e,t[0].operation),Y(r,{Field(n,i,o,s){if(n.alias&&(n.alias.value==="__typename"||n.alias.value.startsWith("__ac_"))&&n.alias.value!==n.name.value){let a=r,l=[];for(let c of s)a=a[c],a.kind===D.FIELD&&l.push(a.alias?.value||a.name.value);throw l.splice(-1,1,n.name.value),z(5,n.alias.value,l.join("."),t[0].operation,B(r,"(anonymous)"))}}})},{max:q.checkDocument||2e3});var{toString:ic}=Object.prototype;function wn(r){return On(r)}function On(r,e){switch(ic.call(r)){case"[object Array]":{if(e=e||new Map,e.has(r))return e.get(r);let t=r.slice(0);return e.set(r,t),t.forEach(function(n,i){t[i]=On(n,e)}),t}case"[object Object]":{if(e=e||new Map,e.has(r))return e.get(r);let t=Object.create(Object.getPrototypeOf(r));return e.set(r,t),Object.keys(r).forEach(n=>{t[n]=On(r[n],e)}),t}default:return r}}function ce(r=[]){let e={};return r.forEach(t=>{e[t.name.value]=t}),e}function le(r){return r.definitions.filter(e=>e.kind==="FragmentDefinition")}function ye(r,e){switch(r.kind){case"InlineFragment":return r;case"FragmentSpread":{let t=r.name.value;if(typeof e=="function")return e(t);let n=e&&e[t];return v(n,11,t),n}default:return null}}function Fe(r){ne(r);let e;for(let t of r.definitions){if(t.kind==="OperationDefinition")return t;t.kind==="FragmentDefinition"&&!e&&(e=t)}if(e)return e;throw z(14)}function K(r){return ne(r),r.definitions.filter(e=>e.kind==="OperationDefinition")[0]}function ue(r){return r.kind==="Field"}function at(r){return r.match(/^\[(.*)\]$/)}function Z(r){return r.alias?r.alias.value:r.name.value}function be(r){return r.replace(/[[\]]/g,"")}function kn(r,e,t){let n=K(e)?.operation,i=ce(le(e));v(n,6);function o(l,c,u,f){let m=!1,p=c.map(h=>{let g=s(l,h,u,f);return m||=g!==h,g});return m?p:c}function s(l,c,u,f){if(Array.isArray(c)&&!f)return o(l,c,u,f);if(l.selectionSet)return a(l.selectionSet,c);if(c===null||!u)return c;if(f){let m=at(f);if(m){if(Array.isArray(c))return o(l,c,u,m[1]);!1}let p=t.getScalar(be(f));if(p)return p.coerceToParsed(c)}return c}function a(l,c,u){if(c===null||typeof c!="object")return c;let f=y({},c),m=!1;Object.hasOwn(c,"__typename")&&(u=c.__typename);let p=new Set(l.selections);return p.forEach(h=>{if(ue(h)){let g=Z(h);if(!Object.hasOwn(c,g))return;let d=c[g],b=s(h,d,u,u?t.getScalarTypeForField(u,h.name.value):void 0);m||=b!==d,f[g]=b}else{let g=ye(h,i);g&&u&&t.fragmentMatches(g,u)&&g.selectionSet.selections.forEach(d=>p.add(d))}}),m?f:c}return a(Fe(e).selectionSet,r,t.getRootTypename(n))}function En(r){return r.length===0?Ze:new G(e=>{let{length:t}=r,n=new Array(t),i=new Map;r.forEach((l,c)=>{i.has(l)||i.set(l,new Set),i.get(l).add(c)});let o=i.size,s=i.size,a;
36i.forEach((l,c)=>{let u=!1,f=c.subscribe({next:m=>{l.forEach(p=>n[p]=m),u||(u=!0,s--),s||(a||=new Set(r.filter(p=>p.dirty)),a.delete(c),a.size||(e.next(n.slice()),a=void 0))},complete:()=>{o--,o||e.complete()},error:e.error.bind(e)});e.add(f)})})}function se(...r){let e={};return r.forEach(t=>{t&&Reflect.ownKeys(t).forEach(n=>{let i=t[n];i!==void 0&&(e[n]=i)})}),e}function L(r){return r!==null&&typeof r=="object"}var{hasOwnProperty:oc}=Object.prototype,sc=function(r,e,t){return this.merge(r[t],e[t])},Vo=r=>isNaN(+r)?{}:[],ie=class{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||sc}merge(e,t,n={}){let i=n.atPath;if(i?.length){let[o,...s]=i;e===void 0&&(e=Vo(o));let a=e[o];a===void 0&&s.length&&(a=Vo(s[0]));let l=this.merge(a,t,w(y({},n),{atPath:s}));return a!==l&&(e=this.shallowCopyForMerge(e),e[o]=l),e}return Array.isArray(e)&&Array.isArray(t)&&this.options.arrayMerge==="truncate"&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),L(t)&&L(e)?(Object.keys(t).forEach(o=>{if(oc.call(e,o)){let s=e[o];if(t[o]!==s){let a=this.reconciler(e,t,o);a!==s&&(e=this.shallowCopyForMerge(e),e[o]=a)}}else e=this.shallowCopyForMerge(e),e[o]=t[o]}),e):t}isObject=L;pastCopies=new Set;shallowCopyForMerge(e){return L(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e=y({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e}};function ct(r){let e={},t=r&&r.variableDefinitions;return t&&t.length&&t.forEach(n=>{n.defaultValue&&De(e,n.variable.name,n.defaultValue)}),e}function _n(r,e){let t=e,n=[];return r.definitions.forEach(o=>{if(o.kind==="OperationDefinition")throw z(12,o.operation,o.name?` named '${o.name.value}'`:"");o.kind==="FragmentDefinition"&&n.push(o)}),typeof t>"u"&&(v(n.length===1,13,n.length),t=n[0].name.value),w(y({},r),{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:t}}]}},...r.definitions]})}function $t(r){v(r.kind==="Document",8),v(r.definitions.length<=1,9);let e=r.definitions[0];return v(e.kind==="FragmentDefinition",10),e}function Kt(r){let e=K(r);return v(e&&e.operation==="query",15),e}var ac={};function Yt(r,e){ac[r]=e}var W=Object.assign(function(e){return JSON.stringify(e,cc)},{reset(){kt=new Cn(q.canonicalStringify||1e3)}});!1;var kt;W.reset();function cc(r,e){if(e&&typeof e=="object"){let t=Object.getPrototypeOf(e);if(t===Object.prototype||t===null){let n=Object.keys(e);if(n.every(lc))return e;let i=JSON.stringify(n),o=kt.get(i);if(!o){n.sort();let a=JSON.stringify(n);o=kt.get(a)||n,kt.set(i,o),kt.set(a,o)}let s=Object.create(t);return o.forEach(a=>{s[a]=e[a]}),s}}return e}function lc(r,e,t){return e===0||t[e-1]<=r}var uc=["connection","include","skip","client","rest","export","nonreactive","stream"],Jt=W,Xt=Object.assign(function(r,e,t){if(e&&t&&t.connection&&t.connection.key){if(t.connection.filter&&t.connection.filter.length>0){let i=t.connection.filter?t.connection.filter:[];i.sort();let o={};i.forEach(a=>{o[a]=e[a]});let s=Jt(o);if(s!=="{}")return`${t.connection.key}(${s})`}return t.connection.key}let n=r;if(e){let i=Jt(e);i!=="{}"&&(n+=`(${i})`)}return t&&Object.keys(t).forEach(i=>{uc.indexOf(i)===-1&&(t[i]&&Object.keys(t[i]).length?n+=`@${i}(${Jt(t[i])})`:n+=`@${i}`)}),n},{setStringify(r){let e=Jt;return Jt=r,e}});function Pe(r){return!!r.errors?.length}function Oe(r,e,t){let n=new Set(r),i=n.size;return Y(e,{Directive(o){if(n.delete(o.name.value)&&(!t||!n.size))return Te}}),t?!n.size:n.size<i}function Mn(r){let e=!1;return Y(r,{Directive:{enter(t){if(t.name.value==="client"&&t.arguments&&(e=t.arguments.some(n=>n.name.value==="always"&&n.value.kind==="BooleanValue"&&n.value.value===!0),e))return Te}}}),e}var R=Array.isArray;var Ar=ze(function(e,t){return!!e.directives?.some(n=>{if(n.name.value!=="defer")return!1;for(let i of n.arguments??[])if(i.name.value==="if")switch(i.value.kind){case D.BOOLEAN:return i.value.value;case D.VARIABLE:return!!t?.[i.value.name.value]}return!0})},{max:q.isDeferredFragment||2e3,makeCacheKey:([r,e])=>[r,W(e)]});function Tn(r){return L(r)&&r.kind==="Document"&&Array.isArray(r.definitions)}function lt(r){return Array.isArray(r)&&r.length>0}function Zt(r){return r!==null&&typeof r=="object"&&(Object.getPrototypeOf(r)===Object.prototype||Ob
36ject.getPrototypeOf(r)===null)}var Et=ze(function(e,t){return!!e.directives?.some(n=>{if(n.name.value!=="stream")return!1;for(let i of n.arguments??[])if(i.name.value==="if")switch(i.value.kind){case D.BOOLEAN:return i.value.value;case D.VARIABLE:return!!t?.[i.value.name.value]}return!0})},{max:q.isStreamField||2e3,makeCacheKey:([r,e])=>[r,W(e)]});var X=null,jo={},fc=1,mc=()=>class{constructor(){this.id=["slot",fc++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=X;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===jo)break;return e!==X&&(X.slots[this.id]=t),!0}return X&&(X.slots[this.id]=jo),!1}getValue(){if(this.hasValue())return X.slots[this.id]}withValue(e,t,n,i){let o={__proto__:null,[this.id]:e},s=X;X={parent:s,slots:o};try{return t.apply(i,n)}finally{X=s}}static bind(e){let t=X;return function(){let n=X;try{return X=t,e.apply(this,arguments)}finally{X=n}}}static noContext(e,t,n){if(X){let i=X;try{return X=null,e.apply(n,t)}finally{X=i}}else return e.apply(n,t)}};function Lo(r){try{return r()}catch(e){}}var Dn="@wry/context:Slot",pc=Lo(()=>globalThis)||Lo(()=>global)||Object.create(null),qo=pc,Ie=qo[Dn]||Array[Dn]||(function(r){try{Object.defineProperty(qo,Dn,{value:r,enumerable:!1,writable:!1,configurable:!0})}finally{return r}})(mc());var{bind:Qo,noContext:zo}=Ie;var ut=new Ie;var{hasOwnProperty:Bo}=Object.prototype,er=Array.from||function(r){let e=[];return r.forEach(t=>e.push(t)),e};function _t(r){let{unsubscribe:e}=r;typeof e=="function"&&(r.unsubscribe=void 0,e())}var tr=[],gc=100;function Mt(r,e){if(!r)throw new Error(e||"assertion failure")}function Uo(r,e){let t=r.length;return t>0&&t===e.length&&r[t-1]===e[t-1]}function Ho(r){switch(r.length){case 0:throw new Error("unknown value");case 1:return r[0];case 2:throw r[1]}}function Go(r){return r.slice(0)}var $o=(()=>{class r{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++r.count}peek(){if(this.value.length===1&&!Be(this))return Wo(this),this.value[0]}recompute(t){return Mt(!this.recomputing,"already recomputing"),Wo(this),Be(this)?yc(this,t):Ho(this.value)}setDirty(){this.dirty||(this.dirty=!0,Ko(this),_t(this))}dispose(){this.setDirty(),es(this),Fn(this,(t,n)=>{t.setDirty(),ts(t,this)})}forget(){this.dispose()}dependOn(t){t.add(this),this.deps||(this.deps=tr.pop()||new Set),this.deps.add(t)}forgetDeps(){this.deps&&(er(this.deps).forEach(t=>t.delete(this)),this.deps.clear(),tr.push(this.deps),this.deps=null)}}return r.count=0,r})();function Wo(r){let e=ut.getValue();if(e)return r.parents.add(e),e.childValues.has(r)||e.childValues.set(r,[]),Be(r)?Jo(e,r):Xo(e,r),e}function yc(r,e){return es(r),ut.withValue(r,bc,[r,e]),Sc(r,e)&&vc(r),Ho(r.value)}function bc(r,e){r.recomputing=!0;let{normalizeResult:t}=r,n;t&&r.value.length===1&&(n=Go(r.value)),r.value.length=0;try{if(r.value[0]=r.fn.apply(null,e),t&&n&&!Uo(n,r.value))try{r.value[0]=t(r.value[0],n[0])}catch(i){}}catch(i){r.value[1]=i}r.recomputing=!1}function Be(r){return r.dirty||!!(r.dirtyChildren&&r.dirtyChildren.size)}function vc(r){r.dirty=!1,!Be(r)&&Yo(r)}function Ko(r){Fn(r,Jo)}function Yo(r){Fn(r,Xo)}function Fn(r,e){let t=r.parents.size;if(t){let n=er(r.parents);for(let i=0;i<t;++i)e(n[i],r)}}function Jo(r,e){Mt(r.childValues.has(e)),Mt(Be(e));let t=!Be(r);if(!r.dirtyChildren)r.dirtyChildren=tr.pop()||new Set;else if(r.dirtyChildren.has(e))return;r.dirtyChildren.add(e),t&&Ko(r)}function Xo(r,e){Mt(r.childValues.has(e)),Mt(!Be(e));let t=r.childValues.get(e);t.length===0?r.childValues.set(e,Go(e.value)):Uo(t,e.value)||r.setDirty(),Zo(r,e),!Be(r)&&Yo(r)}function Zo(r,e){let t=r.dirtyChildren;t&&(t.delete(e),t.size===0&&(tr.length<gc&&tr.push(t),r.dirtyChildren=null))}function es(r){r.childValues.size>0&&r.childValues.forEach((e,t)=>{ts(r,t)}),r.forgetDeps(),Mt(r.dirtyChildren===null)}function ts(r,e){e.parents.delete(r),r.childValues.delete(e),Zo(r,e)}function Sc(r,e){if(typeof r.subscribe=="function")try{_t(r),r.unsubscribe=r.subscribe.apply(null,e)}catch(t){return r.setDirty(),!1}return!0}var xc={setDirty:!0,dispose:!0,forget:!0};function rr(r){let e=new Map,t=r&&r.subscribe;function n(i){let o=ut.getValue();if(o){let s=e.get(i);s||e.set(i,s=new Set),o.dependOn(s),typeof t=="function"&&(_t(s),s.unsubscribe=t(i))}}return n.dirty=function(o,s){let a=e.get(o);if(a){let l=s&&Bo.call(xc,s)?s:"setDirty";
36er(a).forEach(c=>c[l]()),e.delete(o),_t(a)}},n}var rs;function In(...r){return(rs||(rs=new $(typeof WeakMap=="function"))).lookupArray(r)}var Pn=new Set;function ve(r,{max:e=Math.pow(2,16),keyArgs:t,makeCacheKey:n=In,normalizeResult:i,subscribe:o,cache:s=Qe}=Object.create(null)){let a=typeof s=="function"?new s(e,m=>m.dispose()):s,l=function(){let m=n.apply(null,t?t.apply(null,arguments):arguments);if(m===void 0)return r.apply(null,arguments);let p=a.get(m);p||(a.set(m,p=new $o(r)),p.normalizeResult=i,p.subscribe=o,p.forget=()=>a.delete(m));let h=p.recompute(Array.prototype.slice.call(arguments));return a.set(m,p),Pn.add(a),ut.hasValue()||(Pn.forEach(g=>g.clean()),Pn.clear()),h};Object.defineProperty(l,"size",{get:()=>a.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:e,keyArgs:t,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:a});function c(m){let p=m&&a.get(m);p&&p.setDirty()}l.dirtyKey=c,l.dirty=function(){c(n.apply(null,arguments))};function u(m){let p=m&&a.get(m);if(p)return p.peek()}l.peekKey=u,l.peek=function(){return u(n.apply(null,arguments))};function f(m){return m?a.delete(m):!1}return l.forgetKey=f,l.forget=function(){return f(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=t?function(){return n.apply(null,t.apply(null,arguments))}:n,Object.freeze(l)}function we(r){return{__ref:String(r)}}function ns(r){let e=new Set([r]);return e.forEach(t=>{L(t)&&Cc(t)===t&&Object.getOwnPropertyNames(t).forEach(n=>{L(t[n])&&e.add(t[n])})}),r}function Cc(r){if(!1)try{Object.freeze(r)}catch(e){if(e instanceof TypeError)return null;throw e}return r}function We(r){return!1,r}function Nn(r){let e=r[0]||{},t=r.length;if(t>1){let n=new ie;for(let i=1;i<t;++i)e=n.merge(e,r[i])}return e}function ft(r,e){return se(r,e,e.variables&&{variables:se(y(y({},r&&r.variables),e.variables))})}function Rr(r){return r.catch(()=>{}),r}function An(r,e){ne(e);let t=is(""),n=is(""),i=d=>{for(let b=0,x;b<d.length&&(x=d[b]);++b)if(!R(x)){if(x.kind===D.OPERATION_DEFINITION)return t(x.name&&x.name.value);if(x.kind===D.FRAGMENT_DEFINITION)return n(x.name.value)}return v.error(16),null},o=0;for(let d=e.definitions.length-1;d>=0;--d)e.definitions[d].kind===D.OPERATION_DEFINITION&&++o;let s=Oc(r),a=d=>lt(d)&&d.map(s).some(b=>b&&b.remove),l=new Map,c=!1,u={enter(d){if(a(d.directives))return c=!0,null}},f=Y(e,{Field:u,InlineFragment:u,VariableDefinition:{enter(){return!1}},Variable:{enter(d,b,x,O,_){let M=i(_);M&&M.variables.add(d.name.value)}},FragmentSpread:{enter(d,b,x,O,_){if(a(d.directives))return c=!0,null;let M=i(_);M&&M.fragmentSpreads.add(d.name.value)}},FragmentDefinition:{enter(d,b,x,O){l.set(JSON.stringify(O),d)},leave(d,b,x,O){let _=l.get(JSON.stringify(O));if(d===_)return d;if(o>0&&d.selectionSet.selections.every(M=>M.kind===D.FIELD&&M.name.value==="__typename"))return n(d.name.value).removed=!0,c=!0,null}},Directive:{leave(d){if(s(d))return c=!0,null}}});if(!c)return e;let m=d=>(d.transitiveVars||(d.transitiveVars=new Set(d.variables),d.removed||d.fragmentSpreads.forEach(b=>{m(n(b)).transitiveVars.forEach(x=>{d.transitiveVars.add(x)})})),d),p=new Set;f.definitions.forEach(d=>{d.kind===D.OPERATION_DEFINITION?m(t(d.name&&d.name.value)).fragmentSpreads.forEach(b=>{p.add(b)}):d.kind===D.FRAGMENT_DEFINITION&&o===0&&!n(d.name.value).removed&&p.add(d.name.value)}),p.forEach(d=>{m(n(d)).fragmentSpreads.forEach(b=>{p.add(b)})});let h=d=>!!(!p.has(d)||n(d).removed),g={enter(d){if(h(d.name.value))return null}};return wc(Y(f,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave(d){if(d.variableDefinitions){let b=m(t(d.name&&d.name.value)).transitiveVars;if(b.size<d.variableDefinitions.length)return w(y({},d),{variableDefinitions:d.variableDefinitions.filter(x=>b.has(x.variable.name.value))})}}}}))}function is(r){let e=new Map;return function(n=r){let i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function Oc(r){let e=new Map,t=new Map;return r.forEach(n=>{n&&(n.name?e.set(n.name,n):n.test&&t.set(n.test,n))}),n=>{let i=e.get(n.name.value);return!i&&t.size&&t.forEach((o,s)=>{s(n)&&(i=o)}),i}}function os(r,e){return!r||r.selectionSet.selections.every(t=>t.kind===D.FRAGMENT_SPREAD&&os(e[t.name.value],e))}function wc(r){return os(K(r)||$t(r),ce(le(r)))?null:r}function Rn(r){return Y(r,{FragmentSpread(e){if(!e.directives?.some(({name:t})=>t.value==="unmask"))return null}})}function ke({directives:r},e){return!r||!r.length?!0:Ec(r).every(({directive:t,ifArgument:n})=>{let i=!1;return n.value.kind==="Variable"?(i=e&&e[n.value.name.value],v(i!==void 0,17,t.name.value)):i=n.value.value,t.name.value==="skip"?!i:i})}function kc({name:{value:r}}){return r==="skip"||r==="include"}function Ec(r){let e=[];return r&&r.length&&r.forEach(t=>{if(!kc(t))return;let n=t.arguments,i=t.name.value;v(n&&n.length===1,18,i);let o=n[0];v(o.name&&o.name.value==="if",19,i);let s=o.value;v(s&&(s.kind==="Variable"||s.kind==="BooleanValue"),20,i),e.push({directive:t,ifArgument:o})}),e}function Vn(r,e){let t=null;r.directives&&(t={}
36,r.directives.forEach(i=>{t[i.name.value]={},i.arguments&&i.arguments.forEach(({name:o,value:s})=>De(t[i.name.value],o,s,e))}));let n=null;return r.arguments&&r.arguments.length&&(n={},r.arguments.forEach(({name:i,value:o})=>De(n,i,o,e))),Xt(r.name.value,n,t)}function nr(r){return"dataState"in r?r:w(y({},r),{dataState:r.complete?"complete":r.result===null?"empty":"partial"})}function Ue(r){let e={data:r.data};return r.error&&(e.error=r.error),e}function Tt(r,e=()=>{}){return t=>new G(n=>{let i=e();return t.subscribe({next(o){let s;try{s=r(o,i)}catch(a){n.error(a)}s!==void 0&&n.next(s)},error(o){n.error(o)},complete(){n.complete()}})})}var{toString:ss,hasOwnProperty:_c}=Object.prototype,as=Function.prototype.toString,jn=new Map;function N(r,e){try{return Ln(r,e)}finally{jn.clear()}}function Ln(r,e){if(r===e)return!0;let t=ss.call(r),n=ss.call(e);if(t!==n)return!1;switch(t){case"[object Array]":if(r.length!==e.length)return!1;case"[object Object]":{if(ls(r,e))return!0;let i=cs(r),o=cs(e),s=i.length;if(s!==o.length)return!1;for(let a=0;a<s;++a)if(!_c.call(e,i[a]))return!1;for(let a=0;a<s;++a){let l=i[a];if(!Ln(r[l],e[l]))return!1}return!0}case"[object Error]":return r.name===e.name&&r.message===e.message;case"[object Number]":if(r!==r)return e!==e;case"[object Boolean]":case"[object Date]":return+r==+e;case"[object RegExp]":case"[object String]":return r==`${e}`;case"[object Map]":case"[object Set]":{if(r.size!==e.size)return!1;if(ls(r,e))return!0;let i=r.entries(),o=t==="[object Map]";for(;;){let s=i.next();if(s.done)break;let[a,l]=s.value;if(!e.has(a)||o&&!Ln(l,e.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":r=new Uint8Array(r),e=new Uint8Array(e);case"[object DataView]":{let i=r.byteLength;if(i===e.byteLength)for(;i--&&r[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let i=as.call(r);return i!==as.call(e)?!1:!Dc(i,Tc)}}return!1}function cs(r){return Object.keys(r).filter(Mc,r)}function Mc(r){return this[r]!==void 0}var Tc="{ [native code] }";function Dc(r,e){let t=r.length-e.length;return t>=0&&r.indexOf(e,t)===t}function ls(r,e){let t=jn.get(r);if(t){if(t.has(e))return!0}else jn.set(r,t=new Set);return t.add(e),!1}function ir(r,s,l,o){var a=s,{data:e}=a,t=H(a,["data"]);var c=l,{data:n}=c,i=H(c,["data"]);return N(t,i)&&Vr(Fe(r).selectionSet,e,n,{fragmentMap:ce(le(r)),variables:o})}function Vr(r,e,t,n){if(e===t)return!0;let i=new Set;return r.selections.every(o=>{if(i.has(o)||(i.add(o),!ke(o,n.variables))||us(o))return!0;if(ue(o)){let s=Z(o),a=e&&e[s],l=t&&t[s],c=o.selectionSet;if(!c)return N(a,l);let u=Array.isArray(a),f=Array.isArray(l);if(u!==f)return!1;if(u&&f){let m=a.length;if(l.length!==m)return!1;for(let p=0;p<m;++p)if(!Vr(c,a[p],l[p],n))return!1;return!0}return Vr(c,a,l,n)}else{let s=ye(o,n.fragmentMap);if(s)return us(s)?!0:Vr(s.selectionSet,e,t,n)}})}function us(r){return!!r.directives&&r.directives.some(Fc)}function Fc(r){return r.name.value==="nonreactive"}function Pc(r,e){let t,n;function i(o){return o!==t&&(t=o,n=e(t)),n}return Object.assign(r.pipe(ee(i),bt({bufferSize:1,refCount:!0})),{getCurrentResult:()=>i(r.getCurrentResult())})}var or=ze(function(e,t,n){return Pc(e,n)},{max:1,makeCacheKey:r=>r.slice(0,2)});var sr=Symbol.for("apollo.result.extensions"),Ee=Symbol.for("apollo.result.streamInfo"),qn=Symbol.for("apollo.observableQuery.variablesUnknown"),He=Symbol.for("apollo.cache.handleIncremental");function Qn(...r){return In.bind(null,...r)}function zn(){throw new Error("only supported in development mode")}var fs=zn,ms=zn,ps=zn;var ar=class{isIncrementalResult(e){return!1}prepareRequest(e){return v(!Oe(["defer","stream"],e.query),69),e}extractErrors(){}startRequest=void 0};function Ic(r){return r}var Ne=class r{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new r(Ic,{cache:!1})}static split(e,t,n=r.identity()){return Object.assign(new r(i=>(e(i)?t:n).transformDocument(i),{cache:!1}),{left:t,right:n})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=t.cache!==!1,this.resetCache()}resetCache(){if(this.cached){let e=new $;this.performWork=ve(r.prototype.performWork.bind(this),{makeCacheKey:t=>{let n=this.getCacheKey(t);if(n)return v(Array.isArray(n),22),e.lookupArray(n)},max:q["documentTransform.cache"],cache:Ce})}}performWork(e){return ne(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new r(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;
36right};var cr,Ge=Object.assign(r=>{let e=cr.get(r);return e||(e=Ot(r),cr.set(r,e)),e},{reset(){cr=new st(q.print||2e3)}});Ge.reset();!1;function A(r){return!!(r&&typeof r=="object"&&typeof r.__ref=="string")}var ds={kind:D.FIELD,name:{kind:D.NAME,value:"__typename"}},$e=Object.assign(function(r){return Y(r,{SelectionSet:{enter(e,t,n){if(n&&n.kind===D.OPERATION_DEFINITION)return;let{selections:i}=e;if(!i||i.some(a=>a.kind===D.FIELD&&(a.name.value==="__typename"||a.name.value.lastIndexOf("__",0)===0)))return;let s=n;if(!(s.kind===D.FIELD&&s.directives&&s.directives.some(a=>a.name.value==="export")))return w(y({},e),{selections:[...i,ds]})}}})},{added(r){return r===ds}});function lr(r){return r===7||r===8}function mt(r){return!lr(r)}function Bn(r,{client:e}){let t={query:r.query,variables:r.variables||{},extensions:r.extensions||{},operationName:B(r.query),operationType:K(r.query).operation},n=y({},r.context),i=s=>{typeof s=="function"?n=y(y({},n),s(o())):n=y(y({},n),s)},o=()=>Object.freeze(y({},n));return Object.defineProperty(t,"setContext",{enumerable:!1,value:i}),Object.defineProperty(t,"getContext",{enumerable:!1,value:o}),Object.defineProperty(t,"client",{enumerable:!1,value:e}),t}var Ke=class r{static empty(){return new r(()=>Ze)}static from(e){if(e.length===0)return r.empty();let[t,...n]=e;return t.concat(...n)}static split(e,t,n=new r((i,o)=>o(i))){let i=new r((o,s)=>{let a=e(o);return!1,a?t.request(o,s):n.request(o,s)});return Object.assign(i,{left:t,right:n})}static execute(e,t,n){return e.request(Bn(t,n),()=>(!1,Ze))}static concat(...e){return r.from(e)}constructor(e){e&&(this.request=e)}split(e,t,n){return this.concat(r.split(e,t,n))}concat(...e){return e.length===0?this:e.reduce(this.combine.bind(this),this)}combine(e,t){let n=new r((i,o)=>e.request(i,s=>t.request(s,o)));return Object.assign(n,{left:e,right:t})}request(e,t){throw z(67)}left;right};var pt=Ke.execute;var Dt=class{assumeImmutableResults=!1;lookupFragment(e){return null}getRootTypename(e){return vn(e)}getScalar(e){}getScalarTypeForField(e,t){}configuresScalars(){return!1}serializeVariables(e,t){return t}batch(e){let t=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,n;return this.performTransaction(()=>n=e.update(this),t),n}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read(w(y({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))}fragmentWatches=new $(!0);watchFragment(e){let{fragment:t,fragmentName:n,from:i}=e,o=this.getFragmentDoc(t,n),a=(Array.isArray(i)?i:[i]).map(p=>{let h=p==null?p:this.toCacheId(p);if(!1){let g=n||$t(t).name.value;h===void 0&&!1&&v.warn(126,g)}return h});if(!Array.isArray(i)){let p=this.watchSingleFragment(a[0],o,e);return i===null?p:or(p,Symbol.for("apollo.transform.individualResult"),h=>w(y({},h),{data:h.data??{}}))}let l;function c(p){let h=p.reduce((g,d,b)=>(g.data.push(d.data),g.complete&&=d.complete,g.dataState=g.complete?"complete":"partial",d.missing&&(g.missing||={},g.missing[b]=d.missing),g),{data:[],dataState:"complete",complete:!0});return N(l,h)||(l=h),l}if(a.length===0)return Ac;let u=!1,f=a.map(p=>this.watchSingleFragment(p,o,e)),m=En(f).pipe(ee(c),je({subscribe:()=>u=!0,unsubscribe:()=>u=!1}),bt({bufferSize:1,refCount:!0}));return Object.assign(m,{getCurrentResult:()=>{if(u&&l)return l;let p=f.map(h=>h.getCurrentResult());return c(p)}})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,n){if(e===null)return Nc;let{optimistic:i=!0,variables:o}=n,s=[t,W({id:e,optimistic:i,variables:o})],a=this.fragmentWatches.lookupArray(s);if(!a.observable){let f=function(p){let h=p.result;return(!u||!ir(t,{data:u.data},{data:h},n.variables))&&(u={data:h,dataState:p.complete?"complete":"partial",complete:p.complete},p.missing&&(u.missing=p.missing.missing)),u};var l=f;let c=!1,u,m=new G(p=>{c=!0;let h=this.watch({variables:o,returnPartialData:!0,id:e,query:t,optimistic:i,immediate:!0,callback:g=>{m.dirty=!0,this.onAfterBroadcast(()=>{p.next(f(g)),m.dirty=!1})}});return()=>{c=!1,h(),this.fragmentWatches.removeArray(s)}}).pipe(Mi(),tt({connector:()=>new Ci(1),resetOnRefCountZero:()=>yr(0)}));a.observable=Object.assign(m,{dirty:!1,getCurrentResult:()=>c&&u?u:f(this.diff({id:e,query:t,returnPartialData:!0,optimistic:i,variables:o}))})}return a.observable}getFragmentDoc=ve(_n,{max:q["cache.fragmentQueryDocuments"]||1e3,cache:Ce,makeCacheKey:Qn(this)});
36readFragment(e,t=!!e.optimistic){let n=e.from!==void 0?this.toCacheId(e.from):e.id;return this.read(w(y({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:n,optimistic:t}))}writeQuery(i){var o=i,{id:e,data:t}=o,n=H(o,["id","data"]);return this.write(Object.assign(n,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment(o){var s=o,{data:e,fragment:t,fragmentName:n}=s,i=H(s,["data","fragment","fragmentName"]);let a=i.from!==void 0?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(t,n),dataId:a,result:e}))}updateQuery(e,t){return this.batch({update(n){let i=n.readQuery(e),o=t(i);return o==null?i:(n.writeQuery(w(y({},e),{data:o})),o)}})}updateFragment(e,t){return this.batch({update(n){let i=n.readFragment(e),o=t(i);return o==null?i:(n.writeFragment(w(y({},e),{data:o})),o)}})}toCacheId(e){return typeof e=="string"?e:this.identify(e)}};!1;var hs=Object.freeze({data:null,dataState:"complete",complete:!0}),Nc=Object.assign(new G(r=>{r.next(hs)}),{dirty:!1,getCurrentResult:()=>hs}),gs=Object.freeze({data:[],dataState:"complete",complete:!0}),Ac=Object.assign(new G(r=>{r.next(gs)}),{getCurrentResult:()=>gs});var ur=class r extends Error{message;path;query;variables;constructor(e,t,n,i){if(super(e),this.message=e,this.path=t,this.query=n,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let o=this.path.length-1;o>=0;--o)this.missing={[this.path[o]]:this.missing}}else this.missing=this.path;this.__proto__=r.prototype}missing};var{hasOwnProperty:U}=Object.prototype;function qr({__typename:r,id:e,_id:t},n){if(typeof r=="string"&&(n&&(n.keyObject=e!=null?{id:e}:t!=null?{_id:t}:void 0),e==null&&t!=null&&(e=t),e!=null))return`${r}:${typeof e=="number"||typeof e=="string"?e:JSON.stringify(e)}`}var Rc={dataIdFromObject:qr,resultCaching:!0};function ys(r){return se(Rc,r)}function bs(r,e){return A(e)?r.get(e.__ref,"__typename"):e&&e.__typename}var Wn=/^[_a-z][_0-9a-z]*/i;function pe(r){let e=r.match(Wn);return e?e[0]:r}function jr(r,e,t){return L(e)?R(e)?e.every(n=>jr(r,n,t)):r.selections.every(n=>{if(ue(n)&&ke(n,t)){let i=Z(n);return U.call(e,i)&&(!n.selectionSet||jr(n.selectionSet,e[i],t))}return!0}):!1}function Ye(r){return L(r)&&!A(r)&&!R(r)}function vs(){return new ie}function Qr(r,e){let t=ce(le(r));return{fragmentMap:t,lookupFragment(n){let i=t[n];return!i&&e&&(i=e.lookup(n)),i||null}}}function Lr(r){switch(r.kind){case D.NAMED_TYPE:return r.name.value;case D.LIST_TYPE:return`[${Lr(r.type)}]`;case D.NON_NULL_TYPE:return Lr(r.type)}}var zr={},Un=()=>zr,Ss={},dt=class{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return y({},this.data)}has(e){return this.lookup(e,!0)!==void 0}get(e,t){if(this.group.depend(e,t),U.call(this.data,e)){let n=this.data[e];if(n&&U.call(n,t))return n[t]}if(t==="__typename"&&U.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof _e)return this.parent.get(e,t)}lookup(e,t){if(t&&this.group.depend(e,"__exists"),U.call(this.data,e))return this.data[e];if(this instanceof _e)return this.parent.lookup(e,t);if(this.policies.rootTypenamesById[e])return{}}merge(e,t){let n;A(e)&&(e=e.__ref),A(t)&&(t=t.__ref);let i=typeof e=="string"?this.lookup(n=e):e,o=typeof t=="string"?this.lookup(n=t):t;if(!o)return;v(typeof n=="string",108),o=this.coerceStoreObject(o,(a,l)=>a.coerceToParsed(l),o.__typename||i?.__typename||this.policies.rootTypenamesById[n]);let s=new ie({reconciler:Vc}).merge(i,o);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){let a={};i||(a.__exists=1),Object.keys(o).forEach(l=>{if(!i||i[l]!==s[l]){a[l]=1;let c=pe(l);c!==l&&!this.policies.hasKeyArgs(s.__typename,c)&&(a[c]=1),s[l]===void 0&&!(this instanceof _e)&&delete s[l]}}),a.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete a.__typename,Object.keys(a).forEach(l=>this.group.dirty(n,l))}}modify(e,t,n){let i=this.lookup(e);if(i){let o={},s=!1,a=!0,l={DELETE:zr,INVALIDATE:Ss,isReference:A,toReference:this.toReference,canRead:this.canRead,readField:(c,u)=>this.policies.readField(typeof c=="string"?{fieldName:c,from:u||we(e)}:c,{store:this})};
36if(Object.keys(i).forEach(c=>{let u=pe(c),f=i[c];if(f===void 0)return;let m=typeof t=="function"?t:t[c]||(n?void 0:t[u]);if(m){let p=m===Un?zr:m(We(f),w(y({},l),{fieldName:u,storeFieldName:c,storage:this.getStorage(e,c)}));if(p===Ss)this.group.dirty(e,c);else if(p===zr&&(p=void 0),p!==f&&(o[c]=p,s=!0,f=p,!1)){let h=g=>{if(this.lookup(g.__ref)===void 0)return!1,!0};if(A(p))h(p);else if(Array.isArray(p)){let g=!1,d;for(let b of p){if(A(b)){if(g=!0,h(b))break}else if(typeof b=="object"&&b){let[x]=this.policies.identify(b);x&&(d=b)}if(g&&d!==void 0){!1;break}}}}}f!==void 0&&(a=!1)}),s)return this.merge(e,o),a&&(this instanceof _e?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,n){let i=this.lookup(e);if(i){let o=this.getFieldValue(i,"__typename"),s=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,s?{[s]:Un}:Un,!!n)}return!1}evict(e,t){let n=!1;return e.id&&(U.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof _e&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n}clear(){this.replace(null)}extract(){let e=this.toObject();this.hasScalarConfig()&&(e=Object.fromEntries(Object.entries(e).map(([n,i])=>[n,i&&this.coerceStoreObject(i,(o,s)=>o.coerceToSerialized(s),i?.__typename||this.policies.rootTypenamesById[n])])));let t=[];return this.getRootIdSet().forEach(n=>{U.call(this.policies.rootTypenamesById,n)||t.push(n)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}hasScalarConfig(){return!!this.policies.cache.config.scalars}coerceStoreObject(e,t,n=e.__typename){if(!n||!this.hasScalarConfig())return e;let i=!1,o=Object.entries(e).map(([s,a])=>{let l=pe(s),c=this.policies.getScalarTypeForField(n,l),u=this.coerceValue(a,t,c,`${n}.${l}`);return i||=u!==a,[s,u]});return i?Object.fromEntries(o):e}coerceValue(e,t,n,i){if(e==null)return e;if(n){let o=at(n);if(o){if(Array.isArray(e))return e.map(a=>this.coerceValue(a,t,o[1],i));!1}let s=this.policies.cache.getScalar(be(n));if(s)return t(s,e)}return Array.isArray(e)?e.map(o=>this.coerceValue(o,t,n,i)):Zt(e)&&"__typename"in e?this.coerceStoreObject(e,t):e}replace(e){if(Object.keys(this.data).forEach(n=>{e&&U.call(e,n)||this.delete(n)}),e){let t=e,{__META:n}=t,i=H(t,["__META"]);
36Object.keys(i).forEach(o=>{this.merge(o,i[o])}),n&&n.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof _e?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(i=>{U.call(t,i)&&(Object.keys(this.findChildRefIds(i)).forEach(e.add,e),delete t[i])});let n=Object.keys(t);if(n.length){let i=this;for(;i instanceof _e;)i=i.parent;n.forEach(o=>i.delete(o))}return n}refs={};findChildRefIds(e){if(!U.call(this.refs,e)){let t=this.refs[e]={},n=this.data[e];if(!n)return t;let i=new Set([n]);i.forEach(o=>{A(o)&&(t[o.__ref]=!0),L(o)&&Object.keys(o).forEach(s=>{let a=o[s];L(a)&&i.add(a)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>We(A(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>A(e)?this.has(e.__ref):typeof e=="object";toReference=(e,t)=>{if(typeof e=="string")return we(e);if(A(e))return e;let[n]=this.policies.identify(e);if(n){let i=we(n);return t&&this.merge(n,e),i}};get supportsResultCaching(){return this.group.caching}},Br=class{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?rr():null,this.keyMaker=new $}depend(e,t){if(this.d){this.d(Hn(e,t));let n=pe(t);n!==t&&this.d(Hn(e,n)),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(Hn(e,t),t==="__exists"?"forget":"setDirty")}};function Hn(r,e){return e+"#"+r}function Kn(r,e){Ae(r)&&r.group.depend(e,"__exists")}var Gn=class extends dt{constructor({policies:e,resultCaching:t=!0,seed:n}){super(e,new Br(t)),n&&this.replace(n)}stump=new $n(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new $;getStorage(){return this.storageTrie.lookupArray(arguments)}};dt.Root=Gn;var _e=class r extends dt{id;parent;replay;group;constructor(e,t,n,i){super(t.policies,i),this.id=e,this.parent=t,this.replay=n,this.group=i,n(this)}addLayer(e,t){return new r(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(n=>{let i=this.data[n],o=t.lookup(n);
36o?i?i!==o&&Object.keys(i).forEach(s=>{N(i[s],o[s])||this.group.dirty(n,s)}):(this.group.dirty(n,"__exists"),Object.keys(o).forEach(s=>{this.group.dirty(n,s)})):this.delete(n)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return y(y({},this.parent.toObject()),this.data)}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return U.call(this.data,e)?y(y({},t),super.findChildRefIds(e)):t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}},$n=class extends _e{constructor(e){super("EntityStore.Stump",e,()=>{},new Br(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}};function Vc(r,e,t){let n=r[t],i=e[t];return N(n,i)?n:i}function Ae(r){return!!(r&&r.supportsResultCaching)}var Ft=new Ie;function xs(r){let e=r.directives?.find(({name:n})=>n.value==="unmask");if(!e)return"mask";let t=e.arguments?.find(({name:n})=>n.value==="mode");return!1,t&&"value"in t.value&&t.value.value==="migrate"?"migrate":"unmask"}function Wr(r,e,t){return Ft.withValue(!0,()=>{let n=fr(r,e,t,!1);return Object.isFrozen(r)&&We(n),n})}function jc(r,e){if(e.has(r))return e.get(r);let t=Array.isArray(r)?[]:{};return e.set(r,t),t}function fr(r,e,t,n,i){let{knownChanged:o}=t,s=jc(r,t.mutableTargets);if(Array.isArray(r)){for(let[a,l]of Array.from(r.entries())){if(l===null){s[a]=null;continue}let c=fr(l,e,t,n,void 0);o.has(c)&&o.add(s),s[a]=c}return o.has(s)?s:r}for(let a of e.selections){let l;if(n&&o.add(s),a.kind===D.FIELD){let c=Z(a),u=a.selectionSet;if(l=s[c]||r[c],l===void 0)continue;if(u&&l!==null){let f=fr(r[c],u,t,n,void 0);o.has(f)&&(l=f)}s[c]=l,!1}if(a.kind===D.INLINE_FRAGMENT&&(!a.typeCondition||t.cache.fragmentMatches(a,r.__typename))&&(l=fr(r,a.selectionSet,t,n,i)),a.kind===D.FRAGMENT_SPREAD){let c=a.name.value,u=t.fragmentMap[c]||(t.fragmentMap[c]=t.cache.lookupFragment(c));v(u,41,c);let f=xs(a);f!=="mask"&&(l=fr(r,u.selectionSet,t,f==="migrate",i))}o.has(l)&&o.add(s)}return"__typename"in r&&!("__typename"in s)&&(s.__typename=r.__typename),Object.keys(s).length!==Object.keys(r).length&&o.add(s),o.has(s)?s:r}function Lc(r,e,t,n,i){let o=()=>(Ft.getValue()||(!1,o=()=>e),e);return{get(){return o()},set(s){o=()=>s},enumerable:!0,configurable:!0}}function Yn(r,e,t,n){let i=e.definitions.filter(s=>s.kind===D.FRAGMENT_DEFINITION);typeof n>"u"&&(v(i.length===1,43,i.length),n=i[0].name.value);let o=i.find(s=>s.name.value===n);return v(!!o,44,n),r==null||N(r,{})?r:Wr(r,o.selectionSet,{operationType:"fragment",operationName:o.name.value,fragmentMap:ce(le(e)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})}function Jn(r,e,t){let n=K(e);return v(n,45),r==null?r:Wr(r,n.selectionSet,{operationType:n.operation,operationName:n.name?.value,fragmentMap:ce(le(e)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})}var Cs={};function Xn(r){let e=JSON.stringify(r);return Cs[e]||(Cs[e]={})}function Zn(r){let e=Xn(r);return e.keyFieldsFn||(e.keyFieldsFn=(t,n)=>{let i=(s,a)=>n.readField(a,s),o=n.keyObject=ti(r,s=>{let a=Pt(n.storeObject,s,i);return a===void 0&&t!==n.storeObject&&U.call(t,s[0])&&(a=Pt(t,s,ws)),v(a!==void 0,113,s.join("."),t),a});return`${n.typename}:${JSON.stringify(o)}`})}function ei(r){let e=Xn(r);return e.keyArgsFn||(e.keyArgsFn=(t,{field:n,variables:i,fieldName:o})=>{let s=ti(r,l=>{let c=l[0],u=c.charAt(0);if(u==="@"){if(n&<(n.directives)){let f=c.slice(1),m=n.directives.find(h=>h.name.value===f),p=m&&ot(m,i);return p&&Pt(p,l.slice(1))}return}if(u==="$"){let f=c.slice(1);if(i&&U.call(i,f)){let m=l.slice(0);return m[0]=f,Pt(i,m)}return}if(t)return Pt(t,l)}),a=JSON.stringify(s);return(t||a!=="{}")&&(o+=":"+a),o})}function ti(r,e){let t=new ie;return Os(r).reduce((n,i)=>{let o=e(i);if(o!==void 0){for(let s=i.length-1;s>=0;--s)o={[i[s]]:o};n=t.merge(n,o)}return n},{})}function Os(r){let e=Xn(r);if(!e.paths){let t=e.paths=[],n=[];r.forEach((i,o)=>{R(i)?(Os(i).forEach(s=>t.push(n.concat(s))),n.length=0):(n.push(i),R(r[o+1])||(t.push(n.slice(0)),n.length=0))})}return e.paths}function ws(r,e){return r[e]}function Pt(r,e,t){return t=t||ws,ks(e.reduce(function n(i,o){return R(i)?i.map(s=>n(s,o)):i&&t(i,o)},r))}function ks(r){return L(r)?R(r)?r.map(ks):ti(Object.keys(r).sort(),e=>Pt(r,e)):r}var ri=new Ie,Es=new WeakMap;function mr(r){let e=Es.get(r);return e||Es.set(r,e={vars:new Set,dep:rr()}),e}
36function ni(r){mr(r).vars.forEach(e=>e.forgetCache(r))}function _s(r){mr(r).vars.forEach(e=>e.attachCache(r))}function ii(r){let e=new Set,t=new Set,n=function(o){if(arguments.length>0){if(r!==o){r=o,e.forEach(a=>{mr(a).dep.dirty(n),qc(a)});let s=Array.from(t);t.clear(),s.forEach(a=>a(r))}}else{let s=ri.getValue();s&&(i(s),mr(s).dep(n))}return r};n.onNextChange=o=>(t.add(o),()=>{t.delete(o)});let i=n.attachCache=o=>(e.add(o),mr(o).vars.add(n),n);return n.forgetCache=o=>e.delete(o),n}function qc(r){r.broadcastWatches&&r.broadcastWatches()}function si(r){return r.args!==void 0?r.args:r.field?ot(r.field,r.variables):null}var Qc=()=>{},Ms=(r,e)=>e.fieldName,Ts=(r,e,{mergeObjects:t})=>t(r,e),Ds=(r,e)=>e,Fs=(r,e,{streamFieldInfo:t,existingData:n})=>{if(!r&&!n)return e;let i=[],o=r??n,s=t?.isLastChunk?e.length:Math.max(o.length,e.length);for(let a=0;a<s;a++)i[a]=e[a]===void 0?o[a]:e[a];return i},Ur=class{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config=y({dataIdFromObject:qr},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)}identify(e,t){let n=this,i=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let o=t&&t.storeObject||e,s=w(y({},t),{typename:i,storeObject:o,readField:t&&t.readField||((...u)=>{let f=Hr(u,o);return n.readField(f,{store:n.cache.data,variables:f.variables})})}),a,l=i&&this.getTypePolicy(i),c=l&&l.keyFn||this.config.dataIdFromObject;return Ft.withValue(!0,()=>{for(;c;){let u=c(y(y({},e),o),s);if(R(u))c=Zn(u);else{a=u;break}}}),a=a?String(a):void 0,s.keyObject?[a,s.keyObject]:[a]}addTypePolicies(e){Object.keys(e).forEach(t=>{let a=e[t],{queryType:n,mutationType:i,subscriptionType:o}=a,s=H(a,["queryType","mutationType","subscriptionType"]);n&&this.setRootTypename("Query",t),i&&this.setRootTypename("Mutation",t),o&&this.setRootTypename("Subscription",t),U.call(this.toBeAdded,t)?this.toBeAdded[t].push(s):this.toBeAdded[t]=[s]})}updateTypePolicy(e,t,n){let i=this.getTypePolicy(e),{keyFields:o,fields:s}=t;function a(l,c){l.merge=typeof c=="function"?c:c===!0?Ts:c===!1?Ds:l.merge}a(i,t.merge),i.keyFn=o===!1?Qc:R(o)?Zn(o):typeof o=="function"?o:i.keyFn,s&&Object.keys(s).forEach(l=>{let c=n[l];(!c||c?.typename!==e)&&(c=n[l]={typename:e});let u=s[l];if(typeof u=="function")c.scalar?!1:c.read=u;else{let{keyArgs:f,read:m,merge:p,scalar:h}=u;h&&(c.scalar=h),c.scalar&&(!1,c.read=m=void 0,c.merge=p=void 0),c.keyFn=f===!1?Ms:R(f)?ei(f):typeof f=="function"?f:c.keyFn,typeof m=="function"&&(c.read=m),a(c,p)}c.read&&c.merge&&(c.keyFn=c.keyFn||Ms)})}setRootTypename(e,t=e){let n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];t!==i&&(v(!i||i===e,114,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(n=>{this.getSupertypeSet(n,!0).add(t);let i=n.match(Wn);(!i||i[0]!==n)&&this.fuzzySubtypes.set(n,new RegExp(n))})})}getTypePolicy(e){if(!U.call(this.typePolicies,e)){let n=this.typePolicies[e]={};n.fields={};let i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((o,s)=>{if(o.test(e)){let a=this.supertypeMap.get(s);a&&a.forEach(l=>i.add(l))}})),i&&i.size&&i.forEach(o=>{let l=this.getTypePolicy(o),{fields:s}=l,a=H(l,["fields"]);Object.assign(n,a),Object.assign(n.fields,s)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(n=>{this.updateTypePolicy(e,n,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n}fragmentMatches(e,t,n,i){if(!e.typeCondition)return!0;
36if(!t)return!1;let o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o)){let s=this.getSupertypeSet(t,!0),a=[s],l=f=>{let m=this.getSupertypeSet(f,!1);m&&m.size&&a.indexOf(m)<0&&a.push(m)},c=!!(n&&this.fuzzySubtypes.size),u=!1;for(let f=0;f<a.length;++f){let m=a[f];if(m.has(o))return s.has(o)||(u&&!1&&v.warn(115,t,o),s.add(o)),!0;m.forEach(l),c&&f===a.length-1&&jr(e.selectionSet,n,i)&&(c=!1,u=!0,this.fuzzySubtypes.forEach((p,h)=>{let g=t.match(p);g&&g[0]===t&&l(h)}))}}return!1}hasKeyArgs(e,t){let n=this.getFieldPolicy(e,t);return!!(n&&n.keyFn)}getStoreFieldName(e){let{typename:t,fieldName:n}=e,i=this.getFieldPolicy(t,n),o,s=i&&i.keyFn;if(s&&t){let a={typename:t,fieldName:n,field:e.field||null,variables:e.variables},l=si(e);for(;s;){let c=s(l,a);if(R(c))s=ei(c);else{o=c||n;break}}}return o===void 0&&(o=e.field?Vn(e.field,e.variables):Xt(n,si(e))),o===!1?n:n===pe(o)?o:n+":"+o}getScalarTypeForField(e,t){return this.getFieldPolicy(e,t)?.scalar}readField(e,t){let n=e.from;if(!n||!(e.field||e.fieldName))return;if(e.typename===void 0){let u=t.store.getFieldValue(n,"__typename");u&&(e.typename=u)}let o=this.getStoreFieldName(e),s=pe(o),a=t.store.getFieldValue(n,o),l=this.getFieldPolicy(e.typename,s),c=l&&l.read;if(c){let u=Ps(this,n,e,t,t.store.getStorage(A(n)?n.__ref:n,o));return ri.withValue(this.cache,c,[a,u])}return a}getReadFunction(e,t){let n=this.getFieldPolicy(e,t);return n&&n.read}getMergeFunction(e,t,n){let i=this.getFieldPolicy(e,t),o=i&&i.merge;return!o&&n&&(i=this.getTypePolicy(n),o=i&&i.merge),o}runMergeFunction(e,t,{field:n,typename:i,merge:o,path:s},a,l){let c=e;if(o===Ts)return Is(a.store)(e,t);if(o===Ds)return t;a.overwrite&&(e=void 0);let u=a.extensions?.[Ee]?.deref()?.peekArray(s);if(u){let{current:m,previous:p}=u;if(p&&N(p.incoming,t)&&N(p.streamFieldInfo,m))return p.result}let f=o(e,t,zc(this,void 0,{typename:i,fieldName:n.name.value,field:n,variables:a.variables,path:s},a,l||{},c));return u&&(u.previous={incoming:t,streamFieldInfo:u.current,result:f}),f}};function Ps(r,e,t,n,i){let o=r.getStoreFieldName(t),s=pe(o),a=t.variables||n.variables,{toReference:l,canRead:c}=n.store;return{args:si(t),field:t.field||null,fieldName:s,storeFieldName:o,variables:a,isReference:A,toReference:l,storage:i,cache:r.cache,canRead:c,readField(...u){return r.readField(Hr(u,e,a),n)},mergeObjects:Is(n.store)}}function zc(r,e,t,n,i,o){var l;let s=w(y({},Ps(r,e,t,n,i)),{extensions:n.extensions,existingData:o}),a=n.extensions;if(a&&Ee in a){let c=a,{[l=Ee]:u}=c,f=H(c,[hr(l)]),m=u?.deref()?.peekArray(t.path);m&&(s.streamFieldInfo=m.current),s.extensions=Object.keys(f).length===0?void 0:f}return s}function Hr(r,e,t){let{0:n,1:i,length:o}=r,s;return typeof n=="string"?s={fieldName:n,from:o>1?i:e}:(s=y({},n),U.call(s,"from")||(s.from=e)),!1,s.variables===void 0&&(s.variables=t),s}function Is(r){return function(t,n){if(R(t)||R(n))throw z(117);if(L(t)&&L(n)){let i=r.getFieldValue(t,"__typename"),o=r.getFieldValue(n,"__typename");if(i&&o&&i!==o)return n;if(A(t)&&Ye(n))return r.merge(t.__ref,n),t;if(Ye(t)&&A(n))return r.merge(t,n.__ref),n;if(Ye(t)&&Ye(n))return y(y({},t),n)}return n}}function oi(r,e,t,n){!1}function Ns(r){return[r.selectionSet,r.objectOrReference,r.context]}var Gr=class{executeSelectionSet;executeSubSelectedArray;prunePartialStreamArray;prunePartialBoundaries;config;knownResults=new WeakMap;keyMaker=new $;constructor(e){this.config=e,this.executeSelectionSet=ve(t=>{let n=Ns(t),i=this.executeSelectionSet.peek(...n);return i||(Kn(t.context.store,t.enclosingRef.__ref),this.execSelectionSetImpl(t))},{max:q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Ns,makeCacheKey(t,n,i){if(Ae(i.store))return i.store.makeCacheKey(t,A(n)?n.__ref:n,i.varString)}}),this.executeSubSelectedArray=ve(t=>(Kn(t.context.store,t.enclosingRef.__ref),this.execSubSelectedArrayImpl(t)),{max:q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:t,array:n,context:i}){if(Ae(i.store))return i.store.makeCacheKey(t,n,i.varString)}}),this.prunePartialBoundaries=ve(t=>this.prunePartialBoundariesImpl(t),{max:q["inMemoryCache.prunePartialBoundaries"]||2e4,makeCacheKey:({boundaries:t,context:n,selectionSet:i})=>{if(Ae(n.store))return this.keyMaker.lookup(i,t,n.streamInfo,n.deferInfo)}}),this.prunePartialStreamArray=ve(t=>{let{field:n,context:i,path:o}=t;return Et(n,i.variables)&&i.streamInfo?.lookupArray(o).state.depend(),this.prunePartialStreamArrayImpl(t)},{max:q["inMemoryCache.prunePartialStreamArray"]||2e4,makeCacheKey:({field:t,context:n,boundaries:i})=>{if(Ae(n.store))return this.keyMaker.lookup(t,i,n.streamInfo,n.deferInfo)}})}diffQueryAgainstStore(a){var l=a,{store:e,query:t,rootId:n="ROOT_QUERY",variables:i,returnPartialData:o=!0}=l,s=H(l,["store","query","rootId","variables","returnPartialData"]);let c=Object.hasOwn(s,He),u=this.config.cache.policies;i=se(ct(Kt(t)),i);let f=we(n),m=y(y({store:e,query:t,policies:u,variables:i,varString:W(i)},Qr(t,this.config.fragments)),s[He]),p=this.executeSelectionSet({selectionSet:Fe(t).selectionSet,objectOrReference:f,enclosingRef:f,context:m});if(c&&Uc(p,m)){let I=this.prunePartialBoundaries({selectionSet:Fe(t).selectionSet,data:p.result,boundaries:p.partialBoundaries,context:m,path:[]});(!(p.result!==I.result)||!o)&&(p={result:I.result,partialBoundaries:p.partialBoundaries,dataState:I.dataState})}let{result:h,dataState:g,missing:d}=p,b=!!d&&(g!=="streaming"||!c);g==="streaming"&&Object.keys(h).length===0&&(g="empty");let x;(g==="deferPartial"||g==="streamPartial"||g==="streaming"&&!c)&&(g="partial"),g==="partial"&&!o&&(g="empty");let O=g==="complete",M={result:O||g==="streaming"||o&&Object.keys(h).length?h:null,complete:O,get missing(){return b&&(x||=new ur(Bc(d),d,t,i
36)),x}};return c&&(M.dataState=g),M}isFresh(e,t,n,i){if(Ae(i.store)&&this.knownResults.get(e)===n){let o=this.executeSelectionSet.peek(n,t,i);if(o&&e===o.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:n,context:i}){if(A(t)&&!i.policies.rootTypenamesById[t.__ref]&&!i.store.has(t.__ref))return{result:{},dataState:"empty",missing:`Dangling reference to missing ${t.__ref} object`,partialBoundaries:new pr};let{variables:o,policies:s,store:a}=i,l=a.getFieldValue(t,"__typename"),c=[],u,f,m=new ie,p=new pr;typeof l=="string"&&!s.rootIdsByTypename[l]&&c.push({__typename:l});function h(O,_){return O.missing&&(f=m.merge(f,{[_]:O.missing})),O}new Set(e.selections).forEach(O=>{if(ke(O,o))if(ue(O)){let _=s.readField({fieldName:O.name.value,field:O,variables:i.variables,from:t},i),M=Z(O);if(_===void 0){if(!$e.added(O)){let I=A(t)?t.__ref:t?s.identify(t)[0]:void 0;f=m.merge(f,{[M]:`Can't find field '${O.name.value}' on ${I?`${I} object`:`object ${JSON.stringify(t||{},null,2)}`}`}),u=Se(u,"empty")}}else if(R(_))if(_.length>0){let I=h(this.executeSubSelectedArray({field:O,array:_,enclosingRef:n,context:i}),M);_=I.result,u=Se(u,I.dataState),p.set(M,I.partialBoundaries)}else u=Se(u,"complete");else if(!O.selectionSet)$e.added(O)||(u=Se(u,"complete"));else if(_!=null){if(!1){let ae=O.name.value;if(l){let Me=s.getFieldPolicy(l,ae);Me?.scalar&&!1&&v.warn(119,`${l}.${ae}`,Me.scalar)}}let I=h(this.executeSelectionSet({selectionSet:O.selectionSet,objectOrReference:_,enclosingRef:A(_)?_:n,context:i}),M);_=I.result,p.set(M,I.partialBoundaries),u=Se(u,I.dataState==="empty"?"partial":I.dataState)}_!==void 0&&c.push({[M]:_})}else{let _=ye(O,i.lookupFragment);if(!_&&O.kind===D.FRAGMENT_SPREAD)throw z(120,O.name.value);if(_&&s.fragmentMatches(_,l)){let M=Ar(O,i.variables),I=this.execSelectionSetImpl({selectionSet:_.selectionSet,objectOrReference:t,enclosingRef:n,context:i}),{result:ae,dataState:Me}=I;p.merge(I.partialBoundaries),ae!==void 0&&c.push(ae),I.missing&&(f=m.merge(f,I.missing)),M&&(Me==="partial"||Me==="empty")&&p.add(O),u=Se(u,M?Me==="empty"?"streaming":Me==="partial"?"deferPartial":Me:Me)}}}),u||="complete";let b={result:Nn(c),missing:f,dataState:u,partialBoundaries:p},x=We(b);return x.result&&this.knownResults.set(x.result,e),x}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:n,context:i}){let o="complete",s,a=new ie,l=new pr,c=Et(e,i.variables);function u(f,m){return f.missing&&(s=a.merge(s,{[m]:f.missing})),f.result}return e.selectionSet&&(t=t.filter(f=>f===void 0||i.store.canRead(f))),t=t.map((f,m)=>{if(f===null)return null;let p;if(R(f)?p=this.executeSubSelectedArray({field:e,array:f,enclosingRef:n,context:i}):e.selectionSet&&(p=this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:f,enclosingRef:A(f)?f:n,context:i})),p){let{dataState:h}=p;return l.set(m,h==="partial"?p.partialBoundaries.clone().add(e):p.partialBoundaries),o=Se(o,c&&h==="partial"?"streamPartial":h),u(p,m)}return!1,f}),{result:t,dataState:o,missing:s,partialBoundaries:l}}prunePartialBoundariesImpl({boundaries:e,context:t,data:n,path:i,selectionSet:o}){let{variables:s,lookupFragment:a,policies:l}=t;if(n==null||!e)return{result:n,dataState:"complete"};let c=new ie,u=!1,f="complete",m={};Object.hasOwn(n,"__typename")&&(m.__typename=n.__typename);let p=new Set(o.selections);return p.forEach(h=>{if(!ke(h,s))return;if(ue(h)){let b=Z(h);if(!Object.hasOwn(n,b))return;let x=n[b];if(Array.isArray(x)){let O=this.prunePartialStreamArray({field:h,array:x,boundaries:e.getChild(b),context:t,path:i.concat(b)});u||=O.result!==x,m[b]=O.result,f=Se(f,O.dataState)}else if(!h.selectionSet)m[b]=x;else{let O=this.prunePartialBoundaries({data:x,selectionSet:h.selectionSet,boundaries:e.getChild(b),context:t,path:i.concat(b)});u||=O.result!==x,f=Se(f,O.dataState),m[b]=Object.hasOwn(m,b)?c.merge(m[b],O.result):O.result}return}let g=ye(h,a),d=!1;if(t.deferInfo&&Ar(h,s)){let b=h.directives?.find(O=>O.name.value==="defer"),x=b&&gn(b,"label",D.STRING);d=!!t.deferInfo.peekArray(i.concat(x||[]))}g&&l.fragmentMatches(g,n.__typename)&&(e.has(h)||d?f=Se(f,"streaming"):g.selectionSet.selections.forEach(p.add,p))}),Object.keys(m).length!==Object.keys(n).length?u=!0:u&&e.hasSelections()&&(u=!N(m,n)),{result:u?m:n,dataState:f}}prunePartialStreamArrayImpl({field:e,array:t,boundaries:n,context:i,path:o}
36){if(!n)return{result:t,dataState:"complete"};let s=!1,a="complete",l=[],c=i.streamInfo?.peekArray(o)?.state,u=Math.min(t.length,c?.truncate?c.streamPosition:Number.MAX_SAFE_INTEGER);for(let f=0;f<u;f++){let m=t[f],p={result:m,dataState:"complete"};if(n.getChild(f)?.has(e)){c?(c.truncate=!0,l=l.slice(0,c.streamPosition)):(l=[],a="complete");break}Array.isArray(m)?p=this.prunePartialStreamArray({field:e,array:m,boundaries:n.getChild(f),context:i,path:o.concat(f)}):e.selectionSet&&(p=this.prunePartialBoundaries({data:m,selectionSet:e.selectionSet,boundaries:n.getChild(f),context:i,path:o.concat(f)})),l.push(p.result),s||=p.result!==m,a=Se(a,p.dataState)}return s||=l.length!==t.length,{result:s?l:t,dataState:a}}};function Bc(r){try{JSON.stringify(r,(e,t)=>{if(typeof t=="string")throw t;return t})}catch(e){return e}}function Wc(r,e,t){if(!e.selectionSet){let n=new Set([t]);n.forEach(i=>{L(i)&&(v(!A(i),121,bs(r,i),e.name.value),Object.values(i).forEach(n.add,n))})}}var pr=class r{selections=new Set;children=new Map;add(e){return this.selections.add(e),this}has(e){return this.selections.has(e)}hasSelections(){return this.selections.size>0}getChild(e){return this.children.get(e)}clone(){return new r().merge(this)}set(e,t){let n=this.getChild(e);this.children.set(e,n?n.clone().merge(t):t)}merge(e){return e.selections.forEach(t=>this.add(t)),e.children.forEach((t,n)=>this.set(n,t)),this}};function Uc({dataState:r},e){return r==="deferPartial"||r==="streamPartial"?!0:r==="complete"||r==="streaming"?!!(e.streamInfo||e.deferInfo):!1}var Hc={empty:{complete:"partial",deferPartial:"partial",streaming:"partial",streamPartial:"partial"},deferPartial:{empty:"partial"},streamPartial:{deferPartial:"deferPartial",empty:"partial"},streaming:{deferPartial:"deferPartial",empty:"partial",streamPartial:"streamPartial"},complete:{deferPartial:"deferPartial",streaming:"streaming",streamPartial:"streamPartial",empty:"partial"},partial:{}};function Se(r,e){return e==="partial"?"partial":!r||r===e?e:Hc[r][e]||r}function ai(r,e,t){let n=`${e}${t}`,i=r.flavors.get(n);return i||r.flavors.set(n,i=r.clientOnly===e&&r.deferred===t?r:w(y({},r),{clientOnly:e,deferred:t})),i}var $r=class{cache;reader;fragments;constructor(e,t,n){this.cache=e,this.reader=t,this.fragments=n}writeToStore(e,{query:t,result:n,dataId:i,variables:o,overwrite:s,extensions:a}){let l=K(t),c=vs();o=y(y({},ct(l)),o);let u=w(y({store:e,written:{}
36,merge(m,p){return c.merge(m,p)},variables:o,varString:W(o)},Qr(t,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a}),f=this.processSelectionSet({result:n||{},dataId:i,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:u,path:[]});if(!A(f))throw z(122,n);return u.incomingById.forEach(({storeObject:m,mergeTree:p,fieldNodeSet:h},g)=>{let d=we(g);if(p&&p.map.size){let b=this.applyMerges(p,d,m,u);if(A(b))return;m=b}if(!1){let b={};h.forEach(_=>{_.selectionSet&&(b[_.name.value]=!0)});let x=_=>b[pe(_)]===!0,O=_=>{let M=p&&p.map.get(_);return!!(M&&M.info&&M.info.merge)};Object.keys(m).forEach(_=>{x(_)&&!O(_)&&Gc(d,m,_,u.store)})}e.merge(g,m)}),e.retain(f.__ref),f}processSelectionSet({dataId:e,result:t,selectionSet:n,context:i,mergeTree:o,path:s}){let{policies:a}=this.cache,l={},c=e&&a.rootTypenamesById[e]||li(t,n,i.fragmentMap)||e&&i.store.get(e,"__typename");typeof c=="string"&&(l.__typename=c);let u=(...m)=>{let p=Hr(m,l,i.variables);if(A(p.from)){let h=i.incomingById.get(p.from.__ref);if(h){let g=a.readField(w(y({},p),{from:h.storeObject}),i);if(g!==void 0)return g}}return a.readField(p,i)},f=new Set;this.flattenFields(n,t,i,c).forEach((m,p)=>{let h=Z(p),g=t[h],d=[...s,p.name.value];if(f.add(p),g!==void 0){let b=a.getStoreFieldName({typename:c,fieldName:p.name.value,field:p,variables:m.variables}),x=As(o,b),O=this.processFieldValue(g,p,p.selectionSet?ai(m,!1,!1):m,x,d),_;p.selectionSet&&(A(O)||Ye(O))&&(_=u("__typename",O));let M=a.getMergeFunction(c,p.name.value,_);M?x.info={field:p,typename:c,merge:M,path:d}:m.extensions?.[Ee]&&Array.isArray(O)&&Et(p,m.variables)?x.info={field:p,typename:c,merge:Fs,path:d}:Rs(o,b),l=m.merge(l,{[b]:O})}else!1});try{let[m,p]=a.identify(t,{typename:c,selectionSet:n,fragmentMap:i.fragmentMap,storeObject:l,readField:u});e=e||m,p&&(l=i.merge(l,p))}catch(m){if(!e)throw m}if(typeof e=="string"){let m=we(e),p=i.written[e]||(i.written[e]=[]);if(p.indexOf(n)>=0||(p.push(n),this.reader&&this.reader.isFresh(t,m,n,i)))return m;let h=i.incomingById.get(e);return h?(h.storeObject=i.merge(h.storeObject,l),h.mergeTree=ci(h.mergeTree,o),f.forEach(g=>h.fieldNodeSet.add(g))):i.incomingById.set(e,{storeObject:l,mergeTree:Kr(o)?void 0:o,fieldNodeSet:f}),m}return l}processFieldValue(e,t,n,i,o){return!t.selectionSet||e===null?e:R(e)?e.map((s,a)=>{let l=this.processFieldValue(s,t,n,As(i,a),[...o,a]);return Rs(i,a),l}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:i,path:o})}flattenFields(e,t,n,i=li(t,e,n.fragmentMap)){let o=new Map,{policies:s}=this.cache,a=new $(!1);return(function l(c,u){let f=a.lookup(c,u.clientOnly,u.deferred);f.visited||(f.visited=!0,c.selections.forEach(m=>{if(!ke(m,n.variables))return;let{clientOnly:p,deferred:h}=u;if(!(p&&h)&<(m.directives)&&m.directives.forEach(g=>{let d=g.name.value;if(d==="client"&&(p=!0),d==="defer"){let b=ot(g,n.variables);(!b||b.if!==!1)&&(h=!0)}}),ue(m)){let g=o.get(m);g&&(p=p&&g.clientOnly,h=h&&g.deferred),o.set(m,ai(n,p,h))}else{let g=ye(m,n.lookupFragment);if(!g&&m.kind===D.FRAGMENT_SPREAD)throw z(124,m.name.value);g&&s.fragmentMatches(g,i,t,n.variables)&&l(g.selectionSet,ai(n,p,h))}}))})(e,n),o}applyMerges(e,t,n,i,o){if(e.map.size&&!A(n)){let s=!R(n)&&(A(t)||Ye(t))?t:void 0,a=n;
36s&&!o&&(o=[A(s)?s.__ref:s]);let l,c=(u,f)=>R(u)?typeof f=="number"?u[f]:void 0:i.store.getFieldValue(u,String(f));e.map.forEach((u,f)=>{let m=c(s,f),p=c(a,f);if(p===void 0)return;o&&o.push(f);let h=this.applyMerges(u,m,p,i,o);h!==p&&(l=l||new Map,l.set(f,h)),o&&v(o.pop()===f)}),l&&(n=R(a)?a.slice(0):y({},a),l.forEach((u,f)=>{n[f]=u}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,o&&i.store.getStorage(...o)):n}},js=[];function As({map:r},e){return r.has(e)||r.set(e,js.pop()||{map:new Map}),r.get(e)}function ci(r,e){if(r===e||!e||Kr(e))return r;if(!r||Kr(r))return e;let t=r.info&&e.info?y(y({},r.info),e.info):r.info||e.info,n=r.map.size&&e.map.size,i=n?new Map:r.map.size?r.map:e.map,o={info:t,map:i};if(n){let s=new Set(e.map.keys());r.map.forEach((a,l)=>{o.map.set(l,ci(a,e.map.get(l))),s.delete(l)}),s.forEach(a=>{o.map.set(a,ci(e.map.get(a),r.map.get(a)))})}return o}function Kr(r){return!r||!(r.info||r.map.size)}function Rs({map:r},e){let t=r.get(e);t&&Kr(t)&&(js.push(t),r.delete(e))}var Vs=new Set;function Gc(r,e,t,n){let i=f=>{let m=n.getFieldValue(f,t);return typeof m=="object"&&m},o=i(r);if(!o)return;let s=i(e);if(!s||A(o)||N(o,s)||Object.keys(o).every(f=>n.getFieldValue(s,f)!==void 0))return;let a=n.getFieldValue(r,"__typename")||n.getFieldValue(e,"__typename"),l=pe(t),c=`${a}.${l}`;if(Vs.has(c))return;Vs.add(c);let u=[];
36!R(o)&&!R(s)&&[o,s].forEach(f=>{let m=n.getFieldValue(f,"__typename");typeof m=="string"&&!u.includes(m)&&u.push(m)}),!1}function li(r,e,t){let n;for(let i of e.selections)if(ue(i)){if(i.name.value==="__typename")return r[Z(i)]}else n?n.push(i):n=[i];if(typeof r.__typename=="string")return r.__typename;if(n)for(let i of n){let o=li(r,ye(i,t).selectionSet,t);if(typeof o=="string")return o}}var ht=class extends Dt{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new Ne($e);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=ii;constructor(...e){super(),this.config=ys(e[0]??{}),this.policies=new Ur({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new dt.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new $r(this,this.storeReader=new Gr({cache:this,fragments:e}),e),this.maybeBroadcastWatch=ve((t,n)=>this.broadcastWatch(t,n),{max:q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:t=>{let n=t.optimistic?this.optimisticData:this.data;if(Ae(n)){let{optimistic:i,id:o,variables:s}=t;return n.makeCacheKey(t.query,t.callback,W({optimistic:i,id:o,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(t=>t.resetCaching())}getRootTypename(e){return this.policies.rootTypenamesById[`ROOT_${e.toUpperCase()}`]}getScalar(e){return this.config.scalars?.[e]}getScalarTypeForField(e,t){return this.policies.getScalarTypeForField(e,t)}configuresScalars(){return!!this.config.scalars}serializeVariables(e,t){if(!t||Object.keys(t).length===0||!this.config.scalars&&!this.config.inputObjects)return t;let n=K(e)?.variableDefinitions?.reduce((i,o)=>(i[o.variable.name.value]=Lr(o.type),i),{});return!n||Object.keys(n).length===0?t:this.serializeVariablesValue(t,n)}serializeVariablesValue(e,t,n,i){if(e==null)return e;if(n){let o=at(n);if(o){if(Array.isArray(e))return this.serializeInputArray(e,t,o[1],i);!1}let s=this.getScalar(be(n));if(s)return s.coerceToSerialized(e)}return Array.isArray(e)?this.serializeInputArray(e,t,void 0,i):Zt(e)?this.serializeInputObject(e,t,i):e}serializeInputArray(e,t,n,i){let o=!1,s=e.map(a=>{let l=this.serializeVariablesValue(a,t,n,i);return o||=l!==a,l});return o?s:e}serializeInputObject(e,t,n){let i=!1,o=Object.entries(e).map(([s,a])=>{let l=t[s],c=n?`${n}.${s}`:s;if(!l)return[s,a];let u=this.config.inputObjects?.[be(l)];if(u){let m=this.serializeVariablesValue(a,u.fields,void 0,c);return i||=m!==a,[s,m]}let f=this.serializeVariablesValue(a,t,l,c);return i||=f!==a,[s,f]});return i?Object.fromEntries(o):e}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{query:t,variables:n,returnPartialData:i=!1}=e;return this.storeReader.diffQueryAgainstStore(w(y({},e),{variables:this.serializeVariables(t,n),store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result}write(e){let{query:t,variables:n}=e;try{return++this.txCount,this.storeWriter.writeToStore(this.data,w(y({},e),{variables:this.serializeVariables(t,n)}))}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}}modify(e){if(U.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}}diff(e){let{variables:t}=e;return this.storeReader.diffQueryAgainstStore(w(y({},e),{variables:this.serializeVariables(e.query,t),store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))}watch(e){return this.watches.size||_s(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&ni(this),this.maybeBroadcastWatch.forget(e)}}gc(e){W.reset(),Ge.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(A(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){!1}}evict(e){if(!e.id){if(U.call(e,"id"))return!1;e=w(y({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}}reset(e){return this.init(),W.reset(),e&&e.discardWatches?(this.watches.forEac
36h(t=>this.maybeBroadcastWatch.forget(t)),this.watches.clear(),ni(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let{update:t,optimistic:n=!0,removeOptimistic:i,onWatchUpdated:o}=e,s,a=c=>{let{data:u,optimisticData:f}=this;++this.txCount,c&&(this.data=this.optimisticData=c);try{return s=t(this)}finally{--this.txCount,this.data=u,this.optimisticData=f}},l=new Set;return o&&!this.txCount&&this.broadcastWatches(w(y({},e),{onWatchUpdated(c){return l.add(c),!1}})),typeof n=="string"?this.optimisticData=this.optimisticData.addLayer(n,a):n===!1?a(this.data):a(),typeof i=="string"&&(this.optimisticData=this.optimisticData.removeLayer(i)),o&&l.size?(this.broadcastWatches(w(y({},e),{onWatchUpdated(c,u){let f=o.call(this,c,u);return f!==!1&&l.delete(c),f}})),l.size&&l.forEach(c=>this.maybeBroadcastWatch.dirty(c))):this.broadcastWatches(e),s}performTransaction(e,t){return this.batch({update:e,optimistic:t||t!==null})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,n=new Set;this.onAfterBroadcast=i=>{n.add(i)};try{this.watches.forEach(i=>this.maybeBroadcastWatch(i,e)),n.forEach(i=>i())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:n}=e,i=this.diff(e);t&&(e.optimistic&&typeof t.optimistic=="string"&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&t.onWatchUpdated.call(this,e,i,n)===!1)||(!n||!N(n.result,i.result))&&e.callback(e.lastDiff=i,n)}};!1;function Je(r,e){return typeof r=="object"&&r!==null&&r[Symbol.for("apollo.error")]===e}function Xe(r){Object.defineProperty(r,Symbol.for("apollo.error"),{value:r.name,enumerable:!1,writable:!1,configurable:!1})}function Ls(r){return r.map(e=>e.message||"Error message not found.").join(` 37`)}var qs=(()=>{class r extends Error{static is(t){return Je(t,"CombinedProtocolErrors")}static formatMessage=Ls;errors;constructor(t){super(r.formatMessage(t,{defaultFormatMessage:Ls})),this.name="CombinedProtocolErrors",this.errors=t,Xe(this),Object.setPrototypeOf(this,r.prototype)}}return r})();function Qs(r){return r!==null&&typeof r=="object"&&typeof r.message=="string"&&typeof r.name=="string"&&(typeof r.stack=="string"||typeof r.stack>"u")}var Yr=class r extends Error{static is(e){return Je(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",Xe(this),Object.setPrototypeOf(this,r.prototype)}};function zs(r){return r.filter(e=>e).map(e=>e.message||"Error message not found.").join(` 38`)}var gt=(()=>{class r extends Error{static is(t){return Je(t,"CombinedGraphQLErrors")}static formatMessage=zs;errors;data;extensions;constructor(t,n=t.errors||[]){super(r.formatMessage(n,{result:t,defaultFormatMessage:zs})),this.errors=n,this.data=t.data,this.extensions=t.extensions,this.name="CombinedGraphQLErrors",Xe(this),Object.setPrototypeOf(this,r.prototype)}}return r})();var $c=new WeakSet;function ui(r){$c.add(r)}var dr=class r extends Error{static is(e){return Je(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,Xe(this),Object.setPrototypeOf(this,r.prototype)}};var Jr=Symbol();function Bs(r){return"extensions"in r?qs.is(r.extensions[Jr]):!1}function Ws(r){return Qs(r)?r:typeof r=="string"?new Error(r,{cause:r}):new Yr(r)}var Xr=new WeakMap;var F=(function(r){return r[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error",r[r.streaming=9]="streaming",r})(F||{});var{assign:Us,hasOwnProperty:Kc}=Object,It={loading:!0,networkStatus:F.loading,data:void 0,dataState:"empty",partial:!0},fi={loading:!1,networkStatus:F.ready,data:void 0,dataState:"empty",partial:!0},Nt=new WeakMap;function mi(r,e){let t=r[e];typeof t=="function"&&(r[e]=function(){return Nt.set(r,(Nt.get(r)+1)%1e15),t.apply(this,arguments)})}var At=class{options;queryName;variablesUnknown=!1;didWarnOnFeud=!1;lastMissing;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:n=e.transform(t.query)}){this.queryManager=e;let{cache:i}
38=e;Nt.has(i)||(Nt.set(i,0),mi(i,"evict"),mi(i,"modify"),mi(i,"reset")),this.waitForNetworkResult=t.fetchPolicy==="network-only",this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:o="cache-first"}={}}=e.defaultOptions,{fetchPolicy:s=o,initialFetchPolicy:a=s==="standby"?o:s}=t;t[qn]&&(v(s==="standby",84),this.variablesUnknown=!0),this.lastQuery=n,this.options=w(y({},t),{initialFetchPolicy:a,fetchPolicy:s,variables:this.getVariablesWithDefaults(t.variables)}),this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let l=K(this.query);this.queryName=l&&l.name&&l.name.value}initializeObservablesQueue(){this.subject=new xi({query:this.query,variables:this.variables,result:It,meta:{}});let e=this.subject.pipe(je({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),Tt(({query:t,variables:n,result:i,meta:o},s)=>{let{shouldEmit:a}=o;if(i===It&&(s.previous=void 0,s.previousVariables=void 0),this.options.fetchPolicy==="standby"||a===2)return;if(a===1)return u();let{previous:l,previousVariables:c}=s;if(l){let f=this.queryManager.getDocumentInfo(t),m=this.queryManager.dataMasking,p=m?f.nonReactiveQuery:t;if((m||f.hasNonreactiveDirective?ir(p,l,i,n):N(l,i))&&N(c,n))return}if(a===3&&(!this.options.notifyOnNetworkStatusChange||N(l,i)))return;return u();function u(){return s.previous=i,s.previousVariables=n,i}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new Re,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return nr(this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e,[He]:void 0}))}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&(t==="network-only"||t==="cache-and-network")&&(t="cache-first");let n=()=>{let i=this.getCacheDiff(),{dataState:o}=i,s=this.options.returnPartialData||i.complete?i.result??void 0:void 0;return s===void 0&&(o="empty"),this.maskResult({data:s,dataState:o,loading:!i.complete,networkStatus:i.complete?F.ready:F.loading,partial:!i.complete})};switch(t){case"cache-only":return w(y({},n()),{loading:!1,networkStatus:F.ready});case"cache-first":return n();case"cache-and-network":return w(y({},n()),{loading:!0,networkStatus:F.loading});case"standby":return fi;default:return It}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,n=this.query,i=t==="standby"||t==="no-cache"||this.waitForNetworkResult,o=!Zr({query:n,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||o)&&this.unsubscribeFromCache?.(),i||!o)return;let s={query:n,variables:e,optimistic:!0,watcher:this,callback:l=>{let c=this.queryManager.getDocumentInfo(n);if((c.hasClientExports||c.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===l)return;let{result:u}=this.subject.getValue();!l.complete&&(u.error||u===It||u===fi)||N(u.data,l.result)||this.scheduleNotify()}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:n,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===F.error||this.hasObservers()||this.options.fetchPolicy==="no-cache"?e:this.getInitialResult();return t===It&&(t=this.getInitialResult()),N(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,n={pollInterval:0};if(t==="no-cache"?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",!1){let i=Kt(this.query),o=i.variableDefinitions;(!o||!o.some(s=>
38s.variable.name.value==="variables"))&&!1&&v.warn(85,e,i.name?.value||i)}return e&&!N(this.variables,e)&&(n.variables=this.options.variables=this.getVariablesWithDefaults(y(y({},this.variables),e))),this._reobserve(n,{newNetworkStatus:F.refetch})}fetchMore({query:e,variables:t,context:n,errorPolicy:i,updateQuery:o}){v(this.options.fetchPolicy!=="cache-only",86,B(this.query,"(anonymous)"));let s=w(y({},se(this.options,{errorPolicy:"none"},{query:e,context:n,errorPolicy:i})),{variables:e?t:y(y({},this.variables),t),fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange});s.query=this.transformDocument(s.query),this.lastQuery=e?this.transformDocument(this.options.query):s.query;let a=!1,l=this.options.fetchPolicy!=="no-cache";l||v(o,87);let{finalize:c,pushNotification:u}=this.pushOperation(F.fetchMore);u({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:f,operator:m}=Hs(),{observable:p}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:F.fetchMore,exposeExtensions:!0}),h=p.pipe(m,qt(g=>g.kind==="N"&&g.source==="network")).subscribe({next:g=>{a=!1;let d=g.value,b=d[sr];if(lr(g.value.networkStatus)&&c(),l){let x=this.getCacheDiff();this.cache.batch({update:O=>{o?O.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:b},_=>o(_,{fetchMoreResult:d.data,variables:s.variables})):O.writeQuery({query:s.query,variables:s.variables,data:d.data,extensions:b})},onWatchUpdated:(O,_)=>{if(O.watcher===this&&!N(_.result,x.result)){a=!0;let M=this.getCurrentResult();mt(d.networkStatus)&&u({kind:"N",source:"network",value:w(y({},M),{networkStatus:d.networkStatus===F.error?F.ready:d.networkStatus,loading:!1,data:_.result,dataState:_.complete?"complete":"streaming"})})}}})}else{let x=this.getCurrentResult(),O=o(x.data,{fetchMoreResult:d.data,variables:s.variables});u({kind:"N",value:w(y({},x),{networkStatus:F.ready,loading:!1,data:O,dataState:x.dataState==="streaming"?"streaming":"complete"}),source:"network"})}}});return Rr(f.then(g=>Ue(this.maskResult(g))).finally(()=>{if(h.unsubscribe(),c(),l&&!a){let g=this.getCurrentResult();g.dataState==="streaming"?u({kind:"N",source:"network",value:w(y({},g),{dataState:"complete",networkStatus:F.ready})}):u({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:n=>{let{updateQuery:i,onError:o}=e,{error:s}=n;if(s){o?o(s):v.error(88,s);return}i&&this.updateQuery((a,l)=>i(a,y({subscriptionData:n},l)))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=se(this.options,e||{});Us(this.options,t),this.updatePolling()}setVariables(e){return jt(this,null,function*(){return e=this.getVariablesWithDefaults(e),N(this.variables,e)?Ue(this.getCurrentResult()):(this.options.variables=e,this.hasObservers()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:F.setVariables}):Ue(this.getCurrentResult()))})}updateQuery(e){let{queryManager:t}=this,{result:n,complete:i}=this.getCacheDiff({optimistic:!1}),o=e(n,{variables:this.variables,complete:!!i,previousData:n});o&&(this.cache.writeQuery({query:this.options.query,data:o,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:n="cache-first",initialFetchPolicy:i=n}=t;n==="standby"||(typeof t.nextFetchPolicy=="function"?t.fetchPolicy=t.nextFetchPolicy.call(t,n,{reason:e,options:t,observable:this,initialFetchPolicy:i}):e==="variables-changed"?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,n,i){let o=this.options.fetchPolicy;e.context??={};let s=!1,a=()=>{s=!0},l=d=>new G(b=>{try{return d.subscribe({next(x){s=!0,b.next(x)},error:x=>b.error(x),complete:()=>b.complete()})}finally{s||(p.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:f,variables:m,meta:{shouldEmit:3,fetchPolicy:o}}))}}),{observable:c,fromLink:u}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:n,onCacheHit:a,fetchQueryOperator:l,observableQuery:this}),{query:f,variables:m}=this,p={abort:()=>{g.unsubscribe()},query:f,variables:m};this.activeOperations.add(p);let h=t==F.refetch||t==F.setVariables;c=c.pipe(i,tt());let g=c.pipe(je({next:d=>{d.source==="newNetworkStatus"||d.kind==="N"&&d.value.loading?p.override=t:delete p.override},finalize:()=>this.activeOperations.delete(p)})).subscribe({next:d=>{let b={};h&&d.kind==="N"&&"loading"in d.value&&!d.value.loading&&(h=!1,b.shouldEmit=1),this.input.next(w(y({},d),{query:f,variables:m,meta:b}))}});return{fromLink:u,subscription:g,observable:c}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:n}}=this,i=()=>{let{options:l}=this;return!l.pollInterval||!this.hasObservers()||l.fetchPolicy==="cache-only"||l.fetchPolicy==="standby"};if(i()){!1,this.cancelPolling();return}if(e?.interval===n)return;let o=e||(this.pollingInfo={});o.interval=n;let s=()=>
38{if(i())return this.cancelPolling();this.pollingInfo&&(!mt(this.networkStatus)&&!this.options.skipPollAttempt?.()?this._reobserve({fetchPolicy:this.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},{newNetworkStatus:F.poll}).then(a,a):a())},a=()=>{let l=this.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(s,l.interval))};a()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:n,keepLastMissing:i}=t||{};i||(this.lastMissing=void 0),this.queryManager.obsQueries.add(this);let o=n===F.refetch||n===F.poll,s=this.variables,a=this.options.fetchPolicy,l=se(this.options,e||{});this.variablesUnknown&&=l.fetchPolicy==="standby";let c=o?l:Us(this.options,l),u=this.transformDocument(c.query);this.lastQuery=u,e&&"variables"in e&&(c.variables=this.getVariablesWithDefaults(e.variables)),o||(this.updatePolling(),e&&e.variables&&!N(e.variables,s)&&c.fetchPolicy!=="standby"&&(c.fetchPolicy===a||typeof c.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",c),n===void 0&&(n=F.setVariables)));let f=this.networkStatus;n||(n=F.loading,f!==F.loading&&e?.variables&&!N(e.variables,s)&&(n=F.setVariables),c.fetchPolicy==="standby"&&(n=F.ready)),c.fetchPolicy==="standby"&&this.cancelPolling(),this.resubscribeCache();let{promise:m,operator:p}=Hs(c.fetchPolicy==="standby"?{data:void 0}:void 0),{subscription:h,observable:g,fromLink:d}=this.fetch(c,n,u,p);!o&&(d||!this.linkSubscription)&&(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=h);let b=Object.assign(Rr(m.then(x=>Ue(this.maskResult(x))).finally(()=>{!this.hasObservers()&&this.activeOperations.size===0&&this.tearDownQuery()})),{retain:()=>{let x=g.subscribe({}),O=()=>x.unsubscribe();return m.then(O,O),b}});return b}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this.lastMissing=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:w(y({},e),{data:t})}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let l=this.queryManager.getDocumentInfo(this.query);if(l.hasClientExports||l.hasForcedResolvers)return}let{dirty:t,lastMissing:n}=this,{fetchPolicy:i}=this.options;if(this.resetNotifications(),!t||i!=="cache-only"&&i!=="cache-and-network"&&this.activeOperations.size)return;let o=this.getCacheDiff(),s=this.getCurrentResult();if(!N(o.result,this.getCacheDiff({optimistic:!1}).result)||!o.complete&&s.networkStatus===F.streaming){this.deliverCacheDiff(o);return}if(o.complete)this.lastMissing=void 0;else if(!n||n.dmCount!==Nt.get(this.cache)||!N(n.variables,this.variables)||!N(n.missing,o.missing?.missing))this.didWarnOnFeud=!1,this.lastMissing={variables:this.variables,missing:o.missing?.missing,dmCount:Nt.get(this.cache)};else if(i!=="cache-only"){s.dataState==="partial"&&this.deliverCacheDiff(o),!1;return}this.reobserveCacheFirst()}deliverCacheDiff(e){let t=this.getCurrentResult();this.input.next({kind:"N",value:{data:e.result,dataState:e.dataState,networkStatus:t.networkStatus,loading:t.loading,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}activeOperations=new Set;pushOperation(e){let t=!1,{query:n,variables:i}=this,o=()=>{this.activeOperations.delete(s)},s={override:e,abort:()=>{t=!0,o()},query:n,variables:i};return this.activeOperations.add(s),{finalize:o,pushNotification:(a,l)=>{t||this.input.next(w(y({},a),{query:n,variables:i,meta:y({},l)}))}}}calculateNetworkStatus(e){return e===F.streaming?e:Array.from(this.activeOperations.values()).reverse().find(n=>Zr(n,this)&&n.override!==void 0)?.override??e}
38abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e=this.options.fetchPolicy==="cache-only";this.lastMissing=void 0,this.setResult(e?fi:It,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:y({},t)})}operator=Tt(e=>{let{query:t,meta:n}=e;if(e.source==="setResult")return{query:t,variables:this.variables,result:e.value,meta:n};if(e.kind==="C")return;let i="resolvedVariables"in e?e.resolvedVariables:void 0;if(e.query!==this.query)return;if(!N(i,this.variables)){if(!N(e.variables,this.variables))return;i&&(this.options.variables=i,this.resubscribeCache())}let o=this.variables,s,a=this.subject.getValue();if(e.source==="cache"){if(s=e.value,s.networkStatus===F.ready&&s.dataState==="partial"&&(!this.options.returnPartialData||a.result.networkStatus===F.error)&&this.options.fetchPolicy!=="cache-only")return}else if(e.source==="network")this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),s=e.kind==="E"?w(y({},Zr(a,e)||i&&N(i,a.variables)?a.result:{data:void 0,dataState:"empty",partial:!0}),{error:e.error,networkStatus:F.error,loading:!1}):e.value,e.kind==="E"&&s.dataState==="streaming"&&(s.dataState=Xr.get(e.error)??"complete"),s.error&&(n.shouldEmit=1);else if(e.source==="newNetworkStatus"){let l=Zr(a,e)?a.result:this.getInitialResult(n.fetchPolicy),{resetError:c}=e.value,u=c?void 0:l.error,f=u?F.error:F.ready;s=w(y({},l),{error:u,networkStatus:f})}return v(s),s.error||delete s.error,s.networkStatus=this.calculateNetworkStatus(s.networkStatus),s.loading=mt(s.networkStatus),s=this.maskResult(s),a.result.data!==void 0&&s.data!==a.result.data&&N(s.data,a.result.data)&&(s.data=a.result.data),{query:t,variables:o,result:s,meta:n}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;e==="cache-and-network"||e==="network-only"?this._reobserve({fetchPolicy:"cache-first",nextFetchPolicy(n,i){return this.nextFetchPolicy=t,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(n,i):e}},{keepLastMissing:!0}):this._reobserve(void 0,{keepLastMissing:!0})}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}};function Gs(r){!1}function Zr(r,e){return!!(r&&e&&r.query===e.query&&N(r.variables,e.variables))}function Hs(r){let e=r,t,n,i=new Promise((s,a)=>{t=s,n=a}),o=je({next(s){if(s.kind==="E")return n(s.error);s.kind==="N"&&s.source!=="newNetworkStatus"&&!s.value.loading&&(e=s.value)},finalize:()=>{if(e)t(e);else{let s="The operation was aborted.",a="AbortError";n(typeof DOMException<"u"?new DOMException(s,a):Object.assign(new Error(s),{name:a}))}}});return{promise:i,operator:o}}function Yc(r,e){!1}var $s={},Ks=new WeakMap,Rt=class{cache;queryManager;id;observableQuery;incremental;constructor(e,t){this.cache=e.cache;let n=(Ks.get(e)||0)+1;Ks.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e}get hasNext(){return this.incremental?this.incremental.hasNext:!1}get incrementalHandler(){return this.queryManager.incrementalHandler}maybeHandleIncrementalResult(e,t,n){return this.incrementalHandler.isIncrementalResult(t)?(this.incremental||=this.incrementalHandler.startRequest({query:n}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:n,errorPolicy:i,cacheWriteBehavior:o,returnPartialData:s,fetchPolicy:a,networkStatus:l,prunePendingDeferFragments:c}){let u={query:t,variables:n,optimistic:!0};this.observableQuery?.resetNotifications();let f=o===0,m=f?void 0:this.getDiff(w(y({},u),{returnPartialData:i!=="none"||!this.incrementalHandler.extractErrors(e)?.length}),this.getIncrementalInfo({prune:c})),p=this.maybeHandleIncrementalResult(m?.result,e,t),h=w(y({},p),{dataState:p.data==null?"empty":"complete"});return(this.incremental?.getPendingWithInfo?.().some(d=>d.type==="defer"&&!d.delivered)||!this.incremental?.getPendingWithInfo&&this.hasNext&&Oe(["defer"],t))&&(h.dataState="streaming"),f||!pi(h,i)||this.cache.batch({onWatchUpdated:(d,b)=>{d.watcher===this.observableQuery&&(d.lastOwnDiff=b)},update:d=>{d.writeQuery({query:t,data:h.data,variables:n,overwrite:o===1,extensions:h.extensions});let{dataState:b,result:x}=this.getDiff(w(y({},u),{returnPartialData:s&&(a!=="network-only"||l===F.refetch)}),this.getIncrementalInfo({prune:c}));b==="complete"||b==="streaming"||s&&b==="partial"?h=w(y({},h),{data:x,dataState:b}):!1}}),h}getIncrementalInfo({prune:e}){let t=this.incremental?.getPendingWithInfo?.()??[],n=this.incremental?.streamInfo,i={streamInfo:n};if(e)for(let o of t)o.type==="defer"&&!o.delivered?(i.deferInfo||=new $(!0,()=>!0),i.deferInfo.lookupArray(o.path.concat(o.label||[]))):n&&o.type==="stream"&&(n.lookupArray(o.path).state.truncate=!0);return i}getDiff(e,t){return nr(this.cache.diff(w(y({},e),{[He]:t})))}markMutationResult(e,t,n=this.cache){let i=[],o=t.cacheWriteBehavior===0,s=this.maybeHandleIncrementalResult(o?void 0:n.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}
38).result,e,t.document);if(t.errorPolicy==="ignore"&&(s=w(y({},s),{errors:[]})),Pe(s)&&t.errorPolicy==="none")return Promise.resolve(s);let a=()=>w(y({},s),{dataState:this.hasNext?"streaming":"complete"});if(!o&&pi(s,t.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:s.extensions});let{updateQueries:c}=t;c&&this.queryManager.getObservableQueries("all").forEach(u=>{let f=u&&u.queryName;if(!f||!Object.hasOwnProperty.call(c,f))return;let m=c[f],{query:p,variables:h}=u,{result:g,complete:d}=u.getCacheDiff({optimistic:!1});if(d&&g){let b=m(g,{mutationResult:a(),queryName:p&&B(p)||void 0,queryVariables:h});b&&i.push({result:b,dataId:"ROOT_QUERY",query:p,variables:h})}})}let l=t.refetchQueries;if(typeof l=="function"&&(l=l(a())),i.length>0||(l||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let c=[];if(this.queryManager.refetchQueries({updateCache:u=>{o||i.forEach(m=>u.write(m));let{update:f}=t;if(!o){let m=u.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});m.complete&&(s=w(y({},s),{data:m.result}))}f&&!this.hasNext&&f(u,s,{context:t.context,variables:t.variables}),!o&&!t.keepRootFields&&!this.hasNext&&u.modify({id:"ROOT_MUTATION",fields(m,{fieldName:p,DELETE:h}){return p==="__typename"?m:h}})},include:l,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(u=>c.push(u)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(c).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(e,t){let n=typeof e=="function"?e(t.variables,{IGNORE:$s}):e;return n===$s?!1:(this.cache.recordOptimisticTransaction(i=>{try{this.markMutationResult({data:n},t,i)}catch(o){v.error(o)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:n,errorPolicy:i,cacheWriteBehavior:o}){if(o!==0){if(pi(e,i)){this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:n,extensions:e.extensions});let s=this.cache.diff({query:this.queryManager.getDocumentInfo(t).asQuery,id:"ROOT_SUBSCRIPTION",variables:n,optimistic:!1,returnPartialData:!0});s.complete&&(e.data=s.result)}this.queryManager.broadcastQueries()}}};function Jc(r,e,t){!1}function pi(r,e="none"){let t=e==="ignore"||e==="all",n=!Pe(r);return!n&&t&&r.data&&(n=!0),n}var en=class{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new Ne(i=>this.cache.transformDocument(i),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let n=e.documentTransform;this.documentTransform=n?t.concat(n).concat(t):t,this.incrementalHandler.documentTransform&&(this.documentTransform=this.documentTransform.concat(this.incrementalHandler.documentTransform)),this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches(z(93))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}mutate(p){return jt(this,arguments,function*({mutation:e,variables:t,optimisticResponse:n,updateQueries:i,refetchQueries:o=[],awaitRefetchQueries:s=!1,update:a,onQueryUpdated:l,fetchPolicy:c,errorPolicy:u,keepRootFields:f,context:m}){let h=new Rt(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:g}=this.getDocumentInfo(e);t=this.getVariables(e,t),g&&(!1,t=yield this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:m}));let d=this.mutationStore&&(this.mutationStore[h.id]={mutation:e,variables:this.cache.serializeVariables(e,t),loading:!0,error:null}),b=n&&h.markMutationOptimistic(n,{document:e,variables:t,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:u,context:m,updateQueries:i,update:a,keepRootFields:f});return this.broadcastQueries(),new Promise((x,O)=>{let _={};return this.getObservableFromLink(e,w(y({},m),{optimisticResponse:b?n:void 0}),t,c,{}
38,!1).observable.pipe(Ys(),Lt(M=>{let I=y({},M);return Ve(h.markMutationResult(I,{document:e,variables:t,cacheWriteBehavior:c==="no-cache"?0:2,errorPolicy:u,context:m,update:a,updateQueries:i,awaitRefetchQueries:s,refetchQueries:o,removeOptimistic:b?h.id:void 0,onQueryUpdated:l,keepRootFields:f}))})).pipe(ee(M=>{if(Pe(M)&&u==="none")throw new gt(di(M));return d&&(d.loading=!1,d.error=null),M})).subscribe({next:M=>{if(this.broadcastQueries(),!h.hasNext){let I={data:this.maskOperation({document:e,data:M.data,fetchPolicy:c,cause:_})};Pe(M)&&(I.error=new gt(M)),Object.keys(M.extensions||{}).length&&(I.extensions=M.extensions),x(I)}},error:M=>{if(d&&(d.loading=!1,d.error=M),b&&this.cache.removeOptimistic(h.id),this.broadcastQueries(),u==="ignore")return x({data:void 0});if(u==="all")return x({data:void 0,error:M});O(M)}})})})}fetchQuery(e,t){return ne(e.query,xe.QUERY),jt(this,null,function*(){return Ei(this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(Tt(n=>{switch(n.kind){case"E":throw n.error;case"N":if(n.source!=="newNetworkStatus")return Ue(n.value)}})),{defaultValue:{data:void 0}})})}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new st(q["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){let i=K(e),o={hasClientExports:Oe(["client","export"],e,!0),hasForcedResolvers:Mn(e),hasNonreactiveDirective:Oe(["nonreactive"],e),hasIncrementalDirective:Oe(["defer"],e),nonReactiveQuery:Zc(e),clientQuery:Oe(["client"],e)?e:null,serverQuery:An([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:i?.operation,defaultVars:ct(i),asQuery:w(y({},e),{definitions:e.definitions.map(s=>s.kind==="OperationDefinition"&&s.operation!=="query"?w(y({},s),{operation:"query"}):s)})};t.set(e,o)}let n=t.get(e);if(n.violation)throw n.violation;return n}getVariables(e,t){let n=this.getDocumentInfo(e).defaultVars,i=Object.entries(t??{}).map(([o,s])=>[o,s===void 0?n[o]:s]);return y(y({},n),Object.fromEntries(i))}watchQuery(e){ne(e.query,xe.QUERY);let t=this.transform(e.query);return e=w(y({},e),{variables:this.getVariables(t,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!0),new At({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery(w(y({},e),{query:t})).then(n=>w(y({},n),{data:this.maskOperation({document:t,data:n?.data,fetchPolicy:e.fetchPolicy})}))}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches(z(95)),this.obsQueries.forEach(t=>{t.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,n=new Map,i=new Map,o=new Set;return Array.isArray(e)&&e.forEach(s=>{if(typeof s=="string")n.set(s,s),i.set(s,!1);else if(Tn(s)){let a=Ge(this.transform(s));n.set(a,B(s)),i.set(a,!1)}else L(s)&&s.query&&o.add(s)}),this.obsQueries.forEach(s=>{let a=Ge(this.transform(s.options.query));if(e==="all"){t.add(s);return}let{queryName:l,options:{fetchPolicy:c}}=s;e==="active"&&c==="standby"||(e==="active"||l&&i.has(l)||a&&i.has(a))&&(t.add(s),l&&i.set(l,!0),a&&i.set(a,!0))}),o.size&&o.forEach(s=>{let a=new At({queryManager:this,options:w(y({},ft(this.defaultOptions.watchQuery,s)),{fetchPolicy:"network-only"})});t.add(a)}),!1,t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(n=>{let{fetchPolicy:i}=n.options;(e||i!=="standby")&&i!=="cache-only"&&t.push(n.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let{query:t,variables:n}=e,{fetchPolicy:i="cache-first",errorPolicy:o="none",context:s={},extensions:a={}}=e;ne(t,xe.SUBSCRIPTION),t=this.transform(t),n=this.getVariables(t,n);let l;!1;let c=(this.getDocumentInfo(t).hasClientExports?Ve(this.localState.getExportedVariables({client:this.client,document:t,variables:n,context:s})):et(n)).pipe(Lt(u=>{let{observable:f,restart:m}=this.getObservableFromLink(t,s,u,i,a),p=new Rt(this);return l=m,f.pipe(ee(h=>{p.markSubscriptionResult(h,{document:t,variables:u,errorPolicy:o,cacheWriteBehavior:i==="no-cache"?0:2});let g={data:h.data??void 0};return Pe(h)?g.error=new gt(h):Bs(h)&&(g.error=h.extensions[Jr],delete h.extensions[Jr]),h.extensions&&Object.keys(h.extensions).length&&(g.extensions=h.extensions),g.error&&o==="none"&&(g.data=void 0),o==="ignore"&&delete g.error,g}),br(h=>o==="ignore"?et({data:void 0}):et({data:void 0,error:h})),qt(h=>!!(h.data||h.error)))}));return Object.assign(c,{restart:()=>l?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEac
38h(e=>e.notify())}inFlightLinkObservables=new $(!1);getObservableFromLink(e,t,n,i,o,s=t?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:l,clientQuery:c,operationType:u,hasIncrementalDirective:f}=this.getDocumentInfo(e),m=B(e),p={client:this.client};if(n=this.cache.serializeVariables(e,n),l){let{inFlightLinkObservables:g,link:d}=this;try{let x=function(O){return new G(_=>{function M(){return O.subscribe({next:_.next.bind(_),complete:_.complete.bind(_),error:_.error.bind(_)})}let I=M();return a.restart||=()=>{I.unsubscribe(),I=M()},()=>{I.unsubscribe(),a.restart=void 0}})};var h=x;let b=this.incrementalHandler.prepareRequest({query:l,variables:n,context:w(y(y({},this.defaultContext),t),{queryDeduplication:s}),extensions:o});if(t=b.context,s){let O=Ge(l),_=W(n);a=g.lookup(O,_),a.observable||(a.observable=pt(d,b,p).pipe(x,Ti(()=>{g.peek(O,_)===a&&g.remove(O,_)}),u===xe.SUBSCRIPTION?tt():bt({refCount:!0})))}else a.observable=pt(d,b,p).pipe(x)}catch(b){a.observable=ki(()=>b)}}else a.observable=et({data:{}});if(c){let{operation:g}=K(e);!1,v(!f,100,g[0].toUpperCase()+g.slice(1),m??"(anonymous)"),a.observable=a.observable.pipe(Lt(d=>Ve(this.localState.execute({client:this.client,document:c,remoteResult:d,context:t,variables:n,fetchPolicy:i}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(br(g=>{throw g=Ws(g),ui(g),g}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:n,observableQuery:i,exposeExtensions:o,prunePendingDeferFragments:s}){let{errorPolicy:a}=e,l=this.cache.transformForLink(e.query);return this.getObservableFromLink(l,e.context,e.variables,e.fetchPolicy).observable.pipe(ee(c=>{let g=t.markQueryResult(c,w(y({},e),{document:l,cacheWriteBehavior:n,returnPartialData:e.returnPartialData,prunePendingDeferFragments:s})),{dataState:u}=g,f=H(g,["dataState"]),m=Pe(f);if(m&&a==="none"){i?.resetNotifications();let d=new gt(di(f));throw Xr.set(d,u),d}let p=u!=="complete",h=y({data:f.data},t.hasNext?{loading:!0,networkStatus:F.streaming,dataState:u,partial:p}:{dataState:u,loading:!1,networkStatus:F.ready,partial:p});return o&&"extensions"in f&&(h[sr]=f.extensions),m&&a!=="ignore"&&(h.error=new gt(di(f)),h.networkStatus!==F.streaming&&(h.networkStatus=F.error)),h}),br(c=>{if(a==="none")throw i?.resetNotifications(),c;let u={data:void 0,dataState:"empty",loading:!1,networkStatus:F.ready,partial:!0};return a!=="ignore"&&(u.error=c,u.networkStatus=F.error),et(u)}))}fetchObservableWithInfo(e,{networkStatus:t=F.loading,query:n=e.query,fetchQueryOperator:i=l=>l,onCacheHit:o=()=>{},observableQuery:s,exposeExtensions:a}){let l=this.getVariables(n,e.variables),{fetchPolicy:c="cache-first",errorPolicy:u="none",returnPartialData:f=!1,notifyOnNetworkStatusChange:m=!0,context:p={}}=e;this.prioritizeCacheValues&&(c==="network-only"||c==="cache-and-network")&&(c="cache-first");let h=Object.assign({},e,{query:n,variables:l,fetchPolicy:c,errorPolicy:u,returnPartialData:f,networkStatus:t,notifyOnNetworkStatusChange:m,context:p}),g=new Rt(this,s),d=M=>{h.variables=M;let I=c==="no-cache"?0:t===F.refetch&&h.refetchWritePolicy!=="merge"?1:2,ae=this.fetchQueryByPolicy(h,{queryInfo:g,cacheWriteBehavior:I,onCacheHit:o,observableQuery:s,exposeExtensions:a});return ae.observable=ae.observable.pipe(i),h.fetchPolicy!=="standby"&&s?.applyNextFetchPolicy("after-fetch",e),ae},b=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,M=>{x.next({kind:"E",error:M,source:"network"})});let x=new Re,O,_;if(this.getDocumentInfo(h.query).hasClientExports)!1,O=Ve(this.localState.getExportedVariables({client:this.client,document:h.query,variables:h.variables,context:h.context})).pipe(Lt(M=>d(M).observable)),_=!0;else{let M=d(h.variables);_=M.fromLink,O=M.observable}return{observable:new G(M=>{M.add(b),O.subscribe(M),x.subscribe(M)}).pipe(tt()),fromLink:_}}refetchQueries({updateCache:e,include:t,optimistic:n=!1,removeOptimistic:i=n?Ht("refetchQueries"):void 0,onQueryUpdated:o}){let s=new Map;t&&this.getObservableQueries(t).forEach(l=>{if(l.options.fetchPolicy==="cache-only"||l.variablesUnknown)return;let c=l.getCurrentResult();s.set(l,{oq:l,lastDiff:{result:c?.data,complete:!c?.partial}})});let a=new Map;if(e){let l=new Set;this.cache.batch({update:e,optimistic:n&&i||!1,removeOptimistic:i,onWatchUpdated(c,u,f){let m=c.watcher;if(m instanceof At&&!l.has(m)){if(l.add(m),o){s.delete(m);let p=o(m,u,f);return p===!0&&(p=m.refetch().retain()),p!==!1&&a.set(m,p),p}o!==null&&m.options.fetchPolicy!=="cache-only"&&s.set(m,{oq:m,lastDiff:f,diff:u})}}})}
38return s.size&&s.forEach(({oq:l,lastDiff:c,diff:u})=>{let f;o&&(u||(u=l.getCacheDiff()),f=o(l,u,c)),(!o||f===!0)&&(f=l.refetch().retain()),f!==!1&&a.set(l,f)}),i&&this.cache.removeOptimistic(i),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:n}=e;if(!1){let{fetchPolicy:i,cause:o={}}=e,s=K(t)?.operation;this.dataMasking&&i==="no-cache"&&!Xc(t)&&!this.noCacheWarningsByCause.has(o)&&(this.noCacheWarningsByCause.add(o),!1)}return this.dataMasking?Jn(n,t,this.cache):n}maskFragment(e){let{data:t,fragment:n,fragmentName:i}=e;return this.dataMasking?Yn(t,n,this.cache,i):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:n,errorPolicy:i,returnPartialData:o,context:s,networkStatus:a},{cacheWriteBehavior:l,onCacheHit:c,queryInfo:u,observableQuery:f,exposeExtensions:m}){let p=()=>u.getDiff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),h=(d,b)=>{let x=d.result;!1;let O=(M,I=d.dataState)=>(!d.complete&&!o&&(M=void 0,I="empty"),{data:M,dataState:I,loading:mt(b),networkStatus:b,partial:!d.complete}),_=M=>et({kind:"N",value:O(M),resolvedVariables:t,source:"cache"});return(d.complete||o)&&this.getDocumentInfo(e).hasForcedResolvers?(!1,c(),Ve(this.localState.execute({client:this.client,document:e,remoteResult:x?{data:x}:void 0,context:s,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:n}).then(M=>({kind:"N",value:O(M.data||void 0,d.complete?"complete":M.data?"partial":"empty"),resolvedVariables:t,source:"cache"})))):i==="none"&&b===F.refetch&&d.missing?_(void 0):_(x||void 0)},g=({prunePendingDeferFragments:d=!0}={})=>this.getResultsFromLink({query:e,variables:t,context:s,fetchPolicy:n,errorPolicy:i,returnPartialData:o,networkStatus:a},{cacheWriteBehavior:l,queryInfo:u,observableQuery:f,exposeExtensions:m,prunePendingDeferFragments:d}).pipe(Ys(),Di(),ee(b=>w(y({},b),{resolvedVariables:t,source:"network"})));switch(n){default:case"cache-first":{let d=p();return d.complete?{fromLink:!1,observable:h(d,F.ready)}:o?{fromLink:!0,observable:gr(h(d,F.loading),g())}:{fromLink:!0,observable:g()}}case"cache-and-network":{let d=p();return d.complete||o?{fromLink:!0,observable:gr(h(d,F.loading),g({prunePendingDeferFragments:!1}))}:{fromLink:!0,observable:g()}}case"cache-only":return{fromLink:!1,observable:gr(h(p(),F.ready))};case"network-only":return{fromLink:!0,observable:g({prunePendingDeferFragments:a!==F.refetch})};case"no-cache":return{fromLink:!0,observable:g().pipe(ee(d=>(d.kind==="N"&&d.value.data!=null&&this.cache.configuresScalars()&&(d.value.data=kn(d.value.data,e,this.cache)),d)))};case"standby":return{fromLink:!1,observable:Ze}}}};function Ys(){let r=!1;return je({next(){r=!0},complete(){v(r,104)}})}function Xc(r){let e=!0;return Y(r,{FragmentSpread:t=>{if(e=!!t.directives&&t.directives.some(n=>n.name.value==="unmask"),!e)return Te}}),e}function Zc(r){return Y(r,{FragmentSpread:e=>{if(!e.directives?.some(t=>t.name.value==="unmask"))return w(y({},e),{directives:[...e.directives||[],{kind:D.DIRECTIVE,name:{kind:D.NAME,value:"nonreactive"}}
38]})}})}function di(r){var s;if(r.extensions?.[Ee]==null)return r;let i=r,{extensions:o}=i,a=o,{[s=Ee]:e}=a,t=H(a,[hr(s)]),n=H(i,["extensions"]);return Object.keys(t).length>0&&(n.extensions=t),n}var Js=!1,yt=class{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){!1;let{cache:t,documentTransform:n,ssrMode:i=!1,ssrForceFetchDelay:o=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:l,assumeImmutableResults:c=t.assumeImmutableResults,localState:u,devtools:f,dataMasking:m,link:p,incrementalHandler:h=new ar,experiments:g=[],refetchEventManager:d}=e;this.link=p,this.cache=t,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig=w(y({},f),{enabled:f?.enabled??!1}),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=Ut,this.queryManager=new en({client:this,defaultOptions:this.defaultOptions,defaultContext:l,documentTransform:n,queryDeduplication:s,ssrMode:i,dataMasking:!!m,clientOptions:e,incrementalHandler:h,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=i||o>0,o&&setTimeout(()=>{this.prioritizeCacheValues=!1},o),this.devtoolsConfig.enabled&&this.connectToDevTools(),g.forEach(b=>b.call(this,e)),this.refetchEventManager=d,this.refetchEventManager?.connect(this)}connectToDevTools(){if(typeof window>"u")return;let e=window,t=Symbol.for("apollo.devtools");if((e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!Js&&!1){Js=!0;let n=window,i=n.navigator.userAgent,o;typeof i=="string"&&(i.indexOf("Chrome/")>-1?o="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(o="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),n.document&&n.top===n.self&&/^(https?|file):$/.test(n.location.protocol)&&o&&setTimeout(()=>{n.__APOLLO_DEVTOOLS_GLOBAL_HOOK__||!1},1e4)}}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(e){let{refetchOn:t}=e;if(this.defaultOptions.watchQuery){let n=this.defaultOptions.watchQuery.refetchOn,i;t&&typeof t=="object"&&(typeof n=="object"?i=y(y({},n),t):n!=null&&(i=o=>{let s=t[o.source]??n;return typeof s=="function"?s(o):s})),e=ft(this.defaultOptions.watchQuery,e),i&&(e.refetchOn=i)}if(!1){let{query:n}=e,{refetchEventManager:i}=this;if(t){let o=B(n,"(anonymous)");i?typeof t=="object"&&Object.keys(t).forEach(s=>{i.hasSource(s)||!1}):!1}}return this.queryManager.watchQuery(e)}query=e=>(this.defaultOptions.query&&(e=ft(this.defaultOptions.query,e)),!1,this.queryManager.query(e));mutate=e=>{let t=ft(se({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return!1,ne(t.mutation,xe.MUTATION),this.queryManager.mutate(t)};subscribe(e){let t={},n=this.queryManager.startGraphQLSubscription(e),i=n.pipe(ee(o=>w(y({},o),{data:this.queryManager.maskOperation({document:e.query,data:o.data,fetchPolicy:e.fetchPolicy,cause:t})})));return Object.assign(i,{restart:n.restart})}readQuery(e,t=!!e.optimistic){return this.cache.readQuery(w(y({},e),{query:this.transform(e.query)}),t)}watchFragment(e){let t=this.queryManager.dataMasking,n=this.cache.watchFragment(w(y({},e),{fragment:this.transform(e.fragment,t)}));return n}readFragment(e,t=!!e.optimistic){return this.cache.readFragment(w(y({},e),{fragment:this.transform(e.fragment)}),t)}writeQuery(e){let t=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return pt(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),n=[],i=[];t.forEach((s,a)=>{n.push(a),i.push(s)});
38let o=Promise.all(i);return o.queries=n,o.results=i,o.catch(s=>{!1}),o}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new Ne(Rn);transform(e,t=!1){let n=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(n):n}};!1;function Xs(r){return new G(e=>(r().then(t=>{e.closed||(e.next(t),e.complete())},t=>{e.closed||e.error(t)}),()=>e.unsubscribe()))}function el(r,e){return e?r.pipe(ee(t=>w(y({},t),{loading:!1})),Fi({data:void 0,loading:!0})):r.pipe(ee(t=>w(y({},t),{loading:!1})))}var gi=class{zone;constructor(e){this.zone=e}now=Date.now;schedule(e,t=0,n){return this.zone.run(()=>Oi.schedule(e,t,n))}};function yi(r,e){return r.pipe(wi(new gi(e)))}var bi=class{obsQuery;valueChanges;constructor(e,t){this.obsQuery=e,this.valueChanges=yi(Ve(this.obsQuery),t)}get options(){return this.obsQuery.options}get variables(){return this.obsQuery.variables}getCurrentResult(){return this.obsQuery.getCurrentResult()}refetch(e){return this.obsQuery.refetch(e)}fetchMore(e){return this.obsQuery.fetchMore(e)}subscribeToMore(e){return this.obsQuery.subscribeToMore(e)}updateQuery(e){return this.obsQuery.updateQuery(e)}stopPolling(){return this.obsQuery.stopPolling()}startPolling(e){return this.obsQuery.startPolling(e)}setVariables(e){return this.obsQuery.setVariables(e)}reobserve(e){return this.obsQuery.reobserve(e)}},tl=new Sr("APOLLO_FLAGS"),vi=new Sr("APOLLO_OPTIONS"),rl=new Sr("APOLLO_NAMED_OPTIONS"),tn=class{ngZone;flags;_client;useMutationLoading;constructor(e,t,n){this.ngZone=e,this.flags=t,this._client=n,this.useMutationLoading=t?.useMutationLoading??!1}watchQuery(e){return new bi(this.ensureClient().watchQuery(y({},e)),this.ngZone)}query(e){return Xs(()=>this.ensureClient().query(y({},e)))}mutate(e){return el(Xs(()=>this.ensureClient().mutate(y({},e))),e.useMutationLoading??this.useMutationLoading)}watchFragment(e){let o=e,{useZone:t}=o,n=H(o,["useZone"]),i=this.ensureClient().watchFragment(y({},n));return t!==!0?i:yi(i,this.ngZone)}subscribe(e){let o=e,{useZone:t}=o,n=H(o,["useZone"]),i=this.ensureClient().subscribe(y({},n));return t!==!0?i:yi(i,this.ngZone)}get client(){return this.ensureClient()}set client(e){if(this._client)throw new Error("Client has been already defined");this._client=e}ensureClient(){return this.checkInstance(),this._client}checkInstance(){if(this._client)return!0;throw new Error("Client has not been defined yet")}},Zs=(()=>{class r extends tn{map=new Map;constructor(t,n,i,o){if(super(t,o),n&&this.createDefault(n),i&&typeof i=="object"){for(let s in i)if(i.hasOwnProperty(s)){let a=i[s];this.create(a,s)}}}create(t,n){hi(n)?this.createNamed(n,t):this.createDefault(t)}default(){return this}use(t){return hi(t)?this.map.get(t):this.default()}createDefault(t){if(this._client)throw new Error("Apollo has been already created.");this.client=this.ngZone.runOutsideAngular(()=>new yt(t))}createNamed(t,n){if(this.map.has(t))throw new Error(`Client ${t} has been already created`);this.map.set(t,new tn(this.ngZone,this.flags,this.ngZone.runOutsideAngular(()=>new yt(n))))}removeClient(t){hi(t)?this.map.delete(t):this._client=void 0}static \u0275fac=function(n){return new(n||r)(rt(Ri),rt(vi,8),rt(rl,8),rt(tl,8))};static \u0275prov=vt({token:r,factory:r.\u0275fac})}return r})();function hi(r){return!!r&&r!=="default"}var nl=(r,e,t)=>{let n=["POST","PUT","PATCH"].indexOf(r.method.toUpperCase())!==-1,i=c=>["variables","extensions"].indexOf(c.toLowerCase())!==-1,o=r.body.length,s=r.options&&r.options.useMultipart,a;if(s){if(o)return new G(c=>c.error(new Error("File upload is not available when combined with Batching")));if(!n)return new G(c=>c.error(new Error("File upload is not available when GET is used")));if(!t)return new G(c=>c.error(new Error(`To use File upload you need to pass "extractFiles" function from "extract-files" library to HttpLink's options`)));a=t(r.body),s=!!a.files.size}let l={};if(o){if(!n)return new G(c=>c.error(new Error("Batching is not available for GET requests")));l={body:r.body}}else{let c=s?a.clone:r.body;n?l={body:c}:l={params:Object.keys(r.body).reduce((f,m)=>{let p=r.body[m];return f[m]=i(m)?JSON.stringify(p):p,f},{})}}if(s&&n){let c=new FormData;c.append("operations",JSON.stringify(l.body));let u={},f=a.files,m=0;f.forEach(p=>{u[++m]=p}),c.append("map",JSON.stringify(u)),m=0,f.forEach((p,h)=>{c.append(++m+"",h,h.name)}),l.body=c}return e.request(r.method,r.url,y(y({observe:"response",responseType:"json",reportProgress:!1},l),r.options))},il=r=>r instanceof sn?r:new sn(r);var ol=(r,e)=>r&&e?e.keys().reduce((t,n)=>t.set(n,e.getAll(n)),r):e||r,ea=(r,e)=>r&&e?[...r.keys()].reduce((t,n)=>t.set(n,r.get(n)),e):e||r;function sl(...r){return r.find(e=>typeof e<"u")}function al(r){let e=il(r.headers);
38if(r.clientAwareness){let{name:t,version:n}=r.clientAwareness;t&&!e.has("apollographql-client-name")&&(e=e.set("apollographql-client-name",t)),n&&!e.has("apollographql-client-version")&&(e=e.set("apollographql-client-version",n))}return e}var cl={batchInterval:10,batchMax:10,uri:"graphql",method:"POST",withCredentials:!1,includeQuery:!0,includeExtensions:!1,useMultipart:!1};function Vt(r,e,t){return sl(r[t],e[t],cl[t])}function ll(r){let e={status:r.status,statusText:r.statusText,ok:r.ok,url:r.url||"",headers:new Headers,type:"error",redirected:!1};r.headers.keys().forEach(n=>{let i=r.headers.getAll(n);i&&i.forEach(o=>e.headers.append(n,o))});let t=typeof r.error=="string"?r.error:JSON.stringify(r.error||{});return r.status>=300?new dr(`Response not successful: Received status code ${r.status}`,{response:e,bodyText:t}):new Error(r.message)}var Si=class extends Ke{httpClient;options;requester;print=Ot;constructor(e,t){super(),this.httpClient=e,this.options=t,this.options.operationPrinter&&(this.print=this.options.operationPrinter),this.requester=n=>new G(i=>{let o=n.getContext(),s=Vt(o,this.options,"method"),a=Vt(o,this.options,"includeQuery"),l=Vt(o,this.options,"includeExtensions"),c=Vt(o,this.options,"uri"),u=Vt(o,this.options,"withCredentials"),f=Vt(o,this.options,"useMultipart"),m=this.options.useGETForQueries===!0,p=ea(o.httpContext,ea(this.options.httpContext,new io)),h=n.query.definitions.some(x=>x.kind==="OperationDefinition"&&x.operation==="query");m&&h&&(s="GET");let g=ol(this.options.headers,al(o)),d={method:s,url:typeof c=="function"?c(n):c,body:{operationName:n.operationName,variables:n.variables},options:{withCredentials:u,useMultipart:f,headers:g,context:p}};l&&(d.body.extensions=n.extensions),a&&(d.body.query=this.print(n.query));let b=nl(d,this.httpClient,this.options.extractFiles).subscribe({next:x=>{n.setContext({response:x}),i.next(x.body)},error:x=>{x instanceof oo?i.error(ll(x)):i.error(x)},complete:()=>i.complete()});return()=>{b.closed||b.unsubscribe()}})}request(e){return this.requester(e)}},ta=(()=>{class r{httpClient;constructor(t){this.httpClient=t}create(t){return new Si(this.httpClient,t)}static \u0275fac=function(n){return new(n||r)(rt(so))};static \u0275prov=vt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var ul="https://rz1w587m5b.execute-api.us-west-2.amazonaws.com/production/graphql";function fl(){return{link:nt(ta).create({uri:ul}),cache:new ht}}var ra=[Zs,{provide:vi,useFactory:fl}];var na=[...So(),{path:"our-heart/sustainability/protecting-biodiversity",renderMode:he.Prerender},{path:"our-heart/sustainability/resource-consumption",renderMode:he.Prerender},{path:"our-heart/sustainability/waste-reduction",renderMode:he.Prerender},{path:"find-a-store",renderMode:he.Client},{path:"customer-success",renderMode:he.Client},{path:"favorites",renderMode:he.Client},{path:"store-events",renderMode:he.Client},{path:":brand/:name/:id",renderMode:he.Server},{path:"quiz",renderMode:he.Server},{path:"**",renderMode:he.Prerender}];var rn=class r{canMatch(){if(eo(nt(Li))){let e=nt(Xi,{optional:!0});e&&(e.status=404)}return!0}static \u0275fac=function(t){return new(t||r)};static \u0275prov=vt({token:r,factory:r.\u0275fac,providedIn:"root"})};var ia=[{path:"",pathMatch:"full",loadComponent:()=>import("./chunk-WI5XHY6C.js").then(r=>r.HomeComponent),data:{allowedQueryParams:[...V]},title:"Home",canActivate:[j]},{path:"favorites",loadComponent:()=>import("./chunk-QF2YZ2UZ.js").then(r=>r.FavoritesPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Favorites",link:"/favorites"}]},canActivate:[j]},{path:"brides",loadComponent:()=>import("./chunk-L4WAIA5H.js").then(r=>r.BridesPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Real Weddings",link:"/brides"}]},canActivate:[j]},{path:"find-a-store",loadComponent:()=>import("./chunk-OZFAHO7W.js").then(r=>r.StoreLocatorComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Find A Store",link:"/find-a-store"}]},canActivate:[j]},{path:"faq",loadComponent:()=>import("./chunk-U3D5MJXK.js").then(r=>r.FAQPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Frequently Asked Questions",link:"/faq"}]},canActivate:[j]},{path:"info/privacy-policy",loadComponent:()=>import("./chunk-DTV5JOKR.js").then(r=>r.PrivacyPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Privacy Policy",link:"/info/privacy-policy"}]},canActivate:[j]},{path:"info/brides-beware",loadComponent:()=>import("./chunk-BZAIJHGB.js").then(r=>r.BridesBewarePageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Brides Beware",link:"/info/brides-beware"}]},canActivate:[j]},{path:"quiz",loadComponent:()=>import("./chunk-3VVJCOVS.js").then(r=>r.StyleQuizComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Style Quiz",link:"/style-quiz"}]},canActivate:[j]},{path:"giveaway",loadComponent:()=>import("./chunk-VHRDSVCP.js").then(r=>r.BridalGiveAwayPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Brid
38al Giveaways",link:"/giveaway"}]}},{path:"giveaway-t&c",loadComponent:()=>import("./chunk-UAAS3XHI.js").then(r=>r.TermsPDFPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Bridal Giveaways",link:"/giveaway"},{name:"Terms and Conditions",link:"/giveaway-t&c"}]}},{path:"our-heart",loadComponent:()=>import("./chunk-5KS6HO24.js").then(r=>r.OurHeartComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Our Heart",link:"/our-heart"}]},canActivate:[j]},{path:"our-heart/our-promise",loadComponent:()=>import("./chunk-WQ5JT4PQ.js").then(r=>r.OurPromiseComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Our Heart",link:"/our-heart"},{name:"Our Promise",link:"/our-heart/our-promise"}]},canActivate:[j]},{path:"our-heart/maggie-community-support",loadComponent:()=>import("./chunk-SAGGLFN4.js").then(r=>r.CommunityComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Our Heart",link:"/our-heart"},{name:"Community",link:"/our-heart/maggie-community-support"}]},canActivate:[j]},{path:"our-heart/maggie-dei-and-social-responsibility",loadComponent:()=>import("./chunk-PKSNZ666.js").then(r=>r.DiversityComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Our Heart",link:"/our-heart"},{name:"DEI",link:"/our-heart/maggie-dei-and-social-responsibility"}]},canActivate:[j]},{path:"our-heart/sustainability",loadComponent:()=>import("./chunk-SJDYEU33.js").then(r=>r.SustainabilityPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Our Heart",link:"/our-heart"},{name:"Sustainability",link:"/our-heart/sustainability"}]},canActivate:[j]},{path:"our-heart/sustainability/waste-reduction",loadComponent:()=>import("./chunk-GHSWPCDC.js").then(r=>r.WasteReductionComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Our Heart",link:"/our-heart"},{name:"Sustainability",link:"/our-heart/sustainability"},{name:"Waste Reduction",link:"/our-heart/sustainability/waste-reduction"}]},canActivate:[j]},{path:"our-heart/sustainability/protecting-biodiversity",loadComponent:()=>import("./chunk-6X5CYC26.js").then(r=>r.ProtectingBiodiversityComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Our Heart",link:"/our-heart"},{name:"Sustainability",link:"/our-heart/sustainability"},{name:"Protecting Biodiversity",link:"/our-heart/sustainability/protecting-biodiversity"}]},canActivate:[j]},{path:"our-heart/sustainability/resource-consumption",loadComponent:()=>import("./chunk-65IH5EIX.js").then(r=>r.ResourceConsumptionComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Our Heart",link:"/our-heart"},{name:"Sustainability",link:"/our-heart/sustainability"},{name:"Resource Consumption",link:"/our-heart/sustainability/resource-consumption"}]},canActivate:[j]},{path:"as-seen-in",loadComponent:()=>import("./chunk-DP4ELZSI.js").then(r=>r.MediaPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"As Seen In",link:"/as-seen-in"}]},canActivate:[j]},{path:"customer-success",loadComponent:()=>import("./chunk-RVJJDN7X.js").then(r=>r.CustomerSuccessComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Customer Success",link:"/customer-success"}]},canActivate:[j]},{path:"about",loadComponent:()=>import("./chunk-OEVWHDHW.js").then(r=>r.AboutComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"About Us",link:"/about"}]},canActivate:[j]},...vo(),...Oo(),{path:":brand/:name/:id",loadComponent:()=>import("./chunk-J7Q3U72J.js").then(r=>r.ProductComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Find Your Style",link:"/find-your-style"}]},canActivate:[j]},{path:"store-events",loadComponent:()=>import("./chunk-WH7WOYQM.js").then(r=>r.StoreEventsComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Store Events",link:"/store-events"}]},canActivate:[j]},{path:"styled-shoot-partner-signup",loadComponent:()=>import("./chunk-GTR4LGLS.js").then(r=>r.SSPSKlaviyoPageComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Styled Shoot Partner Signup",link:"/styled-shoot-partner-signup"}]},canActivate:[j]},{path:"markets",loadComponent:()=>import("./chunk-6HPOKBT6.js").then(r=>r.MarketsComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"Markets",link:"/markets"}]},canActivate:[j]},{path:"new-retailer-insider",loadComponent:()=>import("./chunk-ZUUN7YQT.js").then(r=>r.RetailerInsiderComponent),data:{allowedQueryParams:[...V],breadcrumb:[{name:"New Retailer Insider",link:"/new-retailer-insider"}]},canActivate:[j]},{path:"maggie-insider",loadComponent:()=>import("./chunk-YNHOJGFN.js").then(r=>r.MaggieInsiderPageComponent),canActivate:[j]},{path:"**",canMatch:[rn],redirectTo:"",pathMatch:"full"}];var oa={providers:[{provide:"environment",useValue:"production"},Vi(),lo(co()),ao(),ra,an(ia),an(na),Yi({eventCoalescing:!0}),to("https://maggie-dev-media.imgix.net"),{provide:qi,useValue:{disableImageSizeWarning:!1,disableOptimizedSrcset:!1,placeholderResolution:30,addAutoSizes:!1}}]};no(Fr,oa).catch(r=>console.error("bootstrap error:: ",r));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.