PageSourceSearch

https://www.pranayogaschool.com/_next/static/chunks/682-c8d39f6599f18544.js

js pranayogaschool.com collected 2026-10-10 02:16:57 UTC 392,700 bytes, 17 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[682],{9477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(5893),i=r(7294);t.default=function({html:e,height:t=null,width:r=null,children:o,dataNtpc:a=""}){return(0,i.useEffect)(()=>{a&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${a}`}})},[a]),(0,n.jsxs)(n.Fragment,{children:[o,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":a,dangerouslySetInnerHTML:{__html:e}}):null]})}},7834:function(e,t,r){"use strict";let n;var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=void 0;let o=r(5893),a=r(7294),s=i(r(4298));t.GoogleAnalytics=function(e){let{gaId:t,dataLayerName:r="dataLayer"}=e;return void 0===n&&(n=r),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
2          window['${r}'] = window['${r}'] || [];
3          function gtag(){window['${r}'].push(arguments);}
4          gtag('js', new Date());
5
6          gtag('config', '${t}');`}}),(0,o.jsx)(s.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`})]})},t.sendGAEvent=function(...e){if(void 0===n){console.warn("@next/third-parties: GA has not been initialized");return}window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)}},3632:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(5893),o=r(6257),a=n(r(9477));t.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:s}=(0,o.GoogleMapsEmbed)(n);return(0,i.jsx)(a.default,{height:n.height||null,width:n.width||null,html:s,dataNtpc:"GoogleMapsEmbed"})}},674:function(e,t,r){"use strict";let n;var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=t.GoogleTagManager=void 0;let o=r(5893),a=r(7294),s=i(r(4298));t.GoogleTagManager=function(e){let{gtmId:t,dataLayerName:r="dataLayer",auth:i,preview:u,dataLayer:c}=e;void 0===n&&(n=r);let l="dataLayer"!==r?`&l=${r}`:"",f=i?`&gtm_auth=${i}`:"",d=u?`&gtm_preview=${u}&gtm_cookies_win=x`:"";return(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
7      (function(w,l){
8        w[l]=w[l]||[];
9        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
10        ${c?`w[l].push(${JSON.stringify(c)})`:""}
11      })(window,'${r}');`}}),(0,o.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:`https://www.googletagmanager.com/gtm.js?id=${t}${l}${f}${d}`})]})};let u=e=>{if(void 0===n){console.warn("@next/third-parties: GTM has not been initialized");return}window[n]?window[n].push(e):console.warn(`@next/third-parties: GTM dataLayer ${n} does not exist`)};t.sendGTMEvent=u},9692:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var i=r(3632);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(i).default}});var o=r(1494);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return n(o).default}});var a=r(674);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return a.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return a.sendGTMEvent}});var s=r(7834);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return s.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return s.sendGAEvent}})},1494:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
11dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});let i=r(5893),o=n(r(4298)),a=r(6257),s=n(r(9477)),u={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"};t.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,a.YouTubeEmbed)(e);return(0,i.jsx)(s.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,i.jsx)(o.default,{src:e.url,strategy:u[e.strategy],stylesheets:n},e.url))})}},8751:function(e,t,r){"use strict";r.d(t,{g7:function(){return c}});var n=null,i={},o=1;function a(e){try{return e()}catch(e){}}var s="@wry/context:Slot",u=a(function(){return globalThis})||a(function(){return r.g})||Object.create(null),c=u[s]||Array[s]||function(e){try{Object.defineProperty(u,s,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=n;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},e.prototype.withValue=function(e,t,r,i){var o,a=((o={__proto__:null})[this.id]=e,o),s=n;n={parent:s,slots:a};try{return t.apply(i,r)}finally{n=s}},e.bind=function(e){var t=n;return function(){var r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}},e.noContext=function(e,t,r){if(!n)return e.apply(r,t);var i=n;try{return n=null,e.apply(r,t)}finally{n=i}},e}());c.bind,c.noContext},2152:function(e,t,r){"use strict";r.d(t,{D:function(){return u}});var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=Function.prototype.toString,s=new Map;function u(e,t){try{return function e(t,r){if(t===r)return!0;var n=i.call(t);if(n!==i.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":if(d(t,r))return!0;var s=c(t),u=c(r),l=s.length;if(l!==u.length)break;for(var p=0;p<l;++p)if(!o.call(r,s[p]))return!1;for(var p=0;p<l;++p){var h=s[p];if(!e(t[h],r[h]))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=="".concat(r);case"[object Map]":case"[object Set]":if(t.size!==r.size)break;if(d(t,r))return!0;for(var v=t.entries(),y="[object Map]"===n;;){var m=v.next();if(m.done)break;var g=m.value,b=g[0],w=g[1];if(!r.has(b)||y&&!e(w,r.get(b)))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]":var 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]":var S,_=a.call(t);if(_!==a.call(r))break;return!((S=_.length-f.length)>=0)||_.indexOf(f,S)!==S}return!1}(e,t)}finally{s.clear()}}function c(e){return Object.keys(e).filter(l,e)}function l(e){return void 0!==this[e]}var f="{ [native code] }";function d(e,t){var r=s.get(e);if(r){if(r.has(t))return!0}else s.set(e,r=new Set);return r.add(t),!1}},657:function(e,t,r){"use strict";r.d(t,{B:function(){return s}});var n=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,a=i.slice,s=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=n),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return o.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(a.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}()},7283:function(e,t,r){"use strict";r.d(t,{Ps:function(){return V}});var n,i,o,a,s,u=r(655);let c=/\r\n|[\n\r]/g;function l(e,t){let r=0,n=1;for(let i of e.body.matchAll(c)){if("number"==typeof i.index||function(e,t){let r=Boolean(e);if(!r)throw Error(null!=t?t:"Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function f(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,u=t.column+s,c=`${e.name}:${a}:${u}
12`,l=n.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){let e=Math.floor(u/80),t=[];for(let e=0;e<f.length;e+=80)t.push(f.slice(e,e+80));return c+d([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(u%80)],["|",t[e+1]]])}return c+d([[`${a-1} |`,l[i-1]],[`${a} |`,f],["|","^".padStart(u)],[`${a+1} |`,l[i+1]]])}function d(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}
12class p extends Error{constructor(e,...t){var r,n,i,o;let{nodes:a,source:s,positions:u,path:c,originalError:f,extensions:d}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=c?c:void 0,this.originalError=null!=f?f:void 0,this.nodes=h(Array.isArray(a)?a:a?[a]:void 0);let v=h(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==v?void 0:null===(n=v[0])||void 0===n?void 0:n.source,this.positions=null!=u?u:null==v?void 0:v.map(e=>e.start),this.locations=u&&s?u.map(e=>l(s,e)):null==v?void 0:v.map(e=>l(e.source,e.start));let y="object"==typeof(o=null==f?void 0:f.extensions)&&null!==o?null==f?void 0:f.extensions:void 0;this.extensions=null!==(i=null!=d?d:y)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,p):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let r of this.nodes)if(r.loc){var t;e+="\n\n"+f((t=r.loc).source,l(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+f(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function h(e){return void 0===e||0===e.length?void 0:e}function v(e,t,r){return new p(`Syntax Error: ${r}`,{source:e,positions:[t]})}var y=r(2380);(n=a||(a={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION";var m=r(7359),g=r(7392),b=r(8297);(i=s||(s={})).SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class w{constructor(e){let t=new y.WU(s.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;let e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==s.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if(E(e))++i;else if(S(r,i))i+=2;else break}return T(e,s.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return T(e,s.BANG,i,i+1);case 36:return T(e,s.DOLLAR,i,i+1);case 38:return T(e,s.AMP,i,i+1);case 40:return T(e,s.PAREN_L,i,i+1);case 41:return T(e,s.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return T(e,s.SPREAD,i,i+3);break;case 58:return T(e,s.COLON,i,i+1);case 61:return T(e,s.EQUALS,i,i+1);case 64:return T(e,s.AT,i,i+1);case 91:return T(e,s.BRACKET_L,i,i+1);case 93:return T(e,s.BRACKET_R,i,i+1);case 123:return T(e,s.BRACE_L,i,i+1);case 124:return T(e,s.PIPE,i,i+1);case 125:return T(e,s.BRACE_R,i,i+1);case 34:if(34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2))return function(e,t){let r=e.source.body,n=r.length,i=e.lineStart,o=t+3,a=o,u="",c=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){u+=r.slice(a,o),c.push(u);let n=T(e,s.BLOCK_STRING,t,o+3,(0,g.wv)(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){u+=r.slice(a,o),a=o+1,o+=4;continue}if(10===n||13===n){u+=r.slice(a,o),c.push(u),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,u="",a=o,i=o;continue}if(E(n))++o;else if(S(r,o))o+=2;else throw v(e.source,o,`Invalid character within String: ${A(e,o)}.`)}throw v(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let r=e.source.body,n=r.length,i=t+1,o=i,a="";for(;i<n;){let n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),T(e,s.STRING,t,i+1,a);if(92===n){a+=r.slice(o,i);let t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!E(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|C(e))<0)break}throw v(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=x(r,t+2);if(E(n))return{value:String.fromCodePoint(n),size:6};if(_(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=x(r,t+8);
12if(k(e))return{value:String.fromCodePoint(n,e),size:12}}throw v(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body,n=r.charCodeAt(t+1);switch(n){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw v(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if(E(n))++i;else if(S(r,i))i+=2;else throw v(e.source,i,`Invalid character within String: ${A(e,i)}.`)}throw v(e.source,i,"Unterminated string.")}(e,i)}if((0,b.X1)(t)||45===t)return function(e,t,r){let n=e.source.body,i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),(0,b.X1)(o))throw v(e.source,i,`Invalid number, unexpected digit after 0: ${A(e,i)}.`)}else i=O(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=O(e,i,o),o=n.charCodeAt(i)),(69===o||101===o)&&(a=!0,(43===(o=n.charCodeAt(++i))||45===o)&&(o=n.charCodeAt(++i)),i=O(e,i,o),o=n.charCodeAt(i)),46===o||(0,b.LQ)(o))throw v(e.source,i,`Invalid number, expected digit but got: ${A(e,i)}.`);return T(e,a?s.FLOAT:s.INT,t,i,n.slice(t,i))}(e,i,t);if((0,b.LQ)(t))return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if((0,b.HQ)(e))++i;else break}return T(e,s.NAME,t,i,r.slice(t,i))}(e,i);throw v(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":E(t)||S(r,i)?`Unexpected character: ${A(e,i)}.`:`Invalid character: ${A(e,i)}.`)}return T(e,s.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===s.COMMENT);return e}}function E(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function S(e,t){return _(e.charCodeAt(t))&&k(e.charCodeAt(t+1))}function _(e){return e>=55296&&e<=56319}function k(e){return e>=56320&&e<=57343}function A(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return s.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function T(e,t,r,n,i){let o=e.line,a=1+r-e.lineStart;return new y.WU(t,r,n,o,a,i)}function O(e,t,r){if(!(0,b.X1)(r))throw v(e.source,t,`Invalid number, expected digit but got: ${A(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,b.X1)(n.charCodeAt(i));)++i;return i}function x(e,t){return C(e.charCodeAt(t))<<12|C(e.charCodeAt(t+1))<<8|C(e.charCodeAt(t+2))<<4|C(e.charCodeAt(t+3))}function C(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var P=r(1270);class D{constructor(e,t={}){let r=(0,P.T)(e)?e:new P.H(e);this._lexer=new w(r),this._options=t,this._tokenCounter=0}parseName(){let e=this.expectToken(s.NAME);return this.node(e,{kind:m.h.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:m.h.DOCUMENT,definitions:this.many(s.SOF,this.parseDefinition,s.EOF)})}parseDefinition(){if(this.peek(s.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===s.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw v(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(s.BRACE_L))return this.node(t,{kind:m.h.OPERATION_DEFINITION,operation:y.ku.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseOperationType();return this.peek(s.NAME)&&(e=this.parseName()),this.node(t,{kind:m.h.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(s.NAME);switch(e.value){case"query":return y.ku.QUERY;case"mutation":return y.ku.MUTATION;case"subscription":return y.ku.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(s.PAREN_L,this.parseVariableDefinition,s.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:m.h.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(s.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(s.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(s.DOLLAR),this.node(e,{kind:m.h.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:m.h.SELECTION_SET,selections:this.many(s.BRACE_L,this.parseSelection,s.BRACE_R)})}parseSelection(){return this.peek(s.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(s.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:m.h.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(s.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(s.PAREN_L,t,s.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(s.COLON),this.node(t,{kind:m.h.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(s.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(s.NAME)?this.node(e,{kind:m.h.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:m.h.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:m.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:m.h.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case s.BRACKET_L:return this.parseList(e);case s.BRACE_L:return this.parseObject(e);case s.INT:return this.advanceLexer(),this.node(t,{kind:m.h.INT,value:t.value});case s.FLOAT:return this.advanceLexer(),this.node(t,{kind:m.h.FLOAT,value:t.value});case s.STRING:case s.BLOCK_STRING:return this.parseStringLiteral();case s.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:m.h.BOOLEAN,value:!0});case"false":return this.node(t,{kind:m.h.BOOLEAN,value:!1});case"null":return this.node(t,{kind:m.h.NULL});default:return this.node(t,{kind:m.h.ENUM,value:t.value})}case s.DOLLAR:if(e){if(this.expectToken(s.DOLLAR),this._lexer.token.kind===s.NAME){let e=this._lexer.token.value;throw v(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:m.h.STRING,value:e.value,block:e.kind===s.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:m.h.LIST,values:this.any(s.BRACKET_L,t,s.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);
12return this.node(this._lexer.token,{kind:m.h.OBJECT,fields:this.any(s.BRACE_L,t,s.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(s.COLON),this.node(t,{kind:m.h.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(s.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(s.AT),this.node(t,{kind:m.h.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(s.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(s.BRACKET_R),e=this.node(t,{kind:m.h.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(s.BANG)?this.node(t,{kind:m.h.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:m.h.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(s.STRING)||this.peek(s.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(s.BRACE_L,this.parseOperationTypeDefinition,s.BRACE_R);return this.node(e,{kind:m.h.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(s.COLON);let r=this.parseNamedType();return this.node(e,{kind:m.h.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:m.h.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:m.h.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(s.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(s.BRACE_L,this.parseFieldDefinition,s.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(s.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:m.h.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(s.PAREN_L,this.parseInputValueDef,s.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(s.COLON);let i=this.parseTypeReference();this.expectOptionalToken(s.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:m.h.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:m.h.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:m.h.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(s.EQUALS)?this.delimitedMany(s.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:m.h.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(s.BRACE_L,this.parseEnumValueDefinition,s.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:m.h.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw v(this._lexer.source,this._lexer.token.start,`${R(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:m.h.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(s.BRACE_L,this.parseInputValueDef,s.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===s.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(s.BRACE_L,this.parseOperationTypeDefinition,s.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:m.h.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:m.h.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();
12return this.node(e,{kind:m.h.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:m.h.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:m.h.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:m.h.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:m.h.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(s.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:m.h.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(s.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(a,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new y.Ye(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw v(this._lexer.source,t.start,`Expected ${I(e)}, found ${R(t)}.`)}expectOptionalToken(e){let t=this._lexer.token;return t.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===s.NAME&&t.value===e)this.advanceLexer();else throw v(this._lexer.source,t.start,`Expected "${e}", found ${R(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===s.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return v(this._lexer.source,t.start,`Unexpected ${R(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==s.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw v(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function R(e){let t=e.value;return I(e.kind)+(null!=t?` "${t}"`:"")}function I(e){return e===s.BANG||e===s.DOLLAR||e===s.AMP||e===s.PAREN_L||e===s.PAREN_R||e===s.SPREAD||e===s.COLON||e===s.EQUALS||e===s.AT||e===s.BRACKET_L||e===s.BRACKET_R||e===s.BRACE_L||e===s.PIPE||e===s.BRACE_R?`"${e}"`:e}var N=new Map,j=new Map,M=!0,F=!1;function L(e){return e.replace(/[\s,]+/g," ").trim()}function V(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=L(e);if(!N.has(t)){var r,n,i,o,a,s=function(e,t){let r=new D(e,t);return r.parseDocument()}(e,{experimentalFragmentVariables:F,allowLegacyFragmentVariables:F});if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");N.set(t,(r=new Set,n=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=L((t=e.loc).source.body.substring(t.start,t.end)),a=j.get(i);a&&!a.has(o)?M&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||j.set(i,a=new Set),a.add(o),r.has(o)||
12(r.add(o),n.push(e))}else n.push(e)}),i=(0,u.pi)((0,u.pi)({},s),{definitions:n}),(o=new Set(i.definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&o.add(r)})}),(a=i.loc)&&(delete a.startToken,delete a.endToken),i))}return N.get(t)}(n)}var H={gql:V,resetCaches:function(){N.clear(),j.clear()},disableFragmentWarnings:function(){M=!1},enableExperimentalFragmentVariables:function(){F=!0},disableExperimentalFragmentVariables:function(){F=!1}};(o=V||(V={})).gql=H.gql,o.resetCaches=H.resetCaches,o.disableFragmentWarnings=H.disableFragmentWarnings,o.enableExperimentalFragmentVariables=H.enableExperimentalFragmentVariables,o.disableExperimentalFragmentVariables=H.disableExperimentalFragmentVariables,V.default=V},6140:function(e,t,r){"use strict";var n=r(4836);Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStore=void 0,t.defaultCookies=function(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}next-auth.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}next-auth.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}next-auth.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}next-auth.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}next-auth.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}next-auth.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}}}};var i=n(r(468)),o=n(r(5661));function a(e,t){u(e,t),t.add(e)}function s(e,t,r){u(e,t),t.set(e,r)}function u(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function c(e,t,r){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return r}var l=new WeakMap,f=new WeakMap,d=new WeakMap,p=new WeakSet,h=new WeakSet;function v(e){let t=Math.ceil(e.value.length/3933);if(1===t)return(0,i.default)(this,l)[e.name]=e.value,[e];let r=[];for(let n=0;n<t;n++){let t=`${e.name}.${n}`,o=e.value.substr(3933*n,3933);r.push({...e,name:t,value:o}),(0,i.default)(this,l)[t]=o}return(0,i.default)(this,d).debug("CHUNKING_SESSION_COOKIE",{message:"Session cookie exceeds allowed 4096 bytes.",emptyCookieSize:163,valueSize:e.value.length,chunks:r.map(e=>e.value.length+163)}),r}function y(){let e={};for(let r in(0,i.default)(this,l)){var t;null===(t=(0,i.default)(this,l))||void 0===t||delete t[r],e[r]={name:r,value:"",options:{...(0,i.default)(this,f).options,maxAge:0}}}return e}t.SessionStore=class{constructor(e,t,r){a(this,h),a(this,p),s(this,l,{writable:!0,value:{}}),s(this,f,{writable:!0,value:void 0}),s(this,d,{writable:!0,value:void 0}),(0,o.default)(this,d,r),(0,o.default)(this,f,e);let{cookies:n}=t,{name:u}=e;if("function"==typeof(null==n?void 0:n.getAll))for(let{name:e,value:t}of n.getAll())e.startsWith(u)&&((0,i.default)(this,l)[e]=t);else if(n instanceof Map)for(let e of n.keys())e.startsWith(u)&&((0,i.default)(this,l)[e]=n.get(e));else for(let e in n)e.startsWith(u)&&((0,i.default)(this,l)[e]=n[e])}get value(){var e;return null===(e=Object.values((0,i.default)(this,l)))||void 0===e?void 0:e.join("")}chunk(e,t){let r=c(this,h,y).call(this),n=c(this,p,v).call(this,{name:(0,i.default)(this,f).name,value:e,options:{...(0,i.default)(this,f).options,...t}});for(let e of n)r[e.name]=e;return Object.values(r)}clean(){return Object.values(c(this,h,y).call(this))}}},2260:function(e,t,r){"use strict";var n=r(3454),i=r(4836);Object.defineProperty(t,"__esModule",{value:!0});var o={encode:!0,decode:!0,getToken:!0};t.decode=p,t.encode=d,t.getToken=h;var a=r(2136),s=i(r(9718)),u=r(7466),c=r(6140),l=r(6444);Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});let f=()=>Date.now()/1e3|0;async function d(e){let{token:t={},secret:r,maxAge:n=2592e3}=e,i=await v(r);return await new a.EncryptJWT(t).setProtectedHeader({alg:"dir",enc:"A256GCM"}).setIssuedAt().setExpirationTime(f()+n).setJti((0,u.v4)()).encrypt
12(i)}async function p(e){let{token:t,secret:r}=e;if(!t)return null;let n=await v(r),{payload:i}=await (0,a.jwtDecrypt)(t,n,{clockTolerance:15});return i}async function h(e){var t,r,i;let{req:o,secureCookie:a=null!==(t=null===(r=n.env.NEXTAUTH_URL)||void 0===r?void 0:r.startsWith("https://"))&&void 0!==t?t:!!n.env.VERCEL,cookieName:s=a?"__Secure-next-auth.session-token":"next-auth.session-token",raw:u,decode:l=p,logger:f=console,secret:d=n.env.NEXTAUTH_SECRET}=e;if(!o)throw Error("Must pass `req` to JWT getToken()");let h=new c.SessionStore({name:s,options:{secure:a}},{cookies:o.cookies,headers:o.headers},f),v=h.value,y=o.headers instanceof Headers?o.headers.get("authorization"):null===(i=o.headers)||void 0===i?void 0:i.authorization;if(!v&&(null==y?void 0:y.split(" ")[0])==="Bearer"){let e=y.split(" ")[1];v=decodeURIComponent(e)}if(!v)return null;if(u)return v;try{return await l({token:v,secret:d})}catch(e){return null}}async function v(e){return await (0,s.default)("sha256",e,"","NextAuth.js Generated Encryption Key",32)}},6444:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},227:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,r,n){return!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)},9749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6495).Z,i=r(2648).Z,o=r(1598).Z,a=r(7273).Z,s=o(r(7294)),u=i(r(3121)),c=r(2675),l=r(139),f=r(8730);r(7238);var d=i(r(9824));let p={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:!1};function h(e){return void 0!==e.default}function v(e){return"number"==typeof e||void 0===e?e:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}
12function y(e,t,r,i,o,a,s){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let u="decode"in e?e.decode():Promise.resolve();u.catch(()=>{}).then(()=>{if(e.parentNode){if("blur"===r&&a(!0),null==i?void 0:i.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;i.current(n({},t,{nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}}))}(null==o?void 0:o.current)&&o.current(e)}})}let m=s.forwardRef((e,t)=>{var{imgAttributes:r,heightInt:i,widthInt:o,qualityInt:u,className:c,imgStyle:l,blurStyle:f,isLazy:d,fill:p,placeholder:h,loading:v,srcString:m,config:g,unoptimized:b,loader:w,onLoadRef:E,onLoadingCompleteRef:S,setBlurComplete:_,setShowAltText:k,onLoad:A,onError:T}=e,O=a(e,["imgAttributes","heightInt","widthInt","qualityInt","className","imgStyle","blurStyle","isLazy","fill","placeholder","loading","srcString","config","unoptimized","loader","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","onLoad","onError"]);return v=d?"lazy":v,s.default.createElement(s.default.Fragment,null,s.default.createElement("img",Object.assign({},O,r,{width:o,height:i,decoding:"async","data-nimg":p?"fill":"1",className:c,loading:v,style:n({},l,f),ref:s.useCallback(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(T&&(e.src=e.src),e.complete&&y(e,m,h,E,S,_,b))},[m,h,E,S,_,T,b,t]),onLoad:e=>{let t=e.currentTarget;y(t,m,h,E,S,_,b)},onError:e=>{k(!0),"blur"===h&&_(!0),T&&T(e)}})))}),g=s.forwardRef((e,t)=>{let r,i;var o,{src:y,sizes:g,unoptimized:b=!1,priority:w=!1,loading:E,className:S,quality:_,width:k,height:A,fill:T,style:O,onLoad:x,onLoadingComplete:C,placeholder:P="empty",blurDataURL:D,layout:R,objectFit:I,objectPosition:N,lazyBoundary:j,lazyRoot:M}=e,F=a(e,["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","onLoad","onLoadingComplete","placeholder","blurDataURL","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"]);let L=s.useContext(f.ImageConfigContext),V=s.useMemo(()=>{let e=p||L||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return n({},e,{allSizes:t,deviceSizes:r})},[L]),H=F,U=H.loader||d.default;delete H.loader;let W="__next_img_default"in U;if(W){if("custom"===V.loader)throw Error('Image with src "'.concat(y,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}else{let e=U;U=t=>{let{config:r}=t,n=a(t,["config"]);return e(n)}}if(R){"fill"===R&&(T=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(O=n({},O,e));let t={responsive:"100vw",fill:"100vw"}[R];t&&!g&&(g=t)}let K="",B=v(k),q=v(A);if("object"==typeof(o=y)&&(h(o)||void 0!==o.src)){let e=h(y)?y.default:y;if(!e.src)throw 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 ".concat(JSON.stringify(e)));if(!e.height||!e.width)throw 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 ".concat(JSON.stringify(e)));if(r=e.blurWidth,i=e.blurHeight,D=D||e.blurDataURL,K=e.src,!T){if(B||q){if(B&&!q){let t=B/e.width;q=Math.round(e.height*t)}else if(!B&&q){let t=q/e.height;B=Math.round(e.width*t)}}else B=e.width,q=e.height}}let J=!w&&("lazy"===E||void 0===E);((y="string"==typeof y?y:K).startsWith("data:")||y.startsWith("blob:"))&&(b=!0,J=!1),V.unoptimized&&(b=!0),W&&y.endsWith(".svg")&&!V.dangerouslyAllowSVG&&(b=!0);let[G,Q]=s.useState(!1),[z,$]=s.useState(!1),Y=v(_),X=Object.assign(T?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:I,objectPosition:N}:{},z?{}:{color:"transparent"},O),Z="blur"===P&&D&&!G?{backgroundSize:X.objectFit||"cover",backgroundPosition:X.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'.concat(c.getImageBlurSvg({widthInt:B,heightInt:q,blurWidth:r,blurHeight:i,blurDataURL:D}),'")')}:{}
12,ee=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:c}=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);n)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"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),l=u.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:u.map((e,n)=>"".concat(s({config:t,src:r,quality:o,width:e})," ").concat("w"===c?e:n+1).concat(c)).join(", "),src:s({config:t,src:r,quality:o,width:u[l]})}}({config:V,src:y,unoptimized:b,width:B,quality:Y,sizes:g,loader:U}),et=y,er={imageSrcSet:ee.srcSet,imageSizes:ee.sizes,crossOrigin:H.crossOrigin},en=s.useRef(x);s.useEffect(()=>{en.current=x},[x]);let ei=s.useRef(C);s.useEffect(()=>{ei.current=C},[C]);let eo=n({isLazy:J,imgAttributes:ee,heightInt:q,widthInt:B,qualityInt:Y,className:S,imgStyle:X,blurStyle:Z,loading:E,config:V,fill:T,unoptimized:b,placeholder:P,loader:U,srcString:et,onLoadRef:en,onLoadingCompleteRef:ei,setBlurComplete:Q,setShowAltText:$},H);return s.default.createElement(s.default.Fragment,null,s.default.createElement(m,Object.assign({},eo,{ref:t})),w?s.default.createElement(u.default,null,s.default.createElement("link",Object.assign({key:"__nimg-"+ee.src+ee.srcSet+ee.sizes,rel:"preload",as:"image",href:ee.srcSet?void 0:ee.src},er))):null)});t.default=g,("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)},1551:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2648).Z,i=r(7273).Z,o=n(r(7294)),a=r(1003),s=r(7795),u=r(4465),c=r(2692),l=r(8245),f=r(9246),d=r(227),p=r(3468);let h=new Set;function v(e,t,r,n){if(a.isLocalURL(t)){if(!n.bypassPrefetchedCheck){let i=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+r+"%"+i;if(h.has(o))return;h.add(o)}Promise.resolve(e.prefetch(t,r,n)).catch(e=>{})}}function y(e){return"string"==typeof e?e:s.formatUrl(e)}let m=o.default.forwardRef(function(e,t){let r,n;let{href:s,as:h,children:m,prefetch:g,passHref:b,replace:w,shallow:E,scroll:S,locale:_,onClick:k,onMouseEnter:A,onTouchStart:T,legacyBehavior:O=!1}=e,x=i(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);r=m,O&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let C=!1!==g,P=o.default.useContext(c.RouterContext),D=o.default.useContext(l.AppRouterContext),R=null!=P?P:D,I=!P,{href:N,as:j}=o.default.useMemo(()=>{if(!P){let e=y(s);return{href:e,as:h?y(h):e}}let[e,t]=a.resolveHref(P,s,!0);return{href:e,as:h?a.resolveHref(P,h):t||e}},[P,s,h]),M=o.default.useRef(N),F=o.default.useRef(j);O&&(n=o.default.Children.only(r));let L=O?n&&"object"==typeof n&&n.ref:t,[V,H,U]=f.useIntersection({rootMargin:"200px"}),W=o.default.useCallback(e=>{(F.current!==j||M.current!==N)&&(U(),F.current=j,M.current=N),V(e),L&&("function"==typeof L?L(e):"object"==typeof L&&(L.current=e))},[j,L,N,U,V]);o.default.useEffect(()=>{R&&H&&C&&v(R,N,j,{locale:_})},[j,N,H,_,C,null==P?void 0:P.locale,R]);let K={ref:W,onClick(e){O||"function"!=typeof k||k(e),O&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),R&&!e.defaultPrevented&&function(e,t,r,n,i,s,u,c,l,f){let{nodeName:d}=e.currentTarget,p="A"===d.toUpperCase();if(p&&(function(e){let{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!a.isLocalURL(r)))return;e.preventDefault();let h=()=>{"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:c,scroll:u}):t[i?"replace":"push"](n||r,{forceOptimisticNavigation:!f})};l?o.default.startTransition(h):h()}(e,R,N,j,w,E,S,_,I,C)},onMouseEnter(e){O||"function"!=typeof A||A(e),O&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),R&&(C||!I)&&v(R,N,j,{locale:_,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart(e){O||"function"!=typeof T||T(e),O&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),R&&(C||!I)&&v(R,N,j,{locale:_,priority:!0,bypassPrefetchedCheck:!0})}};if(!O||b||"a"===n.type&&!("href"in n.props)){let e=void 0!==_?_:null==P?void 0:P.locale,t=(null==P?void 0:P.isLocaleDomain)&&d.getDomainLocale(j,e,null==P?void 0:P.locales,null==P?void 0:P.domainLocales);K.href=t||p.addBasePath(u.addLocale(j,e,null==P?void 0:P.defaultLocale))}return O?o.default.cloneElement(n,K):o.default.createElement("a",Object.assign({},x,K),r)});t.default=m,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
12dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){let{rootRef:t,rootMargin:r,disabled:u}=e,c=u||!o,[l,f]=n.useState(!1),d=n.useRef(null),p=n.useCallback(e=>{d.current=e},[]);n.useEffect(()=>{if(o){if(c||l)return;let e=d.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!l){let e=i.requestIdleCallback(()=>f(!0));return()=>i.cancelIdleCallback(e)}},[c,r,t,l,d.current]);let h=n.useCallback(()=>{f(!1)},[]);return[p,l,h]};var n=r(7294),i=r(4686);let o="function"==typeof IntersectionObserver,a=new Map,s=[];("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)},2675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImageBlurSvg=function(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o}=e,a=n||t,s=i||r,u=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return a&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ".concat(a," ").concat(s,"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='").concat(n&&i?"1":"20","'/%3E").concat(u,"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='").concat(o,"'/%3E%3C/svg%3E"):"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' x='0' y='0' height='100%25' width='100%25' href='".concat(o,"'/%3E%3C/svg%3E")}},9824:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:i}=e;return"".concat(t.path,"?url=").concat(encodeURIComponent(r),"&w=").concat(n,"&q=").concat(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.__next_img_default=!0,t.default=r},5675:function(e,t,r){e.exports=r(9749)},1664:function(e,t,r){e.exports=r(1551)},4298:function(e,t,r){e.exports=r(3573)},507:function(e,t,r){"use strict";r.d(t,{dP:function(){return T},re:function(){return C}});var n,i=r(657),o=r(8751);function a(){}var s=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=a),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var 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)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var 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)},e}(),u=new o.g7,c=Object.prototype.hasOwnProperty,l=void 0===(n=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:n;function f(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var d=[];function p(e,t){if(!e)throw Error(t||"assertion failure")}function h(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var v=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!g(this))return y(this),this.value[0]},e.prototype.recompute=function(e){var t;return p(!this.recomputing,"already recomputing"),y(this),g(this)&&(_(this),u.withValue(this,m,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{f(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,g(this)||(t=this,b(t,E)))),h(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,b(this,w),f(this))},e.prototype.dispose=function(){var e=this;
12this.setDirty(),_(this),b(this,function(t,r){t.setDirty(),k(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=d.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(l(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),d.push(this.deps),this.deps=null)},e.count=0,e}();function y(e){var t=u.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),g(e)?w(t,e):E(t,e),t}function m(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function g(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function b(e,t){var r=e.parents.size;if(r)for(var n=l(e.parents),i=0;i<r;++i)t(n[i],e)}function w(e,t){p(e.childValues.has(t)),p(g(t));var r=!g(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=d.pop()||new Set;e.dirtyChildren.add(t),r&&b(e,w)}function E(e,t){p(e.childValues.has(t)),p(!g(t));var r,n,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(r=t.value,(n=i.length)>0&&n===r.length&&i[n-1]===r[n-1]||e.setDirty()),S(e,t),g(e)||b(e,E)}function S(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(d.length<100&&d.push(r),e.dirtyChildren=null))}function _(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){k(e,r)}),e.forgetDeps(),p(null===e.dirtyChildren)}function k(e,t){t.parents.delete(e),e.childValues.delete(t),S(e,t)}var A={setDirty:!0,dispose:!0,forget:!0};function T(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=u.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(f(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&c.call(A,r)?r:"setDirty";l(n).forEach(function(e){return e[i]()}),t.delete(e),f(n)}},n}function O(){var e=new i.B("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}O();var x=new Set;function C(e,t){void 0===t&&(t=Object.create(null));var r=new s(t.max||65536,function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||O(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new v(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),x.add(r),u.hasValue()||(x.forEach(function(e){return e.clean()}),x.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function c(e){var t=r.get(e);if(t)return t.peek()}function l(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=c,o.peek=function(){return c(i.apply(null,arguments))},o.forgetKey=l,o.forget=function(){return l(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}},6257:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var n=r(3494);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var i=r(4248);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var o=r(2239);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return o.YouTubeEmbed}})},3494:function(e,t,r){"use strict";var n=this&&this.__rest||function(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},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let o=i(r(9426)),a=r(7058),s=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)};t.GoogleAnalytics=s},4248:function(e,t,r){"use strict";var n=this&&this.__rest||function(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}
12,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let o=i(r(7395)),a=r(7058),s=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)};t.GoogleMapsEmbed=s},2239:function(e,t,r){"use strict";var n=this&&this.__rest||function(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},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let o=i(r(8420)),a=r(7058),s=e=>{var t=n(e,[]);return(0,a.formatData)(o.default,t)};t.YouTubeEmbed=s},7058:function(e,t){"use strict";function r(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function n(e,t,r,n){let i=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);return t&&r&&t.forEach(e=>{r[e]&&i.searchParams.set(e,r[e])}),i.toString()}function i(e,t,r,i,o){var a;if(!t)return`<${e}></${e}>`;let s=(null===(a=t.src)||void 0===a?void 0:a.url)?Object.assign(Object.assign({},t),{src:n(t.src.url,t.src.params,i,o)}):t,u=Object.keys(Object.assign(Object.assign({},s),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],i=s[t],o=null!=n?n:i,a=!0===o?t:`${t}="${o}"`;return o?e+` ${a}`:e},"");return`<${e}${u}></${e}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=n,t.createHtml=i,t.formatData=function(e,t){var o,a,s,u,c;let l=null===(o=e.scripts)||void 0===o?void 0:o.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[]),f=r(t,l),d=r(t,null===(s=null===(a=e.html)||void 0===a?void 0:a.attributes.src)||void 0===s?void 0:s.params),p=r(t,[null===(c=null===(u=e.html)||void 0===u?void 0:u.attributes.src)||void 0===c?void 0:c.slugParam]),h=r(t,[...Object.keys(f),...Object.keys(d),...Object.keys(p)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,h,d,p):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:n(e.url,e.params,f)})):null})}},655:function(e,t,r){"use strict";r.d(t,{CR:function(){return l},Jh:function(){return u},XA:function(){return c},ZT:function(){return i},_T:function(){return a},ev:function(){return f},mG:function(){return s},pi:function(){return o}});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 o=function(){return(o=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 a(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 s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function c(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
12if(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 l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function f(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;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))}},7466:function(e,t,r){"use strict";r.r(t),r.d(t,{NIL:function(){return C},parse:function(){return y},stringify:function(){return d},v1:function(){return v},v3:function(){return A},v4:function(){return T},v5:function(){return x},validate:function(){return c},version:function(){return P}});var n,i,o,a=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}for(var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,c=function(e){return"string"==typeof e&&u.test(e)},l=[],f=0;f<256;++f)l.push((f+256).toString(16).substr(1));var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r},p=0,h=0,v=function(e,t,r){var n=t&&r||0,a=t||Array(16),u=(e=e||{}).node||i,c=void 0!==e.clockseq?e.clockseq:o;if(null==u||null==c){var l=e.random||(e.rng||s)();null==u&&(u=i=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==c&&(c=o=(l[6]<<8|l[7])&16383)}var f=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:h+1,y=f-p+(v-h)/1e4;if(y<0&&void 0===e.clockseq&&(c=c+1&16383),(y<0||f>p)&&void 0===e.nsecs&&(v=0),v>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");p=f,h=v,o=c;var m=((268435455&(f+=122192928e5))*1e4+v)%4294967296;a[n++]=m>>>24&255,a[n++]=m>>>16&255,a[n++]=m>>>8&255,a[n++]=255&m;var g=f/4294967296*1e4&268435455;a[n++]=g>>>8&255,a[n++]=255&g,a[n++]=g>>>24&15|16,a[n++]=g>>>16&255,a[n++]=c>>>8|128,a[n++]=255&c;for(var b=0;b<6;++b)a[n+b]=u[b];return t||d(a)},y=function(e){if(!c(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function m(e,t,r){function n(e,n,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof n&&(n=y(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return d(a)}try{n.name=e}catch(e){}return n.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",n.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",n}function g(e){return(e+64>>>9<<4)+14+1}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function w(e,t,r,n,i,o){var a;return b((a=b(b(t,e),b(n,o)))<<i|a>>>32-i,r)}function E(e,t,r,n,i,o,a){return w(t&r|~t&n,e,t,i,o,a)}function S(e,t,r,n,i,o,a){return w(t&n|r&~n,e,t,i,o,a)}function _(e,t,r,n,i,o,a){return w(t^r^n,e,t,i,o,a)}function k(e,t,r,n,i,o,a){return w(r^(t|~n),e,t,i,o,a)}var A=m("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){for(var t=[],r=32*e.length,n="0123456789abcdef",i=0;i<r;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[g(t)-1]=t;
12for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=i,l=o;r=E(r,n,i,o,e[a],7,-680876936),o=E(o,r,n,i,e[a+1],12,-389564586),i=E(i,o,r,n,e[a+2],17,606105819),n=E(n,i,o,r,e[a+3],22,-1044525330),r=E(r,n,i,o,e[a+4],7,-176418897),o=E(o,r,n,i,e[a+5],12,1200080426),i=E(i,o,r,n,e[a+6],17,-1473231341),n=E(n,i,o,r,e[a+7],22,-45705983),r=E(r,n,i,o,e[a+8],7,1770035416),o=E(o,r,n,i,e[a+9],12,-1958414417),i=E(i,o,r,n,e[a+10],17,-42063),n=E(n,i,o,r,e[a+11],22,-1990404162),r=E(r,n,i,o,e[a+12],7,1804603682),o=E(o,r,n,i,e[a+13],12,-40341101),i=E(i,o,r,n,e[a+14],17,-1502002290),n=E(n,i,o,r,e[a+15],22,1236535329),r=S(r,n,i,o,e[a+1],5,-165796510),o=S(o,r,n,i,e[a+6],9,-1069501632),i=S(i,o,r,n,e[a+11],14,643717713),n=S(n,i,o,r,e[a],20,-373897302),r=S(r,n,i,o,e[a+5],5,-701558691),o=S(o,r,n,i,e[a+10],9,38016083),i=S(i,o,r,n,e[a+15],14,-660478335),n=S(n,i,o,r,e[a+4],20,-405537848),r=S(r,n,i,o,e[a+9],5,568446438),o=S(o,r,n,i,e[a+14],9,-1019803690),i=S(i,o,r,n,e[a+3],14,-187363961),n=S(n,i,o,r,e[a+8],20,1163531501),r=S(r,n,i,o,e[a+13],5,-1444681467),o=S(o,r,n,i,e[a+2],9,-51403784),i=S(i,o,r,n,e[a+7],14,1735328473),n=S(n,i,o,r,e[a+12],20,-1926607734),r=_(r,n,i,o,e[a+5],4,-378558),o=_(o,r,n,i,e[a+8],11,-2022574463),i=_(i,o,r,n,e[a+11],16,1839030562),n=_(n,i,o,r,e[a+14],23,-35309556),r=_(r,n,i,o,e[a+1],4,-1530992060),o=_(o,r,n,i,e[a+4],11,1272893353),i=_(i,o,r,n,e[a+7],16,-155497632),n=_(n,i,o,r,e[a+10],23,-1094730640),r=_(r,n,i,o,e[a+13],4,681279174),o=_(o,r,n,i,e[a],11,-358537222),i=_(i,o,r,n,e[a+3],16,-722521979),n=_(n,i,o,r,e[a+6],23,76029189),r=_(r,n,i,o,e[a+9],4,-640364487),o=_(o,r,n,i,e[a+12],11,-421815835),i=_(i,o,r,n,e[a+15],16,530742520),n=_(n,i,o,r,e[a+2],23,-995338651),r=k(r,n,i,o,e[a],6,-198630844),o=k(o,r,n,i,e[a+7],10,1126891415),i=k(i,o,r,n,e[a+14],15,-1416354905),n=k(n,i,o,r,e[a+5],21,-57434055),r=k(r,n,i,o,e[a+12],6,1700485571),o=k(o,r,n,i,e[a+3],10,-1894986606),i=k(i,o,r,n,e[a+10],15,-1051523),n=k(n,i,o,r,e[a+1],21,-2054922799),r=k(r,n,i,o,e[a+8],6,1873313359),o=k(o,r,n,i,e[a+15],10,-30611744),i=k(i,o,r,n,e[a+6],15,-1560198380),n=k(n,i,o,r,e[a+13],21,1309151649),r=k(r,n,i,o,e[a+4],6,-145523070),o=k(o,r,n,i,e[a+11],10,-1120210379),i=k(i,o,r,n,e[a+2],15,718787259),n=k(n,i,o,r,e[a+9],21,-343485551),r=b(r,s),n=b(n,u),i=b(i,c),o=b(o,l)}return[r,n,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(g(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))}),T=function(e,t,r){var n=(e=e||{}).random||(e.rng||s)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return d(n)};function O(e,t){return e<<t|e>>>32-t}var x=m("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i<n.length;++i)e.push(n.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),a=Array(o),s=0;s<o;++s){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];a[s]=u}a[o-1][14]=(e.length-1)*8/4294967296,a[o-1][14]=Math.floor(a[o-1][14]),a[o-1][15]=(e.length-1)*8&4294967295;for(var l=0;l<o;++l){for(var f=new Uint32Array(80),d=0;d<16;++d)f[d]=a[l][d];for(var p=16;p<80;++p)f[p]=O(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);for(var h=r[0],v=r[1],y=r[2],m=r[3],g=r[4],b=0;b<80;++b){var w=Math.floor(b/20),E=O(h,5)+function(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}(w,v,y,m)+g+t[w]+f[b]>>>0;g=m,m=y,y=O(v,30)>>>0,v=h,h=E}r[0]=r[0]+h>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+y>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+g>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}),C="00000000-0000-0000-0000-000000000000",P=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},8912:function(e){e.exports=function(e,t){return t.get?t.get.call(e):t.value},e.exports.__esModule=!0,e.exports.default=e.exports},3448:function(e){e.exports=function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}},e.exports.__esModule=!0,e.exports.default=e.exports},4069:function(e){e.exports=function(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)},e.exports.__esModule=!0,e.exports.default=e.exports},468:function(e,t,r){var n=r(8912),i=r(4069);e.exports=function(e,t){var r=i(e,t,"get");return n(e,r)},e.exports.__esModule=!0,e.exports.default=e.exports},5661:function(e,t,r){var n=r(3448),i=r(4069);e.exports=function(e,t,r){var o=i(e,t,"set");return n(e,o,r),r},e.exports.__esModule=!0,e.exports.default=e.exports},9641:function(e,t,r){"use strict";r.d(t,{$O:function(){return g},E_:function(){return b},Is:function(){return S},RC:function(){return function e(t,r,n){return!!(0,o.s)(r)&&(d(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,i.My)(t)&&(0,a.LZ)(t,n)){var o=(0,i.u2)(t);return l.call(r,o)&&(!t.selectionSet||e(t.selectionSet,r[o],n))}return!0}))}},RI:function(){return l},ig:function(){return E},j:function(){return w},jS:function(){return v},jp:function(){return m},kJ:function(){return d},lg:function(){return y},uG:function(){return p}});var n=r(3712),i=r(1761),o=r(3154),a=r(9065),s=r(182),u=r(3361),c=r(6765),l=Object.prototype.hasOwnProperty;function f(e){return null==e}var d=Array.isArray;function p(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=f(n)?f(i)?void 0:{_id:i}:{id:n}),f(n)&&!f(i)&&(n=i),!f(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var h={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function v(e){return(0,n.o)(h,e)}function y(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function m(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var g=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(g);return t?t[0]:e}function w(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!d(e)}function E(){return new s.w0}function S(e,t){var r=(0,u.F)((0,c.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},4349:function(e,t,r){"use strict";r.d(t,{h:function(){return el}});var n,i,o=r(655),a=r(3917),s=r(507),u=r(2152),c=r(3361),l=function(){function e(){this.getFragmentDoc=(0,s.re)(c.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.o
12ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,o.pi)((0,o.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,o._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,o._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e}(),f=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,o.ZT)(t,e),t}(Error),d=r(1761),p=r(6982),h=r(7359),v=r(320),y=r(3712),m=r(6765),g=r(182),b=r(9065),w=r(3154);function E(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){(0,w.s)(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(r){(0,w.s)(e[r])&&t.add(e[r])})})}return e}var S=r(657),_=r(9641),k=Object.create(null),A=function(){return k},T=Object.create(null),O=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return E((0,d.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,d.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,d.kQ)(e);if((0,d.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,d.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),_.RI.call(this.data,e)){var r=this.data[e];if(r&&_.RI.call(r,t))return r[t]}return"__typename"===t&&_.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof P?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),_.RI.call(this.data,e))?this.data[e]:this instanceof P?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,d.Yk)(e)&&(e=e.__ref),(0,d.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){__DEV__?(0,a.kG)("string"==typeof r,"store.merge expects a string ID"):(0,a.kG)("string"==typeof r,1);var s=new g.w0(R).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=(0,_.E_)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof P||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,s=!0,u={DELETE:k,INVALIDATE:T,isReference:d.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,d.kQ)(e)}:t,{store:r})}};
12if(Object.keys(n).forEach(function(c){var l=(0,_.E_)(c),f=n[c];if(void 0!==f){var d="function"==typeof t?t:t[c]||t[l];if(d){var p=d===A?k:d(E(f),(0,o.pi)((0,o.pi)({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));p===T?r.group.dirty(e,c):(p===k&&(p=void 0),p!==f&&(i[c]=p,a=!0,f=p))}void 0!==f&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof P?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=A,n):A)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(_.RI.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof P&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){_.RI.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&_.RI.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof P?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){_.RI.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof P;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!_.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,d.Yk)(e)&&(t[e.__ref]=!0),(0,w.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,w.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),x=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new S.B(v.mr)}
12,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=(0,_.E_)(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function C(e,t){I(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new x(void 0===n||n))||this;return o.stump=new D(o),o.storageTrie=new S.B(v.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=O||(O={})),n.Root=i;var P=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,u.D)(n[r],i[r])||t.group.dirty(e,r)}
12):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return _.RI.call(this.data,t)?(0,o.pi)((0,o.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(O),D=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new x(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(P);function R(e,t,r){var n=e[r],i=t[r];return(0,u.D)(n,i)?n:i}function I(e){return!!(e instanceof O&&e.group.caching)}var N=r(900);function j(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var M=function(){function e(e){var t=this;this.knownResults=new(v.mr?WeakMap:Map),this.config=(0,y.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,_.lg)(e)}),this.canon=e.canon||new N.h,this.executeSelectionSet=(0,s.re)(function(e){var r,n=e.context.canonizeResults,i=j(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(C(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:j,makeCacheKey:function(e,t,r,n){if(I(r.store))return r.store.makeCacheKey(e,(0,d.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return C(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(I(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new N.h},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;a=(0,o.pi)((0,o.pi)({},(0,m.O4)((0,m.iW)(n))),a);var p=(0,d.kQ)(void 0===i?"ROOT_QUERY":i),h=this.executeSelectionSet({selectionSet:(0,m.p$)(n).selectionSet,objectOrReference:p,enclosingRef:p,context:(0,o.pi)({store:r,query:n,policies:l,variables:a,varString:(0,N.B)(a),canonizeResults:c},(0,_.Is)(n,this.config.fragments))});if(h.missing&&(t=[new f(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(h.missing),h.missing,n,a)],!(void 0===s||s)))throw t[0];return{result:h.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(I(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,d.Yk)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=s.variables,l=s.policies,f=s.store.getFieldValue(i,"__typename"),v=[],y=new g.w0;function m(e,r){var n;return e.missing&&(t=y.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof f&&!l.rootIdsByTypename[f]&&v.push({__typename:f});var w=new Set(n.selections);w.forEach(function(e){var n,g;if((0,b.LZ)(e,u)){if((0,d.My)(e)){var E=l.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),S=(0,d.u2)(e);void 0===E?p.Gw.added(e)||(t=y.merge(t,((n={})[S]="Can't find field '".concat(e.name.value,"' on ").concat((0,d.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,_.kJ)(E)?E=m(r.executeSubSelectedArray({field:e,array:E,enclosingRef:o,context:s}),S):e.selectionSet?null!=E&&(E=m(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:E,enclosingRef:(0,d.Yk)(E)?E:o,context:s}),S)):s.canonizeResults&&(E=r.canon.pass(E)),void 0!==E&&v.push(((g={})[S]=E,g))}else{var k=(0,c.hi)(e,s.lookupFragment);if(!k&&e.kind===h.h.FRAGMENT_SPREAD)throw __DEV__?new a.ej("No fragment named ".concat(e.name.value)):new a.ej(5);k&&l.fragmentMatches(k,f)&&k.selectionSet.selections.forEach(w.add,w)}}});var S={result:(0,g.bw)(v),missing:t},k=s.canonizeResults?this.canon.admit(S):E(S);return k.result&&this.knownResults.set(k.result,n),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,u=new g.w0;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,_.kJ)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,d.Yk)(e)?e:o,context:s}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);
12n.forEach(function(r){(0,w.s)(r)&&(__DEV__?(0,a.kG)(!(0,d.Yk)(r),"Missing selection set for object of type ".concat((0,_.jp)(e,r)," returned for query field ").concat(t.name.value)):(0,a.kG)(!(0,d.Yk)(r),6),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),F=r(9487),L=r(2651),V=r(897),H=r(6438),U=Object.create(null);function W(e){var t=JSON.stringify(e);return U[t]||(U[t]=Object.create(null))}function K(e){var t=W(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=q(e,function(e){var i=G(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&_.RI.call(t,e[0])&&(i=G(t,e,J)),__DEV__?(0,a.kG)(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):(0,a.kG)(void 0!==i,2),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function B(e){var t=W(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(q(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,L.O)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,d.NC)(s,i);return u&&G(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&_.RI.call(i,c)){var l=e.slice(0);return l[0]=c,G(i,l)}return}if(t)return G(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function q(e,t){var r=new g.w0;return(function e(t){var r=W(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,_.kJ)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,_.kJ)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function J(e,t){return e[t]}function G(e,t,r){return r=r||J,function e(t){return(0,w.s)(t)?(0,_.kJ)(t)?t.map(e):q(Object.keys(t).sort(),function(e){return G(t,e)}):t}(t.reduce(function e(t,n){return(0,_.kJ)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function Q(e){return void 0!==e.args?e.args:e.field?(0,d.NC)(e.field,e.variables):null}d.PT.setStringify(N.B);var z=function(){},$=function(e,t){return t.fieldName},Y=function(e,t,r){return(0,r.mergeObjects)(e,t)},X=function(e,t){return t},Z=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:_.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,u=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=et(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l(e,u);if((0,_.kJ)(f))l=K(f);else{n=f;break}}return n=n?String(n):void 0,u.keyObject?[n,u.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,u=(0,o._T)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),_.RI.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?Y:!1===t?X:e.merge}a(n,t.merge),n.keyFn=!1===i?z:(0,_.kJ)(i)?K(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
12h(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?$:(0,_.kJ)(s)?B(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||$)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?(0,a.kG)(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):(0,a.kG)(!n||n===e,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(_.$O);n&&n[0]===e||t.fuzzySubtypes.set(e,RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!_.RI.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o._T)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,d=0;d<u.length;++d){var p=u[d];if(p.has(o))return s.has(o)||(f&&__DEV__&&a.kG.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),s.add(o)),!0;p.forEach(c),l&&d===u.length-1&&(0,_.RC)(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=Q(e);o;){var u=o(s,a);if((0,_.kJ)(u))o=B(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,d.vf)(e.field,e.variables):(0,d.PT)(n,Q(e))),!1===t)?n:n===(0,_.E_)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=(0,_.E_)(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),u=s&&s.read;if(u){var c=ee(this,r,e,t,t.store.getStorage((0,d.Yk)(r)?r.__ref:r,i));return H.ab.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===Y?er(n.store)(e,t):s===X?t:(n.overwrite&&(e=void 0),s(e,t,ee(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function ee(e,t,r,n,i){var o=e.getStoreFieldName(r),a=(0,_.E_)(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:Q(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:d.Yk,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(et(arguments,t,s),n)},mergeObjects:er(n.store)}}function et(e,t,r){var n,i,s,u=e[0],c=e[1],l=e.length;return"string"==typeof u?s={fieldName:u,from:l>1?c:t}:(s=(0,o.pi)({},u),_.RI.call(s,"from")||(s.from=t)),__DEV__&&void 0===s.from&&__DEV__&&a.kG.warn("Undefined 'from' passed to readField with arguments ".concat((n=Array.from(e),i=(0,V.X)("stringifyForDisplay"),JSON.stringify(n,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===s.variables&&(s.variables=r),s}function er(e){return function(t,r){if((0,_.kJ)(t)||(0,_.kJ)(r))throw __DEV__?new a.ej("Cannot automatically merge arrays"):new a.ej(4);if((0,w.s)(t)&&(0,w.s)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,d.Yk)(t)&&(0,_.j)(r))return e.merge(t.__ref,r),t;if((0,_.j)(t)&&(0,d.Yk)(r))return e.merge(t,r.__ref),r;if((0,_.j)(t)&&(0,_.j)(r))return(0,o.pi)((0,o.pi)({},t),r)}return r}}function en(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:r})),i}var ei=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,c=t.variables,l=t.overwrite,f=(0,m.$H)(n),p=(0,_.ig)();c=(0,o.pi)((0,o.pi)({},(0,m.O4)(f)),c);var h=(0,o.pi)((0,o.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,N.B)(c)},(0,_.Is)(n,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,d.Yk)(v))throw __DEV__?new a.ej("Could not identify object ".concat(JSON.stringify(i))):new a.ej(7);
12return h.incomingById.forEach(function(t,n){var i=t.storeObject,o=t.mergeTree,s=t.fieldNodeSet,c=(0,d.kQ)(n);if(o&&o.map.size){var l=r.applyMerges(o,c,i,h);if((0,d.Yk)(l))return;i=l}if(__DEV__&&!h.overwrite){var f=Object.create(null);s.forEach(function(e){e.selectionSet&&(f[e.name.value]=!0)});var p=function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==f[(0,_.E_)(e)]||p(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(o){var s=i(t);if(!(!s||(0,d.Yk)(o)||(0,u.D)(o,s)||Object.keys(o).every(function(e){return void 0!==n.getFieldValue(s,e)}))){var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=(0,_.E_)(r),f="".concat(c,".").concat(l);if(!ec.has(f)){ec.add(f);var p=[];(0,_.kJ)(o)||(0,_.kJ)(s)||[o,s].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),__DEV__&&a.kG.warn("Cache data may be lost when replacing the ".concat(l," field of a ").concat(c," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(f," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(s).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(c,i,e,h.store)})}e.merge(n,i)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,d.qw)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var h=function(){var e=et(arguments,l,s.variables);if((0,d.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},v=new Set;this.flattenFields(i,n,s,f).forEach(function(e,r){var i,o=n[(0,d.u2)(r)];if(v.add(r),void 0!==o){var s=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),y=ea(u,s),m=t.processFieldValue(o,r,r.selectionSet?en(e,!1,!1):e,y),g=void 0;r.selectionSet&&((0,d.Yk)(m)||(0,_.j)(m))&&(g=h("__typename",m));var b=c.getMergeFunction(f,r.name.value,g);b?y.info={field:r,typename:f,merge:b}:eu(u,s),l=e.merge(l,((i={})[s]=m,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!p.Gw.added(r)&&!c.getReadFunction(f,r.name.value)&&__DEV__&&a.kG.error("Missing field '".concat((0,d.u2)(r),"' while writing result ").concat(JSON.stringify(n,null,2)).substring(0,1e3))});try{var y=c.identify(n,{typename:f,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:l,readField:h}),m=y[0],g=y[1];r=r||m,g&&(l=s.merge(l,g))}catch(e){if(!r)throw e}if("string"==typeof r){var b=(0,d.kQ)(r),w=s.written[r]||(s.written[r]=[]);if(w.indexOf(i)>=0||(w.push(i),this.reader&&this.reader.isFresh(n,b,i,s)))return b;var E=s.incomingById.get(r);return E?(E.storeObject=s.merge(E.storeObject,l),E.mergeTree=function e(t,r){if(t===r||!r||es(r))return t;if(!t||es(t))return r;var n=t.info&&r.info?(0,o.pi)((0,o.pi)({},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){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(E.mergeTree,u),v.forEach(function(e){return E.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:l,mergeTree:es(u)?void 0:u,fieldNodeSet:v}),b}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,_.kJ)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,ea(n,o));return eu(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?(0,F.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,d.qw)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new S.B(!1);return function e(u,l){var f=s.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(s){if((0,b.LZ)(s,r.variables)){var u=l.clientOnly,f=l.deferred;
12if(!(u&&f)&&(0,L.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,d.NC)(e,r.variables);n&&!1===n.if||(f=!0)}}),(0,d.My)(s)){var p=i.get(s);p&&(u=u&&p.clientOnly,f=f&&p.deferred),i.set(s,en(r,u,f))}else{var v=(0,c.hi)(s,r.lookupFragment);if(!v&&s.kind===h.h.FRAGMENT_SPREAD)throw __DEV__?new a.ej("No fragment named ".concat(s.name.value)):new a.ej(8);v&&o.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,en(r,u,f))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,d.Yk)(r)){var u,c,l=!(0,_.kJ)(r)&&((0,d.Yk)(t)||(0,_.j)(t))?t:void 0,f=r;l&&!i&&(i=[(0,d.Yk)(l)?l.__ref:l]);var p=function(e,t){return(0,_.kJ)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=p(l,t),o=p(f,t);if(void 0!==o){i&&i.push(t);var u=s.applyMerges(e,r,o,n,i);u!==o&&(c=c||new Map).set(t,u),i&&(0,a.kG)(i.pop()===t)}}),c&&(r=(0,_.kJ)(f)?f.slice(0):(0,o.pi)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(u=n.store).getStorage.apply(u,i)):r},e}(),eo=[];function ea(e,t){var r=e.map;return r.has(t)||r.set(t,eo.pop()||{map:new Map}),r.get(t)}function es(e){return!e||!(e.info||e.map.size)}function eu(e,t){var r=e.map,n=r.get(t);n&&es(n)&&(eo.push(n),r.delete(t))}var ec=new Set,el=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=H.QS,r.txCount=0,r.config=(0,_.jS)(t),r.addTypename=!!r.config.addTypename,r.policies=new Z({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new O.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new ei(this,this.storeReader=new M({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,_.lg)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,s.re)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(I(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,N.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof f)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(_.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,H._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,H.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){N.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,d.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(_.RI.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),N.B.reset(),e&&e.discardWatches?(this.watches.forEac
12h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,H.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,p.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,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,u.D)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(l)},900:function(e,t,r){"use strict";r.d(t,{B:function(){return f},h:function(){return l}});var n,i,o=r(655);r(3917);var a=r(657),s=r(3154),u=r(320),c=r(9641),l=function(){function e(){this.known=new(u.sy?WeakSet:Set),this.pool=new a.B(u.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,s.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,s.s)(e)){var t=(0,s.s)(e)?(0,c.kJ)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,s.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return!i.array&&(this.known.add(i.array=n),__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],u=this.sortedKeys(e);a.push(u.json);var c=a.length;u.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var l=i.object=Object.create(o);this.known.add(l),u.sorted.forEach(function(e,t){l[e]=a[c+t]}),__DEV__&&Object.freeze(l)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),f=Object.assign(function(e){if((0,s.s)(e)){void 0===n&&d();var t=n.admit(e),r=i.get(t);return void 0===r&&i.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)},{reset:d});function d(){n=new l,i=new(u.mr?WeakMap:Map)}},6438:function(e,t,r){"use strict";r.d(t,{QS:function(){return c},_v:function(){return u},ab:function(){return i},li:function(){return s}});var n=r(507),i=new(r(8751)).g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var u=Array.from(r);r.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},9939:function(e,t,r){"use strict";r.d(t,{f:function(){return e$}});var n,i,o=r(655),a=r(3917);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var l=function(){return"function"==typeof Symbol},f=function(e){return l()&&Boolean(Symbol[e])},d=function(e){return f(e)?Symbol[e]:"@@"+e};l()&&!f("observable")&&(Symbol.observable=Symbol("observable"));var p=d("iterator"),h=d("observable"),v=d("species");function y(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function m(e){var t=e.constructor;return void 0!==t&&null===(t=t[v])&&(t=void 0),void 0!==t?t:T}function g(e){g.log?g.log(e):setTimeout(function(){throw e})}function b(e){Promise.resolve().then(function(){try{e()}catch(e){g(e)}})}function w(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=y(t,"unsubscribe");r&&r.call(t)}}catch(e){g(e)}}}function E(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function S(e,t,r){e._state="running";var n=e._observer;try{var i=y(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(E(e),i)i.call(n,r);else throw r;break;case"complete":E(e),i&&i.call(n)}}catch(e){g(e)}"closed"===e._state?w(e):"running"===e._state&&(e._state="ready")}function _(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],b(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(S(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}S(e,t,r)}}var k=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new A(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(E(this),w(this))},c(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),A=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){_(this._subscription,"next",e)},t.error=function(e){_(this._subscription,"error",e)},t.complete=function(){_(this._subscription,"complete")},c(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),T=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new k(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(m(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(m(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=m(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=m(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]
12))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=m(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[h]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var n=y(t,h);if(n){var i=n.call(t);if(Object(i)!==i)throw TypeError(i+" is not an object");return i instanceof T&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(f("iterator")&&(n=y(t,p)))return new r(function(e){b(function(){if(!e.closed){for(var r,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}(e))){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){b(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){b(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},c(e,null,[{key:v,get:function(){return this}}]),e}();l()&&Object.defineProperty(T,Symbol("extensions"),{value:{symbol:h,hostReportError:g},configurable:!0});var O=r(6765);function x(e,t){return t?t(e):T.of()}function C(e){return"function"==typeof e?new R(e):e}function P(e){return e.request.length<=1}var D=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return(0,o.ZT)(t,e),t}(Error),R=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return T.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(C).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=C(r),o=C(n||new e(x));return new e(P(i)&&P(o)?function(e){return t(e)?i.request(e)||T.of():o.request(e)||T.of()}:function(e,r){return t(e)?i.request(e,r)||T.of():o.request(e,r)||T.of()})},e.execute=function(e,t){var r,n,i,s;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw __DEV__?new a.ej("illegal argument: ".concat(i)):new a.ej(27)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?(0,O.rY)(n.query)||void 0:""),s=(0,o.pi)({},i),Object.defineProperty(n,"setContext",{enumerable:!1,value:function(e){s="function"==typeof e?(0,o.pi)((0,o.pi)({},s),e(s)):(0,o.pi)((0,o.pi)({},s),e)}}),Object.defineProperty(n,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},s)}}),n))||T.of()},e.concat=function(t,r){var n=C(t);if(P(n))return __DEV__&&a.kG.warn(new D("You are calling concat on a terminating link, which will have no effect",n)),n;var i=C(r);return new e(P(i)?function(e){return n.request(e,function(e){return i.request(e)||T.of()})||T.of()}:function(e,t){return n.request(e,function(e){return i.request(e,t)||T.of()})||T.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(x)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new a.ej("request is not implemented"):new a.ej(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),I=R.execute,N=r(7304),j=r(9065),M=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=__DEV__?new a.ej("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new a.ej(24);throw n.parseError=e,n}return r},F=r(320);function L(e){var t={next:function(){return e.read()}};return F.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var V=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},H=Object.prototype.hasOwnProperty;function U(e,t){e.status>=300&&V(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function W(e,t){var r,n;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(r=t.next)||void 0===r||r.call(t,e.result)),null===(n=t.error)||void 0===n||n.call(t,e))}var K=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new a.ej("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new a.ej(23)},B=r(7392);let q=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function J(e){return G[e.charCodeAt(0)]}let G=["\\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"];function Q(e){return(0,N.Vn)(e,z)}let z={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>$(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=X("(",$(e.variableDefinitions,", "),")"),r=$([e.operation,$([e.name,t]),$(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+X(" = ",r)+X(" ",$(n," "))},SelectionSet:{leave:({selections:e})=>Y(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=X("",e,": ")+t,a=o+X("(",$(r,", "),")");return a.length>80&&(a=o+X("(\n",Z($(r,"\n")),"\n)")),$([a,$(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+X(" ",$(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>$(["...",X("on ",e),$(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${X("(",$(r,", "),")")} on ${t} ${X("",$(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
12,StringValue:{leave:({value:e,block:t})=>t?(0,B.LZ)(e):`"${e.replace(q,J)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+$(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+$(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+X("(",$(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>X("",e,"\n")+$(["schema",$(t," "),Y(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>X("",e,"\n")+$(["scalar",t,$(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>X("",e,"\n")+$(["type",t,X("implements ",$(r," & ")),$(n," "),Y(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>X("",e,"\n")+t+(ee(r)?X("(\n",Z($(r,"\n")),"\n)"):X("(",$(r,", "),")"))+": "+n+X(" ",$(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>X("",e,"\n")+$([t+": "+r,X("= ",n),$(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>X("",e,"\n")+$(["interface",t,X("implements ",$(r," & ")),$(n," "),Y(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>X("",e,"\n")+$(["union",t,$(r," "),X("= ",$(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>X("",e,"\n")+$(["enum",t,$(r," "),Y(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>X("",e,"\n")+$([t,$(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>X("",e,"\n")+$(["input",t,$(r," "),Y(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>X("",e,"\n")+"directive @"+t+(ee(r)?X("(\n",Z($(r,"\n")),"\n)"):X("(",$(r,", "),")"))+(n?" repeatable":"")+" on "+$(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>$(["extend schema",$(e," "),Y(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>$(["extend scalar",e,$(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$(["extend type",e,X("implements ",$(t," & ")),$(r," "),Y(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>$(["extend interface",e,X("implements ",$(t," & ")),$(r," "),Y(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>$(["extend union",e,$(t," "),X("= ",$(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>$(["extend enum",e,$(t," "),Y(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>$(["extend input",e,$(t," "),Y(r)]," ")}};function $(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function Y(e){return X("{\n",Z($(e,"\n")),"\n}")}function X(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function Z(e){return X("  ",e.replace(/\n/g,"\n  "))}function ee(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var et={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},er=function(e,t){return t(e)},en=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function ei(e){return new T(function(t){t.error(e)})}var eo=(0,a.wY)(function(){return fetch}),ea=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,s=void 0===i?er:i,u=e.includeExtensions,c=e.preserveHeaderCase,l=e.useGETForQueries,f=e.includeUnusedVariables,d=void 0!==f&&f,p=(0,o._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&K(n||eo);var h={http:{includeExtensions:u,preserveHeaderCase:c},options:p.fetchOptions,credentials:p.credentials,headers:p.headers};return new R(function(e){var t,i,u,c=(t=e,i=r,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),f=e.getContext(),p={};if(f.clientAwareness){var v=f.clientAwareness,y=v.name,m=v.version;y&&(p["apollographql-client-name"]=y),m&&(p["apollographql-client-version"]=m)}var g=(0,o.pi)((0,o.pi)({},p),f.headers),b=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach(function(e){i=(0,o.pi)((0,o.pi)((0,o.pi)({},i),e.options),{headers:(0,o.pi)((0,o.pi)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),a=(0,o.pi)((0,o.pi)({},a),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r=Object.create(null);
12return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,a.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return a.includeExtensions&&(f.extensions=u),a.includeQuery&&(f.query=t(l,Q)),{options:i,body:f}}(e,s,et,h,{http:f.http,options:f.fetchOptions,credentials:f.credentials,headers:g}),w=b.options,E=b.body;if(E.variables&&!d){var S=new Set(Object.keys(E.variables));(0,N.Vn)(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&S.delete(e.name.value)}}),S.size&&(E.variables=(0,o.pi)({},E.variables),S.forEach(function(e){delete E.variables[e]}))}if(!w.signal){var _=en(),k=_.controller,A=_.signal;(u=k)&&(w.signal=A)}if(l&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(w.method="GET"),(0,j.FS)(["defer"],e.query)&&(w.headers=w.headers||{},w.headers.accept="multipart/mixed; deferSpec=20220824, application/json"),"GET"===w.method){var O=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=M(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=M(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}(c,E),x=O.newURI,C=O.parseError;if(C)return ei(C);c=x}else try{w.body=M(E,"Payload")}catch(e){return ei(e)}return new T(function(t){return(n||(0,a.wY)(function(){return fetch})||eo)(c,w).then(function(r){e.setContext({response:r});var n,i=null===(n=r.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){var r,n,i;return(0,o.mG)(this,void 0,void 0,function(){var a,s,u,c,l,f,d,p,h,v,y,m,g,b,w,E,S,_,k;return(0,o.Jh)(this,function(o){switch(o.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),s=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),u="boundary=",c=(null==s?void 0:s.includes(u))?null==s?void 0:s.substring((null==s?void 0:s.indexOf(u))+u.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",l="--".concat(c),f="",d=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,F.DN&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return L(s.getReader());if(s.stream)return L(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},F.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return F.DN&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),p=!0,o.label=1;case 1:if(!p)return[3,3];return[4,d.next()];case 2:for(v=(h=o.sent()).value,y=h.done,m="string"==typeof v?v:a.decode(v),p=!y,f+=m,g=f.indexOf(l);g>-1;){if(b=void 0,b=(k=[f.slice(0,g),f.slice(g+l.length)])[0],f=k[1],b.trim()){if(w=b.indexOf("\r\n\r\n"),(E=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(b.slice(0,w))["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");S=b.slice(w);try{_=U(e,S.replace("\r\n","")),(Object.keys(_).length>1||"data"in _||"incremental"in _||"errors"in _)&&(null===(n=t.next)||void 0===n||n.call(t,_))}catch(e){W(e,t)}}g=f.indexOf(l)}return[3,1];case 3:return null===(i=t.complete)||void 0===i||i.call(t),[2]}})})}(r,t):function(e,t,r){var n;(n=e).text().then(function(e){return U(n,e)}).then(function(e){return n.status>=300&&V(n,e,"Response not successful: Received status code ".concat(n.status)),Array.isArray(e)||H.call(e,"data")||H.call(e,"errors")||V(n,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName,"'.")),e}).then(function(e){var t,n;null===(t=r.next)||void 0===t||t.call(r,e),null===(n=r.complete)||void 0===n||n.call(r)}
12).catch(function(e){return W(e,r)})}(r,e,t)}).catch(function(e){return W(e,t)}),function(){u&&u.abort()}})})},es=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,ea(t).request)||this;return r.options=t,r}return(0,o.ZT)(t,e),t}(R),eu=r(2152),ec=r(2651),el=r(182);function ef(e){return"incremental"in e}function ed(e,t){var r=e,n=new el.w0;return ef(t)&&(0,ec.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}var ep=r(900);function eh(e,t,r){return new T(function(n){var i=n.next,o=n.error,a=n.complete,s=0,u=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++s;var r=function(){return e(t)};c=c.then(r,r).then(function(e){--s,i&&i.call(n,e),u&&f.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){u=!0,!s&&a&&a.call(n)}},d=e.subscribe(f);return function(){return d.unsubscribe()}})}function ev(e){var t=ey(e);return(0,ec.O)(t)}function ey(e){var t=(0,ec.O)(e.errors)?e.errors.slice(0):[];return ef(e)&&(0,ec.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var em=r(6982),eg=r(1761),eb=r(3154),ew=r(897);function eE(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function eS(e){function t(t){Object.defineProperty(e,t,{value:T})}return F.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function e_(e){return e&&"function"==typeof e.then}var ek=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),eE(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),eE(r.observers,"error",e))},complete:function(){var e=r.sub;if(null!==e){var t=r.sources.shift();t?e_(t)?t.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=t.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),eE(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new T(t)]),e_(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,o.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(T);eS(ek);var eA=function(e){var t="";return((0,ec.O)(e.graphQLErrors)||(0,ec.O)(e.clientErrors))&&(e.graphQLErrors||[]).concat(e.clientErrors||[]).forEach(function(e){var r=e?e.message:"Error message not found.";t+="".concat(r,"\n")}),e.networkError&&(t+="".concat(e.networkError.message,"\n")),t=t.replace(/\n$/,"")},eT=function(e){function t(r){var n=r.graphQLErrors,i=r.clientErrors,o=r.networkError,a=r.errorMessage,s=r.extraInfo,u=e.call(this,a)||this;return u.name="ApolloError",u.graphQLErrors=n||[],u.clientErrors=i||[],u.networkError=o||null,u.message=a||eA(u),u.extraInfo=s,u.__proto__=t.prototype,u}return(0,o.ZT)(t,e),t}(Error);function eO(e){return!!e&&e<7}(n=i||(i={}))[n.loading=1]="loading",n[n.setVariables=2]="setVariables",n[n.fetchMore=3]="fetchMore",n[n.refetch=4]="refetch",n[n.poll=6]="poll",n[n.ready=7]="ready",n[n.error=8]="error";var ex=r(9487),eC=r(3712),eP=Object.assign,eD=Object.hasOwnProperty,eR=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=eN)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=n,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,u=(void 0===s?{}
12:s).fetchPolicy,c=void 0===u?"cache-first":u,l=i.fetchPolicy,f=void 0===l?c:l,d=i.initialFetchPolicy;a.options=(0,o.pi)((0,o.pi)({},i),{initialFetchPolicy:void 0===d?"standby"===f?c:f:d,fetchPolicy:f}),a.queryId=n.queryId||r.generateQueryId();var p=(0,O.$H)(a.query);return a.queryName=p&&p.name&&p.name.value,a}return(0,o.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||i.ready,n=(0,o.pi)((0,o.pi)({},t),{loading:eO(r),networkStatus:r}),a=this.options.fetchPolicy,s=void 0===a?"cache-first":a;if("network-only"===s||"no-cache"===s||"standby"===s||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(n.data=u.result),(0,eu.D)(n.data,{})&&(n.data=void 0),u.complete?(delete n.partial,u.complete&&n.networkStatus===i.loading&&("cache-first"===s||"cache-only"===s)&&(n.networkStatus=i.ready,n.loading=!1)):n.partial=!0,!__DEV__||u.complete||this.options.partialRefetch||n.loading||n.data||n.error||ej(u.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!(0,eu.D)(this.last.result,e)||t&&!(0,eu.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,eu.D)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if("cache-and-network"===n?r.fetchPolicy=n:"no-cache"===n?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",__DEV__&&e&&eD.call(e,"variables")){var s=(0,O.iW)(this.query),u=s.variableDefinitions;(!u||!u.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&a.kG.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=s.name)||void 0===t?void 0:t.value)||JSON.stringify(s),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!(0,eu.D)(this.options.variables,e)&&(r.variables=this.options.variables=(0,o.pi)((0,o.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,i.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,o.pi)((0,o.pi)({},e.query?e:(0,o.pi)((0,o.pi)((0,o.pi)((0,o.pi)({},this.options),{query:this.query}),e),{variables:(0,o.pi)((0,o.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),n=this.queryManager.generateQueryId(),a=this.queryInfo,s=a.networkStatus;a.networkStatus=i.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(n,r,i.fetchMore).then(function(o){return t.queryManager.removeQuery(n),a.networkStatus===i.fetchMore&&(a.networkStatus=s),t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:o.data,variables:r.variables})}):n.writeQuery({query:r.query,variables:r.variables,data:o.data})},onWatchUpdated:function(e){u.add(e.query)}}),o}).finally(function(){u.has(t.query)||eI(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&a.kG.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return(0,eu.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},i.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){__DEV__?(0,a.kG)(r,"Attempted to start a polling query without a polling interval."):(0,a.kG)(r,13),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(eO(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},i.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=(0,o.pi)((0,o.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?e:(0,ex.X)(e),variables:t}),(0,ec.O)(e.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(e,t){var r=this;this.isTornDown=!1;var n=t===i.refetch||t===i.fetchMore||t===i.poll,a=this.options.variables,s=this.options.fetchPolicy,u=(0,eC.o)(this.options,e||{}),c=n?u:eP(this.options,u);!n&&(this.updatePolling(),e&&e.variables&&!(0,eu.D)(e.variables,a)&&"standby"!==c.fetchPolicy&&c.fetchPolicy===s&&(this.applyNextFetchPolicy("variables-changed",c),void 0===t&&(t=i.setVariables)));var l=c.variables&&(0,o.pi)({},c.variables),f=this.fetch(c,t),d={next:function(e){r.reportResult(e,l)},error:function(e){r.reportError(e,l)}};return n||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=d),f.addObserver(d),f.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e,t))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),eE(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=(0,o.pi)((0,o.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:i.error,loading:!1});this.updateLastResult(r,t),eE(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(T);function eI(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=n,"function"==typeof n)?n.apply(this,arguments):r}}):e.reobserve()}function eN(e){__DEV__&&a.kG.error("Unhandled error",e.message,e.stack)}function ej(e){__DEV__&&e&&__DEV__&&a.kG.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}eS(eR);var eM=r(7359);function eF(e){return e.kind===eM.h.FIELD||e.kind===eM.h.FRAGMENT_SPREAD||e.kind===eM.h.INLINE_FRAGMENT}var eL=r(3361),eV=r(6438),eH=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,el.Ee)(t.resolvers,e)}):this.resolvers=(0,el.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,s).then(function(e){return(0,o.pi)((0,o.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,j.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,em.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,o.pi)((0,o.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,o.mG)(this,void 0,void 0,function(){return(0,o.Jh)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,o.pi)((0,o.pi)({},t),e.exportedVariables)})]:[2,(0,o.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,N.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return N.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,em.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,a){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),(0,o.mG)(this,void 0,void 0,function(){var s,u,c,l,f,d,p,h,v,y;return(0,o.Jh)(this,function(m){return s=(0,O.p$)(e),u=(0,O.kU)(e),c=(0,eL.F)(u),l=this.collectSelectionsToResolve(s,c),d=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=this,h=p.cache,v=p.client,y={fragmentMap:c,context:(0,o.pi)((0,o.pi)({},r),{cache:h,client:v}),variables:n,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,y).then(function(e){return{result:e,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,o.mG)(this,void 0,void 0,function(){var i,s,u,c,l,f=this;return(0,o.Jh)(this,function(d){return i=n.fragmentMap,s=n.context,u=n.variables,c=[r],l=function(e){return(0,o.mG)(f,void 0,void 0,function(){var l,f;return(0,o.Jh)(this,function(o){return(t||n.selectionsToResolve.has(e))&&(0,j.LZ)(e,u)?(0,eg.My)(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&c.push(((r={}
12)[(0,eg.u2)(e)]=t,r))})]:((0,eg.Ao)(e)?l=e:(l=i[e.name.value],__DEV__?(0,a.kG)(l,"No fragment named ".concat(e.name.value)):(0,a.kG)(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,n.fragmentMatcher(r,f,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,n).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,el.bw)(c)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,o.mG)(this,void 0,void 0,function(){var i,a,s,u,c,l,f,d,p,h=this;return(0,o.Jh)(this,function(o){return r?(i=n.variables,u=(a=e.name.value)!==(s=(0,eg.u2)(e)),l=Promise.resolve(c=r[s]||r[a]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(p=d[u?a:s])&&(l=Promise.resolve(eV.ab.withValue(this.cache,p,[r,(0,eg.NC)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,o,a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),(0,N.Vn)(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach(function(e){r(e)&&eF(e)&&o.add(e)})},FragmentSpread:function(n,i,s,u,c){var l=t[n.name.value];__DEV__?(0,a.kG)(l,"No fragment named ".concat(n.name.value)):(0,a.kG)(l,12);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&eF(e)&&o.add(e)}),o.add(n),f.forEach(function(e){o.add(e)}))}})}return n.get(i)}(e)},e}(),eU=new(F.mr?WeakMap:Map);function eW(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return eU.set(e,(eU.get(e)+1)%1e15),r.apply(this,arguments)})}function eK(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var eB=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;eU.has(r)||(eU.set(r,0),eW(r,"evict"),eW(r,"modify"),eW(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||i.loading;return this.variables&&this.networkStatus!==i.loading&&!(0,eu.D)(this.variables,e.variables)&&(t=i.setVariables),(0,eu.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){eK(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,eu.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,eu.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():eI(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
12eK(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(eO(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,o.pi)((0,o.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,eu.D)(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===eU.get(this.cache)&&(0,eu.D)(t,r.variables)&&(0,eu.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new el.w0,a=(0,ec.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,ec.O)(e.incremental)){var s=ed(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(eq(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:eU.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=i.ready},e.prototype.markError=function(e){return this.networkStatus=i.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function eq(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!ev(e);return!n&&r&&e.data&&(n=!0),n}var eJ=Object.prototype.hasOwnProperty,eG=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,u=e.localState,c=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(F.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=u||new eH({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!c,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(__DEV__?new a.ej("QueryManager stopped while query was in flight"):new a.ej(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,n=e.mutation,i=e.variables,s=e.optimisticResponse,u=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,d=void 0!==f&&f,p=e.update,h=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,m=e.errorPolicy,g=void 0===m?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":m,b=e.keepRootFields,w=e.context;return(0,o.mG)(this,void 0,void 0,function(){var e,t,r,c,f,v;return(0,o.Jh)(this,function(m){switch(m.label){case 0:if(__DEV__?(0,a.kG)(n,"mutation option is required. You must specify your GraphQL document in the mutation option."):(0,a.kG)(n,15),__DEV__?(0,a.kG)("network-only"===y||"no-cache"===y,"Mutations supp
12ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):(0,a.kG)("network-only"===y||"no-cache"===y,16),e=this.generateMutationId(),r=(t=this.transform(n)).document,c=t.hasClientExports,n=this.cache.transformForLink(r),i=this.getVariables(n,i),!c)return[3,2];return[4,this.localState.addExportedVariables(n,i,w)];case 1:i=m.sent(),m.label=2;case 2:return f=this.mutationStore&&(this.mutationStore[e]={mutation:n,variables:i,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:n,variables:i,fetchPolicy:y,errorPolicy:g,context:w,updateQueries:u,update:p,keepRootFields:b}),this.broadcastQueries(),v=this,[2,new Promise(function(t,r){return eh(v.getObservableFromLink(n,(0,o.pi)((0,o.pi)({},w),{optimisticResponse:s}),i,!1),function(t){if(ev(t)&&"none"===g)throw new eT({graphQLErrors:ey(t)});f&&(f.loading=!1,f.error=null);var r=(0,o.pi)({},t);return"function"==typeof l&&(l=l(r)),"ignore"===g&&ev(r)&&delete r.errors,v.markMutationResult({mutationId:e,result:r,document:n,variables:i,fetchPolicy:y,errorPolicy:g,context:w,update:p,updateQueries:u,awaitRefetchQueries:d,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:h,keepRootFields:b})}).subscribe({next:function(e){v.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){f&&(f.loading=!1,f.error=t),s&&v.cache.removeOptimistic(e),v.broadcastQueries(),r(t instanceof eT?t:new eT({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&eq(n,e.errorPolicy)){if(ef(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),ef(n)&&(0,ec.O)(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=ed(s.result,n)),void 0!==u&&(n.data=u,i.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&eJ.call(c,s)){var u=c[s],l=r.queries.get(o),f=l.document,d=l.variables,p=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),h=p.result;if(p.complete&&h){var v=u(h,{mutationResult:n,queryName:f&&(0,O.rY)(f)||void 0,queryVariables:d});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:d})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var s,u=e.update,c=!(ef(s=n)||"hasNext"in s&&"data"in s)||ef(n)&&!n.hasNext;if(u){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(n=(0,o.pi)((0,o.pi)({},n),{data:l.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}c&&u(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,o.pi)((0,o.pi)({},t),{result:{data:n}}),e)}catch(e){__DEV__&&a.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=(0,em.Fo)(r),i=this.localState.clientQuery(r),a=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:(0,j.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:a,defaultVars:(0,O.O4)((0,O.$H)(r)),asQuery:(0,o.pi)((0,o.pi)({},r),{definitions:r.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,o.pi)((0,o.pi)({},e),{operation:"query"}):e})})},u=function(e){e&&!t.has(e)&&t.set(e,s)};u(e),u(r),u(i),u(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,o.pi)((0,o.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,o.pi)((0,o.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new eB(this),r=new eR({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?(0,a.kG)(e.query,"query option is required. You must specify your GraphQL document in the query option."):(0,a.kG)(e.query,17),__DEV__?(0,a.kG)("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):(0,a.kG)("Document"===e.query.kind,18),__DEV__?(0,a.kG)(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):(0,a.kG)(!e.returnPartialData,19),__DEV__?(0,a.kG)(!e.pollInterval,"pollInterval option only supported on watchQuery."):(0,a.kG)(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new a.ej("Store reset while query was in flight (not completed in link chain)"):new a.ej(21)),this.queries.forEac
12h(function(e){e.observableQuery?e.networkStatus=i.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?n.set(e,!1):(0,eg.JW)(e)?n.set(t.transform(e).document,!1):(0,eb.s)(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e){r.set(i,o);return}var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&n.has(s)||a&&n.has(a))&&(r.set(i,o),s&&n.set(s,!0),a&&n.set(a,!0))}}),i.size&&i.forEach(function(e){var n=(0,ew.X)("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),s=new eR({queryManager:t,queryInfo:i,options:(0,o.pi)((0,o.pi)({},e),{fetchPolicy:"network-only"})});(0,a.kG)(s.queryId===n),i.setObservableQuery(s),r.set(n,s)}),__DEV__&&n.size&&n.forEach(function(e,t){!e&&__DEV__&&a.kG.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var u=function(e){return t.getObservableFromLink(r,s,e).map(function(o){if("no-cache"!==n&&(eq(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),ev(o))throw new eT({graphQLErrors:o.errors});return o})};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,s).then(u);return new T(function(e){var t=null;return c.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,a,s=this;void 0===n&&(n=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var u=this.transform(e).serverQuery;if(u){var c=this.inFlightLinkObservables,l=this.link,f={query:u,variables:r,operationName:(0,O.rY)(u)||void 0,context:this.prepareContext((0,o.pi)((0,o.pi)({},t),{forceFetch:!n}))};if(t=f.context,n){var d=c.get(u)||new Map;c.set(u,d);var p=(0,ep.B)(r);if(!(a=d.get(p))){var h=new ek([I(l,f)]);d.set(p,a=h),h.beforeNext(function(){d.delete(p)&&d.size<1&&c.delete(u)})}}else a=new ek([I(l,f)])}else a=new ek([T.of({data:{}})]),t=this.prepareContext(t);var v=this.transform(e).clientQuery;return v&&(a=eh(a,function(e){return s.localState.runResolvers({document:v,remoteResult:e,context:t,variables:r})})),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(this.transform(e.document).document);return eh(this.getObservableFromLink(o,r.context,r.variables),function(a){var s=ey(a),u=s.length>0;if(n>=e.lastRequestId){if(u&&"none"===r.errorPolicy)throw e.markError(new eT({graphQLErrors:s}));e.markResult(a,o,r,t),e.markReady()}var c={data:a.data,loading:!1,networkStatus:i.ready};return u&&"ignore"!==r.errorPolicy&&(c.errors=s,c.networkStatus=i.error),c},function(t){var r=t.hasOwnProperty("graphQLErrors")?t:new eT({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){var n=this;void 0===r&&(r=i.loading);var o=this.transform(t.query).document,a=this.getVariables(o,t.variables),s=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,d=void 0===f?u&&u.errorPolicy||"none":f,p=t.returnPartialData,h=t.notifyOnNetworkStatusChange,v=t.context,y=Object.assign({},t,{query:o,variables:a,fetchPolicy:l,errorPolicy:d,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==h&&h,context:void 0===v?{}:v}),m=function(e){y.variables=e;var i=n.fetchQueryByPolicy(s,y,r);return"standby"!==y.fetchPolicy&&i.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",t),i},g=function(){return n.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(e){g(),setTimeout(function(){return b.cancel(e)})});var b=new ek(this.transform(y.query).hasClientExports?this.localState.addExportedVariables(y.query,y.variables,y.context).then(m):m(y.variables));return b.promise.then(g,g),b},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,ew.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;
12n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof eB&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,a=t.query,s=t.variables,u=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,d=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:this.transform(a).document,variables:s,networkStatus:r});var v=function(){return e.getDiff(s)},y=function(t,r){void 0===r&&(r=e.networkStatus||i.loading);var u=t.result;!__DEV__||f||(0,eu.D)(u,{})||ej(t.missing);var c=function(e){return T.of((0,o.pi)({data:e,loading:eO(r),networkStatus:r},t.complete?null:{partial:!0}))};return u&&n.transform(a).hasForcedResolvers?n.localState.runResolvers({document:a,remoteResult:{data:u},context:d,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return c(e.data||void 0)}):"none"===l&&r===i.refetch&&Array.isArray(t.missing)?c(void 0):c(u)},m="no-cache"===u?0:r===i.refetch&&"merge"!==c?1:2,g=function(){return n.getResultsFromLink(e,m,{variables:s,context:d,fetchPolicy:u,errorPolicy:l})},b=p&&"number"==typeof h&&h!==r&&eO(r);switch(u){default:case"cache-first":var w=v();if(w.complete)return[y(w,e.markReady())];if(f||b)return[y(w),g()];return[g()];case"cache-and-network":var w=v();if(w.complete||f||b)return[y(w),g()];return[g()];case"cache-only":return[y(v(),e.markReady())];case"network-only":if(b)return[y(v()),g()];return[g()];case"no-cache":if(b)return[y(e.getDiff()),g()];return[g()];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new eB(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,o.pi)((0,o.pi)({},t),{clientAwareness:this.clientAwareness})},e}();function eQ(e,t){return(0,eC.o)(e,t,t.variables&&{variables:(0,o.pi)((0,o.pi)({},e&&e.variables),t.variables)})}var ez=!1,e$=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,s=e.ssrMode,u=void 0!==s&&s,c=e.ssrForceFetchDelay,l=void 0===c?0:c,f=e.connectToDevTools,d=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:f,p=e.queryDeduplication,h=void 0===p||p,v=e.defaultOptions,y=e.assumeImmutableResults,m=e.resolvers,g=e.typeDefs,b=e.fragmentMatcher,w=e.name,E=e.version,S=e.link;if(S||(S=r?new es({uri:r,credentials:n,headers:i}):R.empty()),!o)throw __DEV__?new a.ej("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new a.ej(9);if(this.link=S,this.cache=o,this.disableNetworkFetches=u||l>0,this.queryDeduplication=h,this.defaultOptions=v||Object.create(null),this.typeDefs=g,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),d&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!ez&&d&&__DEV__&&(ez=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var _=window.navigator,k=_&&_.userAgent,A=void 0;"string"==typeof k&&(k.indexOf("Chrome/")>-1?A="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":k.indexOf("Firefox/")>-1&&(A="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),A&&__DEV__&&a.kG.log("Download the Apollo DevTools for a better development experience: "+A)}this.version="3.7.7",this.localState=new eH({cache:o,client:this,resolvers:m,fragmentMatcher:b}),this.queryManager=new eG({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:h,ssrMode:u,clientAwareness:{name:w,version:E},localState:this.localState,assumeImmutableResults:void 0!==y&&y,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=eQ(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,o.pi)((0,o.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=eQ(this.defaultOptions.query,e)),__DEV__?(0,a.kG)("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):(0,a.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,o.pi)((0,o.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=eQ(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return I(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){__DEV__&&a.kG.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},2651:function(e,t,r){"use strict";function n(e){return Array.isArray(e)&&e.length>0}
12r.d(t,{O:function(){return n}})},320:function(e,t,r){"use strict";r.d(t,{DN:function(){return s},aS:function(){return a},mr:function(){return i},sy:function(){return o}});var n=r(3917),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)(function(){return navigator.product}),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator;(0,n.wY)(function(){return window.document.createElement}),(0,n.wY)(function(){return navigator.userAgent.indexOf("jsdom")>=0})},9487:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var o=Object.create(Object.getPrototypeOf(t));return r.set(t,o),Object.keys(t).forEach(function(n){o[n]=e(t[n],r)}),o;default:return t}}(e)}},3712:function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,{o:function(){return n}})},897:function(e,t,r){"use strict";r.d(t,{X:function(){return i}});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},182:function(e,t,r){"use strict";r.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var n=r(655),i=r(3154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var u=r.reconciler.apply(r,(0,n.ev)([e,t,i],a,!1));u!==s&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},3154:function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:function(){return n}})},3917:function(e,t,r){"use strict";r.d(t,{ej:function(){return u},kG:function(){return c},wY:function(){return p}});var n,i=r(655),o="Invariant Violation",a=Object.setPrototypeOf,s=void 0===a?function(e,t){return e.__proto__=t,e}:a,u=function(e){function t(r){void 0===r&&(r=o);var n=e.call(this,"number"==typeof r?o+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=o,s(n,t.prototype),n}return(0,i.ZT)(t,e),t}(Error);function c(e,t){if(!e)throw new u(t)}var l=["debug","log","warn","error","silent"],f=l.indexOf("log");function d(e){return function(){if(l.indexOf(e)>=f)return(console[e]||console.log).apply(console,arguments)}}function p(e){try{return e()}catch(e){}}(n=c||(c={})).debug=d("debug"),n.log=d("log"),n.warn=d("warn"),n.error=d("error");var h=p(function(){return globalThis})||p(function(){return window})||p(function(){return self})||p(function(){return global})||p(function(){return p.constructor("return this")()}),v="__DEV__",y=function(){try{return Boolean(__DEV__)}catch(e){return Object.defineProperty(h,v,{value:"production"!==p(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),h[v]}}(),m=r(3454);function g(e){try{return e()}catch(e){}}var b=g(function(){return globalThis})||g(function(){return window})||g(function(){return self})||g(function(){return global})||g(function(){return g.constructor("return this")()}),w=!1;!b||g(function(){return"production"})||g(function(){return m})||(Object.defineProperty(b,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),w=!0),r(1270).H,w&&(delete b.process,w=!1),__DEV__?c("boolean"==typeof y,y):c("boolean"==typeof y,39)},9065:function(e,t,r){"use strict";r.d(t,{FS:function(){return a},LZ:function(){return o},mj:function(){return s}});var n=r(3917),i=r(7304);function o(e,t){var r,i=e.directives;
12return!i||!i.length||(r=[],i&&i.length&&i.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var i=e.arguments,o=e.name.value;__DEV__?(0,n.kG)(i&&1===i.length,"Incorrect number of arguments for the @".concat(o," directive.")):(0,n.kG)(i&&1===i.length,41);var a=i[0];__DEV__?(0,n.kG)(a.name&&"if"===a.name.value,"Invalid argument for the @".concat(o," directive.")):(0,n.kG)(a.name&&"if"===a.name.value,42);var s=a.value;__DEV__?(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),"Argument for the @".concat(o," directive must be a variable or a boolean value.")):(0,n.kG)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),43),r.push({directive:e,ifArgument:a})}}),r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],__DEV__?(0,n.kG)(void 0!==o,"Invalid variable referenced in @".concat(r.name.value," directive.")):(0,n.kG)(void 0!==o,40)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size<o}function s(e){return e&&a(["client","export"],e,!0)}},3361:function(e,t,r){"use strict";r.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return s}});var n=r(655),i=r(3917);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new i.ej("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new i.ej(44);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&(__DEV__?(0,i.kG)(1===o.length,"Found ".concat(o.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):(0,i.kG)(1===o.length,45),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return __DEV__?(0,i.kG)(n,"No fragment named ".concat(r)):(0,i.kG)(n,46),n||null;default:return null}}},6765:function(e,t,r){"use strict";r.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return d},iW:function(){return c},kU:function(){return u},p$:function(){return f},pD:function(){return l},rY:function(){return s}});var n=r(3917),i=r(1761);function o(e){__DEV__?(0,n.kG)(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new n.ej('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new n.ej(48);return e});return __DEV__?(0,n.kG)(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):(0,n.kG)(t.length<=1,49),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return __DEV__?(0,n.kG)(t&&"query"===t.operation,"Must contain a query definition."):(0,n.kG)(t&&"query"===t.operation,50),t}function l(e){__DEV__?(0,n.kG)("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):(0,n.kG)("Document"===e.kind,51),__DEV__?(0,n.kG)(e.definitions.length<=1,"Fragment must have exactly one definition."):(0,n.kG)(e.definitions.length<=1,52);var t=e.definitions[0];return __DEV__?(0,n.kG)("FragmentDefinition"===t.kind,"Must be a fragment definition."):(0,n.kG)("FragmentDefinition"===t.kind,53),t}function f(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw __DEV__?new n.ej("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n.ej(54)}function d(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},1761:function(e,t,r){"use strict";r.d(t,{Ao:function(){return g},JW:function(){return u},My:function(){return m},NC:function(){return v},PT:function(){return d},Yk:function(){return s},kQ:function(){return a},qw:function(){return function e(t,r,n){if("string"==typeof t.__typename)return t.__typename;for(var i=0,a=r.selections;i<a.length;i++){var s=a[i];if(m(s)){if("__typename"===s.name.value)return t[y(s)]}else{var u=e(t,(0,o.hi)(s,n).selectionSet,n);if("string"==typeof u)return u}}}},u2:function(){return y},vb:function(){return c},vf:function(){return l}});var n=r(3917),i=r(3154),o=r(3361);function a(e){return{__ref:String(e)}}function s(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return c(o,e.name,e.value,i)}),e[t.value]=o}
12else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return c(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw __DEV__?new n.ej('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n.ej(55)}function l(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return c(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){return c(n,e.name,e.value,t)})),d(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export"],d=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(p(i),")")}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,h)};function h(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return c(r,e.name,e.value,t)}),r}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},6982:function(e,t,r){"use strict";r.d(t,{Gw:function(){return h},aL:function(){return m},ob:function(){return g},Fo:function(){return y}});var n=r(655),i=r(3917),o=r(7304),a=r(6765);function s(e,t,r){var n=0;return e.forEach(function(r,i){t.call(this,r,i,e)&&(e[n++]=r)},r),e.length=n,e}var u=r(1761),c=r(3361),l={kind:"Field",name:{kind:"Name",value:"__typename"}};function f(e){return!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(r[t.name.value],r)})}((0,a.$H)(e)||(0,a.pD)(e),(0,c.F)((0,a.kU)(e)))?e:null}function d(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function p(e,t){var r,i,a,c=Object.create(null),l=[],p=Object.create(null),h=[],v=f((0,o.Vn)(t,{Variable:{enter:function(e,t,r){"VariableDefinition"!==r.kind&&(c[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(d(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&l.push({name:e.value.name.value})}),t.selectionSet&&(function e(t){var r=[];return t.selections.forEach(function(t){((0,u.My)(t)||(0,u.Ao)(t))&&t.selectionSet?e(t.selectionSet).forEach(function(e){return r.push(e)}):"FragmentSpread"===t.kind&&r.push(t)}),r})(t.selectionSet).forEach(function(e){h.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){p[e.name.value]=!0}},Directive:{enter:function(t){if(d(e)(t))return null}}}));return v&&s(l,function(e){return!!e.name&&!c[e.name]}).length&&(r=l,i=v,a=function(e){return r.some(function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))})},v=f((0,o.Vn)(i,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions?e.variableDefinitions.filter(function(e){return!r.some(function(t){return t.name===e.variable.name.value})}):[]})}},Field:{enter:function(e){if(r.some(function(e){return e.remove})){var t=0;if(e.arguments&&e.arguments.forEach(function(e){a(e)&&(t+=1)}),1===t)return null}}},Argument:{enter:function(e){if(a(e))return null}}}))),v&&s(h,function(e){return!!e.name&&!p[e.name]}).length&&(v=function(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return f((0,o.Vn)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(h,v)),v}var h=Object.assign(function(e){return(0,o.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.ev)((0,n.ev)([],i,!0),[l],!1)})}}}})},{added:function(e){return e===l}}),v={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&i.kG.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function y(e){return p([v],(0,a.A$)(e))}function m(e){return"query"===(0,a.p$)(e).operation?e:(0,o.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function g(e){(0,a.A$)(e);var t=p([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,o.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return(0,u.My)(e)&&"__typename"===e.name.value}))return null}}})),t}}
12,8857:function(e,t,r){"use strict";r.d(t,{u:function(){return I}});var n,i=r(7294),o=r(2351),a=r(6567),s=r(2984),u=r(6723);function c(){let e=(0,i.useRef)(!1);return(0,u.e)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var l=r(3855),f=r(2180),d=r(3784);function p(){let e=[],t=[],r={enqueue(e){t.push(e)},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){var t;let n={current:!0};return t=()=>{n.current&&e[0]()},"function"==typeof queueMicrotask?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e})),r.add(()=>{n.current=!1})},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()},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})})}};return r}function h(e,...t){e&&t.length>0&&e.classList.add(...t)}function v(e,...t){e&&t.length>0&&e.classList.remove(...t)}function y(){let[e]=(0,i.useState)(p);return(0,i.useEffect)(()=>()=>e.dispose(),[e]),e}var m=r(3781),g=r(4067),b=r(7896);function w(e=""){return e.split(" ").filter(e=>e.trim().length>1)}let E=(0,i.createContext)(null);E.displayName="TransitionContext";var S=((n=S||{}).Visible="visible",n.Hidden="hidden",n);let _=(0,i.createContext)(null);function k(e){return"children"in e?k(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function A(e,t){let r=(0,l.E)(e),n=(0,i.useRef)([]),a=c(),u=y(),f=(0,m.z)((e,t=o.l4.Hidden)=>{let i=n.current.findIndex(({el:t})=>t===e);-1!==i&&((0,s.E)(t,{[o.l4.Unmount](){n.current.splice(i,1)},[o.l4.Hidden](){n.current[i].state="hidden"}}),u.microTask(()=>{var e;!k(n)&&a.current&&(null==(e=r.current)||e.call(r))}))}),d=(0,m.z)(e=>{let t=n.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>f(e,o.l4.Unmount)}),p=(0,i.useRef)([]),h=(0,i.useRef)(Promise.resolve()),v=(0,i.useRef)({enter:[],leave:[],idle:[]}),g=(0,m.z)((e,r,n)=>{p.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),null==t||t.chains.current[r].push([e,new Promise(e=>{p.current.push(e)})]),null==t||t.chains.current[r].push([e,new Promise(e=>{Promise.all(v.current[r].map(([e,t])=>t)).then(()=>e())}
12)]),"enter"===r?h.current=h.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),b=(0,m.z)((e,t,r)=>{Promise.all(v.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=p.current.shift())||e()}).then(()=>r(t))});return(0,i.useMemo)(()=>({children:n,register:d,unregister:f,onStart:g,onStop:b,wait:h,chains:v}),[d,f,n,g,b,v,h])}function T(){}_.displayName="NestingContext";let O=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function x(e){var t;let r={};for(let n of O)r[n]=null!=(t=e[n])?t:T;return r}let C=o.AN.RenderStrategy,P=(0,o.yV)(function(e,t){var r;let n,{beforeEnter:S,afterEnter:T,beforeLeave:O,afterLeave:P,enter:D,enterFrom:R,enterTo:I,entered:N,leave:j,leaveFrom:M,leaveTo:F,...L}=e,V=(0,i.useRef)(null),H=(0,d.T)(V,t),U=L.unmount?o.l4.Unmount:o.l4.Hidden,{show:W,appear:K,initial:B}=function(){let e=(0,i.useContext)(E);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[q,J]=(0,i.useState)(W?"visible":"hidden"),G=function(){let e=(0,i.useContext)(_);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:Q,unregister:z}=G,$=(0,i.useRef)(null);(0,i.useEffect)(()=>Q(V),[Q,V]),(0,i.useEffect)(()=>{if(U===o.l4.Hidden&&V.current){if(W&&"visible"!==q){J("visible");return}return(0,s.E)(q,{hidden:()=>z(V),visible:()=>Q(V)})}},[q,V,Q,z,W,U]);let Y=(0,l.E)({enter:w(D),enterFrom:w(R),enterTo:w(I),entered:w(N),leave:w(j),leaveFrom:w(M),leaveTo:w(F)}),X=(r={beforeEnter:S,afterEnter:T,beforeLeave:O,afterLeave:P},n=(0,i.useRef)(x(r)),(0,i.useEffect)(()=>{n.current=x(r)},[r]),n),Z=(0,f.H)();(0,i.useEffect)(()=>{if(Z&&"visible"===q&&null===V.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[V,q,Z]);let ee=B&&!K,et=!Z||ee||$.current===W?"idle":W?"enter":"leave",er=(0,m.z)(e=>(0,s.E)(e,{enter:()=>X.current.beforeEnter(),leave:()=>X.current.beforeLeave(),idle:()=>{}})),en=(0,m.z)(e=>(0,s.E)(e,{enter:()=>X.current.afterEnter(),leave:()=>X.current.afterLeave(),idle:()=>{}})),ei=A(()=>{J("hidden"),z(V)},G);(function({container:e,direction:t,classes:r,onStart:n,onStop:i}){let o=c(),a=y(),f=(0,l.E)(t);(0,u.e)(()=>{let t=p();a.add(t.dispose);let u=e.current;if(u&&"idle"!==f.current&&o.current){var c,l,d,y;let e,o,a,m,g,b,w;return t.dispose(),n.current(f.current),t.add((c=u,l=r.current,d="enter"===f.current,y=()=>{t.dispose(),i.current(f.current)},o=d?"enter":"leave",a=p(),m=void 0!==y?(e={called:!1},(...t)=>{if(!e.called)return e.called=!0,y(...t)}):()=>{},"enter"===o&&(c.removeAttribute("hidden"),c.style.display=""),g=(0,s.E)(o,{enter:()=>l.enter,leave:()=>l.leave}),b=(0,s.E)(o,{enter:()=>l.enterTo,leave:()=>l.leaveTo}),w=(0,s.E)(o,{enter:()=>l.enterFrom,leave:()=>l.leaveFrom}),v(c,...l.enter,...l.enterTo,...l.enterFrom,...l.leave,...l.leaveFrom,...l.leaveTo,...l.entered),h(c,...g,...w),a.nextFrame(()=>{v(c,...w),h(c,...b),function(e,t){let r=p();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[o,a]=[n,i].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t});if(o+a!==0){let n=r.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),n())})}else t();r.add(()=>t()),r.dispose}(c,()=>(v(c,...g),h(c,...l.entered),m()))}),a.dispose)),t.dispose}},[t])}
12)({container:V,classes:Y,direction:et,onStart:(0,l.E)(e=>{ei.onStart(V,e,er)}),onStop:(0,l.E)(e=>{ei.onStop(V,e,en),"leave"!==e||k(ei)||(J("hidden"),z(V))})}),(0,i.useEffect)(()=>{ee&&(U===o.l4.Hidden?$.current=null:$.current=W)},[W,ee,q]);let eo=L;return K&&W&&b.O.isServer&&(eo={...eo,className:(0,g.A)(L.className,...Y.current.enter,...Y.current.enterFrom)}),i.createElement(_.Provider,{value:ei},i.createElement(a.up,{value:(0,s.E)(q,{visible:a.ZM.Open,hidden:a.ZM.Closed})},(0,o.sY)({ourProps:{ref:H},theirProps:eo,defaultTag:"div",features:C,visible:"visible"===q,name:"Transition.Child"})))}),D=(0,o.yV)(function(e,t){let{show:r,appear:n=!1,unmount:c,...l}=e,p=(0,i.useRef)(null),h=(0,d.T)(p,t);(0,f.H)();let v=(0,a.oJ)();if(void 0===r&&null!==v&&(r=(0,s.E)(v,{[a.ZM.Open]:!0,[a.ZM.Closed]:!1})),![!0,!1].includes(r))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[y,m]=(0,i.useState)(r?"visible":"hidden"),g=A(()=>{m("hidden")}),[b,w]=(0,i.useState)(!0),S=(0,i.useRef)([r]);(0,u.e)(()=>{!1!==b&&S.current[S.current.length-1]!==r&&(S.current.push(r),w(!1))},[S,r]);let T=(0,i.useMemo)(()=>({show:r,appear:n,initial:b}),[r,n,b]);(0,i.useEffect)(()=>{if(r)m("visible");else if(k(g)){let e=p.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&m("hidden")}else m("hidden")},[r,g]);let O={unmount:c};return i.createElement(_.Provider,{value:g},i.createElement(E.Provider,{value:T},(0,o.sY)({ourProps:{...O,as:i.Fragment,children:i.createElement(P,{ref:h,...O,...l})},theirProps:{},defaultTag:i.Fragment,features:C,visible:"visible"===y,name:"Transition"})))}),R=(0,o.yV)(function(e,t){let r=null!==(0,i.useContext)(E),n=null!==(0,a.oJ)();return i.createElement(i.Fragment,null,!r&&n?i.createElement(D,{ref:t,...e}):i.createElement(P,{ref:t,...e}))}),I=Object.assign(D,{Child:R,Root:D})},3781:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});var n=r(7294),i=r(3855);let o=function(e){let t=(0,i.E)(e);return n.useCallback((...e)=>t.current(...e),[t])}},6723:function(e,t,r){"use strict";r.d(t,{e:function(){return o}});var n=r(7294),i=r(7896);let o=(e,t)=>{i.O.isServer?(0,n.useEffect)(e,t):(0,n.useLayoutEffect)(e,t)}},3855:function(e,t,r){"use strict";r.d(t,{E:function(){return o}});var n=r(7294),i=r(6723);function o(e){let t=(0,n.useRef)(e);return(0,i.e)(()=>{t.current=e},[e]),t}},2180:function(e,t,r){"use strict";r.d(t,{H:function(){return o}});var n=r(7294),i=r(7896);function o(){let[e,t]=(0,n.useState)(i.O.isHandoffComplete);return e&&!1===i.O.isHandoffComplete&&t(!1),(0,n.useEffect)(()=>{!0!==e&&t(!0)},[e]),(0,n.useEffect)(()=>i.O.handoff(),[]),e}},3784:function(e,t,r){"use strict";r.d(t,{T:function(){return s},h:function(){return a}});var n=r(7294),i=r(3781);let o=Symbol();function a(e,t=!0){return Object.assign(e,{[o]:t})}function s(...e){let t=(0,n.useRef)(e);(0,n.useEffect)(()=>{t.current=e},[e]);let r=(0,i.z)(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[o]))?void 0:r}},6567:function(e,t,r){"use strict";r.d(t,{ZM:function(){return a},oJ:function(){return s},up:function(){return u}});var n,i=r(7294);let o=(0,i.createContext)(null);o.displayName="OpenClosedContext";var a=((n=a||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n);function s(){return(0,i.useContext)(o)}function u({value:e,children:t}){return i.createElement(o.Provider,{value:e},t)}},4067:function(e,t,r){"use strict";function n(...e){return e.filter(Boolean).join(" ")}r.d(t,{A:function(){return n}})},7896:function(e,t,r){"use strict";r.d(t,{O:function(){return a}});var n=Object.defineProperty,i=(e,t,r)=>t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,o=(e,t,r)=>(i(e,"symbol"!=typeof t?t+"":t,r),r);let a=new class{constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(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"
12:"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}},2984:function(e,t,r){"use strict";function n(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let i=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,n),i}r.d(t,{E:function(){return n}})},2351:function(e,t,r){"use strict";r.d(t,{AN:function(){return u},l4:function(){return c},sY:function(){return l},yV:function(){return p}});var n,i,o=r(7294),a=r(4067),s=r(2984),u=((n=u||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),c=((i=c||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function l({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a}){let u=d(t,e);if(o)return f(u,r,n,a);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=u;if(e)return f(t,r,n,a)}if(1&c){let{unmount:e=!0,...t}=u;return(0,s.E)(e?0:1,{0:()=>null,1:()=>f({...t,hidden:!0,style:{display:"none"}},r,n,a)})}return f(u,r,n,a)}function f(e,t={},r,n){var i;let{as:s=r,children:u,refName:c="ref",...l}=v(e,["unmount","static"]),f=void 0!==e.ref?{[c]:e.ref}:{},p="function"==typeof u?u(t):u;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let y={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n);e&&(y["data-headlessui-state"]=r.join(" "))}if(s===o.Fragment&&Object.keys(h(l)).length>0){if(!(0,o.isValidElement)(p)||Array.isArray(p)&&p.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(e=>`  - ${e}`).join(`
13`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
14`)].join(`
15`));let e=(0,a.A)(null==(i=p.props)?void 0:i.className,l.className);return(0,o.cloneElement)(p,Object.assign({},d(p.props,h(v(l,["ref"]))),y,f,function(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}}(p.ref,f.ref),e?{className:e}:{}))}return(0,o.createElement)(s,Object.assign({},v(l,["ref"]),s!==o.Fragment&&f,s!==o.Fragment&&y),p)}function d(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(e=>[e,void 0])));for(let e in r)Object.assign(t,{[e](t,...n){for(let i of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...n)}}});return t}function p(e){var t;return Object.assign((0,o.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function h(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function v(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}},9718:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return a},hkdf:function(){return a}});let n=()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw Error("unable to locate global object")};var i=async(e,t,r,i,o)=>{let{crypto:{subtle:a}}=n();return new Uint8Array(await a.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:i},await a.importKey("raw",t,"HKDF",!1,["deriveBits"]),o<<3))};function o(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}async function a(e,t,r,n,a){return i(function(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}(e),function(e){let t=o(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}(t),o(r,"salt"),function(e){let t=o(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}(n),function(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');let r=parseInt(t.substr(3),10)>>3||20;if(e>255*r)throw TypeError('"keylen" too large');return e}(a,e))}},7297:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{Z:function(){return n}})},1190:function(e,t,r){"use strict";r.d(t,{M:function(){return m}});var n=r(655),i=r(7294),o=r(9304),a=r(4735),s=r(8868);function u(){var e=(0,i.useRef)(!1);return(0,s.L)(function(){return e.current=!0,function(){e.current=!1}},[]),e}var c=r(240),l=r(6681),f=r(6316),d=function(e){var t=e.children,r=e.initial,o=e.isPresent,a=e.onExitComplete,s=e.custom,u=e.presenceAffectsLayout,d=(0,l.h)(p),h=(0,f.M)(),v=(0,i.useMemo)(function(){return{id:h,initial:r,isPresent:o,custom:s,onExitComplete:function(e){var t,r;d.set(e,!0);try{for(var i=(0,n.XA)(d.values()),o=i.next();!o.done;o=i.next())if(!o.value)return}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}null==a||a()},register:function(e){return d.set(e,!1),function(){return d.delete(e)}}}},u?void 0:[o]);return(0,i.useMemo)(function(){d.forEach(function(e,t){return d.set(t,!1)})},[o]),i.useEffect(function(){o||d.size||null==a||a()},[o]),i.createElement(c.O.Provider,{value:v},t)};function p(){return new Map}var h=r(5364),v=r(5411),y=function(e){return e.key||""},m=function(e){var t,r,c,l,f,p,m=e.children,g=e.custom,b=e.initial,w=void 0===b||b,E=e.onExitComplete,S=e.exitBeforeEnter,_=e.presenceAffectsLayout,k=void 0===_||_,A=(0,n.CR)((t=u(),c=(r=(0,n.CR)((0,i.useState)(0),2))[0],l=r[1],f=(0,i.useCallback)(function(){t.current&&l(c+1)},[c]),[(0,i.useCallback)(function(){return a.ZP.postRender(f)},[f]),c]),1)[0],T=(0,i.useContext)(h.p).forceRender;T&&(A=T);
15var O=u(),x=(p=[],i.Children.forEach(m,function(e){(0,i.isValidElement)(e)&&p.push(e)}),p),C=x,P=new Set,D=(0,i.useRef)(C),R=(0,i.useRef)(new Map).current,I=(0,i.useRef)(!0);if((0,s.L)(function(){I.current=!1,function(e,t){e.forEach(function(e){var r=y(e);t.set(r,e)})}(x,R),D.current=C}),(0,v.z)(function(){I.current=!0,R.clear(),P.clear()}),I.current)return i.createElement(i.Fragment,null,C.map(function(e){return i.createElement(d,{key:y(e),isPresent:!0,initial:!!w&&void 0,presenceAffectsLayout:k},e)}));C=(0,n.ev)([],(0,n.CR)(C),!1);for(var N=D.current.map(y),j=x.map(y),M=N.length,F=0;F<M;F++){var L=N[F];-1===j.indexOf(L)&&P.add(L)}return S&&P.size&&(C=[]),P.forEach(function(e){if(-1===j.indexOf(e)){var t=R.get(e);if(t){var r=N.indexOf(e);C.splice(r,0,i.createElement(d,{key:y(t),isPresent:!1,onExitComplete:function(){R.delete(e),P.delete(e);var t=D.current.findIndex(function(t){return t.key===e});if(D.current.splice(t,1),!P.size){if(D.current=x,!1===O.current)return;A(),E&&E()}},custom:g,presenceAffectsLayout:k},t))}}}),C=C.map(function(e){var t=e.key;return P.has(t)?e:i.createElement(d,{key:y(e),isPresent:!0,presenceAffectsLayout:k},e)}),"production"!==o.O&&S&&C.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),i.createElement(i.Fragment,null,P.size?C:C.map(function(e){return(0,i.cloneElement)(e)}))}},5364:function(e,t,r){"use strict";r.d(t,{p:function(){return n}});var n=(0,r(7294).createContext)({})},240:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var n=(0,r(7294).createContext)(null)},8716:function(e,t,r){"use strict";r.d(t,{E:function(){return i$}});var n,i,o,a,s,u=r(655),c=r(7294),l=r(9304),f=function(e){return{isEnabled:function(t){return e.some(function(e){return!!t[e]})}}},d={measureLayout:f(["layout","layoutId","drag"]),animation:f(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:f(["exit"]),drag:f(["drag","dragControls"]),focus:f(["whileFocus"]),hover:f(["whileHover","onHoverStart","onHoverEnd"]),tap:f(["whileTap","onTap","onTapStart","onTapCancel"]),pan:f(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:f(["whileInView","onViewportEnter","onViewportLeave"])},p=function(){},h=function(){},v=(0,c.createContext)({strict:!1}),y=Object.keys(d),m=y.length,g=(0,c.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),b=(0,c.createContext)({}),w=r(240),E=r(8868),S=r(1741),_={current:null},k=!1;function A(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function T(e){return Array.isArray(e)}function O(e){return"string"==typeof e||T(e)}function x(e,t,r,n,i){var o;return void 0===n&&(n={}),void 0===i&&(i={}),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),"string"==typeof t&&(t=null===(o=e.variants)||void 0===o?void 0:o[t]),"function"==typeof t&&(t=t(null!=r?r:e.custom,n,i)),t}function C(e,t,r){var n,i,o=e.getProps();return x(o,t,null!=r?r:o.custom,(n={},e.forEachValue(function(e,t){return n[t]=e.get()}),n),(i={},e.forEachValue(function(e,t){return i[t]=e.getVelocity()}),i))}function P(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||O(e.initial)||O(e.animate)||O(e.whileHover)||O(e.whileDrag)||O(e.whileTap)||O(e.whileFocus)||O(e.exit)}function D(e){return Boolean(P(e)||e.variants)}function R(e){return Array.isArray(e)?e.join(" "):e}var I=r(6681),N={hasAnimatedSinceResize:!0,hasEverUpdated:!1},j=1,M=r(5364),F=(0,c.createContext)({}),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.ZT)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,r=e.props;t&&t.setProps(r)},t.prototype.render=function(){return this.props.children},t}(c.Component),V=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function H(e){if("string"!=typeof e||e.includes("-"));else if(V.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}var U={},W=["","X","Y","Z"],K=["transformPerspective","x","y","z"];function B(e,t){return K.indexOf(e)-K.indexOf(t)}["translate","scale","rotate","skew"].forEach(function(e){return W.forEach(function(t){return K.push(e+t)})});var q=new Set(K);function J(e){return q.has(e)}var G=new Set(["originX","originY","originZ"]);function Q(e,t){var r=t.layout,n=t.layoutId;return J(e)||G.has(e)||(r||void 0!==n)&&(!!U[e]||"opacity"===e)}var z=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Y(e){return e.startsWith("--")}let X=(e,t)=>r=>Math.max(Math.min(r,t),e),Z=e=>
15e%1?Number(e.toFixed(5)):e,ee=/(-)?([\d]*\.?[\d])+/g,et=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,er=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function en(e){return"string"==typeof e}let ei=e=>({test:t=>en(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eo=ei("deg"),ea=ei("%"),es=ei("px"),eu=ei("vh"),ec=ei("vw"),el=Object.assign(Object.assign({},ea),{parse:e=>ea.parse(e)/100,transform:e=>ea.transform(100*e)}),ef={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ed=Object.assign(Object.assign({},ef),{transform:X(0,1)}),ep=Object.assign(Object.assign({},ef),{default:1});var eh=(0,u.pi)((0,u.pi)({},ef),{transform:Math.round}),ev={borderWidth:es,borderTopWidth:es,borderRightWidth:es,borderBottomWidth:es,borderLeftWidth:es,borderRadius:es,radius:es,borderTopLeftRadius:es,borderTopRightRadius:es,borderBottomRightRadius:es,borderBottomLeftRadius:es,width:es,maxWidth:es,height:es,maxHeight:es,size:es,top:es,right:es,bottom:es,left:es,padding:es,paddingTop:es,paddingRight:es,paddingBottom:es,paddingLeft:es,margin:es,marginTop:es,marginRight:es,marginBottom:es,marginLeft:es,rotate:eo,rotateX:eo,rotateY:eo,rotateZ:eo,scale:ep,scaleX:ep,scaleY:ep,scaleZ:ep,skew:eo,skewX:eo,skewY:eo,distance:es,translateX:es,translateY:es,translateZ:es,x:es,y:es,z:es,perspective:es,transformPerspective:es,opacity:ed,originX:el,originY:el,originZ:es,zIndex:eh,fillOpacity:ed,strokeOpacity:ed,numOctaves:eh};function ey(e,t,r,n){var i,o,a,s,u=e.style,c=e.vars,l=e.transform,f=e.transformKeys,d=e.transformOrigin;f.length=0;var p=!1,h=!1,v=!0;for(var y in t){var m,g=t[y];if(Y(y)){c[y]=g;continue}var b=ev[y],w=b&&"number"==typeof g?b.transform(g):g;if(J(y)){if(p=!0,l[y]=w,f.push(y),!v)continue;g!==(null!==(s=b.default)&&void 0!==s?s:0)&&(v=!1)}else(m=y,G.has(m))?(d[y]=w,h=!0):u[y]=w}p?u.transform=function(e,t,r,n){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=t.allowTransformNone,u="";o.sort(B);for(var c=!1,l=o.length,f=0;f<l;f++){var d=o[f];u+="".concat($[d]||d,"(").concat(i[d],") "),"z"===d&&(c=!0)}return!c&&(void 0===a||a)?u+="translateZ(0)":u=u.trim(),n?u=n(i,r?"":u):(void 0===s||s)&&r&&(u="none"),u}(e,r,v,n):n?u.transform=n({},""):!t.transform&&u.transform&&(u.transform="none"),h&&(u.transformOrigin=(i=d.originX,o=d.originY,a=d.originZ,"".concat(void 0===i?"50%":i," ").concat(void 0===o?"50%":o," ").concat(void 0===a?0:a)))}var em=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function eg(e,t,r){for(var n in t)z(t[n])||Q(n,r)||(e[n]=t[n])}function eb(e,t,r){var n,i,o={},a=(eg(n={},e.style||{},e),Object.assign(n,(i=e.transformTemplate,(0,c.useMemo)(function(){var e=em();ey(e,t,{enableHardwareAcceleration:!r},i);var n=e.vars,o=e.style;return(0,u.pi)((0,u.pi)({},n),o)},[t]))),e.transformValues&&(n=e.transformValues(n)),n);return Boolean(e.drag)&&!1!==e.dragListener&&(o.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),o.style=a,o}var ew=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function eE(e){return ew.has(e)}var eS=function(e){return!eE(e)};try{(n=require("@emotion/is-prop-valid").default)&&(eS=function(e){return e.startsWith("on")?!eE(e):n(e)})}catch(e){}function e_(e,t,r){return"string"==typeof e?e:es.transform(t+r*e)}
15var ek={offset:"stroke-dashoffset",array:"stroke-dasharray"},eA={offset:"strokeDashoffset",array:"strokeDasharray"};function eT(e,t,r,n){var i,o,a,s,c,l,f,d,p,h=t.attrX,v=t.attrY,y=t.originX,m=t.originY,g=t.pathLength,b=t.pathSpacing,w=t.pathOffset;ey(e,(0,u._T)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),r,n),e.attrs=e.style,e.style={};var E=e.attrs,S=e.style,_=e.dimensions;E.transform&&(_&&(S.transform=E.transform),delete E.transform),_&&(void 0!==y||void 0!==m||S.transform)&&(S.transformOrigin=(i=e_(void 0!==y?y:.5,_.x,_.width),o=e_(void 0!==m?m:.5,_.y,_.height),"".concat(i," ").concat(o))),void 0!==h&&(E.x=h),void 0!==v&&(E.y=v),void 0!==g&&(a=E,l=!1,void 0===(s=void 0===b?1:b)&&(s=1),void 0===(c=void 0===w?0:w)&&(c=0),void 0===l&&(l=!0),a.pathLength=1,a[(f=l?ek:eA).offset]=es.transform(-c),d=es.transform(g),p=es.transform(s),a[f.array]="".concat(d," ").concat(p))}var eO=function(){return(0,u.pi)((0,u.pi)({},em()),{attrs:{}})};function ex(e,t){var r=(0,c.useMemo)(function(){var r=eO();return eT(r,t,{enableHardwareAcceleration:!1},e.transformTemplate),(0,u.pi)((0,u.pi)({},r.attrs),{style:(0,u.pi)({},r.style)})},[t]);if(e.style){var n={};eg(n,e.style,e),r.style=(0,u.pi)((0,u.pi)({},n),r.style)}return r}var eC=/([a-z])([A-Z])/g,eP=function(e){return e.replace(eC,"$1-$2").toLowerCase()};function eD(e,t,r,n){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,n&&n.getProjectionStyles(r)),o)e.style.setProperty(a,o[a])}var eR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function eI(e,t,r,n){for(var i in eD(e,t,void 0,n),t.attrs)e.setAttribute(eR.has(i)?i:eP(i),t.attrs[i])}function eN(e){var t=e.style,r={};for(var n in t)(z(t[n])||Q(n,e))&&(r[n]=t[n]);return r}function ej(e){var t=eN(e);for(var r in e)z(e[r])&&(t["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]);return t}function eM(e){return"object"==typeof e&&"function"==typeof e.start}var eF=function(e){return Array.isArray(e)},eL=function(e){return eF(e)?e[e.length-1]||0:e};function eV(e){var t=z(e)?e.get():e;return Boolean(t&&"object"==typeof t&&t.mix&&t.toValue)?t.toValue():t}function eH(e,t,r,n){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:function(e,t,r,n){var i={},o=(null==r?void 0:r.initial)===!1,a=n(e);for(var s in a)i[s]=eV(a[s]);var c=e.initial,l=e.animate,f=P(e),d=D(e);t&&d&&!f&&!1!==e.inherit&&(null!=c||(c=t.initial),null!=l||(l=t.animate));var p=o||!1===c,h=p?l:c;return h&&"boolean"!=typeof h&&!eM(h)&&(Array.isArray(h)?h:[h]).forEach(function(t){var r=x(e,t);if(r){var n=r.transitionEnd;r.transition;var o=(0,u._T)(r,["transitionEnd","transition"]);for(var a in o){var s=o[a];if(Array.isArray(s)){var c=p?s.length-1:0;s=s[c]}null!==s&&(i[a]=s)}for(var a in n)i[a]=n[a]}}),i}(t,r,n,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}var eU=function(e){return function(t,r){var n=(0,c.useContext)(b),i=(0,c.useContext)(w.O);return r?eH(e,t,n,i):(0,I.h)(function(){return eH(e,t,n,i)})}},eW={useVisualState:eU({scrapeMotionValuesFromProps:ej,createRenderState:eO,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}eT(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),eI(t,n)}})},eK={useVisualState:eU({scrapeMotionValuesFromProps:eN,createRenderState:em})};function eB(e,t,r,n){return void 0===n&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function eq(e,t,r,n){(0,c.useEffect)(function(){var i=e.current;if(r&&i)return eB(i,t,r,n)},[e,t,r,n])}function eJ(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}(i=a||(a={})).Animate="animate",i.Hover="whileHover",i.Tap="whileTap",i.Drag="whileDrag",i.Focus="whileFocus",i.InView="whileInView",i.Exit="exit";var eG={pageX:0,pageY:0};function eQ(e,t){var r,n,i;return void 0===t&&(t="page"),{point:e.touches?(void 0===(r=t)&&(r="page"),{x:(n=e.touches[0]||e.changedTouches[0]||eG)[r+"X"],y:n[r+"Y"]}):(void 0===(i=t)&&(i="page"),{x:e[i+"X"],y:e[i+"Y"]})}}var ez=function(e,t){void 0===t&&(t=!1);var r=function(t){return e(t,eQ(t))};return t?function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&r(e)}:r}
15,e$={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},eY={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function eX(e){if(S.j&&null===window.onpointerdown);else if(S.j&&null===window.ontouchstart)return eY[e];else if(S.j&&null===window.onmousedown)return e$[e];return e}function eZ(e,t,r,n){return eB(e,eX(t),ez(r,"pointerdown"===t),n)}function e0(e,t,r,n){return eq(e,eX(t),r&&ez(r,"pointerdown"===t),n)}function e1(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var e2=e1("dragHorizontal"),e5=e1("dragVertical");function e3(e){var t=!1;if("y"===e)t=e5();else if("x"===e)t=e2();else{var r=e2(),n=e5();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function e4(){var e=e3(!0);return!e||(e(),!1)}function e8(e,t,r){return function(n,i){var o;!eJ(n)||e4()||(null===(o=e.animationState)||void 0===o||o.setActive(a.Hover,t),null==r||r(n,i))}}var e6=function(e,t){return!!t&&(e===t||e6(e,t.parentElement))},e9=r(5411);let e7=(e,t)=>r=>t(e(r)),te=(...e)=>e.reduce(e7);var tt=new Set,tr=new WeakMap,tn=new WeakMap,ti=function(e){var t;null===(t=tr.get(e.target))||void 0===t||t(e)},to=function(e){e.forEach(ti)},ta={some:0,all:1};function ts(e,t,r,n){var i=n.root,o=n.margin,s=n.amount,l=void 0===s?"some":s,f=n.once;(0,c.useEffect)(function(){if(e){var n,s,c,d,p,h,v,y={root:null==i?void 0:i.current,rootMargin:o,threshold:"number"==typeof l?l:ta[l]};return n=r.getInstance(),s=y.root,c=(0,u._T)(y,["root"]),d=s||document,tn.has(d)||tn.set(d,{}),(p=tn.get(d))[h=JSON.stringify(c)]||(p[h]=new IntersectionObserver(to,(0,u.pi)({root:s},c))),v=p[h],tr.set(n,function(e){var n,i=e.isIntersecting;if(t.isInView!==i){if(t.isInView=i,f&&!i&&t.hasEnteredView)return;i&&(t.hasEnteredView=!0),null===(n=r.animationState)||void 0===n||n.setActive(a.InView,i);var o=r.getProps(),s=i?o.onViewportEnter:o.onViewportLeave;null==s||s(e)}}),v.observe(n),function(){tr.delete(n),v.unobserve(n)}}},[e,i,o,l])}function tu(e,t,r,n){var i=n.fallback,o=void 0===i||i;(0,c.useEffect)(function(){if(e&&o){if("production"!==l.O){var n,i;n="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",tt.has(n)||(console.warn(n),i&&console.warn(i),tt.add(n))}requestAnimationFrame(function(){t.hasEnteredView=!0;var e,n=r.getProps().onViewportEnter;null==n||n(null),null===(e=r.animationState)||void 0===e||e.setActive(a.InView,!0)})}},[e])}var tc=function(e){return function(t){return e(t),null}},tl={inView:tc(function(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=void 0===o?{}:o,s=(0,c.useRef)({hasEnteredView:!1,isInView:!1}),u=Boolean(r||n||i);a.once&&s.current.hasEnteredView&&(u=!1),("undefined"==typeof IntersectionObserver?tu:ts)(u,s.current,t,a)}),tap:tc(function(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=(0,c.useRef)(!1),u=(0,c.useRef)(null),l={passive:!(r||t||n||v)};function f(){var e;null===(e=u.current)||void 0===e||e.call(u),u.current=null}function d(){var e;return f(),s.current=!1,null===(e=o.animationState)||void 0===e||e.setActive(a.Tap,!1),!e4()}function p(e,r){d()&&(e6(o.getInstance(),e.target)?null==t||t(e,r):null==n||n(e,r))}function h(e,t){d()&&(null==n||n(e,t))}function v(e,t){var n;f(),s.current||(s.current=!0,u.current=te(eZ(window,"pointerup",p,l),eZ(window,"pointercancel",h,l)),null===(n=o.animationState)||void 0===n||n.setActive(a.Tap,!0),null==r||r(e,t))}e0(o,"pointerdown",t||r||n||i?v:void 0,l),(0,e9.z)(f)}),focus:tc(function(e){var t=e.whileFocus,r=e.visualElement;eq(r,"focus",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(a.Focus,!0)}:void 0),eq(r,"blur",t?function(){var e;null===(e=r.animationState)||void 0===e||e.setActive(a.Focus,!1)}:void 0)}),hover:tc(function(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;e0(i,"pointerenter",t||n?e8(i,!0,t):void 0,{passive:!t}),e0(i,"pointerleave",r||n?e8(i,!1,r):void 0,{passive:!r})})},tf=r(6316);function td(){var e=(0,c.useContext)(w.O);if(null===e)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=(0,tf.M)();return(0,c.useEffect)(function(){return n(i)},[]),!t&&r?[!1,function(){return null==r?void 0:r(i)}]:[!0]}function tp(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}let th=(e,t,r)=>
15Math.min(Math.max(r,e),t);function tv(e,t){return e*Math.sqrt(1-t*t)}let ty=["duration","bounce"],tm=["stiffness","damping","mass"];function tg(e,t){return t.some(t=>void 0!==e[t])}function tb(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=(0,u._T)(e,["from","to","restSpeed","restDelta"]);let a={done:!1,value:t},{stiffness:s,damping:c,mass:l,velocity:f,duration:d,isResolvedFromDuration:h}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!tg(e,tm)&&tg(e,ty)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;p(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=th(.05,1,a),e=th(.01,10,e/1e3),a<1?(i=t=>{let n=t*a,i=n*e,o=tv(t,a);return .001-(n-r)/o*Math.exp(-i)},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,u=tv(Math.pow(t,2),a),c=-i(t)+.001>0?-1:1;return c*((o*r+r-s)*Math.exp(-o))/u}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,u=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e*=1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(u,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),v=tw,y=tw;function m(){let e=f?-(f/1e3):0,n=r-t,o=c/(2*Math.sqrt(s*l)),a=Math.sqrt(s/l)/1e3;if(void 0===i&&(i=Math.min(Math.abs(r-t)/100,.4)),o<1){let t=tv(a,o);v=i=>r-Math.exp(-o*a*i)*((e+o*a*n)/t*Math.sin(t*i)+n*Math.cos(t*i)),y=r=>{let i=Math.exp(-o*a*r);return o*a*i*(Math.sin(t*r)*(e+o*a*n)/t+n*Math.cos(t*r))-i*(Math.cos(t*r)*(e+o*a*n)-t*n*Math.sin(t*r))}}else if(1===o)v=t=>r-Math.exp(-a*t)*(n+(e+a*n)*t);else{let t=a*Math.sqrt(o*o-1);v=i=>{let s=Math.min(t*i,300);return r-Math.exp(-o*a*i)*((e+o*a*n)*Math.sinh(s)+t*n*Math.cosh(s))/t}}}return m(),{next:e=>{let t=v(e);if(h)a.done=e>=d;else{let o=1e3*y(e),s=Math.abs(r-t)<=i;a.done=Math.abs(o)<=n&&s}return a.value=a.done?r:t,a},flipTarget:()=>{f=-f,[t,r]=[r,t],m()}}}tb.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let tw=e=>0,tE=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},tS=(e,t,r)=>-r*e+r*t+e,t_=(e,t)=>r=>Boolean(en(r)&&er.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tk=(e,t,r)=>n=>{if(!en(n))return n;let[i,o,a,s]=n.match(ee);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tA=X(0,255),tT=Object.assign(Object.assign({},ef),{transform:e=>Math.round(tA(e))}),tO={test:t_("rgb","red"),parse:tk("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tT.transform(e)+", "+tT.transform(t)+", "+tT.transform(r)+", "+Z(ed.transform(n))+")"},tx={test:t_("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:tO.transform},tC={test:t_("hsl","hue"),parse:tk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ea.transform(Z(t))+", "+ea.transform(Z(r))+", "+Z(ed.transform(n))+")"};function tP(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tD({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=tP(s,n,e+1/3),o=tP(s,n,e),a=tP(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}let tR=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},tI=[tx,tO,tC],tN=e=>tI.find(t=>t.test(e)),tj=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,tM=(e,t)=>{let r=tN(e),n=tN(t);h(!!r,tj(e)),h(!!n,tj(t));let i=r.parse(e),o=n.parse(t);r===tC&&(i=tD(i),r=tO),n===tC&&(o=tD(o),n=tO);let a=Object.assign({},i);return e=>{for(let t in a)"alpha"!==t&&(a[t]=tR(i[t],o[t],e));return a.alpha=tS(i.alpha,o.alpha,e),r.transform(a)}},tF={test:e=>tO.test(e)||tx.test(e)||tC.test(e),parse:e=>tO.test(e)?tO.parse(e):tC.test(e)?tC.parse(e):tx.parse(e),transform:e=>en(e)?e:e.hasOwnProperty("red")?tO.transform(e):tC.transform(e)},tL="${c}",tV="${n}";function tH(e){"number"==typeof e&&(e=`${e}`);let t=[],r=0,n=e.match(et);n&&(r=n.length,e=e.replace(et,tL),t.push(...n.map(tF.parse)));let i=e.match(ee);return i&&(e=e.replace(ee,tV),t.push(...i.map(ef.parse))),{values:t,numColors:r,tokenised:e}}function tU(e){return tH(e).values}function tW(e){let{values:t,numColors:r,tokenised:n}=tH(e),i=t.length;return e=>{let t=n;for(let n=0;n<i;n++)t=t.replace(n<r?tL:tV,n<r?tF.transform(e[n]):Z(e[n]));return t}}let tK=e=>"number"==typeof e?0:e,tB={test:function(e){var t,r,n,i;return isNaN(e)&&en(e)&&(null!==(r=null===(t=e.match(ee))||void 0===t?void 0:t.length)&&void 0!==r?r:0)+(null!==(i=null===(n=e.match(et))||void 0===n?void 0:n.length)&&void 0!==i?i:0)>0},parse:tU,createTransformer:tW,getAnimatableNone:function(e){let t=tU(e),r=tW(e);return r(t.map(tK))}},tq=e=>"number"==typeof e;function tJ(e,t){return tq(e)?r=>tS(e,t,r):tF.test(e)?tM(e,t):t$(e,t)}let tG=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>tJ(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},tQ=(e,t)=>{let r=Object.assign(Object.assign({},e),t),n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tJ(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}};function tz(e){let t=tB.parse(e),r=t.length,n=0,i=0,o=0;for(let e=0;e<r;e++)n||"number"==typeof t[e]?n++:void 0!==t[e].hue?o++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:o}}
15let t$=(e,t)=>{let r=tB.createTransformer(t),n=tz(e),i=tz(t),o=n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers;return o?te(tG(n.parsed,i.parsed),r):(p(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),r=>`${r>0?t:e}`)},tY=(e,t)=>r=>tS(e,t,r);function tX(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;h(o===t.length,"Both input and output ranges must be the same length"),h(!n||!Array.isArray(n)||n.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());let a=function(e,t,r){var n;let i=[],o=r||("number"==typeof(n=e[0])?tY:"string"==typeof n?tF.test(n)?tM:t$:Array.isArray(n)?tG:"object"==typeof n?tQ:void 0),a=e.length-1;for(let r=0;r<a;r++){let n=o(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]:t;n=te(e,n)}i.push(n)}return i}(t,n,i),s=2===o?function([e,t],[r]){return n=>
15r(tE(e,t,n))}(e,a):function(e,t){let r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let t=1;for(;t<r&&!(e[t]>i)&&t!==n;t++);o=t-1}let s=tE(e[o],e[o+1],i);return t[o](s)}}(e,a);return r?t=>s(th(e[0],e[o-1],t)):s}let tZ=e=>t=>1-e(1-t),t0=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,t1=e=>t=>t*t*((e+1)*t-e),t2=4/11,t5=8/11,t3=e=>e,t4=e=>Math.pow(e,2),t8=tZ(t4),t6=t0(t4),t9=e=>1-Math.sin(Math.acos(e)),t7=tZ(t9),re=t0(t7),rt=t1(1.525),rr=tZ(rt),rn=t0(rt),ri=(e=>{let t=t1(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(0),ro=4356/361,ra=35442/1805,rs=16061/1805,ru=e=>{if(1===e||0===e)return e;let t=e*e;return e<t2?7.5625*t:e<t5?9.075*t-9.9*e+3.4:e<.9?ro*t-ra*e+rs:10.8*e*e-20.52*e+10.72},rc=tZ(ru),rl=e=>e<.5?.5*(1-ru(1-2*e)):.5*ru(2*e-1)+.5;function rf({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){let o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=(n&&n.length===a.length?n:function(e){let t=e.length;return e.map((e,r)=>0!==r?r/(t-1):0)}(a)).map(e=>e*i);function u(){return tX(s,a,{ease:Array.isArray(r)?r:a.map(()=>r||t6).splice(0,a.length-1)})}let c=u();return{next:e=>(o.value=c(e),o.done=e>=i,o),flipTarget:()=>{a.reverse(),c=u()}}}let rd={keyframes:rf,spring:tb,decay:function({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){let a={done:!1,value:t},s=r*e,u=t+s,c=void 0===o?u:o(u);return c!==u&&(s=c-t),{next:e=>{let t=-s*Math.exp(-e/n);return a.done=!(t>i||t<-i),a.value=a.done?c:c+t,a},flipTarget:()=>{}}}};var rp=r(4735);function rh(e,t,r=0){return e-t-r}let rv=e=>{let t=({delta:t})=>e(t);return{start:()=>rp.ZP.update(t,!0),stop:()=>rp.qY.update(t)}};function ry(e){let t,r,n;var i,{from:o,autoplay:a=!0,driver:s=rv,elapsed:c=0,repeat:l=0,repeatType:f="loop",repeatDelay:d=0,onPlay:p,onStop:h,onComplete:v,onRepeat:y,onUpdate:m}=e,g=(0,u._T)(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:b}=g,w=0,E=g.duration,S=!1,_=!0,k=function(e){if(Array.isArray(e.to))return rf;if(rd[e.type])return rd[e.type];let t=new Set(Object.keys(e));if(t.has("ease")||t.has("duration")&&!t.has("dampingRatio"));else if(t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta"))return tb;return rf}(g);(null===(i=k.needsInterpolation)||void 0===i?void 0:i.call(k,o,b))&&(n=tX([0,100],[o,b],{clamp:!1}),o=0,b=100);let A=k(Object.assign(Object.assign({},g),{from:o,to:b}));return a&&(null==p||p(),(t=s(function(e){if(_||(e=-e),c+=e,!S){let e=A.next(Math.max(0,c));r=e.value,n&&(r=n(r)),S=_?e.done:c<=0}if(null==m||m(r),S){if(0===w&&(null!=E||(E=c)),w<l){var i,o;i=c,o=E,(_?i>=o+d:i<=-d)&&(w++,"reverse"===f?c=function(e,t,r=0,n=!0){return n?rh(t+-e,t,r):t-(e-t)+r}(c,E,d,_=w%2==0):(c=rh(c,E,d),"mirror"===f&&A.flipTarget()),S=!1,y&&y())}else t.stop(),v&&v()}})).start()),{stop:()=>{null==h||h(),t.stop()}}}var rm=function(e){return 1e3*e};let rg=(e,t)=>1-3*t+3*e,rb=(e,t)=>3*t-6*e,rw=e=>3*e,rE=(e,t,r)=>((rg(t,r)*e+rb(t,r))*e+rw(t))*e,rS=(e,t,r)=>3*rg(t,r)*e*e+2*rb(t,r)*e+rw(t);var r_={linear:t3,easeIn:t4,easeInOut:t6,easeOut:t8,circIn:t9,circInOut:re,circOut:t7,backIn:rt,backInOut:rn,backOut:rr,anticipate:ri,bounceIn:rc,bounceInOut:rl,bounceOut:ru},rk=function(e){if(Array.isArray(e)){h(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=(0,u.CR)(e,4);return function(e,t,r,n){if(e===t&&r===n)return t3;let i=new Float32Array(11);for(let t=0;t<11;++t)i[t]=rE(.1*t,e,r);return o=>0===o||1===o?o:rE(function(t){let n=0,o=1;for(;10!==o&&i[o]<=t;++o)n+=.1;--o;let a=(t-i[o])/(i[o+1]-i[o]),s=n+.1*a,u=rS(s,e,r);return u>=.001?function(e,t,r,n){for(let i=0;i<8;++i){let i=rS(t,r,n);if(0===i)break;let o=rE(t,r,n)-e;t-=o/i}return t}(t,s,e,r):0===u?s:function(e,t,r,n,i){let o,a;let s=0;do(o=rE(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<10);return a}(t,n,n+.1,e,r)}(o),t,n)}(t[0],t[1],t[2],t[3])}return"string"==typeof e?(h(void 0!==r_[e],"Invalid easing type '".concat(e,"'")),r_[e]):e},rA=function(e,t){return"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&tB.test(t)&&!t.startsWith("url("))},rT=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},rO=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},rx=function(){return{type:"keyframes",ease:"linear",duration:.3}},rC=function(e){return{type:"keyframes",duration:.8,values:e}}
15,rP={x:rT,y:rT,z:rT,rotate:rT,rotateX:rT,rotateY:rT,rotateZ:rT,scaleX:rO,scaleY:rO,scale:rO,opacity:rx,backgroundColor:rx,color:rx,default:rO},rD=function(e,t){var r;return r=eF(t)?rC:rP[e]||rP.default,(0,u.pi)({to:t},r(t))};let rR=new Set(["brightness","contrast","saturate","opacity"]);function rI(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(ee)||[];if(!n)return e;let i=r.replace(n,""),o=rR.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let rN=/([a-z-]*)\(.*?\)/g,rj=Object.assign(Object.assign({},tB),{getAnimatableNone:e=>{let t=e.match(rN);return t?t.map(rI).join(" "):e}});var rM=(0,u.pi)((0,u.pi)({},ev),{color:tF,backgroundColor:tF,outlineColor:tF,fill:tF,stroke:tF,borderColor:tF,borderTopColor:tF,borderRightColor:tF,borderBottomColor:tF,borderLeftColor:tF,filter:rj,WebkitFilter:rj}),rF=function(e){return rM[e]};function rL(e,t){var r,n=rF(e);return n!==rj&&(n=tB),null===(r=n.getAnimatableNone)||void 0===r?void 0:r.call(n,t)}var rV={current:!1},rH=!1;function rU(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function rW(e){return"number"==typeof e?0:rL("",e)}function rK(e,t){return e[t]||e.default||e}function rB(e,t,r,n){return void 0===n&&(n={}),rV.current&&(n={type:!1}),t.start(function(i){var o,a,s,c,l,f,d,h,v,y,m,g=(c=r,d=null!==(l=(f=rK(n,e)).from)&&void 0!==l?l:t.get(),h=rA(e,c),"none"===d&&h&&"string"==typeof c?d=rL(e,c):rU(d)&&"string"==typeof c?d=rW(c):!Array.isArray(c)&&rU(c)&&"string"==typeof d&&(c=rW(d)),p((v=rA(e,d))===h,"You are trying to animate ".concat(e,' from "').concat(d,'" to "').concat(c,'". ').concat(d," is not an animatable value - to enable this animation set ").concat(d," to a value animatable to ").concat(c," via the `style` property.")),v&&h&&!1!==f.type?function(){var r,n,o,a,s,l,h,v,y,m,g,b,w={from:d,to:c,velocity:t.getVelocity(),onComplete:i,onUpdate:function(e){return t.set(e)}};return"inertia"===f.type||"decay"===f.type?function({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:f,onComplete:d,onStop:p}){let h;function v(e){return void 0!==r&&e<r||void 0!==n&&e>n}function y(e){return void 0===r?n:void 0===n?r:Math.abs(r-e)<Math.abs(n-e)?r:n}function m(e){null==h||h.stop(),h=ry(Object.assign(Object.assign({},e),{driver:l,onUpdate:t=>{var r;null==f||f(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:d,onStop:p}))}function g(e){m(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},e))}if(v(e))g({from:e,velocity:t,to:y(e)});else{let n,a,s=i*t+e;void 0!==c&&(s=c(s));let l=y(s),f=l===r?-1:1,d=e=>{var r;n=a,a=e,t=(r=(0,rp.$B)().delta)?(e-n)*(1e3/r):0,(1===f&&e>l||-1===f&&e<l)&&g({from:e,to:l,velocity:t})};m({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:c,onUpdate:v(s)?d:void 0})}return{stop:()=>null==h?void 0:h.stop()}}((0,u.pi)((0,u.pi)({},w),f)):ry((0,u.pi)((0,u.pi)({},(y=f,Array.isArray(w.to)&&(null!==(m=y.duration)&&void 0!==m||(y.duration=.8)),Array.isArray((g=w).to)&&null===g.to[0]&&(g.to=(0,u.ev)([],(0,u.CR)(g.to),!1),g.to[0]=g.from),(b=y).when,b.delay,b.delayChildren,b.staggerChildren,b.staggerDirection,b.repeat,b.repeatType,b.repeatDelay,b.from,Object.keys((0,u._T)(b,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"])).length||(y=(0,u.pi)((0,u.pi)({},y),rD(e,w.to))),(0,u.pi)((0,u.pi)({},w),(n=(r=y).ease,o=r.times,a=r.yoyo,s=r.flip,l=r.loop,h=(0,u._T)(r,["ease","times","yoyo","flip","loop"]),v=(0,u.pi)({},h),o&&(v.offset=o),h.duration&&(v.duration=rm(h.duration)),h.repeatDelay&&(v.repeatDelay=rm(h.repeatDelay)),n&&(v.ease=Array.isArray(n)&&"number"!=typeof n[0]?n.map(rk):rk(n)),"tween"===h.type&&(v.type="keyframes"),(a||l||s)&&(p(!rH,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),rH=!0,a?v.repeatType="reverse":l?v.repeatType="loop":s&&(v.repeatType="mirror"),v.repeat=l||a||s||h.repeat),"spring"!==h.type&&(v.type="keyframes"),v)))),{onUpdate:function(e){var t;
15w.onUpdate(e),null===(t=f.onUpdate)||void 0===t||t.call(f,e)},onComplete:function(){var e;w.onComplete(),null===(e=f.onComplete)||void 0===e||e.call(f)}}))}:function(){var e,r,n=eL(c);return t.set(n),i(),null===(e=null==f?void 0:f.onUpdate)||void 0===e||e.call(f,n),null===(r=null==f?void 0:f.onComplete)||void 0===r||r.call(f),{stop:function(){}}}),b=null!==(s=null!==(a=(rK(o=n,e)||{}).delay)&&void 0!==a?a:o.delay)&&void 0!==s?s:0,w=function(){return m=g()};return b?y=window.setTimeout(w,rm(b)):w(),function(){clearTimeout(y),null==m||m.stop()}})}function rq(e,t){-1===e.indexOf(t)&&e.push(t)}function rJ(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var rG=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return rq(this.subscriptions,e),function(){return rJ(t.subscriptions,e)}},e.prototype.notify=function(e,t,r){var n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(var i=0;i<n;i++){var o=this.subscriptions[i];o&&o(e,t,r)}}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),rQ=function(){function e(e){var t=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new rG,this.velocityUpdateSubscribers=new rG,this.renderSubscribers=new rG,this.canTrackVelocity=!1,this.updateAndNotify=function(e,r){void 0===r&&(r=!0),t.prev=t.current,t.current=e;var n=(0,rp.$B)(),i=n.delta,o=n.timestamp;t.lastUpdated!==o&&(t.timeDelta=i,t.lastUpdated=o,rp.ZP.postRender(t.scheduleVelocityCheck)),t.prev!==t.current&&t.updateSubscribers.notify(t.current),t.velocityUpdateSubscribers.getSize()&&t.velocityUpdateSubscribers.notify(t.getVelocity()),r&&t.renderSubscribers.notify(t.current)},this.scheduleVelocityCheck=function(){return rp.ZP.postRender(t.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==t.lastUpdated&&(t.prev=t.current,t.velocityUpdateSubscribers.notify(t.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise(function(r){t.hasAnimated=!0,t.stopAnimation=e(r)}).then(function(){return t.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function rz(e){return new rQ(e)}var r$=function(e){return function(t){return t.test(e)}},rY=[ef,es,ea,eo,ec,eu,{test:function(e){return"auto"===e},parse:function(e){return e}}],rX=function(e){return rY.find(r$(e))},rZ=(0,u.ev)((0,u.ev)([],(0,u.CR)(rY),!1),[tF,tB],!1);function r0(e,t,r){void 0===r&&(r={});var n,i=C(e,t,r.custom),o=(i||{}).transition,a=void 0===o?e.getDefaultTransition()||{}:o;r.transitionOverride&&(a=r.transitionOverride);var s=i?function(){return r1(e,i,r)}:function(){return Promise.resolve()},c=(null===(n=e.variantChildren)||void 0===n?void 0:n.size)?function(n){void 0===n&&(n=0);var i,o,s,c,l,f,d,p=a.delayChildren,h=a.staggerChildren,v=a.staggerDirection;return i=(void 0===p?0:p)+n,o=h,s=v,c=r,void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=1),l=[],f=(e.variantChildren.size-1)*o,d=1===s?function(e){return void 0===e&&(e=0),e*o}:function(e){return void 0===e&&(e=0),f-e*o},Array.from(e.variantChildren).sort(r2).forEach(function(e,r){l.push(r0(e,t,(0,u.pi)((0,u.pi)({},c),{delay:i+d(r)})).then(function(){return e.notifyAnimationComplete(t)}))}),Promise.all(l)}:function(){return Promise.resolve()},l=a.when;if(!l)return Promise.all([s(),c(r.delay)]);
15var f=(0,u.CR)("beforeChildren"===l?[s,c]:[c,s],2),d=f[0],p=f[1];return d().then(p)}function r1(e,t,r){var n,i=void 0===r?{}:r,o=i.delay,a=void 0===o?0:o,s=i.transitionOverride,c=i.type,l=e.makeTargetAnimatable(t),f=l.transition,d=void 0===f?e.getDefaultTransition():f,p=l.transitionEnd,h=(0,u._T)(l,["transition","transitionEnd"]);s&&(d=s);var v=[],y=c&&(null===(n=e.animationState)||void 0===n?void 0:n.getState()[c]);for(var m in h){var g=e.getValue(m),b=h[m];if(!(!g||void 0===b||y&&function(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&!0!==n[t];return n[t]=!1,i}(y,m))){var w=(0,u.pi)({delay:a},d);e.shouldReduceMotion&&J(m)&&(w=(0,u.pi)((0,u.pi)({},w),{type:!1,delay:0}));var E=rB(m,g,b,w);v.push(E)}}return Promise.all(v).then(function(){p&&function(e,t){var r=C(e,t),n=r?e.makeTargetAnimatable(r,!1):{},i=n.transitionEnd;n.transition;var o=(0,u._T)(n,["transitionEnd","transition"]);for(var a in o=(0,u.pi)((0,u.pi)({},o),void 0===i?{}:i)){var s,c=eL(o[a]);s=a,e.hasValue(s)?e.getValue(s).set(c):e.addValue(s,rz(c))}}(e,p)})}function r2(e,t){return e.sortNodePosition(t)}var r5=[a.Animate,a.InView,a.Focus,a.Hover,a.Tap,a.Drag,a.Exit],r3=(0,u.ev)([],(0,u.CR)(r5),!1).reverse(),r4=r5.length;function r8(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var r6={animation:tc(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=function(e){var t,r=function(t){return Promise.all(t.map(function(t){return function(e,t,r){if(void 0===r&&(r={}),e.notifyAnimationStart(t),Array.isArray(t)){var n;n=Promise.all(t.map(function(t){return r0(e,t,r)}))}else if("string"==typeof t)n=r0(e,t,r);else{var i="function"==typeof t?C(e,t,r.custom):t;n=r1(e,i,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}(e,t.animation,t.options)}))},n=((t={})[a.Animate]=r8(!0),t[a.InView]=r8(),t[a.Hover]=r8(),t[a.Tap]=r8(),t[a.Drag]=r8(),t[a.Focus]=r8(),t[a.Exit]=r8(),t),i={},o=!0,s=function(t,r){var n=C(e,r);if(n){n.transition;var i=n.transitionEnd,o=(0,u._T)(n,["transition","transitionEnd"]);t=(0,u.pi)((0,u.pi)((0,u.pi)({},t),o),i)}return t};function c(t,a){for(var c,l=e.getProps(),f=e.getVariantContext(!0)||{},d=[],p=new Set,h={},v=1/0,y=0;y<r4;y++)!function(r){var i,y=r3[r],m=n[y],g=null!==(c=l[y])&&void 0!==c?c:f[y],b=O(g),w=y===a?m.isActive:null;!1===w&&(v=r);var E=g===f[y]&&g!==l[y]&&b;if(E&&o&&e.manuallyAnimateOnMount&&(E=!1),m.protectedKeys=(0,u.pi)({},h),!(!m.isActive&&null===w||!g&&!m.prevProp||eM(g))&&"boolean"!=typeof g){var S=(i=m.prevProp,"string"==typeof g?g!==i:!!T(g)&&!tp(g,i)),_=S||y===a&&m.isActive&&!E&&b||r>v&&b,k=Array.isArray(g)?g:[g],A=k.reduce(s,{});!1===w&&(A={});var x=m.prevResolvedValues,C=void 0===x?{}:x,P=(0,u.pi)((0,u.pi)({},C),A),D=function(e){_=!0,p.delete(e),m.needsAnimating[e]=!0};for(var R in P){var I=A[R],N=C[R];h.hasOwnProperty(R)||(I!==N?eF(I)&&eF(N)?!tp(I,N)||S?D(R):m.protectedKeys[R]=!0:void 0!==I?D(R):p.add(R):void 0!==I&&p.has(R)?D(R):m.protectedKeys[R]=!0)}m.prevProp=g,m.prevResolvedValues=A,m.isActive&&(h=(0,u.pi)((0,u.pi)({},h),A)),o&&e.blockInitialAnimation&&(_=!1),_&&!E&&d.push.apply(d,(0,u.ev)([],(0,u.CR)(k.map(function(e){return{animation:e,options:(0,u.pi)({type:y},t)}})),!1))}}(y);if(i=(0,u.pi)({},h),p.size){var m={};p.forEach(function(t){var r=e.getBaseTarget(t);void 0!==r&&(m[t]=r)}),d.push({animation:m})}var g=Boolean(d.length);return o&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?r(d):Promise.resolve()}return{isAnimated:function(e){return void 0!==i[e]},animateChanges:c,setActive:function(t,r,i){if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;var o,a=c(i,t);for(var s in n)n[s].protectedKeys={};return a},setAnimateFunction:function(t){r=t(e)},getState:function(){return n}}}(t)),eM(r)&&(0,c.useEffect)(function(){return r.subscribe(t)},[r])}),exit:tc(function(e){var t=e.custom,r=e.visualElement,n=(0,u.CR)(td(),2),i=n[0],o=n[1],s=(0,c.useContext)(w.O);(0,c.useEffect)(function(){r.isPresent=i;var e,n,u=null===(e=r.animationState)||void 0===e?void 0:e.setActive(a.Exit,!i,{custom:null!==(n=null==s?void 0:s.custom)&&void 0!==n?n:t});i||null==u||u.then(o)},[i])})};let r9=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),r7=e=>r9(e)&&e.hasOwnProperty("z"),ne=(e,t)=>Math.abs(e-t);function nt(e,t){if(tq(e)&&tq(t))return ne(e,t);if(r9(e)&&r9(t)){let r=ne(e.x,t.x),n=ne(e.y,t.y),i=r7(e)&&r7(t)?ne(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}var nr=function(){function e(e,t,r){var n=this,i=(void 0===r?{}:r).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(n.lastMoveEvent&&n.lastMoveEventInfo){var e=no(n.lastMoveEventInfo,n.history),t=null!==n.startEvent,r=nt(e.offset,{x:0,y:0})>=3;if(t||r){var i=e.point,o=(0,rp.$B)().timestamp;n.history.push((0,u.pi)((0,u.pi)({},i),{timestamp:o}));var a=n.handlers,s=a.onStart,c=a.onMove;t||(s&&s(n.lastMoveEvent,e),n.startEvent=n.lastMoveEvent),c&&c(n.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){if(n.lastMoveEvent=e,n.lastMoveEventInfo=nn(t,n.transformPagePoint),eJ(e)&&0===e.buttons){n.handlePointerUp(e,t);return}rp.ZP.update(n.updatePoint,!0)},this.handlePointerUp=function(e,t){n.end();var r=n.handlers,i=r.onEnd,o=r.onSessionEnd,a=no(nn(t,n.transformPagePoint),n.history);n.startEvent&&i&&i(e,a),o&&o(e,a)},!e.touches||!(e.touches.length>1)){this.handlers=t,this.transformPagePoint=i;var o=nn(eQ(e),this.transformPagePoint),a=o.point,s=(0,rp.$B)().timestamp;this.history=[(0,u.pi)((0,u.pi)({},a),{timestamp:s})];var c=t.onSessionStart;c&&c(e,no(o,this.history)),this.removeListeners=te(eZ(window,"pointermove",this.handlePointerMove),eZ(window,"pointerup",this.handlePointerUp),eZ(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),rp.qY.update(this.updatePoint)},e}();function nn(e,t){return t?{point:t(e.point)}:e}function ni(e,t){return{x:e.x-t.x,y:e.y-t.y}}function no(e,t){var r=e.point;return{point:r,delta:ni(r,na(t)),offset:ni(r,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=na(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>rm(.1)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function na(e){return e[e.length-1]}function ns(e){return e.max-e.min}function nu(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=.01),nt(e,t)<r}function nc(e,t,r,n){void 0===n&&(n=.5),e.origin=n,e.originPoint=tS(t.min,t.max,e.origin),e.scale=ns(r)/ns(t),(nu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tS(r.min,r.max,e.origin)-e.originPoint,(nu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function nl(e,t,r,n){nc(e.x,t.x,r.x,null==n?void 0:n.originX),nc(e.y,t.y,r.y,null==n?void 0:n.originY)}function nf(e,t,r){e.min=r.min+t.min,e.max=e.min+ns(t)}
15function nd(e,t,r){e.min=t.min-r.min,e.max=e.min+ns(t)}function np(e,t,r){nd(e.x,t.x,r.x),nd(e.y,t.y,r.y)}function nh(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function nv(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=(r=(0,u.CR)([i,n],2))[0],i=r[1]),{min:n,max:i}}function ny(e,t,r){return{min:nm(e,t),max:nm(e,r)}}function nm(e,t){var r;return"number"==typeof e?e:null!==(r=e[t])&&void 0!==r?r:0}var ng=function(){return{translate:0,scale:1,origin:0,originPoint:0}},nb=function(){return{x:ng(),y:ng()}},nw=function(){return{min:0,max:0}},nE=function(){return{x:nw(),y:nw()}};function nS(e){return[e("x"),e("y")]}function n_(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function nk(e){return void 0===e||1===e}function nA(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!nk(t)||!nk(r)||!nk(n)}function nT(e){var t,r;return nA(e)||(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r||e.z||e.rotate||e.rotateX||e.rotateY}function nO(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function nx(e,t,r,n,i){void 0===t&&(t=0),void 0===r&&(r=1),e.min=nO(e.min,t,r,n,i),e.max=nO(e.max,t,r,n,i)}function nC(e,t){var r=t.x,n=t.y;nx(e.x,r.translate,r.scale,r.originPoint),nx(e.y,n.translate,n.scale,n.originPoint)}function nP(e,t){e.min=e.min+t,e.max=e.max+t}function nD(e,t,r){var n=(0,u.CR)(r,3),i=n[0],o=n[1],a=n[2],s=void 0!==t[a]?t[a]:.5,c=tS(e.min,e.max,s);nx(e,t[i],t[o],c,t.scale)}var nR=["x","scaleX","originX"],nI=["y","scaleY","originY"];function nN(e,t){nD(e.x,t,nR),nD(e.y,t,nI)}function nj(e,t){return n_(function(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}var nM=new WeakMap,nF=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nE(),this.visualElement=e}return e.prototype.start=function(e,t){var r=this,n=(void 0===t?{}:t).snapToCursor,i=void 0!==n&&n;!1!==this.visualElement.isPresent&&(this.panSession=new nr(e,{onSessionStart:function(e){r.stopAnimation(),i&&r.snapToCursor(eQ(e,"page").point)},onStart:function(e,t){var n,i=r.getProps(),o=i.drag,s=i.dragPropagation,u=i.onDragStart;(!o||s||(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=e3(o),r.openGlobalLock))&&(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),nS(function(e){var t,n,i=r.getAxisMotionValue(e).get()||0;if(ea.test(i)){var o=null===(n=null===(t=r.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===n?void 0:n.actual[e];o&&(i=ns(o)*(parseFloat(i)/100))}r.originPoint[e]=i}),null==u||u(e,t),null===(n=r.visualElement.animationState)||void 0===n||n.setActive(a.Drag,!0))},onMove:function(e,t){var n=r.getProps(),i=n.dragPropagation,o=n.dragDirectionLock,a=n.onDirectionLock,s=n.onDrag;if(i||r.openGlobalLock){var u,c,l=t.offset;if(o&&null===r.currentDirection){r.currentDirection=(void 0===u&&(u=10),c=null,Math.abs(l.y)>u?c="y":Math.abs(l.x)>u&&(c="x"),c),null!==r.currentDirection&&(null==a||a(r.currentDirection));return}r.updateAxis("x",t.point,l),r.updateAxis("y",t.point,l),r.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return r.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var r=this.isDragging;if(this.cancel(),r){var n=t.velocity;this.startAnimation(n);var i=this.getProps().onDragEnd;null==i||i(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(a.Drag,!1)},e.prototype.updateAxis=function(e,t,r){var n=this.getProps().drag;if(r&&nL(e,n,this.currentDirection)){var i,o,a,s,u,c=this.getAxisMotionValue(e),l=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=l,o=this.constraints[e],a=this.elastic[e],s=o.min,u=o.max,void 0!==s&&i<s?i=a?tS(s,i,a.min):Math.max(i,s):void 0!==u&&i>u&&(i=a?tS(u,i,a.max):Math.min(i,u)),l=i),c.set(l)}}
15,e.prototype.resolveConstraints=function(){var e,t,r,n,i,o,a=this,s=this.getProps(),u=s.dragConstraints,c=s.dragElastic,l=(this.visualElement.projection||{}).layout,f=this.constraints;u&&A(u)?this.constraints||(this.constraints=this.resolveRefConstraints()):u&&l?this.constraints=(e=l.actual,t=u.top,r=u.left,n=u.bottom,i=u.right,{x:nh(e.x,r,i),y:nh(e.y,t,n)}):this.constraints=!1,this.elastic=(void 0===(o=c)&&(o=.35),!1===o?o=0:!0===o&&(o=.35),{x:ny(o,"left","right"),y:ny(o,"top","bottom")}),f!==this.constraints&&l&&this.constraints&&!this.hasMutatedConstraints&&nS(function(e){if(a.getAxisMotionValue(e)){var t,r,n;a.constraints[e]=(t=l.actual[e],r=a.constraints[e],n={},void 0!==r.min&&(n.min=r.min-t.min),void 0!==r.max&&(n.max=r.max-t.min),n)}})},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,r=e.onMeasureDragConstraints;if(!t||!A(t))return!1;var n=t.current;h(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=(s=i.root,u=nj(n,this.visualElement.getTransformPagePoint()),(c=s.scroll)&&(nP(u.x,c.x),nP(u.y,c.y)),u),a={x:nv((l=i.layout.actual).x,o.x),y:nv(l.y,o.y)};if(r){var s,u,c,l,f,d,p,v=r((d=(f=a).x,{top:(p=f.y).min,right:d.max,bottom:p.max,left:d.min}));this.hasMutatedConstraints=!!v,v&&(a=n_(v))}return a},e.prototype.startAnimation=function(e){var t=this,r=this.getProps(),n=r.drag,i=r.dragMomentum,o=r.dragElastic,a=r.dragTransition,s=r.dragSnapToOrigin,c=r.onDragTransitionEnd,l=this.constraints||{};return Promise.all(nS(function(r){if(nL(r,n,t.currentDirection)){var c,f=null!==(c=null==l?void 0:l[r])&&void 0!==c?c:{};s&&(f={min:0,max:0});var d=(0,u.pi)((0,u.pi)({type:"inertia",velocity:i?e[r]:0,bounceStiffness:o?200:1e6,bounceDamping:o?40:1e7,timeConstant:750,restDelta:1,restSpeed:10},a),f);return t.startAxisValueAnimation(r,d)}})).then(c)},e.prototype.startAxisValueAnimation=function(e,t){var r=this.getAxisMotionValue(e);return rB(e,r,0,t)},e.prototype.stopAnimation=function(){var e=this;nS(function(t){return e.getAxisMotionValue(t).stop()})},e.prototype.getAxisMotionValue=function(e){var t,r,n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,null!==(r=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==r?r:0)},e.prototype.snapToCursor=function(e){var t=this;nS(function(r){if(nL(r,t.getProps().drag,t.currentDirection)){var n=t.visualElement.projection,i=t.getAxisMotionValue(r);if(n&&n.layout){var o=n.layout.actual[r],a=o.min,s=o.max;i.set(e[r]-tS(a,s,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,r=this.getProps(),n=r.drag,i=r.dragConstraints,o=this.visualElement.projection;if(A(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};nS(function(e){var r=t.getAxisMotionValue(e);if(r){var n,i,o,s,u,c=r.get();a[e]=(n={min:c,max:c},i=t.constraints[e],o=.5,s=ns(n),(u=ns(i))>s?o=tE(i.min,i.max-s,n.min):s>u&&(o=tE(n.min,n.max-u,i.min)),th(0,1,o))}});var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout(),this.resolveConstraints(),nS(function(e){if(nL(e,n,null)){var r=t.getAxisMotionValue(e),i=t.constraints[e],o=i.min,s=i.max;r.set(tS(o,s,a[e]))}})}},e.prototype.addListeners=function(){var e,t=this;nM.set(this.visualElement,this);var r=eZ(this.visualElement.getInstance(),"pointerdown",function(e){var r=t.getProps(),n=r.drag,i=r.dragListener;n&&(void 0===i||i)&&t.start(e)}),n=function(){A(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",n);i&&!i.layout&&(null===(e=i.root)||void 0===e||e.updateScroll(),i.updateLayout()),n();var a=eB(window,"resize",function(){return t.scalePositionWithinConstraints()});return i.addEventListener("didUpdate",function(e){var r=e.delta,n=e.hasLayoutChanged;t.isDragging&&n&&(nS(function(e){var n=t.getAxisMotionValue(e);n&&(t.originPoint[e]+=r[e].translate,n.set(n.get()+r[e].translate))}),t.visualElement.syncRender())}),function(){a(),r(),o()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,r=e.dragDirectionLock,n=e.dragPropagation,i=e.dragConstraints,o=e.dragElastic,a=e.dragMomentum;return(0,u.pi)((0,u.pi)({},e),{drag:void 0!==t&&t,dragDirectionLock:void 0!==r&&r,dragPropagation:void 0!==n&&n,dragConstraints:void 0!==i&&i,dragElastic:void 0===o?.35:o,dragMomentum:void 0===a||a})},e}();function nL(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}var nV={pan:tc(function(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=(0,c.useRef)(null),s=(0,c.useContext)(g).transformPagePoint,u={onSessionStart:i,onStart:r,onMove:t,onEnd:function(e,t){a.current=null,n&&n(e,t)}};(0,c.useEffect)(function(){null!==a.current&&a.current.updateHandlers(u)}
15),e0(o,"pointerdown",(t||r||n||i)&&function(e){a.current=new nr(e,u,{transformPagePoint:s})}),(0,e9.z)(function(){return a.current&&a.current.end()})}),drag:tc(function(e){var t=e.dragControls,r=e.visualElement,n=(0,I.h)(function(){return new nF(r)});(0,c.useEffect)(function(){return t&&t.subscribe(n)},[n,t]),(0,c.useEffect)(function(){return n.addListeners()},[n])})},nH=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],nU=function(e){var t=e.treeType,r=void 0===t?"":t,n=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,c=e.readValueFromInstance,l=e.removeValueFromRenderState,f=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(e,t){var p,h,v,y,m,g=e.parent,b=e.props,w=e.presenceId,E=e.blockInitialAnimation,S=e.visualState,_=e.shouldReduceMotion;void 0===t&&(t={});var k=!1,A=S.latestValues,T=S.renderState,x=(p=nH.map(function(){return new rG}),h={},v={clearAllListeners:function(){return p.forEach(function(e){return e.clear()})},updatePropListeners:function(e){nH.forEach(function(t){var r,n="on"+t,i=e[n];null===(r=h[t])||void 0===r||r.call(h),i&&(h[t]=v[n](i))})}},p.forEach(function(e,t){v["on"+nH[t]]=function(t){return e.add(t)},v["notify"+nH[t]]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.notify.apply(e,(0,u.ev)([],(0,u.CR)(t),!1))}}),v),C=new Map,R=new Map,I={},N=(0,u.pi)({},A);function j(){y&&k&&(M(),s(y,T,b.style,B.projection))}function M(){n(B,T,A,t,b)}function F(){x.notifyUpdate(A)}function L(e,t){var r=t.onChange(function(t){A[e]=t,b.onUpdate&&rp.ZP.update(F,!1,!0)}),n=t.onRenderRequest(B.scheduleRender);R.set(e,function(){r(),n()})}var V=d(b);for(var H in V){var U=V[H];void 0!==A[H]&&z(U)&&U.set(A[H],!1)}var W=P(b),K=D(b),B=(0,u.pi)((0,u.pi)({treeType:r,current:null,depth:g?g.depth+1:0,parent:g,children:new Set,presenceId:w,shouldReduceMotion:_,variantChildren:K?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==g?void 0:g.isMounted()),blockInitialAnimation:E,isMounted:function(){return Boolean(y)},mount:function(e){k=!0,y=B.current=e,B.projection&&B.projection.mount(e),K&&g&&!W&&(m=null==g?void 0:g.addVariantChild(B)),C.forEach(function(e,t){return L(t,e)}),null==g||g.children.add(B),B.setProps(b)},unmount:function(){var e;null===(e=B.projection)||void 0===e||e.unmount(),rp.qY.update(F),rp.qY.render(j),R.forEach(function(e){return e()}),null==m||m(),null==g||g.children.delete(B),x.clearAllListeners(),y=void 0,k=!1},addVariantChild:function(e){var t,r=B.getClosestVariantNode();if(r)return null===(t=r.variantChildren)||void 0===t||t.add(e),function(){return r.variantChildren.delete(e)}},sortNodePosition:function(e){return f&&r===e.treeType?f(B.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return K?B:null==g?void 0:g.getClosestVariantNode()},getLayoutId:function(){return b.layoutId},getInstance:function(){return y},getStaticValue:function(e){return A[e]},setStaticValue:function(e,t){return A[e]=t},getLatestValues:function(){return A},setVisibility:function(e){B.isVisible!==e&&(B.isVisible=e,B.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),o(B,e,b,t)},measureViewportBox:function(){return a(y,b)},addValue:function(e,t){B.hasValue(e)&&B.removeValue(e),C.set(e,t),A[e]=t.get(),L(e,t)},removeValue:function(e){var t;C.delete(e),null===(t=R.get(e))||void 0===t||t(),R.delete(e),delete A[e],l(e,T)},hasValue:function(e){return C.has(e)},getValue:function(e,t){var r=C.get(e);return void 0===r&&void 0!==t&&(r=rz(t),B.addValue(e,r)),r}
15,forEachValue:function(e){return C.forEach(e)},readValue:function(e){var r;return null!==(r=A[e])&&void 0!==r?r:c(y,e,t)},setBaseTarget:function(e,t){N[e]=t},getBaseTarget:function(e){if(i){var t=i(b,e);if(void 0!==t&&!z(t))return t}return N[e]}},x),{build:function(){return M(),T},scheduleRender:function(){rp.ZP.render(j,!1,!0)},syncRender:j,setProps:function(e){(e.transformTemplate||b.transformTemplate)&&B.scheduleRender(),b=e,x.updatePropListeners(e),I=function(e,t,r){var n;for(var i in t){var o=t[i],a=r[i];if(z(o))e.addValue(i,o);else if(z(a))e.addValue(i,rz(o));else if(a!==o){if(e.hasValue(i)){var s=e.getValue(i);s.hasAnimated||s.set(o)}else e.addValue(i,rz(null!==(n=e.getStaticValue(i))&&void 0!==n?n:o))}}for(var i in r)void 0===t[i]&&e.removeValue(i);return t}(B,d(b),I)},getProps:function(){return b},getVariant:function(e){var t;return null===(t=b.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return b.transition},getTransformPagePoint:function(){return b.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==g?void 0:g.getVariantContext();if(!W){var t=(null==g?void 0:g.getVariantContext())||{};return void 0!==b.initial&&(t.initial=b.initial),t}for(var r={},n=0;n<nK;n++){var i=nW[n],o=b[i];(O(o)||!1===o)&&(r[i]=o)}return r}});return B}},nW=(0,u.ev)(["initial"],(0,u.CR)(r5),!1),nK=nW.length;function nB(e){return"string"==typeof e&&e.startsWith("var(--")}var nq=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nJ(e,t,r){void 0===r&&(r=1),h(r<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var n=(0,u.CR)(function(e){var t=nq.exec(e);if(!t)return[,];var r=(0,u.CR)(t,3);return[r[1],r[2]]}(e),2),i=n[0],o=n[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():nB(o)?nJ(o,t,r+1):o}}var nG=new Set(["width","height","top","left","right","bottom","x","y"]),nQ=function(e){return nG.has(e)},nz=function(e,t){e.set(t,!1),e.set(t)},n$=function(e){return e===ef||e===es};(o=s||(s={})).width="width",o.height="height",o.left="left",o.right="right",o.top="top",o.bottom="bottom";var nY=function(e,t){return parseFloat(e.split(", ")[t])},nX=function(e,t){return function(r,n){var i=n.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return nY(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?nY(a[1],e):0}},nZ=new Set(["x","y","z"]),n0=K.filter(function(e){return!nZ.has(e)}),n1={width:function(e,t){var r=e.x,n=t.paddingLeft,i=t.paddingRight;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(void 0===i?"0":i)},height:function(e,t){var r=e.y,n=t.paddingTop,i=t.paddingBottom;return r.max-r.min-parseFloat(void 0===n?"0":n)-parseFloat(void 0===i?"0":i)},top:function(e,t){return parseFloat(t.top)},left:function(e,t){return parseFloat(t.left)},bottom:function(e,t){var r=e.y;return parseFloat(t.top)+(r.max-r.min)},right:function(e,t){var r=e.x;return parseFloat(t.left)+(r.max-r.min)},x:nX(4,13),y:nX(5,14)},n2=function(e,t,r){var n=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(function(e){s[e]=n1[e](n,o)}),t.syncRender();var u=t.measureViewportBox();return r.forEach(function(r){nz(t.getValue(r),s[r]),e[r]=n1[r](u,o)}),e},n5=function(e,t,r,n){void 0===r&&(r={}),void 0===n&&(n={}),t=(0,u.pi)({},t),n=(0,u.pi)({},n);var i=Object.keys(t).filter(nQ),o=[],a=!1,s=[];if(i.forEach(function(i){var u,c=e.getValue(i);if(e.hasValue(i)){var l=r[i],f=rX(l),d=t[i];if(eF(d)){var p=d.length,v=null===d[0]?1:0;f=rX(l=d[v]);for(var y=v;y<p;y++)u?h(rX(d[y])===u,"All keyframes must be of the same type"):h((u=rX(d[y]))===f||n$(f)&&n$(u),"Keyframes must be of the same dimension as the current value")}else u=rX(d);if(f!==u){if(n$(f)&&n$(u)){var m,g=c.get();"string"==typeof g&&c.set(parseFloat(g)),"string"==typeof d?t[i]=parseFloat(d):Array.isArray(d)&&u===es&&(t[i]=d.map(parseFloat))}else(null==f?void 0:f.transform)&&(null==u?void 0:u.transform)&&(0===l||0===d)?0===l?c.set(u.transform(l)):t[i]=f.transform(d):(a||(m=[],n0.forEach(function(t){var r=e.getValue(t);void 0!==r&&(m.push([t,r.get()]),r.set(t.startsWith("scale")?1:0))}),m.length&&e.syncRender(),o=m,a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],nz(c,d))}}}),!s.length)return{target:t,transitionEnd:n};var c=s.indexOf("height")>=0?window.pageYOffset:null,l=n2(t,e,s);
15return o.length&&o.forEach(function(t){var r=(0,u.CR)(t,2),n=r[0],i=r[1];e.getValue(n).set(i)}),e.syncRender(),null!==c&&window.scrollTo({top:c}),{target:l,transitionEnd:n}},n3=function(e,t,r,n){var i,o,a=function(e,t,r){var n,i=(0,u._T)(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:r};for(var a in r&&(r=(0,u.pi)({},r)),e.forEachValue(function(e){var t=e.get();if(nB(t)){var r=nJ(t,o);r&&e.set(r)}}),i){var s=i[a];if(nB(s)){var c=nJ(s,o);c&&(i[a]=c,r&&(null!==(n=r[a])&&void 0!==n||(r[a]=s)))}}return{target:i,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,Object.keys(i).some(nQ)?n5(e,i,r,o):{target:i,transitionEnd:o}},n4={treeType:"dom",readValueFromInstance:function(e,t){if(J(t)){var r=rF(t);return r&&r.default||0}var n=window.getComputedStyle(e);return(Y(t)?n.getPropertyValue(t):n[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var r;return null===(r=e.style)||void 0===r?void 0:r[t]},measureViewportBox:function(e,t){return nj(e,t.transformPagePoint)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;void 0===n&&(n=!0);var o=t.transition,a=t.transitionEnd,s=(0,u._T)(t,["transition","transitionEnd"]),c=function(e,t,r){var n,i,o={};for(var a in e)o[a]=null!==(n=function(e,t){if(t)return(t[e]||t.default||t).from}(a,t))&&void 0!==n?n:null===(i=r.getValue(a))||void 0===i?void 0:i.get();return o}(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),c&&(c=i(c))),n){!function(e,t,r){var n,i,o,a,s=Object.keys(t).filter(function(t){return!e.hasValue(t)}),u=s.length;if(u)for(var c=0;c<u;c++){var l,f,d,p=s[c],h=t[p],v=null;Array.isArray(h)&&(v=h[0]),null===v&&(v=null!==(i=null!==(n=r[p])&&void 0!==n?n:e.readValue(p))&&void 0!==i?i:t[p]),null!=v&&("string"==typeof v&&(l=v,/^\-?\d*\.?\d+$/.test(l)||(f=v,/^0[^.\s]+$/.test(f)))?v=parseFloat(v):(d=v,!rZ.find(r$(d))&&tB.test(h)&&(v=rL(p,h))),e.addValue(p,rz(v)),null!==(o=(a=r)[p])&&void 0!==o||(a[p]=v),e.setBaseTarget(p,v))}}(e,s,c);var l=n3(e,s,c,a);a=l.transitionEnd,s=l.target}return(0,u.pi)({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:eN,build:function(e,t,r,n,i){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),ey(t,r,n,i.transformTemplate)},render:eD},n8=nU(n4),n6=nU((0,u.pi)((0,u.pi)({},n4),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return J(t)?(null===(r=rF(t))||void 0===r?void 0:r.default)||0:(t=eR.has(t)?t:eP(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ej,build:function(e,t,r,n,i){eT(t,r,n,i.transformTemplate)},render:eI})),n9=function(e,t){return H(e)?n6(t,{enableHardwareAcceleration:!1}):n8(t,{enableHardwareAcceleration:!0})};function n7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ie={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!es.test(e))return e;e=parseFloat(e)}var r=n7(e,t.target.x),n=n7(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},it="_$css",ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,u.ZT)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,r=t.visualElement,n=t.layoutGroup,i=t.switchLayoutGroup,o=t.layoutId,a=r.projection;Object.assign(U,ii),a&&((null==n?void 0:n.group)&&n.group.add(a),(null==i?void 0:i.register)&&o&&i.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",function(){e.safeToRemove()}),a.setOptions((0,u.pi)((0,u.pi)({},a.options),{onExitComplete:function(){return e.safeToRemove()}}))),N.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,r=this.props,n=r.layoutDependency,i=r.visualElement,o=r.drag,a=r.isPresent,s=i.projection;return s&&(s.isPresent=a,o||e.layoutDependency!==n||void 0===n?s.willUpdate():this.safeToRemove(),e.isPresent===a||(a?s.promote():s.relegate()||rp.ZP.postRender(function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,r=e.layoutGroup,n=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),(null==r?void 0:r.group)&&r.group.remove(i),(null==n?void 0:n.deregister)&&n.deregister(i))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(c.Component),ii={borderRadius:(0,u.pi)((0,u.pi)({},ie),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:ie,borderTopRightRadius:ie,borderBottomLeftRadius:ie,borderBottomRightRadius:ie,boxShadow:{correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(nq,function(e){return a.push(e),it}));var s=tB.parse(e);if(s.length>5)return i;var u=tB.createTransformer(e),c="number"!=typeof s[0]?1:0,l=n.x.scale*r.x,f=n.y.scale*r.y;s[0+c]/=l,s[1+c]/=f;var d=tS(l,f,.5);
15"number"==typeof s[2+c]&&(s[2+c]/=d),"number"==typeof s[3+c]&&(s[3+c]/=d);var p=u(s);if(o){var h=0;p=p.replace(it,function(){var e=a[h];return h++,e})}return p}}},io=["TopLeft","TopRight","BottomLeft","BottomRight"],ia=io.length,is=function(e){return"string"==typeof e?parseFloat(e):e},iu=function(e){return"number"==typeof e||es.test(e)};function ic(e,t){var r;return null!==(r=e[t])&&void 0!==r?r:e.borderRadius}var il=ip(0,.5,t7),id=ip(.5,.95,t3);function ip(e,t,r){return function(n){return n<e?0:n>t?1:r(tE(e,t,n))}}function ih(e,t){e.min=t.min,e.max=t.max}function iv(e,t){ih(e.x,t.x),ih(e.y,t.y)}function iy(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function im(e,t,r,n,i){var o=(0,u.CR)(r,3),a=o[0],s=o[1],c=o[2];!function(e,t,r,n,i,o,a){if(void 0===t&&(t=0),void 0===r&&(r=1),void 0===n&&(n=.5),void 0===o&&(o=e),void 0===a&&(a=e),ea.test(t)&&(t=parseFloat(t),t=tS(a.min,a.max,t/100)-a.min),"number"==typeof t){var s=tS(o.min,o.max,n);e===o&&(s-=t),e.min=iy(e.min,t,r,s,i),e.max=iy(e.max,t,r,s,i)}}(e,t[a],t[s],t[c],t.scale,n,i)}var ig=["x","scaleX","originX"],ib=["y","scaleY","originY"];function iw(e,t,r,n){im(e.x,t,ig,null==r?void 0:r.x,null==n?void 0:n.x),im(e.y,t,ib,null==r?void 0:r.y,null==n?void 0:n.y)}function iE(e){return 0===e.translate&&1===e.scale}function iS(e){return iE(e.x)&&iE(e.y)}function i_(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var ik=function(){function e(){this.members=[]}return e.prototype.add=function(e){rq(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(rJ(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,r=this.members.findIndex(function(t){return e===t});if(0===r)return!1;for(var n=r;n>=0;n--){var i=this.members[n];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var r,n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues,e.snapshot.isShared=!0),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(e){var t,r,n,i,o;null===(r=(t=e.options).onExitComplete)||void 0===r||r.call(t),null===(o=null===(n=e.resumingFrom)||void 0===n?void 0:(i=n.options).onExitComplete)||void 0===o||o.call(i)})},e.prototype.scheduleRender=function(){this.members.forEach(function(e){e.instance&&e.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}();function iA(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,u=r.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}var c=e.x.scale*t.x,l=e.y.scale*t.y;return"translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)"===(o+="scale(".concat(c,", ").concat(l,")"))?"none":o}var iT=function(e,t){return e.depth-t.depth},iO=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){rq(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){rJ(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(iT),this.isDirty=!1,this.children.forEach(e)},e}();function ix(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function e(e,t,n){var i=this;void 0===t&&(t={}),void 0===n&&(n=null==r?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){i.isUpdating&&(i.isUpdating=!1,i.clearAllSnapshots())}
15,this.updateProjection=function(){i.nodes.forEach(ij),i.nodes.forEach(iM)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?(0,u.ev)((0,u.ev)([],(0,u.CR)(n.path),!1),[n],!1):[],this.parent=n,this.depth=n?n.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var o=0;o<this.path.length;o++)this.path[o].shouldResetTransform=!0;this.root===this&&(this.nodes=new iO)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new rG),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.eventHandlers.get(e);null==n||n.notify.apply(n,(0,u.ev)([],(0,u.CR)(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,r){var n=this;if(void 0===r&&(r=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var i=this.options,o=i.layoutId,a=i.layout,s=i.visualElement;if(s&&!s.getInstance()&&s.mount(e),this.root.nodes.add(this),null===(c=this.parent)||void 0===c||c.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),r&&(a||o)&&(this.isLayoutDirty=!0),t){var c,l,f=function(){return n.root.updateBlockedByResize=!1};t(e,function(){n.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(f,250),N.hasAnimatedSinceResize&&(N.hasAnimatedSinceResize=!1,n.nodes.forEach(iN))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||a)&&this.addEventListener("didUpdate",function(e){var t,r,i,o,a,c=e.delta,l=e.hasLayoutChanged,f=e.hasRelativeTargetChanged,d=e.layout;if(n.isTreeAnimationBlocked()){n.target=void 0,n.relativeTarget=void 0;return}var p=null!==(r=null!==(t=n.options.transition)&&void 0!==t?t:s.getDefaultTransition())&&void 0!==r?r:iW,h=s.getProps(),v=h.onLayoutAnimationStart,y=h.onLayoutAnimationComplete,m=!n.targetLayout||!i_(n.targetLayout,d)||f,g=!l&&f;if((null===(i=n.resumeFrom)||void 0===i?void 0:i.instance)||g||l&&(m||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0),n.setAnimationOrigin(c,g);var b=(0,u.pi)((0,u.pi)({},rK(p,"layout")),{onPlay:v,onComplete:y});s.shouldReduceMotion&&(b.delay=0,b.type=!1),n.startAnimation(b)}else l||0!==n.animationProgress||n.finishAnimation(),n.isLead()&&(null===(a=(o=n.options).onExitComplete)||void 0===a||a.call(o));n.targetLayout=d})}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,rp.qY.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(iF))},e.prototype.willUpdate=function(e){if(void 0===e&&(e=!0),this.root.isUpdateBlocked()){null===(r=(t=this.options).onExitComplete)||void 0===r||r.call(t);return}if(this.root.isUpdating||this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var t,r,n,i=0;i<this.path.length;i++){var o=this.path[i];o.shouldResetTransform=!0,o.updateScroll()}var a=this.options,s=a.layoutId,u=a.layout;if(void 0!==s||u){var c=null===(n=this.options.visualElement)||void 0===n?void 0:n.getProps().transformTemplate;this.prevTransformTemplateValue=null==c?void 0:c(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
15h(iR);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(iK),this.potentialNodes.clear()),this.nodes.forEach(iI),this.nodes.forEach(iC),this.nodes.forEach(iP),this.clearAllSnapshots(),rp.iW.update(),rp.iW.preRender(),rp.iW.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(iD),this.sharedNodes.forEach(iL)},e.prototype.scheduleUpdateProjection=function(){rp.ZP.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;rp.ZP.postRender(function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()})},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));iq(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e,t=0;t<this.path.length;t++)this.path[t].updateScroll();var r=this.measure();iq(r);var n=this.layout;this.layout={measured:r,actual:this.removeElementScroll(r)},this.layoutCorrected=nE(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==n?void 0:n.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))},e.prototype.resetTransform=function(){if(o){var e,t=this.isLayoutDirty||this.shouldResetTransform,r=this.projectionDelta&&!iS(this.projectionDelta),n=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,i=null==n?void 0:n(this.latestValues,""),a=i!==this.prevTransformTemplateValue;t&&(r||nT(this.latestValues)||a)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return nE();var t=e.measureViewportBox(),r=this.root.scroll;return r&&(nP(t.x,r.x),nP(t.y,r.y)),t},e.prototype.removeElementScroll=function(e){var t=nE();iv(t,e);for(var r=0;r<this.path.length;r++){var n=this.path[r],i=n.scroll,o=n.options,a=n.isScrollRoot;if(n!==this.root&&i&&o.layoutScroll){if(a){iv(t,e);var s=this.root.scroll;s&&(nP(t.x,-s.x),nP(t.y,-s.y))}nP(t.x,i.x),nP(t.y,i.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var r=nE();iv(r,e);for(var n=0;n<this.path.length;n++){var i=this.path[n];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nN(r,{x:-i.scroll.x,y:-i.scroll.y}),nT(i.latestValues)&&nN(r,i.latestValues)}return nT(this.latestValues)&&nN(r,this.latestValues),r},e.prototype.removeTransform=function(e){var t,r=nE();iv(r,e);for(var n=0;n<this.path.length;n++){var i=this.path[n];if(i.instance&&nT(i.latestValues)){nA(i.latestValues)&&i.updateSnapshot();var o=nE();iv(o,i.measure()),iw(r,i.latestValues,null===(t=i.snapshot)||void 0===t?void 0:t.layout,o)}}return nT(this.latestValues)&&iw(r,this.latestValues),r},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=(0,u.pi)((0,u.pi)((0,u.pi)({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,r,n,i=this.options,o=i.layout,a=i.layoutId;this.layout&&(o||a)&&(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=nE(),this.relativeTargetOrigin=nE(),np(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),iv(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&((this.target||(this.target=nE(),this.targetWithTransforms=nE()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(n=this.relativeParent)||void 0===n?void 0:n.target))?(e=this.target,t=this.relativeTarget,r=this.relativeParent.target,nf(e.x,t.x,r.x),nf(e.y,t.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):iv(this.target,this.layout.actual),nC(this.target,this.targetDelta)):iv(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=nE(),this.relativeTargetOrigin=nE(),np(this.relativeTargetOrigin,this.target,this.relativeParent.target),iv(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(!(!this.parent||nT(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,r=t.layout,n=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(r||n)){var i=this.getLead();iv(this.layoutCorrected,this.layout.actual),function(e,t,r,n){void 0===n&&(n=!1);var i,o,a,s,u=r.length;if(u){t.x=t.y=1;for(var c=0;c<u;c++)s=(a=r[c]).projectionDelta,(null===(o=null===(i=a.instance)||void 0===i?void 0:i.style)||void 0===o?void 0:o.display)!=="contents"&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&nN(e,{x:-a.scroll.x,y:-a.scroll.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,nC(e,s)),n&&nT(a.latestValues)&&nN(e,a.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==i);var o=i.target;if(o){this.projectionDelta||(this.projectionDelta=nb(),this.projectionDeltaWithTransform=nb());var a=this.treeScale.x,s=this.treeScale.y,u=this.projectionTransform;nl(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.projectionTransform=iA(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,r,n;void 0===e&&(e=!0),null===(r=(t=this.options).scheduleRender)||void 0===r||r.call(t),e&&(null===(n=this.getStack())||void 0===n||n.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var r,n=this;void 0===t&&(t=!1);var i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},a=(0,u.pi)({},this.latestValues),s=nb();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;
15var c=nE(),l=null==i?void 0:i.isShared,f=1>=((null===(r=this.getStack())||void 0===r?void 0:r.members.length)||0),d=Boolean(l&&!f&&!0===this.options.crossfade&&!this.path.some(iU));this.animationProgress=0,this.mixTargetDelta=function(t){var r,i,u,p=t/1e3;iV(s.x,e.x,p),iV(s.y,e.y,p),n.setTargetDelta(s),n.relativeTarget&&n.relativeTargetOrigin&&n.layout&&(null===(u=n.relativeParent)||void 0===u?void 0:u.layout)&&(np(c,n.layout.actual,n.relativeParent.layout.actual),r=n.relativeTarget,i=n.relativeTargetOrigin,iH(r.x,i.x,c.x,p),iH(r.y,i.y,c.y,p)),l&&(n.animationValues=a,function(e,t,r,n,i,o){var a,s,u,c;i?(e.opacity=tS(0,null!==(a=r.opacity)&&void 0!==a?a:1,il(n)),e.opacityExit=tS(null!==(s=t.opacity)&&void 0!==s?s:1,0,id(n))):o&&(e.opacity=tS(null!==(u=t.opacity)&&void 0!==u?u:1,null!==(c=r.opacity)&&void 0!==c?c:1,n));for(var l=0;l<ia;l++){var f="border".concat(io[l],"Radius"),d=ic(t,f),p=ic(r,f);(void 0!==d||void 0!==p)&&(d||(d=0),p||(p=0),0===d||0===p||iu(d)===iu(p)?(e[f]=Math.max(tS(is(d),is(p),n),0),(ea.test(p)||ea.test(d))&&(e[f]+="%")):e[f]=p)}(t.rotate||r.rotate)&&(e.rotate=tS(t.rotate||0,r.rotate||0,n))}(a,o,n.latestValues,p,d,f)),n.root.scheduleUpdateProjection(),n.scheduleRender(),n.animationProgress=p},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,r,n=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(r=this.resumingFrom.currentAnimation)||void 0===r||r.stop()),this.pendingAnimation&&(rp.qY.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rp.ZP.update(function(){var t,r;N.hasAnimatedSinceResize=!0,n.currentAnimation=(void 0===(t=(0,u.pi)((0,u.pi)({},e),{onUpdate:function(t){var r;n.mixTargetDelta(t),null===(r=e.onUpdate)||void 0===r||r.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),n.completeAnimation()}}))&&(t={}),rB("",r=z(0)?0:rz(0),1e3,t),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}),n.resumingFrom&&(n.resumingFrom.currentAnimation=n.currentAnimation),n.pendingAnimation=void 0})},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,r=e.target,n=e.layout,i=e.latestValues;t&&r&&n&&(iv(t,r),nN(t,i),nl(this.projectionDeltaWithTransform,this.layoutCorrected,t,i))},e.prototype.registerSharedNode=function(e,t){var r,n,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new ik),this.sharedNodes.get(e).add(t),t.promote({transition:null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.transition,preserveFollowOpacity:null===(i=null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.shouldPreserveFollowOpacity)||void 0===i?void 0:i.call(n,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,r=t.needsReset,n=t.transition,i=t.preserveFollowOpacity,o=this.getStack();o&&o.promote(this,i),r&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,r={},n=0;n<W.length;n++){var i="rotate"+W[n];e.getStaticValue(i)&&(t=!0,r[i]=e.getStaticValue(i),e.setStaticValue(i,0))}if(t){for(var i in null==e||e.syncRender(),r)e.setStaticValue(i,r[i]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){void 0===e&&(e={});var t,r,n,i,o,a,s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var u=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=eV(e.pointerEvents)||"",s.transform=u?u(this.latestValues,""):"none",s;var c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){var l={};return this.options.layoutId&&(l.opacity=null!==(r=this.latestValues.opacity)&&void 0!==r?r:1,l.pointerEvents=eV(e.pointerEvents)||""),this.hasProjected&&!nT(this.latestValues)&&(l.transform=u?u({},""):"none",this.hasProjected=!1),l}var f=c.animationValues||c.latestValues;this.applyTransformsToTarget(),s.transform=iA(this.projectionDeltaWithTransform,this.treeScale,f),u&&(s.transform=u(f,s.transform));var d=this.projectionDelta,p=d.x,h=d.y;for(var v in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*h.origin,"% 0"),c.animationValues?s.opacity=c===this?null!==(i=null!==(n=f.opacity)&&void 0!==n?n:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:s.opacity=c===this?null!==(o=f.opacity)&&void 0!==o?o:"":null!==(a=f.opacityExit)&&void 0!==a?a:0,U)if(void 0!==f[v]){var y=U[v],m=y.correct,g=y.applyTo,b=m(f[v],c);if(g)for(var w=g.length,E=0;E<w;E++)s[g[E]]=b;else s[v]=b}return this.options.layoutId&&(s.pointerEvents=c===this?eV(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0}
15,e.prototype.resetTree=function(){this.root.nodes.forEach(function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(iR),this.root.sharedNodes.clear()},e}()}function iC(e){e.updateLayout()}function iP(e){var t,r,n,i,o=null!==(r=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==r?r:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,u=a.measured;"size"===e.options.animationType?nS(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=ns(t);t.min=s[e].min,t.max=t.min+r}):"position"===e.options.animationType&&nS(function(e){var t=o.isShared?o.measured[e]:o.layout[e],r=ns(s[e]);t.max=t.min+r});var c=nb();nl(c,s,o.layout);var l=nb();o.isShared?nl(l,e.applyTransform(u,!0),o.measured):nl(l,s,o.layout);var f=!iS(c),d=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,h=p.snapshot,v=p.layout;if(h&&v){var y=nE();np(y,o.layout,h.layout);var m=nE();np(m,s,v.actual),i_(y,m)||(d=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:l,layoutDelta:c,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&(null===(i=(n=e.options).onExitComplete)||void 0===i||i.call(n));e.options.transition=void 0}function iD(e){e.clearSnapshot()}function iR(e){e.clearMeasurements()}function iI(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function iN(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ij(e){e.resolveTargetDelta()}function iM(e){e.calcProjection()}function iF(e){e.resetRotation()}function iL(e){e.removeLeadSnapshot()}function iV(e,t,r){e.translate=tS(t.translate,0,r),e.scale=tS(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function iH(e,t,r,n){e.min=tS(t.min,r.min,n),e.max=tS(t.max,r.max,n)}function iU(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var iW={duration:.45,ease:[.4,0,.1,1]};function iK(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(Boolean(e.path[n].instance)){r=e.path[n];break}var i=(r&&r!==e.root?r.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));i&&e.mount(i,!0)}function iB(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function iq(e){iB(e.x),iB(e.y)}var iJ=ix({attachResizeListener:function(e,t){return eB(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),iG={current:void 0},iQ=ix({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!iG.current){var e=new iJ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),iG.current=e}return iG.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),iz=(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},r6),tl),nV),{measureLayout:function(e){var t=(0,u.CR)(td(),2),r=t[0],n=t[1],i=(0,c.useContext)(M.p);return c.createElement(ir,(0,u.pi)({},e,{layoutGroup:i,switchLayoutGroup:(0,c.useContext)(F),isPresent:r,safeToRemove:n}))}}),i$=function(e){function t(t,r){var n,i,o,a,s,f,p;return void 0===r&&(r={}),i=(n=e(t,r)).preloadedFeatures,o=n.createVisualElement,a=n.projectionNodeConstructor,s=n.useRender,f=n.useVisualState,p=n.Component,i&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?d.projectionNodeConstructor=e[t]:d[t].Component=e[t])}(i),(0,c.forwardRef)(function(e,t){var r,n,T,x,C,D,V,H,U,W,K,B,q,J,G,Q,z,$,Y,X,Z,ee,et,er,en,ei,eo,ea,es=(B=e.layoutId,(q=null===(K=(0,c.useContext)(M.p))||void 0===K?void 0:K.id)&&void 0!==B?q+"-"+B:B);e=(0,u.pi)((0,u.pi)({},e),{layoutId:es});var eu=(0,c.useContext)(g),ec=null,el=(G=(J=function(e,t){if(P(e)){var r=e.initial,n=e.animate;return{initial:!1===r||O(r)?r:void 0,animate:O(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(b))).initial,Q=J.animate,(0,c.useMemo)(function(){return{initial:G,animate:Q}},[R(G),R(Q)])),ef=eu.isStatic?void 0:(0,I.h)(function(){if(N.hasEverUpdated)return j++}),ed=f(e,eu.isStatic);return!eu.isStatic&&S.j&&(el.visualElement=(z=(0,u.pi)((0,u.pi)({},eu),e),$=o,Y=(0,c.useContext)(v),X=(0,c.useContext)(b).visualElement,Z=(0,c.useContext)(w.O),k||function(){if(k=!0,S.j){if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return _.current=e.matches};e.addListener(t),t()}else _.current=!1}}
15(),ee=(0,u.CR)((0,c.useState)(_.current),1)[0],er="never"!==(et=(0,c.useContext)(g).reducedMotion)&&("always"===et||ee),en=(0,c.useRef)(void 0),$||($=Y.renderer),!en.current&&$&&(en.current=$(p,{visualState:ed,parent:X,props:z,presenceId:null==Z?void 0:Z.id,blockInitialAnimation:(null==Z?void 0:Z.initial)===!1,shouldReduceMotion:er})),ei=en.current,(0,E.L)(function(){null==ei||ei.syncRender()}),(0,c.useEffect)(function(){var e;null===(e=null==ei?void 0:ei.animationState)||void 0===e||e.animateChanges()}),(0,E.L)(function(){return function(){return null==ei?void 0:ei.notifyUnmount()}},[]),ei),r=e,n=el.visualElement,T=a||d.projectionNodeConstructor,C=r.layoutId,D=r.layout,V=r.drag,H=r.dragConstraints,U=r.layoutScroll,W=(0,c.useContext)(F),!T||!n||(null==n?void 0:n.projection)||(n.projection=new T(ef,n.getLatestValues(),null===(x=n.parent)||void 0===x?void 0:x.projection),n.projection.setOptions({layoutId:C,layout:D,alwaysMeasureLayout:Boolean(V)||H&&A(H),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof D?D:"both",initialPromotionConfig:W,layoutScroll:U})),ec=function(e,t,r){var n=[],i=(0,c.useContext)(v);if(!t)return null;"production"!==l.O&&r&&i.strict&&h(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var o=0;o<m;o++){var a=y[o],s=d[a],f=s.isEnabled,p=s.Component;f(e)&&p&&n.push(c.createElement(p,(0,u.pi)({key:a},e,{visualElement:t})))}return n}(e,el.visualElement,i)),c.createElement(L,{visualElement:el.visualElement,props:(0,u.pi)((0,u.pi)({},eu),e)},ec,c.createElement(b.Provider,{value:el},s(p,e,ef,(eo=el.visualElement,ea=t,(0,c.useCallback)(function(e){var t;e&&(null===(t=ed.mount)||void 0===t||t.call(ed,e)),eo&&(e?eo.mount(e):eo.unmount()),ea&&("function"==typeof ea?ea(e):A(ea)&&(ea.current=e))},[eo])),ed,eu.isStatic,el.visualElement)))})}if("undefined"==typeof Proxy)return t;var r=new Map;return new Proxy(t,{get:function(e,n){return r.has(n)||r.set(n,t(n)),r.get(n)}})}(function(e,t){var r,n,i;return r=t.forwardMotionProps,n=H(e)?eW:eK,(0,u.pi)((0,u.pi)({},n),{preloadedFeatures:iz,useRender:(void 0===(i=void 0!==r&&r)&&(i=!1),function(e,t,r,n,o,a){var s=o.latestValues,l=(H(e)?ex:eb)(t,s,a),f=function(e,t,r){var n={};for(var i in e)(eS(i)||!0===r&&eE(i)||!t&&!eE(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(t,"string"==typeof e,i),d=(0,u.pi)((0,u.pi)((0,u.pi)({},f),l),{ref:n});return r&&(d["data-projection-id"]=r),(0,c.createElement)(e,d)}),createVisualElement:n9,projectionNodeConstructor:iQ,Component:e})})},1741:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});var n="undefined"!=typeof document},9304:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var n=r(3454),i=(void 0===n||n.env,"production")},6681:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(7294);function i(e){var t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},6316:function(e,t,r){"use strict";r.d(t,{M:function(){return a}});var n=r(6681),i=0,o=function(){return i++},a=function(){return(0,n.h)(o)}},8868:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(7294),i=r(1741).j?n.useLayoutEffect:n.useEffect},5411:function(e,t,r){"use strict";r.d(t,{z:function(){return i}});var n=r(7294);function i(e){return(0,n.useEffect)(function(){return function(){return e()}},[])}},4735:function(e,t,r){"use strict";r.d(t,{qY:function(){return p},ZP:function(){return b},iW:function(){return h},$B:function(){return g}});let n=1/60*1e3,i="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),o="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(i()),n),a=!0,s=!1,u=!1,c={delta:0,timestamp:0},l=["read","update","preRender","render","postRender"],f=l.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let u=s&&i,c=u?t:r;return o&&a.add(e),-1===c.indexOf(e)&&(c.push(e),u&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;r<n;r++){let n=t[r];n(u),a.has(n)&&(s.schedule(n),e())}i=!1,o&&(o=!1,s.process(u))}};return s}(()=>s=!0),e),{}),d=l.reduce((e,t)=>
15{let r=f[t];return e[t]=(e,t=!1,n=!1)=>(s||m(),r.schedule(e,t,n)),e},{}),p=l.reduce((e,t)=>(e[t]=f[t].cancel,e),{}),h=l.reduce((e,t)=>(e[t]=()=>f[t].process(c),e),{}),v=e=>f[e].process(c),y=e=>{s=!1,c.delta=a?n:Math.max(Math.min(e-c.timestamp,40),1),c.timestamp=e,u=!0,l.forEach(v),u=!1,s&&(a=!1,o(y))},m=()=>{s=!0,a=!0,u||o(y)},g=()=>c;var b=d},7826:function(e,t,r){"use strict";function n(e,t){let r=Boolean(e);if(!r)throw Error(t)}r.d(t,{a:function(){return n}})},5821:function(e,t,r){"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){if(null===t)return"null";if(r.includes(t))return"[Circular]";let n=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,n)}else if(Array.isArray(t))return function(t,r){if(0===t.length)return"[]";if(r.length>2)return"[Array]";let n=Math.min(10,t.length),i=t.length-n,o=[];for(let i=0;i<n;++i)o.push(e(t[i],r));return 1===i?o.push("... 1 more item"):i>1&&o.push(`... ${i} more items`),"["+o.join(", ")+"]"}(t,n);return function(t,r){let n=Object.entries(t);if(0===n.length)return"{}";if(r.length>2)return"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(t)+"]";let i=n.map(([t,n])=>t+": "+e(n,r));return"{ "+i.join(", ")+" }"}(t,n)}(t,r);default:return String(t)}}(e,[])}r.d(t,{X:function(){return n}})},2380:function(e,t,r){"use strict";var n,i;r.d(t,{UG:function(){return c},WU:function(){return a},Ye:function(){return o},h8:function(){return s},ku:function(){return n}});class o{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,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let 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"]},u=new Set(Object.keys(s));function c(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&u.has(t)}(i=n||(n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},7392:function(e,t,r){"use strict";r.d(t,{LZ:function(){return o},wv:function(){return i}});var n=r(8297);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let t=0;t<e.length;++t){let s=e[t],u=function(e){let t=0;for(;t<e.length&&(0,n.FD)(e.charCodeAt(t));)++t;return t}(s);u!==s.length&&(o=null!==(r=o)&&void 0!==r?r:t,a=t,0!==t&&u<i&&(i=u))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=o)&&void 0!==t?t:0,a+1)}function o(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.FD)(e.charCodeAt(0))),s=r.endsWith('\\"""'),u=e.endsWith('"')&&!s,c=e.endsWith("\\"),l=u||c,f=!(null!=t&&t.minimize)&&(!o||e.length>70||l||a||s),d="",p=o&&(0,n.FD)(e.charCodeAt(0));
15return(f&&!p||a)&&(d+="\n"),d+=r,(f||l)&&(d+="\n"),'"""'+d+'"""'}},8297:function(e,t,r){"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return o(e)||95===e}function s(e){return o(e)||i(e)||95===e}r.d(t,{FD:function(){return n},HQ:function(){return s},LQ:function(){return a},X1:function(){return i}})},7359:function(e,t,r){"use strict";var n,i;r.d(t,{h:function(){return n}}),(i=n||(n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},1270:function(e,t,r){"use strict";r.d(t,{H:function(){return o},T:function(){return a}});var n=r(7826),i=r(5821);class o{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,n.a)(!1,`Body must be a string. Received: ${(0,i.X)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,n.a)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,n.a)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function a(e){return e instanceof o}},7304:function(e,t,r){"use strict";r.d(t,{$_:function(){return s},Vn:function(){return u}});var n=r(7826),i=r(5821),o=r(2380),a=r(7359);let s=Object.freeze({});function u(e,t,r=o.h8){let u,c,l;let f=new Map;for(let e of Object.values(a.h))f.set(e,function(e,t){let 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 d=Array.isArray(e),p=[e],h=-1,v=[],y=e,m=[],g=[];do{var b,w,E;let e;h++;let a=h===p.length,S=a&&0!==v.length;if(a){if(c=0===g.length?void 0:m[m.length-1],y=l,l=g.pop(),S){if(d){y=y.slice();let e=0;for(let[t,r]of v){let n=t-e;null===r?(y.splice(n,1),e++):y[n]=r}}else for(let[e,t]of(y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y)),v))y[e]=t}h=u.index,p=u.keys,v=u.edits,d=u.inArray,u=u.prev}else if(l){if(null==(y=l[c=d?h:p[h]]))continue;m.push(c)}if(!Array.isArray(y)){(0,o.UG)(y)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(y)}.`);let r=a?null===(b=f.get(y.kind))||void 0===b?void 0:b.leave:null===(w=f.get(y.kind))||void 0===w?void 0:w.enter;if((e=null==r?void 0:r.call(t,y,c,l,m,g))===s)break;if(!1===e){if(!a){m.pop();continue}}else if(void 0!==e&&(v.push([c,e]),!a)){if((0,o.UG)(e))y=e;else{m.pop();continue}}}void 0===e&&S&&v.push([c,y]),a?m.pop():(u={inArray:d,index:h,keys:p,edits:v,prev:u},p=(d=Array.isArray(y))?y:null!==(E=r[y.kind])&&void 0!==E?E:[],h=-1,v=[],l&&g.push(l),l=y)}while(void 0!==u);return 0!==v.length?v[v.length-1][1]:e}},2136:function(e,t,r){"use strict";r.r(t),r.d(t,{CompactEncrypt:function(){return tp}
15,CompactSign:function(){return ty},EmbeddedJWK:function(){return tA},EncryptJWT:function(){return tE},FlattenedEncrypt:function(){return e3},FlattenedSign:function(){return tv},GeneralEncrypt:function(){return e8},GeneralSign:function(){return tg},SignJWT:function(){return tw},UnsecuredJWT:function(){return tI},base64url:function(){return i},calculateJwkThumbprint:function(){return t_},calculateJwkThumbprintUri:function(){return tk},compactDecrypt:function(){return e$},compactVerify:function(){return tt},createLocalJWKSet:function(){return tC},createRemoteJWKSet:function(){return tR},decodeJwt:function(){return tF},decodeProtectedHeader:function(){return tM},errors:function(){return n},exportJWK:function(){return e1},exportPKCS8:function(){return e0},exportSPKI:function(){return eZ},flattenedDecrypt:function(){return ez},flattenedVerify:function(){return te},generalDecrypt:function(){return eY},generalVerify:function(){return tr},generateKeyPair:function(){return tU},generateSecret:function(){return tW},importJWK:function(){return eF},importPKCS8:function(){return eM},importSPKI:function(){return eN},importX509:function(){return ej},jwtDecrypt:function(){return td},jwtVerify:function(){return tf}});var n={};r.r(n),r.d(n,{JOSEAlgNotAllowed:function(){return _},JOSEError:function(){return w},JOSENotSupported:function(){return k},JWEDecryptionFailed:function(){return A},JWEInvalid:function(){return T},JWKInvalid:function(){return C},JWKSInvalid:function(){return P},JWKSMultipleMatchingKeys:function(){return R},JWKSNoMatchingKey:function(){return D},JWKSTimeout:function(){return I},JWSInvalid:function(){return O},JWSSignatureVerificationFailed:function(){return N},JWTClaimValidationFailed:function(){return E},JWTExpired:function(){return S},JWTInvalid:function(){return x}});var i={};r.r(i),r.d(i,{decode:function(){return tj},encode:function(){return tN}});var o=crypto;let a=e=>e instanceof CryptoKey,s=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await o.subtle.digest(r,t))},u=new TextEncoder,c=new TextDecoder;function l(...e){let t=e.reduce((e,{length:t})=>e+t,0),r=new Uint8Array(t),n=0;return e.forEach(e=>{r.set(e,n),n+=e.length}),r}function f(e,t,r){if(t<0||t>=4294967296)throw RangeError(`value must be >= 0 and <= ${4294967296-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function d(e){let t=new Uint8Array(8);return f(t,Math.floor(e/4294967296),0),f(t,e%4294967296,4),t}function p(e){let t=new Uint8Array(4);return f(t,e),t}function h(e){return l(p(e.length),e)}async function v(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(p(t+1)),n.set(e,4),n.set(r,4+e.length),i.set(await s("sha256",n),32*t)}return i.slice(0,t>>3)}let y=e=>{let t=e;"string"==typeof t&&(t=u.encode(t));let r=[];for(let e=0;e<t.length;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join(""))},m=e=>y(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),g=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},b=e=>{let t=e;t instanceof Uint8Array&&(t=c.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return g(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}};class w extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class E extends w{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=t,this.reason=r}}class S extends w{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=t,this.reason=r}}class _ extends w{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class k extends w{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class A extends w{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}class T extends w{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}class O extends w{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class x extends w{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class C extends w{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}class P extends w{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}class D extends w{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}class R extends w{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}class I extends w{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}class N extends w{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}var j=o.getRandomValues.bind(o);
15function M(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new k(`Unsupported JWE Algorithm: ${e}`)}}var F=e=>j(new Uint8Array(M(e)>>3));let L=(e,t)=>{if(t.length<<3!==M(e))throw new T("Invalid Initialization Vector length")},V=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new T(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},H=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++i<r;)n|=e[i]^t[i];return 0===n};function U(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}function W(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function K(e,t){return e.name===t}function B(e){return parseInt(e.name.slice(4),10)}function q(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}function J(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!K(e.algorithm,"AES-GCM"))throw W("AES-GCM");let r=parseInt(t.slice(1,4),10),n=e.algorithm.length;if(n!==r)throw W(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!K(e.algorithm,"AES-KW"))throw W("AES-KW");let r=parseInt(t.slice(1,4),10),n=e.algorithm.length;if(n!==r)throw W(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw W("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!K(e.algorithm,"PBKDF2"))throw W("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!K(e.algorithm,"RSA-OAEP"))throw W("RSA-OAEP");let r=parseInt(t.slice(9),10)||1,n=B(e.algorithm.hash);if(n!==r)throw W(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}q(e,r)}function G(e,t,...r){if(r.length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var Q=(e,...t)=>G("Key must be ",e,...t);function z(e,t,...r){return G(`Key for the ${e} algorithm must be `,t,...r)}var $=e=>a(e);let Y=["CryptoKey"];async function X(e,t,r,n,i,a){let s,u;if(!(t instanceof Uint8Array))throw TypeError(Q(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),f=await o.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),p=await o.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),h=l(a,n,r,d(a.length<<3)),v=new Uint8Array((await o.subtle.sign("HMAC",p,h)).slice(0,c>>3));try{s=H(i,v)}catch(e){}if(!s)throw new A;try{u=new Uint8Array(await o.subtle.decrypt({iv:n,name:"AES-CBC"},f,r))}catch(e){}if(!u)throw new A;return u}async function Z(e,t,r,n,i,a){let s;t instanceof Uint8Array?s=await o.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(J(t,e,"decrypt"),s=t);try{return new Uint8Array(await o.subtle.decrypt({additionalData:a,iv:n,name:"AES-GCM",tagLength:128},s,l(r,i)))}catch(e){throw new A}}let ee=async(e,t,r,n,i,o)=>{if(!a(t)&&!(t instanceof Uint8Array))throw TypeError(Q(t,...Y,"Uint8Array"));switch(L(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&V(t,parseInt(e.slice(-3),10)),X(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&V(t,parseInt(e.slice(1,4),10)),Z(e,t,r,n,i,o);default:throw new k("Unsupported JWE Content Encryption Algorithm")}},et=async()=>{throw new k('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.')},er=async()=>{throw new k('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.')},en=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};function ei(e){if(!("object"==typeof e&&null!==e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}
15var eo=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function ea(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function es(e,t,r){if(a(e))return J(e,t,r),e;if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(Q(e,...Y,"Uint8Array"))}let eu=async(e,t,r)=>{let n=await es(t,e,"wrapKey");ea(n,e);let i=await o.subtle.importKey("raw",r,...eo);return new Uint8Array(await o.subtle.wrapKey("raw",i,n,"AES-KW"))},ec=async(e,t,r)=>{let n=await es(t,e,"unwrapKey");ea(n,e);let i=await o.subtle.unwrapKey("raw",r,n,"AES-KW",...eo);return new Uint8Array(await o.subtle.exportKey("raw",i))};async function el(e,t,r,n,i=new Uint8Array(0),s=new Uint8Array(0)){let c;if(!a(e))throw TypeError(Q(e,...Y));if(J(e,"ECDH"),!a(t))throw TypeError(Q(t,...Y));J(t,"ECDH","deriveBits");let f=l(h(u.encode(r)),h(i),h(s),p(n));c="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3;let d=new Uint8Array(await o.subtle.deriveBits({name:e.algorithm.name,public:e},t,c));return v(d,n,f)}async function ef(e){if(!a(e))throw TypeError(Q(e,...Y));return o.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function ed(e){if(!a(e))throw TypeError(Q(e,...Y));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}async function ep(e,t,r,n){!function(e){if(!(e instanceof Uint8Array)||e.length<8)throw new T("PBES2 Salt Input must be 8 or more octets")}(e);let i=l(u.encode(t),new Uint8Array([0]),e),s=parseInt(t.slice(13,16),10),c={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},f=await function(e,t){if(e instanceof Uint8Array)return o.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(a(e))return J(e,t,"deriveBits","deriveKey"),e;throw TypeError(Q(e,...Y,"Uint8Array"))}(n,t);if(f.usages.includes("deriveBits"))return new Uint8Array(await o.subtle.deriveBits(c,f,s));if(f.usages.includes("deriveKey"))return o.subtle.deriveKey(c,f,{length:s,name:"AES-KW"},!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let eh=async(e,t,r,n=2048,i=j(new Uint8Array(16)))=>{let o=await ep(i,e,n,t),a=await eu(e.slice(-6),o,r);return{encryptedKey:a,p2c:n,p2s:m(i)}},ev=async(e,t,r,n,i)=>{let o=await ep(i,e,n,t);return ec(e.slice(-6),o,r)};function ey(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new k(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}var em=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};let eg=async(e,t,r)=>{if(!a(t))throw TypeError(Q(t,...Y));if(J(t,e,"encrypt","wrapKey"),em(e,t),t.usages.includes("encrypt"))return new Uint8Array(await o.subtle.encrypt(ey(e),t,r));if(t.usages.includes("wrapKey")){let n=await o.subtle.importKey("raw",r,...eo);return new Uint8Array(await o.subtle.wrapKey("raw",n,t,ey(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},eb=async(e,t,r)=>{if(!a(t))throw TypeError(Q(t,...Y));if(J(t,e,"decrypt","unwrapKey"),em(e,t),t.usages.includes("decrypt"))return new Uint8Array(await o.subtle.decrypt(ey(e),t,r));if(t.usages.includes("unwrapKey")){let n=await o.subtle.unwrapKey("raw",r,t,ey(e),...eo);return new Uint8Array(await o.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function ew(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new k(`Unsupported JWE Algorithm: ${e}`)}}var eE=e=>j(new Uint8Array(ew(e)>>3)),eS=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}-----
16${r}
17-----END ${t}-----`};let e_=async(e,t,r)=>{if(!a(r))throw TypeError(Q(r,...Y));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);return eS(y(new Uint8Array(await o.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},ek=e=>e_("public","spki",e),eA=e=>e_("private","pkcs8",e),eT=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let i=e.subarray(n,n+t.length);return i.length===t.length&&(i.every((e,r)=>e===t[r])||eT(e,t,n+1))}
17,eO=e=>{switch(!0){case eT(e,[42,134,72,206,61,3,1,7]):return"P-256";case eT(e,[43,129,4,0,34]):return"P-384";case eT(e,[43,129,4,0,35]):return"P-521";case eT(e,[43,101,110]):return"X25519";case eT(e,[43,101,111]):return"X448";case eT(e,[43,101,112]):return"Ed25519";case eT(e,[43,101,113]):return"Ed448";default:throw new k("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},ex=async(e,t,r,n,i)=>{var a,s;let u,c;let l=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),f="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":u={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},c=f?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":u={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},c=f?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":u={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},c=f?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":u={name:"ECDSA",namedCurve:"P-256"},c=f?["verify"]:["sign"];break;case"ES384":u={name:"ECDSA",namedCurve:"P-384"},c=f?["verify"]:["sign"];break;case"ES512":u={name:"ECDSA",namedCurve:"P-521"},c=f?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=eO(l);u=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},c=f?[]:["deriveBits"];break}
17case"EdDSA":u={name:eO(l)},c=f?["verify"]:["sign"];break;default:throw new k('Invalid or unsupported "alg" (Algorithm) value')}try{return await o.subtle.importKey(t,l,u,null!==(a=null==i?void 0:i.extractable)&&void 0!==a&&a,c)}catch(e){if("Ed25519"===u.name&&(null==e?void 0:e.name)==="NotSupportedError"&&U())return await o.subtle.importKey(t,l,u={name:"NODE-ED25519",namedCurve:"NODE-ED25519"},null!==(s=null==i?void 0:i.extractable)&&void 0!==s&&s,c);throw e}},eC=(e,t,r)=>ex(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),eP=(e,t,r)=>ex(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r),eD=async e=>{var t,r;let{algorithm:n,keyUsages:i}=function(e){let t,r;switch(e.kty){case"oct":switch(e.alg){case"HS256":case"HS384":case"HS512":t={name:"HMAC",hash:`SHA-${e.alg.slice(-3)}`},r=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":throw new k(`${e.alg} keys cannot be imported as CryptoKey instances`);case"A128GCM":case"A192GCM":case"A256GCM":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":t={name:"AES-GCM"},r=["encrypt","decrypt"];break;case"A128KW":case"A192KW":case"A256KW":t={name:"AES-KW"},r=["wrapKey","unwrapKey"];break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":t={name:"PBKDF2"},r=["deriveBits"];break;default:throw new k('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new k('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new k('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new k('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new k('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}(e),a=[n,null!==(t=e.ext)&&void 0!==t&&t,null!==(r=e.key_ops)&&void 0!==r?r:i];if("PBKDF2"===n.name)return o.subtle.importKey("raw",b(e.k),...a);let s={...e};delete s.alg,delete s.use;try{return await o.subtle.importKey("jwk",s,...a)}catch(e){if("Ed25519"===n.name&&(null==e?void 0:e.name)==="NotSupportedError"&&U())return a[0]={name:"NODE-ED25519",namedCurve:"NODE-ED25519"},await o.subtle.importKey("jwk",s,...a);throw e}};function eR(e){let t=[],r=0;for(;r<e.length;){let n=eI(e.subarray(r));t.push(n),r+=n.byteLength}return t}function eI(e){let t=0,r=31&e[0];if(t++,31===r){for(r=0;e[t]>=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let i=0;i<r;i++)n=256*n+e[t],t++}let i=t+n;return{byteLength:i,contents:e.subarray(t,i),raw:e.subarray(0,i)}}async function eN(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return eP(e,t,r)}async function ej(e,t,r){let n;if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');try{n=function(e){let t=e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)
17/g,""),r=g(t);return eS(function(e){let t=eR(eR(eI(e).contents)[0].contents);return y(t[160===t[0].raw[0]?6:5].raw)}(r),"PUBLIC KEY")}(e)}catch(e){throw TypeError("failed to parse the X.509 certificate",{cause:e})}return eP(n,t,r)}async function eM(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return eC(e,t,r)}async function eF(e,t,r){var n;if(!ei(e))throw TypeError("JWK must be an object");if(t||(t=e.alg),"string"!=typeof t||!t)throw TypeError('"alg" argument is required when "jwk.alg" is not present');switch(e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');if(null!=r||(r=!0!==e.ext),r)return eD({...e,alg:t,ext:null!==(n=e.ext)&&void 0!==n&&n});return b(e.k);case"RSA":if(void 0!==e.oth)throw new k('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eD({...e,alg:t});default:throw new k('Unsupported "kty" (Key Type) Parameter value')}}let eL=(e,t)=>{if(!(t instanceof Uint8Array)){if(!$(t))throw TypeError(z(e,t,...Y,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${Y.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},eV=(e,t,r)=>{if(!$(t))throw TypeError(z(e,t,...Y));if("secret"===t.type)throw TypeError(`${Y.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${Y.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${Y.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${Y.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${Y.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)},eH=(e,t,r)=>{let n=e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e);n?eL(e,t):eV(e,t,r)};async function eU(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(Q(r,"Uint8Array"));let a=parseInt(e.slice(1,4),10),s=await o.subtle.importKey("raw",r.subarray(a>>3),"AES-CBC",!1,["encrypt"]),u=await o.subtle.importKey("raw",r.subarray(0,a>>3),{hash:`SHA-${a<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await o.subtle.encrypt({iv:n,name:"AES-CBC"},s,t)),f=l(i,n,c,d(i.length<<3)),p=new Uint8Array((await o.subtle.sign("HMAC",u,f)).slice(0,a>>3));return{ciphertext:c,tag:p}}async function eW(e,t,r,n,i){let a;r instanceof Uint8Array?a=await o.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(J(r,e,"encrypt"),a=r);let s=new Uint8Array(await o.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},a,t)),u=s.slice(-16),c=s.slice(0,-16);return{ciphertext:c,tag:u}}let eK=async(e,t,r,n,i)=>{if(!a(r)&&!(r instanceof Uint8Array))throw TypeError(Q(r,...Y,"Uint8Array"));switch(L(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&V(r,parseInt(e.slice(-3),10)),eU(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&V(r,parseInt(e.slice(1,4),10)),eW(e,t,r,n,i);default:throw new k("Unsupported JWE Content Encryption Algorithm")}};async function eB(e,t,r,n){let i=e.slice(0,7);n||(n=F(i));let{ciphertext:o,tag:a}=await eK(i,r,t,n,new Uint8Array(0));return{encryptedKey:o,iv:m(n),tag:m(a)}}async function eq(e,t,r,n,i){let o=e.slice(0,7);return ee(o,t,r,n,i,new Uint8Array(0))}async function eJ(e,t,r,n,i){switch(eH(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new T("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new T("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!ei(n.epk))throw new T('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!ed(t))throw new k("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await eF(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new T('JOSE Header "apu" (Agreement PartyUInfo) invalid');i=b(n.apu)}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new T('JOSE Header "apv" (Agreement PartyVInfo) invalid');o=b(n.apv)}let s=await el(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?ew(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new T("JWE Encrypted Key missing");return ec(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new T("JWE Encrypted Key missing");return eb(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{if(void 0===r)throw new T("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new T('JOSE Header "p2c" (PBES2 Count) missing or invalid');let o=(null==i?void 0:i.maxPBES2Count)||1e4;if(n.p2c>o)throw new T('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new T('JOSE Header "p2s" (PBES2 Salt) missing or invalid');return ev(e,t,r,n.p2c,b(n.p2s))}
17case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new T("JWE Encrypted Key missing");return ec(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{if(void 0===r)throw new T("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new T('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new T('JOSE Header "tag" (Authentication Tag) missing or invalid');let i=b(n.iv),o=b(n.tag);return eq(e,t,r,i,o)}default:throw new k('Invalid or unsupported "alg" (JWE Algorithm) header value')}}var eG=function(e,t,r,n,i){let o;if(void 0!==i.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new k(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)};let eQ=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function ez(e,t,r){var n;let i,o,a;if(!ei(e))throw new T("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new T("JOSE Header missing");if("string"!=typeof e.iv)throw new T("JWE Initialization Vector missing or incorrect type");if("string"!=typeof e.ciphertext)throw new T("JWE Ciphertext missing or incorrect type");if("string"!=typeof e.tag)throw new T("JWE Authentication Tag missing or incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new T("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new T("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new T("JWE AAD incorrect type");if(void 0!==e.header&&!ei(e.header))throw new T("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!ei(e.unprotected))throw new T("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=b(e.protected);i=JSON.parse(c.decode(t))}catch(e){throw new T("JWE Protected Header is invalid")}if(!en(i,e.header,e.unprotected))throw new T("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let s={...i,...e.header,...e.unprotected};if(eG(T,new Map,null==r?void 0:r.crit,i,s),void 0!==s.zip){if(!i||!i.zip)throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==s.zip)throw new k('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:f,enc:d}=s;if("string"!=typeof f||!f)throw new T("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof d||!d)throw new T("missing JWE Encryption Algorithm (enc) in JWE Header");let p=r&&eQ("keyManagementAlgorithms",r.keyManagementAlgorithms),h=r&&eQ("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(p&&!p.has(f))throw new _('"alg" (Algorithm) Header Parameter not allowed');if(h&&!h.has(d))throw new _('"enc" (Encryption Algorithm) Header Parameter not allowed');void 0!==e.encrypted_key&&(o=b(e.encrypted_key));let v=!1;"function"==typeof t&&(t=await t(i,e),v=!0);try{a=await eJ(f,t,o,s,r)}catch(e){if(e instanceof TypeError||e instanceof T||e instanceof k)throw e;a=eE(d)}let y=b(e.iv),m=b(e.tag),g=u.encode(null!==(n=e.protected)&&void 0!==n?n:""),w=await ee(d,a,b(e.ciphertext),y,m,void 0!==e.aad?l(g,u.encode("."),u.encode(e.aad)):g);"DEF"===s.zip&&(w=await ((null==r?void 0:r.inflateRaw)||et)(w));let E={plaintext:w};return(void 0!==e.protected&&(E.protectedHeader=i),void 0!==e.aad&&(E.additionalAuthenticatedData=b(e.aad)),void 0!==e.unprotected&&(E.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(E.unprotectedHeader=e.header),v)?{...E,key:t}:E}async function e$(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new T("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:u}=e.split(".");if(5!==u)throw new T("Invalid Compact JWE");
17let l=await ez({ciphertext:a,iv:o||void 0,protected:n||void 0,tag:s||void 0,encrypted_key:i||void 0},t,r),f={plaintext:l.plaintext,protectedHeader:l.protectedHeader};return"function"==typeof t?{...f,key:l.key}:f}async function eY(e,t,r){if(!ei(e))throw new T("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(ei))throw new T("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new T("JWE Recipients has no members");for(let n of e.recipients)try{return await ez({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch(e){}throw new A}let eX=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:m(e)};if(!a(e))throw TypeError(Q(e,...Y,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...s}=await o.subtle.exportKey("jwk",e);return s};async function eZ(e){return ek(e)}async function e0(e){return eA(e)}async function e1(e){return eX(e)}async function e2(e,t,r,n,i={}){let o,a,s;switch(eH(e,r,"encrypt"),e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ed(r))throw new k("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:u,apv:c}=i,{epk:l}=i;l||(l=(await ef(r)).privateKey);let{x:f,y:d,crv:p,kty:h}=await e1(l),v=await el(r,l,"ECDH-ES"===e?t:e,"ECDH-ES"===e?ew(t):parseInt(e.slice(-5,-2),10),u,c);if(a={epk:{x:f,crv:p,kty:h}},"EC"===h&&(a.epk.y=d),u&&(a.apu=m(u)),c&&(a.apv=m(c)),"ECDH-ES"===e){s=v;break}s=n||eE(t);let y=e.slice(-6);o=await eu(y,v,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o=await eg(e,r,s=n||eE(t));break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||eE(t);let{p2c:u,p2s:c}=i;({encryptedKey:o,...a}=await eh(e,r,s,u,c));break}case"A128KW":case"A192KW":case"A256KW":o=await eu(e,r,s=n||eE(t));break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||eE(t);let{iv:u}=i;({encryptedKey:o,...a}=await eB(e,r,s,u));break}default:throw new k('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}}let e5=Symbol();class e3{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a,s,f;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new T("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!en(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new T("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let d={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(eG(T,new Map,null==t?void 0:t.crit,this._protectedHeader,d),void 0!==d.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==d.zip)throw new k('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:p,enc:h}=d;if("string"!=typeof p||!p)throw new T('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof h||!h)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===p){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===p&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let i;({cek:n,encryptedKey:r,parameters:i}=await e2(p,h,e,this._cek,this._keyManagementParameters)),i&&(t&&e5 in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}if(this._iv||(this._iv=F(h)),o=this._protectedHeader?u.encode(m(JSON.stringify(this._protectedHeader))):u.encode(""),this._aad?(a=m(this._aad),i=l(o,u.encode("."),u.encode(a))):i=o,"DEF"===d.zip){let e=await ((null==t?void 0:t.deflateRaw)||er)(this._plaintext);({ciphertext:s,tag:f}
17=await eK(h,e,n,this._iv,i))}else({ciphertext:s,tag:f}=await eK(h,this._plaintext,n,this._iv,i));let v={ciphertext:m(s),iv:m(this._iv),tag:m(f)};return r&&(v.encrypted_key=m(r)),a&&(v.aad=a),this._protectedHeader&&(v.protected=c.decode(o)),this._sharedUnprotectedHeader&&(v.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(v.header=this._unprotectedHeader),v}}class e4{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class e8{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new e4(this,e,{crit:null==t?void 0:t.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(e){var t,r,n;let i;if(!this._recipients.length)throw new T("at least one recipient must be added");if(e={deflateRaw:null==e?void 0:e.deflateRaw},1===this._recipients.length){let[t]=this._recipients,r=await new e3(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(t.unprotectedHeader).encrypt(t.key,{...t.options,...e}),n={ciphertext:r.ciphertext,iv:r.iv,recipients:[{}],tag:r.tag};return r.aad&&(n.aad=r.aad),r.protected&&(n.protected=r.protected),r.unprotected&&(n.unprotected=r.unprotected),r.encrypted_key&&(n.recipients[0].encrypted_key=r.encrypted_key),r.header&&(n.recipients[0].header=r.header),n}for(let e=0;e<this._recipients.length;e++){let t=this._recipients[e];if(!en(this._protectedHeader,this._unprotectedHeader,t.unprotectedHeader))throw new T("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let r={...this._protectedHeader,...this._unprotectedHeader,...t.unprotectedHeader},{alg:n}=r;if("string"!=typeof n||!n)throw new T('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===n||"ECDH-ES"===n)throw new T('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof r.enc||!r.enc)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(i){if(i!==r.enc)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else i=r.enc;
17if(eG(T,new Map,t.options.crit,this._protectedHeader,r),void 0!==r.zip&&(!this._protectedHeader||!this._protectedHeader.zip))throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}let o=eE(i),a={ciphertext:"",iv:"",recipients:[],tag:""};for(let s=0;s<this._recipients.length;s++){let u=this._recipients[s],c={};a.recipients.push(c);let l={...this._protectedHeader,...this._unprotectedHeader,...u.unprotectedHeader},f=l.alg.startsWith("PBES2")?2048+s:void 0;if(0===s){let t=await new e3(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(o).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(u.unprotectedHeader).setKeyManagementParameters({p2c:f}).encrypt(u.key,{...u.options,...e,[e5]:!0});a.ciphertext=t.ciphertext,a.iv=t.iv,a.tag=t.tag,t.aad&&(a.aad=t.aad),t.protected&&(a.protected=t.protected),t.unprotected&&(a.unprotected=t.unprotected),c.encrypted_key=t.encrypted_key,t.header&&(c.header=t.header);continue}let{encryptedKey:d,parameters:p}=await e2((null===(t=u.unprotectedHeader)||void 0===t?void 0:t.alg)||(null===(r=this._protectedHeader)||void 0===r?void 0:r.alg)||(null===(n=this._unprotectedHeader)||void 0===n?void 0:n.alg),i,u.key,o,{p2c:f});c.encrypted_key=m(d),(u.unprotectedHeader||p)&&(c.header={...u.unprotectedHeader,...p})}return a}}function e6(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":if(U()&&"NODE-ED25519"===t.name)return{name:"NODE-ED25519",namedCurve:"NODE-ED25519"};return{name:t.name};default:throw new k(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}function e9(e,t,r){if(a(t))return!function(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!K(e.algorithm,"HMAC"))throw W("HMAC");let r=parseInt(t.slice(2),10),n=B(e.algorithm.hash);if(n!==r)throw W(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!K(e.algorithm,"RSASSA-PKCS1-v1_5"))throw W("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10),n=B(e.algorithm.hash);if(n!==r)throw W(`SHA-${r}`,"algorithm.hash");break}
17case"PS256":case"PS384":case"PS512":{if(!K(e.algorithm,"RSA-PSS"))throw W("RSA-PSS");let r=parseInt(t.slice(2),10),n=B(e.algorithm.hash);if(n!==r)throw W(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name){if(U()){if(K(e.algorithm,"NODE-ED25519"))break;throw W("Ed25519, Ed448, or NODE-ED25519")}throw W("Ed25519 or Ed448")}break;case"ES256":case"ES384":case"ES512":{if(!K(e.algorithm,"ECDSA"))throw W("ECDSA");let r=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}(t),n=e.algorithm.namedCurve;if(n!==r)throw W(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}q(e,r)}(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(Q(t,...Y));return o.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(Q(t,...Y,"Uint8Array"))}let e7=async(e,t,r,n)=>{let i=await e9(e,t,"verify");em(e,i);let a=e6(e,i.algorithm);try{return await o.subtle.verify(a,i,r,n)}catch(e){return!1}};async function te(e,t,r){var n;let i;if(!ei(e))throw new O("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new O('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new O("JWS Protected Header incorrect type");if(void 0===e.payload)throw new O("JWS Payload missing");if("string"!=typeof e.signature)throw new O("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ei(e.header))throw new O("JWS Unprotected Header incorrect type");let o={};if(e.protected)try{let t=b(e.protected);o=JSON.parse(c.decode(t))}catch(e){throw new O("JWS Protected Header is invalid")}if(!en(o,e.header))throw new O("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...o,...e.header},s=eG(O,new Map([["b64",!0]]),null==r?void 0:r.crit,o,a),f=!0;if(s.has("b64")&&"boolean"!=typeof(f=o.b64))throw new O('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:d}=a;if("string"!=typeof d||!d)throw new O('JWS "alg" (Algorithm) Header Parameter missing or invalid');let p=r&&eQ("algorithms",r.algorithms);if(p&&!p.has(d))throw new _('"alg" (Algorithm) Header Parameter not allowed');if(f){if("string"!=typeof e.payload)throw new O("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new O("JWS Payload must be a string or an Uint8Array instance");let h=!1;"function"==typeof t&&(t=await t(o,e),h=!0),eH(d,t,"verify");let v=l(u.encode(null!==(n=e.protected)&&void 0!==n?n:""),u.encode("."),"string"==typeof e.payload?u.encode(e.payload):e.payload),y=b(e.signature),m=await e7(d,t,y,v);if(!m)throw new N;i=f?b(e.payload):"string"==typeof e.payload?u.encode(e.payload):e.payload;let g={payload:i};return(void 0!==e.protected&&(g.protectedHeader=o),void 0!==e.header&&(g.unprotectedHeader=e.header),h)?{...g,key:t}:g}async function tt(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new O("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new O("Invalid Compact JWS");let s=await te({payload:i,protected:n,signature:o},t,r),u={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...u,key:s.key}:u}async function tr(e,t,r){if(!ei(e))throw new O("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(ei))throw new O("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await te({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch(e){}throw new N}var tn=e=>Math.floor(e.getTime()/1e3);let ti=604800,to=31557600,ta=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;var ts=e=>{let t=ta.exec(e);if(!t)throw TypeError("Invalid time period format");let r=parseFloat(t[1]),n=t[2].toLowerCase();switch(n){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(r);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(60*r);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(3600*r);case"day":case"days":case"d":return Math.round(86400*r);case"week":case"weeks":case"w":return Math.round(r*ti);default:return Math.round(r*to)}};let tu=e=>e.toLowerCase().replace(/^application\//,""),tc=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e)));var tl=(e,t,r={})=>{let n,i;let{typ:o}=r;if(o&&("string"!=typeof e.typ||tu(e.typ)!==tu(o)))throw new E('unex
17pected "typ" JWT header value',"typ","check_failed");try{n=JSON.parse(c.decode(t))}catch(e){}if(!ei(n))throw new x("JWT Claims Set must be a top-level JSON object");let{issuer:a}=r;if(a&&!(Array.isArray(a)?a:[a]).includes(n.iss))throw new E('unexpected "iss" claim value',"iss","check_failed");let{subject:s}=r;if(s&&n.sub!==s)throw new E('unexpected "sub" claim value',"sub","check_failed");let{audience:u}=r;if(u&&!tc(n.aud,"string"==typeof u?[u]:u))throw new E('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=ts(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:l}=r,f=tn(l||new Date);if((void 0!==n.iat||r.maxTokenAge)&&"number"!=typeof n.iat)throw new E('"iat" claim must be a number',"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new E('"nbf" claim must be a number',"nbf","invalid");if(n.nbf>f+i)throw new E('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new E('"exp" claim must be a number',"exp","invalid");if(n.exp<=f-i)throw new S('"exp" claim timestamp check failed',"exp","check_failed")}if(r.maxTokenAge){let e=f-n.iat,t="number"==typeof r.maxTokenAge?r.maxTokenAge:ts(r.maxTokenAge);if(e-i>t)throw new S('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-i)throw new E('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return n};async function tf(e,t,r){var n;let i=await tt(e,t,r);if((null===(n=i.protectedHeader.crit)||void 0===n?void 0:n.includes("b64"))&&!1===i.protectedHeader.b64)throw new x("JWTs MUST NOT use unencoded payload");let o=tl(i.protectedHeader,i.payload,r),a={payload:o,protectedHeader:i.protectedHeader};return"function"==typeof t?{...a,key:i.key}:a}async function td(e,t,r){let n=await e$(e,t,r),i=tl(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new E('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new E('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new E('replicated "aud" claim header parameter mismatch',"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}class tp{constructor(e){this._flattened=new e3(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}let th=async(e,t,r)=>{let n=await e9(e,t,"sign");em(e,n);let i=await o.subtle.sign(e6(e,n.algorithm),n,r);return new Uint8Array(i)};class tv{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new O("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!en(this._protectedHeader,this._unprotectedHeader))throw new O("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=eG(O,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new O('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;
17if("string"!=typeof a||!a)throw new O('JWS "alg" (Algorithm) Header Parameter missing or invalid');eH(a,e,"sign");let s=this._payload;o&&(s=u.encode(m(s))),r=this._protectedHeader?u.encode(m(JSON.stringify(this._protectedHeader))):u.encode("");let f=l(r,u.encode("."),s),d=await th(a,e,f),p={signature:m(d),payload:""};return o&&(p.payload=c.decode(s)),this._unprotectedHeader&&(p.header=this._unprotectedHeader),this._protectedHeader&&(p.protected=c.decode(r)),p}}class ty{constructor(e){this._flattened=new tv(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class tm{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class tg{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new tm(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new O("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t<this._signatures.length;t++){let r=this._signatures[t],n=new tv(this._payload);n.setProtectedHeader(r.protectedHeader),n.setUnprotectedHeader(r.unprotectedHeader);let{payload:i,...o}=await n.sign(r.key,r.options);if(0===t)e.payload=i;else if(e.payload!==i)throw new O("inconsistent use of JWS Unencoded Payload Option (RFC7797)");e.signatures.push(o)}return e}}class tb{constructor(e){if(!ei(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:tn(new Date)+ts(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:tn(new Date)+ts(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:tn(new Date)}:this._payload={...this._payload,iat:e},this}}class tw extends tb{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let n=new ty(u.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new x("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class tE extends tb{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new tp(u.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}let tS=(e,t)=>{if("string"!=typeof e||!e)throw new C(`${t} missing or invalid`)};async function t_(e,t){let r;if(!ei(e))throw TypeError("JWK must be an object");
17if(null!=t||(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tS(e.crv,'"crv" (Curve) Parameter'),tS(e.x,'"x" (X Coordinate) Parameter'),tS(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tS(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tS(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tS(e.e,'"e" (Exponent) Parameter'),tS(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tS(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new k('"kty" (Key Type) Parameter missing or unsupported')}let n=u.encode(JSON.stringify(r));return m(await s(t,n))}async function tk(e,t){null!=t||(t="sha256");let r=await t_(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tA(e,t){let r={...e,...t.header};if(!ei(r.jwk))throw new O('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await eF({...r.jwk,ext:!0},r.alg,!0);if(n instanceof Uint8Array||"public"!==n.type)throw new O('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function tT(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(tO)}function tO(e){return ei(e)}class tx{constructor(e){if(this._cached=new WeakMap,!tT(e))throw new P("JSON Web Key Set malformed");this._jwks="function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}async getKey(e,t){let{alg:r,kid:n}={...e,...t.header},i=function(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new k('Unsupported "alg" value for a JSON Web Key Set')}}(r),o=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:a,length:s}=o;if(0===s)throw new D;if(1!==s)throw new R;let u=this._cached.get(a)||this._cached.set(a,{}).get(a);if(void 0===u[r]){let e=await eF({...a,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new P("JSON Web Key Set members must be public keys");u[r]=e}return u[r]}}function tC(e){return tx.prototype.getKey.bind(new tx(e))}let tP=async(e,t,r)=>{let n,i;let o=!1;"function"==typeof AbortController&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(o)throw new I;throw e});if(void 0!==i&&clearTimeout(i),200!==a.status)throw new w("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch(e){throw new w("Failed to parse the JSON Web Key Set HTTP response as JSON")}};class tD extends tx{constructor(e,t){if(super({keys:[]}),this._jwks=void 0,!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:null==t?void 0:t.agent,headers:null==t?void 0:t.headers},this._timeoutDuration="number"==typeof(null==t?void 0:t.timeoutDuration)?null==t?void 0:t.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==t?void 0:t.cooldownDuration)?null==t?void 0:t.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==t?void 0:t.cacheMaxAge)?null==t?void 0:t.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(e,t)}catch(r){if(r instanceof D&&!1===this.coolingDown())return await this.reload(),super.getKey(e,t);throw r}}async reload(){if(this._pendingFetch&&U())return new Promise(e=>{let t=()=>
17{void 0===this._pendingFetch?e():setTimeout(t,5)};t()});this._pendingFetch||(this._pendingFetch=tP(this._url,this._timeoutDuration,this._options).then(e=>{if(!tT(e))throw new P("JSON Web Key Set malformed");this._jwks={keys:e.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function tR(e,t){return tD.prototype.getKey.bind(new tD(e,t))}class tI extends tb{encode(){let e=m(JSON.stringify({alg:"none"})),t=m(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new x("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a||""!==o)throw new x("Invalid Unsecured JWT");try{if(r=JSON.parse(c.decode(b(n))),"none"!==r.alg)throw Error()}catch(e){throw new x("Invalid Unsecured JWT")}let s=tl(r,b(i),t);return{payload:s,header:r}}}let tN=m,tj=b;function tM(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(c.decode(tj(t)));if(!ei(e))throw Error();return e}catch(e){throw TypeError("Invalid Token or Protected Header formatting")}}function tF(e){let t,r;if("string"!=typeof e)throw new x("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");if(5===i)throw new x("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new x("Invalid JWT");if(!n)throw new x("JWTs must contain a payload");try{t=tj(n)}catch(e){throw new x("Failed to parse the base64url encoded payload")}try{r=JSON.parse(c.decode(t))}catch(e){throw new x("Failed to parse the decoded payload as JSON")}if(!ei(r))throw new x("Invalid JWT Claims Set");return r}async function tL(e,t){var r;let n,i,a;switch(e){case"HS256":case"HS384":case"HS512":i={name:"HMAC",hash:`SHA-${n=parseInt(e.slice(-3),10)}`,length:n},a=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return n=parseInt(e.slice(-3),10),j(new Uint8Array(n>>3));case"A128KW":case"A192KW":case"A256KW":n=parseInt(e.slice(1,4),10),i={name:"AES-KW",length:n},a=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":n=parseInt(e.slice(1,4),10),i={name:"AES-GCM",length:n},a=["encrypt","decrypt"];break;default:throw new k('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return o.subtle.generateKey(i,null!==(r=null==t?void 0:t.extractable)&&void 0!==r&&r,a)}function tV(e){var t;let r=null!==(t=null==e?void 0:e.modulusLength)&&void 0!==t?t:2048;if("number"!=typeof r||r<2048)throw new k("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return r}async function tH(e,t){var r,n,i,a;let s,u;switch(e){case"PS256":case"PS384":case"PS512":s={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tV(t)},u=["sign","verify"];break;case"RS256":case"RS384":case"RS512":s={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tV(t)},u=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:tV(t)},u=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":s={name:"ECDSA",namedCurve:"P-256"},u=["sign","verify"];break;case"ES384":s={name:"ECDSA",namedCurve:"P-384"},u=["sign","verify"];break;case"ES512":s={name:"ECDSA",namedCurve:"P-521"},u=["sign","verify"];break;case"EdDSA":u=["sign","verify"];let c=null!==(r=null==t?void 0:t.crv)&&void 0!==r?r:"Ed25519";
17switch(c){case"Ed25519":case"Ed448":s={name:c};break;default:throw new k("Invalid or unsupported crv option provided")}break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{u=["deriveKey","deriveBits"];let e=null!==(n=null==t?void 0:t.crv)&&void 0!==n?n:"P-256";switch(e){case"P-256":case"P-384":case"P-521":s={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":s={name:e};break;default:throw new k("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new k('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}try{return await o.subtle.generateKey(s,null!==(i=null==t?void 0:t.extractable)&&void 0!==i&&i,u)}catch(e){if("Ed25519"===s.name&&(null==e?void 0:e.name)==="NotSupportedError"&&U())return await o.subtle.generateKey(s={name:"NODE-ED25519",namedCurve:"NODE-ED25519"},null!==(a=null==t?void 0:t.extractable)&&void 0!==a&&a,u);throw e}}async function tU(e,t){return tH(e,t)}async function tW(e,t){return tL(e,t)}},9426:function(e){"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},7395:function(e){"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},8420:function(e){"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.