@unchainedshop/admin-ui 4.0.0-rc.18 → 4.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/403/index.html +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/423/index.html +2 -2
- package/out/500/index.html +2 -2
- package/out/_next/static/{nuaAUEiQByQZYzl39vTtT → Hgdan9cmI-iEc9C75PQzD}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/351-03cd9ef853a6b69b.js +1 -0
- package/out/_next/static/chunks/pages/{_app-7dbea78bd3a8ab74.js → _app-8d45830664cd7bb7.js} +1 -1
- package/out/_offline/index.html +2 -2
- package/out/account/forgot-password/index.html +2 -2
- package/out/account/index.html +2 -2
- package/out/assortments/AssortmentDetailPage/index.html +2 -2
- package/out/assortments/index.html +2 -2
- package/out/assortments/new/index.html +2 -2
- package/out/copilot/index.html +2 -2
- package/out/country/CountryDetailPage/index.html +2 -2
- package/out/country/index.html +2 -2
- package/out/country/new/index.html +2 -2
- package/out/currency/CurrencyDetailPage/index.html +2 -2
- package/out/currency/index.html +2 -2
- package/out/currency/new/index.html +2 -2
- package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
- package/out/delivery-provider/index.html +2 -2
- package/out/delivery-provider/new/index.html +2 -2
- package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
- package/out/enrollments/index.html +2 -2
- package/out/events/EventDetailPage/index.html +2 -2
- package/out/events/index.html +2 -2
- package/out/external/index.html +2 -2
- package/out/filters/FilterDetailPage/index.html +2 -2
- package/out/filters/index.html +2 -2
- package/out/filters/new/index.html +2 -2
- package/out/index.html +2 -2
- package/out/install/index.html +2 -2
- package/out/language/LanguageDetailPage/index.html +2 -2
- package/out/language/index.html +2 -2
- package/out/language/new/index.html +2 -2
- package/out/log-in/index.html +2 -2
- package/out/orders/OrderDetailPage/index.html +2 -2
- package/out/orders/index.html +2 -2
- package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
- package/out/payment-provider/index.html +2 -2
- package/out/payment-provider/new/index.html +2 -2
- package/out/products/ProductDetailPage/index.html +2 -2
- package/out/products/index.html +2 -2
- package/out/products/new/index.html +2 -2
- package/out/quotations/QuotationDetailPage/index.html +2 -2
- package/out/quotations/index.html +2 -2
- package/out/reset-password/index.html +2 -2
- package/out/sign-up/index.html +2 -2
- package/out/styleguide/index.html +2 -2
- package/out/tokens/TokenDetailPage/index.html +2 -2
- package/out/tokens/index.html +2 -2
- package/out/users/UserDetailPage/index.html +2 -2
- package/out/users/index.html +2 -2
- package/out/users/new/index.html +2 -2
- package/out/verify-email/index.html +2 -2
- package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
- package/out/warehousing-provider/index.html +2 -2
- package/out/warehousing-provider/new/index.html +2 -2
- package/out/works/WorkDetailPage/index.html +2 -2
- package/out/works/WorkQueueListView/index.html +2 -2
- package/out/works/index.html +2 -2
- package/out/works/management/index.html +2 -2
- package/package.json +1 -1
- package/out/_next/static/chunks/351-597390d4f1efe835.js +0 -1
- /package/out/_next/static/{nuaAUEiQByQZYzl39vTtT → Hgdan9cmI-iEc9C75PQzD}/_ssgManifest.js +0 -0
|
@@ -49,5 +49,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
49
49
|
if (${r}.issues.length) payload.issues = payload.issues.concat(${r}.issues.map(iss => ({
|
|
50
50
|
...iss,
|
|
51
51
|
path: iss.path ? [${J(e)}, ...iss.path] : [${J(e)}]
|
|
52
|
-
})));`),t.write(`newResult[${J(e)}] = ${r}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let o=t.compile();return(t,r)=>o(e,t,r)})(t.shape)),l=r(l,u);else{l.value={};let e=n.shape;for(let t of n.keys){let r=e[t],n=r._zod.run({value:c[t],issues:[]},u),i="optional"===r._zod.optin&&"optional"===r._zod.optout;n instanceof Promise?d.push(n.then(e=>i?nS(e,l,t,c):nk(e,l,t))):i?nS(n,l,t,c):nk(n,l,t)}}if(!o)return d.length?Promise.all(d).then(()=>l):l;let h=[],f=n.keySet,p=o._zod,m=p.def.type;for(let e of Object.keys(c)){if(f.has(e))continue;if("never"===m){h.push(e);continue}let t=p.run({value:c[e],issues:[]},u);t instanceof Promise?d.push(t.then(t=>nk(t,l,e))):nk(t,l,e)}return(h.length&&l.issues.push({code:"unrecognized_keys",keys:h,input:c,inst:e}),d.length)?Promise.all(d).then(()=>l):l}});function nx(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ed(e,n,ey())))}),t}let nA=em("$ZodUnion",(e,t)=>{rJ.init(e,t),Y(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),Y(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),Y(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Y(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>K(e.source)).join("|")})$`)}}),e._zod.parse=(r,n)=>{let i=!1,a=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},n);if(t instanceof Promise)a.push(t),i=!0;else{if(0===t.issues.length)return t;a.push(t)}}return i?Promise.all(a).then(t=>nx(t,r,e,n)):nx(a,r,e,n)}}),nN=em("$ZodDiscriminatedUnion",(e,t)=>{nA.init(e,t);let r=e._zod.parse;Y(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=W(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,a)=>{let s=i.value;if(!ee(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let o=n.value.get(s?.[t.discriminator]);return o?o._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:s,path:[t.discriminator],inst:e}),i)}}),nC=em("$ZodIntersection",(e,t)=>{rJ.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),a=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,r])=>nI(e,t,r)):nI(e,i,a)}});function nI(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),el(e))return e;let n=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(er(t)&&er(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a[n]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!n.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}let nO=em("$ZodRecord",(e,t)=>{rJ.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!er(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[];if(t.keyType._zod.values){let s,o=t.keyType._zod.values;for(let e of(r.value={},o))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let s=t.valueType._zod.run({value:i[e],issues:[]},n);s instanceof Promise?a.push(s.then(t=>{t.issues.length&&r.issues.push(...eu(e,t.issues)),r.value[e]=t.value})):(s.issues.length&&r.issues.push(...eu(e,s.issues)),r.value[e]=s.value)}for(let e in i)o.has(e)||(s=s??[]).push(e);s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let s of(r.value={},Reflect.ownKeys(i))){if("__proto__"===s)continue;let o=t.keyType._zod.run({value:s,issues:[]},n);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(o.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:o.issues.map(e=>ed(e,n,ey())),input:s,path:[s],inst:e}),r.value[o.value]=o.value;continue}let l=t.valueType._zod.run({value:i[s],issues:[]},n);l instanceof Promise?a.push(l.then(e=>{e.issues.length&&r.issues.push(...eu(s,e.issues)),r.value[o.value]=e.value})):(l.issues.length&&r.issues.push(...eu(s,l.issues)),r.value[o.value]=l.value)}return a.length?Promise.all(a).then(()=>r):r}}),nP=em("$ZodEnum",(e,t)=>{rJ.init(e,t);let r=Z(t.entries);e._zod.values=new Set(r),e._zod.pattern=RegExp(`^(${r.filter(e=>en.has(typeof e)).map(e=>"string"==typeof e?ei(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:r,input:i,inst:e}),t}}),nD=em("$ZodLiteral",(e,t)=>{rJ.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?ei(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),nM=em("$ZodTransform",(e,t)=>{rJ.init(e,t),e._zod.parse=(e,r)=>{let n=t.transform(e.value,e);if(r.async)return(n instanceof Promise?n:Promise.resolve(n)).then(t=>(e.value=t,e));if(n instanceof Promise)throw new eg;return e.value=n,e}}),nL=em("$ZodOptional",(e,t)=>{rJ.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Y(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${K(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,r):void 0===e.value?e:t.innerType._zod.run(e,r)}),nR=em("$ZodNullable",(e,t)=>{rJ.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${K(e.source)}|null)$`):void 0}),Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),nF=em("$ZodDefault",(e,t)=>{rJ.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>nB(e,t)):nB(n,t)}});function nB(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let nj=em("$ZodPrefault",(e,t)=>{rJ.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),nz=em("$ZodNonOptional",(e,t)=>{rJ.init(e,t),Y(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>nU(t,e)):nU(i,e)}});function nU(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let nH=em("$ZodCatch",(e,t)=>{rJ.init(e,t),e._zod.optin="optional",Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ed(e,r,ey()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ed(e,r,ey()))},input:e.value}),e.issues=[]),e)}}),nV=em("$ZodPipe",(e,t)=>{rJ.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,r)=>{let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>nG(e,t,r)):nG(n,t,r)}});function nG(e,t,r){return el(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}let nq=em("$ZodReadonly",(e,t)=>{rJ.init(e,t),Y(e._zod,"propValues",()=>t.innerType._zod.propValues),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(nZ):nZ(n)}});function nZ(e){return e.value=Object.freeze(e.value),e}let n$=em("$ZodLazy",(e,t)=>{rJ.init(e,t),Y(e._zod,"innerType",()=>t.getter()),Y(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Y(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Y(e._zod,"optin",()=>e._zod.innerType._zod.optin),Y(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),nW=em("$ZodCustom",(e,t)=>{rD.init(e,t),rJ.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>nK(t,r,n,e));nK(i,r,n,e)}});function nK(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(ef(e))}}function nY(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...es(t)})}function nQ(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...es(t)})}function nJ(e,t){return new rL({check:"less_than",...es(t),value:e,inclusive:!1})}function nX(e,t){return new rL({check:"less_than",...es(t),value:e,inclusive:!0})}function n0(e,t){return new rR({check:"greater_than",...es(t),value:e,inclusive:!1})}function n1(e,t){return new rR({check:"greater_than",...es(t),value:e,inclusive:!0})}function n2(e,t){return new rF({check:"multiple_of",...es(t),value:e})}function n5(e,t){return new rj({check:"max_length",...es(t),maximum:e})}function n3(e,t){return new rz({check:"min_length",...es(t),minimum:e})}function n4(e,t){return new rU({check:"length_equals",...es(t),length:e})}function n9(e){return new rK({check:"overwrite",tx:e})}let n6=em("ZodISODateTime",(e,t)=>{nr.init(e,t),is.init(e,t)}),n8=em("ZodISODate",(e,t)=>{nn.init(e,t),is.init(e,t)}),n7=em("ZodISOTime",(e,t)=>{ni.init(e,t),is.init(e,t)}),ie=em("ZodISODuration",(e,t)=>{na.init(e,t),is.init(e,t)}),it=em("ZodType",(e,t)=>(rJ.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,r)=>ea(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>eN(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>eI(e,t,r),e.parseAsync=async(t,r)=>eC(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>eO(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(function(e,t={}){return new an({type:"custom",check:"custom",fn:e,...es(t)})}(t,r)),e.superRefine=t=>e.check(function(e){let t=function(e){let t=new rD({check:"custom"});return t._zod.check=e,t}(r=>(r.addIssue=e=>{"string"==typeof e?r.issues.push(ef(e,r.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=r.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),r.issues.push(ef(e)))},e(r.value,r)));return t}(t)),e.overwrite=t=>e.check(n9(t)),e.optional=()=>i2(e),e.nullable=()=>i3(e),e.nullish=()=>i2(i3(e)),e.nonoptional=t=>new i6({type:"nonoptional",innerType:e,...es(t)}),e.array=()=>ij(e),e.or=t=>iq([e,t]),e.and=t=>new i$({type:"intersection",left:e,right:t}),e.transform=t=>ae(e,new i0({type:"transform",transform:t})),e.default=t=>(function(e,t){return new i4({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.prefault=t=>(function(e,t){return new i9({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.catch=t=>(function(e,t){return new i8({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})})(e,t),e.pipe=t=>ae(e,t),e.readonly=()=>new at({type:"readonly",innerType:e}),e.describe=t=>{let r=e.clone();return q.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>q.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return q.get(e);let r=e.clone();return q.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ir=em("_ZodString",(e,t)=>{rX.init(e,t),it.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new rV({check:"string_format",format:"regex",...es(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new rZ({check:"string_format",format:"includes",...es(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new r$({check:"string_format",format:"starts_with",...es(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new rW({check:"string_format",format:"ends_with",...es(t),suffix:e})}(...t)),e.min=(...t)=>e.check(n3(...t)),e.max=(...t)=>e.check(n5(...t)),e.length=(...t)=>e.check(n4(...t)),e.nonempty=(...t)=>e.check(n3(1,...t)),e.lowercase=t=>e.check(new rG({check:"string_format",format:"lowercase",...es(t)})),e.uppercase=t=>e.check(new rq({check:"string_format",format:"uppercase",...es(t)})),e.trim=()=>e.check(n9(e=>e.trim())),e.normalize=(...t)=>e.check(function(e){return n9(t=>t.normalize(e))}(...t)),e.toLowerCase=()=>e.check(n9(e=>e.toLowerCase())),e.toUpperCase=()=>e.check(n9(e=>e.toUpperCase()))}),ii=em("ZodString",(e,t)=>{rX.init(e,t),ir.init(e,t),e.email=t=>e.check(new io({type:"string",format:"email",check:"string_format",abort:!1,...es(t)})),e.url=t=>e.check(new ic({type:"string",format:"url",check:"string_format",abort:!1,...es(t)})),e.jwt=t=>e.check(new ix({type:"string",format:"jwt",check:"string_format",abort:!1,...es(t)})),e.emoji=t=>e.check(new id({type:"string",format:"emoji",check:"string_format",abort:!1,...es(t)})),e.guid=t=>e.check(nY(il,t)),e.uuid=t=>e.check(new iu({type:"string",format:"uuid",check:"string_format",abort:!1,...es(t)})),e.uuidv4=t=>e.check(new iu({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...es(t)})),e.uuidv6=t=>e.check(new iu({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...es(t)})),e.uuidv7=t=>e.check(new iu({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...es(t)})),e.nanoid=t=>e.check(new ih({type:"string",format:"nanoid",check:"string_format",abort:!1,...es(t)})),e.guid=t=>e.check(nY(il,t)),e.cuid=t=>e.check(new ip({type:"string",format:"cuid",check:"string_format",abort:!1,...es(t)})),e.cuid2=t=>e.check(new im({type:"string",format:"cuid2",check:"string_format",abort:!1,...es(t)})),e.ulid=t=>e.check(new ig({type:"string",format:"ulid",check:"string_format",abort:!1,...es(t)})),e.base64=t=>e.check(nQ(ik,t)),e.base64url=t=>e.check(new iS({type:"string",format:"base64url",check:"string_format",abort:!1,...es(t)})),e.xid=t=>e.check(new i_({type:"string",format:"xid",check:"string_format",abort:!1,...es(t)})),e.ksuid=t=>e.check(new iy({type:"string",format:"ksuid",check:"string_format",abort:!1,...es(t)})),e.ipv4=t=>e.check(new iv({type:"string",format:"ipv4",check:"string_format",abort:!1,...es(t)})),e.ipv6=t=>e.check(new ib({type:"string",format:"ipv6",check:"string_format",abort:!1,...es(t)})),e.cidrv4=t=>e.check(new iw({type:"string",format:"cidrv4",check:"string_format",abort:!1,...es(t)})),e.cidrv6=t=>e.check(new iE({type:"string",format:"cidrv6",check:"string_format",abort:!1,...es(t)})),e.e164=t=>e.check(new iT({type:"string",format:"e164",check:"string_format",abort:!1,...es(t)})),e.datetime=t=>e.check(new n6({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...es(t)})),e.date=t=>e.check(new n8({type:"string",format:"date",check:"string_format",...es(t)})),e.time=t=>e.check(new n7({type:"string",format:"time",check:"string_format",precision:null,...es(t)})),e.duration=t=>e.check(new ie({type:"string",format:"duration",check:"string_format",...es(t)}))});function ia(e){return new ii({type:"string",...es(e)})}let is=em("ZodStringFormat",(e,t)=>{r0.init(e,t),ir.init(e,t)}),io=em("ZodEmail",(e,t)=>{r5.init(e,t),is.init(e,t)}),il=em("ZodGUID",(e,t)=>{r1.init(e,t),is.init(e,t)}),iu=em("ZodUUID",(e,t)=>{r2.init(e,t),is.init(e,t)}),ic=em("ZodURL",(e,t)=>{r3.init(e,t),is.init(e,t)}),id=em("ZodEmoji",(e,t)=>{r4.init(e,t),is.init(e,t)}),ih=em("ZodNanoID",(e,t)=>{r9.init(e,t),is.init(e,t)}),ip=em("ZodCUID",(e,t)=>{r6.init(e,t),is.init(e,t)}),im=em("ZodCUID2",(e,t)=>{r8.init(e,t),is.init(e,t)}),ig=em("ZodULID",(e,t)=>{r7.init(e,t),is.init(e,t)}),i_=em("ZodXID",(e,t)=>{ne.init(e,t),is.init(e,t)}),iy=em("ZodKSUID",(e,t)=>{nt.init(e,t),is.init(e,t)}),iv=em("ZodIPv4",(e,t)=>{ns.init(e,t),is.init(e,t)}),ib=em("ZodIPv6",(e,t)=>{no.init(e,t),is.init(e,t)}),iw=em("ZodCIDRv4",(e,t)=>{nl.init(e,t),is.init(e,t)}),iE=em("ZodCIDRv6",(e,t)=>{nu.init(e,t),is.init(e,t)}),ik=em("ZodBase64",(e,t)=>{nd.init(e,t),is.init(e,t)}),iS=em("ZodBase64URL",(e,t)=>{nh.init(e,t),is.init(e,t)}),iT=em("ZodE164",(e,t)=>{nf.init(e,t),is.init(e,t)}),ix=em("ZodJWT",(e,t)=>{np.init(e,t),is.init(e,t)}),iA=em("ZodNumber",(e,t)=>{nm.init(e,t),it.init(e,t),e.gt=(t,r)=>e.check(n0(t,r)),e.gte=(t,r)=>e.check(n1(t,r)),e.min=(t,r)=>e.check(n1(t,r)),e.lt=(t,r)=>e.check(nJ(t,r)),e.lte=(t,r)=>e.check(nX(t,r)),e.max=(t,r)=>e.check(nX(t,r)),e.int=t=>e.check(iI(t)),e.safe=t=>e.check(iI(t)),e.positive=t=>e.check(n0(0,t)),e.nonnegative=t=>e.check(n1(0,t)),e.negative=t=>e.check(nJ(0,t)),e.nonpositive=t=>e.check(nX(0,t)),e.multipleOf=(t,r)=>e.check(n2(t,r)),e.step=(t,r)=>e.check(n2(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function iN(e){return new iA({type:"number",checks:[],...es(e)})}let iC=em("ZodNumberFormat",(e,t)=>{ng.init(e,t),iA.init(e,t)});function iI(e){return new iC({type:"number",check:"number_format",abort:!1,format:"safeint",...es(e)})}let iO=em("ZodBoolean",(e,t)=>{n_.init(e,t),it.init(e,t)});function iP(e){return new iO({type:"boolean",...es(e)})}let iD=em("ZodNull",(e,t)=>{ny.init(e,t),it.init(e,t)}),iM=em("ZodUnknown",(e,t)=>{nv.init(e,t),it.init(e,t)});function iL(){return new iM({type:"unknown"})}let iR=em("ZodNever",(e,t)=>{nb.init(e,t),it.init(e,t)});function iF(e){return new iR({type:"never",...es(e)})}let iB=em("ZodArray",(e,t)=>{nE.init(e,t),it.init(e,t),e.element=t.element,e.min=(t,r)=>e.check(n3(t,r)),e.nonempty=t=>e.check(n3(1,t)),e.max=(t,r)=>e.check(n5(t,r)),e.length=(t,r)=>e.check(n4(t,r)),e.unwrap=()=>e.element});function ij(e,t){return new iB({type:"array",element:e,...es(t)})}let iz=em("ZodObject",(e,t)=>{nT.init(e,t),it.init(e,t),Y(e,"shape",()=>t.shape),e.keyof=()=>iQ(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:iL()}),e.loose=()=>e.clone({...e._zod.def,catchall:iL()}),e.strict=()=>e.clone({...e._zod.def,catchall:iF()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>(function(e,t){if(!er(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return Q(this,"shape",r),r},checks:[]};return ea(e,r)})(e,t),e.merge=t=>(function(e,t){return ea(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return Q(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})})(e,t),e.pick=t=>(function(e,t){let r={},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(r[e]=n.shape[e])}return ea(e,{...e._zod.def,shape:r,checks:[]})})(e,t),e.omit=t=>(function(e,t){let r={...e._zod.def.shape},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ea(e,{...e._zod.def,shape:r,checks:[]})})(e,t),e.partial=(...t)=>(function(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return ea(t,{...t._zod.def,shape:i,checks:[]})})(i1,e,t[0]),e.required=(...t)=>(function(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return ea(t,{...t._zod.def,shape:i,checks:[]})})(i6,e,t[0])});function iU(e,t){return new iz({type:"object",get shape(){return Q(this,"shape",{...e}),this.shape},...es(t)})}function iH(e,t){return new iz({type:"object",get shape(){return Q(this,"shape",{...e}),this.shape},catchall:iF(),...es(t)})}function iV(e,t){return new iz({type:"object",get shape(){return Q(this,"shape",{...e}),this.shape},catchall:iL(),...es(t)})}let iG=em("ZodUnion",(e,t)=>{nA.init(e,t),it.init(e,t),e.options=t.options});function iq(e,t){return new iG({type:"union",options:e,...es(t)})}let iZ=em("ZodDiscriminatedUnion",(e,t)=>{iG.init(e,t),nN.init(e,t)}),i$=em("ZodIntersection",(e,t)=>{nC.init(e,t),it.init(e,t)}),iW=em("ZodRecord",(e,t)=>{nO.init(e,t),it.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function iK(e,t,r){return new iW({type:"record",keyType:e,valueType:t,...es(r)})}let iY=em("ZodEnum",(e,t)=>{nP.init(e,t),it.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new iY({...t,checks:[],...es(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new iY({...t,checks:[],...es(n),entries:i})}});function iQ(e,t){return new iY({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...es(t)})}let iJ=em("ZodLiteral",(e,t)=>{nD.init(e,t),it.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function iX(e,t){return new iJ({type:"literal",values:Array.isArray(e)?e:[e],...es(t)})}let i0=em("ZodTransform",(e,t)=>{nM.init(e,t),it.init(e,t),e._zod.parse=(r,n)=>{r.addIssue=n=>{"string"==typeof n?r.issues.push(ef(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!0),r.issues.push(ef(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r)):(r.value=i,r)}}),i1=em("ZodOptional",(e,t)=>{nL.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function i2(e){return new i1({type:"optional",innerType:e})}let i5=em("ZodNullable",(e,t)=>{nR.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function i3(e){return new i5({type:"nullable",innerType:e})}let i4=em("ZodDefault",(e,t)=>{nF.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),i9=em("ZodPrefault",(e,t)=>{nj.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType}),i6=em("ZodNonOptional",(e,t)=>{nz.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType}),i8=em("ZodCatch",(e,t)=>{nH.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),i7=em("ZodPipe",(e,t)=>{nV.init(e,t),it.init(e,t),e.in=t.in,e.out=t.out});function ae(e,t){return new i7({type:"pipe",in:e,out:t})}let at=em("ZodReadonly",(e,t)=>{nq.init(e,t),it.init(e,t)}),ar=em("ZodLazy",(e,t)=>{n$.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.getter()}),an=em("ZodCustom",(e,t)=>{nW.init(e,t),it.init(e,t)});function ai(e,t){let r=es(t);return r.abort??(r.abort=!0),new an({type:"custom",check:"custom",fn:e??(()=>!0),...r})}function aa(e,t={error:`Input not instance of ${e.name}`}){let r=new an({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...es(t)});return r._zod.bag.Class=e,r}var as=Object.defineProperty,ao=(Symbol.for("vercel.ai.error.AI_NoOutputSpecifiedError"),Symbol.for("vercel.ai.error.AI_InvalidArgumentError"),Symbol.for("vercel.ai.error.AI_InvalidStreamPartError"),Symbol.for("vercel.ai.error.AI_InvalidToolInputError"),Symbol.for("vercel.ai.error.AI_MCPClientError"),Symbol.for("vercel.ai.error.AI_NoImageGeneratedError"),"AI_NoObjectGeneratedError"),al=`vercel.ai.error.${ao}`,au=Symbol.for(al),ac=class extends A{constructor({message:e="No object generated.",cause:t,text:r,response:n,usage:i,finishReason:a}){super({name:ao,message:e,cause:t}),this[h]=!0,this.text=r,this.response=n,this.usage=i,this.finishReason=a}static isInstance(e){return A.hasMarker(e,al)}};h=au,Symbol.for("vercel.ai.error.AI_NoOutputGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchToolError"),Symbol.for("vercel.ai.error.AI_ToolCallRepairError"),Symbol.for("vercel.ai.error.AI_InvalidDataContentError"),Symbol.for("vercel.ai.error.AI_InvalidMessageRoleError"),Symbol.for("vercel.ai.error.AI_MessageConversionError"),Symbol.for("vercel.ai.error.AI_DownloadError"),Symbol.for("vercel.ai.error.AI_RetryError");var ad="5.0.60",ah=iq([ia(),aa(Uint8Array),aa(ArrayBuffer),ai(e=>{var t,r;return null!=(r=null==(t=globalThis.Buffer)?void 0:t.isBuffer(e))&&r},{message:"Must be a Buffer"})]),af=new ar({type:"lazy",getter:()=>iq([new iD({type:"null",...es(void 0)}),ia(),iN(),iP(),iK(ia(),af),ij(af)])}),ap=iK(ia(),iK(ia(),af)),am=iU({type:iX("text"),text:ia(),providerOptions:ap.optional()}),ag=iU({type:iX("image"),image:iq([ah,aa(URL)]),mediaType:ia().optional(),providerOptions:ap.optional()}),a_=iU({type:iX("file"),data:iq([ah,aa(URL)]),filename:ia().optional(),mediaType:ia(),providerOptions:ap.optional()}),ay=iU({type:iX("reasoning"),text:ia(),providerOptions:ap.optional()}),av=iU({type:iX("tool-call"),toolCallId:ia(),toolName:ia(),input:iL(),providerOptions:ap.optional(),providerExecuted:iP().optional()}),ab=new iZ({type:"union",options:[iU({type:iX("text"),value:ia()}),iU({type:iX("json"),value:af}),iU({type:iX("error-text"),value:ia()}),iU({type:iX("error-json"),value:af}),iU({type:iX("content"),value:ij(iq([iU({type:iX("text"),text:ia()}),iU({type:iX("media"),data:ia(),mediaType:ia()})]))})],discriminator:"type",...es(void 0)}),aw=iU({type:iX("tool-result"),toolCallId:ia(),toolName:ia(),output:ab,providerOptions:ap.optional()}),aE=iU({role:iX("system"),content:ia(),providerOptions:ap.optional()}),ak=iU({role:iX("user"),content:iq([ia(),ij(iq([am,ag,a_]))]),providerOptions:ap.optional()}),aS=iU({role:iX("assistant"),content:iq([ia(),ij(iq([am,a_,ay,av,aw]))]),providerOptions:ap.optional()});iq([aE,ak,aS,iU({role:iX("tool"),content:ij(aw),providerOptions:ap.optional()})]),tU({prefix:"aitxt",size:24}),TransformStream;var aT=iq([iH({type:iX("text-start"),id:ia(),providerMetadata:ap.optional()}),iH({type:iX("text-delta"),id:ia(),delta:ia(),providerMetadata:ap.optional()}),iH({type:iX("text-end"),id:ia(),providerMetadata:ap.optional()}),iH({type:iX("error"),errorText:ia()}),iH({type:iX("tool-input-start"),toolCallId:ia(),toolName:ia(),providerExecuted:iP().optional(),dynamic:iP().optional()}),iH({type:iX("tool-input-delta"),toolCallId:ia(),inputTextDelta:ia()}),iH({type:iX("tool-input-available"),toolCallId:ia(),toolName:ia(),input:iL(),providerExecuted:iP().optional(),providerMetadata:ap.optional(),dynamic:iP().optional()}),iH({type:iX("tool-input-error"),toolCallId:ia(),toolName:ia(),input:iL(),providerExecuted:iP().optional(),providerMetadata:ap.optional(),dynamic:iP().optional(),errorText:ia()}),iH({type:iX("tool-output-available"),toolCallId:ia(),output:iL(),providerExecuted:iP().optional(),dynamic:iP().optional(),preliminary:iP().optional()}),iH({type:iX("tool-output-error"),toolCallId:ia(),errorText:ia(),providerExecuted:iP().optional(),dynamic:iP().optional()}),iH({type:iX("reasoning-start"),id:ia(),providerMetadata:ap.optional()}),iH({type:iX("reasoning-delta"),id:ia(),delta:ia(),providerMetadata:ap.optional()}),iH({type:iX("reasoning-end"),id:ia(),providerMetadata:ap.optional()}),iH({type:iX("source-url"),sourceId:ia(),url:ia(),title:ia().optional(),providerMetadata:ap.optional()}),iH({type:iX("source-document"),sourceId:ia(),mediaType:ia(),title:ia(),filename:ia().optional(),providerMetadata:ap.optional()}),iH({type:iX("file"),url:ia(),mediaType:ia(),providerMetadata:ap.optional()}),iH({type:ai(e=>"string"==typeof e&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:ia().optional(),data:iL(),transient:iP().optional()}),iH({type:iX("start-step")}),iH({type:iX("finish-step")}),iH({type:iX("start"),messageId:ia().optional(),messageMetadata:iL().optional()}),iH({type:iX("finish"),messageMetadata:iL().optional()}),iH({type:iX("abort")}),iH({type:iX("message-metadata"),messageMetadata:iL()})]);async function ax(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=await tW({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await tW({text:function(e){let t=["ROOT"],r=-1,n=null;function i(e,i,a){switch(e){case'"':r=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":r=i,n=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":r=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":r=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function a(e,n){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":r=n,t.pop()}}function s(e,n){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=n,t.pop()}}for(let o=0;o<e.length;o++){let l=e[o];switch(t[t.length-1]){case"ROOT":i(l,o,"FINISH");break;case"INSIDE_OBJECT_START":switch(l){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":r=o,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===l&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":i(l,o,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":a(l,o);break;case"INSIDE_STRING":switch(l){case'"':t.pop(),r=o;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:r=o}break;case"INSIDE_ARRAY_START":"]"===l?(r=o,t.pop()):(r=o,i(l,o,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(l){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=o,t.pop();break;default:r=o}break;case"INSIDE_ARRAY_AFTER_COMMA":i(l,o,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),r=o;break;case"INSIDE_NUMBER":switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=o;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,o);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,o);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(n,o+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?r=o:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?a(l,o):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o))}}}let o=e.slice(0,r+1);for(let r=t.length-1;r>=0;r--)switch(t[r]){case"INSIDE_STRING":o+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":o+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":o+="]";break;case"INSIDE_LITERAL":{let t=e.substring(n,e.length);"true".startsWith(t)?o+="true".slice(t.length):"false".startsWith(t)?o+="false".slice(t.length):"null".startsWith(t)&&(o+="null".slice(t.length))}}return o}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}function aA(e){return e.type.startsWith("tool-")}function aN(e){return aA(e)||"dynamic-tool"===e.type}function aC(e){return e.type.split("-").slice(1).join("-")}async function aI({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:e}=await r.read();if(e)break}}catch(e){null==t||t(e)}finally{r.releaseLock()}}tU({prefix:"aitxt",size:24}),tU({prefix:"aiobj",size:24});var aO=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(e){r(e)}}),this.processQueue()})}};tU({prefix:"aiobj",size:24}),((e,t)=>{for(var r in t)as(e,r,{get:t[r],enumerable:!0})})({},{object:()=>aD,text:()=>aP});var aP=()=>({type:"text",responseFormat:{type:"text"},parsePartial:async({text:e})=>({partial:e}),parseOutput:async({text:e})=>e}),aD=({schema:e})=>{let t=function(e){return null==e?rn({properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&rr in e&&!0===e[rr]&&"jsonSchema"in e&&"validate"in e?e:function(e,t){var r;return"_zod"in e?rn(function(e,t){if(e instanceof G){let r=new ep(t),n={};for(let t of e._idmap.entries()){let[e,n]=t;r.process(n)}let i={},a={registry:e,uri:t?.uri,defs:n};for(let n of e._idmap.entries()){let[e,s]=n;i[e]=r.emit(s,{...t,external:a})}return Object.keys(n).length>0&&(i.__shared={["draft-2020-12"===r.target?"$defs":"definitions"]:n}),{schemas:i}}let r=new ep(t);return r.process(e),r.emit(e,t)}(e,{target:"draft-7",io:"output",reused:"inline"}),{validate:async t=>{let r=await eO(e,t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}}):rn(((e,t)=>{var r;let n=(e=>{let t,r="string"==typeof(t=e)?{...tQ,name:t}:{...tQ,...t},n=void 0!==r.name?[...r.basePath,r.definitionPath,r.name]:r.basePath;return{...r,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(r.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...r.basePath,r.definitionPath,e],jsonSchema:void 0}]))}})(t),i="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>{var i;return{...e,[t]:null!=(i=t7(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0))?i:{}}},{}):void 0,a="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,s=null!=(r=t7(e._def,void 0===a?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1))?r:{},o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(s.title=o);let l=void 0===a?i?{...s,[n.definitionPath]:i}:s:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,a].join("/"),[n.definitionPath]:{...i,[a]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l})(e,{$refStrategy:(r=void 0,"none")}),{validate:async t=>{let r=await e.safeParseAsync(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}(e)}(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:e}){let t=await ax(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:t.value};default:{let e=t.state;throw Error(`Unsupported parse state: ${e}`)}}},async parseOutput({text:e},r){let n=await tW({text:e});if(!n.success)throw new ac({message:"No object generated: could not parse the response.",cause:n.error,text:e,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=await t$({value:n.value,schema:t});if(!i.success)throw new ac({message:"No object generated: response did not match schema.",cause:i.error,text:e,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.value}}},aM=(Symbol.for("vercel.ai.error.AI_NoSuchProviderError"),iV({name:ia(),version:ia()})),aL=iV({_meta:i2(iU({}).loose())}),aR=iU({method:ia(),params:i2(aL)}),aF=iV({experimental:i2(iU({}).loose()),logging:i2(iU({}).loose()),prompts:i2(iV({listChanged:i2(iP())})),resources:i2(iV({subscribe:i2(iP()),listChanged:i2(iP())})),tools:i2(iV({listChanged:i2(iP())}))});aL.extend({protocolVersion:ia(),capabilities:aF,serverInfo:aM,instructions:i2(ia())});var aB=aL.extend({nextCursor:i2(ia())}),aj=iU({name:ia(),description:i2(ia()),inputSchema:iU({type:iX("object"),properties:i2(iU({}).loose())}).loose()}).loose();aB.extend({tools:ij(aj)});var az=iU({type:iX("text"),text:ia()}).loose(),aU=iU({type:iX("image"),data:nQ(ik,void 0),mimeType:ia()}).loose(),aH=iU({uri:ia(),mimeType:i2(ia())}).loose(),aV=aH.extend({text:ia()}),aG=aH.extend({blob:nQ(ik,void 0)}),aq=iU({type:iX("resource"),resource:iq([aV,aG])}).loose();aL.extend({content:ij(iq([az,aU,aq])),isError:iP().default(!1).optional()}).or(aL.extend({toolResult:iL()}));var aZ=iU({jsonrpc:iX("2.0"),id:iq([ia(),iN().int()])}).merge(aR).strict(),a$=iU({jsonrpc:iX("2.0"),id:iq([ia(),iN().int()]),result:aL}).strict(),aW=iU({jsonrpc:iX("2.0"),id:iq([ia(),iN().int()]),error:iU({code:iN().int(),message:ia(),data:i2(iL())})}).strict();async function aK(e){if(null==e)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async e=>{let{name:t,type:r}=e;return{type:"file",mediaType:r,filename:t,url:await new Promise((t,r)=>{let n=new FileReader;n.onload=e=>{var r;t(null==(r=e.target)?void 0:r.result)},n.onerror=e=>r(e),n.readAsDataURL(e)})}}))}iq([aZ,iU({jsonrpc:iX("2.0")}).merge(iU({method:ia(),params:i2(aL)})).strict(),a$,aW]);var aY=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:n,fetch:i,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:s}){this.api=e,this.credentials=t,this.headers=r,this.body=n,this.fetch=i,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=s}async sendMessages({abortSignal:e,...t}){var r,n,i,a,s;let o=await tK(this.body),l=await tK(this.headers),u=await tK(this.credentials),c=await (null==(r=this.prepareSendMessagesRequest)?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...o,...t.body},headers:{...l,...t.headers},credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),d=null!=(n=null==c?void 0:c.api)?n:this.api,h=(null==c?void 0:c.headers)!==void 0?c.headers:{...l,...t.headers},f=(null==c?void 0:c.body)!==void 0?c.body:{...o,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},p=null!=(i=null==c?void 0:c.credentials)?i:u,m=null!=(a=this.fetch)?a:globalThis.fetch,g=await m(d,{method:"POST",headers:tz({"Content-Type":"application/json",...h},`ai-sdk/${ad}`,tj()),body:JSON.stringify(f),credentials:p,signal:e});if(!g.ok)throw Error(null!=(s=await g.text())?s:"Failed to fetch the chat response.");if(!g.body)throw Error("The response body is empty.");return this.processResponseStream(g.body)}async reconnectToStream(e){var t,r,n,i,a;let s=await tK(this.body),o=await tK(this.headers),l=await tK(this.credentials),u=await (null==(t=this.prepareReconnectToStreamRequest)?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...s,...e.body},headers:{...o,...e.headers},credentials:l,requestMetadata:e.metadata})),c=null!=(r=null==u?void 0:u.api)?r:`${this.api}/${e.chatId}/stream`,d=(null==u?void 0:u.headers)!==void 0?u.headers:{...o,...e.headers},h=null!=(n=null==u?void 0:u.credentials)?n:l,f=null!=(i=this.fetch)?i:globalThis.fetch,p=await f(c,{method:"GET",headers:tz(d,`ai-sdk/${ad}`,tj()),credentials:h});if(204===p.status)return null;if(!p.ok)throw Error(null!=(a=await p.text())?a:"Failed to fetch the chat response.");if(!p.body)throw Error("The response body is empty.");return this.processResponseStream(p.body)}},aQ=class extends aY{constructor(e={}){super(e)}processResponseStream(e){return(function({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new V).pipeThrough(new TransformStream({async transform({data:e},r){"[DONE]"!==e&&r.enqueue(await tW({text:e,schema:t}))}}))})({stream:e,schema:aT}).pipeThrough(new TransformStream({async transform(e,t){if(!e.success)throw e.error;t.enqueue(e.value)}}))}},aJ=class{constructor({generateId:e=tH,id:t=e(),transport:r=new aQ,messageMetadataSchema:n,dataPartSchemas:i,state:a,onError:s,onToolCall:o,onFinish:l,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new aO,this.sendMessage=async(e,t)=>{var r,n,i,a;let s;if(null==e)return void await this.makeRequest({trigger:"submit-message",messageId:null==(r=this.lastMessage)?void 0:r.id,...t});if(s="text"in e||"files"in e?{parts:[...Array.isArray(e.files)?e.files:await aK(e.files),..."text"in e&&null!=e.text?[{type:"text",text:e.text}]:[]]}:e,null!=e.messageId){let t=this.state.messages.findIndex(t=>t.id===e.messageId);if(-1===t)throw Error(`message with id ${e.messageId} not found`);if("user"!==this.state.messages[t].role)throw Error(`message with id ${e.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,t+1),this.state.replaceMessage(t,{...s,id:e.messageId,role:null!=(n=s.role)?n:"user",metadata:e.metadata})}else this.state.pushMessage({...s,id:null!=(i=s.id)?i:this.generateId(),role:null!=(a=s.role)?a:"user",metadata:e.metadata});await this.makeRequest({trigger:"submit-message",messageId:e.messageId,...t})},this.regenerate=async({messageId:e,...t}={})=>{let r=null==e?this.state.messages.length-1:this.state.messages.findIndex(t=>t.id===e);if(-1===r)throw Error(`message ${e} not found`);this.state.messages=this.state.messages.slice(0,"assistant"===this.messages[r].role?r:r+1),await this.makeRequest({trigger:"regenerate-message",messageId:e,...t})},this.resumeStream=async(e={})=>{await this.makeRequest({trigger:"resume-stream",...e})},this.clearError=()=>{"error"===this.status&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolResult=async({state:e="output-available",tool:t,toolCallId:r,output:n,errorText:i})=>this.jobExecutor.run(async()=>{var t,a;let s=this.state.messages,o=s[s.length-1];this.state.replaceMessage(s.length-1,{...o,parts:o.parts.map(t=>aN(t)&&t.toolCallId===r?{...t,state:e,output:n,errorText:i}:t)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(t=>aN(t)&&t.toolCallId===r?{...t,state:e,output:n,errorText:i}:t)),"streaming"!==this.status&&"submitted"!==this.status&&(null==(t=this.sendAutomaticallyWhen)?void 0:t.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:null==(a=this.lastMessage)?void 0:a.id})}),this.stop=async()=>{var e;("streaming"===this.status||"submitted"===this.status)&&(null==(e=this.activeResponse)?void 0:e.abortController)&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=i,this.state=a,this.onError=s,this.onToolCall=o,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:r,body:n,messageId:i}){var a,s,o;this.setStatus({status:"submitted",error:void 0});let l=this.lastMessage,u=!1,c=!1,d=!1;try{let a,s={state:function({lastMessage:e,messageId:t}){return{message:(null==e?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}({lastMessage:this.state.snapshot(l),messageId:this.generateId()}),abortController:new AbortController};if(s.abortController.signal.addEventListener("abort",()=>{u=!0}),this.activeResponse=s,"resume-stream"===e){let e=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:n});if(null==e)return void this.setStatus({status:"ready"});a=e}else a=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:s.abortController.signal,metadata:t,headers:r,body:n,trigger:e,messageId:i});let o=e=>this.jobExecutor.run(()=>e({state:s.state,write:()=>{var e;this.setStatus({status:"streaming"}),s.state.message.id===(null==(e=this.lastMessage)?void 0:e.id)?this.state.replaceMessage(this.state.messages.length-1,s.state.message):this.state.pushMessage(s.state.message)}}));await aI({stream:function({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:n,onError:i,onToolCall:a,onData:s}){return e.pipeThrough(new TransformStream({async transform(e,o){await n(async({state:n,write:l})=>{var u,c,d,h;function f(e){let t=n.message.parts.filter(aA).find(t=>t.toolCallId===e);if(null==t)throw Error("tool-output-error must be preceded by a tool-input-available");return t}function p(e){let t=n.message.parts.filter(e=>"dynamic-tool"===e.type).find(t=>t.toolCallId===e);if(null==t)throw Error("tool-output-error must be preceded by a tool-input-available");return t}function m(e){var t;let r=n.message.parts.find(t=>aA(t)&&t.toolCallId===e.toolCallId);null!=r?(r.state=e.state,r.input=e.input,r.output=e.output,r.errorText=e.errorText,r.rawInput=e.rawInput,r.preliminary=e.preliminary,r.providerExecuted=null!=(t=e.providerExecuted)?t:r.providerExecuted,null!=e.providerMetadata&&"input-available"===r.state&&(r.callProviderMetadata=e.providerMetadata)):n.message.parts.push({type:`tool-${e.toolName}`,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,rawInput:e.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,preliminary:e.preliminary,...null!=e.providerMetadata?{callProviderMetadata:e.providerMetadata}:{}})}function g(e){var t;let r=n.message.parts.find(t=>"dynamic-tool"===t.type&&t.toolCallId===e.toolCallId);null!=r?(r.state=e.state,r.toolName=e.toolName,r.input=e.input,r.output=e.output,r.errorText=e.errorText,r.rawInput=null!=(t=e.rawInput)?t:r.rawInput,r.preliminary=e.preliminary,null!=e.providerMetadata&&"input-available"===r.state&&(r.callProviderMetadata=e.providerMetadata)):n.message.parts.push({type:"dynamic-tool",toolName:e.toolName,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,errorText:e.errorText,preliminary:e.preliminary,...null!=e.providerMetadata?{callProviderMetadata:e.providerMetadata}:{}})}async function _(e){if(null!=e){let r=null!=n.message.metadata?function e(t,r){if(void 0===t&&void 0===r)return;if(void 0===t)return r;if(void 0===r)return t;let n={...t};for(let i in r)if(Object.prototype.hasOwnProperty.call(r,i)){let a=r[i];if(void 0===a)continue;let s=i in t?t[i]:void 0,o=null!==a&&"object"==typeof a&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp),l=null!=s&&"object"==typeof s&&!Array.isArray(s)&&!(s instanceof Date)&&!(s instanceof RegExp);o&&l?n[i]=e(s,a):n[i]=a}return n}(n.message.metadata,e):e;null!=t&&await tZ({value:r,schema:t}),n.message.metadata=r}}switch(e.type){case"text-start":{let t={type:"text",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeTextParts[e.id]=t,n.message.parts.push(t),l();break}case"text-delta":{let t=n.activeTextParts[e.id];t.text+=e.delta,t.providerMetadata=null!=(u=e.providerMetadata)?u:t.providerMetadata,l();break}case"text-end":{let t=n.activeTextParts[e.id];t.state="done",t.providerMetadata=null!=(c=e.providerMetadata)?c:t.providerMetadata,delete n.activeTextParts[e.id],l();break}case"reasoning-start":{let t={type:"reasoning",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeReasoningParts[e.id]=t,n.message.parts.push(t),l();break}case"reasoning-delta":{let t=n.activeReasoningParts[e.id];t.text+=e.delta,t.providerMetadata=null!=(d=e.providerMetadata)?d:t.providerMetadata,l();break}case"reasoning-end":{let t=n.activeReasoningParts[e.id];t.providerMetadata=null!=(h=e.providerMetadata)?h:t.providerMetadata,t.state="done",delete n.activeReasoningParts[e.id],l();break}case"file":n.message.parts.push({type:"file",mediaType:e.mediaType,url:e.url}),l();break;case"source-url":n.message.parts.push({type:"source-url",sourceId:e.sourceId,url:e.url,title:e.title,providerMetadata:e.providerMetadata}),l();break;case"source-document":n.message.parts.push({type:"source-document",sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata}),l();break;case"tool-input-start":{let t=n.message.parts.filter(aA);n.partialToolCalls[e.toolCallId]={text:"",toolName:e.toolName,index:t.length,dynamic:e.dynamic},e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted}),l();break}case"tool-input-delta":{let t=n.partialToolCalls[e.toolCallId];t.text+=e.inputTextDelta;let{value:r}=await ax(t.text);t.dynamic?g({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r}):m({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r}),l();break}case"tool-input-available":e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}),l(),a&&!e.providerExecuted&&await a({toolCall:e});break;case"tool-input-error":e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:e.input,errorText:e.errorText,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:void 0,rawInput:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}),l();break;case"tool-output-available":if(e.dynamic){let t=p(e.toolCallId);g({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-available",input:t.input,output:e.output,preliminary:e.preliminary})}else{let t=f(e.toolCallId);m({toolCallId:e.toolCallId,toolName:aC(t),state:"output-available",input:t.input,output:e.output,providerExecuted:e.providerExecuted,preliminary:e.preliminary})}l();break;case"tool-output-error":if(e.dynamic){let t=p(e.toolCallId);g({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-error",input:t.input,errorText:e.errorText})}else{let t=f(e.toolCallId);m({toolCallId:e.toolCallId,toolName:aC(t),state:"output-error",input:t.input,rawInput:t.rawInput,errorText:e.errorText})}l();break;case"start-step":n.message.parts.push({type:"step-start"});break;case"finish-step":n.activeTextParts={},n.activeReasoningParts={};break;case"start":null!=e.messageId&&(n.message.id=e.messageId),await _(e.messageMetadata),(null!=e.messageId||null!=e.messageMetadata)&&l();break;case"finish":case"message-metadata":await _(e.messageMetadata),null!=e.messageMetadata&&l();break;case"error":null==i||i(Error(e.errorText));break;default:if(e.type.startsWith("data-")){if((null==r?void 0:r[e.type])!=null&&await tZ({value:e.data,schema:r[e.type]}),e.transient){null==s||s(e);break}let t=null!=e.id?n.message.parts.find(t=>e.type===t.type&&e.id===t.id):void 0;null!=t?t.data=e.data:n.message.parts.push(e),null==s||s(e),l()}}o.enqueue(e)})}}))}({stream:a,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:o,onError:e=>{throw e}}),onError:e=>{throw e}}),this.setStatus({status:"ready"})}catch(e){if(u||"AbortError"===e.name)return u=!0,this.setStatus({status:"ready"}),null;d=!0,e instanceof TypeError&&(e.message.toLowerCase().includes("fetch")||e.message.toLowerCase().includes("network"))&&(c=!0),this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e})}finally{try{null==(a=this.onFinish)||a.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:u,isDisconnect:c,isError:d})}catch(e){console.error(e)}this.activeResponse=void 0}(null==(s=this.sendAutomaticallyWhen)?void 0:s.call(this,{messages:this.state.messages}))&&await this.makeRequest({trigger:"submit-message",messageId:null==(o=this.lastMessage)?void 0:o.id,metadata:t,headers:r,body:n})}},aX=iU({type:iX("text"),text:ia(),state:iQ(["streaming","done"]).optional(),providerMetadata:ap.optional()}),a0=iU({type:iX("reasoning"),text:ia(),state:iQ(["streaming","done"]).optional(),providerMetadata:ap.optional()}),a1=iU({type:iX("source-url"),sourceId:ia(),url:ia(),title:ia().optional(),providerMetadata:ap.optional()}),a2=iU({type:iX("source-document"),sourceId:ia(),mediaType:ia(),title:ia(),filename:ia().optional(),providerMetadata:ap.optional()}),a5=iU({type:iX("file"),mediaType:ia(),filename:ia().optional(),url:ia(),providerMetadata:ap.optional()}),a3=iU({type:iX("step-start")}),a4=iU({type:ia().startsWith("data-"),id:ia().optional(),data:iL()}),a9=[iU({type:iX("dynamic-tool"),toolName:ia(),toolCallId:ia(),state:iX("input-streaming"),input:iL().optional(),output:iF().optional(),errorText:iF().optional()}),iU({type:iX("dynamic-tool"),toolName:ia(),toolCallId:ia(),state:iX("input-available"),input:iL(),output:iF().optional(),errorText:iF().optional(),callProviderMetadata:ap.optional()}),iU({type:iX("dynamic-tool"),toolName:ia(),toolCallId:ia(),state:iX("output-available"),input:iL(),output:iL(),errorText:iF().optional(),callProviderMetadata:ap.optional(),preliminary:iP().optional()}),iU({type:iX("dynamic-tool"),toolName:ia(),toolCallId:ia(),state:iX("output-error"),input:iL(),output:iF().optional(),errorText:ia(),callProviderMetadata:ap.optional()})],a6=[iU({type:ia().startsWith("tool-"),toolCallId:ia(),state:iX("input-streaming"),providerExecuted:iP().optional(),input:iL().optional(),output:iF().optional(),errorText:iF().optional()}),iU({type:ia().startsWith("tool-"),toolCallId:ia(),state:iX("input-available"),providerExecuted:iP().optional(),input:iL(),output:iF().optional(),errorText:iF().optional(),callProviderMetadata:ap.optional()}),iU({type:ia().startsWith("tool-"),toolCallId:ia(),state:iX("output-available"),providerExecuted:iP().optional(),input:iL(),output:iL(),errorText:iF().optional(),callProviderMetadata:ap.optional(),preliminary:iP().optional()}),iU({type:ia().startsWith("tool-"),toolCallId:ia(),state:iX("output-error"),providerExecuted:iP().optional(),input:iL(),output:iF().optional(),errorText:ia(),callProviderMetadata:ap.optional()})];iU({id:ia(),role:iQ(["system","user","assistant"]),metadata:iL().optional(),parts:ij(iq([aX,a0,a1,a2,a5,a3,a4,...a9,...a6]))});var a8=r(94524),a7=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(a7(e,t,"read from private field"),r?r.call(e):t.get(e)),st=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},sr=(e,t,r,n)=>(a7(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sn=class{constructor(e=[]){st(this,f,void 0),st(this,p,"ready"),st(this,m,void 0),st(this,g,new Set),st(this,_,new Set),st(this,y,new Set),this.pushMessage=e=>{sr(this,f,se(this,f).concat(e)),se(this,v).call(this)},this.popMessage=()=>{sr(this,f,se(this,f).slice(0,-1)),se(this,v).call(this)},this.replaceMessage=(e,t)=>{sr(this,f,[...se(this,f).slice(0,e),this.snapshot(t),...se(this,f).slice(e+1)]),se(this,v).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let r=t?function(e,t){return null!=t?a8(e,t):e}(e,t):e;return se(this,g).add(r),()=>{se(this,g).delete(r)}},this["~registerStatusCallback"]=e=>(se(this,_).add(e),()=>{se(this,_).delete(e)}),this["~registerErrorCallback"]=e=>(se(this,y).add(e),()=>{se(this,y).delete(e)}),st(this,v,()=>{se(this,g).forEach(e=>e())}),st(this,b,()=>{se(this,_).forEach(e=>e())}),st(this,w,()=>{se(this,y).forEach(e=>e())}),sr(this,f,e)}get status(){return se(this,p)}set status(e){sr(this,p,e),se(this,b).call(this)}get error(){return se(this,m)}set error(e){sr(this,m,e),se(this,w).call(this)}get messages(){return se(this,f)}set messages(e){sr(this,f,[...e]),se(this,v).call(this)}};f=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,_=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,w=new WeakMap;var si=class extends aJ{constructor({messages:e,...t}){let r=new sn(e);super({...t,state:r}),st(this,E,void 0),this["~registerMessagesCallback"]=(e,t)=>se(this,E)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>se(this,E)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>se(this,E)["~registerErrorCallback"](e),sr(this,E,r)}};E=new WeakMap;var sa=r(644),ss=r(67750),so=r(82102);function sl(e){var t;return["png","jpg","jpeg","gif","webp","bmp","svg"].includes((null==(t=e.split(".").pop())?void 0:t.toLowerCase().split("?")[0])||"")?""):"[".concat(e.split("/").pop()||"file","](").concat(e,")")}let su=()=>{let e=(0,sa.A)(),[t,r]=(0,so.A)("copilot-chat-history",[]),n=(0,k.useRef)(!1),{messages:i,error:a,resumeStream:s,status:o,setMessages:l,stop:u,regenerate:c,sendMessage:d}=function({experimental_throttle:e,resume:t=!1,...r}={}){let n=(0,k.useRef)("chat"in r?r.chat:new si(r));("chat"in r&&r.chat!==n.current||"id"in r&&n.current.id!==r.id)&&(n.current="chat"in r?r.chat:new si(r));let i="id"in r?r.id:null,a=(0,k.useCallback)(t=>n.current["~registerMessagesCallback"](t,e),[e,i]),s=(0,k.useSyncExternalStore)(a,()=>n.current.messages,()=>n.current.messages),o=(0,k.useSyncExternalStore)(n.current["~registerStatusCallback"],()=>n.current.status,()=>n.current.status),l=(0,k.useSyncExternalStore)(n.current["~registerErrorCallback"],()=>n.current.error,()=>n.current.error),u=(0,k.useCallback)(e=>{"function"==typeof e&&(e=e(n.current.messages)),n.current.messages=e},[n]);return(0,k.useEffect)(()=>{t&&n.current.resumeStream()},[t,n]),{id:n.current.id,messages:s,setMessages:u,sendMessage:n.current.sendMessage,regenerate:n.current.regenerate,clearError:n.current.clearError,stop:n.current.stop,error:l,resumeStream:n.current.resumeStream,status:o,addToolResult:n.current.addToolResult}}({transport:new aQ({api:"/chat",credentials:"include"}),messages:t,onError:t=>{var r,n,i,a,s,o,u,c;let d="";d=(null==(r=t.message)?void 0:r.includes("401"))||(null==(n=t.message)?void 0:n.includes("invalid_token"))||(null==(i=t.message)?void 0:i.includes("Unauthorized"))?e.formatMessage({id:"chat.error.auth",defaultMessage:"\uD83D\uDD10 **Authentication Error**\n\nYour session has expired or the authentication token is invalid.\n\n**To fix this:**\n1. Refresh the page (Ctrl+R / Cmd+R)\n2. Log out and log back in\n3. Check your permissions\n\n*This happens when your session expires after being idle too long.*"}):(null==(a=t.message)?void 0:a.includes("fetch"))||(null==(s=t.message)?void 0:s.includes("Failed to fetch"))||(null==(o=t.message)?void 0:o.includes("NetworkError"))?e.formatMessage({id:"chat.error.connection",defaultMessage:"\uD83D\uDEAB **Connection Error**\n\nCannot connect to the chat API server at {chatUrl}.\n\n**To enable chat:**\n1. Start the backend\n2. Ensure chat/MCP endpoint is configured\n3. Check NEXT_PUBLIC_CHAT_URL\n\n**Current configuration:**\n- Chat URL: {chatUrl}\n\n*Please start the backend.*"},{chatUrl:"/chat"}):(null==(u=t.message)?void 0:u.includes("stream"))||(null==(c=t.message)?void 0:c.includes("process"))?e.formatMessage({id:"chat.error.stream",defaultMessage:"⚠️ **Stream Processing Error**\n\nThere was an error processing the AI response stream.\n\n**Possible causes:**\n1. Backend not running\n2. MCP server not responding\n3. Missing/invalid API keys\n4. Network issues\n\n**Error details:** {details}"},{details:t.message}):e.formatMessage({id:"chat.error.unexpected",defaultMessage:"❌ **Chat Error**\n\nAn unexpected error occurred: {details}\n\n*Please try again or check the console for details.*"},{details:t.message});let h={id:"error-".concat(Date.now()),role:"assistant",parts:[{type:"text",text:d}]};l(e=>[...e,h])}});return(0,k.useEffect)(()=>{"streaming"!==o&&r(i)},[o]),{messages:i,handleSubmit:async(t,r)=>{try{var n;let e=null!=(n=null==r?void 0:r.map(sl).join("\n"))?n:"",i=[t,e].filter(Boolean).join("\n");t&&d({text:i})}catch(i){console.error("Error in handleSubmit:",i);let t=i instanceof Error?i.message:"Unknown error",r=t.includes("401")||t.includes("Unauthorized")?e.formatMessage({id:"chat.error.auth",defaultMessage:"\uD83D\uDD10 **Authentication Error**\n\nYour session has expired or the authentication token is invalid.\n\n*Please refresh or log in again.*"}):e.formatMessage({id:"chat.error.submission",defaultMessage:"❌ **Submission Error**\n\nFailed to send your message.\n\n**Error:** {details}\n\n*Please ensure the backend is running.*"},{details:t}),n={id:"error-".concat(Date.now()),role:"assistant",parts:[{type:"text",text:r}]};l(e=>[...e,n])}},error:a,status:o,clearHistory:()=>{l([]),r([]),n.current=!1},stop:u,addInterruptionMessage:e=>{let t=ss.W.createInterruptionMessage(e);l(e=>[...e,t])},sendMessage:d,reload:c,resumeStream:s}}},40058:(e,t,r)=>{"use strict";r.d(t,{l:()=>s});var n=r(75834),i=r(67392);let a=Symbol.for("__APOLLO_CONTEXT__");function s(){(0,i.V1)(!0,37);let e=n.createContext[a];return e||(Object.defineProperty(n.createContext,a,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},40190:(e,t,r)=>{"use strict";function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.d(t,{o:()=>n})},40687:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(86362);function i(e,t){return(0,n.o)(e,t,t.variables&&{variables:(0,n.o)({...e&&e.variables,...t.variables})})}},40852:(e,t,r)=>{"use strict";r.d(t,{e:()=>function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>r.requestAnimationFrame(()=>r.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return(0,n._)(()=>{t.current&&e[0]()}),r.add(()=>{t.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}});var n=r(78615)},41131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluralRules=void 0;var n=r(70324),i=r(4648),a=r(61459),s=r(72702),o=n.__importDefault(r(65539));function l(e,t){if(!(e instanceof c))throw TypeError("Method Intl.PluralRules.prototype.".concat(t," called on incompatible receiver ").concat(String(e)))}function u(e,t,r,n){var i=n.IntegerDigits,a=n.NumberOfFractionDigits,s=n.FractionDigits;return c.localeData[e].fn(a?"".concat(i,".").concat(s):i,"ordinal"===t)}var c=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.PluralRules must be called with 'new'");return(0,a.InitializePluralRules)(this,t,r,{availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale,getInternalSlots:o.default})}return e.prototype.resolvedOptions=function(){l(this,"resolvedOptions");var t=Object.create(null),r=(0,o.default)(this);return t.locale=r.locale,t.type=r.type,["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(e){var n=r[e];void 0!==n&&(t[e]=n)}),t.pluralCategories=n.__spreadArray([],e.localeData[t.locale].categories[t.type],!0),t},e.prototype.select=function(e){l(this,"select");var t=(0,i.ToNumber)(e);return(0,s.ResolvePlural)(this,t,{getInternalSlots:o.default,PluralRuleSelect:u})},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,s=i.locale;e.localeData[s]=a,e.availableLocales.add(s),e.__defaultLocale||(e.__defaultLocale=s)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=[],e.polyfilled=!0,e}();t.PluralRules=c;try{"undefined"!=typeof Symbol&&Object.defineProperty(c.prototype,Symbol.toStringTag,{value:"Intl.PluralRules",writable:!1,enumerable:!1,configurable:!0});try{Object.defineProperty(c,"length",{value:0,writable:!1,enumerable:!1,configurable:!0})}catch(e){}Object.defineProperty(c.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c,"name",{value:"PluralRules",writable:!1,enumerable:!1,configurable:!0})}catch(e){}},41291:(e,t,r)=>{"use strict";function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var a=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}r.d(t,{N:()=>n})},41706:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});let{toString:n,hasOwnProperty:i}=Object.prototype,a=Function.prototype.toString,s=new Map;function o(e,t){try{return function e(t,r){if(t===r)return!0;let s=n.call(t);if(s!==n.call(r))return!1;switch(s){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(d(t,r))return!0;let n=l(t),a=l(r),s=n.length;if(s!==a.length)return!1;for(let e=0;e<s;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<s;++i){let a=n[i];if(!e(t[a],r[a]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(d(t,r))return!0;let n=t.entries(),i="[object Map]"===s;for(;;){let t=n.next();if(t.done)break;let[a,s]=t.value;if(!r.has(a)||i&&!e(s,r.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=a.call(t);if(e!==a.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,c)}}return!1}(e,t)}finally{s.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let c="{ [native code] }";function d(e,t){let r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},41846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(70324),i=r(4648),a=r(85405),s=r(33222),o=n.__importDefault(r(80868)),l=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.RelativeTimeFormat must be called with 'new'");return(0,a.InitializeRelativeTimeFormat)(this,t,r,{getInternalSlots:o.default,availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale})}return e.prototype.format=function(e,t){if("object"!=typeof this)throw TypeError("format was called on a non-object");if(!(0,o.default)(this).initializedRelativeTimeFormat)throw TypeError("format was called on a invalid context");return(0,s.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:o.default}).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(e,t){if("object"!=typeof this)throw TypeError("formatToParts was called on a non-object");if(!(0,o.default)(this).initializedRelativeTimeFormat)throw TypeError("formatToParts was called on a invalid context");return(0,s.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:o.default})},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw TypeError("resolvedOptions was called on a non-object");var e=(0,o.default)(this);if(!e.initializedRelativeTimeFormat)throw TypeError("resolvedOptions was called on a invalid context");return{locale:e.locale,style:e.style,numeric:e.numeric,numberingSystem:e.numberingSystem}},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,s=i.locale,o=new Intl.Locale(s).minimize().toString();e.localeData[s]=e.localeData[o]=a,e.availableLocales.add(o),e.availableLocales.add(s),e.__defaultLocale||(e.__defaultLocale=o)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e}();t.default=l;try{"undefined"!=typeof Symbol&&Object.defineProperty(l.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},42149:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(26514),i=r(75834),a=r(51185);class s extends i.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error({error:e,errorInfo:t})}render(){return this.state.hasError?(0,n.jsx)(a.A,{error:this.state.error,resetError:()=>this.setState({hasError:!1,error:null})}):this.props.children}constructor(e){super(e),this.state={hasError:!1,error:null}}}let o=s},42212:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return o}});let n=r(78809),i=r(88960),a=r(88172),s=n._(r(89572));function o(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=a.Image},42663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingularRelativeTimeUnit=function(e){if((0,n.invariant)("String"===(0,n.Type)(e),"unit must be a string"),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw RangeError("invalid unit");return e};var n=r(4648)},42856:(e,t,r)=>{"use strict";var n;r.d(t,{Ll:()=>l,aD:()=>s,aZ:()=>i,cE:()=>n,ou:()=>a});class i{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,r,n,i,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=new Set(Object.keys(s));function l(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(n||(n={}))},43192:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(75834).createContext({isAdmin:()=>!1,hasRole:()=>!1})},44869:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(26514),i=r(75834),a=r(644),s=r(36372),o=r(82102);let l=e=>{let{narrowNav:t=!1}=e,{locale:r,formatMessage:l}=(0,a.A)(),[u,c]=(0,i.useState)(!1),d=["en","de"],h=d.find(e=>e===r)||"en",[,f]=(0,o.A)("preferred-language",h),p=async e=>{try{f(e),window.location.reload(),c(!1)}catch(e){console.error("Failed to change language:",e)}};return(0,i.useEffect)(()=>{let e=e=>{e.target.closest("[data-language-toggle]")||c(!1)};if(u)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]),(0,n.jsxs)("div",{className:"relative","data-language-toggle":!0,children:[(0,n.jsx)("button",{onClick:()=>c(!u),className:"flex items-center space-x-1 p-2 text-slate-600 dark:text-sky-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:l({id:"change_language",defaultMessage:"Change language"}),children:(0,n.jsx)(s.A,{className:"h-6 w-6"})}),u&&(0,n.jsx)("div",{className:"absolute w-48 rounded-md shadow-lg bg-white dark:bg-slate-800 ring-1 ring-black ring-opacity-5 z-[9999] ".concat(t?"left-full ml-2 bottom-0":"right-0 md:left-full md:ml-2 md:bottom-full md:mb-2 mt-2 md:mt-0"),children:(0,n.jsxs)("div",{className:"py-1",role:"menu",children:[(0,n.jsx)("div",{className:"px-4 py-2 text-xs font-semibold text-slate-500 dark:text-slate-400 uppercase tracking-wide border-b border-slate-200 dark:border-slate-700",children:l({id:"select_language",defaultMessage:"Select Language"})}),d.map(e=>(0,n.jsx)("button",{onClick:()=>p(e),className:"w-full text-left px-4 py-2 text-sm hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors ".concat(h===e?"bg-slate-50 dark:bg-slate-700 text-slate-900 dark:text-slate-100 font-medium":"text-slate-700 dark:text-slate-300"),role:"menuitem",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:(e=>({en:"English",de:"Deutsch"})[e]||e.toUpperCase())(e)}),h===e&&(0,n.jsx)("div",{className:"h-2 w-2 rounded-full bg-slate-800"})]})},e))]})})]})}},46225:(e,t,r)=>{e.exports=r(18648)},46495:(e,t,r)=>{"use strict";function n(e){return"function"==typeof e}r.d(t,{T:()=>n})},47110:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(75834);function i(e,t){return(0,n.useMemo)(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},47924:(e,t,r)=>{"use strict";r.d(t,{OC:()=>i,yo:()=>a});var n=r(38049);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,a=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(o);l!==o.length&&(a=null!=(r=a)?r:t,s=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=a)?t:0,s+1)}function a(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),a=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),o=r.endsWith('\\"""'),l=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!a||e.length>70||c||s||o),h="",f=a&&(0,n.i0)(e.charCodeAt(0));return(d&&!f||s)&&(h+="\n"),h+=r,(d||c)&&(h+="\n"),'"""'+h+'"""'}},49445:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});let n=new Map;function i(e){let t=n.get(e)||1;return n.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},49636:(e,t,r)=>{"use strict";r.d(t,{$x:()=>s,Ei:()=>l,IF:()=>a,O4:()=>n,Zo:()=>o});var n,i=r(70324);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),s=function(e){function t(t,r,i,a){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,a)||this}return(0,i.__extends)(t,e),t}(a),o=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.__extends)(t,e),t}(a)},51185:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(26514),i=r(96456),a=r.n(i),s=r(644),o=r(13226);let l=e=>{let{error:t=null,resetError:r=null}=e,{formatMessage:i}=(0,s.A)();return(0,n.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h2",{className:"text-center text-3xl text-slate-900 dark:text-slate-200",children:i({id:"internal_server_error",defaultMessage:"500 Internal Server Error"})})}),(0,n.jsx)(o.A,{children:(0,n.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,n.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,n.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-rose-600 dark:text-rose-400",children:i({id:"error_500",defaultMessage:"500 Error"})}),(0,n.jsx)("p",{className:"mt-2 text-base text-slate-500 dark:text-slate-400",children:i({id:"internal_server_error_message",defaultMessage:"Sorry, something went wrong on our end. We are working to fix this."})}),(null==t?void 0:t.message)&&(0,n.jsxs)("details",{className:"mt-4 text-left",children:[(0,n.jsx)("summary",{className:"cursor-pointer text-sm text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-300",children:i({id:"show_error_details",defaultMessage:"Show error details"})}),(0,n.jsx)("pre",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400 whitespace-pre-wrap break-all",children:null==t?void 0:t.message})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,n.jsxs)(a(),{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),i({id:"back_to_home",defaultMessage:"Back to Home"})]}),r&&(0,n.jsxs)("button",{type:"button",onClick:r,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-slate-100 dark:bg-slate-700 dark:border-slate-600 py-2 px-4 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:outline-hidden focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-slate-500 dark:text-slate-400 group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),i({id:"try_again",defaultMessage:"Try Again"})]})]})]})})]})})}},51869:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(9985),i=r(15968),a=r(70486),s=r(34517);function o(){let e=(0,n._)(["\n query Countries(\n $queryString: String\n $limit: Int\n $offset: Int\n $includeInactive: Boolean\n $sort: [SortOptionInput!]\n ) {\n countries(\n queryString: $queryString\n limit: $limit\n offset: $offset\n includeInactive: $includeInactive\n sort: $sort\n ) {\n ...CountryFragment\n }\n countriesCount(includeInactive: $includeInactive, queryString: $queryString)\n }\n\n ","\n"]);return o=function(){return e},e}let l=(0,i.J1)(o(),s.A),u=function(){let{queryString:e="",limit:t=20,offset:r=0,includeInactive:n=!0,sort:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{data:s,loading:o,error:u,fetchMore:c}=(0,a.I)(l,{variables:{queryString:e,limit:t,offset:r,includeInactive:n,sort:i}}),d=(null==s?void 0:s.countries)||[],h=null==s?void 0:s.countriesCount,f=(null==d?void 0:d.length)<h;return{countries:d,countriesCount:h,hasMore:f,loading:o,error:u,loadMore:()=>{c({variables:{offset:null==d?void 0:d.length}})}}}},52368:(e,t,r)=>{"use strict";r.d(t,{P:()=>o,a:()=>s});var n=r(75834),i=r(35424);let a=Symbol();function s(e,t=!0){return Object.assign(e,{[a]:t})}function o(...e){let t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let r=(0,i._)(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[a]))?void 0:r}},52562:(e,t,r)=>{"use strict";var n=r(99578),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n.isMemo(e)?s:o[e.$$typeof]||i}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var o=l(t),m=l(r),g=0;g<s.length;++g){var _=s[g];if(!a[_]&&!(n&&n[_])&&!(m&&m[_])&&!(o&&o[_])){var y=h(r,_);try{u(t,_,y)}catch(e){}}}}return t}},52934:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(9985),i=r(15968);function a(){let e=(0,n._)(["\n mutation Logout {\n logout {\n success\n }\n }\n "]);return a=function(){return e},e}let s=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;await e.mutate({mutation:(0,i.J1)(a())}),await e.resetStore(),t?t.push("/log-in"):window.location.href="/log-in"}},53160:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(75834),i=r(63228);let a=(e,t)=>{i._.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},53799:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);function i(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:a,options:i}),t.addEventListener(r,a,i)},[]),r=(0,n.useCallback)((t,r,n,i)=>{var a;let s=(null==(a=e.current.get(n))?void 0:a.fn)||n;t.removeEventListener(r,s,i),e.current.delete(n)},[]),i=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:i}}},55474:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,Kq:()=>c,ob:()=>d});var n=r(70324),i=r(52562),a=r.n(i),s=r(75834),o=r(31404),l="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?s.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=s.createContext(null)),u=l.Consumer,c=l.Provider,d=l;function h(e,t){var r=t||{},i=r.intlPropName,l=void 0===i?"intl":i,c=r.forwardRef,d=void 0!==c&&c,h=r.enforceContext,f=void 0===h||h,p=function(t){return s.createElement(u,null,function(r){f&&(0,o.HM)(r);var i,a=((i={})[l]=r,i);return s.createElement(e,(0,n.__assign)({},t,a,{ref:d?t.forwardedRef:null}))})};return(p.displayName="injectIntl(".concat(e.displayName||e.name||"Component",")"),p.WrappedComponent=e,d)?a()(s.forwardRef(function(e,t){return s.createElement(p,(0,n.__assign)({},e,{forwardedRef:t}))}),e):a()(p,e)}},56235:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"}))})},56241:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(75834).createContext({customProperties:{},hydrateFragment:(e,t)=>null})},56300:(e,t,r)=>{"use strict";r.d(t,{TW:()=>i,X7:()=>o,bq:()=>s,zm:()=>a});var n=r(63228);function i(e){var t;return n._.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function a(e){var t,r;return n._.isServer?null:null==e?document:null!=(r=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?r:document}function s(e){var t,r;return null!=(r=null==(t=a(e))?void 0:t.activeElement)?r:null}function o(e){return s(e)===e}},57160:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},57378:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(57160),i=r(66802);function a(e){i.f.setTimeout(function(){var t=n.$.onUnhandledError;if(t)t(e);else throw e})}},58245:(e,t,r)=>{e.exports=r(42212)},58534:(e,t,r)=>{"use strict";var n=r(41131);(0,r(15218).shouldPolyfill)()&&Object.defineProperty(Intl,"PluralRules",{value:n.PluralRules,writable:!0,enumerable:!1,configurable:!0})},59053:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(70324),i=r(93571),a=r(99633),s=r(23549);function o(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var l=function(){function e(t,r,a,l){void 0===r&&(r=e.defaultLocale);var u,c,d=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===s.TT.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,s.hN)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null==(e=d.resolvedLocale)?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=l||{},f=(h.formatters,(0,n.__rest)(h,["formatters"]));this.ast=e.__parse(t,(0,n.__assign)((0,n.__assign)({},f),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(u=e.formats,a?Object.keys(u).reduce(function(e,t){var r,i;return e[t]=(r=u[t],(i=a[t])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=(0,n.__assign)((0,n.__assign)({},r[t]),i[t]||{}),e},{})):r),e},(0,n.__assign)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.number),strategy:i.W.variadic}),getDateTimeFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.dateTime),strategy:i.W.variadic}),getPluralRules:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.pluralRules),strategy:i.W.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=a.qg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},60031:(e,t,r)=>{"use strict";r.d(t,{L:()=>a});var n=r(75834),i=r(40852);function a(){let[e]=(0,n.useState)(i.e);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},60780:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(75834).createContext({setModal:()=>{throw Error("No ModalContext/ModalWrapper ancestor found.")}})},61459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializePluralRules=function(e,t,r,a){var s=a.availableLocales,o=a.relevantExtensionKeys,l=a.localeData,u=a.getDefaultLocale,c=a.getInternalSlots,d=(0,n.CanonicalizeLocaleList)(t),h=Object.create(null),f=(0,n.CoerceOptionsToObject)(r),p=c(e);return p.initializedPluralRules=!0,h.localeMatcher=(0,n.GetOption)(f,"localeMatcher","string",["best fit","lookup"],"best fit"),p.locale=(0,i.ResolveLocale)(s,d,h,o,l,u).locale,p.type=(0,n.GetOption)(f,"type","string",["cardinal","ordinal"],"cardinal"),(0,n.SetNumberFormatDigitOptions)(p,f,0,3,"standard"),e};var n=r(4648),i=r(92090)},62065:(e,t,r)=>{"use strict";r.d(t,{Ms:()=>_,vU:()=>f});var n=r(70324),i=r(46495),a=r(65245),s=r(57160),o=r(57378);function l(){}var u=c("C",void 0,void 0);function c(e,t,r){return{kind:e,value:t,error:r}}var d=r(66802),h=r(94982),f=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,a.Uv)(t)&&t.add(r)):r.destination=b,r}return(0,n.__extends)(t,e),t.create=function(e,t,r){return new _(e,t,r)},t.prototype.next=function(e){this.isStopped?v(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?v(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?v(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(a.yU),p=Function.prototype.bind;function m(e,t){return p.call(e,t)}var g=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),_=function(e){function t(t,r,n){var a,o,l=e.call(this)||this;return(0,i.T)(t)||!t?a={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:l&&s.$.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},a={next:t.next&&m(t.next,o),error:t.error&&m(t.error,o),complete:t.complete&&m(t.complete,o)}):a=t,l.destination=new g(a),l}return(0,n.__extends)(t,e),t}(f);function y(e){s.$.useDeprecatedSynchronousErrorHandling?(0,h.l)(e):(0,o.m)(e)}function v(e,t){var r=s.$.onStoppedNotification;r&&d.f.setTimeout(function(){return r(e,t)})}var b={closed:!0,next:l,error:function(e){throw e},complete:l}},63228:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=Object.defineProperty,i=(e,t,r)=>(((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r);class a{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let s=new a},63455:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a});var n=r(75834),i=r(53160);function a(e){let t=(0,n.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},63641:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{U:()=>n})},65245:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>l,yU:()=>o,Uv:()=>u});var n=r(70324),i=r(46495),a=(0,r(30073).L)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),s=r(40190),o=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,s,o,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=(0,n.__values)(l),d=u.next();!d.done;d=u.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this);var h=this.initialTeardown;if((0,i.T)(h))try{h()}catch(e){o=e instanceof a?e.errors:[e]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=(0,n.__values)(f),m=p.next();!m.done;m=p.next()){var g=m.value;try{c(g)}catch(e){o=null!=o?o:[],e instanceof a?o=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(o)),(0,n.__read)(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(r)throw r.error}}}if(o)throw new a(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,s.o)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,s.o)(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),l=o.EMPTY;function u(e){return e instanceof o||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function c(e){(0,i.T)(e)?e():e.unsubscribe()}},65288:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))})},65429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedLocales=void 0,t.supportedLocales=["af","af-NA","agq","ak","am","ar","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-EH","ar-ER","ar-IL","ar-IQ","ar-JO","ar-KM","ar-KW","ar-LB","ar-LY","ar-MA","ar-MR","ar-OM","ar-PS","ar-QA","ar-SA","ar-SD","ar-SO","ar-SS","ar-SY","ar-TD","ar-TN","ar-YE","as","asa","ast","az","az-Cyrl","az-Latn","bas","be","be-tarask","bem","bez","bg","bm","bn","bn-IN","bo","bo-IN","br","brx","bs","bs-Cyrl","bs-Latn","ca","ca-AD","ca-ES-valencia","ca-FR","ca-IT","ccp","ccp-IN","ce","ceb","cgg","chr","ckb","ckb-IR","cs","cy","da","da-GL","dav","de","de-AT","de-BE","de-CH","de-IT","de-LI","de-LU","dje","doi","dsb","dua","dyo","dz","ebu","ee","ee-TG","el","el-CY","en","en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","eo","es","es-419","es-AR","es-BO","es-BR","es-BZ","es-CL","es-CO","es-CR","es-CU","es-DO","es-EA","es-EC","es-GQ","es-GT","es-HN","es-IC","es-MX","es-NI","es-PA","es-PE","es-PH","es-PR","es-PY","es-SV","es-US","es-UY","es-VE","et","eu","ewo","fa","fa-AF","ff","ff-Adlm","ff-Adlm-BF","ff-Adlm-CM","ff-Adlm-GH","ff-Adlm-GM","ff-Adlm-GW","ff-Adlm-LR","ff-Adlm-MR","ff-Adlm-NE","ff-Adlm-NG","ff-Adlm-SL","ff-Adlm-SN","ff-Latn","ff-Latn-BF","ff-Latn-CM","ff-Latn-GH","ff-Latn-GM","ff-Latn-GN","ff-Latn-GW","ff-Latn-LR","ff-Latn-MR","ff-Latn-NE","ff-Latn-NG","ff-Latn-SL","fi","fil","fo","fo-DK","fr","fr-BE","fr-BF","fr-BI","fr-BJ","fr-BL","fr-CA","fr-CD","fr-CF","fr-CG","fr-CH","fr-CI","fr-CM","fr-DJ","fr-DZ","fr-GA","fr-GF","fr-GN","fr-GP","fr-GQ","fr-HT","fr-KM","fr-LU","fr-MA","fr-MC","fr-MF","fr-MG","fr-ML","fr-MQ","fr-MR","fr-MU","fr-NC","fr-NE","fr-PF","fr-PM","fr-RE","fr-RW","fr-SC","fr-SN","fr-SY","fr-TD","fr-TG","fr-TN","fr-VU","fr-WF","fr-YT","fur","fy","ga","ga-GB","gd","gl","gsw","gsw-FR","gsw-LI","gu","guz","gv","ha","ha-GH","ha-NE","haw","he","hi","hr","hr-BA","hsb","hu","hy","ia","id","ig","ii","is","it","it-CH","it-SM","it-VA","ja","jgo","jmc","jv","ka","kab","kam","kde","kea","kgp","khq","ki","kk","kkj","kl","kln","km","kn","ko","ko-KP","kok","ks","ks-Arab","ksb","ksf","ksh","ku","kw","ky","lag","lb","lg","lkt","ln","ln-AO","ln-CF","ln-CG","lo","lrc","lrc-IQ","lt","lu","luo","luy","lv","mai","mas","mas-TZ","mer","mfe","mg","mgh","mgo","mi","mk","ml","mn","mni","mni-Beng","mr","ms","ms-BN","ms-ID","ms-SG","mt","mua","my","mzn","naq","nb","nb-SJ","nd","nds","nds-NL","ne","ne-IN","nl","nl-AW","nl-BE","nl-BQ","nl-CW","nl-SR","nl-SX","nmg","nn","nnh","no","nus","nyn","om","om-KE","or","os","os-RU","pa","pa-Arab","pa-Guru","pcm","pl","ps","ps-PK","pt","pt-AO","pt-CH","pt-CV","pt-GQ","pt-GW","pt-LU","pt-MO","pt-MZ","pt-PT","pt-ST","pt-TL","qu","qu-BO","qu-EC","rm","rn","ro","ro-MD","rof","ru","ru-BY","ru-KG","ru-KZ","ru-MD","ru-UA","rw","rwk","sa","sah","saq","sat","sat-Olck","sbp","sc","sd","sd-Arab","sd-Deva","se","se-FI","se-SE","seh","ses","sg","shi","shi-Latn","shi-Tfng","si","sk","sl","smn","sn","so","so-DJ","so-ET","so-KE","sq","sq-MK","sq-XK","sr","sr-Cyrl","sr-Cyrl-BA","sr-Cyrl-ME","sr-Cyrl-XK","sr-Latn","sr-Latn-BA","sr-Latn-ME","sr-Latn-XK","su","su-Latn","sv","sv-AX","sv-FI","sw","sw-CD","sw-KE","sw-UG","ta","ta-LK","ta-MY","ta-SG","te","teo","teo-KE","tg","th","ti","ti-ER","tk","to","tr","tr-CY","tt","twq","tzm","ug","uk","und","ur","ur-IN","uz","uz-Arab","uz-Cyrl","uz-Latn","vai","vai-Latn","vai-Vaii","vi","vun","wae","wo","xh","xog","yav","yi","yo","yo-BJ","yrl","yrl-CO","yrl-VE","yue","yue-Hans","yue-Hant","zgh","zh","zh-Hans","zh-Hans-HK","zh-Hans-MO","zh-Hans-SG","zh-Hant","zh-Hant-HK","zh-Hant-MO","zu"]},65539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},65990:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(26514),i=r(58245),a=r.n(i),s=r(75834),o=r(644),l=r(38514);let u=e=>{let{className:t="w-full h-full",width:r=200,height:i=200}=e;return(0,n.jsxs)("svg",{width:r,height:i,viewBox:"0 0 200 200",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{x:"10",y:"10",width:"180",height:"180",rx:"8",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"8 4",fill:"transparent",className:"text-slate-800 dark:text-slate-400"}),(0,n.jsx)("rect",{x:"40",y:"40",width:"120",height:"80",rx:"4",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,n.jsx)("path",{d:"M50 100 L70 80 L90 95 L110 75 L130 90 L150 70",stroke:"currentColor",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"130",cy:"55",r:"8",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,n.jsx)("text",{x:"100",y:"145",textAnchor:"middle",className:"text-slate-800 dark:text-slate-300 text-sm font-semibold",fill:"currentColor",children:"No Image"})]})},c=e=>{let{fallbackSrc:t="",src:r,...i}=e,[c,d]=(0,s.useState)(r),[h,f]=(0,s.useState)(!1),{formatMessage:p}=(0,o.A)();return h||!c?(0,n.jsx)("div",{className:i.className||"w-full h-full flex items-center justify-center bg-slate-50 dark:bg-slate-800",children:(0,n.jsx)(u,{width:i.width||200,height:i.height||200,className:"max-w-full max-h-full"})}):(0,n.jsx)(a(),{src:c,loader:l.A,alt:p({id:"image-not-found",defaultMessage:"Image not found"}),...i,onError:()=>{t&&c!==t?d(t):f(!0)}})}},66287:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))})},66440:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(94998),i=r(88514);function a(e){return n.g&&function(e){let t=new Set([e]);t.forEach(e=>{(0,i.U)(e)&&function(e){if(n.g&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{(0,i.U)(e[r])&&t.add(e[r])})})}(e),e}},66487:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{var t,r,n,i,a,s,o,l,u,c,d,h,f;return e?(null==e?void 0:e.username)?e.username:(null==e||null==(t=e.profile)?void 0:t.displayName)?null==e||null==(r=e.profile)?void 0:r.displayName:(null==e||null==(i=e.profile)||null==(n=i.address)?void 0:n.firstName)||(null==e||null==(s=e.profile)||null==(a=s.address)?void 0:a.lastName)?"".concat(null==e||null==(l=e.profile)||null==(o=l.address)?void 0:o.firstName," ").concat(null==e||null==(c=e.profile)||null==(u=c.address)?void 0:u.lastName):(null==e?void 0:e.name)?e.name:e.isGuest?null==e||null==(f=e.primaryEmail)||null==(h=f.address)||null==(d=h.split("."))?void 0:d[0]:null:null}},66802:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(70324),i={setTimeout:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s=i.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,n.__spreadArray)([e,t],(0,n.__read)(r))):setTimeout.apply(void 0,(0,n.__spreadArray)([e,t],(0,n.__read)(r)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},67392:(e,t,r)=>{"use strict";r.d(t,{V1:()=>d,vA:()=>f});var n=r(94998),i=r(16043),a=r(10912),s=r(99365);let o="Invariant Violation";class l extends Error{constructor(e=o){super(e),this.name=o,Object.setPrototypeOf(this,l.prototype)}}let u=["debug","log","warn","error","silent"],c=u.indexOf(n.g?"log":"silent");function d(e,...t){if(!e)throw f(...t)}function h(e){return function(t,...r){if(u.indexOf(e)>=c){let n=console[e]||console.log;if("number"==typeof t){let e=t;(t=g(e))||(t=_(e,r),r=[])}n(t,...r)}}}function f(e,...t){return new l(g(e,t)||_(e,t))}d.debug=h("debug"),d.log=h("log"),d.warn=h("warn"),d.error=h("error");let p=Symbol.for("ApolloErrorMessageHandler_"+a.r);function m(e){if("string"==typeof e)return e;try{return(0,s.p)(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function g(e,t=[]){if(e)return i.A[p]&&i.A[p](e,t.map(m))}function _(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,m(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:a.r,message:e,args:t.map(m)}))}`}},67714:(e,t,r)=>{"use strict";r.d(t,{$x:()=>l,El:()=>o,O_:()=>s,Uw:()=>a});var n=r(75834);let i=(0,n.createContext)(null);i.displayName="OpenClosedContext";var a=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(a||{});function s(){return(0,n.useContext)(i)}function o({value:e,children:t}){return n.createElement(i.Provider,{value:e},t)}function l({children:e}){return n.createElement(i.Provider,{value:null},e)}},67750:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n={createInterruptionMessage:e=>({id:"interruption-".concat(Date.now()),role:"assistant",content:"⚠️ **Operation Interrupted**\n\nThe current operation was stopped by user request.\n\n**Status at interruption:**\n- Current phase: ".concat({submitted:"request processing",streaming:"response generation",error:"error handling",ready:"idle state"}[e]||e,"\n- Remaining tasks may not have been completed\n- You can start a new request at any time\n\n*The system is ready for your next command.*")}),hasIncompleteToolInvocations:e=>"assistant"===e.role&&!!e.parts&&e.parts.some(e=>"tool-invocation"===e.type&&e.toolInvocation&&(!e.toolInvocation.result||"call"===e.toolInvocation.state)),filterCompleteMessages(e){return e.filter(e=>!this.hasIncompleteToolInvocations(e))}}},68628:(e,t,r)=>{"use strict";let n,i,a,s;r.d(t,{L:()=>nW});var o,l=r(75834),u=r(15264),c=r.n(u),d=r(19882),h=r.n(d),f=r(62065),p=r(65245),m="function"==typeof Symbol&&Symbol.observable||"@@observable";function g(e){return e}var _=r(57160),y=r(46495),v=r(94982),b=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this,i=!function(e){return e&&e instanceof f.vU||e&&(0,y.T)(e.next)&&(0,y.T)(e.error)&&(0,y.T)(e.complete)&&(0,p.Uv)(e)}(e)?new f.Ms(e,t,r):e;return(0,v.Y)(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=w(t))(function(t,n){var i=new f.Ms({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[m]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?g:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=w(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function w(e){var t;return null!=(t=null!=e?e:_.$.Promise)?t:Promise}var E=new b(function(e){return e.complete()});function k(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}function S(){}let T="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},x="undefined"!=typeof WeakMap?WeakMap:Map,A="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:S,unregister:S}};class N{constructor(e=1/0,t=S){this.max=e,this.dispose=t,this.map=new x,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new T(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new A(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var C=r(63641),I=r(25078),O=r(42856),P=r(97813);let D=Object.freeze({});function M(e,t,r=O.aD){let n,i,a,s=new Map;for(let e of Object.values(P.b))s.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let o=Array.isArray(e),l=[e],u=-1,c=[],d=e,h=[],f=[];do{var p,m,g;let e,_=++u===l.length,y=_&&0!==c.length;if(_){if(i=0===f.length?void 0:h[h.length-1],d=a,a=f.pop(),y)if(o){d=d.slice();let e=0;for(let[t,r]of c){let n=t-e;null===r?(d.splice(n,1),e++):d[n]=r}}else for(let[e,t]of(d={...d},c))d[e]=t;u=n.index,l=n.keys,c=n.edits,o=n.inArray,n=n.prev}else if(a){if(null==(d=a[i=o?u:l[u]]))continue;h.push(i)}if(!Array.isArray(d)){(0,O.Ll)(d)||(0,C.U)(!1,`Invalid AST Node: ${(0,I.N)(d)}.`);let r=_?null==(p=s.get(d.kind))?void 0:p.leave:null==(m=s.get(d.kind))?void 0:m.enter;if((e=null==r?void 0:r.call(t,d,i,a,h,f))===D)break;if(!1===e){if(!_){h.pop();continue}}else if(void 0!==e&&(c.push([i,e]),!_))if((0,O.Ll)(e))d=e;else{h.pop();continue}}void 0===e&&y&&c.push([i,d]),_?h.pop():(n={inArray:o,index:u,keys:l,edits:c,prev:n},l=(o=Array.isArray(d))?d:null!=(g=r[d.kind])?g:[],u=-1,c=[],a&&f.push(a),a=d)}while(void 0!==n);return 0!==c.length?c[c.length-1][1]:e}let L=()=>Object.create(null),{forEach:R,slice:F}=Array.prototype,{hasOwnProperty:B}=Object.prototype;class j{constructor(e=!0,t=L){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return R.call(e,e=>t=t.getChildTrie(e)),B.call(t,"data")?t.data:t.data=this.makeData(F.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(F.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new j(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function z(){}class U{constructor(e=1/0,t=z){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}let H=null,V={},G=1;function q(e){try{return e()}catch(e){}}let Z="@wry/context:Slot",$=q(()=>globalThis)||q(()=>global)||Object.create(null),W=$[Z]||Array[Z]||function(e){try{Object.defineProperty($,Z,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",G++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=H;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===V)break;return e!==H&&(H.slots[this.id]=t),!0}return H&&(H.slots[this.id]=V),!1}getValue(){if(this.hasValue())return H.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},a=H;H={parent:a,slots:i};try{return t.apply(n,r)}finally{H=a}}static bind(e){let t=H;return function(){let r=H;try{return H=t,e.apply(this,arguments)}finally{H=r}}}static noContext(e,t,r){if(!H)return e.apply(r,t);{let n=H;try{return H=null,e.apply(r,t)}finally{H=n}}}}),{bind:K,noContext:Y}=W,Q=new W,{hasOwnProperty:J}=Object.prototype,X=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function ee(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let et=[];function er(e,t){if(!e)throw Error(t||"assertion failure")}function en(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function ei(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class ea{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,++ea.count}peek(){if(1===this.value.length&&!el(this))return es(this),this.value[0]}recompute(e){var t,r,n;return er(!this.recomputing,"already recomputing"),es(this),el(this)?(t=this,r=e,ef(t),Q.withValue(t,eo,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{ee(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,el(n)||function(e){eu(e,ed)}(n)),ei(t.value)):ei(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,eu(e,ec),ee(this))}dispose(){this.setDirty(),ef(this),eu(this,(e,t)=>{e.setDirty(),ep(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=et.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(X(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),et.push(this.deps),this.deps=null)}}function es(e){let t=Q.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),el(e)?ec(t,e):ed(t,e),t}function eo(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!en(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function el(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}ea.count=0;function eu(e,t){let r=e.parents.size;if(r){let n=X(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function ec(e,t){er(e.childValues.has(t)),er(el(t));let r=!el(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=et.pop()||new Set;e.dirtyChildren.add(t),r&&eu(e,ec)}function ed(e,t){er(e.childValues.has(t)),er(!el(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):en(r,t.value)||e.setDirty(),eh(e,t),el(e)||eu(e,ed)}function eh(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(et.length<100&&et.push(r),e.dirtyChildren=null))}function ef(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{ep(e,r)}),e.forgetDeps(),er(null===e.dirtyChildren)}function ep(e,t){t.parents.delete(e),e.childValues.delete(t),eh(e,t)}let em={setDirty:!0,dispose:!0,forget:!0};function eg(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=Q.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(ee(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&J.call(em,r)?r:"setDirty";X(n).forEach(e=>e[i]()),t.delete(e),ee(n)}},n}function e_(...e){return(n||(n=new j("function"==typeof WeakMap))).lookupArray(e)}let ey=new Set;function ev(e,{max:t=65536,keyArgs:r,makeCacheKey:n=e_,normalizeResult:i,subscribe:a,cache:s=U}=Object.create(null)){let o="function"==typeof s?new s(t,e=>e.dispose()):s,l=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=o.get(t);s||(o.set(t,s=new ea(e)),s.normalizeResult=i,s.subscribe=a,s.forget=()=>o.delete(t));let l=s.recompute(Array.prototype.slice.call(arguments));return o.set(t,s),ey.add(o),Q.hasValue()||(ey.forEach(e=>e.clean()),ey.clear()),l};function u(e){let t=e&&o.get(e);t&&t.setDirty()}function c(e){let t=e&&o.get(e);if(t)return t.peek()}function d(e){return!!e&&o.delete(e)}return Object.defineProperty(l,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:o}),l.dirtyKey=u,l.dirty=function(){u(n.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(n.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(l)}var eb=r(94998),ew=r(67392),eE=r(16043);let ek=Symbol.for("apollo.cacheSize"),eS={...eE.A[ek]},eT=ev((e,t)=>{(0,ew.V1)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);eb.g&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,ew.vA)(2,e.kind)}),(0,ew.V1)(r.length<=1,3,r.length)),t&&(0,ew.V1)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),M(e,{Field(t,n,i,a){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let n=e,i=[];for(let e of a)(n=n[e]).kind===P.b.FIELD&&i.push(n.alias?.value||n.name.value);throw i.splice(-1,1,t.name.value),(0,ew.vA)(5,t.alias.value,i.join("."),r[0].operation,k(e,"(anonymous)"))}}})},{max:eS.checkDocument||2e3,cache:N});function ex(e){return eT(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}class eA{static empty(){return new eA(()=>E)}static from(e){if(0===e.length)return eA.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new eA((e,t)=>t(e))){return Object.assign(new eA((n,i)=>{let a=e(n);return eb.g&&"boolean"!=typeof a&&eb.g&&ew.V1.warn(61,a),a?t.request(n,i):r.request(n,i)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:k(e.query),operationType:ex(e.query).operation},n={...e.context},i=()=>Object.freeze({...n});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{n="function"==typeof e?{...n,...e(i())}:{...n,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:i}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(eb.g&&eb.g&&ew.V1.warn(62),E))}static concat(...e){return eA.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(eA.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new eA((r,n)=>e.request(r,e=>t.request(e,n))),{left:e,right:t})}request(e,t){throw(0,ew.vA)(63)}left;right}var eN=r(86362);class eC extends eA{constructor(e={}){super((t,r)=>{let n=t.client,i=n.queryManager.clientOptions,a=t.getContext();{let{name:r,version:n,transport:s="headers"}=(0,eN.o)({},i.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===s&&t.setContext(({headers:e,extensions:t})=>({headers:(0,eN.o)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{let{transport:r="extensions"}=(0,eN.o)({},i.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,eN.o)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions))}return r(t)})}}function eI(e,t){return ex(e)?.operation===t}var eO=r(31932);function eP(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function eD(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function eM(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class eL extends Error{static is(e){return eP(e,"CombinedProtocolErrors")}static formatMessage=eM;errors;constructor(e){super(eL.formatMessage(e,{defaultFormatMessage:eM})),this.name="CombinedProtocolErrors",this.errors=e,eD(this),Object.setPrototypeOf(this,eL.prototype)}}class eR extends Error{static is(e){return eP(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",eD(this),Object.setPrototypeOf(this,eR.prototype)}}let eF=Symbol();function eB(e){return"extensions"in e&&eL.is(e.extensions[eF])}function ej(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new eR(e)}class ez extends Error{static is(e){return eP(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,eD(this),Object.setPrototypeOf(this,ez.prototype)}}class eU extends Error{static is(e){return eP(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,eD(this),Object.setPrototypeOf(this,eU.prototype)}}var eH=r(88514);let{hasOwnProperty:eV}=Object.prototype;async function*eG(e){let t,r=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),i=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),a="\r\n--"+(i?.findLast(e=>!!e)||"-"),s="";(0,ew.V1)(e.body&&"function"==typeof e.body.getReader,60);let o=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==s[0]&&"-"==s[1];try{for(;!l;){({value:t,done:l}=await o.read());let e="string"==typeof t?t:r.decode(t),n=s.length-a.length+1,i=(s+=e).indexOf(a,n);for(;i>-1&&!c();){let e;u=!0,[e,s]=[s.slice(0,i),s.slice(i+a.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let n=e.slice(t);n&&(yield n),i=s.indexOf(a)}if(c())return}throw Error("premature end of multipart body")}finally{o.cancel()}}async function eq(e,t){for await(let r of eG(e)){let n=eZ(e,r);if(0!=Object.keys(n).length)if((0,eH.U)(n)&&"payload"in n){if(1===Object.keys(n).length&&null===n.payload)return;let e={...n.payload};"errors"in n&&(e.extensions={...e.extensions,[eF]:new eL(n.errors??[])}),t(e)}else t(n)}}function eZ(e,t){if(e.status>=300)throw new ez(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new eU(r,{response:e,bodyText:t})}}var e$=r(47924);let eW=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eK(e){return eY[e.charCodeAt(0)]}let eY=["\\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"],eQ={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eJ(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=e0("(",eJ(e.variableDefinitions,", "),")"),r=eJ([e.operation,eJ([e.name,t]),eJ(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+e0(" = ",r)+e0(" ",eJ(n," "))},SelectionSet:{leave:({selections:e})=>eX(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=e0("",e,": ")+t,s=a+e0("(",eJ(r,", "),")");return s.length>80&&(s=a+e0("(\n",e1(eJ(r,"\n")),"\n)")),eJ([s,eJ(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+e0(" ",eJ(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>eJ(["...",e0("on ",e),eJ(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${e0("(",eJ(r,", "),")")} on ${t} ${e0("",eJ(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,e$.yo)(e):`"${e.replace(eW,eK)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eJ(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eJ(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+e0("(",eJ(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>e0("",e,"\n")+eJ(["schema",eJ(t," "),eX(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>e0("",e,"\n")+eJ(["scalar",t,eJ(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>e0("",e,"\n")+eJ(["type",t,e0("implements ",eJ(r," & ")),eJ(n," "),eX(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>e0("",e,"\n")+t+(e2(r)?e0("(\n",e1(eJ(r,"\n")),"\n)"):e0("(",eJ(r,", "),")"))+": "+n+e0(" ",eJ(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>e0("",e,"\n")+eJ([t+": "+r,e0("= ",n),eJ(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>e0("",e,"\n")+eJ(["interface",t,e0("implements ",eJ(r," & ")),eJ(n," "),eX(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>e0("",e,"\n")+eJ(["union",t,eJ(r," "),e0("= ",eJ(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>e0("",e,"\n")+eJ(["enum",t,eJ(r," "),eX(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>e0("",e,"\n")+eJ([t,eJ(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>e0("",e,"\n")+eJ(["input",t,eJ(r," "),eX(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>e0("",e,"\n")+"directive @"+t+(e2(r)?e0("(\n",e1(eJ(r,"\n")),"\n)"):e0("(",eJ(r,", "),")"))+(n?" repeatable":"")+" on "+eJ(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eJ(["extend schema",eJ(e," "),eX(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eJ(["extend scalar",e,eJ(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eJ(["extend type",e,e0("implements ",eJ(t," & ")),eJ(r," "),eX(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eJ(["extend interface",e,e0("implements ",eJ(t," & ")),eJ(r," "),eX(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>eJ(["extend union",e,eJ(t," "),e0("= ",eJ(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>eJ(["extend enum",e,eJ(t," "),eX(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>eJ(["extend input",e,eJ(t," "),eX(r)]," ")}};function eJ(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function eX(e){return e0("{\n",e1(eJ(e,"\n")),"\n}")}function e0(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function e1(e){return e0(" ",e.replace(/\n/g,"\n "))}function e2(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}let e5=new WeakSet;function e3(e){!(e.size<=(e.max||-1))&&(e5.has(e)||(e5.add(e),setTimeout(()=>{e.clean(),e5.delete(e)},100)))}let e4=function(e,t){let r=new N(e,t);return r.set=function(e,t){let r=N.prototype.set.call(this,e,t);return e3(this),r},r},e9=function(e,t){let r=new U(e,t);return r.set=function(e,t){let r=U.prototype.set.call(this,e,t);return e3(this),r},r},e6={},e8=Object.assign(e=>{let t=i.get(e);return t||(t=M(e,eQ),i.set(e,t)),t},{reset(){i=new e4(eS.print||2e3)}});e8.reset(),eb.g&&(e6.print=()=>i?i.size:0);let e7={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},te=(e,t)=>t(e),tt=(0,eO.n)(()=>fetch);function tr(){}class tn extends eA{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=te,includeExtensions:i,preserveHeaderCase:a,useGETForQueries:s,includeUnusedVariables:o=!1,...l}=e;eb.g&&(0,ew.V1)(r||tt||"undefined"!=typeof fetch,59);let u={http:(0,eN.o)({includeExtensions:i,preserveHeaderCase:a}),options:l.fetchOptions,credentials:l.credentials,headers:l.headers};super(e=>{let i=((e,t)=>{let r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")})(e,t),a=e.getContext(),l={...a.http};eI(e.query,"subscription")&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);let{options:c,body:d}=function(e,t,...r){let n={},i={};r.forEach(e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),i={...i,...e.http}}),n.headers=function(e,t){if(!t){let t={};return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(n.headers,i.preserveHeaderCase);let{operationName:a,extensions:s,variables:o,query:l}=e,u={operationName:a,variables:o};return i.includeExtensions&&Object.keys(s||{}).length&&(u.extensions=s),i.includeQuery&&(u.query=t(l,e8)),{options:n,body:u}}(e,n,e7,u,{http:l,options:a.fetchOptions,credentials:a.credentials,headers:a.headers});d.variables&&!o&&(d.variables=function(e,t){let r={...e},n=new Set(Object.keys(e));return M(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&n.delete(e.name.value)}}),n.forEach(e=>{delete r[e]}),r}(d.variables,e.query));let h=new AbortController,f=()=>{h=void 0};if(c.signal){let e=c.signal,t=()=>{h?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),f=()=>{h?.signal.removeEventListener("abort",f),h=void 0,e.removeEventListener("abort",t),f=tr},h.signal.addEventListener("abort",f,{once:!0})}return c.signal=h.signal,s&&!eI(e.query,"mutation")&&(c.method="GET"),new b(t=>{if("GET"===c.method){let{newURI:e,parseError:t}=function(e,t){let r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let i="",a=e,s=e.indexOf("#");-1!==s&&(i=e.substr(s),a=e.substr(0,s));let o=-1===a.indexOf("?")?"?":"&";return{newURI:a+o+r.join("&")+i}}(i,d);if(t)throw t;i=e}else c.body=JSON.stringify(d);let n=r||(0,eO.n)(()=>fetch)||tt,a=t.next.bind(t);return n(i,c).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?eq(t,a):(function(e){return t=>t.text().then(r=>{let n=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new eU(r,{response:e,bodyText:t})}return eZ(e,t)}(t,r);if(!Array.isArray(n)&&!eV.call(n,"data")&&!eV.call(n,"errors"))throw new ez(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n})})(e)(t).then(a)}).then(()=>{f(),t.complete()}).catch(e=>{f(),t.error(e)}),()=>{h&&h.abort()}})})}}class ti extends eA{constructor(e={}){let{left:t,right:r,request:n}=eA.from([new eC(e),new tn(e)]);super(n),Object.assign(this,{left:t,right:r})}}var ta=r(5802),ts=r(99246);function to(e,t){return(0,ta.N)(function(r,n){var i=0;r.subscribe((0,ts._)(n,function(r){n.next(e.call(t,r,i++))}))})}function tl(e,t,r){let n=new Set(e),i=n.size;return M(t,{Directive(e){if(n.delete(e.name.value)&&(!r||!n.size))return D}}),r?!n.size:n.size<i}class tu{isIncrementalResult(e){return!1}prepareRequest(e){return(0,ew.V1)(!tl(["defer"],e.query),64),e}extractErrors(){}startRequest=void 0}let tc=eA.execute;function td(e){return e}class th{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new th(td,{cache:!1})}static split(e,t,r=th.identity()){return Object.assign(new th(n=>(e(n)?t:r).transformDocument(n),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new j;this.performWork=ev(th.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,ew.V1)(Array.isArray(r),20),e.lookupArray(r)},max:eS["documentTransform.cache"],cache:N})}}performWork(e){return eT(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new th(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}var tf=r(40687);function tp(e){return M(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}function tm(){throw Error("only supported in development mode")}var tg=r(10912);function t_(e,t){var r=(0,y.T)(e)?e:function(){return e},n=function(e){return e.error(r())};return new b(t?function(e){return t.schedule(n,0,e)}:n)}var ty=r(70324),tv=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tb(e){return(0,y.T)(null==e?void 0:e.then)}function tw(e){return Symbol.asyncIterator&&(0,y.T)(null==e?void 0:e[Symbol.asyncIterator])}function tE(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var tk="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tS(e){return(0,y.T)(null==e?void 0:e[tk])}function tT(e){return(0,ty.__asyncGenerator)(this,arguments,function(){var t,r,n;return(0,ty.__generator)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,ty.__await)(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,(0,ty.__await)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,ty.__await)(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function tx(e){return(0,y.T)(null==e?void 0:e.getReader)}var tA=r(57378);function tN(e){if(e instanceof b)return e;if(null!=e){var t,r,n,i;if((0,y.T)(e[m])){return t=e,new b(function(e){var r=t[m]();if((0,y.T)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(tv(e)){return r=e,new b(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(tb(e)){return n=e,new b(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,tA.m)})}if(tw(e))return tC(e);if(tS(e)){return i=e,new b(function(e){var t,r;try{for(var n=(0,ty.__values)(i),a=n.next();!a.done;a=n.next()){var s=a.value;if(e.next(s),e.closed)return}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(tx(e))return tC(tT(e))}throw tE(e)}function tC(e){return new b(function(t){(function(e,t){var r,n,i,a;return(0,ty.__awaiter)(this,void 0,void 0,function(){var s;return(0,ty.__generator)(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=(0,ty.__asyncValues)(e),o.label=1;case 1:return[4,r.next()];case 2:if((n=o.sent()).done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:o.sent()},[3,11];case 6:if(o.trys.push([6,,9,10]),!(n&&!n.done&&(a=r.return)))return[3,8];return[4,a.call(r)];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}var tI=r(41291);function tO(e,t,r){return(void 0===r&&(r=1/0),(0,y.T)(t))?tO(function(r,n){return to(function(e,i){return t(r,e,n,i)})(tN(e(r,n)))},r):("number"==typeof t&&(r=t),(0,ta.N)(function(t,n){var i,a,s,o,l,u,c,d,h;return i=r,s=[],o=0,l=0,u=!1,c=function(){!u||s.length||o||n.complete()},d=function(e){return o<i?h(e):s.push(e)},h=function(t){o++;var r=!1;tN(e(t,l++)).subscribe((0,ts._)(n,function(e){a?d(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(o--;s.length&&o<i;)!function(){var e=s.shift();h(e)}();c()}catch(e){n.error(e)}}))},t.subscribe((0,ts._)(n,d,function(){u=!0,c()})),function(){}}))}var tP=r(90001);function tD(e,t){return void 0===t&&(t=0),(0,ta.N)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function tM(e,t){if(!e)throw Error("Iterable cannot be null");return new b(function(r){(0,tI.N)(r,t,function(){var n=e[Symbol.asyncIterator]();(0,tI.N)(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function tL(e,t){return t?function(e,t){if(null!=e){if((0,y.T)(e[m]))return tN(e).pipe(tD(t),(0,tP.Q)(t));if(tv(e))return new b(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(tb(e))return tN(e).pipe(tD(t),(0,tP.Q)(t));if(tw(e))return tM(e,t);if(tS(e))return new b(function(r){var n;return(0,tI.N)(r,t,function(){n=e[tk](),(0,tI.N)(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return(0,y.T)(null==n?void 0:n.return)&&n.return()}});if(tx(e))return tM(tT(e),t)}throw tE(e)}(e,t):tN(e)}var tR=r(30073),tF=(0,tR.L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function tB(e){var t;return(t=e[e.length-1])&&(0,y.T)(t.schedule)?e.pop():void 0}function tj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tB(e);return tL(e,r)}function tz(e){return(0,ta.N)(function(t,r){var n,i=null,a=!1;i=t.subscribe((0,ts._)(r,void 0,void 0,function(s){n=tN(e(s,tz(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):a=!0})),a&&(i.unsubscribe(),i=null,n.subscribe(r))})}var tU=(0,tR.L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tH=r(40190),tV=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,ty.__extends)(t,e),t.prototype.lift=function(e){var t=new tG(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new tU},t.prototype.next=function(e){var t=this;(0,v.Y)(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,ty.__values)(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,v.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,v.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?p.Kn:(this.currentObservers=null,i.push(e),new p.yU(function(){t.currentObservers=null,(0,tH.o)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new b;return e.source=this,e},t.create=function(e,t){return new tG(e,t)},t}(b),tG=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,ty.__extends)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:p.Kn},t}(tV);function tq(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new tV}:t,n=e.resetOnError,i=void 0===n||n,a=e.resetOnComplete,s=void 0===a||a,o=e.resetOnRefCountZero,l=void 0===o||o;return function(e){var t,n,a,o=0,u=!1,c=!1,d=function(){null==n||n.unsubscribe(),n=void 0},h=function(){d(),t=a=void 0,u=c=!1},p=function(){var e=t;h(),null==e||e.unsubscribe()};return(0,ta.N)(function(e,m){o++,c||u||d();var g=a=null!=a?a:r();m.add(function(){0!=--o||c||u||(n=tZ(p,l))}),g.subscribe(m),!t&&o>0&&(t=new f.Ms({next:function(e){return g.next(e)},error:function(e){c=!0,d(),n=tZ(h,i,e),g.error(e)},complete:function(){u=!0,d(),n=tZ(h,s),g.complete()}}),tN(e).subscribe(t))})(e)}}function tZ(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new f.Ms({next:function(){i.unsubscribe(),e()}});return tN(t.apply(void 0,(0,ty.__spreadArray)([],(0,ty.__read)(r)))).subscribe(i)}}var t$=r(80569),tW=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=t$.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,ty.__extends)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,a=this._timestampProvider,s=this._windowTime;!r&&(n.push(t),i||n.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var a=t.now(),s=0,o=1;o<r.length&&r[o]<=a;o+=2)s=o;s&&r.splice(0,s+1)}},t}(tV);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(o||(o={}));var tK=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,n,i,a=e.kind,s=e.value,o=e.error;if("string"!=typeof a)throw TypeError('Invalid notification, missing "kind"');"N"===a?null==(r=t.next)||r.call(t,s):"E"===a?null==(n=t.error)||n.call(t,o):null==(i=t.complete)||i.call(t)}(this,e)},e.prototype.do=function(e,t,r){var n=this.kind,i=this.value,a=this.error;return"N"===n?null==e?void 0:e(i):"E"===n?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,y.T)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,n="N"===e?tj(t):"E"===e?t_(function(){return r}):"C"===e?E:0;if(!n)throw TypeError("Unexpected notification kind "+e);return n},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function tY(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tO(g,1)(tL(e,tB(e)))}function tQ(e,t,r){var n=(0,y.T)(e)||t||r?{next:e,error:t,complete:r}:e;return n?(0,ta.N)(function(e,t){null==(r=n.subscribe)||r.call(n);var r,i=!0;e.subscribe((0,ts._)(t,function(e){var r;null==(r=n.next)||r.call(n,e),t.next(e)},function(){var e;i=!1,null==(e=n.complete)||e.call(n),t.complete()},function(e){var r;i=!1,null==(r=n.error)||r.call(n,e),t.error(e)},function(){var e,t;i&&(null==(e=n.unsubscribe)||e.call(n)),null==(t=n.finalize)||t.call(n)}))}):g}let tJ=Object.assign(function(e){return JSON.stringify(e,tX)},{reset(){a=new e9(eS.canonicalStringify||1e3)}});function tX(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every(t0))return t;let n=JSON.stringify(r),i=a.get(n);if(!i){r.sort();let e=JSON.stringify(r);i=a.get(e)||r,a.set(n,i),a.set(e,i)}let s=Object.create(e);return i.forEach(e=>{s[e]=t[e]}),s}}return t}function t0(e,t,r){return 0===t||r[t-1]<=e}function t1(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}eb.g&&(e6.canonicalStringify=()=>a.size),tJ.reset();class t2 extends Error{static is(e){return eP(e,"CombinedGraphQLErrors")}static formatMessage=t1;errors;data;extensions;constructor(e,t=e.errors||[]){super(t2.formatMessage(t,{result:e,defaultFormatMessage:t1})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",eD(this),Object.setPrototypeOf(this,t2.prototype)}}let t5=new WeakSet;function t3(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function t4(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}var t9=r(66440);function t6(e){return e.alias?e.alias.value:e.name.value}let t8=new W;function t7(e,t,r){return t8.withValue(!0,()=>{let n=function e(t,r,n,i,a){let{knownChanged:s}=n,o=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){o[l]=null;continue}let t=e(u,r,n,i,eb.g?`${a||""}[${l}]`:void 0);s.has(t)&&s.add(o),o[l]=t}return s.has(o)?o:t}for(let l of r.selections){let r;if(i&&s.add(o),l.kind===P.b.FIELD){let u=t6(l),c=l.selectionSet;if(void 0===(r=o[u]||t[u]))continue;if(c&&null!==r){let o=e(t[u],c,n,i,eb.g?`${a||""}.${u}`:void 0);s.has(o)&&(r=o)}eb.g||(o[u]=r),eb.g&&(i&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(o,u)?.value?Object.defineProperty(o,u,function(e,t,r,n,i){let a=()=>(t8.getValue()||(eb.g&&ew.V1.warn(40,n?`${i} '${n}'`:`anonymous ${i}`,`${r}.${e}`.replace(/^\./,"")),a=()=>t),t);return{get:()=>a(),set(e){a=()=>e},enumerable:!0,configurable:!0}}(u,r,a||"",n.operationName,n.operationType)):(delete o[u],o[u]=r))}if(l.kind===P.b.INLINE_FRAGMENT&&(!l.typeCondition||n.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,n,i,a)),l.kind===P.b.FRAGMENT_SPREAD){let i=l.name.value,s=n.fragmentMap[i]||(n.fragmentMap[i]=n.cache.lookupFragment(i));(0,ew.V1)(s,39,i);let o=function(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(eb.g&&r&&(r.value.kind===P.b.VARIABLE?eb.g&&ew.V1.warn(44):r.value.kind!==P.b.STRING?eb.g&&ew.V1.warn(45):"migrate"!==r.value.value&&eb.g&&ew.V1.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}(l);"mask"!==o&&(r=e(t,s.selectionSet,n,"migrate"===o,a))}s.has(r)&&s.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&s.add(o),s.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,t9.G)(n),n})}var re=r(41706);function rt(e){return 7!==e&&8!==e}function rr(e){return!!e.errors?.length}function rn(e,t=()=>void 0){return r=>new b(n=>{let i=t();return r.subscribe({next(t){let r;try{r=e(t,i)}catch(e){n.error(e)}void 0!==r&&n.next(r)},error(e){n.error(e)},complete(){n.complete()}})})}function ri(e){let t={data:e.data};return e.error&&(t.error=e.error),t}function ra(e){(0,ew.V1)("Document"===e.kind,6),(0,ew.V1)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,ew.V1)("FragmentDefinition"===t.kind,8),t}let rs=Array.isArray;function ro(e){return Array.isArray(e)&&e.length>0}function rl(e){let t=new Map;return function(r=e){let n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function ru(e,t,r,n){if(r.kind===P.b.INT||r.kind===P.b.FLOAT)e[t.value]=Number(r.value);else if(r.kind===P.b.BOOLEAN||r.kind===P.b.STRING)e[t.value]=r.value;else if(r.kind===P.b.OBJECT){let i={};r.fields.map(e=>ru(i,e.name,e.value,n)),e[t.value]=i}else if(r.kind===P.b.VARIABLE){let i=(n||{})[r.name.value];e[t.value]=i}else if(r.kind===P.b.LIST)e[t.value]=r.values.map(e=>{let r={};return ru(r,t,e,n),r[t.value]});else if(r.kind===P.b.ENUM)e[t.value]=r.value;else if(r.kind===P.b.NULL)e[t.value]=null;else throw(0,ew.vA)(19,t.value,r.kind)}function rc(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&ru(t,e.variable.name,e.defaultValue)}),t}var rd=r(49445),rh=r(92104),rf=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,ty.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(tV);function rp(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let n=t&&t[r];return(0,ew.V1)(n,9,r),n||null}default:return null}}function rm(e){let t;for(let r of(eT(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,ew.vA)(12)}function rg(e){return"Field"===e.kind}function r_({directives:e},t){return!e||!e.length||(function(e){let t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let r=e.arguments,n=e.name.value;(0,ew.V1)(r&&1===r.length,16,n);let i=r[0];(0,ew.V1)(i.name&&"if"===i.name.value,17,n);let a=i.value;(0,ew.V1)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,n),t.push({directive:e,ifArgument:i})}),t})(e).every(({directive:e,ifArgument:r})=>{let n=!1;return"Variable"===r.value.kind?(n=t&&t[r.value.name.value],(0,ew.V1)(void 0!==n,15,e.name.value)):n=r.value.value,"skip"===e.name.value?!n:n})}function ry(e,{data:t,...r},{data:n,...i},a){return(0,re.L)(r,i)&&function e(t,r,n,i){if(r===n)return!0;let a=new Set;return t.selections.every(t=>{if(a.has(t)||(a.add(t),!r_(t,i.variables)||rv(t)))return!0;if(rg(t)){let a=t6(t),s=r&&r[a],o=n&&n[a],l=t.selectionSet;if(!l)return(0,re.L)(s,o);let u=Array.isArray(s),c=Array.isArray(o);if(u!==c)return!1;if(u&&c){let t=s.length;if(o.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,s[r],o[r],i))return!1;return!0}return e(l,s,o,i)}{let a=rp(t,i.fragmentMap);if(a)return!!rv(a)||e(a.selectionSet,r,n,i)}})}(rm(e).selectionSet,t,n,{fragmentMap:t3(t4(e)),variables:a})}function rv(e){return!!e.directives&&e.directives.some(rb)}function rb(e){return"nonreactive"===e.name.value}function rw(e){let t=ex(e);return(0,ew.V1)(t&&"query"===t.operation,13),t}var rE=r(69135);let{assign:rk,hasOwnProperty:rS}=Object,rT={loading:!0,networkStatus:rh.p.loading,data:void 0,dataState:"empty",partial:!0},rx={loading:!1,networkStatus:rh.p.ready,data:void 0,dataState:"empty",partial:!0};class rA{options;queryName;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=n,initialFetchPolicy:a="standby"===i?n:i}=t;this.lastQuery=r,this.options={...t,initialFetchPolicy:a,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let s=ex(this.query);this.queryName=s&&s.name&&s.name.value}initializeObservablesQueue(){this.subject=new rf({query:this.query,variables:this.variables,result:rT,meta:{}});let e=this.subject.pipe(tQ({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),rn(({query:e,variables:t,result:r,meta:n},i)=>{let{shouldEmit:a}=n;if(r===rT&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===a)return;if(1===a)return l();let{previous:s,previousVariables:o}=i;if(s){let n=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,a=i?n.nonReactiveQuery:e;if((i||n.hasNonreactiveDirective?ry(a,s,r,t):(0,re.L)(s,r))&&(0,re.L)(o,t))return}if(!(3===a&&(!this.options.notifyOnNetworkStatusChange||(0,re.L)(s,r))))return l();function l(){return i.previous=r,i.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new tV,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.queryManager.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=this.queryManager.prioritizeCacheValues?"cache-first":e||this.options.fetchPolicy,r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?rh.p.ready:rh.p.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:rh.p.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:rh.p.loading};case"standby":return rx;default:return rT}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,n="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!rN({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((n||i)&&this.unsubscribeFromCache?.(),n||!i)return;let a={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(a.lastDiff=void 0),a.lastOwnDiff===e)return;let{result:n}=this.subject.getValue();(e.complete||!n.error&&n!==rT&&n!==rx)&&((0,re.L)(n.data,e.result)||this.scheduleNotify())}},s=this.queryManager.cache.watch(a);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===rh.p.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===rT&&(t=this.getInitialResult()),(0,re.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",eb.g&&e&&rS.call(e,"variables")){let t=rw(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!eb.g||ew.V1.warn(77,e,t.name?.value||t)}return e&&!(0,re.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:rh.p.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:n,updateQuery:i}){(0,ew.V1)("cache-only"!==this.options.fetchPolicy,78,k(this.query,"(anonymous)"));let a={...(0,eN.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:n}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};a.query=this.transformDocument(a.query),this.lastQuery=e?this.transformDocument(this.options.query):a.query;let s=!1,o="no-cache"!==this.options.fetchPolicy;o||(0,ew.V1)(i,79);let{finalize:l,pushNotification:u}=this.pushOperation(rh.p.fetchMore);return u({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3}),this.queryManager.fetchQuery(a,rh.p.fetchMore).then(e=>{if(l(),o){let t=this.getCacheDiff();this.queryManager.cache.batch({update:t=>{i?t.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1},t=>i(t,{fetchMoreResult:e.data,variables:a.variables})):t.writeQuery({query:a.query,variables:a.variables,data:e.data})},onWatchUpdated:(e,r)=>{e.watcher!==this||(0,re.L)(r.result,t.result)||(s=!0)}})}else{let t=this.getCurrentResult(),r=i(t.data,{fetchMoreResult:e.data,variables:a.variables});u({kind:"N",value:{...t,networkStatus:rh.p.ready,loading:!1,data:r,dataState:"streaming"===t.dataState?"streaming":"complete"},source:"network"})}return this.maskResult(e)}).finally(()=>{l(),o&&!s&&u({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})})}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:n}=e,{error:i}=t;if(i)return void(n?n(i):ew.V1.error(80,i));r&&this.updateQuery((e,n)=>r(e,{subscriptionData:t,...n}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,eN.o)(this.options,e||{});rk(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,re.L)(this.variables,e))?ri(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:rh.p.setVariables}):ri(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:n}=this.getCacheDiff({optimistic:!1}),i=e(r,{variables:this.variables,complete:!!n,previousData:r});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:n=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:n}):"variables-changed"===e?t.fetchPolicy=n:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,n){let i=this.options.fetchPolicy;e.context??={};let a=!1,s=e=>new b(r=>{try{return e.subscribe({next(e){a=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{a||(d.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:i}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{a=!0},fetchQueryOperator:s,observableQuery:this}),{query:u,variables:c}=this,d={abort:()=>{f.unsubscribe()},query:u,variables:c};this.activeOperations.add(d);let h=t==rh.p.refetch||t==rh.p.setVariables,f=(o=o.pipe(n,tq())).pipe(tQ({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?d.override=t:delete d.override},finalize:()=>this.activeOperations.delete(d)})).subscribe({next:e=>{let t={};h&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(h=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:f,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this;if(!r||!this.hasObservers()||"cache-only"===t){eb.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(eb.g&&ew.V1.warn(81,k(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{this.pollingInfo&&(rt(this.networkStatus)||this.options.skipPollAttempt?.()?i():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:rh.p.poll}).then(i,i))},i=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};i()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){var r;let n,i,a;this.isTornDown=!1;let{newNetworkStatus:s}=t||{};this.queryManager.obsQueries.add(this);let o=s===rh.p.refetch||s===rh.p.poll,l=this.variables,u=this.options.fetchPolicy,c=(0,eN.o)(this.options,e||{}),d=o?c:rk(this.options,c),h=this.transformDocument(d.query);this.lastQuery=h,e&&"variables"in e&&(d.variables=this.getVariablesWithDefaults(e.variables)),!o&&(this.updatePolling(),e&&e.variables&&!(0,re.L)(e.variables,l)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===u||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===s&&(s=rh.p.setVariables)));let f=this.networkStatus;s||(s=rh.p.loading,f!==rh.p.loading&&e?.variables&&!(0,re.L)(e.variables,l)&&(s=rh.p.setVariables),"standby"===d.fetchPolicy&&(s=rh.p.ready)),"standby"===d.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:p,operator:m}=(r=e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source&&!e.value.loading)return e.value}},n="standby"===d.fetchPolicy?{data:void 0}:void 0,{promise:new Promise((e,t)=>{i=e,a=t}),operator:tQ({next(e){try{let t=r(e);void 0!==t&&(n=t)}catch(e){a(e)}},finalize:()=>{if(n)i(n);else{let e="The operation was aborted.",t="AbortError";a("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}),{subscription:g,observable:_,fromLink:y}=this.fetch(d,s,h,m);o||!y&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=g);let v=Object.assign((0,rE.X)(p.then(e=>ri(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=_.subscribe({}),t=()=>e.unsubscribe();return p.then(t,t),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,re.L)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:rh.p.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:n}=this,i=()=>{this.activeOperations.delete(a)},a={override:e,abort:()=>{t=!0,i()},query:r,variables:n};return this.activeOperations.add(a),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:r,variables:n,meta:{...i}})}}}calculateNetworkStatus(e){if(e===rh.p.streaming)return e;let t=Array.from(this.activeOperations.values()).findLast(e=>rN(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?rx:rT,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=rn(e=>{let t,{query:r,variables:n,meta:i}=e;if("setResult"===e.source)return{query:r,variables:n,result:e.value,meta:i};if("C"===e.kind||!rN(e,this))return;let a=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===rh.p.ready&&t.partial&&(!this.options.returnPartialData||a.result.networkStatus===rh.p.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...rN(a,e)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:rh.p.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=rN(a,e)?a.result:this.getInitialResult(i.fetchPolicy),{resetError:n}=e.value,s=n?void 0:r.error,o=s?rh.p.error:rh.p.ready;t={...r,error:s,networkStatus:o}}return(0,ew.V1)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=rt(t.networkStatus),{query:r,variables:n,result:t=this.maskResult(t),meta:i}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,n){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,n):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function rN(e,t){return!!(e&&t&&e.query===t.query&&(0,re.L)(e.variables,t.variables))}let rC={},rI=new WeakMap;function rO(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return rI.set(e,(rI.get(e)+1)%1e15),r.apply(this,arguments)})}let rP=new WeakMap;class rD{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,n=(rP.get(e)||0)+1;rP.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e,rI.has(r)||(rI.set(r,0),rO(r,"evict"),rO(r,"modify"),rO(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===rI.get(this.cache)&&(0,re.L)(t,r.variables)&&(0,re.L)(e.data,r.result.data))}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:n}=this.queryManager;return n.isIncrementalResult(t)?(this.incremental||=n.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){let a={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let s=0===i,o=s?void 0:this.cache.diff(a),l=this.maybeHandleIncrementalResult(o?.result,e,t);return s||(rM(l,n)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===i}),this.lastWrite={result:l,variables:r,dmCount:rI.get(this.cache)};else if(o&&o.complete){l={...l,data:o.result};return}let n=e.diff(a);n.complete&&(l={...l,data:n.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let n=[],i=0===t.cacheWriteBehavior,a=this.maybeHandleIncrementalResult(i?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(a={...a,errors:[]}),rr(a)&&"none"===t.errorPolicy)return Promise.resolve(a);let s=()=>({...a,dataState:this.hasNext?"streaming":"complete"});if(!i&&rM(a,t.errorPolicy)){n.push({result:a.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let i=e[r],{query:a,variables:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=i(l,{mutationResult:s(),queryName:a&&k(a)||void 0,queryVariables:o});e&&n.push({result:e,dataId:"ROOT_QUERY",query:a,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(s())),n.length>0||(o||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];if(this.queryManager.refetchQueries({updateCache:e=>{i||n.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!i){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(a={...a,data:r.result})}this.hasNext||r(e,a,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:o,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>a)}return Promise.resolve(a)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:rC}):e;return r!==rC&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){ew.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){0!==i&&(rM(e,n)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r}),this.queryManager.broadcastQueries())}}function rM(e,t="none"){let r=!rr(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class rL{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new th(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,ew.vA)(83))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:n,refetchQueries:i=[],awaitRefetchQueries:a=!1,update:s,onQueryUpdated:o,fetchPolicy:l,errorPolicy:u,keepRootFields:c,context:d}){let h=new rD(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:f}=this.getDocumentInfo(e);t=this.getVariables(e,t),f&&(eb.g&&(0,ew.V1)(this.localState,84,k(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:d}));let p=this.mutationStore&&(this.mutationStore[h.id]={mutation:e,variables:t,loading:!0,error:null}),m=r&&h.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:d,updateQueries:n,update:s,keepRootFields:c});return this.broadcastQueries(),new Promise((f,g)=>{let _={};return this.getObservableFromLink(e,{...d,optimisticResponse:m?r:void 0},t,{},!1).observable.pipe(rR(),tO(r=>{let f={...r};return tL(h.markMutationResult(f,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:d,update:s,updateQueries:n,awaitRefetchQueries:a,refetchQueries:i,removeOptimistic:m?h.id:void 0,onQueryUpdated:o,keepRootFields:c}))})).pipe(to(e=>{if(rr(e)&&"none"===u)throw new t2(e);return p&&(p.loading=!1,p.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!h.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:_})};rr(t)&&(r.error=new t2(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),f(r)}},error:e=>(p&&(p.loading=!1,p.error=e),m&&this.cache.removeOptimistic(h.id),this.broadcastQueries(),"ignore"===u)?f({data:void 0}):"all"===u?f({data:void 0,error:e}):void g(e)})})}fetchQuery(e,t){return eT(e.query,O.cE.QUERY),(async()=>{var r,n,i;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(rn(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return ri(e.value)}})),i="object"==typeof(n={defaultValue:{data:void 0}}),new Promise(function(e,t){var a,s=!1;r.subscribe({next:function(e){a=e,s=!0},error:t,complete:function(){s?e(a):i?e(n.defaultValue):t(new tF)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new e4(eS["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){let r,n=ex(e),i={hasClientExports:tl(["client","export"],e,!0),hasForcedResolvers:(r=!1,M(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(r=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return D}}}),r),hasNonreactiveDirective:tl(["nonreactive"],e),hasIncrementalDirective:tl(["defer"],e),nonReactiveQuery:M(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:P.b.DIRECTIVE,name:{kind:P.b.NAME,value:"nonreactive"}}]}}}),clientQuery:tl(["client"],e)?e:null,serverQuery:function(e,t){var r;eT(t);let n=rl(""),i=rl(""),a=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!rs(r)){if(r.kind===P.b.OPERATION_DEFINITION)return n(r.name&&r.name.value);if(r.kind===P.b.FRAGMENT_DEFINITION)return i(r.name.value)}return ew.V1.error(14),null},s=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===P.b.OPERATION_DEFINITION&&++s;let o=function(e){let t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let n=t.get(e.name.value);return!n&&r.size&&r.forEach((t,r)=>{r(e)&&(n=t)}),n}}(e),l=e=>ro(e)&&e.map(o).some(e=>e&&e.remove),u=new Map,c=!1,d={enter(e){if(l(e.directives))return c=!0,null}},h=M(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,n,i){let s=a(i);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,n,i){if(l(e.directives))return c=!0,null;let s=a(i);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,n){u.set(JSON.stringify(n),e)},leave:(e,t,r,n)=>e===u.get(JSON.stringify(n))?e:s>0&&e.selectionSet.selections.every(e=>e.kind===P.b.FIELD&&"__typename"===e.name.value)?(i(e.name.value).removed=!0,c=!0,null):void 0},Directive:{leave(e){if(o(e))return c=!0,null}}});if(!c)return t;let f=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{f(i(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),p=new Set;h.definitions.forEach(e=>{e.kind===P.b.OPERATION_DEFINITION?f(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{p.add(e)}):e.kind!==P.b.FRAGMENT_DEFINITION||0!==s||i(e.name.value).removed||p.add(e.name.value)}),p.forEach(e=>{f(i(e)).fragmentSpreads.forEach(e=>{p.add(e)})});let m={enter(e){let t;if(t=e.name.value,!p.has(t)||i(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===P.b.FRAGMENT_SPREAD&&e(r[t.name.value],r))}(ex(r=M(h,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=f(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))||ra(r),t3(t4(r)))?r:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:rc(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,i)}let r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,n=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(n)}}watchQuery(e){eT(e.query,O.cE.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new rA({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,ew.vA)(85)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),n.set(e,!1);else if((0,eH.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=e8(this.transform(e));r.set(t,k(e)),n.set(t,!1)}else(0,eH.U)(e)&&e.query&&i.add(e)}),this.obsQueries.forEach(r=>{let i=e8(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:a,options:{fetchPolicy:s}}=r;("active"!==e||"standby"!==s)&&("active"===e||a&&n.has(a)||i&&n.has(i))&&(t.add(r),a&&n.set(a,!0),i&&n.set(i,!0))}),i.size&&i.forEach(e=>{let r=new rA({queryManager:this,options:{...e,fetchPolicy:"network-only"}});t.add(r)}),eb.g&&n.size&&n.forEach((e,t)=>{if(!e){let e=r.get(t);e?eb.g&&ew.V1.warn(86,e):eb.g&&ew.V1.warn(87)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:n}=r.options;(e||"standby"!==n)&&"cache-only"!==n&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:n}=e,{fetchPolicy:i,errorPolicy:a="none",context:s={},extensions:o={}}=e;return eT(r,O.cE.SUBSCRIPTION),r=this.transform(r),n=this.getVariables(r,n),eb.g&&(0,ew.V1)(!this.getDocumentInfo(r).hasClientExports||this.localState,88,k(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?tL(this.localState.getExportedVariables({client:this.client,document:r,variables:n,context:s})):tj(n)).pipe(tO(e=>{var n;let{observable:l,restart:u}=this.getObservableFromLink(r,s,e,o),c=new rD(this);return t=u,l.pipe(to(t=>{c.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:a,cacheWriteBehavior:2*("no-cache"!==i)});let n={data:t.data??void 0};return rr(t)?n.error=new t2(t):eB(t)&&(n.error=t.extensions[eF],delete t.extensions[eF]),t.extensions&&Object.keys(t.extensions).length&&(n.extensions=t.extensions),n.error&&"none"===a&&(n.data=void 0),"ignore"===a&&delete n.error,n}),tz(e=>"ignore"===a?tj({data:void 0}):tj({data:void 0,error:e})),(n=e=>!!(e.data||e.error),(0,ta.N)(function(e,t){var r=0;e.subscribe((0,ts._)(t,function(e){return n.call(void 0,e,r++)&&t.next(e)}))})))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new j(!1);getObservableFromLink(e,t,r,n,i=t?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:s,clientQuery:o,operationType:l,hasIncrementalDirective:u}=this.getDocumentInfo(e),c=k(e),d={client:this.client};if(s){let{inFlightLinkObservables:e,link:o}=this;try{let u=this.incrementalHandler.prepareRequest({query:s,variables:r,context:{...this.defaultContext,...t,queryDeduplication:i},extensions:n});function h(e){return new b(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let n=r();return a.restart||=()=>{n.unsubscribe(),n=r()},()=>{n.unsubscribe(),a.restart=void 0}})}if(t=u.context,i){var f,p,m,g,_,y,v,w,E;let t=e8(s),n=tJ(r);(a=e.lookup(t,n)).observable||(a.observable=tc(o,u,d).pipe(h,(f=()=>{e.peek(t,n)===a&&e.remove(t,n)},(0,ta.N)(function(e,t){try{e.subscribe(t)}finally{t.add(f)}})),l===O.cE.SUBSCRIPTION?tq():(p={refCount:!0},E=!1,p&&!0?(w=void 0===(_=p.bufferSize)?1/0:_,m=void 0===(y=p.windowTime)?1/0:y,E=void 0!==(v=p.refCount)&&v,g=p.scheduler):w=null!=p?p:1/0,tq({connector:function(){return new tW(w,m,g)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:E}))))}else a.observable=tc(o,u,d).pipe(h)}catch(e){a.observable=t_(()=>e)}}else a.observable=tj({data:{}});if(o){let{operation:n}=ex(e);eb.g&&(0,ew.V1)(this.localState,89,n[0].toUpperCase()+n.slice(1),c??"(anonymous)"),(0,ew.V1)(!u,90,n[0].toUpperCase()+n.slice(1),c??"(anonymous)"),a.observable=a.observable.pipe(tO(e=>tL(this.localState.execute({client:this.client,document:o,remoteResult:e,context:t,variables:r}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(tz(e=>{var t;throw t=e=ej(e),t5.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:n}){let i=t.lastRequestId=this.generateRequestId(),{errorPolicy:a}=e,s=this.cache.transformForLink(e.query);return this.getObservableFromLink(s,e.context,e.variables).observable.pipe(to(i=>{let o=t.markQueryResult(i,{...e,document:s,cacheWriteBehavior:r}),l=rr(o);if(l&&"none"===a)throw t.resetLastWrite(),n?.resetNotifications(),new t2(o);let u={data:o.data,...t.hasNext?{loading:!0,networkStatus:rh.p.streaming,dataState:"streaming",partial:!0}:{dataState:o.data?"complete":"empty",loading:!1,networkStatus:rh.p.ready,partial:!o.data}};return l&&("none"===a&&(u.data=void 0,u.dataState="empty"),"ignore"!==a&&(u.error=new t2(o),"streaming"!==u.dataState&&(u.networkStatus=rh.p.error))),u}),tz(e=>{if(i>=t.lastRequestId&&"none"===a)throw t.resetLastWrite(),n?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:rh.p.ready,partial:!0};return"ignore"!==a&&(r.error=e,r.networkStatus=rh.p.error),tj(r)}))}fetchObservableWithInfo(e,{networkStatus:t=rh.p.loading,query:r=e.query,fetchQueryOperator:n=e=>e,onCacheHit:i=()=>{},observableQuery:a}){let s,o,l=this.getVariables(r,e.variables),u=this.defaultOptions.watchQuery,{fetchPolicy:c=u&&u.fetchPolicy||"cache-first",errorPolicy:d=u&&u.errorPolicy||"none",returnPartialData:h=!1,notifyOnNetworkStatusChange:f=!0,context:p={}}=e;this.prioritizeCacheValues&&("network-only"===c||"cache-and-network"===c)&&(c="cache-first");let m=Object.assign({},e,{query:r,variables:l,fetchPolicy:c,errorPolicy:d,returnPartialData:h,notifyOnNetworkStatusChange:f,context:p}),g=new rD(this,a),_=r=>{m.variables=r;let s="no-cache"===c?0:t===rh.p.refetch&&"merge"!==m.refetchWritePolicy?1:2,o=this.fetchQueryByPolicy(m,{queryInfo:g,cacheWriteBehavior:s,onCacheHit:i,observableQuery:a});return o.observable=o.observable.pipe(n),"standby"!==m.fetchPolicy&&a?.applyNextFetchPolicy("after-fetch",e),o},y=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,e=>{v.next({kind:"E",error:e,source:"network"})});let v=new tV;if(this.getDocumentInfo(m.query).hasClientExports)eb.g&&(0,ew.V1)(this.localState,91,k(m.query,"(anonymous)")),s=tL(this.localState.getExportedVariables({client:this.client,document:m.query,variables:m.variables,context:m.context})).pipe(tO(e=>_(e).observable)),o=!0;else{let e=_(m.variables);o=e.fromLink,s=e.observable}return{observable:new b(e=>{e.add(y),s.subscribe(e),v.subscribe(e)}).pipe(tq()),fromLink:o}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:n=r?(0,rd.v)("refetchQueries"):void 0,onQueryUpdated:i}){let a=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy)return;let t=e.getCurrentResult();a.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let s=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&n||!1,removeOptimistic:n,onWatchUpdated(e,r,n){let o=e.watcher;if(o instanceof rA&&!t.has(o)){if(t.add(o),i){a.delete(o);let e=i(o,r,n);return!0===e&&(e=o.refetch().retain()),!1!==e&&s.set(o,e),e}null!==i&&"cache-only"!==o.options.fetchPolicy&&a.set(o,{oq:o,lastDiff:n,diff:r})}}})}return a.size&&a.forEach(({oq:e,lastDiff:t,diff:r})=>{let n;i&&(r||(r=e.getCacheDiff()),n=i(e,r,t)),i&&!0!==n||(n=e.refetch().retain()),!1!==n&&s.set(e,n)}),n&&this.cache.removeOptimistic(n),s}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:r}=e;if(eb.g){let r,{fetchPolicy:n,cause:i={}}=e,a=ex(t)?.operation;this.dataMasking&&"no-cache"===n&&(r=!0,M(t,{FragmentSpread:e=>{if(!(r=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return D}}),!r)&&!this.noCacheWarningsByCause.has(i)&&(this.noCacheWarningsByCause.add(i),eb.g&&ew.V1.warn(92,k(t,`Unnamed ${a??"operation"}`)))}return this.dataMasking?function(e,t,r){let n=ex(t);return((0,ew.V1)(n,43),null==e)?e:t7(e,n.selectionSet,{operationType:n.operation,operationName:n.name?.value,fragmentMap:t3(t4(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(r,t,this.cache):r}maskFragment(e){let{data:t,fragment:r,fragmentName:n}=e;return this.dataMasking?function(e,t,r,n){let i=t.definitions.filter(e=>e.kind===P.b.FRAGMENT_DEFINITION);void 0===n&&((0,ew.V1)(1===i.length,41,i.length),n=i[0].name.value);let a=i.find(e=>e.name.value===n);return((0,ew.V1)(!!a,42,n),null==e||(0,re.L)(e,{}))?e:t7(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:t3(t4(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,r,this.cache,n):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:n,returnPartialData:i,context:a},{cacheWriteBehavior:s,onCacheHit:o,queryInfo:l,observableQuery:u}){let c=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),d=(r,s)=>{var l;let u=r.result;eb.g&&!i&&null!==u&&(l=r.missing,eb.g&&l&&eb.g&&ew.V1.debug(82,l));let c=e=>(r.complete||i||(e=void 0),{data:e,dataState:r.complete?"complete":e?"partial":"empty",loading:rt(s),networkStatus:s,partial:!r.complete}),d=e=>tj({kind:"N",value:c(e),source:"cache"});return(r.complete||i)&&this.getDocumentInfo(e).hasForcedResolvers?(eb.g&&(0,ew.V1)(this.localState,93,k(e,"(anonymous)")),o(),tL(this.localState.execute({client:this.client,document:e,remoteResult:u?{data:u}:void 0,context:a,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0}).then(e=>({kind:"N",value:c(e.data||void 0),source:"cache"})))):d("none"===n&&s===rh.p.refetch&&r.missing?void 0:u||void 0)},h=()=>this.getResultsFromLink({query:e,variables:t,context:a,fetchPolicy:r,errorPolicy:n},{cacheWriteBehavior:s,queryInfo:l,observableQuery:u}).pipe(rR(),(0,ta.N)(function(e,t){e.subscribe((0,ts._)(t,function(e){t.next(tK.createNext(e))},function(){t.next(tK.createComplete()),t.complete()},function(e){t.next(tK.createError(e)),t.complete()}))}),to(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=c();if(e.complete)return{fromLink:!1,observable:d(e,rh.p.ready)};if(i)return{fromLink:!0,observable:tY(d(e,rh.p.loading),h())};return{fromLink:!0,observable:h()}}case"cache-and-network":{let e=c();if(e.complete||i)return{fromLink:!0,observable:tY(d(e,rh.p.loading),h())};return{fromLink:!0,observable:h()}}case"cache-only":return{fromLink:!1,observable:tY(d(c(),rh.p.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:h()};case"standby":return{fromLink:!1,observable:E}}}}function rR(){let e=!1;return tQ({next(){e=!0},complete(){(0,ew.V1)(e,94)}})}let rF=!1;class rB{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){eb.g&&((0,ew.V1)(e.cache,65),(0,ew.V1)(e.link,66));let{cache:t,documentTransform:r,ssrMode:n=!1,ssrForceFetchDelay:i=0,queryDeduplication:a=!0,defaultOptions:s,defaultContext:o,assumeImmutableResults:l=t.assumeImmutableResults,localState:u,devtools:c,dataMasking:d,link:h,incrementalHandler:f=new tu}=e;this.link=h,this.cache=t,this.queryDeduplication=a,this.defaultOptions=s||{},this.devtoolsConfig={...c,enabled:c?.enabled??eb.g},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=tg.r,this.queryManager=new rL({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:a,ssrMode:n,dataMasking:!!d,clientOptions:e,incrementalHandler:f,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=n||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools()}connectToDevTools(){if("undefined"==typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!rF&&eb.g&&(rF=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&eb.g&&ew.V1.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,tf.l)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,tf.l)(this.defaultOptions.query,e)),eb.g&&((0,ew.V1)("cache-and-network"!==e.fetchPolicy,67),(0,ew.V1)("standby"!==e.fetchPolicy,68),(0,ew.V1)(e.query,69),(0,ew.V1)("Document"===e.query.kind,70),(0,ew.V1)(!e.returnPartialData,71),(0,ew.V1)(!e.pollInterval,72),(0,ew.V1)(!e.notifyOnNetworkStatusChange,73)),this.queryManager.query(e)}mutate(e){let t=(0,tf.l)((0,eN.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return eb.g&&((0,ew.V1)(t.mutation,74),(0,ew.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,75)),eT(t.mutation,O.cE.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe(to(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)}).pipe(to(r=>{if(eb.g&&t){let t=this.queryManager.maskFragment({...e,data:r.data});return{...r,data:t}}return r}))}readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return tc(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((e,t)=>{r.push(t),n.push(e)});let i=Promise.all(n);return i.queries=r,i.results=n,i.catch(e=>{eb.g&&ew.V1.debug(76,e)}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new th(tp);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}eb.g&&(rB.prototype.getMemoryInternals=tm);class rj extends eA{constructor(e){super((t,r)=>{let{...n}=t;return Object.defineProperty(n,"client",{enumerable:!1,value:t.client}),new b(i=>{let a=!1;return Promise.resolve(n).then(r=>e(t.getContext(),r)).then(t.setContext).then(()=>{a||r(t).subscribe(i)}).catch(i.error.bind(i)),()=>{a=!0}})})}}class rz extends eA{constructor(e){super((t,r)=>new b(n=>{let i,a,s;try{i=r(t).subscribe({next:i=>{let o=t.client.queryManager.incrementalHandler,l=o.isIncrementalResult(i)?o.extractErrors(i):i.errors;l?s=e({error:new t2(i,l),result:i,operation:t,forward:r}):eB(i)&&(s=e({error:i.extensions[eF],result:i,operation:t,forward:r})),(a=s?.subscribe(n))||n.next(i)},error:i=>{s=e({operation:t,error:ej(i),forward:r}),(a=s?.subscribe(n))||n.error(i)},complete:()=>{s||n.complete()}})}catch(i){e({error:ej(i),operation:t,forward:r}),n.error(i)}return()=>{i&&i.unsubscribe(),a&&a.unsubscribe()}}))}}let rU={kind:P.b.FIELD,name:{kind:P.b.NAME,value:"__typename"}},rH=Object.assign(function(e){return M(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===P.b.OPERATION_DEFINITION)return;let{selections:n}=e;if(!(!n||n.some(e=>e.kind===P.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===P.b.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...n,rU]}}}})},{added:e=>e===rU});function rV(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function rG(e,t){let r=t,n=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,ew.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,ew.V1)(1===n.length,11,n.length),r=n[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class rq{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}watchFragment(e){let t,{fragment:r,fragmentName:n,from:i,optimistic:a=!0,...s}=e,o=this.getFragmentDoc(r,n),l=void 0===i||"string"==typeof i?i:this.identify(i);if(eb.g){let e=n||ra(r).name.value;!l&&eb.g&&ew.V1.warn(109,e)}let u={...s,returnPartialData:!0,id:l,query:o,optimistic:a};return new b(r=>this.watch({...u,immediate:!0,callback:n=>{let i=n.result;if(null===i&&(i={}),t&&ry(o,{data:t.result},{data:i},e.variables))return;let a={data:i,dataState:n.complete?"complete":"partial",complete:!!n.complete};n.missing&&(a.missing=n.missing.missing),t={...n,result:i},r.next(a)}}))}getFragmentDoc=ev(rG,{max:eS["cache.fragmentQueryDocuments"]||1e3,cache:N});readFragment(e,t=!!e.optimistic){return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({id:e,data:t,fragment:r,fragmentName:n,...i}){return this.write(Object.assign(i,{query:this.getFragmentDoc(r,n),dataId:e,result:t}))}updateQuery(e,t){return this.batch({update(r){let n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(r){let n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment({...e,data:i}),i)}})}}eb.g&&(rq.prototype.getMemoryInternals=tm);let{hasOwnProperty:rZ}=Object.prototype,r$=function(e,t,r){return this.merge(e[r],t[r])};class rW{reconciler;constructor(e=r$){this.reconciler=e}merge(e,t,...r){return(0,eH.U)(t)&&(0,eH.U)(e)?(Object.keys(t).forEach(n=>{if(rZ.call(e,n)){let i=e[n];if(t[n]!==i){let a=this.reconciler(e,t,n,...r);a!==i&&((e=this.shallowCopyForMerge(e))[n]=a)}}else(e=this.shallowCopyForMerge(e))[n]=t[n]}),e):t}isObject=eH.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,eH.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function rK(e){return{__ref:String(e)}}let{hasOwnProperty:rY}=Object.prototype;function rQ({__typename:e,id:t,_id:r},n){if("string"==typeof e&&(n&&(n.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let rJ={dataIdFromObject:rQ,resultCaching:!0},rX=/^[_a-z][_0-9a-z]*/i;function r0(e){let t=e.match(rX);return t?t[0]:e}function r1(e){return(0,eH.U)(e)&&!rV(e)&&!rs(e)}function r2(e,t){let r=t3(t4(e));return{fragmentMap:r,lookupFragment(e){let n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}let r5={},r3=()=>r5,r4={};class r9{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),rY.call(this.data,e)){let r=this.data[e];if(r&&rY.call(r,t))return r[t]}return"__typename"===t&&rY.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ne?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),rY.call(this.data,e))?this.data[e]:this instanceof ne?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;rV(e)&&(e=e.__ref),rV(t)&&(t=t.__ref);let n="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(!i)return;(0,ew.V1)("string"==typeof r,95);let a=new rW(nr).merge(n,i);if(this.data[r]=a,a!==n&&(delete this.refs[r],this.group.caching)){let e={};n||(e.__exists=1),Object.keys(i).forEach(t=>{if(!n||n[t]!==a[t]){e[t]=1;let r=r0(t);r===t||this.policies.hasKeyArgs(a.__typename,r)||(e[r]=1),void 0!==a[t]||this instanceof ne||delete a[t]}}),e.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let n=this.lookup(e);if(n){let i={},a=!1,s=!0,o={DELETE:r5,INVALIDATE:r4,isReference:rV,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||rK(e)}:t,{store:this})};if(Object.keys(n).forEach(l=>{let u=r0(l),c=n[l];if(void 0===c)return;let d="function"==typeof t?t:t[l]||(r?void 0:t[u]);if(d){let t=d===r3?r5:d((0,t9.G)(c),{...o,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===r4)this.group.dirty(e,l);else if(t===r5&&(t=void 0),t!==c&&(i[l]=t,a=!0,c=t,eb.g)){let e=e=>{if(void 0===this.lookup(e.__ref))return eb.g&&ew.V1.warn(96,e),!0};if(rV(t))e(t);else if(Array.isArray(t)){let r,n=!1;for(let i of t){if(rV(i)){if(n=!0,e(i))break}else if("object"==typeof i&&i){let[e]=this.policies.identify(i);e&&(r=i)}if(n&&void 0!==r){eb.g&&ew.V1.warn(97,r);break}}}}}void 0!==c&&(s=!1)}),a)return this.merge(e,i),s&&(this instanceof ne?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let n=this.lookup(e);if(n){let i=this.getFieldValue(n,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,a?{[a]:r3}:r3,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(rY.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ne&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{rY.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&rY.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof ne?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{rY.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof ne;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!rY.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let n=new Set([r]);n.forEach(e=>{rV(e)&&(t[e.__ref]=!0),(0,eH.U)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,eH.U)(r)&&n.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,t9.G)(rV(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>rV(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return rK(e);if(rV(e))return e;let[r]=this.policies.identify(e);if(r){let n=rK(r);return t&&this.merge(r,e),n}};get supportsResultCaching(){return this.group.caching}}class r6{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?eg():null,this.keyMaker=new j}depend(e,t){if(this.d){this.d(t+"#"+e);let r=r0(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function r8(e,t){nn(e)&&e.group.depend(t,"__exists")}class r7 extends r9{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new r6(t)),r&&this.replace(r)}stump=new nt(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new j;getStorage(){return this.storageTrie.lookupArray(arguments)}}r9.Root=r7;class ne extends r9{id;parent;replay;group;constructor(e,t,r,n){super(t.policies,n),this.id=e,this.parent=t,this.replay=r,this.group=n,r(this)}addLayer(e,t){return new ne(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let r=this.data[e],n=t.lookup(e);n?r?r!==n&&Object.keys(r).forEach(t=>{(0,re.L)(r[t],n[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(n).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return rY.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class nt extends ne{constructor(e){super("EntityStore.Stump",e,()=>{},new r6(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function nr(e,t,r){let n=e[r],i=t[r];return(0,re.L)(n,i)?n:i}function nn(e){return!!(e&&e.supportsResultCaching)}function ni(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:n})=>ru(r,e,n,t)),r}return null}let na=["connection","include","skip","client","rest","export","nonreactive"],ns=tJ,no=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let n={};e.forEach(e=>{n[e]=t[e]});let i=ns(n);if("{}"!==i)return`${r.connection.key}(${i})`}return r.connection.key}let n=e;if(t){let e=ns(t);"{}"!==e&&(n+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===na.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?n+=`@${e}(${ns(r[e])})`:n+=`@${e}`)}),n},{setStringify(e){let t=ns;return ns=e,t}});var nl=r(99365);let nu={};function nc(e){let t=JSON.stringify(e);return nu[t]||(nu[t]={})}function nd(e){let t=nc(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let n=(e,t)=>r.readField(t,e),i=r.keyObject=nf(e,e=>{let i=nm(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&rY.call(t,e[0])&&(i=nm(t,e,np)),(0,ew.V1)(void 0!==i,98,e.join("."),t),i});return`${r.typename}:${JSON.stringify(i)}`})}function nh(e){let t=nc(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:n,fieldName:i})=>{let a=JSON.stringify(nf(e,e=>{let i=e[0],a=i.charAt(0);if("@"===a){if(r&&ro(r.directives)){let t=i.slice(1),a=r.directives.find(e=>e.name.value===t),s=a&&ni(a,n);return s&&nm(s,e.slice(1))}return}if("$"===a){let t=i.slice(1);if(n&&rY.call(n,t)){let r=e.slice(0);return r[0]=t,nm(n,r)}return}if(t)return nm(t,e)}));return(t||"{}"!==a)&&(i+=":"+a),i})}function nf(e,t){let r=new rW;return(function e(t){let r=nc(t);if(!r.paths){let n=r.paths=[],i=[];t.forEach((r,a)=>{rs(r)?(e(r).forEach(e=>n.push(i.concat(e))),i.length=0):(i.push(r),rs(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce((e,n)=>{let i=t(n);if(void 0!==i){for(let e=n.length-1;e>=0;--e)i={[n[e]]:i};e=r.merge(e,i)}return e},{})}function np(e,t){return e[t]}function nm(e,t,r){return r=r||np,function e(t){return(0,eH.U)(t)?rs(t)?t.map(e):nf(Object.keys(t).sort(),e=>nm(t,e)):t}(t.reduce(function e(t,n){return rs(t)?t.map(t=>e(t,n)):t&&r(t,n)},e))}let ng=new W,n_=new WeakMap;function ny(e){let t=n_.get(e);return t||n_.set(e,t={vars:new Set,dep:eg()}),t}function nv(e){ny(e).vars.forEach(t=>t.forgetCache(e))}function nb(e){let t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(e=>{var t;ny(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});let i=Array.from(r);r.clear(),i.forEach(t=>t(e))}}else{let e=ng.getValue();e&&(i(e),ny(e).dep(n))}return e};n.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let i=n.attachCache=e=>(t.add(e),ny(e).vars.add(n),n);return n.forgetCache=e=>t.delete(e),n}function nw(e){return void 0!==e.args?e.args:e.field?ni(e.field,e.variables):null}let nE=()=>void 0,nk=(e,t)=>t.fieldName,nS=(e,t,{mergeObjects:r})=>r(e,t),nT=(e,t)=>t;class nx{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:rQ,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r,n=this,i=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let a=t&&t.storeObject||e,s={...t,typename:i,storeObject:a,readField:t&&t.readField||((...e)=>{let t=nN(e,a);return n.readField(t,{store:n.cache.data,variables:t.variables})})},o=i&&this.getTypePolicy(i),l=o&&o.keyFn||this.config.dataIdFromObject;return t8.withValue(!0,()=>{for(;l;){let t=l({...e,...a},s);if(rs(t))l=nd(t);else{r=t;break}}}),r=r?String(r):void 0,s.keyObject?[r,s.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:n,subscriptionType:i,...a}=e[t];r&&this.setRootTypename("Query",t),n&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),rY.call(this.toBeAdded,t)?this.toBeAdded[t].push(a):this.toBeAdded[t]=[a]})}updateTypePolicy(e,t,r){let n=this.getTypePolicy(e),{keyFields:i,fields:a}=t;function s(e,t){e.merge="function"==typeof t?t:!0===t?nS:!1===t?nT:e.merge}s(n,t.merge),n.keyFn=!1===i?nE:rs(i)?nd(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(t=>{let n=r[t];n&&n?.typename===e||(n=r[t]={typename:e});let i=a[t];if("function"==typeof i)n.read=i;else{let{keyArgs:e,read:t,merge:r}=i;n.keyFn=!1===e?nk:rs(e)?nh(e):"function"==typeof e?e:n.keyFn,"function"==typeof t&&(n.read=t),s(n,r)}n.read&&n.merge&&(n.keyFn=n.keyFn||nk)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,ew.V1)(!n||n===e,99,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(rX);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!rY.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,n)=>{if(t.test(e)){let e=this.supertypeMap.get(n);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...n}=this.getTypePolicy(e);Object.assign(t,n),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,n){if(!e.typeCondition)return!0;if(!t)return!1;let i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){let a=this.getSupertypeSet(t,!0),s=[a],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<s.length;++c){let d=s[c];if(d.has(i))return a.has(i)||(u&&eb.g&&ew.V1.warn(100,t,i),a.add(i)),!0;d.forEach(o),l&&c===s.length-1&&function e(t,r,n){return!!(0,eH.U)(r)&&(rs(r)?r.every(r=>e(t,r,n)):t.selections.every(t=>{if(rg(t)&&r_(t,n)){let i=t6(t);return rY.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{let n=t.match(e);n&&n[0]===t&&o(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let n,i,a,{typename:s,fieldName:o}=e,l=this.getFieldPolicy(s,o),u=l&&l.keyFn;if(u&&s){let t={typename:s,fieldName:o,field:e.field||null,variables:e.variables},r=nw(e);for(;u;){let e=u(r,t);if(rs(e))u=nh(e);else{n=e||o;break}}}return(void 0===n&&(n=e.field?(t=e.field,r=e.variables,i=null,t.directives&&(i={},t.directives.forEach(e=>{i[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:n})=>ru(i[e.name.value],t,n,r))})),a=null,t.arguments&&t.arguments.length&&(a={},t.arguments.forEach(({name:e,value:t})=>ru(a,e,t,r))),no(t.name.value,a,i)):no(o,nw(e))),!1===n)?o:o===r0(n)?n:o+":"+n}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}let n=this.getStoreFieldName(e),i=r0(n),a=t.store.getFieldValue(r,n),s=this.getFieldPolicy(e.typename,i),o=s&&s.read;if(o){let i=nA(this,r,e,t,t.store.getStorage(rV(r)?r.__ref:r,n));return ng.withValue(this.cache,o,[a,i])}return a}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i}runMergeFunction(e,t,{field:r,typename:n,merge:i},a,s){return i===nS?nC(a.store)(e,t):i===nT?t:(a.overwrite&&(e=void 0),i(e,t,nA(this,void 0,{typename:n,fieldName:r.name.value,field:r,variables:a.variables},a,s||{})))}}function nA(e,t,r,n,i){let a=e.getStoreFieldName(r),s=r0(a),o=r.variables||n.variables,{toReference:l,canRead:u}=n.store;return{args:nw(r),field:r.field||null,fieldName:s,storeFieldName:a,variables:o,isReference:rV,toReference:l,storage:i,cache:e.cache,canRead:u,readField:(...r)=>e.readField(nN(r,t,o),n),mergeObjects:nC(n.store)}}function nN(e,t,r){let n,{0:i,1:a,length:s}=e;return"string"==typeof i?n={fieldName:i,from:s>1?a:t}:(n={...i},rY.call(n,"from")||(n.from=t)),eb.g&&void 0===n.from&&eb.g&&ew.V1.warn(101,(0,nl.p)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function nC(e){return function(t,r){if(rs(t)||rs(r))throw(0,ew.vA)(102);if((0,eH.U)(t)&&(0,eH.U)(r)){let n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(rV(t)&&r1(r))return e.merge(t.__ref,r),t;if(r1(t)&&rV(r))return e.merge(t,r.__ref),r;if(r1(t)&&r1(r))return{...t,...r}}return r}}class nI extends Error{message;path;query;variables;constructor(e,t,r,n){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=n,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=nI.prototype}missing}function nO(e){return[e.selectionSet,e.objectOrReference,e.context]}class nP{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=ev(e=>{let t=nO(e),r=this.executeSelectionSet.peek(...t);return r||(r8(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:eS["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:nO,makeCacheKey(e,t,r){if(nn(r.store))return r.store.makeCacheKey(e,rV(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=ev(e=>(r8(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:eS["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(nn(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:n,returnPartialData:i=!0}){let a,s=this.config.cache.policies;n={...rc(rw(t)),...n};let o=rK(r),l=this.executeSelectionSet({selectionSet:rm(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:s,variables:n,varString:tJ(n),...r2(t,this.config.fragments)}});l.missing&&(a=new nI(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,n));let u=!a,{result:c}=l;return{result:u||i?0===Object.keys(c).length?null:c:null,complete:u,missing:a}}isFresh(e,t,r,n){if(nn(n.store)&&this.knownResults.get(e)===r){let i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:n}){let i;if(rV(t)&&!n.policies.rootTypenamesById[t.__ref]&&!n.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:a,policies:s,store:o}=n,l=o.getFieldValue(t,"__typename"),u=[],c=new rW;function d(e,t){return e.missing&&(i=c.merge(i,{[t]:e.missing})),e.result}"string"!=typeof l||s.rootIdsByTypename[l]||u.push({__typename:l});let h=new Set(e.selections);h.forEach(e=>{if(r_(e,a))if(rg(e)){let a=s.readField({fieldName:e.name.value,field:e,variables:n.variables,from:t},n),o=t6(e);void 0===a?rH.added(e)||(i=c.merge(i,{[o]:`Can't find field '${e.name.value}' on ${rV(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):rs(a)?a.length>0&&(a=d(this.executeSubSelectedArray({field:e,array:a,enclosingRef:r,context:n}),o)):e.selectionSet&&null!=a&&(a=d(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:a,enclosingRef:rV(a)?a:r,context:n}),o)),void 0!==a&&u.push({[o]:a})}else{let t=rp(e,n.lookupFragment);if(!t&&e.kind===P.b.FRAGMENT_SPREAD)throw(0,ew.vA)(103,e.name.value);t&&s.fragmentMatches(t,l)&&t.selectionSet.selections.forEach(h.add,h)}});let f={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let n=new rW;for(let i=1;i<r;++i)t=n.merge(t,e[i])}return t}(u),missing:i},p=(0,t9.G)(f);return p.result&&this.knownResults.set(p.result,e),p}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:n}){let i,a=new rW;function s(e,t){return e.missing&&(i=a.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(n.store.canRead)),{result:t=t.map((t,i)=>null===t?null:rs(t)?s(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:n}),i):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:rV(t)?t:r,context:n}),i):(eb.g&&function(e,t,r){if(!t.selectionSet){let n=new Set([r]);n.forEach(r=>{(0,eH.U)(r)&&((0,ew.V1)(!rV(r),104,rV(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(n.store,e,t),t)),missing:i}}}let{toString:nD}=Object.prototype;function nM(e,t,r){let n=`${t}${r}`,i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),i}class nL{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:n,variables:i,overwrite:a}){let s=ex(t),o=new rW,l={store:e,written:{},merge:(e,t)=>o.merge(e,t),variables:i={...rc(s),...i},varString:tJ(i),...r2(t,this.fragments),overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},u=this.processSelectionSet({result:r||{},dataId:n,selectionSet:s.selectionSet,mergeTree:{map:new Map},context:l});if(!rV(u))throw(0,ew.vA)(105,r);return l.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:n},i)=>{let a=rK(i);if(r&&r.map.size){let e=this.applyMerges(r,a,t,l);if(rV(e))return;t=e}if(eb.g&&!l.overwrite){let e={};n.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(n=>{!0!==e[r0(n)]||(e=>{let t=r&&r.map.get(e);return!!(t&&t.info&&t.info.merge)})(n)||function(e,t,r,n){let i=e=>{let t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(!a)return;let s=i(t);if(!s||rV(a)||(0,re.L)(a,s)||Object.keys(a).every(e=>void 0!==n.getFieldValue(s,e)))return;let o=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=r0(r),u=`${o}.${l}`;if(nz.has(u))return;nz.add(u);let c=[];rs(a)||rs(s)||[a,s].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)}),eb.g&&ew.V1.warn(108,l,o,c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"",u,{...a},{...s})}(a,t,n,l.store)})}e.merge(i,t)}),e.retain(u.__ref),u}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:i}){let{policies:a}=this.cache,s={},o=e&&a.rootTypenamesById[e]||nU(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof o&&(s.__typename=o);let l=(...e)=>{let t=nN(e,s,n.variables);if(rV(t.from)){let e=n.incomingById.get(t.from.__ref);if(e){let r=a.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return a.readField(t,n)},u=new Set;this.flattenFields(r,t,n,o).forEach((e,r)=>{let n=t[t6(r)];if(u.add(r),void 0!==n){let t,u=a.getStoreFieldName({typename:o,fieldName:r.name.value,field:r,variables:e.variables}),c=nF(i,u),d=this.processFieldValue(n,r,r.selectionSet?nM(e,!1,!1):e,c);r.selectionSet&&(rV(d)||r1(d))&&(t=l("__typename",d));let h=a.getMergeFunction(o,r.name.value,t);h?c.info={field:r,typename:o,merge:h}:nj(i,u),s=e.merge(s,{[u]:d})}else!eb.g||e.clientOnly||e.deferred||rH.added(r)||a.getReadFunction(o,r.name.value)||ew.V1.error(106,t6(r),t)});try{let[i,u]=a.identify(t,{typename:o,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:s,readField:l});e=e||i,u&&(s=n.merge(s,u))}catch(t){if(!e)throw t}if("string"==typeof e){let a=rK(e),o=n.written[e]||(n.written[e]=[]);if(o.indexOf(r)>=0||(o.push(r),this.reader&&this.reader.isFresh(t,a,r,n)))return a;let l=n.incomingById.get(e);return l?(l.storeObject=n.merge(l.storeObject,s),l.mergeTree=function e(t,r){if(t===r||!r||nB(r))return t;if(!t||nB(t))return r;let n=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){let n=new Set(r.map.keys());t.map.forEach((t,i)=>{a.map.set(i,e(t,r.map.get(i))),n.delete(i)}),n.forEach(n=>{a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(l.mergeTree,i),u.forEach(e=>l.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:s,mergeTree:nB(i)?void 0:i,fieldNodeSet:u}),a}return s}processFieldValue(e,t,r,n){return t.selectionSet&&null!==e?rs(e)?e.map((e,i)=>{let a=this.processFieldValue(e,t,r,nF(n,i));return nj(n,i),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):eb.g?function e(t,r){switch(nD.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let n=t.slice(0);return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let n=Object.create(Object.getPrototypeOf(t));return r.set(t,n),Object.keys(t).forEach(i=>{n[i]=e(t[i],r)}),n}default:return t}}(e):e}flattenFields(e,t,r,n=nU(t,e,r.fragmentMap)){let i=new Map,{policies:a}=this.cache,s=new j(!1);return!function e(o,l){let u=s.lookup(o,l.clientOnly,l.deferred);u.visited||(u.visited=!0,o.selections.forEach(s=>{if(!r_(s,r.variables))return;let{clientOnly:o,deferred:u}=l;if(!(o&&u)&&ro(s.directives)&&s.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(o=!0),"defer"===t){let t=ni(e,r.variables);t&&!1===t.if||(u=!0)}}),rg(s)){let e=i.get(s);e&&(o=o&&e.clientOnly,u=u&&e.deferred),i.set(s,nM(r,o,u))}else{let i=rp(s,r.lookupFragment);if(!i&&s.kind===P.b.FRAGMENT_SPREAD)throw(0,ew.vA)(107,s.name.value);i&&a.fragmentMatches(i,n,t,r.variables)&&e(i.selectionSet,nM(r,o,u))}}))}(e,r),i}applyMerges(e,t,r,n,i){if(e.map.size&&!rV(r)){let a,s=!rs(r)&&(rV(t)||r1(t))?t:void 0,o=r;s&&!i&&(i=[rV(s)?s.__ref:s]);let l=(e,t)=>rs(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(s,t),u=l(o,t);if(void 0===u)return;i&&i.push(t);let c=this.applyMerges(e,r,u,n,i);c!==u&&(a=a||new Map).set(t,c),i&&(0,ew.V1)(i.pop()===t)}),a&&(r=rs(o)?o.slice(0):{...o},a.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&n.store.getStorage(...i)):r}}let nR=[];function nF({map:e},t){return e.has(t)||e.set(t,nR.pop()||{map:new Map}),e.get(t)}function nB(e){return!e||!(e.info||e.map.size)}function nj({map:e},t){let r=e.get(t);r&&nB(r)&&(nR.push(r),e.delete(t))}let nz=new Set;function nU(e,t,r){let n;for(let r of t.selections)if(rg(r)){if("__typename"===r.name.value)return e[t6(r)]}else n?n.push(r):n=[r];if("string"==typeof e.__typename)return e.__typename;if(n)for(let t of n){let n=nU(e,rp(t,r).selectionSet,r);if("string"==typeof n)return n}}class nH extends rq{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new th(rH);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=nb;constructor(e={}){super(),this.config=(0,eN.o)(rJ,e),this.policies=new nx({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new r9.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new nL(this,this.storeReader=new nP({cache:this,fragments:e}),e),this.maybeBroadcastWatch=ev((e,t)=>this.broadcastWatch(e,t),{max:eS["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(nn(t)){let{optimistic:r,id:n,variables:i}=e;return t.makeCacheKey(e.query,e.callback,tJ({optimistic:r,id:n,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(rY.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;return this.watches.size||(t=this,ny(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&nv(this),this.maybeBroadcastWatch.forget(e)}}gc(e){tJ.reset(),e8.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(rV(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){eb.g&&ew.V1.warn(e)}}evict(e){if(!e.id){if(rY.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),tJ.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),nv(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:n=!0,removeOptimistic:i,onWatchUpdated:a}=e,s=e=>{let{data:n,optimisticData:i}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=n,this.optimisticData=i}},o=new Set;return a&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(o.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,s):!1===n?s(this.data):s(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),a&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=a.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}broadcastWatches(e){this.txCount||this.watches.forEach(t=>this.maybeBroadcastWatch(t,e))}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,re.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))}}eb.g&&(nH.prototype.getMemoryInternals=tm);let nV=JSON.parse('{"Product":["ConfigurableProduct","SimpleProduct","BundleProduct","PlanProduct","TokenizedProduct"],"ConfigurableOrBundleProduct":["BundleProduct","ConfigurableProduct"],"OrderDiscountable":["OrderGlobalDiscount","OrderPaymentDiscount","OrderDeliveryDiscount","OrderItemDiscount"],"OrderDelivery":["OrderDeliveryPickUp","OrderDeliveryShipping"],"OrderPayment":["OrderPaymentInvoice","OrderPaymentCard","OrderPaymentGeneric"]}');function nG(e=!1){return{keyArgs:e,merge(e,t,{args:r}){let n=e?e.slice(0):[];if(t)if(r){let{offset:e=0}=r;for(let r=0;r<t.length;++r)n[e+r]=t[r]}else n.push(...t);return n}}}let nq={...{Query:{fields:{assortments:{...nG(["includeLeaves","includeInactive","tags","queryString","slugs","limit"])},products:{...nG(["includeDrafts","tags","queryString","sort","limit"])},product:{keyArgs:["productId","slug"],fields:{reviews:nG()}},user:{keyArgs:["userId"],fields:{reviews:nG()}},countries:{...nG(["includeInactive","queryString","sort","limit"])},currencies:{...nG(["includeInactive","queryString","sort","limit"])},enrollments:{...nG(["queryString","status","sort","limit"])},quotations:{...nG(["queryString","sort","limit"])},workQueue:{...nG(["status","types","created","queryString","limit"])},languages:{...nG(["includeInactive","queryString","sort","limit"])},events:{...nG(["types","queryString","sort","limit","created"])},users:{...nG(["includeGuests","queryString","emailVerified","lastLogin","limit","tags"])},filters:{...nG(["queryString","includeInactive","sort","limit"])},orders:{...nG(["includeCarts","queryString","sort","limit","dateRange","status","deliveryProviderIds","paymentProviderIds"])}}}},keyFields:e=>(null==e?void 0:e._id)&&(null==e?void 0:e.__typename)?"".concat(null==e?void 0:e.__typename,":").concat(null==e?void 0:e._id):(null==e?void 0:e.id)&&(null==e?void 0:e.__typename)?"".concat(e.__typename,":").concat(e.id):null},nZ=["accept-language","pragma","user-agent","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-forwarded-server","x-mapihttpcapability","x-real-ip","x-user-identity","host","cookie","authorization"],n$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,{headers:t={},locale:r=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null!=s?s:(e=>{let{headers:t={},locale:r}=e,n=new rj(e=>{let n,i;return n={...t,...e.headers},i=r,{headers:{...Object.fromEntries(Object.entries(n).filter(e=>{let[t]=e;return nZ.includes(null==t?void 0:t.toLowerCase())})),"accept-language":(null==n?void 0:n.forceLocale)||i}}}),i=new ti({uri:"".concat(window.location.origin,"/graphql"),credentials:"include",includeExtensions:!0}),a=new rz(e=>{let{error:t,operation:r}=e;t2.is(t)&&t.errors.forEach(e=>{let{message:t,locations:n,path:i,extensions:a}=e;console.error("[GraphQL error]: Message: ".concat(t,", Location: ").concat(JSON.stringify(n),", Path: ").concat(i,", Extensions: ").concat(JSON.stringify(a),", Operation: ").concat(r.operationName))}),t&&console.error("[Network error]: ".concat(t.message,", ").concat(t.name," Operation: ").concat(r.operationName))}),s=new nH({typePolicies:nq,possibleTypes:nV});return new rB({defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",errorPolicy:"all"},mutate:{errorPolicy:"all"}},ssrMode:!1,link:eA.from([a,n,i].filter(Boolean)),cache:s,devtools:{enabled:!1}})})({headers:t,locale:r});if(e){let t=n.extract(),r=c()(e,t,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!h()(e,t)))]});n.cache.restore(r)}return s=n,n};function nW(e){let{endpoint:t=null,...r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null==e?void 0:e.__APOLLO_STATE__;return(0,l.useMemo)(()=>n$(n,{...r}),[n,t])}},69001:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}(r)))}return e}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}()},69135:(e,t,r)=>{"use strict";function n(e){return e.catch(()=>{}),e}r.d(t,{X:()=>n})},70324:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>L,__assign:()=>a,__asyncDelegator:()=>T,__asyncGenerator:()=>S,__asyncValues:()=>x,__await:()=>k,__awaiter:()=>p,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>D,__createBinding:()=>g,__decorate:()=>o,__disposeResources:()=>F,__esDecorate:()=>u,__exportStar:()=>_,__extends:()=>i,__generator:()=>m,__importDefault:()=>O,__importStar:()=>I,__makeTemplateObject:()=>A,__metadata:()=>f,__param:()=>l,__propKey:()=>d,__read:()=>v,__rest:()=>s,__rewriteRelativeImportExtension:()=>B,__runInitializers:()=>c,__setFunctionName:()=>h,__spread:()=>b,__spreadArray:()=>E,__spreadArrays:()=>w,__values:()=>y,default:()=>j});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){var i,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,r,s):i(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,i,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var o,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),h=!1,f=r.length-1;f>=0;f--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(h)throw TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,r[f])("accessor"===l?{get:d.get,set:d.set}:d[u],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw TypeError("Object expected");(o=s(g.get))&&(d.get=o),(o=s(g.set))&&(d.set=o),(o=s(g.init))&&i.unshift(o)}else(o=s(g))&&("field"===l?i.unshift(o):d[u]=o)}c&&Object.defineProperty(c,n.name,d),h=!0}function c(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){var u=[o,l];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function _(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)n[i]=a[s];return n}function E(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||o(e,t)})},t&&(n[e]=t(n[e])))}function o(e,t){try{var r;(r=i[e](t)).value instanceof k?Promise.resolve(r.value.v).then(l,u):c(a[0][2],r)}catch(e){c(a[0][3],e)}}function l(e){o("next",e)}function u(e){o("throw",e)}function c(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function T(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:k(e[n](t)),done:!1}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var a,s,o;a=n,s=i,o=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){a({value:e,done:o})},s)})}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},C=function(e){return(C=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=C(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return N(t,e),t}function O(e){return e&&e.__esModule?e:{default:e}}function P(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function B(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,a){return r?t?".jsx":".js":!n||i&&a?n+i+"."+a.toLowerCase()+"js":e}):e}let j={__extends:i,__assign:a,__rest:s,__decorate:o,__param:l,__esDecorate:u,__runInitializers:c,__propKey:d,__setFunctionName:h,__metadata:f,__awaiter:p,__generator:m,__createBinding:g,__exportStar:_,__values:y,__read:v,__spread:b,__spreadArrays:w,__spreadArray:E,__await:k,__asyncGenerator:S,__asyncDelegator:T,__asyncValues:x,__makeTemplateObject:A,__importStar:I,__importDefault:O,__classPrivateFieldGet:P,__classPrivateFieldSet:D,__classPrivateFieldIn:M,__addDisposableResource:L,__disposeResources:F,__rewriteRelativeImportExtension:B}},70412:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(75834),i=r(43192);let a=()=>(0,n.useContext)(i.A)},70486:(e,t,r)=>{"use strict";r.d(t,{I:()=>V});var n,i=r(41706),a=r(75834),s=r.t(a,2),o=r(90001),l=r(70324),u=function(e){function t(t,r){return e.call(this)||this}return(0,l.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(65245).yU),c={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=c.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,l.__spreadArray)([e,t],(0,l.__read)(r))):setInterval.apply(void 0,(0,l.__spreadArray)([e,t],(0,l.__read)(r)))},clearInterval:function(e){var t=c.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},d=r(40190),h=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,l.__extends)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),c.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&c.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,d.o)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(u),f=1,p={};function m(e){return e in p&&(delete p[e],!0)}var g={setImmediate:function(e){var t=f++;return p[t]=!0,n||(n=Promise.resolve()),n.then(function(){return m(t)&&e()}),t},clearImmediate:function(e){m(e)}},_=g.setImmediate,y=g.clearImmediate,v={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=v.delegate;return((null==r?void 0:r.setImmediate)||_).apply(void 0,(0,l.__spreadArray)([],(0,l.__read)(e)))},clearImmediate:function(e){var t=v.delegate;return((null==t?void 0:t.clearImmediate)||y)(e)},delegate:void 0},b=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return(0,l.__extends)(t,e),t.prototype.requestAsyncId=function(t,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=v.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i,a=t.actions;null!=r&&(null==(i=a[a.length-1])?void 0:i.id)!==r&&(v.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(h),w=r(80569),E=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=w.U.now,e}(),k=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.__extends)(t,e),t.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled;this._scheduled=void 0;var n=this.actions;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},t}(function(e){function t(t,r){void 0===r&&(r=E.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,l.__extends)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(E)))(b),S=r(92104),T=r(40687),x=r(66440);let A=Symbol.for("apollo.skipToken"),N=Symbol.for("apollo.hook.wrappers");var C=r(40058),I=r(99236),O=r(94998),P=r(32064),D=r(31932),M=r(67392);let L=!1,R=s.useSyncExternalStore,F="ReactNative"==(0,D.n)(()=>navigator.product),B=(0,D.n)(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,j=(P.S||F)&&!B,z=R||((e,t,r)=>{let n=t();O.g&&!L&&n!==t()&&(L=!0,M.V1.error(34));let[{inst:i},s]=a.useState({inst:{value:n,getSnapshot:t}});return j?a.useLayoutEffect(()=>{Object.assign(i,{value:n,getSnapshot:t}),U(i)&&s({inst:i})},[e,n,t]):Object.assign(i,{value:n,getSnapshot:t}),a.useEffect(()=>(U(i)&&s({inst:i}),e(function(){U(i)&&s({inst:i})})),[e]),n});function U({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}let H=Symbol();function V(e,...[t]){return(function(e,t,r){let n=[r.queryManager,e.startsWith("use")?a.useContext((0,C.l)()):void 0],i=t;for(let t of n){let r=t?.[N]?.[e];r&&(i=r(i))}return i})("useQuery",G,(0,I.m)("object"==typeof t?t.client:void 0))(e,t)}function G(e,t={}){var r,n,s,l,u,c,d,h;let f=(0,I.m)("object"==typeof t?t.client:void 0),{ssr:p}="object"==typeof t?t:{},m=function(e,t){let r=a.useRef(void 0);return r.current&&(0,i.L)(r.current.deps,t)||(r.current={value:e(),deps:t}),r.current.value}(()=>{if(n===A){let e=(0,T.l)(s,{query:r,fetchPolicy:"standby"});return e[q]=!0,e}let e=(0,T.l)(s,{...n,query:r});return n.skip&&(e.initialFetchPolicy=n.initialFetchPolicy||n.fetchPolicy,e.fetchPolicy="standby"),e},[r=e,n=t,s=f.defaultOptions.watchQuery]);function g(t){let r=f.watchQuery(m);return{client:f,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[_,y]=a.useState(g);(f!==_.client||e!==_.query)&&y(_=g(_));let{observable:v,resultData:b}=_;l=m,u=v,l.fetchPolicy||(l.fetchPolicy=u.options.initialFetchPolicy),function(e,t,r){if(t[H]&&!(0,i.L)(t[H],r)){var n,a;t[H][q]&&!r.initialFetchPolicy&&(r.initialFetchPolicy=r.fetchPolicy),(n=t[H],a=r,n.query===a.query&&(0,i.L)(n.variables,a.variables)&&(n.fetchPolicy===a.fetchPolicy||"standby"!==a.fetchPolicy&&"standby"!==n.fetchPolicy))?t.applyOptions(r):t.reobserve(r);let s=t.getCurrentResult();(0,i.L)(s.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=s,e.variables=t.variables}t[H]=r}(b,v,m);let w=(c=v,d=b,h=p,z(a.useCallback(e=>{let t=c.pipe((0,o.Q)(k)).subscribe(t=>{let r=d.current;(0,i.L)(r,t)&&(0,i.L)(d.variables,c.variables)||(d.variables=c.variables,r.data&&!(0,i.L)(r.data,t.data)&&(d.previousData=r.data),d.current=t,e())});return()=>{setTimeout(()=>t.unsubscribe())}},[c,d]),()=>d.current,()=>!1===h?V.ssrDisabledResult:d.current)),E=a.useMemo(()=>({refetch:v.refetch.bind(v),fetchMore:v.fetchMore.bind(v),updateQuery:v.updateQuery.bind(v),startPolling:v.startPolling.bind(v),stopPolling:v.stopPolling.bind(v),subscribeToMore:v.subscribeToMore.bind(v)}),[v]),S=b.previousData;return a.useMemo(()=>{let{partial:e,...t}=w;return{...t,client:f,observable:v,variables:v.variables,previousData:S,...E}},[w,f,v,S,E])}let q=Symbol();V.ssrDisabledResult=(0,x.G)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:S.p.loading,partial:!0})},71098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(75834),i=r(29113),a="function"==typeof IntersectionObserver,s=new Map,o=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!a,[c,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{h.current=e},[]);return(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:a}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=o.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},o.push(r),s.set(r,t),t}(r);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(n);let e=o.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,h.current]),[f,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolvePlural=function(e,t,r){var a=r.getInternalSlots,s=r.PluralRuleSelect,o=a(e);if((0,n.invariant)("Object"===(0,n.Type)(o),"pl has to be an object"),(0,n.invariant)("initializedPluralRules"in o,"pluralrules must be initialized"),!t.isFinite())return"other";var l=o.locale,u=o.type,c=(0,n.FormatNumericToString)(o,t).formattedString;return s(l,u,t,(0,i.GetOperands)(c))};var n=r(4648),i=r(3722)},73367:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>i});let i=n},74116:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(9985),i=r(15968),a=r(70486),s=r(95595);function o(){let e=(0,n._)(["\n query Languages(\n $queryString: String\n $offset: Int\n $limit: Int\n $includeInactive: Boolean\n $sort: [SortOptionInput!]\n ) {\n languages(\n queryString: $queryString\n offset: $offset\n limit: $limit\n includeInactive: $includeInactive\n sort: $sort\n ) {\n ...LanguageFragment\n }\n languagesCount(includeInactive: $includeInactive, queryString: $queryString)\n }\n ","\n"]);return o=function(){return e},e}let l=(0,i.J1)(o(),s.A),u=function(){let{queryString:e="",limit:t=20,offset:r=0,includeInactive:n=!0,sort:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{data:s,loading:o,error:u,fetchMore:c}=(0,a.I)(l,{variables:{queryString:e,limit:t,offset:r,includeInactive:n,sort:i}}),d=(null==s?void 0:s.languages)||[],h=null==s?void 0:s.languagesCount,f=(null==d?void 0:d.length)<h;return{languages:d,languagesCount:h,hasMore:f,loading:o,error:u,loadMore:()=>{c({variables:{offset:null==d?void 0:d.length}})}}}},74615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MakePartsList=function(e,t,r){for(var i=(0,n.PartitionPattern)(e),a=[],s=0;s<i.length;s++){var o=i[s];if("literal"===o.type)a.push({type:"literal",value:o.value});else{(0,n.invariant)("0"===o.type,"Malformed pattern ".concat(e));for(var l=0;l<r.length;l++){var u=r[l];a.push({type:u.type,value:u.value,unit:t})}}}return a};var n=r(4648)},74781:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(75834),i=r(94553);let a=()=>{let e=(0,n.useContext)(i.A);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}},77266:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(36207);function i(e){let t=e.parentElement,r=null;for(;t&&!n.Er(t);)n.Jb(t)&&(r=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(n.Jb(t))return!1;t=t.previousElementSibling}return!0}(r))&&i}},77623:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,D:()=>s});var n=r(26514),i=r(75834),a=r(82102);let s=(0,i.createContext)(void 0),o=e=>{let{children:t}=e,[r,o]=(0,a.A)("theme","light");(0,i.useEffect)(()=>{"dark"!==localStorage.theme&&("theme"in localStorage||!window.matchMedia("(prefers-color-scheme: dark)").matches)?document.getElementsByTagName("html")[0].classList.remove("dark"):document.getElementsByTagName("html")[0].classList.add("dark")},[]),(0,i.useEffect)(()=>{"dark"===r?(document.getElementsByTagName("html")[0].classList.add("dark"),localStorage.theme="dark"):(document.getElementsByTagName("html")[0].classList.remove("dark"),localStorage.theme="light")},[r]);let l=(0,i.useMemo)(()=>[r,o],[r]);return(0,n.jsx)(s.Provider,{value:l,children:t})}},78615:(e,t,r)=>{"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{_:()=>n})},80569:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},80868:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},81340:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))})},82102:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=(e,t)=>{let[r,i]=(0,n.useState)(()=>{try{if(window.localStorage){let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}return t}catch(e){return t}});return[r,t=>{try{if(window.localStorage){let n=t instanceof Function?t(r):t;i(n),window.localStorage.setItem(e,JSON.stringify(n))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}},82740:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedLocales=void 0,t.supportedLocales=["af","ak","am","an","ar","ars","as","asa","ast","az","bal","be","bem","bez","bg","bho","bm","bn","bo","br","brx","bs","ca","ce","ceb","cgg","chr","ckb","cs","cy","da","de","doi","dsb","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fil","fo","fr","fur","fy","ga","gd","gl","gsw","gu","guw","gv","ha","haw","he","hi","hnj","hr","hsb","hu","hy","ia","id","ig","ii","io","is","it","iu","ja","jbo","jgo","jmc","jv","jw","ka","kab","kaj","kcg","kde","kea","kk","kkj","kl","km","kn","ko","ks","ksb","ksh","ku","kw","ky","lag","lb","lg","lij","lkt","ln","lo","lt","lv","mas","mg","mgo","mk","ml","mn","mo","mr","ms","mt","my","nah","naq","nb","nd","ne","nl","nn","nnh","no","nqo","nr","nso","ny","nyn","om","or","os","osa","pa","pap","pcm","pl","prg","ps","pt","pt-PT","rm","ro","rof","ru","rwk","sah","saq","sat","sc","scn","sd","sdh","se","seh","ses","sg","sh","shi","si","sk","sl","sma","smi","smj","smn","sms","sn","so","sq","sr","ss","ssy","st","su","sv","sw","syr","ta","te","teo","th","ti","tig","tk","tl","tn","to","tpi","tr","ts","tzm","ug","uk","und","ur","uz","ve","vi","vo","vun","wa","wae","wo","xh","xog","yi","yo","yue","zh","zu"]},83191:(e,t,r)=>{r(16518)},85238:()=>{},85405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializeRelativeTimeFormat=function(e,t,r,s){var o=s.getInternalSlots,l=s.availableLocales,u=s.relevantExtensionKeys,c=s.localeData,d=s.getDefaultLocale,h=o(e);h.initializedRelativeTimeFormat=!0;var f=(0,n.CanonicalizeLocaleList)(t),p=Object.create(null),m=(0,n.CoerceOptionsToObject)(r);p.localeMatcher=(0,n.GetOption)(m,"localeMatcher","string",["best fit","lookup"],"best fit");var g=(0,n.GetOption)(m,"numberingSystem","string",void 0,void 0);if(void 0!==g&&!a.test(g))throw RangeError("Invalid numbering system ".concat(g));p.nu=g;var _=(0,i.ResolveLocale)(l,f,p,u,c,d),y=_.locale,v=_.nu;h.locale=y,h.style=(0,n.GetOption)(m,"style","string",["long","narrow","short"],"long"),h.numeric=(0,n.GetOption)(m,"numeric","string",["always","auto"],"always");var b=c[_.dataLocale];return(0,n.invariant)(!!b,"Missing locale data for ".concat(_.dataLocale)),h.fields=b,h.numberFormat=(0,n.createMemoizedNumberFormat)(t),h.pluralRules=(0,n.createMemoizedPluralRules)(t),h.numberingSystem=v,e};var n=r(4648),i=r(92090),a=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i},86362:(e,t,r)=>{"use strict";function n(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{let n=e[r];void 0!==n&&(t[r]=n)})}),t}r.d(t,{o:()=>n})},87790:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case a:case o:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_)},t.typeOf=w},88172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(78809),i=r(45530),a=r(26514),s=i._(r(75834)),o=n._(r(60851)),l=n._(r(67749)),u=r(88960),c=r(2937),d=r(17727);r(63401);let h=r(34434),f=n._(r(89572)),p=r(99555),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,r,n,i,a,s){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function _(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,s.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:o,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:f,loading:m,unoptimized:y,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:E,setShowAltText:k,sizesInput:S,onLoad:T,onError:x,...A}=e,N=(0,s.useCallback)(e=>{e&&(x&&(e.src=e.src),e.complete&&g(e,f,b,w,E,y,S))},[r,f,b,w,E,x,y,S]),C=(0,p.useMergedRef)(t,N);return(0,a.jsx)("img",{...A,..._(h),loading:m,width:l,height:o,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:C,onLoad:e=>{g(e.currentTarget,f,b,w,E,y,S)},onError:e=>{k(!0),"empty"!==f&&E(!0),x&&x(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,..._(r.fetchPriority)};return t&&o.default.preload?(o.default.preload(r.src,n),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(h.RouterContext),n=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:a}},[n]),{onLoad:o,onLoadingComplete:l}=e,p=(0,s.useRef)(o);(0,s.useEffect)(()=>{p.current=o},[o]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[_,b]=(0,s.useState)(!1),[w,E]=(0,s.useState)(!1),{props:k,meta:S}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:_,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...k,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:E,sizesInput:e.sizes,ref:t}),S.priority?(0,a.jsx)(v,{isAppRouter:!r,imgAttributes:k}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88213:(e,t,r)=>{"use strict";r.d(t,{Ho:()=>c,OC:()=>s,hr:()=>l,pg:()=>u,sb:()=>d,uo:()=>o});var n,i=r(70324);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(n||(n={}));var a=function(e){function t(r,n,i){var a=this,s=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(s?"\n".concat(s.message,"\n").concat(s.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return(0,i.__extends)(t,e),t}(Error),s=function(e){function t(t,r){return e.call(this,n.UNSUPPORTED_FORMATTER,t,r)||this}return(0,i.__extends)(t,e),t}(a),o=function(e){function t(t,r){return e.call(this,n.INVALID_CONFIG,t,r)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,n.MISSING_DATA,t,r)||this}return(0,i.__extends)(t,e),t}(a),u=function(e){function t(t,r,i){var a=e.call(this,n.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),i)||this;return a.locale=r,a}return(0,i.__extends)(t,e),t}(a),c=function(e){function t(t,r,n,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return a.descriptor=n,a.locale=r,a}return(0,i.__extends)(t,e),t}(u),d=function(e){function t(t,r){var i=e.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!=(t=e.value)?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.__extends)(t,e),t}(a)},88514:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{U:()=>n})},88960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(63401);let n=r(34013),i=r(2937),a=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r,l;let u,c,d,{src:h,sizes:f,unoptimized:p=!1,priority:m=!1,loading:g,className:_,quality:y,width:v,height:b,fill:w=!1,style:E,overrideSrc:k,onLoad:S,onLoadingComplete:T,placeholder:x="empty",blurDataURL:A,fetchPriority:N,decoding:C="async",layout:I,objectFit:O,objectPosition:P,lazyBoundary:D,lazyRoot:M,...L}=e,{imgConf:R,showAltText:F,blurComplete:B,defaultLoader:j}=t,z=R||i.imageConfigDefault;if("allSizes"in z)u=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t),n=null==(r=z.qualities)?void 0:r.sort((e,t)=>e-t);u={...z,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===j)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let U=L.loader||j;delete L.loader,delete L.srcSet;let H="__next_img_default"in U;if(H){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(I){"fill"===I&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(E={...E,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!f&&(f=t)}let V="",G=o(v),q=o(b);if((l=h)&&"object"==typeof l&&(s(l)||void 0!==l.src)){let e=s(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,A=A||e.blurDataURL,V=e.src,!w)if(G||q){if(G&&!q){let t=G/e.width;q=Math.round(e.height*t)}else if(!G&&q){let t=q/e.height;G=Math.round(e.width*t)}}else G=e.width,q=e.height}let Z=!m&&("lazy"===g||void 0===g);(!(h="string"==typeof h?h:V)||h.startsWith("data:")||h.startsWith("blob:"))&&(p=!0,Z=!1),u.unoptimized&&(p=!0),H&&!u.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(p=!0);let $=o(y),W=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:P}:{},F?{}:{color:"transparent"},E),K=B||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:G,heightInt:q,blurWidth:c,blurHeight:d,blurDataURL:A||"",objectFit:W.objectFit})+'")':'url("'+x+'")',Y=a.includes(W.objectFit)?"fill"===W.objectFit?"100% 100%":"cover":W.objectFit,Q=K?{backgroundSize:Y,backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},J=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:a,sizes:s,loader:o}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((e,n)=>o({config:t,src:r,quality:a,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:o({config:t,src:r,quality:a,width:l[c]})}}({config:u,src:h,unoptimized:p,width:G,quality:$,sizes:f,loader:U});return{props:{...L,loading:Z?"lazy":g,fetchPriority:N,width:G,height:q,decoding:C,className:_,style:{...W,...Q},sizes:J.sizes,srcSet:J.srcSet,src:k||J.src},meta:{unoptimized:p,priority:m,placeholder:x,fill:w}}}},89572:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:a}=e,s=a||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+s+(n.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},90001:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r(41291),i=r(5802),a=r(99246);function s(e,t){return void 0===t&&(t=0),(0,i.N)(function(r,i){r.subscribe((0,a._)(i,function(r){return(0,n.N)(i,e,function(){return i.next(r)},t)},function(){return(0,n.N)(i,e,function(){return i.complete()},t)},function(r){return(0,n.N)(i,e,function(){return i.error(r)},t)}))})}},92090:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LookupSupportedLocales:()=>m,ResolveLocale:()=>p,match:()=>g});var n,i=r(70324),a={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},s={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},o=/-u(?:-[0-9a-z]{2,8})+/gi;function l(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function u(e,t,r){var n=t.split("-"),a=n[0],o=n[1],l=n[2],u=!0;if(l&&"$"===l[0]){var c="!"!==l[1],d=(c?r[l.slice(1)]:r[l.slice(2)]).map(function(e){return s[e]||[e]}).reduce(function(e,t){return(0,i.__spreadArray)((0,i.__spreadArray)([],e,!0),t,!0)},[]);u&&(u=d.indexOf(e.region||"")>-1==c)}else u&&(u=!e.region||"*"===l||l===e.region);return u&&(u=!e.script||"*"===o||o===e.script),u&&(u=!e.language||"*"===a||a===e.language),u}function c(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function d(e,t,r){for(var n=0,i=r.matches;n<i.length;n++){var a=i[n],s=u(e,a.desired,r.matchVariables)&&u(t,a.supported,r.matchVariables);if(a.oneway||s||(s=u(e,a.supported,r.matchVariables)&&u(t,a.desired,r.matchVariables)),s){var o=10*a.distance;if(r.paradigmLocales.indexOf(c(e))>-1!=r.paradigmLocales.indexOf(c(t))>-1)return o-1;return o}}throw Error("No matching distance found")}function h(e){return Intl.getCanonicalLocales(e)[0]}function f(e,t){for(var r=t;;){if(e.indexOf(r)>-1)return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}function p(e,t,r,s,u,c){"lookup"===r.localeMatcher?m=function(e,t,r){for(var n={locale:""},i=0;i<t.length;i++){var a=t[i],s=a.replace(o,""),l=f(e,s);if(l)return n.locale=l,a!==s&&(n.extension=a.slice(s.length,a.length)),n}return n.locale=r(),n}(Array.from(e),t,c):(_=Array.from(e),b=[],w=t.reduce(function(e,t){var r=t.replace(o,"");return b.push(r),e[r]=t,e},{}),(void 0===E&&(E=838),k=1/0,S={matchedDesiredLocale:"",distances:{}},b.forEach(function(e,t){S.distances[e]||(S.distances[e]={}),_.forEach(function(r){var s,o,l,u,c,h,f=(s=new Intl.Locale(e).maximize(),o=new Intl.Locale(r).maximize(),l={language:s.language,script:s.script||"",region:s.region||""},u={language:o.language,script:o.script||"",region:o.region||""},c=0,h=function(){var e,t;if(!n){var r=null==(t=null==(e=a.supplemental.languageMatching["written-new"][0])?void 0:e.paradigmLocales)?void 0:t._locales.split(" "),s=a.supplemental.languageMatching["written-new"].slice(1,5);n={matches:a.supplemental.languageMatching["written-new"].slice(5).map(function(e){var t=Object.keys(e)[0],r=e[t];return{supported:t,desired:r._desired,distance:+r._distance,oneway:"true"===r.oneway}},{}),matchVariables:s.reduce(function(e,t){var r=Object.keys(t)[0],n=t[r];return e[r.slice(1)]=n._value.split("+"),e},{}),paradigmLocales:(0,i.__spreadArray)((0,i.__spreadArray)([],r,!0),r.map(function(e){return new Intl.Locale(e.replace(/_/g,"-")).maximize().toString()}),!0)}}return n}(),l.language!==u.language&&(c+=d({language:s.language,script:"",region:""},{language:o.language,script:"",region:""},h)),l.script!==u.script&&(c+=d({language:s.language,script:l.script,region:""},{language:o.language,script:u.script,region:""},h)),l.region!==u.region&&(c+=d(l,u,h)),c+0+40*t);S.distances[e][r]=f,f<k&&(k=f,S.matchedDesiredLocale=e,S.matchedSupportedLocale=r)})}),k>=E&&(S.matchedDesiredLocale=void 0,S.matchedSupportedLocale=void 0),T=S).matchedSupportedLocale&&T.matchedDesiredLocale&&(y=T.matchedSupportedLocale,v=w[T.matchedDesiredLocale].slice(T.matchedDesiredLocale.length)||void 0),m=y?{locale:y,extension:v}:{locale:c()}),null==m&&(m={locale:c(),extension:""});var p,m,g,_,y,v,b,w,E,k,S,T,x=m.locale,A=u[x],N={locale:"en",dataLocale:x};g=m.extension?function(e){l(e===e.toLowerCase(),"Expected extension to be lowercase"),l("-u-"===e.slice(0,3),"Expected extension to be a Unicode locale extension");for(var t,r=[],n=[],i=e.length,a=3;a<i;){var s=e.indexOf("-",a),o=void 0;o=-1===s?i-a:s-a;var u=e.slice(a,a+o);l(o>=2,"Expected a subtag to have at least 2 characters"),void 0===t&&2!=o?-1===r.indexOf(u)&&r.push(u):2===o?(t={key:u,value:""},void 0===n.find(function(e){return e.key===(null==t?void 0:t.key)})&&n.push(t)):(null==t?void 0:t.value)===""?t.value=u:(l(void 0!==t,"Expected keyword to be defined"),t.value+="-"+u),a+=o+1}return{attributes:r,keywords:n}}(m.extension).keywords:[];for(var C=[],I=function(e){var t,n,i=null!=(p=null==A?void 0:A[e])?p:[];l(Array.isArray(i),"keyLocaleData for ".concat(e," must be an array"));var a=i[0];l(void 0===a||"string"==typeof a,"value must be a string or undefined");var s=void 0,o=g.find(function(t){return t.key===e});if(o){var u=o.value;""!==u?i.indexOf(u)>-1&&(s={key:e,value:a=u}):i.indexOf("true")>-1&&(s={key:e,value:a="true"})}var c=r[e];l(null==c||"string"==typeof c,"optionsValue must be a string or undefined"),"string"==typeof c&&(t=e.toLowerCase(),n=c.toLowerCase(),l(void 0!==t,"ukey must be defined"),""===(c=n)&&(c="true")),c!==a&&i.indexOf(c)>-1&&(a=c,s=void 0),s&&C.push(s),N[e]=a},O=0;O<s.length;O++)I(s[O]);return C.length>0&&(x=function(e,t,r){l(-1===e.indexOf("-u-"),"Expected locale to not have a Unicode locale extension");for(var n,i="-u",a=0;a<t.length;a++){var s=t[a];i+="-".concat(s)}for(var o=0;o<r.length;o++){var u=r[o],c=u.key,d=u.value;i+="-".concat(c),""!==d&&(i+="-".concat(d))}if("-u"===i)return h(e);var f=e.indexOf("-x-");return h(-1===f?e+i:e.slice(0,f)+i+e.slice(f))}(x,[],C)),N.locale=x,N}function m(e,t){for(var r=[],n=0;n<t.length;n++){var i=f(e,t[n].replace(o,""));i&&r.push(i)}return r}function g(e,t,r,n){return p(t,Intl.getCanonicalLocales(e),{localeMatcher:(null==n?void 0:n.algorithm)||"best fit"},[],{},function(){return r}).locale}},92104:(e,t,r)=>{"use strict";var n;r.d(t,{p:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(n||(n={}))},93571:(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:s;return(t&&t.strategy?t.strategy:function(e,t){var r,n,s=1===e.length?i:a;return r=t.cache.create(),n=t.serializer,s.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function i(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function a(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return void 0===a&&(a=e.apply(this,n),t.set(i,a)),a}r.d(t,{B:()=>n,W:()=>u});var s=function(){return JSON.stringify(arguments)},o=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),l={create:function(){return new o}},u={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,a.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)}}},94524:e=>{e.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let a=Date.now(),s=t-(a-n);s<=0?(n=a,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},s)}}},94553:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,s:()=>d});var n=r(26514),i=r(75834),a=r(644),s=r(74116),o=r(51869),l=r(17482),u=r(82102);let c=(0,i.createContext)(void 0),d=e=>{let{children:t,onlyFull:r=!1}=e,{languages:d}=(0,s.A)(),{locale:h}=(0,a.A)(),[f,p]=(0,u.A)("selectedLocale",null),{shopInfo:m,loading:g}=(0,l.A)(),{countries:_}=(0,o.A)(),[y,v]=(0,i.useState)(h),b=e=>{p(e),v(e)};(0,i.useEffect)(()=>{if(f)return void v(f);if(!g){var e,t,r;b("".concat(null==m||null==(e=m.language)?void 0:e.isoCode,"-").concat(null==m||null==(r=m.country)||null==(t=r.isoCode)?void 0:t.toUpperCase()))}},[m,g,h]);let w=((e,t)=>{let r=[];return e.forEach(e=>{let{_id:n,isoCode:i}=e;r.push({_id:n,isoCode:i}),t.forEach(e=>{let{isoCode:t,_id:a}=e,s=[i,t.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(s)&&r.push({_id:"".concat(a,"-").concat(n),isoCode:s})})}),r})(d,_).filter(e=>!r||e.isoCode.includes("-")),E=!!(null==m?void 0:m.language)&&!!(null==m?void 0:m.country);return(0,n.jsx)(c.Provider,{value:{selectedLocale:y,setSelectedLocale:b,languageDialectList:w,isSystemReady:E,shopInfo:m},children:t})},h=c},94982:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a,l:()=>s});var n=r(57160),i=null;function a(e){if(n.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,a=r.errorThrown,s=r.error;if(i=null,a)throw s}}else e()}function s(e){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},94998:(e,t,r)=>{"use strict";r.d(t,{g:()=>n});let n=!1},95113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return E},useLinkStatus:function(){return w}});let n=r(45530),i=r(26514),a=n._(r(75834)),s=r(21863),o=r(43463),l=r(33210),u=r(43056),c=r(62765),d=r(34434),h=r(71098),f=r(25351),p=r(14070),m=r(99555);r(22777);let g=new Set;function _(e,t,r,n){if((0,o.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let v=a.default.forwardRef(function(e,t){let r,n,{href:l,as:g,children:v,prefetch:b=null,passHref:w,replace:E,shallow:k,scroll:S,locale:T,onClick:x,onNavigate:A,onMouseEnter:N,onTouchStart:C,legacyBehavior:I=!1,...O}=e;r=v,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let P=a.default.useContext(d.RouterContext),D=!1!==b,{href:M,as:L}=a.default.useMemo(()=>{if(!P){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,s.resolveHref)(P,l,!0);return{href:e,as:g?(0,s.resolveHref)(P,g):t||e}},[P,l,g]),R=a.default.useRef(M),F=a.default.useRef(L);I&&(n=a.default.Children.only(r));let B=I?n&&"object"==typeof n&&n.ref:t,[j,z,U]=(0,h.useIntersection)({rootMargin:"200px"}),H=a.default.useCallback(e=>{(F.current!==L||R.current!==M)&&(U(),F.current=L,R.current=M),j(e)},[L,M,U,j]),V=(0,m.useMergedRef)(H,B);a.default.useEffect(()=>{P&&z&&D&&_(P,M,L,{locale:T})},[L,M,z,T,D,null==P?void 0:P.locale,P]);let G={ref:V,onClick(e){I||"function"!=typeof x||x(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),P&&(e.defaultPrevented||function(e,t,r,n,i,a,s,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,o.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,P,M,L,E,k,S,T,A))},onMouseEnter(e){I||"function"!=typeof N||N(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),P&&_(P,M,L,{locale:T,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof C||C(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),P&&_(P,M,L,{locale:T,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(L))G.href=L;else if(!I||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==T?T:null==P?void 0:P.locale;G.href=(null==P?void 0:P.isLocaleDomain)&&(0,f.getDomainLocale)(L,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales)||(0,p.addBasePath)((0,c.addLocale)(L,e,null==P?void 0:P.defaultLocale))}return I?a.default.cloneElement(n,G):(0,i.jsx)("a",{...O,...G,children:r})}),b=(0,a.createContext)({pending:!1}),w=()=>(0,a.useContext)(b),E=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95277:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9985),i=r(15968),a=r(12867);function s(){let e=(0,n._)(["\n fragment UserFragment on User {\n _id\n lastBillingAddress {\n firstName\n lastName\n company\n addressLine\n addressLine2\n postalCode\n countryCode\n regionCode\n city\n }\n lastContact {\n emailAddress\n telNumber\n }\n lastLogin {\n countryCode\n locale\n remoteAddress\n remotePort\n timestamp\n userAgent\n }\n avatar {\n _id\n name\n size\n type\n url\n }\n allowedActions\n paymentCredentials {\n _id\n isValid\n isPreferred\n paymentProvider {\n _id\n type\n interface {\n _id\n label\n version\n }\n }\n }\n emails {\n verified\n address\n }\n web3Addresses {\n address\n nonce\n verified\n }\n webAuthnCredentials {\n _id\n created\n aaguid\n counter\n mdsMetadata {\n ...MD5MetaDataFragment\n }\n }\n profile {\n displayName\n phoneMobile\n gender\n address {\n firstName\n lastName\n company\n addressLine\n addressLine2\n postalCode\n countryCode\n regionCode\n city\n }\n birthday\n }\n username\n primaryEmail {\n verified\n address\n }\n isGuest\n isInitialPassword\n name\n roles\n tags\n deleted\n cart {\n _id\n items {\n _id\n }\n }\n orders {\n _id\n items {\n _id\n }\n }\n }\n ","\n"]);return s=function(){return e},e}let o=(0,i.J1)(s(),a.A)},95595:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(9985);function i(){let e=(0,n._)(["\n fragment LanguageFragment on Language {\n _id\n isoCode\n isActive\n isBase\n name\n }\n"]);return i=function(){return e},e}let a=(0,r(15968).J1)(i())},95851:(e,t,r)=>{"use strict";r.d(t,{Ng:()=>a,TW:()=>n,mD:()=>i});let n=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},i=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window;function a(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}},96456:(e,t,r)=>{e.exports=r(95113)},97813:(e,t,r)=>{"use strict";var n;r.d(t,{b:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},98966:(e,t,r)=>{"use strict";function n(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{x:()=>n})},99236:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(75834),i=r(67392),a=r(40058);function s(e){let t=n.useContext((0,a.l)()),r=e||t.client;return(0,i.V1)(!!r,28),r}},99246:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(70324);function i(e,t,r,n,i){return new a(e,t,r,n,i)}var a=function(e){function t(t,r,n,i,a,s){var o=e.call(this,t)||this;return o.onFinalize=a,o.shouldUnsubscribe=s,o._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return(0,n.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(r(62065).vU)},99365:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(49445);function i(e,t=0){let r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")}},99555:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(75834);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99578:(e,t,r)=>{"use strict";e.exports=r(87790)},99633:(e,t,r)=>{"use strict";r.d(t,{Im:()=>c,tv:()=>h,Tu:()=>v,eW:()=>u,oF:()=>d,N1:()=>y,N6:()=>m,jA:()=>g,Jp:()=>p,xm:()=>_,Qh:()=>f,qg:()=>X});var n,i,a,s,o,l=r(70324);function u(e){return e.type===i.literal}function c(e){return e.type===i.argument}function d(e){return e.type===i.number}function h(e){return e.type===i.date}function f(e){return e.type===i.time}function p(e){return e.type===i.select}function m(e){return e.type===i.plural}function g(e){return e.type===i.pound}function _(e){return e.type===i.tag}function y(e){return!!(e&&"object"==typeof e&&e.type===a.number)}function v(e){return!!(e&&"object"==typeof e&&e.type===a.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(a||(a={}));var b=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,E=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,T=/(\*)(0+)|(#+)(0+)|(0+)/g,x=/^(0+)$/;function A(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function N(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function C(e){var t=N(e);return t||{}}var I={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},O=new RegExp("^".concat(b.source,"*")),P=new RegExp("".concat(b.source,"*$"));function D(e,t){return{start:e,end:t}}var M=!!String.prototype.startsWith&&"_a".startsWith("a",1),L=!!String.fromCodePoint,R=!!Object.fromEntries,F=!!String.prototype.codePointAt,B=!!String.prototype.trimStart,j=!!String.prototype.trimEnd,z=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},U=!0;try{U=(null==(s=W("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:s[0])==="a"}catch(e){U=!1}var H=M?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},V=L?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0;i>a;){if((e=t[a++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},G=R?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],a=n[1];t[i]=a}return t},q=F?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},Z=B?function(e){return e.trimStart()}:function(e){return e.replace(O,"")},$=j?function(e){return e.trimEnd()}:function(e){return e.replace(P,"")};function W(e,t){return new RegExp(e,t)}if(U){var K=W("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o=function(e,t){var r;return K.lastIndex=t,null!=(r=K.exec(e)[1])?r:""}}else o=function(e,t){for(var r=[];;){var n,i=q(e,t);if(void 0===i||J(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return V.apply(void 0,r)};var Y=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var a=[];!this.isEOF();){var s=this.char();if(123===s){var o=this.parseArgument(e,r);if(o.err)return o;a.push(o.val)}else if(125===s&&e>0)break;else if(35===s&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),a.push({type:i.pound,location:D(l,this.clonePosition())})}else if(60!==s||this.ignoreTag||47!==this.peek())if(60===s&&!this.ignoreTag&&Q(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;a.push(o.val)}else if(!r)return this.error(n.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()));else break}return{val:a,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(a,"/>"),location:D(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(n.INVALID_TAG,D(r,this.clonePosition()));var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(n.UNCLOSED_TAG,D(r,this.clonePosition()));if(this.isEOF()||!Q(this.char()))return this.error(n.INVALID_TAG,D(l,this.clonePosition()));var u=this.clonePosition();return a!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,D(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:i.tag,value:a,children:o,location:D(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,D(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var a=this.tryParseQuote(t);if(a){n+=a;continue}var s=this.tryParseUnquoted(e,t);if(s){n+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){n+=o;continue}break}var l=D(r,this.clonePosition());return{val:{type:i.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Q(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return V.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),V(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,D(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(n.MALFORMED_ARGUMENT,D(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:a,location:D(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));return this.parseArgumentOptions(e,t,a,r);default:return this.error(n.MALFORMED_ARGUMENT,D(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=o(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:D(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,s){var o,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(c){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,D(u,d));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var m=$(p.val);if(0===m.length)return this.error(n.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:D(f,this.clonePosition())}}var g=this.tryParseArgumentClose(s);if(g.err)return g;var _=D(s,this.clonePosition());if(h&&H(null==h?void 0:h.style,"::",0)){var y=Z(h.style.slice(2));if("number"===c){var p=this.parseNumberSkeletonFromString(y,h.styleLocation);if(p.err)return p;return{val:{type:i.number,value:r,location:_,style:p.val},err:null}}if(0===y.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,_);var v,b=y;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(1&a),o=a<2?1:3+(a>>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(I[t||""]||I[n||""]||I["".concat(n,"-001")]||I["001"])[0]}(t);for(("H"==l||"k"==l)&&(o=0);o-- >0;)r+="a";for(;s-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(y,this.locale));var m={type:a.dateTime,pattern:b,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},b.replace(w,function(e){var t=e.length;switch(e[0]){case"G":v.era=4===t?"long":5===t?"narrow":"short";break;case"y":v.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":v.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":v.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":v.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"a":v.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":v.hourCycle="h12",v.hour=["numeric","2-digit"][t-1];break;case"H":v.hourCycle="h23",v.hour=["numeric","2-digit"][t-1];break;case"K":v.hourCycle="h11",v.hour=["numeric","2-digit"][t-1];break;case"k":v.hourCycle="h24",v.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":v.minute=["numeric","2-digit"][t-1];break;case"s":v.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":v.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),v):{}};return{val:{type:"date"===c?i.date:i.time,value:r,location:_,style:m},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:r,location:_,style:null!=(o=null==h?void 0:h.style)?o:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,D(E,(0,l.__assign)({},E)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),S=0;if("select"!==c&&"offset"===k.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),k=this.parseIdentifierIfPossible(),S=p.val}var T=this.tryParsePluralOrSelectOptions(e,c,t,k);if(T.err)return T;var g=this.tryParseArgumentClose(s);if(g.err)return g;var x=D(s,this.clonePosition());if("select"===c)return{val:{type:i.select,value:r,options:G(T.val),location:x},err:null};return{val:{type:i.plural,value:r,options:G(T.val),offset:S,pluralType:"plural"===c?"cardinal":"ordinal",location:x},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,D(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(E).filter(function(e){return e.length>0}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),o=0;o<s.length;o++)if(0===s[o].length)throw Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(n.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),C(t))},{}));continue;case"engineering":t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),C(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(T,function(e,r,n,i,a,s){if(r)t.minimumIntegerDigits=n.length;else if(i&&a)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(x.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(k.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(k,function(e,r,n,i,a,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&s?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,l.__assign)((0,l.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,l.__assign)((0,l.__assign)({},t),A(i)));continue}if(S.test(n.stem)){t=(0,l.__assign)((0,l.__assign)({},t),A(n.stem));continue}var a=N(n.stem);a&&(t=(0,l.__assign)((0,l.__assign)({},t),a));var s=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!x.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);s&&(t=(0,l.__assign)((0,l.__assign)({},t),s))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var a,s=!1,o=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=D(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([u,{value:p.val,location:D(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(a=this.parseIdentifierIfPossible()).value,c=a.location}return 0===o.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(n.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=10*a+(s-48),this.bump();else break}var o=D(n,this.clonePosition());return i?z(a*=r)?{val:a,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=q(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(H(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&J(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Q(e){return e>=97&&e<=122||e>=65&&e<=90}function J(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function X(e,t){void 0===t&&(t={});var r=new Y(e,t=(0,l.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,p(t)||m(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else d(t)&&y(t.style)||(h(t)||f(t))&&v(t.style)?delete t.style.location:_(t)&&e(t.children)})}(r.val),r.val}},99650:(e,t,r)=>{"use strict";r.d(t,{N9:()=>P,oR:()=>S});var n=r(75834),i=r(73367);!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
52
|
+
})));`),t.write(`newResult[${J(e)}] = ${r}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");let o=t.compile();return(t,r)=>o(e,t,r)})(t.shape)),l=r(l,u);else{l.value={};let e=n.shape;for(let t of n.keys){let r=e[t],n=r._zod.run({value:c[t],issues:[]},u),i="optional"===r._zod.optin&&"optional"===r._zod.optout;n instanceof Promise?d.push(n.then(e=>i?nS(e,l,t,c):nk(e,l,t))):i?nS(n,l,t,c):nk(n,l,t)}}if(!o)return d.length?Promise.all(d).then(()=>l):l;let h=[],f=n.keySet,p=o._zod,m=p.def.type;for(let e of Object.keys(c)){if(f.has(e))continue;if("never"===m){h.push(e);continue}let t=p.run({value:c[e],issues:[]},u);t instanceof Promise?d.push(t.then(t=>nk(t,l,e))):nk(t,l,e)}return(h.length&&l.issues.push({code:"unrecognized_keys",keys:h,input:c,inst:e}),d.length)?Promise.all(d).then(()=>l):l}});function nx(e,t,r,n){for(let r of e)if(0===r.issues.length)return t.value=r.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>ed(e,n,ey())))}),t}let nA=em("$ZodUnion",(e,t)=>{rJ.init(e,t),Y(e._zod,"optin",()=>t.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),Y(e._zod,"optout",()=>t.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),Y(e._zod,"values",()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),Y(e._zod,"pattern",()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>K(e.source)).join("|")})$`)}}),e._zod.parse=(r,n)=>{let i=!1,a=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},n);if(t instanceof Promise)a.push(t),i=!0;else{if(0===t.issues.length)return t;a.push(t)}}return i?Promise.all(a).then(t=>nx(t,r,e,n)):nx(a,r,e,n)}}),nN=em("$ZodDiscriminatedUnion",(e,t)=>{nA.init(e,t);let r=e._zod.parse;Y(e._zod,"propValues",()=>{let e={};for(let r of t.options){let n=r._zod.propValues;if(!n||0===Object.keys(n).length)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let[t,r]of Object.entries(n))for(let n of(e[t]||(e[t]=new Set),r))e[t].add(n)}return e});let n=W(()=>{let e=t.options,r=new Map;for(let n of e){let e=n._zod.propValues[t.discriminator];if(!e||0===e.size)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let t of e){if(r.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);r.set(t,n)}}return r});e._zod.parse=(i,a)=>{let s=i.value;if(!ee(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;let o=n.value.get(s?.[t.discriminator]);return o?o._zod.run(i,a):t.unionFallback?r(i,a):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:s,path:[t.discriminator],inst:e}),i)}}),nC=em("$ZodIntersection",(e,t)=>{rJ.init(e,t),e._zod.parse=(e,r)=>{let n=e.value,i=t.left._zod.run({value:n,issues:[]},r),a=t.right._zod.run({value:n,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,r])=>nI(e,t,r)):nI(e,i,a)}});function nI(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),el(e))return e;let n=function e(t,r){if(t===r||t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(er(t)&&er(r)){let n=Object.keys(r),i=Object.keys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a[n]=i.data}return{valid:!0,data:a}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}(t.value,r.value);if(!n.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}let nO=em("$ZodRecord",(e,t)=>{rJ.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!er(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let a=[];if(t.keyType._zod.values){let s,o=t.keyType._zod.values;for(let e of(r.value={},o))if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){let s=t.valueType._zod.run({value:i[e],issues:[]},n);s instanceof Promise?a.push(s.then(t=>{t.issues.length&&r.issues.push(...eu(e,t.issues)),r.value[e]=t.value})):(s.issues.length&&r.issues.push(...eu(e,s.issues)),r.value[e]=s.value)}for(let e in i)o.has(e)||(s=s??[]).push(e);s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else for(let s of(r.value={},Reflect.ownKeys(i))){if("__proto__"===s)continue;let o=t.keyType._zod.run({value:s,issues:[]},n);if(o instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(o.issues.length){r.issues.push({origin:"record",code:"invalid_key",issues:o.issues.map(e=>ed(e,n,ey())),input:s,path:[s],inst:e}),r.value[o.value]=o.value;continue}let l=t.valueType._zod.run({value:i[s],issues:[]},n);l instanceof Promise?a.push(l.then(e=>{e.issues.length&&r.issues.push(...eu(s,e.issues)),r.value[o.value]=e.value})):(l.issues.length&&r.issues.push(...eu(s,l.issues)),r.value[o.value]=l.value)}return a.length?Promise.all(a).then(()=>r):r}}),nP=em("$ZodEnum",(e,t)=>{rJ.init(e,t);let r=Z(t.entries);e._zod.values=new Set(r),e._zod.pattern=RegExp(`^(${r.filter(e=>en.has(typeof e)).map(e=>"string"==typeof e?ei(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{let i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:r,input:i,inst:e}),t}}),nD=em("$ZodLiteral",(e,t)=>{rJ.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=RegExp(`^(${t.values.map(e=>"string"==typeof e?ei(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(r,n)=>{let i=r.value;return e._zod.values.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),nM=em("$ZodTransform",(e,t)=>{rJ.init(e,t),e._zod.parse=(e,r)=>{let n=t.transform(e.value,e);if(r.async)return(n instanceof Promise?n:Promise.resolve(n)).then(t=>(e.value=t,e));if(n instanceof Promise)throw new eg;return e.value=n,e}}),nL=em("$ZodOptional",(e,t)=>{rJ.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Y(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${K(e.source)})?$`):void 0}),e._zod.parse=(e,r)=>"optional"===t.innerType._zod.optin?t.innerType._zod.run(e,r):void 0===e.value?e:t.innerType._zod.run(e,r)}),nR=em("$ZodNullable",(e,t)=>{rJ.init(e,t),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"pattern",()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${K(e.source)}|null)$`):void 0}),Y(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,r)=>null===e.value?e:t.innerType._zod.run(e,r)}),nF=em("$ZodDefault",(e,t)=>{rJ.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{if(void 0===e.value)return e.value=t.defaultValue,e;let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(e=>nB(e,t)):nB(n,t)}});function nB(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}let nj=em("$ZodPrefault",(e,t)=>{rJ.init(e,t),e._zod.optin="optional",Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>(void 0===e.value&&(e.value=t.defaultValue),t.innerType._zod.run(e,r))}),nz=em("$ZodNonOptional",(e,t)=>{rJ.init(e,t),Y(e._zod,"values",()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(r,n)=>{let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(t=>nU(t,e)):nU(i,e)}});function nU(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}let nH=em("$ZodCatch",(e,t)=>{rJ.init(e,t),e._zod.optin="optional",Y(e._zod,"optout",()=>t.innerType._zod.optout),Y(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(n=>(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ed(e,r,ey()))},input:e.value}),e.issues=[]),e)):(e.value=n.value,n.issues.length&&(e.value=t.catchValue({...e,error:{issues:n.issues.map(e=>ed(e,r,ey()))},input:e.value}),e.issues=[]),e)}}),nV=em("$ZodPipe",(e,t)=>{rJ.init(e,t),Y(e._zod,"values",()=>t.in._zod.values),Y(e._zod,"optin",()=>t.in._zod.optin),Y(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(e,r)=>{let n=t.in._zod.run(e,r);return n instanceof Promise?n.then(e=>nG(e,t,r)):nG(n,t,r)}});function nG(e,t,r){return el(e)?e:t.out._zod.run({value:e.value,issues:e.issues},r)}let nq=em("$ZodReadonly",(e,t)=>{rJ.init(e,t),Y(e._zod,"propValues",()=>t.innerType._zod.propValues),Y(e._zod,"values",()=>t.innerType._zod.values),Y(e._zod,"optin",()=>t.innerType._zod.optin),Y(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(e,r)=>{let n=t.innerType._zod.run(e,r);return n instanceof Promise?n.then(nZ):nZ(n)}});function nZ(e){return e.value=Object.freeze(e.value),e}let n$=em("$ZodLazy",(e,t)=>{rJ.init(e,t),Y(e._zod,"innerType",()=>t.getter()),Y(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Y(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Y(e._zod,"optin",()=>e._zod.innerType._zod.optin),Y(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,r)=>e._zod.innerType._zod.run(t,r)}),nW=em("$ZodCustom",(e,t)=>{rD.init(e,t),rJ.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(t=>nK(t,r,n,e));nK(i,r,n,e)}});function nK(e,t,r,n){if(!e){let e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(ef(e))}}function nY(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...es(t)})}function nQ(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...es(t)})}function nJ(e,t){return new rL({check:"less_than",...es(t),value:e,inclusive:!1})}function nX(e,t){return new rL({check:"less_than",...es(t),value:e,inclusive:!0})}function n0(e,t){return new rR({check:"greater_than",...es(t),value:e,inclusive:!1})}function n1(e,t){return new rR({check:"greater_than",...es(t),value:e,inclusive:!0})}function n2(e,t){return new rF({check:"multiple_of",...es(t),value:e})}function n5(e,t){return new rj({check:"max_length",...es(t),maximum:e})}function n3(e,t){return new rz({check:"min_length",...es(t),minimum:e})}function n4(e,t){return new rU({check:"length_equals",...es(t),length:e})}function n9(e){return new rK({check:"overwrite",tx:e})}let n6=em("ZodISODateTime",(e,t)=>{nr.init(e,t),is.init(e,t)}),n8=em("ZodISODate",(e,t)=>{nn.init(e,t),is.init(e,t)}),n7=em("ZodISOTime",(e,t)=>{ni.init(e,t),is.init(e,t)}),ie=em("ZodISODuration",(e,t)=>{na.init(e,t),is.init(e,t)}),it=em("ZodType",(e,t)=>(rJ.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,r)=>ea(e,t,r),e.brand=()=>e,e.register=(t,r)=>(t.add(e,r),e),e.parse=(t,r)=>eN(e,t,r,{callee:e.parse}),e.safeParse=(t,r)=>eI(e,t,r),e.parseAsync=async(t,r)=>eC(e,t,r,{callee:e.parseAsync}),e.safeParseAsync=async(t,r)=>eO(e,t,r),e.spa=e.safeParseAsync,e.refine=(t,r)=>e.check(function(e,t={}){return new an({type:"custom",check:"custom",fn:e,...es(t)})}(t,r)),e.superRefine=t=>e.check(function(e){let t=function(e){let t=new rD({check:"custom"});return t._zod.check=e,t}(r=>(r.addIssue=e=>{"string"==typeof e?r.issues.push(ef(e,r.value,t._zod.def)):(e.fatal&&(e.continue=!1),e.code??(e.code="custom"),e.input??(e.input=r.value),e.inst??(e.inst=t),e.continue??(e.continue=!t._zod.def.abort),r.issues.push(ef(e)))},e(r.value,r)));return t}(t)),e.overwrite=t=>e.check(n9(t)),e.optional=()=>i2(e),e.nullable=()=>i3(e),e.nullish=()=>i2(i3(e)),e.nonoptional=t=>new i6({type:"nonoptional",innerType:e,...es(t)}),e.array=()=>ij(e),e.or=t=>iq([e,t]),e.and=t=>new i$({type:"intersection",left:e,right:t}),e.transform=t=>ae(e,new i0({type:"transform",transform:t})),e.default=t=>(function(e,t){return new i4({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.prefault=t=>(function(e,t){return new i9({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():t}})})(e,t),e.catch=t=>(function(e,t){return new i8({type:"catch",innerType:e,catchValue:"function"==typeof t?t:()=>t})})(e,t),e.pipe=t=>ae(e,t),e.readonly=()=>new at({type:"readonly",innerType:e}),e.describe=t=>{let r=e.clone();return q.add(r,{description:t}),r},Object.defineProperty(e,"description",{get:()=>q.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return q.get(e);let r=e.clone();return q.add(r,t[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ir=em("_ZodString",(e,t)=>{rX.init(e,t),it.init(e,t);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(function(e,t){return new rV({check:"string_format",format:"regex",...es(t),pattern:e})}(...t)),e.includes=(...t)=>e.check(function(e,t){return new rZ({check:"string_format",format:"includes",...es(t),includes:e})}(...t)),e.startsWith=(...t)=>e.check(function(e,t){return new r$({check:"string_format",format:"starts_with",...es(t),prefix:e})}(...t)),e.endsWith=(...t)=>e.check(function(e,t){return new rW({check:"string_format",format:"ends_with",...es(t),suffix:e})}(...t)),e.min=(...t)=>e.check(n3(...t)),e.max=(...t)=>e.check(n5(...t)),e.length=(...t)=>e.check(n4(...t)),e.nonempty=(...t)=>e.check(n3(1,...t)),e.lowercase=t=>e.check(new rG({check:"string_format",format:"lowercase",...es(t)})),e.uppercase=t=>e.check(new rq({check:"string_format",format:"uppercase",...es(t)})),e.trim=()=>e.check(n9(e=>e.trim())),e.normalize=(...t)=>e.check(function(e){return n9(t=>t.normalize(e))}(...t)),e.toLowerCase=()=>e.check(n9(e=>e.toLowerCase())),e.toUpperCase=()=>e.check(n9(e=>e.toUpperCase()))}),ii=em("ZodString",(e,t)=>{rX.init(e,t),ir.init(e,t),e.email=t=>e.check(new io({type:"string",format:"email",check:"string_format",abort:!1,...es(t)})),e.url=t=>e.check(new ic({type:"string",format:"url",check:"string_format",abort:!1,...es(t)})),e.jwt=t=>e.check(new ix({type:"string",format:"jwt",check:"string_format",abort:!1,...es(t)})),e.emoji=t=>e.check(new id({type:"string",format:"emoji",check:"string_format",abort:!1,...es(t)})),e.guid=t=>e.check(nY(il,t)),e.uuid=t=>e.check(new iu({type:"string",format:"uuid",check:"string_format",abort:!1,...es(t)})),e.uuidv4=t=>e.check(new iu({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...es(t)})),e.uuidv6=t=>e.check(new iu({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...es(t)})),e.uuidv7=t=>e.check(new iu({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...es(t)})),e.nanoid=t=>e.check(new ih({type:"string",format:"nanoid",check:"string_format",abort:!1,...es(t)})),e.guid=t=>e.check(nY(il,t)),e.cuid=t=>e.check(new ip({type:"string",format:"cuid",check:"string_format",abort:!1,...es(t)})),e.cuid2=t=>e.check(new im({type:"string",format:"cuid2",check:"string_format",abort:!1,...es(t)})),e.ulid=t=>e.check(new ig({type:"string",format:"ulid",check:"string_format",abort:!1,...es(t)})),e.base64=t=>e.check(nQ(ik,t)),e.base64url=t=>e.check(new iS({type:"string",format:"base64url",check:"string_format",abort:!1,...es(t)})),e.xid=t=>e.check(new i_({type:"string",format:"xid",check:"string_format",abort:!1,...es(t)})),e.ksuid=t=>e.check(new iy({type:"string",format:"ksuid",check:"string_format",abort:!1,...es(t)})),e.ipv4=t=>e.check(new iv({type:"string",format:"ipv4",check:"string_format",abort:!1,...es(t)})),e.ipv6=t=>e.check(new ib({type:"string",format:"ipv6",check:"string_format",abort:!1,...es(t)})),e.cidrv4=t=>e.check(new iw({type:"string",format:"cidrv4",check:"string_format",abort:!1,...es(t)})),e.cidrv6=t=>e.check(new iE({type:"string",format:"cidrv6",check:"string_format",abort:!1,...es(t)})),e.e164=t=>e.check(new iT({type:"string",format:"e164",check:"string_format",abort:!1,...es(t)})),e.datetime=t=>e.check(new n6({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...es(t)})),e.date=t=>e.check(new n8({type:"string",format:"date",check:"string_format",...es(t)})),e.time=t=>e.check(new n7({type:"string",format:"time",check:"string_format",precision:null,...es(t)})),e.duration=t=>e.check(new ie({type:"string",format:"duration",check:"string_format",...es(t)}))});function ia(e){return new ii({type:"string",...es(e)})}let is=em("ZodStringFormat",(e,t)=>{r0.init(e,t),ir.init(e,t)}),io=em("ZodEmail",(e,t)=>{r5.init(e,t),is.init(e,t)}),il=em("ZodGUID",(e,t)=>{r1.init(e,t),is.init(e,t)}),iu=em("ZodUUID",(e,t)=>{r2.init(e,t),is.init(e,t)}),ic=em("ZodURL",(e,t)=>{r3.init(e,t),is.init(e,t)}),id=em("ZodEmoji",(e,t)=>{r4.init(e,t),is.init(e,t)}),ih=em("ZodNanoID",(e,t)=>{r9.init(e,t),is.init(e,t)}),ip=em("ZodCUID",(e,t)=>{r6.init(e,t),is.init(e,t)}),im=em("ZodCUID2",(e,t)=>{r8.init(e,t),is.init(e,t)}),ig=em("ZodULID",(e,t)=>{r7.init(e,t),is.init(e,t)}),i_=em("ZodXID",(e,t)=>{ne.init(e,t),is.init(e,t)}),iy=em("ZodKSUID",(e,t)=>{nt.init(e,t),is.init(e,t)}),iv=em("ZodIPv4",(e,t)=>{ns.init(e,t),is.init(e,t)}),ib=em("ZodIPv6",(e,t)=>{no.init(e,t),is.init(e,t)}),iw=em("ZodCIDRv4",(e,t)=>{nl.init(e,t),is.init(e,t)}),iE=em("ZodCIDRv6",(e,t)=>{nu.init(e,t),is.init(e,t)}),ik=em("ZodBase64",(e,t)=>{nd.init(e,t),is.init(e,t)}),iS=em("ZodBase64URL",(e,t)=>{nh.init(e,t),is.init(e,t)}),iT=em("ZodE164",(e,t)=>{nf.init(e,t),is.init(e,t)}),ix=em("ZodJWT",(e,t)=>{np.init(e,t),is.init(e,t)}),iA=em("ZodNumber",(e,t)=>{nm.init(e,t),it.init(e,t),e.gt=(t,r)=>e.check(n0(t,r)),e.gte=(t,r)=>e.check(n1(t,r)),e.min=(t,r)=>e.check(n1(t,r)),e.lt=(t,r)=>e.check(nJ(t,r)),e.lte=(t,r)=>e.check(nX(t,r)),e.max=(t,r)=>e.check(nX(t,r)),e.int=t=>e.check(iI(t)),e.safe=t=>e.check(iI(t)),e.positive=t=>e.check(n0(0,t)),e.nonnegative=t=>e.check(n1(0,t)),e.negative=t=>e.check(nJ(0,t)),e.nonpositive=t=>e.check(nX(0,t)),e.multipleOf=(t,r)=>e.check(n2(t,r)),e.step=(t,r)=>e.check(n2(t,r)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??-1/0,r.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(r.maximum??1/0,r.exclusiveMaximum??1/0)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function iN(e){return new iA({type:"number",checks:[],...es(e)})}let iC=em("ZodNumberFormat",(e,t)=>{ng.init(e,t),iA.init(e,t)});function iI(e){return new iC({type:"number",check:"number_format",abort:!1,format:"safeint",...es(e)})}let iO=em("ZodBoolean",(e,t)=>{n_.init(e,t),it.init(e,t)});function iP(e){return new iO({type:"boolean",...es(e)})}let iD=em("ZodNull",(e,t)=>{ny.init(e,t),it.init(e,t)}),iM=em("ZodUnknown",(e,t)=>{nv.init(e,t),it.init(e,t)});function iL(){return new iM({type:"unknown"})}let iR=em("ZodNever",(e,t)=>{nb.init(e,t),it.init(e,t)});function iF(e){return new iR({type:"never",...es(e)})}let iB=em("ZodArray",(e,t)=>{nE.init(e,t),it.init(e,t),e.element=t.element,e.min=(t,r)=>e.check(n3(t,r)),e.nonempty=t=>e.check(n3(1,t)),e.max=(t,r)=>e.check(n5(t,r)),e.length=(t,r)=>e.check(n4(t,r)),e.unwrap=()=>e.element});function ij(e,t){return new iB({type:"array",element:e,...es(t)})}let iz=em("ZodObject",(e,t)=>{nT.init(e,t),it.init(e,t),Y(e,"shape",()=>t.shape),e.keyof=()=>iQ(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:iL()}),e.loose=()=>e.clone({...e._zod.def,catchall:iL()}),e.strict=()=>e.clone({...e._zod.def,catchall:iF()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>(function(e,t){if(!er(t))throw Error("Invalid input to extend: expected a plain object");let r={...e._zod.def,get shape(){let r={...e._zod.def.shape,...t};return Q(this,"shape",r),r},checks:[]};return ea(e,r)})(e,t),e.merge=t=>(function(e,t){return ea(e,{...e._zod.def,get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return Q(this,"shape",r),r},catchall:t._zod.def.catchall,checks:[]})})(e,t),e.pick=t=>(function(e,t){let r={},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&(r[e]=n.shape[e])}return ea(e,{...e._zod.def,shape:r,checks:[]})})(e,t),e.omit=t=>(function(e,t){let r={...e._zod.def.shape},n=e._zod.def;for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ea(e,{...e._zod.def,shape:r,checks:[]})})(e,t),e.partial=(...t)=>(function(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in n))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=e?new e({type:"optional",innerType:n[t]}):n[t])}else for(let t in n)i[t]=e?new e({type:"optional",innerType:n[t]}):n[t];return ea(t,{...t._zod.def,shape:i,checks:[]})})(i1,e,t[0]),e.required=(...t)=>(function(e,t,r){let n=t._zod.def.shape,i={...n};if(r)for(let t in r){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);r[t]&&(i[t]=new e({type:"nonoptional",innerType:n[t]}))}else for(let t in n)i[t]=new e({type:"nonoptional",innerType:n[t]});return ea(t,{...t._zod.def,shape:i,checks:[]})})(i6,e,t[0])});function iU(e,t){return new iz({type:"object",get shape(){return Q(this,"shape",{...e}),this.shape},...es(t)})}function iH(e,t){return new iz({type:"object",get shape(){return Q(this,"shape",{...e}),this.shape},catchall:iF(),...es(t)})}function iV(e,t){return new iz({type:"object",get shape(){return Q(this,"shape",{...e}),this.shape},catchall:iL(),...es(t)})}let iG=em("ZodUnion",(e,t)=>{nA.init(e,t),it.init(e,t),e.options=t.options});function iq(e,t){return new iG({type:"union",options:e,...es(t)})}let iZ=em("ZodDiscriminatedUnion",(e,t)=>{iG.init(e,t),nN.init(e,t)}),i$=em("ZodIntersection",(e,t)=>{nC.init(e,t),it.init(e,t)}),iW=em("ZodRecord",(e,t)=>{nO.init(e,t),it.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function iK(e,t,r){return new iW({type:"record",keyType:e,valueType:t,...es(r)})}let iY=em("ZodEnum",(e,t)=>{nP.init(e,t),it.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(e,n)=>{let i={};for(let n of e)if(r.has(n))i[n]=t.entries[n];else throw Error(`Key ${n} not found in enum`);return new iY({...t,checks:[],...es(n),entries:i})},e.exclude=(e,n)=>{let i={...t.entries};for(let t of e)if(r.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new iY({...t,checks:[],...es(n),entries:i})}});function iQ(e,t){return new iY({type:"enum",entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...es(t)})}let iJ=em("ZodLiteral",(e,t)=>{nD.init(e,t),it.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function iX(e,t){return new iJ({type:"literal",values:Array.isArray(e)?e:[e],...es(t)})}let i0=em("ZodTransform",(e,t)=>{nM.init(e,t),it.init(e,t),e._zod.parse=(r,n)=>{r.addIssue=n=>{"string"==typeof n?r.issues.push(ef(n,r.value,t)):(n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=e),n.continue??(n.continue=!0),r.issues.push(ef(n)))};let i=t.transform(r.value,r);return i instanceof Promise?i.then(e=>(r.value=e,r)):(r.value=i,r)}}),i1=em("ZodOptional",(e,t)=>{nL.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function i2(e){return new i1({type:"optional",innerType:e})}let i5=em("ZodNullable",(e,t)=>{nR.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType});function i3(e){return new i5({type:"nullable",innerType:e})}let i4=em("ZodDefault",(e,t)=>{nF.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),i9=em("ZodPrefault",(e,t)=>{nj.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType}),i6=em("ZodNonOptional",(e,t)=>{nz.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType}),i8=em("ZodCatch",(e,t)=>{nH.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),i7=em("ZodPipe",(e,t)=>{nV.init(e,t),it.init(e,t),e.in=t.in,e.out=t.out});function ae(e,t){return new i7({type:"pipe",in:e,out:t})}let at=em("ZodReadonly",(e,t)=>{nq.init(e,t),it.init(e,t)}),ar=em("ZodLazy",(e,t)=>{n$.init(e,t),it.init(e,t),e.unwrap=()=>e._zod.def.getter()}),an=em("ZodCustom",(e,t)=>{nW.init(e,t),it.init(e,t)});function ai(e,t){let r=es(t);return r.abort??(r.abort=!0),new an({type:"custom",check:"custom",fn:e??(()=>!0),...r})}function aa(e,t={error:`Input not instance of ${e.name}`}){let r=new an({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...es(t)});return r._zod.bag.Class=e,r}var as=Object.defineProperty,ao=(Symbol.for("vercel.ai.error.AI_NoOutputSpecifiedError"),Symbol.for("vercel.ai.error.AI_InvalidArgumentError"),Symbol.for("vercel.ai.error.AI_InvalidStreamPartError"),Symbol.for("vercel.ai.error.AI_InvalidToolInputError"),Symbol.for("vercel.ai.error.AI_MCPClientError"),Symbol.for("vercel.ai.error.AI_NoImageGeneratedError"),"AI_NoObjectGeneratedError"),al=`vercel.ai.error.${ao}`,au=Symbol.for(al),ac=class extends A{constructor({message:e="No object generated.",cause:t,text:r,response:n,usage:i,finishReason:a}){super({name:ao,message:e,cause:t}),this[h]=!0,this.text=r,this.response=n,this.usage=i,this.finishReason=a}static isInstance(e){return A.hasMarker(e,al)}};h=au,Symbol.for("vercel.ai.error.AI_NoOutputGeneratedError"),Symbol.for("vercel.ai.error.AI_NoSuchToolError"),Symbol.for("vercel.ai.error.AI_ToolCallRepairError"),Symbol.for("vercel.ai.error.AI_InvalidDataContentError"),Symbol.for("vercel.ai.error.AI_InvalidMessageRoleError"),Symbol.for("vercel.ai.error.AI_MessageConversionError"),Symbol.for("vercel.ai.error.AI_DownloadError"),Symbol.for("vercel.ai.error.AI_RetryError");var ad="5.0.61",ah=iq([ia(),aa(Uint8Array),aa(ArrayBuffer),ai(e=>{var t,r;return null!=(r=null==(t=globalThis.Buffer)?void 0:t.isBuffer(e))&&r},{message:"Must be a Buffer"})]),af=new ar({type:"lazy",getter:()=>iq([new iD({type:"null",...es(void 0)}),ia(),iN(),iP(),iK(ia(),af),ij(af)])}),ap=iK(ia(),iK(ia(),af)),am=iU({type:iX("text"),text:ia(),providerOptions:ap.optional()}),ag=iU({type:iX("image"),image:iq([ah,aa(URL)]),mediaType:ia().optional(),providerOptions:ap.optional()}),a_=iU({type:iX("file"),data:iq([ah,aa(URL)]),filename:ia().optional(),mediaType:ia(),providerOptions:ap.optional()}),ay=iU({type:iX("reasoning"),text:ia(),providerOptions:ap.optional()}),av=iU({type:iX("tool-call"),toolCallId:ia(),toolName:ia(),input:iL(),providerOptions:ap.optional(),providerExecuted:iP().optional()}),ab=new iZ({type:"union",options:[iU({type:iX("text"),value:ia()}),iU({type:iX("json"),value:af}),iU({type:iX("error-text"),value:ia()}),iU({type:iX("error-json"),value:af}),iU({type:iX("content"),value:ij(iq([iU({type:iX("text"),text:ia()}),iU({type:iX("media"),data:ia(),mediaType:ia()})]))})],discriminator:"type",...es(void 0)}),aw=iU({type:iX("tool-result"),toolCallId:ia(),toolName:ia(),output:ab,providerOptions:ap.optional()}),aE=iU({role:iX("system"),content:ia(),providerOptions:ap.optional()}),ak=iU({role:iX("user"),content:iq([ia(),ij(iq([am,ag,a_]))]),providerOptions:ap.optional()}),aS=iU({role:iX("assistant"),content:iq([ia(),ij(iq([am,a_,ay,av,aw]))]),providerOptions:ap.optional()});iq([aE,ak,aS,iU({role:iX("tool"),content:ij(aw),providerOptions:ap.optional()})]),tU({prefix:"aitxt",size:24}),TransformStream;var aT=iq([iH({type:iX("text-start"),id:ia(),providerMetadata:ap.optional()}),iH({type:iX("text-delta"),id:ia(),delta:ia(),providerMetadata:ap.optional()}),iH({type:iX("text-end"),id:ia(),providerMetadata:ap.optional()}),iH({type:iX("error"),errorText:ia()}),iH({type:iX("tool-input-start"),toolCallId:ia(),toolName:ia(),providerExecuted:iP().optional(),dynamic:iP().optional()}),iH({type:iX("tool-input-delta"),toolCallId:ia(),inputTextDelta:ia()}),iH({type:iX("tool-input-available"),toolCallId:ia(),toolName:ia(),input:iL(),providerExecuted:iP().optional(),providerMetadata:ap.optional(),dynamic:iP().optional()}),iH({type:iX("tool-input-error"),toolCallId:ia(),toolName:ia(),input:iL(),providerExecuted:iP().optional(),providerMetadata:ap.optional(),dynamic:iP().optional(),errorText:ia()}),iH({type:iX("tool-output-available"),toolCallId:ia(),output:iL(),providerExecuted:iP().optional(),dynamic:iP().optional(),preliminary:iP().optional()}),iH({type:iX("tool-output-error"),toolCallId:ia(),errorText:ia(),providerExecuted:iP().optional(),dynamic:iP().optional()}),iH({type:iX("reasoning-start"),id:ia(),providerMetadata:ap.optional()}),iH({type:iX("reasoning-delta"),id:ia(),delta:ia(),providerMetadata:ap.optional()}),iH({type:iX("reasoning-end"),id:ia(),providerMetadata:ap.optional()}),iH({type:iX("source-url"),sourceId:ia(),url:ia(),title:ia().optional(),providerMetadata:ap.optional()}),iH({type:iX("source-document"),sourceId:ia(),mediaType:ia(),title:ia(),filename:ia().optional(),providerMetadata:ap.optional()}),iH({type:iX("file"),url:ia(),mediaType:ia(),providerMetadata:ap.optional()}),iH({type:ai(e=>"string"==typeof e&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:ia().optional(),data:iL(),transient:iP().optional()}),iH({type:iX("start-step")}),iH({type:iX("finish-step")}),iH({type:iX("start"),messageId:ia().optional(),messageMetadata:iL().optional()}),iH({type:iX("finish"),messageMetadata:iL().optional()}),iH({type:iX("abort")}),iH({type:iX("message-metadata"),messageMetadata:iL()})]);async function ax(e){if(void 0===e)return{value:void 0,state:"undefined-input"};let t=await tW({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await tW({text:function(e){let t=["ROOT"],r=-1,n=null;function i(e,i,a){switch(e){case'"':r=i,t.pop(),t.push(a),t.push("INSIDE_STRING");break;case"f":case"t":case"n":r=i,n=i,t.pop(),t.push(a),t.push("INSIDE_LITERAL");break;case"-":t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=i,t.pop(),t.push(a),t.push("INSIDE_NUMBER");break;case"{":r=i,t.pop(),t.push(a),t.push("INSIDE_OBJECT_START");break;case"[":r=i,t.pop(),t.push(a),t.push("INSIDE_ARRAY_START")}}function a(e,n){switch(e){case",":t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break;case"}":r=n,t.pop()}}function s(e,n){switch(e){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=n,t.pop()}}for(let o=0;o<e.length;o++){let l=e[o];switch(t[t.length-1]){case"ROOT":i(l,o,"FINISH");break;case"INSIDE_OBJECT_START":switch(l){case'"':t.pop(),t.push("INSIDE_OBJECT_KEY");break;case"}":r=o,t.pop()}break;case"INSIDE_OBJECT_AFTER_COMMA":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break;case"INSIDE_OBJECT_KEY":'"'===l&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break;case"INSIDE_OBJECT_AFTER_KEY":":"===l&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break;case"INSIDE_OBJECT_BEFORE_VALUE":i(l,o,"INSIDE_OBJECT_AFTER_VALUE");break;case"INSIDE_OBJECT_AFTER_VALUE":a(l,o);break;case"INSIDE_STRING":switch(l){case'"':t.pop(),r=o;break;case"\\":t.push("INSIDE_STRING_ESCAPE");break;default:r=o}break;case"INSIDE_ARRAY_START":"]"===l?(r=o,t.pop()):(r=o,i(l,o,"INSIDE_ARRAY_AFTER_VALUE"));break;case"INSIDE_ARRAY_AFTER_VALUE":switch(l){case",":t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break;case"]":r=o,t.pop();break;default:r=o}break;case"INSIDE_ARRAY_AFTER_COMMA":i(l,o,"INSIDE_ARRAY_AFTER_VALUE");break;case"INSIDE_STRING_ESCAPE":t.pop(),r=o;break;case"INSIDE_NUMBER":switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r=o;break;case"e":case"E":case"-":case".":break;case",":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,o);break;case"}":t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]&&a(l,o);break;case"]":t.pop(),"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o);break;default:t.pop()}break;case"INSIDE_LITERAL":{let i=e.substring(n,o+1);"false".startsWith(i)||"true".startsWith(i)||"null".startsWith(i)?r=o:(t.pop(),"INSIDE_OBJECT_AFTER_VALUE"===t[t.length-1]?a(l,o):"INSIDE_ARRAY_AFTER_VALUE"===t[t.length-1]&&s(l,o))}}}let o=e.slice(0,r+1);for(let r=t.length-1;r>=0;r--)switch(t[r]){case"INSIDE_STRING":o+='"';break;case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":o+="}";break;case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":o+="]";break;case"INSIDE_LITERAL":{let t=e.substring(n,e.length);"true".startsWith(t)?o+="true".slice(t.length):"false".startsWith(t)?o+="false".slice(t.length):"null".startsWith(t)&&(o+="null".slice(t.length))}}return o}(e)})).success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"}}function aA(e){return e.type.startsWith("tool-")}function aN(e){return aA(e)||"dynamic-tool"===e.type}function aC(e){return e.type.split("-").slice(1).join("-")}async function aI({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:e}=await r.read();if(e)break}}catch(e){null==t||t(e)}finally{r.releaseLock()}}tU({prefix:"aitxt",size:24}),tU({prefix:"aiobj",size:24});var aO=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(e){r(e)}}),this.processQueue()})}};tU({prefix:"aiobj",size:24}),((e,t)=>{for(var r in t)as(e,r,{get:t[r],enumerable:!0})})({},{object:()=>aD,text:()=>aP});var aP=()=>({type:"text",responseFormat:{type:"text"},parsePartial:async({text:e})=>({partial:e}),parseOutput:async({text:e})=>e}),aD=({schema:e})=>{let t=function(e){return null==e?rn({properties:{},additionalProperties:!1}):"object"==typeof e&&null!==e&&rr in e&&!0===e[rr]&&"jsonSchema"in e&&"validate"in e?e:function(e,t){var r;return"_zod"in e?rn(function(e,t){if(e instanceof G){let r=new ep(t),n={};for(let t of e._idmap.entries()){let[e,n]=t;r.process(n)}let i={},a={registry:e,uri:t?.uri,defs:n};for(let n of e._idmap.entries()){let[e,s]=n;i[e]=r.emit(s,{...t,external:a})}return Object.keys(n).length>0&&(i.__shared={["draft-2020-12"===r.target?"$defs":"definitions"]:n}),{schemas:i}}let r=new ep(t);return r.process(e),r.emit(e,t)}(e,{target:"draft-7",io:"output",reused:"inline"}),{validate:async t=>{let r=await eO(e,t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}}):rn(((e,t)=>{var r;let n=(e=>{let t,r="string"==typeof(t=e)?{...tQ,name:t}:{...tQ,...t},n=void 0!==r.name?[...r.basePath,r.definitionPath,r.name]:r.basePath;return{...r,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(r.definitions).map(([e,t])=>[t._def,{def:t._def,path:[...r.basePath,r.definitionPath,e],jsonSchema:void 0}]))}})(t),i="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,r])=>{var i;return{...e,[t]:null!=(i=t7(r._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0))?i:{}}},{}):void 0,a="string"==typeof t?t:(null==t?void 0:t.nameStrategy)==="title"||null==t?void 0:t.name,s=null!=(r=t7(e._def,void 0===a?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1))?r:{},o="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==o&&(s.title=o);let l=void 0===a?i?{...s,[n.definitionPath]:i}:s:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,a].join("/"),[n.definitionPath]:{...i,[a]:s}};return l.$schema="http://json-schema.org/draft-07/schema#",l})(e,{$refStrategy:(r=void 0,"none")}),{validate:async t=>{let r=await e.safeParseAsync(t);return r.success?{success:!0,value:r.data}:{success:!1,error:r.error}}})}(e)}(e);return{type:"object",responseFormat:{type:"json",schema:t.jsonSchema},async parsePartial({text:e}){let t=await ax(e);switch(t.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:t.value};default:{let e=t.state;throw Error(`Unsupported parse state: ${e}`)}}},async parseOutput({text:e},r){let n=await tW({text:e});if(!n.success)throw new ac({message:"No object generated: could not parse the response.",cause:n.error,text:e,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=await t$({value:n.value,schema:t});if(!i.success)throw new ac({message:"No object generated: response did not match schema.",cause:i.error,text:e,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.value}}},aM=(Symbol.for("vercel.ai.error.AI_NoSuchProviderError"),iV({name:ia(),version:ia()})),aL=iV({_meta:i2(iU({}).loose())}),aR=iU({method:ia(),params:i2(aL)}),aF=iV({experimental:i2(iU({}).loose()),logging:i2(iU({}).loose()),prompts:i2(iV({listChanged:i2(iP())})),resources:i2(iV({subscribe:i2(iP()),listChanged:i2(iP())})),tools:i2(iV({listChanged:i2(iP())}))});aL.extend({protocolVersion:ia(),capabilities:aF,serverInfo:aM,instructions:i2(ia())});var aB=aL.extend({nextCursor:i2(ia())}),aj=iU({name:ia(),description:i2(ia()),inputSchema:iU({type:iX("object"),properties:i2(iU({}).loose())}).loose()}).loose();aB.extend({tools:ij(aj)});var az=iU({type:iX("text"),text:ia()}).loose(),aU=iU({type:iX("image"),data:nQ(ik,void 0),mimeType:ia()}).loose(),aH=iU({uri:ia(),mimeType:i2(ia())}).loose(),aV=aH.extend({text:ia()}),aG=aH.extend({blob:nQ(ik,void 0)}),aq=iU({type:iX("resource"),resource:iq([aV,aG])}).loose();aL.extend({content:ij(iq([az,aU,aq])),isError:iP().default(!1).optional()}).or(aL.extend({toolResult:iL()}));var aZ=iU({jsonrpc:iX("2.0"),id:iq([ia(),iN().int()])}).merge(aR).strict(),a$=iU({jsonrpc:iX("2.0"),id:iq([ia(),iN().int()]),result:aL}).strict(),aW=iU({jsonrpc:iX("2.0"),id:iq([ia(),iN().int()]),error:iU({code:iN().int(),message:ia(),data:i2(iL())})}).strict();async function aK(e){if(null==e)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async e=>{let{name:t,type:r}=e;return{type:"file",mediaType:r,filename:t,url:await new Promise((t,r)=>{let n=new FileReader;n.onload=e=>{var r;t(null==(r=e.target)?void 0:r.result)},n.onerror=e=>r(e),n.readAsDataURL(e)})}}))}iq([aZ,iU({jsonrpc:iX("2.0")}).merge(iU({method:ia(),params:i2(aL)})).strict(),a$,aW]);var aY=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:n,fetch:i,prepareSendMessagesRequest:a,prepareReconnectToStreamRequest:s}){this.api=e,this.credentials=t,this.headers=r,this.body=n,this.fetch=i,this.prepareSendMessagesRequest=a,this.prepareReconnectToStreamRequest=s}async sendMessages({abortSignal:e,...t}){var r,n,i,a,s;let o=await tK(this.body),l=await tK(this.headers),u=await tK(this.credentials),c=await (null==(r=this.prepareSendMessagesRequest)?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...o,...t.body},headers:{...l,...t.headers},credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),d=null!=(n=null==c?void 0:c.api)?n:this.api,h=(null==c?void 0:c.headers)!==void 0?c.headers:{...l,...t.headers},f=(null==c?void 0:c.body)!==void 0?c.body:{...o,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},p=null!=(i=null==c?void 0:c.credentials)?i:u,m=null!=(a=this.fetch)?a:globalThis.fetch,g=await m(d,{method:"POST",headers:tz({"Content-Type":"application/json",...h},`ai-sdk/${ad}`,tj()),body:JSON.stringify(f),credentials:p,signal:e});if(!g.ok)throw Error(null!=(s=await g.text())?s:"Failed to fetch the chat response.");if(!g.body)throw Error("The response body is empty.");return this.processResponseStream(g.body)}async reconnectToStream(e){var t,r,n,i,a;let s=await tK(this.body),o=await tK(this.headers),l=await tK(this.credentials),u=await (null==(t=this.prepareReconnectToStreamRequest)?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...s,...e.body},headers:{...o,...e.headers},credentials:l,requestMetadata:e.metadata})),c=null!=(r=null==u?void 0:u.api)?r:`${this.api}/${e.chatId}/stream`,d=(null==u?void 0:u.headers)!==void 0?u.headers:{...o,...e.headers},h=null!=(n=null==u?void 0:u.credentials)?n:l,f=null!=(i=this.fetch)?i:globalThis.fetch,p=await f(c,{method:"GET",headers:tz(d,`ai-sdk/${ad}`,tj()),credentials:h});if(204===p.status)return null;if(!p.ok)throw Error(null!=(a=await p.text())?a:"Failed to fetch the chat response.");if(!p.body)throw Error("The response body is empty.");return this.processResponseStream(p.body)}},aQ=class extends aY{constructor(e={}){super(e)}processResponseStream(e){return(function({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new V).pipeThrough(new TransformStream({async transform({data:e},r){"[DONE]"!==e&&r.enqueue(await tW({text:e,schema:t}))}}))})({stream:e,schema:aT}).pipeThrough(new TransformStream({async transform(e,t){if(!e.success)throw e.error;t.enqueue(e.value)}}))}},aJ=class{constructor({generateId:e=tH,id:t=e(),transport:r=new aQ,messageMetadataSchema:n,dataPartSchemas:i,state:a,onError:s,onToolCall:o,onFinish:l,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new aO,this.sendMessage=async(e,t)=>{var r,n,i,a;let s;if(null==e)return void await this.makeRequest({trigger:"submit-message",messageId:null==(r=this.lastMessage)?void 0:r.id,...t});if(s="text"in e||"files"in e?{parts:[...Array.isArray(e.files)?e.files:await aK(e.files),..."text"in e&&null!=e.text?[{type:"text",text:e.text}]:[]]}:e,null!=e.messageId){let t=this.state.messages.findIndex(t=>t.id===e.messageId);if(-1===t)throw Error(`message with id ${e.messageId} not found`);if("user"!==this.state.messages[t].role)throw Error(`message with id ${e.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,t+1),this.state.replaceMessage(t,{...s,id:e.messageId,role:null!=(n=s.role)?n:"user",metadata:e.metadata})}else this.state.pushMessage({...s,id:null!=(i=s.id)?i:this.generateId(),role:null!=(a=s.role)?a:"user",metadata:e.metadata});await this.makeRequest({trigger:"submit-message",messageId:e.messageId,...t})},this.regenerate=async({messageId:e,...t}={})=>{let r=null==e?this.state.messages.length-1:this.state.messages.findIndex(t=>t.id===e);if(-1===r)throw Error(`message ${e} not found`);this.state.messages=this.state.messages.slice(0,"assistant"===this.messages[r].role?r:r+1),await this.makeRequest({trigger:"regenerate-message",messageId:e,...t})},this.resumeStream=async(e={})=>{await this.makeRequest({trigger:"resume-stream",...e})},this.clearError=()=>{"error"===this.status&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolResult=async({state:e="output-available",tool:t,toolCallId:r,output:n,errorText:i})=>this.jobExecutor.run(async()=>{var t,a;let s=this.state.messages,o=s[s.length-1];this.state.replaceMessage(s.length-1,{...o,parts:o.parts.map(t=>aN(t)&&t.toolCallId===r?{...t,state:e,output:n,errorText:i}:t)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(t=>aN(t)&&t.toolCallId===r?{...t,state:e,output:n,errorText:i}:t)),"streaming"!==this.status&&"submitted"!==this.status&&(null==(t=this.sendAutomaticallyWhen)?void 0:t.call(this,{messages:this.state.messages}))&&this.makeRequest({trigger:"submit-message",messageId:null==(a=this.lastMessage)?void 0:a.id})}),this.stop=async()=>{var e;("streaming"===this.status||"submitted"===this.status)&&(null==(e=this.activeResponse)?void 0:e.abortController)&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=i,this.state=a,this.onError=s,this.onToolCall=o,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async makeRequest({trigger:e,metadata:t,headers:r,body:n,messageId:i}){var a,s,o;this.setStatus({status:"submitted",error:void 0});let l=this.lastMessage,u=!1,c=!1,d=!1;try{let a,s={state:function({lastMessage:e,messageId:t}){return{message:(null==e?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}({lastMessage:this.state.snapshot(l),messageId:this.generateId()}),abortController:new AbortController};if(s.abortController.signal.addEventListener("abort",()=>{u=!0}),this.activeResponse=s,"resume-stream"===e){let e=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:n});if(null==e)return void this.setStatus({status:"ready"});a=e}else a=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:s.abortController.signal,metadata:t,headers:r,body:n,trigger:e,messageId:i});let o=e=>this.jobExecutor.run(()=>e({state:s.state,write:()=>{var e;this.setStatus({status:"streaming"}),s.state.message.id===(null==(e=this.lastMessage)?void 0:e.id)?this.state.replaceMessage(this.state.messages.length-1,s.state.message):this.state.pushMessage(s.state.message)}}));await aI({stream:function({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:n,onError:i,onToolCall:a,onData:s}){return e.pipeThrough(new TransformStream({async transform(e,o){await n(async({state:n,write:l})=>{var u,c,d,h;function f(e){let t=n.message.parts.filter(aA).find(t=>t.toolCallId===e);if(null==t)throw Error("tool-output-error must be preceded by a tool-input-available");return t}function p(e){let t=n.message.parts.filter(e=>"dynamic-tool"===e.type).find(t=>t.toolCallId===e);if(null==t)throw Error("tool-output-error must be preceded by a tool-input-available");return t}function m(e){var t;let r=n.message.parts.find(t=>aA(t)&&t.toolCallId===e.toolCallId);null!=r?(r.state=e.state,r.input=e.input,r.output=e.output,r.errorText=e.errorText,r.rawInput=e.rawInput,r.preliminary=e.preliminary,r.providerExecuted=null!=(t=e.providerExecuted)?t:r.providerExecuted,null!=e.providerMetadata&&"input-available"===r.state&&(r.callProviderMetadata=e.providerMetadata)):n.message.parts.push({type:`tool-${e.toolName}`,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,rawInput:e.rawInput,errorText:e.errorText,providerExecuted:e.providerExecuted,preliminary:e.preliminary,...null!=e.providerMetadata?{callProviderMetadata:e.providerMetadata}:{}})}function g(e){var t;let r=n.message.parts.find(t=>"dynamic-tool"===t.type&&t.toolCallId===e.toolCallId);null!=r?(r.state=e.state,r.toolName=e.toolName,r.input=e.input,r.output=e.output,r.errorText=e.errorText,r.rawInput=null!=(t=e.rawInput)?t:r.rawInput,r.preliminary=e.preliminary,null!=e.providerMetadata&&"input-available"===r.state&&(r.callProviderMetadata=e.providerMetadata)):n.message.parts.push({type:"dynamic-tool",toolName:e.toolName,toolCallId:e.toolCallId,state:e.state,input:e.input,output:e.output,errorText:e.errorText,preliminary:e.preliminary,...null!=e.providerMetadata?{callProviderMetadata:e.providerMetadata}:{}})}async function _(e){if(null!=e){let r=null!=n.message.metadata?function e(t,r){if(void 0===t&&void 0===r)return;if(void 0===t)return r;if(void 0===r)return t;let n={...t};for(let i in r)if(Object.prototype.hasOwnProperty.call(r,i)){let a=r[i];if(void 0===a)continue;let s=i in t?t[i]:void 0,o=null!==a&&"object"==typeof a&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp),l=null!=s&&"object"==typeof s&&!Array.isArray(s)&&!(s instanceof Date)&&!(s instanceof RegExp);o&&l?n[i]=e(s,a):n[i]=a}return n}(n.message.metadata,e):e;null!=t&&await tZ({value:r,schema:t}),n.message.metadata=r}}switch(e.type){case"text-start":{let t={type:"text",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeTextParts[e.id]=t,n.message.parts.push(t),l();break}case"text-delta":{let t=n.activeTextParts[e.id];t.text+=e.delta,t.providerMetadata=null!=(u=e.providerMetadata)?u:t.providerMetadata,l();break}case"text-end":{let t=n.activeTextParts[e.id];t.state="done",t.providerMetadata=null!=(c=e.providerMetadata)?c:t.providerMetadata,delete n.activeTextParts[e.id],l();break}case"reasoning-start":{let t={type:"reasoning",text:"",providerMetadata:e.providerMetadata,state:"streaming"};n.activeReasoningParts[e.id]=t,n.message.parts.push(t),l();break}case"reasoning-delta":{let t=n.activeReasoningParts[e.id];t.text+=e.delta,t.providerMetadata=null!=(d=e.providerMetadata)?d:t.providerMetadata,l();break}case"reasoning-end":{let t=n.activeReasoningParts[e.id];t.providerMetadata=null!=(h=e.providerMetadata)?h:t.providerMetadata,t.state="done",delete n.activeReasoningParts[e.id],l();break}case"file":n.message.parts.push({type:"file",mediaType:e.mediaType,url:e.url}),l();break;case"source-url":n.message.parts.push({type:"source-url",sourceId:e.sourceId,url:e.url,title:e.title,providerMetadata:e.providerMetadata}),l();break;case"source-document":n.message.parts.push({type:"source-document",sourceId:e.sourceId,mediaType:e.mediaType,title:e.title,filename:e.filename,providerMetadata:e.providerMetadata}),l();break;case"tool-input-start":{let t=n.message.parts.filter(aA);n.partialToolCalls[e.toolCallId]={text:"",toolName:e.toolName,index:t.length,dynamic:e.dynamic},e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-streaming",input:void 0,providerExecuted:e.providerExecuted}),l();break}case"tool-input-delta":{let t=n.partialToolCalls[e.toolCallId];t.text+=e.inputTextDelta;let{value:r}=await ax(t.text);t.dynamic?g({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r}):m({toolCallId:e.toolCallId,toolName:t.toolName,state:"input-streaming",input:r}),l();break}case"tool-input-available":e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"input-available",input:e.input,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}),l(),a&&!e.providerExecuted&&await a({toolCall:e});break;case"tool-input-error":e.dynamic?g({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:e.input,errorText:e.errorText,providerMetadata:e.providerMetadata}):m({toolCallId:e.toolCallId,toolName:e.toolName,state:"output-error",input:void 0,rawInput:e.input,errorText:e.errorText,providerExecuted:e.providerExecuted,providerMetadata:e.providerMetadata}),l();break;case"tool-output-available":if(e.dynamic){let t=p(e.toolCallId);g({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-available",input:t.input,output:e.output,preliminary:e.preliminary})}else{let t=f(e.toolCallId);m({toolCallId:e.toolCallId,toolName:aC(t),state:"output-available",input:t.input,output:e.output,providerExecuted:e.providerExecuted,preliminary:e.preliminary})}l();break;case"tool-output-error":if(e.dynamic){let t=p(e.toolCallId);g({toolCallId:e.toolCallId,toolName:t.toolName,state:"output-error",input:t.input,errorText:e.errorText})}else{let t=f(e.toolCallId);m({toolCallId:e.toolCallId,toolName:aC(t),state:"output-error",input:t.input,rawInput:t.rawInput,errorText:e.errorText})}l();break;case"start-step":n.message.parts.push({type:"step-start"});break;case"finish-step":n.activeTextParts={},n.activeReasoningParts={};break;case"start":null!=e.messageId&&(n.message.id=e.messageId),await _(e.messageMetadata),(null!=e.messageId||null!=e.messageMetadata)&&l();break;case"finish":case"message-metadata":await _(e.messageMetadata),null!=e.messageMetadata&&l();break;case"error":null==i||i(Error(e.errorText));break;default:if(e.type.startsWith("data-")){if((null==r?void 0:r[e.type])!=null&&await tZ({value:e.data,schema:r[e.type]}),e.transient){null==s||s(e);break}let t=null!=e.id?n.message.parts.find(t=>e.type===t.type&&e.id===t.id):void 0;null!=t?t.data=e.data:n.message.parts.push(e),null==s||s(e),l()}}o.enqueue(e)})}}))}({stream:a,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:o,onError:e=>{throw e}}),onError:e=>{throw e}}),this.setStatus({status:"ready"})}catch(e){if(u||"AbortError"===e.name)return u=!0,this.setStatus({status:"ready"}),null;d=!0,e instanceof TypeError&&(e.message.toLowerCase().includes("fetch")||e.message.toLowerCase().includes("network"))&&(c=!0),this.onError&&e instanceof Error&&this.onError(e),this.setStatus({status:"error",error:e})}finally{try{null==(a=this.onFinish)||a.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:u,isDisconnect:c,isError:d})}catch(e){console.error(e)}this.activeResponse=void 0}(null==(s=this.sendAutomaticallyWhen)?void 0:s.call(this,{messages:this.state.messages}))&&await this.makeRequest({trigger:"submit-message",messageId:null==(o=this.lastMessage)?void 0:o.id,metadata:t,headers:r,body:n})}},aX=iU({type:iX("text"),text:ia(),state:iQ(["streaming","done"]).optional(),providerMetadata:ap.optional()}),a0=iU({type:iX("reasoning"),text:ia(),state:iQ(["streaming","done"]).optional(),providerMetadata:ap.optional()}),a1=iU({type:iX("source-url"),sourceId:ia(),url:ia(),title:ia().optional(),providerMetadata:ap.optional()}),a2=iU({type:iX("source-document"),sourceId:ia(),mediaType:ia(),title:ia(),filename:ia().optional(),providerMetadata:ap.optional()}),a5=iU({type:iX("file"),mediaType:ia(),filename:ia().optional(),url:ia(),providerMetadata:ap.optional()}),a3=iU({type:iX("step-start")}),a4=iU({type:ia().startsWith("data-"),id:ia().optional(),data:iL()}),a9=[iU({type:iX("dynamic-tool"),toolName:ia(),toolCallId:ia(),state:iX("input-streaming"),input:iL().optional(),output:iF().optional(),errorText:iF().optional()}),iU({type:iX("dynamic-tool"),toolName:ia(),toolCallId:ia(),state:iX("input-available"),input:iL(),output:iF().optional(),errorText:iF().optional(),callProviderMetadata:ap.optional()}),iU({type:iX("dynamic-tool"),toolName:ia(),toolCallId:ia(),state:iX("output-available"),input:iL(),output:iL(),errorText:iF().optional(),callProviderMetadata:ap.optional(),preliminary:iP().optional()}),iU({type:iX("dynamic-tool"),toolName:ia(),toolCallId:ia(),state:iX("output-error"),input:iL(),output:iF().optional(),errorText:ia(),callProviderMetadata:ap.optional()})],a6=[iU({type:ia().startsWith("tool-"),toolCallId:ia(),state:iX("input-streaming"),providerExecuted:iP().optional(),input:iL().optional(),output:iF().optional(),errorText:iF().optional()}),iU({type:ia().startsWith("tool-"),toolCallId:ia(),state:iX("input-available"),providerExecuted:iP().optional(),input:iL(),output:iF().optional(),errorText:iF().optional(),callProviderMetadata:ap.optional()}),iU({type:ia().startsWith("tool-"),toolCallId:ia(),state:iX("output-available"),providerExecuted:iP().optional(),input:iL(),output:iL(),errorText:iF().optional(),callProviderMetadata:ap.optional(),preliminary:iP().optional()}),iU({type:ia().startsWith("tool-"),toolCallId:ia(),state:iX("output-error"),providerExecuted:iP().optional(),input:iL(),output:iF().optional(),errorText:ia(),callProviderMetadata:ap.optional()})];iU({id:ia(),role:iQ(["system","user","assistant"]),metadata:iL().optional(),parts:ij(iq([aX,a0,a1,a2,a5,a3,a4,...a9,...a6]))});var a8=r(94524),a7=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},se=(e,t,r)=>(a7(e,t,"read from private field"),r?r.call(e):t.get(e)),st=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},sr=(e,t,r,n)=>(a7(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sn=class{constructor(e=[]){st(this,f,void 0),st(this,p,"ready"),st(this,m,void 0),st(this,g,new Set),st(this,_,new Set),st(this,y,new Set),this.pushMessage=e=>{sr(this,f,se(this,f).concat(e)),se(this,v).call(this)},this.popMessage=()=>{sr(this,f,se(this,f).slice(0,-1)),se(this,v).call(this)},this.replaceMessage=(e,t)=>{sr(this,f,[...se(this,f).slice(0,e),this.snapshot(t),...se(this,f).slice(e+1)]),se(this,v).call(this)},this.snapshot=e=>structuredClone(e),this["~registerMessagesCallback"]=(e,t)=>{let r=t?function(e,t){return null!=t?a8(e,t):e}(e,t):e;return se(this,g).add(r),()=>{se(this,g).delete(r)}},this["~registerStatusCallback"]=e=>(se(this,_).add(e),()=>{se(this,_).delete(e)}),this["~registerErrorCallback"]=e=>(se(this,y).add(e),()=>{se(this,y).delete(e)}),st(this,v,()=>{se(this,g).forEach(e=>e())}),st(this,b,()=>{se(this,_).forEach(e=>e())}),st(this,w,()=>{se(this,y).forEach(e=>e())}),sr(this,f,e)}get status(){return se(this,p)}set status(e){sr(this,p,e),se(this,b).call(this)}get error(){return se(this,m)}set error(e){sr(this,m,e),se(this,w).call(this)}get messages(){return se(this,f)}set messages(e){sr(this,f,[...e]),se(this,v).call(this)}};f=new WeakMap,p=new WeakMap,m=new WeakMap,g=new WeakMap,_=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,w=new WeakMap;var si=class extends aJ{constructor({messages:e,...t}){let r=new sn(e);super({...t,state:r}),st(this,E,void 0),this["~registerMessagesCallback"]=(e,t)=>se(this,E)["~registerMessagesCallback"](e,t),this["~registerStatusCallback"]=e=>se(this,E)["~registerStatusCallback"](e),this["~registerErrorCallback"]=e=>se(this,E)["~registerErrorCallback"](e),sr(this,E,r)}};E=new WeakMap;var sa=r(644),ss=r(67750),so=r(82102);function sl(e){var t;return["png","jpg","jpeg","gif","webp","bmp","svg"].includes((null==(t=e.split(".").pop())?void 0:t.toLowerCase().split("?")[0])||"")?""):"[".concat(e.split("/").pop()||"file","](").concat(e,")")}let su=()=>{let e=(0,sa.A)(),[t,r]=(0,so.A)("copilot-chat-history",[]),n=(0,k.useRef)(!1),{messages:i,error:a,resumeStream:s,status:o,setMessages:l,stop:u,regenerate:c,sendMessage:d}=function({experimental_throttle:e,resume:t=!1,...r}={}){let n=(0,k.useRef)("chat"in r?r.chat:new si(r));("chat"in r&&r.chat!==n.current||"id"in r&&n.current.id!==r.id)&&(n.current="chat"in r?r.chat:new si(r));let i="id"in r?r.id:null,a=(0,k.useCallback)(t=>n.current["~registerMessagesCallback"](t,e),[e,i]),s=(0,k.useSyncExternalStore)(a,()=>n.current.messages,()=>n.current.messages),o=(0,k.useSyncExternalStore)(n.current["~registerStatusCallback"],()=>n.current.status,()=>n.current.status),l=(0,k.useSyncExternalStore)(n.current["~registerErrorCallback"],()=>n.current.error,()=>n.current.error),u=(0,k.useCallback)(e=>{"function"==typeof e&&(e=e(n.current.messages)),n.current.messages=e},[n]);return(0,k.useEffect)(()=>{t&&n.current.resumeStream()},[t,n]),{id:n.current.id,messages:s,setMessages:u,sendMessage:n.current.sendMessage,regenerate:n.current.regenerate,clearError:n.current.clearError,stop:n.current.stop,error:l,resumeStream:n.current.resumeStream,status:o,addToolResult:n.current.addToolResult}}({transport:new aQ({api:"/chat",credentials:"include"}),messages:t,onError:t=>{var r,n,i,a,s,o,u,c;let d="";d=(null==(r=t.message)?void 0:r.includes("401"))||(null==(n=t.message)?void 0:n.includes("invalid_token"))||(null==(i=t.message)?void 0:i.includes("Unauthorized"))?e.formatMessage({id:"chat.error.auth",defaultMessage:"\uD83D\uDD10 **Authentication Error**\n\nYour session has expired or the authentication token is invalid.\n\n**To fix this:**\n1. Refresh the page (Ctrl+R / Cmd+R)\n2. Log out and log back in\n3. Check your permissions\n\n*This happens when your session expires after being idle too long.*"}):(null==(a=t.message)?void 0:a.includes("fetch"))||(null==(s=t.message)?void 0:s.includes("Failed to fetch"))||(null==(o=t.message)?void 0:o.includes("NetworkError"))?e.formatMessage({id:"chat.error.connection",defaultMessage:"\uD83D\uDEAB **Connection Error**\n\nCannot connect to the chat API server at {chatUrl}.\n\n**To enable chat:**\n1. Start the backend\n2. Ensure chat/MCP endpoint is configured\n3. Check NEXT_PUBLIC_CHAT_URL\n\n**Current configuration:**\n- Chat URL: {chatUrl}\n\n*Please start the backend.*"},{chatUrl:"/chat"}):(null==(u=t.message)?void 0:u.includes("stream"))||(null==(c=t.message)?void 0:c.includes("process"))?e.formatMessage({id:"chat.error.stream",defaultMessage:"⚠️ **Stream Processing Error**\n\nThere was an error processing the AI response stream.\n\n**Possible causes:**\n1. Backend not running\n2. MCP server not responding\n3. Missing/invalid API keys\n4. Network issues\n\n**Error details:** {details}"},{details:t.message}):e.formatMessage({id:"chat.error.unexpected",defaultMessage:"❌ **Chat Error**\n\nAn unexpected error occurred: {details}\n\n*Please try again or check the console for details.*"},{details:t.message});let h={id:"error-".concat(Date.now()),role:"assistant",parts:[{type:"text",text:d}]};l(e=>[...e,h])}});return(0,k.useEffect)(()=>{"streaming"!==o&&r(i)},[o]),{messages:i,handleSubmit:async(t,r)=>{try{var n;let e=null!=(n=null==r?void 0:r.map(sl).join("\n"))?n:"",i=[t,e].filter(Boolean).join("\n");t&&d({text:i})}catch(i){console.error("Error in handleSubmit:",i);let t=i instanceof Error?i.message:"Unknown error",r=t.includes("401")||t.includes("Unauthorized")?e.formatMessage({id:"chat.error.auth",defaultMessage:"\uD83D\uDD10 **Authentication Error**\n\nYour session has expired or the authentication token is invalid.\n\n*Please refresh or log in again.*"}):e.formatMessage({id:"chat.error.submission",defaultMessage:"❌ **Submission Error**\n\nFailed to send your message.\n\n**Error:** {details}\n\n*Please ensure the backend is running.*"},{details:t}),n={id:"error-".concat(Date.now()),role:"assistant",parts:[{type:"text",text:r}]};l(e=>[...e,n])}},error:a,status:o,clearHistory:()=>{l([]),r([]),n.current=!1},stop:u,addInterruptionMessage:e=>{let t=ss.W.createInterruptionMessage(e);l(e=>[...e,t])},sendMessage:d,reload:c,resumeStream:s}}},40058:(e,t,r)=>{"use strict";r.d(t,{l:()=>s});var n=r(75834),i=r(67392);let a=Symbol.for("__APOLLO_CONTEXT__");function s(){(0,i.V1)(!0,37);let e=n.createContext[a];return e||(Object.defineProperty(n.createContext,a,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},40190:(e,t,r)=>{"use strict";function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}r.d(t,{o:()=>n})},40687:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(86362);function i(e,t){return(0,n.o)(e,t,t.variables&&{variables:(0,n.o)({...e&&e.variables,...t.variables})})}},40852:(e,t,r)=>{"use strict";r.d(t,{e:()=>function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>r.requestAnimationFrame(()=>r.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return(0,n._)(()=>{t.current&&e[0]()}),r.add(()=>{t.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r}});var n=r(78615)},41131:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PluralRules=void 0;var n=r(70324),i=r(4648),a=r(61459),s=r(72702),o=n.__importDefault(r(65539));function l(e,t){if(!(e instanceof c))throw TypeError("Method Intl.PluralRules.prototype.".concat(t," called on incompatible receiver ").concat(String(e)))}function u(e,t,r,n){var i=n.IntegerDigits,a=n.NumberOfFractionDigits,s=n.FractionDigits;return c.localeData[e].fn(a?"".concat(i,".").concat(s):i,"ordinal"===t)}var c=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.PluralRules must be called with 'new'");return(0,a.InitializePluralRules)(this,t,r,{availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale,getInternalSlots:o.default})}return e.prototype.resolvedOptions=function(){l(this,"resolvedOptions");var t=Object.create(null),r=(0,o.default)(this);return t.locale=r.locale,t.type=r.type,["minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"].forEach(function(e){var n=r[e];void 0!==n&&(t[e]=n)}),t.pluralCategories=n.__spreadArray([],e.localeData[t.locale].categories[t.type],!0),t},e.prototype.select=function(e){l(this,"select");var t=(0,i.ToNumber)(e);return(0,s.ResolvePlural)(this,t,{getInternalSlots:o.default,PluralRuleSelect:u})},e.prototype.toString=function(){return"[object Intl.PluralRules]"},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,s=i.locale;e.localeData[s]=a,e.availableLocales.add(s),e.__defaultLocale||(e.__defaultLocale=s)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=[],e.polyfilled=!0,e}();t.PluralRules=c;try{"undefined"!=typeof Symbol&&Object.defineProperty(c.prototype,Symbol.toStringTag,{value:"Intl.PluralRules",writable:!1,enumerable:!1,configurable:!0});try{Object.defineProperty(c,"length",{value:0,writable:!1,enumerable:!1,configurable:!0})}catch(e){}Object.defineProperty(c.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(c,"name",{value:"PluralRules",writable:!1,enumerable:!1,configurable:!0})}catch(e){}},41291:(e,t,r)=>{"use strict";function n(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var a=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(a),!i)return a}r.d(t,{N:()=>n})},41706:(e,t,r)=>{"use strict";r.d(t,{L:()=>o});let{toString:n,hasOwnProperty:i}=Object.prototype,a=Function.prototype.toString,s=new Map;function o(e,t){try{return function e(t,r){if(t===r)return!0;let s=n.call(t);if(s!==n.call(r))return!1;switch(s){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(d(t,r))return!0;let n=l(t),a=l(r),s=n.length;if(s!==a.length)return!1;for(let e=0;e<s;++e)if(!i.call(r,n[e]))return!1;for(let i=0;i<s;++i){let a=n[i];if(!e(t[a],r[a]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(d(t,r))return!0;let n=t.entries(),i="[object Map]"===s;for(;;){let t=n.next();if(t.done)break;let[a,s]=t.value;if(!r.has(a)||i&&!e(s,r.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{let e=a.call(t);if(e!==a.call(r))return!1;return!function(e,t){let r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(e,c)}}return!1}(e,t)}finally{s.clear()}}function l(e){return Object.keys(e).filter(u,e)}function u(e){return void 0!==this[e]}let c="{ [native code] }";function d(e,t){let r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},41846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(70324),i=r(4648),a=r(85405),s=r(33222),o=n.__importDefault(r(80868)),l=function(){function e(t,r){if(!(this&&this instanceof e?this.constructor:void 0))throw TypeError("Intl.RelativeTimeFormat must be called with 'new'");return(0,a.InitializeRelativeTimeFormat)(this,t,r,{getInternalSlots:o.default,availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale})}return e.prototype.format=function(e,t){if("object"!=typeof this)throw TypeError("format was called on a non-object");if(!(0,o.default)(this).initializedRelativeTimeFormat)throw TypeError("format was called on a invalid context");return(0,s.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:o.default}).map(function(e){return e.value}).join("")},e.prototype.formatToParts=function(e,t){if("object"!=typeof this)throw TypeError("formatToParts was called on a non-object");if(!(0,o.default)(this).initializedRelativeTimeFormat)throw TypeError("formatToParts was called on a invalid context");return(0,s.PartitionRelativeTimePattern)(this,Number(e),(0,i.ToString)(t),{getInternalSlots:o.default})},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw TypeError("resolvedOptions was called on a non-object");var e=(0,o.default)(this);if(!e.initializedRelativeTimeFormat)throw TypeError("resolvedOptions was called on a invalid context");return{locale:e.locale,style:e.style,numeric:e.numeric,numberingSystem:e.numberingSystem}},e.supportedLocalesOf=function(t,r){return(0,i.SupportedLocales)(e.availableLocales,(0,i.CanonicalizeLocaleList)(t),r)},e.__addLocaleData=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n],a=i.data,s=i.locale,o=new Intl.Locale(s).minimize().toString();e.localeData[s]=e.localeData[o]=a,e.availableLocales.add(o),e.availableLocales.add(s),e.__defaultLocale||(e.__defaultLocale=o)}},e.getDefaultLocale=function(){return e.__defaultLocale},e.localeData={},e.availableLocales=new Set,e.__defaultLocale="",e.relevantExtensionKeys=["nu"],e.polyfilled=!0,e}();t.default=l;try{"undefined"!=typeof Symbol&&Object.defineProperty(l.prototype,Symbol.toStringTag,{value:"Intl.RelativeTimeFormat",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype.constructor,"length",{value:0,writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(l.supportedLocalesOf,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(e){}},42149:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(26514),i=r(75834),a=r(51185);class s extends i.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error({error:e,errorInfo:t})}render(){return this.state.hasError?(0,n.jsx)(a.A,{error:this.state.error,resetError:()=>this.setState({hasError:!1,error:null})}):this.props.children}constructor(e){super(e),this.state={hasError:!1,error:null}}}let o=s},42212:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return o}});let n=r(78809),i=r(88960),a=r(88172),s=n._(r(89572));function o(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=a.Image},42663:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingularRelativeTimeUnit=function(e){if((0,n.invariant)("String"===(0,n.Type)(e),"unit must be a string"),"seconds"===e)return"second";if("minutes"===e)return"minute";if("hours"===e)return"hour";if("days"===e)return"day";if("weeks"===e)return"week";if("months"===e)return"month";if("quarters"===e)return"quarter";if("years"===e)return"year";if("second"!==e&&"minute"!==e&&"hour"!==e&&"day"!==e&&"week"!==e&&"month"!==e&&"quarter"!==e&&"year"!==e)throw RangeError("invalid unit");return e};var n=r(4648)},42856:(e,t,r)=>{"use strict";var n;r.d(t,{Ll:()=>l,aD:()=>s,aZ:()=>i,cE:()=>n,ou:()=>a});class i{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class a{constructor(e,t,r,n,i,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=new Set(Object.keys(s));function l(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(n||(n={}))},43192:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(75834).createContext({isAdmin:()=>!1,hasRole:()=>!1})},44869:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(26514),i=r(75834),a=r(644),s=r(36372),o=r(82102);let l=e=>{let{narrowNav:t=!1}=e,{locale:r,formatMessage:l}=(0,a.A)(),[u,c]=(0,i.useState)(!1),d=["en","de"],h=d.find(e=>e===r)||"en",[,f]=(0,o.A)("preferred-language",h),p=async e=>{try{f(e),window.location.reload(),c(!1)}catch(e){console.error("Failed to change language:",e)}};return(0,i.useEffect)(()=>{let e=e=>{e.target.closest("[data-language-toggle]")||c(!1)};if(u)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[u]),(0,n.jsxs)("div",{className:"relative","data-language-toggle":!0,children:[(0,n.jsx)("button",{onClick:()=>c(!u),className:"flex items-center space-x-1 p-2 text-slate-600 dark:text-sky-400 hover:text-slate-900 dark:hover:text-slate-200 rounded-md hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-slate-800",title:l({id:"change_language",defaultMessage:"Change language"}),children:(0,n.jsx)(s.A,{className:"h-6 w-6"})}),u&&(0,n.jsx)("div",{className:"absolute w-48 rounded-md shadow-lg bg-white dark:bg-slate-800 ring-1 ring-black ring-opacity-5 z-[9999] ".concat(t?"left-full ml-2 bottom-0":"right-0 md:left-full md:ml-2 md:bottom-full md:mb-2 mt-2 md:mt-0"),children:(0,n.jsxs)("div",{className:"py-1",role:"menu",children:[(0,n.jsx)("div",{className:"px-4 py-2 text-xs font-semibold text-slate-500 dark:text-slate-400 uppercase tracking-wide border-b border-slate-200 dark:border-slate-700",children:l({id:"select_language",defaultMessage:"Select Language"})}),d.map(e=>(0,n.jsx)("button",{onClick:()=>p(e),className:"w-full text-left px-4 py-2 text-sm hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors ".concat(h===e?"bg-slate-50 dark:bg-slate-700 text-slate-900 dark:text-slate-100 font-medium":"text-slate-700 dark:text-slate-300"),role:"menuitem",children:(0,n.jsxs)("div",{className:"flex items-center justify-between",children:[(0,n.jsx)("span",{children:(e=>({en:"English",de:"Deutsch"})[e]||e.toUpperCase())(e)}),h===e&&(0,n.jsx)("div",{className:"h-2 w-2 rounded-full bg-slate-800"})]})},e))]})})]})}},46225:(e,t,r)=>{e.exports=r(18648)},46495:(e,t,r)=>{"use strict";function n(e){return"function"==typeof e}r.d(t,{T:()=>n})},47110:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(75834);function i(e,t){return(0,n.useMemo)(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},47924:(e,t,r)=>{"use strict";r.d(t,{OC:()=>i,yo:()=>a});var n=r(38049);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,a=null,s=-1;for(let t=0;t<e.length;++t){let o=e[t],l=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(o);l!==o.length&&(a=null!=(r=a)?r:t,s=t,0!==t&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=a)?t:0,s+1)}function a(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),a=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),o=r.endsWith('\\"""'),l=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=l||u,d=!(null!=t&&t.minimize)&&(!a||e.length>70||c||s||o),h="",f=a&&(0,n.i0)(e.charCodeAt(0));return(d&&!f||s)&&(h+="\n"),h+=r,(d||c)&&(h+="\n"),'"""'+h+'"""'}},49445:(e,t,r)=>{"use strict";r.d(t,{v:()=>i});let n=new Map;function i(e){let t=n.get(e)||1;return n.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}},49636:(e,t,r)=>{"use strict";r.d(t,{$x:()=>s,Ei:()=>l,IF:()=>a,O4:()=>n,Zo:()=>o});var n,i=r(70324);!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(n||(n={}));var a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,i.__extends)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),s=function(e){function t(t,r,i,a){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),n.INVALID_VALUE,a)||this}return(0,i.__extends)(t,e),t}(a),o=function(e){function t(t,r,i){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),n.INVALID_VALUE,i)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),n.MISSING_VALUE,r)||this}return(0,i.__extends)(t,e),t}(a)},51185:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(26514),i=r(96456),a=r.n(i),s=r(644),o=r(13226);let l=e=>{let{error:t=null,resetError:r=null}=e,{formatMessage:i}=(0,s.A)();return(0,n.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,n.jsx)("div",{children:(0,n.jsx)("h2",{className:"text-center text-3xl text-slate-900 dark:text-slate-200",children:i({id:"internal_server_error",defaultMessage:"500 Internal Server Error"})})}),(0,n.jsx)(o.A,{children:(0,n.jsxs)("div",{className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900",children:(0,n.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),(0,n.jsx)("p",{className:"mt-4 text-sm font-semibold uppercase tracking-wide text-rose-600 dark:text-rose-400",children:i({id:"error_500",defaultMessage:"500 Error"})}),(0,n.jsx)("p",{className:"mt-2 text-base text-slate-500 dark:text-slate-400",children:i({id:"internal_server_error_message",defaultMessage:"Sorry, something went wrong on our end. We are working to fix this."})}),(null==t?void 0:t.message)&&(0,n.jsxs)("details",{className:"mt-4 text-left",children:[(0,n.jsx)("summary",{className:"cursor-pointer text-sm text-slate-600 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-300",children:i({id:"show_error_details",defaultMessage:"Show error details"})}),(0,n.jsx)("pre",{className:"mt-2 text-xs text-slate-500 dark:text-slate-400 whitespace-pre-wrap break-all",children:null==t?void 0:t.message})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-3 mt-6",children:[(0,n.jsxs)(a(),{href:"/",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 py-2 px-4 text-sm font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"})})}),i({id:"back_to_home",defaultMessage:"Back to Home"})]}),r&&(0,n.jsxs)("button",{type:"button",onClick:r,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-slate-100 dark:bg-slate-700 dark:border-slate-600 py-2 px-4 text-sm font-medium text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:outline-hidden focus:ring-2 focus:ring-slate-500 dark:focus:ring-slate-400 focus:ring-offset-2",children:[(0,n.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,n.jsx)("svg",{className:"h-5 w-5 text-slate-500 dark:text-slate-400 group-hover:text-slate-600 dark:group-hover:text-slate-300",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})})}),i({id:"try_again",defaultMessage:"Try Again"})]})]})]})})]})})}},51869:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(9985),i=r(15968),a=r(70486),s=r(34517);function o(){let e=(0,n._)(["\n query Countries(\n $queryString: String\n $limit: Int\n $offset: Int\n $includeInactive: Boolean\n $sort: [SortOptionInput!]\n ) {\n countries(\n queryString: $queryString\n limit: $limit\n offset: $offset\n includeInactive: $includeInactive\n sort: $sort\n ) {\n ...CountryFragment\n }\n countriesCount(includeInactive: $includeInactive, queryString: $queryString)\n }\n\n ","\n"]);return o=function(){return e},e}let l=(0,i.J1)(o(),s.A),u=function(){let{queryString:e="",limit:t=20,offset:r=0,includeInactive:n=!0,sort:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{data:s,loading:o,error:u,fetchMore:c}=(0,a.I)(l,{variables:{queryString:e,limit:t,offset:r,includeInactive:n,sort:i}}),d=(null==s?void 0:s.countries)||[],h=null==s?void 0:s.countriesCount,f=(null==d?void 0:d.length)<h;return{countries:d,countriesCount:h,hasMore:f,loading:o,error:u,loadMore:()=>{c({variables:{offset:null==d?void 0:d.length}})}}}},52368:(e,t,r)=>{"use strict";r.d(t,{P:()=>o,a:()=>s});var n=r(75834),i=r(35424);let a=Symbol();function s(e,t=!0){return Object.assign(e,{[a]:t})}function o(...e){let t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let r=(0,i._)(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[a]))?void 0:r}},52562:(e,t,r)=>{"use strict";var n=r(99578),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n.isMemo(e)?s:o[e.$$typeof]||i}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=f(r);i&&i!==p&&e(t,i,n)}var s=c(r);d&&(s=s.concat(d(r)));for(var o=l(t),m=l(r),g=0;g<s.length;++g){var _=s[g];if(!a[_]&&!(n&&n[_])&&!(m&&m[_])&&!(o&&o[_])){var y=h(r,_);try{u(t,_,y)}catch(e){}}}}return t}},52934:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(9985),i=r(15968);function a(){let e=(0,n._)(["\n mutation Logout {\n logout {\n success\n }\n }\n "]);return a=function(){return e},e}let s=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;await e.mutate({mutation:(0,i.J1)(a())}),await e.resetStore(),t?t.push("/log-in"):window.location.href="/log-in"}},53160:(e,t,r)=>{"use strict";r.d(t,{s:()=>a});var n=r(75834),i=r(63228);let a=(e,t)=>{i._.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},53799:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);function i(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:a,options:i}),t.addEventListener(r,a,i)},[]),r=(0,n.useCallback)((t,r,n,i)=>{var a;let s=(null==(a=e.current.get(n))?void 0:a.fn)||n;t.removeEventListener(r,s,i),e.current.delete(n)},[]),i=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:i}}},55474:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h,Kq:()=>c,ob:()=>d});var n=r(70324),i=r(52562),a=r.n(i),s=r(75834),o=r(31404),l="undefined"==typeof window||window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?s.createContext(null):window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=s.createContext(null)),u=l.Consumer,c=l.Provider,d=l;function h(e,t){var r=t||{},i=r.intlPropName,l=void 0===i?"intl":i,c=r.forwardRef,d=void 0!==c&&c,h=r.enforceContext,f=void 0===h||h,p=function(t){return s.createElement(u,null,function(r){f&&(0,o.HM)(r);var i,a=((i={})[l]=r,i);return s.createElement(e,(0,n.__assign)({},t,a,{ref:d?t.forwardedRef:null}))})};return(p.displayName="injectIntl(".concat(e.displayName||e.name||"Component",")"),p.WrappedComponent=e,d)?a()(s.forwardRef(function(e,t){return s.createElement(p,(0,n.__assign)({},e,{forwardedRef:t}))}),e):a()(p,e)}},56235:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122"}))})},56241:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(75834).createContext({customProperties:{},hydrateFragment:(e,t)=>null})},56300:(e,t,r)=>{"use strict";r.d(t,{TW:()=>i,X7:()=>o,bq:()=>s,zm:()=>a});var n=r(63228);function i(e){var t;return n._.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function a(e){var t,r;return n._.isServer?null:null==e?document:null!=(r=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?r:document}function s(e){var t,r;return null!=(r=null==(t=a(e))?void 0:t.activeElement)?r:null}function o(e){return s(e)===e}},57160:(e,t,r)=>{"use strict";r.d(t,{$:()=>n});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},57378:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(57160),i=r(66802);function a(e){i.f.setTimeout(function(){var t=n.$.onUnhandledError;if(t)t(e);else throw e})}},58245:(e,t,r)=>{e.exports=r(42212)},58534:(e,t,r)=>{"use strict";var n=r(41131);(0,r(15218).shouldPolyfill)()&&Object.defineProperty(Intl,"PluralRules",{value:n.PluralRules,writable:!0,enumerable:!1,configurable:!0})},59053:(e,t,r)=>{"use strict";r.d(t,{S:()=>l});var n=r(70324),i=r(93571),a=r(99633),s=r(23549);function o(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var l=function(){function e(t,r,a,l){void 0===r&&(r=e.defaultLocale);var u,c,d=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=d.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce(function(e,t){return e.length&&t.type===s.TT.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return(0,s.hN)(d.ast,d.locales,d.formatters,d.formats,e,void 0,d.message)},this.resolvedOptions=function(){var e;return{locale:(null==(e=d.resolvedLocale)?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(d.locales)[0]}},this.getAst=function(){return d.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var h=l||{},f=(h.formatters,(0,n.__rest)(h,["formatters"]));this.ast=e.__parse(t,(0,n.__assign)((0,n.__assign)({},f),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(u=e.formats,a?Object.keys(u).reduce(function(e,t){var r,i;return e[t]=(r=u[t],(i=a[t])?(0,n.__assign)((0,n.__assign)((0,n.__assign)({},r||{}),i||{}),Object.keys(r).reduce(function(e,t){return e[t]=(0,n.__assign)((0,n.__assign)({},r[t]),i[t]||{}),e},{})):r),e},(0,n.__assign)({},u)):u),this.formatters=l&&l.formatters||(void 0===(c=this.formatterCache)&&(c={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.number),strategy:i.W.variadic}),getDateTimeFormat:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.dateTime),strategy:i.W.variadic}),getPluralRules:(0,i.B)(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,(0,n.__spreadArray)([void 0],t,!1)))},{cache:o(c.pluralRules),strategy:i.W.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=a.qg,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}()},60031:(e,t,r)=>{"use strict";r.d(t,{L:()=>a});var n=r(75834),i=r(40852);function a(){let[e]=(0,n.useState)(i.e);return(0,n.useEffect)(()=>()=>e.dispose(),[e]),e}},60780:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=r(75834).createContext({setModal:()=>{throw Error("No ModalContext/ModalWrapper ancestor found.")}})},61459:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializePluralRules=function(e,t,r,a){var s=a.availableLocales,o=a.relevantExtensionKeys,l=a.localeData,u=a.getDefaultLocale,c=a.getInternalSlots,d=(0,n.CanonicalizeLocaleList)(t),h=Object.create(null),f=(0,n.CoerceOptionsToObject)(r),p=c(e);return p.initializedPluralRules=!0,h.localeMatcher=(0,n.GetOption)(f,"localeMatcher","string",["best fit","lookup"],"best fit"),p.locale=(0,i.ResolveLocale)(s,d,h,o,l,u).locale,p.type=(0,n.GetOption)(f,"type","string",["cardinal","ordinal"],"cardinal"),(0,n.SetNumberFormatDigitOptions)(p,f,0,3,"standard"),e};var n=r(4648),i=r(92090)},62065:(e,t,r)=>{"use strict";r.d(t,{Ms:()=>_,vU:()=>f});var n=r(70324),i=r(46495),a=r(65245),s=r(57160),o=r(57378);function l(){}var u=c("C",void 0,void 0);function c(e,t,r){return{kind:e,value:t,error:r}}var d=r(66802),h=r(94982),f=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,a.Uv)(t)&&t.add(r)):r.destination=b,r}return(0,n.__extends)(t,e),t.create=function(e,t,r){return new _(e,t,r)},t.prototype.next=function(e){this.isStopped?v(c("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?v(c("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?v(u,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(a.yU),p=Function.prototype.bind;function m(e,t){return p.call(e,t)}var g=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),_=function(e){function t(t,r,n){var a,o,l=e.call(this)||this;return(0,i.T)(t)||!t?a={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:l&&s.$.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},a={next:t.next&&m(t.next,o),error:t.error&&m(t.error,o),complete:t.complete&&m(t.complete,o)}):a=t,l.destination=new g(a),l}return(0,n.__extends)(t,e),t}(f);function y(e){s.$.useDeprecatedSynchronousErrorHandling?(0,h.l)(e):(0,o.m)(e)}function v(e,t){var r=s.$.onStoppedNotification;r&&d.f.setTimeout(function(){return r(e,t)})}var b={closed:!0,next:l,error:function(e){throw e},complete:l}},63228:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=Object.defineProperty,i=(e,t,r)=>(((e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!=typeof t?t+"":t,r),r);class a{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let s=new a},63455:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a});var n=r(75834),i=r(53160);function a(e){let t=(0,n.useRef)(e);return(0,i.s)(()=>{t.current=e},[e]),t}},63641:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{U:()=>n})},65245:(e,t,r)=>{"use strict";r.d(t,{Kn:()=>l,yU:()=>o,Uv:()=>u});var n=r(70324),i=r(46495),a=(0,r(30073).L)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}),s=r(40190),o=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,s,o,l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var u=(0,n.__values)(l),d=u.next();!d.done;d=u.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else l.remove(this);var h=this.initialTeardown;if((0,i.T)(h))try{h()}catch(e){o=e instanceof a?e.errors:[e]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=(0,n.__values)(f),m=p.next();!m.done;m=p.next()){var g=m.value;try{c(g)}catch(e){o=null!=o?o:[],e instanceof a?o=(0,n.__spreadArray)((0,n.__spreadArray)([],(0,n.__read)(o)),(0,n.__read)(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(r)throw r.error}}}if(o)throw new a(o)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)c(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,s.o)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,s.o)(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),l=o.EMPTY;function u(e){return e instanceof o||e&&"closed"in e&&(0,i.T)(e.remove)&&(0,i.T)(e.add)&&(0,i.T)(e.unsubscribe)}function c(e){(0,i.T)(e)?e():e.unsubscribe()}},65288:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))})},65429:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedLocales=void 0,t.supportedLocales=["af","af-NA","agq","ak","am","ar","ar-AE","ar-BH","ar-DJ","ar-DZ","ar-EG","ar-EH","ar-ER","ar-IL","ar-IQ","ar-JO","ar-KM","ar-KW","ar-LB","ar-LY","ar-MA","ar-MR","ar-OM","ar-PS","ar-QA","ar-SA","ar-SD","ar-SO","ar-SS","ar-SY","ar-TD","ar-TN","ar-YE","as","asa","ast","az","az-Cyrl","az-Latn","bas","be","be-tarask","bem","bez","bg","bm","bn","bn-IN","bo","bo-IN","br","brx","bs","bs-Cyrl","bs-Latn","ca","ca-AD","ca-ES-valencia","ca-FR","ca-IT","ccp","ccp-IN","ce","ceb","cgg","chr","ckb","ckb-IR","cs","cy","da","da-GL","dav","de","de-AT","de-BE","de-CH","de-IT","de-LI","de-LU","dje","doi","dsb","dua","dyo","dz","ebu","ee","ee-TG","el","el-CY","en","en-001","en-150","en-AE","en-AG","en-AI","en-AS","en-AT","en-AU","en-BB","en-BE","en-BI","en-BM","en-BS","en-BW","en-BZ","en-CA","en-CC","en-CH","en-CK","en-CM","en-CX","en-CY","en-DE","en-DG","en-DK","en-DM","en-ER","en-FI","en-FJ","en-FK","en-FM","en-GB","en-GD","en-GG","en-GH","en-GI","en-GM","en-GU","en-GY","en-HK","en-IE","en-IL","en-IM","en-IN","en-IO","en-JE","en-JM","en-KE","en-KI","en-KN","en-KY","en-LC","en-LR","en-LS","en-MG","en-MH","en-MO","en-MP","en-MS","en-MT","en-MU","en-MW","en-MY","en-NA","en-NF","en-NG","en-NL","en-NR","en-NU","en-NZ","en-PG","en-PH","en-PK","en-PN","en-PR","en-PW","en-RW","en-SB","en-SC","en-SD","en-SE","en-SG","en-SH","en-SI","en-SL","en-SS","en-SX","en-SZ","en-TC","en-TK","en-TO","en-TT","en-TV","en-TZ","en-UG","en-UM","en-VC","en-VG","en-VI","en-VU","en-WS","en-ZA","en-ZM","en-ZW","eo","es","es-419","es-AR","es-BO","es-BR","es-BZ","es-CL","es-CO","es-CR","es-CU","es-DO","es-EA","es-EC","es-GQ","es-GT","es-HN","es-IC","es-MX","es-NI","es-PA","es-PE","es-PH","es-PR","es-PY","es-SV","es-US","es-UY","es-VE","et","eu","ewo","fa","fa-AF","ff","ff-Adlm","ff-Adlm-BF","ff-Adlm-CM","ff-Adlm-GH","ff-Adlm-GM","ff-Adlm-GW","ff-Adlm-LR","ff-Adlm-MR","ff-Adlm-NE","ff-Adlm-NG","ff-Adlm-SL","ff-Adlm-SN","ff-Latn","ff-Latn-BF","ff-Latn-CM","ff-Latn-GH","ff-Latn-GM","ff-Latn-GN","ff-Latn-GW","ff-Latn-LR","ff-Latn-MR","ff-Latn-NE","ff-Latn-NG","ff-Latn-SL","fi","fil","fo","fo-DK","fr","fr-BE","fr-BF","fr-BI","fr-BJ","fr-BL","fr-CA","fr-CD","fr-CF","fr-CG","fr-CH","fr-CI","fr-CM","fr-DJ","fr-DZ","fr-GA","fr-GF","fr-GN","fr-GP","fr-GQ","fr-HT","fr-KM","fr-LU","fr-MA","fr-MC","fr-MF","fr-MG","fr-ML","fr-MQ","fr-MR","fr-MU","fr-NC","fr-NE","fr-PF","fr-PM","fr-RE","fr-RW","fr-SC","fr-SN","fr-SY","fr-TD","fr-TG","fr-TN","fr-VU","fr-WF","fr-YT","fur","fy","ga","ga-GB","gd","gl","gsw","gsw-FR","gsw-LI","gu","guz","gv","ha","ha-GH","ha-NE","haw","he","hi","hr","hr-BA","hsb","hu","hy","ia","id","ig","ii","is","it","it-CH","it-SM","it-VA","ja","jgo","jmc","jv","ka","kab","kam","kde","kea","kgp","khq","ki","kk","kkj","kl","kln","km","kn","ko","ko-KP","kok","ks","ks-Arab","ksb","ksf","ksh","ku","kw","ky","lag","lb","lg","lkt","ln","ln-AO","ln-CF","ln-CG","lo","lrc","lrc-IQ","lt","lu","luo","luy","lv","mai","mas","mas-TZ","mer","mfe","mg","mgh","mgo","mi","mk","ml","mn","mni","mni-Beng","mr","ms","ms-BN","ms-ID","ms-SG","mt","mua","my","mzn","naq","nb","nb-SJ","nd","nds","nds-NL","ne","ne-IN","nl","nl-AW","nl-BE","nl-BQ","nl-CW","nl-SR","nl-SX","nmg","nn","nnh","no","nus","nyn","om","om-KE","or","os","os-RU","pa","pa-Arab","pa-Guru","pcm","pl","ps","ps-PK","pt","pt-AO","pt-CH","pt-CV","pt-GQ","pt-GW","pt-LU","pt-MO","pt-MZ","pt-PT","pt-ST","pt-TL","qu","qu-BO","qu-EC","rm","rn","ro","ro-MD","rof","ru","ru-BY","ru-KG","ru-KZ","ru-MD","ru-UA","rw","rwk","sa","sah","saq","sat","sat-Olck","sbp","sc","sd","sd-Arab","sd-Deva","se","se-FI","se-SE","seh","ses","sg","shi","shi-Latn","shi-Tfng","si","sk","sl","smn","sn","so","so-DJ","so-ET","so-KE","sq","sq-MK","sq-XK","sr","sr-Cyrl","sr-Cyrl-BA","sr-Cyrl-ME","sr-Cyrl-XK","sr-Latn","sr-Latn-BA","sr-Latn-ME","sr-Latn-XK","su","su-Latn","sv","sv-AX","sv-FI","sw","sw-CD","sw-KE","sw-UG","ta","ta-LK","ta-MY","ta-SG","te","teo","teo-KE","tg","th","ti","ti-ER","tk","to","tr","tr-CY","tt","twq","tzm","ug","uk","und","ur","ur-IN","uz","uz-Arab","uz-Cyrl","uz-Latn","vai","vai-Latn","vai-Vaii","vi","vun","wae","wo","xh","xog","yav","yi","yo","yo-BJ","yrl","yrl-CO","yrl-VE","yue","yue-Hans","yue-Hant","zgh","zh","zh-Hans","zh-Hans-HK","zh-Hans-MO","zh-Hans-SG","zh-Hant","zh-Hant-HK","zh-Hant-MO","zu"]},65539:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},65990:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(26514),i=r(58245),a=r.n(i),s=r(75834),o=r(644),l=r(38514);let u=e=>{let{className:t="w-full h-full",width:r=200,height:i=200}=e;return(0,n.jsxs)("svg",{width:r,height:i,viewBox:"0 0 200 200",fill:"none",className:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("rect",{x:"10",y:"10",width:"180",height:"180",rx:"8",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"8 4",fill:"transparent",className:"text-slate-800 dark:text-slate-400"}),(0,n.jsx)("rect",{x:"40",y:"40",width:"120",height:"80",rx:"4",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,n.jsx)("path",{d:"M50 100 L70 80 L90 95 L110 75 L130 90 L150 70",stroke:"currentColor",strokeWidth:"3",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"}),(0,n.jsx)("circle",{cx:"130",cy:"55",r:"8",stroke:"currentColor",strokeWidth:"3",fill:"transparent"}),(0,n.jsx)("text",{x:"100",y:"145",textAnchor:"middle",className:"text-slate-800 dark:text-slate-300 text-sm font-semibold",fill:"currentColor",children:"No Image"})]})},c=e=>{let{fallbackSrc:t="",src:r,...i}=e,[c,d]=(0,s.useState)(r),[h,f]=(0,s.useState)(!1),{formatMessage:p}=(0,o.A)();return h||!c?(0,n.jsx)("div",{className:i.className||"w-full h-full flex items-center justify-center bg-slate-50 dark:bg-slate-800",children:(0,n.jsx)(u,{width:i.width||200,height:i.height||200,className:"max-w-full max-h-full"})}):(0,n.jsx)(a(),{src:c,loader:l.A,alt:p({id:"image-not-found",defaultMessage:"Image not found"}),...i,onError:()=>{t&&c!==t?d(t):f(!0)}})}},66287:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 0 1 1.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.559.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.894.149c-.424.07-.764.383-.929.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 0 1-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.398.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 0 1-.12-1.45l.527-.737c.25-.35.272-.806.108-1.204-.165-.397-.506-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.108-1.204l-.526-.738a1.125 1.125 0 0 1 .12-1.45l.773-.773a1.125 1.125 0 0 1 1.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))})},66440:(e,t,r)=>{"use strict";r.d(t,{G:()=>a});var n=r(94998),i=r(88514);function a(e){return n.g&&function(e){let t=new Set([e]);t.forEach(e=>{(0,i.U)(e)&&function(e){if(n.g&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(r=>{(0,i.U)(e[r])&&t.add(e[r])})})}(e),e}},66487:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=e=>{var t,r,n,i,a,s,o,l,u,c,d,h,f;return e?(null==e?void 0:e.username)?e.username:(null==e||null==(t=e.profile)?void 0:t.displayName)?null==e||null==(r=e.profile)?void 0:r.displayName:(null==e||null==(i=e.profile)||null==(n=i.address)?void 0:n.firstName)||(null==e||null==(s=e.profile)||null==(a=s.address)?void 0:a.lastName)?"".concat(null==e||null==(l=e.profile)||null==(o=l.address)?void 0:o.firstName," ").concat(null==e||null==(c=e.profile)||null==(u=c.address)?void 0:u.lastName):(null==e?void 0:e.name)?e.name:e.isGuest?null==e||null==(f=e.primaryEmail)||null==(h=f.address)||null==(d=h.split("."))?void 0:d[0]:null:null}},66802:(e,t,r)=>{"use strict";r.d(t,{f:()=>i});var n=r(70324),i={setTimeout:function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var s=i.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,(0,n.__spreadArray)([e,t],(0,n.__read)(r))):setTimeout.apply(void 0,(0,n.__spreadArray)([e,t],(0,n.__read)(r)))},clearTimeout:function(e){var t=i.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},67392:(e,t,r)=>{"use strict";r.d(t,{V1:()=>d,vA:()=>f});var n=r(94998),i=r(16043),a=r(10912),s=r(99365);let o="Invariant Violation";class l extends Error{constructor(e=o){super(e),this.name=o,Object.setPrototypeOf(this,l.prototype)}}let u=["debug","log","warn","error","silent"],c=u.indexOf(n.g?"log":"silent");function d(e,...t){if(!e)throw f(...t)}function h(e){return function(t,...r){if(u.indexOf(e)>=c){let n=console[e]||console.log;if("number"==typeof t){let e=t;(t=g(e))||(t=_(e,r),r=[])}n(t,...r)}}}function f(e,...t){return new l(g(e,t)||_(e,t))}d.debug=h("debug"),d.log=h("log"),d.warn=h("warn"),d.error=h("error");let p=Symbol.for("ApolloErrorMessageHandler_"+a.r);function m(e){if("string"==typeof e)return e;try{return(0,s.p)(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function g(e,t=[]){if(e)return i.A[p]&&i.A[p](e,t.map(m))}function _(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,m(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:a.r,message:e,args:t.map(m)}))}`}},67714:(e,t,r)=>{"use strict";r.d(t,{$x:()=>l,El:()=>o,O_:()=>s,Uw:()=>a});var n=r(75834);let i=(0,n.createContext)(null);i.displayName="OpenClosedContext";var a=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(a||{});function s(){return(0,n.useContext)(i)}function o({value:e,children:t}){return n.createElement(i.Provider,{value:e},t)}function l({children:e}){return n.createElement(i.Provider,{value:null},e)}},67750:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n={createInterruptionMessage:e=>({id:"interruption-".concat(Date.now()),role:"assistant",content:"⚠️ **Operation Interrupted**\n\nThe current operation was stopped by user request.\n\n**Status at interruption:**\n- Current phase: ".concat({submitted:"request processing",streaming:"response generation",error:"error handling",ready:"idle state"}[e]||e,"\n- Remaining tasks may not have been completed\n- You can start a new request at any time\n\n*The system is ready for your next command.*")}),hasIncompleteToolInvocations:e=>"assistant"===e.role&&!!e.parts&&e.parts.some(e=>"tool-invocation"===e.type&&e.toolInvocation&&(!e.toolInvocation.result||"call"===e.toolInvocation.state)),filterCompleteMessages(e){return e.filter(e=>!this.hasIncompleteToolInvocations(e))}}},68628:(e,t,r)=>{"use strict";let n,i,a,s;r.d(t,{L:()=>nW});var o,l=r(75834),u=r(15264),c=r.n(u),d=r(19882),h=r.n(d),f=r(62065),p=r(65245),m="function"==typeof Symbol&&Symbol.observable||"@@observable";function g(e){return e}var _=r(57160),y=r(46495),v=r(94982),b=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this,i=!function(e){return e&&e instanceof f.vU||e&&(0,y.T)(e.next)&&(0,y.T)(e.error)&&(0,y.T)(e.complete)&&(0,p.Uv)(e)}(e)?new f.Ms(e,t,r):e;return(0,v.Y)(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=w(t))(function(t,n){var i=new f.Ms({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[m]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?g:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=w(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function w(e){var t;return null!=(t=null!=e?e:_.$.Promise)?t:Promise}var E=new b(function(e){return e.complete()});function k(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}function S(){}let T="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},x="undefined"!=typeof WeakMap?WeakMap:Map,A="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:S,unregister:S}};class N{constructor(e=1/0,t=S){this.max=e,this.dispose=t,this.map=new x,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new T(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new A(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var C=r(63641),I=r(25078),O=r(42856),P=r(97813);let D=Object.freeze({});function M(e,t,r=O.aD){let n,i,a,s=new Map;for(let e of Object.values(P.b))s.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let o=Array.isArray(e),l=[e],u=-1,c=[],d=e,h=[],f=[];do{var p,m,g;let e,_=++u===l.length,y=_&&0!==c.length;if(_){if(i=0===f.length?void 0:h[h.length-1],d=a,a=f.pop(),y)if(o){d=d.slice();let e=0;for(let[t,r]of c){let n=t-e;null===r?(d.splice(n,1),e++):d[n]=r}}else for(let[e,t]of(d={...d},c))d[e]=t;u=n.index,l=n.keys,c=n.edits,o=n.inArray,n=n.prev}else if(a){if(null==(d=a[i=o?u:l[u]]))continue;h.push(i)}if(!Array.isArray(d)){(0,O.Ll)(d)||(0,C.U)(!1,`Invalid AST Node: ${(0,I.N)(d)}.`);let r=_?null==(p=s.get(d.kind))?void 0:p.leave:null==(m=s.get(d.kind))?void 0:m.enter;if((e=null==r?void 0:r.call(t,d,i,a,h,f))===D)break;if(!1===e){if(!_){h.pop();continue}}else if(void 0!==e&&(c.push([i,e]),!_))if((0,O.Ll)(e))d=e;else{h.pop();continue}}void 0===e&&y&&c.push([i,d]),_?h.pop():(n={inArray:o,index:u,keys:l,edits:c,prev:n},l=(o=Array.isArray(d))?d:null!=(g=r[d.kind])?g:[],u=-1,c=[],a&&f.push(a),a=d)}while(void 0!==n);return 0!==c.length?c[c.length-1][1]:e}let L=()=>Object.create(null),{forEach:R,slice:F}=Array.prototype,{hasOwnProperty:B}=Object.prototype;class j{constructor(e=!0,t=L){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return R.call(e,e=>t=t.getChildTrie(e)),B.call(t,"data")?t.data:t.data=this.makeData(F.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(F.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new j(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function z(){}class U{constructor(e=1/0,t=z){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}let H=null,V={},G=1;function q(e){try{return e()}catch(e){}}let Z="@wry/context:Slot",$=q(()=>globalThis)||q(()=>global)||Object.create(null),W=$[Z]||Array[Z]||function(e){try{Object.defineProperty($,Z,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",G++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=H;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===V)break;return e!==H&&(H.slots[this.id]=t),!0}return H&&(H.slots[this.id]=V),!1}getValue(){if(this.hasValue())return H.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},a=H;H={parent:a,slots:i};try{return t.apply(n,r)}finally{H=a}}static bind(e){let t=H;return function(){let r=H;try{return H=t,e.apply(this,arguments)}finally{H=r}}}static noContext(e,t,r){if(!H)return e.apply(r,t);{let n=H;try{return H=null,e.apply(r,t)}finally{H=n}}}}),{bind:K,noContext:Y}=W,Q=new W,{hasOwnProperty:J}=Object.prototype,X=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function ee(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let et=[];function er(e,t){if(!e)throw Error(t||"assertion failure")}function en(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function ei(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class ea{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,++ea.count}peek(){if(1===this.value.length&&!el(this))return es(this),this.value[0]}recompute(e){var t,r,n;return er(!this.recomputing,"already recomputing"),es(this),el(this)?(t=this,r=e,ef(t),Q.withValue(t,eo,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{ee(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,el(n)||function(e){eu(e,ed)}(n)),ei(t.value)):ei(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,eu(e,ec),ee(this))}dispose(){this.setDirty(),ef(this),eu(this,(e,t)=>{e.setDirty(),ep(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=et.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(X(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),et.push(this.deps),this.deps=null)}}function es(e){let t=Q.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),el(e)?ec(t,e):ed(t,e),t}function eo(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!en(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function el(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}ea.count=0;function eu(e,t){let r=e.parents.size;if(r){let n=X(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function ec(e,t){er(e.childValues.has(t)),er(el(t));let r=!el(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=et.pop()||new Set;e.dirtyChildren.add(t),r&&eu(e,ec)}function ed(e,t){er(e.childValues.has(t)),er(!el(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):en(r,t.value)||e.setDirty(),eh(e,t),el(e)||eu(e,ed)}function eh(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(et.length<100&&et.push(r),e.dirtyChildren=null))}function ef(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{ep(e,r)}),e.forgetDeps(),er(null===e.dirtyChildren)}function ep(e,t){t.parents.delete(e),e.childValues.delete(t),eh(e,t)}let em={setDirty:!0,dispose:!0,forget:!0};function eg(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=Q.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(ee(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&J.call(em,r)?r:"setDirty";X(n).forEach(e=>e[i]()),t.delete(e),ee(n)}},n}function e_(...e){return(n||(n=new j("function"==typeof WeakMap))).lookupArray(e)}let ey=new Set;function ev(e,{max:t=65536,keyArgs:r,makeCacheKey:n=e_,normalizeResult:i,subscribe:a,cache:s=U}=Object.create(null)){let o="function"==typeof s?new s(t,e=>e.dispose()):s,l=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=o.get(t);s||(o.set(t,s=new ea(e)),s.normalizeResult=i,s.subscribe=a,s.forget=()=>o.delete(t));let l=s.recompute(Array.prototype.slice.call(arguments));return o.set(t,s),ey.add(o),Q.hasValue()||(ey.forEach(e=>e.clean()),ey.clear()),l};function u(e){let t=e&&o.get(e);t&&t.setDirty()}function c(e){let t=e&&o.get(e);if(t)return t.peek()}function d(e){return!!e&&o.delete(e)}return Object.defineProperty(l,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:o}),l.dirtyKey=u,l.dirty=function(){u(n.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(n.apply(null,arguments))},l.forgetKey=d,l.forget=function(){return d(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(l)}var eb=r(94998),ew=r(67392),eE=r(16043);let ek=Symbol.for("apollo.cacheSize"),eS={...eE.A[ek]},eT=ev((e,t)=>{(0,ew.V1)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);eb.g&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,ew.vA)(2,e.kind)}),(0,ew.V1)(r.length<=1,3,r.length)),t&&(0,ew.V1)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),M(e,{Field(t,n,i,a){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let n=e,i=[];for(let e of a)(n=n[e]).kind===P.b.FIELD&&i.push(n.alias?.value||n.name.value);throw i.splice(-1,1,t.name.value),(0,ew.vA)(5,t.alias.value,i.join("."),r[0].operation,k(e,"(anonymous)"))}}})},{max:eS.checkDocument||2e3,cache:N});function ex(e){return eT(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}class eA{static empty(){return new eA(()=>E)}static from(e){if(0===e.length)return eA.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new eA((e,t)=>t(e))){return Object.assign(new eA((n,i)=>{let a=e(n);return eb.g&&"boolean"!=typeof a&&eb.g&&ew.V1.warn(61,a),a?t.request(n,i):r.request(n,i)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:k(e.query),operationType:ex(e.query).operation},n={...e.context},i=()=>Object.freeze({...n});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{n="function"==typeof e?{...n,...e(i())}:{...n,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:i}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(eb.g&&eb.g&&ew.V1.warn(62),E))}static concat(...e){return eA.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(eA.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new eA((r,n)=>e.request(r,e=>t.request(e,n))),{left:e,right:t})}request(e,t){throw(0,ew.vA)(63)}left;right}var eN=r(86362);class eC extends eA{constructor(e={}){super((t,r)=>{let n=t.client,i=n.queryManager.clientOptions,a=t.getContext();{let{name:r,version:n,transport:s="headers"}=(0,eN.o)({},i.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===s&&t.setContext(({headers:e,extensions:t})=>({headers:(0,eN.o)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{let{transport:r="extensions"}=(0,eN.o)({},i.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,eN.o)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions))}return r(t)})}}function eI(e,t){return ex(e)?.operation===t}var eO=r(31932);function eP(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function eD(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function eM(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class eL extends Error{static is(e){return eP(e,"CombinedProtocolErrors")}static formatMessage=eM;errors;constructor(e){super(eL.formatMessage(e,{defaultFormatMessage:eM})),this.name="CombinedProtocolErrors",this.errors=e,eD(this),Object.setPrototypeOf(this,eL.prototype)}}class eR extends Error{static is(e){return eP(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",eD(this),Object.setPrototypeOf(this,eR.prototype)}}let eF=Symbol();function eB(e){return"extensions"in e&&eL.is(e.extensions[eF])}function ej(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new eR(e)}class ez extends Error{static is(e){return eP(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,eD(this),Object.setPrototypeOf(this,ez.prototype)}}class eU extends Error{static is(e){return eP(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,eD(this),Object.setPrototypeOf(this,eU.prototype)}}var eH=r(88514);let{hasOwnProperty:eV}=Object.prototype;async function*eG(e){let t,r=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),i=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),a="\r\n--"+(i?.findLast(e=>!!e)||"-"),s="";(0,ew.V1)(e.body&&"function"==typeof e.body.getReader,60);let o=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==s[0]&&"-"==s[1];try{for(;!l;){({value:t,done:l}=await o.read());let e="string"==typeof t?t:r.decode(t),n=s.length-a.length+1,i=(s+=e).indexOf(a,n);for(;i>-1&&!c();){let e;u=!0,[e,s]=[s.slice(0,i),s.slice(i+a.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let n=e.slice(t);n&&(yield n),i=s.indexOf(a)}if(c())return}throw Error("premature end of multipart body")}finally{o.cancel()}}async function eq(e,t){for await(let r of eG(e)){let n=eZ(e,r);if(0!=Object.keys(n).length)if((0,eH.U)(n)&&"payload"in n){if(1===Object.keys(n).length&&null===n.payload)return;let e={...n.payload};"errors"in n&&(e.extensions={...e.extensions,[eF]:new eL(n.errors??[])}),t(e)}else t(n)}}function eZ(e,t){if(e.status>=300)throw new ez(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new eU(r,{response:e,bodyText:t})}}var e$=r(47924);let eW=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function eK(e){return eY[e.charCodeAt(0)]}let eY=["\\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"],eQ={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eJ(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=e0("(",eJ(e.variableDefinitions,", "),")"),r=eJ([e.operation,eJ([e.name,t]),eJ(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+e0(" = ",r)+e0(" ",eJ(n," "))},SelectionSet:{leave:({selections:e})=>eX(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=e0("",e,": ")+t,s=a+e0("(",eJ(r,", "),")");return s.length>80&&(s=a+e0("(\n",e1(eJ(r,"\n")),"\n)")),eJ([s,eJ(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+e0(" ",eJ(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>eJ(["...",e0("on ",e),eJ(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${e0("(",eJ(r,", "),")")} on ${t} ${e0("",eJ(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,e$.yo)(e):`"${e.replace(eW,eK)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eJ(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eJ(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+e0("(",eJ(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>e0("",e,"\n")+eJ(["schema",eJ(t," "),eX(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>e0("",e,"\n")+eJ(["scalar",t,eJ(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>e0("",e,"\n")+eJ(["type",t,e0("implements ",eJ(r," & ")),eJ(n," "),eX(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>e0("",e,"\n")+t+(e2(r)?e0("(\n",e1(eJ(r,"\n")),"\n)"):e0("(",eJ(r,", "),")"))+": "+n+e0(" ",eJ(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>e0("",e,"\n")+eJ([t+": "+r,e0("= ",n),eJ(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>e0("",e,"\n")+eJ(["interface",t,e0("implements ",eJ(r," & ")),eJ(n," "),eX(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>e0("",e,"\n")+eJ(["union",t,eJ(r," "),e0("= ",eJ(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>e0("",e,"\n")+eJ(["enum",t,eJ(r," "),eX(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>e0("",e,"\n")+eJ([t,eJ(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>e0("",e,"\n")+eJ(["input",t,eJ(r," "),eX(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>e0("",e,"\n")+"directive @"+t+(e2(r)?e0("(\n",e1(eJ(r,"\n")),"\n)"):e0("(",eJ(r,", "),")"))+(n?" repeatable":"")+" on "+eJ(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eJ(["extend schema",eJ(e," "),eX(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eJ(["extend scalar",e,eJ(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eJ(["extend type",e,e0("implements ",eJ(t," & ")),eJ(r," "),eX(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>eJ(["extend interface",e,e0("implements ",eJ(t," & ")),eJ(r," "),eX(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>eJ(["extend union",e,eJ(t," "),e0("= ",eJ(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>eJ(["extend enum",e,eJ(t," "),eX(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>eJ(["extend input",e,eJ(t," "),eX(r)]," ")}};function eJ(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function eX(e){return e0("{\n",e1(eJ(e,"\n")),"\n}")}function e0(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function e1(e){return e0(" ",e.replace(/\n/g,"\n "))}function e2(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}let e5=new WeakSet;function e3(e){!(e.size<=(e.max||-1))&&(e5.has(e)||(e5.add(e),setTimeout(()=>{e.clean(),e5.delete(e)},100)))}let e4=function(e,t){let r=new N(e,t);return r.set=function(e,t){let r=N.prototype.set.call(this,e,t);return e3(this),r},r},e9=function(e,t){let r=new U(e,t);return r.set=function(e,t){let r=U.prototype.set.call(this,e,t);return e3(this),r},r},e6={},e8=Object.assign(e=>{let t=i.get(e);return t||(t=M(e,eQ),i.set(e,t)),t},{reset(){i=new e4(eS.print||2e3)}});e8.reset(),eb.g&&(e6.print=()=>i?i.size:0);let e7={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},te=(e,t)=>t(e),tt=(0,eO.n)(()=>fetch);function tr(){}class tn extends eA{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=te,includeExtensions:i,preserveHeaderCase:a,useGETForQueries:s,includeUnusedVariables:o=!1,...l}=e;eb.g&&(0,ew.V1)(r||tt||"undefined"!=typeof fetch,59);let u={http:(0,eN.o)({includeExtensions:i,preserveHeaderCase:a}),options:l.fetchOptions,credentials:l.credentials,headers:l.headers};super(e=>{let i=((e,t)=>{let r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")})(e,t),a=e.getContext(),l={...a.http};eI(e.query,"subscription")&&(l.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...l.accept||[]]);let{options:c,body:d}=function(e,t,...r){let n={},i={};r.forEach(e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),i={...i,...e.http}}),n.headers=function(e,t){if(!t){let t={};return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(n.headers,i.preserveHeaderCase);let{operationName:a,extensions:s,variables:o,query:l}=e,u={operationName:a,variables:o};return i.includeExtensions&&Object.keys(s||{}).length&&(u.extensions=s),i.includeQuery&&(u.query=t(l,e8)),{options:n,body:u}}(e,n,e7,u,{http:l,options:a.fetchOptions,credentials:a.credentials,headers:a.headers});d.variables&&!o&&(d.variables=function(e,t){let r={...e},n=new Set(Object.keys(e));return M(t,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&n.delete(e.name.value)}}),n.forEach(e=>{delete r[e]}),r}(d.variables,e.query));let h=new AbortController,f=()=>{h=void 0};if(c.signal){let e=c.signal,t=()=>{h?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),f=()=>{h?.signal.removeEventListener("abort",f),h=void 0,e.removeEventListener("abort",t),f=tr},h.signal.addEventListener("abort",f,{once:!0})}return c.signal=h.signal,s&&!eI(e.query,"mutation")&&(c.method="GET"),new b(t=>{if("GET"===c.method){let{newURI:e,parseError:t}=function(e,t){let r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let i="",a=e,s=e.indexOf("#");-1!==s&&(i=e.substr(s),a=e.substr(0,s));let o=-1===a.indexOf("?")?"?":"&";return{newURI:a+o+r.join("&")+i}}(i,d);if(t)throw t;i=e}else c.body=JSON.stringify(d);let n=r||(0,eO.n)(()=>fetch)||tt,a=t.next.bind(t);return n(i,c).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?eq(t,a):(function(e){return t=>t.text().then(r=>{let n=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new eU(r,{response:e,bodyText:t})}return eZ(e,t)}(t,r);if(!Array.isArray(n)&&!eV.call(n,"data")&&!eV.call(n,"errors"))throw new ez(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n})})(e)(t).then(a)}).then(()=>{f(),t.complete()}).catch(e=>{f(),t.error(e)}),()=>{h&&h.abort()}})})}}class ti extends eA{constructor(e={}){let{left:t,right:r,request:n}=eA.from([new eC(e),new tn(e)]);super(n),Object.assign(this,{left:t,right:r})}}var ta=r(5802),ts=r(99246);function to(e,t){return(0,ta.N)(function(r,n){var i=0;r.subscribe((0,ts._)(n,function(r){n.next(e.call(t,r,i++))}))})}function tl(e,t,r){let n=new Set(e),i=n.size;return M(t,{Directive(e){if(n.delete(e.name.value)&&(!r||!n.size))return D}}),r?!n.size:n.size<i}class tu{isIncrementalResult(e){return!1}prepareRequest(e){return(0,ew.V1)(!tl(["defer"],e.query),64),e}extractErrors(){}startRequest=void 0}let tc=eA.execute;function td(e){return e}class th{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new th(td,{cache:!1})}static split(e,t,r=th.identity()){return Object.assign(new th(n=>(e(n)?t:r).transformDocument(n),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new j;this.performWork=ev(th.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,ew.V1)(Array.isArray(r),20),e.lookupArray(r)},max:eS["documentTransform.cache"],cache:N})}}performWork(e){return eT(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new th(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}var tf=r(40687);function tp(e){return M(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}function tm(){throw Error("only supported in development mode")}var tg=r(10912);function t_(e,t){var r=(0,y.T)(e)?e:function(){return e},n=function(e){return e.error(r())};return new b(t?function(e){return t.schedule(n,0,e)}:n)}var ty=r(70324),tv=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function tb(e){return(0,y.T)(null==e?void 0:e.then)}function tw(e){return Symbol.asyncIterator&&(0,y.T)(null==e?void 0:e[Symbol.asyncIterator])}function tE(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var tk="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tS(e){return(0,y.T)(null==e?void 0:e[tk])}function tT(e){return(0,ty.__asyncGenerator)(this,arguments,function(){var t,r,n;return(0,ty.__generator)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,ty.__await)(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,(0,ty.__await)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,ty.__await)(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function tx(e){return(0,y.T)(null==e?void 0:e.getReader)}var tA=r(57378);function tN(e){if(e instanceof b)return e;if(null!=e){var t,r,n,i;if((0,y.T)(e[m])){return t=e,new b(function(e){var r=t[m]();if((0,y.T)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(tv(e)){return r=e,new b(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(tb(e)){return n=e,new b(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,tA.m)})}if(tw(e))return tC(e);if(tS(e)){return i=e,new b(function(e){var t,r;try{for(var n=(0,ty.__values)(i),a=n.next();!a.done;a=n.next()){var s=a.value;if(e.next(s),e.closed)return}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(tx(e))return tC(tT(e))}throw tE(e)}function tC(e){return new b(function(t){(function(e,t){var r,n,i,a;return(0,ty.__awaiter)(this,void 0,void 0,function(){var s;return(0,ty.__generator)(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=(0,ty.__asyncValues)(e),o.label=1;case 1:return[4,r.next()];case 2:if((n=o.sent()).done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:o.sent()},[3,11];case 6:if(o.trys.push([6,,9,10]),!(n&&!n.done&&(a=r.return)))return[3,8];return[4,a.call(r)];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}var tI=r(41291);function tO(e,t,r){return(void 0===r&&(r=1/0),(0,y.T)(t))?tO(function(r,n){return to(function(e,i){return t(r,e,n,i)})(tN(e(r,n)))},r):("number"==typeof t&&(r=t),(0,ta.N)(function(t,n){var i,a,s,o,l,u,c,d,h;return i=r,s=[],o=0,l=0,u=!1,c=function(){!u||s.length||o||n.complete()},d=function(e){return o<i?h(e):s.push(e)},h=function(t){o++;var r=!1;tN(e(t,l++)).subscribe((0,ts._)(n,function(e){a?d(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(o--;s.length&&o<i;)!function(){var e=s.shift();h(e)}();c()}catch(e){n.error(e)}}))},t.subscribe((0,ts._)(n,d,function(){u=!0,c()})),function(){}}))}var tP=r(90001);function tD(e,t){return void 0===t&&(t=0),(0,ta.N)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function tM(e,t){if(!e)throw Error("Iterable cannot be null");return new b(function(r){(0,tI.N)(r,t,function(){var n=e[Symbol.asyncIterator]();(0,tI.N)(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function tL(e,t){return t?function(e,t){if(null!=e){if((0,y.T)(e[m]))return tN(e).pipe(tD(t),(0,tP.Q)(t));if(tv(e))return new b(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(tb(e))return tN(e).pipe(tD(t),(0,tP.Q)(t));if(tw(e))return tM(e,t);if(tS(e))return new b(function(r){var n;return(0,tI.N)(r,t,function(){n=e[tk](),(0,tI.N)(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return(0,y.T)(null==n?void 0:n.return)&&n.return()}});if(tx(e))return tM(tT(e),t)}throw tE(e)}(e,t):tN(e)}var tR=r(30073),tF=(0,tR.L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function tB(e){var t;return(t=e[e.length-1])&&(0,y.T)(t.schedule)?e.pop():void 0}function tj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tB(e);return tL(e,r)}function tz(e){return(0,ta.N)(function(t,r){var n,i=null,a=!1;i=t.subscribe((0,ts._)(r,void 0,void 0,function(s){n=tN(e(s,tz(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):a=!0})),a&&(i.unsubscribe(),i=null,n.subscribe(r))})}var tU=(0,tR.L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),tH=r(40190),tV=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,ty.__extends)(t,e),t.prototype.lift=function(e){var t=new tG(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new tU},t.prototype.next=function(e){var t=this;(0,v.Y)(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,ty.__values)(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,v.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,v.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?p.Kn:(this.currentObservers=null,i.push(e),new p.yU(function(){t.currentObservers=null,(0,tH.o)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new b;return e.source=this,e},t.create=function(e,t){return new tG(e,t)},t}(b),tG=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,ty.__extends)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:p.Kn},t}(tV);function tq(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new tV}:t,n=e.resetOnError,i=void 0===n||n,a=e.resetOnComplete,s=void 0===a||a,o=e.resetOnRefCountZero,l=void 0===o||o;return function(e){var t,n,a,o=0,u=!1,c=!1,d=function(){null==n||n.unsubscribe(),n=void 0},h=function(){d(),t=a=void 0,u=c=!1},p=function(){var e=t;h(),null==e||e.unsubscribe()};return(0,ta.N)(function(e,m){o++,c||u||d();var g=a=null!=a?a:r();m.add(function(){0!=--o||c||u||(n=tZ(p,l))}),g.subscribe(m),!t&&o>0&&(t=new f.Ms({next:function(e){return g.next(e)},error:function(e){c=!0,d(),n=tZ(h,i,e),g.error(e)},complete:function(){u=!0,d(),n=tZ(h,s),g.complete()}}),tN(e).subscribe(t))})(e)}}function tZ(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new f.Ms({next:function(){i.unsubscribe(),e()}});return tN(t.apply(void 0,(0,ty.__spreadArray)([],(0,ty.__read)(r)))).subscribe(i)}}var t$=r(80569),tW=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=t$.U);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,ty.__extends)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,a=this._timestampProvider,s=this._windowTime;!r&&(n.push(t),i||n.push(a.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var a=t.now(),s=0,o=1;o<r.length&&r[o]<=a;o+=2)s=o;s&&r.splice(0,s+1)}},t}(tV);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(o||(o={}));var tK=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,n,i,a=e.kind,s=e.value,o=e.error;if("string"!=typeof a)throw TypeError('Invalid notification, missing "kind"');"N"===a?null==(r=t.next)||r.call(t,s):"E"===a?null==(n=t.error)||n.call(t,o):null==(i=t.complete)||i.call(t)}(this,e)},e.prototype.do=function(e,t,r){var n=this.kind,i=this.value,a=this.error;return"N"===n?null==e?void 0:e(i):"E"===n?null==t?void 0:t(a):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,y.T)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,n="N"===e?tj(t):"E"===e?t_(function(){return r}):"C"===e?E:0;if(!n)throw TypeError("Unexpected notification kind "+e);return n},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function tY(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return tO(g,1)(tL(e,tB(e)))}function tQ(e,t,r){var n=(0,y.T)(e)||t||r?{next:e,error:t,complete:r}:e;return n?(0,ta.N)(function(e,t){null==(r=n.subscribe)||r.call(n);var r,i=!0;e.subscribe((0,ts._)(t,function(e){var r;null==(r=n.next)||r.call(n,e),t.next(e)},function(){var e;i=!1,null==(e=n.complete)||e.call(n),t.complete()},function(e){var r;i=!1,null==(r=n.error)||r.call(n,e),t.error(e)},function(){var e,t;i&&(null==(e=n.unsubscribe)||e.call(n)),null==(t=n.finalize)||t.call(n)}))}):g}let tJ=Object.assign(function(e){return JSON.stringify(e,tX)},{reset(){a=new e9(eS.canonicalStringify||1e3)}});function tX(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every(t0))return t;let n=JSON.stringify(r),i=a.get(n);if(!i){r.sort();let e=JSON.stringify(r);i=a.get(e)||r,a.set(n,i),a.set(e,i)}let s=Object.create(e);return i.forEach(e=>{s[e]=t[e]}),s}}return t}function t0(e,t,r){return 0===t||r[t-1]<=e}function t1(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}eb.g&&(e6.canonicalStringify=()=>a.size),tJ.reset();class t2 extends Error{static is(e){return eP(e,"CombinedGraphQLErrors")}static formatMessage=t1;errors;data;extensions;constructor(e,t=e.errors||[]){super(t2.formatMessage(t,{result:e,defaultFormatMessage:t1})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",eD(this),Object.setPrototypeOf(this,t2.prototype)}}let t5=new WeakSet;function t3(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function t4(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}var t9=r(66440);function t6(e){return e.alias?e.alias.value:e.name.value}let t8=new W;function t7(e,t,r){return t8.withValue(!0,()=>{let n=function e(t,r,n,i,a){let{knownChanged:s}=n,o=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){o[l]=null;continue}let t=e(u,r,n,i,eb.g?`${a||""}[${l}]`:void 0);s.has(t)&&s.add(o),o[l]=t}return s.has(o)?o:t}for(let l of r.selections){let r;if(i&&s.add(o),l.kind===P.b.FIELD){let u=t6(l),c=l.selectionSet;if(void 0===(r=o[u]||t[u]))continue;if(c&&null!==r){let o=e(t[u],c,n,i,eb.g?`${a||""}.${u}`:void 0);s.has(o)&&(r=o)}eb.g||(o[u]=r),eb.g&&(i&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(o,u)?.value?Object.defineProperty(o,u,function(e,t,r,n,i){let a=()=>(t8.getValue()||(eb.g&&ew.V1.warn(40,n?`${i} '${n}'`:`anonymous ${i}`,`${r}.${e}`.replace(/^\./,"")),a=()=>t),t);return{get:()=>a(),set(e){a=()=>e},enumerable:!0,configurable:!0}}(u,r,a||"",n.operationName,n.operationType)):(delete o[u],o[u]=r))}if(l.kind===P.b.INLINE_FRAGMENT&&(!l.typeCondition||n.cache.fragmentMatches(l,t.__typename))&&(r=e(t,l.selectionSet,n,i,a)),l.kind===P.b.FRAGMENT_SPREAD){let i=l.name.value,s=n.fragmentMap[i]||(n.fragmentMap[i]=n.cache.lookupFragment(i));(0,ew.V1)(s,39,i);let o=function(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(eb.g&&r&&(r.value.kind===P.b.VARIABLE?eb.g&&ew.V1.warn(44):r.value.kind!==P.b.STRING?eb.g&&ew.V1.warn(45):"migrate"!==r.value.value&&eb.g&&ew.V1.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}(l);"mask"!==o&&(r=e(t,s.selectionSet,n,"migrate"===o,a))}s.has(r)&&s.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&s.add(o),s.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,t9.G)(n),n})}var re=r(41706);function rt(e){return 7!==e&&8!==e}function rr(e){return!!e.errors?.length}function rn(e,t=()=>void 0){return r=>new b(n=>{let i=t();return r.subscribe({next(t){let r;try{r=e(t,i)}catch(e){n.error(e)}void 0!==r&&n.next(r)},error(e){n.error(e)},complete(){n.complete()}})})}function ri(e){let t={data:e.data};return e.error&&(t.error=e.error),t}function ra(e){(0,ew.V1)("Document"===e.kind,6),(0,ew.V1)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,ew.V1)("FragmentDefinition"===t.kind,8),t}let rs=Array.isArray;function ro(e){return Array.isArray(e)&&e.length>0}function rl(e){let t=new Map;return function(r=e){let n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function ru(e,t,r,n){if(r.kind===P.b.INT||r.kind===P.b.FLOAT)e[t.value]=Number(r.value);else if(r.kind===P.b.BOOLEAN||r.kind===P.b.STRING)e[t.value]=r.value;else if(r.kind===P.b.OBJECT){let i={};r.fields.map(e=>ru(i,e.name,e.value,n)),e[t.value]=i}else if(r.kind===P.b.VARIABLE){let i=(n||{})[r.name.value];e[t.value]=i}else if(r.kind===P.b.LIST)e[t.value]=r.values.map(e=>{let r={};return ru(r,t,e,n),r[t.value]});else if(r.kind===P.b.ENUM)e[t.value]=r.value;else if(r.kind===P.b.NULL)e[t.value]=null;else throw(0,ew.vA)(19,t.value,r.kind)}function rc(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&ru(t,e.variable.name,e.defaultValue)}),t}var rd=r(49445),rh=r(92104),rf=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,ty.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(tV);function rp(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let n=t&&t[r];return(0,ew.V1)(n,9,r),n||null}default:return null}}function rm(e){let t;for(let r of(eT(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,ew.vA)(12)}function rg(e){return"Field"===e.kind}function r_({directives:e},t){return!e||!e.length||(function(e){let t=[];return e&&e.length&&e.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let r=e.arguments,n=e.name.value;(0,ew.V1)(r&&1===r.length,16,n);let i=r[0];(0,ew.V1)(i.name&&"if"===i.name.value,17,n);let a=i.value;(0,ew.V1)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,n),t.push({directive:e,ifArgument:i})}),t})(e).every(({directive:e,ifArgument:r})=>{let n=!1;return"Variable"===r.value.kind?(n=t&&t[r.value.name.value],(0,ew.V1)(void 0!==n,15,e.name.value)):n=r.value.value,"skip"===e.name.value?!n:n})}function ry(e,{data:t,...r},{data:n,...i},a){return(0,re.L)(r,i)&&function e(t,r,n,i){if(r===n)return!0;let a=new Set;return t.selections.every(t=>{if(a.has(t)||(a.add(t),!r_(t,i.variables)||rv(t)))return!0;if(rg(t)){let a=t6(t),s=r&&r[a],o=n&&n[a],l=t.selectionSet;if(!l)return(0,re.L)(s,o);let u=Array.isArray(s),c=Array.isArray(o);if(u!==c)return!1;if(u&&c){let t=s.length;if(o.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,s[r],o[r],i))return!1;return!0}return e(l,s,o,i)}{let a=rp(t,i.fragmentMap);if(a)return!!rv(a)||e(a.selectionSet,r,n,i)}})}(rm(e).selectionSet,t,n,{fragmentMap:t3(t4(e)),variables:a})}function rv(e){return!!e.directives&&e.directives.some(rb)}function rb(e){return"nonreactive"===e.name.value}function rw(e){let t=ex(e);return(0,ew.V1)(t&&"query"===t.operation,13),t}var rE=r(69135);let{assign:rk,hasOwnProperty:rS}=Object,rT={loading:!0,networkStatus:rh.p.loading,data:void 0,dataState:"empty",partial:!0},rx={loading:!1,networkStatus:rh.p.ready,data:void 0,dataState:"empty",partial:!0};class rA{options;queryName;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);let{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=n,initialFetchPolicy:a="standby"===i?n:i}=t;this.lastQuery=r,this.options={...t,initialFetchPolicy:a,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);let s=ex(this.query);this.queryName=s&&s.name&&s.name.value}initializeObservablesQueue(){this.subject=new rf({query:this.query,variables:this.variables,result:rT,meta:{}});let e=this.subject.pipe(tQ({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),rn(({query:e,variables:t,result:r,meta:n},i)=>{let{shouldEmit:a}=n;if(r===rT&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===a)return;if(1===a)return l();let{previous:s,previousVariables:o}=i;if(s){let n=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,a=i?n.nonReactiveQuery:e;if((i||n.hasNonreactiveDirective?ry(a,s,r,t):(0,re.L)(s,r))&&(0,re.L)(o,t))return}if(!(3===a&&(!this.options.notifyOnNetworkStatusChange||(0,re.L)(s,r))))return l();function l(){return i.previous=r,i.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new tV,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.queryManager.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=this.queryManager.prioritizeCacheValues?"cache-first":e||this.options.fetchPolicy,r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?rh.p.ready:rh.p.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:rh.p.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:rh.p.loading};case"standby":return rx;default:return rT}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,n="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!rN({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((n||i)&&this.unsubscribeFromCache?.(),n||!i)return;let a={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(a.lastDiff=void 0),a.lastOwnDiff===e)return;let{result:n}=this.subject.getValue();(e.complete||!n.error&&n!==rT&&n!==rx)&&((0,re.L)(n.data,e.result)||this.scheduleNotify())}},s=this.queryManager.cache.watch(a);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,s()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===rh.p.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===rT&&(t=this.getInitialResult()),(0,re.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",eb.g&&e&&rS.call(e,"variables")){let t=rw(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!eb.g||ew.V1.warn(77,e,t.name?.value||t)}return e&&!(0,re.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:rh.p.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:n,updateQuery:i}){(0,ew.V1)("cache-only"!==this.options.fetchPolicy,78,k(this.query,"(anonymous)"));let a={...(0,eN.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:n}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};a.query=this.transformDocument(a.query),this.lastQuery=e?this.transformDocument(this.options.query):a.query;let s=!1,o="no-cache"!==this.options.fetchPolicy;o||(0,ew.V1)(i,79);let{finalize:l,pushNotification:u}=this.pushOperation(rh.p.fetchMore);return u({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3}),this.queryManager.fetchQuery(a,rh.p.fetchMore).then(e=>{if(l(),o){let t=this.getCacheDiff();this.queryManager.cache.batch({update:t=>{i?t.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1},t=>i(t,{fetchMoreResult:e.data,variables:a.variables})):t.writeQuery({query:a.query,variables:a.variables,data:e.data})},onWatchUpdated:(e,r)=>{e.watcher!==this||(0,re.L)(r.result,t.result)||(s=!0)}})}else{let t=this.getCurrentResult(),r=i(t.data,{fetchMoreResult:e.data,variables:a.variables});u({kind:"N",value:{...t,networkStatus:rh.p.ready,loading:!1,data:r,dataState:"streaming"===t.dataState?"streaming":"complete"},source:"network"})}return this.maskResult(e)}).finally(()=>{l(),o&&!s&&u({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})})}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:n}=e,{error:i}=t;if(i)return void(n?n(i):ew.V1.error(80,i));r&&this.updateQuery((e,n)=>r(e,{subscriptionData:t,...n}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,eN.o)(this.options,e||{});rk(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,re.L)(this.variables,e))?ri(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:rh.p.setVariables}):ri(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:n}=this.getCacheDiff({optimistic:!1}),i=e(r,{variables:this.variables,complete:!!n,previousData:r});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:n=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:n}):"variables-changed"===e?t.fetchPolicy=n:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,n){let i=this.options.fetchPolicy;e.context??={};let a=!1,s=e=>new b(r=>{try{return e.subscribe({next(e){a=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{a||(d.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:i}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{a=!0},fetchQueryOperator:s,observableQuery:this}),{query:u,variables:c}=this,d={abort:()=>{f.unsubscribe()},query:u,variables:c};this.activeOperations.add(d);let h=t==rh.p.refetch||t==rh.p.setVariables,f=(o=o.pipe(n,tq())).pipe(tQ({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?d.override=t:delete d.override},finalize:()=>this.activeOperations.delete(d)})).subscribe({next:e=>{let t={};h&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(h=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:f,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this;if(!r||!this.hasObservers()||"cache-only"===t){eb.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(eb.g&&ew.V1.warn(81,k(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{this.pollingInfo&&(rt(this.networkStatus)||this.options.skipPollAttempt?.()?i():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:rh.p.poll}).then(i,i))},i=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};i()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){var r;let n,i,a;this.isTornDown=!1;let{newNetworkStatus:s}=t||{};this.queryManager.obsQueries.add(this);let o=s===rh.p.refetch||s===rh.p.poll,l=this.variables,u=this.options.fetchPolicy,c=(0,eN.o)(this.options,e||{}),d=o?c:rk(this.options,c),h=this.transformDocument(d.query);this.lastQuery=h,e&&"variables"in e&&(d.variables=this.getVariablesWithDefaults(e.variables)),!o&&(this.updatePolling(),e&&e.variables&&!(0,re.L)(e.variables,l)&&"standby"!==d.fetchPolicy&&(d.fetchPolicy===u||"function"==typeof d.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",d),void 0===s&&(s=rh.p.setVariables)));let f=this.networkStatus;s||(s=rh.p.loading,f!==rh.p.loading&&e?.variables&&!(0,re.L)(e.variables,l)&&(s=rh.p.setVariables),"standby"===d.fetchPolicy&&(s=rh.p.ready)),"standby"===d.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:p,operator:m}=(r=e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source&&!e.value.loading)return e.value}},n="standby"===d.fetchPolicy?{data:void 0}:void 0,{promise:new Promise((e,t)=>{i=e,a=t}),operator:tQ({next(e){try{let t=r(e);void 0!==t&&(n=t)}catch(e){a(e)}},finalize:()=>{if(n)i(n);else{let e="The operation was aborted.",t="AbortError";a("undefined"!=typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}),{subscription:g,observable:_,fromLink:y}=this.fetch(d,s,h,m);o||!y&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=g);let v=Object.assign((0,rE.X)(p.then(e=>ri(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=_.subscribe({}),t=()=>e.unsubscribe();return p.then(t,t),v}});return v}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"==this.options.fetchPolicy||"cache-and-network"==this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,re.L)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:rh.p.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:n}=this,i=()=>{this.activeOperations.delete(a)},a={override:e,abort:()=>{t=!0,i()},query:r,variables:n};return this.activeOperations.add(a),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:r,variables:n,meta:{...i}})}}}calculateNetworkStatus(e){if(e===rh.p.streaming)return e;let t=Array.from(this.activeOperations.values()).findLast(e=>rN(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?rx:rT,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=rn(e=>{let t,{query:r,variables:n,meta:i}=e;if("setResult"===e.source)return{query:r,variables:n,result:e.value,meta:i};if("C"===e.kind||!rN(e,this))return;let a=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===rh.p.ready&&t.partial&&(!this.options.returnPartialData||a.result.networkStatus===rh.p.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...rN(a,e)?a.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:rh.p.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=rN(a,e)?a.result:this.getInitialResult(i.fetchPolicy),{resetError:n}=e.value,s=n?void 0:r.error,o=s?rh.p.error:rh.p.ready;t={...r,error:s,networkStatus:o}}return(0,ew.V1)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=rt(t.networkStatus),{query:r,variables:n,result:t=this.maskResult(t),meta:i}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,n){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,n):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function rN(e,t){return!!(e&&t&&e.query===t.query&&(0,re.L)(e.variables,t.variables))}let rC={},rI=new WeakMap;function rO(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return rI.set(e,(rI.get(e)+1)%1e15),r.apply(this,arguments)})}let rP=new WeakMap;class rD{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){let r=this.cache=e.cache,n=(rP.get(e)||0)+1;rP.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e,rI.has(r)||(rI.set(r,0),rO(r,"evict"),rO(r,"modify"),rO(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===rI.get(this.cache)&&(0,re.L)(t,r.variables)&&(0,re.L)(e.data,r.result.data))}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:n}=this.queryManager;return n.isIncrementalResult(t)?(this.incremental||=n.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){let a={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let s=0===i,o=s?void 0:this.cache.diff(a),l=this.maybeHandleIncrementalResult(o?.result,e,t);return s||(rM(l,n)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===i}),this.lastWrite={result:l,variables:r,dmCount:rI.get(this.cache)};else if(o&&o.complete){l={...l,data:o.result};return}let n=e.diff(a);n.complete&&(l={...l,data:n.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let n=[],i=0===t.cacheWriteBehavior,a=this.maybeHandleIncrementalResult(i?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(a={...a,errors:[]}),rr(a)&&"none"===t.errorPolicy)return Promise.resolve(a);let s=()=>({...a,dataState:this.hasNext?"streaming":"complete"});if(!i&&rM(a,t.errorPolicy)){n.push({result:a.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let i=e[r],{query:a,variables:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=i(l,{mutationResult:s(),queryName:a&&k(a)||void 0,queryVariables:o});e&&n.push({result:e,dataId:"ROOT_QUERY",query:a,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(s())),n.length>0||(o||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];if(this.queryManager.refetchQueries({updateCache:e=>{i||n.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!i){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(a={...a,data:r.result})}this.hasNext||r(e,a,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:o,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>a)}return Promise.resolve(a)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:rC}):e;return r!==rC&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){ew.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){0!==i&&(rM(e,n)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r}),this.queryManager.broadcastQueries())}}function rM(e,t="none"){let r=!rr(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class rL{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){let t=new th(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;let r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,ew.vA)(83))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:n,refetchQueries:i=[],awaitRefetchQueries:a=!1,update:s,onQueryUpdated:o,fetchPolicy:l,errorPolicy:u,keepRootFields:c,context:d}){let h=new rD(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:f}=this.getDocumentInfo(e);t=this.getVariables(e,t),f&&(eb.g&&(0,ew.V1)(this.localState,84,k(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:d}));let p=this.mutationStore&&(this.mutationStore[h.id]={mutation:e,variables:t,loading:!0,error:null}),m=r&&h.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:d,updateQueries:n,update:s,keepRootFields:c});return this.broadcastQueries(),new Promise((f,g)=>{let _={};return this.getObservableFromLink(e,{...d,optimisticResponse:m?r:void 0},t,{},!1).observable.pipe(rR(),tO(r=>{let f={...r};return tL(h.markMutationResult(f,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==l),errorPolicy:u,context:d,update:s,updateQueries:n,awaitRefetchQueries:a,refetchQueries:i,removeOptimistic:m?h.id:void 0,onQueryUpdated:o,keepRootFields:c}))})).pipe(to(e=>{if(rr(e)&&"none"===u)throw new t2(e);return p&&(p.loading=!1,p.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!h.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:l,cause:_})};rr(t)&&(r.error=new t2(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),f(r)}},error:e=>(p&&(p.loading=!1,p.error=e),m&&this.cache.removeOptimistic(h.id),this.broadcastQueries(),"ignore"===u)?f({data:void 0}):"all"===u?f({data:void 0,error:e}):void g(e)})})}fetchQuery(e,t){return eT(e.query,O.cE.QUERY),(async()=>{var r,n,i;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(rn(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return ri(e.value)}})),i="object"==typeof(n={defaultValue:{data:void 0}}),new Promise(function(e,t){var a,s=!1;r.subscribe({next:function(e){a=e,s=!0},error:t,complete:function(){s?e(a):i?e(n.defaultValue):t(new tF)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new e4(eS["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){let r,n=ex(e),i={hasClientExports:tl(["client","export"],e,!0),hasForcedResolvers:(r=!1,M(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(r=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return D}}}),r),hasNonreactiveDirective:tl(["nonreactive"],e),hasIncrementalDirective:tl(["defer"],e),nonReactiveQuery:M(e,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:P.b.DIRECTIVE,name:{kind:P.b.NAME,value:"nonreactive"}}]}}}),clientQuery:tl(["client"],e)?e:null,serverQuery:function(e,t){var r;eT(t);let n=rl(""),i=rl(""),a=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!rs(r)){if(r.kind===P.b.OPERATION_DEFINITION)return n(r.name&&r.name.value);if(r.kind===P.b.FRAGMENT_DEFINITION)return i(r.name.value)}return ew.V1.error(14),null},s=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===P.b.OPERATION_DEFINITION&&++s;let o=function(e){let t=new Map,r=new Map;return e.forEach(e=>{e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))}),e=>{let n=t.get(e.name.value);return!n&&r.size&&r.forEach((t,r)=>{r(e)&&(n=t)}),n}}(e),l=e=>ro(e)&&e.map(o).some(e=>e&&e.remove),u=new Map,c=!1,d={enter(e){if(l(e.directives))return c=!0,null}},h=M(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,n,i){let s=a(i);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,n,i){if(l(e.directives))return c=!0,null;let s=a(i);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,n){u.set(JSON.stringify(n),e)},leave:(e,t,r,n)=>e===u.get(JSON.stringify(n))?e:s>0&&e.selectionSet.selections.every(e=>e.kind===P.b.FIELD&&"__typename"===e.name.value)?(i(e.name.value).removed=!0,c=!0,null):void 0},Directive:{leave(e){if(o(e))return c=!0,null}}});if(!c)return t;let f=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{f(i(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),p=new Set;h.definitions.forEach(e=>{e.kind===P.b.OPERATION_DEFINITION?f(n(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{p.add(e)}):e.kind!==P.b.FRAGMENT_DEFINITION||0!==s||i(e.name.value).removed||p.add(e.name.value)}),p.forEach(e=>{f(i(e)).fragmentSpreads.forEach(e=>{p.add(e)})});let m={enter(e){let t;if(t=e.name.value,!p.has(t)||i(t).removed)return null}};return!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===P.b.FRAGMENT_SPREAD&&e(r[t.name.value],r))}(ex(r=M(h,{FragmentSpread:m,FragmentDefinition:m,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=f(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}))||ra(r),t3(t4(r)))?r:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:rc(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,i)}let r=t.get(e);if(r.violation)throw r.violation;return r}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,n=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(n)}}watchQuery(e){eT(e.query,O.cE.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new rA({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,ew.vA)(85)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),n.set(e,!1);else if((0,eH.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=e8(this.transform(e));r.set(t,k(e)),n.set(t,!1)}else(0,eH.U)(e)&&e.query&&i.add(e)}),this.obsQueries.forEach(r=>{let i=e8(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:a,options:{fetchPolicy:s}}=r;("active"!==e||"standby"!==s)&&("active"===e||a&&n.has(a)||i&&n.has(i))&&(t.add(r),a&&n.set(a,!0),i&&n.set(i,!0))}),i.size&&i.forEach(e=>{let r=new rA({queryManager:this,options:{...e,fetchPolicy:"network-only"}});t.add(r)}),eb.g&&n.size&&n.forEach((e,t)=>{if(!e){let e=r.get(t);e?eb.g&&ew.V1.warn(86,e):eb.g&&ew.V1.warn(87)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:n}=r.options;(e||"standby"!==n)&&"cache-only"!==n&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:n}=e,{fetchPolicy:i,errorPolicy:a="none",context:s={},extensions:o={}}=e;return eT(r,O.cE.SUBSCRIPTION),r=this.transform(r),n=this.getVariables(r,n),eb.g&&(0,ew.V1)(!this.getDocumentInfo(r).hasClientExports||this.localState,88,k(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?tL(this.localState.getExportedVariables({client:this.client,document:r,variables:n,context:s})):tj(n)).pipe(tO(e=>{var n;let{observable:l,restart:u}=this.getObservableFromLink(r,s,e,o),c=new rD(this);return t=u,l.pipe(to(t=>{c.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:a,cacheWriteBehavior:2*("no-cache"!==i)});let n={data:t.data??void 0};return rr(t)?n.error=new t2(t):eB(t)&&(n.error=t.extensions[eF],delete t.extensions[eF]),t.extensions&&Object.keys(t.extensions).length&&(n.extensions=t.extensions),n.error&&"none"===a&&(n.data=void 0),"ignore"===a&&delete n.error,n}),tz(e=>"ignore"===a?tj({data:void 0}):tj({data:void 0,error:e})),(n=e=>!!(e.data||e.error),(0,ta.N)(function(e,t){var r=0;e.subscribe((0,ts._)(t,function(e){return n.call(void 0,e,r++)&&t.next(e)}))})))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new j(!1);getObservableFromLink(e,t,r,n,i=t?.queryDeduplication??this.queryDeduplication){let a={},{serverQuery:s,clientQuery:o,operationType:l,hasIncrementalDirective:u}=this.getDocumentInfo(e),c=k(e),d={client:this.client};if(s){let{inFlightLinkObservables:e,link:o}=this;try{let u=this.incrementalHandler.prepareRequest({query:s,variables:r,context:{...this.defaultContext,...t,queryDeduplication:i},extensions:n});function h(e){return new b(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let n=r();return a.restart||=()=>{n.unsubscribe(),n=r()},()=>{n.unsubscribe(),a.restart=void 0}})}if(t=u.context,i){var f,p,m,g,_,y,v,w,E;let t=e8(s),n=tJ(r);(a=e.lookup(t,n)).observable||(a.observable=tc(o,u,d).pipe(h,(f=()=>{e.peek(t,n)===a&&e.remove(t,n)},(0,ta.N)(function(e,t){try{e.subscribe(t)}finally{t.add(f)}})),l===O.cE.SUBSCRIPTION?tq():(p={refCount:!0},E=!1,p&&!0?(w=void 0===(_=p.bufferSize)?1/0:_,m=void 0===(y=p.windowTime)?1/0:y,E=void 0!==(v=p.refCount)&&v,g=p.scheduler):w=null!=p?p:1/0,tq({connector:function(){return new tW(w,m,g)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:E}))))}else a.observable=tc(o,u,d).pipe(h)}catch(e){a.observable=t_(()=>e)}}else a.observable=tj({data:{}});if(o){let{operation:n}=ex(e);eb.g&&(0,ew.V1)(this.localState,89,n[0].toUpperCase()+n.slice(1),c??"(anonymous)"),(0,ew.V1)(!u,90,n[0].toUpperCase()+n.slice(1),c??"(anonymous)"),a.observable=a.observable.pipe(tO(e=>tL(this.localState.execute({client:this.client,document:o,remoteResult:e,context:t,variables:r}))))}return{restart:()=>a.restart?.(),observable:a.observable.pipe(tz(e=>{var t;throw t=e=ej(e),t5.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:n}){let i=t.lastRequestId=this.generateRequestId(),{errorPolicy:a}=e,s=this.cache.transformForLink(e.query);return this.getObservableFromLink(s,e.context,e.variables).observable.pipe(to(i=>{let o=t.markQueryResult(i,{...e,document:s,cacheWriteBehavior:r}),l=rr(o);if(l&&"none"===a)throw t.resetLastWrite(),n?.resetNotifications(),new t2(o);let u={data:o.data,...t.hasNext?{loading:!0,networkStatus:rh.p.streaming,dataState:"streaming",partial:!0}:{dataState:o.data?"complete":"empty",loading:!1,networkStatus:rh.p.ready,partial:!o.data}};return l&&("none"===a&&(u.data=void 0,u.dataState="empty"),"ignore"!==a&&(u.error=new t2(o),"streaming"!==u.dataState&&(u.networkStatus=rh.p.error))),u}),tz(e=>{if(i>=t.lastRequestId&&"none"===a)throw t.resetLastWrite(),n?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:rh.p.ready,partial:!0};return"ignore"!==a&&(r.error=e,r.networkStatus=rh.p.error),tj(r)}))}fetchObservableWithInfo(e,{networkStatus:t=rh.p.loading,query:r=e.query,fetchQueryOperator:n=e=>e,onCacheHit:i=()=>{},observableQuery:a}){let s,o,l=this.getVariables(r,e.variables),u=this.defaultOptions.watchQuery,{fetchPolicy:c=u&&u.fetchPolicy||"cache-first",errorPolicy:d=u&&u.errorPolicy||"none",returnPartialData:h=!1,notifyOnNetworkStatusChange:f=!0,context:p={}}=e;this.prioritizeCacheValues&&("network-only"===c||"cache-and-network"===c)&&(c="cache-first");let m=Object.assign({},e,{query:r,variables:l,fetchPolicy:c,errorPolicy:d,returnPartialData:h,notifyOnNetworkStatusChange:f,context:p}),g=new rD(this,a),_=r=>{m.variables=r;let s="no-cache"===c?0:t===rh.p.refetch&&"merge"!==m.refetchWritePolicy?1:2,o=this.fetchQueryByPolicy(m,{queryInfo:g,cacheWriteBehavior:s,onCacheHit:i,observableQuery:a});return o.observable=o.observable.pipe(n),"standby"!==m.fetchPolicy&&a?.applyNextFetchPolicy("after-fetch",e),o},y=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,e=>{v.next({kind:"E",error:e,source:"network"})});let v=new tV;if(this.getDocumentInfo(m.query).hasClientExports)eb.g&&(0,ew.V1)(this.localState,91,k(m.query,"(anonymous)")),s=tL(this.localState.getExportedVariables({client:this.client,document:m.query,variables:m.variables,context:m.context})).pipe(tO(e=>_(e).observable)),o=!0;else{let e=_(m.variables);o=e.fromLink,s=e.observable}return{observable:new b(e=>{e.add(y),s.subscribe(e),v.subscribe(e)}).pipe(tq()),fromLink:o}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:n=r?(0,rd.v)("refetchQueries"):void 0,onQueryUpdated:i}){let a=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy)return;let t=e.getCurrentResult();a.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let s=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&n||!1,removeOptimistic:n,onWatchUpdated(e,r,n){let o=e.watcher;if(o instanceof rA&&!t.has(o)){if(t.add(o),i){a.delete(o);let e=i(o,r,n);return!0===e&&(e=o.refetch().retain()),!1!==e&&s.set(o,e),e}null!==i&&"cache-only"!==o.options.fetchPolicy&&a.set(o,{oq:o,lastDiff:n,diff:r})}}})}return a.size&&a.forEach(({oq:e,lastDiff:t,diff:r})=>{let n;i&&(r||(r=e.getCacheDiff()),n=i(e,r,t)),i&&!0!==n||(n=e.refetch().retain()),!1!==n&&s.set(e,n)}),n&&this.cache.removeOptimistic(n),s}noCacheWarningsByCause=new WeakSet;maskOperation(e){let{document:t,data:r}=e;if(eb.g){let r,{fetchPolicy:n,cause:i={}}=e,a=ex(t)?.operation;this.dataMasking&&"no-cache"===n&&(r=!0,M(t,{FragmentSpread:e=>{if(!(r=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return D}}),!r)&&!this.noCacheWarningsByCause.has(i)&&(this.noCacheWarningsByCause.add(i),eb.g&&ew.V1.warn(92,k(t,`Unnamed ${a??"operation"}`)))}return this.dataMasking?function(e,t,r){let n=ex(t);return((0,ew.V1)(n,43),null==e)?e:t7(e,n.selectionSet,{operationType:n.operation,operationName:n.name?.value,fragmentMap:t3(t4(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(r,t,this.cache):r}maskFragment(e){let{data:t,fragment:r,fragmentName:n}=e;return this.dataMasking?function(e,t,r,n){let i=t.definitions.filter(e=>e.kind===P.b.FRAGMENT_DEFINITION);void 0===n&&((0,ew.V1)(1===i.length,41,i.length),n=i[0].name.value);let a=i.find(e=>e.name.value===n);return((0,ew.V1)(!!a,42,n),null==e||(0,re.L)(e,{}))?e:t7(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:t3(t4(t)),cache:r,mutableTargets:new WeakMap,knownChanged:new WeakSet})}(t,r,this.cache,n):t}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:n,returnPartialData:i,context:a},{cacheWriteBehavior:s,onCacheHit:o,queryInfo:l,observableQuery:u}){let c=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),d=(r,s)=>{var l;let u=r.result;eb.g&&!i&&null!==u&&(l=r.missing,eb.g&&l&&eb.g&&ew.V1.debug(82,l));let c=e=>(r.complete||i||(e=void 0),{data:e,dataState:r.complete?"complete":e?"partial":"empty",loading:rt(s),networkStatus:s,partial:!r.complete}),d=e=>tj({kind:"N",value:c(e),source:"cache"});return(r.complete||i)&&this.getDocumentInfo(e).hasForcedResolvers?(eb.g&&(0,ew.V1)(this.localState,93,k(e,"(anonymous)")),o(),tL(this.localState.execute({client:this.client,document:e,remoteResult:u?{data:u}:void 0,context:a,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0}).then(e=>({kind:"N",value:c(e.data||void 0),source:"cache"})))):d("none"===n&&s===rh.p.refetch&&r.missing?void 0:u||void 0)},h=()=>this.getResultsFromLink({query:e,variables:t,context:a,fetchPolicy:r,errorPolicy:n},{cacheWriteBehavior:s,queryInfo:l,observableQuery:u}).pipe(rR(),(0,ta.N)(function(e,t){e.subscribe((0,ts._)(t,function(e){t.next(tK.createNext(e))},function(){t.next(tK.createComplete()),t.complete()},function(e){t.next(tK.createError(e)),t.complete()}))}),to(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=c();if(e.complete)return{fromLink:!1,observable:d(e,rh.p.ready)};if(i)return{fromLink:!0,observable:tY(d(e,rh.p.loading),h())};return{fromLink:!0,observable:h()}}case"cache-and-network":{let e=c();if(e.complete||i)return{fromLink:!0,observable:tY(d(e,rh.p.loading),h())};return{fromLink:!0,observable:h()}}case"cache-only":return{fromLink:!1,observable:tY(d(c(),rh.p.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:h()};case"standby":return{fromLink:!1,observable:E}}}}function rR(){let e=!1;return tQ({next(){e=!0},complete(){(0,ew.V1)(e,94)}})}let rF=!1;class rB{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){eb.g&&((0,ew.V1)(e.cache,65),(0,ew.V1)(e.link,66));let{cache:t,documentTransform:r,ssrMode:n=!1,ssrForceFetchDelay:i=0,queryDeduplication:a=!0,defaultOptions:s,defaultContext:o,assumeImmutableResults:l=t.assumeImmutableResults,localState:u,devtools:c,dataMasking:d,link:h,incrementalHandler:f=new tu}=e;this.link=h,this.cache=t,this.queryDeduplication=a,this.defaultOptions=s||{},this.devtoolsConfig={...c,enabled:c?.enabled??eb.g},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=tg.r,this.queryManager=new rL({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:a,ssrMode:n,dataMasking:!!d,clientOptions:e,incrementalHandler:f,assumeImmutableResults:l,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:u}),this.prioritizeCacheValues=n||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools()}connectToDevTools(){if("undefined"==typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!rF&&eb.g&&(rF=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&eb.g&&ew.V1.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,tf.l)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,tf.l)(this.defaultOptions.query,e)),eb.g&&((0,ew.V1)("cache-and-network"!==e.fetchPolicy,67),(0,ew.V1)("standby"!==e.fetchPolicy,68),(0,ew.V1)(e.query,69),(0,ew.V1)("Document"===e.query.kind,70),(0,ew.V1)(!e.returnPartialData,71),(0,ew.V1)(!e.pollInterval,72),(0,ew.V1)(!e.notifyOnNetworkStatusChange,73)),this.queryManager.query(e)}mutate(e){let t=(0,tf.l)((0,eN.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return eb.g&&((0,ew.V1)(t.mutation,74),(0,ew.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,75)),eT(t.mutation,O.cE.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe(to(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking;return this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)}).pipe(to(r=>{if(eb.g&&t){let t=this.queryManager.maskFragment({...e,data:r.data});return{...r,data:t}}return r}))}readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return tc(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((e,t)=>{r.push(t),n.push(e)});let i=Promise.all(n);return i.queries=r,i.results=n,i.catch(e=>{eb.g&&ew.V1.debug(76,e)}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new th(tp);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}eb.g&&(rB.prototype.getMemoryInternals=tm);class rj extends eA{constructor(e){super((t,r)=>{let{...n}=t;return Object.defineProperty(n,"client",{enumerable:!1,value:t.client}),new b(i=>{let a=!1;return Promise.resolve(n).then(r=>e(t.getContext(),r)).then(t.setContext).then(()=>{a||r(t).subscribe(i)}).catch(i.error.bind(i)),()=>{a=!0}})})}}class rz extends eA{constructor(e){super((t,r)=>new b(n=>{let i,a,s;try{i=r(t).subscribe({next:i=>{let o=t.client.queryManager.incrementalHandler,l=o.isIncrementalResult(i)?o.extractErrors(i):i.errors;l?s=e({error:new t2(i,l),result:i,operation:t,forward:r}):eB(i)&&(s=e({error:i.extensions[eF],result:i,operation:t,forward:r})),(a=s?.subscribe(n))||n.next(i)},error:i=>{s=e({operation:t,error:ej(i),forward:r}),(a=s?.subscribe(n))||n.error(i)},complete:()=>{s||n.complete()}})}catch(i){e({error:ej(i),operation:t,forward:r}),n.error(i)}return()=>{i&&i.unsubscribe(),a&&a.unsubscribe()}}))}}let rU={kind:P.b.FIELD,name:{kind:P.b.NAME,value:"__typename"}},rH=Object.assign(function(e){return M(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===P.b.OPERATION_DEFINITION)return;let{selections:n}=e;if(!(!n||n.some(e=>e.kind===P.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===P.b.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...n,rU]}}}})},{added:e=>e===rU});function rV(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function rG(e,t){let r=t,n=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,ew.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,ew.V1)(1===n.length,11,n.length),r=n[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class rq{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}watchFragment(e){let t,{fragment:r,fragmentName:n,from:i,optimistic:a=!0,...s}=e,o=this.getFragmentDoc(r,n),l=void 0===i||"string"==typeof i?i:this.identify(i);if(eb.g){let e=n||ra(r).name.value;!l&&eb.g&&ew.V1.warn(109,e)}let u={...s,returnPartialData:!0,id:l,query:o,optimistic:a};return new b(r=>this.watch({...u,immediate:!0,callback:n=>{let i=n.result;if(null===i&&(i={}),t&&ry(o,{data:t.result},{data:i},e.variables))return;let a={data:i,dataState:n.complete?"complete":"partial",complete:!!n.complete};n.missing&&(a.missing=n.missing.missing),t={...n,result:i},r.next(a)}}))}getFragmentDoc=ev(rG,{max:eS["cache.fragmentQueryDocuments"]||1e3,cache:N});readFragment(e,t=!!e.optimistic){return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({id:e,data:t,fragment:r,fragmentName:n,...i}){return this.write(Object.assign(i,{query:this.getFragmentDoc(r,n),dataId:e,result:t}))}updateQuery(e,t){return this.batch({update(r){let n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(r){let n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment({...e,data:i}),i)}})}}eb.g&&(rq.prototype.getMemoryInternals=tm);let{hasOwnProperty:rZ}=Object.prototype,r$=function(e,t,r){return this.merge(e[r],t[r])};class rW{reconciler;constructor(e=r$){this.reconciler=e}merge(e,t,...r){return(0,eH.U)(t)&&(0,eH.U)(e)?(Object.keys(t).forEach(n=>{if(rZ.call(e,n)){let i=e[n];if(t[n]!==i){let a=this.reconciler(e,t,n,...r);a!==i&&((e=this.shallowCopyForMerge(e))[n]=a)}}else(e=this.shallowCopyForMerge(e))[n]=t[n]}),e):t}isObject=eH.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,eH.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function rK(e){return{__ref:String(e)}}let{hasOwnProperty:rY}=Object.prototype;function rQ({__typename:e,id:t,_id:r},n){if("string"==typeof e&&(n&&(n.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let rJ={dataIdFromObject:rQ,resultCaching:!0},rX=/^[_a-z][_0-9a-z]*/i;function r0(e){let t=e.match(rX);return t?t[0]:e}function r1(e){return(0,eH.U)(e)&&!rV(e)&&!rs(e)}function r2(e,t){let r=t3(t4(e));return{fragmentMap:r,lookupFragment(e){let n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}let r5={},r3=()=>r5,r4={};class r9{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),rY.call(this.data,e)){let r=this.data[e];if(r&&rY.call(r,t))return r[t]}return"__typename"===t&&rY.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ne?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),rY.call(this.data,e))?this.data[e]:this instanceof ne?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;rV(e)&&(e=e.__ref),rV(t)&&(t=t.__ref);let n="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(!i)return;(0,ew.V1)("string"==typeof r,95);let a=new rW(nr).merge(n,i);if(this.data[r]=a,a!==n&&(delete this.refs[r],this.group.caching)){let e={};n||(e.__exists=1),Object.keys(i).forEach(t=>{if(!n||n[t]!==a[t]){e[t]=1;let r=r0(t);r===t||this.policies.hasKeyArgs(a.__typename,r)||(e[r]=1),void 0!==a[t]||this instanceof ne||delete a[t]}}),e.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[r]===a.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let n=this.lookup(e);if(n){let i={},a=!1,s=!0,o={DELETE:r5,INVALIDATE:r4,isReference:rV,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||rK(e)}:t,{store:this})};if(Object.keys(n).forEach(l=>{let u=r0(l),c=n[l];if(void 0===c)return;let d="function"==typeof t?t:t[l]||(r?void 0:t[u]);if(d){let t=d===r3?r5:d((0,t9.G)(c),{...o,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===r4)this.group.dirty(e,l);else if(t===r5&&(t=void 0),t!==c&&(i[l]=t,a=!0,c=t,eb.g)){let e=e=>{if(void 0===this.lookup(e.__ref))return eb.g&&ew.V1.warn(96,e),!0};if(rV(t))e(t);else if(Array.isArray(t)){let r,n=!1;for(let i of t){if(rV(i)){if(n=!0,e(i))break}else if("object"==typeof i&&i){let[e]=this.policies.identify(i);e&&(r=i)}if(n&&void 0!==r){eb.g&&ew.V1.warn(97,r);break}}}}}void 0!==c&&(s=!1)}),a)return this.merge(e,i),s&&(this instanceof ne?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let n=this.lookup(e);if(n){let i=this.getFieldValue(n,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,a?{[a]:r3}:r3,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(rY.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ne&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{rY.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&rY.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof ne?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{rY.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof ne;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!rY.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let n=new Set([r]);n.forEach(e=>{rV(e)&&(t[e.__ref]=!0),(0,eH.U)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,eH.U)(r)&&n.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,t9.G)(rV(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>rV(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return rK(e);if(rV(e))return e;let[r]=this.policies.identify(e);if(r){let n=rK(r);return t&&this.merge(r,e),n}};get supportsResultCaching(){return this.group.caching}}class r6{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?eg():null,this.keyMaker=new j}depend(e,t){if(this.d){this.d(t+"#"+e);let r=r0(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function r8(e,t){nn(e)&&e.group.depend(t,"__exists")}class r7 extends r9{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new r6(t)),r&&this.replace(r)}stump=new nt(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new j;getStorage(){return this.storageTrie.lookupArray(arguments)}}r9.Root=r7;class ne extends r9{id;parent;replay;group;constructor(e,t,r,n){super(t.policies,n),this.id=e,this.parent=t,this.replay=r,this.group=n,r(this)}addLayer(e,t){return new ne(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let r=this.data[e],n=t.lookup(e);n?r?r!==n&&Object.keys(r).forEach(t=>{(0,re.L)(r[t],n[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(n).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return rY.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class nt extends ne{constructor(e){super("EntityStore.Stump",e,()=>{},new r6(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function nr(e,t,r){let n=e[r],i=t[r];return(0,re.L)(n,i)?n:i}function nn(e){return!!(e&&e.supportsResultCaching)}function ni(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:n})=>ru(r,e,n,t)),r}return null}let na=["connection","include","skip","client","rest","export","nonreactive"],ns=tJ,no=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let n={};e.forEach(e=>{n[e]=t[e]});let i=ns(n);if("{}"!==i)return`${r.connection.key}(${i})`}return r.connection.key}let n=e;if(t){let e=ns(t);"{}"!==e&&(n+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===na.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?n+=`@${e}(${ns(r[e])})`:n+=`@${e}`)}),n},{setStringify(e){let t=ns;return ns=e,t}});var nl=r(99365);let nu={};function nc(e){let t=JSON.stringify(e);return nu[t]||(nu[t]={})}function nd(e){let t=nc(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let n=(e,t)=>r.readField(t,e),i=r.keyObject=nf(e,e=>{let i=nm(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&rY.call(t,e[0])&&(i=nm(t,e,np)),(0,ew.V1)(void 0!==i,98,e.join("."),t),i});return`${r.typename}:${JSON.stringify(i)}`})}function nh(e){let t=nc(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:n,fieldName:i})=>{let a=JSON.stringify(nf(e,e=>{let i=e[0],a=i.charAt(0);if("@"===a){if(r&&ro(r.directives)){let t=i.slice(1),a=r.directives.find(e=>e.name.value===t),s=a&&ni(a,n);return s&&nm(s,e.slice(1))}return}if("$"===a){let t=i.slice(1);if(n&&rY.call(n,t)){let r=e.slice(0);return r[0]=t,nm(n,r)}return}if(t)return nm(t,e)}));return(t||"{}"!==a)&&(i+=":"+a),i})}function nf(e,t){let r=new rW;return(function e(t){let r=nc(t);if(!r.paths){let n=r.paths=[],i=[];t.forEach((r,a)=>{rs(r)?(e(r).forEach(e=>n.push(i.concat(e))),i.length=0):(i.push(r),rs(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce((e,n)=>{let i=t(n);if(void 0!==i){for(let e=n.length-1;e>=0;--e)i={[n[e]]:i};e=r.merge(e,i)}return e},{})}function np(e,t){return e[t]}function nm(e,t,r){return r=r||np,function e(t){return(0,eH.U)(t)?rs(t)?t.map(e):nf(Object.keys(t).sort(),e=>nm(t,e)):t}(t.reduce(function e(t,n){return rs(t)?t.map(t=>e(t,n)):t&&r(t,n)},e))}let ng=new W,n_=new WeakMap;function ny(e){let t=n_.get(e);return t||n_.set(e,t={vars:new Set,dep:eg()}),t}function nv(e){ny(e).vars.forEach(t=>t.forgetCache(e))}function nb(e){let t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(e=>{var t;ny(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});let i=Array.from(r);r.clear(),i.forEach(t=>t(e))}}else{let e=ng.getValue();e&&(i(e),ny(e).dep(n))}return e};n.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let i=n.attachCache=e=>(t.add(e),ny(e).vars.add(n),n);return n.forgetCache=e=>t.delete(e),n}function nw(e){return void 0!==e.args?e.args:e.field?ni(e.field,e.variables):null}let nE=()=>void 0,nk=(e,t)=>t.fieldName,nS=(e,t,{mergeObjects:r})=>r(e,t),nT=(e,t)=>t;class nx{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:rQ,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r,n=this,i=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let a=t&&t.storeObject||e,s={...t,typename:i,storeObject:a,readField:t&&t.readField||((...e)=>{let t=nN(e,a);return n.readField(t,{store:n.cache.data,variables:t.variables})})},o=i&&this.getTypePolicy(i),l=o&&o.keyFn||this.config.dataIdFromObject;return t8.withValue(!0,()=>{for(;l;){let t=l({...e,...a},s);if(rs(t))l=nd(t);else{r=t;break}}}),r=r?String(r):void 0,s.keyObject?[r,s.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:n,subscriptionType:i,...a}=e[t];r&&this.setRootTypename("Query",t),n&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),rY.call(this.toBeAdded,t)?this.toBeAdded[t].push(a):this.toBeAdded[t]=[a]})}updateTypePolicy(e,t,r){let n=this.getTypePolicy(e),{keyFields:i,fields:a}=t;function s(e,t){e.merge="function"==typeof t?t:!0===t?nS:!1===t?nT:e.merge}s(n,t.merge),n.keyFn=!1===i?nE:rs(i)?nd(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(t=>{let n=r[t];n&&n?.typename===e||(n=r[t]={typename:e});let i=a[t];if("function"==typeof i)n.read=i;else{let{keyArgs:e,read:t,merge:r}=i;n.keyFn=!1===e?nk:rs(e)?nh(e):"function"==typeof e?e:n.keyFn,"function"==typeof t&&(n.read=t),s(n,r)}n.read&&n.merge&&(n.keyFn=n.keyFn||nk)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,ew.V1)(!n||n===e,99,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(rX);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!rY.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,n)=>{if(t.test(e)){let e=this.supertypeMap.get(n);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...n}=this.getTypePolicy(e);Object.assign(t,n),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,n){if(!e.typeCondition)return!0;if(!t)return!1;let i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){let a=this.getSupertypeSet(t,!0),s=[a],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<s.length;++c){let d=s[c];if(d.has(i))return a.has(i)||(u&&eb.g&&ew.V1.warn(100,t,i),a.add(i)),!0;d.forEach(o),l&&c===s.length-1&&function e(t,r,n){return!!(0,eH.U)(r)&&(rs(r)?r.every(r=>e(t,r,n)):t.selections.every(t=>{if(rg(t)&&r_(t,n)){let i=t6(t);return rY.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{let n=t.match(e);n&&n[0]===t&&o(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let n,i,a,{typename:s,fieldName:o}=e,l=this.getFieldPolicy(s,o),u=l&&l.keyFn;if(u&&s){let t={typename:s,fieldName:o,field:e.field||null,variables:e.variables},r=nw(e);for(;u;){let e=u(r,t);if(rs(e))u=nh(e);else{n=e||o;break}}}return(void 0===n&&(n=e.field?(t=e.field,r=e.variables,i=null,t.directives&&(i={},t.directives.forEach(e=>{i[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:n})=>ru(i[e.name.value],t,n,r))})),a=null,t.arguments&&t.arguments.length&&(a={},t.arguments.forEach(({name:e,value:t})=>ru(a,e,t,r))),no(t.name.value,a,i)):no(o,nw(e))),!1===n)?o:o===r0(n)?n:o+":"+n}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}let n=this.getStoreFieldName(e),i=r0(n),a=t.store.getFieldValue(r,n),s=this.getFieldPolicy(e.typename,i),o=s&&s.read;if(o){let i=nA(this,r,e,t,t.store.getStorage(rV(r)?r.__ref:r,n));return ng.withValue(this.cache,o,[a,i])}return a}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i}runMergeFunction(e,t,{field:r,typename:n,merge:i},a,s){return i===nS?nC(a.store)(e,t):i===nT?t:(a.overwrite&&(e=void 0),i(e,t,nA(this,void 0,{typename:n,fieldName:r.name.value,field:r,variables:a.variables},a,s||{})))}}function nA(e,t,r,n,i){let a=e.getStoreFieldName(r),s=r0(a),o=r.variables||n.variables,{toReference:l,canRead:u}=n.store;return{args:nw(r),field:r.field||null,fieldName:s,storeFieldName:a,variables:o,isReference:rV,toReference:l,storage:i,cache:e.cache,canRead:u,readField:(...r)=>e.readField(nN(r,t,o),n),mergeObjects:nC(n.store)}}function nN(e,t,r){let n,{0:i,1:a,length:s}=e;return"string"==typeof i?n={fieldName:i,from:s>1?a:t}:(n={...i},rY.call(n,"from")||(n.from=t)),eb.g&&void 0===n.from&&eb.g&&ew.V1.warn(101,(0,nl.p)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function nC(e){return function(t,r){if(rs(t)||rs(r))throw(0,ew.vA)(102);if((0,eH.U)(t)&&(0,eH.U)(r)){let n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(rV(t)&&r1(r))return e.merge(t.__ref,r),t;if(r1(t)&&rV(r))return e.merge(t,r.__ref),r;if(r1(t)&&r1(r))return{...t,...r}}return r}}class nI extends Error{message;path;query;variables;constructor(e,t,r,n){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=n,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=nI.prototype}missing}function nO(e){return[e.selectionSet,e.objectOrReference,e.context]}class nP{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=ev(e=>{let t=nO(e),r=this.executeSelectionSet.peek(...t);return r||(r8(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:eS["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:nO,makeCacheKey(e,t,r){if(nn(r.store))return r.store.makeCacheKey(e,rV(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=ev(e=>(r8(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:eS["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(nn(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:n,returnPartialData:i=!0}){let a,s=this.config.cache.policies;n={...rc(rw(t)),...n};let o=rK(r),l=this.executeSelectionSet({selectionSet:rm(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:s,variables:n,varString:tJ(n),...r2(t,this.config.fragments)}});l.missing&&(a=new nI(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,n));let u=!a,{result:c}=l;return{result:u||i?0===Object.keys(c).length?null:c:null,complete:u,missing:a}}isFresh(e,t,r,n){if(nn(n.store)&&this.knownResults.get(e)===r){let i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:n}){let i;if(rV(t)&&!n.policies.rootTypenamesById[t.__ref]&&!n.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:a,policies:s,store:o}=n,l=o.getFieldValue(t,"__typename"),u=[],c=new rW;function d(e,t){return e.missing&&(i=c.merge(i,{[t]:e.missing})),e.result}"string"!=typeof l||s.rootIdsByTypename[l]||u.push({__typename:l});let h=new Set(e.selections);h.forEach(e=>{if(r_(e,a))if(rg(e)){let a=s.readField({fieldName:e.name.value,field:e,variables:n.variables,from:t},n),o=t6(e);void 0===a?rH.added(e)||(i=c.merge(i,{[o]:`Can't find field '${e.name.value}' on ${rV(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):rs(a)?a.length>0&&(a=d(this.executeSubSelectedArray({field:e,array:a,enclosingRef:r,context:n}),o)):e.selectionSet&&null!=a&&(a=d(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:a,enclosingRef:rV(a)?a:r,context:n}),o)),void 0!==a&&u.push({[o]:a})}else{let t=rp(e,n.lookupFragment);if(!t&&e.kind===P.b.FRAGMENT_SPREAD)throw(0,ew.vA)(103,e.name.value);t&&s.fragmentMatches(t,l)&&t.selectionSet.selections.forEach(h.add,h)}});let f={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let n=new rW;for(let i=1;i<r;++i)t=n.merge(t,e[i])}return t}(u),missing:i},p=(0,t9.G)(f);return p.result&&this.knownResults.set(p.result,e),p}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:n}){let i,a=new rW;function s(e,t){return e.missing&&(i=a.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(n.store.canRead)),{result:t=t.map((t,i)=>null===t?null:rs(t)?s(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:n}),i):e.selectionSet?s(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:rV(t)?t:r,context:n}),i):(eb.g&&function(e,t,r){if(!t.selectionSet){let n=new Set([r]);n.forEach(r=>{(0,eH.U)(r)&&((0,ew.V1)(!rV(r),104,rV(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(n.store,e,t),t)),missing:i}}}let{toString:nD}=Object.prototype;function nM(e,t,r){let n=`${t}${r}`,i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),i}class nL{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:n,variables:i,overwrite:a}){let s=ex(t),o=new rW,l={store:e,written:{},merge:(e,t)=>o.merge(e,t),variables:i={...rc(s),...i},varString:tJ(i),...r2(t,this.fragments),overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},u=this.processSelectionSet({result:r||{},dataId:n,selectionSet:s.selectionSet,mergeTree:{map:new Map},context:l});if(!rV(u))throw(0,ew.vA)(105,r);return l.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:n},i)=>{let a=rK(i);if(r&&r.map.size){let e=this.applyMerges(r,a,t,l);if(rV(e))return;t=e}if(eb.g&&!l.overwrite){let e={};n.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(n=>{!0!==e[r0(n)]||(e=>{let t=r&&r.map.get(e);return!!(t&&t.info&&t.info.merge)})(n)||function(e,t,r,n){let i=e=>{let t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(!a)return;let s=i(t);if(!s||rV(a)||(0,re.L)(a,s)||Object.keys(a).every(e=>void 0!==n.getFieldValue(s,e)))return;let o=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=r0(r),u=`${o}.${l}`;if(nz.has(u))return;nz.add(u);let c=[];rs(a)||rs(s)||[a,s].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)}),eb.g&&ew.V1.warn(108,l,o,c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"",u,{...a},{...s})}(a,t,n,l.store)})}e.merge(i,t)}),e.retain(u.__ref),u}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:i}){let{policies:a}=this.cache,s={},o=e&&a.rootTypenamesById[e]||nU(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof o&&(s.__typename=o);let l=(...e)=>{let t=nN(e,s,n.variables);if(rV(t.from)){let e=n.incomingById.get(t.from.__ref);if(e){let r=a.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return a.readField(t,n)},u=new Set;this.flattenFields(r,t,n,o).forEach((e,r)=>{let n=t[t6(r)];if(u.add(r),void 0!==n){let t,u=a.getStoreFieldName({typename:o,fieldName:r.name.value,field:r,variables:e.variables}),c=nF(i,u),d=this.processFieldValue(n,r,r.selectionSet?nM(e,!1,!1):e,c);r.selectionSet&&(rV(d)||r1(d))&&(t=l("__typename",d));let h=a.getMergeFunction(o,r.name.value,t);h?c.info={field:r,typename:o,merge:h}:nj(i,u),s=e.merge(s,{[u]:d})}else!eb.g||e.clientOnly||e.deferred||rH.added(r)||a.getReadFunction(o,r.name.value)||ew.V1.error(106,t6(r),t)});try{let[i,u]=a.identify(t,{typename:o,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:s,readField:l});e=e||i,u&&(s=n.merge(s,u))}catch(t){if(!e)throw t}if("string"==typeof e){let a=rK(e),o=n.written[e]||(n.written[e]=[]);if(o.indexOf(r)>=0||(o.push(r),this.reader&&this.reader.isFresh(t,a,r,n)))return a;let l=n.incomingById.get(e);return l?(l.storeObject=n.merge(l.storeObject,s),l.mergeTree=function e(t,r){if(t===r||!r||nB(r))return t;if(!t||nB(t))return r;let n=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){let n=new Set(r.map.keys());t.map.forEach((t,i)=>{a.map.set(i,e(t,r.map.get(i))),n.delete(i)}),n.forEach(n=>{a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(l.mergeTree,i),u.forEach(e=>l.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:s,mergeTree:nB(i)?void 0:i,fieldNodeSet:u}),a}return s}processFieldValue(e,t,r,n){return t.selectionSet&&null!==e?rs(e)?e.map((e,i)=>{let a=this.processFieldValue(e,t,r,nF(n,i));return nj(n,i),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):eb.g?function e(t,r){switch(nD.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let n=t.slice(0);return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let n=Object.create(Object.getPrototypeOf(t));return r.set(t,n),Object.keys(t).forEach(i=>{n[i]=e(t[i],r)}),n}default:return t}}(e):e}flattenFields(e,t,r,n=nU(t,e,r.fragmentMap)){let i=new Map,{policies:a}=this.cache,s=new j(!1);return!function e(o,l){let u=s.lookup(o,l.clientOnly,l.deferred);u.visited||(u.visited=!0,o.selections.forEach(s=>{if(!r_(s,r.variables))return;let{clientOnly:o,deferred:u}=l;if(!(o&&u)&&ro(s.directives)&&s.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(o=!0),"defer"===t){let t=ni(e,r.variables);t&&!1===t.if||(u=!0)}}),rg(s)){let e=i.get(s);e&&(o=o&&e.clientOnly,u=u&&e.deferred),i.set(s,nM(r,o,u))}else{let i=rp(s,r.lookupFragment);if(!i&&s.kind===P.b.FRAGMENT_SPREAD)throw(0,ew.vA)(107,s.name.value);i&&a.fragmentMatches(i,n,t,r.variables)&&e(i.selectionSet,nM(r,o,u))}}))}(e,r),i}applyMerges(e,t,r,n,i){if(e.map.size&&!rV(r)){let a,s=!rs(r)&&(rV(t)||r1(t))?t:void 0,o=r;s&&!i&&(i=[rV(s)?s.__ref:s]);let l=(e,t)=>rs(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(s,t),u=l(o,t);if(void 0===u)return;i&&i.push(t);let c=this.applyMerges(e,r,u,n,i);c!==u&&(a=a||new Map).set(t,c),i&&(0,ew.V1)(i.pop()===t)}),a&&(r=rs(o)?o.slice(0):{...o},a.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&n.store.getStorage(...i)):r}}let nR=[];function nF({map:e},t){return e.has(t)||e.set(t,nR.pop()||{map:new Map}),e.get(t)}function nB(e){return!e||!(e.info||e.map.size)}function nj({map:e},t){let r=e.get(t);r&&nB(r)&&(nR.push(r),e.delete(t))}let nz=new Set;function nU(e,t,r){let n;for(let r of t.selections)if(rg(r)){if("__typename"===r.name.value)return e[t6(r)]}else n?n.push(r):n=[r];if("string"==typeof e.__typename)return e.__typename;if(n)for(let t of n){let n=nU(e,rp(t,r).selectionSet,r);if("string"==typeof n)return n}}class nH extends rq{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new th(rH);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=nb;constructor(e={}){super(),this.config=(0,eN.o)(rJ,e),this.policies=new nx({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new r9.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new nL(this,this.storeReader=new nP({cache:this,fragments:e}),e),this.maybeBroadcastWatch=ev((e,t)=>this.broadcastWatch(e,t),{max:eS["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(nn(t)){let{optimistic:r,id:n,variables:i}=e;return t.makeCacheKey(e.query,e.callback,tJ({optimistic:r,id:n,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(rY.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;return this.watches.size||(t=this,ny(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&nv(this),this.maybeBroadcastWatch.forget(e)}}gc(e){tJ.reset(),e8.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(rV(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){eb.g&&ew.V1.warn(e)}}evict(e){if(!e.id){if(rY.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),tJ.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),nv(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:n=!0,removeOptimistic:i,onWatchUpdated:a}=e,s=e=>{let{data:n,optimisticData:i}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=n,this.optimisticData=i}},o=new Set;return a&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(o.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,s):!1===n?s(this.data):s(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),a&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=a.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}broadcastWatches(e){this.txCount||this.watches.forEach(t=>this.maybeBroadcastWatch(t,e))}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,re.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))}}eb.g&&(nH.prototype.getMemoryInternals=tm);let nV=JSON.parse('{"Product":["ConfigurableProduct","SimpleProduct","BundleProduct","PlanProduct","TokenizedProduct"],"ConfigurableOrBundleProduct":["BundleProduct","ConfigurableProduct"],"OrderDiscountable":["OrderGlobalDiscount","OrderPaymentDiscount","OrderDeliveryDiscount","OrderItemDiscount"],"OrderDelivery":["OrderDeliveryPickUp","OrderDeliveryShipping"],"OrderPayment":["OrderPaymentInvoice","OrderPaymentCard","OrderPaymentGeneric"]}');function nG(e=!1){return{keyArgs:e,merge(e,t,{args:r}){let n=e?e.slice(0):[];if(t)if(r){let{offset:e=0}=r;for(let r=0;r<t.length;++r)n[e+r]=t[r]}else n.push(...t);return n}}}let nq={...{Query:{fields:{assortments:{...nG(["includeLeaves","includeInactive","tags","queryString","slugs","limit"])},products:{...nG(["includeDrafts","tags","queryString","sort","limit"])},product:{keyArgs:["productId","slug"],fields:{reviews:nG()}},user:{keyArgs:["userId"],fields:{reviews:nG()}},countries:{...nG(["includeInactive","queryString","sort","limit"])},currencies:{...nG(["includeInactive","queryString","sort","limit"])},enrollments:{...nG(["queryString","status","sort","limit"])},quotations:{...nG(["queryString","sort","limit"])},workQueue:{...nG(["status","types","created","queryString","limit"])},languages:{...nG(["includeInactive","queryString","sort","limit"])},events:{...nG(["types","queryString","sort","limit","created"])},users:{...nG(["includeGuests","queryString","emailVerified","lastLogin","limit","tags"])},filters:{...nG(["queryString","includeInactive","sort","limit"])},orders:{...nG(["includeCarts","queryString","sort","limit","dateRange","status","deliveryProviderIds","paymentProviderIds"])}}}},keyFields:e=>(null==e?void 0:e._id)&&(null==e?void 0:e.__typename)?"".concat(null==e?void 0:e.__typename,":").concat(null==e?void 0:e._id):(null==e?void 0:e.id)&&(null==e?void 0:e.__typename)?"".concat(e.__typename,":").concat(e.id):null},nZ=["accept-language","pragma","user-agent","x-forwarded-for","x-forwarded-host","x-forwarded-port","x-forwarded-proto","x-forwarded-server","x-mapihttpcapability","x-real-ip","x-user-identity","host","cookie","authorization"],n$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,{headers:t={},locale:r=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null!=s?s:(e=>{let{headers:t={},locale:r}=e,n=new rj(e=>{let n,i;return n={...t,...e.headers},i=r,{headers:{...Object.fromEntries(Object.entries(n).filter(e=>{let[t]=e;return nZ.includes(null==t?void 0:t.toLowerCase())})),"accept-language":(null==n?void 0:n.forceLocale)||i}}}),i=new ti({uri:"".concat(window.location.origin,"/graphql"),credentials:"include",includeExtensions:!0}),a=new rz(e=>{let{error:t,operation:r}=e;t2.is(t)&&t.errors.forEach(e=>{let{message:t,locations:n,path:i,extensions:a}=e;console.error("[GraphQL error]: Message: ".concat(t,", Location: ").concat(JSON.stringify(n),", Path: ").concat(i,", Extensions: ").concat(JSON.stringify(a),", Operation: ").concat(r.operationName))}),t&&console.error("[Network error]: ".concat(t.message,", ").concat(t.name," Operation: ").concat(r.operationName))}),s=new nH({typePolicies:nq,possibleTypes:nV});return new rB({defaultOptions:{watchQuery:{fetchPolicy:"cache-and-network",errorPolicy:"all"},mutate:{errorPolicy:"all"}},ssrMode:!1,link:eA.from([a,n,i].filter(Boolean)),cache:s,devtools:{enabled:!1}})})({headers:t,locale:r});if(e){let t=n.extract(),r=c()(e,t,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!h()(e,t)))]});n.cache.restore(r)}return s=n,n};function nW(e){let{endpoint:t=null,...r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null==e?void 0:e.__APOLLO_STATE__;return(0,l.useMemo)(()=>n$(n,{...r}),[n,t])}},69001:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}(r)))}return e}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=(function(){return i}).apply(t,[]))||(e.exports=r)}()},69135:(e,t,r)=>{"use strict";function n(e){return e.catch(()=>{}),e}r.d(t,{X:()=>n})},70324:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>L,__assign:()=>a,__asyncDelegator:()=>T,__asyncGenerator:()=>S,__asyncValues:()=>x,__await:()=>k,__awaiter:()=>p,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>D,__createBinding:()=>g,__decorate:()=>o,__disposeResources:()=>F,__esDecorate:()=>u,__exportStar:()=>_,__extends:()=>i,__generator:()=>m,__importDefault:()=>O,__importStar:()=>I,__makeTemplateObject:()=>A,__metadata:()=>f,__param:()=>l,__propKey:()=>d,__read:()=>v,__rest:()=>s,__rewriteRelativeImportExtension:()=>B,__runInitializers:()=>c,__setFunctionName:()=>h,__spread:()=>b,__spreadArray:()=>E,__spreadArrays:()=>w,__values:()=>y,default:()=>j});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function o(e,t,r,n){var i,a=arguments.length,s=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(s=(a<3?i(s):a>3?i(t,r,s):i(t,r))||s);return a>3&&s&&Object.defineProperty(t,r,s),s}function l(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,i,a){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var o,l=n.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?n.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),h=!1,f=r.length-1;f>=0;f--){var p={};for(var m in n)p[m]="access"===m?{}:n[m];for(var m in n.access)p.access[m]=n.access[m];p.addInitializer=function(e){if(h)throw TypeError("Cannot add initializers after decoration has completed");a.push(s(e||null))};var g=(0,r[f])("accessor"===l?{get:d.get,set:d.set}:d[u],p);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw TypeError("Object expected");(o=s(g.get))&&(d.get=o),(o=s(g.set))&&(d.set=o),(o=s(g.init))&&i.unshift(o)}else(o=s(g))&&("field"===l?i.unshift(o):d[u]=o)}c&&Object.defineProperty(c,n.name,d),h=!0}function c(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,r,n){return new(r||(r=Promise))(function(i,a){function s(e){try{l(n.next(e))}catch(e){a(e)}}function o(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}l((n=n.apply(e,t||[])).next())})}function m(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(o){return function(l){var u=[o,l];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var g=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function _(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return s}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)n[i]=a[s];return n}function E(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function S(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){a.push([e,t,r,n])>1||o(e,t)})},t&&(n[e]=t(n[e])))}function o(e,t){try{var r;(r=i[e](t)).value instanceof k?Promise.resolve(r.value.v).then(l,u):c(a[0][2],r)}catch(e){c(a[0][3],e)}}function l(e){o("next",e)}function u(e){o("throw",e)}function c(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function T(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:k(e[n](t)),done:!1}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var a,s,o;a=n,s=i,o=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){a({value:e,done:o})},s)})}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var N=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},C=function(e){return(C=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)};function I(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=C(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return N(t,e),t}function O(e){return e&&e.__esModule?e:{default:e}}function P(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,r){if(null!=t){var n,i;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(r){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if("function"!=typeof n)throw TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,n=0;return function i(){for(;r=e.stack.pop();)try{if(!r.async&&1===n)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(i,function(e){return t(e),i()})}else n|=1}catch(e){t(e)}if(1===n)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function B(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,r,n,i,a){return r?t?".jsx":".js":!n||i&&a?n+i+"."+a.toLowerCase()+"js":e}):e}let j={__extends:i,__assign:a,__rest:s,__decorate:o,__param:l,__esDecorate:u,__runInitializers:c,__propKey:d,__setFunctionName:h,__metadata:f,__awaiter:p,__generator:m,__createBinding:g,__exportStar:_,__values:y,__read:v,__spread:b,__spreadArrays:w,__spreadArray:E,__await:k,__asyncGenerator:S,__asyncDelegator:T,__asyncValues:x,__makeTemplateObject:A,__importStar:I,__importDefault:O,__classPrivateFieldGet:P,__classPrivateFieldSet:D,__classPrivateFieldIn:M,__addDisposableResource:L,__disposeResources:F,__rewriteRelativeImportExtension:B}},70412:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(75834),i=r(43192);let a=()=>(0,n.useContext)(i.A)},70486:(e,t,r)=>{"use strict";r.d(t,{I:()=>V});var n,i=r(41706),a=r(75834),s=r.t(a,2),o=r(90001),l=r(70324),u=function(e){function t(t,r){return e.call(this)||this}return(0,l.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(65245).yU),c={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=c.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,l.__spreadArray)([e,t],(0,l.__read)(r))):setInterval.apply(void 0,(0,l.__spreadArray)([e,t],(0,l.__read)(r)))},clearInterval:function(e){var t=c.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},d=r(40190),h=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,l.__extends)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),c.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&c.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,d.o)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(u),f=1,p={};function m(e){return e in p&&(delete p[e],!0)}var g={setImmediate:function(e){var t=f++;return p[t]=!0,n||(n=Promise.resolve()),n.then(function(){return m(t)&&e()}),t},clearImmediate:function(e){m(e)}},_=g.setImmediate,y=g.clearImmediate,v={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=v.delegate;return((null==r?void 0:r.setImmediate)||_).apply(void 0,(0,l.__spreadArray)([],(0,l.__read)(e)))},clearImmediate:function(e){var t=v.delegate;return((null==t?void 0:t.clearImmediate)||y)(e)},delegate:void 0},b=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return(0,l.__extends)(t,e),t.prototype.requestAsyncId=function(t,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=v.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i,a=t.actions;null!=r&&(null==(i=a[a.length-1])?void 0:i.id)!==r&&(v.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(h),w=r(80569),E=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=w.U.now,e}(),k=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,l.__extends)(t,e),t.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled;this._scheduled=void 0;var n=this.actions;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift());if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},t}(function(e){function t(t,r){void 0===r&&(r=E.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,l.__extends)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(E)))(b),S=r(92104),T=r(40687),x=r(66440);let A=Symbol.for("apollo.skipToken"),N=Symbol.for("apollo.hook.wrappers");var C=r(40058),I=r(99236),O=r(94998),P=r(32064),D=r(31932),M=r(67392);let L=!1,R=s.useSyncExternalStore,F="ReactNative"==(0,D.n)(()=>navigator.product),B=(0,D.n)(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,j=(P.S||F)&&!B,z=R||((e,t,r)=>{let n=t();O.g&&!L&&n!==t()&&(L=!0,M.V1.error(34));let[{inst:i},s]=a.useState({inst:{value:n,getSnapshot:t}});return j?a.useLayoutEffect(()=>{Object.assign(i,{value:n,getSnapshot:t}),U(i)&&s({inst:i})},[e,n,t]):Object.assign(i,{value:n,getSnapshot:t}),a.useEffect(()=>(U(i)&&s({inst:i}),e(function(){U(i)&&s({inst:i})})),[e]),n});function U({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}let H=Symbol();function V(e,...[t]){return(function(e,t,r){let n=[r.queryManager,e.startsWith("use")?a.useContext((0,C.l)()):void 0],i=t;for(let t of n){let r=t?.[N]?.[e];r&&(i=r(i))}return i})("useQuery",G,(0,I.m)("object"==typeof t?t.client:void 0))(e,t)}function G(e,t={}){var r,n,s,l,u,c,d,h;let f=(0,I.m)("object"==typeof t?t.client:void 0),{ssr:p}="object"==typeof t?t:{},m=function(e,t){let r=a.useRef(void 0);return r.current&&(0,i.L)(r.current.deps,t)||(r.current={value:e(),deps:t}),r.current.value}(()=>{if(n===A){let e=(0,T.l)(s,{query:r,fetchPolicy:"standby"});return e[q]=!0,e}let e=(0,T.l)(s,{...n,query:r});return n.skip&&(e.initialFetchPolicy=n.initialFetchPolicy||n.fetchPolicy,e.fetchPolicy="standby"),e},[r=e,n=t,s=f.defaultOptions.watchQuery]);function g(t){let r=f.watchQuery(m);return{client:f,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[_,y]=a.useState(g);(f!==_.client||e!==_.query)&&y(_=g(_));let{observable:v,resultData:b}=_;l=m,u=v,l.fetchPolicy||(l.fetchPolicy=u.options.initialFetchPolicy),function(e,t,r){if(t[H]&&!(0,i.L)(t[H],r)){var n,a;t[H][q]&&!r.initialFetchPolicy&&(r.initialFetchPolicy=r.fetchPolicy),(n=t[H],a=r,n.query===a.query&&(0,i.L)(n.variables,a.variables)&&(n.fetchPolicy===a.fetchPolicy||"standby"!==a.fetchPolicy&&"standby"!==n.fetchPolicy))?t.applyOptions(r):t.reobserve(r);let s=t.getCurrentResult();(0,i.L)(s.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=s,e.variables=t.variables}t[H]=r}(b,v,m);let w=(c=v,d=b,h=p,z(a.useCallback(e=>{let t=c.pipe((0,o.Q)(k)).subscribe(t=>{let r=d.current;(0,i.L)(r,t)&&(0,i.L)(d.variables,c.variables)||(d.variables=c.variables,r.data&&!(0,i.L)(r.data,t.data)&&(d.previousData=r.data),d.current=t,e())});return()=>{setTimeout(()=>t.unsubscribe())}},[c,d]),()=>d.current,()=>!1===h?V.ssrDisabledResult:d.current)),E=a.useMemo(()=>({refetch:v.refetch.bind(v),fetchMore:v.fetchMore.bind(v),updateQuery:v.updateQuery.bind(v),startPolling:v.startPolling.bind(v),stopPolling:v.stopPolling.bind(v),subscribeToMore:v.subscribeToMore.bind(v)}),[v]),S=b.previousData;return a.useMemo(()=>{let{partial:e,...t}=w;return{...t,client:f,observable:v,variables:v.variables,previousData:S,...E}},[w,f,v,S,E])}let q=Symbol();V.ssrDisabledResult=(0,x.G)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:S.p.loading,partial:!0})},71098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let n=r(75834),i=r(29113),a="function"==typeof IntersectionObserver,s=new Map,o=[];function l(e){let{rootRef:t,rootMargin:r,disabled:l}=e,u=l||!a,[c,d]=(0,n.useState)(!1),h=(0,n.useRef)(null),f=(0,n.useCallback)(e=>{h.current=e},[]);return(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=h.current;if(e&&e.tagName)return function(e,t,r){let{id:n,observer:i,elements:a}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=o.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=s.get(n)))return t;let i=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:i},o.push(r),s.set(r,t),t}(r);return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(n);let e=o.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&o.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r})}else if(!c){let e=(0,i.requestIdleCallback)(()=>d(!0));return()=>(0,i.cancelIdleCallback)(e)}},[u,r,t,c,h.current]),[f,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolvePlural=function(e,t,r){var a=r.getInternalSlots,s=r.PluralRuleSelect,o=a(e);if((0,n.invariant)("Object"===(0,n.Type)(o),"pl has to be an object"),(0,n.invariant)("initializedPluralRules"in o,"pluralrules must be initialized"),!t.isFinite())return"other";var l=o.locale,u=o.type,c=(0,n.FormatNumericToString)(o,t).formattedString;return s(l,u,t,(0,i.GetOperands)(c))};var n=r(4648),i=r(3722)},73367:(e,t,r)=>{"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{$:()=>n,A:()=>i});let i=n},74116:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(9985),i=r(15968),a=r(70486),s=r(95595);function o(){let e=(0,n._)(["\n query Languages(\n $queryString: String\n $offset: Int\n $limit: Int\n $includeInactive: Boolean\n $sort: [SortOptionInput!]\n ) {\n languages(\n queryString: $queryString\n offset: $offset\n limit: $limit\n includeInactive: $includeInactive\n sort: $sort\n ) {\n ...LanguageFragment\n }\n languagesCount(includeInactive: $includeInactive, queryString: $queryString)\n }\n ","\n"]);return o=function(){return e},e}let l=(0,i.J1)(o(),s.A),u=function(){let{queryString:e="",limit:t=20,offset:r=0,includeInactive:n=!0,sort:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{data:s,loading:o,error:u,fetchMore:c}=(0,a.I)(l,{variables:{queryString:e,limit:t,offset:r,includeInactive:n,sort:i}}),d=(null==s?void 0:s.languages)||[],h=null==s?void 0:s.languagesCount,f=(null==d?void 0:d.length)<h;return{languages:d,languagesCount:h,hasMore:f,loading:o,error:u,loadMore:()=>{c({variables:{offset:null==d?void 0:d.length}})}}}},74615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MakePartsList=function(e,t,r){for(var i=(0,n.PartitionPattern)(e),a=[],s=0;s<i.length;s++){var o=i[s];if("literal"===o.type)a.push({type:"literal",value:o.value});else{(0,n.invariant)("0"===o.type,"Malformed pattern ".concat(e));for(var l=0;l<r.length;l++){var u=r[l];a.push({type:u.type,value:u.value,unit:t})}}}return a};var n=r(4648)},74781:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(75834),i=r(94553);let a=()=>{let e=(0,n.useContext)(i.A);if(!e)throw Error("useLocale must be used within a LocaleProvider");return e}},77266:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(36207);function i(e){let t=e.parentElement,r=null;for(;t&&!n.Er(t);)n.Jb(t)&&(r=t),t=t.parentElement;let i=(null==t?void 0:t.getAttribute("disabled"))==="";return!(i&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(n.Jb(t))return!1;t=t.previousElementSibling}return!0}(r))&&i}},77623:(e,t,r)=>{"use strict";r.d(t,{A:()=>o,D:()=>s});var n=r(26514),i=r(75834),a=r(82102);let s=(0,i.createContext)(void 0),o=e=>{let{children:t}=e,[r,o]=(0,a.A)("theme","light");(0,i.useEffect)(()=>{"dark"!==localStorage.theme&&("theme"in localStorage||!window.matchMedia("(prefers-color-scheme: dark)").matches)?document.getElementsByTagName("html")[0].classList.remove("dark"):document.getElementsByTagName("html")[0].classList.add("dark")},[]),(0,i.useEffect)(()=>{"dark"===r?(document.getElementsByTagName("html")[0].classList.add("dark"),localStorage.theme="dark"):(document.getElementsByTagName("html")[0].classList.remove("dark"),localStorage.theme="light")},[r]);let l=(0,i.useMemo)(()=>[r,o],[r]);return(0,n.jsx)(s.Provider,{value:l,children:t})}},78615:(e,t,r)=>{"use strict";function n(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}r.d(t,{_:()=>n})},80569:(e,t,r)=>{"use strict";r.d(t,{U:()=>n});var n={now:function(){return(n.delegate||Date).now()},delegate:void 0}},80868:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=r.get(e);return t||(t=Object.create(null),r.set(e,t)),t};var r=new WeakMap},81340:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=n.forwardRef(function({title:e,titleId:t,...r},i){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15M12 9l3 3m0 0-3 3m3-3H2.25"}))})},82102:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(75834);let i=(e,t)=>{let[r,i]=(0,n.useState)(()=>{try{if(window.localStorage){let r=window.localStorage.getItem(e);return r?JSON.parse(r):t}return t}catch(e){return t}});return[r,t=>{try{if(window.localStorage){let n=t instanceof Function?t(r):t;i(n),window.localStorage.setItem(e,JSON.stringify(n))}else console.error("localStorage is not available")}catch(e){console.error(e)}}]}},82740:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportedLocales=void 0,t.supportedLocales=["af","ak","am","an","ar","ars","as","asa","ast","az","bal","be","bem","bez","bg","bho","bm","bn","bo","br","brx","bs","ca","ce","ceb","cgg","chr","ckb","cs","cy","da","de","doi","dsb","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fil","fo","fr","fur","fy","ga","gd","gl","gsw","gu","guw","gv","ha","haw","he","hi","hnj","hr","hsb","hu","hy","ia","id","ig","ii","io","is","it","iu","ja","jbo","jgo","jmc","jv","jw","ka","kab","kaj","kcg","kde","kea","kk","kkj","kl","km","kn","ko","ks","ksb","ksh","ku","kw","ky","lag","lb","lg","lij","lkt","ln","lo","lt","lv","mas","mg","mgo","mk","ml","mn","mo","mr","ms","mt","my","nah","naq","nb","nd","ne","nl","nn","nnh","no","nqo","nr","nso","ny","nyn","om","or","os","osa","pa","pap","pcm","pl","prg","ps","pt","pt-PT","rm","ro","rof","ru","rwk","sah","saq","sat","sc","scn","sd","sdh","se","seh","ses","sg","sh","shi","si","sk","sl","sma","smi","smj","smn","sms","sn","so","sq","sr","ss","ssy","st","su","sv","sw","syr","ta","te","teo","th","ti","tig","tk","tl","tn","to","tpi","tr","ts","tzm","ug","uk","und","ur","uz","ve","vi","vo","vun","wa","wae","wo","xh","xog","yi","yo","yue","zh","zu"]},83191:(e,t,r)=>{r(16518)},85238:()=>{},85405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InitializeRelativeTimeFormat=function(e,t,r,s){var o=s.getInternalSlots,l=s.availableLocales,u=s.relevantExtensionKeys,c=s.localeData,d=s.getDefaultLocale,h=o(e);h.initializedRelativeTimeFormat=!0;var f=(0,n.CanonicalizeLocaleList)(t),p=Object.create(null),m=(0,n.CoerceOptionsToObject)(r);p.localeMatcher=(0,n.GetOption)(m,"localeMatcher","string",["best fit","lookup"],"best fit");var g=(0,n.GetOption)(m,"numberingSystem","string",void 0,void 0);if(void 0!==g&&!a.test(g))throw RangeError("Invalid numbering system ".concat(g));p.nu=g;var _=(0,i.ResolveLocale)(l,f,p,u,c,d),y=_.locale,v=_.nu;h.locale=y,h.style=(0,n.GetOption)(m,"style","string",["long","narrow","short"],"long"),h.numeric=(0,n.GetOption)(m,"numeric","string",["always","auto"],"always");var b=c[_.dataLocale];return(0,n.invariant)(!!b,"Missing locale data for ".concat(_.dataLocale)),h.fields=b,h.numberFormat=(0,n.createMemoizedNumberFormat)(t),h.pluralRules=(0,n.createMemoizedPluralRules)(t),h.numberingSystem=v,e};var n=r(4648),i=r(92090),a=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i},86362:(e,t,r)=>{"use strict";function n(...e){let t={};return e.forEach(e=>{e&&Object.keys(e).forEach(r=>{let n=e[r];void 0!==n&&(t[r]=n)})}),t}r.d(t,{o:()=>n})},87790:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,_=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case a:case o:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case i:return t}}}function E(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=h,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=f,t.isAsyncMode=function(e){return E(e)||w(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===s||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===_)},t.typeOf=w},88172:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let n=r(78809),i=r(45530),a=r(26514),s=i._(r(75834)),o=n._(r(60851)),l=n._(r(67749)),u=r(88960),c=r(2937),d=r(17727);r(63401);let h=r(34434),f=n._(r(89572)),p=r(99555),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function g(e,t,r,n,i,a,s){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function _(e){return s.use?{fetchPriority:e}:{fetchpriority:e}}let y=(0,s.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:o,width:l,decoding:u,className:c,style:d,fetchPriority:h,placeholder:f,loading:m,unoptimized:y,fill:v,onLoadRef:b,onLoadingCompleteRef:w,setBlurComplete:E,setShowAltText:k,sizesInput:S,onLoad:T,onError:x,...A}=e,N=(0,s.useCallback)(e=>{e&&(x&&(e.src=e.src),e.complete&&g(e,f,b,w,E,y,S))},[r,f,b,w,E,x,y,S]),C=(0,p.useMergedRef)(t,N);return(0,a.jsx)("img",{...A,..._(h),loading:m,width:l,height:o,decoding:u,"data-nimg":v?"fill":"1",className:c,style:d,sizes:i,srcSet:n,src:r,ref:C,onLoad:e=>{g(e.currentTarget,f,b,w,E,y,S)},onError:e=>{k(!0),"empty"!==f&&E(!0),x&&x(e)}})});function v(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,..._(r.fetchPriority)};return t&&o.default.preload?(o.default.preload(r.src,n),null):(0,a.jsx)(l.default,{children:(0,a.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let b=(0,s.forwardRef)((e,t)=>{let r=(0,s.useContext)(h.RouterContext),n=(0,s.useContext)(d.ImageConfigContext),i=(0,s.useMemo)(()=>{var e;let t=m||n||c.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),a=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:a}},[n]),{onLoad:o,onLoadingComplete:l}=e,p=(0,s.useRef)(o);(0,s.useEffect)(()=>{p.current=o},[o]);let g=(0,s.useRef)(l);(0,s.useEffect)(()=>{g.current=l},[l]);let[_,b]=(0,s.useState)(!1),[w,E]=(0,s.useState)(!1),{props:k,meta:S}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:_,showAltText:w});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y,{...k,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:E,sizesInput:e.sizes,ref:t}),S.priority?(0,a.jsx)(v,{isAppRouter:!r,imgAttributes:k}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},88213:(e,t,r)=>{"use strict";r.d(t,{Ho:()=>c,OC:()=>s,hr:()=>l,pg:()=>u,sb:()=>d,uo:()=>o});var n,i=r(70324);!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(n||(n={}));var a=function(e){function t(r,n,i){var a=this,s=i?i instanceof Error?i:Error(String(i)):void 0;return(a=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(s?"\n".concat(s.message,"\n").concat(s.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return(0,i.__extends)(t,e),t}(Error),s=function(e){function t(t,r){return e.call(this,n.UNSUPPORTED_FORMATTER,t,r)||this}return(0,i.__extends)(t,e),t}(a),o=function(e){function t(t,r){return e.call(this,n.INVALID_CONFIG,t,r)||this}return(0,i.__extends)(t,e),t}(a),l=function(e){function t(t,r){return e.call(this,n.MISSING_DATA,t,r)||this}return(0,i.__extends)(t,e),t}(a),u=function(e){function t(t,r,i){var a=e.call(this,n.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),i)||this;return a.locale=r,a}return(0,i.__extends)(t,e),t}(a),c=function(e){function t(t,r,n,i){var a=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return a.descriptor=n,a.locale=r,a}return(0,i.__extends)(t,e),t}(u),d=function(e){function t(t,r){var i=e.call(this,n.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map(function(e){var t;return null!=(t=e.value)?t:JSON.stringify(e)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=t,i}return(0,i.__extends)(t,e),t}(a)},88514:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{U:()=>n})},88960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(63401);let n=r(34013),i=r(2937),a=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r,l;let u,c,d,{src:h,sizes:f,unoptimized:p=!1,priority:m=!1,loading:g,className:_,quality:y,width:v,height:b,fill:w=!1,style:E,overrideSrc:k,onLoad:S,onLoadingComplete:T,placeholder:x="empty",blurDataURL:A,fetchPriority:N,decoding:C="async",layout:I,objectFit:O,objectPosition:P,lazyBoundary:D,lazyRoot:M,...L}=e,{imgConf:R,showAltText:F,blurComplete:B,defaultLoader:j}=t,z=R||i.imageConfigDefault;if("allSizes"in z)u=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t),n=null==(r=z.qualities)?void 0:r.sort((e,t)=>e-t);u={...z,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===j)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let U=L.loader||j;delete L.loader,delete L.srcSet;let H="__next_img_default"in U;if(H){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=U;U=t=>{let{config:r,...n}=t;return e(n)}}if(I){"fill"===I&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(E={...E,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!f&&(f=t)}let V="",G=o(v),q=o(b);if((l=h)&&"object"==typeof l&&(s(l)||void 0!==l.src)){let e=s(h)?h.default:h;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(c=e.blurWidth,d=e.blurHeight,A=A||e.blurDataURL,V=e.src,!w)if(G||q){if(G&&!q){let t=G/e.width;q=Math.round(e.height*t)}else if(!G&&q){let t=q/e.height;G=Math.round(e.width*t)}}else G=e.width,q=e.height}let Z=!m&&("lazy"===g||void 0===g);(!(h="string"==typeof h?h:V)||h.startsWith("data:")||h.startsWith("blob:"))&&(p=!0,Z=!1),u.unoptimized&&(p=!0),H&&!u.dangerouslyAllowSVG&&h.split("?",1)[0].endsWith(".svg")&&(p=!0);let $=o(y),W=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:P}:{},F?{}:{color:"transparent"},E),K=B||"empty"===x?null:"blur"===x?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:G,heightInt:q,blurWidth:c,blurHeight:d,blurDataURL:A||"",objectFit:W.objectFit})+'")':'url("'+x+'")',Y=a.includes(W.objectFit)?"fill"===W.objectFit?"100% 100%":"cover":W.objectFit,Q=K?{backgroundSize:Y,backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},J=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:a,sizes:s,loader:o}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((e,n)=>o({config:t,src:r,quality:a,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:o({config:t,src:r,quality:a,width:l[c]})}}({config:u,src:h,unoptimized:p,width:G,quality:$,sizes:f,loader:U});return{props:{...L,loading:Z?"lazy":g,fetchPriority:N,width:G,height:q,decoding:C,className:_,style:{...W,...Q},sizes:J.sizes,srcSet:J.srcSet,src:k||J.src},meta:{unoptimized:p,priority:m,placeholder:x,fill:w}}}},89572:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:n,width:i,quality:a}=e,s=a||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+s+(n.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},90001:(e,t,r)=>{"use strict";r.d(t,{Q:()=>s});var n=r(41291),i=r(5802),a=r(99246);function s(e,t){return void 0===t&&(t=0),(0,i.N)(function(r,i){r.subscribe((0,a._)(i,function(r){return(0,n.N)(i,e,function(){return i.next(r)},t)},function(){return(0,n.N)(i,e,function(){return i.complete()},t)},function(r){return(0,n.N)(i,e,function(){return i.error(r)},t)}))})}},92090:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LookupSupportedLocales:()=>m,ResolveLocale:()=>p,match:()=>g});var n,i=r(70324),a={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},s={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},o=/-u(?:-[0-9a-z]{2,8})+/gi;function l(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}function u(e,t,r){var n=t.split("-"),a=n[0],o=n[1],l=n[2],u=!0;if(l&&"$"===l[0]){var c="!"!==l[1],d=(c?r[l.slice(1)]:r[l.slice(2)]).map(function(e){return s[e]||[e]}).reduce(function(e,t){return(0,i.__spreadArray)((0,i.__spreadArray)([],e,!0),t,!0)},[]);u&&(u=d.indexOf(e.region||"")>-1==c)}else u&&(u=!e.region||"*"===l||l===e.region);return u&&(u=!e.script||"*"===o||o===e.script),u&&(u=!e.language||"*"===a||a===e.language),u}function c(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function d(e,t,r){for(var n=0,i=r.matches;n<i.length;n++){var a=i[n],s=u(e,a.desired,r.matchVariables)&&u(t,a.supported,r.matchVariables);if(a.oneway||s||(s=u(e,a.supported,r.matchVariables)&&u(t,a.desired,r.matchVariables)),s){var o=10*a.distance;if(r.paradigmLocales.indexOf(c(e))>-1!=r.paradigmLocales.indexOf(c(t))>-1)return o-1;return o}}throw Error("No matching distance found")}function h(e){return Intl.getCanonicalLocales(e)[0]}function f(e,t){for(var r=t;;){if(e.indexOf(r)>-1)return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&"-"===r[n-2]&&(n-=2),r=r.slice(0,n)}}function p(e,t,r,s,u,c){"lookup"===r.localeMatcher?m=function(e,t,r){for(var n={locale:""},i=0;i<t.length;i++){var a=t[i],s=a.replace(o,""),l=f(e,s);if(l)return n.locale=l,a!==s&&(n.extension=a.slice(s.length,a.length)),n}return n.locale=r(),n}(Array.from(e),t,c):(_=Array.from(e),b=[],w=t.reduce(function(e,t){var r=t.replace(o,"");return b.push(r),e[r]=t,e},{}),(void 0===E&&(E=838),k=1/0,S={matchedDesiredLocale:"",distances:{}},b.forEach(function(e,t){S.distances[e]||(S.distances[e]={}),_.forEach(function(r){var s,o,l,u,c,h,f=(s=new Intl.Locale(e).maximize(),o=new Intl.Locale(r).maximize(),l={language:s.language,script:s.script||"",region:s.region||""},u={language:o.language,script:o.script||"",region:o.region||""},c=0,h=function(){var e,t;if(!n){var r=null==(t=null==(e=a.supplemental.languageMatching["written-new"][0])?void 0:e.paradigmLocales)?void 0:t._locales.split(" "),s=a.supplemental.languageMatching["written-new"].slice(1,5);n={matches:a.supplemental.languageMatching["written-new"].slice(5).map(function(e){var t=Object.keys(e)[0],r=e[t];return{supported:t,desired:r._desired,distance:+r._distance,oneway:"true"===r.oneway}},{}),matchVariables:s.reduce(function(e,t){var r=Object.keys(t)[0],n=t[r];return e[r.slice(1)]=n._value.split("+"),e},{}),paradigmLocales:(0,i.__spreadArray)((0,i.__spreadArray)([],r,!0),r.map(function(e){return new Intl.Locale(e.replace(/_/g,"-")).maximize().toString()}),!0)}}return n}(),l.language!==u.language&&(c+=d({language:s.language,script:"",region:""},{language:o.language,script:"",region:""},h)),l.script!==u.script&&(c+=d({language:s.language,script:l.script,region:""},{language:o.language,script:u.script,region:""},h)),l.region!==u.region&&(c+=d(l,u,h)),c+0+40*t);S.distances[e][r]=f,f<k&&(k=f,S.matchedDesiredLocale=e,S.matchedSupportedLocale=r)})}),k>=E&&(S.matchedDesiredLocale=void 0,S.matchedSupportedLocale=void 0),T=S).matchedSupportedLocale&&T.matchedDesiredLocale&&(y=T.matchedSupportedLocale,v=w[T.matchedDesiredLocale].slice(T.matchedDesiredLocale.length)||void 0),m=y?{locale:y,extension:v}:{locale:c()}),null==m&&(m={locale:c(),extension:""});var p,m,g,_,y,v,b,w,E,k,S,T,x=m.locale,A=u[x],N={locale:"en",dataLocale:x};g=m.extension?function(e){l(e===e.toLowerCase(),"Expected extension to be lowercase"),l("-u-"===e.slice(0,3),"Expected extension to be a Unicode locale extension");for(var t,r=[],n=[],i=e.length,a=3;a<i;){var s=e.indexOf("-",a),o=void 0;o=-1===s?i-a:s-a;var u=e.slice(a,a+o);l(o>=2,"Expected a subtag to have at least 2 characters"),void 0===t&&2!=o?-1===r.indexOf(u)&&r.push(u):2===o?(t={key:u,value:""},void 0===n.find(function(e){return e.key===(null==t?void 0:t.key)})&&n.push(t)):(null==t?void 0:t.value)===""?t.value=u:(l(void 0!==t,"Expected keyword to be defined"),t.value+="-"+u),a+=o+1}return{attributes:r,keywords:n}}(m.extension).keywords:[];for(var C=[],I=function(e){var t,n,i=null!=(p=null==A?void 0:A[e])?p:[];l(Array.isArray(i),"keyLocaleData for ".concat(e," must be an array"));var a=i[0];l(void 0===a||"string"==typeof a,"value must be a string or undefined");var s=void 0,o=g.find(function(t){return t.key===e});if(o){var u=o.value;""!==u?i.indexOf(u)>-1&&(s={key:e,value:a=u}):i.indexOf("true")>-1&&(s={key:e,value:a="true"})}var c=r[e];l(null==c||"string"==typeof c,"optionsValue must be a string or undefined"),"string"==typeof c&&(t=e.toLowerCase(),n=c.toLowerCase(),l(void 0!==t,"ukey must be defined"),""===(c=n)&&(c="true")),c!==a&&i.indexOf(c)>-1&&(a=c,s=void 0),s&&C.push(s),N[e]=a},O=0;O<s.length;O++)I(s[O]);return C.length>0&&(x=function(e,t,r){l(-1===e.indexOf("-u-"),"Expected locale to not have a Unicode locale extension");for(var n,i="-u",a=0;a<t.length;a++){var s=t[a];i+="-".concat(s)}for(var o=0;o<r.length;o++){var u=r[o],c=u.key,d=u.value;i+="-".concat(c),""!==d&&(i+="-".concat(d))}if("-u"===i)return h(e);var f=e.indexOf("-x-");return h(-1===f?e+i:e.slice(0,f)+i+e.slice(f))}(x,[],C)),N.locale=x,N}function m(e,t){for(var r=[],n=0;n<t.length;n++){var i=f(e,t[n].replace(o,""));i&&r.push(i)}return r}function g(e,t,r,n){return p(t,Intl.getCanonicalLocales(e),{localeMatcher:(null==n?void 0:n.algorithm)||"best fit"},[],{},function(){return r}).locale}},92104:(e,t,r)=>{"use strict";var n;r.d(t,{p:()=>n}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",e[e.streaming=9]="streaming"}(n||(n={}))},93571:(e,t,r)=>{"use strict";function n(e,t){var r=t&&t.cache?t.cache:l,n=t&&t.serializer?t.serializer:s;return(t&&t.strategy?t.strategy:function(e,t){var r,n,s=1===e.length?i:a;return r=t.cache.create(),n=t.serializer,s.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function i(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),a=t.get(i);return void 0===a&&(a=e.call(this,n),t.set(i,a)),a}function a(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),a=t.get(i);return void 0===a&&(a=e.apply(this,n),t.set(i,a)),a}r.d(t,{B:()=>n,W:()=>u});var s=function(){return JSON.stringify(arguments)},o=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),l={create:function(){return new o}},u={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,a.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)}}},94524:e=>{e.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n=0;return function(...i){clearTimeout(r);let a=Date.now(),s=t-(a-n);s<=0?(n=a,e.apply(this,i)):r=setTimeout(()=>{n=Date.now(),e.apply(this,i)},s)}}},94553:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,s:()=>d});var n=r(26514),i=r(75834),a=r(644),s=r(74116),o=r(51869),l=r(17482),u=r(82102);let c=(0,i.createContext)(void 0),d=e=>{let{children:t,onlyFull:r=!1}=e,{languages:d}=(0,s.A)(),{locale:h}=(0,a.A)(),[f,p]=(0,u.A)("selectedLocale",null),{shopInfo:m,loading:g}=(0,l.A)(),{countries:_}=(0,o.A)(),[y,v]=(0,i.useState)(h),b=e=>{p(e),v(e)};(0,i.useEffect)(()=>{if(f)return void v(f);if(!g){var e,t,r;b("".concat(null==m||null==(e=m.language)?void 0:e.isoCode,"-").concat(null==m||null==(r=m.country)||null==(t=r.isoCode)?void 0:t.toUpperCase()))}},[m,g,h]);let w=((e,t)=>{let r=[];return e.forEach(e=>{let{_id:n,isoCode:i}=e;r.push({_id:n,isoCode:i}),t.forEach(e=>{let{isoCode:t,_id:a}=e,s=[i,t.toUpperCase()].join("-");(e=>{try{return new Intl.DateTimeFormat(e).resolvedOptions().locale.toLowerCase()===e.toLowerCase()}catch(e){return!1}})(s)&&r.push({_id:"".concat(a,"-").concat(n),isoCode:s})})}),r})(d,_).filter(e=>!r||e.isoCode.includes("-")),E=!!(null==m?void 0:m.language)&&!!(null==m?void 0:m.country);return(0,n.jsx)(c.Provider,{value:{selectedLocale:y,setSelectedLocale:b,languageDialectList:w,isSystemReady:E,shopInfo:m},children:t})},h=c},94982:(e,t,r)=>{"use strict";r.d(t,{Y:()=>a,l:()=>s});var n=r(57160),i=null;function a(e){if(n.$.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,a=r.errorThrown,s=r.error;if(i=null,a)throw s}}else e()}function s(e){n.$.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},94998:(e,t,r)=>{"use strict";r.d(t,{g:()=>n});let n=!1},95113:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return E},useLinkStatus:function(){return w}});let n=r(45530),i=r(26514),a=n._(r(75834)),s=r(21863),o=r(43463),l=r(33210),u=r(43056),c=r(62765),d=r(34434),h=r(71098),f=r(25351),p=r(14070),m=r(99555);r(22777);let g=new Set;function _(e,t,r,n){if((0,o.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let i=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(g.has(i))return;g.add(i)}e.prefetch(t,r,n).catch(e=>{})}}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let v=a.default.forwardRef(function(e,t){let r,n,{href:l,as:g,children:v,prefetch:b=null,passHref:w,replace:E,shallow:k,scroll:S,locale:T,onClick:x,onNavigate:A,onMouseEnter:N,onTouchStart:C,legacyBehavior:I=!1,...O}=e;r=v,I&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let P=a.default.useContext(d.RouterContext),D=!1!==b,{href:M,as:L}=a.default.useMemo(()=>{if(!P){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,s.resolveHref)(P,l,!0);return{href:e,as:g?(0,s.resolveHref)(P,g):t||e}},[P,l,g]),R=a.default.useRef(M),F=a.default.useRef(L);I&&(n=a.default.Children.only(r));let B=I?n&&"object"==typeof n&&n.ref:t,[j,z,U]=(0,h.useIntersection)({rootMargin:"200px"}),H=a.default.useCallback(e=>{(F.current!==L||R.current!==M)&&(U(),F.current=L,R.current=M),j(e)},[L,M,U,j]),V=(0,m.useMergedRef)(H,B);a.default.useEffect(()=>{P&&z&&D&&_(P,M,L,{locale:T})},[L,M,z,T,D,null==P?void 0:P.locale,P]);let G={ref:V,onClick(e){I||"function"!=typeof x||x(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),P&&(e.defaultPrevented||function(e,t,r,n,i,a,s,l,u){let{nodeName:c}=e.currentTarget;if(!("A"===c.toUpperCase()&&function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||e.currentTarget.hasAttribute("download"))){if(!(0,o.isLocalURL)(r)){i&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(u){let e=!1;if(u({preventDefault:()=>{e=!0}}),e)return}let e=null==s||s;"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:a,locale:l,scroll:e}):t[i?"replace":"push"](n||r,{scroll:e})})()}}(e,P,M,L,E,k,S,T,A))},onMouseEnter(e){I||"function"!=typeof N||N(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),P&&_(P,M,L,{locale:T,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){I||"function"!=typeof C||C(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),P&&_(P,M,L,{locale:T,priority:!0,bypassPrefetchedCheck:!0})}};if((0,u.isAbsoluteUrl)(L))G.href=L;else if(!I||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==T?T:null==P?void 0:P.locale;G.href=(null==P?void 0:P.isLocaleDomain)&&(0,f.getDomainLocale)(L,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales)||(0,p.addBasePath)((0,c.addLocale)(L,e,null==P?void 0:P.defaultLocale))}return I?a.default.cloneElement(n,G):(0,i.jsx)("a",{...O,...G,children:r})}),b=(0,a.createContext)({pending:!1}),w=()=>(0,a.useContext)(b),E=v;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95277:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(9985),i=r(15968),a=r(12867);function s(){let e=(0,n._)(["\n fragment UserFragment on User {\n _id\n lastBillingAddress {\n firstName\n lastName\n company\n addressLine\n addressLine2\n postalCode\n countryCode\n regionCode\n city\n }\n lastContact {\n emailAddress\n telNumber\n }\n lastLogin {\n countryCode\n locale\n remoteAddress\n remotePort\n timestamp\n userAgent\n }\n avatar {\n _id\n name\n size\n type\n url\n }\n allowedActions\n paymentCredentials {\n _id\n isValid\n isPreferred\n paymentProvider {\n _id\n type\n interface {\n _id\n label\n version\n }\n }\n }\n emails {\n verified\n address\n }\n web3Addresses {\n address\n nonce\n verified\n }\n webAuthnCredentials {\n _id\n created\n aaguid\n counter\n mdsMetadata {\n ...MD5MetaDataFragment\n }\n }\n profile {\n displayName\n phoneMobile\n gender\n address {\n firstName\n lastName\n company\n addressLine\n addressLine2\n postalCode\n countryCode\n regionCode\n city\n }\n birthday\n }\n username\n primaryEmail {\n verified\n address\n }\n isGuest\n isInitialPassword\n name\n roles\n tags\n deleted\n cart {\n _id\n items {\n _id\n }\n }\n orders {\n _id\n items {\n _id\n }\n }\n }\n ","\n"]);return s=function(){return e},e}let o=(0,i.J1)(s(),a.A)},95595:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(9985);function i(){let e=(0,n._)(["\n fragment LanguageFragment on Language {\n _id\n isoCode\n isActive\n isBase\n name\n }\n"]);return i=function(){return e},e}let a=(0,r(15968).J1)(i())},95851:(e,t,r)=>{"use strict";r.d(t,{Ng:()=>a,TW:()=>n,mD:()=>i});let n=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},i=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window;function a(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}},96456:(e,t,r)=>{e.exports=r(95113)},97813:(e,t,r)=>{"use strict";var n;r.d(t,{b:()=>n}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(n||(n={}))},98966:(e,t,r)=>{"use strict";function n(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}r.d(t,{x:()=>n})},99236:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(75834),i=r(67392),a=r(40058);function s(e){let t=n.useContext((0,a.l)()),r=e||t.client;return(0,i.V1)(!!r,28),r}},99246:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(70324);function i(e,t,r,n,i){return new a(e,t,r,n,i)}var a=function(e){function t(t,r,n,i,a,s){var o=e.call(this,t)||this;return o.onFinalize=a,o.shouldUnsubscribe=s,o._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return(0,n.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(r(62065).vU)},99365:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var n=r(49445);function i(e,t=0){let r=(0,n.v)("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")}},99555:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=r(75834);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99578:(e,t,r)=>{"use strict";e.exports=r(87790)},99633:(e,t,r)=>{"use strict";r.d(t,{Im:()=>c,tv:()=>h,Tu:()=>v,eW:()=>u,oF:()=>d,N1:()=>y,N6:()=>m,jA:()=>g,Jp:()=>p,xm:()=>_,Qh:()=>f,qg:()=>X});var n,i,a,s,o,l=r(70324);function u(e){return e.type===i.literal}function c(e){return e.type===i.argument}function d(e){return e.type===i.number}function h(e){return e.type===i.date}function f(e){return e.type===i.time}function p(e){return e.type===i.select}function m(e){return e.type===i.plural}function g(e){return e.type===i.pound}function _(e){return e.type===i.tag}function y(e){return!!(e&&"object"==typeof e&&e.type===a.number)}function v(e){return!!(e&&"object"==typeof e&&e.type===a.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(n||(n={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(i||(i={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(a||(a={}));var b=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,E=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,k=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,T=/(\*)(0+)|(#+)(0+)|(0+)/g,x=/^(0+)$/;function A(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""}),t}function N(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function C(e){var t=N(e);return t||{}}var I={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},O=new RegExp("^".concat(b.source,"*")),P=new RegExp("".concat(b.source,"*$"));function D(e,t){return{start:e,end:t}}var M=!!String.prototype.startsWith&&"_a".startsWith("a",1),L=!!String.fromCodePoint,R=!!Object.fromEntries,F=!!String.prototype.codePointAt,B=!!String.prototype.trimStart,j=!!String.prototype.trimEnd,z=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&0x1fffffffffffff>=Math.abs(e)},U=!0;try{U=(null==(s=W("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:s[0])==="a"}catch(e){U=!1}var H=M?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},V=L?String.fromCodePoint:function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,a=0;i>a;){if((e=t[a++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},G=R?Object.fromEntries:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r],i=n[0],a=n[1];t[i]=a}return t},q=F?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0)&&!(t>=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},Z=B?function(e){return e.trimStart()}:function(e){return e.replace(O,"")},$=j?function(e){return e.trimEnd()}:function(e){return e.replace(P,"")};function W(e,t){return new RegExp(e,t)}if(U){var K=W("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");o=function(e,t){var r;return K.lastIndex=t,null!=(r=K.exec(e)[1])?r:""}}else o=function(e,t){for(var r=[];;){var n,i=q(e,t);if(void 0===i||J(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return V.apply(void 0,r)};var Y=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var a=[];!this.isEOF();){var s=this.char();if(123===s){var o=this.parseArgument(e,r);if(o.err)return o;a.push(o.val)}else if(125===s&&e>0)break;else if(35===s&&("plural"===t||"selectordinal"===t)){var l=this.clonePosition();this.bump(),a.push({type:i.pound,location:D(l,this.clonePosition())})}else if(60!==s||this.ignoreTag||47!==this.peek())if(60===s&&!this.ignoreTag&&Q(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;a.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;a.push(o.val)}else if(!r)return this.error(n.UNMATCHED_CLOSING_TAG,D(this.clonePosition(),this.clonePosition()));else break}return{val:a,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(a,"/>"),location:D(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(n.INVALID_TAG,D(r,this.clonePosition()));var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var o=s.val,l=this.clonePosition();if(!this.bumpIf("</"))return this.error(n.UNCLOSED_TAG,D(r,this.clonePosition()));if(this.isEOF()||!Q(this.char()))return this.error(n.INVALID_TAG,D(l,this.clonePosition()));var u=this.clonePosition();return a!==this.parseTagName()?this.error(n.UNMATCHED_CLOSING_TAG,D(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:i.tag,value:a,children:o,location:D(r,this.clonePosition())},err:null}:this.error(n.INVALID_TAG,D(l,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var a=this.tryParseQuote(t);if(a){n+=a;continue}var s=this.tryParseUnquoted(e,t);if(s){n+=s;continue}var o=this.tryParseLeftAngleBracket();if(o){n+=o;continue}break}var l=D(r,this.clonePosition());return{val:{type:i.literal,value:n,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Q(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return V.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),V(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(n.EMPTY_ARGUMENT,D(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(n.MALFORMED_ARGUMENT,D(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:a,location:D(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(r,this.clonePosition()));return this.parseArgumentOptions(e,t,a,r);default:return this.error(n.MALFORMED_ARGUMENT,D(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=o(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:D(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,s){var o,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(c){case"":return this.error(n.EXPECT_ARGUMENT_TYPE,D(u,d));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var m=$(p.val);if(0===m.length)return this.error(n.EXPECT_ARGUMENT_STYLE,D(this.clonePosition(),this.clonePosition()));h={style:m,styleLocation:D(f,this.clonePosition())}}var g=this.tryParseArgumentClose(s);if(g.err)return g;var _=D(s,this.clonePosition());if(h&&H(null==h?void 0:h.style,"::",0)){var y=Z(h.style.slice(2));if("number"===c){var p=this.parseNumberSkeletonFromString(y,h.styleLocation);if(p.err)return p;return{val:{type:i.number,value:r,location:_,style:p.val},err:null}}if(0===y.length)return this.error(n.EXPECT_DATE_TIME_SKELETON,_);var v,b=y;this.locale&&(b=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var a=0;n+1<e.length&&e.charAt(n+1)===i;)a++,n++;var s=1+(1&a),o=a<2?1:3+(a>>1),l=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(I[t||""]||I[n||""]||I["".concat(n,"-001")]||I["001"])[0]}(t);for(("H"==l||"k"==l)&&(o=0);o-- >0;)r+="a";for(;s-- >0;)r=l+r}else"J"===i?r+="H":r+=i}return r}(y,this.locale));var m={type:a.dateTime,pattern:b,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(v={},b.replace(w,function(e){var t=e.length;switch(e[0]){case"G":v.era=4===t?"long":5===t?"narrow":"short";break;case"y":v.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":v.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":v.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":v.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");v.weekday=["short","long","narrow","short"][t-4];break;case"a":v.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":v.hourCycle="h12",v.hour=["numeric","2-digit"][t-1];break;case"H":v.hourCycle="h23",v.hour=["numeric","2-digit"][t-1];break;case"K":v.hourCycle="h11",v.hour=["numeric","2-digit"][t-1];break;case"k":v.hourCycle="h24",v.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":v.minute=["numeric","2-digit"][t-1];break;case"s":v.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":v.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),v):{}};return{val:{type:"date"===c?i.date:i.time,value:r,location:_,style:m},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:r,location:_,style:null!=(o=null==h?void 0:h.style)?o:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(n.EXPECT_SELECT_ARGUMENT_OPTIONS,D(E,(0,l.__assign)({},E)));this.bumpSpace();var k=this.parseIdentifierIfPossible(),S=0;if("select"!==c&&"offset"===k.value){if(!this.bumpIf(":"))return this.error(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),k=this.parseIdentifierIfPossible(),S=p.val}var T=this.tryParsePluralOrSelectOptions(e,c,t,k);if(T.err)return T;var g=this.tryParseArgumentClose(s);if(g.err)return g;var x=D(s,this.clonePosition());if("select"===c)return{val:{type:i.select,value:r,options:G(T.val),location:x},err:null};return{val:{type:i.plural,value:r,options:G(T.val),offset:S,pluralType:"plural"===c?"cardinal":"ordinal",location:x},err:null};default:return this.error(n.INVALID_ARGUMENT_TYPE,D(u,d))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(n.EXPECT_ARGUMENT_CLOSING_BRACE,D(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,D(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(E).filter(function(e){return e.length>0}),r=[],n=0;n<t.length;n++){var i=t[n].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),o=0;o<s.length;o++)if(0===s[o].length)throw Error("Invalid number skeleton");r.push({stem:a,options:s})}return r}(e)}catch(e){return this.error(n.INVALID_NUMBER_SKELETON,t)}return{val:{type:a.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=n.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"scientific"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),C(t))},{}));continue;case"engineering":t=(0,l.__assign)((0,l.__assign)((0,l.__assign)({},t),{notation:"engineering"}),n.options.reduce(function(e,t){return(0,l.__assign)((0,l.__assign)({},e),C(t))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(T,function(e,r,n,i,a,s){if(r)t.minimumIntegerDigits=n.length;else if(i&&a)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(x.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(k.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(k,function(e,r,n,i,a,s){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&s?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+s.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,l.__assign)((0,l.__assign)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,l.__assign)((0,l.__assign)({},t),A(i)));continue}if(S.test(n.stem)){t=(0,l.__assign)((0,l.__assign)({},t),A(n.stem));continue}var a=N(n.stem);a&&(t=(0,l.__assign)((0,l.__assign)({},t),a));var s=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!x.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);s&&(t=(0,l.__assign)((0,l.__assign)({},t),s))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,i){for(var a,s=!1,o=[],l=new Set,u=i.value,c=i.location;;){if(0===u.length){var d=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(n.EXPECT_PLURAL_ARGUMENT_SELECTOR,n.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=D(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error("select"===t?n.DUPLICATE_SELECT_ARGUMENT_SELECTOR:n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(s=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,D(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,r);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([u,{value:p.val,location:D(f,this.clonePosition())}]),l.add(u),this.bumpSpace(),u=(a=this.parseIdentifierIfPossible()).value,c=a.location}return 0===o.length?this.error("select"===t?n.EXPECT_SELECT_ARGUMENT_SELECTOR:n.EXPECT_PLURAL_ARGUMENT_SELECTOR,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(n.MISSING_OTHER_CLAUSE,D(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=10*a+(s-48),this.bump();else break}var o=D(n,this.clonePosition());return i?z(a*=r)?{val:a,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=q(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(H(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&J(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function Q(e){return e>=97&&e<=122||e>=65&&e<=90}function J(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function X(e,t){void 0===t&&(t={});var r=new Y(e,t=(0,l.__assign)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var i=SyntaxError(n[r.err.kind]);throw i.location=r.err.location,i.originalMessage=r.err.message,i}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,p(t)||m(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else d(t)&&y(t.style)||(h(t)||f(t))&&v(t.style)?delete t.style.location:_(t)&&e(t.children)})}(r.val),r.val}},99650:(e,t,r)=>{"use strict";r.d(t,{N9:()=>P,oR:()=>S});var n=r(75834),i=r(73367);!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
53
53
|
`);var a=e=>"number"==typeof e&&!isNaN(e),s=e=>"string"==typeof e||"function"==typeof e?e:null,o=e=>(0,n.isValidElement)(e)||"string"==typeof e||"function"==typeof e||a(e);function l({enter:e,exit:t,appendPosition:r=!1,collapse:i=!0,collapseDuration:a=300}){return function({children:s,position:o,preventExitTransition:l,done:u,nodeRef:c,isIn:d,playToast:h}){let f=r?`${e}--${o}`:e,p=r?`${t}--${o}`:t,m=(0,n.useRef)(0);return(0,n.useLayoutEffect)(()=>{let e=c.current,t=f.split(" "),r=n=>{n.target===c.current&&(h(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===m.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,n.useEffect)(()=>{let e=c.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,r=300){let{scrollHeight:n,style:i}=e;requestAnimationFrame(()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)})})}(e,u,a):u()};d||(l?t():(m.current=1,e.className+=` ${p}`,e.addEventListener("animationend",t)))},[d]),n.createElement(n.Fragment,null,s)}}function u(e,t){return{content:c(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function c(e,t,r=!1){return(0,n.isValidElement)(e)&&"string"!=typeof e.type?(0,n.cloneElement)(e,{closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):"function"==typeof e?e({closeToast:t.closeToast,toastProps:t,data:t.data,isPaused:r}):e}function d({delay:e,isRunning:t,closeToast:r,type:a="default",hide:s,className:o,controlledProgress:l,progress:u,rtl:c,isIn:d,theme:h}){let f=s||l&&0===u,p={animationDuration:`${e}ms`,animationPlayState:t?"running":"paused"};l&&(p.transform=`scaleX(${u})`);let m=(0,i.A)("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${h}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":c}),g="function"==typeof o?o({rtl:c,type:a,defaultClassName:m}):(0,i.A)(m,o);return n.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},n.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${h} Toastify__progress-bar--${a}`}),n.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:g,style:p,...{[l&&u>=1?"onTransitionEnd":"onAnimationEnd"]:l&&u<1?null:()=>{d&&r()}}}))}var h=1,f=()=>`${h++}`,p=new Map,m=[],g=new Set,_=e=>g.forEach(t=>t(e));function y(e,t){var r;if(t)return!!(null!=(r=p.get(t))&&r.isToastActive(e));let n=!1;return p.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function v(e,t){o(e)&&(p.size>0||m.push({content:e,options:t}),p.forEach(r=>{r.buildToast(e,t)}))}function b(e,t){p.forEach(r=>{null!=t&&null!=t&&t.containerId&&(null==t?void 0:t.containerId)!==r.id||r.toggle(e,null==t?void 0:t.id)})}function w(e,t){return v(e,t),t.toastId}function E(e,t){var r;return{...t,type:t&&t.type||e,toastId:(r=t)&&("string"==typeof r.toastId||a(r.toastId))?r.toastId:f()}}function k(e){return(t,r)=>w(t,E(e,r))}function S(e,t){return w(e,E("default",t))}S.loading=(e,t)=>w(e,E("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),S.promise=function(e,{pending:t,error:r,success:n},i){let a;t&&(a="string"==typeof t?S.loading(t,i):S.loading(t.render,{...i,...t}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},o=(e,t,r)=>{if(null==t)return void S.dismiss(a);let n={type:e,...s,...i,data:r},o="string"==typeof t?{render:t}:t;return a?S.update(a,{...n,...o}):S(o.render,{...n,...o}),r},l="function"==typeof e?e():e;return l.then(e=>o("success",n,e)).catch(e=>o("error",r,e)),l},S.success=k("success"),S.info=k("info"),S.error=k("error"),S.warning=k("warning"),S.warn=S.warning,S.dark=(e,t)=>w(e,E("default",{theme:"dark",...t})),S.dismiss=function(e){!function(e){let t;if(!(p.size>0)){m=m.filter(t=>null!=e&&t.options.toastId!==e);return}if(null==e||"string"==typeof(t=e)||a(t))p.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=p.get(e.containerId);t?t.removeToast(e.id):p.forEach(t=>{t.removeToast(e.id)})}}(e)},S.clearWaitingQueue=(e={})=>{p.forEach(t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()})},S.isActive=y,S.update=(e,t={})=>{let r=((e,{containerId:t})=>{var r;return null==(r=p.get(t||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:i}=r,a={delay:100,...n,...t,toastId:t.toastId||e,updateId:f()};a.toastId!==e&&(a.staleId=e);let s=a.render||i;delete a.render,w(s,a)}},S.done=e=>{S.update(e,{progress:1})},S.onChange=function(e){return g.add(e),()=>{g.delete(e)}},S.play=e=>b(!0,e),S.pause=e=>b(!1,e);var T="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,x=({theme:e,type:t,isLoading:r,...i})=>n.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===e?"currentColor":`var(--toastify-icon-color-${t})`,...i}),A={info:function(e){return n.createElement(x,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return n.createElement(x,{...e},n.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return n.createElement(x,{...e},n.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return n.createElement(x,{...e},n.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return n.createElement("div",{className:"Toastify__spinner"})}},N=e=>{let{isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:s,playToast:o}=function(e){var t,r;let[i,a]=(0,n.useState)(!1),[s,o]=(0,n.useState)(!1),l=(0,n.useRef)(null),u=(0,n.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:h,onClick:f,closeOnClick:m}=e;function g(){a(!0)}function _(){a(!1)}function y(t){let r=l.current;if(u.canDrag&&r){u.didMove=!0,i&&_(),"x"===e.draggableDirection?u.delta=t.clientX-u.start:u.delta=t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1);let n="x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`;r.style.transform=`translate3d(${n},0)`,r.style.opacity=`${1-Math.abs(u.delta/u.removalDistance)}`}}function v(){document.removeEventListener("pointermove",y),document.removeEventListener("pointerup",v);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance){o(!0),e.closeToast(!0),e.collapseAll();return}t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}t={id:e.toastId,containerId:e.containerId,fn:a},null==(r=p.get(t.containerId||1))||r.setToggle(t.id,t.fn),(0,n.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||_(),window.addEventListener("focus",g),window.addEventListener("blur",_),()=>{window.removeEventListener("focus",g),window.removeEventListener("blur",_)}},[e.pauseOnFocusLoss]);let b={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",y),document.addEventListener("pointerup",v);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:i,right:a}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=a&&t.clientY>=r&&t.clientY<=n?_():g()}};return c&&d&&(b.onMouseEnter=_,e.stacked||(b.onMouseLeave=g)),m&&(b.onClick=e=>{f&&f(e),u.canCloseOnClick&&h(!0)}),{playToast:g,pauseToast:_,isRunning:i,preventExitTransition:s,toastRef:l,eventHandlers:b}}(e),{closeButton:l,children:u,autoClose:h,onClick:f,type:m,hideProgressBar:g,closeToast:_,transition:y,position:v,className:b,style:w,progressClassName:E,updateId:k,role:S,progress:T,rtl:x,toastId:N,deleteToast:C,isIn:I,isLoading:O,closeOnClick:P,theme:D,ariaLabel:M}=e,L=(0,i.A)("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${m}`,{"Toastify__toast--rtl":x},{"Toastify__toast--close-on-click":P}),R="function"==typeof b?b({rtl:x,position:v,type:m,defaultClassName:L}):(0,i.A)(L,b),F=function({theme:e,type:t,isLoading:r,icon:i}){let a=null,s={theme:e,type:t};return!1===i||("function"==typeof i?a=i({...s,isLoading:r}):(0,n.isValidElement)(i)?a=(0,n.cloneElement)(i,s):r?a=A.spinner():t in A&&(a=A[t](s))),a}(e),B=!!T||!h,j={closeToast:_,type:m,theme:D},z=null;return!1===l||(z="function"==typeof l?l(j):(0,n.isValidElement)(l)?(0,n.cloneElement)(l,j):function({closeToast:e,theme:t,ariaLabel:r="close"}){return n.createElement("button",{className:`Toastify__close-button Toastify__close-button--${t}`,type:"button",onClick:t=>{t.stopPropagation(),e(!0)},"aria-label":r},n.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},n.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(j)),n.createElement(y,{isIn:I,done:C,position:v,preventExitTransition:r,nodeRef:a,playToast:o},n.createElement("div",{id:N,tabIndex:0,onClick:f,"data-in":I,className:R,...s,style:w,ref:a,...I&&{role:S,"aria-label":M}},null!=F&&n.createElement("div",{className:(0,i.A)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!O})},F),c(u,e,!t),z,!e.customProgressBar&&n.createElement(d,{...k&&!B?{key:`p-${k}`}:{},rtl:x,theme:D,delay:h,isRunning:t,isIn:I,closeToast:_,hide:g,type:m,className:E,controlledProgress:B,progress:T||0})))},C=(e,t=!1)=>({enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}),I=l(C("bounce",!0));l(C("slide",!0)),l(C("zoom")),l(C("flip"));var O={position:"top-right",transition:I,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code};function P(e){let t={...O,...e},r=e.stacked,[l,c]=(0,n.useState)(!0),d=(0,n.useRef)(null),{getToastToRender:h,isToastActive:f,count:g}=function(e){var t;let r,{subscribe:i,getSnapshot:l,setProps:c}=(0,n.useRef)((r=e.containerId||1,{subscribe(t){let n,i,l,c,d,h,f,g,y,b,w,E=(n=1,i=0,l=[],c=[],d=e,h=new Map,f=new Set,g=()=>{c=Array.from(h.values()),f.forEach(e=>e())},y=e=>{var t,r;null==(r=null==(t=e.props)?void 0:t.onClose)||r.call(t,e.removalReason),e.isActive=!1},b=e=>{if(null==e)h.forEach(y);else{let t=h.get(e);t&&y(t)}g()},w=e=>{var t,r;let{toastId:n,updateId:i}=e.props,a=null==i;e.staleId&&h.delete(e.staleId),e.isActive=!0,h.set(n,e),g(),_(u(e,a?"added":"updated")),a&&(null==(r=(t=e.props).onOpen)||r.call(t))},{id:r,props:d,observe:e=>(f.add(e),()=>f.delete(e)),toggle:(e,t)=>{h.forEach(r=>{var n;(null==t||t===r.props.toastId)&&(null==(n=r.toggle)||n.call(r,e))})},removeToast:b,toasts:h,clearQueue:()=>{i-=l.length,l=[]},buildToast:(e,t)=>{let c,f;if((({containerId:e,toastId:t,updateId:n})=>{let i=h.has(t)&&null==n;return(e?e!==r:1!==r)||i})(t))return;let{toastId:p,updateId:m,data:y,staleId:v,delay:E}=t,k=null==m;k&&i++;let S={...d,style:d.toastStyle,key:n++,...Object.fromEntries(Object.entries(t).filter(([e,t])=>null!=t)),toastId:p,updateId:m,data:y,isIn:!1,className:s(t.className||d.toastClassName),progressClassName:s(t.progressClassName||d.progressClassName),autoClose:!t.isLoading&&(c=t.autoClose,f=d.autoClose,!1===c||a(c)&&c>0?c:f),closeToast(e){h.get(p).removalReason=e,b(p)},deleteToast(){let e=h.get(p);if(null!=e){if(_(u(e,"removed")),h.delete(p),--i<0&&(i=0),l.length>0)return void w(l.shift());g()}}};S.closeButton=d.closeButton,!1===t.closeButton||o(t.closeButton)?S.closeButton=t.closeButton:!0===t.closeButton&&(S.closeButton=!o(d.closeButton)||d.closeButton);let T={content:e,props:S,staleId:v};d.limit&&d.limit>0&&i>d.limit&&k?l.push(T):a(E)?setTimeout(()=>{w(T)},E):w(T)},setProps(e){d=e},setToggle:(e,t)=>{let r=h.get(e);r&&(r.toggle=t)},isToastActive:e=>{var t;return null==(t=h.get(e))?void 0:t.isActive},getSnapshot:()=>c});p.set(r,E);let k=E.observe(t);return m.forEach(e=>v(e.content,e.options)),m=[],()=>{k(),p.delete(r)}},setProps(e){var t;null==(t=p.get(r))||t.setProps(e)},getSnapshot(){var e;return null==(e=p.get(r))?void 0:e.getSnapshot()}})).current;c(e);let d=null==(t=(0,n.useSyncExternalStore)(i,l,l))?void 0:t.slice();return{getToastToRender:function(t){if(!d)return[];let r=new Map;return e.newestOnTop&&d.reverse(),d.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:y,count:null==d?void 0:d.length}}(t),{className:b,style:w,rtl:E,containerId:k,hotKeys:x}=t;function A(){r&&(c(!0),S.play())}return T(()=>{var e;if(r){let r=d.current.querySelectorAll('[data-in="true"]'),n=null==(e=t.position)?void 0:e.includes("top"),i=0,a=0;Array.from(r).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${l}`),e.dataset.pos||(e.dataset.pos=n?"top":"bot");let r=i*(l?.2:1)+(l?0:12*t);e.style.setProperty("--y",`${n?r:-1*r}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",`${1-(l?a:0)}`),i+=e.offsetHeight,a+=.025})}},[l,g,r]),(0,n.useEffect)(()=>{function e(e){var t;let r=d.current;x(e)&&(null==(t=r.querySelector('[tabIndex="0"]'))||t.focus(),c(!1),S.pause()),"Escape"===e.key&&(document.activeElement===r||null!=r&&r.contains(document.activeElement))&&(c(!0),S.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[x]),n.createElement("section",{ref:d,className:"Toastify",id:k,onMouseEnter:()=>{r&&(c(!1),S.pause())},onMouseLeave:A,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":t["aria-label"]},h((e,t)=>{var a;let o,l=t.length?{...w}:{...w,pointerEvents:"none"};return n.createElement("div",{tabIndex:-1,className:(a=e,o=(0,i.A)("Toastify__toast-container",`Toastify__toast-container--${a}`,{"Toastify__toast-container--rtl":E}),"function"==typeof b?b({position:a,rtl:E,defaultClassName:o}):(0,i.A)(o,s(b))),"data-stacked":r,style:l,key:`c-${e}`},t.map(({content:e,props:t})=>n.createElement(N,{...t,stacked:r,collapseAll:A,isIn:f(t.toastId,t.containerId),key:`t-${t.key}`},e)))}))}}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(20446),t(18648))),_N_E=e.O()}]);
|