vendor: 4,413 bytes, lines 1-6
1import{r as C,i as fo,Z as Dt,u as ho,Y as po,a4 as mo,az as vo,aA as go,aB as yo,aC as bo,q as _o,aD as wo,j as cr}from"./index-yjs0jCN1.js";import{a as So,b as To,c as Eo,d as ko,p as Oo,e as Ro,f as Io,S as Co,g as xo,h as Do,i as Qi,j as Fo,W as lr}from"./sdk-CMiqpkG0.js";import{G as Ft,w as ut,s as P,l as O,N as _e,g as Ee,E as Ht,a8 as nt,a9 as Ao,aa as Vt,d as Dn,u as Fn,ab as Hi,ac as Po,ad as Mo,ae as An,af as Y,ag as $t,k as At,ah as Vi,ai as Lo,aj as No,b as qo,ak as Z,a0 as Pt,a1 as jo,al as $i,am as zi,B as Wi,i as Pn,an as Fr,L as Bo,ao as Qo,ap as Ho,a4 as Vo,P as $o,A as zo}from"./hub-B0HBP01d.js";import{a as Wo,S as Uo,i as Ar,l as Go,p as Ui,f as Ko,b as Yo,c as Jo,d as Xo,e as Zo,g as es,h as ts,j as rs,k as ns,R as is,m as as}from"./components-Cs2pwaWW.js";import{i as os}from"./node-CNjh719v.js";import{C as ss}from"./client.context-C3s6l66l.js";import{i as I,n as K,_ as b,j as Mt,k as z,l as Gi,b as ue,o as H,h as ae,p as us,q as we,r as zt,s as fe,t as de,P as Ki,u as Yi,f as pe,d as Lt,a as Pr,e as j,v as cs,N as M,w as it,x as Mn,y as ls,A as Ie,z as fs,m as fr,B as ds,g as hs}from"./ApolloContext-MQGfuinR.js";import{K as G,f as Ln,e as ps,c as ms,Q as vs,p as gs}from"./inspect-D9zWrUpL.js";import"./env-Blu__xut.js";function ys(r){return`"${r.replace(bs,_s)}"`}const bs=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function _s(r){return ws[r.charCodeAt(0)]}const ws=["\\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"],on=Object.freeze({});function se(r,e,t=vs){const n=new Map;for(const p of Object.values(G))n.set(p,Ss(e,p));let i,a=Array.isArray(r),o=[r],s=-1,u=[],c=r,l,d;const f=[],h=[];do{s++;const p=s===o.length,_=p&&u.length!==0;if(p){if(l=h.length===0?void 0:f[f.length-1],c=d,d=h.pop(),_)if(a){c=c.slice();let w=0;for(const[T,S]of u){const E=T-w;S===null?(c.splice(E,1),w++):c[E]=S}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[w,T]of u)c[w]=T}s=i.index,o=i.keys,u=i.edits,a=i.inArray,i=i.prev}else if(d){if(l=a?s:o[s],c=d[l],c==null)continue;f.push(l)}let v;if(!Array.isArray(c)){var m,g;Ln(c)||ps(!1,`Invalid AST Node: ${ms(c)}.`);const w=p?(m=n.get(c.kind))===null||m===void 0?void 0:m.leave:(g=n.get(c.kind))===null||g===void 0?void 0:g.enter;if(v=w==null?void 0:w.call(e,c,l,d,f,h),v===on)break;if(v===!1){if(!p){f.pop();continue}}else if(v!==void 0&&(u.push([l,v]),!p))if(Ln(v))c=v;else{f.pop();continue}}if(v===void 0&&_&&u.push([l,c]),p)f.pop();else{var y;i={inArray:a,index:s,keys:o,edits:u,prev:i},a=Array.isArray(c),o=a?c:(y=t[c.kind])!==null&&y!==void 0?y:[],s=-1,u=[],d&&h.push(d),d=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:r}function Ss(r,e){const t=r[e];return typeof t=="object"?t:typeof t=="function"?{enter:t,leave:void 0}:{enter:r.enter,leave:r.leave}}function Ts(r){return se(r,ks)}const Es=80,ks={Name:{leave:r=>r.value},Variable:{leave:r=>"$"+r.name},Document:{leave:r=>k(r.definitions,` 2 3`)},OperationDefinition:{leave(r){const e=x("(",k(r.variableDefinitions,", "),")"),t=k([r.operation,k([r.name,e]),k(r.directives," ")]," ");return(t==="query"?"":t+" ")+r.selectionSet}},VariableDefinition:{leave:({variable:r,type:e,defaultValue:t,directives:n})=>r+": "+e+x(" = ",t)+x(" ",k(n," "))},SelectionSet:{leave:({selections:r})=>te(r)},Field:{leave({alias:r,name:e,arguments:t,directives:n,selectionSet:i}){const a=x("",r,": ")+e;let o=a+x("(",k(t,", "),")");return o.length>Es&&(o=a+x(`( 4`,Et(k(t,` 5`)),` 6)`)),k([o,k(n," "),i]," ")}},Argument:{leave:({name:r,value:e})=>r+": "+e},FragmentSpread:{leave:({name:r,directives:e})=>
6"..."+r+x(" ",k(e," "))},InlineFragment:{leave:({typeCondition:r,directives:e,selectionSet:t})=>k(["...",x("on ",r),k(e," "),t]," ")},FragmentDefinition:{leave:({name:r,typeCondition:e,variableDefinitions:t,directives:n,selectionSet:i})=>`fragment ${r}${x("(",k(t,", "),")")} on ${e} ${x("",k(n," ")," ")}`+i},IntValue:{leave:({value:r})=>r},FloatValue:{leave:({value:r})=>r},StringValue:{leave:({value:r,block:e})=>e?gs(r):ys(r)},BooleanValue:{leave:({value:r})=>r?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:r})=>r},ListValue:{leave:({values:r})=>"["+k(r,", ")+"]"},ObjectValue:{leave:({fields:r})=>"{"+k(r,", ")+"}"},ObjectField:{leave:({name:r,value:e})=>r+": "+e},Directive:{leave:({name:r,arguments:e})=>"@"+r+x("(",k(e,", "),")")},NamedType:{leave:({name:r})=>r},ListType:{leave:({type:r})=>"["+r+"]"},NonNullType:{leave:({type:r})=>r+"!"},SchemaDefinition:{leave:({description:r,directives:e,operationTypes:t})=>x("",r,` 7`)+k(["schema",k(e," "),te(t)]," ")},OperationTypeDefinition:{leave:({operation:r,type:e})=>r+": "+e},ScalarTypeDefinition:{leave:({description:r,name:e,directives:t})=>x("",r,` 8`)+k(["scalar",e,k(t," ")]," ")},ObjectTypeDefinition:{leave:({description:r,name:e,interfaces:t,directives:n,fields:i})=>x("",r,` 9`)+k(["type",e,x("implements ",k(t," & ")),k(n," "),te(i)]," ")},FieldDefinition:{leave:({description:r,name:e,arguments:t,type:n,directives:i})=>x("",r,` 10`)+e+(Nn(t)?x(`( 11`,Et(k(t,` 12`)),` 13)`):x("(",k(t,", "),")"))+": "+n+x(" ",k(i," "))},InputValueDefinition:{leave:({description:r,name:e,type:t,defaultValue:n,directives:i})=>x("",r,` 14`)+k([e+": "+t,x("= ",n),k(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:r,name:e,interfaces:t,directives:n,fields:i})=>x("",r,` 15`)+k(["interface",e,x("implements ",k(t," & ")),k(n," "),te(i)]," ")},UnionTypeDefinition:{leave:({description:r,name:e,directives:t,types:n})=>x("",r,` 16`)+k(["union",e,k(t," "),x("= ",k(n," | "))]," ")},EnumTypeDefinition:{leave:({description:r,name:e,directives:t,values:n})=>x("",r,` 17`)+k(["enum",e,k(t," "),te(n)]," ")},EnumValueDefinition:{leave:({description:r,name:e,directives:t})=>x("",r,` 18`)+k([e,k(t," ")]," ")},InputObjectTypeDefinition:{leave:({description:r,name:e,directives:t,fields:n})=>x("",r,` 19`)+k(["input",e,k(t," "),te(n)]," ")},DirectiveDefinition:{leave:({description:r,name:e,arguments:t,repeatable:n,locations:i})=>x("",r,` 20`)+"directive @"+e+(Nn(t)?x(`( 21`,Et(k(t,` 22`)),` 23)`):x("(",k(t,", "),")"))+(n?" repeatable":"")+" on "+k(i," | ")},SchemaExtension:{leave:({directives:r,operationTypes:e})=>k(["extend schema",k(r," "),te(e)]," ")},ScalarTypeExtension:{leave:({name:r,directives:e})=>k(["extend scalar",r,k(e," ")]," ")},ObjectTypeExtension:{leave:({name:r,interfaces:e,directives:t,fields:n})=>k(["extend type",r,x("implements ",k(e," & ")),k(t," "),te(n)]," ")},InterfaceTypeExtension:{leave:({name:r,interfaces:e,directives:t,fields:n})=>k(["extend interface",r,x("implements ",k(e," & ")),k(t," "),te(n)]," ")},UnionTypeExtension:{leave:({name:r,directives:e,types:t})=>k(["extend union",r,k(e," "),x("= ",k(t," | "))]," ")},EnumTypeExtension:{leave:({name:r,directives:e,values:t})=>k(["extend enum",r,k(e," "),te(t)]," ")},InputObjectTypeExtension:{leave:({name:r,directives:e,fields:t})=>k(["extend input",r,k(e," "),te(t)]," ")}};function k(r,e=""){var t;return(t=r==null?void 0:r.filter(n=>n).join(e))!==null&&t!==void 0?t:""}function te(r){return x(`{ 24`,Et(k(r,` 25`)),` 26}`)}function x(r,e,t=""){return e!=null&&e!==""?r+e+t:""}function Et(r){return x(" ",r.replace(/\n/g,` 27 `))}function Nn(r){var e;return(e=r==null?void 0:r.some(t=>t.includes(` 28`)))!==null&&e!==void 0?e:!1}function qn(r){return r.kind===G.FIELD||r.kind===G.FRAGMENT_SPREAD||r.kind===G.INLINE_FRAGMENT}function ct(r,e){var t=r.directives;return!t||!t.length?!0:Is(t).every(function(n){var i=n.directive,a=n.ifArgument,o=!1;return a.value.kind==="Variable"?(o=e&&e[a.value.name.value],I(o!==void 0,66,i.name.value)):o=a.value.value,i.name.value==="skip"?!o:o})}function at(r,e,t){var n=new Set(r),i=n.size;return se(e,{Directive:function(a){if(n.delete(a.name.value)&&(!t||!n.size))return on}}),t?!n.size:n.size<i}function Os(r){return r&&at(["client","export"],r,!0)}function Rs(r){var e=r.name.value;return e==="skip"||e==="include"}function Is(r){var e=[];return r&&r.length&&r.forEach(function(t){if(Rs(t)){var n=t.arguments,i=t.name.value;I(n&&n.length===1,67,i);var a=n[0];I(a.name&&a.name.value==="if",68,i);var o=a.value;I(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),69,i),e.push({directive:t,ifArgument:a})}}),e}const Cs=()=>Object.create(null),{forEach:xs,slice:jn}=Array.prototype,{hasOwnProperty:Ds}=Object.prototype;let lt=class Ji{constructor(e=!0,t=Cs){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return xs.call(e,n=>t=t.getChildTrie(n)),Ds.call(t,"data")?t.data:t.data=this.makeData(jn.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,i=e.length;t&&n<i;++n){const a=t.mapFor(e[n],!1);t=a&&a.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],i=this.mapFor(n,!1),a=i&&i.get(n);a&&(t=a.removeArray(jn.call(e,1)),!a.data&&!a.weak&&!(a.strong&&a.strong.size)&&i.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let n=t.get(e);return n||t.set(e,n=new Ji(this.weakness,this.makeData)),n}mapFor(e,t){return this.weakness&&Fs(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}};function Fs(r){switch(typeof r){case"object":if(r===null)break;case"function":return!0}return!1}function As(r,e){var t=e,n=[];
28r.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw K(70,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&n.push(a)}),typeof t>"u"&&(I(n.length===1,71,n.length),t=n[0].name.value);var i=b(b({},r),{definitions:Mt([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:t}}]}}],r.definitions,!0)});return i}function Wt(r){r===void 0&&(r=[]);var e={};return r.forEach(function(t){e[t.name.value]=t}),e}function Ut(r,e){switch(r.kind){case"InlineFragment":return r;case"FragmentSpread":{var t=r.name.value;if(typeof e=="function")return e(t);var n=e&&e[t];return I(n,72,t),n||null}default:return null}}function je(r){return{__ref:String(r)}}function A(r){return!!(r&&typeof r=="object"&&typeof r.__ref=="string")}function Ps(r){return z(r)&&r.kind==="Document"&&Array.isArray(r.definitions)}function Ms(r){return r.kind==="StringValue"}function Ls(r){return r.kind==="BooleanValue"}function Ns(r){return r.kind==="IntValue"}function qs(r){return r.kind==="FloatValue"}function js(r){return r.kind==="Variable"}function Bs(r){return r.kind==="ObjectValue"}function Qs(r){return r.kind==="ListValue"}function Hs(r){return r.kind==="EnumValue"}function Vs(r){return r.kind==="NullValue"}function He(r,e,t,n){if(Ns(t)||qs(t))r[e.value]=Number(t.value);else if(Ls(t)||Ms(t))r[e.value]=t.value;else if(Bs(t)){var i={};t.fields.map(function(o){return He(i,o.name,o.value,n)}),r[e.value]=i}else if(js(t)){var a=(n||{})[t.name.value];r[e.value]=a}else if(Qs(t))r[e.value]=t.values.map(function(o){var s={};return He(s,e,o,n),s[e.value]});else if(Hs(t))r[e.value]=t.value;else if(Vs(t))r[e.value]=null;else throw K(81,e.value,t.kind)}function $s(r,e){var t=null;r.directives&&(t={},r.directives.forEach(function(i){t[i.name.value]={},i.arguments&&i.arguments.forEach(function(a){var o=a.name,s=a.value;return He(t[i.name.value],o,s,e)})}));var n=null;return r.arguments&&r.arguments.length&&(n={},r.arguments.forEach(function(i){var a=i.name,o=i.value;return He(n,a,o,e)})),sn(r.name.value,n,t)}var zs=["connection","include","skip","client","rest","export","nonreactive"],sn=Object.assign(function(r,e,t){if(e&&t&&t.connection&&t.connection.key)if(t.connection.filter&&t.connection.filter.length>0){var n=t.connection.filter?t.connection.filter:[];n.sort();var i={};return n.forEach(function(s){i[s]=e[s]}),"".concat(t.connection.key,"(").concat(Ge(i),")")}else return t.connection.key;var a=r;if(e){var o=Ge(e);a+="(".concat(o,")")}return t&&Object.keys(t).forEach(function(s){zs.indexOf(s)===-1&&(t[s]&&Object.keys(t[s]).length?a+="@".concat(s,"(").concat(Ge(t[s]),")"):a+="@".concat(s))}),a},{setStringify:function(r){var e=Ge;return Ge=r,e}}),Ge=function(e){return JSON.stringify(e,Ws)};function Ws(r,e){return z(e)&&!Array.isArray(e)&&(e=Object.keys(e).sort().reduce(function(t,n){return t[n]=e[n],t},{})),e}function Gt(r,e){if(r.arguments&&r.arguments.length){var t={};return r.arguments.forEach(function(n){var i=n.name,a=n.value;return He(t,i,a,e)}),t}return null}function me(r){return r.alias?r.alias.value:r.name.value}function Mr(r,e,t){for(var n,i=0,a=e.selections;i<a.length;i++){var o=a[i];if(ve(o)){if(o.name.value==="__typename")return r[me(o)]}else n?n.push(o):n=[o]}if(typeof r.__typename=="string")return r.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var o=u[s],c=Mr(r,Ut(o,t).selectionSet,t);if(typeof c=="string")return c}}function ve(r){return r.kind==="Field"}function Us(r){return r.kind==="InlineFragment"}function ft(r){I(r&&r.kind==="Document",73);var e=r.definitions.filter(function(t){return t.kind!=="FragmentDefinition"}).map(function(t){if(t.kind!=="OperationDefinition")throw K(74,t.kind);return t});return I(e.length<=1,75,e.length),r}function dt(r){return ft(r),r.definitions.filter(function(e){return e.kind==="OperationDefinition"})[0]}function Lr(r){return r.definitions.filter(function(e){return e.kind==="OperationDefinition"&&!!e.name}).map(function(e){return e.name.value})[0]||null}function Kt(r){return r.definitions.filter(function(e){return e.kind==="FragmentDefinition"})}function Xi(r){var e=dt(r);return I(e&&e.operation==="query",76),e}function Gs(r){I(r.kind==="Document",77),I(r.definitions.length<=1,78);var e=r.definitions[0];return I(e.kind==="FragmentDefinition",79),e}function ht(r){ft(r);for(var e,t=0,n=r.definitions;t<n.length;t++){var i=n[t];if(i.kind==="OperationDefinition"){var a=i.operation;if(a==="query"||a==="mutation"||a==="subscription")return i}i.kind==="FragmentDefinition"&&!e&&(e=i)}if(e)return e;throw K(80)}function un(r){var e=Object.create(null),t=r&&r.variableDefinitions;return t&&t.length&&t.forEach(function(n){n.defaultValue&&He(e,n.variable.name,n.defaultValue)}),e}function Ks(r){return r}var Zi=function(){function r(e,t){t===void 0&&(t=Object.create(null)),this.resultCache=Gi?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),t.cache!==!1&&(this.stableCacheKeys=new lt(ue,function(n){return{key:n}}))}return r.prototype.getCacheKey=function(e){return[e]},r.identity=function(){return new r(Ks,{cache:!1})}
28,r.split=function(e,t,n){return n===void 0&&(n=r.identity()),new r(function(i){var a=e(i)?t:n;return a.transformDocument(i)},{cache:!1})},r.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;ft(e);var n=this.transform(e);return this.resultCache.add(n),t&&(t.value=n),n},r.prototype.concat=function(e){var t=this;return new r(function(n){return e.transformDocument(t.transformDocument(n))},{cache:!1})},r.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);if(t)return I(Array.isArray(t),65),this.stableCacheKeys.lookupArray(t)}},r}(),Ce=ue?new WeakMap:void 0,ea=function(r){var e;return e=Ce==null?void 0:Ce.get(r),e||(e=Ts(r),Ce==null||Ce.set(r,e)),e},Bn={kind:G.FIELD,name:{kind:G.NAME,value:"__typename"}};function ta(r,e){return!r||r.selectionSet.selections.every(function(t){return t.kind===G.FRAGMENT_SPREAD&&ta(e[t.name.value],e)})}function Ys(r){return ta(dt(r)||Gs(r),Wt(Kt(r)))?null:r}function Js(r){var e=new Map,t=new Map;return r.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&t.set(n.test,n))}),function(n){var i=e.get(n.name.value);return!i&&t.size&&t.forEach(function(a,o){o(n)&&(i=a)}),i}}function Qn(r){var e=new Map;return function(n){n===void 0&&(n=r);var i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function ra(r,e){ft(e);for(var t=Qn(""),n=Qn(""),i=function(p){for(var _=0,v=void 0;_<p.length&&(v=p[_]);++_)if(!H(v)){if(v.kind===G.OPERATION_DEFINITION)return t(v.name&&v.name.value);if(v.kind===G.FRAGMENT_DEFINITION)return n(v.name.value)}return globalThis.__DEV__!==!1&&I.error(82),null},a=0,o=e.definitions.length-1;o>=0;--o)e.definitions[o].kind===G.OPERATION_DEFINITION&&++a;var s=Js(r),u=function(p){return ae(p)&&p.map(s).some(function(_){return _&&_.remove})},c=new Map,l=!1,d={enter:function(p){if(u(p.directives))return l=!0,null}},f=se(e,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(p,_,v,w,T){var S=i(T);S&&S.variables.add(p.name.value)}},FragmentSpread:{enter:function(p,_,v,w,T){if(u(p.directives))return l=!0,null;var S=i(T);S&&S.fragmentSpreads.add(p.name.value)}},FragmentDefinition:{enter:function(p,_,v,w){c.set(JSON.stringify(w),p)},leave:function(p,_,v,w){var T=c.get(JSON.stringify(w));if(p===T)return p;if(a>0&&p.selectionSet.selections.every(function(S){return S.kind===G.FIELD&&S.name.value==="__typename"}))return n(p.name.value).removed=!0,l=!0,null}},Directive:{leave:function(p){if(s(p))return l=!0,null}}});if(!l)return e;var h=function(p){return p.transitiveVars||(p.transitiveVars=new Set(p.variables),p.removed||p.fragmentSpreads.forEach(function(_){h(n(_)).transitiveVars.forEach(function(v){p.transitiveVars.add(v)})})),p},m=new Set;f.definitions.forEach(function(p){p.kind===G.OPERATION_DEFINITION?h(t(p.name&&p.name.value)).fragmentSpreads.forEach(function(_){m.add(_)}):p.kind===G.FRAGMENT_DEFINITION&&a===0&&!n(p.name.value).removed&&m.add(p.name.value)}),m.forEach(function(p){h(n(p)).fragmentSpreads.forEach(function(_){m.add(_)})});var g=function(p){return!!(!m.has(p)||n(p).removed)},y={enter:function(p){if(g(p.name.value))return null}};return Ys(se(f,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(p){if(p.variableDefinitions){var _=h(t(p.name&&p.name.value)).transitiveVars;if(_.size<p.variableDefinitions.length)return b(b({},p),{variableDefinitions:p.variableDefinitions.filter(function(v){return _.has(v.variable.name.value)})})}}}}))}var cn=Object.assign(function(r){return se(r,{SelectionSet:{enter:function(e,t,n){if(!(n&&n.kind===G.OPERATION_DEFINITION)){var i=e.selections;if(i){var a=i.some(function(s){return ve(s)&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)});if(!a){var o=n;if(!(ve(o)&&o.directives&&o.directives.some(function(s){return s.name.value==="export"})))return b(b({},e),{selections:Mt(Mt([],i,!0),[Bn],!1)})}}}}}})},{added:function(r){return r===Bn}});function Xs(r){var e=ht(r),t=e.operation;if(t==="query")return r;var n=se(r,{OperationDefinition:{enter:function(i){return b(b({},i),{operation:"query"})}}});return n}function na(r){ft(r);var e=ra([{test:function(t){return t.name.value==="client"},remove:!0}],r);return e}var Zs=Object.prototype.hasOwnProperty;function Hn(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return ln(r)}function ln(r){var e=r[0]||{},t=r.length;if(t>1)for(var n=new ge,i=1;i<t;++i)e=n.merge(e,r[i]);return e}
28var eu=function(r,e,t){return this.merge(r[t],e[t])},ge=function(){function r(e){e===void 0&&(e=eu),this.reconciler=e,this.isObject=z,this.pastCopies=new Set}return r.prototype.merge=function(e,t){for(var n=this,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return z(t)&&z(e)?(Object.keys(t).forEach(function(o){if(Zs.call(e,o)){var s=e[o];if(t[o]!==s){var u=n.reconciler.apply(n,Mt([e,t,o],i,!1));u!==s&&(e=n.shallowCopyForMerge(e),e[o]=u)}}else e=n.shallowCopyForMerge(e),e[o]=t[o]}),e):t},r.prototype.shallowCopyForMerge=function(e){return z(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e=b({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},r}();function tu(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=ru(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var n=0;return function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 29In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ru(r,e){if(r){if(typeof r=="string")return Vn(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Vn(r,e)}}function Vn(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function $n(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}function fn(r,e,t){return e&&$n(r.prototype,e),t&&$n(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}var dn=function(){return typeof Symbol=="function"},hn=function(r){return dn()&&!!Symbol[r]},pn=function(r){return hn(r)?Symbol[r]:"@@"+r};dn()&&!hn("observable")&&(Symbol.observable=Symbol("observable"));var nu=pn("iterator"),Nr=pn("observable"),ia=pn("species");function Nt(r,e){var t=r[e];if(t!=null){if(typeof t!="function")throw new TypeError(t+" is not a function");return t}}function Ke(r){var e=r.constructor;return e!==void 0&&(e=e[ia],e===null&&(e=void 0)),e!==void 0?e:N}function iu(r){return r instanceof N}function Ve(r){Ve.log?Ve.log(r):setTimeout(function(){throw r})}function kt(r){Promise.resolve().then(function(){try{r()}catch(e){Ve(e)}})}function aa(r){var e=r._cleanup;if(e!==void 0&&(r._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{var t=Nt(e,"unsubscribe");t&&t.call(e)}}catch(n){Ve(n)}}function qr(r){r._observer=void 0,r._queue=void 0,r._state="closed"}function au(r){var e=r._queue;if(e){r._queue=void 0,r._state="ready";for(var t=0;t<e.length&&(oa(r,e[t].type,e[t].value),r._state!=="closed");++t);}}function oa(r,e,t){r._state="running";var n=r._observer;try{var i=Nt(n,e);switch(e){case"next":i&&i.call(n,t);break;case"error":if(qr(r),i)i.call(n,t);else throw t;break;case"complete":qr(r),i&&i.call(n);break}}catch(a){Ve(a)}r._state==="closed"?aa(r):r._state==="running"&&(r._state="ready")}function dr(r,e,t){if(r._state!=="closed"){if(r._state==="buffering"){r._queue.push({type:e,value:t});return}if(r._state!=="ready"){r._state="buffering",r._queue=[{type:e,value:t}],kt(function(){return au(r)});return}oa(r,e,t)}}var ou=function(){function r(t,n){this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new su(this);try{this._cleanup=n.call(void 0,i)}catch(a){i.error(a)}this._state==="initializing"&&(this._state="ready")}var e=r.prototype;return e.unsubscribe=function(){this._state!=="closed"&&(qr(this),aa(this))},fn(r,[{key:"closed",get:function(){return this._state==="closed"}}]),r}(),su=function(){function r(t){this._subscription=t}var e=r.prototype;return e.next=function(n){dr(this._subscription,"next",n)},e.error=function(n){dr(this._subscription,"error",n)},e.complete=function(){dr(this._subscription,"complete")},fn(r,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),r}(),N=function(){function r(t){if(!(this instanceof r))throw new TypeError("Observable cannot be called as a function");if(typeof t!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=t}var e=r.prototype;return e.subscribe=function(n){return(typeof n!="object"||n===null)&&(n={next:n,error:arguments[1],complete:arguments[2]}),new ou(n,this._subscriber)},e.forEach=function(n){var i=this;return new Promise(function(a,o){if(typeof n!="function"){o(new TypeError(n+" is not a function"));return}function s(){u.unsubscribe(),a()}var u=i.subscribe({next:function(c){try{n(c,s)}catch(l){o(l),u.unsubscribe()}},error:o,complete:a})})},e.map=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=Ke(this);return new a(function(o){return i.subscribe({next:function(s){try{s=n(s)}catch(u){return o.error(u)}o.next(s)},error:function(s){o.error(s)},complete:function(){o.complete()}})})},e.filter=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=Ke(this);return new a(function(o){return i.subscribe({next:function(s){try{if(!n(s))return}catch(u){return o.error(u)}o.next(s)},error:function(s){o.error(s)},complete:function(){o.complete()}})})},e.reduce=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=Ke(this),o=arguments.length>1,s=!1,u=arguments[1],c=u;return new a(function(l){return i.subscribe({next:function(d){var f=!s;if(s=!0,!f||o)try{c=n(c,d)}catch(h){return l.error(h)}else c=d},error:function(d){l.error(d)},complete:function(){if(!s&&!o)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(c),l.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=Ke(this);return new s(function(u){var c,l=0;function d(f){c=f.subscribe({next:function(h){u.next(h)},error:function(h){u.error(h)},complete:function(){l===a.length?(c=void 0,u.complete()):d(s.from(a[l++]))}})}return d(n),function(){c&&(c.unsubscribe(),c=void 0)}})},e.flatMap=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=Ke(this);return new a(function(o){var s=[],u=i.subscribe({next:function(l){if(n)try{l=n(l)}catch(f){return o.error(f)}var d=a.from(l).subscribe({next:function(f){o.next(f)},error:function(f){o.error(f)},complete:function(){var f=s.indexOf(d);f>=0&&s.splice(f,1),c()}});s.push(d)},error:function(l){o.error(l)},complete:function(){c()}});function c(){u.closed&&s.length===0&&o.complete()}
29return function(){s.forEach(function(l){return l.unsubscribe()}),u.unsubscribe()}})},e[Nr]=function(){return this},r.from=function(n){var i=typeof this=="function"?this:r;if(n==null)throw new TypeError(n+" is not an object");var a=Nt(n,Nr);if(a){var o=a.call(n);if(Object(o)!==o)throw new TypeError(o+" is not an object");return iu(o)&&o.constructor===i?o:new i(function(s){return o.subscribe(s)})}if(hn("iterator")&&(a=Nt(n,nu),a))return new i(function(s){kt(function(){if(!s.closed){for(var u=tu(a.call(n)),c;!(c=u()).done;){var l=c.value;if(s.next(l),s.closed)return}s.complete()}})});if(Array.isArray(n))return new i(function(s){kt(function(){if(!s.closed){for(var u=0;u<n.length;++u)if(s.next(n[u]),s.closed)return;s.complete()}})});throw new TypeError(n+" is not observable")},r.of=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=typeof this=="function"?this:r;return new o(function(s){kt(function(){if(!s.closed){for(var u=0;u<i.length;++u)if(s.next(i[u]),s.closed)return;s.complete()}})})},fn(r,null,[{key:ia,get:function(){return this}}]),r}();dn()&&Object.defineProperty(N,Symbol("extensions"),{value:{symbol:Nr,hostReportError:Ve},configurable:!0});function uu(r){var e,t=r.Symbol;if(typeof t=="function")if(t.observable)e=t.observable;else{typeof t.for=="function"?e=t.for("https://github.com/benlesh/symbol-observable"):e=t("https://github.com/benlesh/symbol-observable");try{t.observable=e}catch{}}else e="@@observable";return e}var Fe;typeof self<"u"?Fe=self:typeof window<"u"?Fe=window:typeof global<"u"?Fe=global:typeof module<"u"?Fe=module:Fe=Function("return this")();uu(Fe);var zn=N.prototype,Wn="@@observable";zn[Wn]||(zn[Wn]=function(){return this});var cu=Object.prototype.toString;function sa(r){return jr(r)}function jr(r,e){switch(cu.call(r)){case"[object Array]":{if(e=e||new Map,e.has(r))return e.get(r);var t=r.slice(0);return e.set(r,t),t.forEach(function(i,a){t[a]=jr(i,e)}),t}case"[object Object]":{if(e=e||new Map,e.has(r))return e.get(r);var n=Object.create(Object.getPrototypeOf(r));return e.set(r,n),Object.keys(r).forEach(function(i){n[i]=jr(r[i],e)}),n}default:return r}}function Xe(r,e,t){var n=[];r.forEach(function(i){return i[e]&&n.push(i)}),n.forEach(function(i){return i[e](t)})}function hr(r,e,t){return new N(function(n){var i={then:function(u){return new Promise(function(c){return c(u())})}};function a(u,c){return function(l){if(u){var d=function(){return n.closed?0:u(l)};i=i.then(d,d).then(function(f){return n.next(f)},function(f){return n.error(f)})}else n[c](l)}}var o={next:a(e,"next"),error:a(t,"error"),complete:function(){i.then(function(){return n.complete()})}},s=r.subscribe(o);return function(){return s.unsubscribe()}})}function ua(r){function e(t){Object.defineProperty(r,t,{value:N})}return us&&Symbol.species&&e(Symbol.species),e("@@species"),r}function Un(r){return r&&typeof r.then=="function"}var Ae=function(r){we(e,r);function e(t){var n=r.call(this,function(i){return n.addObserver(i),function(){return n.removeObserver(i)}})||this;return n.observers=new Set,n.promise=new Promise(function(i,a){n.resolve=i,n.reject=a}),n.handlers={next:function(i){n.sub!==null&&(n.latest=["next",i],n.notify("next",i),Xe(n.observers,"next",i))},error:function(i){var a=n.sub;a!==null&&(a&&setTimeout(function(){return a.unsubscribe()}),n.sub=null,n.latest=["error",i],n.reject(i),n.notify("error",i),Xe(n.observers,"error",i))},complete:function(){var i=n,a=i.sub,o=i.sources,s=o===void 0?[]:o;if(a!==null){var u=s.shift();u?Un(u)?u.then(function(c){return n.sub=c.subscribe(n.handlers)}):n.sub=u.subscribe(n.handlers):(a&&setTimeout(function(){return a.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]==="next"?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),Xe(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(i){n.reject(i),n.sources=[],n.handlers.complete()},n.promise.catch(function(i){}),typeof t=="function"&&(t=[new N(t)]),Un(t)?t.then(function(i){return n.start(i)},n.handlers.error):n.start(t),n}return e.prototype.start=function(t){this.sub===void 0&&(this.sources=Array.from(t),this.handlers.complete())},e.prototype.deliverLastMessage=function(t){if(this.latest){var n=this.latest[0],i=t[n];i&&i.call(t,this.latest[1]),this.sub===null&&n==="next"&&t.complete&&t.complete()}},e.prototype.addObserver=function(t){this.observers.has(t)||(this.deliverLastMessage(t),this.observers.add(t))},e.prototype.removeObserver=function(t){this.observers.delete(t)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(t,n){var i=this.nextResultListeners;
29i.size&&(this.nextResultListeners=new Set,i.forEach(function(a){return a(t,n)}))},e.prototype.beforeNext=function(t){var n=!1;this.nextResultListeners.add(function(i,a){n||(n=!0,t(i,a))})},e}(N);ua(Ae);function Be(r){return"incremental"in r}function lu(r){return"hasNext"in r&&"data"in r}function fu(r){return Be(r)||lu(r)}function du(r){return z(r)&&"payload"in r}function ca(r,e){var t=r,n=new ge;return Be(e)&&ae(e.incremental)&&e.incremental.forEach(function(i){for(var a=i.data,o=i.path,s=o.length-1;s>=0;--s){var u=o[s],c=!isNaN(+u),l=c?[]:{};l[u]=a,a=l}t=n.merge(t,a)}),t}function Ot(r){var e=Br(r);return ae(e)}function Br(r){var e=ae(r.errors)?r.errors.slice(0):[];return Be(r)&&ae(r.incremental)&&r.incremental.forEach(function(t){t.errors&&e.push.apply(e,t.errors)}),e}function pr(r){return new N(function(e){e.error(r)})}var Qr=function(r,e,t){var n=new Error(t);throw n.name="ServerError",n.response=r,n.statusCode=r.status,n.result=e,n};function hu(r){for(var e=["query","operationName","variables","extensions","context"],t=0,n=Object.keys(r);t<n.length;t++){var i=n[t];if(e.indexOf(i)<0)throw K(43,i)}return r}function pu(r,e){var t=b({},r),n=function(a){typeof a=="function"?t=b(b({},t),a(t)):t=b(b({},t),a)},i=function(){return b({},t)};return Object.defineProperty(e,"setContext",{enumerable:!1,value:n}),Object.defineProperty(e,"getContext",{enumerable:!1,value:i}),e}function mu(r){var e={variables:r.variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query};return e.operationName||(e.operationName=typeof e.query!="string"?Lr(e.query)||void 0:""),e}function vu(r,e){var t=b({},r),n=new Set(Object.keys(r));return se(e,{Variable:function(i,a,o){o&&o.kind!=="VariableDefinition"&&n.delete(i.name.value)}}),n.forEach(function(i){delete t[i]}),t}function Gn(r,e){return e?e(r):N.of()}function Ye(r){return typeof r=="function"?new pt(r):r}function gt(r){return r.request.length<=1}var pt=function(){function r(e){e&&(this.request=e)}return r.empty=function(){return new r(function(){return N.of()})},r.from=function(e){return e.length===0?r.empty():e.map(Ye).reduce(function(t,n){return t.concat(n)})},r.split=function(e,t,n){var i=Ye(t),a=Ye(n||new r(Gn));return gt(i)&>(a)?new r(function(o){return e(o)?i.request(o)||N.of():a.request(o)||N.of()}):new r(function(o,s){return e(o)?i.request(o,s)||N.of():a.request(o,s)||N.of()})},r.execute=function(e,t){return e.request(pu(t.context,mu(hu(t))))||N.of()},r.concat=function(e,t){var n=Ye(e);if(gt(n))return globalThis.__DEV__!==!1&&I.warn(35,n),n;var i=Ye(t);return gt(i)?new r(function(a){return n.request(a,function(o){return i.request(o)||N.of()})||N.of()}):new r(function(a,o){return n.request(a,function(s){return i.request(s,o)||N.of()})||N.of()})},r.prototype.split=function(e,t,n){return this.concat(r.split(e,t,n||new r(Gn)))},r.prototype.concat=function(e){return r.concat(this,e)},r.prototype.request=function(e,t){throw K(36)},r.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},r.prototype.setOnError=function(e){return this.onError=e,this},r}(),Hr=pt.execute;function gu(r){var e,t=r[Symbol.asyncIterator]();return e={next:function(){return t.next()}},e[Symbol.asyncIterator]=function(){return this},e}function yu(r){var e=null,t=null,n=!1,i=[],a=[];function o(d){if(!t){if(a.length){var f=a.shift();if(Array.isArray(f)&&f[0])return f[0]({value:d,done:!1})}i.push(d)}}function s(d){t=d;var f=a.slice();f.forEach(function(h){h[1](d)}),!e||e()}function u(){n=!0;var d=a.slice();d.forEach(function(f){f[0]({value:void 0,done:!0})}),!e||e()}e=function(){e=null,r.removeListener("data",o),r.removeListener("error",s),r.removeListener("end",u),r.removeListener("finish",u),r.removeListener("close",u)},r.on("data",o),r.on("error",s),r.on("end",u),r.on("finish",u),r.on("close",u);function c(){return new Promise(function(d,f){if(t)return f(t);if(i.length)return d({value:i.shift(),done:!1});if(n)return d({value:void 0,done:!0});a.push([d,f])})}var l={next:function(){return c()}};return zt&&(l[Symbol.asyncIterator]=function(){return this}),l}function bu(r){var e=!1,t={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(n,i){r.then(function(a){n({value:a,done:!1})}).catch(i)}))}};return zt&&(t[Symbol.asyncIterator]=function(){return this}),t}function Kn(r){var e={next:function(){return r.read()}};return zt&&(e[Symbol.asyncIterator]=function(){return this}),e}function _u(r){return!!r.body}function wu(r){return!!r.getReader}function Su(r){return!!(zt&&r[Symbol.asyncIterator])}function Tu(r){return!!r.stream}function Eu(r){return!!r.arrayBuffer}function ku(r){return!!r.pipe}function Ou(r){var e=r;if(_u(r)&&(e=r.body),Su(e))return gu(e);
29if(wu(e))return Kn(e.getReader());if(Tu(e))return Kn(e.stream().getReader());if(Eu(e))return bu(e.arrayBuffer());if(ku(e))return yu(e);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Yn=Object.prototype.hasOwnProperty;function Ru(r,e){var t;return fe(this,void 0,void 0,function(){var n,i,a,o,s,u,c,l,d,f,h,m,g,y,p,_,v,w,T,S,E,R,L;return de(this,function(F){switch(F.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),i=(t=r.headers)===null||t===void 0?void 0:t.get("content-type"),a="boundary=",o=i!=null&&i.includes(a)?i==null?void 0:i.substring((i==null?void 0:i.indexOf(a))+a.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s=`\r 30--`.concat(o),u="",c=Ou(r),l=!0,F.label=1;case 1:return l?[4,c.next()]:[3,3];case 2:for(d=F.sent(),f=d.value,h=d.done,m=typeof f=="string"?f:n.decode(f),g=u.length-s.length+1,l=!h,u+=m,y=u.indexOf(s,g);y>-1;){if(p=void 0,R=[u.slice(0,y),u.slice(y+s.length)],p=R[0],u=R[1],_=p.indexOf(`\r 31\r 32`),v=Iu(p.slice(0,_)),w=v["content-type"],w&&w.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(T=p.slice(_),T){if(S=la(r,T),Object.keys(S).length>1||"data"in S||"incremental"in S||"errors"in S||"payload"in S)du(S)?(E={},"payload"in S&&(E=b({},S.payload)),"errors"in S&&(E=b(b({},E),{extensions:b(b({},"extensions"in E?E.extensions:null),(L={},L[Ki]=S.errors,L))})),e(E)):e(S);else if(Object.keys(S).length===1&&"hasNext"in S&&!S.hasNext)return[2]}y=u.indexOf(s)}return[3,1];case 3:return[2]}})})}function Iu(r){var e={};return r.split(` 33`).forEach(function(t){var n=t.indexOf(":");if(n>-1){var i=t.slice(0,n).trim().toLowerCase(),a=t.slice(n+1).trim();e[i]=a}}),e}function la(r,e){if(r.status>=300){var t=function(){try{return JSON.parse(e)}catch{return e}};Qr(r,t(),"Response not successful: Received status code ".concat(r.status))}try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=r,n.statusCode=r.status,n.bodyText=e,n}}function Cu(r,e){r.result&&r.result.errors&&r.result.data&&e.next(r.result),e.error(r)}function xu(r){return function(e){return e.text().then(function(t){return la(e,t)}).then(function(t){return e.status>=300&&Qr(e,t,"Response not successful: Received status code ".concat(e.status)),!Array.isArray(t)&&!Yn.call(t,"data")&&!Yn.call(t,"errors")&&Qr(e,t,"Server response was missing for query '".concat(Array.isArray(r)?r.map(function(n){return n.operationName}):r.operationName,"'.")),t})}}var Vr=function(r,e){var t;try{t=JSON.stringify(r)}catch(i){var n=K(39,e,i.message);throw n.parseError=i,n}return t},Du={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Fu={accept:"*/*","content-type":"application/json"},Au={method:"POST"},Pu={http:Du,headers:Fu,options:Au},Mu=function(r,e){return e(r)};function Lu(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var i={},a={};t.forEach(function(d){i=b(b(b({},i),d.options),{headers:b(b({},i.headers),d.headers)}),d.credentials&&(i.credentials=d.credentials),a=b(b({},a),d.http)}),i.headers&&(i.headers=Nu(i.headers,a.preserveHeaderCase));var o=r.operationName,s=r.extensions,u=r.variables,c=r.query,l={operationName:o,variables:u};return a.includeExtensions&&(l.extensions=s),a.includeQuery&&(l.query=e(c,ea)),{options:i,body:l}}function Nu(r,e){if(!e){var t=Object.create(null);return Object.keys(Object(r)).forEach(function(a){t[a.toLowerCase()]=r[a]}),t}var n=Object.create(null);Object.keys(Object(r)).forEach(function(a){n[a.toLowerCase()]={originalName:a,value:r[a]}});var i=Object.create(null);return Object.keys(n).forEach(function(a){i[n[a].originalName]=n[a].value}),i}var qu=function(r){if(!r&&typeof fetch>"u")throw K(37)},ju=function(r,e){var t=r.getContext(),n=t.uri;return n||(typeof e=="function"?e(r):e||"/graphql")};function Bu(r,e){var t=[],n=function(d,f){t.push("".concat(d,"=").concat(encodeURIComponent(f)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var i=void 0;try{i=Vr(e.variables,"Variables map")}catch(d){return{parseError:d}}n("variables",i)}if(e.extensions){var a=void 0;try{a=Vr(e.extensions,"Extensions map")}catch(d){return{parseError:d}}n("extensions",a)}var o="",s=r,u=r.indexOf("#");u!==-1&&(o=r.substr(u),s=r.substr(0,u));var c=s.indexOf("?")===-1?"?":"&",l=s+c+t.join("&")+o;return{newURI:l}}var Jn=Yi(function(){return fetch}),Qu=function(r){r===void 0&&(r={});var e=r.uri,t=e===void 0?"/graphql":e,n=r.fetch,i=r.print,a=i===void 0?Mu:i,o=r.includeExtensions,s=r.preserveHeaderCase,u=r.useGETForQueries,c=r.includeUnusedVariables,l=c===void 0?!1:c,d=pe(r,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&qu(n||Jn);var f={http:{includeExtensions:o,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new pt(function(h){var m=ju(h,t),g=h.getContext(),y={};if(g.clientAwareness){var p=g.clientAwareness,_=p.name,v=p.version;_&&(y["apollographql-client-name"]=_),v&&(y["apollographql-client-version"]=v)}var w=b(b({},y),g.headers),T={http:g.http,options:g.fetchOptions,credentials:g.credentials,headers:w};
33if(at(["client"],h.query)){var S=na(h.query);if(!S)return pr(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));h.query=S}var E=Lu(h,a,Pu,f,T),R=E.options,L=E.body;L.variables&&!l&&(L.variables=vu(L.variables,h.query));var F;!R.signal&&typeof AbortController<"u"&&(F=new AbortController,R.signal=F.signal);var Q=function(X){return X.kind==="OperationDefinition"&&X.operation==="mutation"},ee=function(X){return X.kind==="OperationDefinition"&&X.operation==="subscription"},ar=ee(ht(h.query)),or=at(["defer"],h.query);if(u&&!h.query.definitions.some(Q)&&(R.method="GET"),or||ar){R.headers=R.headers||{};var sr="multipart/mixed;";ar&&or&&globalThis.__DEV__!==!1&&I.warn(38),ar?sr+="boundary=graphql;subscriptionSpec=1.0,application/json":or&&(sr+="deferSpec=20220824,application/json"),R.headers.accept=sr}if(R.method==="GET"){var Rn=Bu(m,L),co=Rn.newURI,In=Rn.parseError;if(In)return pr(In);m=co}else try{R.body=Vr(L,"Payload")}catch(X){return pr(X)}return new N(function(X){var lo=n||Yi(function(){return fetch})||Jn,Cn=X.next.bind(X);return lo(m,R).then(function(Re){var ur;h.setContext({response:Re});var xn=(ur=Re.headers)===null||ur===void 0?void 0:ur.get("content-type");return xn!==null&&/^multipart\/mixed/i.test(xn)?Ru(Re,Cn):xu(h)(Re).then(Cn)}).then(function(){F=void 0,X.complete()}).catch(function(Re){F=void 0,Cu(Re,X)}),function(){F&&F.abort()}})})},Hu=function(r){we(e,r);function e(t){t===void 0&&(t={});var n=r.call(this,Qu(t).request)||this;return n.options=t,n}return e}(pt);const Vu=()=>Object.create(null),{forEach:$u,slice:zu}=Array.prototype,{hasOwnProperty:Wu}=Object.prototype;class mn{constructor(e=!0,t=Vu){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return $u.call(e,n=>t=t.getChildTrie(n)),Wu.call(t,"data")?t.data:t.data=this.makeData(zu.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let n=0,i=e.length;t&&n<i;++n){const a=this.weakness&&Xn(e[n])?t.weak:t.strong;t=a&&a.get(e[n])}return t&&t.data}getChildTrie(e){const t=this.weakness&&Xn(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let n=t.get(e);return n||t.set(e,n=new mn(this.weakness,this.makeData)),n}}function Xn(r){switch(typeof r){case"object":if(r===null)break;case"function":return!0}return!1}function Uu(){}class Gu{constructor(e=1/0,t=Uu){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older: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.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return t?(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0):!1}}var U=null,Zn={},Ku=1,Yu=function(){return function(){function r(){this.id=["slot",Ku++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return r.prototype.hasValue=function(){for(var e=U;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===Zn)break;return e!==U&&(U.slots[this.id]=t),!0}return U&&(U.slots[this.id]=Zn),!1},r.prototype.getValue=function(){if(this.hasValue())return U.slots[this.id]},r.prototype.withValue=function(e,t,n,i){var a,o=(a={__proto__:null},a[this.id]=e,a),s=U;U={parent:s,slots:o};try{return t.apply(i,n)}finally{U=s}},r.bind=function(e){var t=U;return function(){var n=U;try{return U=t,e.apply(this,arguments)}finally{U=n}}}
33,r.noContext=function(e,t,n){if(U){var i=U;try{return U=null,e.apply(n,t)}finally{U=i}}else return e.apply(n,t)},r}()};function ei(r){try{return r()}catch{}}var mr="@wry/context:Slot",Ju=ei(function(){return globalThis})||ei(function(){return global})||Object.create(null),ti=Ju,Yt=ti[mr]||Array[mr]||function(r){try{Object.defineProperty(ti,mr,{value:r,enumerable:!1,writable:!1,configurable:!0})}finally{return r}}(Yu());Yt.bind;Yt.noContext;const Jt=new Yt,{hasOwnProperty:Xu}=Object.prototype,vn=Array.from||function(r){const e=[];return r.forEach(t=>e.push(t)),e};function qt(r){const{unsubscribe:e}=r;typeof e=="function"&&(r.unsubscribe=void 0,e())}const ot=[],Zu=100;function $e(r,e){if(!r)throw new Error(e||"assertion failure")}function fa(r,e){const t=r.length;return t>0&&t===e.length&&r[t-1]===e[t-1]}function da(r){switch(r.length){case 0:throw new Error("unknown value");case 1:return r[0];case 2:throw r[1]}}function ha(r){return r.slice(0)}class Xt{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Xt.count}peek(){if(this.value.length===1&&!ye(this))return ri(this),this.value[0]}recompute(e){return $e(!this.recomputing,"already recomputing"),ri(this),ye(this)?ec(this,e):da(this.value)}setDirty(){this.dirty||(this.dirty=!0,pa(this),qt(this))}dispose(){this.setDirty(),ba(this),gn(this,(e,t)=>{e.setDirty(),_a(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=ot.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(vn(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),ot.push(this.deps),this.deps=null)}}Xt.count=0;function ri(r){const e=Jt.getValue();if(e)return r.parents.add(e),e.childValues.has(r)||e.childValues.set(r,[]),ye(r)?va(e,r):ga(e,r),e}function ec(r,e){return ba(r),Jt.withValue(r,tc,[r,e]),nc(r,e)&&rc(r),da(r.value)}function tc(r,e){r.recomputing=!0;const{normalizeResult:t}=r;let n;t&&r.value.length===1&&(n=ha(r.value)),r.value.length=0;try{if(r.value[0]=r.fn.apply(null,e),t&&n&&!fa(n,r.value))try{r.value[0]=t(r.value[0],n[0])}catch{}}catch(i){r.value[1]=i}r.recomputing=!1}function ye(r){return r.dirty||!!(r.dirtyChildren&&r.dirtyChildren.size)}function rc(r){r.dirty=!1,!ye(r)&&ma(r)}function pa(r){gn(r,va)}function ma(r){gn(r,ga)}function gn(r,e){const t=r.parents.size;if(t){const n=vn(r.parents);for(let i=0;i<t;++i)e(n[i],r)}}function va(r,e){$e(r.childValues.has(e)),$e(ye(e));const t=!ye(r);if(!r.dirtyChildren)r.dirtyChildren=ot.pop()||new Set;else if(r.dirtyChildren.has(e))return;r.dirtyChildren.add(e),t&&pa(r)}function ga(r,e){$e(r.childValues.has(e)),$e(!ye(e));const t=r.childValues.get(e);t.length===0?r.childValues.set(e,ha(e.value)):fa(t,e.value)||r.setDirty(),ya(r,e),!ye(r)&&ma(r)}function ya(r,e){const t=r.dirtyChildren;t&&(t.delete(e),t.size===0&&(ot.length<Zu&&ot.push(t),r.dirtyChildren=null))}function ba(r){r.childValues.size>0&&r.childValues.forEach((e,t)=>{_a(r,t)}),r.forgetDeps(),$e(r.dirtyChildren===null)}function _a(r,e){e.parents.delete(r),r.childValues.delete(e),ya(r,e)}function nc(r,e){if(typeof r.subscribe=="function")try{qt(r),r.unsubscribe=r.subscribe.apply(null,e)}catch{return r.setDirty(),!1}return!0}const ic={setDirty:!0,dispose:!0,forget:!0};function wa(r){const e=new Map,t=r&&r.subscribe;function n(i){const a=Jt.getValue();if(a){let o=e.get(i);o||e.set(i,o=new Set),a.dependOn(o),typeof t=="function"&&(qt(o),o.unsubscribe=t(i))}}return n.dirty=function(a,o){const s=e.get(a);if(s){const u=o&&Xu.call(ic,o)?o:"setDirty";vn(s).forEach(c=>c[u]()),e.delete(a),qt(s)}},n}let ni;function ac(...r){return(ni||(ni=new mn(typeof WeakMap=="function"))).lookupArray(r)}const vr=new Set;function jt(r,{max:e=Math.pow(2,16),keyArgs:t,makeCacheKey:n=ac,normalizeResult:i,subscribe:a,cache:o=Gu}=Object.create(null)){const s=typeof o=="function"?new o(e,f=>f.dispose()):o,u=function(){const f=n.apply(null,t?t.apply(null,arguments):arguments);if(f===void 0)return r.apply(null,arguments);let h=s.get(f);h||(s.set(f,h=new Xt(r)),h.normalizeResult=i,h.subscribe=a,h.forget=()=>s.delete(f));const m=h.recompute(Array.prototype.slice.call(arguments));return s.set(f,h),vr.add(s),Jt.hasValue()||(vr.forEach(g=>g.clean()),vr.clear()),m};Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:e,keyArgs:t,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:s});function c(f){const h=f&&s.get(f);h&&h.setDirty()}u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))};function l(f){const h=f&&s.get(f);if(h)return h.peek()}u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))};function d(f){return f?s.delete(f):!1}return u.forgetKey=d,u.forget=function(){return d(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=t?function(){return n.apply(null,t.apply(null,arguments))}:n,Object.freeze(u)}var oc=function(){function r(){this.assumeImmutableResults=!1,this.getFragmentDoc=jt(As)}
33return r.prototype.batch=function(e){var t=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(t)},n),i},r.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},r.prototype.transformDocument=function(e){return e},r.prototype.transformForLink=function(e){return e},r.prototype.identify=function(e){},r.prototype.gc=function(){return[]},r.prototype.modify=function(e){return!1},r.prototype.readQuery=function(e,t){return t===void 0&&(t=!!e.optimistic),this.read(b(b({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},r.prototype.readFragment=function(e,t){return t===void 0&&(t=!!e.optimistic),this.read(b(b({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},r.prototype.writeQuery=function(e){var t=e.id,n=e.data,i=pe(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:n}))},r.prototype.writeFragment=function(e){var t=e.id,n=e.data,i=e.fragment,a=e.fragmentName,o=pe(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:t,result:n}))},r.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var i=n.readQuery(e),a=t(i);return a==null?i:(n.writeQuery(b(b({},e),{data:a})),a)}})},r.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var i=n.readFragment(e),a=t(i);return a==null?i:(n.writeFragment(b(b({},e),{data:a})),a)}})},r}(),Sa=function(r){we(e,r);function e(t,n,i,a){var o,s=r.call(this,t)||this;if(s.message=t,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=(o={},o[s.path[u]]=s.missing,o)}else s.missing=s.path;return s.__proto__=e.prototype,s}return e}(Error),W=Object.prototype.hasOwnProperty;function Je(r){return r==null}function Ta(r,e){var t=r.__typename,n=r.id,i=r._id;if(typeof t=="string"&&(e&&(e.keyObject=Je(n)?Je(i)?void 0:{_id:i}:{id:n}),Je(n)&&!Je(i)&&(n=i),!Je(n)))return"".concat(t,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var Ea={dataIdFromObject:Ta,addTypename:!0,resultCaching:!0,canonizeResults:!1};function sc(r){return Lt(Ea,r)}function ka(r){var e=r.canonizeResults;return e===void 0?Ea.canonizeResults:e}function uc(r,e){return A(e)?r.get(e.__ref,"__typename"):e&&e.__typename}var Oa=/^[_a-z][_0-9a-z]*/i;function be(r){var e=r.match(Oa);return e?e[0]:r}function $r(r,e,t){return z(e)?H(e)?e.every(function(n){return $r(r,n,t)}):r.selections.every(function(n){if(ve(n)&&ct(n,t)){var i=me(n);return W.call(e,i)&&(!n.selectionSet||$r(n.selectionSet,e[i],t))}return!0}):!1}function Pe(r){return z(r)&&!A(r)&&!H(r)}function cc(){return new ge}function Ra(r,e){var t=Wt(Kt(r));return{fragmentMap:t,lookupFragment:function(n){var i=t[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var Rt=Object.create(null),gr=function(){return Rt},ii=Object.create(null),st=function(){function r(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,a){return Pr(A(i)?n.get(i.__ref,a):i&&i[a])},this.canRead=function(i){return A(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,a){if(typeof i=="string")return je(i);if(A(i))return i;var o=n.policies.identify(i)[0];if(o){var s=je(o);return a&&n.merge(o,i),s}}}return r.prototype.toObject=function(){return b({},this.data)},r.prototype.has=function(e){return this.lookup(e,!0)!==void 0},r.prototype.get=function(e,t){if(this.group.depend(e,t),W.call(this.data,e)){var n=this.data[e];if(n&&W.call(n,t))return n[t]}if(t==="__typename"&&W.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof le)return this.parent.get(e,t)},r.prototype.lookup=function(e,t){if(t&&this.group.depend(e,"__exists"),W.call(this.data,e))return this.data[e];if(this instanceof le)return this.parent.lookup(e,t);if(this.policies.rootTypenamesById[e])return Object.create(null)},r.prototype.merge=function(e,t){var n=this,i;A(e)&&(e=e.__ref),A(t)&&(t=t.__ref);var a=typeof e=="string"?this.lookup(i=e):e,o=typeof t=="string"?this.lookup(i=t):t;if(o){I(typeof i=="string",1);var s=new ge(fc).merge(a,o);if(this.data[i]=s,s!==a&&(delete this.refs[i],this.group.caching)){var u=Object.create(null);
33a||(u.__exists=1),Object.keys(o).forEach(function(c){if(!a||a[c]!==s[c]){u[c]=1;var l=be(c);l!==c&&!n.policies.hasKeyArgs(s.__typename,l)&&(u[l]=1),s[c]===void 0&&!(n instanceof le)&&delete s[c]}}),u.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(c){return n.group.dirty(i,c)})}}},r.prototype.modify=function(e,t){var n=this,i=this.lookup(e);if(i){var a=Object.create(null),o=!1,s=!0,u={DELETE:Rt,INVALIDATE:ii,isReference:A,toReference:this.toReference,canRead:this.canRead,readField:function(c,l){return n.policies.readField(typeof c=="string"?{fieldName:c,from:l||je(e)}:c,{store:n})}};if(Object.keys(i).forEach(function(c){var l=be(c),d=i[c];if(d!==void 0){var f=typeof t=="function"?t:t[c]||t[l];if(f){var h=f===gr?Rt:f(Pr(d),b(b({},u),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));if(h===ii)n.group.dirty(e,c);else if(h===Rt&&(h=void 0),h!==d&&(a[c]=h,o=!0,d=h,globalThis.__DEV__!==!1)){var m=function(T){if(n.lookup(T.__ref)===void 0)return globalThis.__DEV__!==!1&&I.warn(2,T),!0};if(A(h))m(h);else if(Array.isArray(h))for(var g=!1,y=void 0,p=0,_=h;p<_.length;p++){var v=_[p];if(A(v)){if(g=!0,m(v))break}else if(typeof v=="object"&&v){var w=n.policies.identify(v)[0];w&&(y=v)}if(g&&y!==void 0){globalThis.__DEV__!==!1&&I.warn(3,y);break}}}}d!==void 0&&(s=!1)}}),o)return this.merge(e,a),s&&(this instanceof le?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},r.prototype.delete=function(e,t,n){var i,a=this.lookup(e);if(a){var o=this.getFieldValue(a,"__typename"),s=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,s?(i={},i[s]=gr,i):gr)}return!1},r.prototype.evict=function(e,t){var n=!1;return e.id&&(W.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof le&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},r.prototype.clear=function(){this.replace(null)},r.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){W.call(e.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},r.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(a){e&&W.call(e,a)||t.delete(a)}),e){var n=e.__META,i=pe(e,["__META"]);
33Object.keys(i).forEach(function(a){t.merge(a,i[a])}),n&&n.extraRootIds.forEach(this.retain,this)}},r.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},r.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},r.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof le?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},r.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(o){W.call(n,o)&&(Object.keys(e.findChildRefIds(o)).forEach(t.add,t),delete n[o])});var i=Object.keys(n);if(i.length){for(var a=this;a instanceof le;)a=a.parent;i.forEach(function(o){return a.delete(o)})}return i},r.prototype.findChildRefIds=function(e){if(!W.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var i=new Set([n]);i.forEach(function(a){A(a)&&(t[a.__ref]=!0),z(a)&&Object.keys(a).forEach(function(o){var s=a[o];z(s)&&i.add(s)})})}return this.refs[e]},r.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},r}(),Ia=function(){function r(e,t){t===void 0&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return r.prototype.resetCaching=function(){this.d=this.caching?wa():null,this.keyMaker=new lt(ue)}
33,r.prototype.depend=function(e,t){if(this.d){this.d(yr(e,t));var n=be(t);n!==t&&this.d(yr(e,n)),this.parent&&this.parent.depend(e,t)}},r.prototype.dirty=function(e,t){this.d&&this.d.dirty(yr(e,t),t==="__exists"?"forget":"setDirty")},r}();function yr(r,e){return e+"#"+r}function ai(r,e){Ze(r)&&r.group.depend(e,"__exists")}(function(r){var e=function(t){we(n,t);function n(i){var a=i.policies,o=i.resultCaching,s=o===void 0?!0:o,u=i.seed,c=t.call(this,a,new Ia(s))||this;return c.stump=new lc(c),c.storageTrie=new lt(ue),u&&c.replace(u),c}return n.prototype.addLayer=function(i,a){return this.stump.addLayer(i,a)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(r);r.Root=e})(st||(st={}));var le=function(r){we(e,r);function e(t,n,i,a){var o=r.call(this,n.policies,a)||this;return o.id=t,o.parent=n,o.replay=i,o.group=a,i(o),o}return e.prototype.addLayer=function(t,n){return new e(t,this,n,this.group)},e.prototype.removeLayer=function(t){var n=this,i=this.parent.removeLayer(t);return t===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var o=n.data[a],s=i.lookup(a);s?o?o!==s&&Object.keys(o).forEach(function(u){j(o[u],s[u])||n.group.dirty(a,u)}):(n.group.dirty(a,"__exists"),Object.keys(s).forEach(function(u){n.group.dirty(a,u)})):n.delete(a)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return b(b({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return W.call(this.data,t)?b(b({},n),r.prototype.findChildRefIds.call(this,t)):n},e.prototype.getStorage=function(){for(var t=this.parent;t.parent;)t=t.parent;return t.getStorage.apply(t,arguments)},e}(st),lc=function(r){we(e,r);function e(t){return r.call(this,"EntityStore.Stump",t,function(){},new Ia(t.group.caching,t.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(t,n){return this.parent.merge(t,n)},e}(le);function fc(r,e,t){var n=r[t],i=e[t];return j(n,i)?n:i}function Ze(r){return!!(r instanceof st&&r.group.caching)}function dc(r){return z(r)?H(r)?r.slice(0):b({__proto__:Object.getPrototypeOf(r)},r):r}var zr=function(){function r(){this.known=new(Gi?WeakSet:Set),this.pool=new lt(ue),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return r.prototype.isKnown=function(e){return z(e)&&this.known.has(e)},r.prototype.pass=function(e){if(z(e)){var t=dc(e);return this.passes.set(t,e),t}return e},r.prototype.admit=function(e){var t=this;if(z(e)){var n=this.passes.get(e);if(n)return n;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var a=e.map(this.admit,this),o=this.pool.lookupArray(a);return o.array||(this.known.add(o.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),o.array}case null:case Object.prototype:{if(this.known.has(e))return e;var s=Object.getPrototypeOf(e),u=[s],c=this.sortedKeys(e);u.push(c.json);var l=u.length;c.sorted.forEach(function(h){u.push(t.admit(e[h]))});var o=this.pool.lookupArray(u);if(!o.object){var d=o.object=Object.create(s);this.known.add(d),c.sorted.forEach(function(h,m){d[h]=u[l+m]}),globalThis.__DEV__!==!1&&Object.freeze(d)}return o.object}}}return e},r.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var i=JSON.stringify(t);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:t,json:i})}return n.keys},r}(),Te=Object.assign(function(r){if(z(r)){Wr===void 0&&oi();var e=Wr.admit(r),t=Ur.get(e);return t===void 0&&Ur.set(e,t=JSON.stringify(e)),t}return JSON.stringify(r)},{reset:oi}),Wr,Ur;function oi(){Wr=new zr,Ur=new(ue?WeakMap:Map)}function si(r){return[r.selectionSet,r.objectOrReference,r.context,r.context.canonizeResults]}var hc=function(){function r(e){var t=this;this.knownResults=new(ue?WeakMap:Map),this.config=Lt(e,{addTypename:e.addTypename!==!1,canonizeResults:ka(e)}),this.canon=e.canon||new zr,this.executeSelectionSet=jt(function(n){var i,a=n.context.canonizeResults,o=si(n);o[3]=!a;var s=(i=t.executeSelectionSet).peek.apply(i,o);return s?a?b(b({},s),{result:t.canon.admit(s.result)}):s:(ai(n.context.store,n.enclosingRef.__ref),t.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize,keyArgs:si,makeCacheKey:function(n,i,a,o){if(Ze(a.store))return a.store.makeCacheKey(n,A(i)?i.__ref:i,a.varString,o)}}),this.executeSubSelectedArray=jt(function(n){return ai(n.context.store,n.enclosingRef.__ref),t.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(n){var i=n.field,a=n.array,o=n.context;if(Ze(o.store))return o.store.makeCacheKey(i,a,o.varString)}})}return r.prototype.resetCanon=function(){this.canon=new zr},r.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,i=e.rootId,a=i===void 0?"ROOT_QUERY":i,o=e.variables,s=e.returnPartialData,u=s===void 0?!0:s,c=e.canonizeResults,l=c===void 0?this.config.canonizeResults:c,d=this.config.cache.policies;o=b(b({}
33,un(Xi(n))),o);var f=je(a),h=this.executeSelectionSet({selectionSet:ht(n).selectionSet,objectOrReference:f,enclosingRef:f,context:b({store:t,query:n,policies:d,variables:o,varString:Te(o),canonizeResults:l},Ra(n,this.config.fragments))}),m;if(h.missing&&(m=[new Sa(pc(h.missing),h.missing,n,o)],!u))throw m[0];return{result:h.result,complete:!m,missing:m}},r.prototype.isFresh=function(e,t,n,i){if(Ze(i.store)&&this.knownResults.get(e)===n){var a=this.executeSelectionSet.peek(n,t,i,this.canon.isKnown(e));if(a&&e===a.result)return!0}return!1},r.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,o=e.context;if(A(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=o.variables,u=o.policies,c=o.store,l=c.getFieldValue(i,"__typename"),d=[],f,h=new ge;this.config.addTypename&&typeof l=="string"&&!u.rootIdsByTypename[l]&&d.push({__typename:l});function m(v,w){var T;return v.missing&&(f=h.merge(f,(T={},T[w]=v.missing,T))),v.result}var g=new Set(n.selections);g.forEach(function(v){var w,T;if(ct(v,s))if(ve(v)){var S=u.readField({fieldName:v.name.value,field:v,variables:o.variables,from:i},o),E=me(v);S===void 0?cn.added(v)||(f=h.merge(f,(w={},w[E]="Can't find field '".concat(v.name.value,"' on ").concat(A(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),w))):H(S)?S=m(t.executeSubSelectedArray({field:v,array:S,enclosingRef:a,context:o}),E):v.selectionSet?S!=null&&(S=m(t.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:S,enclosingRef:A(S)?S:a,context:o}),E)):o.canonizeResults&&(S=t.canon.pass(S)),S!==void 0&&d.push((T={},T[E]=S,T))}else{var R=Ut(v,o.lookupFragment);if(!R&&v.kind===G.FRAGMENT_SPREAD)throw K(9,v.name.value);R&&u.fragmentMatches(R,l)&&R.selectionSet.selections.forEach(g.add,g)}});var y=ln(d),p={result:y,missing:f},_=o.canonizeResults?this.canon.admit(p):Pr(p);return _.result&&this.knownResults.set(_.result,n),_},r.prototype.execSubSelectedArrayImpl=function(e){var t=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s,u=new ge;function c(l,d){var f;return l.missing&&(s=u.merge(s,(f={},f[d]=l.missing,f))),l.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(l,d){return l===null?null:H(l)?c(t.executeSubSelectedArray({field:n,array:l,enclosingRef:a,context:o}),d):n.selectionSet?c(t.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:l,enclosingRef:A(l)?l:a,context:o}),d):(globalThis.__DEV__!==!1&&mc(o.store,n,l),l)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:s}},r}();function pc(r){try{JSON.stringify(r,function(e,t){if(typeof t=="string")throw t;return t})}catch(e){return e}}function mc(r,e,t){if(!e.selectionSet){var n=new Set([t]);n.forEach(function(i){z(i)&&(I(!A(i),10,uc(r,i),e.name.value),Object.values(i).forEach(n.add,n))})}}var yn=new Yt,ui=new WeakMap;function et(r){var e=ui.get(r);return e||ui.set(r,e={vars:new Set,dep:wa()}),e}function ci(r){et(r).vars.forEach(function(e){return e.forgetCache(r)})}function vc(r){et(r).vars.forEach(function(e){return e.attachCache(r)})}function gc(r){var e=new Set,t=new Set,n=function(a){if(arguments.length>0){if(r!==a){r=a,e.forEach(function(u){et(u).dep.dirty(n),yc(u)});var o=Array.from(t);t.clear(),o.forEach(function(u){return u(r)})}}else{var s=yn.getValue();s&&(i(s),et(s).dep(n))}return r};n.onNextChange=function(a){return t.add(a),function(){t.delete(a)}};var i=n.attachCache=function(a){return e.add(a),et(a).vars.add(n),n};return n.forgetCache=function(a){return e.delete(a)},n}function yc(r){r.broadcastWatches&&r.broadcastWatches()}var li=Object.create(null);function bn(r){var e=JSON.stringify(r);return li[e]||(li[e]=Object.create(null))}function fi(r){var e=bn(r);return e.keyFieldsFn||(e.keyFieldsFn=function(t,n){var i=function(o,s){return n.readField(s,o)},a=n.keyObject=_n(r,function(o){var s=Qe(n.storeObject,o,i);return s===void 0&&t!==n.storeObject&&W.call(t,o[0])&&(s=Qe(t,o,xa)),I(s!==void 0,4,o.join("."),t),s});return"".concat(n.typename,":").concat(JSON.stringify(a))})}function di(r){var e=bn(r);return e.keyArgsFn||(e.keyArgsFn=function(t,n){var i=n.field,a=n.variables,o=n.fieldName,s=_n(r,function(c){var l=c[0],d=l.charAt(0);if(d==="@"){if(i&&ae(i.directives)){var f=l.slice(1),h=i.directives.find(function(p){return p.name.value===f}),m=h&&Gt(h,a);return m&&Qe(m,c.slice(1))}return}if(d==="$"){var g=l.slice(1);if(a&&W.call(a,g)){var y=c.slice(0);
33return y[0]=g,Qe(a,y)}return}if(t)return Qe(t,c)}),u=JSON.stringify(s);return(t||u!=="{}")&&(o+=":"+u),o})}function _n(r,e){var t=new ge;return Ca(r).reduce(function(n,i){var a,o=e(i);if(o!==void 0){for(var s=i.length-1;s>=0;--s)o=(a={},a[i[s]]=o,a);n=t.merge(n,o)}return n},Object.create(null))}function Ca(r){var e=bn(r);if(!e.paths){var t=e.paths=[],n=[];r.forEach(function(i,a){H(i)?(Ca(i).forEach(function(o){return t.push(n.concat(o))}),n.length=0):(n.push(i),H(r[a+1])||(t.push(n.slice(0)),n.length=0))})}return e.paths}function xa(r,e){return r[e]}function Qe(r,e,t){return t=t||xa,Da(e.reduce(function n(i,a){return H(i)?i.map(function(o){return n(o,a)}):i&&t(i,a)},r))}function Da(r){return z(r)?H(r)?r.map(Da):_n(Object.keys(r).sort(),function(e){return Qe(r,e)}):r}sn.setStringify(Te);function Gr(r){return r.args!==void 0?r.args:r.field?Gt(r.field,r.variables):null}var bc=function(){},hi=function(r,e){return e.fieldName},pi=function(r,e,t){var n=t.mergeObjects;return n(r,e)},mi=function(r,e){return e},_c=function(){function r(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=b({dataIdFromObject:Ta},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return r.prototype.identify=function(e,t){var n,i=this,a=t&&(t.typename||((n=t.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o=t&&t.storeObject||e,s=b(b({},t),{typename:a,storeObject:o,readField:t&&t.readField||function(){var f=wn(arguments,o);return i.readField(f,{store:i.cache.data,variables:f.variables})}}),u,c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var d=l(b(b({},e),o),s);if(H(d))l=fi(d);else{u=d;break}}return u=u?String(u):void 0,s.keyObject?[u,s.keyObject]:[u]},r.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var i=e[n],a=i.queryType,o=i.mutationType,s=i.subscriptionType,u=pe(i,["queryType","mutationType","subscriptionType"]);a&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),W.call(t.toBeAdded,n)?t.toBeAdded[n].push(u):t.toBeAdded[n]=[u]})},r.prototype.updateTypePolicy=function(e,t){var n=this,i=this.getTypePolicy(e),a=t.keyFields,o=t.fields;function s(u,c){u.merge=typeof c=="function"?c:c===!0?pi:c===!1?mi:u.merge}s(i,t.merge),i.keyFn=a===!1?bc:H(a)?fi(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEach(function(u){var c=n.getFieldPolicy(e,u,!0),l=o[u];if(typeof l=="function")c.read=l;else{var d=l.keyArgs,f=l.read,h=l.merge;c.keyFn=d===!1?hi:H(d)?di(d):typeof d=="function"?d:c.keyFn,typeof f=="function"&&(c.read=f),s(c,h)}c.read&&c.merge&&(c.keyFn=c.keyFn||hi)})},r.prototype.setRootTypename=function(e,t){t===void 0&&(t=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];t!==i&&(I(!i||i===e,5,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},r.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(i){t.getSupertypeSet(i,!0).add(n);var a=i.match(Oa);(!a||a[0]!==i)&&t.fuzzySubtypes.set(i,new RegExp(i))})})},r.prototype.getTypePolicy=function(e){var t=this;if(!W.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(o,s){if(o.test(e)){var u=t.supertypeMap.get(s);u&&u.forEach(function(c){return i.add(c)})}})),i&&i.size&&i.forEach(function(o){var s=t.getTypePolicy(o),u=s.fields,c=pe(s,["fields"]);Object.assign(n,c),Object.assign(n.fields,u)})}var a=this.toBeAdded[e];
33return a&&a.length&&a.splice(0).forEach(function(o){t.updateTypePolicy(e,o)}),this.typePolicies[e]},r.prototype.getFieldPolicy=function(e,t,n){if(e){var i=this.getTypePolicy(e).fields;return i[t]||n&&(i[t]=Object.create(null))}},r.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},r.prototype.fragmentMatches=function(e,t,n,i){var a=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(m){var g=a.getSupertypeSet(m,!1);g&&g.size&&u.indexOf(g)<0&&u.push(g)},l=!!(n&&this.fuzzySubtypes.size),d=!1,f=0;f<u.length;++f){var h=u[f];if(h.has(o))return s.has(o)||(d&&globalThis.__DEV__!==!1&&I.warn(6,t,o),s.add(o)),!0;h.forEach(c),l&&f===u.length-1&&$r(e.selectionSet,n,i)&&(l=!1,d=!0,this.fuzzySubtypes.forEach(function(m,g){var y=t.match(m);y&&y[0]===t&&c(g)}))}return!1},r.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},r.prototype.getStoreFieldName=function(e){var t=e.typename,n=e.fieldName,i=this.getFieldPolicy(t,n,!1),a,o=i&&i.keyFn;if(o&&t)for(var s={typename:t,fieldName:n,field:e.field||null,variables:e.variables},u=Gr(e);o;){var c=o(u,s);if(H(c))o=di(c);else{a=c||n;break}}return a===void 0&&(a=e.field?$s(e.field,e.variables):sn(n,Gr(e))),a===!1?n:n===be(a)?a:n+":"+a},r.prototype.readField=function(e,t){var n=e.from;if(n){var i=e.field||e.fieldName;if(i){if(e.typename===void 0){var a=t.store.getFieldValue(n,"__typename");a&&(e.typename=a)}var o=this.getStoreFieldName(e),s=be(o),u=t.store.getFieldValue(n,o),c=this.getFieldPolicy(e.typename,s,!1),l=c&&c.read;if(l){var d=vi(this,n,e,t,t.store.getStorage(A(n)?n.__ref:n,o));return yn.withValue(this.cache,l,[u,d])}return u}}},r.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},r.prototype.getMergeFunction=function(e,t,n){var i=this.getFieldPolicy(e,t,!1),a=i&&i.merge;return!a&&n&&(i=this.getTypePolicy(n),a=i&&i.merge),a},r.prototype.runMergeFunction=function(e,t,n,i,a){var o=n.field,s=n.typename,u=n.merge;return u===pi?Fa(i.store)(e,t):u===mi?t:(i.overwrite&&(e=void 0),u(e,t,vi(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:i.variables},i,a||Object.create(null))))},r}();function vi(r,e,t,n,i){var a=r.getStoreFieldName(t),o=be(a),s=t.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:Gr(t),field:t.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:A,toReference:c,storage:i,cache:r.cache,canRead:l,readField:function(){return r.readField(wn(arguments,e,s),n)},mergeObjects:Fa(n.store)}}function wn(r,e,t){var n=r[0],i=r[1],a=r.length,o;return typeof n=="string"?o={fieldName:n,from:a>1?i:e}:(o=b({},n),W.call(o,"from")||(o.from=e)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&I.warn(7,cs(Array.from(r))),o.variables===void 0&&(o.variables=t),o}function Fa(r){return function(t,n){if(H(t)||H(n))throw K(8);if(z(t)&&z(n)){var i=r.getFieldValue(t,"__typename"),a=r.getFieldValue(n,"__typename"),o=i&&a&&i!==a;if(o)return n;if(A(t)&&Pe(n))return r.merge(t.__ref,n),t;if(Pe(t)&&A(n))return r.merge(t,n.__ref),n;if(Pe(t)&&Pe(n))return b(b({},t),n)}return n}}function br(r,e,t){var n="".concat(e).concat(t),i=r.flavors.get(n);return i||r.flavors.set(n,i=r.clientOnly===e&&r.deferred===t?r:b(b({},r),{clientOnly:e,deferred:t})),i}var wc=function(){function r(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return r.prototype.writeToStore=function(e,t){var n=this,i=t.query,a=t.result,o=t.dataId,s=t.variables,u=t.overwrite,c=dt(i),l=cc();s=b(b({},un(c)),s);var d=b(b({store:e,written:Object.create(null),merge:function(h,m){return l.merge(h,m)},variables:s,varString:Te(s)},Ra(i,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:a||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:d});if(!A(f))throw K(11,a);
33return d.incomingById.forEach(function(h,m){var g=h.storeObject,y=h.mergeTree,p=h.fieldNodeSet,_=je(m);if(y&&y.map.size){var v=n.applyMerges(y,_,g,d);if(A(v))return;g=v}if(globalThis.__DEV__!==!1&&!d.overwrite){var w=Object.create(null);p.forEach(function(E){E.selectionSet&&(w[E.name.value]=!0)});var T=function(E){return w[be(E)]===!0},S=function(E){var R=y&&y.map.get(E);return!!(R&&R.info&&R.info.merge)};Object.keys(g).forEach(function(E){T(E)&&!S(E)&&Sc(_,g,E,d.store)})}e.merge(m,g)}),e.retain(f.__ref),f},r.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,i=e.result,a=e.selectionSet,o=e.context,s=e.mergeTree,u=this.cache.policies,c=Object.create(null),l=n&&u.rootTypenamesById[n]||Mr(i,a,o.fragmentMap)||n&&o.store.get(n,"__typename");typeof l=="string"&&(c.__typename=l);var d=function(){var v=wn(arguments,c,o.variables);if(A(v.from)){var w=o.incomingById.get(v.from.__ref);if(w){var T=u.readField(b(b({},v),{from:w.storeObject}),o);if(T!==void 0)return T}}return u.readField(v,o)},f=new Set;this.flattenFields(a,i,o,l).forEach(function(v,w){var T,S=me(w),E=i[S];if(f.add(w),E!==void 0){var R=u.getStoreFieldName({typename:l,fieldName:w.name.value,field:w,variables:v.variables}),L=gi(s,R),F=t.processFieldValue(E,w,w.selectionSet?br(v,!1,!1):v,L),Q=void 0;w.selectionSet&&(A(F)||Pe(F))&&(Q=d("__typename",F));var ee=u.getMergeFunction(l,w.name.value,Q);ee?L.info={field:w,typename:l,merge:ee}:yi(s,R),c=v.merge(c,(T={},T[R]=F,T))}else globalThis.__DEV__!==!1&&!v.clientOnly&&!v.deferred&&!cn.added(w)&&!u.getReadFunction(l,w.name.value)&&globalThis.__DEV__!==!1&&I.error(12,me(w),i)});try{var h=u.identify(i,{typename:l,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:c,readField:d}),m=h[0],g=h[1];n=n||m,g&&(c=o.merge(c,g))}catch(v){if(!n)throw v}if(typeof n=="string"){var y=je(n),p=o.written[n]||(o.written[n]=[]);if(p.indexOf(a)>=0||(p.push(a),this.reader&&this.reader.isFresh(i,y,a,o)))return y;var _=o.incomingById.get(n);return _?(_.storeObject=o.merge(_.storeObject,c),_.mergeTree=Kr(_.mergeTree,s),f.forEach(function(v){return _.fieldNodeSet.add(v)})):o.incomingById.set(n,{storeObject:c,mergeTree:Bt(s)?void 0:s,fieldNodeSet:f}),y}return c},r.prototype.processFieldValue=function(e,t,n,i){var a=this;return!t.selectionSet||e===null?globalThis.__DEV__!==!1?sa(e):e:H(e)?e.map(function(o,s){var u=a.processFieldValue(o,t,n,gi(i,s));return yi(i,s),u}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:i})},r.prototype.flattenFields=function(e,t,n,i){i===void 0&&(i=Mr(t,e,n.fragmentMap));var a=new Map,o=this.cache.policies,s=new lt(!1);return function u(c,l){var d=s.lookup(c,l.clientOnly,l.deferred);d.visited||(d.visited=!0,c.selections.forEach(function(f){if(ct(f,n.variables)){var h=l.clientOnly,m=l.deferred;if(!(h&&m)&&ae(f.directives)&&f.directives.forEach(function(p){var _=p.name.value;if(_==="client"&&(h=!0),_==="defer"){var v=Gt(p,n.variables);(!v||v.if!==!1)&&(m=!0)}}),ve(f)){var g=a.get(f);g&&(h=h&&g.clientOnly,m=m&&g.deferred),a.set(f,br(n,h,m))}else{var y=Ut(f,n.lookupFragment);if(!y&&f.kind===G.FRAGMENT_SPREAD)throw K(13,f.name.value);y&&o.fragmentMatches(y,i,t,n.variables)&&u(y.selectionSet,br(n,h,m))}}}))}(e,n),a},r.prototype.applyMerges=function(e,t,n,i,a){var o,s=this;if(e.map.size&&!A(n)){var u=!H(n)&&(A(t)||Pe(t))?t:void 0,c=n;u&&!a&&(a=[A(u)?u.__ref:u]);var l,d=function(f,h){return H(f)?typeof h=="number"?f[h]:void 0:i.store.getFieldValue(f,String(h))};e.map.forEach(function(f,h){var m=d(u,h),g=d(c,h);if(g!==void 0){a&&a.push(h);var y=s.applyMerges(f,m,g,i,a);y!==g&&(l=l||new Map,l.set(h,y)),a&&I(a.pop()===h)}}),l&&(n=H(c)?c.slice(0):b({},c),l.forEach(function(f,h){n[h]=f}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,a&&(o=i.store).getStorage.apply(o,a)):n},r}(),Aa=[];function gi(r,e){var t=r.map;return t.has(e)||t.set(e,Aa.pop()||{map:new Map}),t.get(e)}function Kr(r,e){if(r===e||!e||Bt(e))return r;if(!r||Bt(r))return e;var t=r.info&&e.info?b(b({},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,a={info:t,map:i};if(n){var o=new Set(e.map.keys());
33r.map.forEach(function(s,u){a.map.set(u,Kr(s,e.map.get(u))),o.delete(u)}),o.forEach(function(s){a.map.set(s,Kr(e.map.get(s),r.map.get(s)))})}return a}function Bt(r){return!r||!(r.info||r.map.size)}function yi(r,e){var t=r.map,n=t.get(e);n&&Bt(n)&&(Aa.push(n),t.delete(e))}var bi=new Set;function Sc(r,e,t,n){var i=function(d){var f=n.getFieldValue(d,t);return typeof f=="object"&&f},a=i(r);if(a){var o=i(e);if(o&&!A(a)&&!j(a,o)&&!Object.keys(a).every(function(d){return n.getFieldValue(o,d)!==void 0})){var s=n.getFieldValue(r,"__typename")||n.getFieldValue(e,"__typename"),u=be(t),c="".concat(s,".").concat(u);if(!bi.has(c)){bi.add(c);var l=[];!H(a)&&!H(o)&&[a,o].forEach(function(d){var f=n.getFieldValue(d,"__typename");typeof f=="string"&&!l.includes(f)&&l.push(f)}),globalThis.__DEV__!==!1&&I.warn(14,u,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",c,a,o)}}}}var Tc=function(r){we(e,r);function e(t){t===void 0&&(t={});var n=r.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new Zi(cn),n.assumeImmutableResults=!0,n.makeVar=gc,n.txCount=0,n.config=sc(t),n.addTypename=!!n.config.addTypename,n.policies=new _c({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var t=this.data=new st.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=t.stump,this.resetResultCache()},e.prototype.resetResultCache=function(t){var n=this,i=this.storeReader,a=this.config.fragments;this.storeWriter=new wc(this,this.storeReader=new hc({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:ka(this.config),canon:t?void 0:i&&i.canon,fragments:a}),a),this.maybeBroadcastWatch=jt(function(o,s){return n.broadcastWatch(o,s)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(o){var s=o.optimistic?n.optimisticData:n.data;if(Ze(s)){var u=o.optimistic,c=o.id,l=o.variables;return s.makeCacheKey(o.query,o.callback,Te({optimistic:u,id:c,variables:l}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(o){return o.resetCaching()})},e.prototype.restore=function(t){return this.init(),t&&this.data.replace(t),this},e.prototype.extract=function(t){return t===void 0&&(t=!1),(t?this.optimisticData:this.data).extract()},e.prototype.read=function(t){var n=t.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(b(b({},t),{store:t.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(a){if(a instanceof Sa)return null;throw a}},e.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore(this.data,t)}finally{!--this.txCount&&t.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(t){if(W.call(t,"id")&&!t.id)return!1;var n=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(t.id||"ROOT_QUERY",t.fields)}finally{!--this.txCount&&t.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(t){return this.storeReader.diffQueryAgainstStore(b(b({},t),{store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(t){var n=this;return this.watches.size||vc(this),this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){n.watches.delete(t)&&!n.watches.size&&ci(n),n.maybeBroadcastWatch.forget(t)}},e.prototype.gc=function(t){Te.reset();var n=this.optimisticData.gc();return t&&!this.txCount&&(t.resetResultCache?this.resetResultCache(t.resetResultIdentities):t.resetResultIdentities&&this.storeReader.resetCanon()),n},e.prototype.retain=function(t,n){return(n?this.optimisticData:this.data).retain(t)},e.prototype.release=function(t,n){return(n?this.optimisticData:this.data).release(t)},e.prototype.identify=function(t){if(A(t))return t.__ref;try{return this.policies.identify(t)[0]}catch(n){globalThis.__DEV__!==!1&&I.warn(n)}},e.prototype.evict=function(t){if(!t.id){if(W.call(t,"id"))return!1;t=b(b({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t,this.data)}finally{!--this.txCount&&t.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(t){var n=this;return this.init(),Te.reset(),t&&t.discardWatches?(this.watches.forEac
33h(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),ci(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){var n=this.optimisticData.removeLayer(t);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(t){var n=this,i=t.update,a=t.optimistic,o=a===void 0?!0:a,s=t.removeOptimistic,u=t.onWatchUpdated,c,l=function(f){var h=n,m=h.data,g=h.optimisticData;++n.txCount,f&&(n.data=n.optimisticData=f);try{return c=i(n)}finally{--n.txCount,n.data=m,n.optimisticData=g}},d=new Set;return u&&!this.txCount&&this.broadcastWatches(b(b({},t),{onWatchUpdated:function(f){return d.add(f),!1}})),typeof o=="string"?this.optimisticData=this.optimisticData.addLayer(o,l):o===!1?l(this.data):l(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&d.size?(this.broadcastWatches(b(b({},t),{onWatchUpdated:function(f,h){var m=u.call(this,f,h);return m!==!1&&d.delete(f),m}})),d.size&&d.forEach(function(f){return n.maybeBroadcastWatch.dirty(f)})):this.broadcastWatches(t),c},e.prototype.performTransaction=function(t,n){return this.batch({update:t,optimistic:n||n!==null})},e.prototype.transformDocument=function(t){return this.addTypenameToDocument(this.addFragmentsToDocument(t))},e.prototype.broadcastWatches=function(t){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,t)})},e.prototype.addFragmentsToDocument=function(t){var n=this.config.fragments;return n?n.transform(t):t},e.prototype.addTypenameToDocument=function(t){return this.addTypename?this.addTypenameTransform.transformDocument(t):t},e.prototype.broadcastWatch=function(t,n){var i=t.lastDiff,a=this.diff(t);n&&(t.optimistic&&typeof n.optimistic=="string"&&(a.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,t,a,i)===!1)||(!i||!j(i.result,a.result))&&t.callback(t.lastDiff=a,i)},e}(oc);function Ec(r,e,t,n){var i=e.data,a=pe(e,["data"]),o=t.data,s=pe(t,["data"]);return j(a,s)&&It(ht(r).selectionSet,i,o,{fragmentMap:Wt(Kt(r)),variables:n})}function It(r,e,t,n){if(e===t)return!0;var i=new Set;return r.selections.every(function(a){if(i.has(a)||(i.add(a),!ct(a,n.variables))||_i(a))return!0;if(ve(a)){var o=me(a),s=e&&e[o],u=t&&t[o],c=a.selectionSet;if(!c)return j(s,u);var l=Array.isArray(s),d=Array.isArray(u);if(l!==d)return!1;if(l&&d){var f=s.length;if(u.length!==f)return!1;for(var h=0;h<f;++h)if(!It(c,s[h],u[h],n))return!1;return!0}return It(c,s,u,n)}else{var m=Ut(a,n.fragmentMap);if(m)return _i(m)?!0:It(m.selectionSet,e,t,n)}})}function _i(r){return!!r.directives&&r.directives.some(kc)}function kc(r){return r.name.value==="nonreactive"}var wi=Object.assign,Oc=Object.hasOwnProperty,Yr=function(r){we(e,r);function e(t){var n=t.queryManager,i=t.queryInfo,a=t.options,o=r.call(this,function(y){try{var p=y._subscription._observer;p&&!p.error&&(p.error=Rc)}catch{}var _=!o.observers.size;o.observers.add(y);var v=o.last;return v&&v.error?y.error&&y.error(v.error):v&&v.result&&y.next&&y.next(v.result),_&&o.reobserve().catch(function(){}),function(){o.observers.delete(y)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=i,o.queryManager=n,o.waitForOwnResult=_r(a.fetchPolicy),o.isTornDown=!1;var s=n.defaultOptions.watchQuery,u=s===void 0?{}:s,c=u.fetchPolicy,l=c===void 0?"cache-first":c,d=a.fetchPolicy,f=d===void 0?l:d,h=a.initialFetchPolicy,m=h===void 0?f==="standby"?l:f:h;o.options=b(b({},a),{initialFetchPolicy:m,fetchPolicy:f}),o.queryId=i.queryId||n.generateQueryId();var g=dt(o.query);return o.queryName=g&&g.name&&g.name.value,o}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var t=this;return new Promise(function(n,i){var a={next:function(s){n(s),t.observers.delete(a),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout(function(){o.unsubscribe()},0)},error:i},o=t.subscribe(a)})},e.prototype.getCurrentResult=function(t){t===void 0&&(t=!0);var n=this.getLastResult(!0),i=this.queryInfo.networkStatus||n&&n.networkStatus||M.ready,a=b(b({},n),{loading:it(i),networkStatus:i}),o=this.options.fetchPolicy,s=o===void 0?"cache-first":o;if(!(_r(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(a.data=u.result),j(a.data,{})&&(a.data=void 0),u.complete?(delete a.partial,u.complete&&a.networkStatus===M.loading&&(s==="cache-first"||s==="cache-only")&&(a.networkStatus=M.ready,a.loading=!1)):a.partial=!0,globalThis.__DEV__!==!1&&!u.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&Ma(u.missing)}return t&&this.updateLastResult(a),a},e.prototype.isDifferentFromLastResult=function(t,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!Ec(this.query,this.last.result,t,this.variables):!j(this.last.result,t);return i||n&&!j(this.last.variables,n)},e.prototype.getLast=function(t,n){var i=this.last;if(i&&i[t]&&(!n||j(i.variables,this.variables)))return i[t]},e.prototype.getLastResult=function(t){return this.getLast("result",t)},e.prototype.getLastError=function(t){return this.getLast("error",t)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(t){var n,i={pollInterval:0},a=this.options.fetchPolicy;if(a==="cache-and-network"?i.fetchPolicy=a:a==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&t&&Oc.call(t,"variables")){var o=Xi(this.query),s=o.variableDefinitions;(!s||!s.some(function(u){return u.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&I.warn(20,t,((n=o.name)===null||n===void 0?void 0:n.value)||o)}return t&&!j(this.options.variables,t)&&(i.variables=this.options.variables=b(b({},this.options.variables),t)),this.queryInfo.resetLastWrite(),this.reobserve(i,M.refetch)},e.prototype.fetchMore=function(t){var n=this,i=b(b({},t.query?t:b(b(b(b({},this.options),{query:this.options.query}),t),{variables:b(b({},this.options.variables),t.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var a=this.queryManager.generateQueryId();this.lastQuery=t.query?this.transformDocument(this.options.query):i.query;var o=this.queryInfo,s=o.networkStatus;o.networkStatus=M.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(a,i,M.fetchMore).then(function(c){return n.queryManager.removeQuery(a),o.networkStatus===M.fetchMore&&(o.networkStatus=s),n.queryManager.cache.batch({update:function(l){var d=t.updateQuery;d?l.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(f){return d(f,{fetchMoreResult:c.data,variables:i.variables})}):l.writeQuery({query:i.query,variables:i.variables,data:c.data})},onWatchUpdated:function(l){u.add(l.query)}}),c}).finally(function(){u.has(n.query)||Pa(n)})},e.prototype.subscribeToMore=function(t){var n=this,i=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(a){var o=t.updateQuery;o&&n.updateQuery(function(s,u){var c=u.variables;return o(s,{subscriptionData:a,variables:c})})}
33,error:function(a){if(t.onError){t.onError(a);return}globalThis.__DEV__!==!1&&I.error(21,a)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(t){return this.reobserve(t)},e.prototype.silentSetOptions=function(t){var n=Lt(this.options,t||{});wi(this.options,n)},e.prototype.setVariables=function(t){return j(this.variables,t)?this.observers.size?this.result():Promise.resolve():(this.options.variables=t,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:t},M.setVariables):Promise.resolve())},e.prototype.updateQuery=function(t){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,a=t(i,{variables:this.variables});a&&(n.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(t){this.options.pollInterval=t,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(t,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,a=i===void 0?"cache-first":i,o=n.initialFetchPolicy,s=o===void 0?a:o;a==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(a,{reason:t,options:n,observable:this,initialFetchPolicy:s}):t==="variables-changed"?n.fetchPolicy=s:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(t,n,i){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,t,n,i)},e.prototype.updatePolling=function(){var t=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,a=n.options.pollInterval;if(!a){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===a)){I(a,22);var o=i||(this.pollingInfo={});o.interval=a;var s=function(){t.pollingInfo&&(it(t.queryInfo.networkStatus)?u():t.reobserve({fetchPolicy:t.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},M.poll).then(u,u))},u=function(){var c=t.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(s,c.interval))};u()}}},e.prototype.updateLastResult=function(t,n){n===void 0&&(n=this.variables);var i=this.getLastError();return i&&this.last&&!j(n,this.last.variables)&&(i=void 0),this.last=b({result:this.queryManager.assumeImmutableResults?t:sa(t),variables:n},i?{error:i}:null)},e.prototype.reobserveAsConcast=function(t,n){var i=this;this.isTornDown=!1;var a=n===M.refetch||n===M.fetchMore||n===M.poll,o=this.options.variables,s=this.options.fetchPolicy,u=Lt(this.options,t||{}),c=a?u:wi(this.options,u),l=this.transformDocument(c.query);this.lastQuery=l,a||(this.updatePolling(),t&&t.variables&&!j(t.variables,o)&&c.fetchPolicy!=="standby"&&c.fetchPolicy===s&&(this.applyNextFetchPolicy("variables-changed",c),n===void 0&&(n=M.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=_r(c.fetchPolicy));var d=function(){i.concast===m&&(i.waitForOwnResult=!1)},f=c.variables&&b({},c.variables),h=this.fetch(c,n,l),m=h.concast,g=h.fromLink,y={next:function(p){d(),i.reportResult(p,f)},error:function(p){d(),i.reportError(p,f)}};return!a&&(g||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=m,this.observer=y),m.addObserver(y),m},e.prototype.reobserve=function(t,n){return this.reobserveAsConcast(t,n).promise},e.prototype.resubscribeAfterError=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=this.last;this.resetLastResults();var a=this.subscribe.apply(this,t);return this.last=i,a},e.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},e.prototype.reportResult=function(t,n){var i=this.getLastError(),a=this.isDifferentFromLastResult(t,n);(i||!t.partial||this.options.returnPartialData)&&this.updateLastResult(t,n),(i||a)&&Xe(this.observers,"next",t)},e.prototype.reportError=function(t,n){var i=b(b({},this.getLastResult()),{error:t,errors:t.graphQLErrors,networkStatus:M.error,loading:!1});this.updateLastResult(i,n),Xe(this.observers,"error",this.last.error=t)},e.prototype.hasObservers=function(){return this.observers.size>0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(t){return this.queryManager.transform(t)},e}(N);ua(Yr);function Pa(r){var e=r.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return t==="cache-and-network"||t==="network-only"?r.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(i,a){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(i,a):t}}):r.reobserve()}function Rc(r){globalThis.__DEV__!==!1&&I.error(23,r.message,r.stack)}function Ma(r){globalThis.__DEV__!==!1&&r&&globalThis.__DEV__!==!1&&I.debug(24,r)}function _r(r){return r==="network-only"||r==="no-cache"||r==="standby"}var La=function(){function r(e){var t=e.cache,n=e.client,i=e.resolvers,a=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),i&&this.addResolvers(i),a&&this.setFragmentMatcher(a)}return r.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){t.resolvers=Hn(t.resolvers,n)}):this.resolvers=Hn(this.resolvers,e)},r.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},r.prototype.getResolvers=function(){return this.resolvers||{}},r.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,i=e.context,a=e.variables,o=e.onlyRunForcedResolvers,s=o===void 0?!1:o;return fe(this,void 0,void 0,function(){return de(this,function(u){return t?[2,this.resolveDocument(t,n.data,i,a,this.fragmentMatcher,s).then(function(c){return b(b({},n),{data:c.result})})]:[2,n]})})},r.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},r.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},r.prototype.clientQuery=function(e){return at(["client"],e)&&this.resolvers?e:null},r.prototype.serverQuery=function(e){return na(e)},r.prototype.prepareContext=function(e){var t=this.cache;return b(b({},e),{cache:t,getCacheKey:function(n){return t.identify(n)}})},r.prototype.addExportedVariables=function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),fe(this,void 0,void 0,function(){return de(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(a){return b(b({},t),a.exportedVariables)})]:[2,b({},t)]})})},r.prototype.shouldForceResolvers=function(e){var t=!1;return se(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(t=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),t))return on}}}),t},r.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Xs(e),variables:t,returnPartialData:!0,optimistic:!1}).result},r.prototype.resolveDocument=function(e,t,n,i,a,o){return n===void 0&&(n={}),i===void 0&&(i={}),a===void 0&&(a=function(){return!0}),o===void 0&&(o=!1),fe(this,void 0,void 0,function(){var s,u,c,l,d,f,h,m,g,y,p;return de(this,function(_){return s=ht(e),u=Kt(e),c=Wt(u),l=this.collectSelectionsToResolve(s,c),d=s.operation,f=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",h=this,m=h.cache,g=h.client,y={fragmentMap:c,context:b(b({},n),{cache:m,client:g}),variables:i,fragmentMatcher:a,defaultOperationType:f,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:o},p=!1,[2,this.resolveSelectionSet(s.selectionSet,p,t,y).then(function(v){return{result:v,exportedVariables:y.exportedVariables}})]})})},r.prototype.resolveSelectionSet=function(e,t,n,i){return fe(this,void 0,void 0,function(){var a,o,s,u,c,l=this;return de(this,function(d){return a=i.fragmentMap,o=i.context,s=i.variables,u=[n],c=function(f){return fe(l,void 0,void 0,function(){var h,m;return de(this,function(g){return!t&&!i.selectionsToResolve.has(f)?[2]:ct(f,s)?ve(f)?[2,this.resolveField(f,t,n,i).then(function(y){var p;typeof y<"u"&&u.push((p={},p[me(f)]=y,p))})]:(Us(f)?h=f:(h=a[f.name.value],I(h,18,f.name.value)),h&&h.typeCondition&&(m=h.typeCondition.name.value,i.fragmentMatcher(n,m,o))?[2,this.resolveSelectionSet(h.selectionSet,t,n,i).then(function(y){u.push(y)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return ln(u)})]})})},r.prototype.resolveField=function(e,t,n,i){return fe(this,void 0,void 0,function(){var a,o,s,u,c,l,d,f,h,m=this;return de(this,function(g){return n?(a=i.variables,o=e.name.value,s=me
33(e),u=o!==s,c=n[s]||n[o],l=Promise.resolve(c),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=n.__typename||i.defaultOperationType,f=this.resolvers&&this.resolvers[d],f&&(h=f[u?o:s],h&&(l=Promise.resolve(yn.withValue(this.cache,h,[n,Gt(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,l.then(function(y){var p,_;if(y===void 0&&(y=c),e.directives&&e.directives.forEach(function(w){w.name.value==="export"&&w.arguments&&w.arguments.forEach(function(T){T.name.value==="as"&&T.value.kind==="StringValue"&&(i.exportedVariables[T.value.value]=y)})}),!e.selectionSet||y==null)return y;var v=(_=(p=e.directives)===null||p===void 0?void 0:p.some(function(w){return w.name.value==="client"}))!==null&&_!==void 0?_:!1;if(Array.isArray(y))return m.resolveSubSelectedArray(e,t||v,y,i);if(e.selectionSet)return m.resolveSelectionSet(e.selectionSet,t||v,y,i)})]):[2,null]})})},r.prototype.resolveSubSelectedArray=function(e,t,n,i){var a=this;return Promise.all(n.map(function(o){if(o===null)return null;if(Array.isArray(o))return a.resolveSubSelectedArray(e,t,o,i);if(e.selectionSet)return a.resolveSelectionSet(e.selectionSet,t,o,i)}))},r.prototype.collectSelectionsToResolve=function(e,t){var n=function(o){return!Array.isArray(o)},i=this.selectionsToResolveCache;function a(o){if(!i.has(o)){var s=new Set;i.set(o,s),se(o,{Directive:function(u,c,l,d,f){u.name.value==="client"&&f.forEach(function(h){n(h)&&qn(h)&&s.add(h)})},FragmentSpread:function(u,c,l,d,f){var h=t[u.name.value];I(h,19,u.name.value);var m=a(h);m.size>0&&(f.forEach(function(g){n(g)&&qn(g)&&s.add(g)}),s.add(u),m.forEach(function(g){s.add(g)}))}})}return i.get(o)}return a(e)},r}(),Me=new(ue?WeakMap:Map);function wr(r,e){var t=r[e];typeof t=="function"&&(r[e]=function(){return Me.set(r,(Me.get(r)+1)%1e15),t.apply(this,arguments)})}function Si(r){r.notifyTimeout&&(clearTimeout(r.notifyTimeout),r.notifyTimeout=void 0)}var Sr=function(){function r(e,t){t===void 0&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;Me.has(n)||(Me.set(n,0),wr(n,"evict"),wr(n,"modify"),wr(n,"reset"))}return r.prototype.init=function(e){var t=e.networkStatus||M.loading;return this.variables&&this.networkStatus!==M.loading&&!j(this.variables,e.variables)&&(t=M.setVariables),j(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},r.prototype.reset=function(){Si(this),this.dirty=!1},r.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&j(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&t.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},r.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},r.prototype.getDiffOptions=function(e){var t;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(t=this.observableQuery)===null||t===void 0?void 0:t.options.canonizeResults}},r.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),!this.dirty&&!j(n&&n.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},r.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){var n=t.getDiff();n.fromOptimisticTransaction?e.observe():Pa(e)})):delete this.oqListener)},r.prototype.notify=function(){var e=this;Si(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},r.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(it(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},r.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=r.prototype.cancel;var e=this.observableQuery;e&&e.stopPolling()}},r.prototype.cancel=function(){},r.prototype.updateWatch=function(e){var t=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=b(b({},this.getDiffOptions(e)),{watcher:this,callback:function(a){return t.setDiff(a)}});(!this.lastWatch||!j(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},r.prototype.resetLastWrite=function(){this.lastWrite=void 0},r.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Me.get(this.cache)&&j(t,n.variables)&&j(e.data,n.result.data))},r.prototype.markResult=function(e,t,n,i){var a=this,o=new ge,s=ae(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&ae(e.incremental)){var u=ca(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=s,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(Jr(e,n.errorPolicy)?this.cache.performTransaction(function(l){if(a.shouldWrite(e,n.variables))l.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:i===1}),a.lastWrite={result:e,variables:n.variables,dmCount:Me.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var d=a.getDiffOptions(n.variables),f=l.diff(d);!a.stopped&&j(a.variables,n.variables)&&a.updateWatch(n.variables),a.updateLastDiff(f,d),f.complete&&(e.data=f.result)}):this.lastWrite=void 0)},r.prototype.markReady=function(){return this.networkError=null,this.networkStatus=M.ready},r.prototype.markError=function(e){return this.networkStatus=M.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},r}();function Jr(r,e){e===void 0&&(e="none");var t=e==="ignore"||e==="all",n=!Ot(r);return!n&&t&&r.data&&(n=!0),n}var Ic=Object.prototype.hasOwnProperty,Cc=function(){function r(e){var t=e.cache,n=e.link,i=e.defaultOptions,a=e.documentTransform,o=e.queryDeduplication,s=o===void 0?!1:o,u=e.onBroadcast,c=e.ssrMode,l=c===void 0?!1:c,d=e.clientAwareness,f=d===void 0?{}:d,h=e.localState,m=e.assumeImmutableResults,g=m===void 0?!!t.assumeImmutableResults:m,y=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(ue?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;
33var p=new Zi(function(_){return y.cache.transformDocument(_)},{cache:!1});this.cache=t,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=s,this.clientAwareness=f,this.localState=h||new La({cache:t}),this.ssrMode=l,this.assumeImmutableResults=g,this.documentTransform=a?p.concat(a).concat(p):p,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return r.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(K(25))},r.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},r.prototype.mutate=function(e){var t,n,i=e.mutation,a=e.variables,o=e.optimisticResponse,s=e.updateQueries,u=e.refetchQueries,c=u===void 0?[]:u,l=e.awaitRefetchQueries,d=l===void 0?!1:l,f=e.update,h=e.onQueryUpdated,m=e.fetchPolicy,g=m===void 0?((t=this.defaultOptions.mutate)===null||t===void 0?void 0:t.fetchPolicy)||"network-only":m,y=e.errorPolicy,p=y===void 0?((n=this.defaultOptions.mutate)===null||n===void 0?void 0:n.errorPolicy)||"none":y,_=e.keepRootFields,v=e.context;return fe(this,void 0,void 0,function(){var w,T,S,E;return de(this,function(R){switch(R.label){case 0:return I(i,26),I(g==="network-only"||g==="no-cache",27),w=this.generateMutationId(),i=this.cache.transformForLink(this.transform(i)),T=this.getDocumentInfo(i).hasClientExports,a=this.getVariables(i,a),T?[4,this.localState.addExportedVariables(i,a,v)]:[3,2];case 1:a=R.sent(),R.label=2;case 2:return S=this.mutationStore&&(this.mutationStore[w]={mutation:i,variables:a,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:w,document:i,variables:a,fetchPolicy:g,errorPolicy:p,context:v,updateQueries:s,update:f,keepRootFields:_}),this.broadcastQueries(),E=this,[2,new Promise(function(L,F){return hr(E.getObservableFromLink(i,b(b({},v),{optimisticResponse:o}),a,!1),function(Q){if(Ot(Q)&&p==="none")throw new Ie({graphQLErrors:Br(Q)});S&&(S.loading=!1,S.error=null);var ee=b({},Q);return typeof c=="function"&&(c=c(ee)),p==="ignore"&&Ot(ee)&&delete ee.errors,E.markMutationResult({mutationId:w,result:ee,document:i,variables:a,fetchPolicy:g,errorPolicy:p,context:v,update:f,updateQueries:s,awaitRefetchQueries:d,refetchQueries:c,removeOptimistic:o?w:void 0,onQueryUpdated:h,keepRootFields:_})}).subscribe({next:function(Q){E.broadcastQueries(),(!("hasNext"in Q)||Q.hasNext===!1)&&L(Q)},error:function(Q){S&&(S.loading=!1,S.error=Q),o&&E.cache.removeOptimistic(w),E.broadcastQueries(),F(Q instanceof Ie?Q:new Ie({networkError:Q}))}})})]}})})},r.prototype.markMutationResult=function(e,t){var n=this;t===void 0&&(t=this.cache);var i=e.result,a=[],o=e.fetchPolicy==="no-cache";if(!o&&Jr(i,e.errorPolicy)){if(Be(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Be(i)&&ae(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=ca(s.result,i)),typeof u<"u"&&(i.data=u,a.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(d,f){var h=d.observableQuery,m=h&&h.queryName;if(!(!m||!Ic.call(c,m))){var g=c[m],y=n.queries.get(f),p=y.document,_=y.variables,v=t.diff({query:p,variables:_,returnPartialData:!0,optimistic:!1}),w=v.result,T=v.complete;if(T&&w){var S=g(w,{mutationResult:i,queryName:p&&Lr(p)||void 0,queryVariables:_});S&&a.push({result:S,dataId:"ROOT_QUERY",query:p,variables:_})}}})}if(a.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(d){o||a.forEach(function(g){return d.write(g)});var f=e.update,h=!fu(i)||Be(i)&&!i.hasNext;if(f){if(!o){var m=d.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});m.complete&&(i=b(b({},i),{data:m.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&f(d,i,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&h&&d.modify({id:"ROOT_MUTATION",fields:function(g,y){var p=y.fieldName,_=y.DELETE;return p==="__typename"?g:_}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}
33).forEach(function(d){return l.push(d)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},r.prototype.markMutationOptimistic=function(e,t){var n=this,i=typeof e=="function"?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(a){try{n.markMutationResult(b(b({},t),{result:{data:i}}),a)}catch(o){globalThis.__DEV__!==!1&&I.error(o)}},t.mutationId)},r.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},r.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},r.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},r.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},r.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:Os(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:at(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:ra([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:un(dt(e)),asQuery:b(b({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?b(b({},i),{operation:"query"}):i})})};t.set(e,n)}return t.get(e)},r.prototype.getVariables=function(e,t){return b(b({},this.getDocumentInfo(e).defaultVars),t)},r.prototype.watchQuery=function(e){var t=this.transform(e.query);e=b(b({},e),{variables:this.getVariables(t,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new Sr(this),i=new Yr({queryManager:this,queryInfo:n,options:e});return i.lastQuery=t,this.queries.set(i.queryId,n),n.init({document:t,observableQuery:i,variables:i.variables}),i},r.prototype.query=function(e,t){var n=this;return t===void 0&&(t=this.generateQueryId()),I(e.query,28),I(e.query.kind==="Document",29),I(!e.returnPartialData,30),I(!e.pollInterval,31),this.fetchQuery(t,b(b({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(t)})},r.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},r.prototype.generateRequestId=function(){return this.requestIdCounter++},r.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},r.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},r.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},r.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(K(32)),this.queries.forEach(function(t){t.observableQuery?t.networkStatus=M.loading:t.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},r.prototype.getObservableQueries=function(e){var t=this;e===void 0&&(e="active");var n=new Map,i=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(o){typeof o=="string"?i.set(o,!1):Ps(o)?i.set(t.transform(o),!1):z(o)&&o.query&&a.add(o)}),this.queries.forEach(function(o,s){var u=o.observableQuery,c=o.document;if(u){if(e==="all"){n.set(s,u);return}var l=u.queryName,d=u.options.fetchPolicy;if(d==="standby"||e==="active"&&!u.hasObservers())return;(e==="active"||l&&i.has(l)||c&&i.has(c))&&(n.set(s,u),l&&i.set(l,!0),c&&i.set(c,!0))}}),a.size&&a.forEach(function(o){var s=Mn("legacyOneTimeQuery"),u=t.getQuery(s).init({document:o.query,variables:o.variables}),c=new Yr({queryManager:t,queryInfo:u,options:b(b({},o),{fetchPolicy:"network-only"})});I(c.queryId===s),u.setObservableQuery(c),n.set(s,c)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(o,s){o||globalThis.__DEV__!==!1&&I.warn(typeof s=="string"?33:34,s)}),n},r.prototype.reFetchObservableQueries=function(e){var t=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,a){var o=i.options.fetchPolicy;i.resetLastResults(),(e||o!=="standby"&&o!=="cache-only")&&n.push(i.refetch()),t.getQuery(a).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},r.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},r.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,i=e.fetchPolicy,a=e.errorPolicy,o=a===void 0?"none":a,s=e.variables,u=e.context,c=u===void 0?{}:u;n=this.transform(n),s=this.getVariables(n,s);var l=function(f){return t.getObservableFromLink(n,c,f).map(function(h){i!=="no-cache"&&(Jr(h,o)&&t.cache.write({query:n,result:h.data,dataId:"ROOT_SUBSCRIPTION",variables:f}),t.broadcastQueries());var m=Ot(h),g=ls(h);if(m||g){var y={};if(m&&(y.graphQLErrors=h.errors),g&&(y.protocolErrors=h.extensions[Ki]),o==="none"||g)throw new Ie(y)}return o==="ignore"&&delete h.errors,h})};if(this.getDocumentInfo(n).hasClientExports){var d=this.localState.addExportedVariables(n,s,c).then(l);return new N(function(f){var h=null;return d.then(function(m){return h=m.subscribe(f)},f.error),function(){return h&&h.unsubscribe()}})}return l(s)},r.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},r.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},r.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},r.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEac
33h(function(e){return e.notify()})},r.prototype.getLocalState=function(){return this.localState},r.prototype.getObservableFromLink=function(e,t,n,i){var a=this,o;i===void 0&&(i=(o=t==null?void 0:t.queryDeduplication)!==null&&o!==void 0?o:this.queryDeduplication);var s,u=this.getDocumentInfo(e),c=u.serverQuery,l=u.clientQuery;if(c){var d=this,f=d.inFlightLinkObservables,h=d.link,m={query:c,variables:n,operationName:Lr(c)||void 0,context:this.prepareContext(b(b({},t),{forceFetch:!i}))};if(t=m.context,i){var g=ea(c),y=f.get(g)||new Map;f.set(g,y);var p=Te(n);if(s=y.get(p),!s){var _=new Ae([Hr(h,m)]);y.set(p,s=_),_.beforeNext(function(){y.delete(p)&&y.size<1&&f.delete(g)})}}else s=new Ae([Hr(h,m)])}else s=new Ae([N.of({data:{}})]),t=this.prepareContext(t);return l&&(s=hr(s,function(v){return a.localState.runResolvers({document:l,remoteResult:v,context:t,variables:n})})),s},r.prototype.getResultsFromLink=function(e,t,n){var i=e.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(n.query);return hr(this.getObservableFromLink(a,n.context,n.variables),function(o){var s=Br(o),u=s.length>0;if(i>=e.lastRequestId){if(u&&n.errorPolicy==="none")throw e.markError(new Ie({graphQLErrors:s}));e.markResult(o,a,n,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:M.ready};return u&&n.errorPolicy!=="ignore"&&(c.errors=s,c.networkStatus=M.error),c},function(o){var s=fs(o)?o:new Ie({networkError:o});throw i>=e.lastRequestId&&e.markError(s),s})},r.prototype.fetchConcastWithInfo=function(e,t,n,i){var a=this;n===void 0&&(n=M.loading),i===void 0&&(i=t.query);var o=this.getVariables(i,t.variables),s=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=c===void 0?u&&u.fetchPolicy||"cache-first":c,d=t.errorPolicy,f=d===void 0?u&&u.errorPolicy||"none":d,h=t.returnPartialData,m=h===void 0?!1:h,g=t.notifyOnNetworkStatusChange,y=g===void 0?!1:g,p=t.context,_=p===void 0?{}:p,v=Object.assign({},t,{query:i,variables:o,fetchPolicy:l,errorPolicy:f,returnPartialData:m,notifyOnNetworkStatusChange:y,context:_}),w=function(L){v.variables=L;var F=a.fetchQueryByPolicy(s,v,n);return v.fetchPolicy!=="standby"&&F.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",t),F},T=function(){return a.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(L){T(),setTimeout(function(){return S.cancel(L)})});var S,E;if(this.getDocumentInfo(v.query).hasClientExports)S=new Ae(this.localState.addExportedVariables(v.query,v.variables,v.context).then(w).then(function(L){return L.sources})),E=!0;else{var R=w(v.variables);E=R.fromLink,S=new Ae(R.sources)}return S.promise.then(T,T),{concast:S,fromLink:E}},r.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,i=e.include,a=e.optimistic,o=a===void 0?!1:a,s=e.removeOptimistic,u=s===void 0?o?Mn("refetchQueries"):void 0:s,c=e.onQueryUpdated,l=new Map;i&&this.getObservableQueries(i).forEach(function(f,h){l.set(h,{oq:f,lastDiff:t.getQuery(h).getDiff()})});var d=new Map;return n&&this.cache.batch({update:n,optimistic:o&&u||!1,removeOptimistic:u,onWatchUpdated:function(f,h,m){var g=f.watcher instanceof Sr&&f.watcher.observableQuery;if(g){if(c){l.delete(g.queryId);var y=c(g,h,m);return y===!0&&(y=g.refetch()),y!==!1&&d.set(g,y),y}c!==null&&l.set(g.queryId,{oq:g,lastDiff:m,diff:h})}}}),l.size&&l.forEach(function(f,h){var m=f.oq,g=f.lastDiff,y=f.diff,p;if(c){if(!y){var _=m.queryInfo;_.reset(),y=_.getDiff()}p=c(m,y,g)}(!c||p===!0)&&(p=m.refetch()),p!==!1&&d.set(m,p),h.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(h)}),u&&this.cache.removeOptimistic(u),d},r.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,a=t.query,o=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,d=t.context,f=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:a,variables:o,networkStatus:n});var m=function(){return e.getDiff()},g=function(w,T){T===void 0&&(T=e.networkStatus||M.loading);var S=w.result;globalThis.__DEV__!==!1&&!l&&!j(S,{})&&Ma(w.missing);var E=function(R){return N.of(b({data:R,loading:it(T),networkStatus:T},w.complete?null:{partial:!0}))};return S&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:S}
33,context:d,variables:o,onlyRunForcedResolvers:!0}).then(function(R){return E(R.data||void 0)}):c==="none"&&T===M.refetch&&Array.isArray(w.missing)?E(void 0):E(S)},y=s==="no-cache"?0:n===M.refetch&&u!=="merge"?1:2,p=function(){return i.getResultsFromLink(e,y,{query:a,variables:o,context:d,fetchPolicy:s,errorPolicy:c})},_=f&&typeof h=="number"&&h!==n&&it(n);switch(s){default:case"cache-first":{var v=m();return v.complete?{fromLink:!1,sources:[g(v,e.markReady())]}:l||_?{fromLink:!0,sources:[g(v),p()]}:{fromLink:!0,sources:[p()]}}case"cache-and-network":{var v=m();return v.complete||l||_?{fromLink:!0,sources:[g(v),p()]}:{fromLink:!0,sources:[p()]}}case"cache-only":return{fromLink:!1,sources:[g(m(),e.markReady())]};case"network-only":return _?{fromLink:!0,sources:[g(m()),p()]}:{fromLink:!0,sources:[p()]};case"no-cache":return _?{fromLink:!0,sources:[g(e.getDiff()),p()]}:{fromLink:!0,sources:[p()]};case"standby":return{fromLink:!1,sources:[]}}},r.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Sr(this,e)),this.queries.get(e)},r.prototype.prepareContext=function(e){e===void 0&&(e={});var t=this.localState.prepareContext(e);return b(b({},t),{clientAwareness:this.clientAwareness})},r}(),Ti=!1,xc=function(){function r(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw K(15);var n=e.uri,i=e.credentials,a=e.headers,o=e.cache,s=e.documentTransform,u=e.ssrMode,c=u===void 0?!1:u,l=e.ssrForceFetchDelay,d=l===void 0?0:l,f=e.connectToDevTools,h=f===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:f,m=e.queryDeduplication,g=m===void 0?!0:m,y=e.defaultOptions,p=e.assumeImmutableResults,_=p===void 0?o.assumeImmutableResults:p,v=e.resolvers,w=e.typeDefs,T=e.fragmentMatcher,S=e.name,E=e.version,R=e.link;R||(R=n?new Hu({uri:n,credentials:i,headers:a}):pt.empty()),this.link=R,this.cache=o,this.disableNetworkFetches=c||d>0,this.queryDeduplication=g,this.defaultOptions=y||Object.create(null),this.typeDefs=w,d&&setTimeout(function(){return t.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=ds,this.localState=new La({cache:o,client:this,resolvers:v,fragmentMatcher:T}),this.queryManager=new Cc({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:s,queryDeduplication:g,ssrMode:c,clientAwareness:{name:S,version:E},localState:this.localState,assumeImmutableResults:_,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),h&&this.connectToDevTools()}return r.prototype.connectToDevTools=function(){if(typeof window=="object"){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}!Ti&&globalThis.__DEV__!==!1&&(Ti=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,i=n&&n.userAgent,a=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&I.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))},Object.defineProperty(r.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),r.prototype.stop=function(){this.queryManager.stop()},r.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=fr(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=b(b({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},r.prototype.query=function(e){return this.defaultOptions.query&&(e=fr(this.defaultOptions.query,e)),I(e.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=b(b({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},r.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=fr(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},r.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},r.prototype.readQuery=function(e,t){return t===void 0&&(t=!1),this.cache.readQuery(e,t)},r.prototype.readFragment=function(e,t){return t===void 0&&(t=!1),this.cache.readFragment(e,t)},r.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},r.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},r.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},r.prototype.__requestRaw=function(e){return Hr(this.link,e)},r.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(t){return t()}))}).then(function(){return e.reFetchObservableQueries()})},r.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(t){return t()}))})},r.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(n){return n!==e})}},r.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(n){return n!==e})}},r.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},r.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],i=[];t.forEach(function(o,s){n.push(s),i.push(o)});var a=Promise.all(i);return a.queries=n,a.results=i,a.catch(function(o){globalThis.__DEV__!==!1&&I.debug(17,o)}),a},r.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},r.prototype.extract=function(e){return this.cache.extract(e)},r.prototype.restore=function(e){return this.cache.restore(e)},r.prototype.addResolvers=function(e){this.localState.addResolvers(e)},r.prototype.setResolvers=function(e){this.localState.setResolvers(e)},r.prototype.getResolvers=function(){return this.localState.getResolvers()},r.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},r.prototype.setLink=function(e){this.link=this.queryManager.link=e},r}(),Dc=function(r){var e=r.client,t=r.children,n=hs(),i=C.useContext(n),a=C.useMemo(function(){return b(b({},i),{client:e||i.client})},[i,e]);return I(a.client,46),C.createElement(n.Provider,{value:a},t)};/** 34 * @remix-run/react v2.9.1 35 * 36 * Copyright (c) Remix Software Inc. 37 * 38 * This source code is licensed under the MIT license found in the 39 * LICENSE.md file in the root directory of this source tree. 40 * 41 * @license MIT 42 */class Fc extends C.Component{constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?C.createElement(Na,{error:this.state.error}):this.props.children}}function Na({error:r}){console.error(r);let e=C.createElement("script",{dangerouslySetInnerHTML:{__html:` 43 console.log( 44 "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information." 45 ); 46 `}});if(fo(r))return C.createElement(Xr,{title:"Unhandled Thrown Response!"},C.createElement("h1",{style:{fontSize:"24px"}},r.status," ",r.statusText),e);let t;if(r instanceof Error)t=r;else{let n=r==null?"Unknown Error":typeof r=="object"&&"toString"in r?r.toString():JSON.stringify(r);t=new Error(n)}
46return C.createElement(Xr,{title:"Application Error!"},C.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),C.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},t.stack),e)}function Xr({title:r,renderScripts:e,children:t}){var n;let{routeModules:i}=Wo();return(n=i.root)!==null&&n!==void 0&&n.Layout?t:C.createElement("html",{lang:"en"},C.createElement("head",null,C.createElement("meta",{charSet:"utf-8"}),C.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),C.createElement("title",null,r)),C.createElement("body",null,C.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},t,e?C.createElement(Uo,null):null)))}/** 47 * @remix-run/react v2.9.1 48 * 49 * Copyright (c) Remix Software Inc. 50 * 51 * This source code is licensed under the MIT license found in the 52 * LICENSE.md file in the root directory of this source tree. 53 * 54 * @license MIT 55 */function Ac(r){if(!r)return null;let e=Object.entries(r),t={};for(let[n,i]of e)if(i&&i.__type==="RouteErrorResponse")t[n]=new Dt(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let o=new a(i.message);o.stack=i.stack,t[n]=o}catch{}}if(t[n]==null){let a=new Error(i.message);a.stack=i.stack,t[n]=a}}else t[n]=i;return t}/** 56 * @remix-run/react v2.9.1 57 * 58 * Copyright (c) Remix Software Inc. 59 * 60 * This source code is licensed under the MIT license found in the 61 * LICENSE.md file in the root directory of this source tree. 62 * 63 * @license MIT 64 */function Pc(){return C.createElement(Xr,{title:"Loading...",renderScripts:!0},C.createElement("script",{dangerouslySetInnerHTML:{__html:` 65 console.log( 66 "💿 Hey developer 👋. You can provide a way better UX than this " + 67 "when your app is running \`clientLoader\` functions on hydration. " + 68 "Check out https://remix.run/route/hydrate-fallback for more information." 69 ); 70 `}}))}/** 71 * @remix-run/react v2.9.1 72 * 73 * Copyright (c) Remix Software Inc. 74 * 75 * This source code is licensed under the MIT license found in the 76 * LICENSE.md file in the root directory of this source tree. 77 * 78 * @license MIT 79 */function qa(r){let e={};return Object.values(r).forEach(t=>{let n=t.parentId||"";e[n]||(e[n]=[]),e[n].push(t)}),e}function Mc(r,e,t){let n=ja(e),i=e.HydrateFallback&&(!t||r.id==="root")?e.HydrateFallback:r.id==="root"?Pc:void 0,a=e.ErrorBoundary?e.ErrorBoundary:r.id==="root"?()=>C.createElement(Na,{error:ho()}):void 0;return r.id==="root"&&e.Layout?{...n?{element:C.createElement(e.Layout,null,C.createElement(n,null))}:{Component:n},...a?{errorElement:C.createElement(e.Layout,null,C.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:C.createElement(e.Layout,null,C.createElement(i,null))}:{HydrateFallback:i}}:{Component:n,ErrorBoundary:a,HydrateFallback:i}}function Lc(r,e,t,n,i,a){return Sn(e,t,n,i,a,"",qa(e),r)}function yt(r,e,t){if(t){let o=`You cannot call ${r==="action"?"serverAction()":"serverLoader()"} in SPA Mode (routeId: "${e.id}")`;throw console.error(o),new Dt(400,"Bad Request",new Error(o),!0)}let i=`You are trying to call ${r==="action"?"serverAction()":"serverLoader()"} on a route that does not have a server ${r} (routeId: "${e.id}")`;if(r==="loader"&&!e.hasLoader||r==="action"&&!e.hasAction)throw console.error(i),new Dt(400,"Bad Request",new Error(i),!0)}function Tr(r,e){let t=r==="clientAction"?"a":"an",n=`Route "${e}" does not have ${t} ${r}, but you are trying to submit to it. To fix this, please add ${t} \`${r}\` function to the route`;throw console.error(n),new Dt(405,"Method Not Allowed",new Error(n),!0)}function Sn(r,e,t,n,i,a="",o=qa(r),s){return(o[a]||[]).map(u=>{let c=e[u.id];async function l(v,w,T){if(typeof T=="function")return await T();let S=await qc(v,u);return w?jc(S):S}function d(v,w,T){return u.hasLoader?l(v,w,T):Promise.resolve(null)}function f(v,w,T){if(!u.hasAction)throw Tr("action",u.id);return l(v,w,T)}async function h(v){let w=e[u.id],T=w?Ui(u,w):Promise.resolve();try{return v()}finally{await T}}let m={id:u.id,index:u.index,path:u.path};if(c){var g,y,p;Object.assign(m,{...m,...Mc(u,c,i),handle:c.handle,shouldRevalidate:s?Ei(u.id,c.shouldRevalidate,s):c.shouldRevalidate});let v=t==null||(g=t.loaderData)===null||g===void 0?void 0:g[u.id],w=t==null||(y=t.errors)===null||y===void 0?void 0:y[u.id],T=s==null&&(((p=c.clientLoader)===null||p===void 0?void 0:p.hydrate)===!0||!u.hasLoader);m.loader=async({request:S,params:E},R)=>{try{return await h(async()=>(Ar(c,"No `routeModule` available for critical-route loader"),c.clientLoader?c.clientLoader({request:S,params:E,async serverLoader(){if
79(yt("loader",u,i),T){if(w!==void 0)throw w;return v}return d(S,!0,R)}}):i?null:d(S,!1,R)))}finally{T=!1}},m.loader.hydrate=Ba(u,c,i),m.action=({request:S,params:E},R)=>h(async()=>{if(Ar(c,"No `routeModule` available for critical-route action"),!c.clientAction){if(i)throw Tr("clientAction",u.id);return f(S,!1,R)}return c.clientAction({request:S,params:E,async serverAction(){return yt("action",u,i),f(S,!0,R)}})})}else u.hasClientLoader||(m.loader=({request:v},w)=>h(()=>i?Promise.resolve(null):d(v,!1,w))),u.hasClientAction||(m.action=({request:v},w)=>h(()=>{if(i)throw Tr("clientAction",u.id);return f(v,!1,w)})),m.lazy=async()=>{let v=await Nc(u,e),w={...v};if(v.clientLoader){let T=v.clientLoader;w.loader=(S,E)=>T({...S,async serverLoader(){return yt("loader",u,i),d(S.request,!0,E)}})}if(v.clientAction){let T=v.clientAction;w.action=(S,E)=>T({...S,async serverAction(){return yt("action",u,i),f(S.request,!0,E)}})}return s&&(w.shouldRevalidate=Ei(u.id,v.shouldRevalidate,s)),{...w.loader?{loader:w.loader}:{},...w.action?{action:w.action}:{},hasErrorBoundary:w.hasErrorBoundary,shouldRevalidate:w.shouldRevalidate,handle:w.handle,Component:w.Component,ErrorBoundary:w.ErrorBoundary}};let _=Sn(r,e,t,n,i,u.id,o,s);return _.length>0&&(m.children=_),m})}function Ei(r,e,t){let n=!1;return i=>n?e?e(i):i.defaultShouldRevalidate:(n=!0,t.has(r))}async function Nc(r,e){let t=await Go(r,e);return await Ui(r,t),{Component:ja(t),ErrorBoundary:t.ErrorBoundary,clientAction:t.clientAction,clientLoader:t.clientLoader,handle:t.handle,links:t.links,meta:t.meta,shouldRevalidate:t.shouldRevalidate}}async function qc(r,e){let t=await Ko(r,e.id);if(t instanceof Error)throw t;if(Yo(t))throw Bc(t);if(Jo(t))throw t;return Xo(t)&&t.body?await Zo(t.body):t}function jc(r){if(es(r))return r.data;if(ts(r)){let e=r.headers.get("Content-Type");return e&&/\bapplication\/json\b/.test(e)?r.json():r.text()}return r}function Bc(r){let e=parseInt(r.headers.get("X-Remix-Status"),10)||302,t=r.headers.get("X-Remix-Redirect"),n={},i=r.headers.get("X-Remix-Revalidate");i&&(n["X-Remix-Revalidate"]=i);let a=r.headers.get("X-Remix-Reload-Document");return a&&(n["X-Remix-Reload-Document"]=a),po(t,{status:e,headers:n})}function ja(r){if(r.default==null)return;if(!(typeof r.default=="object"&&Object.keys(r.default).length===0))return r.default}function Ba(r,e,t){return t&&r.id!=="root"||e.clientLoader!=null&&(e.clientLoader.hydrate===!0||r.hasLoader!==!0)}let ce,re,Er=!1;let Zr,fd=new Promise(r=>{Zr=r}).catch(()=>{});function Qc(r){if(!re){let a=window.__remixContext.url,o=window.location.pathname;if(a!==o&&!window.__remixContext.isSpaMode){let c=`Initial URL (${a}) does not match URL at time of hydration (${o}), reloading page...`;return console.error(c),window.location.reload(),C.createElement(C.Fragment,null)}if(window.__remixContext.future.unstable_singleFetch){if(!ce){let c=window.__remixContext.stream;Ar(c,"No stream found for single fetch decoding"),window.__remixContext.stream=void 0,ce=rs(c,window).then(l=>{window.__remixContext.state=l.value,ce.value=!0}).catch(l=>{ce.error=l})}if(ce.error)throw ce.error;if(!ce.value)throw ce}let s=Sn(window.__remixManifest.routes,window.__remixRouteModules,window.__remixContext.state,window.__remixContext.future,window.__remixContext.isSpaMode),u;if(!window.__remixContext.isSpaMode){u={...window.__remixContext.state,loaderData:{...window.__remixContext.state.loaderData}};let c=mo(s,window.location);if(c)for(let l of c){let d=l.route.id,f=window.__remixRouteModules[d],h=window.__remixManifest.routes[d];f&&Ba(h,f,window.__remixContext.isSpaMode)&&(f.HydrateFallback||!h.hasLoader)?u.loaderData[d]=void 0:h&&!h.hasLoader&&(u.loaderData[d]=null)}u&&u.errors&&(u.errors=Ac(u.errors))}re=vo({routes:s,history:go(),basename:window.__remixContext.basename,future:{v7_normalizeFormMethod:!0,v7_fetcherPersist:window.__remixContext.future.v3_fetcherPersist,v7_partialHydration:!0,v7_prependBasename:!0,v7_relativeSplatPath:window.__remixContext.future.v3_relativeSplatPath,unstable_skipActionErrorRevalidation:window.__remixContext.future.unstable_singleFetch===!0},hydrationData:u,mapRouteProperties:yo,unstable_dataStrategy:window.__remixContext.future.unstable_singleFetch?ns(window.__remixManifest,window.__remixRouteModules):void 0}),re.state.initialized&&(Er=!0,re.initialize()),re.createRoutesForHMR=Lc,window.__remixRouter=re,Zr&&Zr(re)}let[e,t]=C.useState(void 0),[n,i]=C.useState(re.state.location);return C.useLayoutEffect(()=>{Er||(Er=!0,re.initialize())},[]),C.useLayoutEffect(()=>re.subscribe(a=>{a.location!==n&&i(a.location)}),[n]),C.createElement(C.Fragment,null,C.createElement(is.Provider,{value:{manifest:window.__remixManifest,routeModules:window.__remixRouteModules,future:window.__remixContext.future,criticalCss:e,isSpaMode:window.__remixContext.isSpaMode}},C.createElement(Fc,{location:n},C.createElement(bo,{router:re,fallbackElement:null,future:{v7_startTransition:!0}}))),window.__remixContext.future.unstable_singleFetch?C.createElement(C.Fragment,null):null)}const Hc={},Vc={name:"remix",credentials:"include",connectToDevTools:!1};function $c(){return typeof window<"u"&&(!os()||zc())}function zc(){return Ft.process!==void 0&&Ft.process.type==="renderer"}function ke(r){return(r||ut()).getScope().getTransaction()}let ki=!1;function Wc(){ki||(ki=!0,So(en),To(en))}function en(){const r=ke();if(r){const e="internal_error";P&&O.log(`[Tracing] Transaction: ${e} -> Global error occured`),r.setStatus(e)}}en.tag="sentry_tracingErrorCallback";var Oi;(function(r){const e="ok";r.Ok=e;const t="deadline_exceeded";r.DeadlineExceeded=t;const n="unauthenticated";r.Unauthenticated=n;const i="permission_denied";r.PermissionDenied=i;const a="not_found";r.NotFound=a;const o="resource_exhausted";r.ResourceExhausted=o;const s="invalid_argument";r.InvalidArgument=s;const u="unimplemented";r.Unimplemented=u;const c="unavailable";r.Unavailable=c;const l="internal_error";r.InternalError=l;const d="unknown_error";r.UnknownError=d;const f="cancelled";r.Cancelled=f;const h="already_exists";r.AlreadyExists=h;const m="failed_precondition";r.FailedPrecondition=m;const g="aborted";r.Aborted=g;const y="out_of_range";r.OutOfRange=y;const p="data_loss";r.DataLoss=p})(Oi||(Oi={}));function Uc(r){if(r<400&&r>=100)return"ok";if(r>=400&&r<500)switch(r){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(r>=500&&r<600)switch(r){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Tn(r,e){r.setTag("http.status_code",String(e)),r.setData("http.response.status_code",e);const t=Uc(e);t!=="unknown_error"&&r.setStatus(t)}function We(r){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=_e(),t=r||e&&e.getOptions();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}function Qa(r){if(!We())return;const e=Kc(r),t=ut(),n=r.scope?r.scope.getSpan():En();if(r.onlyIfParent&&!n)return;const o=(r.scope||Ee()).clone();return Gc(t,{parentSpan:n,spanContext:e,forceTransaction:r.forceTransaction,scope:o})}function En(){return Ee().getSpan()}function Gc(r,{parentSpan:e,spanContext:t,forceTransaction:n,scope:i}){if(!We())return;const a=Ht();let o;if(e&&!n)o=e.startChild(t);else if(e){const s=nt(e),{traceId:u,spanId:c}=e.spanContext(),l=Ao(e);o=r.startTransaction({traceId:u,parentSpanId:c,parentSampled:l,...t,metadata:{dynamicSamplingContext:s,...t.metadata}})}else{const{traceId:s,dsc:u,parentSpanId:c,sampled:l}={...a.getPropagationContext(),...i.getPropagationContext()};o=r.startTransaction({traceId:s,parentSpanId:c,parentSampled:l,...t,metadata:{dynamicSamplingContext:u,...t.metadata}})}return i.setSpan(o),Yc(o,i,a),o}function Kc(r){if(r.startTime){const e={...r};return e.startTimestamp=Vt(r.startTime),delete e.startTime,e}return r}const Ha="_sentryScope",Va="_sentryIsolationScope";function Yc(r,e,t){r&&(Dn(r,Va,t),Dn(r,Ha,e))}
79function Jc(r){return{scope:r[Ha],isolationScope:r[Va]}}const he="sentry.source",Le="sentry.sample_rate",bt="sentry.op",Ne="sentry.origin",Xc="profile_id";class $a{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Zt{constructor(e={}){this._traceId=e.traceId||Fn(),this._spanId=e.spanId||Fn().substring(16),this._startTime=e.startTimestamp||Hi(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Ne]:e.origin||"manual",[bt]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp),e.exclusiveTime&&(this._exclusiveTime=e.exclusiveTime),this._measurements=e.measurements?{...e.measurements}:{}}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[bt]}set op(e){this.setAttribute(bt,e)}get origin(){return this._attributes[Ne]}set origin(e){this.setAttribute(Ne,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?Po:Mo}}startChild(e){const t=new Zt({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=An(this);if(t.transaction=n,P&&n){const i=e&&e.op||"< unknown op >",a=Y(t).description||"< unknown name >",o=n.spanContext().spanId,s=`[Tracing] Starting '${i}' span on transaction '${a}' (${o}).`;O.log(s),this._logMessage=s}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){t===void 0?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach(t=>this.setAttribute(t,e[t]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Tn(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status==="ok"}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=An(this);if(P&&t&&t.spanContext().spanId!==this._spanId){const n=this._logMessage;n&&O.log(n.replace("Starting","Finishing"))}this._endTime=Vt(e)}toTraceparent(){return $t(this)}toContext(){return At({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return Vi(this)}getSpanJSON(){return At({data:this._getData(),description:this._name,op:this._attributes[bt],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ne],_metrics_summary:void 0,profile_id:this._attributes[Xc],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}
79toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,i=Object.keys(t).length>0;if(!(!n&&!i))return n&&i?{...e,...t}:n?e:t}}class za extends Zt{constructor(e,t){super(e),this._contexts={},this._hub=t||ut(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[he]&&{source:this._attributes[he]},...this._attributes[Le]&&{sampleRate:this._attributes[Le]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(he,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new $a(e)),this.spanRecorder.add(this)}setContext(e,t){t===null?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=Vt(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){const e=super.toContext();return At({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return nt(this)}setHub(e){this._hub=e}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||(P&&O.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),this._sampled!==!0){P&&O.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","transaction");return}const n=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&Y(l).timestamp):[];if(this._trimEnd&&n.length>0){const l=n.map(d=>Y(d).timestamp).filter(Boolean);this._endTime=l.reduce((d,f)=>d>f?d:f)}const{scope:i,isolationScope:a}=Jc(this),{metadata:o}=this,{source:s}=o,u={contexts:{...this._contexts,trace:Vi(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:i,capturedSpanIsolationScope:a,...At({dynamicSamplingContext:nt(this)})},_metrics_summary:void 0,...s&&{transaction_info:{source:s}}};return Object.keys(this._measurements).length>0&&(P&&O.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),u.measurements=this._measurements),P&&O.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),u}}const Ct={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Zc="finishReason",xe=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class el extends $a{constructor(e,t,n,i){super(i),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),Y(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class tl extends za{constructor(e,t,n=Ct.idleTimeout,i=Ct.finalTimeout,a=Ct.heartbeatInterval,o=!1,s=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=xe[4],this._autoFinishAllowed=!s,o&&(P&&O.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),s||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=xe[3],this.end())},this._finalTimeout)}end(e){const t=Vt(e);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(Zc,this._finishReason),this.spanRecorder){P&&O.log("[Tracing] finishing IdleTransaction",new Date(t*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanContext().spanId===this.spanContext().spanId)return!0;Y(n).timestamp||(n.setStatus("cancelled"),n.end(t),P&&O.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const{start_timestamp:i,timestamp:a}=Y(n),o=i&&i<t,s=(this._finalTimeout+this._idleTimeout)/1e3,u=a&&i&&a-i<s;if(P){const c=JSON.stringify(n,void 0,2);o?u||O.log("[Tracing] discarding Span since it finished after Transaction final timeout",c):O.log("[Tracing] discarding Span since it happened after Transaction was finished",c)}return o&&u}),P&&O.log("[Tracing] flushing IdleTransaction")}else P&&O.log("[Tracing] No active IdleTransaction");if(this._onScope){const n=this._idleHub.getScope();n.getTransaction()===this&&n.setSpan(void 0)}return super.end(e)}registerBeforeFinishCallback(e){this._beforeFinishCallbacks.push(e)}initSpanRecorder(e){if(!this.spanRecorder){const t=i=>{this._finished||this._pushActivity(i)},n=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new el(t,n,this.spanContext().spanId,e),P&&O.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=t===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=xe[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(P&&O.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=xe[1],this.end(e))},this._idleTimeout)}
79_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),P&&O.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,P&&O.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(P&&O.log(`[Tracing] popActivity ${e}`),delete this.activities[e],P&&O.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const t=Hi();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=xe[5],this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(P&&O.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=xe[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){P&&O.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Wa(r,e,t){if(!We(e))return r.sampled=!1,r;if(r.sampled!==void 0)return r.setAttribute(Le,Number(r.sampled)),r;let n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(t),r.setAttribute(Le,Number(n))):t.parentSampled!==void 0?n=t.parentSampled:typeof e.tracesSampleRate<"u"?(n=e.tracesSampleRate,r.setAttribute(Le,Number(n))):(n=1,r.setAttribute(Le,n)),Ua(n)?n?(r.sampled=Math.random()<n,r.sampled?(P&&O.log(`[Tracing] starting ${r.op} transaction - ${Y(r).description}`),r):(P&&O.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),r)):(P&&O.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),r.sampled=!1,r):(P&&O.warn("[Tracing] Discarding transaction because of invalid sample rate."),r.sampled=!1,r)}function Ua(r){return Lo(r)||!(typeof r=="number"||typeof r=="boolean")?(P&&O.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),!1):r<0||r>1?(P&&O.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${r}.`),!1):!0}function rl(){const e=this.getScope().getSpan();return e?{"sentry-trace":$t(e)}:{}}function nl(r,e){const t=this.getClient(),n=t&&t.getOptions()||{},i=n.instrumenter||"sentry",a=r.instrumenter||"sentry";i!==a&&(P&&O.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. 80The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),r.sampled=!1);let o=new za(r,this);return o=Wa(o,n,{name:r.name,parentSampled:r.parentSampled,transactionContext:r,attributes:{...r.data,...r.attributes},...e}),o.isRecording()&&o.initSpanRecorder(n._experiments&&n._experiments.maxSpans),t&&t.emit&&t.emit("startTransaction",o),o}function Ga(r,e,t,n,i,a,o,s=!1){const u=r.getClient(),c=u&&u.getOptions()||{};let l=new tl(e,r,t,n,o,i,s);return l=Wa(l,c,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...a}),l.isRecording()&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",l),l}function il(){const r=No();r.__SENTRY__&&(r.__SENTRY__.extensions=r.__SENTRY__.extensions||{},r.__SENTRY__.extensions.startTransaction||(r.__SENTRY__.extensions.startTransaction=nl),r.__SENTRY__.extensions.traceHeaders||(r.__SENTRY__.extensions.traceHeaders=rl),Wc())}function al(r,e,t){const n=ke();n&&n.setMeasurement(r,e,t)}function ol(r,e){const t={sent_at:new Date().toISOString()};e&&(t.dsn=ko(e));const n=r.map(sl);return Eo(t,n)}function sl(r){return[{type:"span"},r]}const B=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,D=Ft;function ul(){D&&D.document?D.document.addEventListener("visibilitychange",()=>{const r=ke();if(D.document.hidden&&r){const e="cancelled",{op:t,status:n}=Y(r);B&&O.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${t}`),n||r.setStatus(e),r.setTag("visibilitychange","document.hidden"),r.end()}}):B&&O.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const er=(r,e,t)=>{let n,i;return a=>{e.value>=0&&(a||t)&&(i=e.value-(n||0),(i||n===void 0)&&(n=e.value,e.delta=i,r(e)))}},cl=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ll=()=>{const r=D.performance.timing,e=D.performance.navigation.type,t={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const n in r)n!=="navigationStart"&&n!=="toJSON"&&(t[n]=Math.max(r[n]-r.navigationStart,0));return t},Ka=()=>D.__WEB_VITALS_POLYFILL__?D.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||ll()):D.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Ya=()=>{const r=Ka();return r&&r.activationStart||0},tr=(r,e)=>{const t=Ka();let n="navigate";return t&&(D.document.prerendering||Ya()>0?n="prerender":n=t.type.replace(/_/g,"-")),{name:r,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:cl(),navigationType:n}},Ue=(r,e,t)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(r)){const n=new PerformanceObserver(i=>{e(i.getEntries())});return n.observe(Object.assign({type:r,buffered:!0},t||{})),n}}catch{}},mt=(r,e)=>{const t=n=>{(n.type==="pagehide"||D.document.visibilityState==="hidden")&&(r(n),e&&(removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0))
80)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},fl=r=>{const e=tr("CLS",0);let t,n=0,i=[];const a=s=>{s.forEach(u=>{if(!u.hadRecentInput){const c=i[0],l=i[i.length-1];n&&i.length!==0&&u.startTime-l.startTime<1e3&&u.startTime-c.startTime<5e3?(n+=u.value,i.push(u)):(n=u.value,i=[u]),n>e.value&&(e.value=n,e.entries=i,t&&t())}})},o=Ue("layout-shift",a);if(o){t=er(r,e);const s=()=>{a(o.takeRecords()),t(!0)};return mt(s),s}};let xt=-1;const dl=()=>D.document.visibilityState==="hidden"&&!D.document.prerendering?0:1/0,hl=()=>{mt(({timeStamp:r})=>{xt=r},!0)},kn=()=>(xt<0&&(xt=dl(),hl()),{get firstHiddenTime(){return xt}}),pl=r=>{const e=kn(),t=tr("FID");let n;const i=s=>{s.startTime<e.firstHiddenTime&&(t.value=s.processingStart-s.startTime,t.entries.push(s),n(!0))},a=s=>{s.forEach(i)},o=Ue("first-input",a);n=er(r,t),o&&mt(()=>{a(o.takeRecords()),o.disconnect()},!0)};let Ja=0,kr=1/0,_t=0;const ml=r=>{r.forEach(e=>{e.interactionId&&(kr=Math.min(kr,e.interactionId),_t=Math.max(_t,e.interactionId),Ja=_t?(_t-kr)/7+1:0)})};let tn;const vl=()=>tn?Ja:performance.interactionCount||0,gl=()=>{"interactionCount"in performance||tn||(tn=Ue("event",ml,{type:"event",buffered:!0,durationThreshold:0}))},Xa=()=>vl(),Ri=10,oe=[],Or={},Ii=r=>{const e=oe[oe.length-1],t=Or[r.interactionId];if(t||oe.length<Ri||r.duration>e.latency){if(t)t.entries.push(r),t.latency=Math.max(t.latency,r.duration);else{const n={id:r.interactionId,latency:r.duration,entries:[r]};Or[n.id]=n,oe.push(n)}oe.sort((n,i)=>i.latency-n.latency),oe.splice(Ri).forEach(n=>{delete Or[n.id]})}},yl=()=>{const r=Math.min(oe.length-1,Math.floor(Xa()/50));return oe[r]},bl=(r,e)=>{e=e||{},gl();const t=tr("INP");let n;const i=o=>{o.forEach(u=>{u.interactionId&&Ii(u),u.entryType==="first-input"&&!oe.some(l=>l.entries.some(d=>u.duration===d.duration&&u.startTime===d.startTime))&&Ii(u)});const s=yl();s&&s.latency!==t.value&&(t.value=s.latency,t.entries=s.entries,n())},a=Ue("event",i,{durationThreshold:e.durationThreshold||40});n=er(r,t,e.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),mt(()=>{i(a.takeRecords()),t.value<0&&Xa()>0&&(t.value=0,t.entries=[]),n(!0)}))},Ci={},_l=r=>{const e=kn(),t=tr("LCP");let n;const i=o=>{const s=o[o.length-1];if(s){const u=Math.max(s.startTime-Ya(),0);u<e.firstHiddenTime&&(t.value=u,t.entries=[s],n())}},a=Ue("largest-contentful-paint",i);if(a){n=er(r,t);const o=()=>{Ci[t.id]||(i(a.takeRecords()),a.disconnect(),Ci[t.id]=!0,n(!0))};return["keydown","click"].forEach(s=>{addEventListener(s,o,{once:!0,capture:!0})}),mt(o,!0),o}},tt={},Qt={};let Za,eo,to,ro;function wl(r,e=!1){return nr("cls",r,kl,Za,e)}function Sl(r,e=!1){return nr("lcp",r,Rl,to,e)}function Tl(r){return nr("fid",r,Ol,eo)}function El(r){return nr("inp",r,Il,ro)}function rr(r,e){return no(r,e),Qt[r]||(Cl(r),Qt[r]=!0),io(r,e)}function vt(r,e){const t=tt[r];if(!(!t||!t.length))for(const n of t)try{n(e)}catch(i){B&&O.error(`Error while triggering instrumentation handler. 81Type: ${r} 82Name: ${qo(n)} 83Error:`,i)}}function kl(){return fl(r=>{vt("cls",{metric:r}),Za=r})}function Ol(){return pl(r=>{vt("fid",{metric:r}),eo=r})}function Rl(){return _l(r=>{vt("lcp",{metric:r}),to=r})}function Il(){return bl(r=>{vt("inp",{metric:r}),ro=r})}function nr(r,e,t,n,i=!1){no(r,e);let a;return Qt[r]||(a=t(),Qt[r]=!0),n&&e({metric:n}),io(r,e,i?a:void 0)}function Cl(r){const e={};r==="event"&&(e.durationThreshold=0),Ue(r,t=>
83{vt(r,{entries:t})},e)}function no(r,e){tt[r]=tt[r]||[],tt[r].push(e)}function io(r,e,t){return()=>{t&&t();const n=tt[r];if(!n)return;const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}function Rr(r){return typeof r=="number"&&isFinite(r)}function ze(r,{startTimestamp:e,...t}){return e&&r.startTimestamp>e&&(r.startTimestamp=e),r.startChild({startTimestamp:e,...t})}const xl=2147483647;function $(r){return r/1e3}function On(){return D&&D.addEventListener&&D.performance}let xi=0,V={},ie,rt;function Dl(){const r=On();if(r&&Z){r.mark&&D.performance.mark("sentry-tracing-init");const e=Nl(),t=Ml(),n=Ll();return()=>{e(),t(),n()}}return()=>{}}function Fl(){rr("longtask",({entries:r})=>{for(const e of r){const t=ke();if(!t)return;const n=$(Z+e.startTime),i=$(e.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})}function Al(){rr("event",({entries:r})=>{for(const e of r){const t=ke();if(!t)return;if(e.name==="click"){const n=$(Z+e.startTime),i=$(e.duration),a={description:Pt(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i},o=jo(e.target);o&&(a.attributes={"ui.component_name":o}),t.startChild(a)}}})}
83function Pl(r){if(On()&&Z){const t=ql(r);return()=>{t()}}return()=>{}}function Ml(){return wl(({metric:r})=>{const e=r.entries[r.entries.length-1];e&&(B&&O.log("[Measurements] Adding CLS"),V.cls={value:r.value,unit:""},rt=e)},!0)}function Ll(){return Sl(({metric:r})=>{const e=r.entries[r.entries.length-1];e&&(B&&O.log("[Measurements] Adding LCP"),V.lcp={value:r.value,unit:"millisecond"},ie=e)},!0)}function Nl(){return Tl(({metric:r})=>{const e=r.entries[r.entries.length-1];if(!e)return;const t=$(Z),n=$(e.startTime);B&&O.log("[Measurements] Adding FID"),V.fid={value:r.value,unit:"millisecond"},V["mark.fid"]={value:t+n,unit:"second"}})}function ql(r){return El(({metric:e})=>{const t=e.entries.find(y=>y.name==="click"||y.name==="pointerdown"),n=_e();if(!t||!n)return;const i=n.getOptions(),a=$(Z+t.startTime),o=$(e.value),{routeName:s,parentContext:u,activeTransaction:c,user:l,replayId:d}=t.interactionId!==void 0?r[t.interactionId]:{routeName:void 0,parentContext:void 0,activeTransaction:void 0,user:void 0,replayId:void 0},f=l!==void 0?l.email||l.id||l.ip_address:void 0,h=c!==void 0?c.getProfileId():void 0,m=new Zt({startTimestamp:a,endTimestamp:a+o,op:"ui.interaction.click",name:Pt(t.target),attributes:{release:i.release,environment:i.environment,transaction:s,...f!==void 0&&f!==""?{user:f}:{},...h!==void 0?{profile_id:h}:{},...d!==void 0?{replay_id:d}:{}},exclusiveTime:e.value,measurements:{inp:{value:e.value,unit:"millisecond"}}}),g=Ul(u,i);if(g&&Math.random()<g){const y=m?ol([m],n.getDsn()):void 0,p=n&&n.getTransport();p&&y&&p.send(y).then(null,_=>{B&&O.error("Error while sending interaction:",_)});return}})}function jl(r){const e=On();if(!e||!D.performance.getEntries||!Z)return;B&&O.log("[Tracing] Adding & adjusting spans using Performance API");const t=$(Z),n=e.getEntries();let i,a;const{op:o,start_timestamp:s}=Y(r);if(n.slice(xi).forEach(u=>{const c=$(u.startTime),l=$(u.duration);if(!(r.op==="navigation"&&s&&t+c<s))switch(u.entryType){case"navigation":{Ql(r,u,t),i=t+$(u.responseStart),a=t+$(u.requestStart);break}case"mark":case"paint":case"measure":{Bl(r,u,c,l,t);const d=kn(),f=u.startTime<d.firstHiddenTime;u.name==="first-paint"&&f&&(B&&O.log("[Measurements] Adding FP"),V.fp={value:u.startTime,unit:"millisecond"}),u.name==="first-contentful-paint"&&f&&(B&&O.log("[Measurements] Adding FCP"),V.fcp={value:u.startTime,unit:"millisecond"});break}case"resource":{Vl(r,u,u.name,c,l,t);break}}}),xi=Math.max(n.length-1,0),$l(r),o==="pageload"){Wl(V,i,a,s),["fcp","fp","lcp"].forEach(c=>{if(!V[c]||!s||t>=s)return;const l=V[c].value,d=t+$(l),f=Math.abs((d-s)*1e3),h=f-l;B&&O.log(`[Measurements] Normalized ${c} from ${l} to ${f} (${h})`),V[c].value=f});const u=V["mark.fid"];u&&V.fid&&(ze(r,{description:"first input delay",endTimestamp:u.value+$(V.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:u.value}),delete V["mark.fid"]),"fcp"in V||delete V.cls,Object.keys(V).forEach(c=>{al(c,V[c].value,V[c].unit)}),zl(r)}ie=void 0,rt=void 0,V={}}function Bl(r,e,t,n,i){const a=i+t,o=a+n;return ze(r,{description:e.name,endTimestamp:o,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function Ql(r,e,t){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{wt(r,e,n,t)}
83),wt(r,e,"secureConnection",t,"TLS/SSL","connectEnd"),wt(r,e,"fetch",t,"cache","domainLookupStart"),wt(r,e,"domainLookup",t,"DNS"),Hl(r,e,t)}function wt(r,e,t,n,i,a){const o=a?e[a]:e[`${t}End`],s=e[`${t}Start`];!s||!o||ze(r,{op:"browser",origin:"auto.browser.browser.metrics",description:i||t,startTimestamp:n+$(s),endTimestamp:n+$(o)})}function Hl(r,e,t){e.responseEnd&&(ze(r,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:t+$(e.requestStart),endTimestamp:t+$(e.responseEnd)}),ze(r,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:t+$(e.responseStart),endTimestamp:t+$(e.responseEnd)}))}function Vl(r,e,t,n,i,a){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const o=Oo(t),s={};Ir(s,e,"transferSize","http.response_transfer_size"),Ir(s,e,"encodedBodySize","http.response_content_length"),Ir(s,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(s["resource.render_blocking_status"]=e.renderBlockingStatus),o.protocol&&(s["url.scheme"]=o.protocol.split(":").pop()),o.host&&(s["server.address"]=o.host),s["url.same_origin"]=t.includes(D.location.origin);const u=a+n,c=u+i;ze(r,{description:t.replace(D.location.origin,""),endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:s})}function $l(r){const e=D.navigator;if(!e)return;const t=e.connection;t&&(t.effectiveType&&r.setTag("effectiveConnectionType",t.effectiveType),t.type&&r.setTag("connectionType",t.type),Rr(t.rtt)&&(V["connection.rtt"]={value:t.rtt,unit:"millisecond"})),Rr(e.deviceMemory)&&r.setTag("deviceMemory",`${e.deviceMemory} GB`),Rr(e.hardwareConcurrency)&&r.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function zl(r){ie&&(B&&O.log("[Measurements] Adding LCP Data"),ie.element&&r.setTag("lcp.element",Pt(ie.element)),ie.id&&r.setTag("lcp.id",ie.id),ie.url&&r.setTag("lcp.url",ie.url.trim().slice(0,200)),r.setTag("lcp.size",ie.size)),rt&&rt.sources&&(B&&O.log("[Measurements] Adding CLS Data"),rt.sources.forEach((e,t)=>r.setTag(`cls.source.${t+1}`,Pt(e.node))))}function Ir(r,e,t,n){const i=e[t];i!=null&&i<xl&&(r[n]=i)}function Wl(r,e,t,n){typeof e=="number"&&n&&(B&&O.log("[Measurements] Adding TTFB"),r.ttfb={value:Math.max(e-n,0)*1e3,unit:"millisecond"},typeof t=="number"&&t<=e&&(r["ttfb.requestTime"]={value:(e-t)*1e3,unit:"millisecond"}))}function Ul(r,e){if(!We(e))return!1;let t;return r!==void 0&&typeof e.tracesSampler=="function"?t=e.tracesSampler({transactionContext:r,name:r.name,parentSampled:r.parentSampled,attributes:{...r.data,...r.attributes},location:D.location}):r!==void 0&&r.sampled!==void 0?t=r.sampled:typeof e.tracesSampleRate<"u"?t=e.tracesSampleRate:t=1,Ua(t)?t:(B&&O.warn("[Tracing] Discarding transaction because of invalid sample rate."),!1)}function Gl(r,e,t,n,i="auto.http.browser"){if(!We()||!r.fetchData)return;const a=e(r.fetchData.url);if(r.endTimestamp&&a){const d=r.fetchData.__span;if(!d)return;const f=n[d];if(f){if(r.response){Tn(f,r.response.status);const h=r.response&&r.response.headers&&r.response.headers.get("content-length");if(h){const m=parseInt(h);m>0&&f.setAttribute("http.response_content_length",m)}}else r.error&&f.setStatus("internal_error");f.end(),delete n[d]}return}const o=Ee(),s=_e(),{method:u,url:c}=r.fetchData,l=a?Qa({name:`${u} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":u,[Ne]:i},op:"http.client"}):void 0;if(l&&(r.fetchData.__span=l.spanContext().spanId,n[l.spanContext().spanId]=l),t(r.fetchData.url)&&s){const d=r.args[0];r.args[1]=r.args[1]||{};const f=r.args[1];f.headers=Kl(d,s,o,f,l)}return l}function Kl(r,e,t,n,i){const a=i||t.getSpan(),o=Ht(),{traceId:s,spanId:u,sampled:c,dsc:l}={...o.getPropagationContext(),...t.getPropagationContext()},d=a?$t(a):$i(s,u,c),f=zi(l||(a?nt(a):Wi(s,e,t))),h=n.headers||(typeof Request<"u"&&Pn(r,Request)?r.headers:void 0);if(h)if(typeof Headers<"u"&&Pn(h,Headers)){const m=new Headers(h);return m.append("sentry-trace",d),f&&m.append(Fr,f),m}else if(Array.isArray(h)){const m=[...h,["sentry-trace",d]];return f&&m.push([Fr,f]),m}else{const m="baggage"in h?h.baggage:void 0,g=[];return Array.isArray(m)?g.push(...m):m&&g.push(m),f&&g.push(f),{...h,"sentry-trace":d,baggage:g.length>0?g.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}const rn=["localhost",/^\/(?!\/)/],nn={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:rn,tracePropagationTargets:rn};function Yl(r){const{traceFetch:e,traceXHR:t,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o}={traceFetch:nn.traceFetch,traceXHR:nn.traceXHR,...r},s=typeof a=="function"?a:l=>!0,u=l=>ef(l,n||i),c={};e&&Ro(l=>{const d=Gl(l,s,u,c);o&&d&&Di(d)}),t&&Io(l=>{const d=tf(l,s,u,c);o&&d&&Di(d)})}function Jl(r){return r.entryType==="resource"&&"initiatorType"in r&&typeof r.nextHopProtocol=="string"&&(r.initiatorType==="fetch"||r.initiatorType==="xmlhttprequest")}function Di(r){const{url:e}=Y(r).data||{};if(!e||typeof e!="string")return;const t=rr("resource",({entries:n})=>
83{n.forEach(i=>{Jl(i)&&i.name.endsWith(e)&&(Zl(i).forEach(o=>r.setAttribute(...o)),setTimeout(t))})})}function Xl(r){let e="unknown",t="unknown",n="";for(const i of r){if(i==="/"){[e,t]=r.split("/");break}if(!isNaN(Number(i))){e=n==="h"?"http":n,t=r.split(n)[1];break}n+=i}return n===r&&(e=n),{name:e,version:t}}function ne(r=0){return((Z||performance.timeOrigin)+r)/1e3}function Zl(r){const{name:e,version:t}=Xl(r.nextHopProtocol),n=[];return n.push(["network.protocol.version",t],["network.protocol.name",e]),Z?[...n,["http.request.redirect_start",ne(r.redirectStart)],["http.request.fetch_start",ne(r.fetchStart)],["http.request.domain_lookup_start",ne(r.domainLookupStart)],["http.request.domain_lookup_end",ne(r.domainLookupEnd)],["http.request.connect_start",ne(r.connectStart)],["http.request.secure_connection_start",ne(r.secureConnectionStart)],["http.request.connection_end",ne(r.connectEnd)],["http.request.request_start",ne(r.requestStart)],["http.request.response_start",ne(r.responseStart)],["http.request.response_end",ne(r.responseEnd)]]:n}function ef(r,e){return Bo(r,e||rn)}function tf(r,e,t,n){const i=r.xhr,a=i&&i[Co];if(!We()||!i||i.__sentry_own_request__||!a)return;const o=e(a.url);if(r.endTimestamp&&o){const d=i.__sentry_xhr_span_id__;if(!d)return;const f=n[d];f&&a.status_code!==void 0&&(Tn(f,a.status_code),f.end(),delete n[d]);return}const s=Ee(),u=Ht(),c=o?Qa({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[Ne]:"auto.http.browser"},op:"http.client"}):void 0;c&&(i.__sentry_xhr_span_id__=c.spanContext().spanId,n[i.__sentry_xhr_span_id__]=c);const l=_e();if(i.setRequestHeader&&t(a.url)&&l){const{traceId:d,spanId:f,sampled:h,dsc:m}={...u.getPropagationContext(),...s.getPropagationContext()},g=c?$t(c):$i(d,f,h),y=zi(m||(c?nt(c):Wi(d,l,s)));rf(i,g,y)}return c}function rf(r,e,t){try{r.setRequestHeader("sentry-trace",e),t&&r.setRequestHeader(Fr,t)}catch{}}const nf="BrowserTracing",af={...Ct,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,_experiments:{},...nn},of=(r={})=>{const e=B?!!(r.tracePropagationTargets||r.tracingOrigins):!1;il(),!r.tracePropagationTargets&&r.tracingOrigins&&(r.tracePropagationTargets=r.tracingOrigins);const t={...af,...r},n=Dl(),i={};t.enableInp&&Pl(i),t.enableLongTask&&Fl(),t._experiments.enableInteractions&&Al();const a={name:void 0,context:void 0};function o(s){const u=ut(),{beforeStartSpan:c,idleTimeout:l,finalTimeout:d,heartbeatInterval:f}=t,h=s.op==="pageload";let m;if(h){const _=h?Fi("sentry-trace"):"",v=h?Fi("baggage"):void 0,{traceId:w,dsc:T,parentSpanId:S,sampled:E}=Qo(_,v);m={traceId:w,parentSpanId:S,parentSampled:E,...s,metadata:{...s.metadata,dynamicSamplingContext:T},trimEnd:!0}}else m={trimEnd:!0,...s};const g=c?c(m):m;g.metadata=g.name!==m.name?{...g.metadata,source:"custom"}:g.metadata,a.name=g.name,a.context=g,g.sampled===!1&&B&&O.log(`[Tracing] Will not send ${g.op} transaction because of beforeNavigate.`),B&&O.log(`[Tracing] Starting ${g.op} transaction on scope`);const{location:y}=D,p=Ga(u,g,l,d,!0,{location:y},f,h);return h&&D.document&&(D.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(D.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(D.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(_=>{n(),jl(_)}),p}return{name:nf,setupOnce:()=>{},afterAllSetup(s){const u=s.getOptions(),{markBackgroundSpan:c,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:h,_experiments:m}=t,g=u&&u.tracePropagationTargets,y=g||t.tracePropagationTargets;B&&e&&g&&O.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let p,_=D.location&&D.location.href;if(s.on&&(s.on("startNavigationSpan",v=>{p&&(B&&O.log(`[Tracing] Finishing current transaction with op: ${Y(p).op}`),p.end()),p=o({op:"navigation",...v})}),s.on("startPageLoadSpan",v=>{p&&(B&&O.log(`[Tracing] Finishing current transaction with op: ${Y(p).op}`),p.end()),p=o({op:"pageload",...v})})),t.instrumentPageLoad&&s.emit&&D.location){const v={name:D.location.pathname,startTimestamp:Z?Z/1e3:void 0,origin:"auto.pageload.browser",attributes:{[he]:"url"}};ao(s,v)}t.instrumentNavigation&&s.emit&&D.location&&xo(({to:v,from:w})=>{if(w===void 0&&_&&_.indexOf(v)!==-1){_=void 0;return}if(w!==v){_=void 0;const T={name:D.location.pathname,origin:"auto.navigation.browser",attributes:{[he]:"url"}};sf(s,T)}}),c&&ul(),m.enableInteractions&&uf(t,a),t.enableInp&&ff(i,a),Yl({traceFetch:l,traceXHR:d,tracePropagationTargets:y,shouldCreateSpanForRequest:f,enableHTTPTimings:h})},options:t}};function ao(r,e){if(!r.emit)return;r.emit("startPageLoadSpan",e);const t=En();return(t&&Y(t).op)==="pageload"?t:void 0}function sf(r,e){if(!r.emit)return;r.emit("startNavigationSpan",e);const t=En();return(t&&Y(t).op)==="navigation"?t:void 0}function Fi(r){const e=Ho(`meta[name=${r}]`);return e?e.getAttribute("content"):void 0}function uf(r,e){let t;const n=()=>{const{idleTimeout:i,finalTimeout:a,heartbeatInterval:o}=r,s="ui.action.click",u=ke();if(u&&u.op&&["navigation","pageload"].includes(u.op)){B&&O.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!e.name){B&&O.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const{location:c}=D,l={name:e.name,op:s,trimEnd:!0,data:{[he]:e.context?df(e.context):"url"}};t=Ga(ut(),l,i,a,!0,{location:c},o)};["click"].forEach(i=>
83{addEventListener(i,n,{once:!1,capture:!0})})}function cf(r){return"duration"in r}const lf=10;function ff(r,e){rr("event",({entries:t})=>{const n=_e(),i=n!==void 0&&n.getIntegrationByName!==void 0?n.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,o=ke(),s=Ee(),u=s!==void 0?s.getUser():void 0;for(const c of t)if(cf(c)){const l=c.duration,d=Object.keys(r),f=d.length>0?d.reduce((h,m)=>r[h].duration<r[m].duration?h:m):void 0;if(f===void 0||l>r[f].duration){const h=c.interactionId,m=e.name,g=e.context;h&&m&&g&&(f&&Object.keys(r).length>=lf&&delete r[f],r[h]={routeName:m,duration:l,parentContext:g,user:u,activeTransaction:o,replayId:a})}}})}function df(r){const e=r.attributes&&r.attributes[he],t=r.data&&r.data[he],n=r.metadata&&r.metadata.source;return e||t||n}const Oe=Ft,Cr="#ffffff",Ai="inherit",xr="rgba(108, 95, 199, 1)",Pi={fontFamily:"system-ui, 'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:Cr,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"12px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:xr,submitBorder:xr,submitOutlineFocus:"#29232f",submitForeground:Cr,submitForegroundHover:Cr,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:Ai,inputForeground:Ai,inputBorder:"var(--border)",inputOutlineFocus:xr,formBorderRadius:"20px",formContentBorderRadius:"6px"},Mi={light:Pi,dark:{...Pi,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"}},hf="Report a Bug",pf="Cancel",mf="Send Bug Report",vf="Report a Bug",gf="[email protected]",yf="Email",bf="What's the bug? What did you expect?",_f="Description",wf="Your Name",Sf="Name",Tf="Thank you for your report!",oo="widget",so="api";async function Ef({client:r,scope:e,event:t}){const n={};r.emit&&r.emit("preprocessEvent",t,n);const i=await zo(r.getOptions(),t,n,e,r,Ht());return i===null?(r.recordDroppedEvent("event_processor","feedback",t),null):(i.platform=i.platform||"javascript",i)}async function kf({feedback:{message:r,email:e,name:t,source:n,url:i}},{includeReplay:a=!0}={}){const o=_e(),s=o&&o.getTransport(),u=o&&o.getDsn();if(!o||!s||!u)return;const c={contexts:{feedback:{contact_email:e,name:t,message:r,url:i,source:n}},type:"feedback"};return $o(async l=>{l.clearBreadcrumbs(),[so,oo].includes(String(n))&&l.setLevel("info");const d=await Ef({scope:l,client:o,event:c});if(!d)return;o.emit&&o.emit("beforeSendFeedback",d,{includeReplay:!!a});const f=Do(d,u,o.getOptions()._metadata,o.getOptions().tunnel);let h;try{h=await s.send(f)}catch(m){const g=new Error("Unable to send Feedback");try{g.cause=m}catch{}throw g}
83if(h){if(typeof h.statusCode=="number"&&(h.statusCode<200||h.statusCode>=300))throw new Error("Unable to send Feedback");return h}})}function Of({name:r,email:e,message:t,source:n=so,url:i=Vo()},a={}){if(!t)throw new Error("Unable to submit feedback with empty message");return kf({feedback:{name:r,email:e,message:t,url:i,source:n}},a)}const Se=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Li(r,e){return{...r,...e,themeDark:{...r.themeDark,...e.themeDark},themeLight:{...r.themeLight,...e.themeLight}}}function Rf(r){const e=r.createElement("style");return e.textContent=` 84.widget__actor { 85 line-height: 25px; 86 87 display: flex; 88 align-items: center; 89 gap: 8px; 90 91 border-radius: var(--border-radius); 92 cursor: pointer; 93 font-size: 14px; 94 font-weight: 600; 95 padding: 12px 16px; 96 text-decoration: none; 97 z-index: 9000; 98 99 color: var(--foreground); 100 background-color: var(--background); 101 border: var(--border); 102 box-shadow: var(--box-shadow); 103 opacity: 1; 104 transition: opacity 0.1s ease-in-out; 105} 106 107.widget__actor:hover { 108 background-color: var(--background-hover); 109} 110 111.widget__actor svg { 112 width: 16px; 113 height: 16px; 114} 115 116.widget__actor--hidden { 117 opacity: 0; 118 pointer-events: none; 119 visibility: hidden; 120} 121 122.widget__actor__text { 123} 124 125.feedback-icon path { 126 fill: var(--foreground); 127} 128`,e}function If(r){const e=r.createElement("style");return e.textContent=` 129.dialog { 130 line-height: 25px; 131 background-color: rgba(0, 0, 0, 0.05); 132 border: none; 133 position: fixed; 134 inset: 0; 135 z-index: 10000; 136 width: 100vw; 137 height: 100vh; 138 display: flex; 139 align-items: center; 140 justify-content: center; 141 opacity: 1; 142 transition: opacity 0.2s ease-in-out; 143} 144 145.dialog:not([open]) { 146 opacity: 0; 147 pointer-events: none; 148 visibility: hidden; 149} 150.dialog:not([open]) .dialog__content { 151 transform: translate(0, -16px) scale(0.98); 152} 153 154.dialog__content { 155 position: fixed; 156 left: var(--left); 157 right: var(--right); 158 bottom: var(--bottom); 159 top: var(--top); 160 161 border: var(--border); 162 border-radius: var(--form-border-radius); 163 background-color: var(--background); 164 color: var(--foreground); 165 166 width: 320px; 167 max-width: 100%; 168 max-height: calc(100% - 2rem); 169 display: flex; 170 flex-direction: column;
171 box-shadow: var(--box-shadow); 172 transition: transform 0.2s ease-in-out; 173 transform: translate(0, 0) scale(1); 174} 175 176.dialog__header { 177 display: flex; 178 align-items: center; 179 justify-content: space-between; 180 font-size: 20px; 181 font-weight: 600; 182 padding: 24px 24px 0 24px; 183 margin: 0; 184 margin-bottom: 16px; 185} 186 187.brand-link { 188 display: inline-flex; 189} 190 191.error { 192 color: var(--error); 193 margin-bottom: 16px; 194} 195 196.form { 197 display: grid; 198 overflow: auto; 199 flex-direction: column; 200 gap: 16px; 201 padding: 0 24px 24px; 202} 203 204.form__error-container { 205 color: var(--error); 206} 207 208.form__error-container--hidden { 209 display: none; 210} 211 212.form__label { 213 display: flex; 214 flex-direction: column; 215 gap: 4px; 216 margin: 0px; 217} 218 219.form__label__text { 220 display: grid; 221 gap: 4px; 222 align-items: center; 223 grid-auto-flow: column; 224 grid-auto-columns: max-content; 225} 226 227.form__label__text--required { 228 font-size: 0.85em; 229} 230 231.form__input { 232 font-family: inherit; 233 line-height: inherit; 234 background-color: var(--input-background); 235 box-sizing: border-box; 236 border: var(--input-border); 237 border-radius: var(--form-content-border-radius); 238 color: var(--input-foreground); 239 font-size: 14px; 240 font-weight: 500; 241 padding: 6px 12px; 242} 243 244.form__input:focus-visible { 245 outline: 1px auto var(--input-outline-focus); 246} 247 248.form__input--textarea { 249 font-family: inherit; 250 resize: vertical; 251} 252 253.btn-group { 254 display: grid; 255 gap: 8px; 256 margin-top: 8px; 257} 258 259.btn { 260 line-height: inherit; 261 border: var(--cancel-border); 262 border-radius: var(--form-content-border-radius); 263 cursor: pointer; 264 font-size: 14px; 265 font-weight: 600; 266 padding: 6px 16px; 267} 268.btn[disabled] { 269 opacity: 0.6; 270 pointer-events: none; 271} 272 273.btn--primary { 274 background-color: var(--submit-background); 275 border-color: var(--submit-border); 276 color: var(--submit-foreground); 277} 278.btn--primary:hover { 279 background-color: var(--submit-background-hover); 280 color: var(--submit-foreground-hover); 281} 282.btn--primary:focus-visible { 283 outline: 1px auto var(--submit-outline-focus); 284} 285 286.btn--default { 287 background-color: var(--cancel-background); 288 color: var(--cancel-foreground); 289 font-weight: 500; 290} 291.btn--default:hover { 292 background-color: var(--cancel-background-hover); 293 color: var(--cancel-foreground-hover); 294} 295.btn--default:focus-visible { 296 outline: 1px auto var(--cancel-outline-focus); 297} 298 299.success-message { 300 background-color: var(--background); 301 border: var(--border); 302 border-radius: var(--border-radius);
303 box-shadow: var(--box-shadow); 304 font-weight: 600; 305 color: var(--success); 306 padding: 12px 24px; 307 line-height: 25px; 308 display: grid; 309 align-items: center; 310 grid-auto-flow: column; 311 gap: 6px; 312 cursor: default; 313} 314 315.success-icon path { 316 fill: var(--success); 317} 318`,e}function Ni(r){return` 319 --background: ${r.background}; 320 --background-hover: ${r.backgroundHover}; 321 --foreground: ${r.foreground}; 322 --error: ${r.error}; 323 --success: ${r.success}; 324 --border: ${r.border}; 325 --border-radius: ${r.borderRadius}; 326 --box-shadow: ${r.boxShadow}; 327 328 --submit-background: ${r.submitBackground}; 329 --submit-background-hover: ${r.submitBackgroundHover}; 330 --submit-border: ${r.submitBorder}; 331 --submit-outline-focus: ${r.submitOutlineFocus}; 332 --submit-foreground: ${r.submitForeground}; 333 --submit-foreground-hover: ${r.submitForegroundHover}; 334 335 --cancel-background: ${r.cancelBackground}; 336 --cancel-background-hover: ${r.cancelBackgroundHover}; 337 --cancel-border: ${r.cancelBorder}; 338 --cancel-outline-focus: ${r.cancelOutlineFocus}; 339 --cancel-foreground: ${r.cancelForeground}; 340 --cancel-foreground-hover: ${r.cancelForegroundHover}; 341 342 --input-background: ${r.inputBackground}; 343 --input-foreground: ${r.inputForeground}; 344 --input-border: ${r.inputBorder}; 345 --input-outline-focus: ${r.inputOutlineFocus}; 346 347 --form-border-radius: ${r.formBorderRadius}; 348 --form-content-border-radius: ${r.formContentBorderRadius}; 349 `}function Cf(r,e,t){const n=r.createElement("style");return n.textContent=` 350:host { 351 --bottom: 1rem; 352 --right: 1rem; 353 --top: auto; 354 --left: auto; 355 --z-index: 100000; 356 --font-family: ${t.light.fontFamily}; 357 --font-size: ${t.light.fontSize}; 358 359 position: fixed; 360 left: var(--left); 361 right: var(--right); 362 bottom: var(--bottom); 363 top: var(--top); 364 z-index: var(--z-index); 365 366 font-family: var(--font-family); 367 font-size: var(--font-size); 368 369 ${Ni(e==="dark"?t.dark:t.light)} 370} 371 372${e==="system"?` 373@media (prefers-color-scheme: dark) { 374 :host { 375 ${Ni(t.dark)} 376 } 377}`:""} 378}`,n}function xf({id:r,colorScheme:e,themeDark:t,themeLight:n}){try{const i=Oe.document,a=i.createElement("div");a.id=r;const o=a.attachShadow({mode:"open"});return o.appendChild(Cf(i,e,{dark:t,light:n})),o.appendChild(If(i)),{shadow:o,host:a}}catch{throw O.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}async function Df(r,e,t){if(!r)return;const n=()=>{r&&r.showError("There was a problem submitting feedback, please wait and try again.")};r.hideError();try{return await Of({...e,source:oo},t)}catch(i){Se&&O.error(i),n()}}function J(r,e){return Object.entries(e).forEach(([t,n])=>{r.setAttributeNS(null,t,n)}),r}const De=20,Ff="http://www.w3.org/2000/svg";function Af(){const r=s=>Oe.document.createElementNS(Ff,s),e=J(r("svg"),{class:"feedback-icon",width:`${De}`,height:`${De}`,viewBox:`0 0 ${De} ${De}`,fill:"none"}),t=J(r("g"),{clipPath:"url(#clip0_57_80)"}),n=J(r("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.45
37856 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});e.appendChild(t).appendChild(n);const i=r("defs"),a=J(r("clipPath"),{id:"clip0_57_80"}),o=J(r("rect"),{width:`${De}`,height:`${De}`,fill:"white"});return a.appendChild(o),i.appendChild(a),e.appendChild(i).appendChild(a).appendChild(o),{get el(){return e}}}function q(r,e,...t){const i=Oe.document.createElement(r);e&&Object.entries(e).forEach(([a,o])=>{a==="className"&&typeof o=="string"?i.setAttribute("class",o):typeof o=="boolean"&&o?i.setAttribute(a,""):typeof o=="string"?i.setAttribute(a,o):a.startsWith("on")&&typeof o=="function"&&i.addEventListener(a.substring(2).toLowerCase(),o)});for(const a of t)uo(i,a);return i}function uo(r,e){const t=Oe.document;if(!(typeof e>"u"||e===null))if(Array.isArray(e))for(const n of e)uo(r,n);else e===!1||(typeof e=="string"?r.appendChild(t.createTextNode(e)):e instanceof Node?r.appendChild(e):r.appendChild(t.createTextNode(String(e))))}function Pf({buttonLabel:r,onClick:e}){function t(i){e&&e(i)}const n=q("button",{type:"button",className:"widget__actor","aria-label":r,"aria-hidden":"false"},Af().el,r?q("span",{className:"widget__actor__text"},r):null);return n.addEventListener("click",t),{get el(){return n},show:()=>{n.classList.remove("widget__actor--hidden"),n.setAttribute("aria-hidden","false")},hide:()=>{n.classList.add("widget__actor--hidden"),n.setAttribute("aria-hidden","true")}}}function Mf({label:r}){return{el:q("button",{type:"submit",className:"btn btn--primary","aria-label":r},r)}}function Dr(r,e){const t=r.get(e);return typeof t=="string"?t.trim():""}function Lf({nameLabel:r,namePlaceholder:e,emailLabel:t,emailPlaceholder:n,messageLabel:i,messagePlaceholder:a,cancelButtonLabel:o,submitButtonLabel:s,showName:u,showEmail:c,isNameRequired:l,isEmailRequired:d,defaultName:f,defaultEmail:h,onCancel:m,onSubmit:g}){const{el:y}=Mf({label:s});function p(F){if(F.preventDefault(),F.target instanceof HTMLFormElement)try{if(g){const Q=new FormData(F.target),ee={name:Dr(Q,"name"),email:Dr(Q,"email"),message:Dr(Q,"message")};g(ee)}}catch{}}const _=q("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});function v(F){_.textContent=F,_.classList.remove("form__error-container--hidden"),_.setAttribute("aria-hidden","false")}function w(){_.textContent="",_.classList.add("form__error-container--hidden"),_.setAttribute("aria-hidden","true")}const T=q("input",{id:"name",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"name",required:l,className:"form__input",placeholder:e,value:f}),S=q("input",{id:"email",type:c?"text":"hidden","aria-hidden":c?"false":"true",name:"email",required:d,className:"form__input",placeholder:n,value:h}),E=q("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:a}),R=q("button",{type:"button",className:"btn btn--default","aria-label":o,onClick:F=>{m&&m(F)}},o),L=q("form",{className:"form",onSubmit:p},[_,u&&q("label",{htmlFor:"name",className:"form__label"},[q("span",{className:"form__label__text"},r,l&&q("span",{className:"form__label__text--required"}," (required)")),T]),!u&&T,c&&q("label",{htmlFor:"email",className:"form__label"},[q("span",{className:"form__label__text"},t,d&&q("span",{className:"form__label__text--required"}," (required)")),S]),!c&&S,q("label",{htmlFor:"message",className:"form__label"},[q("span",{className:"form__label__text"},i,q("span",{className:"form__label__text--required"}," (required)")),E]),q("div",{className:"btn-group"},[y,R])]);return{get el(){return L},showError:v,hideError:w}}const Nf="http://www.w3.org/2000/svg";function qf({colorScheme:r}){const e=o=>Oe.document.createElementNS(Nf,o),t=J(e("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),n=J(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});t.append(n);const i=e("defs"),a=e("style");return a.textContent=` 379 path { 380 fill: ${r==="dark"?"#fff":"#362d59"}; 381 }`,r==="system"&&(a.textContent+=` 382 @media (prefers-color-scheme: dark) { 383 path: { 384 fill: '#fff'; 385 } 386 } 387 `),i.append(a),t.append(i),{get el(){return t}}}
387function jf({formTitle:r,showBranding:e,showName:t,showEmail:n,isNameRequired:i,isEmailRequired:a,colorScheme:o,defaultName:s,defaultEmail:u,onClosed:c,onCancel:l,onSubmit:d,...f}){let h=null;function m(){g(),c&&c()}function g(){h&&(h.open=!1)}function y(){h&&(h.open=!0)}function p(){return h&&h.open===!0||!1}const{el:_,showError:v,hideError:w}=Lf({showEmail:n,showName:t,isEmailRequired:a,isNameRequired:i,defaultName:s,defaultEmail:u,onSubmit:d,onCancel:l,...f});return h=q("dialog",{className:"dialog",open:!0,onClick:m},q("div",{className:"dialog__content",onClick:T=>{T.stopPropagation()}},q("h2",{className:"dialog__header"},r,e&&q("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},qf({colorScheme:o}).el)),_)),{get el(){return h},showError:v,hideError:w,open:y,close:g,checkIsOpen:p}}const St=16,qi=17,Bf="http://www.w3.org/2000/svg";function Qf(){const r=u=>Oe.document.createElementNS(Bf,u),e=J(r("svg"),{class:"success-icon",width:`${St}`,height:`${qi}`,viewBox:`0 0 ${St} ${qi}`,fill:"none"}),t=J(r("g"),{clipPath:"url(#clip0_57_156)"}),n=J(r("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=J(r("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});e.appendChild(t).append(i,n);const a=r("defs"),o=J(r("clipPath"),{id:"clip0_57_156"}),s=J(r("rect"),{width:`${St}`,height:`${St}`,fill:"white",transform:"translate(0 0.5)"});return o.appendChild(s),a.appendChild(o),e.appendChild(a).appendChild(o).appendChild(s),{get el(){return e}}}function Hf({message:r,onRemove:e}){function t(){n&&(n.remove(),e&&e())}const n=q("div",{className:"success-message",onClick:t},Qf().el,r);return{el:n,remove:t}}function ji({shadow:r,options:{shouldCreateActor:e=!0,...t},attachTo:n}){let i,a,o=!1;function s(){if(r)try{const p=Hf({message:t.successMessageText,onRemove:()=>{_&&clearTimeout(_),l()}});if(!p.el)throw new Error("Unable to show success message");r.appendChild(p.el);const _=setTimeout(()=>{p&&p.remove()},5e3)}catch(p){O.error(p)}}async function u(p){if(!a)return;const _=[];if(t.isNameRequired&&!p.name&&_.push(t.nameLabel),t.isEmailRequired&&!p.email&&_.push(t.emailLabel),p.message||_.push(t.messageLabel),_.length>0){a.showError(`Please enter in the following required fields: ${_.join(", ")}`);return}if(!await Df(a,p)){t.onSubmitError&&t.onSubmitError();return}g(),s(),t.onSubmitSuccess&&t.onSubmitSuccess()}function c(){const p=_e(),_=p&&p.getIntegrationByName&&p.getIntegrationByName("Replay");_&&_.flush().catch(v=>{Se&&O.error(v)})}function l(){i&&i.show()}function d(){i&&i.hide()}function f(){i&&i.el&&i.el.remove()}function h(){try{if(a){a.open(),o=!0,t.onFormOpen&&t.onFormOpen(),c();return}const p=t.useSentryUser,_=Ee(),v=_&&_.getUser();if(a=jf({colorScheme:t.colorScheme,showBranding:t.showBranding,showName:t.
387showName||t.isNameRequired,showEmail:t.showEmail||t.isEmailRequired,isNameRequired:t.isNameRequired,isEmailRequired:t.isEmailRequired,formTitle:t.formTitle,cancelButtonLabel:t.cancelButtonLabel,submitButtonLabel:t.submitButtonLabel,emailLabel:t.emailLabel,emailPlaceholder:t.emailPlaceholder,messageLabel:t.messageLabel,messagePlaceholder:t.messagePlaceholder,nameLabel:t.nameLabel,namePlaceholder:t.namePlaceholder,defaultName:p&&v&&v[p.name]||"",defaultEmail:p&&v&&v[p.email]||"",onClosed:()=>{l(),o=!1,t.onFormClose&&t.onFormClose()},onCancel:()=>{m(),l()},onSubmit:u}),!a.el)throw new Error("Unable to open Feedback dialog");r.appendChild(a.el),d(),t.onFormOpen&&t.onFormOpen(),c()}catch(p){O.error(p)}}function m(){a&&(a.close(),o=!1,t.onFormClose&&t.onFormClose())}function g(){if(a){m();const p=a.el;p&&p.remove(),a=void 0}}function y(){o||h(),d()}return n?n.addEventListener("click",y):e&&(i=Pf({buttonLabel:t.buttonLabel,onClick:y}),i.el&&r.appendChild(i.el)),{get actor(){return i},get dialog(){return a},showActor:l,hideActor:d,removeActor:f,openDialog:h,closeDialog:m,removeDialog:g}}const Tt=Oe.document,Vf=r=>new ir(r);class ir{static __initStatic(){this.id="Feedback"}constructor({autoInject:e=!0,id:t="sentry-feedback",isEmailRequired:n=!1,isNameRequired:i=!1,showBranding:a=!0,showEmail:o=!0,showName:s=!0,useSentryUser:u={email:"email",name:"username"},themeDark:c,themeLight:l,colorScheme:d="system",buttonLabel:f=hf,cancelButtonLabel:h=pf,submitButtonLabel:m=mf,formTitle:g=vf,emailPlaceholder:y=gf,emailLabel:p=yf,messagePlaceholder:_=bf,messageLabel:v=_f,namePlaceholder:w=wf,nameLabel:T=Sf,successMessageText:S=Tf,onFormClose:E,onFormOpen:R,onSubmitError:L,onSubmitSuccess:F}={}){this.name=ir.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:e,showBranding:a,id:t,isEmailRequired:n,isNameRequired:i,showEmail:o,showName:s,useSentryUser:u,colorScheme:d,themeDark:{...Mi.dark,...c},themeLight:{...Mi.light,...l},buttonLabel:f,cancelButtonLabel:h,submitButtonLabel:m,formTitle:g,emailLabel:p,emailPlaceholder:y,messageLabel:v,messagePlaceholder:_,nameLabel:T,namePlaceholder:w,successMessageText:S,onFormClose:E,onFormOpen:R,onSubmitError:L,onSubmitSuccess:F}}setupOnce(){if($c())try{this._cleanupWidgetIfExists();const{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){Se&&O.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,t){try{const n=Li(this.options,t||{});return this._ensureShadowHost(n,({shadow:i})=>{const a=typeof e=="string"?Tt.querySelector(e):typeof e.addEventListener=="function"?e:null;if(!a)return Se&&O.error("[Feedback] Unable to attach to target element"),null;const o=ji({shadow:i,options:n,attachTo:a});return this._widgets.add(o),this._widget||(this._widget=o),o})}catch(n){return Se&&O.error(n),null}}createWidget(e){try{return this._createWidget(Li(this.options,e||{}))}catch(t){return Se&&O.error(t),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(t){Se&&O.error(t)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();const e=Tt.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,({shadow:t})=>{const n=ji({shadow:t,options:e});return!this._hasInsertedActorStyles&&n.actor&&(t.appendChild(Rf(Tt)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||(this._widget=n),n})}_ensureShadowHost(e,t){let n=!1;if(!this._shadow||!this._host){const{id:a,colorScheme:o,themeLight:s,themeDark:u}=e,{shadow:c,host:l}=xf({id:a,colorScheme:o,themeLight:s,themeDark:u});this._shadow=c,this._host=l,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;const i=t({shadow:this._shadow,host:this._host});return n&&Tt.body.appendChild(this._host),i}}ir.__initStatic();function $f(r){const e={...r};Qi(e,"react"),Fo(e)}const zf={"routing.instrumentation":"remix-router"};let an;function Wf(){if(lr&&lr.location)return lr.location.pathname}function Uf(){const r=Wf();if(!r)return;const e={name:r,op:"pageload",origin:"auto.pageload.remix",tags:zf,metadata:{source:"url"}};if(an)an(e);else{const t=_e();if(!t)return;ao(t,e)}}function Gf({useEffect:r,useLocation:e,useMatches:t,instrumentNavigation:n,customStartTransaction:i}){an=i}function Kf(r){r.instrumentPageLoad===void 0&&(r.instrumentPageLoad=!0),r.instrumentNavigation===void 0&&(r.instrumentNavigation=!0),Gf({useEffect:r.useEffect,useLocation:r.useLocation,useMatches:r.useMatches,instrumentNavigation:r.instrumentNavigation});const e=of({...r,instrumentPageLoad:!1,instrumentNavigation:!1});return{...e,afterAllSetup(t){e.afterAllSetup(t),r.instrumentPageLoad&&Uf()}}}function Yf(r){const e={...r,environment:r.environment||"production"};Qi(e,"remix",["remix","react"]),$f(e),Ee().setTag("runtime","browser")}var Bi={};const Jf=()=>typeof process<"u"&&Bi.REMIX_ENV?Bi.REMIX_ENV:typeof window<"u"&&window.REMIX_ENV?window.REMIX_ENV:"production",qe=Jf(),Xf={enabled:["production","staging"].includes(qe),environment:qe,dsn:"https://70b800ca53d490fa8eac7c9a1131231a@o4506559734284288.ingest.sentry.io/4506559740116992",sampleRate:1,enableTracing:["production","staging"].includes(qe),tracesSampleRate:["production","staging"].includes(qe)?.2:0,ignoreErrors:['{"title":"Network error","details":{}}',/{"title":"Network error","details":{/gi]},Zf=()=>Yf({...Xf,replaysSessionSampleRate:0,replaysOnErrorSampleRate:["production","staging"].includes(qe)?.1:0,integrations:[Kf({useEffect:C.useEffect,useLocation:_o,useMatches:as}),...qe==="staging"?[Vf({colorScheme:"system",isEmailRequired:!0})]:[]]}),ed=new xc({...Vc,cache:new Tc(Hc).restore(window.__APOLLO_STATE__),uri:`/${window.graphqlUri||"graphql"}`});Zf();wo.hydrate(cr.jsx(ss,{children:cr.jsx(Dc,{client:ed,children:cr.jsx(Qc,{})})}),document);
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.