@pipedream/connect-react 1.0.0-preview.7 → 1.0.0-preview.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2303,13 +2303,13 @@ const Ru = $n(
2303
2303
  "dynamicProps"
2304
2304
  ],
2305
2305
  queryFn: async () => {
2306
- const { dynamic_props: H } = await n.componentReloadProps(z);
2306
+ const { dynamicProps: H } = await n.componentReloadProps(z);
2307
2307
  return H && B(H), O(void 0), [];
2308
2308
  },
2309
2309
  enabled: R != null
2310
2310
  // TODO or props.dynamicPropsId && !dynamicProps
2311
2311
  });
2312
- let k = (A == null ? void 0 : A.configurable_props) || t.component.configurable_props || [];
2312
+ let k = (A == null ? void 0 : A.configurableProps) || t.component.configurable_props || [];
2313
2313
  if (a != null && a.length) {
2314
2314
  const H = [];
2315
2315
  for (const N of k)
@@ -2353,7 +2353,10 @@ const Ru = $n(
2353
2353
  }, [
2354
2354
  k
2355
2355
  ]);
2356
- const [K, le] = Se(u);
2356
+ const [
2357
+ K,
2358
+ le
2359
+ ] = Se(u);
2357
2360
  zn(() => {
2358
2361
  K !== u && (X({}), le(u));
2359
2362
  }, [
@@ -1,15 +1,11 @@
1
- import { Account } from '@pipedream/sdk';
2
1
  import { AccountsRequestResponse } from '@pipedream/sdk';
3
2
  import { AppRequestResponse } from '@pipedream/sdk';
4
3
  import { AppResponse } from '@pipedream/sdk';
5
- import { AppResponse as AppResponse_2 } from '@pipedream/sdk/browser';
6
- import { AppsRequestResponse } from '@pipedream/sdk/browser';
7
4
  import { BrowserClient } from '@pipedream/sdk/browser';
8
5
  import { ClassNamesConfig } from 'react-select';
9
6
  import { Component } from 'react';
10
7
  import { ComponentProps } from 'react';
11
8
  import { ComponentRequestResponse } from '@pipedream/sdk';
12
- import { ComponentsRequestResponse } from '@pipedream/sdk/browser';
13
9
  import { ConfigurableProp } from '@pipedream/sdk';
14
10
  import { ConfigurablePropAlert } from '@pipedream/sdk';
15
11
  import { ConfigurablePropApp } from '@pipedream/sdk';
@@ -18,7 +14,7 @@ import { ConfiguredProps } from '@pipedream/sdk';
18
14
  import { Context } from 'react';
19
15
  import { CSSProperties } from 'react';
20
16
  import { FC } from 'react';
21
- import { FetchStatus } from '@tanstack/react-query';
17
+ import { FetchStatus } from '@tanstack/query-core';
22
18
  import { GetAccountOpts } from '@pipedream/sdk';
23
19
  import { GetAppsOpts } from '@pipedream/sdk';
24
20
  import { GetComponentOpts } from '@pipedream/sdk';
@@ -27,15 +23,14 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
27
23
  import { JSXElementConstructor } from 'react';
28
24
  import { Props } from 'react-select';
29
25
  import { PropValue } from '@pipedream/sdk';
30
- import { QueryObserverResult } from '@tanstack/react-query';
26
+ import { QueryObserverResult } from '@tanstack/query-core';
31
27
  import { ReactNode } from 'react';
32
- import { RefetchOptions } from '@tanstack/react-query';
28
+ import { RefetchOptions } from '@tanstack/query-core';
33
29
  import { SelectComponentsConfig } from 'react-select';
34
30
  import { StylesConfig } from 'react-select';
35
31
  import { Theme as Theme_2 } from 'react-select';
36
32
  import { UseQueryOptions } from '@tanstack/react-query';
37
33
  import { V1Component } from '@pipedream/sdk';
38
- import { V1Component as V1Component_2 } from '@pipedream/sdk/browser';
39
34
 
40
35
  export declare function Alert({ prop }: AlertProps): JSX_2.Element;
41
36
 
@@ -228,7 +223,7 @@ declare type DescriptionProps<T extends ConfigurableProps, U extends Configurabl
228
223
 
229
224
  export declare type DynamicProps<T extends ConfigurableProps> = {
230
225
  id: string;
231
- configurable_props: T;
226
+ configurableProps: T;
232
227
  };
233
228
 
234
229
  export declare class ErrorBoundary extends Component<Props_2> {
@@ -408,7 +403,7 @@ export declare const unstyledTheme: Theme;
408
403
  export declare const useAccounts: (input: GetAccountOpts, opts?: {
409
404
  useQueryOpts?: Omit<UseQueryOptions<AccountsRequestResponse>, "queryKey" | "queryFn">;
410
405
  }) => {
411
- accounts: Account[];
406
+ accounts: any;
412
407
  data: AccountsRequestResponse;
413
408
  error: Error;
414
409
  isError: true;
@@ -435,7 +430,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
435
430
  fetchStatus: FetchStatus;
436
431
  promise: Promise<AccountsRequestResponse>;
437
432
  } | {
438
- accounts: Account[];
433
+ accounts: any;
439
434
  data: AccountsRequestResponse;
440
435
  error: null;
441
436
  isError: false;
@@ -462,7 +457,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
462
457
  fetchStatus: FetchStatus;
463
458
  promise: Promise<AccountsRequestResponse>;
464
459
  } | {
465
- accounts: Account[];
460
+ accounts: any;
466
461
  data: undefined;
467
462
  error: Error;
468
463
  isError: true;
@@ -489,7 +484,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
489
484
  fetchStatus: FetchStatus;
490
485
  promise: Promise<AccountsRequestResponse>;
491
486
  } | {
492
- accounts: Account[];
487
+ accounts: any;
493
488
  data: undefined;
494
489
  error: null;
495
490
  isError: false;
@@ -516,7 +511,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
516
511
  fetchStatus: FetchStatus;
517
512
  promise: Promise<AccountsRequestResponse>;
518
513
  } | {
519
- accounts: Account[];
514
+ accounts: any;
520
515
  data: undefined;
521
516
  error: null;
522
517
  isError: false;
@@ -550,7 +545,7 @@ export declare const useAccounts: (input: GetAccountOpts, opts?: {
550
545
  export declare const useApp: (slug: string, opts?: {
551
546
  useQueryOpts?: Omit<UseQueryOptions<AppRequestResponse>, "queryKey" | "queryFn">;
552
547
  }) => {
553
- app: AppResponse | undefined;
548
+ app: any;
554
549
  data: AppRequestResponse;
555
550
  error: Error;
556
551
  isError: true;
@@ -577,7 +572,7 @@ export declare const useApp: (slug: string, opts?: {
577
572
  fetchStatus: FetchStatus;
578
573
  promise: Promise<AppRequestResponse>;
579
574
  } | {
580
- app: AppResponse | undefined;
575
+ app: any;
581
576
  data: AppRequestResponse;
582
577
  error: null;
583
578
  isError: false;
@@ -604,7 +599,7 @@ export declare const useApp: (slug: string, opts?: {
604
599
  fetchStatus: FetchStatus;
605
600
  promise: Promise<AppRequestResponse>;
606
601
  } | {
607
- app: AppResponse | undefined;
602
+ app: any;
608
603
  data: undefined;
609
604
  error: Error;
610
605
  isError: true;
@@ -631,7 +626,7 @@ export declare const useApp: (slug: string, opts?: {
631
626
  fetchStatus: FetchStatus;
632
627
  promise: Promise<AppRequestResponse>;
633
628
  } | {
634
- app: AppResponse | undefined;
629
+ app: any;
635
630
  data: undefined;
636
631
  error: null;
637
632
  isError: false;
@@ -658,7 +653,7 @@ export declare const useApp: (slug: string, opts?: {
658
653
  fetchStatus: FetchStatus;
659
654
  promise: Promise<AppRequestResponse>;
660
655
  } | {
661
- app: AppResponse | undefined;
656
+ app: any;
662
657
  data: undefined;
663
658
  error: null;
664
659
  isError: false;
@@ -690,8 +685,8 @@ export declare const useApp: (slug: string, opts?: {
690
685
  * Get list of apps that can be authenticated
691
686
  */
692
687
  export declare const useApps: (input?: GetAppsOpts) => {
693
- apps: AppResponse_2[] | undefined;
694
- data: AppsRequestResponse;
688
+ apps: any;
689
+ data: any;
695
690
  error: Error;
696
691
  isError: true;
697
692
  isPending: false;
@@ -713,12 +708,12 @@ export declare const useApps: (input?: GetAppsOpts) => {
713
708
  isPlaceholderData: boolean;
714
709
  isRefetching: boolean;
715
710
  isStale: boolean;
716
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppsRequestResponse, Error>>;
711
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
717
712
  fetchStatus: FetchStatus;
718
- promise: Promise<AppsRequestResponse>;
713
+ promise: Promise<any>;
719
714
  } | {
720
- apps: AppResponse_2[] | undefined;
721
- data: AppsRequestResponse;
715
+ apps: any;
716
+ data: any;
722
717
  error: null;
723
718
  isError: false;
724
719
  isPending: false;
@@ -740,11 +735,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
740
735
  isPlaceholderData: boolean;
741
736
  isRefetching: boolean;
742
737
  isStale: boolean;
743
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppsRequestResponse, Error>>;
738
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
744
739
  fetchStatus: FetchStatus;
745
- promise: Promise<AppsRequestResponse>;
740
+ promise: Promise<any>;
746
741
  } | {
747
- apps: AppResponse_2[] | undefined;
742
+ apps: any;
748
743
  data: undefined;
749
744
  error: Error;
750
745
  isError: true;
@@ -767,11 +762,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
767
762
  isPlaceholderData: boolean;
768
763
  isRefetching: boolean;
769
764
  isStale: boolean;
770
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppsRequestResponse, Error>>;
765
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
771
766
  fetchStatus: FetchStatus;
772
- promise: Promise<AppsRequestResponse>;
767
+ promise: Promise<any>;
773
768
  } | {
774
- apps: AppResponse_2[] | undefined;
769
+ apps: any;
775
770
  data: undefined;
776
771
  error: null;
777
772
  isError: false;
@@ -794,11 +789,11 @@ export declare const useApps: (input?: GetAppsOpts) => {
794
789
  isPlaceholderData: boolean;
795
790
  isRefetching: boolean;
796
791
  isStale: boolean;
797
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppsRequestResponse, Error>>;
792
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
798
793
  fetchStatus: FetchStatus;
799
- promise: Promise<AppsRequestResponse>;
794
+ promise: Promise<any>;
800
795
  } | {
801
- apps: AppResponse_2[] | undefined;
796
+ apps: any;
802
797
  data: undefined;
803
798
  error: null;
804
799
  isError: false;
@@ -821,9 +816,9 @@ export declare const useApps: (input?: GetAppsOpts) => {
821
816
  isPlaceholderData: boolean;
822
817
  isRefetching: boolean;
823
818
  isStale: boolean;
824
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<AppsRequestResponse, Error>>;
819
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
825
820
  fetchStatus: FetchStatus;
826
- promise: Promise<AppsRequestResponse>;
821
+ promise: Promise<any>;
827
822
  };
828
823
 
829
824
  /**
@@ -834,7 +829,7 @@ export declare const useComponent: ({ key }: {
834
829
  }, opts?: {
835
830
  useQueryOpts?: Omit<UseQueryOptions<ComponentRequestResponse>, "queryKey" | "queryFn">;
836
831
  }) => {
837
- component: V1Component | undefined;
832
+ component: any;
838
833
  data: ComponentRequestResponse;
839
834
  error: Error;
840
835
  isError: true;
@@ -861,7 +856,7 @@ export declare const useComponent: ({ key }: {
861
856
  fetchStatus: FetchStatus;
862
857
  promise: Promise<ComponentRequestResponse>;
863
858
  } | {
864
- component: V1Component | undefined;
859
+ component: any;
865
860
  data: ComponentRequestResponse;
866
861
  error: null;
867
862
  isError: false;
@@ -888,7 +883,7 @@ export declare const useComponent: ({ key }: {
888
883
  fetchStatus: FetchStatus;
889
884
  promise: Promise<ComponentRequestResponse>;
890
885
  } | {
891
- component: V1Component | undefined;
886
+ component: any;
892
887
  data: undefined;
893
888
  error: Error;
894
889
  isError: true;
@@ -915,7 +910,7 @@ export declare const useComponent: ({ key }: {
915
910
  fetchStatus: FetchStatus;
916
911
  promise: Promise<ComponentRequestResponse>;
917
912
  } | {
918
- component: V1Component | undefined;
913
+ component: any;
919
914
  data: undefined;
920
915
  error: null;
921
916
  isError: false;
@@ -942,7 +937,7 @@ export declare const useComponent: ({ key }: {
942
937
  fetchStatus: FetchStatus;
943
938
  promise: Promise<ComponentRequestResponse>;
944
939
  } | {
945
- component: V1Component | undefined;
940
+ component: any;
946
941
  data: undefined;
947
942
  error: null;
948
943
  isError: false;
@@ -974,8 +969,8 @@ export declare const useComponent: ({ key }: {
974
969
  * Get list of components
975
970
  */
976
971
  export declare const useComponents: (input?: GetComponentOpts) => {
977
- components: Omit<V1Component_2, "configurable_props">[];
978
- data: ComponentsRequestResponse;
972
+ components: any;
973
+ data: any;
979
974
  error: Error;
980
975
  isError: true;
981
976
  isPending: false;
@@ -997,12 +992,12 @@ export declare const useComponents: (input?: GetComponentOpts) => {
997
992
  isPlaceholderData: boolean;
998
993
  isRefetching: boolean;
999
994
  isStale: boolean;
1000
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentsRequestResponse, Error>>;
995
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1001
996
  fetchStatus: FetchStatus;
1002
- promise: Promise<ComponentsRequestResponse>;
997
+ promise: Promise<any>;
1003
998
  } | {
1004
- components: Omit<V1Component_2, "configurable_props">[];
1005
- data: ComponentsRequestResponse;
999
+ components: any;
1000
+ data: any;
1006
1001
  error: null;
1007
1002
  isError: false;
1008
1003
  isPending: false;
@@ -1024,11 +1019,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
1024
1019
  isPlaceholderData: boolean;
1025
1020
  isRefetching: boolean;
1026
1021
  isStale: boolean;
1027
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentsRequestResponse, Error>>;
1022
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1028
1023
  fetchStatus: FetchStatus;
1029
- promise: Promise<ComponentsRequestResponse>;
1024
+ promise: Promise<any>;
1030
1025
  } | {
1031
- components: Omit<V1Component_2, "configurable_props">[];
1026
+ components: any;
1032
1027
  data: undefined;
1033
1028
  error: Error;
1034
1029
  isError: true;
@@ -1051,11 +1046,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
1051
1046
  isPlaceholderData: boolean;
1052
1047
  isRefetching: boolean;
1053
1048
  isStale: boolean;
1054
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentsRequestResponse, Error>>;
1049
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1055
1050
  fetchStatus: FetchStatus;
1056
- promise: Promise<ComponentsRequestResponse>;
1051
+ promise: Promise<any>;
1057
1052
  } | {
1058
- components: Omit<V1Component_2, "configurable_props">[];
1053
+ components: any;
1059
1054
  data: undefined;
1060
1055
  error: null;
1061
1056
  isError: false;
@@ -1078,11 +1073,11 @@ export declare const useComponents: (input?: GetComponentOpts) => {
1078
1073
  isPlaceholderData: boolean;
1079
1074
  isRefetching: boolean;
1080
1075
  isStale: boolean;
1081
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentsRequestResponse, Error>>;
1076
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1082
1077
  fetchStatus: FetchStatus;
1083
- promise: Promise<ComponentsRequestResponse>;
1078
+ promise: Promise<any>;
1084
1079
  } | {
1085
- components: Omit<V1Component_2, "configurable_props">[];
1080
+ components: any;
1086
1081
  data: undefined;
1087
1082
  error: null;
1088
1083
  isError: false;
@@ -1105,9 +1100,9 @@ export declare const useComponents: (input?: GetComponentOpts) => {
1105
1100
  isPlaceholderData: boolean;
1106
1101
  isRefetching: boolean;
1107
1102
  isStale: boolean;
1108
- refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<ComponentsRequestResponse, Error>>;
1103
+ refetch: (options?: RefetchOptions) => Promise<QueryObserverResult<any, Error>>;
1109
1104
  fetchStatus: FetchStatus;
1110
- promise: Promise<ComponentsRequestResponse>;
1105
+ promise: Promise<any>;
1111
1106
  };
1112
1107
 
1113
1108
  export declare function useCustomize(): Customization;
@@ -1116,6 +1111,6 @@ export declare const useFormContext: () => FormContext<any>;
1116
1111
 
1117
1112
  export declare const useFormFieldContext: <T extends ConfigurableProp>() => FormFieldContext<T>;
1118
1113
 
1119
- export declare const useFrontendClient: () => BrowserClient;
1114
+ export declare const useFrontendClient: () => any;
1120
1115
 
1121
1116
  export { }
@@ -1,4 +1,4 @@
1
- (function(L,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],D):(L=typeof globalThis<"u"?globalThis:L||self,D(L["connect-react"]={},L["react/jsx-runtime"],L.React,L["@emotion/react"],L.ReactDOM))})(this,function(L,D,O,W,Wr){"use strict";var al=L=>{throw TypeError(L)};var fo=(L,D,O)=>D.has(L)||al("Cannot "+O);var C=(L,D,O)=>(fo(L,D,"read from private field"),O?O.call(L):D.get(L)),$=(L,D,O)=>D.has(L)?al("Cannot add the same private member more than once"):D instanceof WeakSet?D.add(L):D.set(L,O),H=(L,D,O,W)=>(fo(L,D,"write to private field"),W?W.call(L,O):D.set(L,O),O),ce=(L,D,O)=>(fo(L,D,"access private method"),O);var Hr=(L,D,O,W)=>({set _(Wr){H(L,D,Wr,O)},get _(){return C(L,D,W)}});var Ht,At,dn,za,pn,St,fn,Ha,Wt,Wa,hn,gn,_e,Ge,zn,Zt,$e,vt,Za,ut,ja,at,Te,jt,lt,Rt,Ya,We,Hn,Ja,Ce,wt,Et,mn,bn,Ft,yn,In,_a,Ne,le,Wn,Ve,Yt,vn,Pt,ct,Zn,Cn,xn,Jt,_t,Gt,An,fe,Un,ho,go,mo,bo,yo,Io,vo,ll,Ua;function cl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const K=cl(O);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function Co({prop:e}){return D.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qn={exports:{}};Qn.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",b="[object GeneratorFunction]",m="[object Map]",I="[object Number]",v="[object Null]",E="[object Object]",S="[object Promise]",w="[object Proxy]",P="[object RegExp]",A="[object Set]",T="[object String]",k="[object Symbol]",V="[object Undefined]",j="[object WeakMap]",M="[object ArrayBuffer]",B="[object DataView]",ee="[object Float32Array]",se="[object Float64Array]",Z="[object Int8Array]",ne="[object Int16Array]",de="[object Int32Array]",he="[object Uint8Array]",xe="[object Uint8ClampedArray]",y="[object Uint16Array]",Y="[object Uint32Array]",X=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,U={};U[ee]=U[se]=U[Z]=U[ne]=U[de]=U[he]=U[xe]=U[y]=U[Y]=!0,U[u]=U[a]=U[M]=U[c]=U[B]=U[d]=U[f]=U[p]=U[m]=U[I]=U[E]=U[P]=U[A]=U[T]=U[j]=!1;var oe=typeof tn=="object"&&tn&&tn.Object===Object&&tn,ke=typeof self=="object"&&self&&self.Object===Object&&self,ge=oe||ke||Function("return this")(),Me=t&&!t.nodeType&&t,Ke=Me&&!0&&e&&!e.nodeType&&e,dt=Ke&&Ke.exports===Me,kt=dt&&oe.process,Sn=function(){try{return kt&&kt.binding&&kt.binding("util")}catch{}}(),Ut=Sn&&Sn.isTypedArray;function wn(h,x){for(var G=-1,z=h==null?0:h.length,ye=0,ie=[];++G<z;){var Ae=h[G];x(Ae,G,h)&&(ie[ye++]=Ae)}return ie}function Or(h,x){for(var G=-1,z=x.length,ye=h.length;++G<z;)h[ye+G]=x[G];return h}function Tr(h,x){for(var G=-1,z=h==null?0:h.length;++G<z;)if(x(h[G],G,h))return!0;return!1}function eo(h,x){for(var G=-1,z=Array(h);++G<h;)z[G]=x(G);return z}function Vr(h){return function(x){return h(x)}}function Rr(h,x){return h.has(x)}function to(h,x){return h==null?void 0:h[x]}function no(h){var x=-1,G=Array(h.size);return h.forEach(function(z,ye){G[++x]=[ye,z]}),G}function ro(h,x){return function(G){return h(x(G))}}function io(h){var x=-1,G=Array(h.size);return h.forEach(function(z){G[++x]=z}),G}var oo=Array.prototype,F=Function.prototype,N=Object.prototype,q=ge["__core-js_shared__"],ue=F.toString,ae=N.hasOwnProperty,Le=function(){var h=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),pt=N.toString,et=RegExp("^"+ue.call(ae).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=dt?ge.Buffer:void 0,ft=ge.Symbol,Be=ge.Uint8Array,bt=N.propertyIsEnumerable,tt=oo.splice,Qt=ft?ft.toStringTag:void 0,Qa=Object.getOwnPropertySymbols,yb=Bt?Bt.isBuffer:void 0,Ib=ro(Object.keys,Object),so=En(ge,"DataView"),jn=En(ge,"Map"),uo=En(ge,"Promise"),ao=En(ge,"Set"),lo=En(ge,"WeakMap"),Yn=En(Object,"create"),vb=Kt(so),Cb=Kt(jn),xb=Kt(uo),Ab=Kt(ao),Sb=Kt(lo),qa=ft?ft.prototype:void 0,co=qa?qa.valueOf:void 0;function qt(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var z=h[x];this.set(z[0],z[1])}}function wb(){this.__data__=Yn?Yn(null):{},this.size=0}function Eb(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Fb(h){var x=this.__data__;if(Yn){var G=x[h];return G===r?void 0:G}return ae.call(x,h)?x[h]:void 0}function Pb(h){var x=this.__data__;return Yn?x[h]!==void 0:ae.call(x,h)}function Gb(h,x){var G=this.__data__;return this.size+=this.has(h)?0:1,G[h]=Yn&&x===void 0?r:x,this}qt.prototype.clear=wb,qt.prototype.delete=Eb,qt.prototype.get=Fb,qt.prototype.has=Pb,qt.prototype.set=Gb;function yt(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var z=h[x];this.set(z[0],z[1])}}function kb(){this.__data__=[],this.size=0}function Bb(h){var x=this.__data__,G=Nr(x,h);if(G<0)return!1;var z=x.length-1;return G==z?x.pop():tt.call(x,G,1),--this.size,!0}function Ob(h){var x=this.__data__,G=Nr(x,h);return G<0?void 0:x[G][1]}function Tb(h){return Nr(this.__data__,h)>-1}function Vb(h,x){var G=this.__data__,z=Nr(G,h);return z<0?(++this.size,G.push([h,x])):G[z][1]=x,this}yt.prototype.clear=kb,yt.prototype.delete=Bb,yt.prototype.get=Ob,yt.prototype.has=Tb,yt.prototype.set=Vb;function $t(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var z=h[x];this.set(z[0],z[1])}}function Rb(){this.size=0,this.__data__={hash:new qt,map:new(jn||yt),string:new qt}}function Db(h){var x=Mr(this,h).delete(h);return this.size-=x?1:0,x}function Nb(h){return Mr(this,h).get(h)}function Mb(h){return Mr(this,h).has(h)}function Lb(h,x){var G=Mr(this,h),z=G.size;return G.set(h,x),this.size+=G.size==z?0:1,this}$t.prototype.clear=Rb,$t.prototype.delete=Db,$t.prototype.get=Nb,$t.prototype.has=Mb,$t.prototype.set=Lb;function Dr(h){var x=-1,G=h==null?0:h.length;for(this.__data__=new $t;++x<G;)this.add(h[x])}function Xb(h){return this.__data__.set(h,r),this}function zb(h){return this.__data__.has(h)}Dr.prototype.add=Dr.prototype.push=Xb,Dr.prototype.has=zb;function Ot(h){var x=this.__data__=new yt(h);this.size=x.size}function Hb(){this.__data__=new yt,this.size=0}function Wb(h){var x=this.__data__,G=x.delete(h);return this.size=x.size,G}function Zb(h){return this.__data__.get(h)}function jb(h){return this.__data__.has(h)}function Yb(h,x){var G=this.__data__;if(G instanceof yt){var z=G.__data__;if(!jn||z.length<n-1)return z.push([h,x]),this.size=++G.size,this;G=this.__data__=new $t(z)}return G.set(h,x),this.size=G.size,this}Ot.prototype.clear=Hb,Ot.prototype.delete=Wb,Ot.prototype.get=Zb,Ot.prototype.has=jb,Ot.prototype.set=Yb;function Jb(h,x){var G=Lr(h),z=!G&&ay(h),ye=!G&&!z&&po(h),ie=!G&&!z&&!ye&&sl(h),Ae=G||z||ye||ie,we=Ae?eo(h.length,String):[],Fe=we.length;for(var Ie in h)ae.call(h,Ie)&&!(Ae&&(Ie=="length"||ye&&(Ie=="offset"||Ie=="parent")||ie&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||ry(Ie,Fe)))&&we.push(Ie);return we}function Nr(h,x){for(var G=h.length;G--;)if(nl(h[G][0],x))return G;return-1}function _b(h,x,G){var z=x(h);return Lr(h)?z:Or(z,G(h))}function Jn(h){return h==null?h===void 0?V:v:Qt&&Qt in Object(h)?ty(h):uy(h)}function $a(h){return _n(h)&&Jn(h)==u}function Ka(h,x,G,z,ye){return h===x?!0:h==null||x==null||!_n(h)&&!_n(x)?h!==h&&x!==x:Ub(h,x,G,z,Ka,ye)}function Ub(h,x,G,z,ye,ie){var Ae=Lr(h),we=Lr(x),Fe=Ae?a:Tt(h),Ie=we?a:Tt(x);Fe=Fe==u?E:Fe,Ie=Ie==u?E:Ie;var Ze=Fe==E,nt=Ie==E,Oe=Fe==Ie;if(Oe&&po(h)){if(!po(x))return!1;Ae=!0,Ze=!1}if(Oe&&!Ze)return ie||(ie=new Ot),Ae||sl(h)?el(h,x,G,z,ye,ie):Kb(h,x,Fe,G,z,ye,ie);if(!(G&i)){var Ue=Ze&&ae.call(h,"__wrapped__"),Qe=nt&&ae.call(x,"__wrapped__");if(Ue||Qe){var Vt=Ue?h.value():h,It=Qe?x.value():x;return ie||(ie=new Ot),ye(Vt,It,G,z,ie)}}return Oe?(ie||(ie=new Ot),ey(h,x,G,z,ye,ie)):!1}function Qb(h){if(!ol(h)||oy(h))return!1;var x=rl(h)?et:g;return x.test(Kt(h))}function qb(h){return _n(h)&&il(h.length)&&!!U[Jn(h)]}function $b(h){if(!sy(h))return Ib(h);var x=[];for(var G in Object(h))ae.call(h,G)&&G!="constructor"&&x.push(G);return x}function el(h,x,G,z,ye,ie){var Ae=G&i,we=h.length,Fe=x.length;if(we!=Fe&&!(Ae&&Fe>we))return!1;var Ie=ie.get(h);if(Ie&&ie.get(x))return Ie==x;var Ze=-1,nt=!0,Oe=G&o?new Dr:void 0;for(ie.set(h,x),ie.set(x,h);++Ze<we;){var Ue=h[Ze],Qe=x[Ze];if(z)var Vt=Ae?z(Qe,Ue,Ze,x,h,ie):z(Ue,Qe,Ze,h,x,ie);if(Vt!==void 0){if(Vt)continue;nt=!1;break}if(Oe){if(!Tr(x,function(It,en){if(!Rr(Oe,en)&&(Ue===It||ye(Ue,It,G,z,ie)))return Oe.push(en)})){nt=!1;break}}else if(!(Ue===Qe||ye(Ue,Qe,G,z,ie))){nt=!1;break}}return ie.delete(h),ie.delete(x),nt}function Kb(h,x,G,z,ye,ie,Ae){switch(G){case B:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case M:return!(h.byteLength!=x.byteLength||!ie(new Be(h),new Be(x)));case c:case d:case I:return nl(+h,+x);case f:return h.name==x.name&&h.message==x.message;case P:case T:return h==x+"";case m:var we=no;case A:var Fe=z&i;if(we||(we=io),h.size!=x.size&&!Fe)return!1;var Ie=Ae.get(h);if(Ie)return Ie==x;z|=o,Ae.set(h,x);var Ze=el(we(h),we(x),z,ye,ie,Ae);return Ae.delete(h),Ze;case k:if(co)return co.call(h)==co.call(x)}return!1}function ey(h,x,G,z,ye,ie){var Ae=G&i,we=tl(h),Fe=we.length,Ie=tl(x),Ze=Ie.length;if(Fe!=Ze&&!Ae)return!1;for(var nt=Fe;nt--;){var Oe=we[nt];if(!(Ae?Oe in x:ae.call(x,Oe)))return!1}var Ue=ie.get(h);if(Ue&&ie.get(x))return Ue==x;var Qe=!0;ie.set(h,x),ie.set(x,h);for(var Vt=Ae;++nt<Fe;){Oe=we[nt];var It=h[Oe],en=x[Oe];if(z)var ul=Ae?z(en,It,Oe,x,h,ie):z(It,en,Oe,h,x,ie);if(!(ul===void 0?It===en||ye(It,en,G,z,ie):ul)){Qe=!1;break}Vt||(Vt=Oe=="constructor")}if(Qe&&!Vt){var Xr=h.constructor,zr=x.constructor;Xr!=zr&&"constructor"in h&&"constructor"in x&&!(typeof Xr=="function"&&Xr instanceof Xr&&typeof zr=="function"&&zr instanceof zr)&&(Qe=!1)}return ie.delete(h),ie.delete(x),Qe}function tl(h){return _b(h,dy,ny)}function Mr(h,x){var G=h.__data__;return iy(x)?G[typeof x=="string"?"string":"hash"]:G.map}function En(h,x){var G=to(h,x);return Qb(G)?G:void 0}function ty(h){var x=ae.call(h,Qt),G=h[Qt];try{h[Qt]=void 0;var z=!0}catch{}var ye=pt.call(h);return z&&(x?h[Qt]=G:delete h[Qt]),ye}var ny=Qa?function(h){return h==null?[]:(h=Object(h),wn(Qa(h),function(x){return bt.call(h,x)}))}:py,Tt=Jn;(so&&Tt(new so(new ArrayBuffer(1)))!=B||jn&&Tt(new jn)!=m||uo&&Tt(uo.resolve())!=S||ao&&Tt(new ao)!=A||lo&&Tt(new lo)!=j)&&(Tt=function(h){var x=Jn(h),G=x==E?h.constructor:void 0,z=G?Kt(G):"";if(z)switch(z){case vb:return B;case Cb:return m;case xb:return S;case Ab:return A;case Sb:return j}return x});function ry(h,x){return x=x??s,!!x&&(typeof h=="number"||re.test(h))&&h>-1&&h%1==0&&h<x}function iy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function oy(h){return!!Le&&Le in h}function sy(h){var x=h&&h.constructor,G=typeof x=="function"&&x.prototype||N;return h===G}function uy(h){return pt.call(h)}function Kt(h){if(h!=null){try{return ue.call(h)}catch{}try{return h+""}catch{}}return""}function nl(h,x){return h===x||h!==h&&x!==x}var ay=$a(function(){return arguments}())?$a:function(h){return _n(h)&&ae.call(h,"callee")&&!bt.call(h,"callee")},Lr=Array.isArray;function ly(h){return h!=null&&il(h.length)&&!rl(h)}var po=yb||fy;function cy(h,x){return Ka(h,x)}function rl(h){if(!ol(h))return!1;var x=Jn(h);return x==p||x==b||x==l||x==w}function il(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function ol(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function _n(h){return h!=null&&typeof h=="object"}var sl=Ut?Vr(Ut):qb;function dy(h){return ly(h)?Jb(h):$b(h)}function py(){return[]}function fy(){return!1}e.exports=cy}(Qn,Qn.exports);var dl=Qn.exports;const pl=xo(dl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dt=typeof window>"u"||"Deno"in globalThis;function je(){}function fl(e,t){return typeof e=="function"?e(t):e}function Zr(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ao(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nn(e,t){return typeof e=="function"?e(t):e}function qe(e,t){return typeof e=="function"?e(t):e}function So(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==jr(s,t.options))return!1}else if(!Gn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function wo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!Gn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>_r(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Eo(e)&&Eo(t);if(n||_r(e)&&_r(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function Jr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Eo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _r(e){if(!Fo(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Fo(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fo(e){return Object.prototype.toString.call(e)==="[object Object]"}function hl(e){return new Promise(t=>{setTimeout(t,e)})}function Ur(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Yr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Yr(e,t)}return t}function gl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ml(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qn=Symbol();function Po(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===qn&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var bl=(za=class extends Fn{constructor(){super();$(this,Ht);$(this,At);$(this,dn);H(this,dn,t=>{if(!Dt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,At)||this.setEventListener(C(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,At))==null||t.call(this),H(this,At,void 0))}setEventListener(t){var n;H(this,dn,t),(n=C(this,At))==null||n.call(this),H(this,At,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Ht)!==t&&(H(this,Ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Ht)=="boolean"?C(this,Ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ht=new WeakMap,At=new WeakMap,dn=new WeakMap,za),Qr=new bl,yl=(Ha=class extends Fn{constructor(){super();$(this,pn,!0);$(this,St);$(this,fn);H(this,fn,t=>{if(!Dt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,St)||this.setEventListener(C(this,fn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,St))==null||t.call(this),H(this,St,void 0))}setEventListener(t){var n;H(this,fn,t),(n=C(this,St))==null||n.call(this),H(this,St,t(this.setOnline.bind(this)))}setOnline(t){C(this,pn)!==t&&(H(this,pn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,pn)}},pn=new WeakMap,St=new WeakMap,fn=new WeakMap,Ha),$n=new yl;function qr(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Il(e){return Math.min(1e3*2**e,3e4)}function Go(e){return(e??"online")==="online"?$n.isOnline():!0}var ko=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $r(e){return e instanceof ko}function Bo(e){let t=!1,n=0,r=!1,i;const o=qr(),s=m=>{var I;r||(f(new ko(m)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>Qr.isFocused()&&(e.networkMode==="always"||$n.isOnline())&&e.canRun(),c=()=>Go(e.networkMode)&&e.canRun(),d=m=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,m),i==null||i(),o.resolve(m))},f=m=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,m),i==null||i(),o.reject(m))},p=()=>new Promise(m=>{var I;i=v=>{(r||l())&&m(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var m;i=void 0,r||(m=e.onContinue)==null||m.call(e)}),b=()=>{if(r)return;let m;const I=n===0?e.initialPromise:void 0;try{m=I??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(d).catch(v=>{var A;if(r)return;const E=e.retry??(Dt?0:3),S=e.retryDelay??Il,w=typeof S=="function"?S(n,v):S,P=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,v);if(t||!P){f(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),hl(w).then(()=>l()?void 0:p()).then(()=>{t?f(v):b()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?b():p().then(b),o)}}function vl(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var Ee=vl(),Oo=(Wa=class{constructor(){$(this,Wt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zr(this.gcTime)&&H(this,Wt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Wt)&&(clearTimeout(C(this,Wt)),H(this,Wt,void 0))}},Wt=new WeakMap,Wa),Cl=(Za=class extends Oo{constructor(t){super();$(this,$e);$(this,hn);$(this,gn);$(this,_e);$(this,Ge);$(this,zn);$(this,Zt);H(this,Zt,!1),H(this,zn,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,_e,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,hn,xl(this.options)),this.state=t.state??C(this,hn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...C(this,zn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,_e).remove(this)}setData(t,n){const r=Ur(this.state.data,t,this.options);return ce(this,$e,vt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ce(this,$e,vt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Ge))==null?void 0:r.promise;return(i=C(this,Ge))==null||i.cancel(t),n?n.then(je).catch(je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,hn))}isActive(){return this.observers.some(t=>qe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Ao(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,_e).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Ge)&&(C(this,Zt)?C(this,Ge).cancel({revert:!0}):C(this,Ge).cancelRetry()),this.scheduleGc()),C(this,_e).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,$e,vt).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Ge))return C(this,Ge).continueRetry(),C(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(H(this,Zt,!0),r.signal)})},o=()=>{const d=Po(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),H(this,Zt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),H(this,gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&ce(this,$e,vt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,b,m;$r(d)&&d.silent||ce(this,$e,vt).call(this,{type:"error",error:d}),$r(d)||((p=(f=C(this,_e).config).onError)==null||p.call(f,d,this),(m=(b=C(this,_e).config).onSettled)==null||m.call(b,this.state.data,d,this)),this.scheduleGc()};return H(this,Ge,Bo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,b,m;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,_e).config).onSuccess)==null||p.call(f,d,this),(m=(b=C(this,_e).config).onSettled)==null||m.call(b,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{ce(this,$e,vt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{ce(this,$e,vt).call(this,{type:"pause"})},onContinue:()=>{ce(this,$e,vt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Ge).start()}},hn=new WeakMap,gn=new WeakMap,_e=new WeakMap,Ge=new WeakMap,zn=new WeakMap,Zt=new WeakMap,$e=new WeakSet,vt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...To(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return $r(i)&&i.revert&&C(this,gn)?{...C(this,gn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ee.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,_e).notify({query:this,type:"updated",action:t})})},Za);function To(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xl(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Al=(ja=class extends Fn{constructor(t={}){super();$(this,ut);this.config=t,H(this,ut,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??jr(i,n);let s=this.get(o);return s||(s=new Cl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,ut).has(t.queryHash)||(C(this,ut).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,ut).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,ut).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ee.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,ut).get(t)}getAll(){return[...C(this,ut).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>So(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>So(t,r)):n}notify(t){Ee.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ee.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ee.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ut=new WeakMap,ja),Sl=(Ya=class extends Oo{constructor(t){super();$(this,lt);$(this,at);$(this,Te);$(this,jt);this.mutationId=t.mutationId,H(this,Te,t.mutationCache),H(this,at,[]),this.state=t.state||wl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,at).includes(t)||(C(this,at).push(t),this.clearGcTimeout(),C(this,Te).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,at,C(this,at).filter(n=>n!==t)),this.scheduleGc(),C(this,Te).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,at).length||(this.state.status==="pending"?this.scheduleGc():C(this,Te).remove(this))}continue(){var t;return((t=C(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,b,m,I,v,E,S,w,P,A,T;H(this,jt,Bo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,V)=>{ce(this,lt,Rt).call(this,{type:"failed",failureCount:k,error:V})},onPause:()=>{ce(this,lt,Rt).call(this,{type:"pause"})},onContinue:()=>{ce(this,lt,Rt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Te).canRun(this)}));const n=this.state.status==="pending",r=!C(this,jt).canStart();try{if(!n){ce(this,lt,Rt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,Te).config).onMutate)==null?void 0:o.call(i,t,this));const V=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));V!==this.state.context&&ce(this,lt,Rt).call(this,{type:"pending",context:V,variables:t,isPaused:r})}const k=await C(this,jt).start();return await((l=(a=C(this,Te).config).onSuccess)==null?void 0:l.call(a,k,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,k,t,this.state.context)),await((p=(f=C(this,Te).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this)),await((m=(b=this.options).onSettled)==null?void 0:m.call(b,k,null,t,this.state.context)),ce(this,lt,Rt).call(this,{type:"success",data:k}),k}catch(k){try{throw await((v=(I=C(this,Te).config).onError)==null?void 0:v.call(I,k,t,this.state.context,this)),await((S=(E=this.options).onError)==null?void 0:S.call(E,k,t,this.state.context)),await((P=(w=C(this,Te).config).onSettled)==null?void 0:P.call(w,void 0,k,this.state.variables,this.state.context,this)),await((T=(A=this.options).onSettled)==null?void 0:T.call(A,void 0,k,t,this.state.context)),k}finally{ce(this,lt,Rt).call(this,{type:"error",error:k})}}finally{C(this,Te).runNext(this)}}},at=new WeakMap,Te=new WeakMap,jt=new WeakMap,lt=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ee.batch(()=>{C(this,at).forEach(r=>{r.onMutationUpdate(t)}),C(this,Te).notify({mutation:this,type:"updated",action:t})})},Ya);function wl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var El=(Ja=class extends Fn{constructor(t={}){super();$(this,We);$(this,Hn);this.config=t,H(this,We,new Map),H(this,Hn,Date.now())}build(t,n,r){const i=new Sl({mutationCache:this,mutationId:++Hr(this,Hn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Kn(t),r=C(this,We).get(n)??[];r.push(t),C(this,We).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Kn(t);if(C(this,We).has(n)){const i=(r=C(this,We).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,We).delete(n):C(this,We).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,We).get(Kn(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,We).get(Kn(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ee.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,We).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wo(n,r))}findAll(t={}){return this.getAll().filter(n=>wo(t,n))}notify(t){Ee.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ee.batch(()=>Promise.all(t.map(n=>n.continue().catch(je))))}},We=new WeakMap,Hn=new WeakMap,Ja);function Kn(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Vo(e){return{onFetch:(t,n)=>{var c,d,f,p,b;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((b=t.state.data)==null?void 0:b.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let m=!1;const I=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=Po(t.options,t.fetchOptions),E=async(S,w,P)=>{if(m)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const A={queryKey:t.queryKey,pageParam:w,direction:P?"backward":"forward",meta:t.options.meta};I(A);const T=await v(A),{maxPages:k}=t.options,V=P?ml:gl;return{pages:V(S.pages,T,k),pageParams:V(S.pageParams,w,k)}};if(i&&o.length){const S=i==="backward",w=S?Fl:Ro,P={pages:o,pageParams:s},A=w(r,P);u=await E(P,A,S)}else{const S=e??o.length;do{const w=a===0?s[0]??r.initialPageParam:Ro(r,u);if(a>0&&w==null)break;u=await E(u,w),a++}while(a<S)}return u};t.options.persister?t.fetchFn=()=>{var m,I;return(I=(m=t.options).persister)==null?void 0:I.call(m,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ro(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Fl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Pl=(_a=class{constructor(e={}){$(this,Ce);$(this,wt);$(this,Et);$(this,mn);$(this,bn);$(this,Ft);$(this,yn);$(this,In);H(this,Ce,e.queryCache||new Al),H(this,wt,e.mutationCache||new El),H(this,Et,e.defaultOptions||{}),H(this,mn,new Map),H(this,bn,new Map),H(this,Ft,0)}mount(){Hr(this,Ft)._++,C(this,Ft)===1&&(H(this,yn,Qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ce).onFocus())})),H(this,In,$n.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ce).onOnline())})))}unmount(){var e,t;Hr(this,Ft)._--,C(this,Ft)===0&&((e=C(this,yn))==null||e.call(this),H(this,yn,void 0),(t=C(this,In))==null||t.call(this),H(this,In,void 0))}isFetching(e){return C(this,Ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,wt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,Ce).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(nn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,Ce).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,Ce).get(r.queryHash),o=i==null?void 0:i.state.data,s=fl(t,o);if(s!==void 0)return C(this,Ce).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ee.batch(()=>C(this,Ce).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Ce);Ee.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Ce),r={type:"active",...e};return Ee.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ee.batch(()=>C(this,Ce).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(je).catch(je)}invalidateQueries(e={},t={}){return Ee.batch(()=>{if(C(this,Ce).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ee.batch(()=>C(this,Ce).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(je)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(je)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Ce).build(this,t);return n.isStaleByTime(nn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(je).catch(je)}fetchInfiniteQuery(e){return e.behavior=Vo(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(je).catch(je)}ensureInfiniteQueryData(e){return e.behavior=Vo(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $n.isOnline()?C(this,wt).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Ce)}getMutationCache(){return C(this,wt)}getDefaultOptions(){return C(this,Et)}setDefaultOptions(e){H(this,Et,e)}setQueryDefaults(e,t){C(this,mn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,mn).values()];let n={};return t.forEach(r=>{Gn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,bn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{Gn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Et).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===qn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Et).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Ce).clear(),C(this,wt).clear()}},Ce=new WeakMap,wt=new WeakMap,Et=new WeakMap,mn=new WeakMap,bn=new WeakMap,Ft=new WeakMap,yn=new WeakMap,In=new WeakMap,_a),Gl=(Ua=class extends Fn{constructor(t,n){super();$(this,fe);$(this,Ne);$(this,le);$(this,Wn);$(this,Ve);$(this,Yt);$(this,vn);$(this,Pt);$(this,ct);$(this,Zn);$(this,Cn);$(this,xn);$(this,Jt);$(this,_t);$(this,Gt);$(this,An,new Set);this.options=n,H(this,Ne,t),H(this,ct,null),H(this,Pt,qr()),this.options.experimental_prefetchInRender||C(this,Pt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,le).addObserver(this),Do(C(this,le),this.options)?ce(this,fe,Un).call(this):this.updateResult(),ce(this,fe,bo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kr(C(this,le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kr(C(this,le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,fe,yo).call(this),ce(this,fe,Io).call(this),C(this,le).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,le);if(this.options=C(this,Ne).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qe(this.options.enabled,C(this,le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,fe,vo).call(this),C(this,le).setOptions(this.options),r._defaulted&&!Jr(this.options,r)&&C(this,Ne).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,le),observer:this});const o=this.hasListeners();o&&No(C(this,le),i,this.options,r)&&ce(this,fe,Un).call(this),this.updateResult(n),o&&(C(this,le)!==i||qe(this.options.enabled,C(this,le))!==qe(r.enabled,C(this,le))||nn(this.options.staleTime,C(this,le))!==nn(r.staleTime,C(this,le)))&&ce(this,fe,ho).call(this);const s=ce(this,fe,go).call(this);o&&(C(this,le)!==i||qe(this.options.enabled,C(this,le))!==qe(r.enabled,C(this,le))||s!==C(this,Gt))&&ce(this,fe,mo).call(this,s)}getOptimisticResult(t){const n=C(this,Ne).getQueryCache().build(C(this,Ne),t),r=this.createResult(n,t);return Bl(this,r)&&(H(this,Ve,r),H(this,vn,this.options),H(this,Yt,C(this,le).state)),r}getCurrentResult(){return C(this,Ve)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,An).add(t)}getCurrentQuery(){return C(this,le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Ne).defaultQueryOptions(t),r=C(this,Ne).getQueryCache().build(C(this,Ne),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ce(this,fe,Un).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ve)))}createResult(t,n){var k;const r=C(this,le),i=this.options,o=C(this,Ve),s=C(this,Yt),u=C(this,vn),l=t!==r?t.state:C(this,Wn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const V=this.hasListeners(),j=!V&&Do(t,n),M=V&&No(t,r,n,i);(j||M)&&(d={...d,...To(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:m,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Zn))p=C(this,Cn);else try{H(this,Zn,n.select),p=n.select(d.data),p=Ur(o==null?void 0:o.data,p,n),H(this,Cn,p),H(this,ct,null)}catch(V){H(this,ct,V)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let V;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))V=o.data;else if(V=typeof n.placeholderData=="function"?n.placeholderData((k=C(this,xn))==null?void 0:k.state.data,C(this,xn)):n.placeholderData,n.select&&V!==void 0)try{V=n.select(V),H(this,ct,null)}catch(j){H(this,ct,j)}V!==void 0&&(I="success",p=Ur(o==null?void 0:o.data,V,n),f=!0)}C(this,ct)&&(b=C(this,ct),p=C(this,Cn),m=Date.now(),I="error");const v=d.fetchStatus==="fetching",E=I==="pending",S=I==="error",w=E&&v,P=p!==void 0,T={status:I,fetchStatus:d.fetchStatus,isPending:E,isSuccess:I==="success",isError:S,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!E,isLoadingError:S&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:S&&P,isStale:ei(t,n),refetch:this.refetch,promise:C(this,Pt)};if(this.options.experimental_prefetchInRender){const V=B=>{T.status==="error"?B.reject(T.error):T.data!==void 0&&B.resolve(T.data)},j=()=>{const B=H(this,Pt,T.promise=qr());V(B)},M=C(this,Pt);switch(M.status){case"pending":t.queryHash===r.queryHash&&V(M);break;case"fulfilled":(T.status==="error"||T.data!==M.value)&&j();break;case"rejected":(T.status!=="error"||T.error!==M.reason)&&j();break}}return T}updateResult(t){const n=C(this,Ve),r=this.createResult(C(this,le),this.options);if(H(this,Yt,C(this,le).state),H(this,vn,this.options),C(this,Yt).data!==void 0&&H(this,xn,C(this,le)),Jr(r,n))return;H(this,Ve,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,An).size)return!0;const a=new Set(u??C(this,An));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ve)).some(l=>{const c=l;return C(this,Ve)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ce(this,fe,ll).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,fe,bo).call(this)}},Ne=new WeakMap,le=new WeakMap,Wn=new WeakMap,Ve=new WeakMap,Yt=new WeakMap,vn=new WeakMap,Pt=new WeakMap,ct=new WeakMap,Zn=new WeakMap,Cn=new WeakMap,xn=new WeakMap,Jt=new WeakMap,_t=new WeakMap,Gt=new WeakMap,An=new WeakMap,fe=new WeakSet,Un=function(t){ce(this,fe,vo).call(this);let n=C(this,le).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(je)),n},ho=function(){ce(this,fe,yo).call(this);const t=nn(this.options.staleTime,C(this,le));if(Dt||C(this,Ve).isStale||!Zr(t))return;const r=Ao(C(this,Ve).dataUpdatedAt,t)+1;H(this,Jt,setTimeout(()=>{C(this,Ve).isStale||this.updateResult()},r))},go=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,le)):this.options.refetchInterval)??!1},mo=function(t){ce(this,fe,Io).call(this),H(this,Gt,t),!(Dt||qe(this.options.enabled,C(this,le))===!1||!Zr(C(this,Gt))||C(this,Gt)===0)&&H(this,_t,setInterval(()=>{(this.options.refetchIntervalInBackground||Qr.isFocused())&&ce(this,fe,Un).call(this)},C(this,Gt)))},bo=function(){ce(this,fe,ho).call(this),ce(this,fe,mo).call(this,ce(this,fe,go).call(this))},yo=function(){C(this,Jt)&&(clearTimeout(C(this,Jt)),H(this,Jt,void 0))},Io=function(){C(this,_t)&&(clearInterval(C(this,_t)),H(this,_t,void 0))},vo=function(){const t=C(this,Ne).getQueryCache().build(C(this,Ne),this.options);if(t===C(this,le))return;const n=C(this,le);H(this,le,t),H(this,Wn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ll=function(t){Ee.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ve))}),C(this,Ne).getQueryCache().notify({query:C(this,le),type:"observerResultsUpdated"})})},Ua);function kl(e,t){return qe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Do(e,t){return kl(e,t)||e.state.data!==void 0&&Kr(e,t,t.refetchOnMount)}function Kr(e,t,n){if(qe(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ei(e,t)}return!1}function No(e,t,n,r){return(e!==t||qe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ei(e,n)}function ei(e,t){return qe(t.enabled,e)!==!1&&e.isStaleByTime(nn(t.staleTime,e))}function Bl(e,t){return!Jr(e.getCurrentResult(),t)}var Mo=K.createContext(void 0),Ol=e=>{const t=K.useContext(Mo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tl=({client:e,children:t})=>(K.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(Mo.Provider,{value:e,children:t})),Lo=K.createContext(!1),Vl=()=>K.useContext(Lo);Lo.Provider;function Rl(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Dl=K.createContext(Rl()),Nl=()=>K.useContext(Dl);function Ml(e,t){return typeof e=="function"?e(...t):!!e}function Xo(){}var Ll=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Xl=e=>{K.useEffect(()=>{e.clearReset()},[e])},zl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Ml(n,[e.error,r]),Hl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Wl=(e,t)=>e.isLoading&&e.isFetching&&!t,Zl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,zo=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function jl(e,t,n){var c,d,f,p,b;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Ol(),i=Vl(),o=Nl(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",Hl(s),Ll(s,o),Xl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=K.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(K.useSyncExternalStore(K.useCallback(m=>{const I=i?Xo:a.subscribe(Ee.batchCalls(m));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),K.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Zl(s,l))throw zo(s,a,o);if(zl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Dt&&Wl(l,i)){const m=u?zo(s,a,o):(b=r.getQueryCache().get(s.queryHash))==null?void 0:b.promise;m==null||m.catch(Xo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Nt(e,t){return jl(e,Gl)}const Ho=O.createContext(void 0),ht=()=>{const e=O.useContext(Ho);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Yl=({children:e,client:t})=>{const n=new Pl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return D.jsx(Tl,{client:n,children:D.jsx(Ho.Provider,{value:t,children:e})})},ti=O.createContext(void 0),er=()=>{const e=O.useContext(ti);if(!e)throw new Error("Must be used inside provider");return e},Wo=({children:e,props:t})=>{const n=ht(),r=O.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=O.useState(0),[d,f]=O.useState(!1),[p,b]=O.useState({}),[m,I]=O.useState({});O.useEffect(()=>{I({})},[i]);const v=Y=>m[Y.name];let E=o||{};const[S,w]=O.useState(E),P=t.onUpdateConfiguredProps||w;t.onUpdateConfiguredProps||(E=S);const[A,T]=O.useState(),[k,V]=O.useState(),j={userId:u,componentId:a,configuredProps:E,dynamicPropsId:A==null?void 0:A.id},{isFetching:M}=Nt({queryKey:["dynamicProps"],queryFn:async()=>{const{dynamic_props:Y}=await n.componentReloadProps(j);return Y&&T(Y),V(void 0),[]},enabled:k!=null});let B=(A==null?void 0:A.configurable_props)||t.component.configurable_props||[];if(s!=null&&s.length){const Y=[];for(const X of B)s.findIndex(g=>X.name===g)>=0&&Y.push(X);B=Y}k!=null&&(B=B.slice(0,k+1));const ee=(Y,X)=>{const g=[];return X===void 0?Y.optional||g.push("required"):Y.type==="integer"?typeof X!="number"?g.push("not a number"):(Y.min!=null&&X<Y.min&&g.push("number too small"),Y.max!=null&&X>Y.max&&g.push("number too big")):Y.type==="boolean"?typeof X!="boolean"&&g.push("not a boolean"):Y.type==="string"?typeof X!="string"&&g.push("not a string"):Y.type,g},se=Y=>{let X;for(let g=0;g<B.length;g++){const re=B[g];if(re.hidden||re.optional&&!v(re))continue;if(Y[re.name]===void 0&&X==null&&(re.type==="app"||re.remoteOptions)){X=g;break}}c(X)},Z=Y=>{P(Y),se(Y);const X={};for(let g=0;g<B.length;g++){const re=B[g],U=Y[re.name],oe=ee(re,U);oe.length&&(X[re.name]=oe)}b(X)};O.useEffect(()=>{const Y={};for(const X of B){if(X.hidden||X.optional&&!v(X))continue;const g=E[X.name];g===void 0?"default"in X&&X.default!=null&&(Y[X.name]=X.default):X.type==="integer"&&typeof g!="number"?delete Y[X.name]:Y[X.name]=g}pl(Y,E)||Z(Y)},[B]);const[ne,de]=O.useState(u);O.useEffect(()=>{ne!==u&&(Z({}),de(u))},[u]);const he=(Y,X)=>{const g=B[Y],re={...E};X===void 0?delete re[g.name]:re[g.name]=X,P(re),g.reloadProps&&V(Y),(g.type==="app"||g.remoteOptions)&&se(re);const U=ee(g,X),oe={...p};U.length?oe[g.name]=U:delete oe[g.name],b(oe)},xe=(Y,X)=>{const g={...m};X?g[Y.name]=!0:delete g[Y.name];const re=B.findIndex(U=>U.name===Y.name);X?"default"in Y&&Y.default!=null&&he(re,Y.default):he(re,void 0),I(g)},y={id:r,isValid:!Object.keys(p).length,props:t,userId:u,component:i,configurableProps:B,configuredProps:E,dynamicProps:A,dynamicPropsQueryIsFetching:M,optionalPropIsEnabled:v,optionalPropSetEnabled:xe,queryDisabledIdx:l,setConfiguredProp:he,setSubmitting:f,submitting:d};return D.jsx(ti.Provider,{value:y,children:e})};function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function Jl(e,t){if(Mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zo(e){var t=Jl(e,"string");return Mt(t)=="symbol"?t:t+""}function kn(e,t,n){return(t=Zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jo(Object(n),!0).forEach(function(r){kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _l(e){if(Array.isArray(e))return e}function Ul(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ni(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yo(e,t){if(e){if(typeof e=="string")return ni(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ni(e,t):void 0}}function Ql(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ (function(L,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react/jsx-runtime"),require("react"),require("@emotion/react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","@emotion/react","react-dom"],D):(L=typeof globalThis<"u"?globalThis:L||self,D(L["connect-react"]={},L["react/jsx-runtime"],L.React,L["@emotion/react"],L.ReactDOM))})(this,function(L,D,O,W,Wr){"use strict";var al=L=>{throw TypeError(L)};var fo=(L,D,O)=>D.has(L)||al("Cannot "+O);var C=(L,D,O)=>(fo(L,D,"read from private field"),O?O.call(L):D.get(L)),$=(L,D,O)=>D.has(L)?al("Cannot add the same private member more than once"):D instanceof WeakSet?D.add(L):D.set(L,O),H=(L,D,O,W)=>(fo(L,D,"write to private field"),W?W.call(L,O):D.set(L,O),O),ce=(L,D,O)=>(fo(L,D,"access private method"),O);var Hr=(L,D,O,W)=>({set _(Wr){H(L,D,Wr,O)},get _(){return C(L,D,W)}});var Ht,At,dn,za,pn,St,fn,Ha,Wt,Wa,hn,gn,_e,Ge,zn,Zt,$e,vt,Za,ut,ja,at,Te,jt,lt,Rt,Ya,We,Hn,Ja,Ce,wt,Et,mn,bn,Ft,yn,In,_a,Ne,le,Wn,Ve,Yt,vn,Pt,ct,Zn,Cn,xn,Jt,_t,Gt,An,fe,Un,ho,go,mo,bo,yo,Io,vo,ll,Ua;function cl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const K=cl(O);typeof document>"u"&&(globalThis.document={createElement:()=>{}});function Co({prop:e}){return D.jsx("p",{className:`pd-alert-${e.alertType}`,children:e.content})}var tn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qn={exports:{}};Qn.exports,function(e,t){var n=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,u="[object Arguments]",a="[object Array]",l="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",b="[object GeneratorFunction]",m="[object Map]",I="[object Number]",v="[object Null]",E="[object Object]",S="[object Promise]",w="[object Proxy]",P="[object RegExp]",A="[object Set]",T="[object String]",k="[object Symbol]",V="[object Undefined]",j="[object WeakMap]",M="[object ArrayBuffer]",B="[object DataView]",ee="[object Float32Array]",se="[object Float64Array]",Z="[object Int8Array]",ne="[object Int16Array]",de="[object Int32Array]",he="[object Uint8Array]",xe="[object Uint8ClampedArray]",y="[object Uint16Array]",Y="[object Uint32Array]",X=/[\\^$.*+?()[\]{}|]/g,g=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,U={};U[ee]=U[se]=U[Z]=U[ne]=U[de]=U[he]=U[xe]=U[y]=U[Y]=!0,U[u]=U[a]=U[M]=U[c]=U[B]=U[d]=U[f]=U[p]=U[m]=U[I]=U[E]=U[P]=U[A]=U[T]=U[j]=!1;var oe=typeof tn=="object"&&tn&&tn.Object===Object&&tn,ke=typeof self=="object"&&self&&self.Object===Object&&self,ge=oe||ke||Function("return this")(),Me=t&&!t.nodeType&&t,Ke=Me&&!0&&e&&!e.nodeType&&e,dt=Ke&&Ke.exports===Me,kt=dt&&oe.process,Sn=function(){try{return kt&&kt.binding&&kt.binding("util")}catch{}}(),Ut=Sn&&Sn.isTypedArray;function wn(h,x){for(var G=-1,z=h==null?0:h.length,ye=0,ie=[];++G<z;){var Ae=h[G];x(Ae,G,h)&&(ie[ye++]=Ae)}return ie}function Or(h,x){for(var G=-1,z=x.length,ye=h.length;++G<z;)h[ye+G]=x[G];return h}function Tr(h,x){for(var G=-1,z=h==null?0:h.length;++G<z;)if(x(h[G],G,h))return!0;return!1}function eo(h,x){for(var G=-1,z=Array(h);++G<h;)z[G]=x(G);return z}function Vr(h){return function(x){return h(x)}}function Rr(h,x){return h.has(x)}function to(h,x){return h==null?void 0:h[x]}function no(h){var x=-1,G=Array(h.size);return h.forEach(function(z,ye){G[++x]=[ye,z]}),G}function ro(h,x){return function(G){return h(x(G))}}function io(h){var x=-1,G=Array(h.size);return h.forEach(function(z){G[++x]=z}),G}var oo=Array.prototype,F=Function.prototype,N=Object.prototype,q=ge["__core-js_shared__"],ue=F.toString,ae=N.hasOwnProperty,Le=function(){var h=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),pt=N.toString,et=RegExp("^"+ue.call(ae).replace(X,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=dt?ge.Buffer:void 0,ft=ge.Symbol,Be=ge.Uint8Array,bt=N.propertyIsEnumerable,tt=oo.splice,Qt=ft?ft.toStringTag:void 0,Qa=Object.getOwnPropertySymbols,yb=Bt?Bt.isBuffer:void 0,Ib=ro(Object.keys,Object),so=En(ge,"DataView"),jn=En(ge,"Map"),uo=En(ge,"Promise"),ao=En(ge,"Set"),lo=En(ge,"WeakMap"),Yn=En(Object,"create"),vb=Kt(so),Cb=Kt(jn),xb=Kt(uo),Ab=Kt(ao),Sb=Kt(lo),qa=ft?ft.prototype:void 0,co=qa?qa.valueOf:void 0;function qt(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var z=h[x];this.set(z[0],z[1])}}function wb(){this.__data__=Yn?Yn(null):{},this.size=0}function Eb(h){var x=this.has(h)&&delete this.__data__[h];return this.size-=x?1:0,x}function Fb(h){var x=this.__data__;if(Yn){var G=x[h];return G===r?void 0:G}return ae.call(x,h)?x[h]:void 0}function Pb(h){var x=this.__data__;return Yn?x[h]!==void 0:ae.call(x,h)}function Gb(h,x){var G=this.__data__;return this.size+=this.has(h)?0:1,G[h]=Yn&&x===void 0?r:x,this}qt.prototype.clear=wb,qt.prototype.delete=Eb,qt.prototype.get=Fb,qt.prototype.has=Pb,qt.prototype.set=Gb;function yt(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var z=h[x];this.set(z[0],z[1])}}function kb(){this.__data__=[],this.size=0}function Bb(h){var x=this.__data__,G=Nr(x,h);if(G<0)return!1;var z=x.length-1;return G==z?x.pop():tt.call(x,G,1),--this.size,!0}function Ob(h){var x=this.__data__,G=Nr(x,h);return G<0?void 0:x[G][1]}function Tb(h){return Nr(this.__data__,h)>-1}function Vb(h,x){var G=this.__data__,z=Nr(G,h);return z<0?(++this.size,G.push([h,x])):G[z][1]=x,this}yt.prototype.clear=kb,yt.prototype.delete=Bb,yt.prototype.get=Ob,yt.prototype.has=Tb,yt.prototype.set=Vb;function $t(h){var x=-1,G=h==null?0:h.length;for(this.clear();++x<G;){var z=h[x];this.set(z[0],z[1])}}function Rb(){this.size=0,this.__data__={hash:new qt,map:new(jn||yt),string:new qt}}function Db(h){var x=Mr(this,h).delete(h);return this.size-=x?1:0,x}function Nb(h){return Mr(this,h).get(h)}function Mb(h){return Mr(this,h).has(h)}function Lb(h,x){var G=Mr(this,h),z=G.size;return G.set(h,x),this.size+=G.size==z?0:1,this}$t.prototype.clear=Rb,$t.prototype.delete=Db,$t.prototype.get=Nb,$t.prototype.has=Mb,$t.prototype.set=Lb;function Dr(h){var x=-1,G=h==null?0:h.length;for(this.__data__=new $t;++x<G;)this.add(h[x])}function Xb(h){return this.__data__.set(h,r),this}function zb(h){return this.__data__.has(h)}Dr.prototype.add=Dr.prototype.push=Xb,Dr.prototype.has=zb;function Ot(h){var x=this.__data__=new yt(h);this.size=x.size}function Hb(){this.__data__=new yt,this.size=0}function Wb(h){var x=this.__data__,G=x.delete(h);return this.size=x.size,G}function Zb(h){return this.__data__.get(h)}function jb(h){return this.__data__.has(h)}function Yb(h,x){var G=this.__data__;if(G instanceof yt){var z=G.__data__;if(!jn||z.length<n-1)return z.push([h,x]),this.size=++G.size,this;G=this.__data__=new $t(z)}return G.set(h,x),this.size=G.size,this}Ot.prototype.clear=Hb,Ot.prototype.delete=Wb,Ot.prototype.get=Zb,Ot.prototype.has=jb,Ot.prototype.set=Yb;function Jb(h,x){var G=Lr(h),z=!G&&ay(h),ye=!G&&!z&&po(h),ie=!G&&!z&&!ye&&sl(h),Ae=G||z||ye||ie,we=Ae?eo(h.length,String):[],Fe=we.length;for(var Ie in h)ae.call(h,Ie)&&!(Ae&&(Ie=="length"||ye&&(Ie=="offset"||Ie=="parent")||ie&&(Ie=="buffer"||Ie=="byteLength"||Ie=="byteOffset")||ry(Ie,Fe)))&&we.push(Ie);return we}function Nr(h,x){for(var G=h.length;G--;)if(nl(h[G][0],x))return G;return-1}function _b(h,x,G){var z=x(h);return Lr(h)?z:Or(z,G(h))}function Jn(h){return h==null?h===void 0?V:v:Qt&&Qt in Object(h)?ty(h):uy(h)}function $a(h){return _n(h)&&Jn(h)==u}function Ka(h,x,G,z,ye){return h===x?!0:h==null||x==null||!_n(h)&&!_n(x)?h!==h&&x!==x:Ub(h,x,G,z,Ka,ye)}function Ub(h,x,G,z,ye,ie){var Ae=Lr(h),we=Lr(x),Fe=Ae?a:Tt(h),Ie=we?a:Tt(x);Fe=Fe==u?E:Fe,Ie=Ie==u?E:Ie;var Ze=Fe==E,nt=Ie==E,Oe=Fe==Ie;if(Oe&&po(h)){if(!po(x))return!1;Ae=!0,Ze=!1}if(Oe&&!Ze)return ie||(ie=new Ot),Ae||sl(h)?el(h,x,G,z,ye,ie):Kb(h,x,Fe,G,z,ye,ie);if(!(G&i)){var Ue=Ze&&ae.call(h,"__wrapped__"),Qe=nt&&ae.call(x,"__wrapped__");if(Ue||Qe){var Vt=Ue?h.value():h,It=Qe?x.value():x;return ie||(ie=new Ot),ye(Vt,It,G,z,ie)}}return Oe?(ie||(ie=new Ot),ey(h,x,G,z,ye,ie)):!1}function Qb(h){if(!ol(h)||oy(h))return!1;var x=rl(h)?et:g;return x.test(Kt(h))}function qb(h){return _n(h)&&il(h.length)&&!!U[Jn(h)]}function $b(h){if(!sy(h))return Ib(h);var x=[];for(var G in Object(h))ae.call(h,G)&&G!="constructor"&&x.push(G);return x}function el(h,x,G,z,ye,ie){var Ae=G&i,we=h.length,Fe=x.length;if(we!=Fe&&!(Ae&&Fe>we))return!1;var Ie=ie.get(h);if(Ie&&ie.get(x))return Ie==x;var Ze=-1,nt=!0,Oe=G&o?new Dr:void 0;for(ie.set(h,x),ie.set(x,h);++Ze<we;){var Ue=h[Ze],Qe=x[Ze];if(z)var Vt=Ae?z(Qe,Ue,Ze,x,h,ie):z(Ue,Qe,Ze,h,x,ie);if(Vt!==void 0){if(Vt)continue;nt=!1;break}if(Oe){if(!Tr(x,function(It,en){if(!Rr(Oe,en)&&(Ue===It||ye(Ue,It,G,z,ie)))return Oe.push(en)})){nt=!1;break}}else if(!(Ue===Qe||ye(Ue,Qe,G,z,ie))){nt=!1;break}}return ie.delete(h),ie.delete(x),nt}function Kb(h,x,G,z,ye,ie,Ae){switch(G){case B:if(h.byteLength!=x.byteLength||h.byteOffset!=x.byteOffset)return!1;h=h.buffer,x=x.buffer;case M:return!(h.byteLength!=x.byteLength||!ie(new Be(h),new Be(x)));case c:case d:case I:return nl(+h,+x);case f:return h.name==x.name&&h.message==x.message;case P:case T:return h==x+"";case m:var we=no;case A:var Fe=z&i;if(we||(we=io),h.size!=x.size&&!Fe)return!1;var Ie=Ae.get(h);if(Ie)return Ie==x;z|=o,Ae.set(h,x);var Ze=el(we(h),we(x),z,ye,ie,Ae);return Ae.delete(h),Ze;case k:if(co)return co.call(h)==co.call(x)}return!1}function ey(h,x,G,z,ye,ie){var Ae=G&i,we=tl(h),Fe=we.length,Ie=tl(x),Ze=Ie.length;if(Fe!=Ze&&!Ae)return!1;for(var nt=Fe;nt--;){var Oe=we[nt];if(!(Ae?Oe in x:ae.call(x,Oe)))return!1}var Ue=ie.get(h);if(Ue&&ie.get(x))return Ue==x;var Qe=!0;ie.set(h,x),ie.set(x,h);for(var Vt=Ae;++nt<Fe;){Oe=we[nt];var It=h[Oe],en=x[Oe];if(z)var ul=Ae?z(en,It,Oe,x,h,ie):z(It,en,Oe,h,x,ie);if(!(ul===void 0?It===en||ye(It,en,G,z,ie):ul)){Qe=!1;break}Vt||(Vt=Oe=="constructor")}if(Qe&&!Vt){var Xr=h.constructor,zr=x.constructor;Xr!=zr&&"constructor"in h&&"constructor"in x&&!(typeof Xr=="function"&&Xr instanceof Xr&&typeof zr=="function"&&zr instanceof zr)&&(Qe=!1)}return ie.delete(h),ie.delete(x),Qe}function tl(h){return _b(h,dy,ny)}function Mr(h,x){var G=h.__data__;return iy(x)?G[typeof x=="string"?"string":"hash"]:G.map}function En(h,x){var G=to(h,x);return Qb(G)?G:void 0}function ty(h){var x=ae.call(h,Qt),G=h[Qt];try{h[Qt]=void 0;var z=!0}catch{}var ye=pt.call(h);return z&&(x?h[Qt]=G:delete h[Qt]),ye}var ny=Qa?function(h){return h==null?[]:(h=Object(h),wn(Qa(h),function(x){return bt.call(h,x)}))}:py,Tt=Jn;(so&&Tt(new so(new ArrayBuffer(1)))!=B||jn&&Tt(new jn)!=m||uo&&Tt(uo.resolve())!=S||ao&&Tt(new ao)!=A||lo&&Tt(new lo)!=j)&&(Tt=function(h){var x=Jn(h),G=x==E?h.constructor:void 0,z=G?Kt(G):"";if(z)switch(z){case vb:return B;case Cb:return m;case xb:return S;case Ab:return A;case Sb:return j}return x});function ry(h,x){return x=x??s,!!x&&(typeof h=="number"||re.test(h))&&h>-1&&h%1==0&&h<x}function iy(h){var x=typeof h;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?h!=="__proto__":h===null}function oy(h){return!!Le&&Le in h}function sy(h){var x=h&&h.constructor,G=typeof x=="function"&&x.prototype||N;return h===G}function uy(h){return pt.call(h)}function Kt(h){if(h!=null){try{return ue.call(h)}catch{}try{return h+""}catch{}}return""}function nl(h,x){return h===x||h!==h&&x!==x}var ay=$a(function(){return arguments}())?$a:function(h){return _n(h)&&ae.call(h,"callee")&&!bt.call(h,"callee")},Lr=Array.isArray;function ly(h){return h!=null&&il(h.length)&&!rl(h)}var po=yb||fy;function cy(h,x){return Ka(h,x)}function rl(h){if(!ol(h))return!1;var x=Jn(h);return x==p||x==b||x==l||x==w}function il(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function ol(h){var x=typeof h;return h!=null&&(x=="object"||x=="function")}function _n(h){return h!=null&&typeof h=="object"}var sl=Ut?Vr(Ut):qb;function dy(h){return ly(h)?Jb(h):$b(h)}function py(){return[]}function fy(){return!1}e.exports=cy}(Qn,Qn.exports);var dl=Qn.exports;const pl=xo(dl);var Fn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Dt=typeof window>"u"||"Deno"in globalThis;function je(){}function fl(e,t){return typeof e=="function"?e(t):e}function Zr(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ao(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nn(e,t){return typeof e=="function"?e(t):e}function qe(e,t){return typeof e=="function"?e(t):e}function So(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:u}=e;if(s){if(r){if(t.queryHash!==jr(s,t.options))return!1}else if(!Gn(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||i&&i!==t.state.fetchStatus||o&&!o(t))}function wo(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Pn(t.options.mutationKey)!==Pn(o))return!1}else if(!Gn(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function jr(e,t){return((t==null?void 0:t.queryKeyHashFn)||Pn)(e)}function Pn(e){return JSON.stringify(e,(t,n)=>_r(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Gn(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Gn(e[n],t[n])):!1}function Yr(e,t){if(e===t)return e;const n=Eo(e)&&Eo(t);if(n||_r(e)&&_r(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),s=o.length,u=n?[]:{};let a=0;for(let l=0;l<s;l++){const c=n?l:o[l];(!n&&r.includes(c)||n)&&e[c]===void 0&&t[c]===void 0?(u[c]=void 0,a++):(u[c]=Yr(e[c],t[c]),u[c]===e[c]&&e[c]!==void 0&&a++)}return i===s&&a===i?e:u}return t}function Jr(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Eo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _r(e){if(!Fo(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Fo(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fo(e){return Object.prototype.toString.call(e)==="[object Object]"}function hl(e){return new Promise(t=>{setTimeout(t,e)})}function Ur(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){if(process.env.NODE_ENV!=="production")try{return Yr(e,t)}catch(r){console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`)}return Yr(e,t)}return t}function gl(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ml(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var qn=Symbol();function Po(e,t){return process.env.NODE_ENV!=="production"&&e.queryFn===qn&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===qn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var bl=(za=class extends Fn{constructor(){super();$(this,Ht);$(this,At);$(this,dn);H(this,dn,t=>{if(!Dt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,At)||this.setEventListener(C(this,dn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,At))==null||t.call(this),H(this,At,void 0))}setEventListener(t){var n;H(this,dn,t),(n=C(this,At))==null||n.call(this),H(this,At,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Ht)!==t&&(H(this,Ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Ht)=="boolean"?C(this,Ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ht=new WeakMap,At=new WeakMap,dn=new WeakMap,za),Qr=new bl,yl=(Ha=class extends Fn{constructor(){super();$(this,pn,!0);$(this,St);$(this,fn);H(this,fn,t=>{if(!Dt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,St)||this.setEventListener(C(this,fn))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,St))==null||t.call(this),H(this,St,void 0))}setEventListener(t){var n;H(this,fn,t),(n=C(this,St))==null||n.call(this),H(this,St,t(this.setOnline.bind(this)))}setOnline(t){C(this,pn)!==t&&(H(this,pn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,pn)}},pn=new WeakMap,St=new WeakMap,fn=new WeakMap,Ha),$n=new yl;function qr(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function Il(e){return Math.min(1e3*2**e,3e4)}function Go(e){return(e??"online")==="online"?$n.isOnline():!0}var ko=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function $r(e){return e instanceof ko}function Bo(e){let t=!1,n=0,r=!1,i;const o=qr(),s=m=>{var I;r||(f(new ko(m)),(I=e.abort)==null||I.call(e))},u=()=>{t=!0},a=()=>{t=!1},l=()=>Qr.isFocused()&&(e.networkMode==="always"||$n.isOnline())&&e.canRun(),c=()=>Go(e.networkMode)&&e.canRun(),d=m=>{var I;r||(r=!0,(I=e.onSuccess)==null||I.call(e,m),i==null||i(),o.resolve(m))},f=m=>{var I;r||(r=!0,(I=e.onError)==null||I.call(e,m),i==null||i(),o.reject(m))},p=()=>new Promise(m=>{var I;i=v=>{(r||l())&&m(v)},(I=e.onPause)==null||I.call(e)}).then(()=>{var m;i=void 0,r||(m=e.onContinue)==null||m.call(e)}),b=()=>{if(r)return;let m;const I=n===0?e.initialPromise:void 0;try{m=I??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(d).catch(v=>{var A;if(r)return;const E=e.retry??(Dt?0:3),S=e.retryDelay??Il,w=typeof S=="function"?S(n,v):S,P=E===!0||typeof E=="number"&&n<E||typeof E=="function"&&E(n,v);if(t||!P){f(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),hl(w).then(()=>l()?void 0:p()).then(()=>{t?f(v):b()})})};return{promise:o,cancel:s,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:a,canStart:c,start:()=>(c()?b():p().then(b),o)}}function vl(){let e=[],t=0,n=u=>{u()},r=u=>{u()},i=u=>setTimeout(u,0);const o=u=>{t?e.push(u):i(()=>{n(u)})},s=()=>{const u=e;e=[],u.length&&i(()=>{r(()=>{u.forEach(a=>{n(a)})})})};return{batch:u=>{let a;t++;try{a=u()}finally{t--,t||s()}return a},batchCalls:u=>(...a)=>{o(()=>{u(...a)})},schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{i=u}}}var Ee=vl(),Oo=(Wa=class{constructor(){$(this,Wt)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zr(this.gcTime)&&H(this,Wt,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Dt?1/0:5*60*1e3))}clearGcTimeout(){C(this,Wt)&&(clearTimeout(C(this,Wt)),H(this,Wt,void 0))}},Wt=new WeakMap,Wa),Cl=(Za=class extends Oo{constructor(t){super();$(this,$e);$(this,hn);$(this,gn);$(this,_e);$(this,Ge);$(this,zn);$(this,Zt);H(this,Zt,!1),H(this,zn,t.defaultOptions),this.setOptions(t.options),this.observers=[],H(this,_e,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,H(this,hn,xl(this.options)),this.state=t.state??C(this,hn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ge))==null?void 0:t.promise}setOptions(t){this.options={...C(this,zn),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,_e).remove(this)}setData(t,n){const r=Ur(this.state.data,t,this.options);return ce(this,$e,vt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ce(this,$e,vt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=C(this,Ge))==null?void 0:r.promise;return(i=C(this,Ge))==null||i.cancel(t),n?n.then(je).catch(je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,hn))}isActive(){return this.observers.some(t=>qe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Ao(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ge))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ge))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,_e).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Ge)&&(C(this,Zt)?C(this,Ge).cancel({revert:!0}):C(this,Ge).cancelRetry()),this.scheduleGc()),C(this,_e).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,$e,vt).call(this,{type:"invalidate"})}fetch(t,n){var a,l,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Ge))return C(this,Ge).continueRetry(),C(this,Ge).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(H(this,Zt,!0),r.signal)})},o=()=>{const d=Po(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),H(this,Zt,!1),this.options.persister?this.options.persister(d,f,this):d(f)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(s),(a=this.options.behavior)==null||a.onFetch(s,this),H(this,gn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=s.fetchOptions)==null?void 0:l.meta))&&ce(this,$e,vt).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta});const u=d=>{var f,p,b,m;$r(d)&&d.silent||ce(this,$e,vt).call(this,{type:"error",error:d}),$r(d)||((p=(f=C(this,_e).config).onError)==null||p.call(f,d,this),(m=(b=C(this,_e).config).onSettled)==null||m.call(b,this.state.data,d,this)),this.scheduleGc()};return H(this,Ge,Bo({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,p,b,m;if(d===void 0){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),u(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(I){u(I);return}(p=(f=C(this,_e).config).onSuccess)==null||p.call(f,d,this),(m=(b=C(this,_e).config).onSettled)==null||m.call(b,d,this.state.error,this),this.scheduleGc()},onError:u,onFail:(d,f)=>{ce(this,$e,vt).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{ce(this,$e,vt).call(this,{type:"pause"})},onContinue:()=>{ce(this,$e,vt).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),C(this,Ge).start()}},hn=new WeakMap,gn=new WeakMap,_e=new WeakMap,Ge=new WeakMap,zn=new WeakMap,Zt=new WeakMap,$e=new WeakSet,vt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...To(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return $r(i)&&i.revert&&C(this,gn)?{...C(this,gn),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ee.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,_e).notify({query:this,type:"updated",action:t})})},Za);function To(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Go(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function xl(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Al=(ja=class extends Fn{constructor(t={}){super();$(this,ut);this.config=t,H(this,ut,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??jr(i,n);let s=this.get(o);return s||(s=new Cl({cache:this,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){C(this,ut).has(t.queryHash)||(C(this,ut).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,ut).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,ut).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ee.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,ut).get(t)}getAll(){return[...C(this,ut).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>So(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>So(t,r)):n}notify(t){Ee.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ee.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ee.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ut=new WeakMap,ja),Sl=(Ya=class extends Oo{constructor(t){super();$(this,lt);$(this,at);$(this,Te);$(this,jt);this.mutationId=t.mutationId,H(this,Te,t.mutationCache),H(this,at,[]),this.state=t.state||wl(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,at).includes(t)||(C(this,at).push(t),this.clearGcTimeout(),C(this,Te).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){H(this,at,C(this,at).filter(n=>n!==t)),this.scheduleGc(),C(this,Te).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,at).length||(this.state.status==="pending"?this.scheduleGc():C(this,Te).remove(this))}continue(){var t;return((t=C(this,jt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,o,s,u,a,l,c,d,f,p,b,m,I,v,E,S,w,P,A,T;H(this,jt,Bo({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(k,V)=>{ce(this,lt,Rt).call(this,{type:"failed",failureCount:k,error:V})},onPause:()=>{ce(this,lt,Rt).call(this,{type:"pause"})},onContinue:()=>{ce(this,lt,Rt).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Te).canRun(this)}));const n=this.state.status==="pending",r=!C(this,jt).canStart();try{if(!n){ce(this,lt,Rt).call(this,{type:"pending",variables:t,isPaused:r}),await((o=(i=C(this,Te).config).onMutate)==null?void 0:o.call(i,t,this));const V=await((u=(s=this.options).onMutate)==null?void 0:u.call(s,t));V!==this.state.context&&ce(this,lt,Rt).call(this,{type:"pending",context:V,variables:t,isPaused:r})}const k=await C(this,jt).start();return await((l=(a=C(this,Te).config).onSuccess)==null?void 0:l.call(a,k,t,this.state.context,this)),await((d=(c=this.options).onSuccess)==null?void 0:d.call(c,k,t,this.state.context)),await((p=(f=C(this,Te).config).onSettled)==null?void 0:p.call(f,k,null,this.state.variables,this.state.context,this)),await((m=(b=this.options).onSettled)==null?void 0:m.call(b,k,null,t,this.state.context)),ce(this,lt,Rt).call(this,{type:"success",data:k}),k}catch(k){try{throw await((v=(I=C(this,Te).config).onError)==null?void 0:v.call(I,k,t,this.state.context,this)),await((S=(E=this.options).onError)==null?void 0:S.call(E,k,t,this.state.context)),await((P=(w=C(this,Te).config).onSettled)==null?void 0:P.call(w,void 0,k,this.state.variables,this.state.context,this)),await((T=(A=this.options).onSettled)==null?void 0:T.call(A,void 0,k,t,this.state.context)),k}finally{ce(this,lt,Rt).call(this,{type:"error",error:k})}}finally{C(this,Te).runNext(this)}}},at=new WeakMap,Te=new WeakMap,jt=new WeakMap,lt=new WeakSet,Rt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ee.batch(()=>{C(this,at).forEach(r=>{r.onMutationUpdate(t)}),C(this,Te).notify({mutation:this,type:"updated",action:t})})},Ya);function wl(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var El=(Ja=class extends Fn{constructor(t={}){super();$(this,We);$(this,Hn);this.config=t,H(this,We,new Map),H(this,Hn,Date.now())}build(t,n,r){const i=new Sl({mutationCache:this,mutationId:++Hr(this,Hn)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Kn(t),r=C(this,We).get(n)??[];r.push(t),C(this,We).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Kn(t);if(C(this,We).has(n)){const i=(r=C(this,We).get(n))==null?void 0:r.filter(o=>o!==t);i&&(i.length===0?C(this,We).delete(n):C(this,We).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=C(this,We).get(Kn(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=C(this,We).get(Kn(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ee.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...C(this,We).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wo(n,r))}findAll(t={}){return this.getAll().filter(n=>wo(t,n))}notify(t){Ee.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ee.batch(()=>Promise.all(t.map(n=>n.continue().catch(je))))}},We=new WeakMap,Hn=new WeakMap,Ja);function Kn(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Vo(e){return{onFetch:(t,n)=>{var c,d,f,p,b;const r=t.options,i=(f=(d=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,o=((p=t.state.data)==null?void 0:p.pages)||[],s=((b=t.state.data)==null?void 0:b.pageParams)||[];let u={pages:[],pageParams:[]},a=0;const l=async()=>{let m=!1;const I=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=Po(t.options,t.fetchOptions),E=async(S,w,P)=>{if(m)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const A={queryKey:t.queryKey,pageParam:w,direction:P?"backward":"forward",meta:t.options.meta};I(A);const T=await v(A),{maxPages:k}=t.options,V=P?ml:gl;return{pages:V(S.pages,T,k),pageParams:V(S.pageParams,w,k)}};if(i&&o.length){const S=i==="backward",w=S?Fl:Ro,P={pages:o,pageParams:s},A=w(r,P);u=await E(P,A,S)}else{const S=e??o.length;do{const w=a===0?s[0]??r.initialPageParam:Ro(r,u);if(a>0&&w==null)break;u=await E(u,w),a++}while(a<S)}return u};t.options.persister?t.fetchFn=()=>{var m,I;return(I=(m=t.options).persister)==null?void 0:I.call(m,l,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Ro(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Fl(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Pl=(_a=class{constructor(e={}){$(this,Ce);$(this,wt);$(this,Et);$(this,mn);$(this,bn);$(this,Ft);$(this,yn);$(this,In);H(this,Ce,e.queryCache||new Al),H(this,wt,e.mutationCache||new El),H(this,Et,e.defaultOptions||{}),H(this,mn,new Map),H(this,bn,new Map),H(this,Ft,0)}mount(){Hr(this,Ft)._++,C(this,Ft)===1&&(H(this,yn,Qr.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ce).onFocus())})),H(this,In,$n.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ce).onOnline())})))}unmount(){var e,t;Hr(this,Ft)._--,C(this,Ft)===0&&((e=C(this,yn))==null||e.call(this),H(this,yn,void 0),(t=C(this,In))==null||t.call(this),H(this,In,void 0))}isFetching(e){return C(this,Ce).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,wt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ce).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=C(this,Ce).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(nn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return C(this,Ce).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=C(this,Ce).get(r.queryHash),o=i==null?void 0:i.state.data,s=fl(t,o);if(s!==void 0)return C(this,Ce).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Ee.batch(()=>C(this,Ce).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ce).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Ce);Ee.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Ce),r={type:"active",...e};return Ee.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ee.batch(()=>C(this,Ce).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(je).catch(je)}invalidateQueries(e={},t={}){return Ee.batch(()=>{if(C(this,Ce).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ee.batch(()=>C(this,Ce).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(je)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(je)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Ce).build(this,t);return n.isStaleByTime(nn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(je).catch(je)}fetchInfiniteQuery(e){return e.behavior=Vo(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(je).catch(je)}ensureInfiniteQueryData(e){return e.behavior=Vo(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return $n.isOnline()?C(this,wt).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Ce)}getMutationCache(){return C(this,wt)}getDefaultOptions(){return C(this,Et)}setDefaultOptions(e){H(this,Et,e)}setQueryDefaults(e,t){C(this,mn).set(Pn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,mn).values()];let n={};return t.forEach(r=>{Gn(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){C(this,bn).set(Pn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,bn).values()];let n={};return t.forEach(r=>{Gn(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Et).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=jr(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===qn&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Et).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Ce).clear(),C(this,wt).clear()}},Ce=new WeakMap,wt=new WeakMap,Et=new WeakMap,mn=new WeakMap,bn=new WeakMap,Ft=new WeakMap,yn=new WeakMap,In=new WeakMap,_a),Gl=(Ua=class extends Fn{constructor(t,n){super();$(this,fe);$(this,Ne);$(this,le);$(this,Wn);$(this,Ve);$(this,Yt);$(this,vn);$(this,Pt);$(this,ct);$(this,Zn);$(this,Cn);$(this,xn);$(this,Jt);$(this,_t);$(this,Gt);$(this,An,new Set);this.options=n,H(this,Ne,t),H(this,ct,null),H(this,Pt,qr()),this.options.experimental_prefetchInRender||C(this,Pt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,le).addObserver(this),Do(C(this,le),this.options)?ce(this,fe,Un).call(this):this.updateResult(),ce(this,fe,bo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kr(C(this,le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kr(C(this,le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,fe,yo).call(this),ce(this,fe,Io).call(this),C(this,le).removeObserver(this)}setOptions(t,n){const r=this.options,i=C(this,le);if(this.options=C(this,Ne).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof qe(this.options.enabled,C(this,le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,fe,vo).call(this),C(this,le).setOptions(this.options),r._defaulted&&!Jr(this.options,r)&&C(this,Ne).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,le),observer:this});const o=this.hasListeners();o&&No(C(this,le),i,this.options,r)&&ce(this,fe,Un).call(this),this.updateResult(n),o&&(C(this,le)!==i||qe(this.options.enabled,C(this,le))!==qe(r.enabled,C(this,le))||nn(this.options.staleTime,C(this,le))!==nn(r.staleTime,C(this,le)))&&ce(this,fe,ho).call(this);const s=ce(this,fe,go).call(this);o&&(C(this,le)!==i||qe(this.options.enabled,C(this,le))!==qe(r.enabled,C(this,le))||s!==C(this,Gt))&&ce(this,fe,mo).call(this,s)}getOptimisticResult(t){const n=C(this,Ne).getQueryCache().build(C(this,Ne),t),r=this.createResult(n,t);return Bl(this,r)&&(H(this,Ve,r),H(this,vn,this.options),H(this,Yt,C(this,le).state)),r}getCurrentResult(){return C(this,Ve)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){C(this,An).add(t)}getCurrentQuery(){return C(this,le)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,Ne).defaultQueryOptions(t),r=C(this,Ne).getQueryCache().build(C(this,Ne),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ce(this,fe,Un).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Ve)))}createResult(t,n){var k;const r=C(this,le),i=this.options,o=C(this,Ve),s=C(this,Yt),u=C(this,vn),l=t!==r?t.state:C(this,Wn),{state:c}=t;let d={...c},f=!1,p;if(n._optimisticResults){const V=this.hasListeners(),j=!V&&Do(t,n),M=V&&No(t,r,n,i);(j||M)&&(d={...d,...To(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:b,errorUpdatedAt:m,status:I}=d;if(n.select&&d.data!==void 0)if(o&&d.data===(s==null?void 0:s.data)&&n.select===C(this,Zn))p=C(this,Cn);else try{H(this,Zn,n.select),p=n.select(d.data),p=Ur(o==null?void 0:o.data,p,n),H(this,Cn,p),H(this,ct,null)}catch(V){H(this,ct,V)}else p=d.data;if(n.placeholderData!==void 0&&p===void 0&&I==="pending"){let V;if(o!=null&&o.isPlaceholderData&&n.placeholderData===(u==null?void 0:u.placeholderData))V=o.data;else if(V=typeof n.placeholderData=="function"?n.placeholderData((k=C(this,xn))==null?void 0:k.state.data,C(this,xn)):n.placeholderData,n.select&&V!==void 0)try{V=n.select(V),H(this,ct,null)}catch(j){H(this,ct,j)}V!==void 0&&(I="success",p=Ur(o==null?void 0:o.data,V,n),f=!0)}C(this,ct)&&(b=C(this,ct),p=C(this,Cn),m=Date.now(),I="error");const v=d.fetchStatus==="fetching",E=I==="pending",S=I==="error",w=E&&v,P=p!==void 0,T={status:I,fetchStatus:d.fetchStatus,isPending:E,isSuccess:I==="success",isError:S,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:d.dataUpdatedAt,error:b,errorUpdatedAt:m,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!E,isLoadingError:S&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:S&&P,isStale:ei(t,n),refetch:this.refetch,promise:C(this,Pt)};if(this.options.experimental_prefetchInRender){const V=B=>{T.status==="error"?B.reject(T.error):T.data!==void 0&&B.resolve(T.data)},j=()=>{const B=H(this,Pt,T.promise=qr());V(B)},M=C(this,Pt);switch(M.status){case"pending":t.queryHash===r.queryHash&&V(M);break;case"fulfilled":(T.status==="error"||T.data!==M.value)&&j();break;case"rejected":(T.status!=="error"||T.error!==M.reason)&&j();break}}return T}updateResult(t){const n=C(this,Ve),r=this.createResult(C(this,le),this.options);if(H(this,Yt,C(this,le).state),H(this,vn,this.options),C(this,Yt).data!==void 0&&H(this,xn,C(this,le)),Jr(r,n))return;H(this,Ve,r);const i={},o=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!C(this,An).size)return!0;const a=new Set(u??C(this,An));return this.options.throwOnError&&a.add("error"),Object.keys(C(this,Ve)).some(l=>{const c=l;return C(this,Ve)[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&o()&&(i.listeners=!0),ce(this,fe,ll).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,fe,bo).call(this)}},Ne=new WeakMap,le=new WeakMap,Wn=new WeakMap,Ve=new WeakMap,Yt=new WeakMap,vn=new WeakMap,Pt=new WeakMap,ct=new WeakMap,Zn=new WeakMap,Cn=new WeakMap,xn=new WeakMap,Jt=new WeakMap,_t=new WeakMap,Gt=new WeakMap,An=new WeakMap,fe=new WeakSet,Un=function(t){ce(this,fe,vo).call(this);let n=C(this,le).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(je)),n},ho=function(){ce(this,fe,yo).call(this);const t=nn(this.options.staleTime,C(this,le));if(Dt||C(this,Ve).isStale||!Zr(t))return;const r=Ao(C(this,Ve).dataUpdatedAt,t)+1;H(this,Jt,setTimeout(()=>{C(this,Ve).isStale||this.updateResult()},r))},go=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,le)):this.options.refetchInterval)??!1},mo=function(t){ce(this,fe,Io).call(this),H(this,Gt,t),!(Dt||qe(this.options.enabled,C(this,le))===!1||!Zr(C(this,Gt))||C(this,Gt)===0)&&H(this,_t,setInterval(()=>{(this.options.refetchIntervalInBackground||Qr.isFocused())&&ce(this,fe,Un).call(this)},C(this,Gt)))},bo=function(){ce(this,fe,ho).call(this),ce(this,fe,mo).call(this,ce(this,fe,go).call(this))},yo=function(){C(this,Jt)&&(clearTimeout(C(this,Jt)),H(this,Jt,void 0))},Io=function(){C(this,_t)&&(clearInterval(C(this,_t)),H(this,_t,void 0))},vo=function(){const t=C(this,Ne).getQueryCache().build(C(this,Ne),this.options);if(t===C(this,le))return;const n=C(this,le);H(this,le,t),H(this,Wn,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ll=function(t){Ee.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Ve))}),C(this,Ne).getQueryCache().notify({query:C(this,le),type:"observerResultsUpdated"})})},Ua);function kl(e,t){return qe(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Do(e,t){return kl(e,t)||e.state.data!==void 0&&Kr(e,t,t.refetchOnMount)}function Kr(e,t,n){if(qe(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&ei(e,t)}return!1}function No(e,t,n,r){return(e!==t||qe(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&ei(e,n)}function ei(e,t){return qe(t.enabled,e)!==!1&&e.isStaleByTime(nn(t.staleTime,e))}function Bl(e,t){return!Jr(e.getCurrentResult(),t)}var Mo=K.createContext(void 0),Ol=e=>{const t=K.useContext(Mo);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tl=({client:e,children:t})=>(K.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),D.jsx(Mo.Provider,{value:e,children:t})),Lo=K.createContext(!1),Vl=()=>K.useContext(Lo);Lo.Provider;function Rl(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Dl=K.createContext(Rl()),Nl=()=>K.useContext(Dl);function Ml(e,t){return typeof e=="function"?e(...t):!!e}function Xo(){}var Ll=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Xl=e=>{K.useEffect(()=>{e.clearReset()},[e])},zl=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Ml(n,[e.error,r]),Hl=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Wl=(e,t)=>e.isLoading&&e.isFetching&&!t,Zl=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,zo=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function jl(e,t,n){var c,d,f,p,b;if(process.env.NODE_ENV!=="production"&&(typeof e!="object"||Array.isArray(e)))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=Ol(),i=Vl(),o=Nl(),s=r.defaultQueryOptions(e);(d=(c=r.getDefaultOptions().queries)==null?void 0:c._experimental_beforeQuery)==null||d.call(c,s),s._optimisticResults=i?"isRestoring":"optimistic",Hl(s),Ll(s,o),Xl(o);const u=!r.getQueryCache().get(s.queryHash),[a]=K.useState(()=>new t(r,s)),l=a.getOptimisticResult(s);if(K.useSyncExternalStore(K.useCallback(m=>{const I=i?Xo:a.subscribe(Ee.batchCalls(m));return a.updateResult(),I},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),K.useEffect(()=>{a.setOptions(s,{listeners:!1})},[s,a]),Zl(s,l))throw zo(s,a,o);if(zl({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.experimental_prefetchInRender&&!Dt&&Wl(l,i)){const m=u?zo(s,a,o):(b=r.getQueryCache().get(s.queryHash))==null?void 0:b.promise;m==null||m.catch(Xo).finally(()=>{a.updateResult()})}return s.notifyOnChangeProps?l:a.trackResult(l)}function Nt(e,t){return jl(e,Gl)}const Ho=O.createContext(void 0),ht=()=>{const e=O.useContext(Ho);if(!e)throw new Error("Must be used inside FrontendClientProvider");return e},Yl=({children:e,client:t})=>{const n=new Pl({defaultOptions:{queries:{staleTime:36e5,refetchOnWindowFocus:!1}}});return D.jsx(Tl,{client:n,children:D.jsx(Ho.Provider,{value:t,children:e})})},ti=O.createContext(void 0),er=()=>{const e=O.useContext(ti);if(!e)throw new Error("Must be used inside provider");return e},Wo=({children:e,props:t})=>{const n=ht(),r=O.useId(),{component:i,configuredProps:o,propNames:s,userId:u}=t,a=i.key,[l,c]=O.useState(0),[d,f]=O.useState(!1),[p,b]=O.useState({}),[m,I]=O.useState({});O.useEffect(()=>{I({})},[i]);const v=Y=>m[Y.name];let E=o||{};const[S,w]=O.useState(E),P=t.onUpdateConfiguredProps||w;t.onUpdateConfiguredProps||(E=S);const[A,T]=O.useState(),[k,V]=O.useState(),j={userId:u,componentId:a,configuredProps:E,dynamicPropsId:A==null?void 0:A.id},{isFetching:M}=Nt({queryKey:["dynamicProps"],queryFn:async()=>{const{dynamicProps:Y}=await n.componentReloadProps(j);return Y&&T(Y),V(void 0),[]},enabled:k!=null});let B=(A==null?void 0:A.configurableProps)||t.component.configurable_props||[];if(s!=null&&s.length){const Y=[];for(const X of B)s.findIndex(g=>X.name===g)>=0&&Y.push(X);B=Y}k!=null&&(B=B.slice(0,k+1));const ee=(Y,X)=>{const g=[];return X===void 0?Y.optional||g.push("required"):Y.type==="integer"?typeof X!="number"?g.push("not a number"):(Y.min!=null&&X<Y.min&&g.push("number too small"),Y.max!=null&&X>Y.max&&g.push("number too big")):Y.type==="boolean"?typeof X!="boolean"&&g.push("not a boolean"):Y.type==="string"?typeof X!="string"&&g.push("not a string"):Y.type,g},se=Y=>{let X;for(let g=0;g<B.length;g++){const re=B[g];if(re.hidden||re.optional&&!v(re))continue;if(Y[re.name]===void 0&&X==null&&(re.type==="app"||re.remoteOptions)){X=g;break}}c(X)},Z=Y=>{P(Y),se(Y);const X={};for(let g=0;g<B.length;g++){const re=B[g],U=Y[re.name],oe=ee(re,U);oe.length&&(X[re.name]=oe)}b(X)};O.useEffect(()=>{const Y={};for(const X of B){if(X.hidden||X.optional&&!v(X))continue;const g=E[X.name];g===void 0?"default"in X&&X.default!=null&&(Y[X.name]=X.default):X.type==="integer"&&typeof g!="number"?delete Y[X.name]:Y[X.name]=g}pl(Y,E)||Z(Y)},[B]);const[ne,de]=O.useState(u);O.useEffect(()=>{ne!==u&&(Z({}),de(u))},[u]);const he=(Y,X)=>{const g=B[Y],re={...E};X===void 0?delete re[g.name]:re[g.name]=X,P(re),g.reloadProps&&V(Y),(g.type==="app"||g.remoteOptions)&&se(re);const U=ee(g,X),oe={...p};U.length?oe[g.name]=U:delete oe[g.name],b(oe)},xe=(Y,X)=>{const g={...m};X?g[Y.name]=!0:delete g[Y.name];const re=B.findIndex(U=>U.name===Y.name);X?"default"in Y&&Y.default!=null&&he(re,Y.default):he(re,void 0),I(g)},y={id:r,isValid:!Object.keys(p).length,props:t,userId:u,component:i,configurableProps:B,configuredProps:E,dynamicProps:A,dynamicPropsQueryIsFetching:M,optionalPropIsEnabled:v,optionalPropSetEnabled:xe,queryDisabledIdx:l,setConfiguredProp:he,setSubmitting:f,submitting:d};return D.jsx(ti.Provider,{value:y,children:e})};function Mt(e){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(e)}function Jl(e,t){if(Mt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zo(e){var t=Jl(e,"string");return Mt(t)=="symbol"?t:t+""}function kn(e,t,n){return(t=Zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jo(Object(n),!0).forEach(function(r){kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _l(e){if(Array.isArray(e))return e}function Ul(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],a=!0,l=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);a=!0);}catch(c){l=!0,i=c}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return u}}function ni(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Yo(e,t){if(e){if(typeof e=="string")return ni(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ni(e,t):void 0}}function Ql(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gt(e,t){return _l(e)||Ul(e,t)||Yo(e,t)||Ql()}function ql(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function rt(e,t){if(e==null)return{};var n,r,i=ql(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var $l=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Jo(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,s=o===void 0?null:o,u=e.inputValue,a=e.menuIsOpen,l=e.onChange,c=e.onInputChange,d=e.onMenuClose,f=e.onMenuOpen,p=e.value,b=rt(e,$l),m=O.useState(u!==void 0?u:n),I=gt(m,2),v=I[0],E=I[1],S=O.useState(a!==void 0?a:i),w=gt(S,2),P=w[0],A=w[1],T=O.useState(p!==void 0?p:s),k=gt(T,2),V=k[0],j=k[1],M=O.useCallback(function(he,xe){typeof l=="function"&&l(he,xe),j(he)},[l]),B=O.useCallback(function(he,xe){var y;typeof c=="function"&&(y=c(he,xe)),E(y!==void 0?y:he)},[c]),ee=O.useCallback(function(){typeof f=="function"&&f(),A(!0)},[f]),se=O.useCallback(function(){typeof d=="function"&&d(),A(!1)},[d]),Z=u!==void 0?u:v,ne=a!==void 0?a:P,de=p!==void 0?p:V;return J(J({},b),{},{inputValue:Z,menuIsOpen:ne,onChange:M,onInputChange:B,onMenuClose:se,onMenuOpen:ee,value:de})}function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(null,arguments)}function Kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zo(r.key),r)}}function ec(e,t,n){return t&&_o(e.prototype,t),n&&_o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ri(e,t){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ri(e,t)}function tc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}function tr(e){return tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tr(e)}function Uo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uo=function(){return!!e})()}function nc(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rc(e,t){if(t&&(Mt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nc(e)}function ic(e){var t=Uo();return function(){var n,r=tr(e);if(t){var i=tr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rc(this,n)}}function oc(e){if(Array.isArray(e))return ni(e)}function sc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uc(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rn(e){return oc(e)||sc(e)||Yo(e)||uc()}function ac(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const lc=Math.min,cc=Math.max,nr=Math.round,rr=Math.floor,ir=e=>({x:e,y:e});function dc(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function or(){return typeof window<"u"}function Qo(e){return $o(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qo(e){var t;return(t=($o(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $o(e){return or()?e instanceof Node||e instanceof mt(e).Node:!1}function pc(e){return or()?e instanceof Element||e instanceof mt(e).Element:!1}function ii(e){return or()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function Ko(e){return!or()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}function es(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=oi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function fc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function hc(e){return["html","body","#document"].includes(Qo(e))}function oi(e){return mt(e).getComputedStyle(e)}function gc(e){if(Qo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ko(e)&&e.host||qo(e);return Ko(t)?t.host:t}function ts(e){const t=gc(e);return hc(t)?e.ownerDocument?e.ownerDocument.body:e.body:ii(t)&&es(t)?t:ts(t)}function sr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ts(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=mt(i);if(o){const u=si(s);return t.concat(s,s.visualViewport||[],es(i)?i:[],u&&n?sr(u):[])}return t.concat(i,sr(i,[],n))}function si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mc(e){const t=oi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ii(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=nr(n)!==o||nr(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function ui(e){return pc(e)?e:e.contextElement}function ns(e){const t=ui(e);if(!ii(t))return ir(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=mc(t);let s=(o?nr(n.width):n.width)/r,u=(o?nr(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const bc=ir(0);function yc(e){const t=mt(e);return!fc()||!t.visualViewport?bc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ic(e,t,n){return!1}function rs(e,t,n,r){t===void 0&&(t=!1);const i=e.getBoundingClientRect(),o=ui(e);let s=ir(1);t&&(s=ns(e));const u=Ic()?yc(o):ir(0);let a=(i.left+u.x)/s.x,l=(i.top+u.y)/s.y,c=i.width/s.x,d=i.height/s.y;if(o){const f=mt(o),p=r;let b=f,m=si(b);for(;m&&r&&p!==b;){const I=ns(m),v=m.getBoundingClientRect(),E=oi(m),S=v.left+(m.clientLeft+parseFloat(E.paddingLeft))*I.x,w=v.top+(m.clientTop+parseFloat(E.paddingTop))*I.y;a*=I.x,l*=I.y,c*=I.x,d*=I.y,a+=S,l+=w,b=mt(m),m=si(b)}}return dc({width:c,height:d,x:a,y:l})}function vc(e,t){let n=null,r;const i=qo(e);function o(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function s(u,a){u===void 0&&(u=!1),a===void 0&&(a=1),o();const{left:l,top:c,width:d,height:f}=e.getBoundingClientRect();if(u||t(),!d||!f)return;const p=rr(c),b=rr(i.clientWidth-(l+d)),m=rr(i.clientHeight-(c+f)),I=rr(l),E={rootMargin:-p+"px "+-b+"px "+-m+"px "+-I+"px",threshold:cc(0,lc(1,a))||1};let S=!0;function w(P){const A=P[0].intersectionRatio;if(A!==a){if(!S)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}S=!1}try{n=new IntersectionObserver(w,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,E)}n.observe(e)}return s(!0),o}function Cc(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,l=ui(e),c=i||o?[...l?sr(l):[],...sr(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),o&&v.addEventListener("resize",n)});const d=l&&u?vc(l,n):null;let f=-1,p=null;s&&(p=new ResizeObserver(v=>{let[E]=v;E&&E.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var S;(S=p)==null||S.observe(t)})),n()}),l&&!a&&p.observe(l),p.observe(t));let b,m=a?rs(e):null;a&&I();function I(){const v=rs(e);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,b=requestAnimationFrame(I)}return n(),()=>{var v;c.forEach(E=>{i&&E.removeEventListener("scroll",n),o&&E.removeEventListener("resize",n)}),d==null||d(),(v=p)==null||v.disconnect(),p=null,a&&cancelAnimationFrame(b)}}var ai=O.useLayoutEffect,xc=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ur=function(){};function Ac(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function Sc(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&o.push("".concat(Ac(e,s)));return o.filter(function(u){return u}).map(function(u){return String(u).trim()}).join(" ")}var ar=function(t){return Tc(t)?t.filter(Boolean):Mt(t)==="object"&&t!==null?[t]:[]},is=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=rt(t,xc);return J({},n)},ve=function(t,n,r){var i=t.cx,o=t.getStyles,s=t.getClassNames,u=t.className;return{css:o(n,t),className:i(r??{},s(n,t),u)}};function lr(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function wc(e){return lr(e)?window.innerHeight:e.clientHeight}function os(e){return lr(e)?window.pageYOffset:e.scrollTop}function cr(e,t){if(lr(e)){window.scrollTo(0,t);return}e.scrollTop=t}function Ec(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function Fc(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function dr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ur,i=os(e),o=t-i,s=10,u=0;function a(){u+=s;var l=Fc(u,i,o,n);cr(e,l),u<n?window.requestAnimationFrame(a):r(e)}a()}function ss(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?cr(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&cr(e,Math.max(t.offsetTop-i,0))}function Pc(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function us(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function Gc(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var as=!1,kc={get passive(){return as=!0}},pr=typeof window<"u"?window:{};pr.addEventListener&&pr.removeEventListener&&(pr.addEventListener("p",ur,kc),pr.removeEventListener("p",ur,!1));var Bc=as;function Oc(e){return e!=null}function Tc(e){return Array.isArray(e)}function Bn(e,t,n){return e?t:n}function hy(e){return e}function gy(e){return e}var Vc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Object.entries(t).filter(function(s){var u=gt(s,1),a=u[0];return!r.includes(a)});return o.reduce(function(s,u){var a=gt(u,2),l=a[0],c=a[1];return s[l]=c,s},{})},Rc=["children","innerProps"],Dc=["children","innerProps"];function Nc(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,a=Ec(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=a.getBoundingClientRect(),d=c.height,f=n.getBoundingClientRect(),p=f.bottom,b=f.height,m=f.top,I=n.offsetParent.getBoundingClientRect(),v=I.top,E=s?window.innerHeight:wc(a),S=os(a),w=parseInt(getComputedStyle(n).marginBottom,10),P=parseInt(getComputedStyle(n).marginTop,10),A=v-P,T=E-m,k=A+S,V=d-S-m,j=p-E+S+w,M=S+m-P,B=160;switch(i){case"auto":case"bottom":if(T>=b)return{placement:"bottom",maxHeight:t};if(V>=b&&!s)return o&&dr(a,j,B),{placement:"bottom",maxHeight:t};if(!s&&V>=r||s&&T>=r){o&&dr(a,j,B);var ee=s?T-w:V-w;return{placement:"bottom",maxHeight:ee}}if(i==="auto"||s){var se=t,Z=s?A:k;return Z>=r&&(se=Math.min(Z-w-u,t)),{placement:"top",maxHeight:se}}if(i==="bottom")return o&&cr(a,j),{placement:"bottom",maxHeight:t};break;case"top":if(A>=b)return{placement:"top",maxHeight:t};if(k>=b&&!s)return o&&dr(a,M,B),{placement:"top",maxHeight:t};if(!s&&k>=r||s&&A>=r){var ne=t;return(!s&&k>=r||s&&A>=r)&&(ne=s?A-P:k-P),o&&dr(a,M,B),{placement:"top",maxHeight:ne}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return l}function Mc(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ls=function(t){return t==="auto"?"bottom":t},Lc=function(t,n){var r,i=t.placement,o=t.theme,s=o.borderRadius,u=o.spacing,a=o.colors;return J((r={label:"menu"},kn(r,Mc(i),"100%"),kn(r,"position","absolute"),kn(r,"width","100%"),kn(r,"zIndex",1),r),n?{}:{backgroundColor:a.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},cs=O.createContext(null),Xc=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,s=t.menuPosition,u=t.menuShouldScrollIntoView,a=t.theme,l=O.useContext(cs)||{},c=l.setPortalPlacement,d=O.useRef(null),f=O.useState(i),p=gt(f,2),b=p[0],m=p[1],I=O.useState(null),v=gt(I,2),E=v[0],S=v[1],w=a.spacing.controlHeight;return ai(function(){var P=d.current;if(P){var A=s==="fixed",T=u&&!A,k=Nc({maxHeight:i,menuEl:P,minHeight:r,placement:o,shouldScroll:T,isFixedPosition:A,controlHeight:w});m(k.maxHeight),S(k.placement),c==null||c(k.placement)}},[i,o,s,u,r,c,w]),n({ref:d,placerProps:J(J({},t),{},{placement:E||ls(o),maxHeight:b})})},zc=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return W.jsx("div",_({},ve(t,"menu",{menu:!0}),{ref:r},i),n)},Hc=zc,Wc=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return J({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},Zc=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return W.jsx("div",_({},ve(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},ds=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return J({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},jc=ds,Yc=ds,Jc=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=rt(t,Rc);return W.jsx("div",_({},ve(J(J({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},_c=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=rt(t,Dc);return W.jsx("div",_({},ve(J(J({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Uc=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},Qc=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,s=t.menuPlacement,u=t.menuPosition,a=O.useRef(null),l=O.useRef(null),c=O.useState(ls(s)),d=gt(c,2),f=d[0],p=d[1],b=O.useMemo(function(){return{setPortalPlacement:p}},[]),m=O.useState(null),I=gt(m,2),v=I[0],E=I[1],S=O.useCallback(function(){if(i){var T=Pc(i),k=u==="fixed"?0:window.pageYOffset,V=T[f]+k;(V!==(v==null?void 0:v.offset)||T.left!==(v==null?void 0:v.rect.left)||T.width!==(v==null?void 0:v.rect.width))&&E({offset:V,rect:T})}},[i,u,f,v==null?void 0:v.offset,v==null?void 0:v.rect.left,v==null?void 0:v.rect.width]);ai(function(){S()},[S]);var w=O.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),i&&a.current&&(l.current=Cc(i,a.current,S,{elementResize:"ResizeObserver"in window}))},[i,S]);ai(function(){w()},[w]);var P=O.useCallback(function(T){a.current=T,w()},[w]);if(!n&&u!=="fixed"||!v)return null;var A=W.jsx("div",_({ref:P},ve(J(J({},t),{},{offset:v.offset,position:u,rect:v.rect}),"menuPortal",{"menu-portal":!0}),o),r);return W.jsx(cs.Provider,{value:b},n?Wr.createPortal(A,n):A)},qc=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},$c=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return W.jsx("div",_({},ve(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},Kc=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,s=t.selectProps.controlShouldRenderValue;return J({alignItems:"center",display:i&&o&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},ed=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return W.jsx("div",_({},ve(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},td=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},nd=function(t){var n=t.children,r=t.innerProps;return W.jsx("div",_({},ve(t,"indicatorsContainer",{indicators:!0}),r),n)},ps,rd=["size"],id=["innerProps","isRtl","size"];function od(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sd=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb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emUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:od},fs=function(t){var n=t.size,r=rt(t,rd);return W.jsx("svg",_({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:sd},r))},li=function(t){return W.jsx(fs,_({size:20},t),W.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},hs=function(t){return W.jsx(fs,_({size:20},t),W.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},gs=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return J({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:o*2,":hover":{color:r?s.neutral80:s.neutral40}})},ud=gs,ad=function(t){var n=t.children,r=t.innerProps;return W.jsx("div",_({},ve(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||W.jsx(hs,null))},ld=gs,cd=function(t){var n=t.children,r=t.innerProps;return W.jsx("div",_({},ve(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||W.jsx(li,null))},dd=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,s=i.colors;return J({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:o*2,marginTop:o*2})},pd=function(t){var n=t.innerProps;return W.jsx("span",_({},n,ve(t,"indicatorSeparator",{"indicator-separator":!0})))},fd=W.keyframes(ps||(ps=ac([`
4
4
  0%, 80%, 100% { opacity: 0; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pipedream/connect-react",
3
- "version": "1.0.0-preview.7",
3
+ "version": "1.0.0-preview.8",
4
4
  "description": "Pipedream Connect library for React",
5
5
  "files": [
6
6
  "dist"
@@ -27,7 +27,7 @@
27
27
  "lodash.isequal": "^4.5.0",
28
28
  "react-markdown": "^9.0.1",
29
29
  "react-select": "^5.8.2",
30
- "@pipedream/sdk": "^1.0.10"
30
+ "@pipedream/sdk": "^1.0.12"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@emotion/react": "^11.13.5",