PageSourceSearch

https://www.teliaplay.se/_next/static/chunks/29v94r1_0-f-3.js

js teliaplay.se collected 2026-10-01 15:57:19 UTC 921,944 bytes, 1,556 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,933720,e=>{"use strict";e.s([],436164),e.i(436164);var t,r,n=e.i(701685),i=e.i(913186),o=e.i(562503),a=e.i(688392);class s{isIncrementalResult(e){return!1}prepareRequest(e){return(0,a.invariant)(!(0,o.hasDirectives)(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}var l=e.i(701864);let c=l.ApolloLink.execute;var u=e.i(662361),p=e.i(748410),d=e.i(741204),h=e.i(929100),f=e.i(992339),g=e.i(953278),y=e.i(699662),m=e.i(694411);function v(e){return(0,m.visit)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var b=e.i(621025),x=e.i(336419),E=e.i(108520),S=e.i(516165),T=e.i(827540);function w(e,t){var r=(0,T.isFunction)(e)?e:function(){return e},n=function(e){return e.error(r())};return new S.Observable(t?function(e){return t.schedule(n,0,e)}:n)}var k=e.i(633482),O=e.i(7560),_=e.i(866312);function I(e){return(0,_.operate)(function(t,r){var n,i=null,o=!1;i=t.subscribe((0,O.createOperatorSubscriber)(r,void 0,void 0,function(a){n=(0,k.innerFrom)(e(a,I(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(r))})}var A=e.i(168);function N(e,t,r){return(void 0===r&&(r=1/0),(0,T.isFunction)(t))?N(function(r,n){return(0,i.map)(function(e,i){return t(r,e,n,i)})((0,k.innerFrom)(e(r,n)))},r):("number"==typeof t&&(r=t),(0,_.operate)(function(t,n){var i,o,a,s,l,c,u,p;return i=r,o=[],a=0,s=0,l=!1,c=function(){!l||o.length||a||n.complete()},u=function(e){return a<i?p(e):o.push(e)},p=function(t){a++;var r=!1;(0,k.innerFrom)(e(t,s++)).subscribe((0,O.createOperatorSubscriber)(n,function(e){n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(a--;o.length&&a<i;)!function(){var e=o.shift();p(e)}();c()}catch(e){n.error(e)}}))},t.subscribe((0,O.createOperatorSubscriber)(n,u,function(){l=!0,c()})),function(){}}))}var P=e.i(448971),R=e.i(597961);function D(e){return(0,R.isScheduler)(e[e.length-1])?e.pop():void 0}var C=e.i(799798);function L(e,t){return void 0===t&&(t=0),(0,_.operate)(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}var F=e.i(43533);function M(e,t){if(!e)throw Error("Iterable cannot be null");return new S.Observable(function(r){(0,A.executeSchedule)(r,t,function(){var n=e[Symbol.asyncIterator]();(0,A.executeSchedule)(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}var $=e.i(411844),j=e.i(902190),V=e.i(602435),U=e.i(990156),B=e.i(939584),z=e.i(841471),q=e.i(12436);function G(e,t){return t?function(e,t){if(null!=e){if((0,$.isInteropObservable)(e))return(0,k.innerFrom)(e).pipe(L(t),(0,C.observeOn)(t));if((0,V.isArrayLike)(e))return new S.Observable(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if((0,j.isPromise)(e))return(0,k.innerFrom)(e).pipe(L(t),(0,C.observeOn)(t));if((0,B.isAsyncIterable)(e))return M(e,t);if((0,U.isIterable)(e))return new S.Observable(function(r){var n;return(0,A.executeSchedule)(r,t,function(){n=e[F.iterator](),(0,A.executeSchedule)(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return(0,T.isFunction)(null==n?void 0:n.return)&&n.return()}});if((0,q.isReadableStreamLike)(e))return M((0,q.readableStreamLikeToAsyncGenerator)(e),t)}throw(0,z.createInvalidObservableTypeError)(e)}(e,t):(0,k.innerFrom)(e)}function K(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return N(P.identity,1)(G(e,D(e)))}var H=e.i(982100);function Q(e,t){return(0,_.operate)(function(r,n){var i=0;r.subscribe((0,O.createOperatorSubscriber)(n,function(r){return e.call(t,r,i++)&&n.next(r)}))})}var W=(0,e.i(949918).createErrorClass)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function Y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=D(e);return G(e,r)}(t=r||(r={})).NEXT="N",t.ERROR="E",t.COMPLETE="C";var X=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,n,i,o=e.kind,a=e.value,s=e.error;if("string"!=typeof o)throw TypeError('Invalid notification, missing "kind"');"N"===o?null==(r=t.next)||r.call(t,a):"E"===o?null==(n=t.error)||n.call(t,s):null==(i=t.complete)||i.call(t)}(this,e)},e.prototype.do=function(e,t,r){var n=this.kind,i=this.value,o=this.error;return"N"===n?null==e?void 0:e(i):"E"===n?null==t?void 0:t(o):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,T.isFunction)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,n="N"===e?Y(t):"E"===e?w(function(){return r}):"C"===e?H.EMPTY:0;if(!n)throw TypeError("Unexpected notification kind "+e);return n},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}(),J=e.i(134671),Z=e.i(30214),ee=e.i(791413),et=e.i(812802),er=e.i(61130),en=e.i(817366),ei=e.i(860123);let eo=new WeakSet;var ea=e.i(240957),es=e.i(374626),el=e.i(497058),ec=e.i(315616),eu=e.i(950605),ep=e.i(73578);function ed(e,t,r){return ep.disableWarningsSlot.withValue(!0,()=>{let n=function e(t,r,n,i,o){let{knownChanged:s}=n,l=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(let[a,c]of Array.from(t.entries())){if(null===c){l[a]=null;continue}let t=e(c,r,n,i,p.__DEV__?`${o||""}[${a}]`:void 0);s.has(t)&&s.add(l),l[a]=t}return s.has(l)?l:t}for(let c of r.selections){let r;if(i&&s.add(l),c.kind===E.Kind.FIELD){let u=(0,eu.resultKeyNameFromField)(c),d=c.selectionSet;if(void 0===(r=l[u]||t[u]))continue;if(d&&null!==r){let a=e(t[u],d,n,i,p.__DEV__?`${o||""}.${u}`:void 0);s.has(a)&&(r=a)}p.__DEV__||(l[u]=r),p.__DEV__&&(i&&"__typename"!==u&&!Object.getOwnPropertyDescriptor(l,u)?.value?Object.defineProperty(l,u,function(e,t,r,n,i){let o=()=>(ep.disableWarningsSlot.getValue()||(p.__DEV__&&a.invariant.warn(40,n?`${i} '${n}'`:`anonymous ${i}`,`${r}.${e}`.replace(/^\./,"")),o=()=>t),t);return{get:()=>o(),set(e){o=()=>e},enumerable:!0,configurable:!0}}(u,r,o||"",n.operationName,n.operationType)):(delete l[u],l[u]=r))}if(c.kind===E.Kind.INLINE_FRAGMENT&&(!c.typeCondition||n.cache.fragmentMatches(c,t.__typename))&&(r=e(t,c.selectionSet,n,i,o)),c.kind===E.Kind.FRAGMENT_SPREAD){let i=c.name.value,s=n.fragmentMap[i]||(n.fragmentMap[i]=n.cache.lookupFragment(i));(0,a.invariant)(s,39,i);let l=(0,ep.getFragmentMaskMode)(c);"mask"!==l&&(r=e(t,s.selectionSet,n,"migrate"===l,o))}s.has(r)&&s.add(l)}return"__typename"in t&&!("__typename"in l)&&(l.__typename=t.__typename),Object.keys(l).length!==Object.keys(t).length&&s.add(l),s.has(l)?l:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,ec.maybeDeepFreeze)(n),n})}var eh=e.i(147489),ef=e.i(272797);function eg(e){return 7===e||8===e}var ey=e.i(362575),em=e.i(240001),ev=e.i(78122);function eb(e,t=()=>void 0){return r=>new S.Observable(n=>{let i=t();return r.subscribe({next(t){let r;try{r=e(t,i)}catch(e){n.error(e)}void 0!==r&&n.next(r)},error(e){n.error(e)},complete(){n.complete()}})})}var ex=e.i(203762),eE=e.i(607002);function eS(e){return!!e.errors?.length}var eT=e.i(983974),ew=e.i(292062),ek=e.i(919504),eO=e.i(495565),e_=e.i(269683);function eI(e){let t=new Map;return function(r=e){let n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function eA(e){let t={data:e.data};return e.error&&(t.error=e.error),t}var eN=e.i(772345),eP=e.i(824627),eR=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,eP.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()}
1,enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(ee.Subject),eD=e.i(520610),eC=e.i(409165);function eL(e){return e.catch(()=>{}),e}let{assign:eF,hasOwnProperty:eM}=Object,e$={loading:!0,networkStatus:eN.NetworkStatus.loading,data:void 0,dataState:"empty",partial:!0},ej={loading:!1,networkStatus:eN.NetworkStatus.ready,data:void 0,dataState:"empty",partial:!0};class eV{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);const{watchQuery:{fetchPolicy:n="cache-first"}={}}=e.defaultOptions,{fetchPolicy:i=n,initialFetchPolicy:o="standby"===i?n:i}=t;t[ev.variablesUnknownSymbol]&&((0,a.invariant)("standby"===i,80),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:o,fetchPolicy:i,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const s=(0,eh.getOperationDefinition)(this.query);this.queryName=s&&s.name&&s.name.value}initializeObservablesQueue(){this.subject=new eR({query:this.query,variables:this.variables,result:e$,meta:{}});let e=this.subject.pipe((0,et.tap)({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),eb(({query:e,variables:t,result:r,meta:n},i)=>{let{shouldEmit:o}=n;if(r===e$&&(i.previous=void 0,i.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===o)return;if(1===o)return l();let{previous:a,previousVariables:s}=i;if(a){let n=this.queryManager.getDocumentInfo(e),i=this.queryManager.dataMasking,o=i?n.nonReactiveQuery:e;if((i||n.hasNonreactiveDirective?(0,eD.equalByQuery)(o,a,r,t):(0,ea.equal)(a,r))&&(0,ea.equal)(s,t))return}if(!(3===o&&(!this.options.notifyOnNetworkStatusChange||(0,ea.equal)(a,r))))return l();function l(){return i.previous=r,i.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new ee.Subject,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&("network-only"===t||"cache-and-network"===t)&&(t="cache-first");let r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?eN.NetworkStatus.ready:eN.NetworkStatus.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:eN.NetworkStatus.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:eN.NetworkStatus.loading};case"standby":return ej;default:return e$}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,n="standby"===t||"no-cache"===t||this.waitForNetworkResult,i=!eU({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((n||i)&&this.unsubscribeFromCache?.(),n||!i)return;let o={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);
1if((t.hasClientExports||t.hasForcedResolvers)&&(o.lastDiff=void 0),o.lastOwnDiff===e)return;let{result:n}=this.subject.getValue();(e.complete||!n.error&&n!==e$&&n!==ej)&&((0,ea.equal)(n.data,e.result)||this.scheduleNotify())}},a=this.cache.watch(o);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===eN.NetworkStatus.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===e$&&(t=this.getInitialResult()),(0,ea.equal)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",p.__DEV__&&e&&eM.call(e,"variables")){let t=(0,eC.getQueryDefinition)(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!p.__DEV__||a.invariant.warn(81,e,t.name?.value||t)}return e&&!(0,ea.equal)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:eN.NetworkStatus.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:n,updateQuery:i}){(0,a.invariant)("cache-only"!==this.options.fetchPolicy,82,(0,eE.getOperationName)(this.query,"(anonymous)"));let o={...(0,h.compact)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:n}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};o.query=this.transformDocument(o.query),this.lastQuery=e?this.transformDocument(this.options.query):o.query;let s=!1,l="no-cache"!==this.options.fetchPolicy;l||(0,a.invariant)(i,83);let{finalize:c,pushNotification:u}=this.pushOperation(eN.NetworkStatus.fetchMore);u({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:p,operator:d}=eB(),{observable:f}=this.queryManager.fetchObservableWithInfo(o,{networkStatus:eN.NetworkStatus.fetchMore,exposeExtensions:!0}),g=f.pipe(d,Q(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{s=!1;let t=e.value,r=t[ev.extensionsSymbol];if(eg(e.value.networkStatus)&&c(),l){let e=this.getCacheDiff();this.cache.batch({update:e=>{i?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>i(e,{fetchMoreResult:t.data,variables:o.variables})):e.writeQuery({query:o.query,variables:o.variables,data:t.data,extensions:r})},onWatchUpdated:(r,n)=>{if(r.watcher===this&&!(0,ea.equal)(n.result,e.result)){s=!0;let e=this.getCurrentResult();eg(t.networkStatus)||u({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===eN.NetworkStatus.error?eN.NetworkStatus.ready:t.networkStatus,loading:!1,data:n.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{let e=this.getCurrentResult(),r=i(e.data,{fetchMoreResult:t.data,variables:o.variables});u({kind:"N",value:{...e,networkStatus:eN.NetworkStatus.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return eL(p.then(e=>eA(this.maskResult(e))).finally(()=>{if(g.unsubscribe(),c(),l&&!s){let e=this.getCurrentResult();"streaming"===e.dataState?u({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:eN.NetworkStatus.ready}}):u({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:n}=e,{error:i}=t;i?n?n(i):a.invariant.error(84,i):r&&this.updateQuery((e,n)=>r(e,{subscriptionData:t,...n}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,h.compact)(this.options,e||{});eF(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,ea.equal)(this.variables,e))?eA(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:eN.NetworkStatus.setVariables}):eA(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:n}=this.getCacheDiff({optimistic:!1}),i=e(r,{variables:this.variables,complete:!!n,previousData:r});i&&(this.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:n=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:n}):"variables-changed"===e?t.fetchPolicy=n:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,n){let i=this.options.fetchPolicy;e.context??={};let o=!1,a=e=>new S.Observable(r=>{try{return e.subscribe({next(e){o=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{o||(p.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:c,variables:u,meta:{shouldEmit:3,fetchPolicy:i}}))}}),{observable:s,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{o=!0},fetchQueryOperator:a,observableQuery:this}),{query:c,variables:u}=this,p={abort:()=>{h.unsubscribe()},query:c,variables:u};this.activeOperations.add(p);let d=t==eN.NetworkStatus.refetch||t==eN.NetworkStatus.setVariables,h=(s=s.pipe(n,(0,J.share)())).pipe((0,et.tap)({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?p.override=t:delete p.override},finalize:()=>this.activeOperations.delete(p)})).subscribe({next:e=>{let t={};d&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(d=!1,t.shouldEmit=1),this.input.next({...e,query:c,variables:u,meta:t})}});return{fromLink:l,subscription:h,observable:s}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,n=()=>{let{options:e}=this;
1return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(n()){p.__DEV__&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(p.__DEV__&&a.invariant.warn(85,(0,eE.getOperationName)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let i=()=>{if(n())return this.cancelPolling();this.pollingInfo&&(!eg(this.networkStatus)||this.options.skipPollAttempt?.()?o():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:eN.NetworkStatus.poll}).then(o,o))},o=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(i,e.interval))};o()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);let n=r===eN.NetworkStatus.refetch||r===eN.NetworkStatus.poll,i=this.variables,o=this.options.fetchPolicy,a=(0,h.compact)(this.options,e||{});this.variablesUnknown&&="standby"===a.fetchPolicy;let s=n?a:eF(this.options,a),l=this.transformDocument(s.query);this.lastQuery=l,e&&"variables"in e&&(s.variables=this.getVariablesWithDefaults(e.variables)),!n&&(this.updatePolling(),e&&e.variables&&!(0,ea.equal)(e.variables,i)&&"standby"!==s.fetchPolicy&&(s.fetchPolicy===o||"function"==typeof s.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",s),void 0===r&&(r=eN.NetworkStatus.setVariables)));let c=this.networkStatus;r||(r=eN.NetworkStatus.loading,c!==eN.NetworkStatus.loading&&e?.variables&&!(0,ea.equal)(e.variables,i)&&(r=eN.NetworkStatus.setVariables),"standby"===s.fetchPolicy&&(r=eN.NetworkStatus.ready)),"standby"===s.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:u,operator:p}=eB("standby"===s.fetchPolicy?{data:void 0}:void 0),{subscription:d,observable:f,fromLink:g}=this.fetch(s,r,l,p);n||!g&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=d);let y=Object.assign(eL(u.then(e=>eA(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=f.subscribe({}),t=()=>e.unsubscribe();return u.then(t,t),y}});return y}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,ea.equal)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:eN.NetworkStatus.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:n}=this,i=()=>{this.activeOperations.delete(o)},o={override:e,abort:()=>{t=!0,i()},query:r,variables:n};return this.activeOperations.add(o),{finalize:i,pushNotification:(e,i)=>{t||this.input.next({...e,query:r,variables:n,meta:{...i}})}}}calculateNetworkStatus(e){if(e===eN.NetworkStatus.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>eU(e,this)&&void 0!==e.override);return t?.override??e}
1abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?ej:e$,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=eb(e=>{let t,{query:r,variables:n,meta:i}=e;if("setResult"===e.source)return{query:r,variables:n,result:e.value,meta:i};if("C"===e.kind||!eU(e,this))return;let o=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===eN.NetworkStatus.ready&&t.partial&&(!this.options.returnPartialData||o.result.networkStatus===eN.NetworkStatus.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...eU(o,e)?o.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:eN.NetworkStatus.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(i.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=eU(o,e)?o.result:this.getInitialResult(i.fetchPolicy),{resetError:n}=e.value,a=n?void 0:r.error,s=a?eN.NetworkStatus.error:eN.NetworkStatus.ready;t={...r,error:a,networkStatus:s}}return(0,a.invariant)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=!eg(t.networkStatus),{query:r,variables:n,result:t=this.maskResult(t),meta:i}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,n){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,n):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function eU(e,t){return!!(e&&t&&e.query===t.query&&(0,ea.equal)(e.variables,t.variables))}function eB(e){let t=e,r,n;return{promise:new Promise((e,t)=>{r=e,n=t}),operator:(0,et.tap)({next(e){if("E"===e.kind)return n(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(t=e.value)},finalize:()=>{if(t)r(t);else{let e="The operation was aborted.",t="AbortError";n("u">typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}}let ez={},eq=new WeakMap;function eG(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return eq.set(e,(eq.get(e)+1)%1e15),r.apply(this,arguments)})}let eK=new WeakMap;class eH{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){const r=this.cache=e.cache,n=(eK.get(e)||0)+1;eK.set(e,n),this.id=n+"",this.observableQuery=t,this.queryManager=e,eq.has(r)||(eq.set(r,0),eG(r,"evict"),eG(r,"modify"),eG(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;return!(r&&r.dmCount===eq.get(this.cache)&&(0,ea.equal)(t,r.variables)&&(0,ea.equal)(e.data,r.result.data)&&e.extensions?.[ev.streamInfoSymbol]===r.result.extensions?.[ev.streamInfoSymbol])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:n}=this.queryManager;return n.isIncrementalResult(t)?(this.incremental||=n.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){let o={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=0===i,s=a?void 0:this.cache.diff(o),l=this.maybeHandleIncrementalResult(s?.result,e,t);return a||(eQ(l,n)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)}
1,update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===i,extensions:l.extensions}),this.lastWrite={result:l,variables:r,dmCount:eq.get(this.cache)};else if(s&&s.complete){l={...l,data:s.result};return}let n=e.diff(o);n.complete&&(l={...l,data:n.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let n=[],i=0===t.cacheWriteBehavior,o=this.maybeHandleIncrementalResult(i?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(o={...o,errors:[]}),eS(o)&&"none"===t.errorPolicy)return Promise.resolve(o);let a=()=>({...o,dataState:this.hasNext?"streaming":"complete"});if(!i&&eQ(o,t.errorPolicy)){n.push({result:o.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:o.extensions});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let i=e[r],{query:o,variables:s}=t,{result:l,complete:c}=t.getCacheDiff({optimistic:!1});if(c&&l){let e=i(l,{mutationResult:a(),queryName:o&&(0,eE.getOperationName)(o)||void 0,queryVariables:s});e&&n.push({result:e,dataId:"ROOT_QUERY",query:o,variables:s})}})}let s=t.refetchQueries;if("function"==typeof s&&(s=s(a())),n.length>0||(s||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];
1if(this.queryManager.refetchQueries({updateCache:e=>{i||n.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!i){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(o={...o,data:r.result})}this.hasNext||r(e,o,{context:t.context,variables:t.variables})}i||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:s,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>o)}return Promise.resolve(o)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:ez}):e;return r!==ez&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){a.invariant.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:n,cacheWriteBehavior:i}){0!==i&&(eQ(e,n)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function eQ(e,t="none"){let r=!eS(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class eW{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){const t=new u.DocumentTransform(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,a.newInvariantError)(87))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:n,refetchQueries:o=[],awaitRefetchQueries:s=!1,update:l,onQueryUpdated:c,fetchPolicy:u,errorPolicy:d,keepRootFields:h,context:f}){let g=new eH(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:y}=this.getDocumentInfo(e);t=this.getVariables(e,t),y&&(p.__DEV__&&(0,a.invariant)(this.localState,88,(0,eE.getOperationName)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:f}));let m=this.mutationStore&&(this.mutationStore[g.id]={mutation:e,variables:t,loading:!0,error:null}),v=r&&g.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==u),errorPolicy:d,context:f,updateQueries:n,update:l,keepRootFields:h});return this.broadcastQueries(),new Promise((a,p)=>{let y={};return this.getObservableFromLink(e,{...f,optimisticResponse:v?r:void 0},t,u,{},!1).observable.pipe(eY(),N(r=>{let i={...r};return G(g.markMutationResult(i,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==u),errorPolicy:d,context:f,update:l,updateQueries:n,awaitRefetchQueries:s,refetchQueries:o,removeOptimistic:v?g.id:void 0,onQueryUpdated:c,keepRootFields:h}))})).pipe((0,i.map)(e=>{if(eS(e)&&"none"===d)throw new en.CombinedGraphQLErrors(eX(e));return m&&(m.loading=!1,m.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!g.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:u,cause:y})};eS(t)&&(r.error=new en.CombinedGraphQLErrors(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),a(r)}},error:e=>(m&&(m.loading=!1,m.error=e),v&&this.cache.removeOptimistic(g.id),this.broadcastQueries(),"ignore"===d)?a({data:void 0}):"all"===d?a({data:void 0,error:e}):void p(e)})})}fetchQuery(e,t){return(0,d.checkDocument)(e.query,n.OperationTypeNode.QUERY),(async()=>{var r,n,i;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(eb(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return eA(e.value)}})),i="object"==typeof(n={defaultValue:{data:void 0}}),new Promise(function(e,t){var o,a=!1;r.subscribe({next:function(e){o=e,a=!0},error:t,complete:function(){a?e(o):i?e(n.defaultValue):t(new W)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new em.AutoCleanedWeakCache(ef.cacheSizes["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){var r;let n,i=(0,eh.getOperationDefinition)(e),s={hasClientExports:(0,o.hasDirectives)(["client","export"],e,!0),hasForcedResolvers:(n=!1,(0,m.visit)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(n=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return m.BREAK}}}),n),hasNonreactiveDirective:(0,o.hasDirectives)(["nonreactive"],e),hasIncrementalDirective:(0,o.hasDirectives)(["defer"],e),nonReactiveQuery:(r=e,(0,m.visit)(r,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:E.Kind.DIRECTIVE,name:{kind:E.Kind.NAME,value:"nonreactive"}}
1]}}})),clientQuery:(0,o.hasDirectives)(["client"],e)?e:null,serverQuery:function(e,t){var r,n;let i,o;(0,d.checkDocument)(t);let s=eI(""),l=eI(""),c=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!(0,eO.isArray)(r)){if(r.kind===E.Kind.OPERATION_DEFINITION)return s(r.name&&r.name.value);if(r.kind===E.Kind.FRAGMENT_DEFINITION)return l(r.name.value)}return a.invariant.error(14),null},u=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===E.Kind.OPERATION_DEFINITION&&++u;let p=(r=e,i=new Map,o=new Map,r.forEach(e=>{e&&(e.name?i.set(e.name,e):e.test&&o.set(e.test,e))}),e=>{let t=i.get(e.name.value);return!t&&o.size&&o.forEach((r,n)=>{n(e)&&(t=r)}),t}),h=e=>(0,e_.isNonEmptyArray)(e)&&e.map(p).some(e=>e&&e.remove),f=new Map,g=!1,y={enter(e){if(h(e.directives))return g=!0,null}},v=(0,m.visit)(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,n,i){let o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,n,i){if(h(e.directives))return g=!0,null;let o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,n){f.set(JSON.stringify(n),e)},leave:(e,t,r,n)=>e===f.get(JSON.stringify(n))?e:u>0&&e.selectionSet.selections.every(e=>e.kind===E.Kind.FIELD&&"__typename"===e.name.value)?(l(e.name.value).removed=!0,g=!0,null):void 0},Directive:{leave(e){if(p(e))return g=!0,null}}});if(!g)return t;let b=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{b(l(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),x=new Set;v.definitions.forEach(e=>{e.kind===E.Kind.OPERATION_DEFINITION?b(s(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{x.add(e)}):e.kind!==E.Kind.FRAGMENT_DEFINITION||0!==u||l(e.name.value).removed||x.add(e.name.value)}),x.forEach(e=>{b(l(e)).fragmentSpreads.forEach(e=>{x.add(e)})});let S={enter(e){let t;if(t=e.name.value,!x.has(t)||l(t).removed)return null}};return n=(0,m.visit)(v,{FragmentSpread:S,FragmentDefinition:S,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=b(s(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===E.Kind.FRAGMENT_SPREAD&&e(r[t.name.value],r))}((0,eh.getOperationDefinition)(n)||(0,ek.getFragmentDefinition)(n),(0,es.createFragmentMap)((0,el.getFragmentDefinitions)(n)))?n:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:i?.operation,defaultVars:(0,ex.getDefaultValues)(i),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,s)}let n=t.get(e);if(n.violation)throw n.violation;return n}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,n=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(n)}}watchQuery(e){(0,d.checkDocument)(e.query,n.OperationTypeNode.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new eV({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,a.newInvariantError)(89)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),n.set(e,!1);else if((0,eT.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=(0,ey.print)(this.transform(e));r.set(t,(0,eE.getOperationName)(e)),n.set(t,!1)}else(0,eT.isNonNullObject)(e)&&e.query&&i.add(e)}
1),this.obsQueries.forEach(r=>{let i=(0,ey.print)(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:o,options:{fetchPolicy:a}}=r;("active"!==e||"standby"!==a)&&("active"===e||o&&n.has(o)||i&&n.has(i))&&(t.add(r),o&&n.set(o,!0),i&&n.set(i,!0))}),i.size&&i.forEach(e=>{let r=new eV({queryManager:this,options:{...(0,y.mergeOptions)(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)}),p.__DEV__&&n.size&&n.forEach((e,t)=>{if(!e){let e=r.get(t);e?p.__DEV__&&a.invariant.warn(90,e):p.__DEV__&&a.invariant.warn(91)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:n}=r.options;(e||"standby"!==n)&&"cache-only"!==n&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:o}=e,{fetchPolicy:s="cache-first",errorPolicy:l="none",context:c={},extensions:u={}}=e;return(0,d.checkDocument)(r,n.OperationTypeNode.SUBSCRIPTION),r=this.transform(r),o=this.getVariables(r,o),p.__DEV__&&(0,a.invariant)(!this.getDocumentInfo(r).hasClientExports||this.localState,92,(0,eE.getOperationName)(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?G(this.localState.getExportedVariables({client:this.client,document:r,variables:o,context:c})):Y(o)).pipe(N(e=>{let{observable:n,restart:o}=this.getObservableFromLink(r,c,e,s,u),a=new eH(this);return t=o,n.pipe((0,i.map)(t=>{a.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:l,cacheWriteBehavior:2*("no-cache"!==s)});let n={data:t.data??void 0};return eS(t)?n.error=new en.CombinedGraphQLErrors(t):(0,ei.graphQLResultHasProtocolErrors)(t)&&(n.error=t.extensions[ei.PROTOCOL_ERRORS_SYMBOL],delete t.extensions[ei.PROTOCOL_ERRORS_SYMBOL]),t.extensions&&Object.keys(t.extensions).length&&(n.extensions=t.extensions),n.error&&"none"===l&&(n.data=void 0),"ignore"===l&&delete n.error,n}),I(e=>"ignore"===l?Y({data:void 0}):Y({data:void 0,error:e})),Q(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new x.Trie(!1);getObservableFromLink(e,t,r,i,o,s=t?.queryDeduplication??this.queryDeduplication){let l={},{serverQuery:u,clientQuery:d,operationType:h,hasIncrementalDirective:f}=this.getDocumentInfo(e),g=(0,eE.getOperationName)(e),y={client:this.client};if(u){let{inFlightLinkObservables:e,link:i}=this;try{let a=this.incrementalHandler.prepareRequest({query:u,variables:r,context:{...this.defaultContext,...t,queryDeduplication:s},extensions:o});function m(e){return new S.Observable(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let n=r();return l.restart||=()=>{n.unsubscribe(),n=r()},()=>{n.unsubscribe(),l.restart=void 0}})}if(t=a.context,s){var v;let t=(0,ey.print)(u),o=(0,er.canonicalStringify)(r);(l=e.lookup(t,o)).observable||(l.observable=c(i,a,y).pipe(m,(v=()=>{e.peek(t,o)===l&&e.remove(t,o)},(0,_.operate)(function(e,t){try{e.subscribe(t)}finally{t.add(v)}})),h===n.OperationTypeNode.SUBSCRIPTION?(0,J.share)():(0,Z.shareReplay)({refCount:!0})))}else l.observable=c(i,a,y).pipe(m)}catch(e){l.observable=w(()=>e)}}else l.observable=Y({data:{}});if(d){let{operation:n}=(0,eh.getOperationDefinition)(e);p.__DEV__&&(0,a.invariant)(this.localState,93,n[0].toUpperCase()+n.slice(1),g??"(anonymous)"),(0,a.invariant)(!f,94,n[0].toUpperCase()+n.slice(1),g??"(anonymous)"),l.observable=l.observable.pipe(N(e=>G(this.localState.execute({client:this.client,document:d,remoteResult:e,context:t,variables:r,fetchPolicy:i}))))}return{restart:()=>l.restart?.(),observable:l.observable.pipe(I(e=>{var t;throw t=e=(0,ei.toErrorLike)(e),eo.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:n,exposeExtensions:o}){let a=t.lastRequestId=this.generateRequestId(),{errorPolicy:s}=e,l=this.cache.transformForLink(e.query);return this.getObservableFromLink(l,e.context,e.variables,e.fetchPolicy).observable.pipe((0,i.map)(i=>{let a=t.markQueryResult(i,{...e,document:l,cacheWriteBehavior:r}),c=eS(a);if(c&&"none"===s)throw t.resetLastWrite(),n?.resetNotifications(),new en.CombinedGraphQLErrors(eX(a));let u={data:a.data,...t.hasNext?{loading:!0,networkStatus:eN.NetworkStatus.streaming,dataState:"streaming",partial:!0}:{dataState:a.data?"complete":"empty",loading:!1,networkStatus:eN.NetworkStatus.ready,partial:!a.data}};return o&&"extensions"in a&&(u[ev.extensionsSymbol]=a.extensions),c&&("none"===s&&(u.data=void 0,u.dataState="empty"),"ignore"!==s&&(u.error=new en.CombinedGraphQLErrors(eX(a)),"streaming"!==u.dataState&&(u.networkStatus=eN.NetworkStatus.error))),u}),I(e=>{if(a>=t.lastRequestId&&"none"===s)throw t.resetLastWrite(),n?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:eN.NetworkStatus.ready,partial:!0};return"ignore"!==s&&(r.error=e,r.networkStatus=eN.NetworkStatus.error),Y(r)}))}fetchObservableWithInfo(e,{networkStatus:t=eN.NetworkStatus.loading,query:r=e.query,fetchQueryOperator:n=e=>e,onCacheHit:i=()=>{},observableQuery:o,exposeExtensions:s}){let l,c,u=this.getVariables(r,e.variables),{fetchPolicy:d="cache-first",errorPolicy:h="none",returnPartialData:f=!1,notifyOnNetworkStatusChange:g=!0,context:y={}}=e;
1this.prioritizeCacheValues&&("network-only"===d||"cache-and-network"===d)&&(d="cache-first");let m=Object.assign({},e,{query:r,variables:u,fetchPolicy:d,errorPolicy:h,returnPartialData:f,notifyOnNetworkStatusChange:g,context:y}),v=new eH(this,o),b=r=>{m.variables=r;let a="no-cache"===d?0:t===eN.NetworkStatus.refetch&&"merge"!==m.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(m,{queryInfo:v,cacheWriteBehavior:a,onCacheHit:i,observableQuery:o,exposeExtensions:s});return l.observable=l.observable.pipe(n),"standby"!==m.fetchPolicy&&o?.applyNextFetchPolicy("after-fetch",e),l},x=()=>{this.fetchCancelFns.delete(v.id)};this.fetchCancelFns.set(v.id,e=>{E.next({kind:"E",error:e,source:"network"})});let E=new ee.Subject;if(this.getDocumentInfo(m.query).hasClientExports)p.__DEV__&&(0,a.invariant)(this.localState,95,(0,eE.getOperationName)(m.query,"(anonymous)")),l=G(this.localState.getExportedVariables({client:this.client,document:m.query,variables:m.variables,context:m.context})).pipe(N(e=>b(e).observable)),c=!0;else{let e=b(m.variables);c=e.fromLink,l=e.observable}return{observable:new S.Observable(e=>{e.add(x),l.subscribe(e),E.subscribe(e)}).pipe((0,J.share)()),fromLink:c}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:n=r?(0,ew.makeUniqueId)("refetchQueries"):void 0,onQueryUpdated:i}){let o=new Map;t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();o.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let a=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&n||!1,removeOptimistic:n,onWatchUpdated(e,r,n){let s=e.watcher;if(s instanceof eV&&!t.has(s)){if(t.add(s),i){o.delete(s);let e=i(s,r,n);return!0===e&&(e=s.refetch().retain()),!1!==e&&a.set(s,e),e}null!==i&&"cache-only"!==s.options.fetchPolicy&&o.set(s,{oq:s,lastDiff:n,diff:r})}}})}return o.size&&o.forEach(({oq:e,lastDiff:t,diff:r})=>{let n;i&&(r||(r=e.getCacheDiff()),n=i(e,r,t)),i&&!0!==n||(n=e.refetch().retain()),!1!==n&&a.set(e,n)}),n&&this.cache.removeOptimistic(n),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){var t,r;let n,{document:i,data:o}=e;if(p.__DEV__){let t,{fetchPolicy:n,cause:o={}}=e,s=(0,eh.getOperationDefinition)(i)?.operation;this.dataMasking&&"no-cache"===n&&(r=i,t=!0,(0,m.visit)(r,{FragmentSpread:e=>{if(!(t=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return m.BREAK}}),!t)&&!this.noCacheWarningsByCause.has(o)&&(this.noCacheWarningsByCause.add(o),p.__DEV__&&a.invariant.warn(96,(0,eE.getOperationName)(i,`Unnamed ${s??"operation"}`)))}return this.dataMasking?(t=this.cache,n=(0,eh.getOperationDefinition)(i),((0,a.invariant)(n,43),null==o)?o:ed(o,n.selectionSet,{operationType:n.operation,operationName:n.name?.value,fragmentMap:(0,es.createFragmentMap)((0,el.getFragmentDefinitions)(i)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):o}maskFragment(e){var t,r;let n,i,{data:o,fragment:s,fragmentName:l}=e;return this.dataMasking?(t=this.cache,r=l,n=s.definitions.filter(e=>e.kind===E.Kind.FRAGMENT_DEFINITION),void 0===r&&((0,a.invariant)(1===n.length,41,n.length),r=n[0].name.value),i=n.find(e=>e.name.value===r),((0,a.invariant)(!!i,42,r),null==o||(0,ea.equal)(o,{}))?o:ed(o,i.selectionSet,{operationType:"fragment",operationName:i.name.value,fragmentMap:(0,es.createFragmentMap)((0,el.getFragmentDefinitions)(s)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):o}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:n,returnPartialData:o,context:s},{cacheWriteBehavior:l,onCacheHit:c,queryInfo:u,observableQuery:d,exposeExtensions:h}){let f=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),g=(i,l)=>{var u;let d=i.result;p.__DEV__&&!o&&null!==d&&(u=i.missing,p.__DEV__&&u&&p.__DEV__&&a.invariant.debug(86,u));let h=e=>(i.complete||o||(e=void 0),{data:e,dataState:i.complete?"complete":e?"partial":"empty",loading:!eg(l),networkStatus:l,partial:!i.complete}),f=e=>Y({kind:"N",value:h(e),source:"cache"});return(i.complete||o)&&this.getDocumentInfo(e).hasForcedResolvers?(p.__DEV__&&(0,a.invariant)(this.localState,97,(0,eE.getOperationName)(e,"(anonymous)")),c(),G(this.localState.execute({client:this.client,document:e,remoteResult:d?{data:d}:void 0,context:s,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:h(e.data||void 0),source:"cache"})))):f("none"===n&&l===eN.NetworkStatus.refetch&&i.missing?void 0:d||void 0)},y=()=>this.getResultsFromLink({query:e,variables:t,context:s,fetchPolicy:r,errorPolicy:n},{cacheWriteBehavior:l,queryInfo:u,observableQuery:d,exposeExtensions:h}).pipe(eY(),(0,_.operate)(function(e,t){e.subscribe((0,O.createOperatorSubscriber)(t,function(e){t.next(X.createNext(e))},function(){t.next(X.createComplete()),t.complete()},function(e){t.next(X.createError(e)),t.complete()}
1))}),(0,i.map)(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=f();if(e.complete)return{fromLink:!1,observable:g(e,eN.NetworkStatus.ready)};if(o)return{fromLink:!0,observable:K(g(e,eN.NetworkStatus.loading),y())};return{fromLink:!0,observable:y()}}case"cache-and-network":{let e=f();if(e.complete||o)return{fromLink:!0,observable:K(g(e,eN.NetworkStatus.loading),y())};return{fromLink:!0,observable:y()}}case"cache-only":return{fromLink:!1,observable:K(g(f(),eN.NetworkStatus.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:y()};case"standby":return{fromLink:!1,observable:H.EMPTY}}}}function eY(){let e=!1;return(0,et.tap)({next(){e=!0},complete(){(0,a.invariant)(e,98)}})}function eX(e){if(e.extensions?.[ev.streamInfoSymbol]==null)return e;let{extensions:{[ev.streamInfoSymbol]:t,...r},...n}=e;return Object.keys(r).length>0&&(n.extensions=r),n}let eJ=!1;class eZ{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){p.__DEV__&&((0,a.invariant)(e.cache,68),(0,a.invariant)(e.link,69));const{cache:t,documentTransform:r,ssrMode:n=!1,ssrForceFetchDelay:i=0,queryDeduplication:o=!0,defaultOptions:l,defaultContext:c,assumeImmutableResults:u=t.assumeImmutableResults,localState:d,devtools:h,dataMasking:f,link:g,incrementalHandler:y=new s,experiments:m=[]}=e;this.link=g,this.cache=t,this.queryDeduplication=o,this.defaultOptions=l||{},this.devtoolsConfig={...h,enabled:h?.enabled??p.__DEV__},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.refetchObservableQueries=this.refetchObservableQueries.bind(this),this.version=b.version,this.queryManager=new eW({client:this,defaultOptions:this.defaultOptions,defaultContext:c,documentTransform:r,queryDeduplication:o,ssrMode:n,dataMasking:!!f,clientOptions:e,incrementalHandler:y,assumeImmutableResults:u,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:d}),this.prioritizeCacheValues=n||i>0,i&&setTimeout(()=>{this.prioritizeCacheValues=!1},i),this.devtoolsConfig.enabled&&this.connectToDevTools(),m.forEach(t=>t.call(this,e))}connectToDevTools(){if("u"<typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!eJ&&p.__DEV__&&(eJ=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&p.__DEV__&&a.invariant.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop()}watchQuery(e){return this.defaultOptions.watchQuery&&(e=(0,y.mergeOptions)(this.defaultOptions.watchQuery,e)),this.queryManager.watchQuery(e)}query(e){return this.defaultOptions.query&&(e=(0,y.mergeOptions)(this.defaultOptions.query,e)),p.__DEV__&&((0,a.invariant)("cache-and-network"!==e.fetchPolicy,70),(0,a.invariant)("standby"!==e.fetchPolicy,71),(0,a.invariant)(e.query,72),(0,a.invariant)("Document"===e.query.kind,73),(0,a.invariant)(!e.returnPartialData,74),(0,a.invariant)(!e.pollInterval,75),(0,a.invariant)(!e.notifyOnNetworkStatusChange,76)),this.queryManager.query(e)}mutate(e){let t=(0,y.mergeOptions)((0,h.compact)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return p.__DEV__&&((0,a.invariant)(t.mutation,77),(0,a.invariant)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,78)),(0,d.checkDocument)(t.mutation,n.OperationTypeNode.MUTATION),this.queryManager.mutate(t)}subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe((0,i.map)(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return p.__DEV__?(0,g.mapObservableFragmentMemoized)(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}
1readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return c(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((e,t)=>{r.push(t),n.push(e)});let i=Promise.all(n);return i.queries=r,i.results=n,i.catch(e=>{p.__DEV__&&a.invariant.debug(79,e)}),i}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new u.DocumentTransform(v);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}p.__DEV__&&(eZ.prototype.getMemoryInternals=f.getApolloClientMemoryInternals);var e0=e.i(473481),e1=e.i(63461);class e2 extends Error{static is(e){return(0,e1.isBranded)(e,"LocalStateError")}path;constructor(e,t={}){super(e,{cause:t.sourceError}),this.name="LocalStateError",this.path=t.path,(0,e1.brand)(this),Object.setPrototypeOf(this,e2.prototype)}}var e5=e.i(434943);class e4 extends Error{static is(e){return(0,e1.isBranded)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,e1.brand)(this),Object.setPrototypeOf(this,e4.prototype)}}var e3=e.i(190401),e6=e.i(833365),e9=e.i(72205),e8=e.i(740775),e7=e.i(303150),te=e.i(868820);let tt=l.ApolloLink.concat,tr=l.ApolloLink.empty,tn=l.ApolloLink.from,ti=l.ApolloLink.split,to=e=>{(0,a.invariant)(e||"u">typeof fetch,61)};var ta=l,ts=l;class tl extends ts.ApolloLink{constructor(e={}){super((t,r)=>{let n=t.client,i=n.queryManager.clientOptions,o=t.getContext();{let{name:r,version:n,transport:a="headers"}=(0,h.compact)({},i.clientAwareness,e.clientAwareness,o.clientAwareness);"headers"===a&&t.setContext(({headers:e})=>({headers:(0,h.compact)({"apollographql-client-name":r,"apollographql-client-version":n},e)}))}{let{transport:r="extensions"}=(0,h.compact)({},i.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,h.compact)({clientLibrary:{name:"@apollo/client",version:n.version}},t.extensions)),"headers"===r&&t.setContext(({headers:e})=>({headers:(0,h.compact)({"apollographql-library-name":"@apollo/client","apollographql-library-version":n.version},e)}))}return r(t)})}}var tc=l;function tu(e,t){return(0,eh.getOperationDefinition)(e)?.operation===t}var tp=e.i(513521);let{hasOwnProperty:td}=Object.prototype;async function*th(e){let t,r=new TextDecoder("utf-8"),n=e.headers?.get("content-type"),i=n?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),o="\r\n--"+(i?i[1]??i[2]??i[3]??"-":"-"),s="";(0,a.invariant)(e.body&&"function"==typeof e.body.getReader,62);let l=e.body.getReader(),c=!1,u=!1,p=()=>u&&"-"==s[0]&&"-"==s[1];try{for(;!c;){({value:t,done:c}=await l.read());let e="string"==typeof t?t:r.decode(t),n=s.length-o.length+1,i=(s+=e).indexOf(o,n);for(;i>-1&&!p();){let e;u=!0,[e,s]=[s.slice(0,i),s.slice(i+o.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};
1return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let n=e.slice(t);n&&(yield n),i=s.indexOf(o)}if(p())return}throw Error("premature end of multipart body")}finally{l.cancel()}}async function tf(e,t){for await(let r of th(e)){let n=tg(e,r);if(0!=Object.keys(n).length)if((0,eT.isNonNullObject)(n)&&"payload"in n){if(1===Object.keys(n).length&&null===n.payload)return;let e={...n.payload};"errors"in n&&(e.extensions={...e.extensions,[ei.PROTOCOL_ERRORS_SYMBOL]:new e0.CombinedProtocolErrors(n.errors??[])}),t(e)}else t(n)}}function tg(e,t){if(e.status>=300)throw new e5.ServerError(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new e4(r,{response:e,bodyText:t})}}function ty(e){return t=>t.text().then(r=>{let n=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new e4(r,{response:e,bodyText:t})}return tg(e,t)}(t,r);if(!Array.isArray(n)&&!td.call(n,"data")&&!td.call(n,"errors"))throw new e5.ServerError(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return n})}function tm(e,t){let r=[],n=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}n("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}n("extensions",e)}let i="",o=e,a=e.indexOf("#");-1!==a&&(i=e.substr(a),o=e.substr(0,a));let s=-1===o.indexOf("?")?"?":"&";return{newURI:o+s+r.join("&")+i}}let tv={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},tb=(e,t)=>t(e);function tx(e,t,...r){let n={},i={};r.forEach(e=>{n={...n,...e.options,headers:{...n.headers,...e.headers}},e.credentials&&(n.credentials=e.credentials),n.headers.accept=(e.http?.accept||[]).concat(n.headers.accept).join(","),i={...i,...e.http}}),n.headers=function(e,t){if(!t){let t={};
1return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let n={};return Object.keys(r).forEach(e=>{n[r[e].originalName]=r[e].value}),n}(n.headers,i.preserveHeaderCase);let{operationName:o,extensions:a,variables:s,query:l}=e,c={operationName:o,variables:s};return i.includeExtensions&&Object.keys(a||{}).length&&(c.extensions=a),i.includeQuery&&(c.query=t(l,ey.print)),{options:n,body:c}}let tE=(e,t)=>{let r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},tS=(0,tp.maybe)(()=>fetch);function tT(){}class tw extends tc.ApolloLink{constructor(e={}){let{uri:t="/graphql",fetch:r,print:n=tb,includeExtensions:i,preserveHeaderCase:o,useGETForQueries:a,includeUnusedVariables:s=!1,...l}=e;p.__DEV__&&to(r||tS);const c={http:(0,h.compact)({includeExtensions:i,preserveHeaderCase:o}),options:l.fetchOptions,credentials:l.credentials,headers:l.headers};super(e=>{var i,o;let l,u,p=tE(e,t),d=e.getContext(),h={...d.http};tu(e.query,"subscription")&&(h.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",...h.accept||[]]);let{options:f,body:g}=tx(e,n,tv,c,{http:h,options:d.fetchOptions,credentials:d.credentials,headers:d.headers});g.variables&&!s&&(i=g.variables,o=e.query,l={...i},u=new Set(Object.keys(i)),(0,m.visit)(o,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&u.delete(e.name.value)}}),u.forEach(e=>{delete l[e]}),g.variables=l);let y=new AbortController,v=()=>{y=void 0};if(f.signal){let e=f.signal,t=()=>{y?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),v=()=>{y?.signal.removeEventListener("abort",v),y=void 0,e.removeEventListener("abort",t),v=tT},y.signal.addEventListener("abort",v,{once:!0})}return f.signal=y.signal,a&&!tu(e.query,"mutation")&&(f.method="GET"),new S.Observable(t=>{if("GET"===f.method){let{newURI:e,parseError:t}=tm(p,g);if(t)throw t;p=e}else f.body=JSON.stringify(g);let n=r||(0,tp.maybe)(()=>fetch)||tS,i=t.next.bind(t);return n(p,f).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?tf(t,i):ty(e)(t).then(i)}).then(()=>{v(),t.complete()}).catch(e=>{v(),t.error(e)}),()=>{y&&y.abort()}})})}}class tk extends ta.ApolloLink{constructor(e={}){const{left:t,right:r,request:n}=ta.ApolloLink.from([new tl(e),new tw(e)]);super(n),Object.assign(this,{left:t,right:r})}}var tO=e.i(220920),t_=e.i(346279);e.s(["ApolloCache",()=>e6.ApolloCache,"ApolloClient",0,eZ,"ApolloLink",()=>l.ApolloLink,"CombinedGraphQLErrors",()=>en.CombinedGraphQLErrors,"CombinedProtocolErrors",()=>e0.CombinedProtocolErrors,"DocumentTransform",()=>u.DocumentTransform,"HttpLink",0,tk,"InMemoryCache",()=>e8.InMemoryCache,"LinkError",0,{is:e=>eo.has(e)},"LocalStateError",0,e2,"MissingFieldError",()=>te.MissingFieldError,"NetworkStatus",()=>eN.NetworkStatus,"Observable",()=>S.Observable,"ObservableQuery",0,eV,"ServerError",()=>e5.ServerError,"ServerParseError",0,e4,"UnconventionalError",()=>e3.UnconventionalError,"build",()=>b.build,"checkFetcher",0,to,"concat",0,tt,"createHttpLink",0,(e={})=>new tk(e),"createSignalIfSupported",0,()=>{if("u"<typeof AbortController)return{controller:!1,signal:!1};let e=new AbortController,t=e.signal;return{controller:e,signal:t}},"defaultDataIdFromObject",()=>e9.defaultDataIdFromObject,"defaultPrinter",0,tb,"disableExperimentalFragmentVariables",()=>t_.disableExperimentalFragmentVariables,"disableFragmentWarnings",()=>t_.disableFragmentWarnings,"empty",0,tr,"enableExperimentalFragmentVariables",()=>t_.enableExperimentalFragmentVariables,"execute",0,c,"fallbackHttpConfig",0,tv,"from",0,tn,"gql",()=>t_.gql,"isNetworkRequestSettled",0,eg,"isReference",()=>tO.isReference,"makeVar",()=>e7.makeVar,"parseAndCheckHttpResponse",0,ty,"resetCaches",()=>t_.resetCaches,"rewriteURIForGET",0,tm,"selectHttpOptionsAndBody",0,function(e,t,...r){return r.unshift(t),tx(e,tb,...r)},"selectHttpOptionsAndBodyInternal",0,tx,"selectURI",0,tE,"setLogVerbosity",()=>a.setVerbosity,"split",0,ti,"version",()=>b.version],933720)},772345,e=>{"use strict";var t,r;(r=t||(t={}))[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error",r[r.streaming=9]="streaming",e.s(["NetworkStatus",0,t])},434943,e=>{"use strict";var t=e.i(63461);
1class r extends Error{static is(e){return(0,t.isBranded)(e,"ServerError")}response;statusCode;bodyText;constructor(e,n){super(e),this.name="ServerError",this.response=n.response,this.statusCode=n.response.status,this.bodyText=n.bodyText,(0,t.brand)(this),Object.setPrototypeOf(this,r.prototype)}}e.s(["ServerError",0,r])},701864,63461,817366,473481,190401,860123,e=>{"use strict";var t=e.i(982100),r=e.i(147489),n=e.i(607002),i=e.i(748410),o=e.i(688392);class a{static empty(){return new a(()=>t.EMPTY)}static from(e){if(0===e.length)return a.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new a((e,t)=>t(e))){return Object.assign(new a((n,a)=>{let s=e(n);return i.__DEV__&&"boolean"!=typeof s&&i.__DEV__&&o.invariant.warn(63,s),s?t.request(n,a):r.request(n,a)}),{left:t,right:r})}static execute(e,a,s){return e.request(function(e,{client:t}){let i={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:(0,n.getOperationName)(e.query),operationType:(0,r.getOperationDefinition)(e.query).operation},o={...e.context},a=()=>Object.freeze({...o});return Object.defineProperty(i,"setContext",{enumerable:!1,value:e=>{o="function"==typeof e?{...o,...e(a())}:{...o,...e}}}),Object.defineProperty(i,"getContext",{enumerable:!1,value:a}),Object.defineProperty(i,"client",{enumerable:!1,value:t}),i}(a,s),()=>(i.__DEV__&&i.__DEV__&&o.invariant.warn(64),t.EMPTY))}static concat(...e){return a.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(a.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new a((r,n)=>e.request(r,e=>t.request(e,n))),{left:e,right:t})}request(e,t){throw(0,o.newInvariantError)(65)}left;right}function s(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function l(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}function c(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}e.s(["ApolloLink",0,a],701864),e.s(["brand",0,l,"isBranded",0,s],63461);class u extends Error{static is(e){return s(e,"CombinedGraphQLErrors")}static formatMessage=c;errors;data;extensions;constructor(e,t=e.errors||[]){super(u.formatMessage(t,{result:e,defaultFormatMessage:c})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",l(this),Object.setPrototypeOf(this,u.prototype)}}function p(e){return e.map(e=>e.message||"Error message not found.").join("\n")}e.s(["CombinedGraphQLErrors",0,u],817366);class d extends Error{static is(e){return s(e,"CombinedProtocolErrors")}static formatMessage=p;errors;constructor(e){super(d.formatMessage(e,{defaultFormatMessage:p})),this.name="CombinedProtocolErrors",this.errors=e,l(this),Object.setPrototypeOf(this,d.prototype)}}e.s(["CombinedProtocolErrors",0,d],473481);
1class h extends Error{static is(e){return s(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",l(this),Object.setPrototypeOf(this,h.prototype)}}e.s(["UnconventionalError",0,h],190401);let f=Symbol();e.s(["PROTOCOL_ERRORS_SYMBOL",0,f,"graphQLResultHasProtocolErrors",0,function(e){return"extensions"in e&&d.is(e.extensions[f])},"toErrorLike",0,function(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new h(e)}],860123)},929100,808161,362575,269683,e=>{"use strict";let t;e.s(["compact",0,function(...e){let t={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(r=>{let n=e[r];void 0!==n&&(t[r]=n)})}),t}],929100);var r=e.i(748410),n=e.i(272797);let i={};function o(e,t){i[e]=t}r.__DEV__,r.__DEV__,r.__DEV__;e.s(["registerGlobalCache",0,o],808161);var a=e.i(155547),s=e.i(240001);let l=Object.assign(e=>{let r=t.get(e);return r||(r=(0,a.print)(e),t.set(e,r)),r},{reset(){t=new s.AutoCleanedWeakCache(n.cacheSizes.print||2e3)}});l.reset(),r.__DEV__&&o("print",()=>t?t.size:0),e.s(["print",0,l],362575),e.s(["isNonEmptyArray",0,function(e){return Array.isArray(e)&&e.length>0}],269683)},699662,168,799798,e=>{"use strict";var t=e.i(929100);function r(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}e.s(["mergeOptions",0,function(e,r){return(0,t.compact)(e,r,r.variables&&{variables:(0,t.compact)({...e&&e.variables,...r.variables})})}],699662),e.s(["executeSchedule",0,r],168);var n=e.i(866312),i=e.i(7560);e.s(["observeOn",0,function(e,t){return void 0===t&&(t=0),(0,n.operate)(function(n,o){n.subscribe((0,i.createOperatorSubscriber)(o,function(n){return r(o,e,function(){return o.next(n)},t)},function(){return r(o,e,function(){return o.complete()},t)},function(n){return r(o,e,function(){return o.error(n)},t)}))})}],799798)},688392,748410,513521,435909,621025,292062,149806,e=>{"use strict";function t(e){try{return e()}catch{}}e.s(["__DEV__",0,!1],748410),e.s(["maybe",0,t],513521);let r=t(()=>globalThis)||t(()=>window)||t(()=>self)||t(()=>e.g)||t(function(){return t.constructor("return this")()});e.s(["global",0,r],435909);let n="4.1.6";e.s(["build",0,"esm","version",0,n],621025);let i=new Map;function o(e){let t=i.get(e)||1;return i.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}function a(e,t=0){let r=o("stringifyForDisplay");return JSON.stringify(e,(e,t)=>void 0===t?r:t,t).split(JSON.stringify(r)).join("<undefined>")}e.s(["makeUniqueId",0,o],292062),e.s(["stringifyForDisplay",0,a],149806);let s="Invariant Violation";class l extends Error{constructor(e=s){super(e),this.name=s,Object.setPrototypeOf(this,l.prototype)}}let c=["debug","log","warn","error","silent"],u=c.indexOf("silent");function p(e,...t){if(!e)throw h(...t)}function d(e){return function(t,...r){if(c.indexOf(e)>=u){let n=console[e]||console.log;if("number"==typeof t){let e=t;(t=y(e))||(t=m(e,r),r=[])}n(t,...r)}}}function h(e,...t){return new l(y(e,t)||m(e,t))}p.debug=d("debug"),p.log=d("log"),p.warn=d("warn"),p.error=d("error");let f=Symbol.for("ApolloErrorMessageHandler_"+n);function g(e){if("string"==typeof e)return e;try{return a(e,2).slice(0,1e3)}catch{return"<non-serializable>"}}function y(e,t=[]){if(e)return r[f]&&r[f](e,t.map(g))}function m(e,t=[]){if(e)return"string"==typeof e?t.reduce((e,t)=>e.replace(/%[sdfo]/,g(t)),e):`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:n,message:e,args:t.map(g)}))}`}e.s(["invariant",0,p,"newInvariantError",0,h,"setVerbosity",0,function(e){let t=c[u];return u=Math.max(0,c.indexOf(e)),t}],688392)},570606,e=>{"use strict";var t=e.i(35166),r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
1ine|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,n=(0,t.default)(function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)});e.s(["default",0,n])},35166,e=>{"use strict";e.s(["default",0,function(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}])},829721,506399,736650,468670,458400,249221,e=>{"use strict";var t,r,n,i=e.i(147754),o=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++}
vendor: 4,148 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),a=Math.abs,s=String.fromCharCode,l=Object.assign;function c(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function h(e){return e.length}function f(e,t){return t.push(e),e}var g=1,y=1,m=0,v=0,b=0,x="";function E(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:g,column:y,length:a,return:""}}function S(e,t){return l(E("",null,null,"",null,null,0),e,{length:-e.length},t)}function T(){return b=v<m?p(x,v++):0,y++,10===b&&(y=1,g++),b}function w(){return p(x,v)}function k(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O(e){return g=y=1,m=h(x=e),v=0,[]}function _(e){var t,r;return(t=v-1,r=function e(t){for(;T();)switch(b){case t:return v;case 34:case 39:34!==t&&39!==t&&e(b);break;case 40:41===t&&e(t);break;case 92:T()}return v}(91===e?e+2:40===e?e+1:e),d(x,t,r)).trim()}var I="-ms-",A="-moz-",N="-webkit-",P="comm",R="rule",D="decl",C="@keyframes";function L(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function F(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case D:return e.return=e.return||e.value;case P:return"";case C:return e.return=e.value+"{"+L(e.children,n)+"}";case R:e.value=e.props.join(",")}return h(r=L(e.children,n))?e.return=e.value+"{"+r+"}":""}function M(e,t,r,n,i,o,s,l,u,p,h){for(var f=i-1,g=0===i?o:[""],y=g.length,m=0,v=0,b=0;m<n;++m)for(var x=0,S=d(e,f+1,f=a(v=s[m])),T=e;x<y;++x)(T=(v>0?g[x]+" "+S:c(S,/&\f/g,g[x])).trim())&&(u[b++]=T);return E(e,t,r,0===i?R:l,u,p,h)}function $(e,t,r,n){return E(e,t,r,D,d(e,0,n),d(e,n+1,-1),n)}var j=function(e,t,r){for(var n=0,i=0;n=i,i=w(),38===n&&12===i&&(t[r]=1),!k(i);)T();return d(x,e,v)},V=function(e,t){var r=-1,n=44;do switch(k(n)){case 0:38===n&&12===w()&&(t[r]=1),e[r]+=j(v-1,t,r);break;case 2:e[r]+=_(n);break;case 4:if(44===n){e[++r]=58===w()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=s(n)}while(n=T())return e},U=function(e,t){var r;return r=V(O(e),t),x="",r},B=new WeakMap,z=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||B.get(r))&&!n){B.set(e,!0);for(var i=[],o=U(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},q=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},G=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case D:e.return=function e(t,r){switch(45^p(t,0)?(((r<<2^p(t,0))<<2^p(t,1))<<2^p(t,2))<<2^p(t,3):0){case 5103:return N+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return N+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return N+t+A+t+I+t+t;case 6828:case 4268:return N+t+I+t+t;case 6165:return N+t+I+"flex-"+t+t;case 5187:return N+t+c(t,/(\w+).+(:[^]+)/,N+"box-$1$2"+I+"flex-$1$2")+t;case 5443:return N+t+I+"flex-item-"+c(t,/flex-|-self/,"")+t;case 4675:return N+t+I+"flex-line-pack"+c(t,/align-content|flex-|-self/,"")+t;case 5548:return N+t+I+c(t,"shrink","negative")+t;case 5292:return N+t+I+c(t,"basis","preferred-size")+t;case 6060:return N+"box-"+c(t,"-grow","")+N+t+I+c(t,"grow","positive")+t;case 4554:return N+c(t,/([^-])(transform)/g,"$1"+N+"$2")+t;case 6187:return c(c(c(t,/(zoom-|grab)/,N+"$1"),/(image-set)/,N+"$1"),t,"")+t;case 5495:case 3959:return c(t,/(image-set\([^]*)/,N+"$1$`$1");case 4968:return c(c(t,/(.+:)(flex-)?(.*)/,N+"box-pack:$3"+I+"flex-
1pack:$3"),/s.+-b[^;]+/,"justify")+N+t+t;case 4095:case 3583:case 4068:case 2532:return c(t,/(.+)-inline(.+)/,N+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(h(t)-1-r>6)switch(p(t,r+1)){case 109:if(45!==p(t,r+4))break;case 102:return c(t,/(.+:)(.+)-([^]+)/,"$1"+N+"$2-$3$1"+A+(108==p(t,r+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(c(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==p(t,r+1))break;case 6444:switch(p(t,h(t)-3-(~u(t,"!important")&&10))){case 107:return c(t,":",":"+N)+t;case 101:return c(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+N+(45===p(t,14)?"inline-":"")+"box$3$1"+N+"$2$3$1"+I+"$2box$3")+t}break;case 5936:switch(p(t,r+11)){case 114:return N+t+I+c(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return N+t+I+c(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return N+t+I+c(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return N+t+I+t+t}return t}(e.value,e.length);break;case C:return L([S(e,{value:c(e.value,"@","@"+N)})],n);case R:if(e.length){var i,o;return i=e.props,o=function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return L([S(e,{props:[c(t,/:(read-\w+)/,":"+A+"$1")]})],n);case"::placeholder":return L([S(e,{props:[c(t,/:(plac\w+)/,":"+N+"input-$1")]}),S(e,{props:[c(t,/:(plac\w+)/,":"+A+"$1")]}),S(e,{props:[c(t,/:(plac\w+)/,I+"input-$1")]})],n)}return""},i.map(o).join("")}}}];function K(){return(K=Object.assign.bind()).apply(null,arguments)}e.s(["default",()=>K],506399);var H=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},Q=e.i(705927);function W(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var Y=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},X=function(e,t,r){Y(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}};e.s(["getRegisteredStyles",0,W,"insertStyles",0,X,"registerStyles",0,Y],736650);var J={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Z=e.i(35166),ee=/[A-Z]|^ms/g,et=/_EMO_([^_]+?)_([^]*?)_EMO_/g,er=function(e){return 45===e.charCodeAt(1)},en=function(e){return null!=e&&"boolean"!=typeof e},ei=(0,Z.default)(function(e){return er(e)?e:e.replace(ee,"-$&").toLowerCase()}),eo=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(et,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===J[e]||er(e)||"number"!=typeof t||0===t?t:t+"px"};function ea(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ea(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":en(a)&&(n+=ei(o)+":"+eo(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)en(a[s])&&(n+=ei(o)+":"+eo(o,a[s])+";");else{var l=ea(e,t,a);switch(o){case"animation":case"animationName":n+=ei(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,a=r(e);return n=o,ea(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var es=/label:\s*([^\s;{]+)\s*(;|$)/g;function el(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";n=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=ea(r,t,s)):a+=s[0];for(var l=1;l<e.length;l++)a+=ea(r,t,e[l]),o&&(a+=s[l]);es.lastIndex=0;for(var c="";null!==(i=es.exec(a));)c+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}e.s(["serializeStyles",0,el],468670);var ec=!!i.useInsertionEffect&&i.useInsertionEffect,eu=ec||function(e){return e()},ep=ec||i.useLayoutEffect;e.s(["useInsertionEffectAlwaysWithSyncFallback",0,eu,"useInsertionEffectWithLayoutFallback",0,ep],458400);var ed=i.createContext("u">typeof HTMLElement?function(e){var t,r,n,i,a,l=e.key;if("css"===l){var m=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(m,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var S=e.stylisPlugins||G,I={},A=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;
1r++)I[t[r]]=!0;A.push(e)});var N=(r=(t=[z,q].concat(S,[F,(n=function(e){a.insert(e)},function(e){!e.root&&(e=e.return)&&n(e)})])).length,function(e,n,i,o){for(var a="",s=0;s<r;s++)a+=t[s](e,n,i,o)||"";return a}),R=function(e){var t,r;return L((r=function e(t,r,n,i,o,a,l,m,S){for(var O,I=0,A=0,N=l,R=0,D=0,C=0,L=1,F=1,j=1,V=0,U="",B=o,z=a,q=i,G=U;F;)switch(C=V,V=T()){case 40:if(108!=C&&58==p(G,N-1)){-1!=u(G+=c(_(V),"&","&\f"),"&\f")&&(j=-1);break}case 34:case 39:case 91:G+=_(V);break;case 9:case 10:case 13:case 32:G+=function(e){for(;b=w();)if(b<33)T();else break;return k(e)>2||k(b)>3?"":" "}(C);break;case 92:G+=function(e,t){for(var r;--t&&T()&&!(b<48)&&!(b>102)&&(!(b>57)||!(b<65))&&(!(b>70)||!(b<97)););return r=v+(t<6&&32==w()&&32==T()),d(x,e,r)}(v-1,7);continue;case 47:switch(w()){case 42:case 47:f((O=function(e,t){for(;T();)if(e+b===57)break;else if(e+b===84&&47===w())break;return"/*"+d(x,t,v-1)+"*"+s(47===e?e:T())}(T(),v),E(O,r,n,P,s(b),d(O,2,-2),0)),S);break;default:G+="/"}break;case 123*L:m[I++]=h(G)*j;case 125*L:case 59:case 0:switch(V){case 0:case 125:F=0;case 59+A:-1==j&&(G=c(G,/\f/g,"")),D>0&&h(G)-N&&f(D>32?$(G+";",i,n,N-1):$(c(G," ","")+";",i,n,N-2),S);break;case 59:G+=";";default:if(f(q=M(G,r,n,I,A,o,m,U,B=[],z=[],N),a),123===V)if(0===A)e(G,r,q,q,B,a,N,m,z);else switch(99===R&&110===p(G,3)?100:R){case 100:case 108:case 109:case 115:e(t,q,q,i&&f(M(t,q,q,0,0,o,m,U,o,B=[],N),z),o,z,N,m,i?B:z);break;default:e(G,q,q,q,[""],z,0,m,z)}}I=A=D=0,L=j=1,U=G="",N=l;break;case 58:N=1+h(G),D=C;default:if(L<1){if(123==V)--L;else if(125==V&&0==L++&&125==(b=v>0?p(x,--v):0,y--,10===b&&(y=1,g--),b))continue}switch(G+=s(V),V*L){case 38:j=A>0?1:(G+="\f",-1);break;case 44:m[I++]=(h(G)-1)*j,j=1;break;case 64:45===w()&&(G+=_(T())),R=w(),A=N=h(U=G+=function(e){for(;!k(w());)T();return d(x,e,v)}(v)),V++;break;case 45:45===C&&2==h(G)&&(L=0)}}return a}("",null,null,null,[""],t=O(t=e),0,[0],t),x="",r),N)},D={key:l,sheet:new o({key:l,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:I,registered:{},insert:function(e,t,r,n){a=r,R(e?e+"{"+t.styles+"}":t.styles),n&&(D.inserted[t.name]=!0)}};return D.sheet.hydrate(A),D}({key:"css"}):null),eh=ed.Provider,ef=function(e){return(0,i.forwardRef)(function(t,r){return e(t,(0,i.useContext)(ed),r)})},eg=i.createContext({}),ey=H(function(e){return H(function(t){return"function"==typeof t?t(e):K({},e,t)})}),em={}.hasOwnProperty,ev="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eb=function(e,t){var r={};for(var n in t)em.call(t,n)&&(r[n]=t[n]);return r[ev]=e,r},ex=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Y(t,r,n),eu(function(){return X(t,r,n)}),null},eE=ef(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var o=e[ev],a=[n],s="";"string"==typeof e.className?s=W(t.registered,a,e.className):null!=e.className&&(s=e.className+" ");var l=el(a,void 0,i.useContext(eg));s+=t.key+"-"+l.name;var c={};for(var u in e)em.call(e,u)&&"css"!==u&&u!==ev&&(c[u]=e[u]);return c.className=s,r&&(c.ref=r),i.createElement(i.Fragment,null,i.createElement(ex,{cache:t,serialized:l,isStringTag:"string"==typeof o}),i.createElement(o,c))});e.s(["C",0,eh,"E",0,eE,"T",0,eg,"_",0,function(){return(0,i.useContext)(ed)},"a",0,function(e){var t=i.useContext(eg);return e.theme!==t&&(t=ey(t)(e.theme)),i.createElement(eg.Provider,{value:t},e.children)},"b",0,function(e){var t=e.displayName||e.name||"Component",r=i.forwardRef(function(t,r){var n=i.useContext(eg);return i.createElement(e,K({theme:n,ref:r},t))});return r.displayName="WithTheme("+t+")",(0,Q.default)(r,e)},"c",0,eb,"h",0,em,"i",0,!1,"u",0,function(){return i.useContext(eg)},"w",0,ef],829721);var eS=function(e,t){var r=arguments;if(null==t||!em.call(t,"css"))return i.createElement.apply(void 0,r);var n=r.length,o=Array(n);o[0]=eE,o[1]=eb(e,t);for(var a=2;a<n;a++)o[a]=r[a];return i.createElement.apply(null,o)};t=eS||(eS={}),r||(r=t.JSX||(t.JSX={}));var eT=ef(function(e,t){var r=el([e.styles],void 0,i.useContext(eg)),n=i.useRef();return ep(function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),n.current=[i,o],function(){i.flush()}},[t]),ep(function(){var e=n.current,i=e[0];if(e[1]){e[1]=!1;return}if(void 0!==r.next&&X(t,r.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",r,i,!1)},[t,r.name]),null});function ew(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return el(t)}var ek=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i}
1,eO=function(e){var t=e.cache,r=e.serializedArr;return eu(function(){for(var e=0;e<r.length;e++)X(t,r[e],!1)}),null},e_=ef(function(e,t){var r=!1,n=[],o=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=el(r,t.registered);return n.push(o),Y(t,o,!1),t.key+"-"+o.name},a={css:o,cx:function(){for(var e,r,n,i,a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return e=t.registered,i=W(e,n=[],r=ek(s)),n.length<2?r:i+o(n)},theme:i.useContext(eg)},s=e.children(a);return r=!0,i.createElement(i.Fragment,null,i.createElement(eO,{cache:t,serializedArr:n}),s)});e.s(["ClassNames",0,e_,"Global",0,eT,"createElement",0,eS,"css",0,ew,"jsx",0,eS,"keyframes",0,function(){var e=ew.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}],249221)},809061,e=>{"use strict";var t=e.i(249221),r=e.i(829721);e.s(["CacheProvider",()=>r.C,"ClassNames",()=>t.ClassNames,"Global",()=>t.Global,"ThemeContext",()=>r.T,"ThemeProvider",()=>r.a,"__unsafe_useEmotionCache",()=>r._,"createElement",()=>t.createElement,"css",()=>t.css,"jsx",()=>t.jsx,"keyframes",()=>t.keyframes,"useTheme",()=>r.u,"withEmotionCache",()=>r.w,"withTheme",()=>r.b])},90783,(e,t,r)=>{"use strict";function n(){var e,t,r=(e=['\nhtml {\n  line-height: 1.15; \n  -webkit-text-size-adjust: 100%; \n}\nbody {\n  margin: 0;\n}\nmain {\n  display: block;\n}\nh1 {\n  font-size: 2em;\n  margin: 0.67em 0;\n}\nhr {\n  box-sizing: content-box; \n  height: 0; \n  overflow: visible; \n}\npre {\n  font-family: monospace, monospace; \n  font-size: 1em; \n}\na {\n  background-color: transparent;\n}\nabbr[title] {\n  border-bottom: none; \n  text-decoration: underline; \n  text-decoration: underline dotted; \n}\nb,\nstrong {\n  font-weight: bolder;\n}\ncode,\nkbd,\nsamp {\n  font-family: monospace, monospace; \n  font-size: 1em; \n}\nsmall {\n  font-size: 80%;\n}\nsub,\nsup {\n  font-size: 75%;\n  line-height: 0;\n  position: relative;\n  vertical-align: baseline;\n}\nsub {\n  bottom: -0.25em;\n}\nsup {\n  top: -0.5em;\n}\nimg {\n  border-style: none;\n}\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n  font-family: inherit; \n  font-size: 100%; \n  line-height: 1.15; \n  margin: 0; \n}\nbutton,\ninput { \n  overflow: visible;\n}\nbutton,\nselect { \n  text-transform: none;\n}\nbutton,\n[type="button"],\n[type="reset"],\n[type="submit"] {\n  -webkit-appearance: button;\n}\nbutton::-moz-focus-inner,\n[type="button"]::-moz-focus-inner,\n[type="reset"]::-moz-focus-inner,\n[type="submit"]::-moz-focus-inner {\n  border-style: none;\n  padding: 0;\n}\nbutton:-moz-focusring,\n[type="button"]:-moz-focusring,\n[type="reset"]:-moz-focusring,\n[type="submit"]:-moz-focusring {\n  outline: 1px dotted ButtonText;\n}\nfieldset {\n  padding: 0.35em 0.75em 0.625em;\n}\nlegend {\n  box-sizing: border-box; \n  color: inherit; \n  display: table; \n  max-width: 100%; \n  padding: 0; \n  white-space: normal; \n}\nprogress {\n  vertical-align: baseline;\n}\ntextarea {\n  overflow: auto;\n}\n[type="checkbox"],\n[type="radio"] {\n  box-sizing: border-box; \n  padding: 0; \n}\n[type="number"]::-webkit-inner-spin-button,\n[type="number"]::-webkit-outer-spin-button {\n  height: auto;\n}\n[type="search"] {\n  -webkit-appearance: textfield; \n  outline-offset: -2px; \n}\n[type="search"]::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n::-webkit-file-upload-button {\n  -webkit-appearance: button; \n  font: inherit; \n}\ndetails {\n  display: block;\n}\nsummary {\n  display: list-item;\n}\ntemplate {\n  display: none;\n}\n[hidden] {\n  display: none;\n}\n'],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return n=function(){return r},r}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default=(0,e.r(809061).css)(n())},728362,e=>{"use strict";var t=e.i(852925),r=e.i(829721);e.i(147754),e.i(705927),e.i(468670),e.i(458400);var n=t.Fragment;e.s(["Fragment",0,n,"jsx",0,function(e,n,i){return r.h.call(n,"css")?t.jsx(r.E,(0,r.c)(e,n),i):t.jsx(e,n,i)},"jsxs",0,function(e,n,i){return r.h.call(n,"css")?t.jsxs(r.E,(0,r.c)(e,n),i):t.jsxs(e,n,i)}])}
1,438337,586469,309740,804967,754641,97599,143811,541543,742888,44818,294224,251825,136350,592216,658766,919554,905881,618046,389170,216861,245043,720783,534677,253685,336090,190393,718690,532484,139474,168697,717647,881663,301588,60398,273865,639184,86556,393562,e=>{"use strict";let t;var r,n,i,o,a=e.i(506399),s=e.i(829721),s=s,l=s,c=e.i(468670),u=e.i(458400),p=e.i(736650),d=e.i(147754),h=e.i(570606).default,f=function(e){return"theme"!==e},g=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:f},y=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},m=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,p.registerStyles)(t,r,n),(0,u.useInsertionEffectAlwaysWithSyncFallback)(function(){return(0,p.insertStyles)(t,r,n)}),null},v=(function e(t,r){var n,i,o=t.__emotion_real===t,u=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var h=y(t,r,o),f=h||g(u),v=!f("as");return function(){var b=arguments,x=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&x.push("label:"+n+";"),null==b[0]||void 0===b[0].raw)x.push.apply(x,b);else{var E=b[0];x.push(E[0]);for(var S=b.length,T=1;T<S;T++)x.push(b[T],E[T])}var w=(0,s.w)(function(e,t,r){var n=v&&e.as||u,o="",a=[],s=e;if(null==e.theme){for(var y in s={},e)s[y]=e[y];s.theme=d.useContext(l.T)}"string"==typeof e.className?o=(0,p.getRegisteredStyles)(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var b=(0,c.serializeStyles)(x.concat(a),t.registered,s);o+=t.key+"-"+b.name,void 0!==i&&(o+=" "+i);var E=v&&void 0===h?g(n):f,S={};for(var T in e)(!v||"as"!==T)&&E(T)&&(S[T]=e[T]);return S.className=o,r&&(S.ref=r),d.createElement(d.Fragment,null,d.createElement(m,{cache:t,serialized:b,isStringTag:"string"==typeof n}),d.createElement(n,S))});return w.displayName=void 0!==n?n:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=u,w.__emotion_styles=x,w.__emotion_forwardProp=h,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(t,n){return e(t,(0,a.default)({},r,n,{shouldForwardProp:y(w,n,!0)})).apply(void 0,x)},w}}).bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){v[e]=v(e)}),e.s(["default",0,v],438337),e.s(["getFaviconLinkHTMLAttributes",0,(e="favicons")=>[{href:`/${e}/apple-touch-icon.png`,rel:"apple-touch-icon",sizes:"180x180"},{href:`/${e}/favicon-32x32.png`,rel:"icon",sizes:"32x32",type:"image/png"},{href:`/${e}/favicon-16x16.png`,rel:"icon",sizes:"16x16",type:"image/png"},{color:"#990ae3",href:`/${e}/safari-pinned-tab.svg`,rel:"mask-icon"},{href:`/${e}/favicon.ico`,rel:"icon"},{href:`/${e}/apple-touch-icon.png`,rel:"apple-touch-icon"}]],586469);var b=e.i(249221);let x={L:1025,M:769,S:480,XL:1440},E=Object.keys(x).reduce((e,t)=>(e[t]=(...e)=>b.css`
2      @media (min-width: ${x[t]}px) {
3        ${(0,b.css)(e[0],...e.slice(1))};
4      }
5    `,e),{});e.s(["breakpointWidths",0,x,"mq",0,E],309740);let S=/^(?<value>[\d]+[.]{0,1}[\d]*)(px|)$/,T=e=>{if("string"==typeof e){let t=e.match(S)?.groups?.value;if(void 0===t)throw Error(`Format error: "${e}" is not a valid input (use a 'number' or '\${number}px' value).`);return T(parseInt(t,10))}return Number(parseFloat((e/10).toFixed(3)))};e.s(["pxToRem",0,T],804967),e.s([],754641);let w=e=>`${e}-${Math.random().toString(36).substring(2,14)}`;e.s(["generateUniqueId",0,w],97599);let k=(0,b.css)(":root{--border-radius-full:100000px;--border-radius-l:16px;
5--border-radius-m:8px;--border-radius-none:0px;--border-radius-s:4px;--border-radius-xl:24px;--border-radius-xs:2px;--color-accent-brand:#990ae3;--color-accent-icon-epg-time-indicator:#0099ff;--color-accent-icon-recording:#ff3377;--color-background-light:#f4e0ff;--color-background-overlay-40:rgba(0,0,0,0.4);--color-background-overlay-60:rgba(0,0,0,0.6);--color-background-overlay-80:rgba(0,0,0,0.8);--color-background-primary:#1a0128;--color-background-secondary:#29003e;--color-background-surface:rgba(255,255,255,0.05);--color-background-surface-dark:rgba(0,0,0,0.15);--color-background-surface-player:#1c1d1f;--color-background-tertiary:#3f005e;--color-border-background-surface:rgba(255,255,255,0.15);--color-border-button-ghost-focus:rgba(255,255,255,0.4);--color-border-button-pay-focus:#d9ffeb;--color-border-button-primary-focus:#c86af8;--color-border-button-secondary-focus:rgba(255,255,255,0.4);--color-border-inputfield-active:#ffffff;--color-border-inputfield-default:rgba(255,255,255,0.5);--color-border-inputfield-disabled:rgba(255,255,255,0.5);--color-border-inputfield-error:#fb4885;--color-border-inputfield-hover:rgba(255,255,255,0.7);--color-border-new-dummy-color-in-border:#fb4885;--color-border-separator:rgba(255,255,255,0.15);--color-border-separator-strong:rgba(255,255,255,0.7);--color-border-separator-weak:rgba(255,255,255,0.15);--color-border-subtle:rgba(255,255,255,0.05);--color-button-floating-default:#7300ae;--color-button-ghost-default:rgba(255,255,255,0);--color-button-ghost-disabled:rgba(255,255,255,0);--color-button-ghost-focus:rgba(255,255,255,0.15);--color-button-ghost-hover:rgba(255,255,255,0.15);--color-button-ghost-pressed:rgba(255,255,255,0.1);--color-button-pay-default:#00d066;--color-button-pay-disabled:rgba(255,255,255,0.15);--color-button-pay-focus:#00f37a;--color-button-pay-hover:#00f37a;--color-button-pay-pressed:#00a552;--color-button-primary-default:#990ae3;--color-button-primary-disabled:rgba(255,255,255,0.15);--color-button-primary-focus:#af3ce8;--color-button-primary-hover:#af3ce8;--color-button-primary-pressed:#7300ae;--color-button-secondary-default:rgba(255,255,255,0.15);--color-button-secondary-disabled:rgba(255,255,255,0.15);--color-button-secondary-focus:rgba(255,255,255,0.25);--color-button-secondary-hover:rgba(255,255,255,0.25);--color-button-secondary-pressed:rgba(255,255,255,0.1);--color-content-label-age:rgba(78,78,78,0.8);--color-content-label-airtime:#f2f2f2;--color-content-label-announcement:#0099ff;--color-content-label-background-default:#f4e0ff;--color-content-label-disappears:#ff9b00;--color-content-label-freeview:rgba(249,249,249,0.9);--color-content-label-live:#e4175c;--color-content-label-price:rgba(249,249,249,0.9);--color-content-label-quality:rgba(0,0,0,0.8);--color-content-label-recurring:#7300ae;--color-content-label-rented:#00d066;--color-content-label-trailer:rgba(249,249,249,0.15);--color-content-label-unavailable:rgba(249,249,249,0.9);--color-content-progress-ad:#ff9b00;--color-content-progress-buffered:rgba(255,255,255,0.15);--color-content-progress-current-live-diff:rgba(255,255,255,0.3);--color-content-progress-duration:rgba(140,140,140,0.3);--color-content-progress-elapsed:#0099ff;--color-content-progress-points:#00f37a;--color-gradient-avatar-stroke-end:#57107b;--color-gradient-avatar-stroke-start:#9747ff;--color-gradient-content-card-end:rgba(0,0,0,0.8);--color-gradient-content-card-start:rgba(0,0,0,0);--color-gradient-content-overlay-end:rgba(31,1,47,0.8);--color-gradient-content-overlay-start:rgba(31,1,47,0);--color-gradient-navbar-end:rgba(26,1,40,0);--color-gradient-navbar-start:rgba(26,1,40,0.8);--color-icon-attention:#ff9b00;--color-icon-informative:#0099ff;--color-icon-label-default:#4e0076;--color-icon-negative:#e4175c;--color-icon-positive:#00d066;--color-icon-primary:#ffffff;
5--color-icon-primary-dark:#000000;--color-indicator-dot-active:#990ae3;--color-indicator-dot-default:rgba(255,255,255,0.15);--color-indicator-spinner:#ffffff;--color-info-dialogue-attention-background-bold:#ff9b00;--color-info-dialogue-attention-background-subtle:#fff2de;--color-info-dialogue-error-background-default:#e4175c;--color-info-dialogue-helpful-background-default:#0099ff;--color-info-dialogue-important-background-default:#ff9b00;--color-info-dialogue-informative-background-bold:#0099ff;--color-info-dialogue-informative-background-subtle:#e8f6ff;--color-info-dialogue-negative-background-bold:#e4175c;--color-info-dialogue-negative-background-subtle:#fff0f5;--color-info-dialogue-neutral-background-bold:#3f005e;--color-info-dialogue-neutral-background-default:#3f005e;--color-info-dialogue-positive-background-bold:#00d066;--color-info-dialogue-positive-background-subtle:#e1f9ec;--color-info-dialogue-success-background-default:#00d066;--color-navigation-current-primary:#ffffff;--color-navigation-current-secondary:rgba(255,255,255,0.15);--color-navigation-default:rgba(255,255,255,0.15);--color-navigation-default-ghost:rgba(255,255,255,0);--color-remote-current:rgba(255,255,255,0.1);--color-remote-default:rgba(255,255,255,0.1);--color-remote-focus:#ffffff;--color-remote-focus-soft:rgba(255,255,255,0.25);--color-remote-focus-soft-opaque:#53405e;--color-remote-ghost:rgba(255,255,255,0);--color-remote-hint:rgba(118,103,126,0.95);--color-text-disabled:rgba(255,255,255,0.5);--color-text-disabled-dark:rgba(0,0,0,0.5);--color-text-dummy:#641010;--color-text-error:#fb4885;--color-text-label-text-default:#4e0076;--color-text-price-discount:#c86af8;--color-text-price-discount-dark:#990ae3;--color-text-primary:#ffffff;
5--color-text-primary-dark:#000000;--color-text-secondary:rgba(255,255,255,0.7);--color-text-secondary-dark:rgba(0,0,0,0.6);--color-text-success:#00a552;--color-text-tertiary:rgba(255,255,255,0.5);--color-text-tertiary-dark:rgba(0,0,0,0.4);--gradient-avatar-stroke-end:#57107b;--gradient-avatar-stroke-start:#9747ff;--gradient-content-card-end:rgba(0,0,0,0.8);--gradient-content-card-start:rgba(0,0,0,0);--gradient-content-overlay-end:rgba(31,1,47,0.8);--gradient-content-overlay-start:rgba(31,1,47,0);--gradient-navbar-end:rgba(26,1,40,0);--gradient-navbar-start:rgba(26,1,40,0.8);--radius-button:24px;--radius-label-card-bottom-left:0 2px 0 0;--radius-label-card-bottom-right:2px 0 0 0;--radius-label-card-top-left:0 0 2px 0;--radius-label-card-top-right:0 0 0 2px;--radius-label-floating:2px;--radius-nav-item:6px;--radius-poster:4px;--radius-season-list-item:4px;--radius-season-picker:32px;--spacing-l:16px;--spacing-m:12px;--spacing-s:8px;--spacing-xl:24px;--spacing-xl-10:192px;--spacing-xl-2:32px;--spacing-xl-3:40px;--spacing-xl-4:48px;--spacing-xl-5:56px;--spacing-xl-6:64px;--spacing-xl-7:72px;--spacing-xl-8:80px;--spacing-xl-85:88px;--spacing-xl-9:96px;--spacing-xs:4px;--spacing-xxs:2px;--typeface-headings:'Telia Sans Heading';--typeface-primary:'Telia Sans';--typography-base-font-size:62.5%;--typography-button-text-font-family:'Telia Sans';--typography-button-text-font-size:1.6rem;--typography-button-text-font-style:normal;--typography-button-text-font-weight:500;--typography-button-text-letter-spacing:0rem;--typography-button-text-line-height:2.4rem;--typography-button-text-text-decoration:none;--typography-button-text-text-transform:none;--typography-button-text-additional-font-family:'Telia Sans';--typography-button-text-additional-font-size:1.6rem;--typography-button-text-additional-font-style:normal;--typography-button-text-additional-font-weight:500;--typography-button-text-additional-letter-spacing:0rem;--typography-button-text-additional-line-height:2.4rem;--typography-button-text-additional-text-decoration:none;--typography-button-text-additional-text-transform:none;--typography-button-text-small-font-family:'Telia Sans';--typography-button-text-small-font-size:1.4rem;--typography-button-text-small-font-style:normal;--typography-button-text-small-font-weight:500;--typography-button-text-small-letter-spacing:0rem;--typography-button-text-small-line-height:2rem;--typography-button-text-small-text-decoration:none;--typography-button-text-small-text-transform:none;--typography-content-data-font-family:'Telia Sans';--typography-content-data-font-size:1.6rem;--typography-content-data-font-style:normal;--typography-content-data-font-weight:400;--typography-content-data-letter-spacing:0rem;--typography-content-data-line-height:2.4rem;--typography-content-data-text-decoration:none;--typography-content-data-text-transform:none;--typography-content-data-paragraph-font-family:'Telia Sans';--typography-content-data-paragraph-font-size:1.6rem;--typography-content-data-paragraph-font-style:normal;--typography-content-data-paragraph-font-weight:400;--typography-content-data-paragraph-letter-spacing:0rem;--typography-content-data-paragraph-line-height:2.4rem;--typography-content-data-paragraph-text-decoration:none;--typography-content-data-paragraph-text-transform:none;--typography-content-data-small-font-family:'Telia Sans';--typography-content-data-small-font-size:1.3rem;--typography-content-data-small-font-style:normal;--typography-content-data-small-font-weight:500;--typography-content-data-small-letter-spacing:0rem;--typography-content-data-small-line-height:1.6rem;--typography-content-data-small-text-decoration:none;--typography-content-data-small-text-transform:none;--typography-content-label-font-family:'Telia Sans';--typography-content-label-font-size:1.2rem;--typography-content-label-font-style:normal;--typography-content-label-font-weight:700;--typography-content-label-letter-spacing:0rem;--typography-content-label-line-height:1.2rem;--typography-content-label-text-decoration:none;--typography-content-label-text-transform:none;--typography-content-label-floating-font-family:'Telia Sans';--typography-content-label-floating-font-size:1.2rem;--typography-content-label-floating-font-style:normal;
5--typography-content-label-floating-font-weight:700;--typography-content-label-floating-letter-spacing:0rem;--typography-content-label-floating-line-height:1.6rem;--typography-content-label-floating-text-decoration:none;--typography-content-label-floating-text-transform:none;--typography-content-label-small-font-family:'Telia Sans';--typography-content-label-small-font-size:1rem;--typography-content-label-small-font-style:normal;--typography-content-label-small-font-weight:700;--typography-content-label-small-letter-spacing:0rem;--typography-content-label-small-line-height:1.2rem;--typography-content-label-small-text-decoration:none;--typography-content-label-small-text-transform:uppercase;--typography-content-title-font-family:'Telia Sans Heading';--typography-content-title-font-size:3.2rem;--typography-content-title-font-style:normal;--typography-content-title-font-weight:700;--typography-content-title-letter-spacing:0rem;--typography-content-title-line-height:3.6rem;--typography-content-title-text-decoration:none;--typography-content-title-text-transform:none;--typography-content-title-large-font-family:'Telia Sans Heading';--typography-content-title-large-font-size:2.8rem;--typography-content-title-large-font-style:normal;--typography-content-title-large-font-weight:700;--typography-content-title-large-letter-spacing:0rem;--typography-content-title-large-line-height:3.2rem;--typography-content-title-large-text-decoration:none;--typography-content-title-large-text-transform:none;--typography-content-title-medium-font-family:'Telia Sans Heading';--typography-content-title-medium-font-size:2.4rem;--typography-content-title-medium-font-style:normal;--typography-content-title-medium-font-weight:700;--typography-content-title-medium-letter-spacing:0rem;--typography-content-title-medium-line-height:2.8rem;--typography-content-title-medium-text-decoration:none;--typography-content-title-medium-text-transform:none;--typography-content-title-small-font-family:'Telia Sans';--typography-content-title-small-font-size:1.6rem;--typography-content-title-small-font-style:normal;--typography-content-title-small-font-weight:500;--typography-content-title-small-letter-spacing:0rem;--typography-content-title-small-line-height:2.4rem;--typography-content-title-small-text-decoration:none;--typography-content-title-small-text-transform:none;--typography-content-title-tiny-font-family:'Telia Sans';--typography-content-title-tiny-font-size:1.3rem;--typography-content-title-tiny-font-style:normal;--typography-content-title-tiny-font-weight:400;--typography-content-title-tiny-letter-spacing:0rem;--typography-content-title-tiny-line-height:2rem;--typography-content-title-tiny-text-decoration:none;--typography-content-title-tiny-text-transform:none;--typography-heading-large-font-family:'Telia Sans';--typography-heading-large-font-size:4rem;--typography-heading-large-font-style:normal;--typography-heading-large-font-weight:700;--typography-heading-large-letter-spacing:0rem;--typography-heading-large-line-height:4.8rem;--typography-heading-large-text-decoration:none;--typography-heading-large-text-transform:none;--typography-heading-primary-font-family:'Telia Sans';--typography-heading-primary-font-size:3.2rem;--typography-heading-primary-font-style:normal;--typography-heading-primary-font-weight:700;--typography-heading-primary-letter-spacing:0rem;--typography-heading-primary-line-height:4rem;--typography-heading-primary-text-decoration:none;--typography-heading-primary-text-transform:none;--typography-heading-secondary-font-family:'Telia Sans';--typography-heading-secondary-font-size:2.4rem;--typography-heading-secondary-font-style:normal;--typography-heading-secondary-font-weight:700;--typography-heading-secondary-letter-spacing:0rem;--typography-heading-secondary-line-height:3.2rem;--typography-heading-secondary-text-decoration:none;--typography-heading-secondary-text-transform:none;--typography-heading-sub-heading-font-family:'Telia Sans';--typography-heading-sub-heading-font-size:1.6rem;--typography-heading-sub-heading-font-style:normal;
5--typography-heading-sub-heading-font-weight:500;--typography-heading-sub-heading-letter-spacing:0rem;--typography-heading-sub-heading-line-height:2.4rem;--typography-heading-sub-heading-text-decoration:none;--typography-heading-sub-heading-text-transform:none;--typography-heading-tertiary-font-family:'Telia Sans';--typography-heading-tertiary-font-size:1.8rem;--typography-heading-tertiary-font-style:normal;--typography-heading-tertiary-font-weight:700;--typography-heading-tertiary-letter-spacing:0rem;--typography-heading-tertiary-line-height:2.4rem;--typography-heading-tertiary-text-decoration:none;--typography-heading-tertiary-text-transform:none;--typography-navigation-text-font-family:'Telia Sans';--typography-navigation-text-font-size:1.6rem;--typography-navigation-text-font-style:normal;--typography-navigation-text-font-weight:400;--typography-navigation-text-letter-spacing:0rem;--typography-navigation-text-line-height:2.4rem;--typography-navigation-text-text-decoration:none;--typography-navigation-text-text-transform:none;--typography-navigation-text-emphasis-font-family:'Telia Sans';--typography-navigation-text-emphasis-font-size:1.6rem;--typography-navigation-text-emphasis-font-style:normal;--typography-navigation-text-emphasis-font-weight:700;--typography-navigation-text-emphasis-letter-spacing:0rem;--typography-navigation-text-emphasis-line-height:2.4rem;--typography-navigation-text-emphasis-text-decoration:none;--typography-navigation-text-emphasis-text-transform:none;--typography-tab-bar-text-font-family:'Telia Sans';--typography-tab-bar-text-font-size:1.1rem;--typography-tab-bar-text-font-style:normal;--typography-tab-bar-text-font-weight:400;--typography-tab-bar-text-letter-spacing:0rem;--typography-tab-bar-text-line-height:1.6rem;--typography-tab-bar-text-text-decoration:none;--typography-tab-bar-text-text-transform:none;--typography-tab-bar-text-emphasis-font-family:'Telia Sans';--typography-tab-bar-text-emphasis-font-size:1.1rem;--typography-tab-bar-text-emphasis-font-style:normal;--typography-tab-bar-text-emphasis-font-weight:700;--typography-tab-bar-text-emphasis-letter-spacing:0rem;--typography-tab-bar-text-emphasis-line-height:1.6rem;--typography-tab-bar-text-emphasis-text-decoration:none;--typography-tab-bar-text-emphasis-text-transform:none;--typography-tab-text-font-family:'Telia Sans';--typography-tab-text-font-size:1.6rem;--typography-tab-text-font-style:normal;--typography-tab-text-font-weight:500;--typography-tab-text-letter-spacing:0rem;--typography-tab-text-line-height:2.4rem;--typography-tab-text-text-decoration:none;--typography-tab-text-text-transform:none;--typography-tab-text-emphasis-font-family:'Telia Sans';--typography-tab-text-emphasis-font-size:1.6rem;--typography-tab-text-emphasis-font-style:normal;--typography-tab-text-emphasis-font-weight:700;--typography-tab-text-emphasis-letter-spacing:0rem;--typography-tab-text-emphasis-line-height:2.4rem;--typography-tab-text-emphasis-text-decoration:none;--typography-tab-text-emphasis-text-transform:none;--typography-text-editorial-font-family:'Telia Sans';--typography-text-editorial-font-size:1.3rem;--typography-text-editorial-font-style:normal;--typography-text-editorial-font-weight:500;--typography-text-editorial-letter-spacing:0rem;--typography-text-editorial-line-height:2rem;--typography-text-editorial-text-decoration:none;--typography-text-editorial-text-transform:none;--typography-text-footnote-font-family:'Telia Sans';--typography-text-footnote-font-size:1.3rem;--typography-text-footnote-font-style:normal;--typography-text-footnote-font-weight:400;--typography-text-footnote-letter-spacing:0rem;--typography-text-footnote-line-height:2rem;--typography-text-footnote-text-decoration:none;--typography-text-footnote-text-transform:none;--typography-text-large-font-family:'Telia Sans';--typography-text-large-font-size:1.8rem;--typography-text-large-font-style:normal;--typography-text-large-font-weight:400;--typography-text-large-letter-spacing:0rem;--typography-text-large-line-height:2.4rem;--typography-text-large-text-decoration:none;--typography-text-large-text-transform:none;--typography-text-link-font-family:'Telia Sans';--typography-text-link-font-size:1.3rem;--typography-text-link-font-style:normal;--typography-text-link-font-weight:400;--typography-text-link-letter-spacing:0rem;--typography-text-link-line-height:2rem;--typography-text-link-text-decoration:none;--typography-text-link-text-transform:none;--typography-text-link-underlined-font-family:'Telia Sans';--typography-text-link-underlined-font-size:1.6rem;--typography-text-link-underlined-font-style:normal;--typography-text-link-underlined-font-weight:400;--typography-text-link-underlined-letter-spacing:0rem;--typography-text-link-underlined-line-height:2.4rem;--typography-text-link-underlined-text-decoration:underline;--typography-text-link-underlined-text-transform:none;--typography-text-ott-font-family:'Telia Sans';--typography-text-ott-font-size:4rem;--typography-text-ott-font-style:normal;
5--typography-text-ott-font-weight:700;--typography-text-ott-letter-spacing:0rem;--typography-text-ott-line-height:4rem;--typography-text-ott-text-decoration:none;--typography-text-ott-text-transform:none;--typography-text-primary-font-family:'Telia Sans';--typography-text-primary-font-size:1.6rem;--typography-text-primary-font-style:normal;--typography-text-primary-font-weight:400;--typography-text-primary-letter-spacing:0rem;--typography-text-primary-line-height:2.4rem;--typography-text-primary-text-decoration:none;--typography-text-primary-text-transform:none;--typography-text-primary-emphasis-font-family:'Telia Sans';--typography-text-primary-emphasis-font-size:1.6rem;--typography-text-primary-emphasis-font-style:normal;--typography-text-primary-emphasis-font-weight:700;--typography-text-primary-emphasis-letter-spacing:0rem;--typography-text-primary-emphasis-line-height:2.4rem;--typography-text-primary-emphasis-text-decoration:none;--typography-text-primary-emphasis-text-transform:none;--typography-text-secondary-font-family:'Telia Sans';--typography-text-secondary-font-size:1.3rem;--typography-text-secondary-font-style:normal;--typography-text-secondary-font-weight:400;--typography-text-secondary-letter-spacing:0rem;--typography-text-secondary-line-height:2rem;--typography-text-secondary-text-decoration:none;--typography-text-secondary-text-transform:none;--typography-text-secondary-emphasis-font-family:'Telia Sans';--typography-text-secondary-emphasis-font-size:1.3rem;--typography-text-secondary-emphasis-font-style:normal;--typography-text-secondary-emphasis-font-weight:700;--typography-text-secondary-emphasis-letter-spacing:0rem;--typography-text-secondary-emphasis-line-height:2rem;--typography-text-secondary-emphasis-text-decoration:none;--typography-text-secondary-emphasis-text-transform:none;}@media (min-width:769px){:root{--border-radius-full:100000px;--border-radius-l:16px;
5--border-radius-m:8px;--border-radius-none:0px;--border-radius-s:4px;--border-radius-xl:24px;--border-radius-xs:2px;--color-accent-brand:#990ae3;--color-accent-icon-epg-time-indicator:#0099ff;--color-accent-icon-recording:#ff3377;--color-background-light:#f4e0ff;--color-background-overlay-40:rgba(0,0,0,0.4);--color-background-overlay-60:rgba(0,0,0,0.6);--color-background-overlay-80:rgba(0,0,0,0.8);--color-background-primary:#1a0128;--color-background-secondary:#29003e;--color-background-surface:rgba(255,255,255,0.05);--color-background-surface-dark:rgba(0,0,0,0.15);--color-background-surface-player:#1c1d1f;--color-background-tertiary:#3f005e;--color-border-background-surface:rgba(255,255,255,0.15);--color-border-button-ghost-focus:rgba(255,255,255,0.4);--color-border-button-pay-focus:#d9ffeb;--color-border-button-primary-focus:#c86af8;--color-border-button-secondary-focus:rgba(255,255,255,0.4);--color-border-inputfield-active:#ffffff;--color-border-inputfield-default:rgba(255,255,255,0.5);--color-border-inputfield-disabled:rgba(255,255,255,0.5);--color-border-inputfield-error:#fb4885;--color-border-inputfield-hover:rgba(255,255,255,0.7);--color-border-new-dummy-color-in-border:#fb4885;--color-border-separator:rgba(255,255,255,0.15);--color-border-separator-strong:rgba(255,255,255,0.7);--color-border-separator-weak:rgba(255,255,255,0.15);--color-border-subtle:rgba(255,255,255,0.05);--color-button-floating-default:#7300ae;--color-button-ghost-default:rgba(255,255,255,0);--color-button-ghost-disabled:rgba(255,255,255,0);--color-button-ghost-focus:rgba(255,255,255,0.15);--color-button-ghost-hover:rgba(255,255,255,0.15);--color-button-ghost-pressed:rgba(255,255,255,0.1);--color-button-pay-default:#00d066;--color-button-pay-disabled:rgba(255,255,255,0.15);--color-button-pay-focus:#00f37a;--color-button-pay-hover:#00f37a;--color-button-pay-pressed:#00a552;--color-button-primary-default:#990ae3;--color-button-primary-disabled:rgba(255,255,255,0.15);--color-button-primary-focus:#af3ce8;--color-button-primary-hover:#af3ce8;--color-button-primary-pressed:#7300ae;--color-button-secondary-default:rgba(255,255,255,0.15);--color-button-secondary-disabled:rgba(255,255,255,0.15);--color-button-secondary-focus:rgba(255,255,255,0.25);--color-button-secondary-hover:rgba(255,255,255,0.25);--color-button-secondary-pressed:rgba(255,255,255,0.1);--color-content-label-age:rgba(78,78,78,0.8);--color-content-label-airtime:#f2f2f2;--color-content-label-announcement:#0099ff;--color-content-label-background-default:#f4e0ff;--color-content-label-disappears:#ff9b00;--color-content-label-freeview:rgba(249,249,249,0.9);--color-content-label-live:#e4175c;--color-content-label-price:rgba(249,249,249,0.9);--color-content-label-quality:rgba(0,0,0,0.8);--color-content-label-recurring:#7300ae;--color-content-label-rented:#00d066;--color-content-label-trailer:rgba(249,249,249,0.15);--color-content-label-unavailable:rgba(249,249,249,0.9);--color-content-progress-ad:#ff9b00;--color-content-progress-buffered:rgba(255,255,255,0.15);--color-content-progress-current-live-diff:rgba(255,255,255,0.3);--color-content-progress-duration:rgba(140,140,140,0.3);--color-content-progress-elapsed:#0099ff;--color-content-progress-points:#00f37a;--color-gradient-avatar-stroke-end:#57107b;--color-gradient-avatar-stroke-start:#9747ff;--color-gradient-content-card-end:rgba(0,0,0,0.8);--color-gradient-content-card-start:rgba(0,0,0,0);--color-gradient-content-overlay-end:rgba(31,1,47,0.8);--color-gradient-content-overlay-start:rgba(31,1,47,0);--color-gradient-navbar-end:rgba(26,1,40,0);--color-gradient-navbar-start:rgba(26,1,40,0.8);--color-icon-attention:#ff9b00;--color-icon-informative:#0099ff;--color-icon-label-default:#4e0076;--color-icon-negative:#e4175c;--color-icon-positive:#00d066;--color-icon-primary:#ffffff;
5--color-icon-primary-dark:#000000;--color-indicator-dot-active:#990ae3;--color-indicator-dot-default:rgba(255,255,255,0.15);--color-indicator-spinner:#ffffff;--color-info-dialogue-attention-background-bold:#ff9b00;--color-info-dialogue-attention-background-subtle:#fff2de;--color-info-dialogue-error-background-default:#e4175c;--color-info-dialogue-helpful-background-default:#0099ff;--color-info-dialogue-important-background-default:#ff9b00;--color-info-dialogue-informative-background-bold:#0099ff;--color-info-dialogue-informative-background-subtle:#e8f6ff;--color-info-dialogue-negative-background-bold:#e4175c;--color-info-dialogue-negative-background-subtle:#fff0f5;--color-info-dialogue-neutral-background-bold:#3f005e;--color-info-dialogue-neutral-background-default:#3f005e;--color-info-dialogue-positive-background-bold:#00d066;--color-info-dialogue-positive-background-subtle:#e1f9ec;--color-info-dialogue-success-background-default:#00d066;--color-navigation-current-primary:#ffffff;--color-navigation-current-secondary:rgba(255,255,255,0.15);--color-navigation-default:rgba(255,255,255,0.15);--color-navigation-default-ghost:rgba(255,255,255,0);--color-remote-current:rgba(255,255,255,0.1);--color-remote-default:rgba(255,255,255,0.1);--color-remote-focus:#ffffff;--color-remote-focus-soft:rgba(255,255,255,0.25);--color-remote-focus-soft-opaque:#53405e;--color-remote-ghost:rgba(255,255,255,0);--color-remote-hint:rgba(118,103,126,0.95);--color-text-disabled:rgba(255,255,255,0.5);--color-text-disabled-dark:rgba(0,0,0,0.5);--color-text-dummy:#641010;--color-text-error:#fb4885;--color-text-label-text-default:#4e0076;--color-text-price-discount:#c86af8;--color-text-price-discount-dark:#990ae3;--color-text-primary:#ffffff;
5--color-text-primary-dark:#000000;--color-text-secondary:rgba(255,255,255,0.7);--color-text-secondary-dark:rgba(0,0,0,0.6);--color-text-success:#00a552;--color-text-tertiary:rgba(255,255,255,0.5);--color-text-tertiary-dark:rgba(0,0,0,0.4);--gradient-avatar-stroke-end:#57107b;--gradient-avatar-stroke-start:#9747ff;--gradient-content-card-end:rgba(0,0,0,0.8);--gradient-content-card-start:rgba(0,0,0,0);--gradient-content-overlay-end:rgba(31,1,47,0.8);--gradient-content-overlay-start:rgba(31,1,47,0);--gradient-navbar-end:rgba(26,1,40,0);--gradient-navbar-start:rgba(26,1,40,0.8);--radius-button:24px;--radius-label-card-bottom-left:0 2px 0 0;--radius-label-card-bottom-right:2px 0 0 0;--radius-label-card-top-left:0 0 2px 0;--radius-label-card-top-right:0 0 0 2px;--radius-label-floating:2px;--radius-nav-item:6px;--radius-poster:4px;--radius-season-list-item:4px;--radius-season-picker:32px;--spacing-l:16px;--spacing-m:12px;--spacing-s:8px;--spacing-xl:24px;--spacing-xl-10:192px;--spacing-xl-2:32px;--spacing-xl-3:40px;--spacing-xl-4:48px;--spacing-xl-5:56px;--spacing-xl-6:64px;--spacing-xl-7:72px;--spacing-xl-8:80px;--spacing-xl-85:88px;--spacing-xl-9:96px;--spacing-xs:4px;--spacing-xxs:2px;--typeface-headings:'Telia Sans Heading';--typeface-primary:'Telia Sans';--typography-base-font-size:62.5%;--typography-button-text-font-family:'Telia Sans';--typography-button-text-font-size:1.6rem;--typography-button-text-font-style:normal;--typography-button-text-font-weight:500;--typography-button-text-letter-spacing:0rem;--typography-button-text-line-height:2.4rem;--typography-button-text-text-decoration:none;--typography-button-text-text-transform:none;--typography-button-text-additional-font-family:'Telia Sans';--typography-button-text-additional-font-size:1.6rem;--typography-button-text-additional-font-style:normal;--typography-button-text-additional-font-weight:500;--typography-button-text-additional-letter-spacing:0rem;--typography-button-text-additional-line-height:2.4rem;--typography-button-text-additional-text-decoration:none;--typography-button-text-additional-text-transform:none;--typography-button-text-small-font-family:'Telia Sans';--typography-button-text-small-font-size:1.4rem;--typography-button-text-small-font-style:normal;--typography-button-text-small-font-weight:500;--typography-button-text-small-letter-spacing:0rem;--typography-button-text-small-line-height:2rem;--typography-button-text-small-text-decoration:none;--typography-button-text-small-text-transform:none;--typography-content-data-font-family:'Telia Sans';--typography-content-data-font-size:1.8rem;--typography-content-data-font-style:normal;--typography-content-data-font-weight:400;--typography-content-data-letter-spacing:0rem;--typography-content-data-line-height:2.4rem;--typography-content-data-text-decoration:none;--typography-content-data-text-transform:none;--typography-content-data-paragraph-font-family:'Telia Sans';--typography-content-data-paragraph-font-size:1.8rem;--typography-content-data-paragraph-font-style:normal;--typography-content-data-paragraph-font-weight:400;--typography-content-data-paragraph-letter-spacing:0rem;--typography-content-data-paragraph-line-height:2.4rem;--typography-content-data-paragraph-text-decoration:none;--typography-content-data-paragraph-text-transform:none;--typography-content-data-small-font-family:'Telia Sans';--typography-content-data-small-font-size:1.4rem;--typography-content-data-small-font-style:normal;--typography-content-data-small-font-weight:400;--typography-content-data-small-letter-spacing:0rem;--typography-content-data-small-line-height:2rem;--typography-content-data-small-text-decoration:none;--typography-content-data-small-text-transform:none;--typography-content-label-font-family:'Telia Sans';--typography-content-label-font-size:1.4rem;--typography-content-label-font-style:normal;--typography-content-label-font-weight:700;--typography-content-label-letter-spacing:0rem;--typography-content-label-line-height:1.6rem;--typography-content-label-text-decoration:none;--typography-content-label-text-transform:none;--typography-content-label-floating-font-family:'Telia Sans';--typography-content-label-floating-font-size:1.4rem;--typography-content-label-floating-font-style:normal;
5--typography-content-label-floating-font-weight:700;--typography-content-label-floating-letter-spacing:0rem;--typography-content-label-floating-line-height:1.6rem;--typography-content-label-floating-text-decoration:none;--typography-content-label-floating-text-transform:none;--typography-content-label-small-font-family:'Telia Sans';--typography-content-label-small-font-size:1.4rem;--typography-content-label-small-font-style:normal;--typography-content-label-small-font-weight:700;--typography-content-label-small-letter-spacing:0rem;--typography-content-label-small-line-height:1.6rem;--typography-content-label-small-text-decoration:none;--typography-content-label-small-text-transform:uppercase;--typography-content-title-font-family:'Telia Sans Heading';--typography-content-title-font-size:5.6rem;--typography-content-title-font-style:normal;--typography-content-title-font-weight:700;--typography-content-title-letter-spacing:0rem;--typography-content-title-line-height:6.4rem;--typography-content-title-text-decoration:none;--typography-content-title-text-transform:none;--typography-content-title-large-font-family:'Telia Sans Heading';--typography-content-title-large-font-size:4rem;--typography-content-title-large-font-style:normal;--typography-content-title-large-font-weight:700;--typography-content-title-large-letter-spacing:0rem;--typography-content-title-large-line-height:4.8rem;--typography-content-title-large-text-decoration:none;--typography-content-title-large-text-transform:none;--typography-content-title-medium-font-family:'Telia Sans Heading';--typography-content-title-medium-font-size:3.2rem;--typography-content-title-medium-font-style:normal;--typography-content-title-medium-font-weight:700;--typography-content-title-medium-letter-spacing:0rem;--typography-content-title-medium-line-height:4rem;--typography-content-title-medium-text-decoration:none;--typography-content-title-medium-text-transform:none;--typography-content-title-small-font-family:'Telia Sans';--typography-content-title-small-font-size:1.6rem;--typography-content-title-small-font-style:normal;--typography-content-title-small-font-weight:500;--typography-content-title-small-letter-spacing:0rem;--typography-content-title-small-line-height:2.4rem;--typography-content-title-small-text-decoration:none;--typography-content-title-small-text-transform:none;--typography-content-title-tiny-font-family:'Telia Sans';--typography-content-title-tiny-font-size:1.6rem;--typography-content-title-tiny-font-style:normal;--typography-content-title-tiny-font-weight:500;--typography-content-title-tiny-letter-spacing:0rem;--typography-content-title-tiny-line-height:2.4rem;--typography-content-title-tiny-text-decoration:none;--typography-content-title-tiny-text-transform:none;--typography-heading-large-font-family:'Telia Sans';--typography-heading-large-font-size:6.4rem;--typography-heading-large-font-style:normal;--typography-heading-large-font-weight:700;--typography-heading-large-letter-spacing:0rem;--typography-heading-large-line-height:7.2rem;--typography-heading-large-text-decoration:none;--typography-heading-large-text-transform:none;--typography-heading-primary-font-family:'Telia Sans';--typography-heading-primary-font-size:4rem;--typography-heading-primary-font-style:normal;--typography-heading-primary-font-weight:700;--typography-heading-primary-letter-spacing:0rem;--typography-heading-primary-line-height:4.8rem;--typography-heading-primary-text-decoration:none;--typography-heading-primary-text-transform:none;--typography-heading-secondary-font-family:'Telia Sans';--typography-heading-secondary-font-size:3.2rem;--typography-heading-secondary-font-style:normal;--typography-heading-secondary-font-weight:700;--typography-heading-secondary-letter-spacing:0rem;--typography-heading-secondary-line-height:4rem;--typography-heading-secondary-text-decoration:none;--typography-heading-secondary-text-transform:none;--typography-heading-sub-heading-font-family:'Telia Sans';--typography-heading-sub-heading-font-size:1.8rem;--typography-heading-sub-heading-font-style:normal;
5--typography-heading-sub-heading-font-weight:400;--typography-heading-sub-heading-letter-spacing:0rem;--typography-heading-sub-heading-line-height:2.4rem;--typography-heading-sub-heading-text-decoration:none;--typography-heading-sub-heading-text-transform:none;--typography-heading-tertiary-font-family:'Telia Sans';--typography-heading-tertiary-font-size:2.4rem;--typography-heading-tertiary-font-style:normal;--typography-heading-tertiary-font-weight:700;--typography-heading-tertiary-letter-spacing:0rem;--typography-heading-tertiary-line-height:3.2rem;--typography-heading-tertiary-text-decoration:none;--typography-heading-tertiary-text-transform:none;--typography-navigation-text-font-family:'Telia Sans';--typography-navigation-text-font-size:1.6rem;--typography-navigation-text-font-style:normal;--typography-navigation-text-font-weight:400;--typography-navigation-text-letter-spacing:0rem;--typography-navigation-text-line-height:1.6rem;--typography-navigation-text-text-decoration:none;--typography-navigation-text-text-transform:none;--typography-navigation-text-emphasis-font-family:'Telia Sans';--typography-navigation-text-emphasis-font-size:1.6rem;--typography-navigation-text-emphasis-font-style:normal;--typography-navigation-text-emphasis-font-weight:500;--typography-navigation-text-emphasis-letter-spacing:0rem;--typography-navigation-text-emphasis-line-height:1.6rem;--typography-navigation-text-emphasis-text-decoration:none;--typography-navigation-text-emphasis-text-transform:none;--typography-tab-bar-text-font-family:'Telia Sans';--typography-tab-bar-text-font-size:1.1rem;--typography-tab-bar-text-font-style:normal;--typography-tab-bar-text-font-weight:400;--typography-tab-bar-text-letter-spacing:0rem;--typography-tab-bar-text-line-height:1.6rem;--typography-tab-bar-text-text-decoration:none;--typography-tab-bar-text-text-transform:none;--typography-tab-bar-text-emphasis-font-family:'Telia Sans';--typography-tab-bar-text-emphasis-font-size:1.1rem;--typography-tab-bar-text-emphasis-font-style:normal;--typography-tab-bar-text-emphasis-font-weight:700;--typography-tab-bar-text-emphasis-letter-spacing:0rem;--typography-tab-bar-text-emphasis-line-height:1.6rem;--typography-tab-bar-text-emphasis-text-decoration:none;--typography-tab-bar-text-emphasis-text-transform:none;--typography-tab-text-font-family:'Telia Sans';--typography-tab-text-font-size:1.8rem;--typography-tab-text-font-style:normal;--typography-tab-text-font-weight:400;--typography-tab-text-letter-spacing:0rem;--typography-tab-text-line-height:1.8rem;--typography-tab-text-text-decoration:none;--typography-tab-text-text-transform:none;--typography-tab-text-emphasis-font-family:'Telia Sans';--typography-tab-text-emphasis-font-size:1.8rem;--typography-tab-text-emphasis-font-style:normal;--typography-tab-text-emphasis-font-weight:500;--typography-tab-text-emphasis-letter-spacing:0rem;--typography-tab-text-emphasis-line-height:1.8rem;--typography-tab-text-emphasis-text-decoration:none;--typography-tab-text-emphasis-text-transform:none;--typography-text-editorial-font-family:'Telia Sans';--typography-text-editorial-font-size:1.6rem;--typography-text-editorial-font-style:normal;--typography-text-editorial-font-weight:500;--typography-text-editorial-letter-spacing:0rem;--typography-text-editorial-line-height:2.4rem;--typography-text-editorial-text-decoration:none;--typography-text-editorial-text-transform:none;--typography-text-footnote-font-family:'Telia Sans';--typography-text-footnote-font-size:1.4rem;--typography-text-footnote-font-style:normal;--typography-text-footnote-font-weight:400;--typography-text-footnote-letter-spacing:0rem;--typography-text-footnote-line-height:2rem;--typography-text-footnote-text-decoration:none;--typography-text-footnote-text-transform:none;--typography-text-large-font-family:'Telia Sans';--typography-text-large-font-size:2.8rem;--typography-text-large-font-style:normal;--typography-text-large-font-weight:400;--typography-text-large-letter-spacing:0rem;--typography-text-large-line-height:4rem;--typography-text-large-text-decoration:none;--typography-text-large-text-transform:none;--typography-text-link-font-family:'Telia Sans';--typography-text-link-font-size:1.8rem;--typography-text-link-font-style:normal;--typography-text-link-font-weight:500;--typography-text-link-letter-spacing:0rem;--typography-text-link-line-height:2.4rem;--typography-text-link-text-decoration:none;--typography-text-link-text-transform:none;--typography-text-link-underlined-font-family:'Telia Sans';--typography-text-link-underlined-font-size:1.6rem;--typography-text-link-underlined-font-style:normal;--typography-text-link-underlined-font-weight:400;--typography-text-link-underlined-letter-spacing:0rem;--typography-text-link-underlined-line-height:2.4rem;--typography-text-link-underlined-text-decoration:underline;--typography-text-link-underlined-text-transform:none;--typography-text-ott-font-family:'Telia Sans';--typography-text-ott-font-size:8rem;--typography-text-ott-font-style:normal;
5--typography-text-ott-font-weight:400;--typography-text-ott-letter-spacing:0rem;--typography-text-ott-line-height:9.6rem;--typography-text-ott-text-decoration:none;--typography-text-ott-text-transform:none;--typography-text-primary-font-family:'Telia Sans';--typography-text-primary-font-size:1.8rem;--typography-text-primary-font-style:normal;--typography-text-primary-font-weight:400;--typography-text-primary-letter-spacing:0rem;--typography-text-primary-line-height:2.4rem;--typography-text-primary-text-decoration:none;--typography-text-primary-text-transform:none;--typography-text-primary-emphasis-font-family:'Telia Sans';--typography-text-primary-emphasis-font-size:1.8rem;--typography-text-primary-emphasis-font-style:normal;--typography-text-primary-emphasis-font-weight:700;--typography-text-primary-emphasis-letter-spacing:0rem;--typography-text-primary-emphasis-line-height:2.4rem;--typography-text-primary-emphasis-text-decoration:none;--typography-text-primary-emphasis-text-transform:none;--typography-text-secondary-font-family:'Telia Sans';--typography-text-secondary-font-size:1.6rem;--typography-text-secondary-font-style:normal;--typography-text-secondary-font-weight:400;--typography-text-secondary-letter-spacing:0rem;--typography-text-secondary-line-height:2.4rem;--typography-text-secondary-text-decoration:none;--typography-text-secondary-text-transform:none;--typography-text-secondary-emphasis-font-family:'Telia Sans';--typography-text-secondary-emphasis-font-size:1.6rem;--typography-text-secondary-emphasis-font-style:normal;--typography-text-secondary-emphasis-font-weight:700;--typography-text-secondary-emphasis-letter-spacing:0rem;--typography-text-secondary-emphasis-line-height:2.4rem;--typography-text-secondary-emphasis-text-decoration:none;--typography-text-secondary-emphasis-text-transform:none;}}");e.s(["mobileTokenValues",0,{"--border-radius-full":"100000px","--border-radius-l":"16px","--border-radius-m":"8px","--border-radius-none":"0px","--border-radius-s":"4px","--border-radius-xl":"24px","--border-radius-xs":"2px","--color-accent-brand":"#990ae3","--color-accent-icon-epg-time-indicator":"#0099ff","--color-accent-icon-recording":"#ff3377","--color-background-light":"#f4e0ff","--color-background-overlay-40":"rgba(0, 0, 0, 0.4)","--color-background-overlay-60":"rgba(0, 0, 0, 0.6)","--color-background-overlay-80":"rgba(0, 0, 0, 0.8)","--color-background-primary":"#1a0128","--color-background-secondary":"#29003e","--color-background-surface":"rgba(255, 255, 255, 0.05)","--color-background-surface-dark":"rgba(0, 0, 0, 0.15)","--color-background-surface-player":"#1c1d1f","--color-background-tertiary":"#3f005e","--color-border-background-surface":"rgba(255, 255, 255, 0.15)","--color-border-button-ghost-focus":"rgba(255, 255, 255, 0.4)","--color-border-button-pay-focus":"#d9ffeb","--color-border-button-primary-focus":"#c86af8","--color-border-button-secondary-focus":"rgba(255, 255, 255, 0.4)","--color-border-inputfield-active":"#ffffff","--color-border-inputfield-default":"rgba(255, 255, 255, 0.5)","--color-border-inputfield-disabled":"rgba(255, 255, 255, 0.5)","--color-border-inputfield-error":"#fb4885","--color-border-inputfield-hover":"rgba(255, 255, 255, 0.7)","--color-border-new-dummy-color-in-border":"#fb4885","--color-border-separator":"rgba(255, 255, 255, 0.15)","--color-border-separator-strong":"rgba(255, 255, 255, 0.7)","--color-border-separator-weak":"rgba(255, 255, 255, 0.15)","--color-border-subtle":"rgba(255, 255, 255, 0.05)","--color-button-floating-default":"#7300ae","--color-button-ghost-default":"rgba(255, 255, 255, 0)","--color-button-ghost-disabled":"rgba(255, 255, 255, 0)","--color-button-ghost-focus":"rgba(255, 255, 255, 0.15)","--color-button-ghost-hover":"rgba(255, 255, 255, 0.15)","--color-button-ghost-pressed":"rgba(255, 255, 255, 0.1)","--color-button-pay-default":"#00d066","--color-button-pay-disabled":"rgba(255, 255, 255, 0.15)","--color-button-pay-focus":"#00f37a","--color-button-pay-hover":"#00f37a","--color-button-pay-pressed":"#00a552","--color-button-primary-default":"#990ae3","--color-button-primary-disabled":"rgba(255, 255, 255, 0.15)","--color-button-primary-focus":"#af3ce8","--color-button-primary-hover":"#af3ce8","--color-button-primary-pressed":"#7300ae","--color-button-secondary-default":"rgba(255, 255, 255, 0.15)","--color-button-secondary-disabled":"rgba(255, 255, 255, 0.15)","--color-button-secondary-focus":"rgba(255, 255, 255, 0.25)","--color-button-secondary-hover":"rgba(255, 255, 255, 0.25)","--color-button-secondary-pressed":"rgba(255, 255, 255, 0.1)","--color-content-label-age":"rgba(78, 78, 78, 0.8)","--color-content-label-airtime":"#f2f2f2","--color-content-label-announcement":"#0099ff","--color-content-label-background-default":"#f4e0ff","--color-content-label-disappears":"#ff9b00","--color-content-label-freeview":"rgba(249, 249, 249, 0.9)","--color-content-label-live":"#e4175c","--color-content-label-price":"rgba(249, 249, 249, 0.9)","--color-content-label-quality":"rgba(0, 0, 0, 0.8)","--color-content-label-recurring":"#7300ae","--color-content-label-rented":"#00d066","--color-content-label-trailer":"rgba(249, 249, 249, 0.15)","--color-content-label-unavailable":"rgba(249, 249, 249, 0.9)","--color-content-progress-ad":"#ff9b00","--color-content-progress-buffered":"rgba(255, 255, 255, 0.15)","--color-content-progress-current-live-diff":"rgba(255, 255, 255, 0.3)","--color-content-progress-duration":"rgba(140, 140, 140, 0.3)","--color-content-progress-elapsed":"#0099ff","--color-content-progress-points":"#00f37a","--color-gradient-avatar-stroke-end":"#57107b","--color-gradient-avatar-stroke-start":"#9747ff","--color-gradient-content-card-end":"rgba(0, 0, 0, 0.8)","--color-gradient-content-card-start":"rgba(0, 0, 0, 0)","--color-gradient-content-overlay-end":"rgba(31, 1, 47, 0.8)","--color-gradient-content-overlay-start":"rgba(31, 1, 47, 0)","--color-gradient-navbar-end":"rgba(26, 1, 40, 0)","--color-gradient-navbar-start":"rgba(26, 1, 40, 0.8)","--color-icon-attention":"#ff9b00","--color-icon-informative":"#0099ff","--color-icon-label-default":"#4e0076","--color-icon-negative":"#e4175c","--color-icon-positive":"#00d066","--color-icon-primary":"#ffffff","--color-icon-primary-dark":"#000000","--color-indicator-dot-active":"#990ae3","--color-indicator-dot-default":"rgba(255, 255, 255, 0.15)","--color-indicator-spinner":"#ffffff","--color-info-dialogue-attention-background-bold":"#ff9b00","--color-info-dialogue-attention-background-subtle":"#fff2de","--color-info-dialogue-error-background-default":"#e4175c","--color-info-dialogue-helpful-background-default":"#0099ff","--color-info-dialogue-important-background-default":"#ff9b00","--color-info-dialogue-informative-background-bold":"#0099ff","--color-info-dialogue-informative-background-subtle":"#e8f6ff","--color-info-dialogue-negative-background-bold":"#e4175c","--color-info-dialogue-negative-background-subtle":"#fff0f5","--color-info-dialogue-neutral-background-bold":"#3f005e","--color-info-dialogue-neutral-background-default":"#3f005e","--color-info-dialogue-positive-background-bold":"#00d066","--color-info-dialogue-positive-background-subtle":"#e1f9ec","--color-info-dialogue-success-background-default":"#00d066","--color-navigation-current-primary":"#ffffff","--color-navigation-current-secondary":"rgba(255, 255, 255, 0.15)","--color-navigation-default":"rgba(255, 255, 255, 0.15)","--color-navigation-default-ghost":"rgba(255, 255, 255, 0)","--color-remote-current":"rgba(255, 255, 255, 0.1)","--color-remote-default":"rgba(255, 255, 255, 0.1)","--color-remote-focus":"#ffffff","--color-remote-focus-soft":"rgba(255, 255, 255, 0.25)","--color-remote-focus-soft-opaque":"#53405e","--color-remote-ghost":"rgba(255, 255, 255, 0)","--color-remote-hint":"rgba(118, 103, 126, 0.95)","--color-text-disabled":"rgba(255, 255, 255, 0.5)","--color-text-disabled-dark":"rgba(0, 0, 0, 0.5)","--color-text-dummy":"#641010","--color-text-error":"#fb4885","--color-text-label-text-default":"#4e0076","--color-text-price-discount":"#c86af8","--color-text-price-discount-dark":"#990ae3","--color-text-primary":"#ffffff","--color-text-primary-dark":"#000000","--color-text-secondary":"rgba(255, 255, 255, 0.7)","--color-text-secondary-dark":"rgba(0, 0, 0, 0.6)","--color-text-success":"#00a552","--color-text-tertiary":"rgba(255, 255, 255, 0.5)","--color-text-tertiary-dark":"rgba(0, 0, 0, 0.4)","--gradient-avatar-stroke-end":"#57107b","--gradient-avatar-stroke-start":"#9747ff","--gradient-content-card-end":"rgba(0, 0, 0, 0.8)","--gradient-content-card-start":"rgba(0, 0, 0, 0)","--gradient-content-overlay-end":"rgba(31, 1, 47, 0.8)","--gradient-content-overlay-start":"rgba(31, 1, 47, 0)","--gradient-navbar-end":"rgba(26, 1, 40, 0)","--gradient-navbar-start":"rgba(26, 1, 40, 0.8)","--radius-button":"24px","--radius-label-card-bottom-left":"0 2px 0 0","--radius-label-card-bottom-right":"2px 0 0 0","--radius-label-card-top-left":"0 0 2px 0","--radius-label-card-top-right":"0 0 0 2px","--radius-label-floating":"2px","--radius-nav-item":"6px","--radius-p
5oster":"4px","--radius-season-list-item":"4px","--radius-season-picker":"32px","--spacing-l":"16px","--spacing-m":"12px","--spacing-s":"8px","--spacing-xl":"24px","--spacing-xl-10":"192px","--spacing-xl-2":"32px","--spacing-xl-3":"40px","--spacing-xl-4":"48px","--spacing-xl-5":"56px","--spacing-xl-6":"64px","--spacing-xl-7":"72px","--spacing-xl-8":"80px","--spacing-xl-85":"88px","--spacing-xl-9":"96px","--spacing-xs":"4px","--spacing-xxs":"2px","--typeface-headings":"Telia Sans Heading","--typeface-primary":"Telia Sans","--typography-base-font-size":"62.5%","--typography-button-text-font-family":"Telia Sans","--typography-button-text-font-size":"1.6rem","--typography-button-text-font-style":"normal","--typography-button-text-font-weight":500,"--typography-button-text-letter-spacing":"0rem","--typography-button-text-line-height":"2.4rem","--typography-button-text-text-decoration":"none","--typography-button-text-text-transform":"none","--typography-button-text-additional-font-family":"Telia Sans","--typography-button-text-additional-font-size":"1.6rem","--typography-button-text-additional-font-style":"normal","--typography-button-text-additional-font-weight":500,"--typography-button-text-additional-letter-spacing":"0rem","--typography-button-text-additional-line-height":"2.4rem","--typography-button-text-additional-text-decoration":"none","--typography-button-text-additional-text-transform":"none","--typography-button-text-small-font-family":"Telia Sans","--typography-button-text-small-font-size":"1.4rem","--typography-button-text-small-font-style":"normal","--typography-button-text-small-font-weight":500,"--typography-button-text-small-letter-spacing":"0rem","--typography-button-text-small-line-height":"2rem","--typography-button-text-small-text-decoration":"none","--typography-button-text-small-text-transform":"none","--typography-content-data-font-family":"Telia Sans","--typography-content-data-font-size":"1.6rem","--typography-content-data-font-style":"normal","--typography-content-data-font-weight":400,"--typography-content-data-letter-spacing":"0rem","--typography-content-data-line-height":"2.4rem","--typography-content-data-text-decoration":"none","--typography-content-data-text-transform":"none","--typography-content-data-paragraph-font-family":"Telia Sans","--typography-content-data-paragraph-font-size":"1.6rem","--typography-content-data-paragraph-font-style":"normal","--typography-content-data-paragraph-font-weight":400,"--typography-content-data-paragraph-letter-spacing":"0rem","--typography-content-data-paragraph-line-height":"2.4rem","--typography-content-data-paragraph-text-decoration":"none","--typography-content-data-paragraph-text-transform":"none","--typography-content-data-small-font-family":"Telia Sans","--typography-content-data-small-font-size":"1.3rem","--typography-content-data-small-font-style":"normal","--typography-content-data-small-font-weight":500,"--typography-content-data-small-letter-spacing":"0rem","--typography-content-data-small-line-height":"1.6rem","--typography-content-data-small-text-decoration":"none","--typography-content-data-small-text-transform":"none","--typography-content-label-font-family":"Telia Sans","--typography-content-label-font-size":"1.2rem","--typography-content-label-font-style":"normal","--typography-content-label-font-weight":700,"--typography-content-label-letter-spacing":"0rem","--typography-content-label-line-height":"1.2rem","--typography-content-label-text-decoration":"none","--typography-content-label-text-transform":"none","--typography-content-label-floating-font-family":"Telia Sans","--typography-content-label-floating-font-size":"1.2rem","--typography-content-label-floating-font-style":"normal","--typography-content-label-floating-font-weight":700,"--typography-content-label-floating-letter-spacing":"0rem","--typography-content-label-floating-line-height":"1.6rem","--typography-content-label-floating-text-decoration":"none","--typography-content-label-floating-text-transform":"none","--typography-content-label-small-font-family":"Telia Sans","--typography-content-label-small-font-size":"1rem","--typography-content-label-small-font-style":"normal","--typography-content-label-small-font-we
5ight":700,"--typography-content-label-small-letter-spacing":"0rem","--typography-content-label-small-line-height":"1.2rem","--typography-content-label-small-text-decoration":"none","--typography-content-label-small-text-transform":"uppercase","--typography-content-title-font-family":"Telia Sans Heading","--typography-content-title-font-size":"3.2rem","--typography-content-title-font-style":"normal","--typography-content-title-font-weight":700,"--typography-content-title-letter-spacing":"0rem","--typography-content-title-line-height":"3.6rem","--typography-content-title-text-decoration":"none","--typography-content-title-text-transform":"none","--typography-content-title-large-font-family":"Telia Sans Heading","--typography-content-title-large-font-size":"2.8rem","--typography-content-title-large-font-style":"normal","--typography-content-title-large-font-weight":700,"--typography-content-title-large-letter-spacing":"0rem","--typography-content-title-large-line-height":"3.2rem","--typography-content-title-large-text-decoration":"none","--typography-content-title-large-text-transform":"none","--typography-content-title-medium-font-family":"Telia Sans Heading","--typography-content-title-medium-font-size":"2.4rem","--typography-content-title-medium-font-style":"normal","--typography-content-title-medium-font-weight":700,"--typography-content-title-medium-letter-spacing":"0rem","--typography-content-title-medium-line-height":"2.8rem","--typography-content-title-medium-text-decoration":"none","--typography-content-title-medium-text-transform":"none","--typography-content-title-small-font-family":"Telia Sans","--typography-content-title-small-font-size":"1.6rem","--typography-content-title-small-font-style":"normal","--typography-content-title-small-font-weight":500,"--typography-content-title-small-letter-spacing":"0rem","--typography-content-title-small-line-height":"2.4rem","--typography-content-title-small-text-decoration":"none","--typography-content-title-small-text-transform":"none","--typography-content-title-tiny-font-family":"Telia Sans","--typography-content-title-tiny-font-size":"1.3rem","--typography-content-title-tiny-font-style":"normal","--typography-content-title-tiny-font-weight":400,"--typography-content-title-tiny-letter-spacing":"0rem","--typography-content-title-tiny-line-height":"2rem","--typography-content-title-tiny-text-decoration":"none","--typography-content-title-tiny-text-transform":"none","--typography-heading-large-font-family":"Telia Sans","--typography-heading-large-font-size":"4rem","--typography-heading-large-font-style":"normal","--typography-heading-large-font-weight":700,"--typography-heading-large-letter-spacing":"0rem","--typography-heading-large-line-height":"4.8rem","--typography-heading-large-text-decoration":"none","--typography-heading-large-text-transform":"none","--typography-heading-primary-font-family":"Telia Sans","--typography-heading-primary-font-size":"3.2rem","--typography-heading-primary-font-style":"normal","--typography-heading-primary-font-weight":700,"--typography-heading-primary-letter-spacing":"0rem","--typography-heading-primary-line-height":"4rem","--typography-heading-primary-text-decoration":"none","--typography-heading-primary-text-transform":"none","--typography-heading-secondary-font-family":"Telia Sans","--typography-heading-secondary-font-size":"2.4rem","--typography-heading-secondary-font-style":"normal","--typography-heading-secondary-font-weight":700,"--typography-heading-secondary-letter-spacing":"0rem","--typography-heading-secondary-line-height":"3.2rem","--typography-heading-secondary-text-decoration":"none","--typography-heading-secondary-text-transform":"none","--typography-heading-sub-heading-font-family":"Telia Sans","--typography-heading-sub-heading-font-size":"1.6rem","--typography-heading-sub-heading-font-style":"normal","--typography-heading-sub-heading-font-weight":500,"--typography-heading-sub-heading-letter-spacing":"0rem","--typography-heading-sub-heading-line-height":"2.4rem","--typography-heading-sub-heading-text-decoration":"none","--typography-heading-sub-heading-text-transform":"none","--typography-heading-tertiary-font-family":"Telia Sans","--typography-heading-tertiary-font-size":"1.8rem","--typography-heading-tertiary-font-style":"normal","--typography-heading-tertiary-font-weight":700,"--typography-heading-tertiary-letter-spacing":"0rem","--typography-heading-tertiary-line-height":"2.4rem","--typography-heading-tertiary-text-decoration":"none","--typography-heading-tertiary-text-transform":"none","--typography-navigation-text-font-family":"Telia Sans","--typography-navigation-text-font-size":"1.6rem","--typography-navigation-text-font-style":"normal","--typography-navigation-text-font-we
5ight":400,"--typography-navigation-text-letter-spacing":"0rem","--typography-navigation-text-line-height":"2.4rem","--typography-navigation-text-text-decoration":"none","--typography-navigation-text-text-transform":"none","--typography-navigation-text-emphasis-font-family":"Telia Sans","--typography-navigation-text-emphasis-font-size":"1.6rem","--typography-navigation-text-emphasis-font-style":"normal","--typography-navigation-text-emphasis-font-weight":700,"--typography-navigation-text-emphasis-letter-spacing":"0rem","--typography-navigation-text-emphasis-line-height":"2.4rem","--typography-navigation-text-emphasis-text-decoration":"none","--typography-navigation-text-emphasis-text-transform":"none","--typography-tab-bar-text-font-family":"Telia Sans","--typography-tab-bar-text-font-size":"1.1rem","--typography-tab-bar-text-font-style":"normal","--typography-tab-bar-text-font-weight":400,"--typography-tab-bar-text-letter-spacing":"0rem","--typography-tab-bar-text-line-height":"1.6rem","--typography-tab-bar-text-text-decoration":"none","--typography-tab-bar-text-text-transform":"none","--typography-tab-bar-text-emphasis-font-family":"Telia Sans","--typography-tab-bar-text-emphasis-font-size":"1.1rem","--typography-tab-bar-text-emphasis-font-style":"normal","--typography-tab-bar-text-emphasis-font-weight":700,"--typography-tab-bar-text-emphasis-letter-spacing":"0rem","--typography-tab-bar-text-emphasis-line-height":"1.6rem","--typography-tab-bar-text-emphasis-text-decoration":"none","--typography-tab-bar-text-emphasis-text-transform":"none","--typography-tab-text-font-family":"Telia Sans","--typography-tab-text-font-size":"1.6rem","--typography-tab-text-font-style":"normal","--typography-tab-text-font-weight":500,"--typography-tab-text-letter-spacing":"0rem","--typography-tab-text-line-height":"2.4rem","--typography-tab-text-text-decoration":"none","--typography-tab-text-text-transform":"none","--typography-tab-text-emphasis-font-family":"Telia Sans","--typography-tab-text-emphasis-font-size":"1.6rem","--typography-tab-text-emphasis-font-style":"normal","--typography-tab-text-emphasis-font-weight":700,"--typography-tab-text-emphasis-letter-spacing":"0rem","--typography-tab-text-emphasis-line-height":"2.4rem","--typography-tab-text-emphasis-text-decoration":"none","--typography-tab-text-emphasis-text-transform":"none","--typography-text-editorial-font-family":"Telia Sans","--typography-text-editorial-font-size":"1.3rem","--typography-text-editorial-font-style":"normal","--typography-text-editorial-font-weight":500,"--typography-text-editorial-letter-spacing":"0rem","--typography-text-editorial-line-height":"2rem","--typography-text-editorial-text-decoration":"none","--typography-text-editorial-text-transform":"none","--typography-text-footnote-font-family":"Telia Sans","--typography-text-footnote-font-size":"1.3rem","--typography-text-footnote-font-style":"normal","--typography-text-footnote-font-weight":400,"--typography-text-footnote-letter-spacing":"0rem","--typography-text-footnote-line-height":"2rem","--typography-text-footnote-text-decoration":"none","--typography-text-footnote-text-transform":"none","--typography-text-large-font-family":"Telia Sans","--typography-text-large-font-size":"1.8rem","--typography-text-large-font-style":"normal","--typography-text-large-font-weight":400,"--typography-text-large-letter-spacing":"0rem","--typography-text-large-line-height":"2.4rem","--typography-text-large-text-decoration":"none","--typography-text-large-text-transform":"none","--typography-text-link-font-family":"Telia Sans","--typography-text-link-font-size":"1.3rem","--typography-text-link-font-style":"normal","--typography-text-link-font-weight":400,"--typography-text-link-letter-spacing":"0rem","--typography-text-link-line-height":"2rem","--typography-text-link-text-decoration":"none","--typography-text-link-text-transform":"none","--typography-text-link-underlined-font-family":"Telia Sans","--typography-text-link-underlined-font-size":"1.6rem","--typography-text-link-underlined-font-style":"normal","--typography-text-link-underlined-font-weight":400,"--typography-text-link-underlined-letter-spacing":"0rem","--typography-text-link-underlined-line-height":"2.4rem","--typography-text-link-underlined-text-decoration":"underline","--typography-text-link-underlined-text-transform":"none","--typography-text-ott-font-family":"Telia Sans","--typography-text-ott-font-size":"4rem","--typography-text-ott-font-style":"normal","--typography-text-ott-font-we
5ight":700,"--typography-text-ott-letter-spacing":"0rem","--typography-text-ott-line-height":"4rem","--typography-text-ott-text-decoration":"none","--typography-text-ott-text-transform":"none","--typography-text-primary-font-family":"Telia Sans","--typography-text-primary-font-size":"1.6rem","--typography-text-primary-font-style":"normal","--typography-text-primary-font-weight":400,"--typography-text-primary-letter-spacing":"0rem","--typography-text-primary-line-height":"2.4rem","--typography-text-primary-text-decoration":"none","--typography-text-primary-text-transform":"none","--typography-text-primary-emphasis-font-family":"Telia Sans","--typography-text-primary-emphasis-font-size":"1.6rem","--typography-text-primary-emphasis-font-style":"normal","--typography-text-primary-emphasis-font-weight":700,"--typography-text-primary-emphasis-letter-spacing":"0rem","--typography-text-primary-emphasis-line-height":"2.4rem","--typography-text-primary-emphasis-text-decoration":"none","--typography-text-primary-emphasis-text-transform":"none","--typography-text-secondary-font-family":"Telia Sans","--typography-text-secondary-font-size":"1.3rem","--typography-text-secondary-font-style":"normal","--typography-text-secondary-font-weight":400,"--typography-text-secondary-letter-spacing":"0rem","--typography-text-secondary-line-height":"2rem","--typography-text-secondary-text-decoration":"none","--typography-text-secondary-text-transform":"none","--typography-text-secondary-emphasis-font-family":"Telia Sans","--typography-text-secondary-emphasis-font-size":"1.3rem","--typography-text-secondary-emphasis-font-style":"normal","--typography-text-secondary-emphasis-font-weight":700,"--typography-text-secondary-emphasis-letter-spacing":"0rem","--typography-text-secondary-emphasis-line-height":"2rem","--typography-text-secondary-emphasis-text-decoration":"none","--typography-text-secondary-emphasis-text-transform":"none"},"rootStyle",0,k],143811);let O={borderRadius:{full:"var(--border-radius-full)",l:"var(--border-radius-l)",m:"var(--border-radius-m)",none:"var(--border-radius-none)",s:"var(--border-radius-s)",xl:"var(--border-radius-xl)",xs:"var(--border-radius-xs)"},color:{accent:{brand:"var(--color-accent-brand)",iconEpgTimeIndicator:"var(--color-accent-icon-epg-time-indicator)",iconRecording:"var(--color-accent-icon-recording)"},background:{light:"var(--color-background-light)",overlay40:"var(--color-background-overlay-40)",overlay60:"var(--color-background-overlay-60)",overlay80:"var(--color-background-overlay-80)",primary:"var(--color-background-primary)",secondary:"var(--color-background-secondary)",surface:"var(--color-background-surface)",surfaceDark:"var(--color-background-surface-dark)",surfacePlayer:"var(--color-background-surface-player)",tertiary:"var(--color-background-tertiary)"},border:{backgroundSurface:"var(--color-border-background-surface)",buttonGhostFocus:"var(--color-border-button-ghost-focus)",buttonPayFocus:"var(--color-border-button-pay-focus)",buttonPrimaryFocus:"var(--color-border-button-primary-focus)",buttonSecondaryFocus:"var(--color-border-button-secondary-focus)",inputfieldActive:"var(--color-border-inputfield-active)",inputfieldDefault:"var(--color-border-inputfield-default)",inputfieldDisabled:"var(--color-border-inputfield-disabled)",inputfieldError:"var(--color-border-inputfield-error)",inputfieldHover:"var(--color-border-inputfield-hover)",newDummyColorInBorder:"var(--color-border-new-dummy-color-in-border)",separator:"var(--color-border-separator)",separatorStrong:"var(--color-border-separator-strong)",separatorWeak:"var(--color-border-separator-weak)",subtle:"var(--color-border-subtle)"},button:{floatingDefault:"var(--color-button-floating-default)",ghostDefault:"var(--color-button-ghost-default)",ghostDisabled:"var(--color-button-ghost-disabled)",ghostFocus:"var(--color-button-ghost-focus)",ghostHover:"var(--color-button-ghost-hover)",ghostPressed:"var(--color-button-ghost-pressed)",payDefault:"var(--color-button-pay-default)",payDisabled:"var(--color-button-pay-disabled)",payFocus:"var(--color-button-pay-focus)",payHover:"var(--color-button-pay-hover)",payPressed:"var(--color-button-pay-pressed)",primaryDefault:"var(--color-button-primary-default)",primaryDisabled:"var(--color-button-primary-disabled)",primaryFocus:"var(--color-button-primary-focus)",primaryHover:"var(--color-button-primary-hover)",primaryPressed:"var(--color-button-primary-pressed)",secondary
5Default:"var(--color-button-secondary-default)",secondaryDisabled:"var(--color-button-secondary-disabled)",secondaryFocus:"var(--color-button-secondary-focus)",secondaryHover:"var(--color-button-secondary-hover)",secondaryPressed:"var(--color-button-secondary-pressed)"},content:{labelAge:"var(--color-content-label-age)",labelAirtime:"var(--color-content-label-airtime)",labelAnnouncement:"var(--color-content-label-announcement)",labelBackgroundDefault:"var(--color-content-label-background-default)",labelDisappears:"var(--color-content-label-disappears)",labelFreeview:"var(--color-content-label-freeview)",labelLive:"var(--color-content-label-live)",labelPrice:"var(--color-content-label-price)",labelQuality:"var(--color-content-label-quality)",labelRecurring:"var(--color-content-label-recurring)",labelRented:"var(--color-content-label-rented)",labelTrailer:"var(--color-content-label-trailer)",labelUnavailable:"var(--color-content-label-unavailable)",progressAd:"var(--color-content-progress-ad)",progressBuffered:"var(--color-content-progress-buffered)",progressCurrentLiveDiff:"var(--color-content-progress-current-live-diff)",progressDuration:"var(--color-content-progress-duration)",progressElapsed:"var(--color-content-progress-elapsed)",progressPoints:"var(--color-content-progress-points)"},gradient:{avatarStrokeEnd:"var(--color-gradient-avatar-stroke-end)",avatarStrokeStart:"var(--color-gradient-avatar-stroke-start)",contentCardEnd:"var(--color-gradient-content-card-end)",contentCardStart:"var(--color-gradient-content-card-start)",contentOverlayEnd:"var(--color-gradient-content-overlay-end)",contentOverlayStart:"var(--color-gradient-content-overlay-start)",navbarEnd:"var(--color-gradient-navbar-end)",navbarStart:"var(--color-gradient-navbar-start)"},icon:{attention:"var(--color-icon-attention)",informative:"var(--color-icon-informative)",labelDefault:"var(--color-icon-label-default)",negative:"var(--color-icon-negative)",positive:"var(--color-icon-positive)",primary:"var(--color-icon-primary)",primaryDark:"var(--color-icon-primary-dark)"},indicator:{dotActive:"var(--color-indicator-dot-active)",dotDefault:"var(--color-indicator-dot-default)",spinner:"var(--color-indicator-spinner)"},infoDialogue:{attentionBackgroundBold:"var(--color-info-dialogue-attention-background-bold)",attentionBackgroundSubtle:"var(--color-info-dialogue-attention-background-subtle)",errorBackgroundDefault:"var(--color-info-dialogue-error-background-default)",helpfulBackgroundDefault:"var(--color-info-dialogue-helpful-background-default)",importantBackgroun
5dDefault:"var(--color-info-dialogue-important-background-default)",informativeBackgroundBold:"var(--color-info-dialogue-informative-background-bold)",informativeBackgroundSubtle:"var(--color-info-dialogue-informative-background-subtle)",negativeBackgroundBold:"var(--color-info-dialogue-negative-background-bold)",negativeBackgroundSubtle:"var(--color-info-dialogue-negative-background-subtle)",neutralBackgroundBold:"var(--color-info-dialogue-neutral-background-bold)",neutralBackgroundDefault:"var(--color-info-dialogue-neutral-background-default)",positiveBackgroundBold:"var(--color-info-dialogue-positive-background-bold)",positiveBackgroundSubtle:"var(--color-info-dialogue-positive-background-subtle)",successBackgroundDefault:"var(--color-info-dialogue-success-background-default)"},navigation:{currentPrimary:"var(--color-navigation-current-primary)",currentSecondary:"var(--color-navigation-current-secondary)",default:"var(--color-navigation-default)",defaultGhost:"var(--color-navigation-default-ghost)"},remote:{current:"var(--color-remote-current)",default:"var(--color-remote-default)",focus:"var(--color-remote-focus)",focusSoft:"var(--color-remote-focus-soft)",focusSoftOpaque:"var(--color-remote-focus-soft-opaque)",ghost:"var(--color-remote-ghost)",hint:"var(--color-remote-hint)"},text:{disabled:"var(--color-text-disabled)",disabledDark:"var(--color-text-disabled-dark)",dummy:"var(--color-text-dummy)",error:"var(--color-text-error)",labelTextDefault:"var(--color-text-label-text-default)",priceDiscount:"var(--color-text-price-discount)",priceDiscountDark:"var(--color-text-price-discount-dark)",primary:"var(--color-text-primary)",primaryDark:"var(--color-text-primary-dark)",secondary:"var(--color-text-secondary)",secondaryDark:"var(--color-text-secondary-dark)",success:"var(--color-text-success)",tertiary:"var(--color-text-tertiary)",tertiaryDark:"var(--color-text-tertiary-dark)"}},gradient:{avatarStrokeEnd:"var(--gradient-avatar-stroke-end)",avatarStrokeStart:"var(--gradient-avatar-stroke-start)",contentCardEnd:"var(--gradient-content-card-end)",contentCardStart:"var(--gradient-content-card-start)",contentOverlayEnd:"var(--gradient-content-overlay-end)",contentOverlayStart:"var(--gradient-content-overlay-start)",navbarEnd:"var(--gradient-navbar-end)",navbarStart:"var(--gradient-navbar-start)"},radius:{button:"var(--radius-button)",labelCardBottomLeft:"var(--radius-label-card-bottom-left)",labelCardBottomRight:"var(--radius-label-card-bottom-right)",labelCardTopLeft:"var(--radius-label-card-top-left)",labelCardTopRight:"var(--radius-label-card-top-right)",labelFloating:"var(--radius-label-floating)",navItem:"var(--radius-nav-item)",poster:"var(--radius-poster)",seasonListItem:"var(--radius-season-list-item)",seasonPicker:"var(--radius-season-picker)"},spacing:{l:"var(--spacing-l)",m:"var(--spacing-m)",s:"var(--spacing-s)",xl:"var(--spacing-xl)",xl10:"var(--spacing-xl-10)",xl2:"var(--spacing-xl-2)",xl3:"var(--spacing-xl-3)",xl4:"var(--spacing-xl-4)",xl5:"var(--spacing-xl-5)",xl6:"var(--spacing-xl-6)",xl7:"var(--spacing-xl-7)",xl8:"var(--spacing-xl-8)",xl85:"var(--spacing-xl-85)",xl9:"var(--spacing-xl-9)",xs:"var(--spacing-xs)",xxs:"var(--spacing-xxs)"},typeface:{headings:"var(--typeface-headings)",primary:"var(--typeface-primary)"},typography:{base:{fontSize:"var(--typography-base-font-size)"},buttonText:{fontFamily:"var(--typography-button-text-font-family)",fontSize:"var(--typography-button-text-font-size)",fontStyle:"var(--typography-button-text-font-style)",fontWeight:"var(--typography-button-text-font-weight)",letterSpacing:"var(--typography-button-text-letter-spacing)",lineHeight:"var(--typography-button-text-line-height)",textDecoration:"var(--typography-button-text-text-decoration)",textTransform:"var(--typography-button-text-text-transform)"},buttonTextAdditional:{fontFamily:"var(--typography-button-text-additional-font-family)",fontSize:"var(--typography-button-text-additional-font-size)",fontStyle:"var(--typography-button-text-additional-font-style)",fontWeight:"var(--typography-button-text-additional-font-weight)",letterSpacing:"var(--typography-button-text-additional-letter-spacing)",lineHeight:"var(--typography-button-text-additional-line-height)",textDecoration:"var(--typography-button-text-additional-text-decoration)",textTransform:"var(--typography-button-text-additional-text-transform)"},buttonTextSmall:{fontFamily:"var(--typography-button-text-small-font-family)",fontSize:"var(--typography-button-text-small-font-size)",fontStyle:"var(--typography-button-text-small-font-style)",fontWeight:"var(--typography-button-text-small-font-we
5ight)",letterSpacing:"var(--typography-button-text-small-letter-spacing)",lineHeight:"var(--typography-button-text-small-line-height)",textDecoration:"var(--typography-button-text-small-text-decoration)",textTransform:"var(--typography-button-text-small-text-transform)"},contentData:{fontFamily:"var(--typography-content-data-font-family)",fontSize:"var(--typography-content-data-font-size)",fontStyle:"var(--typography-content-data-font-style)",fontWeight:"var(--typography-content-data-font-weight)",letterSpacing:"var(--typography-content-data-letter-spacing)",lineHeight:"var(--typography-content-data-line-height)",textDecoration:"var(--typography-content-data-text-decoration)",textTransform:"var(--typography-content-data-text-transform)"},contentDataParagraph:{fontFamily:"var(--typography-content-data-paragraph-font-family)",fontSize:"var(--typography-content-data-paragraph-font-size)",fontStyle:"var(--typography-content-data-paragraph-font-style)",fontWeight:"var(--typography-content-data-paragraph-font-weight)",letterSpacing:"var(--typography-content-data-paragraph-letter-spacing)",lineHeight:"var(--typography-content-data-paragraph-line-height)",textDecoration:"var(--typography-content-data-paragraph-text-decoration)",textTransform:"var(--typography-content-data-paragraph-text-transform)"},contentDataSmall:{fontFamily:"var(--typography-content-data-small-font-family)",fontSize:"var(--typography-content-data-small-font-size)",fontStyle:"var(--typography-content-data-small-font-style)",fontWeight:"var(--typography-content-data-small-font-weight)",letterSpacing:"var(--typography-content-data-small-letter-spacing)",lineHeight:"var(--typography-content-data-small-line-height)",textDecoration:"var(--typography-content-data-small-text-decoration)",textTransform:"var(--typography-content-data-small-text-transform)"},contentLabel:{fontFamily:"var(--typography-content-label-font-family)",fontSize:"var(--typography-content-label-font-size)",fontStyle:"var(--typography-content-label-font-style)",fontWeight:"var(--typography-content-label-font-weight)",letterSpacing:"var(--typography-content-label-letter-spacing)",lineHeight:"var(--typography-content-label-line-height)",textDecoration:"var(--typography-content-label-text-decoration)",textTransform:"var(--typography-content-label-text-transform)"},contentLabelFloating:{fontFamily:"var(--typography-content-label-floating-font-family)",fontSize:"var(--typography-content-label-floating-font-size)",fontStyle:"var(--typography-content-label-floating-font-style)",fontWeight:"var(--typography-content-label-floating-font-weight)",letterSpacing:"var(--typography-content-label-floating-letter-spacing)",lineHeight:"var(--typography-content-label-floating-line-height)",textDecoration:"var(--typography-content-label-floating-text-decoration)",textTransform:"var(--typography-content-label-floating-text-transform)"},contentLabelSmall:{fontFamily:"var(--typography-content-label-small-font-family)",fontSize:"var(--typography-content-label-small-font-size)",fontStyle:"var(--typography-content-label-small-font-style)",fontWeight:"var(--typography-content-label-small-font-weight)",letterSpacing:"var(--typography-content-label-small-letter-spacing)",lineHeight:"var(--typography-content-label-small-line-height)",textDecoration:"var(--typography-content-label-small-text-decoration)",textTransform:"var(--typography-content-label-small-text-transform)"},contentTitle:{fontFamily:"var(--typography-content-title-font-family)",fontSize:"var(--typography-content-title-font-size)",fontStyle:"var(--typography-content-title-font-style)",fontWeight:"var(--typography-content-title-font-weight)",letterSpacing:"var(--typography-content-title-letter-spacing)",lineHeight:"var(--typography-content-title-line-height)",textDecoration:"var(--typography-content-title-text-decoration)",textTransform:"var(--typography-content-title-text-transform)"},contentTitleLarge:{fontFamily:"var(--typography-content-title-large-font-family)",fontSize:"var(--typography-content-title-large-font-size)",fontStyle:"var(--typography-content-title-large-font-style)",fontWeight:"var(--typography-content-title-large-font-we
5ight)",letterSpacing:"var(--typography-content-title-large-letter-spacing)",lineHeight:"var(--typography-content-title-large-line-height)",textDecoration:"var(--typography-content-title-large-text-decoration)",textTransform:"var(--typography-content-title-large-text-transform)"},contentTitleMedium:{fontFamily:"var(--typography-content-title-medium-font-family)",fontSize:"var(--typography-content-title-medium-font-size)",fontStyle:"var(--typography-content-title-medium-font-style)",fontWeight:"var(--typography-content-title-medium-font-weight)",letterSpacing:"var(--typography-content-title-medium-letter-spacing)",lineHeight:"var(--typography-content-title-medium-line-height)",textDecoration:"var(--typography-content-title-medium-text-decoration)",textTransform:"var(--typography-content-title-medium-text-transform)"},contentTitleSmall:{fontFamily:"var(--typography-content-title-small-font-family)",fontSize:"var(--typography-content-title-small-font-size)",fontStyle:"var(--typography-content-title-small-font-style)",fontWeight:"var(--typography-content-title-small-font-weight)",letterSpacing:"var(--typography-content-title-small-letter-spacing)",lineHeight:"var(--typography-content-title-small-line-height)",textDecoration:"var(--typography-content-title-small-text-decoration)",textTransform:"var(--typography-content-title-small-text-transform)"},contentTitleTiny:{fontFamily:"var(--typography-content-title-tiny-font-family)",fontSize:"var(--typography-content-title-tiny-font-size)",fontStyle:"var(--typography-content-title-tiny-font-style)",fontWeight:"var(--typography-content-title-tiny-font-weight)",letterSpacing:"var(--typography-content-title-tiny-letter-spacing)",lineHeight:"var(--typography-content-title-tiny-line-height)",textDecoration:"var(--typography-content-title-tiny-text-decoration)",textTransform:"var(--typography-content-title-tiny-text-transform)"},headingLarge:{fontFamily:"var(--typography-heading-large-font-family)",fontSize:"var(--typography-heading-large-font-size)",fontStyle:"var(--typography-heading-large-font-style)",fontWeight:"var(--typography-heading-large-font-weight)",letterSpacing:"var(--typography-heading-large-letter-spacing)",lineHeight:"var(--typography-heading-large-line-height)",textDecoration:"var(--typography-heading-large-text-decoration)",textTransform:"var(--typography-heading-large-text-transform)"},headingPrimary:{fontFamily:"var(--typography-heading-primary-font-family)",fontSize:"var(--typography-heading-primary-font-size)",fontStyle:"var(--typography-heading-primary-font-style)",fontWeight:"var(--typography-heading-primary-font-weight)",letterSpacing:"var(--typography-heading-primary-letter-spacing)",lineHeight:"var(--typography-heading-primary-line-height)",textDecoration:"var(--typography-heading-primary-text-decoration)",textTransform:"var(--typography-heading-primary-text-transform)"},headingSecondary:{fontFamily:"var(--typography-heading-secondary-font-family)",fontSize:"var(--typography-heading-secondary-font-size)",fontStyle:"var(--typography-heading-secondary-font-style)",fontWeight:"var(--typography-heading-secondary-font-weight)",letterSpacing:"var(--typography-heading-secondary-letter-spacing)",lineHeight:"var(--typography-heading-secondary-line-height)",textDecoration:"var(--typography-heading-secondary-text-decoration)",textTransform:"var(--typography-heading-secondary-text-transform)"},headingSubHeading:{fontFamily:"var(--typography-heading-sub-heading-font-family)",fontSize:"var(--typography-heading-sub-heading-font-size)",fontStyle:"var(--typography-heading-sub-heading-font-style)",fontWeight:"var(--typography-heading-sub-heading-font-weight)",letterSpacing:"var(--typography-heading-sub-heading-letter-spacing)",lineHeight:"var(--typography-heading-sub-heading-line-height)",textDecoration:"var(--typography-heading-sub-heading-text-decoration)",textTransform:"var(--typography-heading-sub-heading-text-transform)"},headingTertiary:{fontFamily:"var(--typography-heading-tertiary-font-family)",fontSize:"var(--typography-heading-tertiary-font-size)",fontStyle:"var(--typography-heading-tertiary-font-style)",fontWeight:"var(--typography-heading-tertiary-font-weight)",letterSpacing:"var(--typography-heading-tertiary-letter-spacing)",lineHeight:"var(--typography-heading-tertiary-line-height)",textDecoration:"var(--typography-heading-tertiary-text-decoration)",textTransform:"var(--typography-heading-tertiary-text-transform)"},navigationText:{fontFamily:"var(--typography-navigation-text-font-family)",fontSize:"var(--typography-navigation-text-font-size)",fontStyle:"var(--typography-navigation-text-font-style)",fontWeight:"var(--typography-navigation-text-font-we
5ight)",letterSpacing:"var(--typography-navigation-text-letter-spacing)",lineHeight:"var(--typography-navigation-text-line-height)",textDecoration:"var(--typography-navigation-text-text-decoration)",textTransform:"var(--typography-navigation-text-text-transform)"},navigationTextEmphasis:{fontFamily:"var(--typography-navigation-text-emphasis-font-family)",fontSize:"var(--typography-navigation-text-emphasis-font-size)",fontStyle:"var(--typography-navigation-text-emphasis-font-style)",fontWeight:"var(--typography-navigation-text-emphasis-font-weight)",letterSpacing:"var(--typography-navigation-text-emphasis-letter-spacing)",lineHeight:"var(--typography-navigation-text-emphasis-line-height)",textDecoration:"var(--typography-navigation-text-emphasis-text-decoration)",textTransform:"var(--typography-navigation-text-emphasis-text-transform)"},tabBarText:{fontFamily:"var(--typography-tab-bar-text-font-family)",fontSize:"var(--typography-tab-bar-text-font-size)",fontStyle:"var(--typography-tab-bar-text-font-style)",fontWeight:"var(--typography-tab-bar-text-font-weight)",letterSpacing:"var(--typography-tab-bar-text-letter-spacing)",lineHeight:"var(--typography-tab-bar-text-line-height)",textDecoration:"var(--typography-tab-bar-text-text-decoration)",textTransform:"var(--typography-tab-bar-text-text-transform)"},tabBarTextEmphasis:{fontFamily:"var(--typography-tab-bar-text-emphasis-font-family)",fontSize:"var(--typography-tab-bar-text-emphasis-font-size)",fontStyle:"var(--typography-tab-bar-text-emphasis-font-style)",fontWeight:"var(--typography-tab-bar-text-emphasis-font-weight)",letterSpacing:"var(--typography-tab-bar-text-emphasis-letter-spacing)",lineHeight:"var(--typography-tab-bar-text-emphasis-line-height)",textDecoration:"var(--typography-tab-bar-text-emphasis-text-decoration)",textTransform:"var(--typography-tab-bar-text-emphasis-text-transform)"},tabText:{fontFamily:"var(--typography-tab-text-font-family)",fontSize:"var(--typography-tab-text-font-size)",fontStyle:"var(--typography-tab-text-font-style)",fontWeight:"var(--typography-tab-text-font-weight)",letterSpacing:"var(--typography-tab-text-letter-spacing)",lineHeight:"var(--typography-tab-text-line-height)",textDecoration:"var(--typography-tab-text-text-decoration)",textTransform:"var(--typography-tab-text-text-transform)"},tabTextEmphasis:{fontFamily:"var(--typography-tab-text-emphasis-font-family)",fontSize:"var(--typography-tab-text-emphasis-font-size)",fontStyle:"var(--typography-tab-text-emphasis-font-style)",fontWeight:"var(--typography-tab-text-emphasis-font-weight)",letterSpacing:"var(--typography-tab-text-emphasis-letter-spacing)",lineHeight:"var(--typography-tab-text-emphasis-line-height)",textDecoration:"var(--typography-tab-text-emphasis-text-decoration)",textTransform:"var(--typography-tab-text-emphasis-text-transform)"},textEditorial:{fontFamily:"var(--typography-text-editorial-font-family)",fontSize:"var(--typography-text-editorial-font-size)",fontStyle:"var(--typography-text-editorial-font-style)",fontWeight:"var(--typography-text-editorial-font-weight)",letterSpacing:"var(--typography-text-editorial-letter-spacing)",lineHeight:"var(--typography-text-editorial-line-height)",textDecoration:"var(--typography-text-editorial-text-decoration)",textTransform:"var(--typography-text-editorial-text-transform)"},textFootnote:{fontFamily:"var(--typography-text-footnote-font-family)",fontSize:"var(--typography-text-footnote-font-size)",fontStyle:"var(--typography-text-footnote-font-style)",fontWeight:"var(--typography-text-footnote-font-weight)",letterSpacing:"var(--typography-text-footnote-letter-spacing)",lineHeight:"var(--typography-text-footnote-line-height)",textDecoration:"var(--typography-text-footnote-text-decoration)",textTransform:"var(--typography-text-footnote-text-transform)"},textLarge:{fontFamily:"var(--typography-text-large-font-family)",fontSize:"var(--typography-text-large-font-size)",fontStyle:"var(--typography-text-large-font-style)",fontWeight:"var(--typography-text-large-font-weight)",letterSpacing:"var(--typography-text-large-letter-spacing)",lineHeight:"var(--typography-text-large-line-height)",textDecoration:"var(--typography-text-large-text-decoration)",textTransform:"var(--typography-text-large-text-transform)"},textLink:{fontFamily:"var(--typography-text-link-font-family)",fontSize:"var(--typography-text-link-font-size)",fontStyle:"var(--typography-text-link-font-style)",fontWeight:"var(--typography-text-link-font-weight)",letterSpacing:"var(--typography-text-link-letter-spacing)",lineHeight:"var(--typography-text-link-line-height)",textDecoration:"var(--typography-text-link-text-decoration)",textTransform:"var(--typography-text-link-text-transform)"},textLinkUnderlined:{fontFamily:"var(--typography-text-link-underlined-font-family)",fontSize:"var(--typography-text-link-underlined-font-size)",fontStyle:"var(--typography-text-link-underlined-font-style)",fontWeight:"var(--typography-text-link-underlined-font-weight)",letterSpacing:"var(--typography-text-link-underlined-letter-spacing)",lineHeight:"var(--typography-text-link-underlined-line-height)",textDecoration:"var(--typography-text-link-underlined-text-decoration)",textTransform:"var(--typography-text-link-underlined-text-transform)"},textOtt:{fontFamily:"var(--typography-text-ott-font-family)",fontSize:"var(--typography-text-ott-font-size)",fontStyle:"var(--typography-text-ott-font-style)",fontWeight:"var(--typography-text-ott-font-we
5ight)",letterSpacing:"var(--typography-text-ott-letter-spacing)",lineHeight:"var(--typography-text-ott-line-height)",textDecoration:"var(--typography-text-ott-text-decoration)",textTransform:"var(--typography-text-ott-text-transform)"},textPrimary:{fontFamily:"var(--typography-text-primary-font-family)",fontSize:"var(--typography-text-primary-font-size)",fontStyle:"var(--typography-text-primary-font-style)",fontWeight:"var(--typography-text-primary-font-weight)",letterSpacing:"var(--typography-text-primary-letter-spacing)",lineHeight:"var(--typography-text-primary-line-height)",textDecoration:"var(--typography-text-primary-text-decoration)",textTransform:"var(--typography-text-primary-text-transform)"},textPrimaryEmphasis:{fontFamily:"var(--typography-text-primary-emphasis-font-family)",fontSize:"var(--typography-text-primary-emphasis-font-size)",fontStyle:"var(--typography-text-primary-emphasis-font-style)",fontWeight:"var(--typography-text-primary-emphasis-font-weight)",letterSpacing:"var(--typography-text-primary-emphasis-letter-spacing)",lineHeight:"var(--typography-text-primary-emphasis-line-height)",textDecoration:"var(--typography-text-primary-emphasis-text-decoration)",textTransform:"var(--typography-text-primary-emphasis-text-transform)"},textSecondary:{fontFamily:"var(--typography-text-secondary-font-family)",fontSize:"var(--typography-text-secondary-font-size)",fontStyle:"var(--typography-text-secondary-font-style)",fontWeight:"var(--typography-text-secondary-font-weight)",letterSpacing:"var(--typography-text-secondary-letter-spacing)",lineHeight:"var(--typography-text-secondary-line-height)",textDecoration:"var(--typography-text-secondary-text-decoration)",textTransform:"var(--typography-text-secondary-text-transform)"},textSecondaryEmphasis:{fontFamily:"var(--typography-text-secondary-emphasis-font-family)",fontSize:"var(--typography-text-secondary-emphasis-font-size)",fontStyle:"var(--typography-text-secondary-emphasis-font-style)",fontWeight:"var(--typography-text-secondary-emphasis-font-weight)",letterSpacing:"var(--typography-text-secondary-emphasis-letter-spacing)",lineHeight:"var(--typography-text-secondary-emphasis-line-height)",textDecoration:"var(--typography-text-secondary-emphasis-text-decoration)",textTransform:"var(--typography-text-secondary-emphasis-text-transform)"}}},_=new Map([["colorAccentBrand",O.color.accent.brand],["colorAccentIconEpgTimeIndicator",O.color.accent.iconEpgTimeIndicator],["colorAccentIconRecording",O.color.accent.iconRecording],["colorBackgroundLight",O.color.background.light],["colorBackgroundOverlay40",O.color.background.overlay40],["colorBackgroundOverlay60",O.color.background.overlay60],["colorBackgroundOverlay80",O.color.background.overlay80],["colorBackgroundPrimary",O.color.background.primary],["colorBackgroundSecondary",O.color.background.secondary],["colorBackgroundSurface",O.color.background.surface],["colorBackgroundSurfaceDark",O.color.background.surfaceDark],["colorBackgroundSurfacePlayer",O.color.background.surfacePlayer],["colorBackgroundTertiary",O.color.background.tertiary],["colorBorderBackgroundSurface",O.color.border.backgroundSurface],["colorBorderButtonGhostFocus",O.color.border.buttonGhostFocus],["colorBorderButtonPayFocus",O.color.border.buttonPayFocus],["colorBorderButtonPrimaryFocus",O.color.border.buttonPrimaryFocus],["colorBorderButtonSecondaryFocus",O.color.border.buttonSecondaryFocus],["colorBorderInputfieldActive",O.color.border.inputfieldActive],["colorBorderInputfieldDefault",O.color.border.inputfieldDefault],["colorBorderInputfieldDisabled",O.color.border.inputfieldDisabled],["colorBorderInputfieldError",O.color.border.inputfieldError],["colorBorderInputfieldHover",O.color.border.inputfieldHover],["colorBorderNewDummyColorInBorder",O.color.border.newDummyColorInBorder],["colorBorderSeparator",O.color.border.separator],["colorBorderSeparatorStrong",O.color.border.separatorStrong],["colorBorderSeparatorWeak",O.color.border.separatorWeak],["colorBorderSubtle",O.color.border.subtle],["colorButtonFloatingDefault",O.color.button.floatingDefault],["colorButtonGhostDefault",O.color.button.ghostDefault],["colorButtonGhostDisabled",O.color.button.ghostDisabled],["colorButtonGhostFocus",O.color.button.ghostFocus],["colorButtonGhostHover",O.color.button.ghostHover],["colorButtonGhostPressed",O.color.button.ghostPressed],["colorButtonPayDefault",O.color.button.payDefault],["colorButtonPayDisabled",O.color.button.payDisabled],["colorButtonPayF
5ocus",O.color.button.payFocus],["colorButtonPayHover",O.color.button.payHover],["colorButtonPayPressed",O.color.button.payPressed],["colorButtonPrimaryDefault",O.color.button.primaryDefault],["colorButtonPrimaryDisabled",O.color.button.primaryDisabled],["colorButtonPrimaryFocus",O.color.button.primaryFocus],["colorButtonPrimaryHover",O.color.button.primaryHover],["colorButtonPrimaryPressed",O.color.button.primaryPressed],["colorButtonSecondaryDefault",O.color.button.secondaryDefault],["colorButtonSecondaryDisabled",O.color.button.secondaryDisabled],["colorButtonSecondaryFocus",O.color.button.secondaryFocus],["colorButtonSecondaryHover",O.color.button.secondaryHover],["colorButtonSecondaryPressed",O.color.button.secondaryPressed],["colorContentLabelAge",O.color.content.labelAge],["colorContentLabelAirtime",O.color.content.labelAirtime],["colorContentLabelAnnouncement",O.color.content.labelAnnouncement],["colorContentLabelBackgroundDefault",O.color.content.labelBackgroundDefault],["colorContentLabelDisappears",O.color.content.labelDisappears],["colorContentLabelFreeview",O.color.content.labelFreeview],["colorContentLabelLive",O.color.content.labelLive],["colorContentLabelPrice",O.color.content.labelPrice],["colorContentLabelQuality",O.color.content.labelQuality],["colorContentLabelRecurring",O.color.content.labelRecurring],["colorContentLabelRented",O.color.content.labelRented],["colorContentLabelTrailer",O.color.content.labelTrailer],["colorContentLabelUnavailable",O.color.content.labelUnavailable],["colorContentProgressAd",O.color.content.progressAd],["colorContentProgressBuffered",O.color.content.progressBuffered],["colorContentProgressCurrentLiveDiff",O.color.content.progressCurrentLiveDiff],["colorContentProgressDuration",O.color.content.progressDuration],["colorContentProgressElapsed",O.color.content.progressElapsed],["colorContentProgressPoints",O.color.content.progressPoints],["colorGradientAvatarStrokeEnd",O.color.gradient.avatarStrokeEnd],["colorGradientAvatarStrokeStart",O.color.gradient.avatarStrokeStart],["colorGradientContentCardEnd",O.color.gradient.contentCardEnd],["colorGradientContentCardStart",O.color.gradient.contentCardStart],["colorGradientContentOverlayEnd",O.color.gradient.contentOverlayEnd],["colorGradientContentOverlayStart",O.color.gradient.contentOverlayStart],["colorGradientNavbarEnd",O.color.gradient.navbarEnd],["colorGradientNavbarStart",O.color.gradient.navbarStart],["colorIconAttention",O.color.icon.attention],["colorIconInformative",O.color.icon.informative],["colorIconLabelDefault",O.color.icon.labelDefault],["colorIconNegative",O.color.icon.negative],["colorIconPositive",O.color.icon.positive],["colorIconPrimary",O.color.icon.primary],["colorIconPrimaryDark",O.color.icon.primaryDark],["colorIndicatorDotActive",O.color.indicator.dotActive],["colorIndicatorDotDefault",O.color.indicator.dotDefault],["colorIndicatorSpinner",O.color.indicator.spinner],["colorInfoDialogueAttentionBackgroundBold",O.color.infoDialogue.attentionBackgroundBold],["colorInfoDialogueAttentionBackgroundSubtle",O.color.infoDialogue.attentionBackgroundSubtle],["colorInfoDialogueErrorBackgroundDefault",O.color.infoDialogue.errorBackgroundDefault],["colorInfoDialogueHelpfulBackgroundDefault",O.color.infoDialogue.helpfulBackgroundDefault],["colorInfoDialogueImportantBackgroun
5dDefault",O.color.infoDialogue.importantBackgroundDefault],["colorInfoDialogueInformativeBackgroundBold",O.color.infoDialogue.informativeBackgroundBold],["colorInfoDialogueInformativeBackgroundSubtle",O.color.infoDialogue.informativeBackgroundSubtle],["colorInfoDialogueNegativeBackgroundBold",O.color.infoDialogue.negativeBackgroundBold],["colorInfoDialogueNegativeBackgroundSubtle",O.color.infoDialogue.negativeBackgroundSubtle],["colorInfoDialogueNeutralBackgroundBold",O.color.infoDialogue.neutralBackgroundBold],["colorInfoDialogueNeutralBackgroundDefault",O.color.infoDialogue.neutralBackgroundDefault],["colorInfoDialoguePositiveBackgroundBold",O.color.infoDialogue.positiveBackgroundBold],["colorInfoDialoguePositiveBackgroundSubtle",O.color.infoDialogue.positiveBackgroundSubtle],["colorInfoDialogueSuccessBackgroundDefault",O.color.infoDialogue.successBackgroundDefault],["colorNavigationCurrentPrimary",O.color.navigation.currentPrimary],["colorNavigationCurrentSecondary",O.color.navigation.currentSecondary],["colorNavigationDefault",O.color.navigation.default],["colorNavigationDefaultGhost",O.color.navigation.defaultGhost],["colorRemoteCurrent",O.color.remote.current],["colorRemoteDefault",O.color.remote.default],["colorRemoteFocus",O.color.remote.focus],["colorRemoteFocusSoft",O.color.remote.focusSoft],["colorRemoteFocusSoftOpaque",O.color.remote.focusSoftOpaque],["colorRemoteGhost",O.color.remote.ghost],["colorRemoteHint",O.color.remote.hint],["colorTextDisabled",O.color.text.disabled],["colorTextDisabledDark",O.color.text.disabledDark],["colorTextDummy",O.color.text.dummy],["colorTextError",O.color.text.error],["colorTextLabelTextDefault",O.color.text.labelTextDefault],["colorTextPriceDiscount",O.color.text.priceDiscount],["colorTextPriceDiscountDark",O.color.text.priceDiscountDark],["colorTextPrimary",O.color.text.primary],["colorTextPrimaryDark",O.color.text.primaryDark],["colorTextSecondary",O.color.text.secondary],["colorTextSecondaryDark",O.color.text.secondaryDark],["colorTextSuccess",O.color.text.success],["colorTextTertiary",O.color.text.tertiary],["colorTextTertiaryDark",O.color.text.tertiaryDark]]);e.s(["getColorFromToken",0,function(e){if(_.has(e))return _.get(e);console.error(`getColorFromToken: Unable to map "${e}" to a color token name.`)}],541543);let I=new Map([["add","Add"],["airplayConnected","AirplayConnected"],["airplayDisconnected","AirplayDisconnected"],["alertFill","AlertFill"],["alert","Alert"],["apps","Apps"],["audioDescription","AudioDescription"],["backAndroid","BackAndroid"],["backspace","Backspace"],["calendar","Calendar"],["cart","Cart"],["categories","Categories"],["changeUser","ChangeUser"],["channels","Channels"],["checkFill","CheckFill"],["checkOutline","CheckOutline"],["check","Check"],["chevronDown","ChevronDown"],["chevronLeft","ChevronLeft"],["chevronRight","ChevronRight"],["chevronUp","ChevronUp"],["chromecastFill","ChromecastFill"],["chromecast","Chromecast"],["closeFill","CloseFill"],["close","Close"],["downloadComplete","DownloadComplete"],["download","Download"],["dummy","Dummy"],["edit","Edit"],["external","External"],["family","Family"],["feedback","Feedback"],["filter","Filter"],["flipToLandscape","FlipToLandscape"],["flipToPortrait","FlipToPortrait"],["forward","Forward"],["freeviewFilled","FreeviewFilled"],["freeview","Freeview"],["gift","Gift"],["happy","Happy"],["heartFill","HeartFill"],["heart","Heart"],["helpFill","HelpFill"],["help","Help"],["home","Home"],["infoFill","InfoFill"],["info","Info"],["jumpToLiveOutline","JumpToLiveOutline"],["jumpToLive","JumpToLive"],["kids","Kids"],["language","Language"],["laptop","Laptop"],["link","Link"],["lockLocked","LockLocked"],["lockOpen","LockOpen"],["login","Login"],["logout","Logout"],["maximize","Maximize"],["menu","Menu"],["minimize","Minimize"],["miniplayer","Miniplayer"],["more","More"],["movie","Movie"],["myContent","MyContent"],["mylistAdd","MylistAdd"],["mylistAdded","MylistAdded"],["networkUnavailable","NetworkUnavailable"],["news","News"],["packageMix","PackageMix"],["pauseFill","PauseFill"],["pause","Pause"],["playFill","PlayFill"],["playPause","PlayPause"],["play","Play"],["programGuide","ProgramGuide"],["protect","Protect"],["protected","Protected"],["pushNotifications","PushNotifications"],["pvr","Pvr"],["recordNav","RecordNav"],["recordSeriesNav","RecordSeriesNav"],["recordingFill","RecordingFill"],["recordingScheduled","RecordingScheduled"],["recordingStop","RecordingStop"],["refresh","Refresh"],["reminderFill","ReminderFill"],["reminder","Reminder"],["remove","Remove"],["replay","Replay"],["rewind","Rewind"],["sad","S
5ad"],["search","Search"],["seen","Seen"],["selectionMenu","SelectionMenu"],["seriesRecordingFill","SeriesRecordingFill"],["seriesRecordingScheduled","SeriesRecordingScheduled"],["series","Series"],["settings","Settings"],["shareAndroid","ShareAndroid"],["shareIos","ShareIos"],["signLanguage","SignLanguage"],["smartphone","Smartphone"],["snowflake","Snowflake"],["sortingDown","SortingDown"],["sortingUp","SortingUp"],["soundHigh","SoundHigh"],["soundLow","SoundLow"],["soundMedium","SoundMedium"],["soundOff","SoundOff"],["space","Space"],["sport","Sport"],["startOverOutline","StartOverOutline"],["startOver","StartOver"],["stopProtect","StopProtect"],["store","Store"],["subtextOff","SubtextOff"],["subtext","Subtext"],["tablet","Tablet"],["thumbnailsGrid","ThumbnailsGrid"],["thumbnailsList","ThumbnailsList"],["thumbnailsRow","ThumbnailsRow"],["thumbnailsSingleRow","ThumbnailsSingleRow"],["torch","Torch"],["trailer","Trailer"],["tvLive","TvLive"],["tv","Tv"],["tv4","Tv4"],["tvGuide","TvGuide"],["unseen","Unseen"],["upsell","Upsell"],["user","User"],["warningFill","WarningFill"],["warning","Warning"]]);e.s(["getIconNameFromToken",0,function(e){if(I.has(e))return I.get(e);console.error(`getIconNameFromToken: Unable to map "${e}" to an icon name.`)}],742888);var A=e.i(852925);let N=(t=Object.assign({
5"../../generated/icons/Add.tsx":()=>e.A(885657),
5"../../generated/icons/AirplayConnected.tsx":()=>e.A(616587),
5"../../generated/icons/AirplayDisconnected.tsx":()=>e.A(213136),
5"../../generated/icons/Alert.tsx":()=>e.A(275208),
5"../../generated/icons/AlertFill.tsx":()=>e.A(227166),
5"../../generated/icons/Apps.tsx":()=>e.A(497387),
5"../../generated/icons/AudioDescription.tsx":()=>e.A(482654),
5"../../generated/icons/BackAndroid.tsx":()=>e.A(575526),
5"../../generated/icons/Backspace.tsx":()=>e.A(884002),
5"../../generated/icons/Calendar.tsx":()=>e.A(507476),
5"../../generated/icons/Cart.tsx":()=>e.A(603090),
5"../../generated/icons/Categories.tsx":()=>e.A(532413),
5"../../generated/icons/ChangeUser.tsx":()=>e.A(922145),
5"../../generated/icons/Channels.tsx":()=>e.A(522342),
5"../../generated/icons/Check.tsx":()=>e.A(299070),
5"../../generated/icons/CheckFill.tsx":()=>e.A(722357),
5"../../generated/icons/CheckOutline.tsx":()=>e.A(268192),
5"../../generated/icons/ChevronDown.tsx":()=>e.A(684742),
5"../../generated/icons/ChevronLeft.tsx":()=>e.A(871425),
5"../../generated/icons/ChevronRight.tsx":()=>e.A(301174),
5"../../generated/icons/ChevronUp.tsx":()=>e.A(612271),
5"../../generated/icons/Chromecast.tsx":()=>e.A(726785),
5"../../generated/icons/ChromecastFill.tsx":()=>e.A(454560),
5"../../generated/icons/Close.tsx":()=>e.A(565005),
5"../../generated/icons/CloseFill.tsx":()=>e.A(269203),
5"../../generated/icons/Download.tsx":()=>e.A(608013),
5"../../generated/icons/DownloadComplete.tsx":()=>e.A(158920),
5"../../generated/icons/Dummy.tsx":()=>e.A(76540),
5"../../generated/icons/Edit.tsx":()=>e.A(760096),
5"../../generated/icons/External.tsx":()=>e.A(766915),
5"../../generated/icons/Family.tsx":()=>e.A(598702),
5"../../generated/icons/Feedback.tsx":()=>e.A(486560),
5"../../generated/icons/Filter.tsx":()=>e.A(385834),
5"../../generated/icons/FlagDanish.tsx":()=>e.A(449577),
5"../../generated/icons/FlagEnglish.tsx":()=>e.A(30744),
5"../../generated/icons/FlagEstionian.tsx":()=>e.A(475421),
5"../../generated/icons/FlagFinnish.tsx":()=>e.A(482864),
5"../../generated/icons/FlagLithuanian.tsx":()=>e.A(172184),
5"../../generated/icons/FlagNorwegian.tsx":()=>e.A(788007),
5"../../generated/icons/FlagSwedish.tsx":()=>e.A(468170),
5"../../generated/icons/FlipToLandscape.tsx":()=>e.A(110312),
5"../../generated/icons/FlipToPortrait.tsx":()=>e.A(499716),
5"../../generated/icons/Forward.tsx":()=>e.A(792720),
5"../../generated/icons/Freeview.tsx":()=>e.A(69922),
5"../../generated/icons/FreeviewFilled.tsx":()=>e.A(624559),
5"../../generated/icons/Gift.tsx":()=>e.A(555971),
5"../../generated/icons/Happy.tsx":()=>e.A(672919),
5"../../generated/icons/Heart.tsx":()=>e.A(384384),
5"../../generated/icons/HeartFill.tsx":()=>e.A(181870),
5"../../generated/icons/Help.tsx":()=>e.A(378313),
5"../../generated/icons/HelpFill.tsx":()=>e.A(362458),
5"../../generated/icons/Home.tsx":()=>e.A(249205),
5"../../generated/icons/Info.tsx":()=>e.A(513024),
5"../../generated/icons/InfoFill.tsx":()=>e.A(628710),
5"../../generated/icons/JumpToLive.tsx":()=>e.A(33080),
5"../../generated/icons/JumpToLiveOutline.tsx":()=>e.A(466809),
5"../../generated/icons/Kids.tsx":()=>e.A(504559),
5"../../generated/icons/Language.tsx":()=>e.A(779238),
5"../../generated/icons/Laptop.tsx":()=>e.A(509487),
5"../../generated/icons/Link.tsx":()=>e.A(214905),
5"../../generated/icons/LockLocked.tsx":()=>e.A(750347),
5"../../generated/icons/LockOpen.tsx":()=>e.A(738032),
5"../../generated/icons/Login.tsx":()=>e.A(447259),
5"../../generated/icons/LogoBankId.tsx":()=>e.A(256726),
5"../../generated/icons/LogoFacebook.tsx":()=>e.A(867142),
5"../../generated/icons/LogoHorizontalDk.tsx":()=>e.A(932208),
5"../../generated/icons/LogoHorizontalFi.tsx":()=>e.A(636637),
5"../../generated/icons/LogoHorizontalNo.tsx":()=>e.A(415615),
5"../../generated/icons/LogoHorizontalSe.tsx":()=>e.A(669270),
5"../../generated/icons/LogoImdb.tsx":()=>e.A(172495),
5"../../generated/icons/LogoInstagram.tsx":()=>e.A(598695),
5"../../generated/icons/LogoLiiga.tsx":()=>e.A(132096),
5"../../generated/icons/LogoNetflix.tsx":()=>e.A(324230),
5"../../generated/icons/LogoSquare.tsx":()=>e.A(956148),
5"../../generated/icons/LogoTelia.tsx":()=>e.A(250554),
5"../../generated/icons/LogoTeliaWhite.tsx":()=>e.A(139825),
5"../../generated/icons/LogoTv4.tsx":()=>e.A(468028),
5"../../generated/icons/LogoTwitter.tsx":()=>e.A(869112),
5"../../generated/icons/LogoYoutube.tsx":()=>e.A(2940),
5"../../generated/icons/Logout.tsx":()=>e.A(967693),
5"../../generated/icons/Maximize.tsx":()=>e.A(632394),
5"../../generated/icons/Menu.tsx":()=>e.A(242701),
5"../../generated/icons/Minimize.tsx":()=>e.A(959604),
5"../../generated/icons/Miniplayer.tsx":()=>e.A(9104),
5"../../generated/icons/More.tsx":()=>e.A(348521),
5"../../generated/icons/Movie.tsx":()=>e.A(82992),
5"../../generated/icons/MyContent.tsx":()=>e.A(842549),
5"../../generated/icons/MylistAdd.tsx":()=>e.A(324509),
5"../../generated/icons/MylistAdded.tsx":()=>e.A(595676),
5"../../generated/icons/NetworkUnavailable.tsx":()=>e.A(172146),
5"../../generated/icons/News.tsx":()=>e.A(75182),
5"../../generated/icons/PackageMix.tsx":()=>e.A(550705),
5"../../generated/icons/Pause.tsx":()=>e.A(966948),
5"../../generated/icons/PauseFill.tsx":()=>e.A(96495),
5"../../generated/icons/Play.tsx":()=>e.A(814274),
5"../../generated/icons/PlayFill.tsx":()=>e.A(423764),
5"../../generated/icons/PlayPause.tsx":()=>e.A(465477),
5"../../generated/icons/ProgramGuide.tsx":()=>e.A(221906),
5"../../generated/icons/Protect.tsx":()=>e.A(745773),
5"../../generated/icons/Protected.tsx":()=>e.A(549685),
5"../../generated/icons/PushNotifications.tsx":()=>e.A(884688),
5"../../generated/icons/Pvr.tsx":()=>e.A(211391),
5"../../generated/icons/RatingSymbolFi12.tsx":()=>e.A(605768),
5"../../generated/icons/RatingSymbolFi16.tsx":()=>e.A(733648),
5"../../generated/icons/RatingSymbolFi18.tsx":()=>e.A(567960),
5"../../generated/icons/RatingSymbolFi7.tsx":()=>e.A(631479),
5"../../generated/icons/RatingSymbolFiAllAgesFinnish.tsx":()=>e.A(634624),
5"../../generated/icons/RatingSymbolFiAllAgesSwedish.tsx":()=>e.A(545884),
5"../../generated/icons/RatingSymbolFiAnxiety.tsx":()=>e.A(440779),
5"../../generated/icons/RatingSymbolFiIntoxicants.tsx":()=>e.A(959028),
5"../../generated/icons/RatingSymbolFiSex.tsx":()=>e.A(615251),
5"../../generated/icons/RatingSymbolFiViolence.tsx":()=>e.A(795172),
5"../../generated/icons/RecordNav.tsx":()=>e.A(262732),
5"../../generated/icons/RecordSeriesNav.tsx":()=>e.A(562420),
5"../../generated/icons/RecordingFill.tsx":()=>e.A(393397),
5"../../generated/icons/RecordingScheduled.tsx":()=>e.A(131),
5"../../generated/icons/RecordingStop.tsx":()=>e.A(643378),
5"../../generated/icons/Refresh.tsx":()=>e.A(895874),
5"../../generated/icons/Reminder.tsx":()=>e.A(857026),
5"../../generated/icons/ReminderFill.tsx":()=>e.A(298640),
5"../../generated/icons/Remove.tsx":()=>e.A(130508),
5"../../generated/icons/Replay.tsx":()=>e.A(871518),
5"../../generated/icons/Rewind.tsx":()=>e.A(277227),
5"../../generated/icons/Sad.tsx":()=>e.A(777697),
5"../../generated/icons/Search.tsx":()=>e.A(899944),
5"../../generated/icons/Seen.tsx":()=>e.A(60423),
5"../../generated/icons/SelectionMenu.tsx":()=>e.A(812098),
5"../../generated/icons/Series.tsx":()=>e.A(925641),
5"../../generated/icons/SeriesRecordingFill.tsx":()=>e.A(638203),
5"../../generated/icons/SeriesRecordingScheduled.tsx":()=>e.A(293751),
5"../../generated/icons/Settings.tsx":()=>e.A(17286),
5"../../generated/icons/ShareAndroid.tsx":()=>e.A(699727),
5"../../generated/icons/ShareIos.tsx":()=>e.A(994032),
5"../../generated/icons/SignLanguage.tsx":()=>e.A(376551),
5"../../generated/icons/Smartphone.tsx":()=>e.A(43873),
5"../../generated/icons/Snowflake.tsx":()=>e.A(180995),
5"../../generated/icons/SortingDown.tsx":()=>e.A(387955),
5"../../generated/icons/SortingUp.tsx":()=>e.A(788191),
5"../../generated/icons/SoundHigh.tsx":()=>e.A(320662),
5"../../generated/icons/SoundLow.tsx":()=>e.A(188815),
5"../../generated/icons/SoundMedium.tsx":()=>e.A(968488),
5"../../generated/icons/SoundOff.tsx":()=>e.A(762884),
5"../../generated/icons/Space.tsx":()=>e.A(277916),
5"../../generated/icons/Spinner.tsx":()=>e.A(252724),
5"../../generated/icons/Sport.tsx":()=>e.A(149326),
5"../../generated/icons/StartOver.tsx":()=>e.A(955713),
5"../../generated/icons/StartOverOutline.tsx":()=>e.A(893909),
5"../../generated/icons/StopProtect.tsx":()=>e.A(347211),
5"../../generated/icons/Store.tsx":()=>e.A(436),
5"../../generated/icons/Subtext.tsx":()=>e.A(258913),
5"../../generated/icons/SubtextOff.tsx":()=>e.A(266101),
5"../../generated/icons/Tablet.tsx":()=>e.A(514686),
5"../../generated/icons/ThumbnailsGrid.tsx":()=>e.A(319074),
5"../../generated/icons/ThumbnailsList.tsx":()=>e.A(389063),
5"../../generated/icons/ThumbnailsRow.tsx":()=>e.A(632939),
5"../../generated/icons/ThumbnailsSingleRow.tsx":()=>e.A(975047),
5"../../generated/icons/Top1.tsx":()=>e.A(545489),
5"../../generated/icons/Top10.tsx":()=>e.A(234897),
5"../../generated/icons/Top2.tsx":()=>e.A(264105),
5"../../generated/icons/Top3.tsx":()=>e.A(427777),
5"../../generated/icons/Top4.tsx":()=>e.A(743916),
5"../../generated/icons/Top5.tsx":()=>e.A(927219),
5"../../generated/icons/Top6.tsx":()=>e.A(338739),
5"../../generated/icons/Top7.tsx":()=>e.A(988519),
5"../../generated/icons/Top8.tsx":()=>e.A(459454),
5"../../generated/icons/Top9.tsx":()=>e.A(284143),
5"../../generated/icons/Torch.tsx":()=>e.A(350341),
5"../../generated/icons/Trailer.tsx":()=>e.A(367279),
5"../../generated/icons/Tv.tsx":()=>e.A(84384),
5"../../generated/icons/Tv4.tsx":()=>e.A(454004),
5"../../generated/icons/TvGuide.tsx":()=>e.A(764928),
5"../../generated/icons/TvLive.tsx":()=>e.A(233553),
5"../../generated/icons/Unseen.tsx":()=>e.A(542277),
5"../../generated/icons/Upsell.tsx":()=>e.A(966192),
5"../../generated/icons/User.tsx":()=>e.A(269072),
5"../../generated/icons/Warning.tsx":()=>e.A(132063),
5"../../generated/icons/WarningFill.tsx":()=>e.A(6225)
5}),e=>{let r=Object.entries(t).find(([t])=>t.endsWith(e));if(!r)throw Error(`Module ${e} not found!`);return r[1]()}),P=({name:e,...t})=>{let[r,n]=(0,d.useState)(null);return(0,d.useEffect)(()=>{N(`icons/${e}.tsx`).then(e=>{n(()=>e.default)}).catch(t=>{console.error(`Failed to load icon: ${e}`,t),n(()=>null)})},[e]),r?(0,A.jsx)(r,{...t}):null},R=(0,b.css)("@font-face{font-family:'Telia Sans Heading';font-weight:400;font-style:normal;src:url('/fonts/telia-sans-heading/woff2/TeliaSansHeading-Heading.woff2')\n        format('woff2'),url('/fonts/telia-sans-heading/woff/TeliaSansHeading-Heading.woff')\n        format('woff');}@font-face{font-family:'Telia Sans';font-weight:400;font-style:normal;src:url('/fonts/telia-sans/woff2/TeliaSans-Regular.woff2') format('woff2'),url('/fonts/telia-sans/woff/TeliaSans-Regular.woff') format('woff');}@font-face{font-family:'Telia Sans';font-weight:400;font-style:italic;src:url('/fonts/telia-sans/woff2/TeliaSans-RegularItalic.woff2')\n        format('woff2'),url('/fonts/telia-sans/woff/TeliaSans-RegularItalic.woff') format('woff');}@font-face{font-family:'Telia Sans';font-weight:500;font-style:normal;src:url('/fonts/telia-sans/woff2/TeliaSans-Medium.woff2') format('woff2'),url('/fonts/telia-sans/woff/TeliaSans-Medium.woff') format('woff');}@font-face{font-family:'Telia Sans';font-weight:500;font-style:italic;src:url('/fonts/telia-sans/woff2/TeliaSans-MediumItalic.woff2')\n        format('woff2'),url('/fonts/telia-sans/woff/TeliaSans-MediumItalic.woff') format('woff');}@font-face{font-family:'Telia Sans';font-weight:700;font-style:normal;src:url('/fonts/telia-sans/woff2/TeliaSans-Bold.woff2') format('woff2'),url('/fonts/telia-sans/woff/TeliaSans-Bold.woff') format('woff');}@font-face{font-family:'Telia Sans';font-weight:700;font-style:italic;src:url('/fonts/telia-sans/woff2/TeliaSans-BoldItalic.woff2') format('woff2'),url('/fonts/telia-sans/woff/TeliaSans-BoldItalic.woff') format('woff');}");function D({desc:e,name:t,role:r="img",title:n,...i}){let{desc:o,descId:a,title:s,titleId:l}=(0,d.useMemo)(()=>(({desc:e,prefix:t,title:r})=>{let n=r?w(`${t}-title`):"";return{desc:e,descId:e?w(`${t}-description`):"",title:r,titleId:n}})({desc:e,prefix:t,title:n}),[t,n,e]);return(0,A.jsxs)(P,{...i,"aria-describedby":a||void 0,"aria-labelledby":l||void 0,name:t,role:r,children:[s?(0,A.jsx)("title",{id:l,children:s}):null,o?(0,A.jsx)("desc",{id:a,children:o}):null]})}e.s(["OneAppThemeProvider",0,function({children:e}){return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(b.Global,{styles:(0,b.css)(k," ",R,"          html{font-size:",O.typography.base.fontSize,";}")}),e]})}],44818),e.s(["OneAppTokens",0,O],294224),e.s([],251825),e.s(["Icon",0,D],136350),e.s([],592216);let C=(0,b.keyframes)("from{transform:rotate(0deg);}to{transform:rotate(360deg);}"),L=v(D,{target:"e1l8nvi70"})("pointer-events:none;animation:",C," 0.8s ease infinite;transform-origin:center;",({size:e})=>(0,b.css)("width:",e,"px;height:",e,"px;"));function F(e){return(0,A.jsx)(L,{"data-testid":"spinner-icon",name:"Spinner",...e})}e.s(["Spinner",0,F],658766);let M=(0,b.css)("background-color:",O.color.button.primaryDefault,";color:",O.color.text.primary,";&:hover{background-color:",O.color.button.primaryHover,";}&:focus{background-color:",O.color.button.primaryFocus,";.is-tabbing &{box-shadow:0 0 0 3px ",O.color.border.buttonPrimaryFocus,";}}&:active{background-color:",O.color.button.primaryPressed,";}&:disabled{background-color:",O.color.button.primaryDisabled,";}"),$=(0,b.css)("background-color:",O.color.button.secondaryDefault,";color:",O.color.text.primary,";&:hover{background-color:",O.color.button.secondaryHover,";}&:focus{background-color:",O.color.button.secondaryFocus,";.is-tabbing &{box-shadow:0 0 0 3px ",O.color.border.buttonSecondaryFocus,";}}&:active{background-color:",O.color.button.secondaryPressed,";}&:disabled{background-color:",O.color.button.secondaryDisabled,";}"),j=(0,b.css)("background-color:",O.color.button.ghostDefault,";backdrop-filter:blur(6px);&:hover{background-color:",O.color.button.ghostHover,";}&:focus{background-color:",O.color.button.ghostFocus,";.is-tabbing &{box-shadow:0 0 0 3px ",O.color.border.buttonGhostFocus,";}}&:active{background-color:",O.color.button.ghostPressed,";}&:disabled{background-color:",O.color.button.ghostDisabled,";}"),V=(0,b.css)("background-color:",O.color.button.payDefault,";color:",O.color.text.primaryDark,";&:hover{background-color:",O.color.button.payHover,";}&:focus{background-color:",O.color.button.payFocus,";
5.is-tabbing &{box-shadow:0 0 0 3px ",O.color.border.buttonPayFocus,";}}&:active{background-color:",O.color.button.payPressed,";}&:disabled{background-color:",O.color.button.payDisabled,";}"),U=({variant:e})=>{switch(e){case"ghost":return j;case"pay":return V;case"primary":return M;case"secondary":return $}};e.s(["ButtonVariants",0,["ghost","pay","primary","secondary"],"getButtonVariantStyles",0,U],919554),e.s([],905881);let B=v(D,{target:"ez00hqt0"})("width:24px;height:24px;margin-right:",T(5),"rem;"),z=v(F,{target:"ez00hqt1"})("position:absolute;top:0;bottom:0;right:0;left:0;margin:auto;"),q=v("div",{target:"ez00hqt2"})("display:flex;flex-direction:row;justify-content:center;align-items:center;",({isLoading:e})=>e&&b.css`
6      opacity: 0;
7    `,";"),G=v("button",{target:"ez00hqt3"})("position:relative;cursor:pointer;display:inline-flex;box-sizing:border-box;transition:opacity ease 0.2s,color ease 0.2s,background-color ease 0.2s;border:0;flex-direction:row;justify-content:center;align-items:center;text-align:center;padding-top:",T(12),"rem;padding-bottom:",T(12),"rem;padding-right:",T(20),"rem;padding-left:",T(20),"rem;&:hover:enabled{opacity:0.9;}&:active:enabled{opacity:0.85;}",({disabled:e})=>b.css`
8    border-radius: ${O.radius.button};
9    color: ${O.color.text.primary};
10    font-family: ${O.typography.buttonText.fontFamily};
11    font-size: ${O.typography.buttonText.fontSize};
12    font-weight: ${O.typography.buttonText.fontWeight};
13    line-height: ${O.typography.buttonText.lineHeight};
14
15    ${e&&b.css`
16      cursor: not-allowed;
17      background-color: ${O.color.button.primaryDisabled};
18      color: ${O.color.text.disabled};
19      svg {
20        *[fill] {
21          fill: ${O.color.text.disabled};
22        }
23        *[stroke] {
24          stroke: ${O.color.text.disabled};
25        }
26      }
27    `}
28  `," ",U),K=(0,d.forwardRef)(({as:e,children:t,disabled:r,iconName:n,isLoading:i,variant:o="primary",...a},s)=>(0,A.jsxs)(G,{"aria-disabled":r,as:e??"button",disabled:r,ref:s,variant:o,...a,children:[i&&(0,A.jsx)(z,{size:20}),(0,A.jsxs)(q,{isLoading:i,children:[n&&(0,A.jsx)(B,{name:n}),t]})]}));e.s(["Button",0,K],618046);let H=v("section",{target:"ev32hrw0"})("padding:16px 16px 24px;border-radius:6px;",E.M`
29    padding: 40px 32px;
30  `,"  background-color:",O.color.background.tertiary,";color:",O.color.text.primary,";font-size:",O.typography.textPrimary.fontSize,";"),Q=(0,d.forwardRef)(({children:e,...t},r)=>(0,A.jsx)(H,{ref:r,...t,children:e}));Q.displayName="Card",e.s(["Card",0,Q],389170);let W=v("label",{target:"enfi52w0"})("cursor:pointer;position:relative;display:flex;user-select:none;align-items:flex-start;width:fit-content;.is-tabbing &:focus-within{outline:-webkit-focus-ring-color auto 1px;outline-offset:5px;}"),Y=v("span",{target:"enfi52w1"})("display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:",O.color.button.primaryDefault,";transition:all 250ms cubic-bezier(0.65,0.45,0.15,1.56);transform:scale(0);opacity:0;z-index:2;position:relative;border-radius:4px;padding:",T(2.5),"rem;box-sizing:border-box;"),X=v(D,{target:"enfi52w2"})("transition:all 250ms ease-in-out;width:100%;height:100%;transform:scale(0);opacity:0;& path{stroke-width:3;}"),J=v("input",{target:"enfi52w3"})("opacity:0;width:0;height:0;&:checked + div span{opacity:1;transform:scale(1.01);& svg{transform:none;opacity:1;}}"),Z=v("div",{target:"enfi52w4"})("display:flex;height:24px;width:24px;flex-grow:0;flex-shrink:0;box-shadow:inset 0 0 0 1px\n    ",({state:e})=>"VALID"===e?O.color.text.primary:O.color.border.inputfieldError,";border-radius:4px;position:relative;z-index:0;background:",O.color.background.surface,";"),ee=v("div",{target:"enfi52w5"})("margin-left:",T(6.25),"rem;",({primary:e})=>b.css`
31    font-family: ${O.typography.textSecondary.fontFamily};
32    font-size: ${O.typography.textSecondary.fontSize};
33    font-weight: ${O.typography.textSecondary.fontWeight};
34    line-height: ${O.typography.textSecondary.lineHeight};
35    color: ${e?O.color.text.primary:O.color.text.secondary};
36  `,";a{display:inline;}");function et(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}e.s(["Checkbox",0,function({children:e,className:t,id:r,primary:n,state:i="VALID",...o}
36){return(0,A.jsxs)(W,{className:t,htmlFor:r,children:[(0,A.jsx)(J,{...o,id:r,type:"checkbox"}),(0,A.jsx)(Z,{state:i,children:(0,A.jsx)(Y,{children:(0,A.jsx)(X,{name:"Check"})})}),(0,A.jsx)(ee,{primary:n,children:e})]})}],216861);var er=e.i(304153);e.i(370821);let en=e=>"object"==typeof e&&null!=e&&1===e.nodeType,ei=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,eo=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r,n=getComputedStyle(e,null);return ei(n.overflowY,t)||ei(n.overflowX,t)||!!(r=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(r.clientHeight<e.scrollHeight||r.clientWidth<e.scrollWidth)}return!1},ea=(e,t,r,n,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=r||a>=t&&s>=r?o-e-n:a>t&&s<r||o<e&&s>r?a-t+i:0,es=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t};var el=e.i(824627),ec=0;function eu(){}function ep(e,t,r){return e===t||t instanceof r.Node&&e.contains&&e.contains(t)}function ed(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];n(),r=setTimeout(function(){r=null,e.apply(void 0,o)},t)}return i.cancel=n,i}function eh(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(n)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function ef(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function eg(e,t){return e&&t?Object.keys(e).reduce(function(r,n){return r[n]=void 0!==t[n]?t[n]:e[n],r},{}):e}function ey(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function em(e,t,r,n,i){void 0===i&&(i=!1);var o=r.length;if(0===o)return -1;var a=o-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=i?a:0:s>a&&(s=i?0:a);var l=ev(s,t<0,r,n,i);return -1===l?e>=o?-1:e:l}function ev(e,t,r,n,i){void 0===i&&(i=!1);var o=r.length;if(t){for(var a=e;a>=0;a--)if(!n(r[a],a))return a}else for(var s=e;s<o;s++)if(!n(r[s],s))return s;return i?ev(t?o-1:0,t,r,n):-1}function eb(e,t,r,n){return void 0===n&&(n=!0),r&&t.some(function(t){return t&&(ep(t,e,r)||n&&ep(t,r.document.activeElement,r))})}var ex=ed(function(e){eE(e).textContent=""},500);function eE(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t)),t}var eS={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""},eT=ed(function(e,t){e&&t&&(eE(t).textContent=e,ex(t))},200),ew="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d.useLayoutEffect:d.useEffect,ek="useId"in d.default?function(e){var t=e.id,r=e.labelId,n=e.menuId,i=e.getItemId,o=e.toggleButtonId,a=e.inputId,s="downshift-"+d.default.useId();return t||(t=s),(0,d.useRef)({labelId:r||t+"-label",menuId:n||t+"-menu",getItemId:i||function(e){return t+"-item-"+e},toggleButtonId:o||t+"-toggle-button",inputId:a||t+"-input"}).current}:function(e){var t=e.id,r=void 0===t?"downshift-"+String(ec++):t,n=e.labelId,i=e.menuId,o=e.getItemId,a=e.toggleButtonId,s=e.inputId;return(0,d.useRef)({labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:o||function(e){return r+"-item-"+e},toggleButtonId:a||r+"-toggle-button",inputId:s||r+"-input"}).current};function eO(e,t,r,n){var i,o;if(void 0===e){if(void 0===t)throw Error(n);i=r[t],o=t}else o=void 0===t?r.indexOf(e):t,i=e;return[i,o]}function e_(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function eI(e){var t=(0,d.useRef)(e);return t.current=e,t}function eA(e,t,r,n){var i=(0,d.useRef)(),o=(0,d.useRef)(),s=(0,d.useCallback)(function(t,r){o.current=r;var n=e(t=eg(t,r.props),r);return r.props.stateReducer(t,(0,a.default)({},r,{changes:n}))},[e]),l=(0,d.useReducer)(s,t,r),c=l[0],u=l[1],p=eI(t),h=(0,d.useCallback)(function(e){return u((0,a.default)({props:p.current},e))},[p]),f=o.current;return(0,d.useEffect)(function(){var e,t,r,o=eg(i.current,null==f?void 0:f.props);f&&i.current&&!n(o,c)&&(e=f.props,t=f.type,r={}
36,Object.keys(o).forEach(function(e){var t,n,i,s,l,u,p;t=e,n=f,i=o,s=c,l=n.props,u=n.type,l[p="on"+e_(t)+"Change"]&&void 0!==s[t]&&s[t]!==i[t]&&l[p]((0,a.default)({type:u},s)),c[e]!==o[e]&&(r[e]=c[e])}),e.onStateChange&&Object.keys(r).length&&e.onStateChange((0,a.default)({type:t},r))),i.current=c},[c,f,n]),[c,h]}var eN={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){e&&((e,t)=>{var r,n,i,o;let a;if("u"<typeof document)return[];let{scrollMode:s,block:l,inline:c,boundary:u,skipOverflowHiddenElements:p}=t,d="function"==typeof u?u:e=>e!==u;if(!en(e))throw TypeError("Invalid target");let h=document.scrollingElement||document.documentElement,f=[],g=e;for(;en(g)&&d(g);){if((g=es(g))===h){f.push(g);break}null!=g&&g===document.body&&eo(g)&&!eo(document.documentElement)||null!=g&&eo(g,p)&&f.push(g)}let y=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,m=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:v,scrollY:b}=window,{height:x,width:E,top:S,right:T,bottom:w,left:k}=e.getBoundingClientRect(),{top:O,right:_,bottom:I,left:A}={top:parseFloat((a=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0},N="start"===l||"nearest"===l?S-O:"end"===l?w+I:S+x/2-O+I,P="center"===c?k+E/2-A+_:"end"===c?T+_:k-A,R=[];for(let e=0;e<f.length;e++){let t=f[e],{height:r,width:n,top:i,right:o,bottom:a,left:u}=t.getBoundingClientRect();if("if-needed"===s&&S>=0&&k>=0&&w<=m&&T<=y&&(t===h&&!eo(t)||S>=i&&w<=a&&k>=u&&T<=o))break;let p=getComputedStyle(t),d=parseInt(p.borderLeftWidth,10),g=parseInt(p.borderTopWidth,10),O=parseInt(p.borderRightWidth,10),_=parseInt(p.borderBottomWidth,10),I=0,A=0,D="offsetWidth"in t?t.offsetWidth-t.clientWidth-d-O:0,C="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-_:0,L="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(h===t)I="start"===l?N:"end"===l?N-m:"nearest"===l?ea(b,b+m,m,g,_,b+N,b+N+x,x):N-m/2,A="start"===c?P:"center"===c?P-y/2:"end"===c?P-y:ea(v,v+y,y,d,O,v+P,v+P+E,E),I=Math.max(0,I+b),A=Math.max(0,A+v);else{I="start"===l?N-i-g:"end"===l?N-a+_+C:"nearest"===l?ea(i,a,r,g,_+C,N,N+x,x):N-(i+r/2)+C/2,A="start"===c?P-u-d:"center"===c?P-(u+n/2)+D/2:"end"===c?P-o+O+D:ea(u,o,n,d,O+D,P,P+E,E);let{scrollLeft:e,scrollTop:s}=t;I=0===F?0:Math.max(0,Math.min(s+I/F,t.scrollHeight-r/F+C)),A=0===L?0:Math.max(0,Math.min(e+A/L,t.scrollWidth-n/L+D)),N+=s-I,P+=e-A}R.push({el:t,top:I,left:A})}return R})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}
36).forEach(function(e){var t=e.el,r=e.top,n=e.left;t.scrollTop=r,t.scrollLeft=n})},environment:"u"<typeof window?void 0:window};function eP(e,t,r){void 0===r&&(r=eS);var n=e["default"+e_(t)];return void 0!==n?n:r[t]}function eR(e,t,r){void 0===r&&(r=eS);var n=e[t];if(void 0!==n)return n;var i=e["initial"+e_(t)];return void 0!==i?i:eP(e,t,r)}function eD(e){var t,r,n=eR(e,"selectedItem"),i=eR(e,"isOpen"),o=(r=eR(t=e,"highlightedIndex"))>-1&&t.isItemDisabled(t.items[r],r)?-1:r,a=eR(e,"inputValue");return{highlightedIndex:o<0&&n&&i?e.items.findIndex(function(t){return e.itemToKey(t)===e.itemToKey(n)}):o,isOpen:i,selectedItem:n,inputValue:a}}function eC(e,t,r){var n=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,a=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===n.length?-1:void 0===i||c!==i||a(n[i],i)?void 0===o||a(n[o],o)?l?n.findIndex(function(e){return s(l)===s(e)}):r<0&&!a(n[n.length-1],n.length-1)?n.length-1:r>0&&!a(n[0],0)?0:-1:o:i}function eL(e,t,r){var n=(0,d.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,d.useEffect)(function(){if(!e)return eu;var i=r.map(function(e){return e.current});function o(){n.current.isTouchEnd=!1,n.current.isMouseDown=!0}function a(r){n.current.isMouseDown=!1,eb(r.target,i,e)||t()}function s(){n.current.isTouchEnd=!1,n.current.isTouchMove=!1}function l(){n.current.isTouchMove=!0}function c(r){n.current.isTouchEnd=!0,n.current.isTouchMove||eb(r.target,i,e,!1)||t()}return e.addEventListener("mousedown",o),e.addEventListener("mouseup",a),e.addEventListener("touchstart",s),e.addEventListener("touchmove",l),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",o),e.removeEventListener("mouseup",a),e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",l),e.removeEventListener("touchend",c)}},[r,e,t]),n.current}var eF=function(){return eu};function eM(e,t,r,n){void 0===n&&(n={});var i=n.document,o=eU();(0,d.useEffect)(function(){e&&!o&&i&&eT(e(t),i)},r),(0,d.useEffect)(function(){return function(){var e;eT.cancel(),(e=null==i?void 0:i.getElementById("a11y-status-message"))&&e.remove()}},[i])}function e$(e){var t=e.highlightedIndex,r=e.isOpen,n=e.itemRefs,i=e.getItemNodeFromIndex,o=e.menuElement,a=e.scrollIntoView,s=(0,d.useRef)(!0);return ew(function(){!(t<0)&&r&&Object.keys(n.current).length&&(!1===s.current?s.current=!0:a(i(t),o))},[t]),s}function ej(e,t,r){void 0===r&&(r=!0);var n,i=(null==(n=e.items)?void 0:n.length)&&t>=0;return(0,a.default)({isOpen:!1,highlightedIndex:-1},i&&(0,a.default)({selectedItem:e.items[t],isOpen:eP(e,"isOpen"),highlightedIndex:eP(e,"highlightedIndex")},r&&{inputValue:e.itemToString(e.items[t])}))}function eV(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function eU(){var e=d.default.useRef(!0);return d.default.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}function eB(e){var t=eP(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var ez={environment:er.default.shape({addEventListener:er.default.func.isRequired,removeEventListener:er.default.func.isRequired,document:er.default.shape({createElement:er.default.func.isRequired,getElementById:er.default.func.isRequired,activeElement:er.default.any.isRequired,body:er.default.any.isRequired}).isRequired,Node:er.default.func.isRequired}),itemToString:er.default.func,itemToKey:er.default.func,stateReducer:er.default.func},eq=(0,a.default)({},ez,{getA11yStatusMessage:er.default.func,highlightedIndex:er.default.number,defaultHighlightedIndex:er.default.number,initialHighlightedIndex:er.default.number,isOpen:er.default.bool,defaultIsOpen:er.default.bool,initialIsOpen:er.default.bool,selectedItem:er.default.any,initialSelectedItem:er.default.any,defaultSelectedItem:er.default.any,id:er.default.string,labelId:er.default.string,menuId:er.default.string,getItemId:er.default.func,toggleButtonId:er.default.string,onSelectedItemChange:er.default.func,onHighlightedIndexChange:er.default.func,onStateChange:er.default.func,onIsOpenChange:er.default.func,scrollIntoView:er.default.func});function eG(e,t,r){var n,i=t.type,o=t.props;switch(i){case r.ItemMouseMove:n={highlightedIndex:t.disabled?-1:t.index};break;case r.MenuMouseLeave:n={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:eC(o,e,0)};break;case r.FunctionOpenMenu:n={isOpen:!0,highlightedIndex:eC(o,e,0)};break;case r.FunctionCloseMenu:n={isOpen:!1};break;case r.FunctionSetHighlightedIndex:n={highlightedIndex:o.isItemDisabled(o.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case r.FunctionSetInputValue:n={inputValue:t.inputValue};break;case r.FunctionReset:n={highlightedIndex:eB(o),isOpen:eP(o,"isOpen"),selectedItem:eP(o,"selectedItem"),inputValue:eP(o,"inputValue")};break;default:throw Error("Reducer called without proper action type.")}return(0,a.default)({},e,n)}(0,el.__assign)((0,el.__assign)({},eq),{items:er.default.array.isRequired,isItemDisabled:er.default.func});var eK=(0,el.__assign)((0,el.__assign)({},eN),{isItemDisabled:function(){return!1}}),eH=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:14,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:11,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDown
36Home:5,ToggleButtonKeyDownPageDown:10,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownSpaceButton:8}),eQ=Object.freeze({__proto__:null,ControlledPropUpdatedSelectedItem:22,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:19,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,InputBlur:9,InputChange:8,InputClick:10,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEnd:4,InputKeyDownEnter:7,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownPageDown:6,InputKeyDownPageUp:5,ItemClick:13,ItemMouseMove:12,MenuMouseLeave:11,ToggleButtonClick:14});function eW(e){var t=eD(e),r=t.selectedItem,n=t.inputValue;return""===n&&r&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(n=e.itemToString(r)),(0,a.default)({},t,{inputValue:n})}(0,a.default)({},eq,{items:er.default.array.isRequired,isItemDisabled:er.default.func,inputValue:er.default.string,defaultInputValue:er.default.string,initialInputValue:er.default.string,inputId:er.default.string,onInputValueChange:er.default.func});var eY=(0,a.default)({},eN,{isItemDisabled:function(){return!1}});function eX(e,t){var r,n,i=t.type,o=t.props,s=t.altKey;switch(i){case 13:n={isOpen:eP(o,"isOpen"),highlightedIndex:eB(o),selectedItem:o.items[t.index],inputValue:o.itemToString(o.items[t.index])};break;case 0:n=e.isOpen?{highlightedIndex:em(e.highlightedIndex,1,o.items,o.isItemDisabled,!0)}:{highlightedIndex:s&&null==e.selectedItem?-1:eC(o,e,1),isOpen:o.items.length>=0};break;case 1:n=e.isOpen?s?ej(o,e.highlightedIndex):{highlightedIndex:em(e.highlightedIndex,-1,o.items,o.isItemDisabled,!0)}:{highlightedIndex:eC(o,e,-1),isOpen:o.items.length>=0};break;case 7:n=ej(o,e.highlightedIndex);break;case 2:n=(0,a.default)({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:n={highlightedIndex:em(e.highlightedIndex,-10,o.items,o.isItemDisabled,!0)};break;case 6:n={highlightedIndex:em(e.highlightedIndex,10,o.items,o.isItemDisabled,!0)};break;case 3:n={highlightedIndex:ev(0,!1,o.items,o.isItemDisabled)};break;case 4:n={highlightedIndex:ev(o.items.length-1,!0,o.items,o.isItemDisabled)};break;case 9:n=(0,a.default)({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(r=o.items)?void 0:r.length)&&t.selectItem&&{selectedItem:o.items[e.highlightedIndex],inputValue:o.itemToString(o.items[e.highlightedIndex])});break;case 8:n={isOpen:!0,highlightedIndex:eB(o),inputValue:t.inputValue};break;case 10:n={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:eC(o,e,0)};break;case 19:n={selectedItem:t.selectedItem,inputValue:o.itemToString(t.selectedItem)};break;case 22:n={inputValue:t.inputValue};break;default:return eG(e,t,eQ)}return(0,a.default)({},e,n)}var eJ=["onMouseLeave","refKey","ref"],eZ=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],e0=["onClick","onPress","refKey","ref"],e1=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function e2(e){void 0===e&&(e={}),eu();var t,r,n,i,o,s=(0,a.default)({},eY,e),l=s.items,c=s.scrollIntoView,u=s.environment,p=s.getA11yStatusMessage,h=(t=(0,d.useRef)(),n=(r=eA(eX,s,eW,eV))[0],i=r[1],o=eU(),(0,d.useEffect)(function(){void 0!==s.selectedItem&&(o||s.itemToKey(s.selectedItem)!==s.itemToKey(t.current)&&i({type:22,inputValue:s.itemToString(s.selectedItem)}),t.current=n.selectedItem===t.current?s.selectedItem:n.selectedItem)},[n.selectedItem,s.selectedItem]),[eg(n,s),i]),f=h[0],g=h[1],y=f.isOpen,m=f.highlightedIndex,v=f.selectedItem,b=f.inputValue,x=(0,d.useRef)(null),E=(0,d.useRef)({}),S=(0,d.useRef)(null),T=(0,d.useRef)(null),w=eU(),k=ek(s),O=(0,d.useRef)(),_=eI({state:f,props:s}),I=(0,d.useCallback)(function(e){return E.current[k.getItemId(e)]},[k]);eM(p,f,[y,m,v,b],u);var A=e$({menuElement:x.current,highlightedIndex:m,isOpen:y,itemRefs:E,scrollIntoView:c,getItemNodeFromIndex:I});eu(),(0,d.useEffect)(function(){eR(s,"isOpen")&&S.current&&S.current.focus()},[]),(0,d.useEffect)(function(){w||(O.current=l.length)});var N=eL(u,(0,d.useCallback)(function(){_.current.state.isOpen&&g({type:9,selectItem:!1})},[g,_]),(0,d.useMemo)(function(){return[x,T,S]},[x.current,T.current,S.current])),P=eF();
36(0,d.useEffect)(function(){y||(E.current={})},[y]),(0,d.useEffect)(function(){var e;y&&null!=u&&u.document&&null!=S&&null!=(e=S.current)&&e.focus&&u.document.activeElement!==S.current&&S.current.focus()},[y,u]);var R=(0,d.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),g({type:0,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),g({type:1,altKey:e.altKey})},Home:function(e){_.current.state.isOpen&&(e.preventDefault(),g({type:3}))},End:function(e){_.current.state.isOpen&&(e.preventDefault(),g({type:4}))},Escape:function(e){var t=_.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),g({type:2}))},Enter:function(e){_.current.state.isOpen&&229!==e.which&&(e.preventDefault(),g({type:7}))},PageUp:function(e){_.current.state.isOpen&&(e.preventDefault(),g({type:5}))},PageDown:function(e){_.current.state.isOpen&&(e.preventDefault(),g({type:6}))}}},[g,_]),D=(0,d.useCallback)(function(e){return(0,a.default)({id:k.labelId,htmlFor:k.inputId},e)},[k]),C=(0,d.useCallback)(function(e,t){var r,n=void 0===e?{}:e,i=n.onMouseLeave,o=n.refKey,s=void 0===o?"ref":o,l=n.ref,c=et(n,eJ),u=(void 0===t?{}:t).suppressRefError;return P("getMenuProps",void 0!==u&&u,s,x),(0,a.default)(((r={})[s]=ef(l,function(e){x.current=e}),r.id=k.menuId,r.role="listbox",r["aria-labelledby"]=c&&c["aria-label"]?void 0:""+k.labelId,r.onMouseLeave=eh(i,function(){g({type:11})}),r),c)},[g,P,k]),L=(0,d.useCallback)(function(e){var t,r,n=void 0===e?{}:e,i=n.item,o=n.index,s=n.refKey,l=n.ref,c=n.onMouseMove,u=n.onMouseDown,p=n.onClick;n.onPress;var d=n.disabled,h=et(n,eZ);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var f=_.current,y=f.props,m=f.state,v=eO(i,o,y.items,"Pass either item or index to getItemProps!"),b=v[0],x=v[1],S=y.isItemDisabled(b,x);return(0,a.default)(((t={})[void 0===s?"ref":s]=ef(l,function(e){e&&(E.current[k.getItemId(x)]=e)}),t["aria-disabled"]=S,t["aria-selected"]=x===m.highlightedIndex,t.id=k.getItemId(x),t.role="option",t),!S&&((r={}).onClick=eh(p,function(){g({type:13,index:x})}),r),{onMouseMove:eh(c,function(){N.isTouchEnd||x===m.highlightedIndex||(A.current=!1,g({type:12,index:x,disabled:S}))}),onMouseDown:eh(u,function(e){return e.preventDefault()})},h)},[g,k,_,N,A]),F=(0,d.useCallback)(function(e){var t,r=void 0===e?{}:e,n=r.onClick;r.onPress;var i=r.refKey,o=r.ref,s=et(r,e0),l=_.current.state;return(0,a.default)(((t={})[void 0===i?"ref":i]=ef(o,function(e){T.current=e}),t["aria-controls"]=k.menuId,t["aria-expanded"]=l.isOpen,t.id=k.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&(0,a.default)({},{onClick:eh(n,function(){g({type:14})})}),s)},[g,_,k]),M=(0,d.useCallback)(function(e,t){var r,n,i=void 0===e?{}:e,o=i.onKeyDown,s=i.onChange,l=i.onInput,c=i.onBlur;i.onChangeText;var p=i.onClick,d=i.refKey,h=void 0===d?"ref":d,f=i.ref,y=et(i,e1),m=(void 0===t?{}:t).suppressRefError;P("getInputProps",void 0!==m&&m,h,S);var v=_.current.state,b={};return y.disabled||((n={}).onChange=eh(s,l,function(e){g({type:8,inputValue:e.target.value})}),n.onKeyDown=eh(o,function(e){var t=ey(e);t&&R[t]&&R[t](e)}),n.onBlur=eh(c,function(e){null!=u&&u.document&&v.isOpen&&!N.isMouseDown&&g({type:9,selectItem:null!==e.relatedTarget||u.document.activeElement===u.document.body})}),n.onClick=eh(p,function(){g({type:10})}),b=n),(0,a.default)(((r={})[h]=ef(f,function(e){S.current=e}),r["aria-activedescendant"]=v.isOpen&&v.highlightedIndex>-1?k.getItemId(v.highlightedIndex):"",r["aria-autocomplete"]="list",r["aria-controls"]=k.menuId,r["aria-expanded"]=v.isOpen,r["aria-labelledby"]=y&&y["aria-label"]?void 0:k.labelId,r.autoComplete="off",r.id=k.inputId,r.role="combobox",r.value=v.inputValue,r),b,y)},[g,k,u,R,_,N,P]),$=(0,d.useCallback)(function(){g({type:15})},[g]),j=(0,d.useCallback)(function(){g({type:17})},[g]),V=(0,d.useCallback)(function(){g({type:16})},[g]),U=(0,d.useCallback)(function(e){g({type:18,highlightedIndex:e})},[g]),B=(0,d.useCallback)(function(e){g({type:19,selectedItem:e})},[g]);return{getItemProps:L,getLabelProps:D,getMenuProps:C,getInputProps:M,getToggleButtonProps:F,toggleMenu:$,openMenu:V,closeMenu:j,setHighlightedIndex:U,setInputValue:(0,d.useCallback)(function(e){g({type:20,inputValue:e})}
36,[g]),selectItem:B,reset:(0,d.useCallback)(function(){g({type:21})},[g]),highlightedIndex:m,isOpen:y,selectedItem:v,inputValue:b}}e2.stateChangeTypes=eQ;ez.stateReducer,ez.itemToKey,ez.environment,er.default.array,er.default.array,er.default.array,er.default.func,er.default.number,er.default.number,er.default.number,er.default.func,er.default.func,er.default.string,er.default.string;var e5={itemToKey:eN.itemToKey,stateReducer:eN.stateReducer,environment:eN.environment,keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},e4=Object.freeze({__proto__:null,DropdownClick:7,DropdownKeyDownBackspace:6,DropdownKeyDownNavigationPrevious:5,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionReset:12,FunctionSetActiveIndex:11,FunctionSetSelectedItems:10,SelectedItemClick:0,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownDelete:1,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4});let e3=v("div",{target:"e1tkxh770"})("width:100%;height:auto;position:relative;"),e6=v("div",{target:"e1tkxh771"})("position:relative;"),e9=v("input",{target:"e1tkxh772"})(({isOpen:e})=>b.css`
37    font-family: ${O.typography.textPrimary.fontFamily};
38    font-size: ${O.typography.textPrimary.fontSize};
39    font-weight: ${O.typography.textPrimary.fontWeight};
40    line-height: ${O.typography.textPrimary.lineHeight};
41    color: ${O.color.text.primary};
42    caret-color: ${O.color.text.primary};
43    border: 1px solid ${O.color.border.backgroundSurface};
44    background: ${O.color.background.surface};
45    border-bottom: ${e?"1px solid transparent":`1px solid ${O.color.border.backgroundSurface}`};
46    border-radius: ${e?"6px 6px 0 0":"6px"};
47
48    &&::-webkit-input-placeholder {
49      font-family: ${O.typography.textPrimary.fontFamily};
50      font-size: ${O.typography.textPrimary.fontSize};
51      font-weight: ${O.typography.textPrimary.fontWeight};
52      line-height: ${O.typography.textPrimary.lineHeight};
53      color: ${O.color.text.tertiary};
54    }
55
56    &&::-moz-placeholder {
57      font-family: ${O.typography.textPrimary.fontFamily};
58      font-size: ${O.typography.textPrimary.fontSize};
59      font-weight: ${O.typography.textPrimary.fontWeight};
60      line-height: ${O.typography.textPrimary.lineHeight};
61      color: ${O.color.text.tertiary};
62      opacity: 1;
63    }
64
65    &:-webkit-autofill,
66    &:-webkit-autofill:hover,
67    &:-webkit-autofill:focus {
68      border: none;
69      caret-color: ${O.color.text.primary};
70      -webkit-text-fill-color: ${O.color.text.primary};
71      transition: background-color 86400s ease-in-out 0s;
72    }
73  `,";line-height:1.5;padding:19px 11px;height:50px;width:100%;box-sizing:border-box;position:relative;",E.M`
74    height: 56px;
75  `),e8=v("ul",{target:"e1tkxh773"})(({backgroundColor:e,isOpen:t})=>b.css`
76    font-family: ${O.typography.textSecondary.fontFamily};
77    font-size: ${O.typography.textSecondary.fontSize};
78    font-weight: ${O.typography.textSecondary.fontWeight};
79    line-height: ${O.typography.textSecondary.lineHeight};
80    color: ${O.color.text.secondary};
81    border: 1px solid ${O.color.border.backgroundSurface};
82    background: ${e||O.color.background.primary};
83    border-bottom: ${t?`1px solid ${O.color.border.backgroundSurface}`:"1px solid transparent"};
84  `,";box-sizing:border-box;position:absolute;z-index:15;left:0;right:0;width:100%;height:auto;overflow-x:hidden;overflow-y:scroll;max-height:230px;border-top:none;border-bottom-left-radius:6px;border-bottom-right-radius:6px;z-index:15;display:block;padding:0;margin:0;"),e7=v("li",{target:"e1tkxh774"})("padding:8px 11px;line-height:",T(12),"rem;position:relative;cursor:pointer;list-style-type:none;background-color:",O.color.background.surface,";&:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px;}"),te=v("label",{target:"e1tkxh775"})("display:block;margin-bottom:8px;",({disabled:e})=>b.css`
85    font-family: ${O.typography.headingSubHeading.fontFamily};
86    font-size: ${O.typography.headingSubHeading.fontSize};
87    font-weight: ${O.typography.headingSubHeading.fontWeight};
88    line-height: ${O.typography.headingSubHeading.lineHeight};
89    text-transform: ${O.typography.headingSubHeading.textTransform};
90    color: ${e?O.color.text.disabled:O.color.text.primary};
91  `,";"),tt=v(D,{target:"e1tkxh776"})("position:absolute;top:0;right:0;cursor:pointer;flex:0 0 24px;padding:14px;z-index:1;height:24px;box-sizing:content-box;",E.S`
92    padding: 16px;
93  `);e.s(["Dropdown",0,function({backgroundColor:e,dataTestId:t,disabled:r,id:n,initialInputValue:i,items:o,labelText:a,onSelectItem:s,...l}){let[c,u]=(0,d.useState)(o),{getInputProps:p,getItemProps:h,getMenuProps:f,getToggleButtonProps:g,highlightedIndex:y,isOpen:m,openMenu:v,setInputValue:b}
93=e2({initialInputValue:i||"",items:c,itemToString:e=>e?e.value:"",onInputValueChange:({inputValue:e})=>{u(o.filter(t=>t.value.toLowerCase().startsWith(e&&e.toLowerCase())))},onSelectedItemChange:({selectedItem:e})=>{s(e??null)}});return(0,A.jsxs)(e3,{children:[a&&(0,A.jsx)(te,{disabled:r,htmlFor:n,children:a}),(0,A.jsxs)(e6,{children:[(0,A.jsx)(e9,{"data-testid":t&&`${t}-input`,isOpen:m,...l,...p({id:n,onFocus:()=>{m||(v(),b(""))}})}),(0,A.jsx)("div",{...g(),"data-testid":t&&`${t}-toggle`,children:(0,A.jsx)(tt,{name:m?"ChevronUp":"ChevronDown"})})]}),(0,A.jsx)(e8,{"data-testid":t&&`${t}-items`,...f(),backgroundColor:e,isOpen:m,children:m&&c.map((e,r)=>(0,A.jsx)(e7,{"data-testid":t&&`${t}-item`,...h({index:r,item:e,style:{opacity:y===r?.8:1}}),children:e.value},`${e}${r}`))})]})}],245043);let tr=v("div",{target:"e9npwir0"})("display:flex;align-items:flex-start;font-family:",O.typography.textPrimary.fontFamily,";font-size:",O.typography.textPrimary.fontSize,";font-weight:",O.typography.textPrimary.fontWeight,";line-height:",O.typography.textPrimary.lineHeight,";color:",O.color.text.primary,";svg{width:24px;height:24px;min-width:24px;min-height:24px;margin-right:8px;}");e.s(["ErrorMessage",0,function({children:e,...t}){return(0,A.jsxs)(tr,{...t,children:[(0,A.jsx)(D,{name:"Alert"}),e]})}],720783);let tn=(e,t,r=365)=>{if("u"<typeof document)return;let n=new Date;n.setTime(n.getTime()+24*r*36e5);let i=`expires=${n.toUTCString()}`;document.cookie=`${e}=${t};${i};path=/`};e.s(["setCookie",0,tn],534677),e.s(["deleteCookie",0,e=>{tn(e,"",0)}],253685);let ti=e=>{if("u"<typeof document)return"";let t=`${e}=`,r=decodeURIComponent(document.cookie).split(";");for(let e=0;e<r.length;e++){let n=r[e];for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return""};e.s(["getCookie",0,ti],336090);var to=e.i(551725);let ta=["WEB","ACCOUNTWEB","SETTINGSWEB","CHECKOUTWEB","MARKETWEB","WEBPLAYER","ANDROIDTV","ANDROIDSTB","ANDROIDMOB","IOS","TVOS","CCR","SSTV","IPTVSTB","AISTB","LGTV"];e.s(["OneAppClients",0,ta,"oneAppEnvironments",0,["PROD","PILOT"],"oneAppMarkets",0,["SE","FI","NO"],"oneAppProductNames",0,["Telia Play"]],190393),(()=>{let e=new URLSearchParams(window.location.search).get("client")?.toUpperCase();if(e&&ta.indexOf(e)>-1)return})();let ts={"dev-login.teliaplay-pilot.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"dev-login.teliaplay-pilot.no":{environment:"PILOT",market:"NO",productName:"Telia Play"},"dev-login.teliaplay-pilot.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"dev-login.teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"dev-login.teliaplay.no":{environment:"PROD",market:"NO",productName:"Telia Play"},"dev-login.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},"login.teliaplay-pilot.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"login.teliaplay-pilot.no":{environment:"PILOT",market:"NO",productName:"Telia Play"},"login.teliaplay-pilot.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"login.teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"login.teliaplay.no":{environment:"PROD",market:"NO",productName:"Telia Play"},"login.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},"beta.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},localhost:{environment:"PROD",market:"SE",productName:"Telia Play"},"pilot.tv.telia.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"preprod.tv.telia.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"teliaplay-pilot.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"teliaplay-pilot.no":{environment:"PILOT",market:"NO",productName:"Telia Play"},"teliaplay-pilot.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"teliaplay-stage.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"teliaplay-stage.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"teliaplay.no":{environment:"PROD",market:"NO",productName:"Telia Play"},"teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},"tv.telia.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"www.teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"www.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"},"connect.teliaplay-pilot.fi":{environment:"PILOT",market:"FI",productName:"Telia Play"},"connect.teliaplay-pilot.no":{environment:"PILOT",market:"NO",productName:"Telia Play"},"connect.teliaplay-pilot.se":{environment:"PILOT",market:"SE",productName:"Telia Play"},"connect.teliaplay.fi":{environment:"PROD",market:"FI",productName:"Telia Play"},"connect.teliaplay.no":{environment:"PROD",market:"NO",productName:"Telia Play"},"connect.teliaplay.se":{environment:"PROD",market:"SE",productName:"Telia Play"}},tl=()=>window.location.hostname.replace(/^www\./,""),tc="ENVIRONMENT",tu=(()=>{try{return window.localStorage.getItem(tc)}catch(e){return console.warn("Failed to get environment from localStorage",e),null}})()||(()=>{let e=tl();if(e in ts)return ts[e].environment})()||"PILOT";e.s(["environment",0,tu,"setEnvironmentToLocalStorage",0,e=>{window.localStorage.setItem(tc,e)}],718690);let tp="MARKET",td=(()=>{try{return window.localStorage.getItem(tp)}catch(e){return console.warn("Failed to get market from localStorage",e),null}})()||(()=>{let e=tl();if(e in ts)return ts[e].market})()||"SE";e.s(["market",0,td,"setMarketToLocalStorage",0,e=>window.localStorage.setItem(tp,e)],532484),(()=>{let e=tl();if(e in ts)return ts[e].productName})(),e.s([],139474);let th=async(e,t)=>await to.DataManager.instance().sendGet(e,"CACHE_CLASS",{headers:{"X-Country":td},secure:!0,...t}),tf=async(e,t,r)=>await to.DataManager.instance().sendPost(e,"CACHE_CLASS",{headers:{"X-Country":td},secure:!0,...r,post:JSON.stringify(t),postAsJson:!0});e.s(["dataManagerGet",0,th,"dataManagerPost",0,tf],168697),e.s(["ErrorTypes",0,{ACCOUNT_IS_BLOCKED:"ACCOUNT_IS_BLOCKED",ACCOUNT_IS_CLOSED:"ACCOUNT_IS_CLOSED",FEDERATION_INVA
93LID_EMAIL:"FEDERATION_INVALID_EMAIL",FEDERATION_TOO_MANY_ENGAGEMENTS:"FEDERATION_TOO_MANY_ENGAGEMENTS",INVALID_CREDENTIALS:"INVALID_CREDENTIALS",INVALID_LASTNAME:"INVALID_LASTNAME",INVALID_USERNAME:"INVALID_USERNAME",MFA_TOO_MANY_ATTEMPTS:"MFA_TOO_MANY_ATTEMPTS",MISSING_PARAMS:"MISSING_PARAMS",PASSWORD_IS_TOO_SHORT:"PASSWORD_IS_TOO_SHORT",PASSWORD_SHOULD_MATCH:"PASSWORD_SHOULD_MATCH",TRY_AGAIN_ERROR:"TRY_AGAIN_ERROR",UNAUTHORIZED:"UNAUTHORIZED",UNKNOWN_DEVICE_TYPE:"UNKNOWN_DEVICE_TYPE",UNKNOWN_ERROR:"UNKNOWN_ERROR",UNKNOWN_RESET_PASSWORD_ERROR:"UNKNOWN_RESET_PASSWORD_ERROR",USER_CODE_EXPIRED:"USER_CODE_EXPIRED",USER_CODE_INVALID:"USER_CODE_INVALID"}],717647),e.s(["nonNullable",0,e=>null!=e],881663),e.s(["useDataManager",0,()=>{let[e,t]=(0,d.useState)(null),[r,n]=(0,d.useState)(null),[i,o]=(0,d.useState)(!1);return{data:e,error:r,fetchFn:(0,d.useCallback)(async(e,r)=>{o(!0),t(null);try{t(r?.method==="post"?await tf(e,r.body,r?.requestData):await th(e,r?.requestData)),n(null)}catch(e){void 0!==e.name&&n(e)}finally{o(!1)}},[]),loading:i}}],301588),e.s([],60398);let tg="AppLanguage";e.s(["APP_LANGUAGE_COOKIE_KEY",0,tg],273865);let{slice:ty,forEach:tm}=[],tv=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,tb=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"},n=encodeURIComponent(t),i=`${e}=${n}`;if(r.maxAge>0){let e=r.maxAge-0;if(Number.isNaN(e))throw Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(e)}`}if(r.domain){if(!tv.test(r.domain))throw TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!tv.test(r.path))throw TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw TypeError("option expires is invali
93d");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"none":i+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},tx={create(e,t,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};r&&(i.expires=new Date,i.expires.setTime(i.expires.getTime()+60*r*1e3)),n&&(i.domain=n),document.cookie=tb(e,t,i)},read(e){let t=`${e}=`,r=document.cookie.split(";");for(let e=0;e<r.length;e++){let n=r[e];for(;" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var tE={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"u">typeof document)return tx.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:r,cookieMinutes:n,cookieDomain:i,cookieOptions:o}=t;r&&"u">typeof document&&tx.create(r,e,n,i,o)}},tS={name:"querystring",lookup(e){let t,{lookupQuerystring:r}=e;if("u">typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));let n=e.substring(1).split("&");for(let e=0;e<n.length;e++){let i=n[e].indexOf("=");i>0&&n[e].substring(0,i)===r&&(t=n[e].substring(i+1))}}return t}},tT={name:"hash",lookup(e){let t,{lookupHash:r,lookupFromHashIndex:n}=e;if("u">typeof window){let{hash:e}=window.location;if(e&&e.length>2){let i=e.substring(1);if(r){let e=i.split("&");for(let n=0;n<e.length;n++){let i=e[n].indexOf("=");i>0&&e[n].substring(0,i)===r&&(t=e[n].substring(i+1))}}if(t)return t;if(!t&&n>-1){let t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;return t["number"==typeof n?n:0]?.replace("/","")}}}return t}};let tw=null,tk=()=>{if(null!==tw)return tw;try{if(!(tw="u">typeof window&&null!==window.localStorage))return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){tw=!1}return tw};var tO={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&tk())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:r}=t;r&&tk()&&window.localStorage.setItem(r,e)}};let t_=null,tI=()=>{if(null!==t_)return t_;try{if(!(t_="u">typeof window&&null!==window.sessionStorage))return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){t_=!1}return t_};var tA={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&tI())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:r}=t;r&&tI()&&window.sessionStorage.setItem(r,e)}},tN={name:"navigator",lookup(e){let t=[];if("u">typeof navigator){let{languages:e,userLanguage:r,language:n}=navigator;if(e)for(let r=0;r<e.length;r++)t.push(e[r]);r&&t.push(r),n&&t.push(n)}return t.length>0?t:void 0}},tP={name:"htmlTag",lookup(e){let t,{htmlTag:r}=e,n=r||("u">typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},tR={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("u"<typeof window)return;let r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(Array.isArray(r))return r["number"==typeof t?t:0]?.replace("/","")}},tD={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e,r="u">typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r["number"==typeof t?t+1:1]}};let tC=!1;try{document.cookie,tC=!0}catch(e){}let tL=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];tC||tL.splice(1,1);class tF{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return tm.call(ty.call(arguments,1
93),t=>{if(t)for(let r in t)void 0===e[r]&&(e[r]=t[r])}),e}(t,this.options||{},{order:tL,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(tE),this.addDetector(tS),this.addDetector(tO),this.addDetector(tA),this.addDetector(tN),this.addDetector(tP),this.addDetector(tR),this.addDetector(tD),this.addDetector(tT)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return(e.forEach(e=>{if(this.detectors[e]){let r=this.detectors[e].lookup(this.options);r&&"string"==typeof r&&(r=[r]),r&&(t=t.concat(r))}}),t=t.filter(e=>null!=e&&!("string"==typeof e&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(e)))).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes)?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;!t||this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)})}}tF.type="languageDetector";e.s(["createLanguageDetector",0,({languageMap:e})=>{let t=new tF;return t.addDetector({lookup:()=>((e,t)=>{if(e)return t[e.toUpperCase()]??e.toLowerCase()})(ti(tg),e)??e[td],name:"marketDetector"}),t}],639184);let tM=e=>"string"==typeof e,t$=()=>{let e,t,r=new Promise((r,n)=>{e=r,t=n});return r.resolve=e,r.reject=t,r},tj=e=>null==e?"":""+e,tV=/###/g,tU=e=>e&&e.indexOf("###")>-1?e.replace(tV,"."):e,tB=e=>!e||tM(e),tz=(e,t,r)=>{let n=tM(t)?t.split("."):t,i=0;for(;i<n.length-1;){if(tB(e))return{};let t=tU(n[i]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return tB(e)?{}:{obj:e,k:tU(n[i])}},tq=(e,t,r)=>{let{obj:n,k:i}=tz(e,t,Object);if(void 0!==n||1===t.length){n[i]=r;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=tz(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,s=tz(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=r},tG=(e,t)=>{let{obj:r,k:n}=tz(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,n))return r[n]},tK=(e,t,r)=>{for(let n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?tM(e[n])||e[n]instanceof String||tM(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):tK(e[n],t[n],r):e[n]=t[n]);return e};var tH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};let tQ=e=>tM(e)?e.replace(/[&<>"'\/]/g,e=>tH[e]):e,tW=[" ",",","?","!",";"],tY=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),tX=(e,t,r=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let n=t.split(r),i=e;for(let e=0;e<n.length;){let t;if(!i||"object"!=typeof i)return;let o="";for(let a=e;a<n.length;++a)if(a!==e&&(o+=r),o+=n[a],void 0!==(t=i[o])){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<n.length-1)continue;e+=a-e+1;break}i=t}return i},tJ=e=>e?.replace("_","-"),tZ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var t0=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||tZ,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(tM(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class t1{constructor(){this.observers={}}
93on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,r])=>{for(let n=0;n<r;n++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,n])=>{for(let i=0;i<n;i++)r.apply(r,[e,...t])})}}class t2 extends t1{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,n={}){let i,o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):tM(r)&&o?i.push(...r.split(o)):i.push(r)));let s=tG(this.data,i);return(!s&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),!s&&a&&tM(r))?tX(this.data?.[e]?.[t],r,o):s}addResource(e,t,r,n,i={silent:!1}){let o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];r&&(a=a.concat(o?r.split(o):r)),e.indexOf(".")>-1&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),tq(this.data,a,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(let n in r)(tM(r[n])||Array.isArray(r[n]))&&this.addResource(e,t,n,r[n],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,o={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let s=tG(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?tK(s,r,i):s={...s,...r},tq(this.data,a,s),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var t5={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}};let t4=Symbol("i18next/PATH_KEY");function t3(e,t){let r,n,i,{[t4]:o}=e((n=[],(i=Object.create(null)).get=(e,t)=>(r?.revoke?.(),t===t4)?n:(n.push(t),(r=Proxy.revocable(e,i)).proxy),Proxy.revocable(Object.create(null),i).proxy));return o.join(t?.keySeparator??".")}let t6={},t9=e=>!tM(e)&&"boolean"!=typeof e&&"number"!=typeof e;class t8 extends t1{constructor(e,t={}){super(),((e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
93i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=t0.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let r={...t};if(null==e)return!1;let n=this.resolve(e,r);if(n?.res===void 0)return!1;let i=t9(n.res);return!1!==r.returnObjects||!i}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");let n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=r&&e.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";let n=tW.filter(e=>0>t.indexOf(e)&&0>r.indexOf(e));if(0===n.length)return!0;let i=tY.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`),o=!i.test(e);if(!o){let t=e.indexOf(r);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,r,n);if(o&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:tM(i)?[i]:i};let o=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(n)}return{key:e,namespaces:tM(i)?[i]:i}}translate(e,t,r){let n="object"==typeof t?{...t}:t;if("object"!=typeof n&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof n&&(n={...n}),n||(n={}),null==e)return"";"function"==typeof e&&(e=t3(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]);let i=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],n),l=s[s.length-1],c=void 0!==n.nsSeparator?n.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let u=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode")return p?i?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${c}${a}`:i?{res:a,usedKey:a,exactUsedKey:a,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:a;let d=this.resolve(e,n),h=d?.res,f=d?.usedKey||a,g=d?.exactUsedKey||a,y=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==n.count&&!tM(n.count),b=t8.hasDefaultValue(n),x=v?this.pluralResolver.getSuffix(u,n.count,n):"",E=n.ordinal&&v?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",S=v&&!n.ordinal&&0===n.count,T=S&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${x}`]||n[`defaultValue${E}`]||n.defaultValue,w=h;m&&!h&&b&&(w=T);let k=t9(w),O=Object.prototype.toString.apply(w);if(m&&w&&k&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(O)&&!(tM(y)&&Array.isArray(w))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,w,{...n,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(o){let e=Array.isArray(w),t=e?[]:{},r=e?g:f;for(let e in w)if(Object.prototype.hasOwnProperty.call(w,e)){let i=`${r}${o}${e}`;b&&!h?t[e]=this.translate(i,{...n,defaultValue:t9(T)?T[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(i,{...n,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=w[e])}h=t}}else if(m&&tM(y)&&Array.isArray(h))(h=h.join(y))&&(h=this.extendTranslation(h,e,n,r));else{let t=!1,i=!1;!this.isValidLookup(h)&&b&&(t=!0,h=T),this.isValidLookup(h)||(i=!0,h=a);let s=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:h,p=b&&T!==h&&this.options.updateMissing;if(i||t||p){if(this.logger.log(p?"updateKey":"missingKey",u,l,a,p?T:h),o){let e=this.resolve(a,{...n,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=b&&r!==h?r:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,i,p,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,i,p,n),this.emit
93("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);S&&n[`defaultValue${this.options.pluralSeparator}zero`]&&0>t.indexOf(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],a+t,n[`defaultValue${t}`]||T)})}):r(e,a,T))}h=this.extendTranslation(h,e,n,d,r),i&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${a}`),(i||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,t?h:void 0,n))}return i?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(e,t,r,n,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){let o;r.interpolation&&this.interpolator.init({...r,...{interpolation:{...this.options.interpolation,...r.interpolation}}});let a=tM(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=r.replace&&!tM(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,r.lng||this.language||n.usedLng,r),a){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(...e)=>i?.[0]!==e[0]||r.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),r)),r.interpolation&&this.interpolator.reset()}let o=r.postProcess||this.options.postProcess,a=tM(o)?[o]:o;return null!=e&&a?.length&&!1!==r.applyPostProcessor&&(e=t5.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,i,o,a;return tM(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(r))return;let s=this.extractFromKey(e,t),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let u=void 0!==t.count&&!tM(t.count),p=u&&!t.ordinal&&0===t.count,d=void 0!==t.context&&(tM(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);
93c.forEach(e=>{this.isValidLookup(r)||(a=e,!t6[`${h[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(t6[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(n=>{let a;if(this.isValidLookup(r))return;o=n;let s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,n,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(n,t.count,t));let r=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&0===e.indexOf(i)&&s.push(l+e.replace(i,this.options.pluralSeparator)),s.push(l+e),p&&s.push(l+r)),d){let n=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(n),u&&(t.ordinal&&0===e.indexOf(i)&&s.push(n+e.replace(i,this.options.pluralSeparator)),s.push(n+e),p&&s.push(n+r))}}for(;a=s.pop();)this.isValidLookup(r)||(i=a,r=this.getResource(n,e,a,t))}))})}),{res:r,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){let t=e.replace&&!tM(e.replace),r=t?e.replace:e;if(t&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t)for(let e of(r={...r},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete r[e];return r}static hasDefaultValue(e){let t="defaultValue";for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,t.length)&&void 0!==e[r])return!0;return!1}}class t7{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=t0.create("languageUtils")}getScriptPartFromCode(e){if(!(e=tJ(e))||0>e.indexOf("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=tJ(e))||0>e.indexOf("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(tM(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let r=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let r=this.getScriptPartFromCode(e);if(this.isSupportedCode(r))return t=r;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(0>e.indexOf("-")&&0>n.indexOf("-"))&&(e.indexOf("-")>0&&0>n.indexOf("-")&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1))return e})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),tM(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){let r=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),n=[],i=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return tM(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):tM(e)&&i(this.formatLanguageCode(e)),r.forEach(e
93=>{0>n.indexOf(e)&&i(this.formatLanguageCode(e))}),n}}let re={zero:0,one:1,two:2,few:3,many:4,other:5},rt={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class rr{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=t0.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let r,n=tJ("dev"===e?"en":e),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];try{r=new Intl.PluralRules(n,{type:i})}catch(i){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),rt;if(!e.match(/-|_/))return rt;let n=this.languageUtils.getLanguagePartFromCode(e);r=this.getRule(n,t)}return this.pluralRulesCache[o]=r,r}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return(r||(r=this.getRule("dev",t)),r)?r.resolvedOptions().pluralCategories.sort((e,t)=>re[e]-re[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,r={}){let n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}let rn=(e,t,r,n=".",i=!0)=>{let o,a=void 0!==(o=tG(e,r))?o:tG(t,r);return!a&&i&&tM(r)&&void 0===(a=tX(e,r,n))&&(a=tX(t,r,n)),a};class ri{constructor(e={}){this.logger=t0.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:d,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:g,maxReplaces:y,alwaysFormat:m}=e.interpolation;this.escape=void 0!==t?t:tQ,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=i?i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):o||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=p?p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):d||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=g||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==m&&m,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let i,o,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(0>e.indexOf(this.formatSeparator)){let i=rn(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,r,{...n,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format(rn(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,r,{...n,...t,interpolationkey:o})};this.resetRegExp();let c=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e).replace(/\$/g,"$$$$"):e.replace(/\$/g,"$$$$")}
93].forEach(t=>{for(a=0;i=t.regex.exec(e);){let r=i[1].trim();if(void 0===(o=l(r)))if("function"==typeof c){let t=c(e,i,n);o=tM(t)?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))o="";else if(u){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),o="";else tM(o)||this.useRawValueToEscape||(o=tj(o));let s=t.safeValue(o);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,r={}){let n,i,o,a=(e,t)=>{let r=this.nestingOptionsSeparator;if(0>e.indexOf(r))return e;let n=e.split(RegExp(`${r}[ ]*{`)),i=`{${n[1]}`;e=n[0];let a=(i=this.interpolate(i,o)).match(/'/g),s=i.match(/"/g);((a?.length??0)%2!=0||s)&&s.length%2==0||(i=i.replace(/'/g,'"'));try{o=JSON.parse(i),t&&(o={...t,...o})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${r}${i}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];(o=(o={...r}).replace&&!tM(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;let l=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(-1!==l&&(s=n[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),n[1]=n[1].slice(0,l)),(i=t(a.call(this,n[1].trim(),o),o))&&n[0]===e&&!tM(i))return i;tM(i)||(i=tj(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),i=""),s.length&&(i=s.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:n[1].trim()}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}let ro=e=>{let t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});let a=n+JSON.stringify(o),s=t[a];return s||(s=e(tJ(n),i),t[a]=s),s(r)}},ra=e=>(t,r,n)=>e(tJ(r),n)(t);class rs{constructor(e={}){this.logger=t0.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let r=t.cacheInBuiltFormats?ro:ra;this.formats={number:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:r((e,t)=>{let r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:r((e,t)=>{let r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:r((e,t)=>{let r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:r((e,t)=>{let r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ro(t)}format(e,t,r,n={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&0>i[0].indexOf(")")&&i.find(e=>e.indexOf(")")>-1)){let e=i.findIndex(e=>e.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim(),r={};if(e.indexOf("(")>-1){let n=e.split("(");t=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);"currency"===t&&0>i.indexOf(":")?r.currency||(r.currency=i.trim()):"relativetime"===t&&0>i.indexOf(":")?r.range||(r.range=i.trim()):i.split(";").forEach(e=>{if(e){let[t,...n]=e.split(":"),i=n.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();r[o]||(r[o]=i),"false"===i&&(r[o]=!1),"true"===i&&(r[o]=!0),isNaN(i)||(r[o]=parseInt(i,10))}})}return{formatName:t,formatOptions:r}})(t);if(this.formats[i]){let t=e;try{let a=n?.formatParams?.[n.interpolationkey]||{},s=a.locale||a.lng||n.locale||n.lng||r;t=this.formats[i](e,s,{...o,...n,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}}class rl extends t1{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=t0.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,r,n){let i={},o={},a={},s={};
93return e.forEach(e=>{let n=!0;t.forEach(t=>{let a=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,n=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){let n=e.split("|"),i=n[0],o=n[1];t&&this.emit("failedLoading",i,o,t),!t&&r&&this.store.addResourceBundle(i,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);let a={};this.queue.forEach(r=>{((e,t,r)=>{let{obj:n,k:i}=tz(e,t,Object);n[i]=n[i]||[],n[i].push(r)})(r.loaded,[i],o),void 0!==r.pending[e]&&(delete r.pending[e],r.pendingCount--),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(e=>{a[e]||(a[e]={});let t=r.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,r,n=0,i=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:i,callback:o});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&n<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,r,n+1,2*i,o)},i):o(a,s)},s=this.backend[r].bind(this.backend);if(2===s.length){try{let r=s(e,t);r&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();tM(e)&&(e=this.languageUtils.toResolveHierarchy(e)),tM(t)&&(t=[t]);let i=this.queueLoad(e,t,r,n);if(!i.toLoad.length)return i.pending.length||n(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){let r=e.split("|"),n=r[0],i=r[1];this.read(n,i,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${i} for language ${n} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${n}`,o),this.loaded(e,r,o)})}saveMissing(e,t,r,n,i,o={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=r&&""!==r){if(this.backend?.create){let s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;(i=5===l.length?l(e,t,r,n,s):l(e,t,r,n))&&"function"==typeof i.then?i.then(e=>a(null,e)).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,r,n,a,s)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}let rc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),tM(e[1])&&(t.defaultValue=e[1]),tM(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let r=e[3]||e[2];
93Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ru=e=>(tM(e.ns)&&(e.ns=[e.ns]),tM(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),tM(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),rp=()=>{};class rd extends t1{constructor(e={},t){if(super(),this.options=ru(e),this.services={},this.logger=t0,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(tM(e.ns)?e.defaultNS=e.ns:0>e.ns.indexOf("translation")&&(e.defaultNS=e.ns[0]));let r=rc();this.options={...r,...this.options,...ru(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation}
93,void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);let n=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?t0.init(n(this.modules.logger),this.options):t0.init(null,this.options),e=this.modules.formatter?this.modules.formatter:rs;let t=new t7(this.options);this.store=new t2(this.options.resources,this.options);let i=this.services;i.logger=t0,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new rr(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),e&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(i.formatter=n(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new ri(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new rl(n(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=n(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=n(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new t8(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=rp),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=t$(),o=()=>{let e=(e,r)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),i.resolve(r),t(e,r)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?o():setTimeout(o,0),i}loadResources(e,t=rp){let r=t,n=tM(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return r();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&0>e.indexOf(t)&&e.push(t)})};n?t(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){let n=t$();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=rp),this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&t5.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&0>this.languages.indexOf(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let r=t$();
93this.emit("languageChanging",e);let n=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,o)=>{o?this.isLanguageChangingTo===e&&(n(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},o=t=>{e||t||!this.services.languageDetector||(t=[]);let r=tM(t)?t:t&&t[0],o=this.store.hasLanguageSomeTranslations(r)?r:this.services.languageUtils.getBestMatchFromCodes(tM(t)?[t]:t);o&&(this.language||n(o),this.translator.language||this.translator.changeLanguage(o),this.services.languageDetector?.cacheUserLanguage?.(o)),this.loadResources(o,e=>{i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}getFixedT(e,t,r){let n=(e,t,...i)=>{let o,a;(o="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=o.lng||n.lng,o.lngs=o.lngs||n.lngs,o.ns=o.ns||n.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||r||n.keyPrefix);let s=this.options.keySeparator||".";return o.keyPrefix&&Array.isArray(e)?a=e.map(e=>("function"==typeof e&&(e=t3(e,{...this.options,...t})),`${o.keyPrefix}${s}${e}`)):("function"==typeof e&&(e=t3(e,{...this.options,...t})),a=o.keyPrefix?`${o.keyPrefix}${s}${e}`:e),this.t(a,o)};return tM(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=r,n}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
93if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;let o=(e,t)=>{let r=this.services.backendConnector.state[`${e}|${t}`];return -1===r||0===r||2===r};if(t.precheck){let e=t.precheck(this,o);if(void 0!==e)return e}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!n||o(i,e)))}loadNamespaces(e,t){let r=t$();return this.options.ns?(tM(e)&&(e=[e]),e.forEach(e=>{0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){let r=t$();tM(e)&&(e=[e]);let n=this.options.preload||[],i=e.filter(e=>0>n.indexOf(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=n.concat(i),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new t7(rc());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new rd(e,t)}cloneInstance(e={},t=rp){let r=e.forkResourceStore;r&&delete e.forkResourceStore;let n={...this.options,...e,isClone:!0},i=new rd(n);return(void 0!==e.debug||void 0!==e.prefix)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new t2(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((r,n)=>(r[n]={...e[t][n]},r),e[t]),e),{}),n),i.services.resourceStore=i.store),i.translator=new t8(i.services,n),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let rh=rd.createInstance();function rf(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 rg(e){return(rg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}rh.createInstance=rd.createInstance,rh.createInstance,rh.dir,rh.init,rh.loadResources,rh.reloadResources,rh.use,rh.changeLanguage,rh.getFixedT,rh.t,rh.exists,rh.setDefaultNamespace,rh.hasLoadedNamespace,rh.loadNamespaces,rh.loadLanguages,e.s(["default",0,rh],86556);var ry=["__proto__","constructor","prototype"];function rm(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function rv(){return"function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":rg(XMLHttpRequest))==="object"}var rb=/\{\{(.+?)\}\}/g;function rx(e,t){var r=!1,n=e.replace(rb,function(e,n){var i,o=n.trim();if(ry.indexOf(o)>-1)return e;var a=t[o];if(null==a)return e;var s,l=String(a).split("+"),c=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return rf(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?rf(e,void 0):void 0}}(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw i}}}}(l);try{for(c.s();!(s=c.n()).done;)if(i=s.value,"string"!=typeof i||0===i.length||i.length>128||ry.indexOf(i)>-1||i.indexOf("..")>-1||i.indexOf("/")>-1||i.indexOf("\\")>-1||/[?#%\s@]/.test(i)||/[\x00-\x1F\x7F]/.test(i)||0)return r=!0,e}catch(e){c.e(e)}finally{c.f()}return l.join("+")});return r?null:n}function rE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
93t%2?rE(Object(r),!0).forEach(function(t){var n,i,o;n=e,i=t,o=r[t],(i=function(e){var t=function(e,t){if("object"!=rT(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=rT(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rT(t)?t:t+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rT(e){return(rT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var rw="function"==typeof fetch?fetch:void 0;if(e.g.fetch?rw=e.g.fetch:"u">typeof window&&window.fetch&&(rw=window.fetch),rv()&&(e.g.XMLHttpRequest?i=e.g.XMLHttpRequest:"u">typeof window&&window.XMLHttpRequest&&(i=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&(e.g.ActiveXObject?o=e.g.ActiveXObject:"u">typeof window&&window.ActiveXObject&&(o=window.ActiveXObject)),"function"!=typeof rw&&(rw=void 0),!rw&&!i&&!o)try{e.A(21008).then(function(e){rw=e.default}).catch(function(){})}catch(e){}var rk=["__proto__","constructor","prototype"],rO=function(e,t){if(t&&"object"===rT(t)){for(var r="",n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];rk.indexOf(o)>-1||(r+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]))}if(!r)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+r.slice(1)}return e},r_=function(e,t,r,n){var i=function(e){if(!e.ok)return r(e.statusText||"Error",{status:e.status});e.text().then(function(t){r(null,{status:e.status,data:t})}).catch(r)};if(n){var o=n(e,t);if(o instanceof Promise)return void o.then(i).catch(r)}"function"==typeof fetch?fetch(e,t).then(i).catch(r):rw(e,t).then(i).catch(r)},rI=function(t,r,n,i){t.queryStringParams&&(r=rO(r,t.queryStringParams));var o=rS({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);"u"<typeof window&&void 0!==e.g.process&&e.g.process.versions&&e.g.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(e.g.process.version,"; ").concat(e.g.process.platform," ").concat(e.g.process.arch,")")),n&&(o["Content-Type"]="application/json");var a="function"==typeof t.requestOptions?t.requestOptions(n):t.requestOptions,s=rS({method:n?"POST":"GET",body:n?t.stringify(n):void 0,headers:o},t._omitFetchOptions?{}:a),l="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{r_(r,s,i,l)}catch(e){if(!a||0===Object.keys(a).length||!e.message||0>e.message.indexOf("not implemented"))return i(e);try{Object.keys(a).forEach(function(e){delete s[e]}),r_(r,s,i,l),t._omitFetchOptions=!0}catch(e){i(e)}}},rA=function(e,t,r,n){r&&"object"===rT(r)&&(r=rO("",r).slice(1)),e.queryStringParams&&(t=rO(t,e.queryStringParams));try{var a=i?new i:new o("MSXML2.XMLHTTP.3.0");a.open(r?"POST":"GET",t,1),e.crossDomain||a.setRequestHeader("X-Requested-With","XMLHttpRequest"),a.withCredentials=!!e.withCredentials,r&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.overrideMimeType&&a.overrideMimeType("application/json");var s=e.customHeaders;if(s="function"==typeof s?s():s)for(var l=0,c=Object.keys(s);l<c.length;l++){var u=c[l];rk.indexOf(u)>-1||a.setRequestHeader(u,s[u])}a.onreadystatechange=function(){a.readyState>3&&n(a.status>=400?a.statusText:null,{status:a.status,data:a.responseText})},a.send(r)}catch(e){console&&console.log(e)}};let rN=function(e,t,r,n){return("function"==typeof r&&(n=r,r=void 0),n=n||function(){},rw&&0!==t.indexOf("file:"))?rI(e,t,r,n):rv()||"function"==typeof ActiveXObject?rA(e,t,r,n):void n(Error("No fetch and no xhr implementation found!"))};function rP(e){return(rP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
93t%2?rR(Object(r),!0).forEach(function(t){rC(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rR(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rC(e,t,r){return(t=rL(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rL(e){var t=function(e,t){if("object"!=rP(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=rP(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rP(t)?t:t+""}var rF=(r=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof e))throw TypeError("Cannot call a class as a function");this.services=t,this.options=r,this.allOptions=n,this.type="backend",this.init(t,r,n)},n=[{key:"init",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.services=e,this.options=rD(rD(rD({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(e){return JSON.parse(e)},stringify:JSON.stringify,parsePayload:function(e,t,r){return rC({},t,r||"")},parseLoadPayload:function(e,t){},request:rN,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),r),this.allOptions=n,this.services&&this.options.reloadInterval){var i=setInterval(function(){return t.reload()},this.options.reloadInterval);"object"===rP(i)&&"function"==typeof i.unref&&i.unref()}}},{key:"readMulti",value:function(e,t,r){this._readAny(e,e,t,t,r)}},{key:"read",value:function(e,t,r){this._readAny([e],e,[t],t,r)}},{key:"_readAny",value:function(e,t,r,n,i){var o,a,s=this,l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(e,r)),(l=(a=o=l)&&"function"==typeof a.then?o:Promise.resolve(o)).then(function(o){if(!o)return i(null,{});var a=rx(o,{lng:e.join("+"),ns:r.join("+")});if(null==a)return i(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(rm).join(", ")+"] namespaces=["+r.map(rm).join(", ")+"]"),!1);s.loadUrl(a,i,t,n)})}},{key:"loadUrl",value:function(e,t,r,n){var i=this,o=this.options.parseLoadPayload("string"==typeof r?[r]:r,"string"==typeof n?[n]:n),a=rm(function(e){if("string"!=typeof e||0===e.length)return e;try{var t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,o,function(e,o){if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+a+"; status code: "+o.status,!1);if(!o&&e&&e.message){var s,l,c=e.message.toLowerCase();if(["failed","fetch","network","load"].find(function(e){return c.indexOf(e)>-1}))return t("failed loading "+a+": "+rm(e.message),!0)}if(e)return t(e,!1);try{s="string"==typeof o.data?i.options.parse(o.data,r,n):o.data}catch(e){l="failed parsing "+a+" to json"}if(l)return t(l,!1);t(null,s)})}},{key:"create",value:function(e,t,r,n,i){var o=this;if(this.options.addPath){"string"==typeof e&&(e=[e]);var a=this.options.parsePayload(t,r,n),s=0,l=[],c=[];e.forEach(function(r){var n=o.options.addPath;"function"==typeof o.options.addPath&&(n=o.options.addPath(r,t));var u=rx(n,{lng:r,ns:t});if(null==u){s+=1,i&&s===e.length&&i(l,c);return}o.options.request(o.options,u,a,function(t,r){s+=1,l.push(t),c.push(r),s===e.length&&"function"==typeof i&&i(l,c)})})}}},{key:"reload",value:function(){var e=this,t=this.services,r=t.backendConnector,n=t.languageUtils,i=t.logger,o=r.language;if(!o||"cimode"!==o.toLowerCase()){var a=[],s=function(e){n.toResolveHierarchy(e).forEach(function(e){0>a.indexOf(e)&&a.push(e)})};
93s(o),this.allOptions.preload&&this.allOptions.preload.forEach(function(e){return s(e)}),a.forEach(function(t){e.allOptions.ns.forEach(function(e){r.read(t,e,"read",null,null,function(n,o){n&&i.warn("loading namespace ".concat(e," for language ").concat(t," failed"),n),!n&&o&&i.log("loaded namespace ".concat(e," for language ").concat(t),o),r.loaded("".concat(t,"|").concat(e),n,o)})})})}}}],function(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,rL(n.key),n)}}(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r);rF.type="backend",e.s(["default",0,rF],393562)},955126,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UnsupportedFetchMethodError=void 0,r.UnsupportedFetchMethodError=class extends Error{constructor(e){super(`Unsupported fetch method: ${e}`),this.name="UnsupportedFetchMethodError"}}},657081,(e,t,r)=>{"use strict";var n=e.e&&e.e.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.createDataManagerHttpLink=function({graphqlUrl:e,showRequestLogs:t,isSecureRequest:r}){return new i.HttpLink({uri:e,fetch:(e,i)=>n(this,void 0,void 0,function*(){let n=o.DataManager.instance();if(i&&(null==i?void 0:i.method)!=="POST"&&(null==i?void 0:i.method)!=="GET")throw new p.UnsupportedFetchMethodError(null==i?void 0:i.method);let h="Unnamed";if(t&&i&&i.body){let e=JSON.parse(i.body);["IntrospectionQuery"].includes(h=e.operationName)||(console.groupCollapsed(`%cRequest: ${h}`,"color:#F57C00"),console.log("variables",e.variables),console.log(JSON.parse(i.body).query),console.groupEnd())}let f=(null==i?void 0:i.method)==="POST"?n.sendPost:n.sendGet,[g,y,m]=yield Promise.all([s.ClientInformationIF.resolve().getClientInformation(),l.PlatformInformationIF.resolve().getPlatformInformation(),c.DeviceInformationIF.resolve().getDeviceInformation()]),v=u.Lifecycle.instance().getDeviceStatus().network.provider;try{d++;let n=`[${d}] Response time`;console.time(n);let o="string"==typeof e?e:e instanceof URL?e.toString():e instanceof Request?e.url:String(e),s=yield f(o,"graphql-do-not-cache-this",{postAsJson:!0,secure:yield r(),post:null==i?void 0:i.body,responseType:"HTTP_RESPONSE",headers:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"x-country":g.country,"tv-client-boot-id":a.Boot.instance().getBootId(),"tv-client-tz":Intl.DateTimeFormat().resolvedOptions().timeZone,"tv-client-name":g.client.toLowerCase(),"tv-client-version":g.version,"tv-client-os-name":y.name,"tv-client-os-version":y.version},y.browser&&{"tv-client-browser":y.browser}),y.browserVersion&&{"tv-client-browser-version":y.browserVersion}),m.vendor&&{"tv-client-vendor":m.vendor}),m.vendorModel&&{"tv-client-vendor-model":m.vendorModel}),v&&{"tv-client-network-provider":v})});return t&&!["IntrospectionQuery"].includes(h)&&(console.groupCollapsed(`%cResponse: ${h}`,"color:#388E3C"),console.timeEnd(n),console.log(s),console.groupCollapsed("Stringified response"),console.log(JSON.stringify(s)),console.groupEnd(),console.groupEnd()),new Response(s.text,{status:s.status,headers:s.headers})}catch(e){throw t&&(console.groupCollapsed(`ERROR Response: ${h}`),console.groupEnd()),e}})})};let i=e.r(933720),o=e.r(551725),a=e.r(149171),s=e.r(580586),l=e.r(723311),c=e.r(190785),u=e.r(280123),p=e.r(955126),d=0},833816,e=>{"use strict";var t=e.i(516165),r=e.i(817366),n=e.i(434943),i=e.i(860123),o=e.i(701864),a=e.i(362575),s=e.i(272797);function l(e){return!!e&&("errors"in e||"data"in e)&&Object.keys(e).every(e=>"errors"===e||"data"===e||"extensions"===e)}var c=e.i(748410),u=e.i(240001),p=e.i(929100),d=e.i(269683),h=e.i(688392);function f(e){let t={},r={};return(0,d.isNonEmptyArray)(e)&&e.forEach(e=>{t[e.message]=e,"string"==typeof e.extensions?.code&&(r[e.extensions.code]=e)}),{persistedQueryNotSupported:!!(t.PersistedQueryNotSupported||r.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!!(t.PersistedQueryNotFound||r.PERSISTED_QUERY_NOT_FOUND)}}let g={disable:({meta:e})=>e.persistedQueryNotSupported,retry:({meta:e})=>e.persistedQueryNotSupported||e.persistedQueryNotFound,useGETForHashedQueries:!1};class y extends o.ApolloLink{constructor(e){let o;function d(){o=void 0}(0,h.invariant)(e&&("function"==typeof e.sha256||"function"==typeof e.generateHash),59);const{sha256:y,generateHash:m=e=>Promise.resolve(y((0,a.print)(e))),disable:v,retry:b,useGETForHashedQueries:x}=(0,p.compact)(g,e);let E=!0;const S=e=>new Promise(t=>t(m(e)));super((e,a)=>{(0,h.invariant)(a,60);let{query:c}=e;return new t.Observable(t=>{let p,h,g=!1,y=!1;function m(t,r){if(g)return r();if(g=!0,(E=!v(t))||(delete e.extensions.persistedQuery,d()),b(t)){p&&p.unsubscribe(),e.setContext(({http:e,fetchOptions:t})=>({http:{...e,includeQuery:!0,...E?{includeExtensions:!0}:{}},fetchOptions:{...t,method:"POST"}})),y&&e.setContext({fetchOptions:h}),p=a(e).subscribe(T);return}r()}let T={next:n=>{if(!l(n)||!n.errors)return t.next(n);m({operation:e,error:new r.CombinedGraphQLErrors(n),meta:f(n.errors),result:n},()=>t.next(n))},error:o=>{let a=(0,i.toErrorLike)(o),s=()=>t.error(o);if(n.ServerError.is(a)&&a.bodyText)try{let t=JSON.parse(a.bodyText);if(l(t))return m({error:new r.CombinedGraphQLErrors(t),result:t,operation:e,meta:f(t.errors)},s)}catch{}m({error:a,operation:e,meta:{persistedQueryNotSupported:!1,persistedQueryNotFound:!1}},s)},complete:t.complete.bind(t)};return e.setContext(({http:e})=>({http:E?{...e,includeQuery:!1,includeExtensions:!0}:e})),x&&E&&!e.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(e.setContext(({fetchOptions:e={}})=>(h=e,{fetchOptions:{...e,method:"GET"}})),y=!0),E?(function(e){if(!e||"object"!=typeof e)return S(e);o||(o=new u.AutoCleanedWeakCache(s.cacheSizes["PersistedQueryLink.persistedQueryHashes"]||2e3));let t=o.get(e);return t||o.set(e,t=S(e)),t})(c).then(t=>{e.extensions.persistedQuery={version:1,sha256Hash:t},p=a(e).subscribe(T)}).catch(t.error.bind(t)):p=a(e).subscribe(T),()=>{p&&p.unsubscribe()}})}),c.__DEV__&&Object.assign(this,{getMemoryInternals:()=>({PersistedQueryLink:{persistedQueryHashes:o?.size??0}})}),this.resetHashCache=d}resetHashCache}e.s(["PersistedQueryLink",0,y,"VERSION",0,1,"createPersistedQueryLink",0,e=>new y(e)],833816)},943943,(e,t,r)=>{var n=e.i(553049);!function(){"use strict";
93var r="input is invalid type",i="object"==typeof window,o=i?window:{};o.JS_SHA256_NO_WINDOW&&(i=!1);var a=!i&&"object"==typeof self,s=!o.JS_SHA256_NO_NODE_JS&&"object"==typeof n.default&&n.default.versions&&n.default.versions.node&&"renderer"!=n.default.type;s?o=e.g:a&&(o=self);var l=!o.JS_SHA256_NO_COMMON_JS&&t.exports,c="function"==typeof define&&define.amd,u=!o.JS_SHA256_NO_ARRAY_BUFFER&&"u">typeof ArrayBuffer,p="0123456789abcdef".split(""),d=[-0x80000000,8388608,32768,128],h=[24,16,8,0],f=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2],g=["hex","array","digest","arrayBuffer"],y=[];(o.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),u&&(o.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var m=function(e,t){return function(r){return new S(t,!0).update(r)[e]()}},v=function(e){var t=m("hex",e);s&&(t=b(t,e)),t.create=function(){return new S(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r<g.length;++r){var n=g[r];t[n]=m(n,e)}return t},b=function(e,t){var n,i={},a=void 0,s=t?"sha224":"sha256";return n=a.from&&!o.JS_SHA256_NO_BUFFER_FROM?a.from:function(e){return new a(e)},function(t){if("string"==typeof t)return i.createHash(s).update(t,"utf8").digest("hex");if(null==t)throw Error(r);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),Array.isArray(t)||ArrayBuffer.isView(t)||t.constructor===a?i.createHash(s).update(n(t)).digest("hex"):e(t)}},x=function(e,t){return function(r,n){return new T(r,t,!0).update(n)[e]()}},E=function(e){var t=x("hex",e);t.create=function(t){return new T(t,e)},t.update=function(e,r){return t.create(e).update(r)};for(var r=0;r<g.length;++r){var n=g[r];t[n]=x(n,e)}return t};function S(e,t){t?(y[0]=y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0,this.blocks=y):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=0xc1059ed8,this.h1=0x367cd507,this.h2=0x3070dd17,this.h3=0xf70e5939,this.h4=0xffc00b31,this.h5=0x68581511,this.h6=0x64f98fa7,this.h7=0xbefa4fa4):(this.h0=0x6a09e667,this.h1=0xbb67ae85,this.h2=0x3c6ef372,this.h3=0xa54ff53a,this.h4=0x510e527f,this.h5=0x9b05688c,this.h6=0x1f83d9ab,this.h7=0x5be0cd19),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function T(e,t,n){var i,o=typeof e;if("string"===o){var a,s=[],l=e.length,c=0;for(i=0;i<l;++i)(a=e.charCodeAt(i))<128?s[c++]=a:(a<2048?s[c++]=192|a>>>6:(a<55296||a>=57344?s[c++]=224|a>>>12:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),s[c++]=240|a>>>18,s[c++]=128|a>>>12&63),s[c++]=128|a>>>6&63),s[c++]=128|63&a);e=s}else if("object"===o){if(null===e)throw Error(r);else if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw Error(r)}else throw Error(r);e.length>64&&(e=new S(t,!0).update(e).array());var p=[],d=[];for(i=0;i<64;++i){var h=e[i]||0;p[i]=92^h,d[i]=54^h}S.call(this,t,n),this.update(d),this.oKeyPad=p,this.inner=!0,this.sharedMemory=n}S.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"===n){if(null===e)throw Error(r);else if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!u||!ArrayBuffer.isView(e)))throw Error(r)}else throw Error(r);t=!0}for(var i,o,a=0,s=e.length,l=this.blocks;a<s;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,this.block=l[16]=l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=0),t)for(o=this.start;a<s&&o<64;++a)l[o>>>2]|=e[a]<<h[3&o++];else for(o=this.start;a<s&&o<64;++a)(i=e.charCodeAt(a))<128?l[o>>>2]|=i<<h[3&o++]:(i<2048?l[o>>>2]|=(192|i>>>6)<<h[3&o++]:(i<55296||i>=57344?l[o>>>2]|=(224|i>>>12)<<h[3&o++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),l[o>>>2]|=(240|i>>>18)<<h[3&o++],l[o>>>2]|=(128|i>>>12&63)<<h[3&o++]),l[o>>>2]|=(128|i>>>6&63)<<h[3&o++]),l[o>>>2]|=(128|63&i)<<h[3&o++]);this.lastByteIndex=o,this.bytes+=o-this.start,o>=64?(this.block=l[16],this.start=o-64,this.hash(),this.hashed=!0):this.start=o}return this.bytes>0xffffffff&&(this.hBytes+=this.bytes/0x100000000|0,this.bytes=this.bytes%0x100000000),this}},S.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=d[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},S.prototype.hash=function(){var e,t,r,n,i,o,a,s,l,c,u=this.h0,p=this.h1,d=this.h2,h=this.h3,g=this.h4,y=this.h5,m=this.h6,v=this.h7,b=this.blocks;for(e=16;e<64;++e)t=((i=b[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,r=((i=b[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,b[e]=b[e-16]+t+b[e-7]+r|0;for(c=p&d,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,v=(i=b[0]-0x543c9a5b)-0x8f1a6c7|0,h=i+0x170e9b5|0):(a=0x2a01a605,v=(i=b[0]-0xc881298)-0x5ab00ac6|0,h=i+0x8909ae5|0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),n=(a=u&p)^u&d^c,i=v+r+(g&y^~g&m)+f[e]+b[e],o=t+n,v=h+i|0,h=i+o|0),t=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),n=(s=h&u)^h&p^a,i=m+r+(v&g^~v&y)+f[e+1]+b[e+1],o=t+n,m=d+i|0,t=((d=i+o|0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7),n=(l=d&h)^d&u^s,i=y+r+(m&v^~m&g)+f[e+2]+b[e+2],o=t+n,y=p+i|0,t=((p=i+o|0)>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7),n=(c=p&d)^p&h^l,i=g+r+(y&m^~y&v)+f[e+3]+b[e+3],o=t+n,g=u+i|0,u=i+o|0,this.chromeBugWorkAround=!0;this.h0=this.h0+u|0,this.h1=this.h1+p|0,this.h2=this.h2+d|0,this.h3=this.h3+h|0,this.h4=this.h4+g|0,this.h5=this.h5+y|0,this.h6=this.h6+m|0,this.h7=this.h7+v|0},S.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=p[e>>>28&15]+p[e>>>24&15]+p[e>>>20&15]+p[e>>>16&15]+p[e>>>12&15]+p[e>>>8&15]+p[e>>>4&15]+p[15&e]+p[t>>>28&15]+p[t>>>24&15]+p[t>>>20&15]+p[t>>>16&15]+p[t>>>12&15]+p[t>>>8&15]+p[t>>>4&15]+p[15&t]+p[r>>>28&15]+p[r>>>
9324&15]+p[r>>>20&15]+p[r>>>16&15]+p[r>>>12&15]+p[r>>>8&15]+p[r>>>4&15]+p[15&r]+p[n>>>28&15]+p[n>>>24&15]+p[n>>>20&15]+p[n>>>16&15]+p[n>>>12&15]+p[n>>>8&15]+p[n>>>4&15]+p[15&n]+p[i>>>28&15]+p[i>>>24&15]+p[i>>>20&15]+p[i>>>16&15]+p[i>>>12&15]+p[i>>>8&15]+p[i>>>4&15]+p[15&i]+p[o>>>28&15]+p[o>>>24&15]+p[o>>>20&15]+p[o>>>16&15]+p[o>>>12&15]+p[o>>>8&15]+p[o>>>4&15]+p[15&o]+p[a>>>28&15]+p[a>>>24&15]+p[a>>>20&15]+p[a>>>16&15]+p[a>>>12&15]+p[a>>>8&15]+p[a>>>4&15]+p[15&a];return this.is224||(l+=p[s>>>28&15]+p[s>>>24&15]+p[s>>>20&15]+p[s>>>16&15]+p[s>>>12&15]+p[s>>>8&15]+p[s>>>4&15]+p[15&s]),l},S.prototype.toString=S.prototype.hex,S.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4,o=this.h5,a=this.h6,s=this.h7,l=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a];return this.is224||l.push(s>>>24&255,s>>>16&255,s>>>8&255,255&s),l},S.prototype.array=S.prototype.digest,S.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},T.prototype=new S,T.prototype.finalize=function(){if(S.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();S.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),S.prototype.finalize.call(this)}};var w=v();if(w.sha256=w,w.sha224=v(!0),w.sha256.hmac=E(),w.sha224.hmac=E(!0),l)t.exports=w;else o.sha256=w.sha256,o.sha224=w.sha224,c&&(e.r,void 0!==w&&e.v(w))}()},162409,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createPersistedQueryLink=function({useGETForHashedQueries:e=!0,enabled:t=!0}){return t?new n.PersistedQueryLink({sha256:i.sha256,useGETForHashedQueries:e}):null};let n=e.r(833816),i=e.r(943943)},937811,(e,t,r)=>{"use strict";var n=e.e&&e.e.__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};Object.defineProperty(r,"__esModule",{value:!0}),r.createCommonApolloClient=void 0;let i=e.r(933720),o=e.r(747696),a=e.r(415630),s=e.r(657081),l=e.r(162409);r.createCommonApolloClient=e=>{var{graphqlUrl:t,showRequestLogs:r,cache:c,defaultOptions:u,persistedQueryOptions:p,link:d,onError:h,isSecureRequest:f}=e,g=n(e,["graphqlUrl","showRequestLogs","cache","defaultOptions","persistedQueryOptions","link","onError","isSecureRequest"]);let y=[(0,o.createErrorLink)({onError:h}),(0,l.createPersistedQueryLink)({enabled:null==p?void 0:p.enabled,useGETForHashedQueries:null==p?void 0:p.useGETForHashedQueries}),(0,s.createDataManagerHttpLink)({graphqlUrl:t,showRequestLogs:r,isSecureRequest:f})].filter(a.nonNullable);return d&&y.push(d),new i.ApolloClient(Object.assign({cache:c,link:i.ApolloLink.from(y),defaultOptions:Object.assign({query:{errorPolicy:"all"},watchQuery:{errorPolicy:"all"}},u)},g))}},523551,(e,t,r)=>{"use strict";var n=e.e&&e.e.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(r,"__esModule",{value:!0}),r.createApolloClientNoAuth=void 0;let i=e.r(937811);r.createApolloClientNoAuth=e=>(0,i.createCommonApolloClient)(Object.assign(Object.assign({},e),{isSecureRequest:()=>n(void 0,void 0,void 0,function*(){return!1})}))},655034,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createAbstraction=r.Abstraction=void 0;let n=e.r(196783);class i{constructor(e){this.id=e,this.resolving=!1,this.resolved=!1,this.interceptors=[]}implementDefault(e){if(this.resolved)throw Error(`The abstraction ${this.id} has been resolved. No default implementers allowed`);if(this.defaultImplementer)throw Error(`There is already a default implementer for the abstraction ${this.id}`);this.defaultImplementer=e}implement(e){if(this.resolved)throw Error(`The abstraction ${this.id} has been resolved. No implementers allowed`);if(this.implementer)throw Error(`There is already an implementer for the abstraction ${this.id}`);this.implementer=e}override(e){if(this.resolved)throw Error(`The abstraction ${this.id} has been resolved. No overriders allowed`);if(this.overrider)throw Error(`There is already an overrider for the abstraction ${this.id}`);this.overrider=e}intercept(e){if(this.resolved)throw Error(`The abstraction ${this.id} has been resolved. No interceptors allowed`);this.interceptors.push(e)}resolve(){if(!this.resolved){if(this.resolving)throw Error(`Circular dependency detected - the abstraction ${this.id} is already being resolved`);this.resolving=!0;try{let e;this.overrider&&(e=this.overrider()),!e&&this.implementer&&(e=this.implementer()),!e&&this.defaultImplementer&&(e=this.defaultImplementer()),e&&this.interceptors.forEac
93h(t=>{let r=t(e);r&&(e=r)}),this.resolved=!0,this.resolvedImplementation=e}finally{this.resolving=!1}}if(!this.resolvedImplementation)throw new n.NoImplementationError(this,`No implementation found for abstraction ${this.id}`);return this.resolvedImplementation}resolveOptional(){try{return this.resolve()}catch(e){if(e instanceof n.NoImplementationError&&e.abstraction===this)return;throw e}}async resolveLazy(){return this.resolved?this.resolve():Promise.resolve().then(()=>{try{return Promise.resolve(this.resolve())}catch(e){return Promise.reject(e)}})}async resolveOptionalLazy(){return this.resolved?this.resolveOptional():Promise.resolve().then(()=>{try{return Promise.resolve(this.resolveOptional())}catch(e){return Promise.reject(e)}})}}r.Abstraction=i,r.createAbstraction=e=>new i(e)},321484,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AdaptiveDate=void 0,r.AdaptiveDate=(0,e.r(716697).createSingleton)("@telia-company/tv.common-sdk/dist/AdaptiveDate.AdaptiveDate",()=>{let e=0,t=Date,r=function(...n){if(!new.target)return new r().toString();switch(n.length){case 0:return new t(t.now()+e);case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}};return r.now=function(){return t.now()+e},r.UTC=function(...e){return t.UTC.apply(this,e)},r.parse=function(e){return t.parse(e)},r.prototype=Date.prototype,Date=r,{setTime:r=>{e=new t(r).getTime()-t.now()},reset:()=>{e=0},getDeltaTime:()=>e}},{})},149171,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Boot=void 0;let n=e.r(716697),i=e.r(769953);r.Boot=(0,n.createSingleton)("@telia-company/tv.common-sdk/dist/Boot.Boot",()=>{let e=i.UuidIF.resolve().createUuid();return{getBootId:()=>e}},{})},78309,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CacheManager=void 0;let n=e.r(716697),i=e.r(828265),o=e.r(13127),a="common-sdk-base/CacheManager/maxSize";i.Config.setDefault(a,1048576),r.CacheManager=(0,n.createSingleton)("@telia-company/tv.common-sdk/dist/CacheManager.CacheManager",({events:e})=>
93{let t=o.Log.instance()(r.CacheManager),n={},s={},l=[],c=0;function u(e){c-=s[e].dataSize,delete s[e],l.splice(l.indexOf(e),1)}function p(e){var t;return(null==(t=s[e])?void 0:t.expireTs)<Date.now()}function d(e,t){n[e]=n[e]||[];let r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1),n[e].unshift(t)}let h={getMaxSize:()=>i.Config.get(a),getCurrentSize:()=>c,clear:()=>{let t=Object.keys(n);s={},l=[],c=0,e.clearCacheClass.emit({cacheClasses:t})},clearCacheKey:e=>{s[e]&&u(e)},clearCacheClass:t=>{n[t]&&(n[t].forEach(e=>{h.clearCacheKey(e)}),delete n[t]),e.clearCacheClass.emit({cacheClasses:[t]})},isCacheValid:e=>!p(e),get:e=>{var t;let r=null==(t=s[e])?void 0:t.value;if(r&&(l.splice(l.indexOf(e),1),l.unshift(e)),!(r&&p(e)))return r},set:(e,r,n,o)=>{let f=((y=encodeURI(n)).includes("%")?(g=y.split("%").length-1,g+=y.length-3*g):g=y.length,g);if(f<=i.Config.get(a)){var g,y;let t;for(let e in s)if(p(e)&&(u(e),c+f<=i.Config.get(a)))break;for(;h.getCurrentSize()&&h.getCurrentSize()+f>i.Config.get(a);)u(l[l.length-1]);t=Date.now()+o,l.includes(r)&&u(r),l.unshift(r),d(e,r),s[r]={value:n,dataSize:f,expireTs:t},c+=f}else t.warn("Failed to store value in cache. The value exceeded the maximum allowed size",r)},addToCacheClass:(e,r)=>{s[r]?d(e,r):t.warn(`Failed to add cache key "${r}" to cache class "${e}" - there is no value stored for the cache key`)}};return h},{events:{clearCacheClass:new n.Event}})},342401,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createCollection=r.Collection=void 0;class n{constructor(e){this.id=e,this.collecting=!1,this.collected=!1,this.items=[],this.providers=[],this.interceptors=[]}provide(e){if(this.collected)throw Error("The collection has been collected - no more providers allowed");this.providers.push(e)}intercept(e){if(this.collected)throw Error("The collection has been collected - no more interceptors allowed");this.interceptors.push(e)}collect(){if(!this.collected){if(this.collecting)throw Error(`Circular dependency detected - the collection ${this.id} is already being collected`);this.collecting=!0;try{let e=[];this.providers.forEach(t=>{e=e.concat(t())}),this.interceptors.forEach(t=>{let r=t(e);r&&(e=r)}),this.collected=!0,this.items=e}finally{this.collecting=!1}}return this.items.slice()}async collectLazy(){return this.collected?this.collect():Promise.resolve().then(()=>{try{return Promise.resolve(this.collect())}catch(e){return Promise.reject(e)}})}}r.Collection=n,r.createCollection=e=>new n(e)},670432,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createCollectionGroup=r.CollectionGroup=void 0;let n=e.r(342401);class i{constructor(e){this.id=e,this.keyedCollections={}}getCollection(e){let t=this.keyedCollections[e];if(t)return t;let r=(0,n.createCollection)(e);return this.keyedCollections[e]=r,r}provide(e,t){this.getCollection(e).provide(t)}keys(){return Object.keys(this.keyedCollections)}collect(e){return this.getCollection(e).collect()}collectLazy(e){return this.getCollection(e).collectLazy()}intercept(e,t){this.getCollection(e).intercept(t)}}r.CollectionGroup=i,r.createCollectionGroup=e=>new i(e)},706443,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createStatisticsBlacklistCollection=r.StatisticsBlacklisters=void 0,r.StatisticsBlacklisters=(0,e.r(670432).createCollectionGroup)("@telia-company/tv.common-sdk/dist/collections/StatisticsBlacklisters.StatisticsBlacklisters"),r.createStatisticsBlacklistCollection=e=>r.StatisticsBlacklisters.getCollection(e.id)},828265,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Config=void 0;let n={};r.Config={get:e=>n[e],set:(e,t)=>{n[e]=t},setConfigs:e=>{for(let t in e)r.Config.set(t,e[t])},setDefault:(e,t)=>{e in n||r.Config.set(e,t)},setDefaults:e=>{for(let t in e)r.Config.setDefault(t,e[t])},getKeys:()=>Object.keys(n)}},551725,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DataManager=void 0;let n=e.r(141323),i=e.r(567681),o=e.r(13127),a=e.r(716697),s=e.r(196783),l=e.r(459387);r.DataManager=(0,a.createSingleton)("@telia-company/tv.common-sdk/dist/DataManager.DataManager",()=>{let e=i.HttpRequest.instance(),t=n.AuthenticationWrapperIF.resolveOptionalLazy(),a=o.Log.instance()(r.DataManager),c=e=>encodeURIComponent(e).replace(/%2C/g,","),u=!1;function p(e){let t=[];for(let r in e){let n=e[r];if(n instanceof Array)if(0===n.length)t[t.length]=r+"=";else for(let e of n)t[t.length]=r+"="+c(e);else void 0!==n&&(t[t.length]=r+"="+c(String(n)))}return t.join("&")}async function d(r,n,i,o={}){let c={method:r,url:n,requestData:o,headers:(0,l.normalizeHeaders)(o.headers||{})},h=await t,f=h&&o.secure;!o.secure||h||u||(u=!0,a.warn("Secure request attempted, but no AuthenticationWrapperIF implementation available"));try{let t,r=0,l=async()=>{var n,a,s,u,d;let g;f&&await h.request(c,r);let y=c.url,m=p(c.requestData.query||{});if(m&&(n=y,a=n.indexOf("?"),s=n.indexOf("#"),d=(u=-1===s?"":n.substr(s))?n.substr(0,s):n,y=-1===a?d+"?"+m+u:d+"&"+m+u),c.requestData.postAsJson){let e=c.requestData.post||"{}";c.headers["content-type"]="application/json",g="string"==typeof e?e:JSON.stringify(e)}else{let e;"string"==typeof c.requestData.post?g=c.requestData.post:c.requestData.post&&(e=c.requestData.post,g=p(e)),g&&(c.headers["content-type"]="application/x-www-form-urlencoded")}t=await e.sendRequest(c.method,y,i,{postData:g,headers:c.headers,abortSignal:o.abortSignal}),f&&(await h.response(c,t)).retryRequest&&(r+=1,await l())};return await l(),function(e,t,r){var n,i;let{status:o}=r;if(0===o)throw new s.RequestUnspecifiedError(e,r.status,r.text,void 0,r.headers);if(401===o)throw new s.RequestNotAuthenticatedError(e,r.status,r.text,void 0,r.headers);if(404===o)throw new s.RequestContentNotFoundError(e,r.status,r.text,void 0,r.headers);if(o<200||o>299)throw new s.RequestServerError(e,r.status,r.text,void 0,r.headers);if((!t.responseType||"JSON"===t.responseType)&&(n=r.headers,(i=function(e,t){for(let r in e=e.toLowerCase(),t)if(r.toLowerCase()===e)return t[r]}("content-type",n))&&"application/json"===i.split(";")[0].trim()||0))if(""===r.text.trim())return;else try{return JSON.parse(r.text)}catch(t){if(!(t instanceof Error))throw"Not Error";throw a.error(`Failed to parse JSON response for url: ${e}`,t.message),new s.RequestParseError(e,r.status,r.text,void 0,r.headers)}return r}(n,o,t)}finally{f&&h.finally(c)}}return{sendPost:async(e,t,r)=>d("POST",e,t,r),sendPut:async(e,t,r)=>d("PUT",e,t,r),sendGet:async(e,t,r)=>d("GET",e,t,r),sendDelete:async(e,t,r)=>d("DELETE",e,t,r),sendPatch:async(e,t,r)=>d("PATCH",e,t,r),createAbortSignal:()=>e.createAbortSignal()}},{})},196783,(e,t,r)=>{"use strict";
93Object.defineProperty(r,"__esModule",{value:!0}),r.ConfigurationError=r.SignalAlreadyEmittedError=r.AbortError=r.NoImplementationError=r.RequestServerError=r.RequestParseError=r.RequestContentNotFoundError=r.RequestNotAuthenticatedError=r.RequestUnspecifiedError=r.RequestError=void 0;class n extends Error{constructor(e,t,r,i,o){super(i),this.url=e,this.status=t,this.responseText=r,this.name="RequestError",this.responseHeaders=o,Object.setPrototypeOf(this,n.prototype)}}r.RequestError=n;class i extends n{constructor(e,t,r,n,o){super(e,t,r,n,o),this.name="RequestUnspecifiedError",Object.setPrototypeOf(this,i.prototype)}}r.RequestUnspecifiedError=i;class o extends n{constructor(e,t,r,n,i){super(e,t,r,n,i),this.name="RequestNotAuthenticatedError",Object.setPrototypeOf(this,o.prototype)}}r.RequestNotAuthenticatedError=o;class a extends n{constructor(e,t,r,n,i){super(e,t,r,n,i),this.name="RequestContentNotFoundError",Object.setPrototypeOf(this,a.prototype)}}r.RequestContentNotFoundError=a;class s extends n{constructor(e,t,r,n,i){super(e,t,r,n,i),this.name="RequestParseError",Object.setPrototypeOf(this,s.prototype)}}r.RequestParseError=s;class l extends n{constructor(e,t,r,n,i){super(e,t,r,n,i),this.name="RequestServerError",Object.setPrototypeOf(this,l.prototype)}}r.RequestServerError=l;class c extends Error{constructor(e,t){super(t),this.abstraction=e,this.name="NoImplementationError",Object.setPrototypeOf(this,c.prototype)}}r.NoImplementationError=c;class u extends Error{constructor(e){super(e),this.name="AbortError",Object.setPrototypeOf(this,u.prototype)}}r.AbortError=u;
93class p extends Error{constructor(e){super(e),this.name="SignalAlreadyEmittedError",Object.setPrototypeOf(this,p.prototype)}}r.SignalAlreadyEmittedError=p,r.ConfigurationError=class e extends Error{constructor(t){super(t),this.name="ConfigurationError",Object.setPrototypeOf(this,e.prototype)}}},13127,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Log=void 0;let n=e.r(716697),i=e.r(828265),o=e.r(603813);i.Config.setDefault("common-sdk/Log/logLevel","ERROR");let a={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5};r.Log=(0,n.createSingleton)("@telia-company/tv.common-sdk/dist/Log.Log",()=>{function e(e,t,r,n,s){for(let l of o.LogAppenders.collect())try{l.isEnabled()&&a[i.Config.get("common-sdk/Log/logLevel")]<=a[r]&&l.log(t,Date.now(),r,e,n,...s)}catch(e){}}return function(t){let r=0,n="string"==typeof t?t:t.id;return{trace:(t,...i)=>{e(n,++r,"TRACE",t,i)},debug:(t,...i)=>{e(n,++r,"DEBUG",t,i)},info:(t,...i)=>{e(n,++r,"INFO",t,i)},warn:(t,...i)=>{e(n,++r,"WARN",t,i)},error:(t,...i)=>{e(n,++r,"ERROR",t,i)},fatal:(t,...i)=>{e(n,++r,"FATAL",t,i)}}}},{})},459229,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ServiceConfig=void 0;let n=e.r(828265),i=e.r(196783),o=/^common-sdk\/services\/(.+)\/url$/;function a(e){let t=n.Config.get(`common-sdk/services/${e}/url`);if(!t)throw new i.ConfigurationError(`Missing configuration for service '${e}' base url. Configure 'common-sdk/services/${e}/url' to point to a valid base url`);return t}r.ServiceConfig={getService:e=>(a(e),{getUrl(t){let r=a(e);return r.endsWith("/")&&(r=r.slice(0,-1)),t.startsWith("/")||(t=`/${t}`),`${r}${t}`},getHeaders:()=>n.Config.get(`common-sdk/services/${e}/headers`)}),getServiceMap(){let e=n.Config.getKeys().map(e=>e.match(o)),t={};return e.forEach(e=>{if(e){let r=e[1];t[r]=this.getService(r)}}),t}}},102551,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Signal=void 0;let n=e.r(196783);r.Signal=class{constructor(){this.listeners=[],this.emitted=!1}listen(e){this.emitted?e(this.emitReason):this.listeners.push(e)}isEmitted(){return this.emitted}emit(e){if(this.emitted)throw new n.SignalAlreadyEmittedError("The signal has already been emitted");this.emitted=!0,this.emitReason=e,this.listeners.forEach(t=>t(e)),this.listeners=[]}}},390506,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HttpRequestIF=r.AbortSignal=r.AbortError=void 0;let n=e.r(655034),i=e.r(102551);var o=e.r(196783);Object.defineProperty(r,"AbortError",{enumerable:!0,get:function(){return o.AbortError}});class AbortSignal extends i.Signal{}r.AbortSignal=AbortSignal,r.HttpRequestIF=(0,n.createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/platform/HttpRequestIF.HttpRequestIF")},716697,(e,t,r)=>{"use strict";var n,i=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=e.e&&e.e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e.e&&e.e.__importStar||(n=function(e){return(n=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=n(e),a=0;a<r.length;a++)"default"!==r[a]&&i(t,e,r[a]);return o(t,e),t});Object.defineProperty(r,"__esModule",{value:!0}),r.event=r.createStartupSingleton=r.createSingleton=r.Singleton=r.Event=void 0;let s=Promise.resolve().then(()=>a(e.r(13127))),l=[],c=!1;class u{constructor(){this.listenerReferenceId=0,this.listeners=[]}on(e,...t){let r={id:++this.listenerReferenceId};return this.listeners.push({reference:r,callback:e,args:t}),r}off(e){let t=this.listeners.findIndex(t=>t.reference===e);-1!==t&&this.listeners.splice(t,1)}once(e,...t){let r=this.on((t,...n)=>{this.off(r),e(t,...n)},...t);return r}
93emit(e){this.listeners.forEach(t=>{try{t.callback(e,...t.args)}catch(t){s.then(({Log:r})=>{r.instance()("Event").error("Failed to emit event",e,t)})}})}}r.Event=u;class p{constructor(e,t,r){this.id=e,this.creator=t,this.statics=r,this.interceptors=[],this.instancing=!1}intercept(e){if(this.createdInstance)throw Error("Cannot intercept an already instanced singleton");this.interceptors.push(e)}instance(){if(c||(c=!0,l.forEach(e=>{e!==this&&e.instance()}),l=[]),!this.createdInstance){if(this.instancing)throw Error(`Circular dependency detected - the singleton ${this.id} is already being instanced`);this.instancing=!0;try{this.createdInstance=this.creator(this.statics),this.interceptors.forEach(e=>{let t=e(this.createdInstance);t&&(this.createdInstance=t)})}finally{this.instancing=!1}}return this.createdInstance}async instanceLazy(){return this.createdInstance?this.instance():Promise.resolve().then(()=>{try{return Promise.resolve(this.instance())}catch(e){return Promise.reject(e)}})}}r.Singleton=p,r.createSingleton=(e,t,r)=>new p(e,t,r),r.createStartupSingleton=(e,t,r)=>{let n=new p(e,t,r);return l.push(n),n},r.event=()=>new u},526570,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Statistics=void 0;let n=e.r(716697),i=e.r(13127),o=e.r(706443);r.Statistics=(0,n.createSingleton)("@telia-company/tv.common-sdk/dist/Statistics.Statistics",()=>{let e=i.Log.instance()(r.Statistics),t=[];return{log:(r,n)=>{let i,a=((i=t.find(e=>e.collection===r))||(i={collection:r,sequence:0},t.push(i)),i),s=++a.sequence,l=Date.now(),c=r.collect(),u=o.StatisticsBlacklisters.collect(r.id);for(let e of u)if(e.isStatisticsBlacklisted&&e.isStatisticsBlacklisted(n))return;for(let e of u)if(e.prepareStatistics)try{e.prepareStatistics(n)}catch(e){}for(let t of c)try{t.isEnabled()&&t.log(s,l,n)}catch(t){e.error("Failed to log statistics",t)}}}},{})},141323,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AuthenticationWrapperIF=void 0,r.AuthenticationWrapperIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/AuthenticationWrapperIF.AuthenticationWrapperIF")},769953,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UuidIF=void 0,r.UuidIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/UuidIF.UuidIF")},580586,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ClientInformationIF=void 0,r.ClientInformationIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/client/ClientInformationIF.ClientInformationIF")},584899,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DeviceIdentificationIF=void 0,r.DeviceIdentificationIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/device/DeviceIdentificationIF.DeviceIdentificationIF")},190785,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DeviceInformationIF=void 0,r.DeviceInformationIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/device/DeviceInformationIF.DeviceInformationIF")},177915,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NetworkIF=void 0,r.NetworkIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/platform/NetworkIF.NetworkIF")},731582,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LifecycleIF=void 0,r.LifecycleIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/platform/LifecycleIF.LifecycleIF")},252329,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SystemIF=void 0,r.SystemIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/SystemIF.SystemIF")},280123,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Lifecycle=void 0;let n=e.r(716697),i=e.r(13127),o=e.r(828265),a=e.r(321484),s=e.r(177915),l=e.r(731582),c=e.r(252329),u="common-sdk/Lifecycle/TimeService/adaptiveDate",p="common-sdk/Lifecycle/TimeService/margin";o.Config.setDefault(u,!1),o.Config.setDefault(p,3e4),r.Lifecycle=(0,n.createStartupSingleton)("@telia-company/tv.common-sdk/dist/Lifecycle.Lifecycle",({events:e})=>{let t=i.Log.instance(),n=a.AdaptiveDate.instance(),d=c.SystemIF.resolveOptional(),h=s.NetworkIF.resolveOptional(),f=l.LifecycleIF.resolveOptional(),g=t(r.Lifecycle);function y(){let t={};h&&(t.network=h.getNetworkInfo()),f&&(t.lifecycle=f.getLifecycleInfo()),e.deviceStatus.emit(t)}return null==h||h.setChangeCallback(function(){y(),e.deviceNetwork.emit({network:h.getNetworkInfo()})}),null==f||f.setChangeCallback(function(){y(),e.deviceLifecycle.emit({lifecycle:f.getLifecycleInfo()})}),null==d||d.getSystemInfo().then(({time:e})=>{o.Config.get(u)&&Math.abs(e-Date.now())>o.Config.get(p)&&(g.info("Client time inaccurate, client time was "+Date.now()+", adjusting to server time "+e),n.setTime(e))}),{getDeviceStatus:()=>({network:h?h.getNetworkInfo():{type:"UNKNOWN"},lifecycle:f?f.getLifecycleInfo():{state:"ACTIVE"}}),getSystemInfo:async()=>await (null==d?void 0:d.getSystemInfo())}},{events:{deviceNetwork:new n.Event,deviceLifecycle:new n.Event,deviceStatus:new n.Event}})},723311,(e,t,r)=>{"use strict";
93Object.defineProperty(r,"__esModule",{value:!0}),r.PlatformInformationIF=void 0,r.PlatformInformationIF=(0,e.r(655034).createAbstraction)("@telia-company/tv.common-sdk/dist/abstractions/platform/PlatformInformationIF.PlatformInformationIF")},12419,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HttpRequestInterceptors=void 0,r.HttpRequestInterceptors=(0,e.r(342401).createCollection)("@telia-company/tv.common-sdk/dist/collections/HttpRequestInterceptors.HttpRequestInterceptors")},603813,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LogAppenders=void 0,r.LogAppenders=(0,e.r(342401).createCollection)("@telia-company/tv.common-sdk/dist/collections/LogAppenders.LogAppenders")},972225,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.StatisticsHttpAppenders=void 0,r.StatisticsHttpAppenders=(0,e.r(342401).createCollection)("@telia-company/tv.common-sdk/dist/collections/StatisticsHttpAppenders.StatisticsHttpAppenders")},47466,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeHeaders=void 0,r.normalizeHeaders=e=>{let t={};for(let[r,n]of Object.entries(e))t[r.toLowerCase()]=n;return t}},459387,(e,t,r)=>{"use strict";var n=e.e&&e.e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=e.e&&e.e.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e.r(47466),r)},567681,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HttpRequest=void 0;let n=e.r(716697),i=e.r(828265),o=e.r(78309),a=e.r(321484),s=e.r(526570),l=e.r(390506),c=e.r(12419),u=e.r(972225),p=e.r(280123),d=e.r(459387),h=/\r?\n/g,f="common-sdk/HttpRequest/timeout",g="common-sdk/HttpRequest/baseUrl";i.Config.setDefault(f,6e4),i.Config.setDefault(g,""),r.HttpRequest=(0,n.createSingleton)("@telia-company/tv.common-sdk/dist/HttpRequest.HttpRequest",()=>{let e,t=a.AdaptiveDate.instance(),r=o.CacheManager.instance(),n=s.Statistics.instance(),y=l.HttpRequestIF.resolve(),m=c.HttpRequestInterceptors.collect(),v={};function b(){let r=Date.now()-t.getDeltaTime();for(let e in v){let t=v[e],n=t[0];n&&r>=n.expireAtTimestamp&&(t.shift(),n.abortSignal.emit("Aborted due to timeout"))}e&&clearTimeout(e),e=setTimeout(b,1e3)}function x(e){for(let[t,r]of Object.entries(e))if("cache-control"===t.toLowerCase()){for(let e of r.split(","))if((e=e.trim().toLowerCase()).startsWith("max-age="))return 1e3*parseInt(e.substring(8),10)}}function E(e,t,r,i,o,a){let s={method:i.method,url:e,headers:{...i.headers},timestamp:t,cancelled:o};i.postData&&(s.postData=i.postData);let l=a&&!S(a)&&function(e){let t={message:""};try{let r=JSON.parse(e);for(let[e,n]of Object.entries(r))"errorCode"===e&&void 0!==n?t.code=String(n):"errorMessage"===e&&void 0!==n?t.message=String(n):t[e]=n}catch(r){t.message=e}return t}(a.text)||void 0,c={timestamp:r};a&&(c.status=a.status,c.headers={...a.headers}),l&&(c.error=l),n.log(u.StatisticsHttpAppenders,{request:s,response:c})}function S(e){return[200,201,204].includes(e.status)}async function T(e,r,n={}){let o,a=Date.now()-t.getDeltaTime();if(n.timeout)o=n.timeout+a;else if(0!==n.timeout){let e=i.Config.get(f);e&&(o=e+a)}return new Promise((t,n)=>{let i={expireAtTimestamp:o,abortSignal:r,executeRequest:t};v[e]=v[e]||[],v[e].push(i),r.listen(t=>{let r=v[e].indexOf(i);r>0&&v[e].splice(r,1),t?n(new l.AbortError(t)):n(new l.AbortError)}),1===v[e].length&&t()})}return p.Lifecycle.statics.events.deviceStatus.on(e=>{var t;(null==(t=e.lifecycle)?void 0:t.state)==="ACTIVE"&&b()}),{async sendRequest(e,n,o,a={}){let s,c;b();let u=a.headers||{},p=a.abortSignal||new l.AbortSignal;a.postData;let f={method:e,headers:(0,d.normalizeHeaders)(u),url:n,postData:a.postData,withCredentials:a.withCredentials};for(let e of m){if(e.interceptRequest){let t=e.interceptRequest(f);f.headers=(0,d.normalizeHeaders)(f.headers),t&&(s=t)}if(e.interceptRequestQueue){let t=e.interceptRequestQueue(f);t&&(c=t)}}try{await T(f.url,p,c);let a=Date.now()-t.getDeltaTime();try{let l,c="GET"===e&&0!==x(u)?r.get(n):void 0;if(c)l=JSON.parse(c);else if(s)(l=s).headers=(0,d.normalizeHeaders)(l.headers);else{let e,t=/^https?:\/\//i.test(f.url)?f.url:i.Config.get(g)+f.url,r=await y.send({method:f.method,headers:f.headers,abortSignal:p,withCredentials:f.withCredentials},t,f.postData);l={status:r.status,headers:(w=r.headers,e={}
93,w.split(h).filter(Boolean).forEach(t=>{let[r,...n]=t.split(":");e[r.trim().toLowerCase()]=n.join(":").trim()}),e),text:r.text}}for(let e of(E(n,a,Date.now()-t.getDeltaTime(),f,!1,l),l.headers=(0,d.normalizeHeaders)(l.headers),m))e.interceptResponse&&(e.interceptResponse(f,l),l.headers=(0,d.normalizeHeaders)(l.headers));if(c)r.addToCacheClass(o,n);else{var w,k,O=f.method,_=l;if("GET"===O&&S(_)){let e=x(_.headers)||0;e>0&&r.set(o,n,JSON.stringify(_),e)}}return l}catch(e){throw e instanceof l.AbortError?E(n,a,Date.now(),f,!0):E(n,a,Date.now(),f,!1),e}}finally{v[k=f.url].shift(),v[k].length&&v[k][0].executeRequest()}},createAbortSignal:()=>new l.AbortSignal}},{})},126612,(e,t,r)=>{"use strict";var n=function(e){var t,r,n;return!!(t=e)&&"object"==typeof t&&(r=e,"[object RegExp]"!==(n=Object.prototype.toString.call(r))&&"[object Date]"!==n&&r.$$typeof!==i)},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c(Array.isArray(e)?[]:{},e,t):e}function a(e,t,r){return e.concat(t).map(function(e){return o(e,r)})}function s(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function l(e,t){try{return t in e}catch(e){return!1}}function c(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||a,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=o;var i,u,p=Array.isArray(t);return p!==Array.isArray(e)?o(t,r):p?r.arrayMerge(e,t,r):(u={},(i=r).isMergeableObject(e)&&s(e).forEach(function(t){u[t]=o(e[t],i)}),s(t).forEach(function(r){l(e,r)&&!(Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))||(l(e,r)&&i.isMergeableObject(t[r])?u[r]=(function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c})(r,i)(e[r],t[r],i):u[r]=o(t[r],i))}),u)}c.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return c(e,r,t)},{})},t.exports=c},23399,e=>{"use strict";var t=e.i(852925),r=e.i(147754),n=e.i(765299),i=e.i(73579),o=e.i(653323),a=e.i(599413),s=e.i(812064),l=r,c=e.i(894808);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class p extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,r=(0,s.isHTMLElement)(e)&&e.offsetWidth||0,n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft,n.right=r-n.width-n.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d({children:e,isPresent:n,anchorX:i,root:o}){let a=(0,l.useId)(),s=(0,l.useRef)(null),h=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:f}=(0,l.useContext)(c.MotionConfigContext),g=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=u(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():u(e[t],null)}}}}(...e),e)}(s,e?.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:l,right:c}=h.current;if(n||!s.current||!e||!t)return;let u="left"===i?`left: ${l}`:`right: ${c}`;s.current.dataset.motionPopId=a;let p=document.createElement("style");f&&(p.nonce=f);let d=o??document.head;return d.appendChild(p),p.sheet&&p.sheet.insertRule(`
94          [data-motion-pop-id="${a}"] {
95            position: absolute !important;
96            width: ${e}px !important;
97            height: ${t}px !important;
98            ${u}px !important;
99            top: ${r}px !important;
100          }
101        `),()=>{d.contains(p)&&d.removeChild(p)}},[n]),(0,t.jsx)(p,{isPresent:n,childRef:s,sizeRef:h,children:l.cloneElement(e,{ref:g})})}let h=({children:e,initial:n,isPresent:o,onExitComplete:s,custom:l,presenceAffectsLayout:c,mode:u,anchorX:p,root:h})=>{let g=(0,i.useConstant)(f),y=(0,r.useId)(),m=!0,v=(0,r.useMemo)(()=>(m=!1,{id:y,initial:n,isPresent:o,custom:l,onExitComplete:e=>
101{for(let t of(g.set(e,!0),g.values()))if(!t)return;s&&s()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[o,g,s]);return c&&m&&(v={...v}),(0,r.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[o]),r.useEffect(()=>{o||g.size||!s||s()},[o]),"popLayout"===u&&(e=(0,t.jsx)(d,{isPresent:o,anchorX:p,root:h,children:e})),(0,t.jsx)(a.PresenceContext.Provider,{value:v,children:e})};function f(){return new Map}var g=e.i(829066);let y=e=>e.key||"";function m(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:a,initial:s=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:p=!1,anchorX:d="left",root:f})=>{let[v,b]=(0,g.usePresence)(p),x=(0,r.useMemo)(()=>m(e),[e]),E=p&&!v?[]:x.map(y),S=(0,r.useRef)(!0),T=(0,r.useRef)(x),w=(0,i.useConstant)(()=>new Map),[k,O]=(0,r.useState)(x),[_,I]=(0,r.useState)(x);(0,o.useIsomorphicLayoutEffect)(()=>{S.current=!1,T.current=x;for(let e=0;e<_.length;e++){let t=y(_[e]);E.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}},[_,E.length,E.join("-")]);let A=[];if(x!==k){let e=[...x];for(let t=0;t<_.length;t++){let r=_[t],n=y(r);E.includes(n)||(e.splice(t,0,r),A.push(r))}return"wait"===u&&A.length&&(e=A),I(m(e)),O(x),null}let{forceRender:N}=(0,r.useContext)(n.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:_.map(e=>{let r=y(e),n=(!p||!!v)&&(x===_||E.includes(r));return(0,t.jsx)(h,{isPresent:n,initial:(!S.current||!!s)&&void 0,custom:a,presenceAffectsLayout:c,mode:u,root:f,onExitComplete:n?void 0:()=>{if(!w.has(r))return;w.set(r,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(N?.(),I(T.current),p&&b?.(),l&&l())},anchorX:d,children:e},r)})})}],23399)},346279,866312,7560,913186,562503,662361,992339,791413,602435,902190,411844,939584,841471,43533,990156,12436,633482,134671,30214,953278,597961,812802,61130,240957,374626,497058,983974,315616,950605,73578,78122,203762,919504,495565,520610,409165,79357,745491,833365,220920,72205,303150,868820,740775,e=>{"use strict";let t,r;var n,i=e.i(824627),o=e.i(381625),a=new Map,s=new Map,l=!0,c=!1;function u(e){return e.replace(/[\s,]+/g," ").trim()}function p(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=u(e);if(!a.has(t)){var r,n,p,d,h,f=(0,o.parse)(e,{experimentalFragmentVariables:c,allowLegacyFragmentVariables:c,experimentalFragmentArguments:c});if(!f||"Document"!==f.kind)throw Error("Not a valid GraphQL document.");a.set(t,((d=new Set((r=new Set,n=[],f.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=u((t=e.loc).source.body.substring(t.start,t.end)),a=s.get(i);a&&!a.has(o)?l&&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||s.set(i,a=new Set),a.add(o),r.has(o)||(r.add(o),n.push(e))}else n.push(e)}),p=(0,i.__assign)((0,i.__assign)({},f),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&d.add(r)})}),(h=p.loc)&&(delete h.startToken,delete h.endToken),p))}return a.get(t)}(n)}function d(){a.clear(),s.clear()}function h(){l=!1}function f(){c=!0}function g(){c=!1}var y=p;(n=p||(p={})).gql=y,n.resetCaches=d,n.disableFragmentWarnings=h,n.enableExperimentalFragmentVariables=f,n.disableExperimentalFragmentVariables=g,p.default=p,e.s(["disableExperimentalFragmentVariables",0,g,"disableFragmentWarnings",0,h,"enableExperimentalFragmentVariables",0,f,"gql",0,p,"resetCaches",0,d],346279);var m=e.i(827540);function v(e){return function(t){if((0,m.isFunction)(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}e.s(["operate",0,v],866312);var b=e.i(521879);function x(e,t,r,n,i){return new E(e,t,r,n,i)}var E=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return(0,i.__extends)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(b.Subscriber);function S(e,t){return v(function(r,n){var i=0;r.subscribe(x(n,function(r){n.next(e.call(t,r,i++))}))})}e.s(["createOperatorSubscriber",0,x],7560),e.s(["map",0,S],913186);var T=e.i(694411);function w(e,t,r){let n=new Set(e),i=n.size;return(0,T.visit)(t,{Directive(e){if(n.delete(e.name.value)&&(!r||!n.size))return T.BREAK}}),r?!n.size:n.size<i}e.s(["hasDirectives",0,w],562503);var k=e.i(214054),O=e.i(336419),_=e.i(372602);let I=null,A={},N=1;function P(e){try{return e()}catch(e){}}let R="@wry/context:Slot",D=P(()=>globalThis)||P(()=>e.g)||Object.create(null),C=D[R]||Array[R]||function(e){try{Object.defineProperty(D,R,{value:e,enumerable:!1,writable:!1,
101configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",N++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=I;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===A)break;return e!==I&&(I.slots[this.id]=t),!0}return I&&(I.slots[this.id]=A),!1}getValue(){if(this.hasValue())return I.slots[this.id]}withValue(e,t,r,n){let i={__proto__:null,[this.id]:e},o=I;I={parent:o,slots:i};try{return t.apply(n,r)}finally{I=o}}static bind(e){let t=I;return function(){let r=I;try{return I=t,e.apply(this,arguments)}finally{I=r}}}static noContext(e,t,r){if(!I)return e.apply(r,t);{let n=I;try{return I=null,e.apply(r,t)}finally{I=n}}}}),{bind:L,noContext:F}=C,M=new C,{hasOwnProperty:$}=Object.prototype,j=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function V(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let U=[];function B(e,t){if(!e)throw Error(t||"assertion failure")}function z(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function q(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class G{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++G.count}peek(){if(1===this.value.length&&!Q(this))return K(this),this.value[0]}recompute(e){var t,r,n;return B(!this.recomputing,"already recomputing"),K(this),Q(this)?(t=this,r=e,Z(t),M.withValue(t,H,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{V(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((n=t).dirty=!1,Q(n)||function(e){W(e,X)}(n)),q(t.value)):q(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,W(e,Y),V(this))}dispose(){this.setDirty(),Z(this),W(this,(e,t)=>{e.setDirty(),ee(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=U.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(j(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),U.push(this.deps),this.deps=null)}}function K(e){let t=M.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),Q(e)?Y(t,e):X(t,e),t}function H(e,t){let r;e.recomputing=!0;let{normalizeResult:n}=e;n&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!z(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function Q(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}G.count=0;function W(e,t){let r=e.parents.size;if(r){let n=j(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function Y(e,t){B(e.childValues.has(t)),B(Q(t));let r=!Q(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=U.pop()||new Set;e.dirtyChildren.add(t),r&&W(e,Y)}function X(e,t){B(e.childValues.has(t)),B(!Q(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):z(r,t.value)||e.setDirty(),J(e,t),Q(e)||W(e,X)}function J(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(U.length<100&&U.push(r),e.dirtyChildren=null))}function Z(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{ee(e,r)}),e.forgetDeps(),B(null===e.dirtyChildren)}function ee(e,t){t.parents.delete(e),e.childValues.delete(t),J(e,t)}let et={setDirty:!0,dispose:!0,forget:!0};function er(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=M.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(V(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&$.call(et,r)?r:"setDirty";j(n).forEach(e=>e[i]()),t.delete(e),V(n)}},n}function en(...e){return(t||(t=new O.Trie("function"==typeof WeakMap))).lookupArray(e)}let ei=new Set;function eo(e,{max:t=65536,keyArgs:r,makeCacheKey:n=en,normalizeResult:i,subscribe:o,cache:a=_.StrongCache}=Object.create(null)){let s="function"==typeof a?new a(t,e=>e.dispose()):a,l=function(){let t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=s.get(t);a||(s.set(t,a=new G(e)),a.normalizeResult=i,a.subscribe=o,a.forget=()=>s.delete(t));let l=a.recompute(Array.prototype.slice.call(arguments));
101return s.set(t,a),ei.add(s),M.hasValue()||(ei.forEach(e=>e.clean()),ei.clear()),l};function c(e){let t=e&&s.get(e);t&&t.setDirty()}function u(e){let t=e&&s.get(e);if(t)return t.peek()}function p(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:o,cache:s}),l.dirtyKey=c,l.dirty=function(){c(n.apply(null,arguments))},l.peekKey=u,l.peek=function(){return u(n.apply(null,arguments))},l.forgetKey=p,l.forget=function(){return p(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(l)}var ea=e.i(741204),es=e.i(688392),el=e.i(272797);function ec(e){return e}class eu{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new eu(ec,{cache:!1})}static split(e,t,r=eu.identity()){return Object.assign(new eu(n=>(e(n)?t:r).transformDocument(n),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new O.Trie;this.performWork=eo(eu.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,es.invariant)(Array.isArray(r),20),e.lookupArray(r)},max:el.cacheSizes["documentTransform.cache"],cache:k.WeakCache})}}performWork(e){return(0,ea.checkDocument)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new eu(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;right}function ep(){throw Error("only supported in development mode")}e.s(["DocumentTransform",0,eu],662361),e.s(["getApolloCacheMemoryInternals",0,ep,"getApolloClientMemoryInternals",0,ep,"getInMemoryCacheMemoryInternals",0,ep],992339);var ed=e.i(516165),eh=e.i(337902),ef=(0,e.i(949918).createErrorClass)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eg=e.i(907844),ey=e.i(558869),em=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,i.__extends)(t,e),t.prototype.lift=function(e){var t=new ev(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new ef},t.prototype.next=function(e){var t=this;(0,ey.errorContext)(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var o=(0,i.__values)(t.currentObservers),a=o.next();!a.done;a=o.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,ey.errorContext)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,ey.errorContext)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?eh.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new eh.Subscription(function(){t.currentObservers=null,(0,eg.arrRemove)(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new ed.Observable;return e.source=this,e},t.create=function(e,t){return new ev(e,t)},t}(ed.Observable),ev=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,i.__extends)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:eh.EMPTY_SUBSCRIPTION},t}(em);e.s(["Subject",0,em],791413);var eb={now:function(){return(eb.delegate||Date).now()},delegate:void 0},ex=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=eb);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,i.__extends)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,a=this._windowTime;!r&&(n.push(t),i||n.push(o.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),a=0,s=1;s<r.length&&r[s]<=o;s+=2)a=s;a&&r.splice(0,a+1)}},t}(em),eE=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function eS(e){return(0,m.isFunction)(null==e?void 0:e.then)}e.s(["isArrayLike",0,eE],602435),e.s(["isPromise",0,eS],902190);var eT=e.i(266338);function ew(e){return(0,m.isFunction)(e[eT.observable])}function ek(e){return Symbol.asyncIterator&&(0,m.isFunction)(null==e?void 0:e[Symbol.asyncIterator])}function eO(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
101d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}e.s(["isInteropObservable",0,ew],411844),e.s(["isAsyncIterable",0,ek],939584),e.s(["createInvalidObservableTypeError",0,eO],841471);var e_="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function eI(e){return(0,m.isFunction)(null==e?void 0:e[e_])}function eA(e){return(0,i.__asyncGenerator)(this,arguments,function(){var t,r,n;return(0,i.__generator)(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,i.__await)(t.read())];case 3:if(n=(r=o.sent()).value,!r.done)return[3,5];return[4,(0,i.__await)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,i.__await)(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function eN(e){return(0,m.isFunction)(null==e?void 0:e.getReader)}e.s(["iterator",0,e_],43533),e.s(["isIterable",0,eI],990156),e.s(["isReadableStreamLike",0,eN,"readableStreamLikeToAsyncGenerator",0,eA],12436);var eP=e.i(758357);function eR(e){if(e instanceof ed.Observable)return e;if(null!=e){var t,r,n,o;if(ew(e)){return t=e,new ed.Observable(function(e){var r=t[eT.observable]();if((0,m.isFunction)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(eE(e)){return r=e,new ed.Observable(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(eS(e)){return n=e,new ed.Observable(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,eP.reportUnhandledError)})}if(ek(e))return eD(e);if(eI(e)){return o=e,new ed.Observable(function(e){var t,r;try{for(var n=(0,i.__values)(o),a=n.next();!a.done;a=n.next()){var s=a.value;if(e.next(s),e.closed)return}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(eN(e))return eD(eA(e))}throw eO(e)}function eD(e){return new ed.Observable(function(t){(function(e,t){var r,n,o,a;return(0,i.__awaiter)(this,void 0,void 0,function(){var s;return(0,i.__generator)(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=(0,i.__asyncValues)(e),l.label=1;case 1:return[4,r.next()];case 2:if((n=l.sent()).done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o={error:l.sent()},[3,11];case 6:if(l.trys.push([6,,9,10]),!(n&&!n.done&&(a=r.return)))return[3,8];return[4,a.call(r)];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function eC(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new em}:t,n=e.resetOnError,i=void 0===n||n,o=e.resetOnComplete,a=void 0===o||o,s=e.resetOnRefCountZero,l=void 0===s||s;return function(e){var t,n,o,s=0,c=!1,u=!1,p=function(){null==n||n.unsubscribe(),n=void 0},d=function(){p(),t=o=void 0,c=u=!1},h=function(){var e=t;d(),null==e||e.unsubscribe()};return v(function(e,f){s++,u||c||p();var g=o=null!=o?o:r();f.add(function(){0!=--s||u||c||(n=eL(h,l))}),g.subscribe(f),!t&&s>0&&(t=new b.SafeSubscriber({next:function(e){return g.next(e)},error:function(e){u=!0,p(),n=eL(d,i,e),g.error(e)},complete:function(){c=!0,p(),n=eL(d,a),g.complete()}}),eR(e).subscribe(t))})(e)}}function eL(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var o=new b.SafeSubscriber({next:function(){o.unsubscribe(),e()}});return eR(t.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(r)))).subscribe(o)}}function eF(e,t,r){var n,i,o,a,s=!1;return e&&"object"==typeof e?(a=void 0===(n=e.bufferSize)?1/0:n,t=void 0===(i=e.windowTime)?1/0:i,s=void 0!==(o=e.refCount)&&o,r=e.scheduler):a=null!=e?e:1/0,eC({connector:function(){return new ex(a,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:s})}e.s(["innerFrom",0,eR],633482),e.s(["share",0,eC],134671),e.s(["shareReplay",0,eF],30214);let eM=(0,e.i(775575).memoize)(function(e,t,r){let n,i;function o(e){return e!==n&&(i=r(n=e)),i}return Object.assign(e.pipe(S(o),eF({bufferSize:1,refCount:!0})),{getCurrentResult:()=>o(e.getCurrentResult())})},{max:1,makeCacheKey:e=>e.slice(0,2)});e.s(["mapObservableFragmentMemoized",0,eM],953278);e.s(["isScheduler",0,function(e){return e&&(0,m.isFunction)(e.schedule)}],597961);var e$=e.i(448971);function ej(e,t,r){var n=(0,m.isFunction)(e)||t||r?{next:e,error:t,complete:r}:e;return n?v(function(e,t){null==(r=n.subscribe)||r.call(n);var r,i=!0;e.subscribe(x(t,function(e){var r;null==(r=n.next)||r.call(n,e),t.next(e)},function(){var e;i=!1,null==(e=n.complete)||e.call(n),t.complete()},function(e){var r;i=!1,null==(r=n.error)||r.call(n,e),t.error(e)},function(){var e,t;i&&(null==(e=n.unsubscribe)||e.call(n)),null==(t=n.finalize)||t.call(n)}))}):e$.identity}e.s(["tap",0,ej],812802);var eV=e.i(748410),eU=e.i(240001),eB=e.i(808161);let ez=Object.assign(function(e){return JSON.stringify(e,eq)},{reset(){r=new eU.AutoCleanedStrongCache(el.cacheSizes.canonicalStringify||1e3)}});function eq(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let n=Object.keys(t);if(n.every(eG))return t;let i=JSON.stringify(n),o=r.get(i);if(!o){n.sort();let e=JSON.stringify(n);o=r.get(e)||n,r.set(i,o),r.set(e,o)}let a=Object.create(e);
101return o.forEach(e=>{a[e]=t[e]}),a}}return t}function eG(e,t,r){return 0===t||r[t-1]<=e}eV.__DEV__&&(0,eB.registerGlobalCache)("canonicalStringify",()=>r.size),ez.reset(),e.s(["canonicalStringify",0,ez],61130);let{toString:eK,hasOwnProperty:eH}=Object.prototype,eQ=Function.prototype.toString,eW=new Map;function eY(e,t){try{return function e(t,r){if(t===r)return!0;let n=eK.call(t);if(n!==eK.call(r))return!1;switch(n){case"[object Array]":if(t.length!==r.length)break;case"[object Object]":{if(e0(t,r))return!0;let n=eX(t),i=eX(r),o=n.length;if(o!==i.length)return!1;for(let e=0;e<o;++e)if(!eH.call(r,n[e]))return!1;for(let i=0;i<o;++i){let o=n[i];if(!e(t[o],r[o]))return!1}return!0}case"[object Error]":return t.name===r.name&&t.message===r.message;case"[object Number]":if(t!=t)return r!=r;case"[object Boolean]":case"[object Date]":return+t==+r;case"[object RegExp]":case"[object String]":return t==`${r}`;case"[object Map]":case"[object Set]":{if(t.size!==r.size)return!1;if(e0(t,r))return!0;let i=t.entries(),o="[object Map]"===n;for(;;){let t=i.next();if(t.done)break;let[n,a]=t.value;if(!r.has(n)||o&&!e(a,r.get(n)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":t=new Uint8Array(t),r=new Uint8Array(r);case"[object DataView]":{let e=t.byteLength;if(e===r.byteLength)for(;e--&&t[e]===r[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var i,o;let e,n=eQ.call(t);if(n!==eQ.call(r))return!1;return i=n,o=eZ,!((e=i.length-o.length)>=0)||i.indexOf(o,e)!==e}}return!1}(e,t)}finally{eW.clear()}}function eX(e){return Object.keys(e).filter(eJ,e)}function eJ(e){return void 0!==this[e]}let eZ="{ [native code] }";function e0(e,t){let r=eW.get(e);if(r){if(r.has(t))return!0}else eW.set(e,r=new Set);return r.add(t),!1}function e1(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}function e2(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}function e5(e){return null!==e&&"object"==typeof e}function e4(e){let t;return eV.__DEV__&&(t=new Set([e])).forEach(e=>{e5(e)&&function(e){if(eV.__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(r=>{e5(e[r])&&t.add(e[r])})}),e}function e3(e){return e.alias?e.alias.value:e.name.value}e.s(["equal",0,eY],240957),e.s(["createFragmentMap",0,e1],374626),e.s(["getFragmentDefinitions",0,e2],497058),e.s(["isNonNullObject",0,e5],983974),e.s(["maybeDeepFreeze",0,e4],315616),e.s(["resultKeyNameFromField",0,e3],950605);var e6=e.i(108520);let e9=new C;e.s(["disableWarningsSlot",0,e9,"getFragmentMaskMode",0,function(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(eV.__DEV__&&r&&(r.value.kind===e6.Kind.VARIABLE?eV.__DEV__&&es.invariant.warn(44):r.value.kind!==e6.Kind.STRING?eV.__DEV__&&es.invariant.warn(45):"migrate"!==r.value.value&&eV.__DEV__&&es.invariant.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}],73578);let e8=Symbol.for("apollo.result.extensions"),e7=Symbol.for("apollo.result.streamInfo"),te=Symbol.for("apollo.observableQuery.variablesUnknown");function tt(e,t,r,n){if(r.kind===e6.Kind.INT||r.kind===e6.Kind.FLOAT)e[t.value]=Number(r.value);else if(r.kind===e6.Kind.BOOLEAN||r.kind===e6.Kind.STRING)e[t.value]=r.value;else if(r.kind===e6.Kind.OBJECT){let i={};r.fields.map(e=>tt(i,e.name,e.value,n)),e[t.value]=i}else if(r.kind===e6.Kind.VARIABLE){let i=(n||{})[r.name.value];e[t.value]=i}else if(r.kind===e6.Kind.LIST)e[t.value]=r.values.map(e=>{let r={};return tt(r,t,e,n),r[t.value]});else if(r.kind===e6.Kind.ENUM)e[t.value]=r.value;else if(r.kind===e6.Kind.NULL)e[t.value]=null;else throw(0,es.newInvariantError)(19,t.value,r.kind)}function tr(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&tt(t,e.variable.name,e.defaultValue)}),t}function tn(e){(0,es.invariant)("Document"===e.kind,6),(0,es.invariant)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,es.invariant)("FragmentDefinition"===t.kind,8),t}e.s(["extensionsSymbol",0,e8,"streamInfoSymbol",0,e7,"variablesUnknownSymbol",0,te],78122),e.s(["getDefaultValues",0,tr],203762),e.s(["getFragmentDefinition",0,tn],919504);let ti=Array.isArray;function to(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let n=t&&t[r];return(0,es.invariant)(n,9,r),n||null}default:return null}}function ta(e){let t;for(let r of((0,ea.checkDocument)(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,es.newInvariantError)(12)}function ts(e){return"Field"===e.kind}function tl({directives:e},t){var r;let n;
101return!e||!e.length||(n=[],(r=e)&&r.length&&r.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let t=e.arguments,r=e.name.value;(0,es.invariant)(t&&1===t.length,16,r);let i=t[0];(0,es.invariant)(i.name&&"if"===i.name.value,17,r);let o=i.value;(0,es.invariant)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),18,r),n.push({directive:e,ifArgument:i})}),n).every(({directive:e,ifArgument:r})=>{let n=!1;return"Variable"===r.value.kind?(n=t&&t[r.value.name.value],(0,es.invariant)(void 0!==n,15,e.name.value)):n=r.value.value,"skip"===e.name.value?!n:n})}function tc(e,{data:t,...r},{data:n,...i},o){return eY(r,i)&&function e(t,r,n,i){if(r===n)return!0;let o=new Set;return t.selections.every(t=>{if(o.has(t)||(o.add(t),!tl(t,i.variables)||tu(t)))return!0;if(ts(t)){let o=e3(t),a=r&&r[o],s=n&&n[o],l=t.selectionSet;if(!l)return eY(a,s);let c=Array.isArray(a),u=Array.isArray(s);if(c!==u)return!1;if(c&&u){let t=a.length;if(s.length!==t)return!1;for(let r=0;r<t;++r)if(!e(l,a[r],s[r],i))return!1;return!0}return e(l,a,s,i)}{let o=to(t,i.fragmentMap);if(o)return!!tu(o)||e(o.selectionSet,r,n,i)}})}(ta(e).selectionSet,t,n,{fragmentMap:e1(e2(e)),variables:o})}function tu(e){return!!e.directives&&e.directives.some(tp)}function tp(e){return"nonreactive"===e.name.value}e.s(["isArray",0,ti],495565),e.s(["equalByQuery",0,tc],520610);var td=e.i(147489);function th(e){let t=(0,td.getOperationDefinition)(e);return(0,es.invariant)(t&&"query"===t.operation,13),t}function tf(e,t){return e===t}e.s(["getQueryDefinition",0,th],409165);var tg=function(e){function t(t,r){return e.call(this)||this}return(0,i.__extends)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(eh.Subscription),ty={setInterval:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=ty.delegate;return(null==o?void 0:o.setInterval)?o.setInterval.apply(o,(0,i.__spreadArray)([e,t],(0,i.__read)(r))):setInterval.apply(void 0,(0,i.__spreadArray)([e,t],(0,i.__read)(r)))},clearInterval:function(e){var t=ty.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},tm=function(e){function t(t,r){var n=e.call(this,t,r)||this;
101return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,i.__extends)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),ty.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&ty.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,eg.arrRemove)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(tg);e.s(["AsyncAction",0,tm],79357);var tv=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=eb.now,e}(),tb=function(e){function t(t,r){void 0===r&&(r=tv.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,i.__extends)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift())if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(tv);e.s(["AsyncScheduler",0,tb],745491);var tx=new tb(tm),tE=e.i(982100);function tS(e,t){let r=t,n=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,es.newInvariantError)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&((0,es.invariant)(1===n.length,11,n.length),r=n[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class tT{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new O.Trie(!0);watchFragment(e){let t,{fragment:r,fragmentName:n,from:i}=e,o=this.getFragmentDoc(r,n),a=(Array.isArray(i)?i:[i]).map(e=>{let t=null==e?e:this.toCacheId(e);if(eV.__DEV__){let e=n||tn(r).name.value;void 0===t&&eV.__DEV__&&es.invariant.warn(113,e)}return t});if(!Array.isArray(i)){let t=this.watchSingleFragment(a[0],o,e);return null===i?t:eM(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}function s(e){let r=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return eY(t,r)||(t=r),t}if(0===a.length)return t_;let l=!1,c=a.map(t=>this.watchSingleFragment(t,o,e));return Object.assign((0===c.length?tE.EMPTY:new ed.Observable(e=>{let t,{length:r}=c,n=Array(r),i=new Map;c.forEach((e,t)=>{i.has(e)||i.set(e,new Set),i.get(e).add(t)});let o=i.size,a=i.size;i.forEach((r,i)=>{let s=!1,l=i.subscribe({next:o=>{r.forEach(e=>n[e]=o),!s&&(s=!0,a--),!a&&((t||=new Set(c.filter(e=>e.dirty))).delete(i),t.size||(e.next(n.slice()),t=void 0))},complete:()=>{--o||e.complete()},error:e.error.bind(e)});e.add(l)})})).pipe(S(s),ej({subscribe:()=>l=!0,unsubscribe:()=>l=!1}),eF({bufferSize:1,refCount:!0})),{getCurrentResult:()=>l&&t?t:s(c.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return tk;let{optimistic:n=!0,variables:i}=r,o=[t,ez({id:e,optimistic:n,variables:i})],a=this.fragmentWatches.lookupArray(o);if(!a.observable){var s,l;let u,p=!1;function c(e){let n=e.result;return u&&tc(t,{data:u.data},{data:n},r.variables)||(u={data:n,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(u.missing=e.missing.missing)),u}let d=new ed.Observable(r=>{p=!0;let a=this.watch({variables:i,returnPartialData:!0,id:e,query:t,optimistic:n,immediate:!0,callback:e=>{d.dirty=!0,this.onAfterBroadcast(()=>{r.next(c(e)),d.dirty=!1})}});return()=>{p=!1,a(),this.fragmentWatches.removeArray(o)}}).pipe((void 0===l&&(l=e$.identity),s=null!=s?s:tf,v(function(e,t){var r,n=!0;e.subscribe(x(t,function(e){var i=l(e);(n||!s(r,i))&&(n=!1,r=i,t.next(e))}))})),eC({connector:()=>new ex(1),resetOnRefCountZero:()=>{var e;return void 0===e&&(e=tx),new ed.Observable(function(t){var r=0;r<0&&(r=0);var n=0;return e.schedule(function(){t.closed||(t.next(n++),t.complete())},r)})}}));a.observable=Object.assign(d,{dirty:!1,getCurrentResult:()=>p&&u?u:c(this.diff({id:e,query:t,returnPartialData:!0,optimistic:n,variables:i}))})}return a.observable}
101getFragmentDoc=eo(tS,{max:el.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:k.WeakCache,makeCacheKey:function(...e){return en.bind(null,...e)}(this)});readFragment(e,t=!!e.optimistic){let r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...n}){let i=void 0!==n.from?this.toCacheId(n.from):n.id;return this.write(Object.assign(n,{query:this.getFragmentDoc(t,r),dataId:i,result:e}))}updateQuery(e,t){return this.batch({update(r){let n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery({...e,data:i}),i)}})}updateFragment(e,t){return this.batch({update(r){let n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment({...e,data:i}),i)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}eV.__DEV__&&(tT.prototype.getMemoryInternals=ep);let tw=Object.freeze({data:null,dataState:"complete",complete:!0}),tk=Object.assign(new ed.Observable(e=>{e.next(tw)}),{dirty:!1,getCurrentResult:()=>tw}),tO=Object.freeze({data:[],dataState:"complete",complete:!0}),t_=Object.assign(new ed.Observable(e=>{e.next(tO)}),{getCurrentResult:()=>tO});function tI(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}e.s(["ApolloCache",0,tT],833365),e.s(["isReference",0,tI],220920);var tA=e.i(929100);let{hasOwnProperty:tN}=Object.prototype,tP=function(e,t,r){return this.merge(e[r],t[r])},tR=e=>isNaN(+e)?{}:[];class tD{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||tP}merge(e,t,r={}){let n=r.atPath;if(n?.length){let[i,...o]=n;void 0===e&&(e=tR(i));let a=e[i];void 0===a&&o.length&&(a=tR(o[0]));let s=this.merge(a,t,{...r,atPath:o});return a!==s&&((e=this.shallowCopyForMerge(e))[i]=s),e}return(Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),e5(t)&&e5(e))?(Object.keys(t).forEach(r=>{if(tN.call(e,r)){let n=e[r];if(t[r]!==n){let i=this.reconciler(e,t,r);i!==n&&((e=this.shallowCopyForMerge(e))[r]=i)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]}),e):t}isObject=e5;pastCopies=new Set;shallowCopyForMerge(e){return e5(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}let{hasOwnProperty:tC}=Object.prototype;function tL({__typename:e,id:t,_id:r},n){if("string"==typeof e&&(n&&(n.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let tF={dataIdFromObject:tL,resultCaching:!0};function tM(e){return(0,tA.compact)(tF,e)}function t$(e,t){return tI(t)?e.get(t.__ref,"__typename"):t&&t.__typename}let tj=/^[_a-z][_0-9a-z]*/i;function tV(e){let t=e.match(tj);return t?t[0]:e}function tU(e,t,r){return!!e5(t)&&(ti(t)?t.every(t=>tU(e,t,r)):e.selections.every(e=>{if(ts(e)&&tl(e,r)){let n=e3(e);return tC.call(t,n)&&(!e.selectionSet||tU(e.selectionSet,t[n],r))}return!0}))}function tB(e){return e5(e)&&!tI(e)&&!ti(e)}function tz(){return new tD}function tq(e,t){let r=e1(e2(e));return{fragmentMap:r,lookupFragment(e){let n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}e.s(["TypeOrFieldNameRegExp",0,tj,"defaultDataIdFromObject",0,tL,"extractFragmentContext",0,tq,"fieldNameFromStoreName",0,tV,"getTypenameFromStoreObject",0,t$,"hasOwn",0,tC,"makeProcessedFieldsMerger",0,tz,"normalizeConfig",0,tM,"selectionSetMatchesResult",0,tU,"storeValueIsStoreObject",0,tB],72205);let tG={kind:e6.Kind.FIELD,name:{kind:e6.Kind.NAME,value:"__typename"}},tK=Object.assign(function(e){return(0,T.visit)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===e6.Kind.OPERATION_DEFINITION)return;let{selections:n}=e;if(!(!n||n.some(e=>e.kind===e6.Kind.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===e6.Kind.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...n,tG]}}}})},{added:e=>e===tG});var tH=e.i(362575);function tQ(e){return{__ref:String(e)}}let tW={},tY=()=>tW,tX={};class tJ{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),tC.call(this.data,e)){let r=this.data[e];if(r&&tC.call(r,t))return r[t]}return"__typename"===t&&tC.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof t2?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),tC.call(this.data,e))?this.data[e]:this instanceof t2?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;tI(e)&&(e=e.__ref),tI(t)&&(t=t.__ref);let n="string"==typeof e?this.lookup(r=e):e,i="string"==typeof t?this.lookup(r=t):t;if(!i)return;(0,es.invariant)("string"==typeof r,99);let o=new tD({reconciler:t4}).merge(n,i);if(this.data[r]=o,o!==n&&(delete this.refs[r],this.group.caching)){let e={};
101n||(e.__exists=1),Object.keys(i).forEach(t=>{if(!n||n[t]!==o[t]){e[t]=1;let r=tV(t);r===t||this.policies.hasKeyArgs(o.__typename,r)||(e[r]=1),void 0!==o[t]||this instanceof t2||delete o[t]}}),e.__typename&&!(n&&n.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let n=this.lookup(e);if(n){let i={},o=!1,a=!0,s={DELETE:tW,INVALIDATE:tX,isReference:tI,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||tQ(e)}:t,{store:this})};if(Object.keys(n).forEach(l=>{let c=tV(l),u=n[l];if(void 0===u)return;let p="function"==typeof t?t:t[l]||(r?void 0:t[c]);if(p){let t=p===tY?tW:p(e4(u),{...s,fieldName:c,storeFieldName:l,storage:this.getStorage(e,l)});if(t===tX)this.group.dirty(e,l);else if(t===tW&&(t=void 0),t!==u&&(i[l]=t,o=!0,u=t,eV.__DEV__)){let e=e=>{if(void 0===this.lookup(e.__ref))return eV.__DEV__&&es.invariant.warn(100,e),!0};if(tI(t))e(t);else if(Array.isArray(t)){let r,n=!1;for(let i of t){if(tI(i)){if(n=!0,e(i))break}else if("object"==typeof i&&i){let[e]=this.policies.identify(i);e&&(r=i)}if(n&&void 0!==r){eV.__DEV__&&es.invariant.warn(101,r);break}}}}}void 0!==u&&(a=!1)}),o)return this.merge(e,i),a&&(this instanceof t2?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let n=this.lookup(e);if(n){let i=this.getFieldValue(n,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:i,fieldName:t,args:r}):t;return this.modify(e,o?{[o]:tY}:tY,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(tC.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof t2&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{tC.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&tC.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof t2?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{tC.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof t2;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!tC.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let n=new Set([r]);n.forEach(e=>{tI(e)&&(t[e.__ref]=!0),e5(e)&&Object.keys(e).forEach(t=>{let r=e[t];e5(r)&&n.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>e4(tI(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>tI(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return tQ(e);if(tI(e))return e;let[r]=this.policies.identify(e);if(r){let n=tQ(r);return t&&this.merge(r,e),n}};get supportsResultCaching(){return this.group.caching}}class tZ{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?er():null,this.keyMaker=new O.Trie}depend(e,t){if(this.d){this.d(t+"#"+e);let r=tV(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function t0(e,t){t3(e)&&e.group.depend(t,"__exists")}class t1 extends tJ{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new tZ(t)),r&&this.replace(r)}stump=new t5(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new O.Trie;getStorage(){return this.storageTrie.lookupArray(arguments)}}tJ.Root=t1;class t2 extends tJ{id;parent;replay;group;constructor(e,t,r,n){super(t.policies,n),this.id=e,this.parent=t,this.replay=r,this.group=n,r(this)}addLayer(e,t){return new t2(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEac
101h(e=>{let r=this.data[e],n=t.lookup(e);n?r?r!==n&&Object.keys(r).forEach(t=>{eY(r[t],n[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(n).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return tC.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class t5 extends t2{constructor(e){super("EntityStore.Stump",e,()=>{},new tZ(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function t4(e,t,r){let n=e[r],i=t[r];return eY(n,i)?n:i}function t3(e){return!!(e&&e.supportsResultCaching)}function t6(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:n})=>tt(r,e,n,t)),r}return null}let t9=["connection","include","skip","client","rest","export","nonreactive","stream"],t8=ez,t7=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let n={};e.forEach(e=>{n[e]=t[e]});let i=t8(n);if("{}"!==i)return`${r.connection.key}(${i})`}return r.connection.key}let n=e;if(t){let e=t8(t);"{}"!==e&&(n+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===t9.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?n+=`@${e}(${t8(r[e])})`:n+=`@${e}`)}),n},{setStringify(e){let t=t8;return t8=e,t}});var re=e.i(149806),rt=e.i(269683);let rr={};function rn(e){let t=JSON.stringify(e);return rr[t]||(rr[t]={})}function ri(e){let t=rn(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let n=(e,t)=>r.readField(t,e),i=r.keyObject=ra(e,e=>{let i=rl(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&tC.call(t,e[0])&&(i=rl(t,e,rs)),(0,es.invariant)(void 0!==i,102,e.join("."),t),i});return`${r.typename}:${JSON.stringify(i)}`})}function ro(e){let t=rn(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:n,fieldName:i})=>{let o=JSON.stringify(ra(e,e=>{let i=e[0],o=i.charAt(0);if("@"===o){if(r&&(0,rt.isNonEmptyArray)(r.directives)){let t=i.slice(1),o=r.directives.find(e=>e.name.value===t),a=o&&t6(o,n);return a&&rl(a,e.slice(1))}return}if("$"===o){let t=i.slice(1);if(n&&tC.call(n,t)){let r=e.slice(0);return r[0]=t,rl(n,r)}return}if(t)return rl(t,e)}));return(t||"{}"!==o)&&(i+=":"+o),i})}function ra(e,t){let r=new tD;return(function e(t){let r=rn(t);if(!r.paths){let n=r.paths=[],i=[];t.forEach((r,o)=>{ti(r)?(e(r).forEach(e=>n.push(i.concat(e))),i.length=0):(i.push(r),ti(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce((e,n)=>{let i=t(n);if(void 0!==i){for(let e=n.length-1;e>=0;--e)i={[n[e]]:i};e=r.merge(e,i)}return e},{})}function rs(e,t){return e[t]}function rl(e,t,r){return r=r||rs,function e(t){return e5(t)?ti(t)?t.map(e):ra(Object.keys(t).sort(),e=>rl(t,e)):t}(t.reduce(function e(t,n){return ti(t)?t.map(t=>e(t,n)):t&&r(t,n)},e))}let rc=new C,ru=new WeakMap;function rp(e){let t=ru.get(e);return t||ru.set(e,t={vars:new Set,dep:er()}),t}function rd(e){rp(e).vars.forEach(t=>t.forgetCache(e))}function rh(e){rp(e).vars.forEach(t=>t.attachCache(e))}function rf(e){let t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(e=>{var t;rp(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});let i=Array.from(r);r.clear(),i.forEach(t=>t(e))}}else{let e=rc.getValue();e&&(i(e),rp(e).dep(n))}return e};n.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let i=n.attachCache=e=>(t.add(e),rp(e).vars.add(n),n);return n.forgetCache=e=>t.delete(e),n}function rg(e){return void 0!==e.args?e.args:e.field?t6(e.field,e.variables):null}e.s(["cacheSlot",0,rc,"forgetCache",0,rd,"makeVar",0,rf,"recallCache",0,rh],303150);let ry=()=>void 0,rm=(e,t)=>t.fieldName,rv=(e,t,{mergeObjects:r})=>r(e,t),rb=(e,t)=>t,rx=(e,t,{streamFieldInfo:r,existingData:n})=>{if(!e&&!n)return t;let i=[],o=e??n,a=r?.isLastChunk?t.length:Math.max(o.length,t.length);for(let e=0;e<a;e++)i[e]=void 0===t[e]?o[e]:t[e];return i};class rE{config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:tL,...e},this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}identify(e,t){let r,n=this,i=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let o=t&&t.storeObject||e,a={...t,typename:i,storeObject:o,readField:t&&t.readField||((...e)=>{let t=rT(e,o);return n.readField(t,{store:n.cache.data,variables:t.variables})})},s=i&&this.getTypePolicy(i),l=s&&s.keyFn||this.config.dataIdFromObject;return e9.withValue(!0,()=>{for(;l;){let t=l({...e,...o},a);if(ti(t))l=ri(t);else{r=t;break}}}),r=r?String(r):void 0,a.keyObject?[r,a.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:n,subscriptionType:i,...o}=e[t];r&&this.setRootTypename("Query",t),n&&this.setRootTypename("Mutation",t),i&&this.setRootTypename("Subscription",t),tC.call(this.toBeAdded,t)?this.toBeAdded[t].push(o):this.toBeAdded[t]=[o]})}updateTypePolicy(e,t,r){let n=this.getTypePolicy(e),{keyFields:i,fields:o}=t;function a(e,t){e.merge="function"==typeof t?t:!0===t?rv:!1===t?rb:e.merge}a(n,t.merge),n.keyFn=!1===i?ry:ti(i)?ri(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
101h(t=>{let n=r[t];n&&n?.typename===e||(n=r[t]={typename:e});let i=o[t];if("function"==typeof i)n.read=i;else{let{keyArgs:e,read:t,merge:r}=i;n.keyFn=!1===e?rm:ti(e)?ro(e):"function"==typeof e?e:n.keyFn,"function"==typeof t&&(n.read=t),a(n,r)}n.read&&n.merge&&(n.keyFn=n.keyFn||rm)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,es.invariant)(!n||n===e,103,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(tj);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!tC.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,n)=>{if(t.test(e)){let e=this.supertypeMap.get(n);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...n}=this.getTypePolicy(e);Object.assign(t,n),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,n){if(!e.typeCondition)return!0;if(!t)return!1;let i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i)){let o=this.getSupertypeSet(t,!0),a=[o],s=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>a.indexOf(t)&&a.push(t)},l=!!(r&&this.fuzzySubtypes.size),c=!1;for(let u=0;u<a.length;++u){let p=a[u];if(p.has(i))return o.has(i)||(c&&eV.__DEV__&&es.invariant.warn(104,t,i),o.add(i)),!0;p.forEach(s),l&&u===a.length-1&&tU(e.selectionSet,r,n)&&(l=!1,c=!0,this.fuzzySubtypes.forEach((e,r)=>{let n=t.match(e);n&&n[0]===t&&s(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let n,i,o,{typename:a,fieldName:s}=e,l=this.getFieldPolicy(a,s),c=l&&l.keyFn;if(c&&a){let t={typename:a,fieldName:s,field:e.field||null,variables:e.variables},r=rg(e);for(;c;){let e=c(r,t);if(ti(e))c=ro(e);else{n=e||s;break}}}return(void 0===n&&(n=e.field?(t=e.field,r=e.variables,i=null,t.directives&&(i={},t.directives.forEach(e=>{i[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:n})=>tt(i[e.name.value],t,n,r))})),o=null,t.arguments&&t.arguments.length&&(o={},t.arguments.forEach(({name:e,value:t})=>tt(o,e,t,r))),t7(t.name.value,o,i)):t7(s,rg(e))),!1===n)?s:s===tV(n)?n:s+":"+n}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}let n=this.getStoreFieldName(e),i=tV(n),o=t.store.getFieldValue(r,n),a=this.getFieldPolicy(e.typename,i),s=a&&a.read;if(s){let i=rS(this,r,e,t,t.store.getStorage(tI(r)?r.__ref:r,n));return rc.withValue(this.cache,s,[o,i])}return o}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i}runMergeFunction(e,t,{field:r,typename:n,merge:i,path:o},a,s){let l=e;if(i===rv)return rw(a.store)(e,t);if(i===rb)return t;a.overwrite&&(e=void 0);let c=a.extensions?.[e7]?.deref()?.peekArray(o);if(c){let{current:e,previous:r}=c;if(r&&eY(r.incoming,t)&&eY(r.streamFieldInfo,e))return r.result}let u=i(e,t,function(e,t,r,n,i,o){let a={...rS(e,t,r,n,i),extensions:n.extensions,existingData:o},s=n.extensions;if(s&&e7 in s){let{[e7]:e,...t}=s,n=e?.deref()?.peekArray(r.path);n&&(a.streamFieldInfo=n.current),a.extensions=0===Object.keys(t).length?void 0:t}return a}(this,void 0,{typename:n,fieldName:r.name.value,field:r,variables:a.variables,path:o},a,s||{},l));return c&&(c.previous={incoming:t,streamFieldInfo:c.current,result:u}),u}}function rS(e,t,r,n,i){let o=e.getStoreFieldName(r),a=tV(o),s=r.variables||n.variables,{toReference:l,canRead:c}=n.store;return{args:rg(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:tI,toReference:l,storage:i,cache:e.cache,canRead:c,readField:(...r)=>e.readField(rT(r,t,s),n),mergeObjects:rw(n.store)}}function rT(e,t,r){let n,{0:i,1:o,length:a}=e;return"string"==typeof i?n={fieldName:i,from:a>1?o:t}:(n={...i},tC.call(n,"from")||(n.from=t)),eV.__DEV__&&void 0===n.from&&eV.__DEV__&&es.invariant.warn(105,(0,re.stringifyForDisplay)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function rw(e){return function(t,r){if(ti(t)||ti(r))throw(0,es.newInvariantError)(106);if(e5(t)&&e5(r)){let n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(tI(t)&&tB(r))return e.merge(t.__ref,r),t;if(tB(t)&&tI(r))return e.merge(t,r.__ref),r;if(tB(t)&&tB(r))return{...t,...r}}return r}}
101class rk extends Error{message;path;query;variables;constructor(e,t,r,n){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=n,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=rk.prototype}missing}function rO(e){return[e.selectionSet,e.objectOrReference,e.context]}e.s(["MissingFieldError",0,rk],868820);class r_{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=eo(e=>{let t=rO(e),r=this.executeSelectionSet.peek(...t);return r||(t0(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:el.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:rO,makeCacheKey(e,t,r){if(t3(r.store))return r.store.makeCacheKey(e,tI(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=eo(e=>(t0(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:el.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(t3(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:n,returnPartialData:i=!0}){let o,a=this.config.cache.policies;n={...tr(th(t)),...n};let s=tQ(r),l=this.executeSelectionSet({selectionSet:ta(t).selectionSet,objectOrReference:s,enclosingRef:s,context:{store:e,query:t,policies:a,variables:n,varString:ez(n),...tq(t,this.config.fragments)}});l.missing&&(o=new rk(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,n));let c=!o,{result:u}=l;return{result:c?u:i?0===Object.keys(u).length?null:u:null,complete:c,missing:o}}isFresh(e,t,r,n){if(t3(n.store)&&this.knownResults.get(e)===r){let i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:n}){let i;if(tI(t)&&!n.policies.rootTypenamesById[t.__ref]&&!n.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:o,policies:a,store:s}=n,l=s.getFieldValue(t,"__typename"),c=[],u=new tD;function p(e,t){return e.missing&&(i=u.merge(i,{[t]:e.missing})),e.result}"string"!=typeof l||a.rootIdsByTypename[l]||c.push({__typename:l});let d=new Set(e.selections);d.forEach(e=>{if(tl(e,o))if(ts(e)){let o=a.readField({fieldName:e.name.value,field:e,variables:n.variables,from:t},n),s=e3(e);void 0===o?tK.added(e)||(i=u.merge(i,{[s]:`Can't find field '${e.name.value}' on ${tI(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):ti(o)?o.length>0&&(o=p(this.executeSubSelectedArray({field:e,array:o,enclosingRef:r,context:n}),s)):e.selectionSet&&null!=o&&(o=p(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:o,enclosingRef:tI(o)?o:r,context:n}),s)),void 0!==o&&c.push({[s]:o})}else{let t=to(e,n.lookupFragment);if(!t&&e.kind===e6.Kind.FRAGMENT_SPREAD)throw(0,es.newInvariantError)(107,e.name.value);t&&a.fragmentMatches(t,l)&&t.selectionSet.selections.forEach(d.add,d)}});let h=e4({result:function(e){let t=e[0]||{},r=e.length;if(r>1){let n=new tD;for(let i=1;i<r;++i)t=n.merge(t,e[i])}return t}(c),missing:i});return h.result&&this.knownResults.set(h.result,e),h}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:n}){let i,o=new tD;function a(e,t){return e.missing&&(i=o.merge(i,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||n.store.canRead(e))),{result:t=t.map((t,i)=>null===t?null:ti(t)?a(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:n}),i):e.selectionSet?a(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:tI(t)?t:r,context:n}),i):(eV.__DEV__&&function(e,t,r){if(!t.selectionSet){let n=new Set([r]);n.forEach(r=>{e5(r)&&((0,es.invariant)(!tI(r),108,t$(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(n.store,e,t),t)),missing:i}}}let{toString:rI}=Object.prototype;function rA(e,t,r){let n=`${t}${r}`,i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),i}class rN{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:n,variables:i,overwrite:o,extensions:a}){let s=(0,td.getOperationDefinition)(t),l=tz(),c={store:e,written:{},merge:(e,t)=>
101l.merge(e,t),variables:i={...tr(s),...i},varString:ez(i),...tq(t,this.fragments),overwrite:!!o,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:a},u=this.processSelectionSet({result:r||{},dataId:n,selectionSet:s.selectionSet,mergeTree:{map:new Map},context:c,path:[]});if(!tI(u))throw(0,es.newInvariantError)(109,r);return c.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:n},i)=>{let o=tQ(i);if(r&&r.map.size){let e=this.applyMerges(r,o,t,c);if(tI(e))return;t=e}if(eV.__DEV__&&!c.overwrite){let e={};n.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(n=>{let i;!0!==e[tV(n)]||(i=r&&r.map.get(n))&&i.info&&i.info.merge||function(e,t,r,n){let i=e=>{let t=n.getFieldValue(e,r);return"object"==typeof t&&t},o=i(e);if(!o)return;let a=i(t);if(!a||tI(o)||eY(o,a)||Object.keys(o).every(e=>void 0!==n.getFieldValue(a,e)))return;let s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=tV(r),c=`${s}.${l}`;if(rL.has(c))return;rL.add(c);let u=[];ti(o)||ti(a)||[o,a].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||u.includes(t)||u.push(t)}),eV.__DEV__&&es.invariant.warn(112,l,s,u.length?"either ensure all objects of type "+u.join(" and ")+" have an ID or a custom merge function, or ":"",c,Array.isArray(o)?[...o]:{...o},Array.isArray(a)?[...a]:{...a})}(o,t,n,c.store)})}e.merge(i,t)}),e.retain(u.__ref),u}processSelectionSet({dataId:e,result:t,selectionSet:r,context:n,mergeTree:i,path:o}){let{policies:a}=this.cache,s={},l=e&&a.rootTypenamesById[e]||rF(t,r,n.fragmentMap)||e&&n.store.get(e,"__typename");"string"==typeof l&&(s.__typename=l);let c=(...e)=>{let t=rT(e,s,n.variables);if(tI(t.from)){let e=n.incomingById.get(t.from.__ref);if(e){let r=a.readField({...t,from:e.storeObject},n);if(void 0!==r)return r}}return a.readField(t,n)},u=new Set;this.flattenFields(r,t,n,l).forEach((e,r)=>{let n=t[e3(r)],p=[...o,r.name.value];if(u.add(r),void 0!==n){let t,o=a.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),u=rR(i,o),d=this.processFieldValue(n,r,r.selectionSet?rA(e,!1,!1):e,u,p);r.selectionSet&&(tI(d)||tB(d))&&(t=c("__typename",d));let h=a.getMergeFunction(l,r.name.value,t);h?u.info={field:r,typename:l,merge:h,path:p}:w(["stream"],r)&&Array.isArray(d)&&e.extensions?.[e7]?u.info={field:r,typename:l,merge:rx,path:p}:rC(i,o),s=e.merge(s,{[o]:d})}else!eV.__DEV__||e.clientOnly||e.deferred||tK.added(r)||a.getReadFunction(l,r.name.value)||es.invariant.error(110,e3(r),t)});try{let[i,o]=a.identify(t,{typename:l,selectionSet:r,fragmentMap:n.fragmentMap,storeObject:s,readField:c});e=e||i,o&&(s=n.merge(s,o))}catch(t){if(!e)throw t}if("string"==typeof e){let o=tQ(e),a=n.written[e]||(n.written[e]=[]);if(a.indexOf(r)>=0||(a.push(r),this.reader&&this.reader.isFresh(t,o,r,n)))return o;let l=n.incomingById.get(e);return l?(l.storeObject=n.merge(l.storeObject,s),l.mergeTree=function e(t,r){if(t===r||!r||rD(r))return t;if(!t||rD(t))return r;let n=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){let n=new Set(r.map.keys());t.map.forEach((t,i)=>{o.map.set(i,e(t,r.map.get(i))),n.delete(i)}),n.forEach(n=>{o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(l.mergeTree,i),u.forEach(e=>l.fieldNodeSet.add(e))):n.incomingById.set(e,{storeObject:s,mergeTree:rD(i)?void 0:i,fieldNodeSet:u}),o}return s}processFieldValue(e,t,r,n,i){return t.selectionSet&&null!==e?ti(e)?e.map((e,o)=>{let a=this.processFieldValue(e,t,r,rR(n,o),[...i,o]);return rC(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n,path:i}):eV.__DEV__?function e(t,r){switch(rI.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let n=t.slice(0);return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let n=Object.create(Object.getPrototypeOf(t));return r.set(t,n),Object.keys(t).forEach(i=>{n[i]=e(t[i],r)}),n}default:return t}}(e):e}flattenFields(e,t,r,n=rF(t,e,r.fragmentMap)){let i=new Map,{policies:o}=this.cache,a=new O.Trie(!1);return!function e(s,l){let c=a.lookup(s,l.clientOnly,l.deferred);c.visited||(c.visited=!0,s.selections.forEach(a=>{if(!tl(a,r.variables))return;let{clientOnly:s,deferred:c}=l;if(!(s&&c)&&(0,rt.isNonEmptyArray)(a.directives)&&a.directives.forEac
101h(e=>{let t=e.name.value;if("client"===t&&(s=!0),"defer"===t){let t=t6(e,r.variables);t&&!1===t.if||(c=!0)}}),ts(a)){let e=i.get(a);e&&(s=s&&e.clientOnly,c=c&&e.deferred),i.set(a,rA(r,s,c))}else{let i=to(a,r.lookupFragment);if(!i&&a.kind===e6.Kind.FRAGMENT_SPREAD)throw(0,es.newInvariantError)(111,a.name.value);i&&o.fragmentMatches(i,n,t,r.variables)&&e(i.selectionSet,rA(r,s,c))}}))}(e,r),i}applyMerges(e,t,r,n,i){if(e.map.size&&!tI(r)){let o,a=!ti(r)&&(tI(t)||tB(t))?t:void 0,s=r;a&&!i&&(i=[tI(a)?a.__ref:a]);let l=(e,t)=>ti(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(a,t),c=l(s,t);if(void 0===c)return;i&&i.push(t);let u=this.applyMerges(e,r,c,n,i);u!==c&&(o=o||new Map).set(t,u),i&&(0,es.invariant)(i.pop()===t)}),o&&(r=ti(s)?s.slice(0):{...s},o.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&n.store.getStorage(...i)):r}}let rP=[];function rR({map:e},t){return e.has(t)||e.set(t,rP.pop()||{map:new Map}),e.get(t)}function rD(e){return!e||!(e.info||e.map.size)}function rC({map:e},t){let r=e.get(t);r&&rD(r)&&(rP.push(r),e.delete(t))}let rL=new Set;function rF(e,t,r){let n;for(let r of t.selections)if(ts(r)){if("__typename"===r.name.value)return e[e3(r)]}else n?n.push(r):n=[r];if("string"==typeof e.__typename)return e.__typename;if(n)for(let t of n){let n=rF(e,to(t,r).selectionSet,r);if("string"==typeof n)return n}}class rM extends tT{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new eu(tK);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=rf;constructor(e={}){super(),this.config=tM(e),this.policies=new rE({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new tJ.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new rN(this,this.storeReader=new r_({cache:this,fragments:e}),e),this.maybeBroadcastWatch=eo((e,t)=>this.broadcastWatch(e,t),{max:el.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(t3(t)){let{optimistic:r,id:n,variables:i}=e;return t.makeCacheKey(e.query,e.callback,ez({optimistic:r,id:n,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(tC.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){return this.watches.size||rh(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&rd(this),this.maybeBroadcastWatch.forget(e)}}gc(e){ez.reset(),tH.print.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(tI(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){eV.__DEV__&&es.invariant.warn(e)}}evict(e){if(!e.id){if(tC.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),ez.reset(),e&&e.discardWatches?(this.watches.forEac
101h(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),rd(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:n=!0,removeOptimistic:i,onWatchUpdated:o}=e,a=e=>{let{data:n,optimisticData:i}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=n,this.optimisticData=i}},s=new Set;return o&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>(s.add(e),!1)}),"string"==typeof n?this.optimisticData=this.optimisticData.addLayer(n,a):!1===n?a(this.data):a(),"string"==typeof i&&(this.optimisticData=this.optimisticData.removeLayer(i)),o&&s.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=o.call(this,e,t);return!1!==r&&s.delete(e),r}}),s.size&&s.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&eY(r.result,n.result)||e.callback(e.lastDiff=n,r))}}eV.__DEV__&&(rM.prototype.getMemoryInternals=ep),e.s(["InMemoryCache",0,rM],740775)},564804,e=>{"use strict";let t;e.s([],531873),e.i(531873);let r=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});var n,i,o,a,s,l,c,u=e.i(170594);function p(e){return"function"==typeof(null==e?void 0:e.then)}var d=e.i(381625),h=e.i(968623),f=e.i(317401),g=e.i(701685);function y(e,t){let[r,n]=t?[e,t]:[void 0,e],i=" Did you mean ";r&&(i+=r+" ");let o=n.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function m(e){return e}var v=e.i(781583),b=e.i(300230);function x(e,t){let r=Object.create(null);for(let n of e)r[t(n)]=n;return r}function E(e,t,r){let n=Object.create(null);for(let i of e)n[t(i)]=r(i);return n}function S(e,t){let r=Object.create(null);for(let n of Object.keys(e))r[n]=t(e[n],n);return r}function T(e,t){let r=0,n=0;for(;r<e.length&&n<t.length;){let i=e.charCodeAt(r),o=t.charCodeAt(n);if(k(i)&&k(o)){let a=0;do++r,a=10*a+i-w,i=e.charCodeAt(r);while(k(i)&&a>0)let s=0;do++n,s=10*s+o-w,o=t.charCodeAt(n);while(k(o)&&s>0)if(a<s)return -1;if(a>s)return 1}else{if(i<o)return -1;if(i>o)return 1;++r,++n}}return e.length-t.length}let w=48;function k(e){return!isNaN(e)&&w<=e&&e<=57}function O(e,t){let r=Object.create(null),n=new _(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=n.measure(e,i);void 0!==t&&(r[e]=t)}return Object.keys(r).sort((e,t)=>{let n=r[e]-r[t];return 0!==n?n:T(e,t)})}class _{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=I(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let r=e.toLowerCase();if(this._inputLowerCase===r)return 1;let n=I(r),i=this._inputArray;if(n.length<i.length){let e=n;n=i,i=e}let o=n.length,a=i.length;if(o-a>t)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let r=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(n[e-1]!==i[t-1]),c=Math.min(r[t]+1,o[t-1]+1,r[t-1]+a);e>1&&t>1&&n[e-1]===i[t-2]&&n[e-2]===i[t-1]&&(c=Math.min(c,s[(e-2)%3][t-2]+1)),c<l&&(l=c),o[t]=c}if(l>t)return}let l=s[o%3][a];return l<=t?l:void 0}}function I(e){let t=e.length,r=Array(t);for(let n=0;n<t;++n)r[n]=e.charCodeAt(n);return r}function A(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;let t=Object.create(null);for(let[r,n]of Object.entries(e))t[r]=n;return t}var N=e.i(108520),P=e.i(155547);function R(e,t){switch(e.kind){case N.Kind.NULL:return null;case N.Kind.INT:return parseInt(e.value,10);case N.Kind.FLOAT:return parseFloat(e.value);case N.Kind.STRING:case N.Kind.ENUM:case N.Kind.BOOLEAN:return e.value;
101case N.Kind.LIST:return e.values.map(e=>R(e,t));case N.Kind.OBJECT:return E(e.fields,e=>e.name.value,e=>R(e.value,t));case N.Kind.VARIABLE:return null==t?void 0:t[e.name.value]}}var D=e.i(623580);function C(e){if(null!=e||(0,u.devAssert)(!1,"Must provide name."),"string"==typeof e||(0,u.devAssert)(!1,"Expected name to be a string."),0===e.length)throw new f.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!(0,D.isNameContinue)(e.charCodeAt(t)))throw new f.GraphQLError(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!(0,D.isNameStart)(e.charCodeAt(0)))throw new f.GraphQLError(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function L(e){if("true"===e||"false"===e||"null"===e)throw new f.GraphQLError(`Enum values cannot be named: ${e}`);return C(e)}function F(e){return M(e)||$(e)||V(e)||B(e)||z(e)||q(e)||G(e)||K(e)}function M(e){return(0,v.instanceOf)(e,el)}function $(e){return(0,v.instanceOf)(e,ec)}function j(e){if(!$(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL Object type.`);return e}function V(e){return(0,v.instanceOf)(e,em)}function U(e){if(!V(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL Interface type.`);return e}function B(e){return(0,v.instanceOf)(e,ev)}function z(e){return(0,v.instanceOf)(e,ex)}function q(e){return(0,v.instanceOf)(e,eT)}function G(e){return(0,v.instanceOf)(e,J)}function K(e){return(0,v.instanceOf)(e,Z)}function H(e){return M(e)||z(e)||q(e)||ee(e)&&H(e.ofType)}function Q(e){return M(e)||$(e)||V(e)||B(e)||z(e)||ee(e)&&Q(e.ofType)}function W(e){return M(e)||z(e)}function Y(e){return $(e)||V(e)||B(e)}function X(e){return V(e)||B(e)}class J{constructor(e){F(e)||(0,u.devAssert)(!1,`Expected ${(0,h.inspect)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Z{constructor(e){et(e)||(0,u.devAssert)(!1,`Expected ${(0,h.inspect)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function ee(e){return G(e)||K(e)}function et(e){return F(e)&&!K(e)}function er(e){if(!et(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL nullable type.`);return e}function en(e){if(e)return K(e)?e.ofType:e}function ei(e){return M(e)||$(e)||V(e)||B(e)||z(e)||q(e)}function eo(e){if(e){let t=e;for(;ee(t);)t=t.ofType;return t}}function ea(e){return"function"==typeof e?e():e}function es(e){return"function"==typeof e?e():e}class el{constructor(e){var t,r,n,i;const o=null!=(t=e.parseValue)?t:m;this.name=C(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!=(r=e.serialize)?r:m,this.parseValue=o,this.parseLiteral=null!=(n=e.parseLiteral)?n:(e,t)=>o(R(e,t)),this.extensions=A(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,u.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,h.inspect)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,u.devAssert)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,u.devAssert)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ec{constructor(e){var t;this.name=C(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=A(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>ep(e),this._interfaces=()=>eu(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,u.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,h.inspect)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}
101getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ef(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eu(e){var t;let r=ea(null!=(t=e.interfaces)?t:[]);return Array.isArray(r)||(0,u.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),r}function ep(e){let t=es(e.fields);return eh(t)||(0,u.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),S(t,(t,r)=>{var n;eh(t)||(0,u.devAssert)(!1,`${e.name}.${r} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,u.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,h.inspect)(t.resolve)}.`);let i=null!=(n=t.args)?n:{};return eh(i)||(0,u.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:C(r),description:t.description,type:t.type,args:ed(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:A(t.extensions),astNode:t.astNode}})}function ed(e){return Object.entries(e).map(([e,t])=>({name:C(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:A(t.extensions),astNode:t.astNode}))}function eh(e){return(0,b.isObjectLike)(e)&&!Array.isArray(e)}function ef(e){return S(e,e=>({description:e.description,type:e.type,args:eg(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function eg(e){return E(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function ey(e){return K(e.type)&&void 0===e.defaultValue}class em{constructor(e){var t;this.name=C(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=A(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=ep.bind(void 0,e),this._interfaces=eu.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,u.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,h.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:ef(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ev{constructor(e){var t;this.name=C(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=A(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=eb.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,u.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,h.inspect)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eb(e){let t=ea(e.types);return Array.isArray(t)||(0,u.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class ex{constructor(e){var t;this.name=C(e.name),this.description=e.description,this.extensions=A(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:eS(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=eS(this.name,this._values())
101),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=x(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new f.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,h.inspect)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=(0,h.inspect)(e);throw new f.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${t}.`+eE(this,t))}let t=this.getValue(e);if(null==t)throw new f.GraphQLError(`Value "${e}" does not exist in "${this.name}" enum.`+eE(this,e));return t.value}parseLiteral(e,t){if(e.kind!==N.Kind.ENUM){let t=(0,P.print)(e);throw new f.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+eE(this,t),{nodes:e})}let r=this.getValue(e.value);if(null==r){let t=(0,P.print)(e);throw new f.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+eE(this,t),{nodes:e})}return r.value}toConfig(){let e=E(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function eE(e,t){return y("the enum value",O(t,e.getValues().map(e=>e.name)))}function eS(e,t){return eh(t)||(0,u.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,r])=>(eh(r)||(0,u.devAssert)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,h.inspect)(r)}.`),{name:L(t),description:r.description,value:void 0!==r.value?r.value:t,deprecationReason:r.deprecationReason,extensions:A(r.extensions),astNode:r.astNode}))}class eT{constructor(e){var t,r;this.name=C(e.name),this.description=e.description,this.extensions=A(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(r=e.isOneOf)&&r,this._fields=ew.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=S(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function ew(e){let t=es(e.fields);return eh(t)||(0,u.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),S(t,(t,r)=>("resolve"in t&&(0,u.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:C(r),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:A(t.extensions),astNode:t.astNode}))}function ek(e){return K(e.type)&&void 0===e.defaultValue}function eO(e,t){return e===t||!!(K(e)&&K(t)||G(e)&&G(t))&&eO(e.ofType,t.ofType)}function e_(e,t,r){return t===r||(K(r)?!!K(t)&&e_(e,t.ofType,r.ofType):K(t)?e_(e,t.ofType,r):G(r)?!!G(t)&&e_(e,t.ofType,r.ofType):!G(t)&&X(r)&&(V(t)||$(t))&&e.isSubType(r,t))}function eI(e,t,r){return t===r||(X(t)?X(r)?e.getPossibleTypes(t).some(t=>e.isSubType(r,t)):e.isSubType(t,r):!!X(r)&&e.isSubType(r,t))}var eA=e.i(352414);let eN=new el({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=eM(e);if("boolean"==typeof t)return+!!t;let r=t;if("string"==typeof t&&""!==t&&(r=Number(t)),"number"!=typeof r||!Number.isInteger(r))throw new f.GraphQLError(`Int cannot represent non-integer value: ${(0,h.inspect)(t)}`);if(r>0x7fffffff||r<-0x80000000)throw new f.GraphQLError("Int cannot represent non 32-bit signed integer value: "+(0,h.inspect)(t));return r},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new f.GraphQLError(`Int cannot represent non-integer value: ${(0,h.inspect)(e)}`);
101if(e>0x7fffffff||e<-0x80000000)throw new f.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==N.Kind.INT)throw new f.GraphQLError(`Int cannot represent non-integer value: ${(0,P.print)(e)}`,{nodes:e});let t=parseInt(e.value,10);if(t>0x7fffffff||t<-0x80000000)throw new f.GraphQLError(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),eP=new el({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){let t=eM(e);if("boolean"==typeof t)return+!!t;let r=t;if("string"==typeof t&&""!==t&&(r=Number(t)),"number"!=typeof r||!Number.isFinite(r))throw new f.GraphQLError(`Float cannot represent non numeric value: ${(0,h.inspect)(t)}`);return r},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new f.GraphQLError(`Float cannot represent non numeric value: ${(0,h.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==N.Kind.FLOAT&&e.kind!==N.Kind.INT)throw new f.GraphQLError(`Float cannot represent non numeric value: ${(0,P.print)(e)}`,e);return parseFloat(e.value)}}),eR=new el({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){let t=eM(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new f.GraphQLError(`String cannot represent value: ${(0,h.inspect)(e)}`)},parseValue(e){if("string"!=typeof e)throw new f.GraphQLError(`String cannot represent a non string value: ${(0,h.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==N.Kind.STRING)throw new f.GraphQLError(`String cannot represent a non string value: ${(0,P.print)(e)}`,{nodes:e});return e.value}}),eD=new el({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){let t=eM(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new f.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,h.inspect)(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new f.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,h.inspect)(e)}`);return e},parseLiteral(e){if(e.kind!==N.Kind.BOOLEAN)throw new f.GraphQLError(`Boolean cannot represent a non boolean value: ${(0,P.print)(e)}`,{nodes:e});return e.value}}),eC=new el({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){let t=eM(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new f.GraphQLError(`ID cannot represent value: ${(0,h.inspect)(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new f.GraphQLError(`ID cannot represent value: ${(0,h.inspect)(e)}`)},parseLiteral(e){if(e.kind!==N.Kind.STRING&&e.kind!==N.Kind.INT)throw new f.GraphQLError("ID cannot represent a non-string and non-integer value: "+(0,P.print)(e),{nodes:e});return e.value}}),eL=Object.freeze([eR,eN,eP,eD,eC]);function eF(e){return eL.some(({name:t})=>e.name===t)}function eM(e){if((0,b.isObjectLike)(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!(0,b.isObjectLike)(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function e$(e){return(0,v.instanceOf)(e,ej)}class ej{constructor(e){var t,r;this.name=C(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=A(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,u.devAssert)(!1,`@${e.name} locations must be an Array.`);const n=null!=(r=e.args)?r:{};(0,b.isObjectLike)(n)&&!Array.isArray(n)||(0,u.devAssert)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=ed(n)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:eg(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let eV=new ej({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[eA.DirectiveLocation.FIELD,eA.DirectiveLocation.FRAGMENT_SPREAD,eA.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Z(eD),description:"Included when true."}}}),eU=new ej({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[eA.DirectiveLocation.FIELD,eA.DirectiveLocation.FRAGMENT_SPREAD,eA.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Z(eD),description:"Skipped when true."}}}),eB="No longer supported",ez=new ej({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[eA.DirectiveLocation.FIELD_DEFINITION,eA.DirectiveLocation.ARGUMENT_DEFINITION,eA.DirectiveLocation.INPUT_FIELD_DEFINITION,eA.DirectiveLocation.ENUM_VALUE],args:{reason:{type:eR,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:eB}}}),eq=new ej({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[eA.DirectiveLocation.SCALAR],args:{url:{type:new Z(eR),description:"The URL that specifies the behavior of this scalar."}}}),eG=new ej({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[eA.DirectiveLocation.INPUT_OBJECT],args:{}}),eK=Object.freeze([eV,eU,ez,eq,eG]);function eH(e){return eK.some(({name:t})=>t===e.name)}var eQ=e.i(228254);function eW(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function eY(e,t){if(K(t)){let r=eY(e,t.ofType);return(null==r?void 0:r.kind)===N.Kind.NULL?null:r}if(null===e)return{kind:N.Kind.NULL};if(void 0===e)return null;if(G(t)){let r=t.ofType;if(eW(e)){let t=[];for(let n of e){let e=eY(n,r);null!=e&&t.push(e)}return{kind:N.Kind.LIST,values:t}}return eY(e,r)}if(q(t)){if(!(0,b.isObjectLike)(e))return null;let r=[];for(let n of Object.values(t.getFields())){let t=eY(e[n.name],n.type);t&&r.push({kind:N.Kind.OBJECT_FIELD,name:{kind:N.Kind.NAME,value:n.name},value:t})}return{kind:N.Kind.OBJECT,fields:r}}if(W(t)){let r=t.serialize(e);if(null==r)return null;if("boolean"==typeof r)return{kind:N.Kind.BOOLEAN,value:r};if("number"==typeof r&&Number.isFinite(r)){let e=String(r);return eX.test(e)?{kind:N.Kind.INT,value:e}:{kind:N.Kind.FLOAT,value:e}}if("string"==typeof r)return z(t)?{kind:N.Kind.ENUM,value:r}:t===eC&&eX.test(r)?{kind:N.Kind.INT,value:r}:{kind:N.Kind.STRING,value:r};throw TypeError(`Cannot convert value to AST: ${(0,h.inspect)(r)}.`)}(0,eQ.invariant)(!1,"Unexpected input type: "+(0,h.inspect)(t))}let eX=/^-?(?:0|[1-9][0-9]*)$/,eJ=new ec({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:eR,resolve:e=>e.description}
101,types:{description:"A list of all types supported by this server.",type:new Z(new J(new Z(e1))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Z(e1),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:e1,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:e1,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Z(new J(new Z(eZ))),resolve:e=>e.getDirectives()}})}),eZ=new ec({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Z(eR),resolve:e=>e.name},description:{type:eR,resolve:e=>e.description},isRepeatable:{type:new Z(eD),resolve:e=>e.isRepeatable},locations:{type:new Z(new J(new Z(e0))),resolve:e=>e.locations},args:{type:new Z(new J(new Z(e5))),args:{includeDeprecated:{type:eD,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),e0=new ex({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:eA.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:eA.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:eA.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:eA.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:eA.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:eA.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:eA.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:eA.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:eA.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:eA.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:eA.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:eA.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:eA.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:eA.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:eA.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:eA.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:eA.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:eA.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:eA.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),e1=new ec({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Z(e3),resolve:e=>M(e)?s.SCALAR:$(e)?s.OBJECT:V(e)?s.INTERFACE:B(e)?s.UNION:z(e)?s.ENUM:q(e)?s.INPUT_OBJECT:G(e)?s.LIST:K(e)?s.NON_NULL:void(0,eQ.invariant)(!1,`Unexpected type: "${(0,h.inspect)(e)}".`)},name:{type:eR,resolve:e=>"name"in e?e.name:void 0},description:{type:eR,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:eR,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new J(new Z(e2)),args:{includeDeprecated:{type:eD,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if($(e)||V(e)){let r=Object.values(e.getFields());return t?r:r.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new J(new Z(e1)),resolve(e){if($(e)||V(e))return e.getInterfaces()}},possibleTypes:{type:new J(new Z(e1)),resolve(e,t,r,{schema:n}){if(X(e))return n.getPossibleTypes(e)}},enumValues:{type:new J(new Z(e4)),args:{includeDeprecated:{type:eD,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(z(e)){let r=e.getValues();return t?r:r.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new J(new Z(e5)),args:{includeDeprecated:{type:eD,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(q(e)){let r=Object.values(e.getFields());return t?r:r.filter(e=>null==e.deprecationReason)}}},ofType:{type:e1,resolve:e=>
101"ofType"in e?e.ofType:void 0},isOneOf:{type:eD,resolve:e=>{if(q(e))return e.isOneOf}}})}),e2=new ec({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Z(eR),resolve:e=>e.name},description:{type:eR,resolve:e=>e.description},args:{type:new Z(new J(new Z(e5))),args:{includeDeprecated:{type:eD,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new Z(e1),resolve:e=>e.type},isDeprecated:{type:new Z(eD),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eR,resolve:e=>e.deprecationReason}})}),e5=new ec({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Z(eR),resolve:e=>e.name},description:{type:eR,resolve:e=>e.description},type:{type:new Z(e1),resolve:e=>e.type},defaultValue:{type:eR,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:r}=e,n=eY(r,t);return n?(0,P.print)(n):null}},isDeprecated:{type:new Z(eD),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eR,resolve:e=>e.deprecationReason}})}),e4=new ec({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Z(eR),resolve:e=>e.name},description:{type:eR,resolve:e=>e.description},isDeprecated:{type:new Z(eD),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:eR,resolve:e=>e.deprecationReason}})});(n=s||(s={})).SCALAR="SCALAR",n.OBJECT="OBJECT",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.INPUT_OBJECT="INPUT_OBJECT",n.LIST="LIST",n.NON_NULL="NON_NULL";let e3=new ex({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:s.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:s.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:s.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:s.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:s.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:s.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:s.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:s.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),e6={name:"__schema",type:new Z(eJ),description:"Access the current type schema of this server.",args:[],resolve:(e,t,r,{schema:n})=>n,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},e9={name:"__type",type:e1,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Z(eR),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},r,{schema:n})=>n.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},e8={name:"__typename",type:new Z(eR),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,r,{parentType:n})=>n.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},e7=Object.freeze([eJ,eZ,e0,e1,e2,e5,e4,e3]);function te(e){return e7.some(({name:t})=>e.name===t)}function tt(e){return(0,v.instanceOf)(e,tn)}function tr(e){if(!tt(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL schema.`);return e}class tn{constructor(e){var t,r;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,b.isObjectLike)(e)||(0,u.devAssert)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,u.devAssert)(!1,`"types" must be Array if provided but got: ${(0,h.inspect)(e.types)}
101.`),!e.directives||Array.isArray(e.directives)||(0,u.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,h.inspect)(e.directives)}.`),this.description=e.description,this.extensions=A(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(r=e.directives)?r:eK;const n=new Set(e.types);if(null!=e.types)for(const t of e.types)n.delete(t),ti(t,n);for(const e of(null!=this._queryType&&ti(this._queryType,n),null!=this._mutationType&&ti(this._mutationType,n),null!=this._subscriptionType&&ti(this._subscriptionType,n),this._directives))if(e$(e))for(const t of e.args)ti(t.type,n);for(const e of(ti(eJ,n),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),n)){if(null==e)continue;const t=e.name;if(t||(0,u.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,V(e)){for(const t of e.getInterfaces())if(V(t)){let r=this._implementationsMap[t.name];void 0===r&&(r=this._implementationsMap[t.name]={objects:[],interfaces:[]}),r.interfaces.push(e)}}else if($(e)){for(const t of e.getInterfaces())if(V(t)){let r=this._implementationsMap[t.name];void 0===r&&(r=this._implementationsMap[t.name]={objects:[],interfaces:[]}),r.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case g.OperationTypeNode.QUERY:return this.getQueryType();case g.OperationTypeNode.MUTATION:return this.getMutationType();case g.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return B(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let r=this._subTypeMap[e.name];if(void 0===r){if(r=Object.create(null),B(e))for(let t of e.getTypes())r[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)r[e.name]=!0;for(let e of t.interfaces)r[e.name]=!0}this._subTypeMap[e.name]=r}return void 0!==r[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function ti(e,t){let r=eo(e);if(!t.has(r)){if(t.add(r),B(r))for(let e of r.getTypes())ti(e,t);else if($(r)||V(r)){for(let e of r.getInterfaces())ti(e,t);for(let e of Object.values(r.getFields()))for(let r of(ti(e.type,t),e.args))ti(r.type,t)}else if(q(r))for(let e of Object.values(r.getFields()))ti(e.type,t)}return t}function to(e){var t,r,n,i;let o,a,s,l;if(tr(e),e.__validationErrors)return e.__validationErrors;let c=new ts(e);(a=(o=(t=c).schema).getQueryType())?$(a)||t.reportError(`Query root type must be Object type, it cannot be ${(0,h.inspect)(a)}.`,null!=(r=tl(o,g.OperationTypeNode.QUERY))?r:a.astNode):t.reportError("Query root type must be provided.",o.astNode),(s=o.getMutationType())&&!$(s)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,h.inspect)(s)}.`,null!=(n=tl(o,g.OperationTypeNode.MUTATION))?n:s.astNode),(l=o.getSubscriptionType())&&!$(l)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,h.inspect)(l)}.`,null!=(i=tl(o,g.OperationTypeNode.SUBSCRIPTION))?i:l.astNode),function(e){for(let r of e.schema.getDirectives()){if(!e$(r)){e.reportError(`Expected directive but got: ${(0,h.inspect)(r)}.`,null==r?void 0:r.astNode);continue}for(let n of(tc(e,r),0===r.locations.length&&e.reportError(`Directive @${r.name} must include 1 or more locations.`,r.astNode),r.args))if(tc(e,n),H(n.type)||e.reportError(`The type of @${r.name}(${n.name}:) must be Input Type but got: ${(0,h.inspect)(n.type)}.`,n.astNode),ey(n)&&null!=n.deprecationReason){var t;e.reportError(`Required argument @${r.name}(${n.name}:) cannot be deprecated.`,[td(n.astNode),null==(t=n.astNode)?void 0:t.type])}}}(c),function(e){var t;let r,n,i,o=(t=e,r=Object.create(null),n=[],i=Object.create(null),function e(o){if(!r[o.name]){for(let a of(r[o.name]=!0,i[o.name]=n.length,Object.values(o.getFields())))if(K(a.type)&&q(a.type.ofType)){let r=a.type.ofType,o=i[r.name];if(n.push(a),void 0===o)e(r);else{let e=n.slice(o),i=e.map(e=>e.name).join(".");t.reportError(`Cannot reference Input Object "${r.name}" within itself through a series of non-null fields: "${i}".`,e.map(e=>e.astNode))}n.pop()}i[o.name]=void 0}});for(let t of Object.values(e.schema.getTypeMap())){if(!ei(t)){e.reportError(`Expected GraphQL named type but got: ${(0,h.inspect)(t)}.`,t.astNode);continue}te(t)||tc(e,t),$(t)||V(t)?(function(e,t){let r=Object.values(t.getFields());for(let a of(0===r.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),r)){var n,i,o;for(let r of(tc(e,a),Q(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${(0,h.inspect)(a.type)}
101.`,null==(n=a.astNode)?void 0:n.type),a.args)){let n=r.name;tc(e,r),H(r.type)||e.reportError(`The type of ${t.name}.${a.name}(${n}:) must be Input Type but got: ${(0,h.inspect)(r.type)}.`,null==(i=r.astNode)?void 0:i.type),ey(r)&&null!=r.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${n}:) cannot be deprecated.`,[td(r.astNode),null==(o=r.astNode)?void 0:o.type])}}}(e,t),function(e,t){let r=Object.create(null);for(let n of t.getInterfaces()){if(!V(n)){e.reportError(`Type ${(0,h.inspect)(t)} must only implement Interface types, it cannot implement ${(0,h.inspect)(n)}.`,tu(t,n));continue}if(t===n){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tu(t,n));continue}if(r[n.name]){e.reportError(`Type ${t.name} can only implement ${n.name} once.`,tu(t,n));continue}r[n.name]=!0,function(e,t,r){let n=t.getInterfaces();for(let i of r.getInterfaces())n.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${r.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${r.name}.`,[...tu(r,i),...tu(t,r)])}(e,t,n),function(e,t,r){let n=t.getFields();for(let l of Object.values(r.getFields())){var i,o,a,s;let c=l.name,u=n[c];if(!u){e.reportError(`Interface field ${r.name}.${c} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let n of(e_(e.schema,u.type,l.type)||e.reportError(`Interface field ${r.name}.${c} expects type ${(0,h.inspect)(l.type)} but ${t.name}.${c} is type ${(0,h.inspect)(u.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=u.astNode)?void 0:o.type]),l.args)){let i=n.name,o=u.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${r.name}.${c}(${i}:) expected but ${t.name}.${c} does not provide it.`,[n.astNode,u.astNode]);continue}eO(n.type,o.type)||e.reportError(`Interface field argument ${r.name}.${c}(${i}:) expects type ${(0,h.inspect)(n.type)} but ${t.name}.${c}(${i}:) is type ${(0,h.inspect)(o.type)}.`,[null==(a=n.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let n of u.args){let i=n.name;!l.args.find(e=>e.name===i)&&ey(n)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${i} that is missing from the Interface field ${r.name}.${c}.`,[n.astNode,l.astNode])}}}(e,t,n)}}(e,t)):B(t)?function(e,t){let r=t.getTypes();0===r.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let n=Object.create(null);for(let i of r){if(n[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,tp(t,i.name));continue}n[i.name]=!0,$(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,h.inspect)(i)}.`,tp(t,String(i)))}}(e,t):z(t)?function(e,t){let r=t.getValues();for(let n of(0===r.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),r))tc(e,n)}(e,t):q(t)&&(function(e,t){let r=Object.values(t.getFields());for(let o of(0===r.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),r)){var n,i;tc(e,o),H(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${(0,h.inspect)(o.type)}.`,null==(n=o.astNode)?void 0:n.type),ek(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[td(o.astNode),null==(i=o.astNode)?void 0:i.type]),t.isOneOf&&function(e,t,r){if(K(t.type)){var n;r.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(n=t.astNode)?void 0:n.type)}void 0!==t.defaultValue&&r.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,o,e)}}(e,t),o(t))}}(c);let u=c.getErrors();return e.__validationErrors=u,u}function ta(e){let t=to(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class ts{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let r=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new f.GraphQLError(e,{nodes:r}))}getErrors(){return this._errors}}function tl(e,t){var r;return null==(r=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:r.type}function tc(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function tu(e,t){let{astNode:r,extensionASTNodes:n}=e;return(null!=r?[r,...n]:n).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function tp(e,t){let{astNode:r,extensionASTNodes:n}=e;return(null!=r?[r,...n]:n).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function td(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===ez.name)}var th=e.i(694411);function tf(e,t){switch(t.kind){case N.Kind.LIST_TYPE:{let r=tf(e,t.type);return r&&new J(r)}case N.Kind.NON_NULL_TYPE:{let r=tf(e,t.type);return r&&new Z(r)}case N.Kind.NAMED_TYPE:return e.getType(t.name.value)}}class tg{constructor(e,t,r){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=r?r:ty,t&&(H(t)&&this._inputTypeStack.push(t),Y(t)&&this._parentTypeStack.push(t),Q(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}
101getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case N.Kind.SELECTION_SET:{let e=eo(this.getType());this._parentTypeStack.push(Y(e)?e:void 0);break}case N.Kind.FIELD:{let r,n,i=this.getParentType();i&&(r=this._getFieldDef(t,i,e))&&(n=r.type),this._fieldDefStack.push(r),this._typeStack.push(Q(n)?n:void 0);break}case N.Kind.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case N.Kind.OPERATION_DEFINITION:{let r=t.getRootType(e.operation);this._typeStack.push($(r)?r:void 0);break}case N.Kind.INLINE_FRAGMENT:case N.Kind.FRAGMENT_DEFINITION:{let r=e.typeCondition,n=r?tf(t,r):eo(this.getType());this._typeStack.push(Q(n)?n:void 0);break}case N.Kind.VARIABLE_DEFINITION:{let r=tf(t,e.type);this._inputTypeStack.push(H(r)?r:void 0);break}case N.Kind.ARGUMENT:{var r;let t,n,i=null!=(r=this.getDirective())?r:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(n=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(H(n)?n:void 0);break}case N.Kind.LIST:{let e=en(this.getInputType()),t=G(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(H(t)?t:void 0);break}case N.Kind.OBJECT_FIELD:{let t,r,n=eo(this.getInputType());q(n)&&(r=n.getFields()[e.name.value])&&(t=r.type),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(H(t)?t:void 0);break}case N.Kind.ENUM:{let t,r=eo(this.getInputType());z(r)&&(t=r.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case N.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case N.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case N.Kind.DIRECTIVE:this._directive=null;break;case N.Kind.OPERATION_DEFINITION:case N.Kind.INLINE_FRAGMENT:case N.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case N.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case N.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case N.Kind.LIST:case N.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case N.Kind.ENUM:this._enumValue=null}}}function ty(e,t,r){let n=r.name.value;return n===e6.name&&e.getQueryType()===t?e6:n===e9.name&&e.getQueryType()===t?e9:n===e8.name&&Y(t)?e8:$(t)||V(t)?t.getFields()[n]:void 0}function tm(e,t){return{enter(...r){let n=r[0];e.enter(n);let i=(0,th.getEnterLeaveForKind)(t,n.kind).enter;if(i){let o=i.apply(t,r);return void 0!==o&&(e.leave(n),(0,g.isNode)(o)&&e.enter(o)),o}},leave(...r){let n,i=r[0],o=(0,th.getEnterLeaveForKind)(t,i.kind).leave;return o&&(n=o.apply(t,r)),e.leave(i),n}}}function tv(e){return e.kind===N.Kind.OPERATION_DEFINITION||e.kind===N.Kind.FRAGMENT_DEFINITION}function tb(e){return e.kind===N.Kind.VARIABLE||e.kind===N.Kind.INT||e.kind===N.Kind.FLOAT||e.kind===N.Kind.STRING||e.kind===N.Kind.BOOLEAN||e.kind===N.Kind.NULL||e.kind===N.Kind.ENUM||e.kind===N.Kind.LIST||e.kind===N.Kind.OBJECT}function tx(e){return e.kind===N.Kind.SCHEMA_DEFINITION||tE(e)||e.kind===N.Kind.DIRECTIVE_DEFINITION}function tE(e){return e.kind===N.Kind.SCALAR_TYPE_DEFINITION||e.kind===N.Kind.OBJECT_TYPE_DEFINITION||e.kind===N.Kind.INTERFACE_TYPE_DEFINITION||e.kind===N.Kind.UNION_TYPE_DEFINITION||e.kind===N.Kind.ENUM_TYPE_DEFINITION||e.kind===N.Kind.INPUT_OBJECT_TYPE_DEFINITION}function tS(e){return e.kind===N.Kind.SCHEMA_EXTENSION||tT(e)}function tT(e){return e.kind===N.Kind.SCALAR_TYPE_EXTENSION||e.kind===N.Kind.OBJECT_TYPE_EXTENSION||e.kind===N.Kind.INTERFACE_TYPE_EXTENSION||e.kind===N.Kind.UNION_TYPE_EXTENSION||e.kind===N.Kind.ENUM_TYPE_EXTENSION||e.kind===N.Kind.INPUT_OBJECT_TYPE_EXTENSION}function tw(e){return{Document(t){for(let r of t.definitions)if(!tv(r)){let t=r.kind===N.Kind.SCHEMA_DEFINITION||r.kind===N.Kind.SCHEMA_EXTENSION?"schema":'"'+r.name.value+'"';e.reportError(new f.GraphQLError(`The ${t} definition is not executable.`,{nodes:r}))}return!1}}}function tk(e){return{Field(t){let r=e.getParentType();if(r&&!e.getFieldDef()){var n,i;let o=e.getSchema(),a=t.name.value,s=y("to use an inline fragment on",function(e,t,r){if(!X(t))return[];let n=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[r])for(let e of(n.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[r]&&(n.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...n].sort((t,r)=>{let n=i[r.name]-i[t.name];return 0!==n?n:V(t)&&e.isSubType(t,r)?-1:V(r)&&e.isSubType(r,t)?1:T(t.name,r.name)}
101).map(e=>e.name)}(o,r,a));""===s&&(s=y((n=r,i=a,$(n)||V(n)?O(i,Object.keys(n.getFields())):[]))),e.reportError(new f.GraphQLError(`Cannot query field "${a}" on type "${r.name}".`+s,{nodes:t}))}}}}function tO(e){return{InlineFragment(t){let r=t.typeCondition;if(r){let t=tf(e.getSchema(),r);if(t&&!Y(t)){let t=(0,P.print)(r);e.reportError(new f.GraphQLError(`Fragment cannot condition on non composite type "${t}".`,{nodes:r}))}}},FragmentDefinition(t){let r=tf(e.getSchema(),t.typeCondition);if(r&&!Y(r)){let r=(0,P.print)(t.typeCondition);e.reportError(new f.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function t_(e){return{...tI(e),Argument(t){let r=e.getArgument(),n=e.getFieldDef(),i=e.getParentType();if(!r&&n&&i){let r=t.name.value,o=O(r,n.args.map(e=>e.name));e.reportError(new f.GraphQLError(`Unknown argument "${r}" on field "${i.name}.${n.name}".`+y(o),{nodes:t}))}}}}function tI(e){let t=Object.create(null),r=e.getSchema();for(let e of r?r.getDirectives():eK)t[e.name]=e.args.map(e=>e.name);for(let r of e.getDocument().definitions)if(r.kind===N.Kind.DIRECTIVE_DEFINITION){var n;let e=null!=(n=r.arguments)?n:[];t[r.name.value]=e.map(e=>e.name.value)}return{Directive(r){let n=r.name.value,i=t[n];if(r.arguments&&i)for(let t of r.arguments){let r=t.name.value;if(!i.includes(r)){let o=O(r,i);e.reportError(new f.GraphQLError(`Unknown argument "${r}" on directive "@${n}".`+y(o),{nodes:t}))}}return!1}}}function tA(e){let t=Object.create(null),r=e.getSchema();for(let e of r?r.getDirectives():eK)t[e.name]=e.locations;for(let r of e.getDocument().definitions)r.kind===N.Kind.DIRECTIVE_DEFINITION&&(t[r.name.value]=r.locations.map(e=>e.value));return{Directive(r,n,i,o,a){let s=r.name.value,l=t[s];if(!l)return void e.reportError(new f.GraphQLError(`Unknown directive "@${s}".`,{nodes:r}));let c=function(e){let t=e[e.length-1];switch("kind"in t||(0,eQ.invariant)(!1),t.kind){case N.Kind.OPERATION_DEFINITION:var r=t.operation;switch(r){case g.OperationTypeNode.QUERY:return eA.DirectiveLocation.QUERY;case g.OperationTypeNode.MUTATION:return eA.DirectiveLocation.MUTATION;case g.OperationTypeNode.SUBSCRIPTION:return eA.DirectiveLocation.SUBSCRIPTION}return;case N.Kind.FIELD:return eA.DirectiveLocation.FIELD;case N.Kind.FRAGMENT_SPREAD:return eA.DirectiveLocation.FRAGMENT_SPREAD;case N.Kind.INLINE_FRAGMENT:return eA.DirectiveLocation.INLINE_FRAGMENT;case N.Kind.FRAGMENT_DEFINITION:return eA.DirectiveLocation.FRAGMENT_DEFINITION;case N.Kind.VARIABLE_DEFINITION:return eA.DirectiveLocation.VARIABLE_DEFINITION;case N.Kind.SCHEMA_DEFINITION:case N.Kind.SCHEMA_EXTENSION:return eA.DirectiveLocation.SCHEMA;case N.Kind.SCALAR_TYPE_DEFINITION:case N.Kind.SCALAR_TYPE_EXTENSION:return eA.DirectiveLocation.SCALAR;case N.Kind.OBJECT_TYPE_DEFINITION:case N.Kind.OBJECT_TYPE_EXTENSION:return eA.DirectiveLocation.OBJECT;case N.Kind.FIELD_DEFINITION:return eA.DirectiveLocation.FIELD_DEFINITION;case N.Kind.INTERFACE_TYPE_DEFINITION:case N.Kind.INTERFACE_TYPE_EXTENSION:return eA.DirectiveLocation.INTERFACE;case N.Kind.UNION_TYPE_DEFINITION:case N.Kind.UNION_TYPE_EXTENSION:return eA.DirectiveLocation.UNION;case N.Kind.ENUM_TYPE_DEFINITION:case N.Kind.ENUM_TYPE_EXTENSION:return eA.DirectiveLocation.ENUM;case N.Kind.ENUM_VALUE_DEFINITION:return eA.DirectiveLocation.ENUM_VALUE;case N.Kind.INPUT_OBJECT_TYPE_DEFINITION:case N.Kind.INPUT_OBJECT_TYPE_EXTENSION:return eA.DirectiveLocation.INPUT_OBJECT;case N.Kind.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||(0,eQ.invariant)(!1),t.kind===N.Kind.INPUT_OBJECT_TYPE_DEFINITION?eA.DirectiveLocation.INPUT_FIELD_DEFINITION:eA.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,eQ.invariant)(!1,"Unexpected kind: "+(0,h.inspect)(t.kind))}}(a);c&&!l.includes(c)&&e.reportError(new f.GraphQLError(`Directive "@${s}" may not be used on ${c}.`,{nodes:r}))}}}function tN(e){return{FragmentSpread(t){let r=t.name.value;e.getFragment(r)||e.reportError(new f.GraphQLError(`Unknown fragment "${r}".`,{nodes:t.name}))}}}function tP(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);for(let t of e.getDocument().definitions)tE(t)&&(n[t.name.value]=!0);let i=[...Object.keys(r),...Object.keys(n)];return{NamedType(t,o,a,s,l){let c=t.name.value;if(!r[c]&&!n[c]){var u,p;let r=null!=(u=l[2])?u:a,n=null!=r&&"kind"in(p=r)&&(tx(p)||tS(p));if(n&&tR.includes(c))return;let o=O(c,n?tR.concat(i):i);e.reportError(new f.GraphQLError(`Unknown type "${c}".`+y(o),{nodes:t}))}}}}let tR=[...eL,...e7].map(e=>e.name);function tD(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===N.Kind.OPERATION_DEFINITION).length},OperationDefinition(r){!r.name&&t>1&&e.reportError(new f.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:r}))}}}function tC(e){var t,r,n;let i=e.getSchema(),o=null!=(t=null!=(r=null!=(n=null==i?void 0:i.astNode)?n:null==i?void 0:i.getQueryType())?r:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){o?e.reportError(new f.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:t})):(a>
1010&&e.reportError(new f.GraphQLError("Must provide only one schema definition.",{nodes:t})),++a)}}}function tL(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(r,n=Object.create(null),i=0){if(r.kind===N.Kind.FRAGMENT_SPREAD){let o=r.name.value;if(!0===n[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return n[o]=!0,t(a,n,i)}finally{n[o]=void 0}}if(r.kind===N.Kind.FIELD&&("fields"===r.name.value||"interfaces"===r.name.value||"possibleTypes"===r.name.value||"inputFields"===r.name.value)&&++i>=3)return!0;if("selectionSet"in r&&r.selectionSet){for(let e of r.selectionSet.selections)if(t(e,n,i))return!0}return!1}(t))return e.reportError(new f.GraphQLError("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function tF(e){let t=Object.create(null),r=[],n=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(n[a]=r.length,s)){let o=t.name.value,a=n[o];if(r.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=r.slice(a),n=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new f.GraphQLError(`Cannot spread fragment "${o}" within itself`+(""!==n?` via ${n}.`:"."),{nodes:t}))}r.pop()}n[a]=void 0}})(i),!1)}}function tM(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){for(let{node:n}of e.getRecursiveVariableUsages(r)){let i=n.name.value;!0!==t[i]&&e.reportError(new f.GraphQLError(r.name?`Variable "$${i}" is not defined by operation "${r.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[n,r]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function t$(e){let t=[],r=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(r.push(e),!1),Document:{leave(){let n=Object.create(null);for(let r of t)for(let t of e.getRecursivelyReferencedFragments(r))n[t.name.value]=!0;for(let t of r){let r=t.name.value;!0!==n[r]&&e.reportError(new f.GraphQLError(`Fragment "${r}" is never used.`,{nodes:t}))}}}}}function tj(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(r){let n=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(r))n[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==n[t]&&e.reportError(new f.GraphQLError(r.name?`Variable "$${t}" is never used in operation "${r.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function tV(e){switch(e.kind){case N.Kind.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:tV(e.value)})).sort((e,t)=>T(e.name.value,t.name.value))};case N.Kind.LIST:return{...e,values:e.values.map(tV)};case N.Kind.INT:case N.Kind.FLOAT:case N.Kind.STRING:case N.Kind.BOOLEAN:case N.Kind.NULL:case N.Kind.ENUM:case N.Kind.VARIABLE:return e}}function tU(e){let t=new tW,r=new tY,n=new Map;return{SelectionSet(i){for(let[[o,a],s,l]of function(e,t,r,n,i,o){let a=[],[s,l]=tH(e,t,i,o);if(function(e,t,r,n,i,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o<s.length;o++)for(let l=o+1;l<s.length;l++){let c=tG(e,r,n,i,!1,a,s[o],s[l]);c&&t.push(c)}}(e,a,t,r,n,s),0!==l.length)for(let i=0;i<l.length;i++){tB(e,a,t,r,n,!1,s,l[i]);for(let o=i+1;o<l.length;o++)tz(e,a,t,r,n,!1,l[i],l[o])}return a}(e,n,t,r,e.getParentType(),i)){let t=function e(t){return Array.isArray(t)?t.map(([t,r])=>`subfields "${t}" conflict because `+e(r)).join(" and "):t}(a);e.reportError(new f.GraphQLError(`Fields "${o}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}function tB(e,t,r,n,i,o,a,s){if(n.has(a,s,o))return;n.add(a,s,o);let l=e.getFragment(s);if(!l)return;let[c,u]=tQ(e,r,l);if(a!==c)for(let s of(tq(e,t,r,n,i,o,a,c),u))tB(e,t,r,n,i,o,a,s)}function tz(e,t,r,n,i,o,a,s){if(a===s||i.has(a,s,o))return;i.add(a,s,o);let l=e.getFragment(a),c=e.getFragment(s);if(!l||!c)return;let[u,p]=tQ(e,r,l),[d,h]=tQ(e,r,c);for(let s of(tq(e,t,r,n,i,o,u,d),h))tz(e,t,r,n,i,o,a,s);for(let a of p)tz(e,t,r,n,i,o,a,s)}function tq(e,t,r,n,i,o,a,s){for(let[l,c]of Object.entries(a)){let a=s[l];if(a)for(let s of c)for(let c of a){let a=tG(e,r,n,i,o,l,s,c);a&&t.push(a)}}}function tG(e,t,r,n,i,o,a,s){let[l,c,u]=a,[p,d,f]=s,g=i||l!==p&&$(l)&&$(p);if(!g){let e=c.name.value,t=d.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[c],[d]];if(!function(e,t){let r=e.arguments,n=t.arguments;if(void 0===r||0===r.length)return void 0===n||0===n.length;if(void 0===n||0===n.length||r.length!==n.length)return!1;let i=new Map(n.map(({name:e,value:t})=>[e.value,t]));return r.every(e=>{let t=e.value,r=i.get(e.name.value);return void 0!==r&&tK(t)===tK(r)})}(c,d))return[[o,"they have differing arguments"],[c],[d]]}let y=null==u?void 0:u.type,m=null==f?void 0:f.type;if(y&&m&&function e(t,r){return G(t)?!G(r)||e(t.ofType,r.ofType):!!G(r)||(K(t)?!K(r)||e(t.ofType,r.ofType):!!K(r)||!!(W(t)||W(r))&&t!==r)}(y,m))return[[o,`they return conflicting types "${(0,h.inspect)(y)}" and "${(0,h.inspect)(m)}"`],[c],[d]];let v=c.selectionSet,b=d.selectionSet;if(v&&b){var x=function(e,t,r,n,i,o,a,s,l){let c=[],[u,p]=tH(e,t,o,a),[d,h]=tH(e,t,s,l);for(let o of(tq(e,c,t,r,n,i,u,d),h))tB(e,c,t,r,n,i,u,o);for(let o of p)tB(e,c,t,r,n,i,d,o);for(let o of p)for(let a of h)tz(e,c,t,r,n,i,o,a);return c}(e,t,r,n,g,eo(y),v,eo(m),b),E=o,S=c,T=d;return x.length>0?[[E,x.map(([e])=>e)],[S,...x.map(([,e])=>e).flat()],[T,...x.map(([,,e])=>e).flat()]]:void 0}}function tK(e){return(0,P.print)(tV(e))}function tH(e,t,r,n){let i=t.get(n);if(i)return i;let o=Object.create(null),a=Object.create(null);!function e(t,r,n,i,o){for(let a of n.selections)switch(a.kind){case N.Kind.FIELD:{let e,t=a.name.value;($(r)||V(r))&&(e=r.getFields()[t]);let n=a.alias?a.alias.value:t;i[n]||(i[n]=[]),i[n].push([r,a,e]);break}case N.Kind.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case N.Kind.INLINE_FRAGMENT:{let n=a.typeCondition,s=n?tf(t.getSchema(),n):r;e(t,s,a.selectionSet,i,o)}}}(e,r,n,o,a);let s=[o,Object.keys(a)];return t.set(n,s),s}function tQ(e,t,r){let n=t.get(r.selectionSet);if(n)return n;let i=tf(e.getSchema(),r.typeCondition);return tH(e,t,i,r.selectionSet)}class tW{constructor(){this._data=new Map}has(e,t,r){var n;let i=null==(n=this._data.get(e))?void 0:n.get(t);return void 0!==i&&(!!r||r===i)}add(e,t,r){let n=this._data.get(e);void 0===n?this._data.set(e,new Map([[t,r]])):n.set(t,r)}}class tY{constructor(){this._orderedPairSet=new tW}has(e,t,r){return e<t?this._orderedPairSet.has(e,t,r):this._orderedPairSet.has(t,e,r)}add(e,t,r){e<t?this._orderedPairSet.add(e,t,r):this._orderedPairSet.add(t,e,r)}}function tX(e){return{InlineFragment(t){let r=e.getType(),n=e.getParentType();
101if(Y(r)&&Y(n)&&!eI(e.getSchema(),r,n)){let i=(0,h.inspect)(n),o=(0,h.inspect)(r);e.reportError(new f.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let r=t.name.value,n=function(e,t){let r=e.getFragment(t);if(r){let t=tf(e.getSchema(),r.typeCondition);if(Y(t))return t}}(e,r),i=e.getParentType();if(n&&i&&!eI(e.getSchema(),n,i)){let o=(0,h.inspect)(i),a=(0,h.inspect)(n);e.reportError(new f.GraphQLError(`Fragment "${r}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function tJ(e){let t=e.getSchema(),r=Object.create(null);for(let t of e.getDocument().definitions)tE(t)&&(r[t.name.value]=t);return{ScalarTypeExtension:n,ObjectTypeExtension:n,InterfaceTypeExtension:n,UnionTypeExtension:n,EnumTypeExtension:n,InputObjectTypeExtension:n};function n(n){var i;let o,a=n.name.value,s=r[a],l=null==t?void 0:t.getType(a);if(s?o=tZ[s.kind]:l&&(o=M(i=l)?N.Kind.SCALAR_TYPE_EXTENSION:$(i)?N.Kind.OBJECT_TYPE_EXTENSION:V(i)?N.Kind.INTERFACE_TYPE_EXTENSION:B(i)?N.Kind.UNION_TYPE_EXTENSION:z(i)?N.Kind.ENUM_TYPE_EXTENSION:q(i)?N.Kind.INPUT_OBJECT_TYPE_EXTENSION:void(0,eQ.invariant)(!1,"Unexpected type: "+(0,h.inspect)(i))),o){if(o!==n.kind){let t=function(e){switch(e){case N.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case N.Kind.OBJECT_TYPE_EXTENSION:return"object";case N.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case N.Kind.UNION_TYPE_EXTENSION:return"union";case N.Kind.ENUM_TYPE_EXTENSION:return"enum";case N.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,eQ.invariant)(!1,"Unexpected kind: "+(0,h.inspect)(e))}}(n.kind);e.reportError(new f.GraphQLError(`Cannot extend non-${t} type "${a}".`,{nodes:s?[s,n]:n}))}}else{let i=O(a,Object.keys({...r,...null==t?void 0:t.getTypeMap()}));e.reportError(new f.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+y(i),{nodes:n.name}))}}}let tZ={[N.Kind.SCALAR_TYPE_DEFINITION]:N.Kind.SCALAR_TYPE_EXTENSION,[N.Kind.OBJECT_TYPE_DEFINITION]:N.Kind.OBJECT_TYPE_EXTENSION,[N.Kind.INTERFACE_TYPE_DEFINITION]:N.Kind.INTERFACE_TYPE_EXTENSION,[N.Kind.UNION_TYPE_DEFINITION]:N.Kind.UNION_TYPE_EXTENSION,[N.Kind.ENUM_TYPE_DEFINITION]:N.Kind.ENUM_TYPE_EXTENSION,[N.Kind.INPUT_OBJECT_TYPE_DEFINITION]:N.Kind.INPUT_OBJECT_TYPE_EXTENSION};function t0(e){return{...t1(e),Field:{leave(t){var r;let n=e.getFieldDef();if(!n)return!1;let i=new Set(null==(r=t.arguments)?void 0:r.map(e=>e.name.value));for(let r of n.args)if(!i.has(r.name)&&ey(r)){let i=(0,h.inspect)(r.type);e.reportError(new f.GraphQLError(`Field "${n.name}" argument "${r.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function t1(e){var t,r;let n=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:eK)n[e.name]=x(e.args.filter(ey),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===N.Kind.DIRECTIVE_DEFINITION){let e=null!=(r=t.arguments)?r:[];n[t.name.value]=x(e.filter(t2),e=>e.name.value)}return{Directive:{leave(t){let r=t.name.value,i=n[r];if(i){var o;let n=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!n.has(o)){let n=F(a.type)?(0,h.inspect)(a.type):(0,P.print)(a.type);e.reportError(new f.GraphQLError(`Directive "@${r}" argument "${o}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}}function t2(e){return e.type.kind===N.Kind.NON_NULL_TYPE&&null==e.defaultValue}function t5(e){return{Field(t){let r=e.getType(),n=t.selectionSet;if(r)if(W(eo(r))){if(n){let i=t.name.value,o=(0,h.inspect)(r);e.reportError(new f.GraphQLError(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:n}))}}else if(n){if(0===n.selections.length){let n=t.name.value,i=(0,h.inspect)(r);e.reportError(new f.GraphQLError(`Field "${n}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let n=t.name.value,i=(0,h.inspect)(r);e.reportError(new f.GraphQLError(`Field "${n}" of type "${i}" must have a selection of subfields. Did you mean "${n} { ... }"?`,{nodes:t}))}}}}function t4(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function t3(e,t,r){return{prev:e,key:t,typename:r}}function t6(e){let t=[],r=e;for(;r;)t.push(r.key),r=r.prev;return t.reverse()}function t9(e,t,r=t8){return function e(t,r,n,i){if(K(r))return null!=t?e(t,r.ofType,n,i):void n(t6(i),t,new f.GraphQLError(`Expected non-nullable type "${(0,h.inspect)(r)}" not to be null.`));if(null==t)return null;if(G(r)){let o=r.ofType;return eW(t)?Array.from(t,(t,r)=>e(t,o,n,t3(i,r,void 0))):[e(t,o,n,i)]}if(q(r)){if(!(0,b.isObjectLike)(t)||Array.isArray(t))return void n(t6(i),t,new f.GraphQLError(`Expected type "${r.name}" to be an object.`));let o={},a=r.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(K(s.type)){let e=(0,h.inspect)(s.type);n(t6(i),t,new f.GraphQLError(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,n,t3(i,s.name,r.name))}for(let e of Object.keys(t))if(!a[e]){let o=O(e,Object.keys(r.getFields()));n(t6(i),t,new f.GraphQLError(`Field "${e}" is not defined by type "${r.name}".`+y(o)))}if(r.isOneOf){let e=Object.keys(o);1!==e.length&&n(t6(i),t,new f.GraphQLError(`Exactly one key must be specified for OneOf type "${r.name}".`));let a=e[0],s=o[a];null===s&&n(t6(i).concat(a),s,new f.GraphQLError(`Field "${a}" must be non-null.`))}return o}if(W(r)){let e;try{e=r.parseValue(t)}catch(e){e instanceof f.GraphQLError?n(t6(i),t,e):n(t6(i),t,new f.GraphQLError(`Expected type "${r.name}". `+e.message,{originalError:e}));return}return void 0===e&&n(t6(i),t,new f.GraphQLError(`Expected type "${r.name}".`)),e}(0,eQ.invariant)(!1,"Unexpected input type: "+(0,h.inspect)(r))}(e,t,r,void 0)}function t8(e,t,r){let n="Invalid value "+(0,h.inspect)(t);throw e.length>0&&(n+=` at "value${t4(e)}"`),r.message=n+": "+r.message,r}function t7(e,t,r){if(e){if(e.kind===N.Kind.VARIABLE){let n=e.name.value;if(null==r||void 0===r[n])return;let i=r[n];if(null===i&&K(t))return;return i}if(K(t)){if(e.kind===N.Kind.NULL)return;return t7(e,t.ofType,r)}if(e.kind===N.Kind.NULL)return null;if(G(t)){let n=t.ofType;if(e.kind===N.Kind.LIST){let t=[];
101for(let i of e.values)if(re(i,r)){if(K(n))return;t.push(null)}else{let e=t7(i,n,r);if(void 0===e)return;t.push(e)}return t}let i=t7(e,n,r);if(void 0===i)return;return[i]}if(q(t)){if(e.kind!==N.Kind.OBJECT)return;let n=Object.create(null),i=x(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||re(t.value,r)){if(void 0!==e.defaultValue)n[e.name]=e.defaultValue;else if(K(e.type))return;continue}let o=t7(t.value,e.type,r);if(void 0===o)return;n[e.name]=o}if(t.isOneOf){let e=Object.keys(n);if(1!==e.length||null===n[e[0]])return}return n}if(W(t)){let n;try{n=t.parseLiteral(e,r)}catch(e){return}if(void 0===n)return;return n}(0,eQ.invariant)(!1,"Unexpected input type: "+(0,h.inspect)(t))}}function re(e,t){return e.kind===N.Kind.VARIABLE&&(null==t||void 0===t[e.name.value])}function rt(e,t,r,n){let i=[],o=null==n?void 0:n.maxErrors;try{let n=function(e,t,r,n){let i={};for(let o of t){let t=o.variable.name.value,a=tf(e,o.type);if(!H(a)){let e=(0,P.print)(o.type);n(new f.GraphQLError(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!ri(r,t)){if(o.defaultValue)i[t]=t7(o.defaultValue,a);else if(K(a)){let e=(0,h.inspect)(a);n(new f.GraphQLError(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=r[t];if(null===s&&K(a)){let e=(0,h.inspect)(a);n(new f.GraphQLError(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=t9(s,a,(e,r,i)=>{let a=`Variable "$${t}" got invalid value `+(0,h.inspect)(r);e.length>0&&(a+=` at "${t}${t4(e)}"`),n(new f.GraphQLError(a+"; "+i.message,{nodes:o,originalError:i}))})}return i}(e,t,r,e=>{if(null!=o&&i.length>=o)throw new f.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:n}}catch(e){i.push(e)}return{errors:i}}function rr(e,t,r){var n;let i={},o=x(null!=(n=t.arguments)?n:[],e=>e.name.value);for(let n of e.args){let e=n.name,a=n.type,s=o[e];if(!s){if(void 0!==n.defaultValue)i[e]=n.defaultValue;else if(K(a))throw new f.GraphQLError(`Argument "${e}" of required type "${(0,h.inspect)(a)}" was not provided.`,{nodes:t});continue}let l=s.value,c=l.kind===N.Kind.NULL;if(l.kind===N.Kind.VARIABLE){let t=l.name.value;if(null==r||!ri(r,t)){if(void 0!==n.defaultValue)i[e]=n.defaultValue;else if(K(a))throw new f.GraphQLError(`Argument "${e}" of required type "${(0,h.inspect)(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}c=null==r[t]}if(c&&K(a))throw new f.GraphQLError(`Argument "${e}" of non-null type "${(0,h.inspect)(a)}" must not be null.`,{nodes:l});let u=t7(l,a,r);if(void 0===u)throw new f.GraphQLError(`Argument "${e}" has invalid value ${(0,P.print)(l)}.`,{nodes:l});i[e]=u}return i}function rn(e,t,r){var n;let i=null==(n=t.directives)?void 0:n.find(t=>t.name.value===e.name);if(i)return rr(e,i,r)}function ri(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ro(e,t,r,n,i){let o=new Map;return ra(e,t,r,n,i,o,new Set),o}function ra(e,t,r,n,i,o,a){for(let l of i.selections)switch(l.kind){case N.Kind.FIELD:{var s;if(!rs(r,l))continue;let e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case N.Kind.INLINE_FRAGMENT:if(!rs(r,l)||!rl(e,l,n))continue;ra(e,t,r,n,l.selectionSet,o,a);break;case N.Kind.FRAGMENT_SPREAD:{let i=l.name.value;if(a.has(i)||!rs(r,l))continue;a.add(i);let s=t[i];if(!s||!rl(e,s,n))continue;ra(e,t,r,n,s.selectionSet,o,a)}}}function rs(e,t){let r=rn(eU,t,e);if((null==r?void 0:r.if)===!0)return!1;let n=rn(eV,t,e);return(null==n?void 0:n.if)!==!1}function rl(e,t,r){let n=t.typeCondition;if(!n)return!0;let i=tf(e,n);return i===r||!!X(i)&&e.isSubType(i,r)}function rc(e){return{OperationDefinition(t){if("subscription"===t.operation){let r=e.getSchema(),n=r.getSubscriptionType();if(n){let i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let e of a.definitions)e.kind===N.Kind.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let l=ro(r,s,o,n,t.selectionSet);if(l.size>1){let t=[...l.values()].slice(1).flat();e.reportError(new f.GraphQLError(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new f.GraphQLError(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function ru(e,t){let r=new Map;for(let n of e){let e=t(n),i=r.get(e);void 0===i?r.set(e,[n]):i.push(n)}return r}function rp(e){return{DirectiveDefinition(e){var t;let n=null!=(t=e.arguments)?t:[];return r(`@${e.name.value}`,n)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,n;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;r(`${i}.${e}`,null!=(n=o.arguments)?n:[])}return!1}function r(t,r){for(let[n,i]of ru(r,e=>e.name.value))i.length>1&&e.reportError(new f.GraphQLError(`Argument "${t}(${n}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}
101));return!1}}function rd(e){return{Field:t,Directive:t};function t(t){var r;for(let[n,i]of ru(null!=(r=t.arguments)?r:[],e=>e.name.value))i.length>1&&e.reportError(new f.GraphQLError(`There can be only one argument named "${n}".`,{nodes:i.map(e=>e.name)}))}}function rh(e){let t=Object.create(null),r=e.getSchema();return{DirectiveDefinition(n){let i=n.name.value;return null!=r&&r.getDirective(i)?void e.reportError(new f.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:n.name})):(t[i]?e.reportError(new f.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1)}}}function rf(e){let t=Object.create(null),r=e.getSchema();for(let e of r?r.getDirectives():eK)t[e.name]=!e.isRepeatable;for(let r of e.getDocument().definitions)r.kind===N.Kind.DIRECTIVE_DEFINITION&&(t[r.name.value]=!r.repeatable);let n=Object.create(null),i=Object.create(null);return{enter(r){let o;if("directives"in r&&r.directives){if(r.kind===N.Kind.SCHEMA_DEFINITION||r.kind===N.Kind.SCHEMA_EXTENSION)o=n;else if(tE(r)||tT(r)){let e=r.name.value;void 0===(o=i[e])&&(i[e]=o=Object.create(null))}else o=Object.create(null);for(let n of r.directives){let r=n.name.value;t[r]&&(o[r]?e.reportError(new f.GraphQLError(`The directive "@${r}" can only be used once at this location.`,{nodes:[o[r],n]})):o[r]=n)}}}}}function rg(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;n[o]||(n[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=n[o];for(let t of a){let n=t.name.value,i=r[o];z(i)&&i.getValue(n)?e.reportError(new f.GraphQLError(`Enum value "${o}.${n}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[n]?e.reportError(new f.GraphQLError(`Enum value "${o}.${n}" can only be defined once.`,{nodes:[s[n],t.name]})):s[n]=t.name}return!1}}function ry(e){let t=e.getSchema(),r=t?t.getTypeMap():Object.create(null),n=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o,a;let s=t.name.value;n[s]||(n[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],c=n[s];for(let t of l){let n=t.name.value;(o=r[s],a=n,($(o)||V(o)||q(o))&&null!=o.getFields()[a])?e.reportError(new f.GraphQLError(`Field "${s}.${n}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):c[n]?e.reportError(new f.GraphQLError(`Field "${s}.${n}" can only be defined once.`,{nodes:[c[n],t.name]})):c[n]=t.name}return!1}}function rm(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(r){let n=r.name.value;return t[n]?e.reportError(new f.GraphQLError(`There can be only one fragment named "${n}".`,{nodes:[t[n],r.name]})):t[n]=r.name,!1}}}function rv(e){let t=[],r=Object.create(null);return{ObjectValue:{enter(){t.push(r),r=Object.create(null)},leave(){let e=t.pop();e||(0,eQ.invariant)(!1),r=e}},ObjectField(t){let n=t.name.value;r[n]?e.reportError(new f.GraphQLError(`There can be only one input field named "${n}".`,{nodes:[r[n],t.name]})):r[n]=t.name}}}function rb(e){let t=Object.create(null);return{OperationDefinition(r){let n=r.name;return n&&(t[n.value]?e.reportError(new f.GraphQLError(`There can be only one operation named "${n.value}".`,{nodes:[t[n.value],n]})):t[n.value]=n),!1},FragmentDefinition:()=>!1}}function rx(e){let t=e.getSchema(),r=Object.create(null),n=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=r[t];n[t]?e.reportError(new f.GraphQLError(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new f.GraphQLError(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):r[t]=o}return!1}}function rE(e){let t=Object.create(null),r=e.getSchema();return{ScalarTypeDefinition:n,ObjectTypeDefinition:n,InterfaceTypeDefinition:n,UnionTypeDefinition:n,EnumTypeDefinition:n,InputObjectTypeDefinition:n};function n(n){let i=n.name.value;return null!=r&&r.getType(i)?void e.reportError(new f.GraphQLError(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:n.name})):(t[i]?e.reportError(new f.GraphQLError(`There can be only one type named "${i}".`,{nodes:[t[i],n.name]})):t[i]=n.name,!1)}}function rS(e){return{OperationDefinition(t){var r;for(let[n,i]of ru(null!=(r=t.variableDefinitions)?r:[],e=>e.variable.name.value))i.length>1&&e.reportError(new f.GraphQLError(`There can be only one variable named "$${n}".`,{nodes:i.map(e=>e.variable.name)}))}}}function rT(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!G(en(e.getParentInputType())))return rw(e,t),!1},ObjectValue(t){let r=eo(e.getInputType());if(!q(r))return rw(e,t),!1;let n=x(t.fields,e=>e.name.value);for(let i of Object.values(r.getFields()))if(!n[i.name]&&ek(i)){let n=(0,h.inspect)(i.type);e.reportError(new f.GraphQLError(`Field "${r.name}.${i.name}" of required type "${n}" was not provided.`,{nodes:t}))}r.isOneOf&&function(e,t,r,n){var i;let o=Object.keys(n);if(1!==o.length)return e.reportError(new f.GraphQLError(`OneOf Input Object "${r.name}" must specify exactly one key.`,{nodes:[t]}));let a=null==(i=n[o[0]])?void 0:i.value;a&&a.kind!==N.Kind.NULL||e.reportError(new f.GraphQLError(`Field "${r.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,r,n)},ObjectField(t){let r=eo(e.getParentInputType());if(!e.getInputType()&&q(r)){let n=O(t.name.value,Object.keys(r.getFields()));e.reportError(new f.GraphQLError(`Field "${t.name.value}" is not defined by type "${r.name}".`+y(n),{nodes:t}))}}
101,NullValue(t){let r=e.getInputType();K(r)&&e.reportError(new f.GraphQLError(`Expected value of type "${(0,h.inspect)(r)}", found ${(0,P.print)(t)}.`,{nodes:t}))},EnumValue:t=>rw(e,t),IntValue:t=>rw(e,t),FloatValue:t=>rw(e,t),StringValue:t=>rw(e,t),BooleanValue:t=>rw(e,t)}}function rw(e,t){let r=e.getInputType();if(!r)return;let n=eo(r);if(!W(n)){let n=(0,h.inspect)(r);e.reportError(new f.GraphQLError(`Expected value of type "${n}", found ${(0,P.print)(t)}.`,{nodes:t}));return}try{let i=n.parseLiteral(t,void 0);if(void 0===i){let n=(0,h.inspect)(r);e.reportError(new f.GraphQLError(`Expected value of type "${n}", found ${(0,P.print)(t)}.`,{nodes:t}))}}catch(i){let n=(0,h.inspect)(r);i instanceof f.GraphQLError?e.reportError(i):e.reportError(new f.GraphQLError(`Expected value of type "${n}", found ${(0,P.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function rk(e){return{VariableDefinition(t){let r=tf(e.getSchema(),t.type);if(void 0!==r&&!H(r)){let r=t.variable.name.value,n=(0,P.print)(t.type);e.reportError(new f.GraphQLError(`Variable "$${r}" cannot be non-input type "${n}".`,{nodes:t.type}))}}}}function rO(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(r){for(let{node:l,type:c,defaultValue:u,parentType:p}of e.getRecursiveVariableUsages(r)){let r=l.name.value,d=t[r];if(d&&c){var n,i,o,a,s;let t=e.getSchema(),g=tf(t,d.type);if(g&&(n=t,i=g,o=d.defaultValue,a=c,s=u,K(a)&&!K(i)?!((null!=o&&o.kind!==N.Kind.NULL||void 0!==s)&&e_(n,i,a.ofType)):!e_(n,i,a))){let t=(0,h.inspect)(g),n=(0,h.inspect)(c);e.reportError(new f.GraphQLError(`Variable "$${r}" of type "${t}" used in position expecting type "${n}".`,{nodes:[d,l]}))}q(p)&&p.isOneOf&&et(g)&&e.reportError(new f.GraphQLError(`Variable "$${r}" is of type "${g}" but must be non-nullable to be used for OneOf Input Object "${p}".`,{nodes:[d,l]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let r_=Object.freeze([tL]),rI=Object.freeze([tw,rb,tD,rc,tP,tO,rk,t5,tk,rm,tN,t$,tX,tF,rS,tM,tj,tA,rf,t_,rd,rT,t0,rO,tU,rv,...r_]),rA=Object.freeze([tC,rx,rE,rg,ry,rp,rh,tP,tA,rf,tJ,tI,rd,rv,t1]);class rN{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===N.Kind.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let r;t=[];let n=[e];for(;r=n.pop();)for(let e of r.selections)e.kind===N.Kind.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let r;t=[];let n=Object.create(null),i=[e.selectionSet];for(;r=i.pop();)for(let e of this.getFragmentSpreads(r)){let r=e.name.value;if(!0!==n[r]){n[r]=!0;let e=this.getFragment(r);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class rP extends rN{constructor(e,t,r){super(e,r),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class rR extends rN{constructor(e,t,r,n){super(t,n),this._schema=e,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let r=[],n=new tg(this._schema);(0,th.visit)(e,tm(n,{VariableDefinition:()=>!1,Variable(e){r.push({node:e,type:n.getInputType(),defaultValue:n.getDefaultValue(),parentType:n.getParentInputType()})}})),t=r,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let r of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function rD(e,t,r=rI,n,i=new tg(e)){var o;let a=null!=(o=null==n?void 0:n.maxErrors)?o:100;t||(0,u.devAssert)(!1,"Must provide document."),ta(e);let s=Object.freeze({}),l=[],c=new rR(e,t,i,e=>{if(l.length>=a)throw l.push(new f.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),p=(0,th.visitInParallel)(r.map(e=>
101e(c)));try{(0,th.visit)(t,tm(i,p))}catch(e){if(e!==s)throw e}return l}function rC(e,t,r=rA){let n=[],i=new rP(e,t,e=>{n.push(e)}),o=r.map(e=>e(i));return(0,th.visit)(e,(0,th.visitInParallel)(o)),n}function rL(e){return Promise.all(Object.values(e)).then(t=>{let r=Object.create(null);for(let[n,i]of Object.keys(e).entries())r[i]=t[n];return r})}class rF extends Error{constructor(e){super("Unexpected error value: "+(0,h.inspect)(e)),this.name="NonErrorThrown",this.thrownValue=e}}function rM(e,t,r){var n;let i=e instanceof Error?e:new rF(e);return Array.isArray(i.path)?i:new f.GraphQLError(i.message,{nodes:null!=(n=i.nodes)?n:t,source:i.source,positions:i.positions,path:r,originalError:i})}let r$=(i=(e,t,r)=>(function(e,t,r,n,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&ra(e,t,r,n,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,r),function(e,r,n){void 0===t&&(t=new WeakMap);let o=t.get(e);void 0===o&&(o=new WeakMap,t.set(e,o));let a=o.get(r);void 0===a&&(a=new WeakMap,o.set(r,a));let s=a.get(n);return void 0===s&&(s=i(e,r,n),a.set(n,s)),s});function rj(e){arguments.length<2||(0,u.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:r,variableValues:n,rootValue:i}=e;rB(t,r,n);let o=rz(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,r){let n=e.schema.getRootType(t.operation);if(null==n)throw new f.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=ro(e.schema,e.fragments,e.variableValues,n,t.selectionSet),o;switch(t.operation){case g.OperationTypeNode.QUERY:return rq(e,n,r,o,i);case g.OperationTypeNode.MUTATION:var a,s,l,c,u;return a=e,s=n,l=r,c=o,u=i,function(e,t,r){let n=r;for(let r of e)n=p(n)?n.then(e=>t(e,r)):t(n,r);return n}(u.entries(),(e,[t,r])=>{let n=t3(c,t,s.name),i=rG(a,s,l,r,n);return void 0===i?e:p(i)?i.then(r=>(e[t]=r,e)):(e[t]=i,e)},Object.create(null));case g.OperationTypeNode.SUBSCRIPTION:return rq(e,n,r,o,i)}}(o,e,i);if(p(t))return t.then(e=>rU(e,o.errors),e=>(o.errors.push(e),rU(null,o.errors)));return rU(t,o.errors)}catch(e){return o.errors.push(e),rU(null,o.errors)}}function rV(e){let t=rj(e);if(p(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function rU(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function rB(e,t,r){t||(0,u.devAssert)(!1,"Must provide document."),ta(e),null==r||(0,b.isObjectLike)(r)||(0,u.devAssert)(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function rz(e){var t,r,n;let i,{schema:o,document:a,rootValue:s,contextValue:l,variableValues:c,operationName:u,fieldResolver:p,typeResolver:d,subscribeFieldResolver:h,options:g}=e,y=Object.create(null);for(let e of a.definitions)switch(e.kind){case N.Kind.OPERATION_DEFINITION:if(null==u){if(void 0!==i)return[new f.GraphQLError("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===u&&(i=e);break;case N.Kind.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!i)return null!=u?[new f.GraphQLError(`Unknown operation named "${u}".`)]:[new f.GraphQLError("Must provide an operation.")];let m=rt(o,null!=(r=i.variableDefinitions)?r:[],null!=c?c:{},{maxErrors:null!=(n=null==g?void 0:g.maxCoercionErrors)?n:50});return m.errors?m.errors:{schema:o,fragments:y,rootValue:s,contextValue:l,operation:i,variableValues:m.coerced,fieldResolver:null!=p?p:rZ,typeResolver:null!=d?d:rJ,subscribeFieldResolver:null!=h?h:rZ,errors:[]}}function rq(e,t,r,n,i){let o=Object.create(null),a=!1;try{for(let[s,l]of i.entries()){let i=t3(n,s,t.name),c=rG(e,t,r,l,i);void 0!==c&&(o[s]=c,p(c)&&(a=!0))}}catch(e){if(a)return rL(o).finally(()=>{throw e});throw e}return a?rL(o):o}function rG(e,t,r,n,i){var o;let a=r0(e.schema,t,n[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,c=rK(e,a,n,t,i);try{let t,o=rr(a,n[0],e.variableValues),u=e.contextValue,d=l(r,o,u,c);if(t=p(d)?d.then(t=>rQ(e,s,n,c,i,t)):rQ(e,s,n,c,i,d),p(t))return t.then(void 0,t=>{let r=rM(t,n,t6(i));return rH(r,s,e)});return t}catch(t){return rH(rM(t,n,t6(i)),s,e)}}function rK(e,t,r,n,i){return{fieldName:t.name,fieldNodes:r,returnType:t.type,parentType:n,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function rH(e,t,r){if(K(t))throw e;return r.errors.push(e),null}function rQ(e,t,r,n,i,o){var a,s,l,c,u,d,g;let y;if(o instanceof Error)throw o;if(K(t)){let a=rQ(e,t.ofType,r,n,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${n.parentType.name}.${n.fieldName}.`);return a}return null==o?null:G(t)?function(e,t,r,n,i,o){if(!eW(o))throw new f.GraphQLError(`Expected Iterable, but did not find one for field "${n.parentType.name}.${n.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=t3(i,o,void 0);try{let i;if(i=p(t)?t.then(t=>rQ(e,a,r,n,l,t)):rQ(e,a,r,n,l,t),p(i))return s=!0,i.then(void 0,t=>{let n=rM(t,r,t6(l));return rH(n,a,e)});return i}catch(t){return rH(rM(t,r,t6(l)),a,e)}});return s?Promise.all(l):l}(e,t,r,n,i,o):W(t)?function(e,t){let r=e.serialize(t);if(null==r)throw Error(`Expected \`${(0,h.inspect)(e)}.serialize(${(0,h.inspect)(t)})\` to return non-nullable value, returned: ${(0,h.inspect)(r)}`);return r}(t,o):X(t)?(a=e,s=t,l=r,c=n,u=i,d=o,p(y=(null!=(g=s.resolveType)?g:a.typeResolver)(d,a.contextValue,c,s))?y.then(e=>rY(a,rW(e,a,s,l,c,d),l,c,u,d)):rY(a,rW(y,a,s,l,c,d),l,c,u,d)):$(t)?rY(e,t,r,n,i,o):void(0,eQ.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,h.inspect)(t))}function rW(e,t,r,n,i,o){if(null==e)throw new f.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${r.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,n);if($(e))throw new f.GraphQLError("Support for returning GraphQLObjectType from resolveType was removed in [email protected] please return type name instead.");if("string"!=typeof e)throw new f.GraphQLError(`Abstract type "${r.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,h.inspect)(o)}, received "${(0,h.inspect)(e)}".`);let a=t.schema.getType(e);if(null==a)throw new f.GraphQLError(`Abstract type "${r.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:n});if(!$(a))throw new f.GraphQLError(`Abstract type "${r.name}" was resolved to a non-object type "${e}".`,{nodes:n});if(!t.schema.isSubType(r,a))throw new f.GraphQLError(`Runtime Object type "${a.name}" is not a possible type for "${r.name}".`,{nodes:n});return a}function rY(e,t,r,n,i,o){let a=r$(e,t,r);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,n);if(p(s))return s.then(n=>{if(!n)throw rX(t,o,r);return rq(e,t,o,i,a)});if(!s)throw rX(t,o,r)}return rq(e,t,o,i,a)}function rX(e,t,r){return new f.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,h.inspect)(t)}.`,{nodes:r})}let rJ=function(e,t,r,n){if((0,b.isObjectLike)(e)&&"string"==typeof e.__typename)return e.__typename;let i=r.schema.getPossibleTypes(n),o=[];for(let n=0;n<i.length;n++){let a=i[n];if(a.isTypeOf){let i=a.isTypeOf(e,t,r);if(p(i))o[n]=i;else if(i)return o.length&&Promise.allSettled(o).catch(()=>{}),a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;t<e.length;t++)if(e[t])return i[t].name})},rZ=function(e,t,r,n){if((0,b.isObjectLike)(e)||"function"==typeof e){let i=e[n.fieldName];return"function"==typeof i?e[n.fieldName](t,r,n):i}};function r0(e,t,r){let n=r.name.value;return n===e6.name&&e.getQueryType()===t?e6:n===e9.name&&e.getQueryType()===t?e9:n===e8.name?e8:t.getFields()[n]}function r1(e){let t;arguments.length<2||(0,u.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");
101let{schema:r,source:n,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:c}=e,p=to(r);if(p.length>0)return{errors:p};try{t=(0,d.parse)(n)}catch(e){return{errors:[e]}}let h=rD(r,t);return h.length>0?{errors:h}:rj({schema:r,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:c})}var r2=e.i(540281),r5=e.i(555819),r4=e.i(765346),r3=e.i(125756),r6=e.i(922444);function r9(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function r8(e){arguments.length<2||(0,u.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await r7(e);if(!r9(t))return t;let r=t[Symbol.asyncIterator]();async function n(t){if(t.done)return t;try{let r;return{value:await (r=t.value,rj({...e,rootValue:r})),done:!1}}catch(e){if("function"==typeof r.return)try{await r.return()}catch(e){}throw e}}return{next:async()=>n(await r.next()),return:async()=>"function"==typeof r.return?n(await r.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof r.throw)return n(await r.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function r7(...e){let t,r=(t=e[0])&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]},{schema:n,document:i,variableValues:o}=r;rB(n,i,o);let a=rz(r);if(!("schema"in a))return{errors:a};try{let e=await ne(a);if(!r9(e))throw Error(`Subscription field must return Async Iterable. Received: ${(0,h.inspect)(e)}.`);return e}catch(e){if(e instanceof f.GraphQLError)return{errors:[e]};throw e}}async function ne(e){let{schema:t,fragments:r,operation:n,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new f.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:n});let[s,l]=[...ro(t,r,i,a,n.selectionSet).entries()][0],c=r0(t,a,l[0]);if(!c){let e=l[0].name.value;throw new f.GraphQLError(`The subscription field "${e}" is not defined.`,{nodes:l})}let u=t3(void 0,s,a.name),p=rK(e,c,l,a,u);try{var d;let t=rr(c,l[0],i),r=e.contextValue,n=null!=(d=c.subscribe)?d:e.subscribeFieldResolver,a=await n(o,t,r,p);if(a instanceof Error)throw a;return a}catch(e){throw rM(e,l,t6(u))}}var nt=e.i(806507);function nr(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?r:"";function a(e){return t.inputValueDeprecation?e:""}let s=t.oneOf?"isOneOf":"";return`
102    query IntrospectionQuery {
103      __schema {
104        ${o}
105        queryType { name kind }
106        mutationType { name kind }
107        subscriptionType { name kind }
108        types {
109          ...FullType
110        }
111        directives {
112          name
113          ${r}
114          ${i}
115          locations
116          args${a("(includeDeprecated: true)")} {
117            ...InputValue
118          }
119        }
120      }
121    }
122
123    fragment FullType on __Type {
124      kind
125      name
126      ${r}
127      ${n}
128      ${s}
129      fields(includeDeprecated: true) {
130        name
131        ${r}
132        args${a("(includeDeprecated: true)")} {
133          ...InputValue
134        }
135        type {
136          ...TypeRef
137        }
138        isDeprecated
139        deprecationReason
140      }
141      inputFields${a("(includeDeprecated: true)")} {
142        ...InputValue
143      }
144      interfaces {
145        ...TypeRef
146      }
147      enumValues(includeDeprecated: true) {
148        name
149        ${r}
150        isDeprecated
151        deprecationReason
152      }
153      possibleTypes {
154        ...TypeRef
155      }
156    }
157
158    fragment InputValue on __InputValue {
159      name
160      ${r}
161      type { ...TypeRef }
162      defaultValue
163      ${a("isDeprecated")}
164      ${a("deprecationReason")}
165    }
166
167    fragment TypeRef on __Type {
168      kind
169      name
170      ofType {
171        kind
172        name
173        ofType {
174          kind
175          name
176          ofType {
177            kind
178            name
179            ofType {
180              kind
181              name
182              ofType {
183                kind
184                name
185                ofType {
186                  kind
187                  name
188                  ofType {
189                    kind
190                    name
191                    ofType {
192                      kind
193                      name
194                      ofType {
195                        kind
196                        name
197                      }
198                    }
199                  }
200                }
201              }
202            }
203          }
204        }
205      }
206    }
207  `}function nn(e,t,r){var n,i,o,a,s,l;let c,u=[],p=Object.create(null),d=[],f=[];for(let e of t.definitions)if(e.kind===N.Kind.SCHEMA_DEFINITION)c=e;else if(e.kind===N.Kind.SCHEMA_EXTENSION)f.push(e);else if(tE(e))u.push(e);else if(tT(e)){let t=e.name.value,r=p[t];p[t]=r?r.concat([e]):[e]}else e.kind===N.Kind.DIRECTIVE_DEFINITION&&d.push(e);if(0===Object.keys(p).length&&0===u.length&&0===d.length&&0===f.length&&null==c)return e;let g=Object.create(null);for(let t of e.types){g[t.name]=te(l=t)||eF(l)?l:M(l)?function(e){var t,r;let n=e.toConfig(),i=null!=(t=p[n.name])?t:[],o=n.specifiedByURL;for(let e of i)o=null!=(r=na(e))?r:o;return new el({...n,specifiedByURL:o,extensionASTNodes:n.extensionASTNodes.concat(i)})}(l):$(l)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[r.name])?t:[];return new ec({...r,interfaces:()=>[...e.getInterfaces().map(v),...A(n)],fields:()=>({...S(r.fields,b),...k(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(l):V(l)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[r.name])?t:[];return new em({...r,interfaces:()=>[...e.getInterfaces().map(v),...A(n)],fields:()=>({...S(r.fields,b),...k(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(l):B(l)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[r.name])?t:[];return new ev({...r,types:()=>[...e.getTypes().map(v),...P(n)],extensionASTNodes:r.extensionASTNodes.concat(n)})}(l):z(l)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[e.name])?t:[];return new ex({...r,values:{...r.values,...I(n)},extensionASTNodes:r.extensionASTNodes.concat(n)})}(l):q(l)?function(e){var t;let r=e.toConfig(),n=null!=(t=p[r.name])?t:[];
207return new eT({...r,fields:()=>({...S(r.fields,e=>({...e,type:m(e.type)})),..._(n)}),extensionASTNodes:r.extensionASTNodes.concat(n)})}(l):void(0,eQ.invariant)(!1,"Unexpected type: "+(0,h.inspect)(l))}for(let e of u){let t=e.name.value;g[t]=null!=(s=ni[t])?s:function(e){var t,r,n,i,o,a,s;let l=e.name.value,c=null!=(t=p[l])?t:[];switch(e.kind){case N.Kind.OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new ec({name:l,description:null==(r=e.description)?void 0:r.value,interfaces:()=>A(t),fields:()=>k(t),astNode:e,extensionASTNodes:c})}case N.Kind.INTERFACE_TYPE_DEFINITION:{let t=[e,...c];return new em({name:l,description:null==(n=e.description)?void 0:n.value,interfaces:()=>A(t),fields:()=>k(t),astNode:e,extensionASTNodes:c})}case N.Kind.ENUM_TYPE_DEFINITION:{let t=[e,...c];return new ex({name:l,description:null==(i=e.description)?void 0:i.value,values:I(t),astNode:e,extensionASTNodes:c})}case N.Kind.UNION_TYPE_DEFINITION:{let t=[e,...c];return new ev({name:l,description:null==(o=e.description)?void 0:o.value,types:()=>P(t),astNode:e,extensionASTNodes:c})}case N.Kind.SCALAR_TYPE_DEFINITION:return new el({name:l,description:null==(a=e.description)?void 0:a.value,specifiedByURL:na(e),astNode:e,extensionASTNodes:c});case N.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...c];return new eT({name:l,description:null==(s=e.description)?void 0:s.value,fields:()=>_(t),astNode:e,extensionASTNodes:c,isOneOf:!!rn(eG,e)})}}}(e)}let y={query:e.query&&v(e.query),mutation:e.mutation&&v(e.mutation),subscription:e.subscription&&v(e.subscription),...c&&E([c]),...E(f)};return{description:null==(n=c)||null==(i=n.description)?void 0:i.value,...y,types:Object.values(g),directives:[...e.directives.map(function(e){let t=e.toConfig();return new ej({...t,args:S(t.args,x)})}),...d.map(function(e){var t;return new ej({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:O(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(o=c)?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!=(a=null==r?void 0:r.assumeValid)&&a};function m(e){return G(e)?new J(m(e.ofType)):K(e)?new Z(m(e.ofType)):v(e)}function v(e){return g[e.name]}function b(e){return{...e,type:m(e.type),args:e.args&&S(e.args,x)}}function x(e){return{...e,type:m(e.type)}}function E(e){let t={};for(let n of e){var r;for(let e of null!=(r=n.operationTypes)?r:[])t[e.operation]=T(e.type)}return t}function T(e){var t;let r=e.name.value,n=null!=(t=ni[r])?t:g[r];if(void 0===n)throw Error(`Unknown type: "${r}".`);return n}function w(e){return e.kind===N.Kind.LIST_TYPE?new J(w(e.type)):e.kind===N.Kind.NON_NULL_TYPE?new Z(w(e.type)):T(e)}function k(e){let t=Object.create(null);for(let i of e){var r,n;for(let e of null!=(r=i.fields)?r:[])t[e.name.value]={type:w(e.type),description:null==(n=e.description)?void 0:n.value,args:O(e.arguments),deprecationReason:no(e),astNode:e}}return t}function O(e){let t=Object.create(null);for(let n of null!=e?e:[]){var r;let e=w(n.type);t[n.name.value]={type:e,description:null==(r=n.description)?void 0:r.value,defaultValue:t7(n.defaultValue,e),deprecationReason:no(n),astNode:n}}return t}function _(e){let t=Object.create(null);for(let i of e){var r,n;for(let e of null!=(r=i.fields)?r:[]){let r=w(e.type);t[e.name.value]={type:r,description:null==(n=e.description)?void 0:n.value,defaultValue:t7(e.defaultValue,r),deprecationReason:no(e),astNode:e}}}return t}function I(e){let t=Object.create(null);for(let i of e){var r,n;for(let e of null!=(r=i.values)?r:[])t[e.name.value]={description:null==(n=e.description)?void 0:n.value,deprecationReason:no(e),astNode:e}}return t}function A(e){return e.flatMap(e=>{var t,r;return null!=(t=null==(r=e.interfaces)?void 0:r.map(T))?t:[]})}function P(e){return e.flatMap(e=>{var t,r;return null!=(t=null==(r=e.types)?void 0:r.map(T))?t:[]})}}let ni=x([...eL,...e7],e=>e.name);function no(e){let t=rn(ez,e);return null==t?void 0:t.reason}function na(e){let t=rn(eq,e);return null==t?void 0:t.url}function ns(e,t){null!=e&&e.kind===N.Kind.DOCUMENT||(0,u.devAssert)(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=rC(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let r=nn({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==r.astNode)for(let e of r.types)switch(e.name){case"Query":r.query=e;break;case"Mutation":r.mutation=e;break;case"Subscription":r.subscription=e}let n=[...r.directives,...eK.filter(e=>r.directives.every(t=>t.name!==e.name))];return new tn({...r,directives:n})}function nl(e,t){let r=Object.create(null);for(let n of Object.keys(e).sort(T))r[n]=t(e[n]);return r}function nc(e){return nu(e,e=>e.name)}
207function nu(e,t){return e.slice().sort((e,r)=>T(t(e),t(r)))}var np=e.i(446567);function nd(e){return!eF(e)&&!te(e)}function nh(e,t,r){let n=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(r);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let r=e.getMutationType();if(r&&"Mutation"!==r.name)return!1;let n=e.getSubscriptionType();return!n||"Subscription"===n.name}(e))return;let t=[],r=e.getQueryType();r&&t.push(`  query: ${r.name}`);let n=e.getMutationType();n&&t.push(`  mutation: ${n.name}`);let i=e.getSubscriptionType();return i&&t.push(`  subscription: ${i.name}`),nE(e)+`schema {
208${t.join("\n")}
209}`}(e),...n.map(e=>{var t;return nE(t=e)+"directive @"+t.name+nv(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>nf(e))].filter(Boolean).join("\n\n")}function nf(e){var t,r,n,i,o,a;let s,l,c,u;return M(e)?nE(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=(0,P.print)({kind:N.Kind.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):$(e)?nE(r=e)+`type ${r.name}`+ng(r)+ny(r):V(e)?nE(n=e)+`interface ${n.name}`+ng(n)+ny(n):B(e)?(l=(s=(i=e).getTypes()).length?" = "+s.join(" | "):"",nE(i)+"union "+i.name+l):z(e)?(c=(o=e).getValues().map((e,t)=>nE(e,"  ",!t)+"  "+e.name+nx(e.deprecationReason)),nE(o)+`enum ${o.name}`+nm(c)):q(e)?(u=Object.values((a=e).getFields()).map((e,t)=>nE(e,"  ",!t)+"  "+nb(e)),nE(a)+`input ${a.name}`+(a.isOneOf?" @oneOf":"")+nm(u)):void(0,eQ.invariant)(!1,"Unexpected type: "+(0,h.inspect)(e))}function ng(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function ny(e){return nm(Object.values(e.getFields()).map((e,t)=>nE(e,"  ",!t)+"  "+e.name+nv(e.args,"  ")+": "+String(e.type)+nx(e.deprecationReason)))}function nm(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function nv(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(nb).join(", ")+")":"(\n"+e.map((e,r)=>nE(e,"  "+t,!r)+"  "+t+nb(e)).join("\n")+"\n"+t+")"}function nb(e){let t=eY(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=` = ${(0,P.print)(t)}`),r+nx(e.deprecationReason)}function nx(e){if(null==e)return"";if(e!==eB){let t=(0,P.print)({kind:N.Kind.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function nE(e,t="",r=!0){let{description:n}=e;return null==n?"":(t&&!r?"\n"+t:t)+(0,P.print)({kind:N.Kind.STRING,value:n,block:(0,np.isPrintableAsBlockString)(n)}).replace(/\n/g,"\n"+t)+"\n"}function nS(e){let t=[];return(0,th.visit)(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function nT(e){if("string"==typeof e||(0,u.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new f.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{C(e)}catch(e){return e}}function nw(e,t){return[...function(e,t){let r=[],n=nI(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of n.removed)r.push({type:l.TYPE_REMOVED,description:eF(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of n.persisted)z(e)&&z(t)?r.push(...function(e,t){let r=[],n=nI(e.getValues(),t.getValues());for(let t of n.added)r.push({type:c.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of n.removed)r.push({type:l.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return r}(e,t)):B(e)&&B(t)?r.push(...function(e,t){let r=[],n=nI(e.getTypes(),t.getTypes());for(let t of n.added)r.push({type:c.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of n.removed)r.push({type:l.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return r}(e,t)):q(e)&&q(t)?r.push(...function(e,t){let r=[],n=nI(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of n.added)ek(t)?r.push({type:l.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):r.push({type:c.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of n.removed)r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of n.persisted)nk(t.type,i.type)||r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return r}(e,t)):$(e)&&$(t)||V(e)&&V(t)?r.push(...function(e,t){let r=[],n=nI(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of n.removed)r.push({type:l.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of n.persisted)r.push(...function(e,t,r){let n=[],i=nI(t.args,r.args);for(let r of i.removed)n.push({type:l.ARG_REMOVED,description:`${e.name}.${t.name} arg ${r.name} was removed.`});for(let[r,o]of i.persisted)if(nk(r.type,o.type)){if(void 0!==r.defaultValue)if(void 0===o.defaultValue)n.push({type:c.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} defaultValue was removed.`});else{let i=n_(r.defaultValue,r.type),a=n_(o.defaultValue,o.type);i!==a&&n.push({type:c.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${r.name} has changed defaultValue from ${i} to ${a}.`})}}else n.push({type:l.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${r.name} has changed type from ${String(r.type)} to ${String(o.type)}.`});for(let r of i.added)ey(r)?n.push({type:l.REQUIRED_ARG_ADDED,description:`A required arg ${r.name} on ${e.name}.${t.name} was added.`}):n.push({type:c.OPTIONAL_ARG_ADDED,description:`An optional arg ${r.name} on ${e.name}.${t.name} was added.`});return n}(e,t,i)),!function e(t,r){return G(t)?G(r)&&e(t.ofType,r.ofType)||K(r)&&e(t,r.ofType):K(t)?K(r)&&e(t.ofType,r.ofType):ei(r)&&t.name===r.name||K(r)&&e(t,r.ofType)}(t.type,i.type)&&r.push({type:l.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return r}(e,t),...function(e,t){let r=[],n=nI(e.getInterfaces(),t.getInterfaces());
209for(let t of n.added)r.push({type:c.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of n.removed)r.push({type:l.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return r}(e,t)):e.constructor!==t.constructor&&r.push({type:l.TYPE_CHANGED_KIND,description:`${e.name} changed from ${nO(e)} to ${nO(t)}.`});return r}(e,t),...function(e,t){let r=[],n=nI(e.getDirectives(),t.getDirectives());for(let e of n.removed)r.push({type:l.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of n.persisted){let n=nI(e.args,t.args);for(let t of n.added)ey(t)&&r.push({type:l.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of n.removed)r.push({type:l.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let n of(e.isRepeatable&&!t.isRepeatable&&r.push({type:l.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(n)||r.push({type:l.DIRECTIVE_LOCATION_REMOVED,description:`${n} was removed from ${e.name}.`})}return r}(e,t)]}(o=l||(l={})).TYPE_REMOVED="TYPE_REMOVED",o.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",o.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",o.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",o.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",o.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",o.FIELD_REMOVED="FIELD_REMOVED",o.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",o.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",o.ARG_REMOVED="ARG_REMOVED",o.ARG_CHANGED_KIND="ARG_CHANGED_KIND",o.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",o.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",o.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",o.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",o.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(a=c||(c={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",a.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",a.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",a.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",a.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",a.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE";function nk(e,t){return G(e)?G(t)&&nk(e.ofType,t.ofType):K(e)?K(t)&&nk(e.ofType,t.ofType)||!K(t)&&nk(e.ofType,t):ei(t)&&e.name===t.name}function nO(e){return M(e)?"a Scalar type":$(e)?"an Object type":V(e)?"an Interface type":B(e)?"a Union type":z(e)?"an Enum type":q(e)?"an Input type":void(0,eQ.invariant)(!1,"Unexpected type: "+(0,h.inspect)(e))}function n_(e,t){let r=eY(e,t);return null!=r||(0,eQ.invariant)(!1),(0,P.print)(tV(r))}function nI(e,t){let r=[],n=[],i=[],o=x(e,({name:e})=>e),a=x(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?n.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&r.push(e);return{added:r,persisted:i,removed:n}}function nA(e,t){switch(t.kind){case N.Kind.TYPE_COORDINATE:let r=t.name.value,n=e.getType(r);if(null!=n)return{kind:"NamedType",type:n};return;case N.Kind.MEMBER_COORDINATE:return function(e,t){let r=t.name.value,n=e.getType(r);if(!n)throw Error(`Expected ${(0,h.inspect)(r)} to be defined as a type in the schema.`);if(!z(n)&&!q(n)&&!$(n)&&!V(n))throw Error(`Expected ${(0,h.inspect)(r)} to be an Enum, Input Object, Object or Interface type.`);if(z(n)){let e=t.memberName.value,r=n.getValue(e);if(null==r)return;return{kind:"EnumValue",type:n,enumValue:r}}if(q(n)){let e=t.memberName.value,r=n.getFields()[e];if(null==r)return;return{kind:"InputField",type:n,inputField:r}}let i=t.memberName.value,o=n.getFields()[i];if(null!=o)return{kind:"Field",type:n,field:o}}(e,t);case N.Kind.ARGUMENT_COORDINATE:return function(e,t){let r=t.name.value,n=e.getType(r);if(null==n)throw Error(`Expected ${(0,h.inspect)(r)} to be defined as a type in the schema.`);if(!$(n)&&!V(n))throw Error(`Expected ${(0,h.inspect)(r)} to be an object type or interface type.`);let i=t.fieldName.value,o=n.getFields()[i];if(null==o)throw Error(`Expected ${(0,h.inspect)(i)} to exist as a field of type ${(0,h.inspect)(r)} in the schema.`);let a=t.argumentName.value,s=o.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:n,field:o,fieldArgument:s}}(e,t);case N.Kind.DIRECTIVE_COORDINATE:let i=t.name.value,o=e.getDirective(i);if(o)return{kind:"Directive",directive:o};return;case N.Kind.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){let r=t.name.value,n=e.getDirective(r);if(!n)throw Error(`Expected ${(0,h.inspect)(r)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=t,o=n.args.find(e=>e.name===i);if(o)return{kind:"DirectiveArgument",directive:n,directiveArgument:o}}(e,t)}}e.s(["BREAK",()=>th.BREAK,"BreakingChangeType",0,l,"DEFAULT_DEPRECATION_REASON",0,eB,"DangerousChangeType",0,c,"DirectiveLocation",()=>eA.DirectiveLocation,"ExecutableDefinitionsRule",0,tw,"FieldsOnCorrectTypeRule",0,tk,"FragmentsOnCompositeTypesRule",0,tO,"GRAPHQL_MAX_INT",0,0x7fffffff,"GRAPHQL_MIN_INT",0,-0x80000000,"GraphQLBoolean",0,eD,"GraphQLDeprecatedDirective",0,ez,"GraphQLDirective",0,ej,"GraphQLEnumType",0,ex,"GraphQLError",()=>f.GraphQLError,"GraphQLFloat",0,eP,"GraphQLID",0,eC,"GraphQLIncludeDirective",0,eV,"GraphQLInputObjectType",0,eT,"GraphQLInt",0,eN,"GraphQLInterfaceType",0,em,"GraphQLList",0,J,"GraphQLNonNull",0,Z,"GraphQLObjectType",0,ec,"GraphQLOneOfDirective",0,eG,"GraphQLScalarType",0,el,"GraphQLSchema",0,tn,"GraphQLSkipDirective",0,eU,"GraphQLSpecifiedByDirective",0,eq,"GraphQLString",0,eR,"GraphQLUnionType",0,ev,"Kind",()=>N.Kind,"KnownArgumentNamesRule",0,t_,"KnownDirectivesRule",0,tA,"KnownFragmentNamesRule",0,tN,"KnownTypeNamesRule",0,tP,"Lexer",()=>r3.Lexer,"Location",()=>g.Location,"LoneAnonymousOperationRule",0,tD,"LoneSchemaDefinitionRule",0,tC,"MaxIntrospectionDepthRule",0,tL,"NoDeprecatedCu
209stomRule",0,function(e){return{Field(t){let r=e.getFieldDef(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){let i=e.getParentType();null!=i||(0,eQ.invariant)(!1),e.reportError(new f.GraphQLError(`The field ${i.name}.${r.name} is deprecated. ${n}`,{nodes:t}))}},Argument(t){let r=e.getArgument(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){let i=e.getDirective();if(null!=i)e.reportError(new f.GraphQLError(`Directive "@${i.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||(0,eQ.invariant)(!1),e.reportError(new f.GraphQLError(`Field "${i.name}.${o.name}" argument "${r.name}" is deprecated. ${n}`,{nodes:t}))}}},ObjectField(t){let r=eo(e.getParentInputType());if(q(r)){let n=r.getFields()[t.name.value],i=null==n?void 0:n.deprecationReason;null!=i&&e.reportError(new f.GraphQLError(`The input field ${r.name}.${n.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let r=e.getEnumValue(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){let i=eo(e.getInputType());null!=i||(0,eQ.invariant)(!1),e.reportError(new f.GraphQLError(`The enum value "${i.name}.${r.name}" is deprecated. ${n}`,{nodes:t}))}}}},"NoFragmentCyclesRule",0,tF,"NoSchemaIntrospectionCustomRule",0,function(e){return{Field(t){let r=eo(e.getType());r&&te(r)&&e.reportError(new f.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}},"NoUndefinedVariablesRule",0,tM,"NoUnusedFragmentsRule",0,t$,"NoUnusedVariablesRule",0,tj,"OperationTypeNode",()=>g.OperationTypeNode,"OverlappingFieldsCanBeMergedRule",0,tU,"PossibleFragmentSpreadsRule",0,tX,"PossibleTypeExtensionsRule",0,tJ,"ProvidedRequiredArgumentsRule",0,t0,"ScalarLeafsRule",0,t5,"SchemaMetaFieldDef",0,e6,"SingleFieldSubscriptionsRule",0,rc,"Source",()=>r2.Source,"Token",()=>g.Token,"TokenKind",()=>r6.TokenKind,"TypeInfo",0,tg,"TypeKind",0,s,"TypeMetaFieldDef",0,e9,"TypeNameMetaFieldDef",0,e8,"UniqueArgumentDefinitionNamesRule",0,rp,"UniqueArgumentNamesRule",0,rd,"UniqueDirectiveNamesRule",0,rh,"UniqueDirectivesPerLocationRule",0,rf,"UniqueEnumValueNamesRule",0,rg,"UniqueFieldDefinitionNamesRule",0,ry,"UniqueFragmentNamesRule",0,rm,"UniqueInputFieldNamesRule",0,rv,"UniqueOperationNamesRule",0,rb,"UniqueOperationTypesRule",0,rx,"UniqueTypeNamesRule",0,rE,"UniqueVariableNamesRule",0,rS,"ValidationContext",0,rR,"ValuesOfCorrectTypeRule",0,rT,"VariablesAreInputTypesRule",0,rk,"VariablesInAllowedPositionRule",0,rO,"__Directive",0,eZ,"__DirectiveLocation",0,e0,"__EnumValue",0,e4,"__Field",0,e2,"__InputValue",0,e5,"__Schema",0,eJ,"__Type",0,e1,"__TypeKind",0,e3,"assertAbstractType",0,function(e){if(!X(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL abstract type.`);return e},"assertCompositeType",0,function(e){if(!Y(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL composite type.`);return e},"assertDirective",0,function(e){if(!e$(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL directive.`);return e},"assertEnumType",0,function(e){if(!z(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL Enum type.`);return e},"assertEnumValueName",0,L,"assertInputObjectType",0,function(e){if(!q(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL Input Object type.`);return e},"assertInputType",0,function(e){if(!H(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL input type.`);return e},"assertInterfaceType",0,U,"assertLeafType",0,function(e){if(!W(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL leaf type.`);return e},"assertListType",0,function(e){if(!G(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL List type.`);return e},"assertName",0,C,"assertNamedType",0,function(e){if(!ei(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL named type.`);return e},"assertNonNullType",0,function(e){if(!K(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL Non-Null type.`);return e},"assertNullableType",0,er,"assertObjectType",0,j,"assertOutputType",0,function(e){if(!Q(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL output type.`);return e},"assertScalarType",0,function(e){if(!M(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL Scalar type.`);return e},"assertSchema",0,tr,"assertType",0,function(e){if(!F(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL type.`);return e},"assertUnionType",0,function(e){if(!B(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL Union type.`);return e},"assertValidName",0,function(e){let t=nT(e);if(t)throw t;return e},"assertValidSchema",0,ta,"assertWrappingType",0,function(e){if(!ee(e))throw Error(`Expected ${(0,h.inspect)(e)} to be a GraphQL wrapping type.`);return e},"astFromValue",0,eY,"buildASTSchema",0,ns,"buildClientSchema",0,function(e,t){(0,b.isObjectLike)(e)&&(0,b.isObjectLike)(e.__schema)||(0,u.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,h.inspect)(e)}.`);let r=e.__schema,n=E(r.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case s.SCALAR:return new el({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case s.OBJECT:return new ec({name:(r=e).name,description:r.description,interfaces:()=>y(r),fields:()=>m(r)});case s.INTERFACE:return new em({name:(n=e).name,description:n.description,interfaces:()=>y(n),fields:()=>m(n)});case s.UNION:var t,r,n,i=e;if(!i.possibleTypes){let e=(0,h.inspect)(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new ev({name:i.name,description:i.description,types:()=>i.possibleTypes.map(f)});case s.ENUM:var o=e;if(!o.enumValues){let e=(0,h.inspect)(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new ex({name:o.name,description:o.description,values:E(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case s.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=(0,h.inspect)(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new eT({name:a.name,description:a.description,fields:()=>x(a.inputFields),isOneOf:a.isOneOf})}let l=(0,h.inspect)(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${l}.`)})(e));for(let e of[...eL,...e7])n[e.name]&&(n[e.name]=e);let i=r.queryType?f(r.queryType):null,o=r.mutationType?f(r.mutationType):null,a=r.subscriptionType?f(r.subscriptionType):null,l=r.directives?r.directives.map(function(e){if(!e.args){let t=(0,h.inspect)(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=(0,h.inspect)(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new ej({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:x(e.args)})}):[];return new tn({description:r.description,query:i,mutation:o,subscription:a,types:Object.values(n),directives:l,assumeValid:null==t?void 0:t.assumeValid});function c(e){if(e.kind===s.LIST){let t=e.ofType;
209if(!t)throw Error("Decorated type deeper than introspection query.");return new J(c(t))}if(e.kind===s.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new Z(er(c(t)))}return p(e)}function p(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${(0,h.inspect)(e)}.`);let r=n[t];if(!r)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return r}function f(e){return j(p(e))}function g(e){return U(p(e))}function y(e){if(null===e.interfaces&&e.kind===s.INTERFACE)return[];if(!e.interfaces){let t=(0,h.inspect)(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(g)}function m(e){if(!e.fields)throw Error(`Introspection result missing fields: ${(0,h.inspect)(e)}.`);return E(e.fields,e=>e.name,v)}function v(e){let t=c(e.type);if(!Q(t)){let e=(0,h.inspect)(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=(0,h.inspect)(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:x(e.args)}}function x(e){return E(e,e=>e.name,S)}function S(e){let t=c(e.type);if(!H(t)){let e=(0,h.inspect)(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let r=null!=e.defaultValue?t7((0,d.parseValue)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:r,deprecationReason:e.deprecationReason}}},"buildSchema",0,function(e,t){return ns((0,d.parse)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})},"coerceInputValue",0,t9,"concatAST",0,function(e){let t=[];for(let r of e)t.push(...r.definitions);return{kind:N.Kind.DOCUMENT,definitions:t}},"createSourceEventStream",0,r7,"defaultFieldResolver",0,rZ,"defaultTypeResolver",0,rJ,"doTypesOverlap",0,eI,"execute",0,rj,"executeSync",0,rV,"extendSchema",0,function(e,t,r){tr(e),null!=t&&t.kind===N.Kind.DOCUMENT||(0,u.devAssert)(!1,"Must provide valid Document AST."),(null==r?void 0:r.assumeValid)!==!0&&(null==r?void 0:r.assumeValidSDL)!==!0&&function(e,t){let r=rC(e,t);if(0!==r.length)throw Error(r.map(e=>e.message).join("\n\n"))}(t,e);let n=e.toConfig(),i=nn(n,t,r);return n===i?e:new tn(i)},"findBreakingChanges",0,function(e,t){return nw(e,t).filter(e=>e.type in l)},"findDangerousChanges",0,function(e,t){return nw(e,t).filter(e=>e.type in c)},"formatError",()=>f.formatError,"getArgumentValues",0,rr,"getDirectiveValues",0,rn,"getEnterLeaveForKind",()=>th.getEnterLeaveForKind,"getIntrospectionQuery",0,nr,"getLocation",()=>r5.getLocation,"getNamedType",0,eo,"getNullableType",0,en,"getOperationAST",0,function(e,t){let r=null;for(let i of e.definitions)if(i.kind===N.Kind.OPERATION_DEFINITION){var n;if(null==t){if(r)return null;r=i}else if((null==(n=i.name)?void 0:n.value)===t)return i}return r},"getOperationRootType",0,function(e,t){if("query"===t.operation){let r=e.getQueryType();if(!r)throw new f.GraphQLError("Schema does not define the required query root type.",{nodes:t});return r}if("mutation"===t.operation){let r=e.getMutationType();if(!r)throw new f.GraphQLError("Schema is not configured for mutations.",{nodes:t});return r}if("subscription"===t.operation){let r=e.getSubscriptionType();if(!r)throw new f.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return r}throw new f.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})},"getVariableValues",0,rt,"getVisitFn",()=>th.getVisitFn,"graphql",0,function(e){return new Promise(t=>t(r1(e)))},"graphqlSync",0,function(e){let t=r1(e);if(p(t))throw Error("GraphQL execution failed to complete synchronously.");return t},"introspectionFromSchema",0,function(e,t){let r={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},n=rV({schema:e,document:(0,d.parse)(nr(r))});return!n.errors&&n.data||(0,eQ.invariant)(!1),n.data},"introspectionTypes",0,e7,"isAbstractType",0,X,"isCompositeType",0,Y,"isConstValueNode",0,function e(t){return tb(t)&&(t.kind===N.Kind.LIST?t.values.some(e):t.kind===N.Kind.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==N.Kind.VARIABLE)},"isDefinitionNode",0,function(e){return tv(e)||tx(e)||tS(e)},"isDirective",0,e$,"isEnumType",0,z,"isEqualType",0,eO,"isExecutableDefinitionNode",0,tv,"isInputObjectType",0,q,"isInputType",0,H,"isInterfaceType",0,V,"isIntrospectionType",0,te,"isLeafType",0,W,"isListType",0,G,"isNamedType",0,ei,"isNonNullType",0,K,"isNullableType",0,et,"isObjectType",0,$,"isOutputType",0,Q,"isRequiredArgument",0,ey,"isRequiredInputField",0,ek,"isScalarType",0,M,"isSchema",0,tt,"isSchemaCoordinateNode",0,function(e){return e.kind===N.Kind.TYPE_COORDINATE||e.kind===N.Kind.MEMBER_COORDINATE||e.kind===N.Kind.ARGUMENT_COORDINATE||e.kind===N.Kind.DIRECTIVE_COORDINATE||e.kind===N.Kind.DIRECTIVE_ARGUMENT_COORDINATE},"isSelectionNode",0,function(e){return e.kind===N.Kind.FIELD||e.kind===N.Kind.FRAGMENT_SPREAD||e.kind===N.Kind.INLINE_FRAGMENT},"isSpecifiedDirective",0,eH,"isSpecifiedScalarType",0,eF,"isType",0,F,"isTypeDefinitionNode",0,tE,"isTypeExtensionNode",0,tT,"isTypeNode",0,function(e){return e.kind===N.Kind.NAMED_TYPE||e.kind===N.Kind.LIST_TYPE||e.kind===N.Kind.NON_NULL_TYPE},"isTypeSubTypeOf",0,e_,"isTypeSystemDefinitionNode",0,tx,"isTypeSystemExtensionNode",0,tS,"isUnionType",0,B,"isValidNameError",0,nT,"isValueNode",0,tb,"isWrappingType",0,ee,"lexicographicSortSchema",0,function(e){var t,r,n;let i=e.toConfig(),o=E(nc(i.types),e=>e.name,function(e){if(M(e)||te(e))return e;if($(e)){let t=e.toConfig();return new ec({...t,interfaces:()=>u(t.interfaces),fields:()=>c(t.fields)})}if(V(e)){let t=e.toConfig();return new em({...t,interfaces:()=>u(t.interfaces),fields:()=>c(t.fields)})}if(B(e)){let t=e.toConfig();return new ev({...t,types:()=>u(t.types)})}if(z(e)){let t=e.toConfig();return new ex({...t,values:nl(t.values,e=>e)})}if(q(e)){let t=e.toConfig();return new eT({...t,fields:()=>nl(t.fields,e=>({...e,type:a(e.type)}))})}(0,eQ.invariant)(!1,"Unexpected type: "+(0,h.inspect)(e))});return new tn({...i,types:Object.values(o),directives:nc(i.directives).map(function(e){let t=e.toConfig();return new ej({...t,locations:nu(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(r=i.mutation)&&s(r),subscription:(n=i.subscription)&&s(n)});function a(e){return G(e)?new J(a(e.ofType)):K(e)?new Z(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return nl(e,e=>({...e,type:a(e.type)}))}function c(e){return nl(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function u(e){return nc(e).map(s)}},"locatedError",0,rM,"parse",()=>d.parse,"parseConstValue",()=>d.parseConstValue,"parseSchemaCoordinate",()=>d.parseSchemaCoordinate,"parseType",()=>d.parseType,"parseValue",()=>d.parseValue,"print",()=>P.print,"printError",()=>f.printError,"printIntrospectionSchema",0,function(e){return nh(e,eH,te)},"printLocation",()=>r4.printLocation,"printSchema",0,function(e){return nh(e,e=>!eH(e),nd)},"printSourceLocation",()=>
209r4.printSourceLocation,"printType",0,nf,"recommendedRules",0,r_,"resolveASTSchemaCoordinate",0,nA,"resolveObjMapThunk",0,es,"resolveReadonlyArrayThunk",0,ea,"resolveSchemaCoordinate",0,function(e,t){return nA(e,(0,d.parseSchemaCoordinate)(t))},"responsePathAsArray",0,t6,"separateOperations",0,function(e){let t=[],r=Object.create(null);for(let n of e.definitions)switch(n.kind){case N.Kind.OPERATION_DEFINITION:t.push(n);break;case N.Kind.FRAGMENT_DEFINITION:r[n.name.value]=nS(n.selectionSet)}let n=Object.create(null);for(let i of t){let t=new Set;for(let e of nS(i.selectionSet))!function e(t,r,n){if(!t.has(n)){t.add(n);let i=r[n];if(void 0!==i)for(let n of i)e(t,r,n)}}(t,r,e);n[i.name?i.name.value:""]={kind:N.Kind.DOCUMENT,definitions:e.definitions.filter(e=>e===i||e.kind===N.Kind.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return n},"specifiedDirectives",0,eK,"specifiedRules",0,rI,"specifiedScalarTypes",0,eL,"stripIgnoredCharacters",0,function(e){let t=(0,r2.isSource)(e)?e:new r2.Source(e),r=t.body,n=new r3.Lexer(t),i="",o=!1;for(;n.advance().kind!==r6.TokenKind.EOF;){let e=n.token,t=e.kind,a=!(0,r3.isPunctuatorTokenKind)(e.kind);o&&(a||e.kind===r6.TokenKind.SPREAD)&&(i+=" ");let s=r.slice(e.start,e.end);t===r6.TokenKind.BLOCK_STRING?i+=(0,np.printBlockString)(e.value,{minimize:!0}):i+=s,o=a}return i},"subscribe",0,r8,"syntaxError",()=>nt.syntaxError,"typeFromAST",0,tf,"validate",0,rD,"validateSchema",0,to,"valueFromAST",0,t7,"valueFromASTUntyped",0,R,"version",0,"16.12.0","versionInfo",0,r,"visit",()=>th.visit,"visitInParallel",()=>th.visitInParallel,"visitWithTypeInfo",0,tm],564804)},598115,e=>{"use strict";var t=e.i(516165),r=e.i(817366),n=e.i(860123),i=e.i(701864);class o extends i.ApolloLink{constructor(e){super((i,o)=>new t.Observable(t=>{let a,s,l;try{a=o(i).subscribe({next:a=>{let c=i.client.queryManager.incrementalHandler,u=c.isIncrementalResult(a)?c.extractErrors(a):a.errors;u?l=e({error:new r.CombinedGraphQLErrors(a,u),result:a,operation:i,forward:o}):(0,n.graphQLResultHasProtocolErrors)(a)&&(l=e({error:a.extensions[n.PROTOCOL_ERRORS_SYMBOL],result:a,operation:i,forward:o})),(s=l?.subscribe(t))||t.next(a)},error:r=>{l=e({operation:i,error:(0,n.toErrorLike)(r),forward:o}),(s=l?.subscribe(t))||t.error(r)},complete:()=>{l||t.complete()}})}catch(r){e({error:(0,n.toErrorLike)(r),operation:i,forward:o}),t.error(r)}return()=>{a&&a.unsubscribe(),s&&s.unsubscribe()}}))}}e.s(["ErrorLink",0,o,"onError",0,function(e){return new o(e)}])},747696,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createErrorLink=void 0;let n=e.r(196783),i=e.r(564804),o=e.r(598115),a=e.r(933720);r.createErrorLink=({onError:e})=>new o.ErrorLink(({error:t})=>{a.ServerError.is(t)&&(t instanceof n.RequestNotAuthenticatedError||t instanceof n.RequestContentNotFoundError||t instanceof n.RequestServerError||t instanceof n.RequestUnspecifiedError)&&e(t),a.CombinedGraphQLErrors.is(t)&&t.errors&&t.errors.length&&t.errors.forEach(t=>{t instanceof i.GraphQLError&&e(t)})})},415630,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.nonNullable=void 0,r.nonNullable=e=>null!=e},701685,108520,170594,968623,694411,e=>{"use strict";var t,r,n,i;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:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
209Value:[],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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},l=new Set(Object.keys(s));function c(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&l.has(t)}function u(e,t){if(!e)throw Error(t)}function p(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){let n;if(null===t)return"null";if(r.includes(t))return"[Circular]";let i=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,i)}else if(Array.isArray(t)){var o,a,s=t,l=i;if(0===s.length)return"[]";if(l.length>2)return"[Array]";let r=Math.min(10,s.length),n=s.length-r,c=[];for(let t=0;t<r;++t)c.push(e(s[t],l));return 1===n?c.push("... 1 more item"):n>1&&c.push(`... ${n} more items`),"["+c.join(", ")+"]"}return o=t,a=i,0===(n=Object.entries(o)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+n.map(([t,r])=>t+": "+e(r,a)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}(n=t||(t={})).QUERY="query",n.MUTATION="mutation",n.SUBSCRIPTION="subscription",e.s(["Location",0,o,"OperationTypeNode",0,t,"QueryDocumentKeys",0,s,"Token",0,a,"isNode",0,c],701685),(i=r||(r={})).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",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",e.s(["Kind",0,r],108520),e.s(["devAssert",0,u],170594);e.s(["inspect",0,p],968623);let d=Object.freeze({});function h(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}}e.s(["BREAK",0,d,"getEnterLeaveForKind",0,h,"getVisitFn",0,function(e,t,r){let{enter:n,leave:i}=h(e,t);return r?i:n},"visit",0,function(e,t,n=s){let i,o,a,l=new Map;for(let e of Object.values(r))l.set(e,h(t,e));let f=Array.isArray(e),g=[e],y=-1,m=[],v=e,b=[],x=[];do{var E,S,T;let e,r=++y===g.length,s=r&&0!==m.length;if(r){if(o=0===x.length?void 0:b[b.length-1],v=a,a=x.pop(),s)if(f){v=v.slice();let e=0;for(let[t,r]of m){let n=t-e;null===r?(v.splice(n,1),e++):v[n]=r}}else for(let[e,t]of(v={...v},m))v[e]=t;y=i.index,g=i.keys,m=i.edits,f=i.inArray,i=i.prev}else if(a){if(null==(v=a[o=f?y:g[y]]))continue;b.push(o)}if(!Array.isArray(v)){c(v)||u(!1,`Invalid AST Node: ${p(v)}.`);let n=r?null==(E=l.get(v.kind))?void 0:E.leave:null==(S=l.get(v.kind))?void 0:S.enter;if((e=null==n?void 0:n.call(t,v,o,a,b,x))===d)break;if(!1===e){if(!r){b.pop();continue}}
209else if(void 0!==e&&(m.push([o,e]),!r))if(c(e))v=e;else{b.pop();continue}}void 0===e&&s&&m.push([o,v]),r?b.pop():(i={inArray:f,index:y,keys:g,edits:m,prev:i},g=(f=Array.isArray(v))?v:null!=(T=n[v.kind])?T:[],y=-1,m=[],a&&x.push(a),a=v)}while(void 0!==i)return 0!==m.length?m[m.length-1][1]:e},"visitInParallel",0,function(e){let t=Array(e.length).fill(null),n=Object.create(null);for(let i of Object.values(r)){let r=!1,o=Array(e.length).fill(void 0),a=Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){let{enter:n,leave:s}=h(e[t],i);r||(r=null!=n||null!=s),o[t]=n,a[t]=s}if(!r)continue;let s={enter(...r){let n=r[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;let s=null==(i=o[a])?void 0:i.apply(e[a],r);if(!1===s)t[a]=n;else if(s===d)t[a]=d;else if(void 0!==s)return s}},leave(...r){let n=r[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;let n=null==(i=a[o])?void 0:i.apply(e[o],r);if(n===d)t[o]=d;else if(void 0!==n&&!1!==n)return n}else t[o]===n&&(t[o]=null)}};n[i]=s}return n}],694411)},446567,623580,155547,e=>{"use strict";function t(e){return 9===e||32===e}function r(e){return e>=48&&e<=57}function n(e){return e>=97&&e<=122||e>=65&&e<=90}function i(e,r){let n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),o=1===i.length,a=i.length>1&&i.slice(1).every(e=>0===e.length||t(e.charCodeAt(0))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,p=!(null!=r&&r.minimize)&&(!o||e.length>70||u||a||s),d="",h=o&&t(e.charCodeAt(0));return(p&&!h||a)&&(d+="\n"),d+=n,(p||u)&&(d+="\n"),'"""'+d+'"""'}e.s(["isDigit",0,r,"isNameContinue",0,function(e){return n(e)||r(e)||95===e},"isNameStart",0,function(e){return n(e)||95===e},"isWhiteSpace",0,t],623580),e.s(["dedentBlockStringLines",0,function(e){var r,n;let i=Number.MAX_SAFE_INTEGER,o=null,a=-1;for(let r=0;r<e.length;++r){let s=e[r],l=function(e){let r=0;for(;r<e.length&&t(e.charCodeAt(r));)++r;return r}(s);l!==s.length&&(o=null!=(n=o)?n:r,a=r,0!==r&&l<i&&(i=l))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(r=o)?r:0,a+1)},"isPrintableAsBlockString",0,function(e){if(""===e)return!0;let t=!0,r=!1,n=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,r=!1;break;case 9:case 32:r||(r=t);break;default:n&&(n=r),t=!1}return!t&&(!n||!i)},"printBlockString",0,i],446567);let o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return s[e.charCodeAt(0)]}let s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var l=e.i(694411);let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>u(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=f(e.variableDefinitions)?d("(\n",u(e.variableDefinitions,"\n"),"\n)"):d("(",u(e.variableDefinitions,", "),")"),r=d("",e.description,"\n")+u([e.operation,u([e.name,t]),u(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>d("",i,"\n")+e+": "+t+d(" = ",r)+d(" ",u(n," "))},SelectionSet:{leave:({selections:e})=>p(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=d("",e,": ")+t,a=o+d("(",u(r,", "),")");return a.length>80&&(a=o+d("(\n",h(u(r,"\n")),"\n)")),u([a,u(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",u(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>u(["...",d("on ",e),u(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>d("",o,"\n")+`fragment ${e}${d("(",u(r,", "),")")} `+`on ${t} ${d("",u(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
209,StringValue:{leave:({value:e,block:t})=>t?i(e):`"${e.replace(o,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+u(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+u(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",u(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>d("",e,"\n")+u(["schema",u(t," "),p(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+u(["scalar",t,u(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>d("",e,"\n")+u(["type",t,d("implements ",u(r," & ")),u(n," "),p(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>d("",e,"\n")+t+(f(r)?d("(\n",h(u(r,"\n")),"\n)"):d("(",u(r,", "),")"))+": "+n+d(" ",u(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>d("",e,"\n")+u([t+": "+r,d("= ",n),u(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>d("",e,"\n")+u(["interface",t,d("implements ",u(r," & ")),u(n," "),p(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>d("",e,"\n")+u(["union",t,u(r," "),d("= ",u(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>d("",e,"\n")+u(["enum",t,u(r," "),p(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+u([t,u(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>d("",e,"\n")+u(["input",t,u(r," "),p(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>d("",e,"\n")+"directive @"+t+(f(r)?d("(\n",h(u(r,"\n")),"\n)"):d("(",u(r,", "),")"))+(n?" repeatable":"")+" on "+u(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>u(["extend schema",u(e," "),p(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>u(["extend scalar",e,u(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>u(["extend type",e,d("implements ",u(t," & ")),u(r," "),p(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>u(["extend interface",e,d("implements ",u(t," & ")),u(r," "),p(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>u(["extend union",e,u(t," "),d("= ",u(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>u(["extend enum",e,u(t," "),p(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>u(["extend input",e,u(t," "),p(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>u([e,d(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>u([e,d(".",t),d("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>u(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>u(["@",e,d("(",t,":)")])}};function u(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function p(e){return d("{\n",h(u(e,"\n")),"\n}")}function d(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function h(e){return d("  ",e.replace(/\n/g,"\n  "))}function f(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}e.s(["print",0,function(e){return(0,l.visit)(e,c)}],155547)},381625,300230,228254,555819,765346,317401,806507,352414,922444,125756,781583,540281,e=>{"use strict";function t(e){return"object"==typeof e&&null!==e}function r(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}e.s(["isObjectLike",0,t],300230),e.s(["invariant",0,r],228254);let n=/\r\n|[\n\r]/g;function i(e,t){let i=0,o=1;for(let a of e.body.matchAll(n)){if("number"==typeof a.index||r(!1),a.index>=t)break;
209i=a.index+a[0].length,o+=1}return{line:o,column:t+1-i}}function o(e){return a(e.source,i(e.source,e.start))}function a(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,l=1===t.line?r:0,c=t.column+l,u=`${e.name}:${a}:${c}
210`,p=n.split(/\r\n|[\n\r]/g),d=p[i];if(d.length>120){let e=Math.floor(c/80),t=[];for(let e=0;e<d.length;e+=80)t.push(d.slice(e,e+80));return u+s([[`${a} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(c%80)],["|",t[e+1]]])}return u+s([[`${a-1} |`,p[i-1]],[`${a} |`,d],["|","^".padStart(c)],[`${a+1} |`,p[i+1]]])}function s(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")}e.s(["getLocation",0,i],555819),e.s(["printLocation",0,o,"printSourceLocation",0,a],765346);class l extends Error{constructor(e,...r){var n,o,a;const{nodes:s,source:u,positions:p,path:d,originalError:h,extensions:f}=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}(r);super(e),this.name="GraphQLError",this.path=null!=d?d:void 0,this.originalError=null!=h?h:void 0,this.nodes=c(Array.isArray(s)?s:s?[s]:void 0);const g=c(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=u?u:null==g||null==(o=g[0])?void 0:o.source,this.positions=null!=p?p:null==g?void 0:g.map(e=>e.start),this.locations=p&&u?p.map(e=>i(u,e)):null==g?void 0:g.map(e=>i(e.source,e.start));const y=t(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!=(a=null!=f?f:y)?a: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!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,l):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 t of this.nodes)t.loc&&(e+="\n\n"+o(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+a(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 c(e){return void 0===e||0===e.length?void 0:e}function u(e,t,r){return new l(`Syntax Error: ${r}`,{source:e,positions:[t]})}e.s(["GraphQLError",0,l,"formatError",0,function(e){return e.toJSON()},"printError",0,function(e){return e.toString()}],317401),e.s(["syntaxError",0,u],806507);var p,d,h,f,g=e.i(701685);(p=h||(h={})).QUERY="QUERY",p.MUTATION="MUTATION",p.SUBSCRIPTION="SUBSCRIPTION",p.FIELD="FIELD",p.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",p.FRAGMENT_SPREAD="FRAGMENT_SPREAD",p.INLINE_FRAGMENT="INLINE_FRAGMENT",p.VARIABLE_DEFINITION="VARIABLE_DEFINITION",p.SCHEMA="SCHEMA",p.SCALAR="SCALAR",p.OBJECT="OBJECT",p.FIELD_DEFINITION="FIELD_DEFINITION",p.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",p.INTERFACE="INTERFACE",p.UNION="UNION",p.ENUM="ENUM",p.ENUM_VALUE="ENUM_VALUE",p.INPUT_OBJECT="INPUT_OBJECT",p.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.s(["DirectiveLocation",0,h],352414);var y=e.i(108520),m=e.i(446567),v=e.i(623580);(d=f||(f={})).SOF="<SOF>",d.EOF="<EOF>",d.BANG="!",d.DOLLAR="$",d.AMP="&",d.PAREN_L="(",d.PAREN_R=")",d.DOT=".",d.SPREAD="...",d.COLON=":",d.EQUALS="=",d.AT="@",d.BRACKET_L="[",d.BRACKET_R="]",d.BRACE_L="{",d.PIPE="|",d.BRACE_R="}",d.NAME="Name",d.INT="Int",d.FLOAT="Float",d.STRING="String",d.BLOCK_STRING="BlockString",d.COMMENT="Comment",e.s(["TokenKind",0,f],922444);class b{constructor(e){const t=new g.Token(f.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(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==f.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 O(e,f.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return O(e,f.BANG,i,i+1);case 36:return O(e,f.DOLLAR,i,i+1);case 38:return O(e,f.AMP,i,i+1);case 40:return O(e,f.PAREN_L,i,i+1);case 41:return O(e,f.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return O(e,f.SPREAD,i,i+3);break;case 58:return O(e,f.COLON,i,i+1);case 61:return O(e,f.EQUALS,i,i+1);case 64:return O(e,f.AT,i,i+1);case 91:return O(e,f.BRACKET_L,i,i+1);case 93:return O(e,f.BRACKET_R,i,i+1);case 123:return O(e,f.BRACE_L,i,i+1);case 124:return O(e,f.PIPE,i,i+1);case 125:return O(e,f.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,s="",l=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){s+=r.slice(a,o),l.push(s);let n=O(e,f.BLOCK_STRING,t,o+3,(0,m.dedentBlockStringLines)(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){s+=r.slice(a,o),a=o+1,o+=4;continue}if(10===n||13===n){s+=r.slice(a,o),l.push(s),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;continue}if(E(n))++o;else if(S(r,o))o+=2;else throw u(e.source,o,`Invalid character within String: ${k(e,o)}.`)}throw u(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),O(e,f.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|A(e))<0)break}throw u(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=I(r,t+2);if(E(n))return{value:String.fromCodePoint(n),size:6};if(T(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=I(r,t+8);
210if(w(e))return{value:String.fromCodePoint(n,e),size:12}}throw u(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body;switch(r.charCodeAt(t+1)){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 u(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 u(e.source,i,`Invalid character within String: ${k(e,i)}.`)}throw u(e.source,i,"Unterminated string.")}(e,i)}if((0,v.isDigit)(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,v.isDigit)(o))throw u(e.source,i,`Invalid number, unexpected digit after 0: ${k(e,i)}.`)}else i=_(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=_(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=_(e,i,o),o=n.charCodeAt(i)),46===o||(0,v.isNameStart)(o))throw u(e.source,i,`Invalid number, expected digit but got: ${k(e,i)}.`);return O(e,a?f.FLOAT:f.INT,t,i,n.slice(t,i))}(e,i,t);if((0,v.isNameStart)(t))return N(e,i);throw u(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":E(t)||S(r,i)?`Unexpected character: ${k(e,i)}.`:`Invalid character: ${k(e,i)}.`)}return O(e,f.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===f.COMMENT)return e}}function x(e){return e===f.BANG||e===f.DOLLAR||e===f.AMP||e===f.PAREN_L||e===f.PAREN_R||e===f.DOT||e===f.SPREAD||e===f.COLON||e===f.EQUALS||e===f.AT||e===f.BRACKET_L||e===f.BRACKET_R||e===f.BRACE_L||e===f.PIPE||e===f.BRACE_R}function E(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function S(e,t){return T(e.charCodeAt(t))&&w(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function w(e){return e>=56320&&e<=57343}function k(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return f.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function O(e,t,r,n,i){let o=e.line,a=1+r-e.lineStart;return new g.Token(t,r,n,o,a,i)}function _(e,t,r){if(!(0,v.isDigit)(r))throw u(e.source,t,`Invalid number, expected digit but got: ${k(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,v.isDigit)(n.charCodeAt(i));)++i;return i}function I(e,t){return A(e.charCodeAt(t))<<12|A(e.charCodeAt(t+1))<<8|A(e.charCodeAt(t+2))<<4|A(e.charCodeAt(t+3))}function A(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function N(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if((0,v.isNameContinue)(e))++i;else break}return O(e,f.NAME,t,i,r.slice(t,i))}e.s(["Lexer",0,b,"createToken",0,O,"isPunctuatorTokenKind",0,x,"printCodePointAt",0,k,"readName",0,N],125756);class P{line=1;lineStart=0;constructor(e){const t=new g.Token(f.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==f.EOF){let t=function(e,t){let r=e.source.body,n=r.length;if(t<n){let n=r.charCodeAt(t);switch(n){case 46:return O(e,f.DOT,t,t+1);case 40:return O(e,f.PAREN_L,t,t+1);case 41:return O(e,f.PAREN_R,t,t+1);case 58:return O(e,f.COLON,t,t+1);case 64:return O(e,f.AT,t,t+1)}if((0,v.isNameStart)(n))return N(e,t);throw u(e.source,t,`Invalid character: ${k(e,t)}.`)}return O(e,f.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}return e}}var R=e.i(170594),D=e.i(968623);let C=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,D.inspect)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm.
211
212Ensure that there is only one instance of "graphql" in the node_modules
213directory. If different versions of "graphql" are the dependencies of other
214relied on modules, use "resolutions" to ensure only one version is installed.
215
216https://yarnpkg.com/en/docs/selective-version-resolutions
217
218Duplicate "graphql" modules cannot be used at the same time since different
219versions may have different capabilities and behavior. The data from one
220version used in the function from another could produce confusing and
221spurious results.`)}}return!1};e.s(["instanceOf",0,C],781583);class L{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,R.devAssert)(!1,`Body must be a string. Received: ${(0,D.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,R.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,R.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function F(e){return C(e,L)}e.s(["Source",0,L,"isSource",0,F],540281);class M{constructor(e,t={}){const{lexer:r,...n}=t;if(r)this._lexer=r;else{const t=F(e)?e:new L(e);this._lexer=new b(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(f.NAME);return this.node(e,{kind:y.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.Kind.DOCUMENT,definitions:this.many(f.SOF,this.parseDefinition,f.EOF)})}parseDefinition(){if(this.peek(f.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===f.BRACE_L)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===f.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()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
221ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(f.BRACE_L))return this.node(t,{kind:y.Kind.OPERATION_DEFINITION,operation:g.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType();return this.peek(f.NAME)&&(e=this.parseName()),this.node(t,{kind:y.Kind.OPERATION_DEFINITION,operation:n,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(f.NAME);switch(e.value){case"query":return g.OperationTypeNode.QUERY;case"mutation":return g.OperationTypeNode.MUTATION;case"subscription":return g.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(f.PAREN_L,this.parseVariableDefinition,f.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(f.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(f.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(f.DOLLAR),this.node(e,{kind:y.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.Kind.SELECTION_SET,selections:this.many(f.BRACE_L,this.parseSelection,f.BRACE_R)})}parseSelection(){return this.peek(f.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(f.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:y.Kind.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(f.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(f.PAREN_L,t,f.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(f.COLON),this.node(t,{kind:y.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(f.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(f.NAME)?this.node(e,{kind:y.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:y.Kind.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:y.Kind.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:y.Kind.FRAGMENT_DEFINITION,description:t,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 f.BRACKET_L:return this.parseList(e);case f.BRACE_L:return this.parseObject(e);case f.INT:return this.advanceLexer(),this.node(t,{kind:y.Kind.INT,value:t.value});case f.FLOAT:return this.advanceLexer(),this.node(t,{kind:y.Kind.FLOAT,value:t.value});case f.STRING:case f.BLOCK_STRING:return this.parseStringLiteral();case f.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:y.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:y.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:y.Kind.NULL});default:return this.node(t,{kind:y.Kind.ENUM,value:t.value})}case f.DOLLAR:if(e){if(this.expectToken(f.DOLLAR),this._lexer.token.kind===f.NAME){let e=this._lexer.token.value;throw u(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:y.Kind.STRING,value:e.value,block:e.kind===f.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:y.Kind.LIST,values:this.any(f.BRACKET_L,t,f.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:y.Kind.OBJECT,fields:this.any(f.BRACE_L,t,f.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(f.COLON),this.node(t,{kind:y.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(f.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(f.AT),this.node(t,{kind:y.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(f.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(f.BRACKET_R),e=this.node(t,{kind:y.Kind.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(f.BANG)?this.node(t,{kind:y.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:y.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(f.STRING)||this.peek(f.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(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);return this.node(e,{kind:y.Kind.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(f.COLON);let r=this.parseNamedType();return this.node(e,{kind:y.Kind.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:y.Kind.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:y.Kind.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(f.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseFieldDefinition,f.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(f.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:y.Kind.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(f.PAREN_L,this.parseInputValueDef,f.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(f.COLON);let i=this.parseTypeReference();this.expectOptionalToken(f.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:y.Kind.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:y.Kind.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:y.Kind.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(f.EQUALS)?this.delimitedMany(f.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:y.Kind.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(f.BRACE_L,this.parseEnumValueDefinition,f.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:y.Kind.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 u(this._lexer.source,this._lexer.token.start,`${$(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:y.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(f.BRACE_L,this.parseInputValueDef,f.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===f.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(f.BRACE_L,this.parseOperationTypeDefinition,f.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.Kind.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:y.Kind.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();return this.node(e,{kind:y.Kind.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:y.Kind.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:y.Kind.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:y.Kind.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:y.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(f.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:y.Kind.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(f.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(h,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,r=this._lexer.token,n=this.expectOptionalToken(f.AT),i=this.parseName();return(!n&&this.expectOptionalToken(f.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(f.PAREN_L)&&(t=this.parseName(),this.expectToken(f.COLON),this.expectToken(f.PAREN_R)),n)?t?this.node(r,{kind:y.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(r,{kind:y.Kind.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(r,{kind:y.Kind.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(r,{kind:y.Kind.MEMBER_COORDINATE,name:i,memberName:e}):this.node(r,{kind:y.Kind.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new g.Location(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 u(this._lexer.source,t.start,`Expected ${j(e)}, found ${$(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===f.NAME&&t.value===e)this.advanceLexer();else throw u(this._lexer.source,t.start,`Expected "${e}", found ${$(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===f.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return u(this._lexer.source,t.start,`Unexpected ${$(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(t.kind!==f.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw u(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function $(e){let t=e.value;return j(e.kind)+(null!=t?` "${t}"`:"")}function j(e){return x(e)?`"${e}"`:e}e.s(["parse",0,function(e,t){let r=new M(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n},"parseConstValue",0,function(e,t){let r=new M(e,t);r.expectToken(f.SOF);let n=r.parseConstValueLiteral();return r.expectToken(f.EOF),n},"parseSchemaCoordinate",0,function(e){let t=new P(F(e)?e:new L(e)),r=new M(e,{lexer:t});r.expectT
221oken(f.SOF);let n=r.parseSchemaCoordinate();return r.expectToken(f.EOF),n},"parseType",0,function(e,t){let r=new M(e,t);r.expectToken(f.SOF);let n=r.parseTypeReference();return r.expectToken(f.EOF),n},"parseValue",0,function(e,t){let r=new M(e,t);r.expectToken(f.SOF);let n=r.parseValueLiteral(!1);return r.expectToken(f.EOF),n}],381625)},234383,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return m},useLinkStatus:function(){return b}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(56421),a=e.r(852925),s=o._(e.r(147754)),l=e.r(153729),c=e.r(780429),u=e.r(449565),p=e.r(240913),d=e.r(206176),h=e.r(200301),f=e.r(579577),g=e.r(235658),y=e.r(255410);function m(t){var r;let n,i,o,[m,b]=(0,s.useOptimistic)(f.IDLE_LINK_STATUS),x=(0,s.useRef)(null),{href:E,as:S,children:T,prefetch:w=null,passHref:k,replace:O,shallow:_,scroll:I,onClick:A,onMouseEnter:N,onTouchStart:P,legacyBehavior:R=!1,onNavigate:D,transitionTypes:C,ref:L,unstable_dynamicOnHover:F,...M}=t;n=T,R&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let $=s.default.useContext(c.AppRouterContext),j=!1!==w,V=!1===w?"none":!0===w?"full":"auto",U="none"!==V?"auto"===V?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,B="string"==typeof(r=S||E)?r:(0,l.formatUrl)(r);if(R){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=s.default.Children.only(n)}let z=R?i&&"object"==typeof i&&i.ref:L,q,G=s.default.useCallback(e=>(null!==$&&(x.current=(0,f.mountLinkInstance)(e,B,$,U,j,b,q)),()=>{x.current&&((0,f.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,f.unmountPrefetchableInstance)(e)}),[j,B,$,U,b,q]),K={ref:(0,u.useMergedRef)(G,z),onClick(t){R||"function"!=typeof A||A(t),R&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,i,o,a,l,c="none"){if("u">typeof window){let u,{nodeName:p}=t.currentTarget;if("A"===p.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(935971);s.default.startTransition(()=>{d(r,i?"replace":"push",!1===o?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l,c)})}}(t,B,x,O,I,D,C,V)},onMouseEnter(e){R||"function"!=typeof N||N(e),R&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),$&&j&&(0,f.onNavigationIntent)(e.currentTarget,!0===F)},onTouchStart:function(e){R||"function"!=typeof P||P(e),R&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),$&&j&&(0,f.onNavigationIntent)(e.currentTarget,!0===F)}};return(0,p.isAbsoluteUrl)(B)?K.href=B:R&&!k&&("a"!==i.type||"href"in i.props)||(K.href=(0,d.addBasePath)(B)),o=R?s.default.cloneElement(i,K):(0,a.jsx)("a",{...M,...K,children:n}),(0,a.jsx)(v.Provider,{value:m,children:o})}let v=(0,s.createContext)(f.IDLE_LINK_STATUS),b=()=>(0,s.useContext)(v);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},547633,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return E}});let n=e.r(836437),i=e.r(56421),o=e.r(852925),a=i._(e.r(147754)),s=n._(e.r(262299)),l=n._(e.r(246957)),c=e.r(130405),u=e.r(373035),p=e.r(372100),d=e.r(36291),h=n._(e.r(330767)),f=e.r(449565),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qual
221ities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function y(e,t,r,n,i,o,a){let s=e?.src;e&&e["data-loaded-src"]!==s&&(e["data-loaded-src"]=s,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),r?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}n?.current&&n.current(e)}}))}function m(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v="u"<typeof window?a.useEffect:a.useLayoutEffect,b=(0,a.forwardRef)(({src:e,srcSet:t,sizes:r,height:n,width:i,decoding:s,className:l,style:c,fetchPriority:u,placeholder:p,loading:d,unoptimized:h,fill:g,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:E,setShowAltText:S,sizesInput:T,onLoad:w,onError:k,...O},_)=>{let I=(0,a.useRef)(!1),A=(0,a.useRef)(null);v(()=>{let{current:e}=I,{current:t}=A;e||null===t||(k&&(t.src=t.src),t.complete&&y(t,p,b,x,E,h,T),I.current=!0)},[e,p,b,x,k,h,T]);let N=(0,f.useMergedRef)(_,A);return(0,o.jsx)("img",{...O,...m(u),loading:d,width:i,height:n,decoding:s,"data-nimg":g?"fill":"1",className:l,style:c,sizes:r,srcSet:t,src:e,ref:N,onLoad:e=>{y(e.currentTarget,p,b,x,E,h,T)},onError:e=>{S(!0),"empty"!==p&&E(!0),k&&k(e)}})});function x({isAppRouter:e,imgAttributes:t}){let r={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...m(t.fetchPriority)};return e&&s.default.preload?(s.default.preload(t.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...r},"__nimg-"+t.src+t.srcSet+t.sizes)})}let E=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(d.RouterContext),n=(0,a.useContext)(p.ImageConfigContext),i=(0,a.useMemo)(()=>{let e=g||n||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t),i=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:r,qualities:i,localPatterns:"u"<typeof window?n?.localPatterns:e.localPatterns}},[n]),{onLoad:s,onLoadingComplete:l}=e,f=(0,a.useRef)(s);(0,a.useEffect)(()=>{f.current=s},[s]);let y=(0,a.useRef)(l);(0,a.useEffect)(()=>{y.current=l},[l]);let[m,v]=(0,a.useState)(!1),[E,S]=(0,a.useState)(!1),{props:T,meta:w}=(0,c.getImgProps)(e,{defaultLoader:h.default,imgConf:i,blurComplete:m,showAltText:E});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(b,{...T,unoptimized:w.unoptimized,placeholder:w.placeholder,fill:w.fill,onLoadRef:f,onLoadingCompleteRef:y,setBlurComplete:v,setShowAltText:S,sizesInput:e.sizes,ref:t}),w.preload?(0,o.jsx)(x,{isAppRouter:!r,imgAttributes:T}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},606724,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return u},getImageProps:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(836437),a=e.r(130405),s=e.r(547633),l=o._(e.r(330767));function c(e){let{props:t}=(0,a.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=s.Image},848248,(e,t,r)=>{t.exports=e.r(606724)},449565,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(147754);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
221dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},246957,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},defaultHead:function(){return p}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(836437),a=e.r(56421),s=e.r(852925),l=a._(e.r(147754)),c=o._(e.r(201340)),u=e.r(934523);function p(){return[(0,s.jsx)("meta",{charSet:"utf-8"},"charset"),(0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let h=["name","httpEquiv","charSet","itemProp"];function f(e){let t,r,n,i;return e.reduce(d,[]).reverse().concat(p().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let o=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?o=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?o=!1:r.add(e.type);break;case"meta":for(let t=0,r=h.length;t<r;t++){let r=h[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?o=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;
221("name"!==r||!a)&&n.has(t)?o=!1:(n.add(t),i[r]=n)}}}return o})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let g=function({children:e}){let t=(0,l.useContext)(u.HeadManagerContext);return(0,s.jsx)(c.default,{reduceComponentsToState:f,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},372100,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=e.r(836437)._(e.r(147754)),i=e.r(373035),o=n.default.createContext(i.imageConfigDefault)},36291,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=e.r(836437)._(e.r(147754)).default.createContext(null)},207235,(e,t,r)=>{"use strict";function n(e,t){let r=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e,t.qualities[0]):r}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"findClosestQuality",{enumerable:!0,get:function(){return n}})},330767,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(207235),i=e.r(494743);function o({config:e,src:t,width:r,quality:a}){let s=(0,i.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,i.getAssetToken)())s=void 0;else{let e=t.indexOf("?");if(-1!==e){let r=new URLSearchParams(t.slice(e+1)),n=r.get("dpl");if(n){s=n,r.delete("dpl");let i=r.toString();t=t.slice(0,e)+(i?"?"+i:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns.
222Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,n.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${r}&q=${l}${t.startsWith("/")&&s?`&dpl=${s}`:""}`}o.__next_img_default=!0;let a=o},934693,(e,t,r)=>{"use strict";function n({widthInt:e,heightInt:t,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}){let s=r?40*r:e,l=i?40*i:t,c=s&&l?`viewBox='0 0 ${s} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${o}'/%3E%3C/svg%3E`}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},373035,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return o},imageConfigDefault:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},130405,(e,t,r)=>{"use strict";
222e.i(553049),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return c}});let n=e.r(494743),i=e.r(934693),o=e.r(373035),a=["-moz-initial","fill","none","scale-down",void 0];function s(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function c({src:e,sizes:t,unoptimized:r=!1,priority:u=!1,preload:p=!1,loading:d,className:h,quality:f,width:g,height:y,fill:m=!1,style:v,overrideSrc:b,onLoad:x,onLoadingComplete:E,placeholder:S="empty",blurDataURL:T,fetchPriority:w,decoding:k="async",layout:O,objectFit:_,objectPosition:I,lazyBoundary:A,lazyRoot:N,...P},R){var D;let C,L,F,{imgConf:M,showAltText:$,blurComplete:j,defaultLoader:V}=R,U=M||o.imageConfigDefault;if("allSizes"in U)C=U;else{let e=[...U.deviceSizes,...U.imageSizes].sort((e,t)=>e-t),t=U.deviceSizes.sort((e,t)=>e-t),r=U.qualities?.sort((e,t)=>e-t);C={...U,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===V)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let B=P.loader||V;delete P.loader,delete P.srcSet;let z="__next_img_default"in B;if(z){if("custom"===C.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop.
223Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=B;B=t=>{let{config:r,...n}=t;return e(n)}}if(O){"fill"===O&&(m=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[O];e&&(v={...v,...e});let r={responsive:"100vw",fill:"100vw"}[O];r&&!t&&(t=r)}let q="",G=l(g),K=l(y),H=!1;if((D=e)&&"object"==typeof D&&(s(D)||void 0!==D.src)){let t=s(e)?e.default:e;if(!t.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(L=t.blurWidth,F=t.blurHeight,T=T||t.blurDataURL,q=t.src,H=/\.avif(?:\?|$)/i.test(q),!m)if(G||K){if(G&&!K){let e=G/t.width;K=Math.round(t.height*e)}else if(!G&&K){let e=K/t.height;G=Math.round(t.width*e)}}else G=t.width,K=t.height}H&&"blur"===S&&!T&&(S="empty");let Q=!u&&!p&&("lazy"===d||void 0===d);(!(e="string"==typeof e?e:q)||e.startsWith("data:")||e.startsWith("blob:"))&&(r=!0,Q=!1),C.unoptimized&&(r=!0),z&&!C.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(r=!0);let W=l(f),Y=Object.assign(m?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:_,objectPosition:I}:{},$?{}:{color:"transparent"},v),X=j||"empty"===S?null:"blur"===S?`url("data:image/svg+xml;charset=utf-8,${(0,i.getImageBlurSvg)({widthInt:G,heightInt:K,blurWidth:L,blurHeight:F,blurDataURL:T||"",objectFit:Y.objectFit})}")`:`url("${S}")`,J=a.includes(Y.objectFit)?"fill"===Y.objectFit?"100% 100%":"cover":Y.objectFit,Z=X?{backgroundSize:J,backgroundPosition:Y.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:X}:{},ee=function({config:e,src:t,unoptimized:r,width:i,quality:o,sizes:a,loader:s}){if(r){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,n.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())e=void 0;else if(e){let r=t.indexOf("?");if(-1!==r){let n=new URLSearchParams(t.slice(r+1));n.get("dpl")||(n.append("dpl",e),t=t.slice(0,r)+"?"+n.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:e,allSizes:t},r,n){if(n){let r=/(^|\s)(1?\d?\d)vw/g,i=[];for(let e;e=r.exec(n);)i.push(parseInt(e[2]));if(i.length){let r=.01*Math.min(...i);return{widths:t.filter(t=>t>=e[0]*r),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof r?{widths:e,kind:"w"}:{widths:[...new Set([r,2*r].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,i,a),u=l.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:l.map((r,n)=>`${s({config:e,src:t,quality:o,width:r})} ${"w"===c?r:n+1}${c}`).join(", "),src:s({config:e,src:t,quality:o,width:l[u]})}}({config:C,src:e,unoptimized:r,width:G,quality:W,sizes:t,loader:B}),et=Q?"lazy":d;return{props:{...P,loading:et,fetchPriority:w,width:G,height:K,decoding:k,className:h,style:{...Y,...Z},sizes:ee.sizes,srcSet:ee.srcSet,src:b||ee.src},meta:{unoptimized:r,preload:p||u,placeholder:S,fill:m}}}},235658,(e,t,r)=>{"use strict";
223Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(240913),i=e.r(105070);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},664185,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function s(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},153729,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(56421)._(e.r(664185)),a=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(o.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${i}${u}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},201340,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(147754),i="u"<typeof window,o=i?()=>{}:n.useLayoutEffect,a=i?()=>{}:n.useEffect;function s(e){let{headManager:t,reduceComponentsToState:r}=e;function s(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),s()),o(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),o(()=>(t&&(t._pendingUpdate=s),()=>{t&&(t._pendingUpdate=s)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},240913,(e,t,r)=>{"use strict";e.i(553049),Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return m},MiddlewareNotFoundError:function(){return E},MissingStaticPage:function(){return x},NormalizeError:function(){return v},PageNotFoundError:function(){return b},SP:function(){return g},ST:function(){return y},WEB_VITALS:function(){return o},execOnce:function(){return a},getDisplayName:function(){return p},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return l},isResSent:function(){return d},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return S}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let s=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&s.test(e)};function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function p(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function f(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${p(e)}.getInitialProps()" should resolve to an object. But found "${n}
223" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,y=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class m extends Error{}class v extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class E extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function S(e){return JSON.stringify({message:e.message,stack:e.stack})}},574640,(e,t,r)=>{t.exports=e.r(851680)},35305,(e,t,r)=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},561227,(e,t,r)=>{"use strict";var n=e.r(35305);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
223;return r.PropTypes=r,r}},304153,(e,t,r)=>{e.i(553049),t.exports=e.r(561227)()},368602,(e,t,r)=>{"use strict";var n,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),p=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case a:case l:case s:case h:case f:return e;default:switch(e=e&&e.$$typeof){case p:case u:case d:case y:case g:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),r.ContextConsumer=u,r.ContextProvider=c,r.Element=i,r.ForwardRef=d,r.Fragment=a,r.Lazy=y,r.Memo=g,r.Portal=o,r.Profiler=l,r.StrictMode=s,r.Suspense=h,r.SuspenseList=f,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return v(e)===u},r.isContextProvider=function(e){return v(e)===c},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},r.isForwardRef=function(e){return v(e)===d},r.isFragment=function(e){return v(e)===a},r.isLazy=function(e){return v(e)===y},r.isMemo=function(e){return v(e)===g},r.isPortal=function(e){return v(e)===o},r.isProfiler=function(e){return v(e)===l},r.isStrictMode=function(e){return v(e)===s},r.isSuspense=function(e){return v(e)===h},r.isSuspenseList=function(e){return v(e)===f},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===l||e===s||e===h||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)||!1},r.typeOf=v},370821,(e,t,r)=>{"use strict";e.i(553049),t.exports=e.r(368602)},916421,887991,602961,800483,798491,e=>{"use strict";let t;var r=e.i(147754),n=e.i(524513),i=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function o(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(n.default[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var o=e.indexOf("-->");return{type:"comment",comment:-1!==o?e.slice(4,o):""}}for(var a=new RegExp(i),s=null;null!==(s=a.exec(e));)if(s[0].trim())if(s[1]){var l=s[1].trim(),c=[l,""];l.indexOf("=")>-1&&(c=l.split("=")),t.attrs[c[0]]=c[1],a.lastIndex--}else s[2]&&(t.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return t}var a=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,s=/^\s*$/,l=Object.create(null);let c=function(e,t){t||(t={}),t.components||(t.components=l);var r,n=[],i=[],c=-1,u=!1;if(0!==e.indexOf("<")){var p=e.indexOf("<");n.push({type:"text",content:-1===p?e:e.substring(0,p)})}return e.replace(a,function(a,l){if(u){if(a!=="</"+r.name+">")return;u=!1}var p,d="/"!==a.charAt(1),h=a.startsWith("<!--"),f=l+a.length,g=e.charAt(f);if(h){var y=o(a);return c<0?n.push(y):(p=i[c]).children.push(y),n}
223if(d&&(c++,"tag"===(r=o(a)).type&&t.components[r.name]&&(r.type="component",u=!0),r.voidElement||u||!g||"<"===g||r.children.push({type:"text",content:e.slice(f,e.indexOf("<",f))}),0===c&&n.push(r),(p=i[c-1])&&p.children.push(r),i[c]=r),(!d||r.voidElement)&&(c>-1&&(r.voidElement||r.name===a.slice(2,-1))&&(r=-1==--c?n:i[c]),!u&&"<"!==g&&g)){p=-1===c?n:i[c].children;var m=e.indexOf("<",f),v=e.slice(f,-1===m?void 0:m);s.test(v)&&(v=" "),(m>-1&&c+p.length>=0||" "!==v)&&p.push({type:"text",content:v})}}),n},u=(e,t,r,n)=>{let i=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);y(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},p={},d=(e,t,r,n)=>{y(r)&&p[r]||(y(r)&&(p[r]=new Date),u(e,t,r,n))},h=(e,t)=>()=>{if(e.isInitialized)t();else{let r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},f=(e,t,r)=>{e.loadNamespaces(t,h(e,r))},g=(e,t,r,n)=>{if(y(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return f(e,r,n);r.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,h(e,n))},y=e=>"string"==typeof e,m=e=>"object"==typeof e&&null!==e,v=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,b={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},x=e=>b[e],E={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(v,x)},S=(e,t)=>{if(!e)return!1;let r=e.props?.children??e.children;return t?r.length>0:!!r},T=e=>{if(!e)return[];let t=e.props?.children??e.children;return e.props?.i18nIsDynamicList?w(t):t},w=e=>Array.isArray(e)?e:[e],k=(e,t,n,i)=>{if(!e)return"";let o="",a=w(e),s=t?.transSupportBasicHtmlNodes?t.transKeepBasicHtmlNodesFor??[]:[];return a.forEach((e,a)=>{if(y(e)){o+=`${e}`;return}if((0,r.isValidElement)(e)){let{props:r,type:l}=e,c=Object.keys(r).length,u=s.indexOf(l)>-1,p=r.children;if(!p&&u&&!c){o+=`<${l}/>`;return}if(!p&&(!u||c)||r.i18nIsDynamicList){o+=`<${a}></${a}>`;return}if(u&&1===c&&y(p)){o+=`<${l}>${p}</${l}>`;return}let d=k(p,t,n,i);o+=`<${a}>${d}</${a}>`;return}if(null===e)return void u(n,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:i});if(m(e)){let{format:t,...r}=e,a=Object.keys(r);if(1===a.length){let e=t?`${a[0]}, ${t}`:a[0];o+=`{{${e}}}`;return}u(n,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:i,child:e});return}u(n,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:i,child:e})}),o},O=(e,t,n)=>{let i=e.key||t,o=(0,r.cloneElement)(e,{key:i});return!o.props||!o.props.children||0>n.indexOf(`${t}/>`)&&0>n.indexOf(`${t} />`)?o:(0,r.createElement)(function(){return(0,r.createElement)(r.Fragment,null,o)},{key:i})};e.s(["initReactI18next",0,{type:"3rdParty",init(e){((e={})=>{E={...E,...e}})(e.options.react),t=e}}],887991);let _=(0,r.createContext)();class I{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}e.s(["Trans",0,function({children:e,count:n,parent:i,i18nKey:o,context:a,tOptions:s={},values:l,defaults:u,components:p,ns:h,i18n:f,t:g,shouldUnescape:v,...b}){let{i18n:x,defaultNS:I}=(0,r.useContext)(_)||{},A=f||x||t,N=g||A?.t.bind(A);return function({children:e,count:n,parent:i,i18nKey:o,context:a,tOptions:s={},values:l,defaults:u,components:p,ns:h,i18n:f,t:g,shouldUnescape:v,...b}){let x=f||t;if(!x)return d(x,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:o}),e;let _=g||x.t.bind(x)||(e=>e),I={...E,...x.options?.react},A=h||_.ns||x.options?.defaultNS;A=y(A)?[A]:A||["translation"];let N=k(e,I,x,o),P=u||N||I.transEmptyNodeValue||o,{hashTransKey:R}=I,D=o||(R?R(N||P):N||P);
223x.options?.interpolation?.defaultVariables&&(l=l&&Object.keys(l).length>0?{...l,...x.options.interpolation.defaultVariables}:{...x.options.interpolation.defaultVariables});let C=!l&&(void 0===n||x.options?.interpolation?.alwaysFormat)&&e?{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}}:s.interpolation,L={...s,context:a||s.context,count:n,...l,...C,defaultValue:P,ns:A},F=D?_(D,L):P,M=((e,t,r,n)=>{if(!e)return null;if(Array.isArray(e))return e.map((e,r)=>O(e,r,t));if(m(e)){let r;return r={},Object.keys(e).forEach(n=>{Object.assign(r,{[n]:O(e[n],n,t)})}),r}return d(r,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:n}),null})(p,F,x,o),$=M||e,j=null;!(!m(M)||Array.isArray(M))&&Object.keys(M).reduce((e,t)=>e&&Number.isNaN(Number.parseFloat(t)),!0)&&(j=M,$=e);let V=((e,t,n,i,o,a,s)=>{if(""===n)return[];let l=o.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(l.map(e=>`<${e}`).join("|")).test(n);if(!e&&!t&&!u&&!s)return[n];let p=t??{},d=e=>{w(e).forEach(e=>{y(e)||(S(e)?d(T(e)):m(e)&&!(0,r.isValidElement)(e)&&Object.assign(p,e))})};d(e);let h=c(`<0>${n}</0>`),f={...p,...a},g=(e,t,n)=>{let i=T(e),o=b(i,t.children,n);return Array.isArray(i)&&i.every(r.isValidElement)&&0===o.length||e.props?.i18nIsDynamicList?i:o},v=(e,t,n,i,o)=>{e.dummy?(e.children=t,n.push((0,r.cloneElement)(e,{key:i},o?void 0:t))):n.push(...r.Children.map([e],e=>{let n={...e.props};return delete n.i18nIsDynamicList,(0,r.createElement)(e.type,{...n,key:i,ref:e.props.ref??e.ref},o?null:t)}))},b=(e,n,a)=>{let c=w(e);return w(n).reduce((e,n,p)=>{let d=n.children?.[0]?.content&&i.services.interpolator.interpolate(n.children[0].content,f,i.language);if("tag"===n.type){var h,x;let s,E=c[parseInt(n.name,10)];!E&&t&&(E=t[n.name]),1!==a.length||E||(E=a[0][n.name]),E||(E={});let T=0!==Object.keys(n.attrs).length?(h={props:n.attrs},(s={...x=E}).props=Object.assign(h.props,x.props),s):E,w=(0,r.isValidElement)(T),k=w&&S(n,!0)&&!n.voidElement,O=u&&m(T)&&T.dummy&&!w,_=m(t)&&Object.hasOwnProperty.call(t,n.name);if(y(T)){let t=i.services.interpolator.interpolate(T,f,i.language);e.push(t)}else if(S(T)||k){let t=g(T,n,a);v(T,t,e,p)}else if(O)v(T,b(c,n.children,a),e,p);else if(Number.isNaN(parseFloat(n.name)))if(_){let t=g(T,n,a);v(T,t,e,p,n.voidElement)}else if(o.transSupportBasicHtmlNodes&&l.indexOf(n.name)>-1)if(n.voidElement)e.push((0,r.createElement)(n.name,{key:`${n.name}-${p}`}));else{let t=b(c,n.children,a);e.push((0,r.createElement)(n.name,{key:`${n.name}-${p}`},t))}else if(n.voidElement)e.push(`<${n.name} />`);else{let t=b(c,n.children,a);e.push(`<${n.name}>${t}</${n.name}>`)}else if(m(T)&&!w){let t=n.children[0]?d:null;t&&e.push(t)}else v(T,d,e,p,1!==n.children.length||!d)}else if("text"===n.type){let t=o.transWrapTextNodes,a=s?o.unescape(i.services.interpolator.interpolate(n.content,f,i.language)):i.services.interpolator.interpolate(n.content,f,i.language);t?e.push((0,r.createElement)(t,{key:`${n.name}-${p}`},a)):e.push(a)}return e},[])};return T(b([{dummy:!0,children:e||[]}],h,w(e||[]))[0])})($,j,F,x,I,L,v),U=i??I.defaultTransParent;return U?(0,r.createElement)(U,b,V):V}({children:e,count:n,parent:i,i18nKey:o,context:a,tOptions:s,values:l,defaults:u,components:p,ns:h||N?.ns||I||A?.options?.defaultNS,i18n:A,t:g,shouldUnescape:v,...b})}],602961),e.s(["useTranslation",0,(e,n={})=>{var i,o,a;let s,{i18n:l}=n,{i18n:c,defaultNS:u}=(0,r.useContext)(_)||{},p=l||c||t;if(p&&!p.reportNamespaces&&(p.reportNamespaces=new I),!p){d(p,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,t)=>y(t)?t:m(t)&&y(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}p.options.react?.wait&&d(p,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let h={...E,...p.options.react,...n},{useSuspense:v,keyPrefix:b}=h,x=e||u||p.options?.defaultNS;x=y(x)?[x]:x||["translation"],p.reportNamespaces.addUsedNamespaces?.(x);let S=(p.isInitialized||p.initializedStoreOnce)&&x.every(e=>((e,t,r={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.
223isLanguageChangingTo,e))return!1}}):(d(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,p,h)),T=(i=n.lng||null,o="fallback"===h.nsMode?x:x[0],(0,r.useCallback)(p.getFixedT(i,o,b),[p,i,o,b])),w=()=>T,k=()=>{let e,t;return e=n.lng||null,t="fallback"===h.nsMode?x:x[0],p.getFixedT(e,t,b)},[O,A]=(0,r.useState)(w),N=x.join();n.lng&&(N=`${n.lng}${N}`);let P=(a=N,s=(0,r.useRef)(),(0,r.useEffect)(()=>{s.current=a},[a,void 0]),s.current),R=(0,r.useRef)(!0);(0,r.useEffect)(()=>{let{bindI18n:e,bindI18nStore:t}=h;R.current=!0,S||v||(n.lng?g(p,n.lng,x,()=>{R.current&&A(k)}):f(p,x,()=>{R.current&&A(k)})),S&&P&&P!==N&&R.current&&A(k);let r=()=>{R.current&&A(k)};return e&&p?.on(e,r),t&&p?.store.on(t,r),()=>{R.current=!1,p&&e&&e?.split(" ").forEach(e=>p.off(e,r)),t&&p&&t.split(" ").forEach(e=>p.store.off(e,r))}},[p,N]),(0,r.useEffect)(()=>{R.current&&S&&A(w)},[p,b,S]);let D=[O,p,S];if(D.t=O,D.i18n=p,D.ready=S,S||!S&&!v)return D;throw new Promise(e=>{n.lng?g(p,n.lng,x,()=>e()):f(p,x,()=>e())})}],800483),e.s(["I18nextProvider",0,function({i18n:e,defaultNS:t,children:n}){let i=(0,r.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,r.createElement)(_.Provider,{value:i},n)}],798491),e.s([],916421)},700742,(e,t,r)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,g=n?Symbol.for("react.suspense_list"):60120,y=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case p:case d:case a:case l:case s:case f:return e;default:switch(e=e&&e.$$typeof){case u:case h:case m:case y:case c:return e;default:return t}}case o:return t}}}function T(e){return S(e)===d}r.AsyncMode=p,r.ConcurrentMode=d,r.ContextConsumer=u,r.ContextProvider=c,r.Element=i,r.ForwardRef=h,r.Fragment=a,r.Lazy=m,r.Memo=y,r.Portal=o,r.Profiler=l,r.StrictMode=s,r.Suspense=f,r.isAsyncMode=function(e){return T(e)||S(e)===p},r.isConcurrentMode=T,r.isContextConsumer=function(e){return S(e)===u},r.isContextProvider=function(e){return S(e)===c},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},r.isForwardRef=function(e){return S(e)===h},r.isFragment=function(e){return S(e)===a},r.isLazy=function(e){return S(e)===m},r.isMemo=function(e){return S(e)===y},r.isPortal=function(e){return S(e)===o},r.isProfiler=function(e){return S(e)===l},r.isStrictMode=function(e){return S(e)===s},r.isSuspense=function(e){return S(e)===f},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===s||e===f||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===b||e.$$typeof===x||e.$$typeof===E||e.$$typeof===v)},r.typeOf=S},127142,(e,t,r)=>{"use strict";e.i(553049),t.exports=e.r(700742)},705927,(e,t,r)=>{"use strict";var n=e.r(127142),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;
223t.exports=function e(t,r,n){if("string"!=typeof r){if(f){var i=h(r);i&&i!==f&&e(t,i,n)}var a=u(r);p&&(a=a.concat(p(r)));for(var s=l(t),g=l(r),y=0;y<a.length;++y){var m=a[y];if(!o[m]&&!(n&&n[m])&&!(g&&g[m])&&!(s&&s[m])){var v=d(r,m);try{c(t,m,v)}catch(e){}}}}return t}},982100,266338,448971,516165,272797,607002,336419,372602,214054,240001,775575,741204,147489,e=>{"use strict";var t=e.i(521879),r=e.i(337902),n="function"==typeof Symbol&&Symbol.observable||"@@observable";function i(e){return e}e.s(["observable",0,n],266338),e.s(["identity",0,i],448971);var o=e.i(662696),a=e.i(827540),s=e.i(558869),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,n,i){var o=this,l=!function(e){return e&&e instanceof t.Subscriber||e&&(0,a.isFunction)(e.next)&&(0,a.isFunction)(e.error)&&(0,a.isFunction)(e.complete)&&(0,r.isSubscription)(e)}(e)?new t.SafeSubscriber(e,n,i):e;return(0,s.errorContext)(function(){var e=o.operator,t=o.source;l.add(e?e.call(l,t):t?o._subscribe(l):o._trySubscribe(l))}),l},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,r){var n=this;return new(r=c(r))(function(r,i){var o=new t.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),o.unsubscribe()}},error:i,complete:r});n.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[n]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?i:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=c(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function c(e){var t;return null!=(t=null!=e?e:o.config.Promise)?t:Promise}e.s(["Observable",0,l],516165);var u=new l(function(e){return e.complete()});e.s(["EMPTY",0,u],982100);var p=e.i(108520),d=e.i(694411),h=e.i(748410),f=e.i(688392),g=e.i(435909);let y=Symbol.for("apollo.cacheSize"),m={...g.global[y]};function v(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}e.s(["cacheSizes",0,m],272797),e.s(["getOperationName",0,v],607002);let b=()=>Object.create(null),{forEach:x,slice:E}=Array.prototype,{hasOwnProperty:S}=Object.prototype;class T{constructor(e=!0,t=b){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return x.call(e,e=>t=t.getChildTrie(e)),S.call(t,"data")?t.data:t.data=this.makeData(E.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){let n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(E.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new T(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}function w(){}e.s(["Trie",0,T],336419);class k{constructor(e=1/0,t=w){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}function O(){}e.s(["StrongCache",0,k],372602);let _="u">typeof WeakRef?WeakRef:function(e){return{deref:()=>e}}
223,I="u">typeof WeakMap?WeakMap:Map,A="u">typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:O,unregister:O}};class N{constructor(e=1/0,t=O){this.max=e,this.dispose=t,this.map=new I,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new _(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new A(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}e.s(["WeakCache",0,N],214054);let P=new WeakSet;function R(e){!(e.size<=(e.max||-1))&&(P.has(e)||(P.add(e),setTimeout(()=>{e.clean(),P.delete(e)},100)))}let D=function(e,t){let r=new N(e,t);return r.set=function(e,t){let r=N.prototype.set.call(this,e,t);return R(this),r},r};function C(e,{max:t,makeCacheKey:r=e=>e}){let n=new T(!0),i=new D(t);return(...t)=>{let o=n.lookupArray(r(t)),a=i.get(o);if(a){if(a.error)throw a.error;return a.result}let s=i.set(o,{});try{return s.result=e(...t)}catch(e){throw s.error=e,e}}}e.s(["AutoCleanedStrongCache",0,function(e,t){let r=new k(e,t);return r.set=function(e,t){let r=k.prototype.set.call(this,e,t);return R(this),r},r},"AutoCleanedWeakCache",0,D],240001),e.s(["memoize",0,C],775575);let L=C((e,t)=>{(0,f.invariant)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);h.__DEV__&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,f.newInvariantError)(2,e.kind)}),(0,f.invariant)(r.length<=1,3,r.length)),t&&(0,f.invariant)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),(0,d.visit)(e,{Field(t,n,i,o){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let n=e,i=[];for(let e of o)(n=n[e]).kind===p.Kind.FIELD&&i.push(n.alias?.value||n.name.value);throw i.splice(-1,1,t.name.value),(0,f.newInvariantError)(5,t.alias.value,i.join("."),r[0].operation,v(e,"(anonymous)"))}}})},{max:m.checkDocument||2e3});e.s(["checkDocument",0,L],741204),e.s(["getOperationDefinition",0,function(e){return L(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}],147489)},824627,827540,949918,907844,337902,662696,758357,558869,521879,e=>{"use strict";var t=function(e,r){return(t=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,r)};function r(e,r){if("function"!=typeof r&&null!==r)throw TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var n=function(){return(n=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 i(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
223if(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 o(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 a(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))}function s(e){return this instanceof s?(this.v=e,this):new s(e)}function l(e){return"function"==typeof e}function c(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}"function"==typeof SuppressedError&&SuppressedError,e.s(["__assign",()=>n,"__asyncGenerator",0,function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||l(e,t)})},t&&(n[e]=t(n[e])))}function l(e,t){try{var r;(r=i[e](t)).value instanceof s?Promise.resolve(r.value.v).then(c,u):p(o[0][2],r)}catch(e){p(o[0][3],e)}}function c(e){l("next",e)}function u(e){l("throw",e)}function p(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}},"__asyncValues",0,function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=i(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var o,a,s;o=n,a=i,s=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:s})},a)})}}},"__await",0,s,"__awaiter",0,function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},"__extends",0,r,"__generator",0,function(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var c=[s,l];if(r)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){o.label=c[1];break}if(6===c[0]&&o.label<i[1]){o.label=i[1],i=c;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(c);break}i[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},"__read",0,o,"__spreadArray",0,a,"__values",0,i],824627),e.s(["isFunction",0,l],827540),e.s(["createErrorClass",0,c],949918);var u=c(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}});function p(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}e.s(["arrRemove",0,p],907844);var d=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,n,s,c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var p=i(c),d=p.next();!d.done;d=p.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}else c.remove(this);var h=this.initialTeardown;
223if(l(h))try{h()}catch(e){s=e instanceof u?e.errors:[e]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var y=i(f),m=y.next();!m.done;m=y.next()){var v=m.value;try{g(v)}catch(e){s=null!=s?s:[],e instanceof u?s=a(a([],o(s)),o(e.errors)):s.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}}if(s)throw new u(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)g(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&p(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&p(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),h=d.EMPTY;function f(e){return e instanceof d||e&&"closed"in e&&l(e.remove)&&l(e.add)&&l(e.unsubscribe)}function g(e){l(e)?e():e.unsubscribe()}e.s(["EMPTY_SUBSCRIPTION",0,h,"Subscription",0,d,"isSubscription",0,f],337902);var y={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};e.s(["config",0,y],662696);var m={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=m.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,a([e,t],o(r))):setTimeout.apply(void 0,a([e,t],o(r)))},clearTimeout:function(e){var t=m.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function v(e){m.setTimeout(function(){var t=y.onUnhandledError;if(t)t(e);else throw e})}function b(){}e.s(["reportUnhandledError",0,v],758357);var x=E("C",void 0,void 0);function E(e,t,r){return{kind:e,value:t,error:r}}var S=null;function T(e){y.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=e)}e.s(["captureError",0,T,"errorContext",0,function(e){if(y.useDeprecatedSynchronousErrorHandling){var t=!S;if(t&&(S={errorThrown:!1,error:null}),e(),t){var r=S,n=r.errorThrown,i=r.error;if(S=null,n)throw i}}else e()}],558869);var w=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,f(t)&&t.add(r)):r.destination=P,r}return r(t,e),t.create=function(e,t,r){return new I(e,t,r)},t.prototype.next=function(e){this.isStopped?N(E("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?N(E("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?N(x,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(d),k=Function.prototype.bind;function O(e,t){return k.call(e,t)}var _=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){A(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){A(e)}else A(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){A(e)}},e}(),I=function(e){function t(t,r,n){var i,o,a=e.call(this)||this;return l(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:a&&y.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return a.unsubscribe()},i={next:t.next&&O(t.next,o),error:t.error&&O(t.error,o),complete:t.complete&&O(t.complete,o)}):i=t,a.destination=new _(i),a}return r(t,e),t}(w);function A(e){y.useDeprecatedSynchronousErrorHandling?T(e):v(e)}function N(e,t){var r=y.onStoppedNotification;r&&m.setTimeout(function(){return r(e,t)})}var P={closed:!0,next:b,error:function(e){throw e},complete:b};e.s(["SafeSubscriber",0,I,"Subscriber",0,w],521879)},524513,(e,t,r)=>{t.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},52332,6435,e=>{"use strict";var t=e.i(728362),r=e.i(438337);e.i(717590);var n=e.i(309740);e.i(916421);var i=e.i(800483);let o=(0,r.default)("div",{target:"e16bop4b0"})("& svg{height:24px;
223cursor:pointer;",n.mq.L`
224    height: 32px;
225  `,"}"),a=(0,r.default)("a",{target:"e16bop4b1"})("display:inline-flex;width:95.25px;height:24px;",n.mq.S`
226    width: 127px;
227    height: 32px;
228  `),s=(0,r.default)(e=>(0,t.jsxs)("svg",{fill:"none",height:"1em",viewBox:"0 0 127 32",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,t.jsxs)("g",{clipPath:"url(#logo-horizontal-se_svg__a)",fill:"#fff",children:[(0,t.jsx)("path",{d:"M48.556 11.305h-4.94V25.22h-3.13V11.305H35.5V8.59h13.055z"}),(0,t.jsx)("path",{d:"M57.962 20.102h-8.753c.312 1.75 1.573 2.922 3.175 2.922 1.216 0 2.18-.548 2.774-1.453l2.33 1.394c-1.187 1.588-3.131 2.537-5.104 2.537-3.249 0-6.083-2.581-6.083-6.29s2.804-6.26 5.935-6.26c4.109.014 6.127 3.278 5.726 7.15m-8.664-2.21h5.845c-.356-1.543-1.35-2.522-2.893-2.522-1.468.014-2.551 1.008-2.952 2.522"}),(0,t.jsx)("path",{d:"M64.178 25.25c-.445.089-.92.119-1.35.119-2.092 0-3.012-.994-3.012-3.012V8.59h2.923v13.366c0 1.024.623 1.157 1.454 1.069v2.225z"}),(0,t.jsx)("path",{d:"M65.691 9.97c0-.92.801-1.692 1.736-1.692s1.706.757 1.706 1.691c0 .935-.801 1.692-1.706 1.692s-1.736-.772-1.736-1.692m.267 15.235V13.337h2.923v11.868z"}),(0,t.jsx)("path",{d:"M81.15 16.809v8.396h-2.73v-1.38c-.92 1.217-2.403 1.662-3.635 1.662-2.566 0-4.08-1.617-4.08-3.634 0-2.3 2.582-4.184 5.742-4.184.623 0 1.276.044 1.87.237v-.786c0-1.187-.683-1.81-2.092-1.81-1.261 0-2.374.638-3.057 1.469l-2.062-1.499c1.157-1.35 3.16-2.299 5.178-2.299 3.16 0 4.866 1.38 4.866 3.827m-2.834 3.812v-.519c-.475-.163-.979-.208-1.587-.208-2.136 0-3.234.86-3.234 1.9 0 .86.742 1.394 1.854 1.394 1.484 0 2.967-.876 2.967-2.567"}),(0,t.jsx)("path",{d:"M87.425 8.59h5.608c3.145 0 5.667 2.284 5.667 5.385s-2.522 5.192-5.667 5.192h-3.575v6.023h-2.033zm5.46 8.827c2.24 0 3.783-1.425 3.783-3.442s-1.528-3.635-3.783-3.635h-3.427v7.077z"}),(0,t.jsx)("path",{d:"M102.884 25.339c-1.721 0-2.433-.905-2.433-2.685V8.59h1.913v13.975c0 1.26.772 1.26 1.588 1.157v1.498a5 5 0 0 1-1.068.119"}),(0,t.jsx)("path",{d:"M113.12 23.544c-.875 1.394-2.448 1.943-3.887 1.943-2.626 0-4.065-1.706-4.065-3.53 0-2.374 2.404-4.125 5.712-4.125.757 0 1.513.074 2.151.267v-1.187c0-1.572-.846-2.344-2.596-2.344a4.21 4.21 0 0 0-3.472 1.75l-1.364-.993c.994-1.35 2.848-2.33 4.866-2.33 2.848 0 4.435 1.38 4.435 3.591v8.634h-1.765zm-3.605.356c1.766 0 3.516-1.068 3.516-3.175v-1.142c-.608-.193-1.276-.238-1.958-.238-2.448 0-4.065.994-4.065 2.537 0 1.202.949 2.018 2.507 2.018"}),(0,t.jsx)("path",{d:"m120.152 24.775-4.643-11.438h2.032l3.59 9.183 3.561-9.183h1.928l-4.673 11.69c-1.305 3.25-2.626 4.436-3.99 5.104l-.92-1.38c1.038-.653 1.988-1.35 3.115-3.976"}),(0,t.jsx)("path",{d:"M21.63 0C11.913 0 0 6.394 0 14.568 0 20.962 8.605 32 15.013 32c6.41 0 15.444-10.147 15.444-24.27C30.457 1.987 26.26 0 21.63 0m3.027 17.788-13.085 7.55c-1.32.758-2.967-.192-2.967-1.705V8.53c0-1.513 1.646-2.462 2.967-1.706l13.085 7.552c1.305.756 1.305 2.655 0 3.412"})]}),(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:"logo-horizontal-se_svg__a",children:(0,t.jsx)("path",{d:"M0 0h126.62v32H0z",fill:"#fff"})})})]}),{target:"e16bop4b2"})("width:95.25px;height:24px;",n.mq.S`
229    width: 127px; 
230    height: 32px;
231  `);e.s(["BrandLogo",0,({href:e="/",...r})=>{let{t:n}=(0,i.useTranslation)();return(0,t.jsx)(o,{...r,children:(0,t.jsx)(a,{"aria-label":n("A11Y_TO_START_PAGE"),href:e,children:(0,t.jsx)(s,{})})})}],6435),e.s([],52332)},393978,405376,567668,819972,737529,600725,443290,201738,394247,249520,500920,665714,e=>{"use strict";e.i(717590);var t=e.i(618046),r=e.i(804967),n=e.i(136350),i=e.i(309740),o=e.i(438337);e.i(52332);var a=e.i(6435);e.i(593692);var s=e.i(647442),l=e.i(728362),c=e.i(147754),u=e.i(23399),p=e.i(189731);e.i(826572);var d=e.i(996506),h=e.i(179734),f=e.i(848248);let g=(0,o.default)("a",{target:"e96zv9m0"})("display:flex;");var y=e.i(249221);e.i(251825);var m=e.i(294224);let v=(0,o.default)("div",{target:"e1bwzozg0"})("position:fixed;inset:0px;z-index:100;overflow-y:scroll;"),b=(0,o.default)(p.motion.div,{target:"e1bwzozg1"})("position:fixed;top:0;left:0;bottom:0;right:0;z-index:100;background:",m.OneAppTokens.color.background.overlay60,";cursor:pointer;"),x=(0,o.default)(p.motion.div,{target:"e1bwzozg2"})("background-color:",m.OneAppTokens.color.background.tertiary,";display:flex;flex-direction:column;justify-content:space-between;top:0;bottom:0;height:100%;overflow-y:scroll;position:absolute;z-index:101;width:300px;"),E=(0,o.default)("ul",{target:"e1bwzozg3"})("padding:",(0,r.pxToRem)(24),"rem 0 0 0;margin:0;"),S=(0,o.default)("li",{target:"e1bwzozg4"})("list-style:none;&[aria-current='page']{background-color:",m.OneAppTokens.color.button.ghostPressed,";}"),T=(0,y.css)("padding:",(0,r.pxToRem)(12),"rem ",(0,r.pxToRem)(24),"rem;width:100%;"),w=(0,o.default)("a",{target:"e1bwzozg5"})(T,"  color:",m.OneAppTokens.color.text.primary,";font-family:",m.OneAppTokens.typography.navigationText.fontFamily,";font-size:",m.OneAppTokens.typography.navigationText.fontSize,";font-weight:",m.OneAppTokens.typography.navigationText.fontWeight,";line-height:",m.OneAppTokens.typography.navigationText.lineHeight,";text-transform:",m.OneAppTokens.typography.navigationText.textTransform,";border-radius:",m.OneAppTokens.radius.navItem,";"),k=(0,o.default)("div",{target:"e1bwzozg6"})("padding:",(0,r.pxToRem)(24),"rem ",(0,r.pxToRem)(24),"rem;margin:0;display:flex;flex-direction:column;align-items:flex-start;background-color:",m.OneAppTokens.color.background.surface,";"),O=(0,o.default)("div",{target:"e1bwzozg7"})("display:flex;flex-direction:column;margin-bottom:",(0,r.pxToRem)(24),"rem;"),_=(0,o.default)(t.Button,{target:"e1bwzozg8"})("margin-bottom:",(0,r.pxToRem)(16),"rem;&:last-child{margin-bottom:0;}"),I=(0,o.default)("span",{target:"e1bwzozg9"})("display:block;margin-bottom:",(0,r.pxToRem)(8),"rem;color:",m.OneAppTokens.color.text.secondary,";font-family:",m.OneAppTokens.typography.textSecondary,";font-size:",m.OneAppTokens.typography.textSecondary.fontSize,";font-weight:",m.OneAppTokens.typography.textSecondary.fontWeight,";line-height:",m.OneAppTokens.typography.textSecondary.lineHeight,";"),A=(0,o.default)(({type:e,url:t,...r})=>{let n,i=(n=((0,h.getCountry)()||"SE").toLowerCase(),"APPLE"===e?`/app-icons/appstore-icon-${n}.svg`:`/app-icons/googleplay-icon-${n}.svg`);return(0,l.jsx)(g,{href:t,...r,children:(0,l.jsx)(f.default,{alt:e,height:55,loader:d.nextImageLoader,src:i,width:135})})},{target:"e1bwzozg10"})("margin-bottom:",(0,r.pxToRem)(16),"rem;&:last-of-type{margin-bottom:0;}");e.i(916421);var N=e.i(800483);let P=({createAccount:e})=>(0,l.jsx)(l.Fragment,{children:e&&(0,l.jsx)(_,{as:"a",href:e.link,variant:"primary",children:e.text})});
231var R=e.i(425849),D=e.i(38726);let C=({href:e,children:t})=>(0,l.jsx)(w,{href:e,children:t}),L=({items:e,pathname:t})=>{let r=e.map(e=>{let r=e.link3.to,n=(0,R.rewriteUrlForStartPage)(r),i=(0,D.isActiveInMainMenu)({href:n,pathname:t});return(0,l.jsx)(S,{"aria-current":i?"page":void 0,children:(0,l.jsx)(C,{href:n,children:e.name})},r)});return(0,l.jsx)(l.Fragment,{children:r})},F=({appStore:e,googlePlay:t,t:r})=>(0,l.jsx)(l.Fragment,{children:e&&t&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I,{children:r("STREAM_WITH_BRAND_APP",{brand:"Teliaplay"})}),(0,l.jsx)(A,{type:"APPLE",url:e.link}),(0,l.jsx)(A,{type:"GOOGLE",url:t.link})]})});e.i(693111);var M=e.i(574030),$=e.i(448689),j=e.i(574640);let V=({login:e})=>{let t=(0,j.usePathname)();return(0,l.jsx)(l.Fragment,{children:e&&(0,l.jsx)(_,{as:"a",href:e.link,iconName:e.iconName,onClick:()=>{M.tracker.trackLoginAction({login_action_type:"nav_login",page_name:(0,$.getPageNameForLoginTracking)(t??"")}),M.tracker.releaseEvents()},variant:"secondary",children:e.text})})},U={L:(0,r.pxToRem)(80),S:(0,r.pxToRem)(56)};(0,r.pxToRem)(24),(0,r.pxToRem)(80),(0,r.pxToRem)(88);let B=(0,y.css)(":root{--header-height:5.6rem;",i.mq.L`
232    --header-height: 8rem;
233  `,"}"),z=(0,o.default)("header",{target:"e19r5pey0"})("z-index:3;top:0;right:0;left:0;position:fixed;"),q=(0,o.default)(s.DesktopNav,{target:"e19r5pey1"})("display:none;",i.mq.L`
234    display: flex;
235  `),G=(0,o.default)(({appStore:e,createAccount:t,googlePlay:r,isOpen:n,items:i,login:o,setIsOpen:a,...s})=>{let{t:p}=(0,N.useTranslation)(),d=(0,j.usePathname)(),[h,f]=(0,c.useState)(void 0);(0,c.useEffect)(()=>{f((d??"").split("?")[0])},[d]);let g=(0,c.useRef)(void 0);return(0,l.jsx)(u.AnimatePresence,{children:n&&(0,l.jsxs)(v,{...s,children:[(0,l.jsx)(b,{animate:"visible",exit:"hidden",initial:"hidden",onClick:()=>a(!1),variants:{hidden:{opacity:0,transition:{duration:.3}},visible:{opacity:1,transition:{duration:.3}}}}),(0,l.jsxs)(x,{animate:n?"visible":"hidden",drag:"x",dragConstraints:{left:-300,right:0},dragDirectionLock:!0,dragElastic:!1,dragMomentum:!1,exit:"hidden",initial:"hidden",onDirectionLock:e=>{g.current=e},onDragEnd:(e,{offset:t})=>{"x"===g.current&&t.x<0&&a(!1),g.current=void 0},variants:{hidden:{left:-300,transition:{duration:.3}},visible:{left:0,transition:{duration:.3}}},children:[(0,l.jsx)(E,{role:"list",children:(0,l.jsx)(L,{items:i,pathname:h})}),(0,l.jsxs)(k,{children:[(0,l.jsxs)(O,{children:[(0,l.jsx)(P,{createAccount:t}),(0,l.jsx)(V,{login:o})]}),(0,l.jsx)(F,{appStore:e,googlePlay:r,t:p})]})]})]})})},{target:"e19r5pey2"})(i.mq.L`
236    display: none;
237  `),K=(0,o.default)("div",{target:"e19r5pey3"})("width:100%;"),H=(0,o.default)("nav",{target:"e19r5pey4"})("overflow:hidden;z-index:1;box-sizing:border-box;padding:0 ",(0,r.pxToRem)(16),"rem;display:flex;height:var(--header-height);align-items:center;justify-content:left;width:100%;transition:background-color 0.1s ease;background-color:",({isSolidNavBackground:e})=>e?m.OneAppTokens.color.background.primary:"transparent",";",i.mq.L`
238    padding: 0 ${(0,r.pxToRem)(32)}rem;
239  `),Q=(0,o.default)("nav",{target:"e19r5pey5"})("transition:background-color 0.1s ease;display:",({showSearch:e})=>e?"none":"flex",";background-color:",({isSolidNavBackground:e})=>e?m.OneAppTokens.color.background.primary:"transparent",";"),W=(0,o.default)(a.BrandLogo,{target:"e19r5pey6"})("flex-grow:1;display:flex;justify-content:center;",i.mq.L`
240    flex-grow: 0;
241    margin-right: ${(0,r.pxToRem)(32)}rem;
242  `),Y=(0,o.default)("div",{target:"e19r5pey7"})("display:flex;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;padding:",(0,r.pxToRem)(8),"rem ",(0,r.pxToRem)(16),"rem;",i.mq.L`
243    display: none;
244  `,"  svg{height:24px;width:24px;}"),X=(0,o.default)(t.Button,{target:"e19r5pey8"})("display:flex;height:48px;width:48px;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;background-color:",m.OneAppTokens.color.button.ghostDefault,";:hover{background-color:",m.OneAppTokens.color.button.ghostHover,";}svg{height:24px;width:24px;}",i.mq.L`
245    display: none;
246  `),J=(0,o.default)(n.Icon,{target:"e19r5pey9"})("display:flex;height:24px;width:24px;"),Z=(0,o.default)(t.Button,{target:"e19r5pey10"})("padding:0;");e.s(["HEADER_HEIGHT",0,U,"StyledBrandLogo",0,W,"StyledCollapsibleButton",0,Z,"StyledDesktopNav",0,q,"StyledHeaderContainer",0,z,"StyledIcon",0,J,"StyledIconWrapperMobileNav",0,X,"StyledMainMenu",0,H,"StyledMainMenuWrapper",0,K,"StyledMenuIconWrapper",0,Y,"StyledMobileNav",0,G,"StyledSubPagesMenuWrapper",0,Q,"headerGlobalStyles",0,B],393978),e.i(703206);var ee=e.i(105745),et=e.i(41217);let er=(0,c.createContext)({height:0,setHeight:()=>void 0}),en=()=>(0,c.useContext)(er);e.s(["MessagesHeightProvider",0,({children:e})=>{let[t,r]=(0,c.useState)(0),n=(0,c.useMemo)(()=>({height:t,setHeight:r}),[t,r]);return(0,l.jsx)(er.Provider,{value:n,children:e})},"useMessagesHeightContext",0,en],405376);let ei=(0,o.default)("span",{target:"ehcjb590"})("position:absolute;overflow:hidden;clip-path:inset(50%);margin:-1px;padding:0;border:0;white-space:nowrap;"),eo={ALERT:()=>(0,y.css)("background:",m.OneAppTokens.color.infoDialogue.negativeBackgroun
246dBold,";color:",m.OneAppTokens.color.text.primaryDark,";path:last-child[fill]{fill:",m.OneAppTokens.color.text.primaryDark,";}*[stroke]{stroke:",m.OneAppTokens.color.text.primaryDark,";}a{color:",m.OneAppTokens.color.text.primaryDark,";}"),INFO:()=>(0,y.css)("background:",m.OneAppTokens.color.infoDialogue.attentionBackgroundBold,";color:",m.OneAppTokens.color.text.primaryDark,";path:last-child[fill]{fill:",m.OneAppTokens.color.text.primaryDark,";}*[stroke]{stroke:",m.OneAppTokens.color.text.primaryDark,";}a{color:",m.OneAppTokens.color.text.primaryDark,";}")},ea=(0,o.default)("div",{target:"ehcjb591"})("display:flex;flex-flow:row nowrap;padding:",(0,r.pxToRem)(16),"rem;",i.mq.M`
247    border-radius: ${(0,r.pxToRem)(4)}rem;
248    align-items: center;
249    padding: ${(0,r.pxToRem)(16)}rem ${(0,r.pxToRem)(24)}rem;
250  `,"  font-size:",m.OneAppTokens.typography.textPrimary.fontSize,";line-height:",m.OneAppTokens.typography.textPrimary.lineHeight,";font-weight:",m.OneAppTokens.typography.textPrimary.fontWeight,";font-family:",m.OneAppTokens.typography.textPrimary.fontFamily,";",({severity:e})=>eo[e]),es=(0,o.default)("span",{target:"ehcjb592"})("flex:1 1 auto;color:currentColor;display:inline;",i.mq.M`
251    display: flex;
252    justify-content: space-between;
253  `),el=(0,o.default)("span",{target:"ehcjb593"})("margin-right:",(0,r.pxToRem)(4),"rem;"),ec=(0,o.default)("a",{target:"ehcjb594"})("white-space:nowrap;color:inherit;font-size:",m.OneAppTokens.typography.textLink.fontSize,";line-height:",m.OneAppTokens.typography.textLink.lineHeight,";font-weight:",m.OneAppTokens.typography.textLink.fontWeight,";font-family:",m.OneAppTokens.typography.textLink.fontFamily,";"),eu=(0,o.default)(n.Icon,{target:"ehcjb595"})("width:24px;height:24px;margin-right:",(0,r.pxToRem)(12),"rem;flex-shrink:0;align-self:flex-start;",i.mq.M`
254    width: 32px;
255    height: 32px;
256    margin-right: ${(0,r.pxToRem)(16)}rem;
257  `),ep=(0,o.default)("button",{target:"ehcjb596"})("background-color:transparent;cursor:pointer;align-self:flex-start;flex-shrink:0;border:0;padding:0;margin-left:",(0,r.pxToRem)(8),"rem;height:24px;",i.mq.M`
258    height: 32px;
259  `,"  svg{width:24px;height:24px;",i.mq.M`
260      width: 32px;
261      height: 32px;
262    `,"}");var ed=e.i(668492);let eh="REMOVED_MESSAGES",ef=()=>(0,ee.getLocalStorage)(eh,{});e.s(["Messages",0,({messages:e})=>{let{t}=(0,N.useTranslation)(),[r,i]=(0,c.useState)(ef()),o=(0,c.useRef)(null),a=(0,et.useSize)(o),{setHeight:s}=en();(0,c.useEffect)(()=>{o.current&&e.length>0&&setTimeout(()=>{o.current?.focus()},100)},[e]),(0,c.useEffect)(()=>{a&&s(a.height)},[a,s]);let u=(0,c.useCallback)(async e=>{var t;i(t=>({...t,[e.id]:!0})),t=e.id,(0,ee.setLocalStorage)(eh,{...ef(),[t]:!0})},[]),p=(0,c.useCallback)(({id:e})=>!(0,ed.isDefined)(r[e]),[r]);return(0,l.jsxs)("section",{"aria-label":t("A11Y_MESSAGES"),ref:o,tabIndex:-1,children:[(0,l.jsx)(ei,{as:"h2",children:t("A11Y_IMPORTANT_MESSAGE")}),e.filter(p).map(({id:e,content:r,url:i,severity:o})=>(0,l.jsxs)(ea,{"aria-label":`${"ALERT"===o?t("A11Y_MESSAGE_SEVERITY_ALERT"):t("A11Y_MESSAGE_SEVERITY_INFO")} ${r}`,"aria-live":"ALERT"===o?"assertive":"polite",role:"ALERT"===o?"alert":"status",severity:o,children:[(0,l.jsx)(eu,{"aria-hidden":"true",name:"ALERT"===o?"Warning":"Alert"}),(0,l.jsxs)(es,{children:[(0,l.jsx)(el,{"aria-hidden":"true",children:r}),(0,ed.isDefined)(i)&&(0,l.jsx)(ec,{href:i,children:t("READ_MORE")})]}),(0,l.jsx)(ep,{"aria-label":t("A11Y_CLOSE_MESSAGE"),onClick:()=>u({id:e}),children:(0,l.jsx)(n.Icon,{"aria-hidden":"true",name:"Close"})})]},e))]})}],567668),e.s([],819972),e.i(954929);var eg=e.i(821816);let ey={L:(0,r.pxToRem)(112),M:(0,r.pxToRem)(112),S:(0,r.pxToRem)(64)},em=(0,o.default)("form",{target:"e1ti8mc20"})("width:100%;display:flex;justify-content:start;align-items:center;padding:0 ",(0,r.pxToRem)(16),"rem;height:",ey.S,"rem;background-color:",m.OneAppTokens.color.background.tertiary,";",i.mq.M`
263    padding: 0 ${(0,r.pxToRem)(40)}rem;
264    height: ${ey.M}rem;
265  `," ",i.mq.L`
266    padding: 0 ${(0,r.pxToRem)(80)}rem;
267    height: ${ey.L}rem;
268  `),ev=(0,o.default)(n.Icon,{target:"e1ti8mc21"})("display:flex;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;height:32px;width:32px;margin-right:",(0,r.pxToRem)(8),"rem;",i.mq.L`
269     width:40px;
270     height: 40px;
271  `,";"),eb=(0,o.default)("input",{target:"e1ti8mc22"})("width:100%;height:100%;background:transparent;border:none;box-shadow:none;font-family:",m.OneAppTokens.typography.headingTertiary.fontFamily,";font-size:",m.OneAppTokens.typography.headingTertiary.fontSize,";font-weight:",m.OneAppTokens.typography.headingTertiary.fontWeight,";line-height:",m.OneAppTokens.typography.headingTertiary.lineHeight,";color:",m.OneAppTokens.color.text.primary,";caret-color:",m.OneAppTokens.color.text.primary,";&::placeholder{color:",m.OneAppTokens.color.text.tertiary,";}&:focus{outline:2px solid ",m.OneAppTokens.color.border.buttonGhostFocus,";outline-offset:2px;}");e.s(["SEARCH_BAR_HEIGHT",0,ey,"StyledSearchBar",0,em,"StyledSearchIcon",0,ev,"StyledSearchInput",0,eb],737529),e.s(["SearchBar",0,()=>{let{searchQuery:e,setSearchQuery:t}=(0,eg.useSearchContext)(),{t:r}=(0,N.useTranslation)(),n=(0,c.useId)(),i=(0,c.useCallback)(e=>{t(e.target.value)},[t]);return(0,l.jsxs)(em,{"aria-label":r("SEARCH_PLACEHOLDER"),as:"form","data-testid":"search-bar",onSubmit:e=>e.preventDefault(),role:"search",children:[(0,l.jsx)("label",{className:"sr-only",htmlFor:`search-input-${n}`,children:r("SEARCH_PLACEHOLDER")}),(0,l.jsx)(ev,{"aria-hidden":"true",name:"Search"}),(0,l.jsx)(eb,{"aria-label":r("SEARCH_PLACEHOLDER"),autoFocus:!0,"data-testid":"search-input",defaultValue:e??void 0,id:`search-input-${n}
271`,onChange:i,placeholder:r("SEARCH_PLACEHOLDER"),type:"text"})]})}],600725),e.s([],443290);var ex=e.i(703402);let eE=(...e)=>{};e.s(["logDev",0,eE],201738);let eS=e=>{switch(e?.link3?.__typename){case"LinkPanel":return ex.LinkTypeSubPages.LinkPanel;case"LinkStatic":return ex.LinkTypeSubPages.LinkStatic;default:return ex.LinkTypeSubPages.LinkPage}},eT=e=>"object"==typeof e&&e?Object.entries(e).reduce((e,t)=>{let[r,n]=t,i=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return"object"==typeof n?`${e}${i}{${eT(n)}}`:`${e}${i}:${n};`},""):"";e.s(["objectStyleToString",0,eT],394247);var ew=e.i(234383);let ek=(0,y.css)(":root{--sub-header-height:8rem;",i.mq.L`
272      --sub-header-height: 7.2rem;
273    `,"}"),eO=(0,o.default)("ul",{target:"eksjbil0"})("z-index:3;",i.mq.L`
274    margin-left: ${(0,r.pxToRem)(32)}rem;
275  `,"  list-style-type:none;padding:0;position:relative;margin-bottom:",(0,r.pxToRem)(16),"rem;color:",m.OneAppTokens.color.text.primary,";overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;flex:1 0 auto;display:flex;align-items:flex-start;width:100%;justify-content:left;gap:",(0,r.pxToRem)(6),"rem;",eT(m.OneAppTokens.typography.navigationText),";"),e_=(0,y.css)("display:flex;cursor:pointer;white-space:nowrap;padding:",(0,r.pxToRem)(12),"rem ",(0,r.pxToRem)(16),"rem;border-radius:",(0,r.pxToRem)(6),"rem;transition:background-color 0.3s ease;"),eI=(0,o.default)(ew.default,{shouldForwardProp:e=>"isActive"!==e,target:"eksjbil1"})(e_,"  &:hover{background:",m.OneAppTokens.color.navigation.currentSecondary,";}background-color:",({isActive:e})=>e?m.OneAppTokens.color.navigation.currentSecondary:"transparent",";"),eA=(0,o.default)("a",{target:"eksjbil2"})(e_,"  &:hover{background:",m.OneAppTokens.color.navigation.currentSecondary,";}background-color:",({isActive:e})=>e?m.OneAppTokens.color.navigation.currentSecondary:"transparent",";");e.s(["SubPagesMenu",0,({subPageLinks:e})=>{let t=(0,j.usePathname)();return(0,ed.isDefined)(e)&&0!==e.length?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(y.Global,{styles:[ek]}),(0,l.jsx)(eO,{role:"list",children:e.map((e,r)=>{var n;let i,o,a=e?.name??(i=e.link3.to).charAt(0).toUpperCase()+i.slice(1),s=(n=t??"",(eS(e)===ex.LinkTypeSubPages.LinkPanel?(0,ex.generateLinkPanelUrl)({link3:e.link3,prefix:n}):(0,ex.generateLinkPageUrl)({link3:e.link3,prefix:n}))===n),c=eS(e),u=(o=e?.link3?.to)||(eE("Link is missing for subPageLink"),""),p=(0,ex.getLinkUrl)({link3:{to:u},prefix:t??void 0,type:c});return(0,l.jsx)("li",{children:s?(0,l.jsx)(eA,{href:p,isActive:s,children:a},r):(0,l.jsx)(eI,{href:p,isActive:s,prefetch:!1,children:a},r)},r)})})]}):null}],249520),e.s([],500920);var eN=e.i(580586),eP=e.i(551725),eR=e.i(196783),eD=e.i(13127),eC=e.i(459229);let eL=async()=>{let e=eD.Log.instance()("getMessages");try{let e=eP.DataManager.instance(),t=eC.ServiceConfig.getService("messagebar"),{client:r,country:n}=await eN.ClientInformationIF.resolve().getClientInformation(),i=r.toLowerCase(),o=n.toLowerCase(),a=t.getUrl(`/${o}/${i}/messagebar.json`);return await e.sendGet(a,"messagebars")}catch(t){t instanceof eR.RequestContentNotFoundError||e.error("Failed to fetch messages",t)}return[]};e.s(["useGetMessages",0,()=>{var e;let t,r,n="/home"===(e=(0,j.usePathname)())?[""]:e?e.replace("/","").split("/"):[],[i,o]=(0,c.useState)([]),a=(r=(t=i??[]).filter(e=>!(e.filterPageIds&&e.filterPageIds.length>0)),[...t.filter(({filterPageIds:e})=>!!e&&e.some(e=>n.includes(e))),...r]);return(0,c.useEffect)(()=>{eL().then(e=>{o(e)})},[]),{messages:a}}],665714)},593692,38726,448689,647442,e=>{"use strict";var t=e.i(728362);e.i(954929);var r=e.i(821816),n=e.i(574640),i=e.i(438337);e.i(717590);var o=e.i(618046),a=e.i(804967),s=e.i(249221);e.i(251825);var l=e.i(294224);let c=({variant:e="primary"})=>(0,s.css)("font-family:",l.OneAppTokens.typography.navigationTextEmphasis.fontFamily,";font-size:",l.OneAppTokens.typography.navigationTextEmphasis.fontSize,";font-weight:",l.OneAppTokens.typography.navigationTextEmphasis.fontWeight,";line-height:",l.OneAppTokens.typography.navigationTextEmphasis.lineHeight,";text-transform:",l.OneAppTokens.typography.navigationTextEmphasis.textTransform,";background-color:","primary"===e?l.OneAppTokens.color.navigation.currentPrimary:l.OneAppTokens.color.navigation.currentSecondary,";color:","primary"===e?l.OneAppTokens.color.text.primaryDark:l.OneAppTokens.color.text.primary,";& #t1{opacity:1;}& #t2{opacity:0;position:absolute;padding-left:16px;left:0;}"),u=({variant:e="primary"})=>(0,s.css)("font-family:",l.OneAppTokens.typography.navigationTextEmphasis.fontFamily,";font-size:",l.OneAppTokens.typography.navigationTextEmphasis.fontSize,";font-weight:",l.OneAppTokens.typography.navigationTextEmphasis.fontWeight,";line-height:",l.OneAppTokens.typography.navigationTextEmphasis.lineHeight,";text-transform:",l.OneAppTokens.typography.navigationTextEmphasis.textTransform,";font-family:",l.OneAppTokens.typography.navigationText.fontFamily,";font-size:",l.OneAppTokens.typography.navigationText.fontSize,";font-weight:",l.OneAppTokens.typography.navigationText.fontWeight,";line-height:",l.OneAppTokens.typography.navigationText.lineHeight,";text-transform:",l.OneAppTokens.typography.navigationText.textTransform,";background-color:transparent;color:",l.OneAppTokens.color.text.primary,";.user-is-tabbing &:focus{box-shadow:0 0 0 3px ",l.OneAppTokens.color.navigation.currentPrimary,";}& #t1{opacity:0;}& #t2{opacity:1;position:absolute;
275left:0;text-align:center;width:100%;}&:hover{& #t1{opacity:1;}& #t2{opacity:0;}font-family:",l.OneAppTokens.typography.navigationTextEmphasis.fontFamily,";font-size:",l.OneAppTokens.typography.navigationTextEmphasis.fontSize,";font-weight:",l.OneAppTokens.typography.navigationTextEmphasis.fontWeight,";line-height:",l.OneAppTokens.typography.navigationTextEmphasis.lineHeight,";text-transform:",l.OneAppTokens.typography.navigationTextEmphasis.textTransform,";background-color:","primary"===e?l.OneAppTokens.color.navigation.currentPrimary:l.OneAppTokens.color.navigation.currentSecondary,";color:","primary"===e?l.OneAppTokens.color.text.primaryDark:l.OneAppTokens.color.text.primary,";}"),p=(0,s.css)("display:inline-block;box-sizing:border-box;border:0;padding:12px 16px;white-space:nowrap;text-decoration:none;"),d=(0,i.default)("a",{target:"egwpkl90"})(p,"  border-radius:",l.OneAppTokens.radius.navItem,";transition:background-color 0.3s ease,color 0.3s ease;&:focus{outline:none;}",({isActive:e})=>e?c:u,"  position:relative;"),h=(0,i.default)("ul",{target:"egwpkl91"})("display:flex;justify-content:left;padding:0;"),f=(0,i.default)("div",{target:"egwpkl92"})("display:flex;align-items:center;margin-left:auto;"),g=(0,i.default)(o.Button,{target:"egwpkl93"})("display:flex;height:48px;width:48px;margin-right:",(0,a.pxToRem)(16),"rem;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;background-color:",l.OneAppTokens.color.button.ghostDefault,";:hover{background-color:",l.OneAppTokens.color.button.ghostHover,";}svg{height:24px;width:24px;}"),y=(0,i.default)("li",{target:"egwpkl94"})("margin-right:",(0,a.pxToRem)(8),"rem;list-style:none;"),m=(0,i.default)(o.Button,{target:"egwpkl95"})("height:auto;padding-top:",(0,a.pxToRem)(8),"rem;padding-bottom:",(0,a.pxToRem)(8),"rem;margin-right:",(0,a.pxToRem)(16),"rem;white-space:nowrap;&:last-of-type{margin-right:0;}");e.i(826572);var v=e.i(425849),b=e.i(668492);let x=({pathname:e,href:t})=>{let r=encodeURI(t);if(!(0,b.isDefined)(e))return!1;let n=e.split("/"),i=n.length>1?n[1]:n[0];return r===`/${i}`};e.s(["isActiveInMainMenu",0,x],38726);let E=({isActive:e,href:r,children:n})=>(0,t.jsx)(d,{"aria-current":e?"page":"false",href:r,isActive:e,children:n}),S=({items:e,pathname:r})=>{let n=e.map(e=>{let n=e?.link3.to,i=(0,v.rewriteUrlForStartPage)(n),o=x({href:i,pathname:r}),a=`${e?.name??""}-${i}`,s=(0,t.jsxs)(t.Fragment,{children:[" ",(0,t.jsx)("span",{id:"t1",style:{fontWeight:500},children:e.name}),(0,t.jsx)("span",{"aria-hidden":"true",id:"t2",children:e.name})]});return(0,t.jsx)(y,{children:(0,t.jsx)(E,{href:i,isActive:o,children:s})},a)});return(0,t.jsx)(t.Fragment,{children:n})};e.i(693111);var T=e.i(574030);let w=new Set(["","/","/home"]),k=[{pattern:/^\/movie\/([^/]+)$/,toPageName:([,e])=>({id:"movie_content_details",params:{assetId:e}})},{pattern:/^\/sportEvent\/([^/]+)$/,toPageName:([,e])=>({id:"sport_content_details",params:{assetId:e}})},{pattern:/^\/panel\/([^/]+)$/,toPageName:([,e])=>({id:"panel",params:{panelId:e}})},{pattern:/^\/series\/[^/]+\/[^/]+\/[^/]+\/([^/]+)$/,toPageName:([,e])=>({id:"episode_content_details",params:{mediaId:e}})},{pattern:/^\/series\/([^/]+)\/([^/]+)$/,toPageName:([,e,t])=>({id:"series_season",params:{seasonNumber:t,seriesId:e}})},{pattern:/^\/series\/([^/]+)$/,toPageName:([,e])=>({id:"series_content_details",params:{seriesId:e}})}],O=e=>{let[t]=e.split("?");if(w.has(t))return{id:"root"};if("/search"===t)return{id:"search"};for(let{pattern:e,toPageName:r}of k){let n=e.exec(t);if(n)return r(n)}let[,r]=t.split("/");return{id:"graph",params:{pageId:r??""}}};e.s(["getPageNameForLoginTracking",0,O],448689);let _=({login:e})=>{let r=(0,n.usePathname)();return(0,t.jsx)(t.Fragment,{children:e&&(0,t.jsx)(m,{as:"a",href:e.link,iconName:e.iconName,onClick:()=>{T.tracker.trackLoginAction({login_action_type:"nav_login",page_name:O(r??"")}),T.tracker.releaseEvents()},variant:"secondary",children:e.text})})},I=({createAccount:e})=>(0,t.jsx)(t.Fragment,{children:e&&(0,t.jsx)(m,{as:"a",href:e.link,variant:"primary",children:e.text})});var A=e.i(136350);e.i(916421);var N=e.i(800483);let P=({setSearchQuery:e,showSearch:r,setShowSearch:n})=>{let{t:i}=(0,N.useTranslation)();return(0,t.jsx)(t.Fragment,{children:r?(0,t.jsx)(g,{"aria-label":i("CLOSE_SEARCH"),onClick:()=>{e(""),n(!1)},variant:"ghost",children:(0,t.jsx)(A.Icon,{"aria-hidden":!0,name:"Close"})}):(0,t.jsx)(g,{"aria-label":i("SEARCH"),onClick:()=>n(!0),variant:"ghost",children:(0,t.jsx)(A.Icon,{"aria-hidden":!0,name:"Search"})})})};var R=e.i(147754);e.s(["DesktopNav",0,({createAccount:e,items:i,login:o,...a})=>{let{setShowSearch:s,showSearch:l,setSearchQuery:c,hideSearchButton:u}=(0,r.useSearchContext)(),p=(0,n.usePathname)(),[d,g]=(0,R.useState)(void 0);return(0,R.useEffect)(()=>{g((p??"").split("?")[0])},[p]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(h,{role:"list",...a,children:(0,t.jsx)(S,{items:i,pathname:d})}),(0,t.jsxs)(f,{...a,children:[!u&&(0,t.jsx)(P,{setSearchQuery:c,setShowSearch:s,showSearch:l}),(0,t.jsx)(I,{createAccount:e}),(0,t.jsx)(_,{login:o})]})]})}],647442),e.s([],593692)},457980,744180,e=>{"use strict";var t=e.i(728362);e.i(859391);var r=e.i(750368),n=e.i(393978),i=e.i(147754);e.i(717590);var o=e.i(136350);e.i(954929);var a=e.i(821816);e.i(819972);var s=e.i(567668),l=e.i(668492);e.i(443290);var c=e.i(600725);e.i(500920);var u=e.i(249520),p=e.i(665714);e.i(916421);var d=e.i(800483),h=e.i(523466),f=e.i(249221);let g=({items:e,secondaryMenuItems:r,messages:l,subPageLinks:c})=>{let p=(0,h.useMediaQueryMinWidth)("L"),[f,g]=(0,i.useState)(!1),{showSearch:m,setShowSearch:v,setSearchQuery:b,hideSearchButton:x}=(0,a.useSearchContext)(),{createAccount:E,login:S,appStore:T,googlePlay:w}=r,{t:k}=(0,d.useTranslation)(),O=(0,t.jsxs)(t.Fragment,{children:[p||void 0===p?(0,t.jsx)(n.StyledDesktopNav,{createAccount:E,items:e,login:S}):(0,t.jsx)(n.StyledMobileNav,{appStore:T,createAccount:E,googlePlay:w,isOpen:f,items:e,login:S,setIsOpen:g}),!x&&(0,t.jsx)(t.Fragment,{children:m?(0,t.jsx)(n.StyledIconWrapperMobileNav,{"aria-label":k("CLOSE_SEARCH"),onClick:()=>{v(!1),b("")},variant:"ghost",children:(0,t.jsx)(n.StyledIcon,{"aria-hidden":!0,name:"Close"})}):(0,t.jsx)(n.StyledIconWrapperMobileNav,{"aria-label":k("SEARCH"),onClick:()=>{v(!0)},variant:"ghost",children:(0,t.jsx)(n.StyledIcon,{"aria-hidden":!0,name:"Search"})})})]}),_=(0,t.jsx)(n.StyledMenuIconWrapper,{onClick:()=>{g(!0)},children:(0,t.jsx)(n.StyledCollapsibleButton,{"aria-expanded":f,"aria-label":k("A11Y_MENU_COLLAPSIBLE_BUTTON"),variant:"ghost",children:(0,t.jsx)(o.Icon,{name:"Menu"})})});return(0,t.jsx)(y,{menu:O,messages:(0,t.jsx)(s.Messages,{messages:l}),mobileMenuButton:_,subPagesMenu:(0,t.jsx)(u.SubPagesMenu,{subPageLinks:c})})},y=({menu:e,messages:o,mobileMenuButton:s,subPagesMenu:c})=>{let{t:u}=(0,d.useTranslation)(),p=(0,r.useScrollPosition)(),[h,f]=(0,i.useState)(!1),{showSearch:g}=(0,a.useSearchContext)(),y=(0,l.isDefined)(o)&&o,m=(0,l.isDefined)(e)&&e,v=(0,l.isDefined)(s)&&s,b=(0,l.isDefined)(c)&&!g&&c;return(0,i.useEffect)(()=>{f(!!(p&&p>0))},[p]),(0,t.jsxs)(n.StyledMainMenuWrapper,{children:[y,(0,t.jsxs)(n.StyledMainMenu,{"aria-label":u("A11Y_NAVBAR_MAIN_MENU"),isSolidNavBackgroun
275d:h||g,children:[v,(0,t.jsx)(n.StyledBrandLogo,{href:"/"}),m]}),(0,t.jsx)(n.StyledSubPagesMenuWrapper,{"aria-label":u("A11Y_NAVBAR_SUB_MENU"),isSolidNavBackground:h,showSearch:g,children:b})]})};e.s(["Header",0,({header:e,subPagesLinks:r})=>{let{showSearch:i}=(0,a.useSearchContext)(),{messages:o}=(0,p.useGetMessages)();return(0,t.jsxs)(n.StyledHeaderContainer,{children:[(0,t.jsx)(f.Global,{styles:[n.headerGlobalStyles]}),(0,t.jsx)(g,{items:e?.mainMenu?.items??[],messages:o,secondaryMenuItems:e.secondaryMenu,subPageLinks:r??[]}),i&&(0,t.jsx)(c.SearchBar,{})]})},"HeaderBase",0,y],744180),e.s([],457980)},946381,e=>{"use strict";e.s(["generateUrlForLoginButton",0,e=>{let t=["/","","/home"].includes(e)?"":`?returnUrl=${e}`;return`/login${t}`}])},990713,e=>{"use strict";e.s(["CONSTANTS",0,{HOME_PAGE_ID:"welcome-page",IMAGE_INTERSECTION_LOAD_ROOT_MARGIN:"50px",IMAGE_TRANSITION_DURATION:.25,TELIA_PLAY_TITLE:"Telia Play"},"breakpointWidths",0,{L:1025,M:769,S:480,XL:1440}])},314627,179734,360694,642925,847922,680760,734744,751489,668492,906050,e=>{"use strict";let t;var r=e.i(553049),n=e.i(13127),i=e.i(828265);let o=[],a=()=>n.Log.instance()("CoreLog"),s=()=>!!i.Config.get("app/common-sdk-initialized"),l=()=>{let e=o.splice(0),t=a();e.forEach(e=>t.warn(e))},c=()=>{if(!s()){t=setTimeout(c,5e3);return}l()},u=e=>{if(!s()){o.push(e),clearTimeout(t),t=setTimeout(c,5e3);return}o.length&&(clearTimeout(t),l()),a().warn(e)},p=["SE","NO","FI"],d=()=>(p.includes("SE")||u('"SE" is not a valid NEXT_PUBLIC_COUNTRY, using default SE'),"SE");e.s(["getCountry",0,d],179734);let h=["PROD","PILOT"],f=()=>{let e="PROD";return h.includes(e)?e:(u(`"${e}" is not a valid NEXT_PUBLIC_ENVIRONMENT, using default PROD`),"PROD")};e.s(["getEnvironment",0,f],360694),e.s([],314627);let g={pilot:{FI:{"app/base/url":"https://teliaplay-pilot.fi","app/client/version":r.default.env.npm_package_version||"0.1.0","app/country":"FI","app/environment":"PILOT","app/google-site-verification":"z7w8V2qGdshWinwpZrAknLg5BUnwQE-UcldWAqNxMnk","app/graphql/url":"https://graphql-telia.t6a-stage.net/graphql","app/graphql/server-url":"https://graphql.graphql.stg.tv-edge.net/graphql","app/image-proxy/url":"https://director-pilot-image.streaming.telia.com","app/menu/app-store-url":"https://apps.apple.com/fi/app/telia-play/id760266794","app/menu/create-account-url":"https://www.telia.fi/kauppa/tv-ja-viihde/suosittua-nyt?utm_source=teliaplay&utm_medium=referral&utm_campaign=button-osta-telia-play","app/menu/faq-url":"","app/menu/google-play-url":"https://play.google.com/store/apps/details?id=com.teliasonera.sonera.viihde","app/menu/login-url":"https://teliaplay-pilot.fi/login","app/metadata/apikey":r.default.env.METADATA_API_KEY||"","app/metadata/url":"https://metadataexportservice.externalapi-pilot.live.tv.telia.net","app/one-trust-id":"7278bee1-1440-4233-9dd2-12bc30d34fbf-test","app/subscription-panel/create-account-url":"https://www.telia.fi/kauppa/tv-ja-viihde/suosittua-nyt?utm_source=teliaplay&utm_medium=referral&utm_campaign=button-kaikki-paketit","app/support-web/url":"","app/telia/url":"https://www.telia.fi","app/upsell/url":"https://www.telia.fi/kauppa/tv-ja-viihde/kanavapaketit?utm_source=teliaplay&utm_medium=referral&utm_campaign=sisallot-button-osta"},NO:{"app/base/url":"https://teliaplay-pilot.no","app/client/version":r.default.env.npm_package_version||"0.1.0","app/country":"NO","app/environment":"PILOT","app/google-site-verification":"zjjIs1JqawQ6vG2tFwaSvsYuvr3MO1EApb1qA-Fce7s","app/graphql/url":"https://graphql-telia.t6a-stage.net/graphql","app/graphql/server-url":"https://graphql.graphql.stg.tv-edge.net/graphql","app/image-proxy/url":"https://director-pilot-image.streaming.telia.com","app/menu/app-store-url":"https://apps.apple.com/no/app/telia-play/id1213922701","app/menu/create-account-url":"https://www.telia.no/tv","app/menu/faq-url":"","app/menu/google-play-url":"https://play.google.com/store/apps/details?id=no.get.play&hl=no","app/menu/login-url":"https://teliaplay-pilot.no/login","app/metadata/apikey":r.default.env.METADATA_API_KEY||"","app/metadata/url":"https://metadataexportservice.externalapi-
275pilot.live.tv.telia.net","app/one-trust-id":"ae59e2f2-d29a-4def-b205-aef450ad44e3-test","app/subscription-panel/create-account-url":"https://www.telia.no/tv","app/support-web/url":"","app/telia/url":"https://telia.no","app/upsell/url":"https://www.telia.no/minside/bestilling/kanalpoeng/endre"},SE:{"app/base/url":"https://teliaplay-pilot.se","app/client/version":r.default.env.npm_package_version||"0.1.0","app/country":"SE","app/environment":"PILOT","app/google-site-verification":"z7w8V2qGdshWinwpZrAknLg5BUnwQE-UcldWAqNxMnk","app/graphql/url":"https://graphql-telia.t6a-stage.net/graphql","app/graphql/server-url":"https://graphql.graphql.stg.tv-edge.net/graphql","app/image-proxy/url":"https://director-pilot-image.streaming.telia.com","app/menu/app-store-url":"https://apps.apple.com/se/app/telia-play/id575521559","app/menu/create-account-url":"https://www.telia.se/tv/paket","app/menu/faq-url":"","app/menu/google-play-url":"https://play.google.com/store/apps/details?id=com.teliasonera.telia.playplus","app/menu/login-url":"/login","app/metadata/apikey":r.default.env.METADATA_API_KEY||"","app/metadata/url":"https://metadataexportservice.externalapi-pilot.live.tv.telia.net","app/one-trust-id":"eec9ae44-1e33-462a-989c-478dfc0b565d-test","app/subscription-panel/create-account-url":"https://www.telia.se/tv/paket","app/support-web/url":"https://support.teliaplay-pilot.se","app/telia/url":"https://telia.se","app/upsell/url":"https://www.telia.se/tv/paket"}},prod:{FI:{"app/base/url":"https://www.teliaplay.fi","app/client/version":r.default.env.npm_package_version||"0.1.0","app/country":"FI","app/environment":"PROD","app/google-site-verification":"lBxbFENIJy5cVZ6qSjc21lyTwkwaYufztXsfLfcPquM","app/graphql/url":"https://graphql-telia.t6a.net/graphql","app/graphql/server-url":"https://graphql.graphql.prd.tv-edge.net/graphql","app/image-proxy/url":"https://director-image.streaming.telia.com","app/menu/app-store-url":"https://apps.apple.com/fi/app/telia-play/id760266794","app/menu/create-account-url":"https://www.telia.fi/kauppa/tv-ja-viihde/suosittua-nyt?utm_source=teliaplay&utm_medium=referral&utm_campaign=button-osta-telia-play","app/menu/faq-url":"","app/menu/google-play-url":"https://play.google.com/store/apps/details?id=com.teliasonera.sonera.viihde","app/menu/login-url":"https://www.teliaplay.fi/login","app/metadata/apikey":r.default.env.METADATA_API_KEY||"","app/metadata/url":"https://metadataexportservice.externalapi-prod.live.tv.telia.net","app/one-trust-id":"7278bee1-1440-4233-9dd2-12bc30d34fbf","app/subscription-panel/create-account-url":"https://www.telia.fi/kauppa/tv-ja-viihde/suosittua-nyt?utm_source=teliaplay&utm_medium=referral&utm_campaign=button-kaikki-paketit","app/support-web/url":"","app/telia/url":"https://www.telia.fi","app/upsell/url":"https://www.telia.fi/kauppa/tv-ja-viihde/kanavapaketit?utm_source=teliaplay&utm_medium=referral&utm_campaign=sisallot-button-osta"},NO:{"app/base/url":"https://www.teliaplay.no","app/client/version":r.default.env.npm_package_version||"0.1.0","app/country":"NO","app/environment":"PROD","app/google-site-verification":"zjjIs1JqawQ6vG2tFwaSvsYuvr3MO1EApb1qA-Fce7s","app/graphql/url":"https://graphql-telia.t6a.net/graphql","app/graphql/server-url":"https://graphql.graphql.prd.tv-edge.net/graphql","app/image-proxy/url":"https://director-image.streaming.telia.com","app/menu/app-store-url":"https://apps.apple.com/no/app/telia-play/id1213922701","app/menu/create-account-url":"https://www.telia.no/tv","app/menu/faq-url":"","app/menu/google-play-url":"https://play.google.com/store/apps/details?id=no.get.play&hl=no","app/menu/login-url":"https://www.teliaplay.no/login","app/metadata/apikey":r.default.env.METADATA_API_KEY||"","app/metadata/url":"https://metadataexportservice.externalapi-prod.live.tv.telia.net","app/one-trust-id":"ae59e2f2-d29a-4def-b205-aef450ad44e3","app/subscription-panel/create-account-url":"https://www.telia.no/tv","app/support-web/url":"","app/telia/url":"https://telia.no","app/upsell/url":"https://www.telia.no/minside/bestilling/kanalpoeng/endre"},SE:{"app/base/url":"https://www.teliaplay.se","app/client/version":r.default.env.npm_package_version||"0.1.0","app/country":"SE","app/environment":"PROD","app/google-site-verification":"z7w8V2qGdshWinwpZrAknLg5BUnwQE-UcldWAqNxMnk","app/graphql/url":"https://graphql-telia.t6a.net/graphql","app/graphql/server-url":"https://graphql.graphql.prd.tv-edge.net/graphql","app/image-proxy/url":"https://director-image.streaming.telia.com","app/menu/app-store-url":"https://apps.apple.com/se/app/telia-play/id575521559","app/menu/create-account-url":"https://www.telia.se/tv/paket","app/menu/faq
275-url":"","app/menu/google-play-url":"https://play.google.com/store/apps/details?id=com.teliasonera.telia.playplus","app/menu/login-url":"https://www.teliaplay.se/login","app/metadata/apikey":r.default.env.METADATA_API_KEY||"","app/metadata/url":"https://metadataexportservice.externalapi-prod.live.tv.telia.net","app/one-trust-id":"eec9ae44-1e33-462a-989c-478dfc0b565d","app/subscription-panel/create-account-url":"https://www.telia.se/tv/paket","app/support-web/url":"https://support.teliaplay.se","app/telia/url":"https://telia.se","app/upsell/url":"https://www.telia.se/tv/paket"}}},y={pilot:{FI:{"common-sdk/Log/logLevel":"INFO","common-sdk/services/commercegateway/url":"https://commercegateway-telia.clientapi-pilot.live.tv.telia.net","common-sdk/services/cvsgateway/url":"https://cvsgateway-telia.t6a-pilot.net","common-sdk/services/eventtracker/url":"https://event-tracker.t6a-stage.net","common-sdk/services/messagebar/url":"https://messagebar.clientapi-pilot.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-pilot.live.tv.telia.net/log"},NO:{"common-sdk/Log/logLevel":"INFO","common-sdk/services/commercegateway/url":"https://commercegateway-telia.clientapi-pilot.live.tv.telia.net","common-sdk/services/cvsgateway/url":"https://cvsgateway-telia.t6a-pilot.net","common-sdk/services/eventtracker/url":"https://event-tracker.t6a-stage.net","common-sdk/services/messagebar/url":"https://messagebar.clientapi-pilot.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-pilot.live.tv.telia.net/log"},SE:{"common-sdk/Log/logLevel":"INFO","common-sdk/services/commercegateway/url":"https://commercegateway-telia.clientapi-pilot.live.tv.telia.net","common-sdk/services/cvsgateway/url":"https://cvsgateway-telia.t6a-pilot.net","common-sdk/services/eventtracker/url":"https://event-tracker.t6a-stage.net","common-sdk/services/messagebar/url":"https://messagebar.clientapi-pilot.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-pilot.live.tv.telia.net/log"}},prod:{FI:{"common-sdk/Log/logLevel":"WARN","common-sdk/services/commercegateway/url":"https://commercegateway-telia.clientapi-prod.live.tv.telia.net","common-sdk/services/cvsgateway/url":"https://cvsgateway-telia.t6a.net","common-sdk/services/eventtracker/url":"https://event-tracker.t6a.net","common-sdk/services/messagebar/url":"https://messagebar.clientapi-prod.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-prod.live.tv.telia.net/log"},NO:{"common-sdk/Log/logLevel":"WARN","common-sdk/services/commercegateway/url":"https://commercegateway-telia.clientapi-prod.live.tv.telia.net","common-sdk/services/cvsgateway/url":"https://cvsgateway-telia.t6a.net","common-sdk/services/eventtracker/url":"https://event-tracker.t6a.net","common-sdk/services/messagebar/url":"https://messagebar.clientapi-prod.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-prod.live.tv.telia.net/log"},SE:{"common-sdk/Log/logLevel":"WARN","common-sdk/services/commercegateway/url":"https://commercegateway-telia.clientapi-prod.live.tv.telia.net","common-sdk/services/cvsgateway/url":"https://cvsgateway-telia.t6a.net","common-sdk/services/eventtracker/url":"https://event-tracker.t6a.net","common-sdk/services/messagebar/url":"https://messagebar.clientapi-prod.live.tv.telia.net","common-sdk/services/remoteclientlog/url":"https://remoteclientlog.clientapi-prod.live.tv.telia.net/log"}}};e.s(["appConfigs",0,g,"sdkConfigs",0,y],642925);let m=e=>{let t=e.toLowerCase();return`${t}`};e.s(["getConfigKey",0,m],847922),e.s(["getConfig",0,()=>{let e=d(),t=m(f()),n=g[t][e],i=y[t][e],o=r.default.env.GRAPHQL_SERVER_URL;return{...n,...i,...void 0!==o?{"app/graphql/server-url":o}:{}}}],680760);let v={"display-cdp-breadcrumbs":{environment:["PROD","PILOT"]},"display-cdp-login-button":{environment:["PROD","PILOT"]},"event-tracker":{environment:["PROD","PILOT"]},medallia:{environment:["PROD","PILOT"]},onetrust:{environment:["PROD","PILOT"]},"sitemap-creation":{environment:["PROD","PILOT"]},"support-web":{country:[],environment:[]},"use-panel-x":{environment:["PROD","PILOT"]}};e.s(["isEnabled",0,e=>{let{include:t,exclude:r,environment:n,country:i}=v[e],o={country:d(),environment:f()};return![t,r,n,i].every(e=>!e)&&(!!(t&&((e,t)=>{for(let r of e)if(r.country&&r.country!==t.country||r.environment&&r.environment!==t.environment)return!1;return!0})(t,o))||!(r&&((e,t)=>{for(let r of e){let e=r.country&&r.country===t.country,n=r.environment&&r.environment===t.environment;if(e&&n)return!0}return!1})(r,o))&&(!i||!!i.includes(o.country))&&(!n||!!n.includes(o.environment)))}],734744),e.s([],751489);let b=e=>null!=e;e.s(["isDefined",0,b],668492);let x=()=>{let e="4.12.0";if(!b(e))return"";let t=`-${"TELIA-PROD-SE".toLocaleLowerCase()}`;return`${e}${t}`};e.s(["getAppVersion",0,x,"getAppVersionForSdk",0,()=>x().replace(/^(\d+\.\d+\.\d+)-/,"$1+")],906050)},199153,e=>{"use strict";(t={}).Adult="ADULT",t.Child="CHILD",t.Child0_6="CHILD0_6",(r={}).Long="LONG",r.Short="SHORT",(n={}).Helpful="HELPFUL",n.Important="IMPORTANT",(i={}).Channel="channel",i.Media="media",i.Page="page",i.Panel="panel",i.Program="program",i.Series="series",i.Store="store",(o={}).Channel="channel",o.Deep="deep",o.Episode="episode",o.Movie="movie",o.Page="page",o.Panel="panel",o.Play="play",o.Series="series",o.SportEvent="sport_event",o.Static="static",o.Store="store",o.Team="team",(a={}).Attention="ATTENTION",a.Informative="INFORMATIVE",a.Negative="NEGATIVE",a.Positive="POSITIVE",(s={}).Download="download",s.FollowTeam="follow_team",s.MngmtActivateVas="mngmt_activate_vas",s.MngmtAddToMyList="mngmt_add_to_my_list",s.MngmtPointSelectionUpsell="mngmt_point_selection_upsell",s.MngmtRemoveAllSearches="mngmt_remove_all_searches",s.MngmtRemoveFromCwList="mngmt_remove_from_cw_list",s.MngmtRemoveFromMyList="mngmt_remove_from_my_list",s.MngmtRemoveSearches="mngmt_remove_searches",s.MngmtRentOrPurchase="mngmt_rent_or_purchase",s.MngmtSetReminder="mngmt_set_reminder",s.MngmtSubscriptionUpsell="mngmt_subscription_upsell",s.MngmtTierChange="mngmt_tier_change",s.NavLogin="nav_login",s.NavMoreInfo="nav_more_info",s.NavTvGuide="nav_tv_guide",s.PlayCh
275annel="play_channel",s.PlayCountdown="play_countdown",s.PlayDeepLink="play_deep_link",s.PlayFromBeginning="play_from_beginning",s.PlayLive="play_live",s.PlayLiveRecording="play_live_recording",s.PlayProgram="play_program",s.PlayRecordAndWatchChannel="play_record_and_watch_channel",s.PlayRecording="play_recording",s.PlayStartOver="play_start_over",s.PlayTrailer="play_trailer",s.RecDeleteSeason="rec_delete_season",s.RecDeleteSeries="rec_delete_series",s.RecDeleteSingle="rec_delete_single",s.RecProtectionDisable="rec_protection_disable",s.RecProtectionEnable="rec_protection_enable",s.RecScheduleSeries="rec_schedule_series",s.RecScheduleSingle="rec_schedule_single",s.RecUnscheduleSeries="rec_unschedule_series",s.RecUnscheduleSingle="rec_unschedule_single",s.UnfollowTeam="unfollow_team",(l={}).Channel="channel",l.Media="media",l.Series="series",l.Team="team",(c={}).All="ALL",c.HasAccess="HAS_ACCESS",(u={}).AppleExternalLinkAccount="APPLE_EXTERNAL_LINK_ACCOUNT",u.AppleExternalLinkEst="APPLE_EXTERNAL_LINK_EST",u.AppleExternalLinkRent="APPLE_EXTERNAL_LINK_RENT",u.AppleExternalLinkRentEst="APPLE_EXTERNAL_LINK_RENT_EST",u.AppleExternalLinkSelectionMenu="APPLE_EXTERNAL_LINK_SELECTION_MENU",u.Download="DOWNLOAD",u.Login="LOGIN",u.RecentSearchesRemove="RECENT_SEARCHES_REMOVE",u.RecentSearchesRemoveAll="RECENT_SEARCHES_REMOVE_ALL",u.Reminder="REMINDER";var t,r,n,i,o,a,s,l,c,u,p,d,h,f,g,y,m,v,b,x,E,S,T,w,k,O,_,I,A,N,P,R,D,C,L,F,M,$,j,V,U,B,z,q,G,K,H,Q,W,Y,X,J,Z,ee,et,er,en,ei,eo,ea,es,el,ec,eu,ep,ed,eh,ef,eg=((p={}).Ceil="CEIL",p.Floor="FLOOR",p.Round="ROUND",p);(d={}).Fuzzy="FUZZY",d.HoursOrMinutes="HOURS_OR_MINUTES",(h={}).App="APP",h.Web="WEB",(f={}).ClientDefault="CLIENT_DEFAULT",f.Long="LONG",f.Medium="MEDIUM",f.Standalone="STANDALONE",(g={}).ClientDefault="CLIENT_DEFAULT",g.Landscape="LANDSCAPE",g.Portrait="PORTRAIT",g.Square="SQUARE",g.Toplist="TOPLIST",(y={}).ClientDefault="CLIENT_DEFAULT",y.Highlight="HIGHLIGHT",y.Landscape="LANDSCAPE",y.Portrait="PORTRAIT",y.Square="SQUARE",y.Toplist="TOPLIST",(m={}).Bitmap="BITMAP",m.Svg="SVG";var ey=((v={}).Left="LEFT",v.Right="RIGHT",v),em=((b={}).Airtime="AIRTIME",b.Announcement="ANNOUNCEMENT",b.DisappearsIn="DISAPPEARS_IN",b.FreeView="FREE_VIEW",b.Live="LIVE",b.Package="PACKAGE",b.Price="PRICE",b.Recurring="RECURRING",b.Rented="RENTED",b.Unavailable="UNAVAILABLE",b.Upcoming="UPCOMING",b);(x={}).Channel="CHANNEL",x.Episode="EPISODE",x.Movie="MOVIE",x.Page="PAGE",x.Panel="PANEL",x.Play="PLAY",x.Series="SERIES",x.Sportevent="SPORTEVENT",x.Sporteventlist="SPORTEVENTLIST",x.Static="STATIC",x.Store="STORE",(E={}).No="NO",E.NotApplicable="NOT_APPLICABLE",E.Yes="YES",(S={}).Media="MEDIA",S.Series="SERIES",(T={}).Linear="LINEAR",T.Vod="VOD",(w={}).Clip="CLIP",w.Movie="MOVIE",w.News="NEWS",w.Program="PROGRAM",w.ScriptedSeries="SCRIPTED_SERIES",w.Sports="SPORTS",(k={}).Media="MEDIA",k.Series="SERIES",(O={}).Alert="ALERT",O.Info="INFO",(_={}).External="EXTERNAL",_.NotAvailable="NOT_AVAILABLE",_.SeriesRecordingOngoing="SERIES_RECORDING_ONGOING",_.SeriesRecordingRecorded="SERIES_RECORDING_RECORDED",_.SeriesRecordingScheduled="SERIES_RECORDING_SCHEDULED",_.SingleRecordingOngoing="SINGLE_RECORDING_ONGOING",_.SingleRecordingRecorded="SINGLE_RECORDING_RECORDED",_.SingleRecordingScheduled="SINGLE_RECORDING_SCHEDULED";var ev=((I={}).AgeRating="AGE_RATING",I.DownloadAvailable="DOWNLOAD_AVAILABLE",I.PictureQuality="PICTURE_QUALITY",I.SoundQuality="SOUND_QUALITY",I);(A={}).ContinueWatchingRemove="CONTINUE_WATCHING_REMOVE",A.FavoriteAdd="FAVORITE_ADD",A.FavoriteRemove="FAVORITE_REMOVE",A.NpvrDeleteProtectionDisableSeries="NPVR_DELETE_PROTECTION_DISABLE_SERIES",A.NpvrDeleteProtectionDisableSingle="NPVR_DELETE_PROTECTION_DISABLE_SINGLE",A.NpvrDeleteProtectionEnableSeries="NPVR_DELETE_PROTECTION_ENABLE_SERIES",A.NpvrDeleteProtectionEnableSingle="NPVR_DELETE_PROTECTION_ENABLE_SINGLE",A.NpvrDeleteSeason="NPVR_DELETE_SEASON",A.NpvrDeleteSeries="NPVR_DELETE_SERIES",A.NpvrDeleteSingle="NPVR_DELETE_SINGLE",A.NpvrRecordSeason="NPVR_RECORD_SEASON",A.NpvrRecordSeries="NPVR_RECORD_SERIES",A.NpvrRecordSingle="NPVR_RECORD_SINGLE",A.NpvrStopRecordSeason="NPVR_STOP_RECORD_SEASON",A.NpvrStopRecordSeries="NPVR_STOP_RECORD_SERIES",A.NpvrStopRecordSingle="NPVR_STOP_RECORD_SINGLE",(N={}).Media="MEDIA",N.Season="SEASON",N.Series="SERIES",N.SeriesFromSeason="SERIES_FROM_SEASON",(P={}).Media="MEDIA",P.Series="SERIES",(R={}).All="ALL",R.HasAccess="HAS_ACCESS",R.HasAccessInsidePlayer="HAS_ACCESS_INSIDE_PLAYER",(D={}).Asc="ASC",D.Default="DEFAULT",D.Desc="DESC",(C={}).Standard="STANDARD",C.Vas="VAS",(L={}).Channel="CHANNEL",L.Page="PAGE",L.Panel="PANEL",L.Sporteventlist="SPORTEVENTLIST",L.Static="STATIC",L.Store="STORE";var eb=((F={}).EpisodeList="EPISODE_LIST",F.Highlight="HIGHLIGHT",F.TextBased="TEXT_BASED",F.Toplist="TOPLIST",F),ex=((M={}
275).Grid="GRID",M.GridPage="GRID_PAGE",M.List="LIST",M.Swimlane="SWIMLANE",M);($={}).Page="PAGE",$.Self="SELF",$.Static="STATIC",$.Store="STORE",(j={}).Channel="channel",j.Startover="startover",j.Trailer="trailer",j.Vod="vod",(V={}).All="ALL",V.HasAccess="HAS_ACCESS",(U={}).Catchup="CATCHUP",U.Live="LIVE";var eE=((B={}).Landscape="LANDSCAPE",B.Portrait="PORTRAIT",B.Square="SQUARE",B);(z={}).Long="LONG",z.Short="SHORT",(q={}).Est="EST",q.Rental="RENTAL",(G={}).Media="MEDIA",G.Series="SERIES",(K={}).Asc="ASC",K.Desc="DESC",(H={}).Program="PROGRAM",H.Series="SERIES",(Q={}).Ongoing="ONGOING",Q.Recorded="RECORDED",Q.Scheduled="SCHEDULED",(W={}).Multi="MULTI",W.Single="SINGLE",(Y={}).ContinueWatching="CONTINUE_WATCHING",Y.Favorite="FAVORITE",Y.FavoriteChannels="FAVORITE_CHANNELS",Y.FavoriteTeams="FAVORITE_TEAMS",Y.Npvr="NPVR",Y.RecentSearch="RECENT_SEARCH",Y.Rental="RENTAL";var eS=((X={}).Clip="clip",X.Movie="movie",X.News="news",X.Program="program",X.ScriptedSeries="scripted_series",X.Sport="sport",X);(J={}).All="ALL",J.None="NONE",(Z={}).All="ALL",Z.InSubscription="IN_SUBSCRIPTION",Z.None="NONE",(ee={}).Asc="ASC",ee.Desc="DESC",(et={}).Availability="AVAILABILITY",et.Imdb="IMDB",et.Popularity="POPULARITY",et.Popularity_1D="POPULARITY_1D",et.Popularity_7D="POPULARITY_7D",et.Popularity_30D="POPULARITY_30D",et.ProductionYear="PRODUCTION_YEAR",et.Title="TITLE",(er={}).Channel="CHANNEL",er.Episode="EPISODE",er.Movie="MOVIE",er.Page="PAGE",er.Panel="PANEL",er.Series="SERIES",er.Sportevent="SPORTEVENT",er.Store="STORE";var eT=((en={}).Asc="ASC",en.Desc="DESC",en);(ei={}).Change="CHANGE",ei.Purchase="PURCHASE",(eo={}).Active="ACTIVE",eo.Blocked="BLOCKED",eo.Selectable="SELECTABLE",(ea={}).Clean="CLEAN",ea.SimpleMarkdown="SIMPLE_MARKDOWN",(es={}).Pay="PAY",es.Primary="PRIMARY",es.Secondary="SECONDARY",(el={}).Left="LEFT",el.Right="RIGHT",(ec={}).Primary="PRIMARY",ec.Secondary="SECONDARY",(eu={}).ContinueWatching="CONTINUE_WATCHING",eu.Download="DOWNLOAD",eu.Favorite="FAVORITE",eu.MoreInfo="MORE_INFO",eu.Npvr="NPVR",eu.Play="PLAY",eu.RecentSearches="RECENT_SEARCHES",(ep={}).FollowTeam="FOLLOW_TEAM",ep.UnfollowTeam="UNFOLLOW_TEAM",(ed={}).Media="MEDIA",ed.Series="SERIES",ed.Store="STORE",(eh={}).First="FIRST",eh.Full="FULL",eh.Last="LAST",(ef={}).Hd_720P="HD_720P",ef.Hd_1080P="HD_1080P",ef.Sd="SD",e.s(["DatePatternRounding",()=>eg,"LabelIconPlacement",()=>ey,"LabelRenderType",()=>em,"MetadataTextBadgeType",()=>ev,"PanelDecoration",()=>eb,"PanelLayout",()=>ex,"PosterOrientation",()=>eE,"SearchMediaType",()=>eS,"SortOrder",()=>eT,"default",0,{possibleTypes:{AddToMyListResult:["AddToMyListResultGeneralError","AddToMyListResultOk"],AddToMyTeamsListResult:["AddToMyListResultGeneralError","AddToMyTeamsListResultOk"],AddToUserChannelListResult:["AddToUserChannelListResultGeneralError","AddToUserChannelListResultOk"],AllProgress:["Progress","TimeProgress"],AssumeProfileResult:["AssumeProfileResultOk","AssumeProfileResultTargetProfileNotFoundError","AssumeProfileResultWrongPinCodeError"],Capabilities:["CapabilityGroup","ClientCapability","DisplayVASActivationCapability","LinkCapability2","MutationCapability","TeamMutationCapability"],CdpCapability:["CapabilityGroup","ClientCapability","DeepLinkCapability","DisplayVASActivationCapability","LinkCapability2","MutationCapability","NoticeCapability","PlayCapability","PurchaseCapability","RecordAndWatchMutationCapability","TimeSensitiveCapability"],ChannelDisplayHint:["LiveOnlyChannelDisplayHint","NormalChannelDisplayHint"],ClientCapabilityPayload:["DownloadCapabilityPayload","MediaReminderPayload"],ColorGradient:["ColorGradientLinear"],ContinueWatchingListContent:["Episode","Movie","SportEvent"],ContinueWatchingPanelItemContent:["Episode","Movie","SportEvent"],CoreTrackingEventData:["CoreTrackingEventDataBoolean","CoreTrackingEventDataInt","CoreTrackingEventDataString"],CountdownCounterContent:["DateForPatternText","StaticText"],CountdownViewCapability:["DeepLinkCapability","PlayCapability"],CreateProfileResult:["CreateProfileResultGeneralError","CreateProfileResultMaxNumberOfProfilesError","CreateProfileResultOk","CreateProfileResultThemeNotAllowedError"],DeleteProfileResult:["DeleteProfileResultCannotDeleteActiveProfileError","DeleteProfileResultGeneralError","DeleteProfileResultOk"],DeleteRecordingResult:["DeleteRecordingResultError","DeleteRecordingResultOk"],DisplayHint:["DisplayHintGrid","DisplayHintList","DisplayHintSwimlane"],EpgCapability:["DeepLinkCapability","LinkCapability","LinkCapability2","MutationCapability","PlayCapability","RecordAndWatchMutationCapability"],Error:["AddToMyListResultGeneralError","AddToUserChannelListResultGeneralError","AssumeProfileResultTargetProfileNotFoundError","AssumeProfileResultWrongPinCodeError","CreateProfileResultGeneralError","CreateProfileResultMaxNumberOfProfilesError","CreateProfileResultThemeNotAllowedError","DeleteProfileResultCannotDeleteActiveProfileError","DeleteProfileResultGeneralError","DeleteRecordingResultError","ProtectRecordingResultError","RecordAndWatchResultError","RemoveFromMyListResultGeneralError","RemoveFromUserChannelListResultGeneralError","RemoveListFromContinueWatchingResultGeneralError","ResetParentalControlPinCodeResultGeneralError","ScheduleRecordingResultError","UnprotectRecordingResultError","UnscheduleRecordingResultError","UpdateChildLockResultMalformedPinCodeError","UpdateChildLockResultNoPinCodeAllowedError","UpdateChildProfileLockResultMalformedPinCodeError","UpdateChildProfileLockResultNoPinCodeAllowedError","UpdateChildProfileLockResultPinCodeMissingError","UpdateParentalContentLockResultMalformedPinCodeError","UpdateParentalContentLockResultNoPinCodeAllowedError","UpdateParentalContentLockResultPinCodeMissingError","UpdateProfileResultGeneralError","UpdateProfileResultProfileDoesNotExistError","UpdateProfileResultThemeNotAllowedError","VerifyParentalControlPinCodeResultGeneralError","VerifyParentalControlPinCodeResultWrongPinCodeError"],Label:["BasicLabel","TimeSensitiveLabel"],LinkCapabilityPayload:["EpgLinkPayload","PointSelectionPayload"],LinkInterface:["LinkChangeStreamingServiceTier","LinkChannel","LinkDeep","LinkEpisode","LinkExternalURL","LinkMovie","LinkPage","LinkPanel","LinkPlay","LinkSeries","LinkSportEvent","LinkSportEventList","LinkStatic","LinkStore","LinkTeam","LinkUpsellPage"],Media:["Episode","Movie","SportEvent"],MediaImages:["EpisodeImages","MovieImages","SeriesImages","SportEventImages"],MediaPanelItemContent:["Episode","Movie","Series","SportEvent"],MediasA
275ndSeriesContent:["Episode","Movie","Series","SportEvent"],MetadataItem:["MetadataBadgeIMDB","MetadataItemIcon","MetadataItemString","MetadataTextBadge","TimeSensitiveMetadataItemIcon","TimeSensitiveMetadataItemString"],MetadataItemAgeRatingContent:["MetadataItemIcon","MetadataItemString"],MiniBlock:["QuotaInformationMiniBlock"],MyListContent:["Movie","Series","SportEvent"],MyListPanelItemContent:["Movie","Series","SportEvent"],NestedCapabilities:["MutationCapability"],NoticeContent:["DefaultNotice"],Panel:["ChannelsPanel","ContinueWatchingPanel","HotspotLoggedOutPanel","MediaPanel","MyListPanel","PageLinkPanel","RecordingsPanel","RentalsPanel","SelectionMediaPanel","ShowcasePanel","SingleFeaturePanel","SingleFeaturePanelV2","StaticNetflixPanel","StaticRecentSearchesPanel","StoresPanel","SubscriptionPanel","TimelinePanel"],PanelX:["ChannelsPanelX","HotspotLoggedOutPanelX","OverviewPanelX","PosterListPanel","ShowcasePanelX","SingleFeaturePanelX","StaticNetflixPanelX","SubscriptionPanelX","SubscriptionPanelXV2"],PlayerRelatedContentPanel:["TimelinePanel"],PosterCapability:["ClientCapability","DisplayVASActivationCapability","LinkCapability","MutationCapability","PlayableLinkCapability"],ProgramMedia:["Episode","Movie","SportEvent"],ProtectRecordingResult:["ProtectRecordingResultError","ProtectRecordingResultOk"],RecordAndWatchResult:["RecordAndWatchResultError","RecordAndWatchResultOk"],RecordingListContent:["Episode","Movie","Series","SportEvent"],RecordingResultMedia:["Episode","Movie","Series","SportEvent"],RefreshMediaMedia:["Episode","Movie","Series","SportEvent"],RemoveFromMyListResult:["RemoveFromMyListResultGeneralError","RemoveFromMyListResultOk"],RemoveFromMyTeamsListResult:["RemoveFromMyListResultGeneralError","RemoveFromMyTeamsListResultOk"],RemoveFromUserChannelListResult:["RemoveFromUserChannelListResultGeneralError","RemoveFromUserChannelListResultOk"],RemoveListFromContinueWatchingResult:["RemoveListFromContinueWatchingResultGeneralError","RemoveListFromContinueWatchingResultOk"],RemoveListFromContinueWatchingResultV2:["RemoveListFromContinueWatchingResultGeneralError","RemoveListFromContinueWatchingResultOkV2"],RentalMedia:["Episode","Movie"],RentalsPanelItemContent:["Movie","Series"],ResetParentalControlPinCodeResult:["ResetParentalControlPinCodeResultGeneralError","ResetParentalControlPinCodeResultOk"],ScheduleRecordingResult:["ScheduleRecordingResultError","ScheduleRecordingResultOk"],SearchResultContent:["Episode","Movie","Series","SportEvent"],SellingPointReference:["Channel","SportsRight","StreamingService"],ShowcasePromotionContent:["Channel","Episode","Movie","Series","SportEvent"],SingleFeaturePanelContent:["Movie","Series","SportEvent"],SingleFeaturePanelMedia:["Movie","Series","SportEvent"],SportEventListSectionItemContent:["Movie","Series","SportEvent"],StreamingServiceOptions:["StreamingServiceOptionsContent","StreamingServiceOptionsError"],SubscriptionAction:["SubscriptionActionAppleExternalLinkAccount","SubscriptionActionDisplayActivation","SubscriptionActionDisplayChangeOption","SubscriptionActionDisplayGotoURL","SubscriptionActionDisplayPurchaseOption","SubscriptionActionDisplaySnackbar","SubscriptionActionGotoURL","SubscriptionActionManageStreamingService"],SubscriptionInfoLink:["HttpLink","LinkStatic"],SubscriptionPanelItemAccessItem:["SubscriptionPanelItemAccessLogo","SubscriptionPanelItemAccessText"],SubscriptionPanelItemContent:["SubscriptionPanelItemPackageContent","SubscriptionPanelItemSingleAccessContent"],SubscriptionPanelItemSignup:["ExternalWebPageSubscriptionSignup","InServiceSubscriptionSignup","SubscriptionProductVASStandaloneSignup"],SubscriptionProduct:["SubscriptionProductDualEntry","SubscriptionProductExternalDualEntry","SubscriptionProductExternalFallback","SubscriptionProductExternalFieldSales","SubscriptionProductExternalIAP","SubscriptionProductExternalPartnerSales","SubscriptionProductExternalStaff","SubscriptionProductExternalStandard","SubscriptionProductExternalTVE","SubscriptionProductFallback","SubscriptionProductFieldSales","SubscriptionProductIAP","SubscriptionProductPartnerSales","SubscriptionProductSelection","SubscriptionProductStaff","SubscriptionProductStandard","SubscriptionProductTVE","SubscriptionProductVASStandalone"],SubscriptionProductSignup:["ExternalWebPageSubscriptionSignup","InServiceSubscriptionSignup"],SubscriptionSettingsListItem:["SubscriptionSettingsListItems","SubscriptionSettingsListMeta"],SubscriptionsDisplay:["SubscriptionInfo","SubscriptionList"],TemplatePageCompatibleCapability:["ClientCapability","TeamMutationCapability"],TimeSensitiveCapabilityContent:["ClientCapability","CountdownCapability","DeepLinkCapability","PlayCapability","PurchaseCapability"],TimeSensitiveLabelContent:["BasicLabel","DatePatternLabel"],TimelineItemIcon:["MetadataItemIcon","TimeSensitiveMetadataItemIcon"],TimelinePanelItemContent:["Episode","Movie","SportEvent"],UnprotectRecordingResult:["UnprotectRecordingResultError","UnprotectRecordingResultOk"],UnscheduleRecordingResult:["UnscheduleRecordingResultError","UnscheduleRecordingResultOk"],Update
275ChildLockResult:["UpdateChildLockResultMalformedPinCodeError","UpdateChildLockResultNoPinCodeAllowedError","UpdateChildLockResultOk"],UpdateChildProfileLockResult:["UpdateChildProfileLockResultMalformedPinCodeError","UpdateChildProfileLockResultNoPinCodeAllowedError","UpdateChildProfileLockResultOk","UpdateChildProfileLockResultPinCodeMissingError"],UpdateParentalContentLockResult:["UpdateParentalContentLockResultMalformedPinCodeError","UpdateParentalContentLockResultNoPinCodeAllowedError","UpdateParentalContentLockResultOk","UpdateParentalContentLockResultPinCodeMissingError"],UpdateProfileResult:["UpdateProfileResultGeneralError","UpdateProfileResultOk","UpdateProfileResultProfileDoesNotExistError","UpdateProfileResultThemeNotAllowedError"],VerifyParentalControlPinCodeResult:["VerifyParentalControlPinCodeResultGeneralError","VerifyParentalControlPinCodeResultOk","VerifyParentalControlPinCodeResultWrongPinCodeError"]}}])},859391,339174,95122,430321,703402,528755,425849,826572,750368,992374,511196,41217,610074,198616,342478,498593,574030,693111,170005,e=>{"use strict";e.s([],826572),e.s(["getEpisodeList",()=>c],430321);var t,r,n,i=e.i(147754);e.i(594041),e.i(954702),e.i(751489);var o=e.i(990713);e.s(["getPageTitle",0,e=>{let t=o.CONSTANTS.TELIA_PLAY_TITLE;return e?.title??t}],339174),e.s([],95122),e.i(314627);var a=e.i(179734),s=e.i(551725),l=e.i(668492);let c=e=>(e?.episodeList??[]).filter(l.isDefined);var u=((t={}).LinkPage="LINKPAGE",t.LinkStatic="LINKSTATIC",t.LinkPanel="LINKPANEL",t);let p=({prefix:e,link3:t})=>{if(e){if(e.includes("LinkPage")){let r=e.replace(/\/LinkPage\/.*$/,"");return`${r}/LinkPage/${t.to}`}return`${e}/LinkPage/${t.to}`}return`/LinkPage/${t.to}`},d=({prefix:e,link3:t})=>{if(e){if(e.includes("LinkPanel")){let r=e.replace(/\/LinkPanel\/.*$/,"");return`${r}/LinkPanel/${t.to}`}return`${e}/LinkPanel/${t.to}`}return`/LinkPanel/${t.to}`},h={LinkEpisode:({link3:e})=>`/episode/${e.to}`,LinkMovie:({link3:e})=>`/movie/${e.to}`,LinkPage:({link3:e})=>`/${e.to}`,LinkPanel:({link3:e})=>`/panel/${e.to}`,LinkSeries:({link3:e})=>`/series/${e.to}`,LinkSportEvent:({link3:e})=>`/sportEvent/${e.to}`,LinkStore:({link3:e})=>`/store/${e.to}`,LinkTeam:({link3:e})=>`/${e.to}`,LinkUpsellPage:({link3:e})=>`/${e.to}`,LINKPAGE:p,LINKPANEL:d,LINKSTATIC:({link3:e})=>`/${e.to}`};e.s(["LinkTypeSubPages",()=>u,"generateLinkPageUrl",0,p,"generateLinkPanelUrl",0,d,"getLinkUrl",0,({prefix:e,type:t,link3:r})=>{let n=t??r.__typename;return(n&&h[n]?.({link3:r,prefix:e,type:t}))??`/${r?.to}`}],703402),e.s([],528755);var f=e.i(906050);e.i(212393),e.s(["rewriteUrlForStartPage",0,e=>e.startsWith("http")?e:e===o.CONSTANTS.HOME_PAGE_ID?"/":`/${e}`],425849),e.s(["useScrollPosition",0,()=>{let[e,t]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let e=()=>{void 0!==globalThis.window&&t(globalThis.window.pageYOffset)};return globalThis.window.addEventListener("scroll",e),e(),()=>globalThis.window.removeEventListener("scroll",e)},[]),e}],750368),e.s(["useDebounce",0,(e,t)=>{var r;let n,[o,a]=(0,i.useState)(!1),s=(0,i.useCallback)((r=(...t)=>{e(...t),a(!1)},n=null,(...e)=>{null!==n&&(clearTimeout(n),n=null),n=setTimeout(()=>r(...e),t)}),[e,t]);return[(0,i.useCallback)((...e)=>{a(!0),s(...e)},[s]),{isDebouncing:o}]}],992374);let g=(e,t)=>{(0,i.useEffect)(()=>{if(void 0===globalThis.window||void 0===globalThis.ResizeObserver)return;let r=e.current;if(!r)return;let n=new ResizeObserver(e=>{let r=e[0];r&&t(r)});return n.observe(r),()=>{n.disconnect()}},[e,t])};e.s(["default",0,g],511196),e.s(["useBoxSize",0,e=>{let[t,r]=(0,i.useState)({height:0,width:0});return g(e,e=>{let[{inlineSize:t,blockSize:n}]=e.borderBoxSize;r({height:n,width:t})}),(0,i.useEffect)(()=>{if((0,l.isDefined)(e.current)){let{width:t,height:n}=e.current.getBoundingClientRect();r({height:n,width:t})}},[e]),t},"useSize",0,e=>{let[t,r]=(0,i.useState)();return(0,i.useEffect)(()=>{e.current&&r(e.current.getBoundingClientRect())},[e]),g(e,e=>r(e.contentRect)),t}],41217),e.s(["useEscButtonToCloseSearch",0,(e,t,r)=>{let n=void 0!==globalThis.window;(0,i.useEffect)(()=>{let i=n=>{"Escape"===n.key&&e&&(r(!1),t(""))};return n&&globalThis.window.addEventListener("keydown",i),()=>{n&&globalThis.window.removeEventListener("keydown",i)}},[e,t,r,n])}],610074),e.s(["useClientSideOnly",0,()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(!0)},[]),e}
275],198616);var y=Object.defineProperty,m=new Map,v=new WeakMap,b=0;function x({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:a,triggerOnce:s,skip:l,initialInView:c,fallbackInView:u,onChange:p}={}){var d;let[h,f]=i.useState(null),g=i.useRef(p),y=i.useRef(c),[E,S]=i.useState({inView:!!c,entry:void 0});g.current=p,i.useEffect(()=>{let i;if(void 0===y.current&&(y.current=c),!l&&h)return i=function(e,t,n={},i=r){if(void 0===window.IntersectionObserver&&void 0!==i){let r=e.getBoundingClientRect();return t(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}let{id:o,observer:a,elements:s}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(v.has(r)||(b+=1,v.set(r,b.toString())),v.get(r)):e[t]}`}).toString(),r=m.get(t);if(!r){let n,i=new Map,o=new IntersectionObserver(t=>{t.forEach(t=>{var r;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),[...null!=(r=i.get(t.target))?r:[]].forEach(e=>{e(o,t)})})},e);n=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:o,elements:i},m.set(t,r)}return r}(n),l=s.get(e)||[];return s.has(e)||s.set(e,l),l.push(t),a.observe(e),function(){l.splice(l.indexOf(t),1),0===l.length&&(s.delete(e),a.unobserve(e)),0===s.size&&(a.disconnect(),m.delete(o))}}(h,(e,t)=>{let r=y.current;y.current=e,(void 0!==r||e)&&(S({inView:e,entry:t}),g.current&&g.current(e,t),t.isIntersecting&&s&&i&&(i(),i=void 0))},{root:a,rootMargin:o,threshold:e,trackVisibility:n,delay:t},u),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,h,a,o,s,l,n,u,t]);let T=null==(d=E.entry)?void 0:d.target,w=i.useRef(void 0);h||!T||s||l||w.current===T||(w.current=T,S({inView:!!c,entry:void 0}),y.current=c);let k=[f,E.inView,E.entry];return k.ref=k[0],k.inView=k[1],k.entry=k[2],k}i.Component,null!=(null!=(n="useInsertionEffect"in i?i.useInsertionEffect:void 0)?n:i.useLayoutEffect)||i.useEffect,e.s(["useInView",0,x],342478),e.s(["useHasComeIntoView",0,()=>{let[e,t]=(0,i.useState)(!1),[r,n]=x({rootMargin:o.CONSTANTS.IMAGE_INTERSECTION_LOAD_ROOT_MARGIN});return(0,i.useEffect)(()=>{n&&!e&&t(!0)},[n,e]),{hasComeIntoView:e,inViewRef:r}}],498593);var E=e.i(580586),S=e.i(584899),T=e.i(13127),w=e.i(459229);let k={account:{path:"/account",pattern:"^/account$"},activate:{path:"/activate/$serviceName",pattern:"^/activate/[^/]+$"},apps:{path:"/apps",pattern:"^/apps$"},authorize:{path:"/authorize",pattern:"^/authorize$"},devices:{path:"/devices",pattern:"^/devices$"},downloaded:{path:"/downloaded",pattern:"^/downloaded$"},episode_content_details:{path:"/episode/$mediaId",pattern:"^/episode/[^/]+$"},episode_more_info:{path:"/episode/$mediaId/more-info",pattern:"^/episode/[^/]+/more-info$"},episode_related_content:{path:"/episode/$mediaId/related-content",pattern:"^/episode/[^/]+/related-content$"},feedback:{path:"/feedback",pattern:"^/feedback$"},graph:{path:"/$pageId",pattern:"^/.+$"},graph_provided_page:{path:"$pageName",pattern:"^/.*$"},help:{path:"/help",pattern:"^/help$"},help_about_service:{path:"/help/info",pattern:"^/help/info$"},help_faq:{path:"/help/faq",pattern:"^/help/faq$"},login:{path:"/login",pattern:"^/login$"},login_forgot_password:{path:"/forgot-password",pattern:"^/forgot-password$"},login_forgot_username:{path:"/forgot-username",pattern:"^/forgot-username$"},login_mfa:{path:"/login/mfa",pattern:"^/login/mfa$"},login_multiple_accounts:{path:"/login/multiple-accounts",pattern:"^/login/multiple-accounts$"},login_no_subscription:{path:"/login/no-subscription",pattern:"^/login/no-subscription$"},login_or_register_account:{path:"/login-or-register",pattern:"^/login-or-register$"},login_usercode:{path:"/login/usercode",pattern:"^/login/usercode$"},movie_content_details:{path:"/movies/$assetId",pattern:"^/movies/[^/]+$"},movie_sibling_info:{path:"/movies/$mediaId/sibling-info",pattern:"^/movies/[^/]+/sibling-info$"},movies_more_info:{path:"/movies/$mediaId/more-info",pattern:"^/movies/[^/]+/more-info$"},movies_related_content:{path:"/movies/$mediaId/related-content",pattern:"^/movies/[^/]+/related-content$"},my_account:{path:"/my-account",pattern:"^/my-account$"},my_list:{path:"/my-list",pattern:"^/my-list$"},panel:{path:"/panel/$panelId",pattern:"^/panel/[^/]+$"},point_selection:{path:"/point-selection",pattern:"^/point-selection$"},profiles:{path:"/profiles",pattern:"^/profiles$"},profiles_create:{path:"/profiles/create",pattern:"^/profiles/create$"},profiles_edit:{path:"/profiles/edit/$profileId",pattern:"^/profiles/edit/[^/]+$"},profiles_info:{path:"/profiles/info",pattern:"^/profiles/info$"},purchase_choose_package:{path:"/choose-package",pattern:"^/choose-package$"},purchase_complete:{path:"/purchase-completed",pattern:"^/purchase-completed$"},purchase_confirm:{path:"/confirm-purchase",pattern:"^/confirm-purchase$"},purchase_error:{path:"/purchase-error",pattern:"^/purchase-error$"},purchase_lock:{path:"/purchase-lock",pattern:"^/purchase-lock$"},recent_searches:{path:"/previous-searches",pattern:"^/previous-searches$"},root:{path:"/",pattern:"^/$"},search:{path:"/search",pattern:"^/search$"},series_content_details:{path:"/series/$seriesId",pattern:"^/series/[^/]+$"},series_more_info:{path:"/series/$mediaId/more-info",pattern:"^/series/[^/]+/more-info$"},series_related_content:{path:"/series/$mediaId/related-content",pattern:"^/series/[^/]+/related-content$"},series_season:{path:"/series/$seriesId/s$seasonNumber",pattern:"^/series/[^/]+/[^/]+$"},series_sibling_info:{path:"/series/$mediaId/sibling-info",pattern:"^/series/[^/]+/sibling-info$"},settings:{path:"/settings",pattern:"^/settings$"}
275,splash_login_prompt:{path:"/login-or-register/splash",pattern:"^/login-or-register/splash$"},sport_content_details:{path:"/sport/game/$assetId",pattern:"^/sport/game/[^/]+$"},sport_more_info:{path:"/sport/$mediaId/more-info",pattern:"^/sport/[^/]+/more-info$"},sport_related_content:{path:"/sport/$mediaId/related-content",pattern:"^/sport/[^/]+/related-content$"},sport_tableau:{path:"/sport/list/day",pattern:"^/sport/list/day$"},sport_tableau_day:{path:"/sport/list/day$dayDifference",pattern:"^/sport/list/day([+-][1-9]d*)?$"},sport_upcoming:{path:"/sport/upcoming",pattern:"^/sport/upcoming$"},subscriptions:{path:"/subscriptions",pattern:"^/subscriptions$"},team:{path:"/team/$teamId",pattern:"^/team/[^/]+$"},tv_channels:{path:"/epg/tv-channels",pattern:"^/epg/tv-channels$"},tv_guide:{path:"/epg/tv-guide/day",pattern:"^/epg/tv-guide/day$"},tv_guide_day:{path:"/epg/tv-guide/day$dayDifference",pattern:"^/epg/tv-guide/day([+-][1-9]d*)?$"},tv_guide_in_player:{path:"/player/epg",pattern:"^/player/epg$"},tv_program_page:{path:"/epg/$programMediaId",pattern:"^/epg/[^/]+$"},tv_tableau:{path:"/epg/tv-tableau/day",pattern:"^/epg/tv-tableau/day$"},tv_tableau_day:{path:"/epg/tv-tableau/day$dayDifference",pattern:"^/epg/tv-tableau/day([+-][1-9]d*)?$"}},O=(...e)=>console.debug("[Tracker]",...e);class _{appVersion;batchSize;debug;eventQueue;globalProperties=null;handler;idleTimeoutId=null;idleTimeoutMs;lastPageName=void 0;onError;trackedAssets={};trackedPanels={};consentState="not_set";lastInteraction;sessionId;sessionTimeoutMs;constructor(e,t){this.handler=e,this.appVersion=t.appVersion,this.debug=t.debug||!1,this.idleTimeoutMs=t.idleTimeoutMs||5e3,this.onError=t.onError,this.eventQueue=[],this.batchSize=t.batchSize||500,this.sessionTimeoutMs=t.sessionTimeoutMs||18e5,this.sessionId=this.generateSessionId(),this.lastInteraction=Date.now(),this.debug&&(O("Tracker initialized with debug mode enabled."),O(`Options: batchSize=${this.batchSize}, idleTimeoutMs=${this.idleTimeoutMs}, sessionTimeoutMs=${this.sessionTimeoutMs}`))}clearGlobalProperties(){if(this.globalProperties){let{device_id:e,tv_client_name:t,user_market:r}=this.globalProperties;this.globalProperties={device_id:e,tv_client_name:t,user_market:r},this.debug&&O("Global properties cleared except client, device_id, market")}else this.debug&&O("No global properties to clear")}consent(e){this.consentState=e?"granted":"denied",this.debug&&O(`Consent ${this.consentState}`),e?this.eventQueue.length>0&&this.releaseEvents():(this.eventQueue=[],this.trackedPanels={},this.trackedAssets={})}disableDebug(){this.debug=!1}enableDebug(){this.debug=!0}releaseEvents(){if("granted"!==this.consentState||0===this.eventQueue.length)return;let e=this.eventQueue.slice();this.eventQueue=[],this.idleTimeoutId&&(clearTimeout(this.idleTimeoutId),this.idleTimeoutId=null),this.debug&&O(`Releasing ${e.length} events:`,e);try{this.handler(e)}catch(e){this.onError(e)}}setGlobalProperties(e){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.setGlobalProperty(t,e[t])}setGlobalProperty(e,t){this.globalProperties||(this.globalProperties={}),this.globalProperties[e]=t,this.debug&&O(`Global property "${e}" set to:`,t),this.eventQueue=this.eventQueue.map(r=>({...r,[e]:t}))}addEvent(e,t){if("denied"!==this.consentState)try{this.updateSession();let{__internal_flags:r,page_name:n,...i}=e,o=n&&(({id:e,params:t})=>{let r=k[e];if(!r)throw Error(`Page name "${e}" not found`);"deprecated"in r&&r.deprecated&&console.warn("deprecatedMessage"in r?`Page "${e}" is deprecated: ${r.deprecatedMessage}`:`Page "${e}" is deprecated and may be removed in future versions.`);let n=r.path;if(t&&Object.keys(t).forEach(e=>{let r=t[e];null!=r&&(n=n.replace(`$${e}`,String(r)))}),(n=n.replace(/\/+/g,"/")).length>1&&(n=n.replace(/\/+$/,"")),"pattern"in r&&r.pattern&&!new RegExp(String.raw`${r.pattern}`).test(n))throw Error(`Path "${n}" for page "${e}" does not match pattern "${r.pattern}"`);return n})(n)||this.lastPageName||void 0;if(r.isPageNameRequired&&!o)return void this.onError(Error("page_name must be provided or trackPage must be called before calling an event with page_name."));let a={app_version:this.appVersion,client_time:Date.now(),event:e.name,page_name:r.isPageNameRequired?o:void 0,session_id:this.sessionId,spec_revision:"2125ab2a095354c7157c7f5f1cf78041d2b4abbe",...i,...this.globalProperties};if("page"===e.name&&(this.lastPageName=a.page_name,this.trackedPanels={},this.trackedAssets={}),t?.fireImmediately){if("granted"!==this.consentState){this.debug&&O("Dropping immediate event - no consent");return}this.handler([a]);return}if(o){if("panel_impression"===a.name){let e=a.panel_id;if(this.trackedPanels[o]||(this.trackedPanels[o]=new Set),this.trackedPanels[o].has(e))return;this.trackedPanels[o].add(e)}if("asset_impression"===a.name){let e=a.panel_id||"no_panel";this.debug&&"no_panel"===e&&console.warn(`Asset impression event "${a.content_id}" will be tracked with a default panel id as no panel id was provided.`);let t=a.content_id;
275if(this.trackedAssets[o]||(this.trackedAssets[o]={}),this.trackedAssets[o][e]||(this.trackedAssets[o][e]=new Set),this.trackedAssets[o][e].has(t))return;this.trackedAssets[o][e].add(t)}}this.enqueueEvent(a)}catch(e){this.onError(e)}}enqueueEvent(e){(this.eventQueue.push(e),this.eventQueue.length>=this.batchSize)?this.releaseEvents():(this.idleTimeoutId&&clearTimeout(this.idleTimeoutId),this.idleTimeoutId=setTimeout(()=>this.releaseEvents(),this.idleTimeoutMs))}generateSessionId(){return((e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),""))(16)}updateSession(){let e=Date.now();e-this.lastInteraction>this.sessionTimeoutMs&&(this.sessionId=this.generateSessionId()),this.lastInteraction=e}}var I=e.i(360694);let A=new class extends _{trackAccessibilityFeatures(e,t){return this.addEvent({name:"accessibility_features",...e,__internal_flags:{isPageNameRequired:!1}},t)}trackAccountAction(e,t){return this.addEvent({name:"account_action",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackAddFavoriteChannel(e,t){return this.addEvent({name:"add_favorite_channel",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackAddMyList(e,t){return this.addEvent({name:"add_my_list",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackAssetAction(e,t){return this.addEvent({name:"asset_action",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackAssetClick(e,t){return this.addEvent({name:"asset_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackAssetImpression(e,t){return this.addEvent({name:"asset_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackConfirmationClick(e,t){return this.addEvent({name:"confirmation_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackConfirmationImpression(e,t){return this.addEvent({name:"confirmation_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackDownloadMedia(e,t){return this.addEvent({name:"download_media",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackDownloadMediaComplete(e,t){return this.addEvent({name:"download_media_complete",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackEpgClick(e,t){return this.addEvent({name:"epg_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackExternalClick(e,t){return this.addEvent({name:"external_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackFilterClick(e,t){return this.addEvent({name:"filter_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackLoginAction(e,t){return this.addEvent({name:"login_action",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackMenuClick(e,t){return this.addEvent({name:"menu_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackOrderConfirmed(e,t){return this.addEvent({name:"order_confirmed",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackOverlay(e,t){return this.addEvent({name:"overlay",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPage(e,t){return this.addEvent({name:"page",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPanelClick(e,t){return this.addEvent({name:"panel_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPanelImpression(e,t){return this.addEvent({name:"panel_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPinEntry(e,t){return this.addEvent({name:"pin_entry",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerAction(e,t){return this.addEvent({name:"player_action",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerMiniEpgImpression(e,t){return this.addEvent({name:"player_mini_epg_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerPlayNextImpression(e,t){return this.addEvent({name:"player_play_next_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerSkipIntroClick(e,t){return this.addEvent({name:"player_skip_intro_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerSkipIntroImpression(e,t){return this.addEvent({name:"player_skip_intro_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerSkipRecapImpression(e,t){return this.addEvent({name:"player_skip_recap_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerStillWatchingClick(e,t){return this.addEvent({name:"player_still_watching_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerStillWatchingImpression(e,t){return this.addEvent({name:"player_still_watching_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerSwitchToLiveModalImpression(e,t){return this.addEvent({name:"player_switch_to_live_modal_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPlayerWatchNextImpression(e,t){return this.addEvent({name:"player_watch_next_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackProfileCreated(e,t){return this.addEvent({name:"profile_created",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPromotionClick(e,t){return this.addEvent({name:"promotion_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackPromotionImpression(e,t){return this.addEvent({name:"promotion_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackQrImpression(e,t){return this.addEvent({name:"qr_impression",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackRemoteControlClick(e,t){return this.addEvent({name:"remote_control_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackRemoveDownloadedMedia(e,t){return this.addEvent({name:"remove_downloaded_media",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackRemoveFavoriteChannel(e,t){return this.addEvent({name:"remove_favorite_channel",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackRemoveMyList(e,t){return this.addEvent({name:"remove_my_list",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackRenewDownloadedMedia(e,t){return this.addEvent({name:"renew_downloaded_media",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackSearchResult(e,t){return this.addEvent({name:"search_result",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackShowProfilesAtStartClick(e,t){return this.addEvent({name:"show_profiles_at_start_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackSortButtonClick(e,t){return this.addEvent({name:"sort_button_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackSortOptionClick(e,t){return this.addEvent({name:"sort_option_click",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackStreamStart(e,t){return this.addEvent({name:"stream_start",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackStreamStartInit(e,t){return this.addEvent({name:"stream_start_init",...e,__internal_flags:{isPageNameRequired:!0}},t)}trackUserDistraction(e,t){return this.addEvent({name:"user_distraction",...e,__internal_flags:{isPageNameRequired:!0}},t)}}(async e=>{let t=s.DataManager.instance(),r=w.ServiceConfig.getService("eventtracker"),{client:n}=await E.ClientInformationIF.resolve().getClientInformation(),i=r.getUrl("/events");await t.sendPost(i,"NO_CACHE",{headers:{client:n},post:e.map(e=>JSON.stringify(e)).join("\n")})},{appVersion:(0,f.getAppVersion)(),debug:"PROD"!==(0,I.getEnvironment)(),onError:e=>{T.Log.instance()("Tracker").error("Tracking error:",e)}});globalThis.OptanonWrapper=function(){let e=(globalThis.OptanonActiveGroups||"").includes("C0002");A.consent(e)},void 0!==globalThis.window&&setTimeout(()=>{if(globalThis.OptanonActiveGroups&&"function"==typeof globalThis.OptanonWrapper)try{globalThis.OptanonWrapper()}catch(e){console.error("[Tracker] Error calling OptanonWrapper:",e)}},1e3);let N=async()=>{try{let e=await S.DeviceIdentificationIF.resolve().getDeviceId();A.releaseEvents(),A.setGlobalProperties({device_id:e,tv_client_name:"marketweb",user_market:(0,a.getCountry)()})}catch{setTimeout(()=>N(),100)}};e.s(["setGlobalProperties",0,N,"tracker",0,A],574030);let P=(...e)=>A.trackPage(...e);e.s(["trackPage",0,P,"trackSearchResult",0,(...e)=>A.trackSearchResult(...e)],693111);let R=void 0===globalThis.window?i.useEffect:i.useLayoutEffect;e.s(["useTrackPageViewEvent",0,({pageObject:e,pageVariant:t="page",contentId:r,contentType:n,skip:o=!1})=>{let a=(0,i.useRef)(null);R(()=>
275{if(o)return;let i=JSON.stringify({contentId:r,id:e.id,params:e.params});a.current!==i&&(a.current=i,P({content_id:r,content_type:n,page_name:e,page_variant:t}))},[e,t,r,n,o])}],170005),e.s([],859391)},523466,e=>{"use strict";var t=e.i(990713),r=e.i(147754);let n={L:void 0,M:void 0,S:void 0,XL:void 0};e.s(["useMediaQueryMinWidth",0,e=>{let[i,o]=(0,r.useState)();return(0,r.useEffect)(()=>{let r=(e=>{if(n[e])return n[e];let r=globalThis.matchMedia(`(min-width:${t.breakpointWidths[e]}px)`);return n[e]=r,r})(e),i=e=>{o(e.matches)};return r.addEventListener("change",i),o(r.matches),()=>r.removeEventListener("change",i)},[e]),i}])},308945,e=>{"use strict";var t=e.i(728362),r=e.i(147754);let n=(0,r.createContext)({isMobile:!1,updateIsMobile:()=>()=>void 0});e.s(["IsMobileProvider",0,({children:e,isMobile:i})=>{let[o,a]=(0,r.useState)(i),s=(0,r.useCallback)(e=>{a(e)},[a]),l=(0,r.useMemo)(()=>({isMobile:o,updateIsMobile:s}),[o,s]);return(0,t.jsx)(n.Provider,{value:l,children:e})},"useIsMobileContext",0,()=>(0,r.useContext)(n)])},954929,821816,618844,727503,367064,621404,70423,672691,e=>{"use strict";e.s([],727503),e.s(["MEDIA_TYPES_QUERY_PARAM",()=>g,"SearchProvider",()=>v,"useSearchContext",()=>b],821816),e.i(308945);var t=e.i(728362),r=e.i(249221);e.i(717590);var n=e.i(309740),i=e.i(804967),o=e.i(90783),a=e.i(464823),s=e.i(394027),l=e.i(199153),c=e.i(574640),u=e.i(147754);e.i(859391);var p=e.i(992374);let d=(e,t,r)=>{if(void 0===globalThis.window)return;let n=new URLSearchParams(globalThis.window.location.search);r&&t===r?n.delete(e):n.set(e,t);let i=globalThis.window.location.protocol+"//"+globalThis.window.location.host+globalThis.window.location.pathname+"?"+n.toString();globalThis.window.history.replaceState({path:i},"",i)},h=(...e)=>{if(void 0===globalThis.window)return;let t=new URLSearchParams(globalThis.window.location.search);e.forEach(e=>t.delete(e));let r=t.toString(),n=globalThis.window.location.protocol+"//"+globalThis.window.location.host+globalThis.window.location.pathname+(""===r?"":`?${r}`);globalThis.window.history.replaceState({path:n},"",n)},f="search",g="mediaTypes",y=()=>{h(f),h(g)},m=(0,u.createContext)({hideSearchButton:!1,mediaTypesFilter:[],searchQuery:null,
275setHideSearchButton:()=>void 0,setMediaTypesFilter:()=>void 0,setSearchQuery:()=>void 0,setShowSearch:()=>void 0,showSearch:!1}),v=({children:e})=>{let r=(0,c.useSearchParams)(),n=(0,c.usePathname)(),i=(0,u.useRef)(!0),[o,l]=(0,u.useState)(!1),[h,v]=(0,u.useState)(!1),b=r?.get(f)??null,[E,S]=(0,u.useState)(b),[T,w]=(0,u.useState)((0,a.getSearchMediaTypeArrayFromStringOrNull)(r?.get(g)??null)),k=(0,u.useCallback)(e=>{l(e),e||y()},[l]),O=(0,u.useCallback)(e=>{S(e),(e=>{if(0===e.length)return y();d(f,e)})(e)},[S]),_=(0,u.useCallback)(e=>{var t;w(e),"string"==typeof(t=(0,s.generateUrlQueryStringFromMediaTypes)(e))&&0===t.length&&y(),x(t)},[w]),[I]=(0,p.useDebounce)(O,500),A=(0,u.useMemo)(()=>({hideSearchButton:h,mediaTypesFilter:T,searchQuery:E,setHideSearchButton:v,setMediaTypesFilter:_,setSearchQuery:I,setShowSearch:k,showSearch:o}),[h,T,E,_,I,k,o]);return(0,u.useEffect)(()=>{k(!!r&&r.has(f))},[]),(0,u.useEffect)(()=>{if(i.current){i.current=!1;return}k(!1)},[n,k]),(0,t.jsx)(m.Provider,{value:A,children:e})},b=()=>(0,u.useContext)(m),x=e=>{let t="string"==typeof e?e:"all";d(g,t===l.SearchMediaType.ScriptedSeries?"program_and_series":t,"all")},E=(0,r.css)("@font-face{font-family:'Telia Sans Heading';font-weight:400;font-style:normal;src:url('/_next/static/css/telia-sans-heading/woff2/TeliaSansHeading-Heading.woff2?v=5a4cec1a')\n        format('woff2'),url('/_next/static/css/telia-sans-heading/woff/TeliaSansHeading-Heading.woff?v=c702054a')\n        format('woff');font-display:swap;}@font-face{font-family:'Telia Sans';font-weight:400;font-style:normal;src:url('/_next/static/css/telia-sans/woff2/TeliaSans-Regular.woff2?v=5a71d40a') format('woff2'),url('/_next/static/css/telia-sans/woff/TeliaSans-Regular.woff?v=14d3f30b') format('woff');font-display:swap;}@font-face{font-family:'Telia Sans';font-weight:400;font-style:italic;src:url('/_next/static/css/telia-sans/woff2/TeliaSans-RegularItalic.woff2?v=d0a112d8')\n        format('woff2'),url('/_next/static/css/telia-sans/woff/TeliaSans-RegularItalic.woff?v=e8d94cc6') format('woff');font-display:swap;}@font-face{font-family:'Telia Sans';font-weight:500;font-style:normal;src:url('/_next/static/css/telia-sans/woff2/TeliaSans-Medium.woff2?v=dfa42f40') format('woff2'),url('/_next/static/css/telia-sans/woff/TeliaSans-Medium.woff?v=c89065ac') format('woff');font-display:swap;}@font-face{font-family:'Telia Sans';font-weight:500;font-style:italic;src:url('/_next/static/css/telia-sans/woff2/TeliaSans-MediumItalic.woff2?v=c8a9c113')\n        format('woff2'),url('/_next/static/css/telia-sans/woff/TeliaSans-MediumItalic.woff?v=88e6a3db') format('woff');font-display:swap;}@font-face{font-family:'Telia Sans';font-weight:700;font-style:normal;src:url('/_next/static/css/telia-sans/woff2/TeliaSans-Bold.woff2?v=93819cd1') format('woff2'),url('/_next/static/css/telia-sans/woff/TeliaSans-Bold.woff?v=4f37a8aa') format('woff');font-display:swap;}@font-face{font-family:'Telia Sans';font-weight:700;font-style:italic;src:url('/_next/static/css/telia-sans/woff2/TeliaSans-BoldItalic.woff2?v=158e7986') format('woff2'),url('/_next/static/css/telia-sans/woff/TeliaSans-BoldItalic.woff?v=8e090d62') format('woff');font-display:swap;}");e.i(314627);var S=e.i(179734),T=e.i(360694);let w="KAMPYLE_ONSITE_SDK",k=()=>!!(window[`${w}`]&&"function"==typeof window[`${w}`]?.updatePageView),O=()=>{let e=(0,T.getEnvironment)(),t=(0,S.getCountry)();window._KAMPYLE_PRIVATE_DATA={accountID:"",environment:e,isLoggedIn:!1,market:t},k()&&window[`${w}`].updatePageView()};e.i(251825);var _=e.i(294224);e.s(["getTypographyFromToken",0,e=>e in _.OneAppTokens.typography?_.OneAppTokens.typography[e]:{}],618844);let I=(0,r.css)(".ot-floating-button{display:none;}"),A="--market-web-dominant-color",N=()=>{let e=_.OneAppTokens.color.background.primary;return(0,t.jsx)(r.Global,{styles:[(0,r.css)(o.default," ",E,":root{",A,":",e,";}html{font-size:",_.OneAppTokens.typography.base.fontSize,";}html,body{font-family:",_.OneAppTokens.typography.textPrimary.fontFamily,";}body:not(.is-tabbing) *:focus{outline:0;}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;touch-action:pan-x pan-y;background-color:var(",A,");color:",_.OneAppTokens.color.text.primary,";line-height:",_.OneAppTokens.typography.textPrimary.lineHeight,";font-weight:",_.OneAppTokens.typography.textPrimary.fontWeight,";margin:0;padding:0;}button,a{cursor:pointer;}small{color:",_.OneAppTokens.color.text.disabled,";}a{display:inline-block;text-decoration:none;color:",_.OneAppTokens.color.text.primary,";cursor:pointer;}h1,h2,h3,h4,h5,h6{font-family:",_.OneAppTokens.typography.headingPrimary.fontFamily,";margin-bottom:16px;margin-top:0;text-transform:",_.OneAppTokens.typography.headingPrimary.textTransform,";}main{margin-bottom:",(0,i.pxToRem)(40),"rem;",n.mq.L`
276            margin-bottom: ${(0,i.pxToRem)(64)}rem;
277          `,"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}",I)]})};function P(){return(0,t.jsx)(N,{})}e.s(["DOMINANT_COLOR_CSS_VAR_NAME",0,A,"default",0,P],367064);var R=e.i(683808),D=e.i(664809),C=e.i(143811);let L=({children:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Global,{styles:[(0,r.css)(C.rootStyle," ",E,"        html{font-size:",_.OneAppTokens.typography.base.fontSize,";}")]}),e]});e.s(["MarketWebThemeProvider",0,({children:e})=>((0,R.useIsTabbing)(),(0,D.useIsFinePointer)(),(0,t.jsxs)(L,{children:[(0,t.jsx)(P,{}),e]}
277))],621404),e.i(751489);var F=e.i(734744);let M=(0,u.createContext)({medalliaUpdatePageView:()=>void 0});e.s(["MedalliaProvider",0,({children:e})=>{let r=(0,u.useMemo)(()=>({medalliaUpdatePageView:O}),[]);return(0,u.useEffect)(()=>{if(!(0,F.isEnabled)("medallia"))return;let e=setTimeout(function t(){if(k())return O(),clearTimeout(e);e=setTimeout(t,20)},20);return()=>{clearTimeout(e)}},[]),(0,t.jsx)(M.Provider,{value:r,children:e})}],70423);let $=(0,u.createContext)(void 0),j=()=>{let e=(0,u.useContext)($);return e||{setSubPagesLinks:()=>void 0,subPagesLinks:[]}};e.s(["SubPagesLinksProvider",0,({children:e})=>{let[r,n]=(0,u.useState)([]),i=(0,u.useMemo)(()=>({setSubPagesLinks:n,subPagesLinks:r}),[r]);return(0,t.jsx)($.Provider,{value:i,children:e})},"useRegisterSubPagesLinks",0,e=>{let{setSubPagesLinks:t}=j();(0,u.useEffect)(()=>(t(e??[]),()=>t([])),[e,t])},"useSubPagesLinksContext",0,j],672691),e.s([],954929)},464823,394027,e=>{"use strict";var t=e.i(199153);e.s(["getSearchMediaTypeArrayFromStringOrNull",0,e=>{switch(e){case"movie":return[t.SearchMediaType.Movie];case"program_and_series":return[t.SearchMediaType.ScriptedSeries,t.SearchMediaType.Program];case"sport":return[t.SearchMediaType.Sport];case"news":return[t.SearchMediaType.News];default:return[]}}],464823),e.s(["generateUrlQueryStringFromMediaTypes",0,e=>0===e.length?"all":e.includes(t.SearchMediaType.Movie)?"movie":e.includes(t.SearchMediaType.ScriptedSeries)&&e.includes(t.SearchMediaType.Program)?"program_and_series":e.includes(t.SearchMediaType.Sport)?"sport":e.includes(t.SearchMediaType.News)?"news":"all"],394027)},697797,e=>{"use strict";var t=e.i(990713);e.i(717590);var r=e.i(804967);let n={L:80,M:40,S:16,XL:80};e.s(["PAGE_MARGIN",0,n,"getPageMarginInRem",0,e=>e>=t.breakpointWidths.L?`${(0,r.pxToRem)(n.L)}rem`:e>=t.breakpointWidths.M?`${(0,r.pxToRem)(n.M)}rem`:`${(0,r.pxToRem)(n.S)}rem`])},996506,e=>{"use strict";e.s(["nextImageLoader",0,({src:e})=>`${e}`])},954702,858077,691472,720014,501078,212393,e=>{"use strict";let t;e.i(314627),e.i(179734),e.i(34745),e.i(865818),e.i(65831),e.i(752826),e.i(37263),e.i(596008),e.i(329297),e.i(338848),e.i(560926),e.i(266005);var r=e.i(523551);e.i(751489);var n=e.i(680760),i=e.i(740775),o=e.i(199153);let a=(e,t,r=0)=>{let n=e?e.slice(0):[],i=t??[];if(!i.length)return n;if(e?.length===0)return t;for(let e=0;e<i.length;++e)n[r+e]=i[e];return n},s=(e,t,r)=>{let{variables:n}=r;return a(e,t,n?.config?.offset||n?.offset||n?.input?.offset||0)},l={PosterItems:{fields:{items:{merge:(e,t,{variables:r})=>a(e,t,r?.posterListPanelConfig?.offset??0)}},keyFields:e=>e.sortOptions?["id","sortOptions",["key","order","selected"]]:["id"]},SearchResult:{fields:{searchItems:{merge:s}}},Season:{fields:{episodes2:{keyArgs:!1,merge:(e,t,r)=>{let n=s(e?.episodeList||[],t?.episodeList||[],r);return{...t,episodeList:n}}}}}},c={Query:{fields:{search2:{keyArgs:["input",["q","searchType","mediaTypesFilter"]]}}}};e.s([],858077);let u=()=>void 0===globalThis.window;e.s(["isServer",0,u],691472);let p={mutate:{errorPolicy:"none",fetchPolicy:"no-cache"},query:{errorPolicy:"none",fetchPolicy:"no-cache"},watchQuery:{errorPolicy:"none",fetchPolicy:"no-cache"}},d={},h={enabled:!0,useGETForHashedQueries:!1},f={};var g=e.i(13127),y=e.i(126612);e.i(147754);let m=(e,t)=>{if(Object.is(e,t))return!0;if(null===e||null===t)return e===t;if("object"!=typeof e||"object"!=typeof t)return!1;if(Array.isArray(e)||Array.isArray(t))return!!Array.isArray(e)&&!!Array.isArray(t)&&e.length===t.length&&e.every((e,r)=>m(e,t[r]));let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(r=>Object.hasOwn(t,r)&&m(e[r],t[r]))};function v(e=null){let a,s,b=t??(a=(0,n.getConfig)(),s=u()&&a["app/graphql/server-url"]||a["app/graphql/url"],(0,r.createApolloClientNoAuth)({cache:(()=>{let e=new i.InMemoryCache({possibleTypes:o.default.possibleTypes});
277return e.policies.addTypePolicies(l),e.policies.addTypePolicies(c),e})(),defaultOptions:u()?p:d,graphqlUrl:s,onError:e=>{g.Log.instance()("ApolloClientLog").error("apollo client error:",e)},persistedQueryOptions:u()?f:h,showRequestLogs:!1,ssrMode:u()}));if(e){let t=b.extract(),r=(0,y.default)(e,t,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!m(e,t)))]});b.cache.restore(r)}return t=b,b}e.s(["initializeApollo",0,v],720014),e.i(828265),e.i(668492);let b={ASC:o.SortOrder.Asc,DESC:o.SortOrder.Desc},x={[o.SortOrder.Asc]:"ASC",[o.SortOrder.Desc]:"DESC"};e.s(["PosterPanelSortOrderToSortOrder",0,b,"SORT_FIELD_PARAM",0,"sort_field","SORT_ORDER_PARAM",0,"sort_order","SortOrderToPosterPanelSortOrder",0,x],501078),e.s([],212393),v(),e.s(["POSTER_LIMIT",0,16],954702)},594041,752826,596008,865818,329297,65831,111301,37263,338848,560926,266005,34745,e=>{"use strict";e.i(314627);var t=e.i(179734);e.s(["getLanguage",0,()=>"NO"===(0,t.getCountry)()?"nb":"FI"===(0,t.getCountry)()?"fi":"sv"],594041);var r=e.i(346279);let n=r.gql`
278  fragment SubscriptionProductStandard on SubscriptionProductStandard {
279    ... on SubscriptionProductStandard {
280      id
281      name
282      price {
283        readable
284      }
285    }
286  }
287`,i=r.gql`
288  ${n}
289  fragment PlaybackBuySubscriptions on PlaybackBuySubscription {
290    item {
291      ...SubscriptionProductStandard
292    }
293  }
294`,o=r.gql`
295  fragment BasicLabel on BasicLabel {
296    __typename
297    _testBasicLabelType
298    text
299    icon {
300      color
301      icon
302      placement
303    }
304    style {
305      textColor
306      textStyle
307      backgroundColor
308    }
309  }
310`,a=r.gql`
311  fragment DatePatternLabel on DatePatternLabel {
312    __typename
313    _testType
314    dateForPattern {
315      timestamp
316    }
317    pattern
318    rounding
319    type
320    style {
321      textColor
322      textStyle
323      backgroundColor
324    }
325    icon {
326      color
327      icon
328      placement
329    }
330  }
331`,s=r.gql`
332  ${o}
333  ${a}
334  fragment TimeSensitiveLabel on TimeSensitiveLabel {
335    __typename
336    spans {
337      from {
338        timestamp
339      }
340      to {
341        timestamp
342      }
343      label {
344        ...DatePatternLabel
345        ...BasicLabel
346      }
347    }
348  }
349`,l=r.gql`
350  ${o}
351  ${s}
352  fragment PosterLabel on Label {
353    ...TimeSensitiveLabel
354    ...BasicLabel
355  }
356`,c=r.gql`
357  ${l}
358  fragment PosterLabels on PosterLabels {
359    primary {
360      ...PosterLabel
361    }
362    secondary {
363      ...PosterLabel
364    }
365  }
366`,u=r.gql`
367  fragment CollectionPageInfo on CollectionPageInfo {
368    nextItems
369    previousItems
370  }
371`,p=r.gql`
372  fragment LinkInterface on LinkInterface {
373    to
374    ... on LinkDeep {
375      __typename
376      serviceName
377      googlePlayStoreId
378      appleAppStoreUrl
379      applicationId
380    }
381    ... on LinkChannel {
382      __typename
383    }
384    ... on LinkEpisode {
385      __typename
386    }
387    ... on LinkMovie {
388      __typename
389    }
390    ... on LinkPage {
391      __typename
392    }
393    ... on LinkPanel {
394      __typename
395    }
396    ... on LinkSeries {
397      __typename
398    }
399    ... on LinkSportEvent {
400      __typename
401    }
402    ... on LinkSportEventList {
403      __typename
404    }
405    ... on LinkStatic {
406      __typename
407    }
408    ... on LinkStore {
409      __typename
410    }
411    ... on LinkPlay {
412      __typename
413    }
414    ... on LinkChangeStreamingServiceTier {
415      __typename
416    }
417    ... on LinkTeam {
418      __typename
419    }
420  }
421`,d=r.gql`
422  fragment MetadataItem on MetadataItem {
423    ... on MetadataTextBadge {
424      text
425      textBadgeType
426    }
427    ... on MetadataItemString {
428      text
429    }
430    ... on MetadataBadgeIMDB {
431      text
432      url
433    }
434  }
435`,h=r.gql`
436  ${p}
437  ${d}
438  ${c}
439  ${u}
440  fragment PosterListPanel on PosterListPanel {
441    id
442    title
443    standaloneViewTitle
444    kicker
445    display {
446      posterOrientation
447      layout
448      decoration
449    }
450    posters(config: $posterListPanelConfig) {
451      id
452      collectionPageInfo {
453        ...CollectionPageInfo
454      }
455      sortOptions {
456        key
457        selected
458        title
459        order
460      }
461      defaultScrollPosition
462      refreshAt {
463        timestamp
464      }
465      showMore {
466        link3 {
467          ...LinkInterface
468        }
469      }
470      items {
471        __typename
472        id
473        labels {
474          ...PosterLabels
475        }
476        image {
477          source
478        }
479        link {
480          link3 {
481            ...LinkInterface
482          }
483        }
484        details {
485          overlay {
486            header
487            metadataRowOne {
488              ...MetadataItem
489            }
490          }
491          hover {
492            header
493            metadataRowOne {
494              ...MetadataItem
495            }
496            metadataRowTwo {
497              ...MetadataItem
498            }
499          }
500        }
501        a11y {
502          contentLabel
503        }
504        gradient {
505          ... on ColorGradientLinear {
506            start {
507              x
508              y
509            }
510            end {
511              x
512              y
513            }
514            stops {
515              color {
516                hex
517                rgb
518              }
519              pos
520            }
521          }
522        }
523      }
524    }
525  }
526`,f=r.gql`
527  ${h}
528  fragment RelatedPanelsX on RelatedPanels {
529    panels {
530      ...PosterListPanel
531    }
532  }
533`,g=r.gql`
534  fragment SubscriptionPanelX on SubscriptionPanelX {
535    id
536    title
537    subscriptionContent {
538      items {
539        ... on SubscriptionPanelItem {
540          heading
541          badge
542          link
543          subscription {
544            name
545            id
546          }
547          channelsInfo
548          servicesInfo
549          sportsInfo
550          streamingInfo
551          offeringBindingInfo
552          offeringDescription
553          offeringPrice
554          packageIcons {
555            source
556          }
557        }
558      }
559    }
560  }
561`,y=r.gql`
562  fragment SubscriptionPanelItemAccess on SubscriptionPanelItemAccess {
563    a11y {
564      text
565    }
566    title
567    items {
568      ... on SubscriptionPanelItemAccessLogo {
569        a11y {
570          text
571        }
572        logo {
573          contentType
574          source
575        }
576      }
577      ... on SubscriptionPanelItemAccessText {
578        a11y {
579          text
580        }
581        text
582      }
583    }
584  }
585`,m=r.gql`
586  ${y}
587  fragment SubscriptionPanelItemPackageContent on SubscriptionPanelItemPackageContent {
588    __typename
589    title
590    description
591    additionalAccess {
592      ...SubscriptionPanelItemAccess
593    }
594    promotedAccess {
595      ...SubscriptionPanelItemAccess
596    }
597  }
598`,v=r.gql`
599  fragment SubscriptionPanelItemSingleAccessContent on SubscriptionPanelItemSingleAccessContent {
600    __typename
601    title
602    description
603    logo {
604      contentType
605      source
606    }
607    poster16x9 {
608      id
609      source
610      colors {
611        blurHash
612        muteBgColor {
613          rgb
614          hex
615        }
616      }
617      contentType
618    }
619  }
620`,b=r.gql`
621  ${m}
622  ${v}
623
624  fragment SubscriptionPanelXV2 on SubscriptionPanelXV2 {
625    analytics {
626      panel_id
627    }
628    id
629    title
630    kicker
631    subscriptionContent {
632      items {
633        id
634        content {
635          ... on SubscriptionPanelItemPackageContent {
636            ...SubscriptionPanelItemPackageContent
637          }
638          ... on SubscriptionPanelItemSingleAccessContent {
639            ...SubscriptionPanelItemSingleAccessContent
640          }
641        }
642        label {
643          text
644          style {
645            textStyle
646            textColor
647            backgroundColor
648          }
649          icon {
650            icon
651            color
652            placement
653          }
654        }
655        price {
656          a11y {
657            text
658          }
659          prefix
660          price
661          information
662          basePrice
663        }
664        button {
665          a11y {
666            text
667          }
668          label
669          signup {
670            ... on ExternalWebPageSubscriptionSignup {
671              url
672            }
673          }
674        }
675      }
676    }
677  }
678`,x=r.gql`
679  fragment SearchResultItem on SearchResultItem {
680    media {
681      ... on Series {
682        title
683        id
684        genre
685        label
686        images {
687          showcard16x9 {
688            source
689            source
690            needsTitleTreatment
691          }
692        }
693        ratings {
694          imdb {
695            readableScore
696            url
697          }
698        }
699        ageRating {
700          number
701          content {
702            ... on MetadataItemString {
703              text
704            }
705          }
706        }
707      }
708      ... on Movie {
709        title
710        id
711        genre
712        labels {
713          premiereAnnouncement {
714            text
715          }
716        }
717        images {
718          showcard16x9 {
719            source
720            source
721            needsTitleTreatment
722          }
723        }
724        yearProduction {
725          readable
726        }
727        duration {
728          readableShort
729        }
730        ratings {
731          imdb {
732            readableScore
733            url
734          }
735        }
736        ageRating {
737          number
738          content {
739            ... on MetadataItemString {
740              text
741            }
742          }
743        }
744      }
745
746      ... on SportEvent {
747        title
748        id
749        genre
750        playback {
751          buy {
752            linear {
753              item {
754                startTime {
755                  timestamp
756                }
757              }
758            }
759          }
760          play {
761            linear {
762              item {
763                startTime {
764                  timestamp
765                }
766              }
767            }
768          }
769        }
770        availability {
771          to {
772            text
773            timestamp
774          }
775          from {
776            timestamp
777          }
778        }
779        labels {
780          airtime {
781            text
782            isBroadcasting
783          }
784          premiereAnnouncement {
785            text
786          }
787        }
788        images {
789          showcard16x9 {
790            source
791            source
792            needsTitleTreatment
793          }
794        }
795        yearProduction {
796          readable
797        }
798        duration {
799          readableShort
800          seconds
801        }
802        ageRating {
803          number
804          content {
805            ... on MetadataItemString {
806              text
807            }
808          }
809        }
810      }
811    }
812  }
813`,E=r.gql`
814  ${p}
815  fragment Provider on Provider {
816    name
817    link3 {
818      ...LinkInterface
819    }
820    icons {
821      dark {
822        source
823      }
824    }
825  }
826`,S=r.gql`
827  fragment ImageColors on ImageColors {
828    blurHash
829    muteBgColor {
830      hex
831    }
832  }
833`,T=r.gql`
834  ${S}
835  fragment Image on Image {
836    id
837    colors {
838      ...ImageColors
839    }
840    source
841  }
842`,w=r.gql`
843  ${T}
844  ${E}
845  ${c}
846  ${p}
847  fragment ShowcasePanelX on ShowcasePanelX {
848    id
849    showcaseContent {
850      items {
851        id
852        kicker
853        description
854        images {
855          showcase16x9 {
856            ...Image
857          }
858          showcase2x3 {
859            ...Image
860          }
861        }
862        provider {
863          ...Provider
864        }
865        showcaseTitle {
866          image {
867            ...Image
868          }
869          text
870        }
871        promotion {
872          link3 {
873            ...LinkInterface
874          }
875          posterLabels {
876            ...PosterLabels
877          }
878        }
879      }
880    }
881  }
882`,k=r.gql`
883  ${l}
884  fragment CdpData on CdpData {
885    metadataRow {
886      ... on MetadataItemString {
887        __typename
888        text
889      }
890      ... on MetadataTextBadge {
891        __typename
892        text
893      }
894      ... on MetadataBadgeIMDB {
895        text
896        __typename
897      }
898    }
899    labels {
900      ...PosterLabel
901    }
902  }
903`,O=r.gql`
904  ${p}
905  ${T}
906  fragment SingleFeaturePanelX on SingleFeaturePanelX {
907    id
908    title
909    singleFeaturePromotion {
910      text
911      subtitle
912      link3 {
913        ...LinkInterface
914      }
915      images {
916        promo16x9 {
917          ...Image
918        }
919      }
920    }
921  }
922`,_=r.gql`
923  ${p}
924  fragment PageLink on PageLink {
925    link3 {
926      ...LinkInterface
927    }
928    name
929  }
930`,I=r.gql`
931  ${_}
932  fragment SubPages on PageLinks {
933    items {
934      ...PageLink
935    }
936  }
937`;e.s(["getSeriesQuery",0,()=>r.gql`
938    ${i}
939    ${E}
940    ${T}
941    ${k}
942    query getSeries($seriesId: String!) {
943      series(id: $seriesId) {
944        __typename
945        id
946        title
947        images {
948          backdrop16x9 {
949            ...Image
950          }
951          showcard2x3 {
952            source
953          }
954        }
955        seasonLinks {
956          items {
957            id
958            seasonNumber {
959              number
960              readable
961            }
962          }
963        }
964        suggestedEpisode {
965          playback {
966            buy {
967              subscriptions {
968                ...PlaybackBuySubscriptions
969              }
970            }
971          }
972        }
973        numberOfSeasons {
974          readable
975          number
976        }
977        numberOfEpisodes {
978          readable
979          number
980        }
981
982        badges {
983          uhd {
984            text
985          }
986        }
987        ageRating {
988          number
989          content {
990            ... on MetadataItemString {
991              text
992            }
993          }
994        }
995        ratings {
996          imdb {
997            readableScore
998            url
999            numberOfVotes
1000          }
1001        }
1002        cdp {
1003          ...CdpData
1004        }
1005        description
1006        genre
1007        subGenres
1008        actors
1009        directors
1010        upcomingEpisode {
1011          id
1012          header {
1013            topic
1014            title
1015          }
1016          images {
1017            backdrop16x9 {
1018              source
1019            }
1020          }
1021          availability {
1022            from {
1023              text
1024              timestamp
1025            }
1026          }
1027        }
1028        provider {
1029          ...Provider
1030        }
1031      }
1032    }
1033  `],752826),e.s(["getMovieQueryX",0,()=>r.gql`
1034  ${i}
1035  ${f}
1036  ${E}
1037  ${T}
1038  ${k}
1039  query getMovieX(
1040    $movieId: String!
1041    $posterListPanelConfig: PosterListPanelInput
1042  ) {
1043    movie(id: $movieId) {
1044      __typename
1045      id
1046      title
1047      cdp {
1048        ...CdpData
1049      }
1050      images {
1051        backdrop16x9 {
1052          ...Image
1053        }
1054        showcard2x3 {
1055          source
1056        }
1057      }
1058      playback {
1059        buy {
1060          subscriptions {
1061            ...PlaybackBuySubscriptions
1062          }
1063        }
1064      }
1065      ageRating {
1066        number
1067        content {
1068          ... on MetadataItemString {
1069            text
1070          }
1071        }
1072      }
1073      yearProduction {
1074        readable
1075      }
1076      duration {
1077        readableShort
1078      }
1079      ratings {
1080        imdb {
1081          readableScore
1082          url
1083          numberOfVotes
1084        }
1085      }
1086      badges {
1087        uhd {
1088          text
1089        }
1090      }
1091      description
1092      actors
1093      directors
1094      relatedPanels {
1095        ...RelatedPanelsX
1096      }
1097      actors
1098      directors
1099      audioLanguages {
1100        name
1101        code
1102      }
1103      genre
1104      subGenres
1105      availability {
1106        to {
1107          text
1108        }
1109      }
1110      provider {
1111        ...Provider
1112      }
1113    }
1114  }
1115`],596008),e.s(["getEpisodeQuery",0,()=>r.gql`
1116    ${i}
1117    ${E}
1118    ${T}
1119    ${k}
1120    ${S}
1121    query getEpisode($episodeId: String!) {
1122      episode(id: $episodeId) {
1123        __typename
1124        id
1125        title
1126        images {
1127          backdrop16x9 {
1128            ...Image
1129          }
1130          showcard2x3 {
1131            source
1132            colors {
1133              ...ImageColors
1134            }
1135          }
1136        }
1137        playback {
1138          buy {
1139            subscriptions {
1140              ...PlaybackBuySubscriptions
1141            }
1142          }
1143        }
1144        cdp {
1145          ...CdpData
1146        }
1147        genre
1148        yearProduction {
1149          readable
1150        }
1151        duration {
1152          readableShort
1153        }
1154        series {
1155          id
1156          cdp {
1157            ...CdpData
1158          }
1159          description
1160          ratings {
1161            imdb {
1162              readableScore
1163              url
1164              numberOfVotes
1165            }
1166          }
1167          title
1168          description
1169          seasonLinks {
1170            items {
1171              id
1172              seasonNumber {
1173                number
1174                readable
1175              }
1176            }
1177          }
1178          upcomingEpisode {
1179            header {
1180              topic
1181              title
1182            }
1183            images {
1184         
1184     backdrop16x9 {
1185                ...Image
1186              }
1187            }
1188            availability {
1189              from {
1190                text
1191                timestamp
1192              }
1193            }
1194          }
1195        }
1196        episodeNumber {
1197          readable
1198          number
1199        }
1200        seasonNumber {
1201          readable
1202          number
1203        }
1204        badges {
1205          uhd {
1206            text
1207          }
1208        }
1209        ageRating {
1210          number
1211          content {
1212            ... on MetadataItemString {
1213              text
1214            }
1215          }
1216        }
1217        description
1218        actors
1219        directors
1220        audioLanguages {
1221          name
1222          code
1223        }
1224        genre
1225        subGenres
1226        availability {
1227          to {
1228            text
1229          }
1230          from {
1231            timestamp
1232          }
1233        }
1234        provider {
1235          ...Provider
1236        }
1237      }
1238    }
1239  `],865818),e.s(["getSportEventQueryX",0,()=>r.gql`
1240    ${i}
1241    ${f}
1242    ${E}
1243    ${T}
1244    ${k}
1245    query getSportEventX(
1246      $sportEventId: String!
1247      $posterListPanelConfig: PosterListPanelInput
1248    ) {
1249      sportEvent(id: $sportEventId) {
1250        __typename
1251        id
1252        title
1253        cdp {
1254          ...CdpData
1255        }
1256        images {
1257          backdrop16x9 {
1258            ...Image
1259          }
1260          showcard2x3 {
1261            source
1262          }
1263        }
1264        playback {
1265          buy {
1266            subscriptions {
1267              ...PlaybackBuySubscriptions
1268            }
1269          }
1270        }
1271        league
1272        yearProduction {
1273          readable
1274        }
1275        genre
1276        duration {
1277          readableShort
1278          seconds
1279        }
1280
1281        badges {
1282          uhd {
1283            text
1284          }
1285        }
1286        description
1287        commentators
1288        inStudio
1289        availability {
1290          to {
1291            text
1292            timestamp
1293          }
1294          from {
1295            timestamp
1296          }
1297        }
1298        venue
1299        relatedPanels {
1300          ...RelatedPanelsX
1301        }
1302        teams {
1303          home {
1304            name
1305          }
1306          away {
1307            name
1308          }
1309        }
1310        provider {
1311          ...Provider
1312        }
1313      }
1314    }
1315  `],329297);let A=r.gql`
1316  ${S}
1317  fragment EpisodeListItem on Episode {
1318    id
1319    title
1320    yearProduction {
1321      readable
1322    }
1323    episodeNumber {
1324      readable
1325      number
1326    }
1327    duration {
1328      readableShort
1329    }
1330    availability {
1331      to {
1332        text
1333      }
1334    }
1335    description
1336    images {
1337      screenshot16x9 {
1338        source
1339        colors {
1340          ...ImageColors
1341        }
1342      }
1343    }
1344  }
1345`;e.s(["getSeasonQuery",0,()=>r.gql`
1346    ${A}
1347    query getSeason($seasonId: String!, $limit: Int!, $offset: Int!) {
1348      season(seasonId: $seasonId) {
1349        __typename
1350        id
1351        description
1352        seasonNumber {
1353          readable
1354          number
1355        }
1356        episodes2(input: { limit: $limit, offset: $offset }) {
1357          episodeList {
1358            episode {
1359              ...EpisodeListItem
1360            }
1361          }
1362          collectionPageInfo {
1363            totalCount
1364          }
1365        }
1366      }
1367    }
1368  `],65831),e.s(["getSearchQuery",0,()=>r.gql`
1369    ${x}
1370    query getSearch(
1371      $q: String!
1372      $offset: Int
1373      $limit: Int
1374      $mediaTypesFilter: [SearchMediaType!]
1375    ) {
1376      search2(
1377        input: {
1378          q: $q
1379          limit: $limit
1380          offset: $offset
1381          mediaTypesFilter: $mediaTypesFilter
1382        }
1383      ) {
1384        __typename
1385        pageInfo {
1386          totalCount
1387          hasNextPage
1388          nextPageOffset
1389        }
1390        searchItems {
1391          ...SearchResultItem
1392        }
1393      }
1394    }
1395  `],111301),e.s(["getPageQueryX",0,()=>r.gql`
1396  ${w}
1397  ${g}
1398  ${b}
1399  ${O}
1400  ${h}
1401  ${I}
1402  query getPageX(
1403    $pageId: String!
1404    $posterListPanelConfig: PosterListPanelInput
1405  ) {
1406    page(id: $pageId) {
1407      title
1408      standaloneViewTitle
1409      subPages {
1410        ...SubPages
1411      }
1412      pagePanels {
1413        panels {
1414          ...ShowcasePanelX
1415          ...SubscriptionPanelX
1416          ...SubscriptionPanelXV2
1417          ...SingleFeaturePanelX
1418          ...PosterListPanel
1419        }
1420      }
1421    }
1422  }
1423`],37263),e.s(["getPanelXQuery",0,()=>r.gql`
1424  ${h}
1425  query getPanelX(
1426    $panelXId: String!
1427    $posterListPanelConfig: PosterListPanelInput
1428  ) {
1429    panelX(id: $panelXId) {
1430      ... on PosterListPanel {
1431        ...PosterListPanel
1432      }
1433    }
1434  }
1435`],338848),e.s(["getStoreQuery",0,()=>r.gql`
1436  ${w}
1437  ${g}
1438  ${b}
1439  ${O}
1440  ${h}
1441  query getStore(
1442    $storeId: String!
1443    $posterListPanelConfig: PosterListPanelInput
1444  ) {
1445    store(id: $storeId) {
1446      id
1447      icons {
1448        dark {
1449          source
1450        }
1451        light {
1452          source
1453        }
1454      }
1455      name
1456      pagePanels {
1457        panels {
1458          ...ShowcasePanelX
1459          ...SubscriptionPanelX
1460          ...SubscriptionPanelXV2
1461          ...SingleFeaturePanelX
1462          ...PosterListPanel
1463        }
1464      }
1465    }
1466  }
1467`],560926),e.s(["getHeaderQuery",0,()=>r.gql`
1468    ${p}
1469    query getMainMenu {
1470      mainMenu {
1471        items {
1472          name
1473          link3 {
1474            ...LinkInterface
1475          }
1476        }
1477      }
1478    }
1479  `],266005),e.s([],34745)},717590,105745,703206,664809,683808,647480,725542,347248,538305,926935,134026,374945,535492,313114,85286,784249,765299,894808,420161,599413,73579,653323,782076,633836,196239,798520,515745,577182,470934,279126,91649,668617,161,708001,790812,829066,361979,637165,54172,369710,812064,189731,e=>{"use strict";let t,r;e.i(586469);var n=e.i(309740),i=e.i(804967);
1479e.i(754641);var o=e.i(136350);e.i(658766),e.i(919554),e.i(618046),e.i(389170),e.i(216861),e.i(245043),e.i(720783);var a=e.i(147754);e.i(534677),e.i(253685),e.i(336090),e.i(168697),e.i(717647),e.i(881663),e.i(301588),e.i(60398),e.i(273865),e.i(639184),e.i(86556),e.i(393562),e.i(916421),e.i(887991);let s=(e,t)=>{t in window&&window[t].removeItem(e)},l=(e,t,r)=>{if(!(r in window))return;let n="";"number"==typeof t?n=t.toString():"object"==typeof t||"boolean"==typeof t?n=JSON.stringify(t):"string"==typeof t&&(n=t),window[r].setItem(e,n)},c=(e,t,r)=>{if(!(r in window))return t;try{let n=window[r].getItem(e);if(null===n);else if("number"==typeof t)return Number(n);else if("object"==typeof t||"boolean"==typeof t)return JSON.parse(n);else if("string"==typeof t)return n;return t}catch{return t}};e.s(["getLocalStorage",0,(e,t)=>c(e,t,"localStorage"),"getSessionStorage",0,(e,t)=>c(e,t,"sessionStorage"),"removeLocalStorage",0,e=>s(e,"localStorage"),"removeSessionStorage",0,e=>s(e,"sessionStorage"),"setLocalStorage",0,(e,t)=>{l(e,t,"localStorage")},"setSessionStorage",0,(e,t)=>{l(e,t,"sessionStorage")}],105745),e.s([],703206),e.i(800483);let u="is-fine-pointer";e.s(["IS_FINE_POINTER",0,u,"useIsFinePointer",0,()=>{let e=(0,a.useRef)(0);(0,a.useEffect)(()=>{let t=()=>{Date.now()-e.current<500||document.body.classList.add(u)},r=()=>{e.current=Date.now(),document.body.classList.remove(u)};return document.addEventListener("mousemove",t),document.addEventListener("touchstart",r),t(),()=>{document.removeEventListener("mousemove",t),document.removeEventListener("touchstart",r),r()}},[])}],664809),e.s(["useIsTabbing",0,()=>{(0,a.useEffect)(()=>{let e=()=>{document.body.classList.remove("is-tabbing")},t=e=>{"Tab"===e.key&&document.body.classList.add("is-tabbing")};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[])}],683808);var p=e.i(97599);e.i(592216);var d=e.i(249221),h=e.i(438337);e.i(251825);var f=e.i(294224),g=e.i(852925);(0,h.default)("div",{target:"egdvxw50"})("position:relative;display:flex;flex-flow:row wrap;"),(0,h.default)("div",{target:"egdvxw51"})("display:flex;flex:1 0 100%;height:50px;background:",f.OneAppTokens.color.background.surface,";border:1px solid;border-radius:6px;box-sizing:border-box;transition:border 0.2s ease-out;&:focus-within{border-color:",f.OneAppTokens.color.border.inputfieldActive,";border-width:2px;}",({state:e})=>{switch(e){case"DEFAULT":case"VALID":return d.css`
1480          border-color: ${f.OneAppTokens.color.border.inputfieldDefault};
1481        `;case"INVALID":return d.css`
1482          border-color: ${f.OneAppTokens.color.border.inputfieldError};
1483        `}}," ",n.mq.M`
1484    height: 56px;
1485  `),(0,h.default)("button",{target:"egdvxw52"})("cursor:pointer;flex:0 0 24px;display:flex;align-items:center;justify-content:center;padding:14px;z-index:1;background:none;border:none;outline:none;box-sizing:content-box;&:focus-visible{outline:2px solid ",f.OneAppTokens.color.border.inputfieldActive,";outline-offset:-2px;border-radius:4px;}",n.mq.S`
1486    padding: 16px;
1487  `,"  svg{width:24px;height:24px;path{fill:",({$passwordVisible:e})=>e?f.OneAppTokens.color.text.primary:f.OneAppTokens.color.text.secondary,";}}"),(0,h.default)("input",{target:"egdvxw53"})("flex:0 1 auto;width:100%;padding:12px 16px;font-family:",f.OneAppTokens.typography.textPrimary.fontFamily,";font-size:",f.OneAppTokens.typography.textPrimary.fontSize,";font-weight:",f.OneAppTokens.typography.textPrimary.fontWeight,";line-height:",f.OneAppTokens.typography.textPrimary.lineHeight,";color:",f.OneAppTokens.color.text.primary,";caret-color:",f.OneAppTokens.color.text.primary,";appearance:none;outline:0;border:none;background-image:none;background-color:transparent;box-shadow:none;&::-ms-clear,&::-ms-reveal{display:none;}&&::-webkit-input-placeholder{font-family:",f.OneAppTokens.typography.textPrimary.fontFamily,";font-size:",f.OneAppTokens.typography.textPrimary.fontSize,";font-weight:",f.OneAppTokens.typography.textPrimary.fontWeight,";line-height:",f.OneAppTokens.typography.textPrimary.lineHeight,";color:",f.OneAppTokens.color.text.tertiary,";}&&::-moz-placeholder{font-family:",f.OneAppTokens.typography.textPrimary.fontFamily,";font-size:",f.OneAppTokens.typography.textPrimary.fontSize,";font-weight:",f.OneAppTokens.typography.textPrimary.fontWeight,";line-height:",f.OneAppTokens.typography.textPrimary.lineHeight,";color:",f.OneAppTokens.color.text.tertiary,";opacity:1;}
1487&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus{border:none;caret-color:",f.OneAppTokens.color.text.primary,";-webkit-text-fill-color:",f.OneAppTokens.color.text.primary,";transition:background-color 86400s ease-in-out 0s;}",({hasIcon:e})=>e&&d.css`
1488      padding-right: 0;
1489    `," ",({disabled:e})=>e&&d.css`
1490      opacity: 0.5;
1491      cursor: not-allowed;
1492    `),(0,h.default)("label",{target:"egdvxw54"})("margin-bottom:8px;",({disabled:e,invalid:t})=>{let r=t?f.OneAppTokens.color.text.error:e?f.OneAppTokens.color.text.disabled:f.OneAppTokens.color.text.primary;return d.css`
1493      font-family: ${f.OneAppTokens.typography.headingSubHeading.fontFamily};
1494      font-size: ${f.OneAppTokens.typography.headingSubHeading.fontSize};
1495      font-weight: ${f.OneAppTokens.typography.headingSubHeading.fontWeight};
1496      line-height: ${f.OneAppTokens.typography.headingSubHeading.lineHeight};
1497      text-transform: ${f.OneAppTokens.typography.headingSubHeading.textTransform};
1498      color: ${r};
1499    `}),(0,h.default)("div",{target:"egdvxw55"})("user-select:none;padding:8px 0;display:flex;gap:4px;align-items:center;text-align:left;svg{width:24px;height:24px;flex-shrink:0;align-self:flex-start;path{fill:currentColor;}}font-family:",f.OneAppTokens.typography.textSecondary.fontFamily,";font-size:",f.OneAppTokens.typography.textSecondary.fontSize,";font-weight:",f.OneAppTokens.typography.textSecondary.fontWeight,";line-height:",f.OneAppTokens.typography.textSecondary.lineHeight,";",({state:e})=>{switch(e){case"DEFAULT":return d.css`
1500          color: ${f.OneAppTokens.color.text.tertiary};
1501        `;case"INVALID":return d.css`
1502          color: ${f.OneAppTokens.color.text.error};
1503        `;case"VALID":return d.css`
1504          color: ${f.OneAppTokens.color.text.secondary};
1505        `}}),e.i(262299),(0,h.default)("div",{target:"enbje5x0"})("position:fixed;top:0;left:0;height:100vh;width:100vw;display:grid;place-content:center;background:",f.OneAppTokens.color.background.overlay60,";z-index:101;"),(0,h.default)("div",{target:"enbje5x1"})("background:",f.OneAppTokens.color.background.tertiary,";border-radius:6px;padding:",(0,i.pxToRem)(15),"rem;overflow-y:auto;font-size:",f.OneAppTokens.typography.textPrimary.fontSize,";");let y=(0,h.default)("input",{target:"e1o6cx1j0"})("height:48px;width:48px;text-align:center;padding:0;",n.mq.M`
1506    height: 80px;
1507    width: 80px;
1508  `,"  border-radius:2px;box-sizing:border-box;background-color:",f.OneAppTokens.color.background.surface,";border:1px solid ",f.OneAppTokens.color.border.inputfieldDefault,";font-family:",f.OneAppTokens.typography.headingPrimary.fontFamily,";font-size:",f.OneAppTokens.typography.headingPrimary.fontSize,";font-weight:",f.OneAppTokens.typography.headingPrimary.fontWeight,";line-height:",f.OneAppTokens.typography.headingPrimary.lineHeight,";color:",f.OneAppTokens.color.text.primary,";caret-color:",f.OneAppTokens.color.text.primary,";&:focus{border-color:",f.OneAppTokens.color.border.inputfieldActive,";border-width:2px;}",({state:e})=>{if("INVALID"===e)return d.css`
1509          border-color: ${f.OneAppTokens.color.border.inputfieldError};
1510        `},"  &::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}input[type='number']{-moz-appearance:textfield;}",({disabled:e})=>e&&d.css`
1511      opacity: 0.5;
1512      cursor: not-allowed;
1513    `);(0,a.forwardRef)(({disabled:e,id:t,state:r="DEFAULT",...n},i)=>(0,g.jsx)(y,{"aria-disabled":e,disabled:e,id:t,state:r,type:"tel",...n,ref:i})).displayName="PinBox";let m=(0,d.css)("max-height:70vh;overflow-y:auto;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;&::-webkit-scrollbar{width:4px;}&::-webkit-scrollbar-track{background:rgba(0,0,0,0.1);border-radius:2px;}&::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.3);border-radius:2px;}&::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,0.5);}");(0,h.default)("div",{target:"euj05980"})("pointer-events:auto;display:flex;width:100%;box-shadow:0px 2px 40px rgba(0,0,0,0.5);min-height:44px;max-height:70vh;",n.mq.S`
1514    min-height: 56px;
1515  `),(0,h.default)("div",{target:"euj05981"})("flex-grow:1;display:flex;align-items:flex-start;border-radius:4px;padding:12px 16px;",m," ",({variant:e})=>{switch(e){case"negative":return d.css`
1516          background-color: ${f.OneAppTokens.color.infoDialogue.negativeBackgroun
1516dBold};
1517          color: ${f.OneAppTokens.color.text.primaryDark};
1518          button {
1519            color: ${f.OneAppTokens.color.text.primaryDark};
1520          }
1521          *[fill] {
1522            fill: ${f.OneAppTokens.color.text.primaryDark};
1523          }
1524          *[stroke] {
1525            stroke: ${f.OneAppTokens.color.text.primaryDark};
1526          }
1527        `;case"neutral":return d.css`
1528          background-color: ${f.OneAppTokens.color.infoDialogue.neutralBackgroundBold};
1529          color: ${f.OneAppTokens.color.text.primary};
1530          button {
1531            color: ${f.OneAppTokens.color.text.primary};
1532          }
1533        `;case"positive":return d.css`
1534          background-color: ${f.OneAppTokens.color.infoDialogue.positiveBackgroundBold};
1535          color: ${f.OneAppTokens.color.text.primaryDark};
1536          button {
1537            color: ${f.OneAppTokens.color.text.primaryDark};
1538          }
1539          *[fill] {
1540            fill: ${f.OneAppTokens.color.text.primaryDark};
1541          }
1542          *[stroke] {
1543            stroke: ${f.OneAppTokens.color.text.primaryDark};
1544          }
1545        `}},";"),(0,h.default)(o.Icon,{target:"euj05982"})("align-self:flex-start;width:20px;margin-top:2px;margin-right:12px;flex-shrink:0;",n.mq.M`
1546    margin-top: 0;
1547    width: 32px;
1548    height: 32px;
1549    margin-right: 16px;
1550    align-self: center;
1551  `),(0,h.default)("button",{target:"euj05983"})("margin-top:2px;align-self:flex-start;border:0;background-color:transparent;flex-shrink:0;text-transform:capitalize;font-size:",f.OneAppTokens.typography.textLink.fontSize,";line-height:",f.OneAppTokens.typography.textLink.lineHeight,";font-weight:",f.OneAppTokens.typography.textLink.fontWeight,";font-family:",f.OneAppTokens.typography.textLink.fontFamily,";",n.mq.M`
1552    margin-top: 0;
1553    align-self: center;
1554  `),(0,h.default)("div",{target:"euj05984"})("flex-grow:1;margin-right:16px;word-break:break-word;font-size:",f.OneAppTokens.typography.textPrimary.fontSize,";line-height:",f.OneAppTokens.typography.textPrimary.lineHeight,";font-weight:",f.OneAppTokens.typography.textPrimary.fontWeight,";font-family:",f.OneAppTokens.typography.textPrimary.fontFamily,";");let v=(0,d.css)("max-height:70vh;overflow-y:auto;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;&::-webkit-scrollbar{width:4px;}&::-webkit-scrollbar-track{background:rgba(0,0,0,0.1);border-radius:2px;}&::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.3);border-radius:2px;}&::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,0.5);}");function b(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function x(...e){return t=>{let r=!1,n=e.map(e=>{let n=b(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():b(e[t],null)}}}}function E(...e){return a.useCallback(x(...e),e)}(0,h.default)("div",{target:"e1wo1rp50"})("position:fixed;left:50%;transform:translateX(-50%);z-index:101;bottom:24px;width:min(342px,calc(100vw - 32px));",({isScrollable:e})=>e&&v," ",n.mq.M`
1555    width: min(632px, calc(100vw - 32px));
1556  `,"  > *{margin-top:16px;}"),"u">typeof window&&window.document&&window.document.createElement;var S=globalThis?.document?a.useLayoutEffect:()=>{};a[" useEffectEvent ".trim().toString()],a[" useInsertionEffect ".trim().toString()];var T=a[" useInsertionEffect ".trim().toString()]||S;Symbol("RADIX:SYNC_STATE");var w=Symbol("radix.slottable");function k(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===w}var O=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{var r,n;let i,o,s,l=(n=r=`Primitive.${t}`,(i=a.forwardRef((e,t)=>{let{children:r,...n}=e;if(a.isValidElement(r)){var i;let e,o,s=(i=r,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),l=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>
1556{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(l.ref=t?x(t,s):s),a.cloneElement(r,l)}return a.Children.count(r)>1?a.Children.only(null):null})).displayName=`${n}.SlotClone`,o=i,(s=a.forwardRef((e,t)=>{let{children:r,...n}=e,i=a.Children.toArray(r),s=i.find(k);if(s){let e=s.props.children,r=i.map(t=>t!==s?t:a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null);return(0,g.jsx)(o,{...n,ref:t,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null})}return(0,g.jsx)(o,{...n,ref:t,children:r})})).displayName=`${r}.Slot`,s),c=a.forwardRef((e,r)=>{let{asChild:n,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,g.jsx)(n?l:t,{...i,ref:r})});return c.displayName=`Primitive.${t}`,{...e,[t]:c}},{}),_="Switch",[I,A]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>a.createContext(e));return function(r){let n=r?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=a.createContext(n),o=r.length;r=[...r,n];let s=t=>{let{scope:r,children:n,...s}=t,l=r?.[e]?.[o]||i,c=a.useMemo(()=>s,Object.values(s));return(0,g.jsx)(l.Provider,{value:c,children:n})};return s.displayName=t+"Provider",[s,function(r,s){let l=s?.[e]?.[o]||i,c=a.useContext(l);if(c)return c;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(_),[N,P]=I(_),R=a.forwardRef((e,t)=>{let{__scopeSwitch:r,name:n,checked:i,defaultChecked:o,required:s,disabled:l,value:c="on",onCheckedChange:u,form:p,...d}=e,[h,f]=a.useState(null),y=E(t,e=>f(e)),m=a.useRef(!1),v=!h||p||!!h.closest("form"),[b,x]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,o,s]=function({defaultProp:e,onChange:t}){let[r,n]=a.useState(e),i=a.useRef(r),o=a.useRef(t);return T(()=>{o.current=t},[t]),a.useEffect(()=>{i.current!==r&&(o.current?.(r),i.current=r)},[r,i]),[r,n,o]}({defaultProp:t,onChange:r}),l=void 0!==e,c=l?e:i;{let t=a.useRef(void 0!==e);a.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,n])}return[c,a.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[l,e,o,s])]}({prop:i,defaultProp:o??!1,onChange:u,caller:_});return(0,g.jsxs)(N,{scope:r,checked:b,disabled:l,children:[(0,g.jsx)(O.button,{type:"button",role:"switch","aria-checked":b,"aria-required":s,"data-state":F(b),"data-disabled":l?"":void 0,disabled:l,value:c,...d,ref:y,onClick:function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}(e.onClick,e=>{x(e=>!e),v&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),v&&(0,g.jsx)(L,{control:h,bubbles:!m.current,name:n,value:c,checked:b,required:s,disabled:l,form:p,style:{transform:"translateX(-100%)"}})]})});R.displayName=_;var D="SwitchThumb",C=a.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,i=P(D,r);return(0,g.jsx)(O.span,{"data-state":F(i.checked),"data-disabled":i.disabled?"":void 0,...n,ref:t})});C.displayName=D;var L=a.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:n=!0,...i},o)=>{let s,l=a.useRef(null),c=E(l,o),u=(s=a.useRef({value:r,previous:r}),a.useMemo(()=>(s.current.value!==r&&(s.current.previous=s.current.value,s.current.value=r),s.current.previous),[r])),p=function(e){let[t,r]=a.useState(void 0);return S(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(t);return a.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==r&&t){let i=new Event("click",{bubbles:n});t.call(e,r),e.dispatchEvent(i)}},[u,r,n]),(0,g.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:c,style:{...i.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function F(e){return e?"checked":"unchecked"}L.displayName="SwitchBubbleInput";let M=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$=new Set(M),j=e=>180*e/Math.PI,V=e=>B(j(Math.atan2(e[1],e[0]))),U={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:V,rotateZ:V,skewX:e=>j(Math.atan(e[1])),skewY:e=>j(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},B=e=>((e%=360)<0&&(e+=360),e),z=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),q=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),G={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:z,scaleY:q,scale:e=>(z(e)+q(e))/2,rotateX:e=>B(j(Math.atan2(e[6],e[5]))),rotateY:e=>B(j(Math.atan2(-e[2],e[0]))),rotateZ:V,rotate:V,skewX:e=>j(Math.atan(e[4])),skewY:e=>j(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function K(e){return+!!e.includes("scale")}function H(e,t){let r,n;if(!e||"none"===e)return K(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=G,n=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=U,n=t}if(!n)return K(t);let o=r[t],a=n[1].split(",").map(Q);return"function"==typeof o?o(a):a[o]}function Q(e){return parseFloat(e.trim())}let W=e=>t=>"string"==typeof t&&t.startsWith(e),Y=W("--"),X=W("var(--"),J=e=>!!X(e)&&Z.test(e.split("/*")[0].trim()),Z=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ee({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}let et=(e,t,r)=>e+(t-e)*r;function er(e){return void 0===e||1===e}function en({scale:e,scaleX:t,scaleY:r}){return!er(e)||!er(t)||!er(r)}function ei(e){return en(e)||eo(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function eo(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function ea(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function es(e,t=0,r=1,n,i){e.min=ea(e.min,t,r,n,i),e.max=ea(e.max,t,r,n,i)}function el(e,{x:t,y:r}){es(e.x,t.translate,t.scale,t.originPoint),es(e.y,r.translate,r.scale,r.originPoint)}function ec(e,t){e.min=e.min+t,e.max=e.max+t}function eu(e,t,r,n,i=.5){let o=et(e.min,e.max,i);es(e,t,r,o,n)}function ep(e,t){eu(e.x,t.x,t.scaleX,t.scale,t.originX),eu(e.y,t.y,t.scaleY,t.scale,t.originY)}function ed(e,t){return ee(function(e,t){if(!t)return e;let 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))}
1556e.s(["mixNumber",0,et],647480);let eh=new Set(["width","height","top","left","right","bottom",...M]),ef=(e,t,r)=>r>t?t:r<e?e:r,eg={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ey={...eg,transform:e=>ef(0,1,e)},em={...eg,default:1},ev=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eb=ev("deg"),ex=ev("%"),eE=ev("px"),eS=ev("vh"),eT=ev("vw"),ew={...ex,parse:e=>ex.parse(e)/100,transform:e=>ex.transform(100*e)},ek=e=>t=>t.test(e),eO=[eg,eE,ex,eb,eT,eS,{test:e=>"auto"===e,parse:e=>e}],e_=e=>eO.find(ek(e));var eI=e.i(553049);let eA=()=>{},eN=()=>{};eI.default,e.s(["invariant",0,eN,"warning",0,eA],725542);let eP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eR=e=>e===eg||e===eE,eD=new Set(["x","y","z"]),eC=M.filter(e=>!eD.has(e)),eL={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>H(t,"x"),y:(e,{transform:t})=>H(t,"y")};eL.translateX=eL.x,eL.translateY=eL.y;let eF=e=>e,eM={},e$=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ej(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,a=e$.reduce((e,r)=>(e[r]=function(e,t){let r=new Set,n=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){a.has(t)&&(u.schedule(t),e()),l++,t(s)}let u={schedule:(e,t=!1,o=!1)=>{let s=o&&i?r:n;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(s=e,i){o=!0;return}i=!0,[r,n]=[n,r],r.forEach(c),t,l=0,r.clear(),i=!1,o&&(o=!1,u.process(e))}};return u}(o,t?r:void 0),e),{}),{setup:s,read:l,resolveKeyframes:c,preUpdate:u,update:p,preRender:d,render:h,postRender:f}=a,g=()=>{let o=eM.useManualTiming?i.timestamp:performance.now();r=!1,eM.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),p.process(i),d.process(i),h.process(i),f.process(i),i.isProcessing=!1,r&&t&&(n=!1,e(g))};return{schedule:e$.reduce((t,o)=>{let s=a[o];return t[o]=(t,o=!1,a=!1)=>(!r&&(r=!0,n=!0,i.isProcessing||e(g)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<e$.length;t++)a[e$[t]].cancel(e)},state:i,steps:a}}let{schedule:eV,cancel:eU,state:eB,steps:ez}=ej("u">typeof requestAnimationFrame?requestAnimationFrame:eF,!0);e.s(["cancelFrame",0,eU,"frame",0,eV,"frameData",0,eB,"frameSteps",0,ez],347248);let eq=new Set,eG=!1,eK=!1,eH=!1;function eQ(){if(eK){let e=Array.from(eq).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t,n=(t=[],eC.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),t);n.length&&(r.set(e,n),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{e.getValue(t)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eK=!1,eG=!1,eq.forEach(e=>e.complete(eH)),eq.clear()}function eW(){eq.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eK=!0)})}class eY{constructor(e,t,r,n,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(eq.add(this),eG||(eG=!0,eV.read(eW),eV.resolveKeyframes(eQ))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;if(null===e[0]){let i=n?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,o);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=o),n&&void 0===i&&n.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eq.delete(this)}cancel(){"scheduled"===this.state&&(eq.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eX=e=>Math.round(1e5*e)/1e5,eJ=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eZ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,e0=(e,t)=>r=>!!("string"==typeof r&&eZ.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),e1=(e,t,r)=>n=>{if("string"!=typeof n)return n;let[i,o,a,s]=n.match(eJ);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},e2={...eg,transform:e=>Math.round(ef(0,255,e))},e5={test:e0("rgb","red"),parse:e1("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+e2.transform(e)+", "+e2.transform(t)+", "+e2.transform(r)+", "+eX(ey.transform(n))+")"},e4={test:e0("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alph
1556a:i?parseInt(i,16)/255:1}},transform:e5.transform},e3={test:e0("hsl","hue"),parse:e1("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ex.transform(eX(t))+", "+ex.transform(eX(r))+", "+eX(ey.transform(n))+")"},e6={test:e=>e5.test(e)||e4.test(e)||e3.test(e),parse:e=>e5.test(e)?e5.parse(e):e3.test(e)?e3.parse(e):e4.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?e5.transform(e):e3.transform(e),getAnimatableNone:e=>{let t=e6.parse(e);return t.alpha=0,e6.transform(t)}},e9=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,e8="number",e7="color",te=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tt(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,a=t.replace(te,e=>(e6.test(e)?(n.color.push(o),i.push(e7),r.push(e6.parse(e))):e.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(e)):(n.number.push(o),i.push(e8),r.push(parseFloat(e))),++o,"${}")).split("${}");return{values:r,split:a,indexes:n,types:i}}function tr(e){return tt(e).values}function tn(e){let{split:t,types:r}=tt(e),n=t.length;return e=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],void 0!==e[o]){let t=r[o];t===e8?i+=eX(e[o]):t===e7?i+=e6.transform(e[o]):i+=e[o]}return i}}let ti=e=>"number"==typeof e?0:e6.test(e)?e6.getAnimatableNone(e):e,to={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(eJ)?.length||0)+(e.match(e9)?.length||0)>0},parse:tr,createTransformer:tn,getAnimatableNone:function(e){let t=tr(e);
1556return tn(e)(t.map(ti))}},ta=new Set(["brightness","contrast","saturate","opacity"]);function ts(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(eJ)||[];if(!n)return e;let i=r.replace(n,""),o=+!!ta.has(t);return n!==r&&(o*=100),t+"("+o+i+")"}let tl=/\b([a-z-]*)\(.*?\)/gu,tc={...to,getAnimatableNone:e=>{let t=e.match(tl);return t?t.map(ts).join(" "):e}},tu={...eg,transform:Math.round},tp={borderWidth:eE,borderTopWidth:eE,borderRightWidth:eE,borderBottomWidth:eE,borderLeftWidth:eE,borderRadius:eE,radius:eE,borderTopLeftRadius:eE,borderTopRightRadius:eE,borderBottomRightRadius:eE,borderBottomLeftRadius:eE,width:eE,maxWidth:eE,height:eE,maxHeight:eE,top:eE,right:eE,bottom:eE,left:eE,padding:eE,paddingTop:eE,paddingRight:eE,paddingBottom:eE,paddingLeft:eE,margin:eE,marginTop:eE,marginRight:eE,marginBottom:eE,marginLeft:eE,backgroundPositionX:eE,backgroundPositionY:eE,rotate:eb,rotateX:eb,rotateY:eb,rotateZ:eb,scale:em,scaleX:em,scaleY:em,scaleZ:em,skew:eb,skewX:eb,skewY:eb,distance:eE,translateX:eE,translateY:eE,translateZ:eE,x:eE,y:eE,z:eE,perspective:eE,transformPerspective:eE,opacity:ey,originX:ew,originY:ew,originZ:eE,zIndex:tu,fillOpacity:ey,strokeOpacity:ey,numOctaves:tu},td={...tp,color:e6,backgroundColor:e6,outlineColor:e6,fill:e6,stroke:e6,borderColor:e6,borderTopColor:e6,borderRightColor:e6,borderBottomColor:e6,borderLeftColor:e6,filter:tc,WebkitFilter:tc},th=e=>td[e];function tf(e,t){let r=th(e);return r!==tc&&(r=to),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let tg=new Set(["auto","none","0"]);class ty extends eY{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&J(n=n.trim())){let i=function e(t,r,n=1){eN(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=eP.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${r??n}`,i]}(t);if(!i)return;let a=window.getComputedStyle(r).getPropertyValue(i);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return J(o)?e(o,r,n+1):o}(n,t.current);void 0!==i&&(e[r]=i),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!eh.has(r)||2!==e.length)return;let[n,i]=e,o=e_(n),a=e_(i);if(o!==a)if(eR(o)&&eR(a))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else eL[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&r.push(t);r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!tg.has(t)&&tt(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=tf(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eL[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(t);n&&n.jump(this.measuredOrigin,!1);let i=r.length-1,o=r[i];r[i]=eL[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1556h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let tm=e=>!!(e&&e.getVelocity);function tv(){t=void 0}e.s(["isMotionValue",0,tm],538305);let tb={now:()=>(void 0===t&&tb.set(eB.isProcessing||eM.useManualTiming?eB.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tv)}};function tx(e,t){-1===e.indexOf(t)&&e.push(t)}function tE(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}e.s(["addUniqueItem",0,tx,"removeItem",0,tE],926935);class tS{constructor(){this.subscriptions=[]}add(e){return tx(this.subscriptions,e),()=>tE(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let tT=(e,t)=>t?1e3/t*e:0,tw={current:void 0};class tk{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tb.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tb.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new tS);let r=this.events[e].add(t);return"change"===e?()=>{r(),eV.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tw.current&&tw.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tb.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tT(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tO(e,t){return new tk(e,t)}e.s(["collectMotionValues",0,tw,"motionValue",0,tO],134026);let t_=[...eO,e6,to],{schedule:tI}=ej(queueMicrotask,!1),tA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},tN={};for(let e in tA)tN[e]={isEnabled:t=>tA[e].some(e=>!!t[e])};let tP=()=>({translate:0,scale:1,origin:0,originPoint:0}),tR=()=>({x:tP(),y:tP()}),tD=()=>({min:0,max:0}),tC=()=>({x:tD(),y:tD()});e.s(["createBox",0,tC,"createDelta",0,tR],374945);let tL="u">typeof window,tF={current:null},tM={current:!1},t$=new WeakMap;function tj(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tV(e){return"string"==typeof e||Array.isArray(e)}e.s(["visualElementStore",0,t$],535492);let tU=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tB=["initial",...tU];function tz(e){return tj(e.animate)||tB.some(t=>tV(e[t]))}function tq(e){return!!(tz(e)||e.variants)}function tG(e){let t=[{},{}];
1556return e?.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function tK(e,t,r,n){if("function"==typeof t){let[i,o]=tG(n);t=t(void 0!==r?r:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=tG(n);t=t(void 0!==r?r:e.custom,i,o)}return t}let tH=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tQ{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eY,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tb.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eV.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=tz(t),this.isVariantNode=tq(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in u){const t=u[e];void 0!==s[e]&&tm(t)&&t.set(s[e])}}mount(e){this.current=e,t$.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),tM.current||function(){if(tM.current=!0,tL)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tF.current=e.matches;e.addEventListener("change",t),t()}else tF.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||tF.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),eU(this.notifyUpdate),eU(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=$.has(e);n&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eV.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tN){let t=tN[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tC()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tH.length;t++){let r=tH[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],o=r[n];if(tm(i))e.addValue(n,i);else if(tm(o))e.addValue(n,tO(i,{owner:e}));else if(o!==i)if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,tO(void 0!==t?t:i,{owner:e}))}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1556addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=tO(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){let r=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=r){let n,i;if("string"==typeof r&&(n=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(i=r,/^0[^.\s]+$/u.test(i))))r=parseFloat(r);else{let n;n=r,!t_.find(ek(n))&&to.test(t)&&(r=tf(e,t))}this.setBaseTarget(e,tm(r)?r.get():r)}return tm(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=tK(this.props,r,this.presenceContext?.custom);n&&(t=n[e])}if(r&&void 0!==t)return t;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||tm(n)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new tS),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tI.render(this.render)}}e.s(["VisualElement",0,tQ],313114);class tW extends tQ{constructor(){super(...arguments),this.KeyframeResolver=ty}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;tm(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let tY=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tJ=M.length;function tZ(e,t,r){let{style:n,vars:i,transformOrigin:o}=e,a=!1,s=!1;for(let e in t){let r=t[e];if($.has(e)){a=!0;continue}if(Y(e)){i[e]=r;continue}{let t=tY(r,tp[e]);e.startsWith("origin")?(s=!0,o[e]=t):n[e]=t}}if(!t.transform&&(a||r?n.transform=function(e,t,r){let n="",i=!0;for(let o=0;o<tJ;o++){let a=M[o],s=e[a];if(void 0===s)continue;let l=!0;if(!(l="number"==typeof s?s===+!!a.startsWith("scale"):0===parseFloat(s))||r){let e=tY(s,tp[a]);if(!l){i=!1;let t=tX[a]||a;n+=`${t}(${e}) `}r&&(t[a]=e)}}return n=n.trim(),r?n=r(t,i?"":n):i&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){let{originX:e="50%",originY:t="50%",originZ:r=0}=o;n.transformOrigin=`${e} ${t} ${r}`}}function t0(e,{style:t,vars:r},n,i){let o,a=e.style;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,n),r)a.setProperty(o,r[o])}let t1={};function t2(e,{layout:t,layoutId:r}){return $.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!t1[e]||"opacity"===e)}function t5(e,t,r){let{style:n}=e,i={};for(let o in n)(tm(n[o])||t.style&&tm(t.style[o])||t2(o,e)||r?.getValue(o)?.liveStyle!==void 0)&&(i[o]=n[o]);return i}class t4 extends tW{constructor(){super(...arguments),this.type="html",this.renderInstance=t0}readValueFromInstance(e,t){if($.has(t))return this.projection?.isProjecting?K(t):((e,t)=>{let{transform:r="none"}=getComputedStyle(e);return H(r,t)})(e,t);{let r=window.getComputedStyle(e),n=(Y(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ed(e,t)}build(e,t,r){tZ(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return t5(e,t,r)}}e.s(["HTMLVisualElement",0,t4],85286);let t3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),t6={offset:"stroke-dashoffset",array:"stroke-dasharray"},t9={offset:"strokeDashoffset",array:"strokeDasharray"};function t8(e,{attrX:t,attrY:r,attrScale:n,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s}
1556,l,c,u){if(tZ(e,s,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:d}=e;p.transform&&(d.transform=p.transform,delete p.transform),(d.transform||p.transformOrigin)&&(d.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete p.transformBox),void 0!==t&&(p.x=t),void 0!==r&&(p.y=r),void 0!==n&&(p.scale=n),void 0!==i&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?t6:t9;e[o.offset]=eE.transform(-n);let a=eE.transform(t),s=eE.transform(r);e[o.array]=`${a} ${s}`}(p,i,o,a,!1)}let t7=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),re=e=>"string"==typeof e&&"svg"===e.toLowerCase();function rt(e,t,r){let n=t5(e,t,r);for(let r in e)(tm(e[r])||tm(t[r]))&&(n[-1!==M.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}class rr extends tW{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tC}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if($.has(t)){let e=th(t);return e&&e.default||0}return t=t7.has(t)?t:t3(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return rt(e,t,r)}build(e,t,r){t8(e,t,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(e,t,r,n){for(let r in t0(e,t,void 0,n),t.attrs)e.setAttribute(t7.has(r)?r:t3(r),t.attrs[r])}mount(e){this.isSVGTag=re(e.tagName),super.mount(e)}}e.s(["SVGVisualElement",0,rr],784249);let rn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ri(e){if("string"!=typeof e||e.includes("-"));else if(rn.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let ro=(0,a.createContext)({});e.s(["LayoutGroupContext",0,ro],765299);let ra=(0,a.createContext)({strict:!1}),rs=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",0,rs],894808);let rl=(0,a.createContext)({});function rc(e){return Array.isArray(e)?e.join(" "):e}let ru=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rp(e,t,r){for(let n in t)tm(t[n])||t2(n,r)||(e[n]=t[n])}let rd=()=>({...ru(),attrs:{}}),rh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function rf(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rh.has(e)}let rg=e=>!rf(e);function ry(e){"function"==typeof e&&(rg=t=>t.startsWith("on")?!rf(t):e(t))}try{ry(e.r(570606).default)}catch{}function rm(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(rg(i)||!0===r&&rf(i)||!t&&!rf(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}e.s(["filterProps",0,rm,"loadExternalIsValidProp",0,ry],420161);let rv=(0,a.createContext)(null);function rb(e){let t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}function rx(e){return tm(e)?e.get():e}e.s(["PresenceContext",0,rv],599413),e.s(["useConstant",0,rb],73579);let rE=e=>(t,r)=>{let n=(0,a.useContext)(rl),i=(0,a.useContext)(rv),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,i){return{latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=rx(o[e]);let{initial:a,animate:s}=e,l=tz(e),c=tq(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));
1556let u=!!r&&!1===r.initial,p=(u=u||!1===a)?s:a;if(p&&"boolean"!=typeof p&&!tj(p)){let t=Array.isArray(p)?p:[p];for(let r=0;r<t.length;r++){let n=tK(e,t[r]);if(n){let{transitionEnd:e,transition:t,...r}=n;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(r,n,i,e),renderState:t()}})(e,t,n,i);return r?o():rb(o)},rS=rE({scrapeMotionValuesFromProps:t5,createRenderState:ru}),rT=rE({scrapeMotionValuesFromProps:rt,createRenderState:rd}),rw=Symbol.for("motionComponentSymbol");function rk(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let rO="data-"+t3("framerAppearId"),r_=(0,a.createContext)({}),rI=tL?a.useLayoutEffect:a.useEffect;function rA(e,{forwardMotionProps:t=!1}={},r,n){r&&function(e){for(let t in e)tN[t]={...tN[t],...e[t]}}(r);let i=ri(e)?rT:rS;function o(r,o){var s;let l,c={...(0,a.useContext)(rs),...r,layoutId:function({layoutId:e}){let t=(0,a.useContext)(ro).id;return t&&void 0!==e?t+"-"+e:e}(r)},{isStatic:u}=c,p=function(e){let{initial:t,animate:r}=function(e,t){if(tz(e)){let{initial:t,animate:r}=e;return{initial:!1===t||tV(t)?t:void 0,animate:tV(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(rl));return(0,a.useMemo)(()=>({initial:t,animate:r}),[rc(t),rc(r)])}(r),d=i(r,u);if(!u&&tL){(0,a.useContext)(ra).strict;let t=function(e){let{drag:t,layout:r}=tN;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(c);l=t.MeasureLayout,p.visualElement=function(e,t,r,n,i){let{visualElement:o}=(0,a.useContext)(rl),s=(0,a.useContext)(ra),l=(0,a.useContext)(rv),c=(0,a.useContext)(rs).reducedMotion,u=(0,a.useRef)(null);n=n||s.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:r,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c}));let p=u.current,d=(0,a.useContext)(r_);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(e,t,r,n){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&rk(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}(u.current,r,i,d);let h=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{p&&h.current&&p.update(r,l)});let f=r[rO],g=(0,a.useRef)(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return rI(()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),g.current&&p.animationState&&p.animationState.animateChanges())}),(0,a.useEffect)(()=>{p&&(!g.current&&p.animationState&&p.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),g.current=!1),p.enteringChildren=void 0)}),p}(e,d,c,n,t.ProjectionNode)}return(0,g.jsxs)(rl.Provider,{value:p,children:[l&&p.visualElement?(0,g.jsx)(l,{visualElement:p.visualElement,...c}):null,function(e,t,r,{latestValues:n},i,o=!1){let s=(ri(e)?function(e,t,r,n){let i=(0,a.useMemo)(()=>{let r=rd();return t8(r,t,re(n),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};rp(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r,n,i={},o=(r=e.style||{},rp(n={},r,e),Object.assign(n,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let r=ru();return tZ(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(t,n,i,e),l=rm(t,"string"==typeof e,o),c=e!==a.Fragment?{...l,...s,ref:r}:{},{children:u}=t,p=(0,a.useMemo)(()=>tm(u)?u.get():u,[u]);return(0,a.createElement)(e,{...c,children:p})}(e,r,(s=p.visualElement,(0,a.useCallback)(e=>{e&&d.onMount&&d.onMount(e),s&&(e?s.mount(e):s.unmount()),o&&("function"==typeof o?o(e):rk(o)&&(o.current=e))},[s])),d,u,t)]})}o.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let s=(0,a.forwardRef)(o);return s[rw]=e,s}function rN(e,t,r){let n=e.getProps();return tK(n,t,void 0!==r?r:n.custom,e)}function rP(e,t){return e?.[t]??e?.default??e}e.s(["useIsomorphicLayoutEffect",0,rI],653323);let rR=e=>Array.isArray(e);function rD(e,t){let{transitionEnd:r={},transition:n={},...i}=rN(e,t)||{};for(let t in i={...i,...r}){var o;let r=rR(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,tO(r))}}function rC(e,t){let r=e.getValue("willChange");if(tm(r)&&r.add)return r.add(t);if(!r&&eM.WillChange){let r=new eM.WillChange("auto");e.addValue("willChange",r),r.add(t)}}e.s(["setTarget",0,rD],782076);function rL(e){e.duration=0,e.type="keyframes"}let rF=(...e)=>e.reduce((e,t)=>
1556r=>t(e(r))),rM=e=>1e3*e,r$=e=>e/1e3;e.s(["millisecondsToSeconds",0,r$,"secondsToMilliseconds",0,rM],633836);let rj={layout:0,mainThread:0,waapi:0};function rV(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 rU(e,t){return r=>r>0?t:e}let rB=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},rz=[e4,e5,e3];function rq(e){let t=rz.find(t=>t.test(e));if(eA(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===e3&&(r=function({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=rV(s,n,e+1/3),o=rV(s,n,e),a=rV(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}}(r)),r}let rG=(e,t)=>{let r=rq(e),n=rq(t);if(!r||!n)return rU(e,t);let i={...r};return e=>(i.red=rB(r.red,n.red,e),i.green=rB(r.green,n.green,e),i.blue=rB(r.blue,n.blue,e),i.alpha=et(r.alpha,n.alpha,e),e5.transform(i))},rK=new Set(["none","hidden"]);function rH(e,t){return r=>et(e,t,r)}function rQ(e){return"number"==typeof e?rH:"string"==typeof e?J(e)?rU:e6.test(e)?rG:rX:Array.isArray(e)?rW:"object"==typeof e?e6.test(e)?rG:rY:rU}function rW(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>rQ(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function rY(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=rQ(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let rX=(e,t)=>{let r=to.createTransformer(t),n=tt(e),i=tt(t);if(!(n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length))return eA(`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.`),rU(e,t);if(rK.has(e)&&!i.values.length||rK.has(t)&&!n.values.length)return rK.has(e)?r=>r<=0?e:t:r=>r>=1?t:e;return rF(rW(function(e,t){let r=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][n[o]],s=e.values[a]??0;r[i]=s,n[o]++}return r}(n,i),i.values),r)};function rJ(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?et(e,t,r):rQ(e)(e,t)}let rZ=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eV.update(t,e),stop:()=>eU(t),now:()=>eB.isProcessing?eB.timestamp:tb.now()}},r0=(e,t,r=10)=>{let n="",i=Math.max(Math.round(t/r),2);for(let t=0;t<i;t++)n+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function r1(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}function r2(e,t=100,r){let n=r({...e,keyframes:[0,t]}),i=Math.min(r1(n),2e4);return{type:"keyframes",ease:e=>n.next(i*e).value/t,duration:r$(i)}}function r5(e,t,r){let n=Math.max(t-5,0);return tT(r-e(n),t-n)}e.s(["createGeneratorEasing",0,r2],196239);let r4=.01,r3=2,r6=.005,r9=.5;function r8(e,t){return e*Math.sqrt(1-t*t)}let r7=["duration","bounce"],ne=["stiffness","damping","mass"];function nt(e,t){return t.some(t=>void 0!==e[t])}function nr(e=.3,t=.3){let r,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=n,a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:p,duration:d,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nt(e,ne)&&nt(e,r7))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),n=r*r,i=2*ef(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:1,stiffness:n,damping:i}}else{let r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:n=1}){let i,o;eA(rM(10));let a=1-t;a=ef(.05,1,a),e=ef(.01,10,r$(e)),a<1?(i=t=>{let n=t*a,i=n*e;return .001-(n-r)/r8(t,a)*Math.exp(-i)},o=t=>{let n=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-n),l=r8(Math.pow(t,2),a);return(n*r+r-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),o=t=>e*e*(r-t)*Math.exp(-t*e));let s=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,5/e);if(e=rM(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*n;
1556return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-r$(n.velocity||0)}),g=h||0,y=u/(2*Math.sqrt(c*p)),m=s-a,v=r$(Math.sqrt(c/p)),b=5>Math.abs(m);if(i||(i=b?r4:r3),o||(o=b?r6:r9),y<1){let e=r8(v,y);r=t=>s-Math.exp(-y*v*t)*((g+y*v*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}else if(1===y)r=e=>s-Math.exp(-v*e)*(m+(g+v*m)*e);else{let e=v*Math.sqrt(y*y-1);r=t=>{let r=Math.exp(-y*v*t),n=Math.min(e*t,300);return s-r*((g+y*v*m)*Math.sinh(n)+e*m*Math.cosh(n))/e}}let x={calculatedDuration:f&&d||null,next:e=>{let t=r(e);if(f)l.done=e>=d;else{let n=0===e?g:0;y<1&&(n=0===e?rM(g):r5(r,e,t));let a=Math.abs(s-t)<=o;l.done=Math.abs(n)<=i&&a}return l.value=l.done?s:t,l},toString:()=>{let e=Math.min(r1(x),2e4),t=r0(t=>x.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return x}function nn({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){let p,d,h=e[0],f={done:!1,value:h},g=r*t,y=h+g,m=void 0===a?y:a(y);m!==y&&(g=m-h);let v=e=>-g*Math.exp(-e/n),b=e=>m+v(e),x=e=>{let t=v(e),r=b(e);f.done=Math.abs(t)<=c,f.value=f.done?m:r},E=e=>{let t;if(t=f.value,void 0!==s&&t<s||void 0!==l&&t>l){var r;p=e,d=nr({keyframes:[f.value,(r=f.value,void 0===s?l:void 0===l||Math.abs(s-r)<Math.abs(l-r)?s:l)],velocity:r5(b,e,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u})}};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==p||(t=!0,x(e),E(e)),void 0!==p&&e>=p)?d.next(e-p):(t||x(e),f)}}}nr.applyToOptions=e=>{let t=r2(e,100,nr);return e.ease=t.ease,e.duration=rM(t.duration),e.type="keyframes",e},e.s(["spring",0,nr],798520);let ni=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function no(e,t,r,n){return e===t&&r===n?eF:i=>0===i||1===i?i:ni(function(e,t,r,n,i){let o,a,s=0;do(o=ni(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12)return a}(i,0,1,e,r),t,n)}let na=no(.42,0,1,1),ns=no(0,0,.58,1),nl=no(.42,0,.58,1);e.s(["easeIn",0,na,"easeInOut",0,nl,"easeOut",0,ns],515745);let nc=e=>Array.isArray(e)&&"number"!=typeof e[0];e.s(["isEasingArray",0,nc],577182);let nu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,np=e=>t=>1-e(1-t),nd=no(.33,1.53,.69,.99),nh=np(nd),nf=nu(nh),ng=e=>e>=1?1:(e*=2)<1?.5*nh(e):.5*(2-Math.pow(2,-10*(e-1))),ny=e=>1-Math.sin(Math.acos(e)),nm=np(ny),nv=nu(ny),nb=e=>Array.isArray(e)&&"number"==typeof e[0],nx={linear:eF,easeIn:na,easeInOut:nl,easeOut:ns,circIn:ny,circInOut:nv,circOut:nm,backIn:nh,backInOut:nf,backOut:nd,anticipate:ng},nE=e=>{if(nb(e)){eN(e.length);let[t,r,n,i]=e;return no(t,r,n,i)}return"string"==typeof e?(eN(nx[e],`Invalid easing type '${e}'`),nx[e]):e},nS=(e,t,r)=>{let n=t-e;return n?(r-e)/n:1};function nT(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if(eN(t.length),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||eM.mix||rJ,o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);t&&(o=rF(Array.isArray(t)?t[r]||eF:t,o)),n.push(o)}return n}(t,n,i),l=s.length,c=r=>{if(a&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);let i=nS(e[n],e[n+1],r);return s[n](i)};return r?t=>c(ef(e[0],e[o-1],t)):c}function nw(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=nS(0,t,n);e.push(et(r,1,i))}}function nk(e){let t=[0];return nw(t,e.length-1),t}function nO({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){var i;let o=nc(n)?n.map(nE):nE(n),a={done:!1,value:t[0]},s=nT((i=r&&r.length===t.length?r:nk(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||nl).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}e.s(["progress",0,nS],470934),e.s(["interpolate",0,nT],279126),e.s(["fillOffset",0,nw],91649),e.s(["defaultOffset",0,nk],668617);let n_=e=>null!==e;function nI(e,{repeat:t,repeatType:r="loop"},n,i=1){let o=e.filter(n_),a=i<0||t&&"loop"!==r&&t%2==1?0:o.length-1;return a&&void 0!==n?n:o[a]}let nA={decay:nn,inertia:nn,tween:nO,keyframes:nO,spring:nr};function nN(e){"string"==typeof e.type&&(e.type=nA[e.type])}class nP{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let nR=e=>e/100;class nD extends nP{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tb.now()&&this.tick(tb.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},rj.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;nN(e);let{type:t=nO,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||nO;
1556s!==nO&&"number"!=typeof a[0]&&(this.mixKeyframes=rF(nR,rJ(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=r1(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:r,totalDuration:n,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return r.next(0);let{delay:l=0,keyframes:c,repeat:u,repeatType:p,repeatDelay:d,type:h,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),m=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,b=r;if(u){let e=Math.min(this.currentTime,n)/a,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,u+1))%2&&("reverse"===p?(r=1-r,d&&(r-=d/a)):"mirror"===p&&(b=o)),v=ef(0,1,r)*a}let x=m?{done:!1,value:c[0]}:b.next(v);i&&(x.value=i(x.value));let{done:E}=x;m||null===s||(E=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return S&&h!==nn&&(x.value=nI(c,this.options,g,this.speed)),f&&f(x.value),S&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return r$(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+r$(e)}get time(){return r$(this.currentTime)}set time(e){e=rM(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(tb.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=r$(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=rZ,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let r=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=r):null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime||(this.startTime=t??r),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tb.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,rj.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function nC(e){let t;return()=>(void 0===t&&(t=e()),t)}let nL=nC(()=>void 0!==window.ScrollTimeline),nF={},nM=(r=nC(()=>{try{document.createElement("div").animate({opacity:0}
1556,{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),()=>nF.linearEasing??r()),n$=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,nj={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:n$([0,.65,.55,1]),circOut:n$([.55,0,1,.45]),backIn:n$([.31,.01,.66,-.59]),backOut:n$([.33,1.53,.69,.99])};function nV(e){return"function"==typeof e&&"applyToOptions"in e}e.s(["isGenerator",0,nV],161);class nU extends nP{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:t,name:r,keyframes:n,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,eN(e.type);const l=function({type:e,...t}){return nV(e)&&nM()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},c){let u={[t]:r};l&&(u.offset=l);let p=function e(t,r){if(t)return"function"==typeof t?nM()?r0(t,r):"ease-out":nb(t)?n$(t):Array.isArray(t)?t.map(t=>e(t,r)||nj.easeOut):nj[t]}(s,i);Array.isArray(p)&&(u.easing=p);let d={delay:n,duration:i,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};c&&(d.pseudoElement=c);let h=e.animate(u,d);return h}(t,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=nI(n,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):r.startsWith("--")?t.style.setProperty(r,e):t.style[r]=e,this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return r$(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+r$(e)}get time(){return r$(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=rM(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&nL())?(this.animation.timeline=e,eF):t(this)}}let nB={anticipate:ng,backInOut:nf,circInOut:nv};class nz extends nU{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in nB&&(e.ease=nB[e.ease])}(e),nN(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:r,onComplete:n,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new nD({...o,autoplay:!1}),s=rM(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}let nq=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(to.test(e)||"0"===e)&&!e.startsWith("url(")),nG=new Set(["opacity","clipPath","filter","transform"]),nK=nC(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nH extends nP{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tb.now();const p={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:
1556o,name:s,motionValue:l,element:c,...u},d=c?.KeyframeResolver||eY;this.keyframeResolver=new d(a,(e,t,r)=>this.onKeyframesResolved(e,t,p,!r),s,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,r,n){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:c}=r;this.resolvedAt=tb.now(),!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=nq(i,t),s=nq(o,t);return eA(`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||nV(r))&&n)}(e,i,o,a)&&((eM.instantAnimations||!s)&&c?.(nI(e,r,t)),e[0]=e[e.length-1],rL(r),r.repeat=0);let u={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...r,keyframes:e},p=!l&&function(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:o,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return nK()&&r&&nG.has(r)&&("transform"!==r||!l)&&!s&&!n&&"mirror"!==i&&0!==o&&"inertia"!==a}(u)?new nz({...u,element:u.motionValue.owner.current}):new nD(u);p.finished.then(()=>this.notifyFinished()).catch(eF),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eH=!0,eW(),eQ(),eH=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nQ=e=>null!==e,nW={type:"spring",stiffness:500,damping:25,restSpeed:10},nY={type:"keyframes",duration:.8},nX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nJ=(e,t,r,n={},i,o)=>a=>{let s=rP(n,e)||{},l=s.delay||n.delay||0,{elapsed:c=0}=n;c-=rM(l);let u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(s)&&Object.assign(u,((e,{keyframes:t})=>t.length>2?nY:$.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:nW:nX)(e,u)),u.duration&&(u.duration=rM(u.duration)),u.repeatDelay&&(u.repeatDelay=rM(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let p=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(rL(u),0===u.delay&&(p=!0)),(eM.instantAnimations||eM.skipAnimations)&&(p=!0,rL(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,p&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:r="loop"}){let n=e.filter(nQ),i=t&&"loop"!==r&&t%2==1?0:n.length-1;return n[i]}(u.keyframes,s);if(void 0!==e)return void eV.update(()=>{u.onUpdate(e),u.onComplete()})}return s.isSync?new nD(u):new nH(u)};function nZ(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=t;n&&(o=n);let l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let n=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||c&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(c,t))continue;let a={delay:r,...rP(o||{},t)},u=n.get();if(void 0!==u&&!n.isAnimating&&!Array.isArray(i)&&i===u&&!a.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){let r=e.props[rO];if(r){let e=window.MotionHandoffAnimation(r,t,eV);null!==e&&(a.startTime=e,p=!0)}}rC(e,t),n.start(nJ(t,n,i,e.shouldReduceMotion&&eh.has(t)?{type:!1}:a,e,p));let d=n.animation;d&&l.push(d)}return a&&Promise.all(l).then(()=>{eV.update(()=>{a&&rD(e,a)})}),l}function n0(e,t,r,n=0,i=1){let o=Array.from(e).sort((e,t)=>
1556e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*n;return"function"==typeof r?r(o,a):1===i?o*n:s-o*n}function n1(e,t,r={}){let n=rN(e,t,"exit"===r.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let o=n?()=>Promise.all(nZ(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(n1(l,t,{...a,delay:r+("function"==typeof n?0:n)+n0(e.variantChildren,l,n,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,n,o,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(r.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function n2(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>n1(e,t,r)));else if("string"==typeof t)n=n1(e,t,r);else{let i="function"==typeof t?rN(e,t,r.custom):t;n=Promise.all(nZ(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function n5(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}e.s(["animateTarget",0,nZ],708001),e.s(["animateVisualElement",0,n2],790812);let n4=tB.length,n3=[...tU].reverse(),n6=tU.length;function n9(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function n8(){return{animate:n9(!0),whileInView:n9(),whileHover:n9(),whileTap:n9(),whileDrag:n9(),whileFocus:n9(),exit:n9()}}class n7{constructor(e){this.isMounted=!1,this.node=e}update(){}}let ie=0,it={x:!1,y:!1};function ir(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let ii=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function io(e){return{point:{x:e.pageX,y:e.pageY}}}function ia(e,t,r,n){return ir(e,t,e=>ii(e)&&r(e,io(e)),n)}function is(e){return e.max-e.min}function il(e,t,r,n=.5){e.origin=n,e.originPoint=et(t.min,t.max,e.origin),e.scale=is(r)/is(t),e.translate=et(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function ic(e,t,r,n){il(e.x,t.x,r.x,n?n.originX:void 0),il(e.y,t.y,r.y,n?n.originY:void 0)}function iu(e,t,r){e.min=r.min+t.min,e.max=e.min+is(t)}function ip(e,t,r){e.min=t.min-r.min,e.max=e.min+is(t)}function id(e,t,r){ip(e.x,t.x,r.x),ip(e.y,t.y,r.y)}function ih(e){return[e("x"),e("y")]}let ig=({current:e})=>e?e.ownerDocument.defaultView:null,iy=(e,t)=>Math.abs(e-t);class im{constructor(e,t,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=ix(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(iy(e.x,t.x)**2+iy(e.y,t.y)**2)>=this.distanceThreshold);if(!n&&!i)return;let{point:o}=r,{timestamp:a}=eB;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;n||(s&&s(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=iv(t,this.transformPagePoint),eV.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=ix("pointercancel"===e.type?this.lastMoveEventInfo:iv(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,o),n&&n(e,o)},!ii(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=n||window;const a=iv(io(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=eB;this.history=[{...s,timestamp:l}];const{onSessionStart:c}=t;c&&c(e,ix(a,this.history)),this.removeListeners=rF(ia(this.contextWindow,"pointermove",this.handlePointerMove),ia(this.contextWindow,"pointerup",this.handlePointerUp),ia(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),eU(this.updatePoint)}}function iv(e,t){return t?{point:t(e.point)}:e}function ib(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ix({point:e},t){return{point:e,delta:ib(e,iE(t)),offset:ib(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,r=null,n=iE(e);for(;t>=0&&(r=e[t],!(n.timestamp-r.timestamp>rM(.1)));)t--;if(!r)return{x:0,y:0};let i=r$(n.timestamp-r.timestamp);if(0===i)return{x:0,y:0};let o={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function iE(e){return e[e.length-1]}function iS(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 iT(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function iw(e,t,r){return{min:ik(e,t),max:ik(e,r)}}function ik(e,t){return"number"==typeof e?e:e[t]||0}let iO=new WeakMap;class i_{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tC(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:r}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(io(e).point)},o=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1556y"===e)if(it[e])return null;else return it[e]=!0,()=>{it[e]=!1};return it.x||it.y?null:(it.x=it.y=!0,()=>{it.x=it.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ih(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ex.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];n&&(t=is(n)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eV.postRender(()=>i(e,t)),rC(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>ih(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new im(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:ig(this.visualElement)})}stop(e,t){let r=e||this.latestPointerEvent,n=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&eV.postRender(()=>a(r,n))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!iI(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?et(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?et(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;e&&rk(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:iS(e.x,r,i),y:iS(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:iw(e,"left","right"),y:iw(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&ih(e=>{var t,n;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=r.layoutBox[e],n=this.constraints[e],i={},void 0!==n.min&&(i.min=n.min-t.min),void 0!==n.max&&(i.max=n.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rk(t))return!1;let n=t.current;eN();let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=ed(e,r),{scroll:i}=t;return i&&(ec(n.x,i.offset.x),ec(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:iT(e.x,o.x),y:iT(e.y,o.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=ee(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(ih(a=>{if(!iI(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let c={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return rC(this.visualElement,e),r.start(nJ(e,r,0,t,this.visualElement,!1))}stopAnimation(){ih(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ih(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){ih(t=>{let{drag:r}=this.getProps();if(!iI(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-et(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!rk(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};ih(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var r,i;let o,a,s,l=t.get();n[e]=(r={min:l,max:l},i=this.constraints[e],o=.5,a=is(r),(s=is(i))>a?o=nS(i.min,i.max-a,r.min):a>s&&(o=nS(r.min,r.max-s,i.min)),ef(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ih(t=>{if(!iI(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(et(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;iO.set(this.visualElement,this);let e=ia(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();rk(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),eV.read(t);let i=ir(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ih(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),n(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function iI(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let iA=e=>(t,r)=>{e&&eV.postRender(()=>e(t,r))};var iN=a;function iP(e=!0){let t=(0,a.useContext)(rv);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:n,register:i}=t,o=(0,a.useId)();(0,a.useEffect)(()=>
1556{if(e)return i(o)},[e]);let s=(0,a.useCallback)(()=>e&&n&&n(o),[o,n,e]);return!r&&n?[!1,s]:[!0]}e.s(["usePresence",0,iP],829066);let iR={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function iD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let iC={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!eE.test(e))return e;else e=parseFloat(e);let r=iD(e,t.target.x),n=iD(e,t.target.y);return`${r}% ${n}%`}},iL=!1;class iF extends iN.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;for(let e in i$)t1[e]=i$[e],Y(e)&&(t1[e].isCSSVariable=!0);i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),iL&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),iR.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,iL=!0,n||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||eV.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tI.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;iL=!0,n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iM(e){let[t,r]=iP(),n=(0,iN.useContext)(ro);return(0,g.jsx)(iF,{...e,layoutGroup:n,switchLayoutGroup:(0,iN.useContext)(r_),isPresent:t,safeToRemove:r})}let i$={borderRadius:{...iC,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:iC,borderTopRightRadius:iC,borderBottomLeftRadius:iC,borderBottomRightRadius:iC,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=to.parse(e);if(n.length>5)return e;let i=to.createTransformer(e),o=+("number"!=typeof n[0]),a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=a,n[1+o]/=s;let l=et(a,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},ij=e=>"object"==typeof e&&null!==e;function iV(e){return ij(e)&&"ownerSVGElement"in e}function iU(e){return iV(e)&&"svg"===e.tagName}function iB(e,t,r){let n=tm(e)?e:tO(e);return n.start(nJ("",n,t,r)),n.animation}e.s(["isSVGElement",0,iV],361979),e.s(["isSVGSVGElement",0,iU],637165),e.s(["animateSingleValue",0,iB],54172);let iz=(e,t)=>e.depth-t.depth;class iq{constructor(){this.children=[],this.isDirty=!1}add(e){tx(this.children,e),this.isDirty=!0}remove(e){tE(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iz),this.isDirty=!1,this.children.forEach(e)}}let iG=["TopLeft","TopRight","BottomLeft","BottomRight"],iK=iG.length,iH=e=>"string"==typeof e?parseFloat(e):e,iQ=e=>"number"==typeof e||eE.test(e);function iW(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iY=iJ(0,.5,nm),iX=iJ(.5,.95,eF);function iJ(e,t,r){return n=>n<e?0:n>t?1:r(nS(e,t,n))}function iZ(e,t){e.min=t.min,e.max=t.max}function i0(e,t){iZ(e.x,t.x),iZ(e.y,t.y)}function i1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function i2(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 i5(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(ex.test(t)&&(t=parseFloat(t),t=et(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=et(o.min,o.max,n);e===o&&(s-=t),e.min=i2(e.min,t,r,s,i),e.max=i2(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let i4=["x","scaleX","originX"],i3=["y","scaleY","originY"];function i6(e,t,r,n){i5(e.x,t,i4,r?r.x:void 0,n?n.x:void 0),i5(e.y,t,i3,r?r.y:void 0,n?n.y:void 0)}function i9(e){return 0===e.translate&&1===e.scale}function i8(e){return i9(e.x)&&i9(e.y)}function i7(e,t){return e.min===t.min&&e.max===t.max}function oe(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ot(e,t){return oe(e.x,t.x)&&oe(e.y,t.y)}function or(e){return is(e.x)/is(e.y)}function on(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class oi{constructor(){this.members=[]}add(e){tx(this.members,e),e.scheduleRender()}remove(e){if(tE(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}
1556exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let oo=["","X","Y","Z"],oa=0;function os(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function ol({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=t?.()){this.id=oa++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(op),this.nodes.forEach(ov),this.nodes.forEach(ob),this.nodes.forEach(od)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new iq)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tS),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=iV(t)&&!iU(t),this.instance=t;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),e){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;eV.read(()=>{n=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==n){let t,o;n=e,this.root.updateBlockedByResize=!0,r&&r(),t=tb.now(),o=({timestamp:e})=>{let r=e-t;r>=250&&(eU(o),i())},eV.setup(o,!0),r=()=>eU(o),iR.hasAnimatedSinceResize&&(iR.hasAnimatedSinceResize=!1,this.nodes.forEach(om))}})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||ok,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!ot(this.targetLayout,n),c=!t&&r;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...rP(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||om(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eU(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1556h(ox),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=r.props[rO];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",eV,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(of);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(og);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oy),this.nodes.forEach(oc),this.nodes.forEach(ou)):this.nodes.forEach(og),this.clearAllSnapshots();let e=tb.now();eB.delta=ef(0,1e3/60,e-eB.timestamp),eB.timestamp=e,eB.isProcessing=!0,ez.update.process(eB),ez.preRender.process(eB),ez.render.process(eB),eB.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tI.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(oh),this.sharedNodes.forEach(oE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eV.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eV.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||is(this.snapshot.measuredBox.x)||is(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tC(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!i8(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&this.instance&&(t||ei(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),oI((t=n).x),oI(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return tC();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(oN))){let{scroll:e}=this.root;e&&(ec(t.x,e.offset.x),ec(t.y,e.offset.y))}return t}removeElementScroll(e){let t=tC();if(i0(t,e),this.scroll?.wasRoot)return t;for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;n!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&i0(t,e),ec(t.x,i.offset.x),ec(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let r=tC();i0(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&ep(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),ei(n.latestValues)&&ep(r,n.latestValues)}return ei(this.latestValues)&&ep(r,this.latestValues),r}removeTransform(e){let t=tC();i0(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!ei(r.latestValues))continue;en(r.latestValues)&&r.updateSnapshot();let n=tC();i0(n,r.measurePageBox()),i6(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return ei(this.latestValues)&&i6(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eB.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
1556isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let r=!!this.resumingFrom||this!==t;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:i}=this.options;if(this.layout&&(n||i)){if(this.resolvedRelativeTargetAt=eB.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tC(),this.relativeTargetOrigin=tC(),id(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),i0(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=tC(),this.targetWithTransforms=tC()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,s;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,s=this.relativeParent.target,iu(o.x,a.x,s.x),iu(o.y,a.y,s.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):i0(this.target,this.layout.layoutBox),el(this.target,this.targetDelta)):i0(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tC(),this.relativeTargetOrigin=tC(),id(this.relativeTargetOrigin,this.target,e.target),i0(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}}getClosestProjectingParent(){if(!(!this.parent||en(this.parent.latestValues)||eo(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(r=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===eB.timestamp&&(r=!1),r)return;let{layout:n,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||i))return;i0(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,n=!1){let i,o,a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=r[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ep(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,el(e,o)),n&&ei(i.latestValues)&&ep(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tC());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(i1(this.prevProjectionDelta.x,this.projectionDelta.x),i1(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ic(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&on(this.projectionDelta.x,this.prevProjectionDelta.x)&&on(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tR(),this.projectionDelta=tR(),this.projectionDeltaWithTransform=tR()}setAnimationOrigin(e,t=!1){let r,n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},a=tR();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=tC(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,p=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(ow));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(oS(a.x,e.x,n),oS(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var c,d,h,f,g,y;id(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,f=this.relativeTargetOrigin,g=s,y=n,oT(h.x,f.x,g.x,y),oT(h.y,f.y,g.y,y),r&&(c=this.relativeTarget,d=r,i7(c.x,d.x)&&i7(c.y,d.y))&&(this.isProjectionDirty=!1),r||(r=tC()),i0(r,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=et(0,r.opacity??1,iY(n)),e.opacityExit=et(t.opacity??1,0,iX(n))
1556):o&&(e.opacity=et(t.opacity??1,r.opacity??1,n));for(let i=0;i<iK;i++){let o=`border${iG[i]}Radius`,a=iW(t,o),s=iW(r,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||iQ(a)===iQ(s)?(e[o]=Math.max(et(iH(a),iH(s),n),0),(ex.test(s)||ex.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||r.rotate)&&(e.rotate=et(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,p,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eU(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eV.update(()=>{iR.hasAnimatedSinceResize=!0,rj.layout++,this.motionValue||(this.motionValue=tO(0)),this.currentAnimation=iB(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{rj.layout--},onComplete:()=>{rj.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&oA(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||tC();let t=is(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=is(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}i0(t,r),ep(t,i),ic(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new oi),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&os("z",e,n,this.animationValues);for(let t=0;t<oo.length;t++)os(`rotate${oo[t]}`,e,n,this.animationValues),os(`skew${oo[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=rx(t?.pointerEvents)||"",e.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=rx(t?.pointerEvents)||""),this.hasProjected&&!ei(this.latestValues)&&(e.transform=r?r({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();
1556let o=function(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=r?.z||0;if((i||o||a)&&(n=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(o=r(i,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,n.animationValues?e.opacity=n===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,t1){if(void 0===i[t])continue;let{correct:r,applyTo:a,isCSSVariable:s}=t1[t],l="none"===o?i[t]:r(i[t],n);if(a){let t=a.length;for(let r=0;r<t;r++)e[a[r]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=n===this?rx(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(of),this.root.sharedNodes.clear()}}}function oc(e){e.updateLayout()}function ou(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?ih(e=>{let n=o?t.measuredBox[e]:t.layoutBox[e],i=is(n);n.min=r[e].min,n.max=n.min+i}):oA(i,t.layoutBox,r)&&ih(n=>{let i=o?t.measuredBox[n]:t.layoutBox[n],a=is(r[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=tR();ic(a,r,t.layoutBox);let s=tR();o?ic(s,e.applyTransform(n,!0),t.measuredBox):ic(s,r,t.layoutBox);let l=!i8(a),c=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let a=tC();id(a,t.layoutBox,i.layoutBox);let s=tC();id(s,r,o.layoutBox),ot(a,s)||(c=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function op(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function od(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function oh(e){e.clearSnapshot()}function of(e){e.clearMeasurements()}function og(e){e.isLayoutDirty=!1}function oy(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function om(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ov(e){e.resolveTargetDelta()}function ob(e){e.calcProjection()}function ox(e){e.resetSkewAndRotation()}function oE(e){e.removeLeadSnapshot()}function oS(e,t,r){e.translate=et(t.translate,0,r),e.scale=et(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function oT(e,t,r,n){e.min=et(t.min,r.min,n),e.max=et(t.max,r.max,n)}function ow(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ok={duration:.45,ease:[.4,0,.1,1]},oO=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),o_=oO("applewebkit/")&&!oO("chrome/")?Math.round:eF;function oI(e){e.min=o_(e.min),e.max=o_(e.max)}function oA(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(or(t)-or(r)))}function oN(e){return e!==e.root&&e.scroll?.wasRoot}let oP=ol({attachResizeListener:(e,t)=>ir(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oR={current:void 0},oD=ol({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oR.current){let e=new oP({});e.mount(window),e.setOptions({layoutScroll:!0}),oR.current=e}return oR.current},resetTransform:(e,t)=>
1556{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function oC(e,t,r){if(e instanceof EventTarget)return[e];if("string"==typeof e){let n=document;t&&(n=t.current);let i=r?.[e]??n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function oL(e,t){let r=oC(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function oF(e){return!("touch"===e.pointerType||it.x||it.y)}function oM(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&eV.postRender(()=>i(t,io(t)))}function o$(e){return ij(e)&&"offsetHeight"in e}e.s(["resolveElements",0,oC],369710),e.s(["isHTMLElement",0,o$],812064);let oj=(e,t)=>!!t&&(e===t||oj(e,t.parentElement)),oV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),oU=new WeakSet;function oB(e){return t=>{"Enter"===t.key&&e(t)}}function oz(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function oq(e){return ii(e)&&!(it.x||it.y)}function oG(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&eV.postRender(()=>i(t,io(t)))}let oK=new WeakMap,oH=new WeakMap,oQ=e=>{let t=oK.get(e.target);t&&t(e)},oW=e=>{e.forEach(oQ)},oY={some:0,all:1},oX=function(e,t){if("u"<typeof Proxy)return rA;let r=new Map,n=(r,n)=>rA(r,n,e,t);return new Proxy((e,t)=>n(e,t),{get:(i,o)=>"create"===o?n:(r.has(o)||r.set(o,rA(o,void 0,e,t)),r.get(o))})}({animation:{Feature:class extends n7{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>n2(e,t,r))),r=n8(),n=!0,i=t=>(r,n)=>{let i=rN(e,n,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function o(o){let{props:a}=e,s=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<n4;e++){let n=tB[e],i=t.props[n];(tV(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},l=[],c=new Set,u={},p=1/0;for(let t=0;t<n6;t++){var d,h;let f=n3[t],g=r[f],y=void 0!==a[f]?a[f]:s[f],m=tV(y),v=f===o?g.isActive:null;!1===v&&(p=t);let b=y===s[f]&&y!==a[f]&&m;if(b&&n&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...u},!g.isActive&&null===v||!y&&!g.prevProp||tj(y)||"boolean"==typeof y)continue;let x=(d=g.prevProp,"string"==typeof(h=y)?h!==d:!!Array.isArray(h)&&!n5(h,d)),E=x||f===o&&g.isActive&&!b&&m||t>p&&m,S=!1,T=Array.isArray(y)?y:[y],w=T.reduce(i(f),{});!1===v&&(w={});let{prevResolvedValues:k={}}=g,O={...k,...w},_=t=>{E=!0,c.has(t)&&(S=!0,c.delete(t)),g.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in O){let t=w[e],r=k[e];if(!u.hasOwnProperty(e))(rR(t)&&rR(r)?n5(t,r):t===r)?void 0!==t&&c.has(e)?_(e):g.protectedKeys[e]=!0:null!=t?_(e):c.add(e)}g.prevProp=y,g.prevResolvedValues=w,g.isActive&&(u={...u,...w}),n&&e.blockInitialAnimation&&(E=!1);let I=b&&x,A=!I||S;E&&A&&l.push(...T.map(t=>{let r={type:f};if("string"==typeof t&&n&&!I&&e.manuallyAnimateOnMount&&e.parent){let{parent:n}=e,i=rN(n,t);if(n.enteringChildren&&i){let{delayChildren:t}=i.transition||{};r.delay=n0(n.enteringChildren,e,t)}}return{animation:t,options:r}}))}if(c.size){let t={};if("boolean"!=typeof a.initial){let r=rN(e,Array.isArray(a.initial)?a.initial[0]:a.initial);r&&r.transition&&(t.transition=r.transition)}c.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=n??null}),l.push({animation:t})}let f=!!l.length;return n&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,n){if(r[t].isActive===n)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,n)),r[t].isActive=n;let i=o(t);for(let e in r)r[e].protectedKeys={};return i},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=n8(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tj(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends n7{constructor(){super(...arguments),this.id=ie++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>
1556{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends n7{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:r={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:a}=r,s={root:n?n.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:oY[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let r=e||document;oH.has(r)||oH.set(r,{});let n=oH.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(oW,{root:e,...t})),n[i]}(s),oK.set(e,l),t.observe(e),()=>{oK.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends n7{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,o]=oL(e,r),a=e=>{let n=e.currentTarget;if(!oq(e))return;oU.add(n);let o=t(n,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),oU.has(n)&&oU.delete(n),oq(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,n===window||n===document||r.useGlobalTarget||oj(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return n.forEach(e=>{((r.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),o$(e))&&(e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let n=oB(()=>{if(oU.has(r))return;oz(r,"down");let e=oB(()=>{oz(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>oz(r,"cancel"),t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)})(e,i)),oV.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(oG(this.node,t,"Start"),(e,{success:t})=>oG(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends n7{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rF(ir(this.node.current,"focus",()=>this.onFocus()),ir(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends n7{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[n,i,o]=oL(e,r),a=e=>{if(!oF(e))return;let{target:r}=e,n=t(r,e);if("function"!=typeof n||!r)return;let o=e=>{oF(e)&&(n(e),r.removeEventListener("pointerleave",o))};r.addEventListener("pointerleave",o,i)};return n.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}(e,(e,t)=>(oM(this.node,t,"Start"),e=>oM(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends n7{constructor(){super(...arguments),this.removePointerDownListener=eF}onPointerDown(e){this.session=new im(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ig(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:iA(e),onStart:iA(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&eV.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=ia(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends n7{constructor(e){super(e),this.removeGroupControls=eF,this.removeListeners=eF,this.controls=new i_(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eF}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:oD,MeasureLayout:iM},layout:{ProjectionNode:oD,MeasureLayout:iM}},(e,t)=>ri(e)?new rr(t):new t4(t,{allowProjection:e!==a.Fragment}));e.s(["motion",0,oX],189731);let oJ=(0,h.default)("div",{target:"e14fye7b0"})("display:inline-flex;align-items:center;"),oZ=(0,h.default)("label",{target:"e14fye7b1"})("margin-right:12px;font-size:",f.OneAppTokens.typography.textSecondary.fontSize,";line-height:",f.OneAppTokens.typography.textSecondary.lineHeight,";font-weight:",f.OneAppTokens.typography.textSecondary.fontWeight,";font-family:",f.OneAppTokens.typography.textSecondary.fontFamily,";text-transform:",f.OneAppTokens.typography.textSecondary.textTransform,";text-decoration:",f.OneAppTokens.typography.textSecondary.textDecoration,";"),o0=(0,h.default)(R,{target:"e14fye7b2"})("cursor:pointer;position:relative;width:52px;height:32px;border-radius:48px;border:none;background-color:",f.OneAppTokens.color.text.tertiary,";transition:background-color 200ms;will-change:background-color;&[data-state='checked']{background-color:",f.OneAppTokens.color.accent.brand,";}&[data-disabled]{cursor:not-allowed;background-color:rgba(255,255,255,0.2);}"),o1=(0,h.default)(oX.create(C),{target:"e14fye7b3"})("position:absolute;top:3px;width:26px;height:26px;background-color:",f.OneAppTokens.color.text.primary,";border-radius:50%;transition:background-color 200ms;will-change:background-color;&[data-disabled]{background-color:rgba(255,255,255,0.4);}"),o2={duration:.2,type:"tween"};(0,a.forwardRef)(({"aria-describedby":e,"aria-label":t,className:r,disabled:n,id:i,label:o,name:s,onValueChange:l,value:c},u)=>{let d,h=(d="switch",(0,a.useMemo)(()=>(0,p.generateUniqueId)(d),[d])),f=i??h;return(0,g.jsxs)(oJ,{className:r,children:[o&&(0,g.jsx)(oZ,{htmlFor:f,children:o}),(0,g.jsx)(o0,{"aria-describedby":e,"aria-label":t,checked:c,disabled:n,id:f,name:s,onCheckedChange:()=>{n||l(!c)},ref:u,children:(0,g.jsx)(o1,{animate:c?"on":"off",initial:c?"on":"off",transition:o2,variants:{off:{left:3,right:"auto"},on:{left:"auto",right:3}}})})]})}).displayName="Switch",e.i(905881),e.i(139474),e.i(718690),e.i(532484),e.i(190393),(0,h.default)("div",{target:"e6gy7b00"})("position:fixed;left:16px;bottom:16px;display:inline-block;padding:16px;margin:0 -4px;> *{margin:0 4px;}background-color:",f.OneAppTokens.color.background.surface,";border-radius:",f.OneAppTokens.radius.button,";font-size:",f.OneAppTokens.typography.textSecondary.fontSize,";font-weight:",f.OneAppTokens.typography.textSecondary.fontWeight,";line-height:",f.OneAppTokens.typography.textSecondary.lineHeight,";"),e.i(90783),(0,d.css)(".ot-floating-button{display:none;}"),f.OneAppTokens.typography.base.fontSize,e.i(829721),e.i(44818),e.s([],717590)}]);

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.