@trycourier/courier-react 8.0.4-beta → 8.0.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +142 -6
- package/dist/hooks/use-courier.d.ts +2 -0
- package/dist/index.js +10 -1032
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +4269 -27389
- package/dist/index.mjs.map +1 -0
- package/dist/legacy-O6WN3SMx.mjs +18 -0
- package/dist/legacy-O6WN3SMx.mjs.map +1 -0
- package/dist/renderer/legacy.d.ts +4 -0
- package/dist/renderer/modern.d.ts +4 -0
- package/dist/renderer/renderer.d.ts +5 -0
- package/dist/utils/utils.d.ts +1 -4
- package/package.json +12 -7
package/dist/index.js
CHANGED
|
@@ -1,1032 +1,10 @@
|
|
|
1
|
-
(function(ju,pt){typeof exports=="object"&&typeof module<"u"?pt(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],pt):(ju=typeof globalThis<"u"?globalThis:ju||self,pt(ju.CourierReact={},ju.React,ju.ReactDOM))})(this,function(ju,pt,kg){"use strict";var wS=Object.defineProperty,BS=(x,f,v)=>f in x?wS(x,f,{enumerable:!0,configurable:!0,writable:!0,value:v}):x[f]=v,wt=(x,f,v)=>BS(x,typeof f!="symbol"?f+"":f,v);const ib=class HS{constructor(f,v){wt(this,"webSocket",null),wt(this,"pingInterval",null),wt(this,"onOpen"),wt(this,"onMessageReceived"),wt(this,"onClose"),wt(this,"onError"),wt(this,"url"),wt(this,"options"),this.url=f,this.options=v}get isConnected(){return this.webSocket!==null}async connect(){return this.disconnect(),new Promise((f,v)=>{try{this.webSocket=new WebSocket(this.url),this.webSocket.onopen=()=>{var m;(m=this.onOpen)==null||m.call(this),f()},this.webSocket.onmessage=m=>{var T;(T=this.onMessageReceived)==null||T.call(this,m.data)},this.webSocket.onclose=m=>{var T;this.webSocket=null,(T=this.onClose)==null||T.call(this,m.code,m.reason)},this.webSocket.onerror=m=>{var T;this.webSocket=null;const A=new Error("Courier Socket connection failed");A.originalEvent=m,(T=this.onError)==null||T.call(this,A),v(A)}}catch(m){this.webSocket=null,v(m)}})}disconnect(){this.stopPing(),this.webSocket&&(this.webSocket.close(HS.NORMAL_CLOSURE_STATUS),this.webSocket=null)}async send(f){if(!this.webSocket)return!1;const v=JSON.stringify(f);return this.webSocket.send(v)!==void 0}keepAlive(f){this.stopPing(),this.pingInterval=setInterval(async()=>{var v;try{await this.send({action:"keepAlive"})}catch(m){(v=this.options.logger)==null||v.error("Error occurred on Keep Alive:",m)}},(f==null?void 0:f.intervalInMillis)??3e5)}stopPing(){this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=null)}};wt(ib,"NORMAL_CLOSURE_STATUS",1e3);let kS=ib;const ub=x=>({courier:{rest:(x==null?void 0:x.courier.rest)||"https://api.courier.com",graphql:(x==null?void 0:x.courier.graphql)||"https://api.courier.com/client/q"},inbox:{graphql:(x==null?void 0:x.inbox.graphql)||"https://inbox.courier.com/q",webSocket:(x==null?void 0:x.inbox.webSocket)||"wss://realtime.courier.com"}});class NS{constructor(f){wt(this,"PREFIX","[COURIER]"),this.showLogs=f}warn(f,...v){this.showLogs&&console.warn(`${this.PREFIX} ${f}`,...v)}log(f,...v){this.showLogs&&console.log(`${this.PREFIX} ${f}`,...v)}error(f,...v){this.showLogs&&console.error(`${this.PREFIX} ${f}`,...v)}debug(f,...v){this.showLogs&&console.debug(`${this.PREFIX} ${f}`,...v)}info(f,...v){this.showLogs&&console.info(`${this.PREFIX} ${f}`,...v)}}class av{static generate(f){const v=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);return f?f+v:v}}class iv extends Error{constructor(f,v,m){super(v),this.code=f,this.type=m,this.name="CourierRequestError"}}function ob(x,f,v,m){x.log(`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
`)}function cb(x,f,v,m){x.log(`
|
|
10
|
-
|
|
11
|
-
Status Code: ${m.status}
|
|
12
|
-
Response JSON: ${JSON.stringify(m.response,null,2)}
|
|
13
|
-
`)}async function Xo(x){const f=x.validCodes??[200],v=x.options.showLogs?av.generate():void 0,m=new Request(x.url,{method:x.method,headers:{"Content-Type":"application/json",...x.headers},body:x.body?JSON.stringify(x.body):void 0});v&&ob(x.options.logger,v,"HTTP",{url:m.url,method:m.method,headers:Object.fromEntries(m.headers.entries()),body:x.body});const T=await fetch(m);if(T.status===204)return;let A;try{A=await T.json()}catch{if(T.status===200)return;throw new iv(T.status,"Failed to parse response as JSON","PARSE_ERROR")}if(v&&cb(x.options.logger,v,"HTTP",{status:T.status,response:A}),!f.includes(T.status))throw new iv(T.status,(A==null?void 0:A.message)||"Unknown Error",A==null?void 0:A.type);return A}async function nu(x){const f=x.options.showLogs?av.generate():void 0;f&&ob(x.options.logger,f,"GraphQL",{url:x.url,headers:x.headers,query:x.query,variables:x.variables});const v=await fetch(x.url,{method:"POST",headers:{"Content-Type":"application/json",...x.headers},body:JSON.stringify({query:x.query,variables:x.variables})});let m;try{m=await v.json()}catch{throw new iv(v.status,"Failed to parse response as JSON","PARSE_ERROR")}if(f&&cb(x.options.logger,f,"GraphQL",{status:v.status,response:m}),!v.ok)throw new iv(v.status,(m==null?void 0:m.message)||"Unknown Error",m==null?void 0:m.type);return m}class Nr{constructor(f){this.options=f}}class LS extends Nr{async getBrand(f){const v=`
|
|
14
|
-
query GetBrand {
|
|
15
|
-
brand(brandId: "${f.brandId}") {
|
|
16
|
-
settings {
|
|
17
|
-
colors {
|
|
18
|
-
primary
|
|
19
|
-
secondary
|
|
20
|
-
tertiary
|
|
21
|
-
}
|
|
22
|
-
inapp {
|
|
23
|
-
borderRadius
|
|
24
|
-
disableCourierFooter
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
`;return(await nu({options:this.options,url:this.options.apiUrls.courier.graphql,headers:{"x-courier-user-id":this.options.userId,"x-courier-client-key":"empty",Authorization:`Bearer ${this.options.accessToken}`},query:v,variables:{brandId:f.brandId}})).data.brand}}class Ng extends kS{constructor(f){const v=Ng.buildUrl(f);super(v,f),wt(this,"receivedMessage"),wt(this,"receivedMessageEvent"),this.onMessageReceived=m=>this.convertToType(m)}convertToType(f){var v,m,T,A;try{switch(JSON.parse(f).type){case"event":const X=JSON.parse(f);(v=this.receivedMessageEvent)==null||v.call(this,X);break;case"message":const M=JSON.parse(f);(m=this.receivedMessage)==null||m.call(this,M);break}}catch(w){(T=this.options.logger)==null||T.error("Error parsing socket message",w),w instanceof Error&&((A=this.onError)==null||A.call(this,w))}}async sendSubscribe(f){var v;const m={action:"subscribe",data:{userAgent:"courier-js",channel:this.options.userId,event:"*",version:(f==null?void 0:f.version)??5}};this.options.connectionId&&(m.data.clientSourceId=this.options.connectionId),this.options.tenantId&&(m.data.accountId=this.options.tenantId),(v=this.options.logger)==null||v.debug("Sending subscribe request",m),await this.send(m)}static buildUrl(f){var v;let m=((v=f.apiUrls)==null?void 0:v.inbox.webSocket)??"";return f.accessToken&&(m+=`/?auth=${f.accessToken}`),m}}class qS extends Nr{constructor(f){super(f),wt(this,"socket"),this.socket=new Ng(f)}async getMessages(f){const v=`
|
|
30
|
-
query GetInboxMessages(
|
|
31
|
-
$params: FilterParamsInput = { ${this.options.tenantId?`accountId: "${this.options.tenantId}"`:""} }
|
|
32
|
-
$limit: Int = ${(f==null?void 0:f.paginationLimit)??24}
|
|
33
|
-
$after: String ${f!=null&&f.startCursor?`= "${f.startCursor}"`:""}
|
|
34
|
-
) {
|
|
35
|
-
count(params: $params)
|
|
36
|
-
messages(params: $params, limit: $limit, after: $after) {
|
|
37
|
-
totalCount
|
|
38
|
-
pageInfo {
|
|
39
|
-
startCursor
|
|
40
|
-
hasNextPage
|
|
41
|
-
}
|
|
42
|
-
nodes {
|
|
43
|
-
messageId
|
|
44
|
-
read
|
|
45
|
-
archived
|
|
46
|
-
created
|
|
47
|
-
opened
|
|
48
|
-
title
|
|
49
|
-
preview
|
|
50
|
-
data
|
|
51
|
-
tags
|
|
52
|
-
trackingIds {
|
|
53
|
-
clickTrackingId
|
|
54
|
-
}
|
|
55
|
-
actions {
|
|
56
|
-
content
|
|
57
|
-
data
|
|
58
|
-
href
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
`;return await nu({options:this.options,query:v,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})}async getArchivedMessages(f){const v=`
|
|
64
|
-
query GetInboxMessages(
|
|
65
|
-
$params: FilterParamsInput = { ${this.options.tenantId?`accountId: "${this.options.tenantId}"`:""}, archived: true }
|
|
66
|
-
$limit: Int = ${(f==null?void 0:f.paginationLimit)??24}
|
|
67
|
-
$after: String ${f!=null&&f.startCursor?`= "${f.startCursor}"`:""}
|
|
68
|
-
) {
|
|
69
|
-
count(params: $params)
|
|
70
|
-
messages(params: $params, limit: $limit, after: $after) {
|
|
71
|
-
totalCount
|
|
72
|
-
pageInfo {
|
|
73
|
-
startCursor
|
|
74
|
-
hasNextPage
|
|
75
|
-
}
|
|
76
|
-
nodes {
|
|
77
|
-
messageId
|
|
78
|
-
read
|
|
79
|
-
archived
|
|
80
|
-
created
|
|
81
|
-
opened
|
|
82
|
-
title
|
|
83
|
-
preview
|
|
84
|
-
data
|
|
85
|
-
tags
|
|
86
|
-
trackingIds {
|
|
87
|
-
clickTrackingId
|
|
88
|
-
}
|
|
89
|
-
actions {
|
|
90
|
-
content
|
|
91
|
-
data
|
|
92
|
-
href
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
`;return nu({options:this.options,query:v,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})}async getUnreadMessageCount(){var f;const v=`
|
|
98
|
-
query GetMessages {
|
|
99
|
-
count(params: { status: "unread" ${this.options.tenantId?`, accountId: "${this.options.tenantId}"`:""} })
|
|
100
|
-
}
|
|
101
|
-
`;return((f=(await nu({options:this.options,query:v,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})).data)==null?void 0:f.count)??0}async click(f){const v=`
|
|
102
|
-
mutation TrackEvent {
|
|
103
|
-
clicked(messageId: "${f.messageId}", trackingId: "${f.trackingId}")
|
|
104
|
-
}
|
|
105
|
-
`,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await nu({options:this.options,query:v,headers:m,url:this.options.apiUrls.inbox.graphql})}async read(f){const v=`
|
|
106
|
-
mutation TrackEvent {
|
|
107
|
-
read(messageId: "${f.messageId}")
|
|
108
|
-
}
|
|
109
|
-
`,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await nu({options:this.options,query:v,headers:m,url:this.options.apiUrls.inbox.graphql})}async unread(f){const v=`
|
|
110
|
-
mutation TrackEvent {
|
|
111
|
-
unread(messageId: "${f.messageId}")
|
|
112
|
-
}
|
|
113
|
-
`,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await nu({options:this.options,query:v,headers:m,url:this.options.apiUrls.inbox.graphql})}async readAll(){const f=`
|
|
114
|
-
mutation TrackEvent {
|
|
115
|
-
markAllRead
|
|
116
|
-
}
|
|
117
|
-
`,v={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(v["x-courier-client-source-id"]=this.options.connectionId),await nu({options:this.options,query:f,headers:v,url:this.options.apiUrls.inbox.graphql})}async open(f){const v=`
|
|
118
|
-
mutation TrackEvent {
|
|
119
|
-
opened(messageId: "${f.messageId}")
|
|
120
|
-
}
|
|
121
|
-
`,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await nu({options:this.options,query:v,headers:m,url:this.options.apiUrls.inbox.graphql})}async archive(f){const v=`
|
|
122
|
-
mutation TrackEvent {
|
|
123
|
-
archive(messageId: "${f.messageId}")
|
|
124
|
-
}
|
|
125
|
-
`,m={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(m["x-courier-client-source-id"]=this.options.connectionId),await nu({options:this.options,query:v,headers:m,url:this.options.apiUrls.inbox.graphql})}async archiveRead(){const f=`
|
|
126
|
-
mutation TrackEvent {
|
|
127
|
-
archiveRead
|
|
128
|
-
}
|
|
129
|
-
`,v={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(v["x-courier-client-source-id"]=this.options.connectionId),await nu({options:this.options,query:f,headers:v,url:this.options.apiUrls.inbox.graphql})}}class YS{transformItem(f){return{topicId:f.topic_id,topicName:f.topic_name,sectionId:f.section_id,sectionName:f.section_name,status:f.status,defaultStatus:f.default_status,hasCustomRouting:f.has_custom_routing,customRouting:f.custom_routing||[]}}*transform(f){for(const v of f)yield this.transformItem(v)}}function VS(x){const f=atob(x),v=new Uint8Array(f.length);for(let m=0;m<f.length;m++)v[m]=f.charCodeAt(m);return String.fromCharCode(...v)}function GS(x){const f=new Uint8Array(x.length);for(let v=0;v<x.length;v++)f[v]=x.charCodeAt(v);return btoa(String.fromCharCode(...f))}class XS extends Nr{constructor(){super(...arguments),wt(this,"transformer",new YS)}async getUserPreferences(f){let v=`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences`;f!=null&&f.paginationCursor&&(v+=`?cursor=${f.paginationCursor}`);const T=await Xo({options:this.options,url:v,method:"GET",headers:{Authorization:`Bearer ${this.options.accessToken}`}});return{items:[...this.transformer.transform(T.items)],paging:T.paging}}async getUserPreferenceTopic(f){const m=await Xo({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences/${f.topicId}`,method:"GET",headers:{Authorization:`Bearer ${this.options.accessToken}`}});return this.transformer.transformItem(m.topic)}async putUserPreferenceTopic(f){const v={topic:{status:f.status,has_custom_routing:f.hasCustomRouting,custom_routing:f.customRouting}};await Xo({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences/${f.topicId}`,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:v})}getNotificationCenterUrl(f){const v=VS(f.clientKey);return`https://view.notificationcenter.app/p/${GS(`${v}#${this.options.userId}${this.options.tenantId?`#${this.options.tenantId}`:""}#false`)}`}}class jS extends Nr{async putUserToken(f){const v={provider_key:f.provider,...f.device&&{device:{app_id:f.device.appId,ad_id:f.device.adId,device_id:f.device.deviceId,platform:f.device.platform,manufacturer:f.device.manufacturer,model:f.device.model}}};await Xo({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/tokens/${f.token}`,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:v,validCodes:[200,204]})}async deleteUserToken(f){await Xo({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/tokens/${f.token}`,method:"DELETE",headers:{Authorization:`Bearer ${this.options.accessToken}`},validCodes:[200,204]})}}class QS extends Nr{async putSubscription(f){return await Xo({url:`${this.options.apiUrls.courier.rest}/lists/${f.listId}/subscriptions/${this.options.userId}`,options:this.options,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`}})}async deleteSubscription(f){return await Xo({url:`${this.options.apiUrls.courier.rest}/lists/${f.listId}/subscriptions/${this.options.userId}`,options:this.options,method:"DELETE",headers:{Authorization:`Bearer ${this.options.accessToken}`}})}}class ZS extends Nr{async postInboundCourier(f){return await Xo({url:`${this.options.apiUrls.courier.rest}/inbound/courier`,options:this.options,method:"POST",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:{...f,userId:this.options.userId},validCodes:[200,202]})}async postTrackingUrl(f){return await Xo({url:f.url,options:this.options,method:"POST",body:{event:f.event}})}}class $S extends Nr{constructor(f){var v,m;const T=f.showLogs!==void 0?f.showLogs:process.env.NODE_ENV==="development",A={...f,showLogs:T,apiUrls:f.apiUrls||ub(),accessToken:f.jwt??f.publicApiKey};super({...A,logger:new NS(A.showLogs),apiUrls:ub(A.apiUrls)}),wt(this,"tokens"),wt(this,"brands"),wt(this,"preferences"),wt(this,"inbox"),wt(this,"lists"),wt(this,"tracking"),this.tokens=new jS(this.options),this.brands=new LS(this.options),this.preferences=new XS(this.options),this.inbox=new qS(this.options),this.lists=new QS(this.options),this.tracking=new ZS(this.options),!this.options.jwt&&!this.options.publicApiKey&&this.options.logger.warn("Courier Client initialized with no authentication method. Please provide a JWT or public API key."),this.options.publicApiKey&&((v=this.options.logger)==null||v.warn(`Courier Warning: Public API Keys are for testing only. Please use JWTs for production.
|
|
130
|
-
You can generate a JWT with this endpoint: https://www.courier.com/docs/reference/auth/issue-token
|
|
131
|
-
This endpoint should be called from your backend server, not the SDK.`)),this.options.jwt&&this.options.publicApiKey&&((m=this.options.logger)==null||m.warn("Courier Warning: Both a JWT and a Public API Key were provided. The Public API Key will be ignored."))}}class JS{constructor(f){wt(this,"callback"),this.callback=f}remove(){De.shared.removeAuthenticationListener(this)}}const sb=class lv{constructor(){wt(this,"id",av.generate()),wt(this,"instanceClient"),wt(this,"_paginationLimit",24),wt(this,"authenticationListeners",[])}get paginationLimit(){return this._paginationLimit}set paginationLimit(f){this._paginationLimit=Math.min(Math.max(f,1),100)}get client(){return this.instanceClient}static get shared(){return lv.instance||(lv.instance=new lv),lv.instance}signIn(f){const v=f.connectionId??av.generate();this.instanceClient=new $S({...f,connectionId:v}),this.notifyAuthenticationListeners({userId:f.userId})}signOut(){this.instanceClient=void 0,this.notifyAuthenticationListeners({userId:void 0})}addAuthenticationListener(f){var v;(v=this.instanceClient)==null||v.options.logger.info("Adding authentication listener");const m=new JS(f);return this.authenticationListeners.push(m),m}removeAuthenticationListener(f){var v;(v=this.instanceClient)==null||v.options.logger.info("Removing authentication listener"),this.authenticationListeners=this.authenticationListeners.filter(m=>m!==f)}notifyAuthenticationListeners(f){this.authenticationListeners.forEach(v=>v.callback(f))}};wt(sb,"instance");let De=sb;var KS=Object.defineProperty,WS=(x,f,v)=>f in x?KS(x,f,{enumerable:!0,configurable:!0,writable:!0,value:v}):x[f]=v,K=(x,f,v)=>WS(x,typeof f!="symbol"?f+"":f,v),IS=Object.defineProperty,FS=(x,f,v)=>f in x?IS(x,f,{enumerable:!0,configurable:!0,writable:!0,value:v}):x[f]=v,Yt=(x,f,v)=>FS(x,typeof f!="symbol"?f+"":f,v);const Z={black:{500:"#171717",50010:"#1717171A",50020:"#17171733"},gray:{200:"#F5F5F5",400:"#3A3A3A",500:"#E5E5E5",600:"#737373"},white:{500:"#FFFFFF",50010:"#FFFFFF1A",50020:"#FFFFFF33"},blue:{400:"#60A5FA",500:"#2563EB"}},jo={light:{colors:{primary:Z.black[500],secondary:Z.white[500],border:Z.gray[500],link:Z.blue[500],icon:Z.black[500]},button:{cornerRadius:"4px"}},dark:{colors:{primary:Z.white[500],secondary:Z.black[500],border:Z.gray[400],link:Z.blue[400],icon:Z.white[500]},button:{cornerRadius:"4px"}}},rb=()=>typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",fb=x=>{if(typeof window>"u")return()=>{};const f=window.matchMedia("(prefers-color-scheme: dark)"),v=m=>{x(m.matches?"dark":"light")};return f.addEventListener("change",v),()=>{f.removeEventListener("change",v)}};class db extends HTMLElement{constructor(){super(),Yt(this,"_currentSystemTheme"),Yt(this,"_systemThemeCleanup"),this._currentSystemTheme=rb(),this._systemThemeCleanup=fb(f=>{this._currentSystemTheme=f,this.onSystemThemeChange(f)})}get currentSystemTheme(){return this._currentSystemTheme}disconnectedCallback(){this._systemThemeCleanup&&this._systemThemeCleanup()}onSystemThemeChange(f){}}const Lg={borderRadius:"4px",fontSize:"14px"},es={primary:x=>({...Lg,backgroundColor:jo[x].colors.primary,textColor:jo[x].colors.secondary,fontWeight:"500",shadow:"none"}),secondary:x=>({...Lg,backgroundColor:jo[x].colors.secondary,textColor:jo[x].colors.primary,fontWeight:"500",border:`1px solid ${jo[x].colors.border}`,shadow:x==="light"?"0px 1px 2px 0px rgba(0, 0, 0, 0.06)":"0px 1px 2px 0px rgba(255, 255, 255, 0.1)"}),tertiary:x=>({...Lg,backgroundColor:jo[x].colors.border,textColor:jo[x].colors.primary,fontWeight:"500",border:"none",shadow:"none"})};class uv extends db{constructor(f){super(),Yt(this,"_button"),Yt(this,"_style");const v=this.attachShadow({mode:"open"});this._button=document.createElement("button"),this._button.setAttribute("part","button"),this._style=document.createElement("style"),this._style.textContent=this.getStyles(f),v.appendChild(this._style),v.appendChild(this._button),this.updateButton(f),this._button.addEventListener("click",m=>{m.preventDefault(),m.stopPropagation(),f.onClick&&f.onClick()})}getStyles(f){const v=()=>es.secondary(this.currentSystemTheme).textColor,m=()=>es.secondary(this.currentSystemTheme).backgroundColor,T=()=>es.secondary(this.currentSystemTheme).border,A=()=>es.secondary(this.currentSystemTheme).shadow,w=()=>es.secondary(this.currentSystemTheme).borderRadius,X=()=>es.secondary(this.currentSystemTheme).fontSize,M=()=>es.secondary(this.currentSystemTheme).fontWeight;return`
|
|
132
|
-
:host {
|
|
133
|
-
display: inline-block;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
button {
|
|
137
|
-
border: none;
|
|
138
|
-
border-radius: ${f.borderRadius??w()};
|
|
139
|
-
font-weight: ${f.fontWeight??M()};
|
|
140
|
-
font-family: ${f.fontFamily??"inherit"};
|
|
141
|
-
font-size: ${f.fontSize??X()};
|
|
142
|
-
padding: 6px 10px;
|
|
143
|
-
cursor: pointer;
|
|
144
|
-
width: 100%;
|
|
145
|
-
height: 100%;
|
|
146
|
-
background-color: ${f.backgroundColor??m()};
|
|
147
|
-
color: ${f.textColor??v()};
|
|
148
|
-
border: ${f.border??T()};
|
|
149
|
-
box-shadow: ${f.shadow??A()};
|
|
150
|
-
touch-action: manipulation;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
button:hover {
|
|
154
|
-
${f.hoverBackgroundColor?`background-color: ${f.hoverBackgroundColor};`:"filter: brightness(0.9);"}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
button:active {
|
|
158
|
-
${f.activeBackgroundColor?`background-color: ${f.activeBackgroundColor};`:"filter: brightness(0.8);"}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
button:disabled {
|
|
162
|
-
opacity: 0.5;
|
|
163
|
-
cursor: not-allowed;
|
|
164
|
-
}
|
|
165
|
-
`}updateButton(f){f.text&&(this._button.textContent=f.text),this._style.textContent=this.getStyles(f)}}customElements.get("courier-button")||customElements.define("courier-button",uv);const we={inbox:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
166
|
-
<path d="M5.5 14.5V17C5.5 17.2812 5.71875 17.5 6 17.5H18C18.25 17.5 18.5 17.2812 18.5 17V14.5H15.9375L15.2812 15.8125C15.0938 16.25 14.6562 16.5 14.1875 16.5H9.78125C9.3125 16.5 8.875 16.25 8.6875 15.8125L8.03125 14.5H5.5ZM18.1875 13L16.6562 6.90625C16.5938 6.65625 16.4062 6.5 16.1875 6.5H7.8125C7.5625 6.5 7.375 6.65625 7.3125 6.90625L5.78125 13H8.1875C8.65625 13 9.09375 13.2812 9.3125 13.7188L9.9375 15H14.0312L14.6875 13.7188C14.875 13.2812 15.3125 13 15.7812 13H18.1875ZM4 14.25C4 14.0938 4 13.9375 4.03125 13.7812L5.84375 6.53125C6.09375 5.625 6.875 5 7.8125 5H16.1875C17.0938 5 17.9062 5.625 18.125 6.53125L19.9375 13.7812C19.9688 13.9375 20 14.0938 20 14.25V17C20 18.125 19.0938 19 18 19H6C4.875 19 4 18.125 4 17V14.25Z" fill="currentColor"/>
|
|
167
|
-
</svg>`,archive:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
168
|
-
<path d="M5.5 6.5V8H18.5V6.5H5.5ZM5 5H19C19.5312 5 20 5.46875 20 6V8.5C20 9.0625 19.5312 9.5 19 9.5H5C4.4375 9.5 4 9.0625 4 8.5V6C4 5.46875 4.4375 5 5 5ZM9 11.75C9 11.3438 9.3125 11 9.75 11H14.25C14.6562 11 15 11.3438 15 11.75C15 12.1875 14.6562 12.5 14.25 12.5H9.75C9.3125 12.5 9 12.1875 9 11.75ZM5 17V10.5H6.5V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V10.5H19V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17Z" fill="currentColor"/>
|
|
169
|
-
</svg>`,check:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
170
|
-
<path d="M18.793 7.33203C19.0742 7.64453 19.0742 8.11328 18.793 8.39453L10.543 16.6445C10.2305 16.957 9.76172 16.957 9.48047 16.6445L5.23047 12.3945C4.91797 12.1133 4.91797 11.6445 5.23047 11.3633C5.51172 11.0508 5.98047 11.0508 6.26172 11.3633L9.98047 15.082L17.7305 7.33203C18.0117 7.05078 18.4805 7.05078 18.7617 7.33203H18.793Z" fill="currentColor"/>
|
|
171
|
-
</svg>`,filter:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
172
|
-
<path d="M5 7C5 6.59375 5.3125 6.25 5.75 6.25H18.25C18.6562 6.25 19 6.59375 19 7C19 7.4375 18.6562 7.75 18.25 7.75H5.75C5.3125 7.75 5 7.4375 5 7ZM7 12C7 11.5938 7.3125 11.25 7.75 11.25H16.25C16.6562 11.25 17 11.5938 17 12C17 12.4375 16.6562 12.75 16.25 12.75H7.75C7.3125 12.75 7 12.4375 7 12ZM14 17C14 17.4375 13.6562 17.75 13.25 17.75H10.75C10.3125 17.75 10 17.4375 10 17C10 16.5938 10.3125 16.25 10.75 16.25H13.25C13.6562 16.25 14 16.5938 14 17Z" fill="currentColor"/>
|
|
173
|
-
</svg>`,overflow:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
174
|
-
<path d="M18.5117 11.9883C18.5117 12.5508 18.1992 13.0195 17.7617 13.3008C17.293 13.582 16.6992 13.582 16.2617 13.3008C15.793 13.0195 15.5117 12.5508 15.5117 11.9883C15.5117 11.457 15.793 10.9883 16.2617 10.707C16.6992 10.4258 17.293 10.4258 17.7617 10.707C18.1992 10.9883 18.5117 11.457 18.5117 11.9883ZM13.5117 11.9883C13.5117 12.5508 13.1992 13.0195 12.7617 13.3008C12.293 13.582 11.6992 13.582 11.2617 13.3008C10.793 13.0195 10.5117 12.5508 10.5117 11.9883C10.5117 11.457 10.793 10.9883 11.2617 10.707C11.6992 10.4258 12.293 10.4258 12.7617 10.707C13.1992 10.9883 13.5117 11.457 13.5117 11.9883ZM7.01172 13.4883C6.44922 13.4883 5.98047 13.207 5.69922 12.7383C5.41797 12.3008 5.41797 11.707 5.69922 11.2383C5.98047 10.8008 6.44922 10.4883 7.01172 10.4883C7.54297 10.4883 8.01172 10.8008 8.29297 11.2383C8.57422 11.707 8.57422 12.3008 8.29297 12.7383C8.01172 13.207 7.54297 13.4883 7.01172 13.4883Z" fill="currentColor"/>
|
|
175
|
-
</svg>`,read:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
176
|
-
<path d="M7 6.5C6.71875 6.5 6.5 6.75 6.5 7V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V7C17.5 6.75 17.25 6.5 17 6.5H7ZM5 7C5 5.90625 5.875 5 7 5H17C18.0938 5 19 5.90625 19 7V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17V7ZM15.5312 10.5312L11.5312 14.5312C11.2188 14.8438 10.75 14.8438 10.4688 14.5312L8.46875 12.5312C8.15625 12.25 8.15625 11.7812 8.46875 11.5C8.75 11.1875 9.21875 11.1875 9.53125 11.5L11 12.9688L14.4688 9.46875C14.75 9.1875 15.2188 9.1875 15.5 9.46875C15.8125 9.78125 15.8125 10.25 15.5 10.5312H15.5312Z" fill="currentColor"/>
|
|
177
|
-
</svg>`,archiveRead:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
178
|
-
<path d="M7.5 6.5V15.25H16.5V6.5H7.5ZM6 15.25V6.5C6 5.6875 6.65625 5 7.5 5H16.5C17.3125 5 18 5.6875 18 6.5V15.25C18.4062 15.25 18.75 15.5938 18.75 16C18.75 16.4375 18.4062 16.75 18 16.75H6C5.5625 16.75 5.25 16.4375 5.25 16C5.25 15.5938 5.5625 15.25 6 15.25ZM5 13V14.5H4.5V17.5H19.5V14.5H19V13H19.5C20.3125 13 21 13.6875 21 14.5V17.5C21 18.3438 20.3125 19 19.5 19H4.5C3.65625 19 3 18.3438 3 17.5V14.5C3 13.6875 3.65625 13 4.5 13H5ZM15.0312 9.625L11.6875 12.9688C11.5312 13.0938 11.3438 13.1875 11.1562 13.1875C10.9375 13.1875 10.75 13.0938 10.625 12.9688L8.96875 11.2812C8.65625 11 8.65625 10.5312 8.96875 10.25C9.25 9.9375 9.71875 9.9375 10 10.25L11.1562 11.375L13.9688 8.5625C14.25 8.28125 14.7188 8.28125 15 8.5625C15.3125 8.875 15.3125 9.34375 15 9.625H15.0312Z" fill="currentColor"/>
|
|
179
|
-
</svg>`,unread:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
180
|
-
<path d="M17 6.5H7C6.71875 6.5 6.5 6.75 6.5 7V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V7C17.5 6.75 17.25 6.5 17 6.5ZM7 5H17C18.0938 5 19 5.90625 19 7V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17V7C5 5.90625 5.875 5 7 5Z" fill="currentColor"/>
|
|
181
|
-
</svg>`,unarchive:`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
182
|
-
<path d="M5.5 11C5.0625 11 4.75 10.6875 4.75 10.25V5.75C4.75 5.34375 5.0625 5 5.5 5C5.90625 5 6.25 5.34375 6.25 5.75V8.28125L6.875 7.53125C8.15625 6 10.0625 5 12.25 5C16.0938 5 19.25 8.15625 19.25 12C19.25 15.875 16.0938 19 12.25 19C10.6562 19 9.21875 18.5 8.03125 17.625C7.71875 17.375 7.625 16.9062 7.875 16.5625C8.125 16.2188 8.59375 16.1562 8.9375 16.4062C9.84375 17.0938 11 17.5 12.25 17.5C15.2812 17.5 17.75 15.0625 17.75 12C17.75 8.96875 15.2812 6.5 12.25 6.5C10.5312 6.5 9.03125 7.28125 8 8.5L7.15625 9.5H10C10.4062 9.5 10.75 9.84375 10.75 10.25C10.75 10.6875 10.4062 11 10 11H5.5Z" fill="currentColor"/>
|
|
183
|
-
</svg>`};class Lr extends HTMLElement{constructor(f,v){super(),Yt(this,"_color"),Yt(this,"_svg"),Yt(this,"_iconContainer"),Yt(this,"_style"),this._color=f??Z.black[500],this._svg=v;const m=this.attachShadow({mode:"open"});this._iconContainer=document.createElement("div"),m.appendChild(this._iconContainer),this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._color),m.appendChild(this._style),this.refresh()}getStyles(f){return`
|
|
184
|
-
:host {
|
|
185
|
-
display: inline-block;
|
|
186
|
-
line-height: 0;
|
|
187
|
-
display: flex;
|
|
188
|
-
align-items: center;
|
|
189
|
-
justify-content: center;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
svg {
|
|
193
|
-
width: 24px;
|
|
194
|
-
height: 24px;
|
|
195
|
-
color: ${f};
|
|
196
|
-
}
|
|
197
|
-
`}refresh(){this._svg&&(this._iconContainer.innerHTML=this._svg),this._color&&(this._style.textContent=this.getStyles(this._color))}updateColor(f){this._color=f,this.refresh()}updateSVG(f){this._svg=f,this.refresh()}}customElements.get("courier-icon")||customElements.define("courier-icon",Lr);class qg extends HTMLElement{constructor(){super(),Yt(this,"link");const f=this.attachShadow({mode:"open"});this.link=document.createElement("a"),this.link.setAttribute("part","link");const v=document.createElement("style");v.textContent=`
|
|
198
|
-
:host {
|
|
199
|
-
display: inline-block;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
a {
|
|
203
|
-
text-decoration: none;
|
|
204
|
-
border-radius: 4px;
|
|
205
|
-
cursor: pointer;
|
|
206
|
-
font-weight: 500;
|
|
207
|
-
transition: all 0.2s ease;
|
|
208
|
-
font-family: var(--courier-link-font-family, inherit);
|
|
209
|
-
font-size: var(--courier-link-font-size, inherit);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/* Variants */
|
|
213
|
-
a[data-variant="primary"][data-mode="light"] {
|
|
214
|
-
color: var(--courier-link-color, ${jo.light.colors.link});
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
a[data-variant="primary"][data-mode="light"]:hover {
|
|
218
|
-
opacity: 0.8;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
a[data-variant="primary"][data-mode="light"]:active {
|
|
222
|
-
opacity: 0.6;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
a[data-variant="primary"][data-mode="dark"] {
|
|
226
|
-
color: var(--courier-link-color, ${jo.dark.colors.link});
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
a[data-variant="primary"][data-mode="dark"]:hover {
|
|
230
|
-
opacity: 0.8;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
a[data-variant="primary"][data-mode="dark"]:active {
|
|
234
|
-
opacity: 0.6;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
a[data-underline="true"] {
|
|
238
|
-
text-decoration: underline;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
a:disabled {
|
|
242
|
-
opacity: 0.6;
|
|
243
|
-
cursor: not-allowed;
|
|
244
|
-
pointer-events: none;
|
|
245
|
-
}
|
|
246
|
-
`,f.appendChild(v),f.appendChild(this.link),this.updateVariant(),this.updateUnderline(),this.updateMode()}connectedCallback(){const f=document.createElement("slot");this.link.appendChild(f),this.updateHref()}attributeChangedCallback(f,v,m){if(v!==m)switch(f){case"href":this.updateHref();break;case"variant":case"mode":this.updateVariant();break;case"disabled":this.link.style.pointerEvents=this.hasAttribute("disabled")?"none":"auto",this.link.style.opacity=this.hasAttribute("disabled")?"0.6":"1";break;case"color":this.updateColor();break;case"underline":this.updateUnderline();break;case"target":this.updateTarget();break;case"font-family":this.updateFontFamily();break;case"font-size":this.updateFontSize();break}}updateHref(){const f=this.getAttribute("href");f&&(this.link.href=f)}updateVariant(){const f=this.getAttribute("variant")||"primary",v=this.getAttribute("mode")||"light";this.link.setAttribute("data-variant",f),this.link.setAttribute("data-mode",v)}updateColor(){const f=this.getAttribute("color");f?this.link.style.setProperty("--courier-link-color",f):this.link.style.removeProperty("--courier-link-color")}updateUnderline(){const f=this.getAttribute("underline")==="true";this.link.setAttribute("data-underline",f.toString())}updateMode(){const f=this.getAttribute("mode")||"light";this.link.setAttribute("data-mode",f)}updateTarget(){const f=this.getAttribute("target");f&&(this.link.target=f)}updateFontFamily(){const f=this.getAttribute("font-family");f?this.link.style.setProperty("--courier-link-font-family",f):this.link.style.removeProperty("--courier-link-font-family")}updateFontSize(){const f=this.getAttribute("font-size");f?this.link.style.setProperty("--courier-link-font-size",f):this.link.style.removeProperty("--courier-link-font-size")}}Yt(qg,"observedAttributes",["href","variant","disabled","color","underline","mode","target","font-family","font-size"]),customElements.get("courier-link")||customElements.define("courier-link",qg);class ov extends db{constructor(){super(),Yt(this,"shadow"),this.shadow=this.attachShadow({mode:"open"})}build(f){if(f===null){this.shadow.replaceChildren();return}const v=f??this.defaultElement();this.shadow.replaceChildren(v)}defaultElement(){const f=document.createElement("div");return f.textContent="Default Element Factory",f.style.cssText=`
|
|
247
|
-
background-color: red;
|
|
248
|
-
text-align: center;
|
|
249
|
-
padding: 12px;
|
|
250
|
-
`,f}}class cv extends ov{constructor(f){super(),Yt(this,"_props"),Yt(this,"_title"),Yt(this,"_button"),Yt(this,"_style"),Yt(this,"_buttonClickCallback",null),this._props=f}defaultElement(){var f,v;const m=document.createElement("div");return this._title=document.createElement("h2"),(f=this._props.title)!=null&&f.text&&(this._title.textContent=this._props.title.text),this._button=new uv(this._props.button??es.secondary(this.currentSystemTheme)),this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._props),m.className="container",m.appendChild(this._style),m.appendChild(this._title),m.appendChild(this._button),this.shadow.appendChild(m),(v=this._button)==null||v.addEventListener("click",()=>{this._buttonClickCallback&&this._buttonClickCallback()}),m}onSystemThemeChange(f){this.updateStyles(this._props)}getStyles(f){var v,m,T,A;return`
|
|
251
|
-
:host {
|
|
252
|
-
display: flex;
|
|
253
|
-
align-items: center;
|
|
254
|
-
justify-content: center;
|
|
255
|
-
height: 100%;
|
|
256
|
-
width: 100%;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.container {
|
|
260
|
-
display: flex;
|
|
261
|
-
flex-direction: column;
|
|
262
|
-
align-items: center;
|
|
263
|
-
justify-content: center;
|
|
264
|
-
gap: 16px;
|
|
265
|
-
text-align: center;
|
|
266
|
-
padding: 24px;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.container h2 {
|
|
270
|
-
margin: 0;
|
|
271
|
-
color: ${((v=f.title)==null?void 0:v.textColor)??"red"};
|
|
272
|
-
font-size: ${((m=f.title)==null?void 0:m.fontSize)??"16px"};
|
|
273
|
-
font-weight: ${((T=f.title)==null?void 0:T.fontWeight)??"500"};
|
|
274
|
-
font-family: ${((A=f.title)==null?void 0:A.fontFamily)??"inherit"};
|
|
275
|
-
}
|
|
276
|
-
`}updateStyles(f){this._props=f,this._style&&(this._style.textContent=this.getStyles(f)),this._button&&this._button.updateButton(f.button)}setButtonClickCallback(f){this._buttonClickCallback=f}}customElements.get("courier-info-state")||customElements.define("courier-info-state",cv);class qm extends HTMLElement{constructor(f,v,m,T,A,w,X,M){super(),Yt(this,"_backgroundColor"),Yt(this,"_hoverBackgroundColor"),Yt(this,"_activeBackgroundColor"),Yt(this,"_borderRadius"),Yt(this,"_height"),Yt(this,"_width"),Yt(this,"_style"),Yt(this,"_button"),Yt(this,"_icon"),this._borderRadius=w,this._backgroundColor=m,this._hoverBackgroundColor=T,this._activeBackgroundColor=A,this._height=X,this._width=M;const Y=this.attachShadow({mode:"open"});this._button=document.createElement("button"),this._button.setAttribute("part","button"),this._icon=new Lr(v,f),this._style=document.createElement("style"),this.refresh(),Y.appendChild(this._style),this._button.appendChild(this._icon),Y.appendChild(this._button)}refresh(){this._style.textContent=this.getStyles()}getStyles(){return`
|
|
277
|
-
:host {
|
|
278
|
-
display: inline-block;
|
|
279
|
-
border-radius: ${this._borderRadius??"50%"};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
button {
|
|
283
|
-
border: none;
|
|
284
|
-
border-radius: ${this._borderRadius??"50%"};
|
|
285
|
-
cursor: pointer;
|
|
286
|
-
width: ${this._width??"36px"};
|
|
287
|
-
height: ${this._height??"36px"};
|
|
288
|
-
display: flex;
|
|
289
|
-
align-items: center;
|
|
290
|
-
justify-content: center;
|
|
291
|
-
background: ${this._backgroundColor??"transparent"};
|
|
292
|
-
transition: background-color 0.2s ease;
|
|
293
|
-
touch-action: manipulation;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
button:hover {
|
|
297
|
-
background-color: ${this._hoverBackgroundColor??"red"};
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
button:active {
|
|
301
|
-
background-color: ${this._activeBackgroundColor??"red"};
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
button:disabled {
|
|
305
|
-
opacity: 0.6;
|
|
306
|
-
cursor: not-allowed;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
[part="icon"] {
|
|
310
|
-
display: flex;
|
|
311
|
-
align-items: center;
|
|
312
|
-
justify-content: center;
|
|
313
|
-
width: 24px;
|
|
314
|
-
height: 24px;
|
|
315
|
-
}
|
|
316
|
-
`}updateIconColor(f){this._icon.updateColor(f)}updateIconSVG(f){this._icon.updateSVG(f)}updateBackgroundColor(f){this._backgroundColor=f,this.refresh()}updateHoverBackgroundColor(f){this._hoverBackgroundColor=f,this.refresh()}updateActiveBackgroundColor(f){this._activeBackgroundColor=f,this.refresh()}}customElements.get("courier-icon-button")||customElements.define("courier-icon-button",qm),[{name:"courier-button",class:uv},{name:"courier-icon",class:Lr},{name:"courier-link",class:qg},{name:"courier-info-state",class:cv},{name:"courier-icon-button",class:qm}].forEach(({name:x,class:f})=>{customElements.get(x)||customElements.define(x,f)});const hb=class nv{constructor(){K(this,"_inboxDataSet"),K(this,"_archiveDataSet"),K(this,"_dataStoreListeners",[]),K(this,"_unreadCount"),K(this,"isPaginatingInbox",!1),K(this,"isPaginatingArchive",!1)}static get shared(){return nv.instance||(nv.instance=new nv),nv.instance}get unreadCount(){return this._unreadCount??0}get inboxDataSet(){return this._inboxDataSet??{messages:[],canPaginate:!1,paginationCursor:null}}get archiveDataSet(){return this._archiveDataSet??{messages:[],canPaginate:!1,paginationCursor:null}}addDataStoreListener(f){this._dataStoreListeners.push(f)}removeDataStoreListener(f){this._dataStoreListeners=this._dataStoreListeners.filter(v=>v!==f)}async fetchDataSet(f){var v,m,T,A,w,X,M,Y,ee,ne;if(f.canUseCache)switch(f.feedType){case"inbox":if(this._inboxDataSet)return this._inboxDataSet;break;case"archive":if(this._archiveDataSet)return this._archiveDataSet;break}const V=f.feedType==="inbox"?await((v=De.shared.client)==null?void 0:v.inbox.getMessages()):await((m=De.shared.client)==null?void 0:m.inbox.getArchivedMessages());return{messages:((A=(T=V==null?void 0:V.data)==null?void 0:T.messages)==null?void 0:A.nodes)??[],canPaginate:((M=(X=(w=V==null?void 0:V.data)==null?void 0:w.messages)==null?void 0:X.pageInfo)==null?void 0:M.hasNextPage)??!1,paginationCursor:((ne=(ee=(Y=V==null?void 0:V.data)==null?void 0:Y.messages)==null?void 0:ee.pageInfo)==null?void 0:ne.startCursor)??null}}async fetchUnreadCount(f){var v;return f.canUseCache&&this._unreadCount!==void 0?this._unreadCount:await((v=De.shared.client)==null?void 0:v.inbox.getUnreadMessageCount())??0}async load(f){var v,m,T;try{if(!((v=De.shared.client)!=null&&v.options.userId))throw new Error("User is not signed in");const A=f??{feedType:"inbox",canUseCache:!0},[w,X]=await Promise.all([this.fetchDataSet(A),this.fetchUnreadCount(A)]);switch(A.feedType){case"inbox":this._inboxDataSet=w;break;case"archive":this._archiveDataSet=w;break}this._unreadCount=X,this._dataStoreListeners.forEach(M=>{var Y,ee,ne,V;(ee=(Y=M.events).onDataSetChange)==null||ee.call(Y,w,A.feedType),(V=(ne=M.events).onUnreadCountChange)==null||V.call(ne,this._unreadCount??0)}),await this.connectSocket()}catch(A){(T=(m=De.shared.client)==null?void 0:m.options.logger)==null||T.error("Error loading inbox:",A),this._dataStoreListeners.forEach(w=>{var X,M;(M=(X=w.events).onError)==null||M.call(X,A)})}}async connectSocket(){var f,v,m,T,A,w,X,M,Y,ee,ne,V;const oe=(f=De.shared.client)==null?void 0:f.inbox.socket;try{if(!oe){(m=(v=De.shared.client)==null?void 0:v.options.logger)==null||m.info("CourierInbox socket not available");return}if((w=(T=De.shared.client)==null?void 0:T.options.logger)==null||w.info("CourierInbox socket connectionId:",(A=De.shared.client)==null?void 0:A.options.connectionId),oe.isConnected){(M=(X=De.shared.client)==null?void 0:X.options.logger)==null||M.info("CourierInbox socket already connected. Socket will not attempt reconnection.");return}oe.receivedMessage=ce=>{this.addMessage(ce,0,"inbox")},oe.receivedMessageEvent=ce=>{let ue;switch(ce.messageId&&(ue=this.getMessage({messageId:ce.messageId})),ce.event){case"mark-all-read":this.readAllMessages({canCallApi:!1});break;case"read":ue&&this.readMessage({message:ue,canCallApi:!1});break;case"unread":ue&&this.unreadMessage({message:ue,canCallApi:!1});break;case"opened":ue&&this.openMessage({message:ue,canCallApi:!1});break;case"archive":ue&&this.archiveMessage({message:ue,canCallApi:!1});break;case"archive-read":this.archiveReadMessages({canCallApi:!1});break;case"click":ue&&this.clickMessage({message:ue,canCallApi:!1});break;case"unopened":case"unarchive":break}},await oe.connect(),await oe.sendSubscribe(),oe.keepAlive(),(ee=(Y=De.shared.client)==null?void 0:Y.options.logger)==null||ee.info("CourierInbox socket connected")}catch(ce){(V=(ne=De.shared.client)==null?void 0:ne.options.logger)==null||V.error("Failed to connect socket:",ce)}}getMessage(f){var v,m;return((v=this._inboxDataSet)==null?void 0:v.messages.find(T=>T.messageId===f.messageId))??((m=this._archiveDataSet)==null?void 0:m.messages.find(T=>T.messageId===f.messageId))}async fetchNextPageOfMessages(f){var v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke,fe,xe,Ye,qe,Oe,at,me;switch(f.feedType){case"inbox":if(this.isPaginatingInbox)return null;if((v=this._inboxDataSet)!=null&&v.canPaginate&&this._inboxDataSet.paginationCursor)try{this.isPaginatingInbox=!0;const Ce=await((m=De.shared.client)==null?void 0:m.inbox.getMessages({paginationLimit:De.shared.paginationLimit,startCursor:this._inboxDataSet.paginationCursor})),Re={messages:((A=(T=Ce==null?void 0:Ce.data)==null?void 0:T.messages)==null?void 0:A.nodes)??[],canPaginate:((M=(X=(w=Ce==null?void 0:Ce.data)==null?void 0:w.messages)==null?void 0:X.pageInfo)==null?void 0:M.hasNextPage)??!1,paginationCursor:((ne=(ee=(Y=Ce==null?void 0:Ce.data)==null?void 0:Y.messages)==null?void 0:ee.pageInfo)==null?void 0:ne.startCursor)??null};return this.addPage(Re,"inbox"),Re}catch(Ce){return(oe=(V=De.shared.client)==null?void 0:V.options.logger)==null||oe.error("Error fetching next page of inbox messages:",Ce),null}finally{this.isPaginatingInbox=!1}break;case"archive":if(this.isPaginatingArchive)return null;if((ce=this._archiveDataSet)!=null&&ce.canPaginate&&this._archiveDataSet.paginationCursor)try{this.isPaginatingArchive=!0;const Ce=await((ue=De.shared.client)==null?void 0:ue.inbox.getArchivedMessages({paginationLimit:De.shared.paginationLimit,startCursor:this._archiveDataSet.paginationCursor})),Re={messages:((de=(ae=Ce==null?void 0:Ce.data)==null?void 0:ae.messages)==null?void 0:de.nodes)??[],canPaginate:((xe=(fe=(ke=Ce==null?void 0:Ce.data)==null?void 0:ke.messages)==null?void 0:fe.pageInfo)==null?void 0:xe.hasNextPage)??!1,paginationCursor:((Oe=(qe=(Ye=Ce==null?void 0:Ce.data)==null?void 0:Ye.messages)==null?void 0:qe.pageInfo)==null?void 0:Oe.startCursor)??null};return this.addPage(Re,"archive"),Re}catch(Ce){return(me=(at=De.shared.client)==null?void 0:at.options.logger)==null||me.error("Error fetching next page of archived messages:",Ce),null}finally{this.isPaginatingArchive=!1}break}return null}applyLocalMessageChange(f,v){for(const[m,T]of Object.entries(v))T!==void 0&&this.updateMessage(f,T,m)}async readMessage({message:f,canCallApi:v=!0}){var m,T,A,w;if(!De.shared.client)return;const X=f;if(X.read)return;const M={inbox:(m=this._inboxDataSet)==null?void 0:m.messages.findIndex(Y=>Y.messageId===f.messageId),archive:(T=this._archiveDataSet)==null?void 0:T.messages.findIndex(Y=>Y.messageId===f.messageId)};try{f.read=new Date().toISOString(),this.applyLocalMessageChange(f,M),v&&await De.shared.client.inbox.read({messageId:f.messageId})}catch(Y){this.applyLocalMessageChange(X,M),(w=(A=De.shared.client)==null?void 0:A.options.logger)==null||w.error("Error reading message:",Y)}}async unreadMessage({message:f,canCallApi:v=!0}){var m,T,A,w;if(!De.shared.client)return;const X=f;if(!X.read)return;const M={inbox:(m=this._inboxDataSet)==null?void 0:m.messages.findIndex(Y=>Y.messageId===f.messageId),archive:(T=this._archiveDataSet)==null?void 0:T.messages.findIndex(Y=>Y.messageId===f.messageId)};try{f.read=void 0,this.applyLocalMessageChange(f,M),v&&await De.shared.client.inbox.unread({messageId:f.messageId})}catch(Y){this.applyLocalMessageChange(X,M),(w=(A=De.shared.client)==null?void 0:A.options.logger)==null||w.error("Error unreading message:",Y)}}async openMessage({message:f,canCallApi:v=!0}){var m,T,A,w;if(!De.shared.client)return;const X=f,M={inbox:(m=this._inboxDataSet)==null?void 0:m.messages.findIndex(Y=>Y.messageId===f.messageId),archive:(T=this._archiveDataSet)==null?void 0:T.messages.findIndex(Y=>Y.messageId===f.messageId)};if(!(!M.inbox&&!M.archive)&&!X.opened)try{f.opened=new Date().toISOString(),this.applyLocalMessageChange(f,M),v&&await De.shared.client.inbox.open({messageId:f.messageId})}catch(Y){this.applyLocalMessageChange(X,M),(w=(A=De.shared.client)==null?void 0:A.options.logger)==null||w.error("Error opening message:",Y)}}async clickMessage({message:f,canCallApi:v=!0}){var m,T,A,w;if(De.shared.client)try{(m=f.trackingIds)!=null&&m.clickTrackingId&&v&&await De.shared.client.inbox.click({messageId:f.messageId,trackingId:(T=f.trackingIds)==null?void 0:T.clickTrackingId})}catch(X){(w=(A=De.shared.client)==null?void 0:A.options.logger)==null||w.error("Error clicking message:",X)}}async archiveMessage({message:f,canCallApi:v=!0}){var m,T;if(!De.shared.client)return;const A=f,w=(m=this._inboxDataSet)==null?void 0:m.messages.findIndex(X=>X.messageId===f.messageId);if(w!==void 0)try{if(this.removeMessage(f,w,"inbox"),(T=this._archiveDataSet)!=null&&T.messages){const X=this.findInsertIndex(f,this._archiveDataSet.messages);f.archived=new Date().toISOString(),this.addMessage(f,X,"archive")}v&&await De.shared.client.inbox.archive({messageId:f.messageId})}catch{this.addMessage(A,w,"inbox"),f.archived=void 0,this.removeMessage(f,w,"archive")}}async archiveReadMessages({canCallApi:f=!0}={}){var v;if(!De.shared.client)return;const m=this._inboxDataSet,T=this._archiveDataSet;try{(v=this._inboxDataSet)==null||v.messages.forEach(A=>{var w,X;if(!A.read)return;const M=(w=this._inboxDataSet)==null?void 0:w.messages.findIndex(Y=>Y.messageId===A.messageId);if(M!==void 0&&(this.removeMessage(A,M,"inbox"),(X=this._archiveDataSet)!=null&&X.messages)){const Y=this.findInsertIndex(A,this._archiveDataSet.messages);A.archived=new Date().toISOString(),this.addMessage(A,Y,"archive")}}),this._dataStoreListeners.forEach(A=>{var w,X,M,Y;this._inboxDataSet&&((X=(w=A.events).onDataSetChange)==null||X.call(w,this._inboxDataSet,"inbox")),this._archiveDataSet&&((Y=(M=A.events).onDataSetChange)==null||Y.call(M,this._archiveDataSet,"archive"))}),f&&await De.shared.client.inbox.archiveRead()}catch(A){console.error("Error archiving read messages:",A),this._inboxDataSet&&m&&(this._inboxDataSet.messages=m.messages),this._archiveDataSet&&T&&(this._archiveDataSet.messages=T.messages),this._dataStoreListeners.forEach(w=>{var X,M,Y,ee;this._inboxDataSet&&((M=(X=w.events).onDataSetChange)==null||M.call(X,this._inboxDataSet,"inbox")),this._archiveDataSet&&((ee=(Y=w.events).onDataSetChange)==null||ee.call(Y,this._archiveDataSet,"archive"))})}}async readAllMessages({canCallApi:f=!0}={}){var v,m,T,A;if(!De.shared.client)return;const w=this._inboxDataSet,X=this._archiveDataSet,M=this._unreadCount;try{(v=this._inboxDataSet)==null||v.messages.forEach(Y=>{Y.read||(Y.read=new Date().toISOString())}),(m=this._archiveDataSet)==null||m.messages.forEach(Y=>{Y.read||(Y.read=new Date().toISOString())}),this._unreadCount=0,this._dataStoreListeners.forEach(Y=>{var ee,ne,V,oe,ce,ue;this._inboxDataSet&&((ne=(ee=Y.events).onDataSetChange)==null||ne.call(ee,this._inboxDataSet,"inbox")),this._archiveDataSet&&((oe=(V=Y.events).onDataSetChange)==null||oe.call(V,this._archiveDataSet,"archive")),(ue=(ce=Y.events).onUnreadCountChange)==null||ue.call(ce,this._unreadCount)}),f&&await De.shared.client.inbox.readAll()}catch(Y){(A=(T=De.shared.client)==null?void 0:T.options.logger)==null||A.error("Error reading all messages:",Y),this._inboxDataSet&&w&&(this._inboxDataSet.messages=w.messages),this._archiveDataSet&&X&&(this._archiveDataSet.messages=X.messages),this._unreadCount=M,this._dataStoreListeners.forEach(ee=>{var ne,V,oe,ce,ue,ae;this._inboxDataSet&&((V=(ne=ee.events).onDataSetChange)==null||V.call(ne,this._inboxDataSet,"inbox")),this._archiveDataSet&&((ce=(oe=ee.events).onDataSetChange)==null||ce.call(oe,this._archiveDataSet,"archive")),(ae=(ue=ee.events).onUnreadCountChange)==null||ae.call(ue,this._unreadCount)})}}findInsertIndex(f,v){const m=[...v];m.push(f),m.sort((A,w)=>{const X=new Date(A.created??Date.now()).getTime();return new Date(w.created??Date.now()).getTime()-X});const T=m.findIndex(A=>A.messageId===f.messageId);return Math.max(T-1,0)}addPage(f,v){switch(v){case"inbox":this._inboxDataSet&&(this._inboxDataSet.canPaginate=f.canPaginate,this._inboxDataSet.paginationCursor=f.paginationCursor,this._inboxDataSet.messages=[...this._inboxDataSet.messages,...f.messages]);break;case"archive":this._archiveDataSet&&(this._archiveDataSet.canPaginate=f.canPaginate,this._archiveDataSet.paginationCursor=f.paginationCursor,this._archiveDataSet.messages=[...this._archiveDataSet.messages,...f.messages]);break}this._dataStoreListeners.forEach(m=>{var T,A;return(A=(T=m.events).onPageAdded)==null?void 0:A.call(T,f,v)})}addMessage(f,v,m){var T,A;switch(m){case"inbox":!f.read&&this._unreadCount!==void 0&&(this._unreadCount=this._unreadCount+1),(T=this._inboxDataSet)==null||T.messages.splice(v,0,f);break;case"archive":(A=this._archiveDataSet)==null||A.messages.splice(v,0,f);break}this._dataStoreListeners.forEach(w=>{var X,M,Y,ee;(M=(X=w.events).onMessageAdd)==null||M.call(X,f,v,m),(ee=(Y=w.events).onUnreadCountChange)==null||ee.call(Y,this._unreadCount??0)})}removeMessage(f,v,m){var T,A;switch(m){case"inbox":!f.read&&this._unreadCount!==void 0&&(this._unreadCount=this._unreadCount-1),(T=this._inboxDataSet)==null||T.messages.splice(v,1);break;case"archive":(A=this._archiveDataSet)==null||A.messages.splice(v,1);break}this._dataStoreListeners.forEach(w=>{var X,M,Y,ee;(M=(X=w.events).onMessageRemove)==null||M.call(X,f,v,m),(ee=(Y=w.events).onUnreadCountChange)==null||ee.call(Y,this._unreadCount??0)})}updateMessage(f,v,m){switch(m){case"inbox":this._unreadCount!==void 0&&!f.archived&&(f.read&&(this._unreadCount=Math.max(0,this._unreadCount-1)),f.read||(this._unreadCount=this._unreadCount+1)),this._inboxDataSet&&(this._inboxDataSet.messages[v]=f);break;case"archive":this._archiveDataSet&&(this._archiveDataSet.messages[v]=f);break}this._dataStoreListeners.forEach(T=>{var A,w,X,M;(w=(A=T.events).onMessageUpdate)==null||w.call(A,f,v,m),(M=(X=T.events).onUnreadCountChange)==null||M.call(X,this._unreadCount??0)})}};K(hb,"instance");let al=hb;function PS(x){if(!x.created)return"Now";const f=new Date,v=new Date(x.created),m=Math.floor((f.getTime()-v.getTime())/1e3);return m<60?`${m}s`:m<3600?`${Math.floor(m/60)}m`:m<86400?`${Math.floor(m/3600)}h`:m<604800?`${Math.floor(m/86400)}d`:m<31536e3?`${Math.floor(m/604800)}w`:`${Math.floor(m/31536e3)}y`}class mb extends HTMLElement{constructor(f){super(),K(this,"_theme"),K(this,"_options",[]),K(this,"_style"),this._theme=f;const v=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._style.textContent=this.getStyles(),v.appendChild(this._style);const m=document.createElement("ul");m.className="menu",v.appendChild(m)}getStyles(){var f,v,m;const T=(m=(v=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:v.item)==null?void 0:m.menu;return`
|
|
317
|
-
:host {
|
|
318
|
-
display: block;
|
|
319
|
-
position: absolute;
|
|
320
|
-
background: ${(T==null?void 0:T.backgroundColor)??"red"};
|
|
321
|
-
border: ${(T==null?void 0:T.border)??"1px solid red"};
|
|
322
|
-
border-radius: ${(T==null?void 0:T.borderRadius)??"0px"};
|
|
323
|
-
box-shadow: ${(T==null?void 0:T.shadow)??"0 2px 8px red"};
|
|
324
|
-
user-select: none;
|
|
325
|
-
opacity: 0;
|
|
326
|
-
pointer-events: none;
|
|
327
|
-
transition: opacity 0.15s;
|
|
328
|
-
overflow: hidden;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
:host(.visible) {
|
|
332
|
-
opacity: 1;
|
|
333
|
-
pointer-events: auto;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
ul.menu {
|
|
337
|
-
list-style: none;
|
|
338
|
-
margin: 0;
|
|
339
|
-
padding: 0;
|
|
340
|
-
display: flex;
|
|
341
|
-
flex-direction: row;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
li.menu-item {
|
|
345
|
-
display: flex;
|
|
346
|
-
align-items: center;
|
|
347
|
-
justify-content: center;
|
|
348
|
-
cursor: pointer;
|
|
349
|
-
border-bottom: none;
|
|
350
|
-
background: transparent;
|
|
351
|
-
}
|
|
352
|
-
`}setOptions(f){this._options=f,this.renderMenu()}renderMenu(){var f,v,m,T;const A=(f=this.shadowRoot)==null?void 0:f.querySelector("ul.menu");if(!A)return;A.innerHTML="";const w=(T=(m=(v=this._theme.inbox)==null?void 0:v.list)==null?void 0:m.item)==null?void 0:T.menu,X=M=>{M.stopPropagation(),M.preventDefault()};this._options.forEach(M=>{var Y,ee,ne;const V=new qm(M.icon.svg,M.icon.color,w==null?void 0:w.backgroundColor,(Y=w==null?void 0:w.item)==null?void 0:Y.hoverBackgroundColor,(ee=w==null?void 0:w.item)==null?void 0:ee.activeBackgroundColor,(ne=w==null?void 0:w.item)==null?void 0:ne.borderRadius),oe=ce=>{X(ce),M.onClick()};V.addEventListener("click",oe),V.addEventListener("touchstart",X),V.addEventListener("touchend",oe),V.addEventListener("touchmove",X),V.addEventListener("mousedown",X),V.addEventListener("mouseup",X),A.appendChild(V)})}show(){this.classList.add("visible")}hide(){this.classList.remove("visible")}}customElements.get("courier-list-item-menu")||customElements.define("courier-list-item-menu",mb);class pb extends HTMLElement{constructor(f){super(),K(this,"_theme"),K(this,"_message",null),K(this,"_feedType","inbox"),K(this,"_isMobile",!1),K(this,"_titleElement"),K(this,"_subtitleElement"),K(this,"_timeElement"),K(this,"_style"),K(this,"_menu"),K(this,"_unreadIndicator"),K(this,"_actionsContainer"),K(this,"_longPressTimeout",null),K(this,"_isLongPress",!1),K(this,"onItemClick",null),K(this,"onItemLongPress",null),K(this,"onItemActionClick",null),this._theme=f,this._isMobile="ontouchstart"in window;const v=this.attachShadow({mode:"open"}),m=document.createElement("div");m.className="content-container",this._titleElement=document.createElement("p"),this._titleElement.setAttribute("part","title"),this._subtitleElement=document.createElement("p"),this._subtitleElement.setAttribute("part","subtitle"),this._actionsContainer=document.createElement("div"),this._actionsContainer.className="actions-container",m.appendChild(this._titleElement),m.appendChild(this._subtitleElement),m.appendChild(this._actionsContainer),this._timeElement=document.createElement("p"),this._timeElement.setAttribute("part","time"),this._unreadIndicator=document.createElement("div"),this._unreadIndicator.className="unread-indicator",this._style=document.createElement("style"),this._refreshStyles(),this._menu=new mb(this._theme),this._menu.setOptions(this._getMenuOptions()),v.append(this._style,this._unreadIndicator,m,this._timeElement,this._menu);const T=A=>{A.stopPropagation(),A.preventDefault()};this._menu.addEventListener("mousedown",T),this._menu.addEventListener("pointerdown",T),this._menu.addEventListener("click",T),this.addEventListener("click",A=>{this._menu.contains(A.target)||A.composedPath().includes(this._menu)||this._message&&this.onItemClick&&!(A.target instanceof Lr)&&!this._isLongPress&&this.onItemClick(this._message)}),this._setupHoverBehavior(),this._setupLongPressBehavior()}_setupHoverBehavior(){this._isMobile||(this.addEventListener("mouseenter",()=>{this._isLongPress=!1,this._showMenu()}),this.addEventListener("mouseleave",()=>this._hideMenu()))}_setupLongPressBehavior(){var f,v,m;const T=(m=(v=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:v.item)==null?void 0:m.menu;if(!(T!=null&&T.enabled))return;const A=T.longPress;this.addEventListener("touchstart",()=>{this._longPressTimeout=window.setTimeout(()=>{this._isLongPress=!0,this._showMenu(),this._message&&this.onItemLongPress&&(this.onItemLongPress(this._message),navigator.vibrate&&navigator.vibrate((A==null?void 0:A.vibrationDuration)??50)),setTimeout(()=>{this._hideMenu(),this._isLongPress=!1},(A==null?void 0:A.displayDuration)??2e3)},650)},{passive:!0}),this.addEventListener("touchend",()=>{this._longPressTimeout&&(window.clearTimeout(this._longPressTimeout),this._longPressTimeout=null)})}setOnLongPress(f){this.onItemLongPress=f}_getMenuOptions(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke,fe;const xe=(T=(m=(v=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:v.item)==null?void 0:m.menu)==null?void 0:T.item;let Ye=[];return(A=this._message)!=null&&A.archived||Ye.push({id:(w=this._message)!=null&&w.read?"unread":"read",icon:{svg:(X=this._message)!=null&&X.read?(M=xe==null?void 0:xe.unread)==null?void 0:M.svg:(Y=xe==null?void 0:xe.read)==null?void 0:Y.svg,color:(ee=this._message)!=null&&ee.read?(ne=xe==null?void 0:xe.unread)==null?void 0:ne.color:((V=xe==null?void 0:xe.read)==null?void 0:V.color)??"red"},onClick:()=>{this._message&&(this._message.read?al.shared.unreadMessage({message:this._message}):al.shared.readMessage({message:this._message}))}}),Ye.push({id:(oe=this._message)!=null&&oe.archived?"unarchive":"archive",icon:{svg:(ce=this._message)!=null&&ce.archived?(ue=xe==null?void 0:xe.unarchive)==null?void 0:ue.svg:(ae=xe==null?void 0:xe.archive)==null?void 0:ae.svg,color:(de=this._message)!=null&&de.archived?(ke=xe==null?void 0:xe.unarchive)==null?void 0:ke.color:((fe=xe==null?void 0:xe.archive)==null?void 0:fe.color)??"red"},onClick:()=>{this._message&&(this._message.archived?alert("unarchive"):al.shared.archiveMessage({message:this._message}))}}),Ye}_showMenu(){var f,v,m;const T=(m=(v=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:v.item)==null?void 0:m.menu;T&&T.enabled&&(this._menu.setOptions(this._getMenuOptions()),this._menu.style.display="block",this._menu.show(),this._timeElement.style.opacity="0")}_hideMenu(){var f,v,m;const T=(m=(v=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:v.item)==null?void 0:m.menu;T&&T.enabled&&(this._menu.hide(),this._menu.style.display="none",this._timeElement.style.opacity="1")}_getStyles(){var f,v,m,T,A,w,X,M,Y,ee,ne;const V=(v=(f=this._theme.inbox)==null?void 0:f.list)==null?void 0:v.item;return`
|
|
353
|
-
:host {
|
|
354
|
-
display: flex;
|
|
355
|
-
flex-direction: row;
|
|
356
|
-
align-items: flex-start;
|
|
357
|
-
justify-content: space-between;
|
|
358
|
-
border-bottom: ${(V==null?void 0:V.divider)??"1px solid red"};
|
|
359
|
-
font-family: inherit;
|
|
360
|
-
cursor: pointer;
|
|
361
|
-
transition: background-color 0.2s ease;
|
|
362
|
-
margin: 0;
|
|
363
|
-
width: 100%;
|
|
364
|
-
box-sizing: border-box;
|
|
365
|
-
padding: 12px 20px;
|
|
366
|
-
position: relative;
|
|
367
|
-
background-color: ${(V==null?void 0:V.backgroundColor)??"transparent"};
|
|
368
|
-
user-select: none;
|
|
369
|
-
-webkit-user-select: none;
|
|
370
|
-
-moz-user-select: none;
|
|
371
|
-
-ms-user-select: none;
|
|
372
|
-
touch-action: manipulation;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/* ───────────────────────── Base hover / active ────────────────── */
|
|
376
|
-
@media (hover: hover) {
|
|
377
|
-
:host(:hover) {
|
|
378
|
-
background-color: ${(V==null?void 0:V.hoverBackgroundColor)??"red"};
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
:host(:active) {
|
|
382
|
-
background-color: ${(V==null?void 0:V.activeBackgroundColor)??"red"};
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
/* ───────────────────────── Menu hover / active ────────────────── */
|
|
386
|
-
@media (hover: hover) {
|
|
387
|
-
:host(:hover):has(courier-list-item-menu:hover, courier-list-item-menu *:hover, courier-button:hover, courier-button *:hover) {
|
|
388
|
-
background-color: ${(V==null?void 0:V.backgroundColor)??"transparent"};
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
:host(:active):has(courier-list-item-menu:active, courier-list-item-menu *:active, courier-button:active, courier-button *:active) {
|
|
392
|
-
background-color: ${(V==null?void 0:V.backgroundColor)??"transparent"};
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
:host(:last-child) {
|
|
396
|
-
border-bottom: none;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.unread-indicator {
|
|
400
|
-
position: absolute;
|
|
401
|
-
top: 28px;
|
|
402
|
-
left: 6px;
|
|
403
|
-
width: 8px;
|
|
404
|
-
height: 8px;
|
|
405
|
-
border-radius: 50%;
|
|
406
|
-
background-color: ${(V==null?void 0:V.unreadIndicatorColor)??"red"};
|
|
407
|
-
display: none;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
:host(.unread) .unread-indicator {
|
|
411
|
-
display: block;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.content-container {
|
|
415
|
-
flex: 1;
|
|
416
|
-
display: flex;
|
|
417
|
-
flex-direction: column;
|
|
418
|
-
margin-right: 12px;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
p {
|
|
422
|
-
margin: 0;
|
|
423
|
-
overflow-wrap: break-word;
|
|
424
|
-
word-break: break-word;
|
|
425
|
-
hyphens: auto;
|
|
426
|
-
line-height: 1.4;
|
|
427
|
-
user-select: none;
|
|
428
|
-
-webkit-user-select: none;
|
|
429
|
-
-moz-user-select: none;
|
|
430
|
-
-ms-user-select: none;
|
|
431
|
-
text-align: left;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
p[part='title'] {
|
|
435
|
-
font-family: ${((m=V==null?void 0:V.title)==null?void 0:m.family)??"inherit"};
|
|
436
|
-
font-size: ${((T=V==null?void 0:V.title)==null?void 0:T.size)??"14px"};
|
|
437
|
-
color: ${((A=V==null?void 0:V.title)==null?void 0:A.color)??"red"};
|
|
438
|
-
margin-bottom: 4px;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
p[part='subtitle'] {
|
|
442
|
-
font-family: ${((w=V==null?void 0:V.subtitle)==null?void 0:w.family)??"inherit"};
|
|
443
|
-
font-size: ${((X=V==null?void 0:V.subtitle)==null?void 0:X.size)??"14px"};
|
|
444
|
-
color: ${((M=V==null?void 0:V.subtitle)==null?void 0:M.color)??"red"};
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
p[part='time'] {
|
|
448
|
-
font-family: ${((Y=V==null?void 0:V.time)==null?void 0:Y.family)??"inherit"};
|
|
449
|
-
font-size: ${((ee=V==null?void 0:V.time)==null?void 0:ee.size)??"14px"};
|
|
450
|
-
color: ${((ne=V==null?void 0:V.time)==null?void 0:ne.color)??"red"};
|
|
451
|
-
text-align: right;
|
|
452
|
-
white-space: nowrap;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
courier-list-item-menu {
|
|
456
|
-
z-index: 1;
|
|
457
|
-
position: absolute;
|
|
458
|
-
top: 8px;
|
|
459
|
-
right: 8px;
|
|
460
|
-
display: none; /* becomes block while visible */
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.actions-container {
|
|
464
|
-
display: flex;
|
|
465
|
-
margin-top: 10px;
|
|
466
|
-
flex-wrap: wrap;
|
|
467
|
-
flex-direction: row;
|
|
468
|
-
align-items: center;
|
|
469
|
-
gap: 8px;
|
|
470
|
-
display: none;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
`}_refreshStyles(){this._style.textContent=this._getStyles()}connectedCallback(){var f,v;const m=this.getAttribute("message"),T=this.getAttribute("feed-type");if(T&&(this._feedType=T),m)try{this._message=JSON.parse(m),this._updateContent()}catch(A){(v=(f=De.shared.client)==null?void 0:f.options.logger)==null||v.error("CourierListItem – failed to parse message:",A)}}setMessage(f,v){this._message=f,this._feedType=v,this._updateContent()}setOnItemClick(f){this.onItemClick=f}setOnItemActionClick(f){this.onItemActionClick=f}setOnItemLongPress(f){this.onItemLongPress=f}_updateContent(){var f,v,m,T,A,w;if(!this._message){this._titleElement.textContent="",this._subtitleElement.textContent="";return}this.classList.toggle("unread",!this._message.read&&this._feedType!=="archive"),this._titleElement.textContent=this._message.title||"Untitled Message",this._subtitleElement.textContent=this._message.preview||this._message.body||"",this._timeElement.textContent=PS(this._message),this._menu.setOptions(this._getMenuOptions());const X=((f=this._message)==null?void 0:f.actions)&&this._message.actions.length>0;this._actionsContainer.style.display=X?"flex":"none";const M=(T=(m=(v=this._theme.inbox)==null?void 0:v.list)==null?void 0:m.item)==null?void 0:T.actions;(w=(A=this._message)==null?void 0:A.actions)==null||w.forEach(Y=>{var ee,ne,V,oe;const ce=new uv({text:Y.content,variant:"secondary",backgroundColor:M==null?void 0:M.backgroundColor,hoverBackgroundColor:M==null?void 0:M.hoverBackgroundColor,activeBackgroundColor:M==null?void 0:M.activeBackgroundColor,border:M==null?void 0:M.border,borderRadius:M==null?void 0:M.borderRadius,shadow:M==null?void 0:M.shadow,fontFamily:(ee=M==null?void 0:M.font)==null?void 0:ee.family,fontSize:(ne=M==null?void 0:M.font)==null?void 0:ne.size,fontWeight:(V=M==null?void 0:M.font)==null?void 0:V.weight,textColor:(oe=M==null?void 0:M.font)==null?void 0:oe.color,onClick:()=>{this._message&&this.onItemActionClick&&this.onItemActionClick(this._message,Y)}});this._actionsContainer.appendChild(ce)})}}customElements.get("courier-list-item")||customElements.define("courier-list-item",pb);class vb extends HTMLElement{constructor(f,v){super(),K(this,"_shadow"),this._shadow=this.attachShadow({mode:"open"});const m=document.createElement("style");m.textContent=this.getStyles(v),this._shadow.appendChild(m);const T=new sv(f,35),A=new sv(f,100),w=new sv(f,82);this._shadow.appendChild(T),this._shadow.appendChild(A),this._shadow.appendChild(w)}getStyles(f){return`
|
|
474
|
-
:host {
|
|
475
|
-
display: flex;
|
|
476
|
-
flex-direction: column;
|
|
477
|
-
gap: 12px;
|
|
478
|
-
padding: 12px;
|
|
479
|
-
width: 100%;
|
|
480
|
-
box-sizing: border-box;
|
|
481
|
-
opacity: ${f};
|
|
482
|
-
}
|
|
483
|
-
`}}customElements.get("courier-inbox-skeleton-list-item")||customElements.define("courier-inbox-skeleton-list-item",vb);class sv extends HTMLElement{constructor(f,v){super(),K(this,"_shadow"),this._shadow=this.attachShadow({mode:"open"});const m=document.createElement("style");m.textContent=this.getStyles(f,v),this._shadow.appendChild(m);const T=document.createElement("div");T.className="skeleton-item",this._shadow.appendChild(T)}getStyles(f,v){var m,T,A,w,X,M,Y,ee,ne,V,oe,ce;const ue=((A=(T=(m=f.inbox)==null?void 0:m.loading)==null?void 0:T.animation)==null?void 0:A.barColor)??"#000",ae=ue.length===4?`#${ue[1]}${ue[1]}${ue[2]}${ue[2]}${ue[3]}${ue[3]}`:ue,de=parseInt(ae.slice(1,3),16),ke=parseInt(ae.slice(3,5),16),fe=parseInt(ae.slice(5,7),16),xe=`rgba(${de}, ${ke}, ${fe}, 0.8)`,Ye=`rgba(${de}, ${ke}, ${fe}, 0.4)`;return`
|
|
484
|
-
:host {
|
|
485
|
-
display: flex;
|
|
486
|
-
height: 100%;
|
|
487
|
-
width: ${v}%;
|
|
488
|
-
align-items: flex-start;
|
|
489
|
-
justify-content: flex-start;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
.skeleton-item {
|
|
493
|
-
height: ${((M=(X=(w=f.inbox)==null?void 0:w.loading)==null?void 0:X.animation)==null?void 0:M.barHeight)??"14px"};
|
|
494
|
-
width: 100%;
|
|
495
|
-
background: linear-gradient(
|
|
496
|
-
90deg,
|
|
497
|
-
${xe} 25%,
|
|
498
|
-
${Ye} 50%,
|
|
499
|
-
${xe} 75%
|
|
500
|
-
);
|
|
501
|
-
background-size: 200% 100%;
|
|
502
|
-
animation: shimmer ${((ne=(ee=(Y=f.inbox)==null?void 0:Y.loading)==null?void 0:ee.animation)==null?void 0:ne.duration)??"2s"} ease-in-out infinite;
|
|
503
|
-
border-radius: ${((ce=(oe=(V=f.inbox)==null?void 0:V.loading)==null?void 0:oe.animation)==null?void 0:ce.barBorderRadius)??"14px"};
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
@keyframes shimmer {
|
|
507
|
-
0% {
|
|
508
|
-
background-position: 200% 0;
|
|
509
|
-
}
|
|
510
|
-
100% {
|
|
511
|
-
background-position: -200% 0;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
`}}customElements.get("courier-skeleton-animated-row")||customElements.define("courier-skeleton-animated-row",sv);class Yg extends ov{constructor(f){super(),K(this,"_theme"),this._theme=f}defaultElement(){const f=document.createElement("div");f.className="list";const v=document.createElement("style");v.textContent=this.getStyles(),f.appendChild(v);for(let m=0;m<3;m++){const T=new vb(this._theme,1/(m+1));f.appendChild(T)}return this.shadow.appendChild(f),f}getStyles(){var f,v;return`
|
|
515
|
-
:host {
|
|
516
|
-
display: flex;
|
|
517
|
-
height: 100%;
|
|
518
|
-
width: 100%;
|
|
519
|
-
align-items: flex-start;
|
|
520
|
-
justify-content: flex-start;
|
|
521
|
-
overflow: hidden;
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
.list {
|
|
525
|
-
display: flex;
|
|
526
|
-
flex-direction: column;
|
|
527
|
-
gap: 8px;
|
|
528
|
-
width: 100%;
|
|
529
|
-
overflow: hidden;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
.list > * {
|
|
533
|
-
border-bottom: ${((v=(f=this._theme.inbox)==null?void 0:f.loading)==null?void 0:v.divider)??"1px solid red"};
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.list > *:last-child {
|
|
537
|
-
border-bottom: none;
|
|
538
|
-
}
|
|
539
|
-
`}}customElements.get("courier-inbox-skeleton-list")||customElements.define("courier-inbox-skeleton-list",Yg);class gb extends HTMLElement{constructor(f){super(),K(this,"skeletonLoadingList"),K(this,"observer"),K(this,"customItem"),K(this,"onPaginationTrigger"),this.onPaginationTrigger=f.onPaginationTrigger,this.customItem=f.customItem;const v=this.attachShadow({mode:"open"}),m=document.createElement("style");if(m.textContent=this.getStyles(),v.appendChild(m),this.customItem)v.appendChild(this.customItem);else{const T=document.createElement("div");T.className="skeleton-container",this.skeletonLoadingList=new Yg(f.theme),this.skeletonLoadingList.build(void 0),T.appendChild(this.skeletonLoadingList),v.appendChild(T)}this.observer=new IntersectionObserver(T=>{T.forEach(A=>{A.isIntersecting&&this.onPaginationTrigger()})}),this.observer.observe(this)}getStyles(){return`
|
|
540
|
-
:host {
|
|
541
|
-
padding: 0;
|
|
542
|
-
margin: 0;
|
|
543
|
-
box-sizing: border-box;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
.skeleton-container {
|
|
547
|
-
height: 150%;
|
|
548
|
-
}
|
|
549
|
-
`}disconnectedCallback(){this.observer.disconnect()}}customElements.get("courier-inbox-pagination-list-item")||customElements.define("courier-inbox-pagination-list-item",gb);class yb extends HTMLElement{constructor(f){super(),K(this,"_themeSubscription"),K(this,"_messages",[]),K(this,"_feedType","inbox"),K(this,"_isLoading",!0),K(this,"_error",null),K(this,"_canPaginate",!1),K(this,"_onMessageClick",null),K(this,"_onMessageActionClick",null),K(this,"_onMessageLongPress",null),K(this,"_onRefresh"),K(this,"_onPaginationTrigger"),K(this,"_listItemFactory"),K(this,"_paginationItemFactory"),K(this,"_loadingStateFactory"),K(this,"_emptyStateFactory"),K(this,"_errorStateFactory"),this._themeSubscription=f.themeManager.subscribe(T=>{this.refreshTheme()}),this._onRefresh=f.onRefresh,this._onPaginationTrigger=f.onPaginationTrigger,this._onMessageClick=f.onMessageClick,this._onMessageActionClick=f.onMessageActionClick,this._onMessageLongPress=f.onMessageLongPress;const v=this.attachShadow({mode:"open"}),m=document.createElement("style");m.textContent=this.getStyles(),v.appendChild(m)}get messages(){return this._messages}getStyles(){var f;const v=(f=this._themeSubscription.manager.getTheme().inbox)==null?void 0:f.list;return`
|
|
550
|
-
:host {
|
|
551
|
-
flex: 1;
|
|
552
|
-
width: 100%;
|
|
553
|
-
background-color: ${(v==null?void 0:v.backgroundColor)??Z.white[500]};
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
ul {
|
|
557
|
-
list-style: none;
|
|
558
|
-
padding: 0;
|
|
559
|
-
margin: 0;
|
|
560
|
-
height: 100%;
|
|
561
|
-
}
|
|
562
|
-
`}reset(){for(var f,v;(f=this.shadowRoot)!=null&&f.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild);const m=document.createElement("style");m.textContent=this.getStyles(),(v=this.shadowRoot)==null||v.appendChild(m)}setDataSet(f){this._messages=[...f.messages],this._canPaginate=!!f.canPaginate,this._error=null,this._isLoading=!1,this.render()}addPage(f){this._messages=[...this._messages,...f.messages],this._canPaginate=!!f.canPaginate,this._error=null,this._isLoading=!1,this.render()}addMessage(f,v=0){this._messages.splice(v,0,f),this.render()}removeMessage(f=0){this._messages.splice(f,1),this.render()}updateMessage(f,v=0){this._messages[v]=f,this.render()}setFeedType(f){this._feedType=f,this._error=null,this._isLoading=!0,this.render()}setLoading(f){this._error=null,this._isLoading=f,this.render()}setError(f){this._error=f,this._isLoading=!1,this._messages=[],this.render()}setErrorNoClient(){this.setError(new Error("No user signed in"))}handleRetry(){this._onRefresh()}handleRefresh(){this._onRefresh()}render(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke,fe,xe,Ye,qe,Oe,at,me,Ce,Re,Ee,et,Mt,vt,D,I,te,ge,q,pe,ie,ve,Be,rt,$e,fn,xt,Vt,bl,On,ei,Un,au,Qo,Hn,fl,Ca,Qu,iu,Aa,uu;this.reset();const Pl=this._themeSubscription.manager.getTheme();if(this._error){const re=(f=Pl.inbox)==null?void 0:f.error,zt=new cv({title:{text:((v=re==null?void 0:re.title)==null?void 0:v.text)??this._error.message,textColor:(T=(m=re==null?void 0:re.title)==null?void 0:m.font)==null?void 0:T.color,fontFamily:(w=(A=re==null?void 0:re.title)==null?void 0:A.font)==null?void 0:w.family,fontSize:(M=(X=re==null?void 0:re.title)==null?void 0:X.font)==null?void 0:M.size,fontWeight:(ee=(Y=re==null?void 0:re.title)==null?void 0:Y.font)==null?void 0:ee.weight},button:{text:(ne=re==null?void 0:re.button)==null?void 0:ne.text,backgroundColor:(V=re==null?void 0:re.button)==null?void 0:V.backgroundColor,hoverBackgroundColor:(oe=re==null?void 0:re.button)==null?void 0:oe.hoverBackgroundColor,activeBackgroundColor:(ce=re==null?void 0:re.button)==null?void 0:ce.activeBackgroundColor,textColor:(ae=(ue=re==null?void 0:re.button)==null?void 0:ue.font)==null?void 0:ae.color,fontFamily:(ke=(de=re==null?void 0:re.button)==null?void 0:de.font)==null?void 0:ke.family,fontSize:(xe=(fe=re==null?void 0:re.button)==null?void 0:fe.font)==null?void 0:xe.size,fontWeight:(qe=(Ye=re==null?void 0:re.button)==null?void 0:Ye.font)==null?void 0:qe.weight,shadow:(Oe=re==null?void 0:re.button)==null?void 0:Oe.shadow,border:(at=re==null?void 0:re.button)==null?void 0:at.border,borderRadius:(me=re==null?void 0:re.button)==null?void 0:me.borderRadius}});zt.build((Ce=this._errorStateFactory)==null?void 0:Ce.call(this,{feedType:this._feedType,error:this._error})),zt.setButtonClickCallback(()=>this.handleRetry()),(Re=this.shadowRoot)==null||Re.appendChild(zt);return}if(this._isLoading){const re=new Yg(Pl);re.build((Ee=this._loadingStateFactory)==null?void 0:Ee.call(this,{feedType:this._feedType})),(et=this.shadowRoot)==null||et.appendChild(re);return}if(this._messages.length===0){const re=(Mt=Pl.inbox)==null?void 0:Mt.empty,zt=new cv({title:{text:((vt=re==null?void 0:re.title)==null?void 0:vt.text)??`No ${this._feedType} messages yet`,textColor:(I=(D=re==null?void 0:re.title)==null?void 0:D.font)==null?void 0:I.color,fontFamily:(ge=(te=re==null?void 0:re.title)==null?void 0:te.font)==null?void 0:ge.family,fontSize:(pe=(q=re==null?void 0:re.title)==null?void 0:q.font)==null?void 0:pe.size,fontWeight:(ve=(ie=re==null?void 0:re.title)==null?void 0:ie.font)==null?void 0:ve.weight},button:{text:(Be=re==null?void 0:re.button)==null?void 0:Be.text,backgroundColor:(rt=re==null?void 0:re.button)==null?void 0:rt.backgroundColor,hoverBackgroundColor:($e=re==null?void 0:re.button)==null?void 0:$e.hoverBackgroundColor,activeBackgroundColor:(fn=re==null?void 0:re.button)==null?void 0:fn.activeBackgroundColor,textColor:(Vt=(xt=re==null?void 0:re.button)==null?void 0:xt.font)==null?void 0:Vt.color,fontFamily:(On=(bl=re==null?void 0:re.button)==null?void 0:bl.font)==null?void 0:On.family,fontSize:(Un=(ei=re==null?void 0:re.button)==null?void 0:ei.font)==null?void 0:Un.size,fontWeight:(Qo=(au=re==null?void 0:re.button)==null?void 0:au.font)==null?void 0:Qo.weight,shadow:(Hn=re==null?void 0:re.button)==null?void 0:Hn.shadow,border:(fl=re==null?void 0:re.button)==null?void 0:fl.border,borderRadius:(Ca=re==null?void 0:re.button)==null?void 0:Ca.borderRadius}});zt.build((Qu=this._emptyStateFactory)==null?void 0:Qu.call(this,{feedType:this._feedType})),zt.setButtonClickCallback(()=>this.handleRefresh()),(iu=this.shadowRoot)==null||iu.appendChild(zt);return}const ou=document.createElement("ul");if((Aa=this.shadowRoot)==null||Aa.appendChild(ou),this._messages.forEach((re,zt)=>{if(this._listItemFactory){ou.appendChild(this._listItemFactory({message:re,index:zt}));return}const Bt=new pb(Pl);Bt.setMessage(re,this._feedType),Bt.setOnItemClick(Sl=>{var Ot;return(Ot=this._onMessageClick)==null?void 0:Ot.call(this,Sl,zt)}),Bt.setOnItemActionClick((Sl,Ot)=>{var cu;return(cu=this._onMessageActionClick)==null?void 0:cu.call(this,Sl,Ot,zt)}),Bt.setOnItemLongPress(Sl=>{var Ot;return(Ot=this._onMessageLongPress)==null?void 0:Ot.call(this,Sl,zt)}),ou.appendChild(Bt)}),this._canPaginate){const re=new gb({theme:Pl,customItem:(uu=this._paginationItemFactory)==null?void 0:uu.call(this,{feedType:this._feedType}),onPaginationTrigger:()=>{var zt;return(zt=this._onPaginationTrigger)==null?void 0:zt.call(this,this._feedType)}});ou.appendChild(re)}}setLoadingStateFactory(f){this._loadingStateFactory=f,this.render()}setEmptyStateFactory(f){this._emptyStateFactory=f,this.render()}setErrorStateFactory(f){this._errorStateFactory=f,this.render()}setListItemFactory(f){this._listItemFactory=f,this.render()}setPaginationItemFactory(f){this._paginationItemFactory=f,this.render()}refreshTheme(){this.render()}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-list")||customElements.define("courier-inbox-list",yb);class bb extends HTMLElement{constructor(f){super(),K(this,"_option"),K(this,"_isSelected"),K(this,"_content"),K(this,"_itemIcon"),K(this,"_title"),K(this,"_selectionIcon"),K(this,"_style"),K(this,"_themeManager"),this._option=f.option,this._isSelected=f.isSelected,this._themeManager=f.themeManager;const v=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._content=document.createElement("div"),this._content.className="menu-item",this._itemIcon=new Lr(this._option.icon.svg??we.inbox),this._itemIcon.setAttribute("size","16"),this._title=document.createElement("p"),this._title.textContent=this._option.text;const m=document.createElement("div");m.className="spacer",this._selectionIcon=new Lr(we.check),this._content.appendChild(this._itemIcon),this._content.appendChild(this._title),this._content.appendChild(m),f.selectable&&this._content.appendChild(this._selectionIcon),v.appendChild(this._style),v.appendChild(this._content),this._selectionIcon.style.display=this._isSelected?"block":"none",this.refreshTheme()}getStyles(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke,fe,xe,Ye,qe,Oe,at,me,Ce,Re,Ee,et,Mt,vt,D,I,te;const ge=this._themeManager.getTheme();return`
|
|
563
|
-
:host {
|
|
564
|
-
display: flex;
|
|
565
|
-
flex-direction: row;
|
|
566
|
-
padding: 6px 12px;
|
|
567
|
-
cursor: pointer;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
:host(:hover) {
|
|
571
|
-
background-color: ${((A=(T=(m=(v=(f=ge.inbox)==null?void 0:f.header)==null?void 0:v.menus)==null?void 0:m.popup)==null?void 0:T.list)==null?void 0:A.hoverBackgroundColor)??"red"};
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
:host(:active) {
|
|
575
|
-
background-color: ${((ee=(Y=(M=(X=(w=ge.inbox)==null?void 0:w.header)==null?void 0:X.menus)==null?void 0:M.popup)==null?void 0:Y.list)==null?void 0:ee.activeBackgroundColor)??"red"};
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
.menu-item {
|
|
579
|
-
display: flex;
|
|
580
|
-
align-items: center;
|
|
581
|
-
width: 100%;
|
|
582
|
-
gap: 12px;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.spacer {
|
|
586
|
-
flex: 1;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
p {
|
|
590
|
-
margin: 0;
|
|
591
|
-
font-family: ${((ae=(ue=(ce=(oe=(V=(ne=ge.inbox)==null?void 0:ne.header)==null?void 0:V.menus)==null?void 0:oe.popup)==null?void 0:ce.list)==null?void 0:ue.font)==null?void 0:ae.family)??"inherit"};
|
|
592
|
-
font-weight: ${((qe=(Ye=(xe=(fe=(ke=(de=ge.inbox)==null?void 0:de.header)==null?void 0:ke.menus)==null?void 0:fe.popup)==null?void 0:xe.list)==null?void 0:Ye.font)==null?void 0:qe.weight)??"inherit"};
|
|
593
|
-
font-size: ${((Ee=(Re=(Ce=(me=(at=(Oe=ge.inbox)==null?void 0:Oe.header)==null?void 0:at.menus)==null?void 0:me.popup)==null?void 0:Ce.list)==null?void 0:Re.font)==null?void 0:Ee.size)??"14px"};
|
|
594
|
-
color: ${((te=(I=(D=(vt=(Mt=(et=ge.inbox)==null?void 0:et.header)==null?void 0:Mt.menus)==null?void 0:vt.popup)==null?void 0:D.list)==null?void 0:I.font)==null?void 0:te.color)??"red"};
|
|
595
|
-
white-space: nowrap;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.check-icon {
|
|
599
|
-
display: none;
|
|
600
|
-
}
|
|
601
|
-
`}refreshTheme(){var f,v,m,T;this._style.textContent=this.getStyles(),this._selectionIcon.updateColor(((f=this._option.selectionIcon)==null?void 0:f.color)??"red"),this._selectionIcon.updateSVG(((v=this._option.selectionIcon)==null?void 0:v.svg)??we.check),this._title.textContent=this._option.text??"Missing Text",this._itemIcon.updateColor(((m=this._option.icon)==null?void 0:m.color)??"red"),this._itemIcon.updateSVG(((T=this._option.icon)==null?void 0:T.svg)??we.inbox)}}customElements.get("courier-inbox-filter-menu-item")||customElements.define("courier-inbox-filter-menu-item",bb);class Vg extends HTMLElement{constructor(f,v,m,T,A){super(),K(this,"_themeSubscription"),K(this,"_type"),K(this,"_selectedIndex",0),K(this,"_options"),K(this,"_selectable"),K(this,"_onMenuOpen"),K(this,"_menuButton"),K(this,"_menu"),K(this,"_style"),this._type=v,this._selectable=m,this._options=T,this._selectedIndex=0,this._onMenuOpen=A;const w=this.attachShadow({mode:"open"});this._menuButton=new qm(v==="filters"?we.filter:we.overflow),this._menu=document.createElement("div"),this._menu.className=`menu ${v}`,this._style=document.createElement("style"),w.appendChild(this._style),w.appendChild(this._menuButton),w.appendChild(this._menu),this._menuButton.addEventListener("click",this.toggleMenu.bind(this)),document.addEventListener("click",this.handleOutsideClick.bind(this)),this._themeSubscription=f.subscribe(X=>{this.refreshTheme()}),this.refreshTheme()}getStyles(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke,fe,xe,Ye;const qe=this._themeSubscription.manager.getTheme();return`
|
|
602
|
-
:host {
|
|
603
|
-
position: relative;
|
|
604
|
-
display: inline-block;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
.menu {
|
|
608
|
-
display: none;
|
|
609
|
-
position: absolute;
|
|
610
|
-
top: 42px;
|
|
611
|
-
right: -6px;
|
|
612
|
-
border-radius: ${((T=(m=(v=(f=qe.inbox)==null?void 0:f.header)==null?void 0:v.menus)==null?void 0:m.popup)==null?void 0:T.borderRadius)??"6px"};
|
|
613
|
-
border: ${((M=(X=(w=(A=qe.inbox)==null?void 0:A.header)==null?void 0:w.menus)==null?void 0:X.popup)==null?void 0:M.border)??"1px solid red"};
|
|
614
|
-
background: ${((V=(ne=(ee=(Y=qe.inbox)==null?void 0:Y.header)==null?void 0:ee.menus)==null?void 0:ne.popup)==null?void 0:V.backgroundColor)??"red"};
|
|
615
|
-
box-shadow: ${((ae=(ue=(ce=(oe=qe.inbox)==null?void 0:oe.header)==null?void 0:ce.menus)==null?void 0:ue.popup)==null?void 0:ae.shadow)??"0 4px 12px 0 red"};
|
|
616
|
-
z-index: 1000;
|
|
617
|
-
min-width: 200px;
|
|
618
|
-
overflow: hidden;
|
|
619
|
-
padding: 4px 0;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
courier-inbox-filter-menu-item {
|
|
623
|
-
border-bottom: ${((Ye=(xe=(fe=(ke=(de=qe.inbox)==null?void 0:de.header)==null?void 0:ke.menus)==null?void 0:fe.popup)==null?void 0:xe.list)==null?void 0:Ye.divider)??"none"};
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
courier-inbox-filter-menu-item:last-child {
|
|
627
|
-
border-bottom: none;
|
|
628
|
-
}
|
|
629
|
-
`}refreshTheme(){var f,v,m,T,A,w;this._style.textContent=this.getStyles();const X=(v=(f=this._themeSubscription.manager.getTheme().inbox)==null?void 0:f.header)==null?void 0:v.menus,M=this._type==="filters",Y=M?(m=X==null?void 0:X.filters)==null?void 0:m.button:(T=X==null?void 0:X.actions)==null?void 0:T.button,ee=M?we.filter:we.overflow;this._menuButton.updateIconSVG(((A=Y==null?void 0:Y.icon)==null?void 0:A.svg)??ee),this._menuButton.updateIconColor(((w=Y==null?void 0:Y.icon)==null?void 0:w.color)??"red"),this._menuButton.updateBackgroundColor((Y==null?void 0:Y.backgroundColor)??"transparent"),this._menuButton.updateHoverBackgroundColor((Y==null?void 0:Y.hoverBackgroundColor)??"red"),this._menuButton.updateActiveBackgroundColor((Y==null?void 0:Y.activeBackgroundColor)??"red"),this.refreshMenuItems()}setOptions(f){this._options=f,this.refreshMenuItems()}refreshMenuItems(){this._menu.innerHTML="",this._options.forEach((f,v)=>{const m=new bb({option:f,selectable:this._selectable,isSelected:this._selectedIndex===v,themeManager:this._themeSubscription.manager});m.addEventListener("click",()=>{this._selectedIndex=v,f.onClick(f),this.refreshMenuItems(),this.closeMenu()}),this._menu.appendChild(m)})}toggleMenu(f){f.stopPropagation();const v=this._menu.style.display!=="block";this._menu.style.display=v?"block":"none",v&&this._onMenuOpen()}handleOutsideClick(f){this.contains(f.target)||this.closeMenu()}closeMenu(){this._menu.style.display="none"}selectOption(f){this._selectedIndex=this._options.findIndex(v=>v.id===f.id),this.refreshMenuItems()}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-option-menu")||customElements.define("courier-inbox-option-menu",Vg);class Gg extends HTMLElement{constructor(f){super(),K(this,"_themeSubscription"),K(this,"_location"),K(this,"_count",0),K(this,"_badge"),K(this,"_style"),this._location=f.location,this._themeSubscription=f.themeBus.subscribe(m=>{this.refreshTheme(this._location)});const v=this.attachShadow({mode:"open"});this._badge=document.createElement("span"),this._badge.className="unread-badge",this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._location),v.appendChild(this._style),v.appendChild(this._badge)}getStyles(f){var v,m,T,A,w,X,M;const Y=this._themeSubscription.manager.getTheme(),ee=f==="button"?(m=(v=Y.popup)==null?void 0:v.button)==null?void 0:m.unreadIndicator:(w=(A=(T=Y.inbox)==null?void 0:T.header)==null?void 0:A.filters)==null?void 0:w.unreadIndicator,ne=ee==null?void 0:ee.backgroundColor,V=ee==null?void 0:ee.borderRadius,oe=(X=ee==null?void 0:ee.font)==null?void 0:X.color,ce=(M=ee==null?void 0:ee.font)==null?void 0:M.size;return`
|
|
630
|
-
:host {
|
|
631
|
-
display: inline-block;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
.unread-badge {
|
|
635
|
-
background-color: ${ne};
|
|
636
|
-
color: ${oe};
|
|
637
|
-
border-radius: ${V};
|
|
638
|
-
padding: 4px 8px;
|
|
639
|
-
font-size: ${ce};
|
|
640
|
-
text-align: center;
|
|
641
|
-
display: none;
|
|
642
|
-
pointer-events: none;
|
|
643
|
-
}
|
|
644
|
-
`}setCount(f){this._count=f,this.updateBadge()}refreshTheme(f){this._location=f,this.updateBadge()}updateBadge(){this._style.textContent=this.getStyles(this._location),this._count>0?(this._badge.textContent=this._count.toString(),this._badge.style.display="block"):this._badge.style.display="none"}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-unread-count-badge")||customElements.define("courier-unread-count-badge",Gg);class Sb extends HTMLElement{constructor(f,v){super(),K(this,"_themeSubscription"),K(this,"_option"),K(this,"_feedType"),K(this,"_titleElement"),K(this,"_iconElement"),K(this,"_unreadBadge"),K(this,"_container"),K(this,"_style"),this._option=v;const m=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._container=document.createElement("div"),this._container.className="title-section",this._iconElement=new Lr(void 0,this._option.icon.svg),this._titleElement=document.createElement("h2"),this._unreadBadge=new Gg({themeBus:f,location:"header"}),this._container.appendChild(this._iconElement),this._container.appendChild(this._titleElement),this._container.appendChild(this._unreadBadge),m.appendChild(this._style),m.appendChild(this._container),this._themeSubscription=f.subscribe(T=>{this.refreshTheme(this._feedType??"inbox")}),this.refreshTheme(this._feedType??"inbox")}getStyles(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae;const de=this._themeSubscription.manager.getTheme();return`
|
|
645
|
-
.title-section {
|
|
646
|
-
display: flex;
|
|
647
|
-
align-items: center;
|
|
648
|
-
gap: 8px;
|
|
649
|
-
position: relative;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
courier-icon {
|
|
653
|
-
display: flex;
|
|
654
|
-
align-items: center;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
h2 {
|
|
658
|
-
margin: 0;
|
|
659
|
-
font-family: ${((T=(m=(v=(f=de.inbox)==null?void 0:f.header)==null?void 0:v.filters)==null?void 0:m.font)==null?void 0:T.family)??"inherit"};
|
|
660
|
-
font-size: ${((M=(X=(w=(A=de.inbox)==null?void 0:A.header)==null?void 0:w.filters)==null?void 0:X.font)==null?void 0:M.size)??"18px"};
|
|
661
|
-
font-weight: ${((V=(ne=(ee=(Y=de.inbox)==null?void 0:Y.header)==null?void 0:ee.filters)==null?void 0:ne.font)==null?void 0:V.weight)??"500"};
|
|
662
|
-
color: ${((ae=(ue=(ce=(oe=de.inbox)==null?void 0:oe.header)==null?void 0:ce.filters)==null?void 0:ue.font)==null?void 0:ae.color)??"red"};
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
courier-unread-count-badge {
|
|
666
|
-
margin-left: 4px;
|
|
667
|
-
}
|
|
668
|
-
`}refreshTheme(f){this._feedType=f,this._style.textContent=this.getStyles(),this._unreadBadge.refreshTheme("header"),this.updateFilter()}updateSelectedOption(f,v,m){this._option=f,this._feedType=v,this._unreadBadge.setCount(m),this.updateFilter()}updateFilter(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke,fe,xe,Ye,qe,Oe,at,me,Ce,Re,Ee;const et=this._themeSubscription.manager.getTheme();switch(this._feedType){case"inbox":this._titleElement.textContent=((T=(m=(v=(f=et.inbox)==null?void 0:f.header)==null?void 0:v.filters)==null?void 0:m.inbox)==null?void 0:T.text)??"Inbox",this._iconElement.updateSVG(((Y=(M=(X=(w=(A=et.inbox)==null?void 0:A.header)==null?void 0:w.filters)==null?void 0:X.inbox)==null?void 0:M.icon)==null?void 0:Y.svg)??we.inbox),this._iconElement.updateColor(((ce=(oe=(V=(ne=(ee=et.inbox)==null?void 0:ee.header)==null?void 0:ne.filters)==null?void 0:V.inbox)==null?void 0:oe.icon)==null?void 0:ce.color)??"red");break;case"archive":this._titleElement.textContent=((ke=(de=(ae=(ue=et.inbox)==null?void 0:ue.header)==null?void 0:ae.filters)==null?void 0:de.archive)==null?void 0:ke.text)??"Archive",this._iconElement.updateSVG(((Oe=(qe=(Ye=(xe=(fe=et.inbox)==null?void 0:fe.header)==null?void 0:xe.filters)==null?void 0:Ye.archive)==null?void 0:qe.icon)==null?void 0:Oe.svg)??we.archive),this._iconElement.updateColor(((Ee=(Re=(Ce=(me=(at=et.inbox)==null?void 0:at.header)==null?void 0:me.filters)==null?void 0:Ce.archive)==null?void 0:Re.icon)==null?void 0:Ee.color)??"red");break}}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-header-title")||customElements.define("courier-inbox-header-title",Sb);class Tb extends ov{constructor(f){super(),K(this,"_themeSubscription"),K(this,"_feedType","inbox"),K(this,"_unreadCount",0),K(this,"_titleSection"),K(this,"_filterMenu"),K(this,"_actionMenu"),K(this,"_style"),K(this,"_onFeedTypeChange"),this._themeSubscription=f.themeManager.subscribe(v=>{this.refreshTheme()}),this._onFeedTypeChange=f.onFeedTypeChange}getFilterOptions(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke,fe,xe,Ye,qe,Oe,at,me,Ce,Re,Ee,et,Mt,vt,D,I,te,ge,q,pe;const ie=this._themeSubscription.manager.getTheme(),ve=(m=(v=(f=ie.inbox)==null?void 0:f.header)==null?void 0:v.menus)==null?void 0:m.filters;return[{id:"inbox",text:((T=ve==null?void 0:ve.inbox)==null?void 0:T.text)??"Inbox",icon:{color:((w=(A=ve==null?void 0:ve.inbox)==null?void 0:A.icon)==null?void 0:w.color)??"red",svg:((M=(X=ve==null?void 0:ve.inbox)==null?void 0:X.icon)==null?void 0:M.svg)??we.inbox},selectionIcon:{color:((ce=(oe=(V=(ne=(ee=(Y=ie.inbox)==null?void 0:Y.header)==null?void 0:ee.menus)==null?void 0:ne.popup)==null?void 0:V.list)==null?void 0:oe.selectionIcon)==null?void 0:ce.color)??"red",svg:((xe=(fe=(ke=(de=(ae=(ue=ie.inbox)==null?void 0:ue.header)==null?void 0:ae.menus)==null?void 0:de.popup)==null?void 0:ke.list)==null?void 0:fe.selectionIcon)==null?void 0:xe.svg)??we.check},onClick:Be=>{this.handleOptionMenuItemClick("inbox",Be)}},{id:"archive",text:((Ye=ve==null?void 0:ve.archive)==null?void 0:Ye.text)??"Archive",icon:{color:((Oe=(qe=ve==null?void 0:ve.archive)==null?void 0:qe.icon)==null?void 0:Oe.color)??"red",svg:((me=(at=ve==null?void 0:ve.archive)==null?void 0:at.icon)==null?void 0:me.svg)??we.archive},selectionIcon:{color:((vt=(Mt=(et=(Ee=(Re=(Ce=ie.inbox)==null?void 0:Ce.header)==null?void 0:Re.menus)==null?void 0:Ee.popup)==null?void 0:et.list)==null?void 0:Mt.selectionIcon)==null?void 0:vt.color)??"red",svg:((pe=(q=(ge=(te=(I=(D=ie.inbox)==null?void 0:D.header)==null?void 0:I.menus)==null?void 0:te.popup)==null?void 0:ge.list)==null?void 0:q.selectionIcon)==null?void 0:pe.svg)??we.check},onClick:Be=>{this.handleOptionMenuItemClick("archive",Be)}}]}getActionOptions(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke;const fe=(m=(v=(f=this._themeSubscription.manager.getTheme().inbox)==null?void 0:f.header)==null?void 0:v.menus)==null?void 0:m.actions;return[{id:"markAllRead",text:((T=fe==null?void 0:fe.markAllRead)==null?void 0:T.text)??"Mark All as Read",icon:{color:((w=(A=fe==null?void 0:fe.markAllRead)==null?void 0:A.icon)==null?void 0:w.color)??"red",svg:((M=(X=fe==null?void 0:fe.markAllRead)==null?void 0:X.icon)==null?void 0:M.svg)??we.inbox},selectionIcon:null,onClick:xe=>{al.shared.readAllMessages({canCallApi:!0})}},{id:"archiveAll",text:((Y=fe==null?void 0:fe.archiveAll)==null?void 0:Y.text)??"Archive All",icon:{color:((ne=(ee=fe==null?void 0:fe.archiveAll)==null?void 0:ee.icon)==null?void 0:ne.color)??"red",svg:((oe=(V=fe==null?void 0:fe.archiveAll)==null?void 0:V.icon)==null?void 0:oe.svg)??we.archive},selectionIcon:null,onClick:xe=>{var Ye;alert(JSON.stringify((Ye=De.shared.client)==null?void 0:Ye.options))}},{id:"archiveRead",text:((ce=fe==null?void 0:fe.archiveRead)==null?void 0:ce.text)??"Archive Read",icon:{color:((ae=(ue=fe==null?void 0:fe.archiveRead)==null?void 0:ue.icon)==null?void 0:ae.color)??"red",svg:((ke=(de=fe==null?void 0:fe.archiveRead)==null?void 0:de.icon)==null?void 0:ke.svg)??we.archive},selectionIcon:null,onClick:xe=>{al.shared.archiveReadMessages({canCallApi:!0})}}]}static get observedAttributes(){return["icon","title","feed-type"]}refreshTheme(){var f,v,m,T,A,w,X;const M=this._themeSubscription.manager.getTheme(),Y=(f=this.shadow)==null?void 0:f.querySelector(".courier-inbox-header");Y&&(Y.style.backgroundColor=((m=(v=M.inbox)==null?void 0:v.header)==null?void 0:m.backgroundColor)??Z.white[500],Y.style.boxShadow=((A=(T=M.inbox)==null?void 0:T.header)==null?void 0:A.shadow)??`0px 1px 0px 0px ${Z.gray[500]}`),(w=this._filterMenu)==null||w.setOptions(this.getFilterOptions()),(X=this._actionMenu)==null||X.setOptions(this.getActionOptions())}handleOptionMenuItemClick(f,v){this._feedType=f,this._titleSection&&this._titleSection.updateSelectedOption(v,this._feedType,this._feedType==="inbox"?this._unreadCount:0),this._onFeedTypeChange(f)}render(f){this._feedType=f.feedType,this._unreadCount=f.unreadCount,this.refreshTitleSection()}refreshTitleSection(){var f,v;const m=this.getFilterOptions().find(T=>["inbox","archive"].includes(T.id)&&T.id===this._feedType);m&&((f=this._titleSection)==null||f.updateSelectedOption(m,this._feedType,this._feedType==="inbox"?this._unreadCount:0),(v=this._filterMenu)==null||v.selectOption(m))}build(f){var v;super.build(f),this._style=document.createElement("style"),this._style.textContent=this.getStyles(),(v=this.shadow)==null||v.appendChild(this._style),this.refreshTheme()}defaultElement(){const f=this.getFilterOptions();this._titleSection=new Sb(this._themeSubscription.manager,f[0]),this._filterMenu=new Vg(this._themeSubscription.manager,"filters",!0,f,()=>{var A;(A=this._actionMenu)==null||A.closeMenu()}),this._actionMenu=new Vg(this._themeSubscription.manager,"actions",!1,this.getActionOptions(),()=>{var A;(A=this._filterMenu)==null||A.closeMenu()}),this._filterMenu.selectOption(f[0]);const v=document.createElement("div");v.className="spacer";const m=document.createElement("div");m.className="actions",m.appendChild(this._filterMenu),m.appendChild(this._actionMenu);const T=document.createElement("div");return T.className="courier-inbox-header",T.appendChild(this._titleSection),T.appendChild(v),T.appendChild(m),T}getStyles(){return`
|
|
669
|
-
:host {
|
|
670
|
-
z-index: 100;
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
.courier-inbox-header {
|
|
674
|
-
display: flex;
|
|
675
|
-
align-items: center;
|
|
676
|
-
justify-content: space-between;
|
|
677
|
-
padding: 10px 10px 10px 16px;
|
|
678
|
-
background-color: ${Z.white[500]};
|
|
679
|
-
box-shadow: 0px 1px 0px 0px ${Z.gray[500]};
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
.header-content {
|
|
683
|
-
display: flex;
|
|
684
|
-
align-items: center;
|
|
685
|
-
flex: 1;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
.spacer {
|
|
689
|
-
flex: 1;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
.actions {
|
|
693
|
-
display: flex;
|
|
694
|
-
align-items: center;
|
|
695
|
-
gap: 4px;
|
|
696
|
-
}
|
|
697
|
-
`}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-header")||customElements.define("courier-inbox-header",Tb);class Xg{constructor(f){K(this,"events"),this.events=f}remove(){al.shared.removeDataStoreListener(this)}}const Ym={popup:{button:{icon:{color:Z.black[500],svg:we.inbox},backgroundColor:"transparent",hoverBackgroundColor:Z.black[50010],activeBackgroundColor:Z.black[50020],unreadIndicator:{font:{color:Z.white[500],size:"14px",family:void 0,weight:void 0},backgroundColor:Z.blue[500],borderRadius:"12px"}},window:{backgroundColor:Z.white[500],borderRadius:"8px",border:`1px solid ${Z.gray[500]}`,shadow:`0px 8px 16px -4px ${Z.gray[500]}`}},inbox:{header:{backgroundColor:Z.white[500],shadow:`0px 1px 0px 0px ${Z.gray[500]}`,filters:{font:{color:Z.black[500],family:void 0,size:"18px"},inbox:{icon:{color:Z.black[500],svg:we.inbox},text:"Inbox"},archive:{icon:{color:Z.black[500],svg:we.archive},text:"Archive"},unreadIndicator:{font:{color:Z.white[500],family:void 0,size:"14px"},backgroundColor:Z.blue[500],borderRadius:"12px"}},menus:{popup:{backgroundColor:Z.white[500],border:`1px solid ${Z.gray[500]}`,borderRadius:"4px",shadow:`0px 4px 8px -2px ${Z.gray[500]}`,list:{hoverBackgroundColor:Z.gray[200],activeBackgroundColor:Z.gray[500],divider:"none",font:{color:Z.black[500],family:void 0,size:"14px"},selectionIcon:{color:Z.black[500],svg:we.check}}},filters:{button:{icon:{color:Z.black[500],svg:we.filter},backgroundColor:"transparent",hoverBackgroundColor:Z.black[50010],activeBackgroundColor:Z.black[50020]},inbox:{icon:{color:Z.black[500],svg:we.inbox},text:"Inbox"},archive:{icon:{color:Z.black[500],svg:we.archive},text:"Archive"}},actions:{button:{icon:{color:Z.black[500],svg:we.overflow},backgroundColor:"transparent",hoverBackgroundColor:Z.black[50010],activeBackgroundColor:Z.black[50020]},markAllRead:{icon:{color:Z.black[500],svg:we.read},text:"Mark All as Read"},archiveAll:{icon:{color:Z.black[500],svg:we.archive},text:"Archive All"},archiveRead:{icon:{color:Z.black[500],svg:we.archiveRead},text:"Archive Read"}}}},list:{backgroundColor:Z.white[500],item:{backgroundColor:"transparent",unreadIndicatorColor:Z.blue[500],hoverBackgroundColor:Z.gray[200],activeBackgroundColor:Z.gray[500],actions:{backgroundColor:"transparent",hoverBackgroundColor:Z.gray[200],activeBackgroundColor:Z.gray[500],border:`1px solid ${Z.gray[500]}`,borderRadius:"4px",shadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06)",font:{color:Z.black[500],family:void 0,size:"14px"}},title:{color:Z.black[500],family:void 0,size:"14px"},subtitle:{color:Z.gray[600],family:void 0,size:"14px"},time:{color:Z.gray[600],family:void 0,size:"14px"},divider:`1px solid ${Z.gray[200]}`,menu:{enabled:!0,backgroundColor:Z.white[500],border:`1px solid ${Z.gray[500]}`,borderRadius:"4px",shadow:`0px 2px 4px -2px ${Z.gray[500]}`,longPress:{displayDuration:4e3,vibrationDuration:50},item:{hoverBackgroundColor:Z.gray[200],activeBackgroundColor:Z.gray[500],borderRadius:"0px",read:{color:Z.black[500],svg:we.read},unread:{color:Z.black[500],svg:we.unread},archive:{color:Z.black[500],svg:we.archive},unarchive:{color:Z.black[500],svg:we.unarchive}}}}},loading:{animation:{barColor:Z.gray[500],barHeight:"14px",barBorderRadius:"14px",duration:"2s"},divider:`1px solid ${Z.gray[200]}`},empty:{title:{font:{size:"16px",weight:"500",color:Z.black[500]}},button:{text:"Refresh"}},error:{title:{font:{size:"16px",weight:"500",color:Z.black[500]}},button:{text:"Retry"}}}},jg={popup:{button:{icon:{color:Z.white[500],svg:we.inbox},backgroundColor:"transparent",hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],unreadIndicator:{font:{color:Z.white[500],size:"14px",family:void 0,weight:void 0},backgroundColor:Z.blue[500],borderRadius:"12px"}},window:{backgroundColor:Z.black[500],borderRadius:"8px",border:`1px solid ${Z.gray[400]}`,shadow:`0px 4px 8px -2px ${Z.white[50020]}`}},inbox:{header:{backgroundColor:Z.black[500],shadow:`0px 1px 0px 0px ${Z.gray[400]}`,filters:{font:{color:Z.white[500],family:void 0,size:"18px"},inbox:{icon:{color:Z.white[500],svg:we.inbox},text:"Inbox"},archive:{icon:{color:Z.white[500],svg:we.archive},text:"Archive"},unreadIndicator:{font:{color:Z.white[500],family:void 0,size:"14px"},backgroundColor:Z.blue[500],borderRadius:"12px"}},menus:{popup:{backgroundColor:Z.black[500],border:`1px solid ${Z.gray[400]}`,borderRadius:"4px",shadow:`0px 4px 8px -2px ${Z.white[50020]}`,list:{hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],divider:"none",font:{color:Z.white[500],family:void 0,size:"14px"},selectionIcon:{color:Z.white[500],svg:we.check}}},filters:{button:{icon:{color:Z.white[500],svg:we.filter},backgroundColor:"transparent",hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020]},inbox:{icon:{color:Z.white[500],svg:we.inbox},text:"Inbox"},archive:{icon:{color:Z.white[500],svg:we.archive},text:"Archive"}},actions:{button:{icon:{color:Z.white[500],svg:we.overflow},backgroundColor:"transparent",hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020]},markAllRead:{icon:{color:Z.white[500],svg:we.read},text:"Mark All as Read"},archiveAll:{icon:{color:Z.white[500],svg:we.archive},text:"Archive All"},archiveRead:{icon:{color:Z.white[500],svg:we.archiveRead},text:"Archive Read"}}}},list:{backgroundColor:Z.black[500],item:{backgroundColor:"transparent",unreadIndicatorColor:Z.blue[500],hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],actions:{backgroundColor:"transparent",hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],border:`1px solid ${Z.gray[400]}`,borderRadius:"4px",shadow:`0px 1px 2px 0px ${Z.white[50010]}`,font:{color:Z.white[500],family:void 0,size:"14px"}},title:{color:Z.white[500],family:void 0,size:"14px"},subtitle:{color:Z.gray[500],family:void 0,size:"14px"},time:{color:Z.gray[500],family:void 0,size:"12px"},divider:`1px solid ${Z.gray[400]}`,menu:{enabled:!0,backgroundColor:Z.black[500],border:`1px solid ${Z.gray[400]}`,borderRadius:"4px",shadow:`0px 2px 4px -2px ${Z.white[50020]}`,longPress:{displayDuration:4e3,vibrationDuration:50},item:{hoverBackgroundColor:Z.white[50010],activeBackgroundColor:Z.white[50020],borderRadius:"0px",read:{color:Z.white[500],svg:we.read},unread:{color:Z.white[500],svg:we.unread},archive:{color:Z.white[500],svg:we.archive},unarchive:{color:Z.white[500],svg:we.unarchive}}}}},loading:{animation:{barColor:Z.white[500],barHeight:"14px",barBorderRadius:"14px",duration:"2s"},divider:`1px solid ${Z.gray[400]}`},empty:{title:{font:{size:"16px",weight:"500",color:Z.white[500]}},button:{text:"Refresh"}},error:{title:{font:{size:"16px",weight:"500",color:Z.white[500]}},button:{text:"Retry"}}}},e2=(x,f)=>{var v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke,fe,xe,Ye,qe,Oe,at,me,Ce,Re,Ee,et,Mt,vt,D,I,te,ge,q,pe,ie,ve,Be,rt,$e,fn,xt,Vt,bl,On,ei,Un,au,Qo,Hn,fl,Ca,Qu,iu,Aa,uu,Pl,ou,re,zt,Bt,Sl,Ot,cu,qr,Od,su,ea,Gl,Ma,wn,tl,Ra,ti,Da,li,Yr,Zu,$u,dn,Zo,Vr,Ud,Qt,ll,Tl,ru,$o,Gr,Jo,Xr,ye,Ju,il,ni,Ku,ta,Zt,Wu,Xl,za,Oa,jr,Ko,ts,Qr,la,Iu,Bn,Wo,ls,ai,xl,Ua,ii,ns,dl,Fu,as,Ha,ui,fu,Hd,en,Io,Fo,Pu,oi,is,us,du,Zr,Po,eo,ci,wd,$r,to,si,ec,hu,mu,Jr,os,pu,ri,kn,tc,na,aa,vu,fi,cs,ul,lc,nc,El,wa,ac,lo,Kr,ss,ic,no,di,rs,Wr,Ir,Bd,fs,kd,Nd,Ld,ao,Fr,ds,Pr,ef,hs,tf,ia,hi,hn,jl,io,uc,ms,Ol,lf,oc,mi,ps,nf,af,uo,oo,vs,Nn,gs,cc,co,Ba,ka,ys,pi,uf,sc,rc,mn,pn,bs,Ln,Ss,Ts,vi,gi,xs,gu,Es,fc,Na,ua,_s,Cs,ol,La,qa,Et,so,As,ro,yi,qn,vn,Ya,bi,dc,oa,Si,tn,gn,Yn,of,Ms,cf,Rs,hc,sf,Ds,zs,yu,ln,Os,Ql,Ul,Va,Vn;const ze=x==="light"?Ym:jg;return{popup:{button:{...(v=ze.popup)==null?void 0:v.button,...(m=f.popup)==null?void 0:m.button,icon:{...(A=(T=ze.popup)==null?void 0:T.button)==null?void 0:A.icon,...(X=(w=f.popup)==null?void 0:w.button)==null?void 0:X.icon},unreadIndicator:{...(Y=(M=ze.popup)==null?void 0:M.button)==null?void 0:Y.unreadIndicator,...(ne=(ee=f.popup)==null?void 0:ee.button)==null?void 0:ne.unreadIndicator}},window:{...(V=ze.popup)==null?void 0:V.window,...(oe=f.popup)==null?void 0:oe.window}},inbox:{header:{...(ce=ze.inbox)==null?void 0:ce.header,...(ue=f.inbox)==null?void 0:ue.header,filters:{...(de=(ae=ze.inbox)==null?void 0:ae.header)==null?void 0:de.filters,...(fe=(ke=f.inbox)==null?void 0:ke.header)==null?void 0:fe.filters,inbox:{...(qe=(Ye=(xe=ze.inbox)==null?void 0:xe.header)==null?void 0:Ye.filters)==null?void 0:qe.inbox,...(me=(at=(Oe=f.inbox)==null?void 0:Oe.header)==null?void 0:at.filters)==null?void 0:me.inbox,icon:{...(et=(Ee=(Re=(Ce=ze.inbox)==null?void 0:Ce.header)==null?void 0:Re.filters)==null?void 0:Ee.inbox)==null?void 0:et.icon,...(I=(D=(vt=(Mt=f.inbox)==null?void 0:Mt.header)==null?void 0:vt.filters)==null?void 0:D.inbox)==null?void 0:I.icon}},archive:{...(q=(ge=(te=ze.inbox)==null?void 0:te.header)==null?void 0:ge.filters)==null?void 0:q.archive,...(ve=(ie=(pe=f.inbox)==null?void 0:pe.header)==null?void 0:ie.filters)==null?void 0:ve.archive,icon:{...(fn=($e=(rt=(Be=ze.inbox)==null?void 0:Be.header)==null?void 0:rt.filters)==null?void 0:$e.archive)==null?void 0:fn.icon,...(On=(bl=(Vt=(xt=f.inbox)==null?void 0:xt.header)==null?void 0:Vt.filters)==null?void 0:bl.archive)==null?void 0:On.icon}},unreadIndicator:{...(au=(Un=(ei=ze.inbox)==null?void 0:ei.header)==null?void 0:Un.filters)==null?void 0:au.unreadIndicator,...(fl=(Hn=(Qo=f.inbox)==null?void 0:Qo.header)==null?void 0:Hn.filters)==null?void 0:fl.unreadIndicator}},menus:{...(Qu=(Ca=ze.inbox)==null?void 0:Ca.header)==null?void 0:Qu.menus,...(Aa=(iu=f.inbox)==null?void 0:iu.header)==null?void 0:Aa.menus,popup:{...(ou=(Pl=(uu=ze.inbox)==null?void 0:uu.header)==null?void 0:Pl.menus)==null?void 0:ou.popup,...(Bt=(zt=(re=f.inbox)==null?void 0:re.header)==null?void 0:zt.menus)==null?void 0:Bt.popup,list:{...(qr=(cu=(Ot=(Sl=ze.inbox)==null?void 0:Sl.header)==null?void 0:Ot.menus)==null?void 0:cu.popup)==null?void 0:qr.list,...(Gl=(ea=(su=(Od=f.inbox)==null?void 0:Od.header)==null?void 0:su.menus)==null?void 0:ea.popup)==null?void 0:Gl.list,font:{...(ti=(Ra=(tl=(wn=(Ma=ze.inbox)==null?void 0:Ma.header)==null?void 0:wn.menus)==null?void 0:tl.popup)==null?void 0:Ra.list)==null?void 0:ti.font,...($u=(Zu=(Yr=(li=(Da=f.inbox)==null?void 0:Da.header)==null?void 0:li.menus)==null?void 0:Yr.popup)==null?void 0:Zu.list)==null?void 0:$u.font},selectionIcon:{...(Qt=(Ud=(Vr=(Zo=(dn=ze.inbox)==null?void 0:dn.header)==null?void 0:Zo.menus)==null?void 0:Vr.popup)==null?void 0:Ud.list)==null?void 0:Qt.selectionIcon,...(Gr=($o=(ru=(Tl=(ll=f.inbox)==null?void 0:ll.header)==null?void 0:Tl.menus)==null?void 0:ru.popup)==null?void 0:$o.list)==null?void 0:Gr.selectionIcon}}},filters:{...(ye=(Xr=(Jo=ze.inbox)==null?void 0:Jo.header)==null?void 0:Xr.menus)==null?void 0:ye.filters,...(ni=(il=(Ju=f.inbox)==null?void 0:Ju.header)==null?void 0:il.menus)==null?void 0:ni.filters,inbox:{...(Wu=(Zt=(ta=(Ku=ze.inbox)==null?void 0:Ku.header)==null?void 0:ta.menus)==null?void 0:Zt.filters)==null?void 0:Wu.inbox,...(jr=(Oa=(za=(Xl=f.inbox)==null?void 0:Xl.header)==null?void 0:za.menus)==null?void 0:Oa.filters)==null?void 0:jr.inbox,icon:{...(Iu=(la=(Qr=(ts=(Ko=ze.inbox)==null?void 0:Ko.header)==null?void 0:ts.menus)==null?void 0:Qr.filters)==null?void 0:la.inbox)==null?void 0:Iu.icon,...(xl=(ai=(ls=(Wo=(Bn=f.inbox)==null?void 0:Bn.header)==null?void 0:Wo.menus)==null?void 0:ls.filters)==null?void 0:ai.inbox)==null?void 0:xl.icon}},archive:{...(dl=(ns=(ii=(Ua=ze.inbox)==null?void 0:Ua.header)==null?void 0:ii.menus)==null?void 0:ns.filters)==null?void 0:dl.archive,...(ui=(Ha=(as=(Fu=f.inbox)==null?void 0:Fu.header)==null?void 0:as.menus)==null?void 0:Ha.filters)==null?void 0:ui.archive,icon:{...(Fo=(Io=(en=(Hd=(fu=ze.inbox)==null?void 0:fu.header)==null?void 0:Hd.menus)==null?void 0:en.filters)==null?void 0:Io.archive)==null?void 0:Fo.icon,...(du=(us=(is=(oi=(Pu=f.inbox)==null?void 0:Pu.header)==null?void 0:oi.menus)==null?void 0:is.filters)==null?void 0:us.archive)==null?void 0:du.icon}}},actions:{...(eo=(Po=(Zr=ze.inbox)==null?void 0:Zr.header)==null?void 0:Po.menus)==null?void 0:eo.actions,...($r=(wd=(ci=f.inbox)==null?void 0:ci.header)==null?void 0:wd.menus)==null?void 0:$r.actions,markAllRead:{...(hu=(ec=(si=(to=ze.inbox)==null?void 0:to.header)==null?void 0:si.menus)==null?void 0:ec.actions)==null?void 0:hu.markAllRead,...(pu=(os=(Jr=(mu=f.inbox)==null?void 0:mu.header)==null?void 0:Jr.menus)==null?void 0:os.actions)==null?void 0:pu.markAllRead,icon:{...(aa=(na=(tc=(kn=(ri=ze.inbox)==null?void 0:ri.header)==null?void 0:kn.menus)==null?void 0:tc.actions)==null?void 0:na.markAllRead)==null?void 0:aa.icon,...(lc=(ul=(cs=(fi=(vu=f.inbox)==null?void 0:vu.header)==null?void 0:fi.menus)==null?void 0:cs.actions)==null?void 0:ul.markAllRead)==null?void 0:lc.icon}},archiveAll:{...(ac=(wa=(El=(nc=ze.inbox)==null?void 0:nc.header)==null?void 0:El.menus)==null?void 0:wa.actions)==null?void 0:ac.archiveAll,...(ic=(ss=(Kr=(lo=f.inbox)==null?void 0:lo.header)==null?void 0:Kr.menus)==null?void 0:ss.actions)==null?void 0:ic.archiveAll,icon:{...(Ir=(Wr=(rs=(di=(no=ze.inbox)==null?void 0:no.header)==null?void 0:di.menus)==null?void 0:rs.actions)==null?void 0:Wr.archiveAll)==null?void 0:Ir.icon,...(Ld=(Nd=(kd=(fs=(Bd=f.inbox)==null?void 0:Bd.header)==null?void 0:fs.menus)==null?void 0:kd.actions)==null?void 0:Nd.archiveAll)==null?void 0:Ld.icon}},archiveRead:{...(Pr=(ds=(Fr=(ao=ze.inbox)==null?void 0:ao.header)==null?void 0:Fr.menus)==null?void 0:ds.actions)==null?void 0:Pr.archiveRead,...(ia=(tf=(hs=(ef=f.inbox)==null?void 0:ef.header)==null?void 0:hs.menus)==null?void 0:tf.actions)==null?void 0:ia.archiveRead,icon:{...(uc=(io=(jl=(hn=(hi=ze.inbox)==null?void 0:hi.header)==null?void 0:hn.menus)==null?void 0:jl.actions)==null?void 0:io.archiveRead)==null?void 0:uc.icon,...(mi=(oc=(lf=(Ol=(ms=f.inbox)==null?void 0:ms.header)==null?void 0:Ol.menus)==null?void 0:lf.actions)==null?void 0:oc.archiveRead)==null?void 0:mi.icon}}}}},list:{...(ps=ze.inbox)==null?void 0:ps.list,...(nf=f.inbox)==null?void 0:nf.list,item:{...(uo=(af=ze.inbox)==null?void 0:af.list)==null?void 0:uo.item,...(vs=(oo=f.inbox)==null?void 0:oo.list)==null?void 0:vs.item,menu:{...(cc=(gs=(Nn=ze.inbox)==null?void 0:Nn.list)==null?void 0:gs.item)==null?void 0:cc.menu,...(ka=(Ba=(co=f.inbox)==null?void 0:co.list)==null?void 0:Ba.item)==null?void 0:ka.menu,item:{...(sc=(uf=(pi=(ys=ze.inbox)==null?void 0:ys.list)==null?void 0:pi.item)==null?void 0:uf.menu)==null?void 0:sc.item,...(bs=(pn=(mn=(rc=f.inbox)==null?void 0:rc.list)==null?void 0:mn.item)==null?void 0:pn.menu)==null?void 0:bs.item,read:{...(gi=(vi=(Ts=(Ss=(Ln=ze.inbox)==null?void 0:Ln.list)==null?void 0:Ss.item)==null?void 0:Ts.menu)==null?void 0:vi.item)==null?void 0:gi.read,...(Na=(fc=(Es=(gu=(xs=f.inbox)==null?void 0:xs.list)==null?void 0:gu.item)==null?void 0:Es.menu)==null?void 0:fc.item)==null?void 0:Na.read},unread:{...(La=(ol=(Cs=(_s=(ua=ze.inbox)==null?void 0:ua.list)==null?void 0:_s.item)==null?void 0:Cs.menu)==null?void 0:ol.item)==null?void 0:La.unread,...(ro=(As=(so=(Et=(qa=f.inbox)==null?void 0:qa.list)==null?void 0:Et.item)==null?void 0:so.menu)==null?void 0:As.item)==null?void 0:ro.unread},archive:{...(bi=(Ya=(vn=(qn=(yi=ze.inbox)==null?void 0:yi.list)==null?void 0:qn.item)==null?void 0:vn.menu)==null?void 0:Ya.item)==null?void 0:bi.archive,...(gn=(tn=(Si=(oa=(dc=f.inbox)==null?void 0:dc.list)==null?void 0:oa.item)==null?void 0:Si.menu)==null?void 0:tn.item)==null?void 0:gn.archive},unarchive:{...(Rs=(cf=(Ms=(of=(Yn=ze.inbox)==null?void 0:Yn.list)==null?void 0:of.item)==null?void 0:Ms.menu)==null?void 0:cf.item)==null?void 0:Rs.unarchive,...(yu=(zs=(Ds=(sf=(hc=f.inbox)==null?void 0:hc.list)==null?void 0:sf.item)==null?void 0:Ds.menu)==null?void 0:zs.item)==null?void 0:yu.unarchive}}}}},loading:{...(ln=ze.inbox)==null?void 0:ln.loading,...(Os=f.inbox)==null?void 0:Os.loading},empty:{...(Ql=ze.inbox)==null?void 0:Ql.empty,...(Ul=f.inbox)==null?void 0:Ul.empty},error:{...(Va=ze.inbox)==null?void 0:Va.error,...(Vn=f.inbox)==null?void 0:Vn.error}}}};class xb{constructor(f){K(this,"THEME_CHANGE_EVENT","courier_inbox_theme_change"),K(this,"_theme"),K(this,"_lightTheme",Ym),K(this,"_darkTheme",jg),K(this,"_target"),K(this,"_subscriptions",[]),K(this,"_userMode"),K(this,"_systemMode"),K(this,"_systemThemeCleanup"),this._theme=f,this._target=new EventTarget,this._userMode="system",this._systemMode=rb(),this.setLightTheme(Ym),this.setDarkTheme(jg),this._systemThemeCleanup=fb(v=>{this._systemMode=v,this.updateTheme()})}setLightTheme(f){this._lightTheme=f,this._systemMode==="light"&&this.updateTheme()}setDarkTheme(f){this._darkTheme=f,this._systemMode==="dark"&&this.updateTheme()}get currentSystemTheme(){return this._systemMode}getTheme(){return this._theme}updateTheme(){const f=this._userMode==="system"?this._systemMode:this._userMode,v=f==="light"?this._lightTheme:this._darkTheme,m=e2(f,v);this.setTheme(m)}setTheme(f){f!==this._theme&&(this._theme=f,this._target.dispatchEvent(new CustomEvent(this.THEME_CHANGE_EVENT,{detail:{theme:f}})))}setMode(f){this._userMode=f,this.updateTheme()}subscribe(f){const v=new AbortController;this._target.addEventListener(this.THEME_CHANGE_EVENT,T=>{f(T.detail.theme)},{signal:v.signal});const m={manager:this,unsubscribe:()=>{v.abort();const T=this._subscriptions.indexOf(m);T>-1&&this._subscriptions.splice(T,1)}};return this._subscriptions.push(m),m}cleanup(){this._systemThemeCleanup&&this._systemThemeCleanup(),this._subscriptions.forEach(f=>f.unsubscribe()),this._subscriptions=[]}}class Eb extends HTMLElement{constructor(f){var v;super(),K(this,"_currentFeed","inbox"),K(this,"_themeManager"),K(this,"_shadow"),K(this,"_list"),K(this,"_datastoreListener"),K(this,"_authListener"),K(this,"_style"),K(this,"_header"),K(this,"_headerFactory"),K(this,"_onMessageClick"),K(this,"_onMessageActionClick"),K(this,"_onMessageLongPress"),K(this,"_defaultProps",{title:"Inbox",icon:we.inbox,feedType:this._currentFeed,height:"768px"}),this._shadow=this.attachShadow({mode:"open"}),this._themeManager=f??new xb(Ym),this._header=new Tb({themeManager:this._themeManager,onFeedTypeChange:m=>{this.setFeedType(m)}}),this._header.build(void 0),this._shadow.appendChild(this._header),this._list=new yb({themeManager:this._themeManager,onRefresh:()=>{this.refresh()},onPaginationTrigger:async m=>{var T,A;try{await al.shared.fetchNextPageOfMessages({feedType:m})}catch(w){(A=(T=De.shared.client)==null?void 0:T.options.logger)==null||A.error("Failed to fetch next page of messages:",w)}},onMessageClick:(m,T)=>{var A;al.shared.clickMessage({message:m}),this.dispatchEvent(new CustomEvent("message-click",{detail:{message:m,index:T},bubbles:!0,composed:!0})),(A=this._onMessageClick)==null||A.call(this,{message:m,index:T})},onMessageActionClick:(m,T,A)=>{var w;this.dispatchEvent(new CustomEvent("message-action-click",{detail:{message:m,action:T,index:A},bubbles:!0,composed:!0})),(w=this._onMessageActionClick)==null||w.call(this,{message:m,action:T,index:A})},onMessageLongPress:(m,T)=>{var A;this.dispatchEvent(new CustomEvent("message-long-press",{detail:{message:m,index:T},bubbles:!0,composed:!0})),(A=this._onMessageLongPress)==null||A.call(this,{message:m,index:T})}}),this._style=document.createElement("style"),this.refreshTheme(),this._shadow.appendChild(this._style),this._shadow.appendChild(this._list),this._datastoreListener=new Xg({onError:m=>{this._list.setError(m)},onDataSetChange:(m,T)=>{this._currentFeed===T&&(this._list.setDataSet(m),this.updateHeader())},onPageAdded:(m,T)=>{this._currentFeed===T&&(this._list.addPage(m),this.updateHeader())},onMessageAdd:(m,T,A)=>{this._currentFeed===A&&(this._list.addMessage(m,T),this.updateHeader())},onMessageRemove:(m,T,A)=>{this._currentFeed===A&&(this._list.removeMessage(T),this.updateHeader())},onMessageUpdate:(m,T,A)=>{this._currentFeed===A&&(this._list.updateMessage(m,T),this.updateHeader())},onUnreadCountChange:m=>{this.updateHeader()}}),al.shared.addDataStoreListener(this._datastoreListener),this._themeManager.subscribe(m=>{this.refreshTheme()}),this._authListener=De.shared.addAuthenticationListener(m=>{this.refresh()}),(v=De.shared.client)!=null&&v.options.userId&&this.refresh()}get theme(){return this._themeManager.getTheme()}setLightTheme(f){this._themeManager.setLightTheme(f)}setDarkTheme(f){this._themeManager.setDarkTheme(f)}static get observedAttributes(){return["height","light-theme","dark-theme","mode","message-click","message-action-click","message-long-press"]}refreshTheme(){this._style.textContent=this.getStyles()}getStyles(){return`
|
|
698
|
-
:host {
|
|
699
|
-
display: flex;
|
|
700
|
-
flex-direction: column;
|
|
701
|
-
width: 100%;
|
|
702
|
-
height: ${this._defaultProps.height};
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
courier-inbox-header {
|
|
706
|
-
flex-shrink: 0;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
courier-inbox-list {
|
|
710
|
-
flex: 1;
|
|
711
|
-
overflow-y: auto;
|
|
712
|
-
overflow-x: hidden;
|
|
713
|
-
}
|
|
714
|
-
`}setHeader(f){this._headerFactory=f,this.updateHeader()}removeHeader(){this._headerFactory=null,this.updateHeader()}setLoadingState(f){this._list.setLoadingStateFactory(f)}setEmptyState(f){this._list.setEmptyStateFactory(f)}setErrorState(f){this._list.setErrorStateFactory(f)}setListItem(f){this._list.setListItemFactory(f)}setPaginationItem(f){this._list.setPaginationItemFactory(f)}onMessageClick(f){this._onMessageClick=f}onMessageActionClick(f){this._onMessageActionClick=f}onMessageLongPress(f){this._onMessageLongPress=f}setFeedType(f){this._currentFeed=f,this._list.setFeedType(f),this.updateHeader(),this.load({feedType:this._currentFeed,canUseCache:!0})}updateHeader(){const f={feedType:this._currentFeed,unreadCount:al.shared.unreadCount,messageCount:this._list.messages.length};switch(this._headerFactory){case void 0:this._header.render(f);break;case null:this._header.build(null);break;default:const v=this._headerFactory(f);this._header.build(v);break}}async load(f){await al.shared.load(f)}refresh(){this.load({feedType:this._currentFeed,canUseCache:!1})}connectedCallback(){this.refresh()}disconnectedCallback(){var f,v;this._themeManager.cleanup(),(f=this._datastoreListener)==null||f.remove(),(v=this._authListener)==null||v.remove()}attributeChangedCallback(f,v,m){var T,A,w,X,M,Y;if(v!==m)switch(f){case"height":const ee=m||this._defaultProps.height;this.style.height=ee;break;case"message-click":if(m)try{this._onMessageClick=new Function("props",m)}catch(ne){(A=(T=De.shared.client)==null?void 0:T.options.logger)==null||A.error("Failed to parse message-click handler:",ne)}else this._onMessageClick=void 0;break;case"message-action-click":if(m)try{this._onMessageActionClick=new Function("props",m)}catch(ne){(X=(w=De.shared.client)==null?void 0:w.options.logger)==null||X.error("Failed to parse message-action-click handler:",ne)}else this._onMessageActionClick=void 0;break;case"message-long-press":if(m)try{this._onMessageLongPress=new Function("props",m)}catch(ne){(Y=(M=De.shared.client)==null?void 0:M.options.logger)==null||Y.error("Failed to parse message-long-press handler:",ne)}else this._onMessageLongPress=void 0;break;case"light-theme":m&&this.setLightTheme(JSON.parse(m));break;case"dark-theme":m&&this.setDarkTheme(JSON.parse(m));break;case"mode":this._themeManager.setMode(m);break}}}customElements.get("courier-inbox")||customElements.define("courier-inbox",Eb);class _b extends ov{constructor(f){super(),K(this,"_themeSubscription"),K(this,"_container"),K(this,"_triggerButton"),K(this,"_unreadCountBadge"),this._themeSubscription=f.subscribe(v=>{this.updateTheme()})}defaultElement(){this._container=document.createElement("div"),this._container.className="menu-button-container",this._triggerButton=new qm(we.inbox),this._unreadCountBadge=new Gg({themeBus:this._themeSubscription.manager,location:"button"}),this._unreadCountBadge.id="unread-badge";const f=document.createElement("style");return f.textContent=this.getStyles(),this._container.appendChild(f),this._container.appendChild(this._triggerButton),this._container.appendChild(this._unreadCountBadge),this.shadow.appendChild(this._container),this.updateTheme(),this._container}getStyles(){return`
|
|
715
|
-
.menu-button-container {
|
|
716
|
-
position: relative;
|
|
717
|
-
display: inline-block;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
#unread-badge {
|
|
721
|
-
position: absolute;
|
|
722
|
-
top: -8px;
|
|
723
|
-
left: 50%;
|
|
724
|
-
pointer-events: none;
|
|
725
|
-
}
|
|
726
|
-
`}onUnreadCountChange(f){var v;(v=this._unreadCountBadge)==null||v.setCount(f),this.updateTheme()}updateTheme(){var f,v,m,T,A,w,X,M,Y,ee,ne,V,oe,ce,ue,ae,de,ke;const fe=this._themeSubscription.manager.getTheme();(T=this._triggerButton)==null||T.updateIconColor(((m=(v=(f=fe==null?void 0:fe.popup)==null?void 0:f.button)==null?void 0:v.icon)==null?void 0:m.color)??Z.black[500]),(M=this._triggerButton)==null||M.updateIconSVG(((X=(w=(A=fe==null?void 0:fe.popup)==null?void 0:A.button)==null?void 0:w.icon)==null?void 0:X.svg)??we.inbox),(ne=this._triggerButton)==null||ne.updateBackgroundColor(((ee=(Y=fe==null?void 0:fe.popup)==null?void 0:Y.button)==null?void 0:ee.backgroundColor)??"transparent"),(ce=this._triggerButton)==null||ce.updateHoverBackgroundColor(((oe=(V=fe==null?void 0:fe.popup)==null?void 0:V.button)==null?void 0:oe.hoverBackgroundColor)??Z.black[50010]),(de=this._triggerButton)==null||de.updateActiveBackgroundColor(((ae=(ue=fe==null?void 0:fe.popup)==null?void 0:ue.button)==null?void 0:ae.activeBackgroundColor)??Z.black[50020]),(ke=this._unreadCountBadge)==null||ke.refreshTheme("button")}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-menu-button")||customElements.define("courier-inbox-menu-button",_b);class t2 extends HTMLElement{constructor(){super(),K(this,"_width","440px"),K(this,"_height","440px"),K(this,"_popupAlignment","top-right"),K(this,"_top","40px"),K(this,"_right","0"),K(this,"_bottom","40px"),K(this,"_left","0"),K(this,"_themeManager",new xb(Ym)),K(this,"_triggerButton"),K(this,"_popup"),K(this,"_inbox"),K(this,"_style"),K(this,"_datastoreListener"),K(this,"_popupMenuButtonFactory");const f=this.attachShadow({mode:"open"});this._triggerButton=new _b(this._themeManager),this._triggerButton.build(void 0),this._popup=document.createElement("div"),this._popup.className="popup",this._inbox=new Eb(this._themeManager),this._inbox.setAttribute("height","100%"),this._style=document.createElement("style"),this.refreshTheme(),f.appendChild(this._style),f.appendChild(this._triggerButton),f.appendChild(this._popup),this._popup.appendChild(this._inbox),this._triggerButton.addEventListener("click",this.togglePopup.bind(this)),document.addEventListener("click",this.handleOutsideClick.bind(this)),this.updatePopupPosition(),this._datastoreListener=new Xg(this),al.shared.addDataStoreListener(this._datastoreListener),this._themeManager.subscribe(v=>{this.refreshTheme()})}get theme(){return this._themeManager.getTheme()}setLightTheme(f){this._themeManager.setLightTheme(f)}setDarkTheme(f){this._themeManager.setDarkTheme(f)}static get observedAttributes(){return["popup-alignment","message-click","message-action-click","message-long-press","popup-width","popup-height","top","right","bottom","left","light-theme","dark-theme","mode"]}refreshTheme(){this._style.textContent=this.getStyles()}getStyles(){var f,v,m,T,A,w,X,M;return`
|
|
727
|
-
:host {
|
|
728
|
-
display: inline-block;
|
|
729
|
-
position: relative;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
.menu-button-container {
|
|
733
|
-
position: relative;
|
|
734
|
-
display: inline-block;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
.popup {
|
|
738
|
-
display: none;
|
|
739
|
-
position: absolute;
|
|
740
|
-
background: ${((v=(f=this.theme.popup)==null?void 0:f.window)==null?void 0:v.backgroundColor)??"red"};
|
|
741
|
-
border-radius: ${((T=(m=this.theme.popup)==null?void 0:m.window)==null?void 0:T.borderRadius)??"8px"};
|
|
742
|
-
border: ${((w=(A=this.theme.popup)==null?void 0:A.window)==null?void 0:w.border)??"1px solid red"};
|
|
743
|
-
box-shadow: ${((M=(X=this.theme.popup)==null?void 0:X.window)==null?void 0:M.shadow)??"0px 8px 16px -4px red"};
|
|
744
|
-
z-index: 1000;
|
|
745
|
-
width: ${this._width};
|
|
746
|
-
height: ${this._height};
|
|
747
|
-
overflow: hidden;
|
|
748
|
-
transform: translateZ(0);
|
|
749
|
-
will-change: transform;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
#unread-badge {
|
|
753
|
-
position: absolute;
|
|
754
|
-
top: -8px;
|
|
755
|
-
left: 50%;
|
|
756
|
-
pointer-events: none;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
courier-inbox {
|
|
760
|
-
height: 100%;
|
|
761
|
-
}
|
|
762
|
-
`}attributeChangedCallback(f,v,m){switch(f){case"popup-alignment":this.isValidPosition(m)&&(this._popupAlignment=m,this.updatePopupPosition());break;case"popup-width":this._width=m,this.setSize(m,this._height);break;case"popup-height":this._height=m,this.setSize(this._width,m);break;case"top":this._top=m,this.updatePopupPosition();break;case"right":this._right=m,this.updatePopupPosition();break;case"bottom":this._bottom=m,this.updatePopupPosition();break;case"left":this._left=m,this.updatePopupPosition();break;case"light-theme":m&&this.setLightTheme(JSON.parse(m));break;case"dark-theme":m&&this.setDarkTheme(JSON.parse(m));break;case"mode":this._themeManager.setMode(m);break}}onUnreadCountChange(f){this.render()}onMessageClick(f){this._inbox.onMessageClick(f)}onMessageActionClick(f){this._inbox.onMessageActionClick(f)}onMessageLongPress(f){this._inbox.onMessageLongPress(f)}isValidPosition(f){return["top-right","top-left","top-center","bottom-right","bottom-left","bottom-center","center-right","center-left","center-center"].includes(f)}updatePopupPosition(){switch(this._popup.style.top="",this._popup.style.bottom="",this._popup.style.left="",this._popup.style.right="",this._popup.style.margin="",this._popup.style.transform="",this._popupAlignment){case"top-right":this._popup.style.top=this._top,this._popup.style.right=this._right;break;case"top-left":this._popup.style.top=this._top,this._popup.style.left=this._left;break;case"top-center":this._popup.style.top=this._top,this._popup.style.left="50%",this._popup.style.transform="translateX(-50%)";break;case"bottom-right":this._popup.style.bottom=this._bottom,this._popup.style.right=this._right;break;case"bottom-left":this._popup.style.bottom=this._bottom,this._popup.style.left=this._left;break;case"bottom-center":this._popup.style.bottom=this._bottom,this._popup.style.left="50%",this._popup.style.transform="translateX(-50%)";break;case"center-right":this._popup.style.top="50%",this._popup.style.right=this._right,this._popup.style.transform="translateY(-50%)";break;case"center-left":this._popup.style.top="50%",this._popup.style.left=this._left,this._popup.style.transform="translateY(-50%)";break;case"center-center":this._popup.style.top="50%",this._popup.style.left="50%",this._popup.style.transform="translate(-50%, -50%)";break}}togglePopup(f){f.stopPropagation(),this._popup.style.display==="block"?this._popup.style.display="none":this._popup.style.display="block"}handleOutsideClick(f){this.contains(f.target)||(this._popup.style.display="none")}setContent(f){this._inbox.innerHTML="",this._inbox.appendChild(f)}setSize(f,v){this._width=f,this._height=v,this._popup.style.width=f,this._popup.style.height=v}setPosition(f){var v,m;this.isValidPosition(f)?(this._popupAlignment=f,this.updatePopupPosition()):(m=(v=De.shared.client)==null?void 0:v.options.logger)==null||m.error(`Invalid position: ${f}`)}setFeedType(f){this._inbox.setFeedType(f)}setPopupHeader(f){this._inbox.setHeader(f)}removePopupHeader(){this._inbox.removeHeader()}setPopupLoadingState(f){this._inbox.setLoadingState(f)}setPopupEmptyState(f){this._inbox.setEmptyState(f)}setPopupErrorState(f){this._inbox.setErrorState(f)}setPopupListItem(f){this._inbox.setListItem(f)}setPopupPaginationItem(f){this._inbox.setPaginationItem(f)}setPopupMenuButton(f){this._popupMenuButtonFactory=f,this.render()}render(){const f=al.shared.unreadCount;switch(this._popupMenuButtonFactory){case void 0:case null:this._triggerButton.build(void 0),this._triggerButton.onUnreadCountChange(f);break;default:const v=this._popupMenuButtonFactory({unreadCount:f});this._triggerButton.build(v);break}}disconnectedCallback(){var f;(f=this._datastoreListener)==null||f.remove(),this._themeManager.cleanup()}}customElements.get("courier-inbox-menu")||customElements.define("courier-inbox-menu",t2);const l2=()=>{const x=ae=>De.shared.signIn(ae),f=()=>De.shared.signOut(),v=ae=>al.shared.load(ae),m=ae=>al.shared.fetchNextPageOfMessages(ae),T=ae=>De.shared.paginationLimit=ae,A=ae=>al.shared.readMessage({message:ae}),w=ae=>al.shared.unreadMessage({message:ae}),X=ae=>al.shared.clickMessage({message:ae}),M=ae=>al.shared.archiveMessage({message:ae}),Y=ae=>al.shared.openMessage({message:ae}),[ee,ne]=pt.useState({userId:void 0,signIn:x,signOut:f}),[V,oe]=pt.useState({load:v,fetchNextPageOfMessages:m,setPaginationLimit:T,readMessage:A,unreadMessage:w,clickMessage:X,archiveMessage:M,openMessage:Y});pt.useEffect(()=>{const ae=De.shared.addAuthenticationListener(()=>ce()),de=new Xg({onError:ke=>ue(ke),onDataSetChange:()=>ue(),onPageAdded:()=>ue(),onMessageAdd:()=>ue(),onMessageRemove:()=>ue(),onMessageUpdate:()=>ue(),onUnreadCountChange:()=>ue()});return al.shared.addDataStoreListener(de),ce(),ue(),()=>{ae.remove(),de.remove()}},[]);const ce=()=>{var de;const ae=(de=De.shared.client)==null?void 0:de.options;ne({userId:ae==null?void 0:ae.userId,signIn:x,signOut:f})},ue=ae=>{const de=al.shared;oe({load:v,fetchNextPageOfMessages:m,setPaginationLimit:T,readMessage:A,unreadMessage:w,clickMessage:X,archiveMessage:M,openMessage:Y,inbox:de.inboxDataSet,archive:de.archiveDataSet,unreadCount:de.unreadCount,error:ae})};return{shared:De.shared,auth:ee,inbox:V}};var rv={exports:{}},Vm={};/**
|
|
763
|
-
* @license React
|
|
764
|
-
* react-jsx-runtime.production.js
|
|
765
|
-
*
|
|
766
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
767
|
-
*
|
|
768
|
-
* This source code is licensed under the MIT license found in the
|
|
769
|
-
* LICENSE file in the root directory of this source tree.
|
|
770
|
-
*/var Cb;function n2(){if(Cb)return Vm;Cb=1;var x=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function v(m,T,A){var w=null;if(A!==void 0&&(w=""+A),T.key!==void 0&&(w=""+T.key),"key"in T){A={};for(var X in T)X!=="key"&&(A[X]=T[X])}else A=T;return T=A.ref,{$$typeof:x,type:m,key:w,ref:T!==void 0?T:null,props:A}}return Vm.Fragment=f,Vm.jsx=v,Vm.jsxs=v,Vm}var Gm={};/**
|
|
771
|
-
* @license React
|
|
772
|
-
* react-jsx-runtime.development.js
|
|
773
|
-
*
|
|
774
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
775
|
-
*
|
|
776
|
-
* This source code is licensed under the MIT license found in the
|
|
777
|
-
* LICENSE file in the root directory of this source tree.
|
|
778
|
-
*/var Ab;function a2(){return Ab||(Ab=1,process.env.NODE_ENV!=="production"&&function(){function x(q){if(q==null)return null;if(typeof q=="function")return q.$$typeof===Ce?null:q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case ue:return"Fragment";case de:return"Profiler";case ae:return"StrictMode";case Ye:return"Suspense";case qe:return"SuspenseList";case me:return"Activity"}if(typeof q=="object")switch(typeof q.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),q.$$typeof){case ce:return"Portal";case fe:return(q.displayName||"Context")+".Provider";case ke:return(q._context.displayName||"Context")+".Consumer";case xe:var pe=q.render;return q=q.displayName,q||(q=pe.displayName||pe.name||"",q=q!==""?"ForwardRef("+q+")":"ForwardRef"),q;case Oe:return pe=q.displayName||null,pe!==null?pe:x(q.type)||"Memo";case at:pe=q._payload,q=q._init;try{return x(q(pe))}catch{}}return null}function f(q){return""+q}function v(q){try{f(q);var pe=!1}catch{pe=!0}if(pe){pe=console;var ie=pe.error,ve=typeof Symbol=="function"&&Symbol.toStringTag&&q[Symbol.toStringTag]||q.constructor.name||"Object";return ie.call(pe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ve),f(q)}}function m(q){if(q===ue)return"<>";if(typeof q=="object"&&q!==null&&q.$$typeof===at)return"<...>";try{var pe=x(q);return pe?"<"+pe+">":"<...>"}catch{return"<...>"}}function T(){var q=Re.A;return q===null?null:q.getOwner()}function A(){return Error("react-stack-top-frame")}function w(q){if(Ee.call(q,"key")){var pe=Object.getOwnPropertyDescriptor(q,"key").get;if(pe&&pe.isReactWarning)return!1}return q.key!==void 0}function X(q,pe){function ie(){vt||(vt=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",pe))}ie.isReactWarning=!0,Object.defineProperty(q,"key",{get:ie,configurable:!0})}function M(){var q=x(this.type);return D[q]||(D[q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),q=this.props.ref,q!==void 0?q:null}function Y(q,pe,ie,ve,Be,rt,$e,fn){return ie=rt.ref,q={$$typeof:oe,type:q,key:pe,props:rt,_owner:Be},(ie!==void 0?ie:null)!==null?Object.defineProperty(q,"ref",{enumerable:!1,get:M}):Object.defineProperty(q,"ref",{enumerable:!1,value:null}),q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.defineProperty(q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:fn}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q}function ee(q,pe,ie,ve,Be,rt,$e,fn){var xt=pe.children;if(xt!==void 0)if(ve)if(et(xt)){for(ve=0;ve<xt.length;ve++)ne(xt[ve]);Object.freeze&&Object.freeze(xt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ne(xt);if(Ee.call(pe,"key")){xt=x(q);var Vt=Object.keys(pe).filter(function(On){return On!=="key"});ve=0<Vt.length?"{key: someKey, "+Vt.join(": ..., ")+": ...}":"{key: someKey}",ge[xt+ve]||(Vt=0<Vt.length?"{"+Vt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
779
|
-
let props = %s;
|
|
780
|
-
<%s {...props} />
|
|
781
|
-
React keys must be passed directly to JSX without using spread:
|
|
782
|
-
let props = %s;
|
|
783
|
-
<%s key={someKey} {...props} />`,ve,xt,Vt,xt),ge[xt+ve]=!0)}if(xt=null,ie!==void 0&&(v(ie),xt=""+ie),w(pe)&&(v(pe.key),xt=""+pe.key),"key"in pe){ie={};for(var bl in pe)bl!=="key"&&(ie[bl]=pe[bl])}else ie=pe;return xt&&X(ie,typeof q=="function"?q.displayName||q.name||"Unknown":q),Y(q,xt,rt,Be,T(),ie,$e,fn)}function ne(q){typeof q=="object"&&q!==null&&q.$$typeof===oe&&q._store&&(q._store.validated=1)}var V=pt,oe=Symbol.for("react.transitional.element"),ce=Symbol.for("react.portal"),ue=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),fe=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),Ce=Symbol.for("react.client.reference"),Re=V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ee=Object.prototype.hasOwnProperty,et=Array.isArray,Mt=console.createTask?console.createTask:function(){return null};V={"react-stack-bottom-frame":function(q){return q()}};var vt,D={},I=V["react-stack-bottom-frame"].bind(V,A)(),te=Mt(m(A)),ge={};Gm.Fragment=ue,Gm.jsx=function(q,pe,ie,ve,Be){var rt=1e4>Re.recentlyCreatedOwnerStacks++;return ee(q,pe,ie,!1,ve,Be,rt?Error("react-stack-top-frame"):I,rt?Mt(m(q)):te)},Gm.jsxs=function(q,pe,ie,ve,Be){var rt=1e4>Re.recentlyCreatedOwnerStacks++;return ee(q,pe,ie,!0,ve,Be,rt?Error("react-stack-top-frame"):I,rt?Mt(m(q)):te)}}()),Gm}var Mb;function i2(){return Mb||(Mb=1,process.env.NODE_ENV==="production"?rv.exports=n2():rv.exports=a2()),rv.exports}var fv=i2(),dv={exports:{}},Xm={},hv={exports:{}},Qg={};/**
|
|
784
|
-
* @license React
|
|
785
|
-
* scheduler.production.js
|
|
786
|
-
*
|
|
787
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
788
|
-
*
|
|
789
|
-
* This source code is licensed under the MIT license found in the
|
|
790
|
-
* LICENSE file in the root directory of this source tree.
|
|
791
|
-
*/var Rb;function u2(){return Rb||(Rb=1,function(x){function f(D,I){var te=D.length;D.push(I);e:for(;0<te;){var ge=te-1>>>1,q=D[ge];if(0<T(q,I))D[ge]=I,D[te]=q,te=ge;else break e}}function v(D){return D.length===0?null:D[0]}function m(D){if(D.length===0)return null;var I=D[0],te=D.pop();if(te!==I){D[0]=te;e:for(var ge=0,q=D.length,pe=q>>>1;ge<pe;){var ie=2*(ge+1)-1,ve=D[ie],Be=ie+1,rt=D[Be];if(0>T(ve,te))Be<q&&0>T(rt,ve)?(D[ge]=rt,D[Be]=te,ge=Be):(D[ge]=ve,D[ie]=te,ge=ie);else if(Be<q&&0>T(rt,te))D[ge]=rt,D[Be]=te,ge=Be;else break e}}return I}function T(D,I){var te=D.sortIndex-I.sortIndex;return te!==0?te:D.id-I.id}if(x.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var A=performance;x.unstable_now=function(){return A.now()}}else{var w=Date,X=w.now();x.unstable_now=function(){return w.now()-X}}var M=[],Y=[],ee=1,ne=null,V=3,oe=!1,ce=!1,ue=!1,ae=!1,de=typeof setTimeout=="function"?setTimeout:null,ke=typeof clearTimeout=="function"?clearTimeout:null,fe=typeof setImmediate<"u"?setImmediate:null;function xe(D){for(var I=v(Y);I!==null;){if(I.callback===null)m(Y);else if(I.startTime<=D)m(Y),I.sortIndex=I.expirationTime,f(M,I);else break;I=v(Y)}}function Ye(D){if(ue=!1,xe(D),!ce)if(v(M)!==null)ce=!0,qe||(qe=!0,Ee());else{var I=v(Y);I!==null&&vt(Ye,I.startTime-D)}}var qe=!1,Oe=-1,at=5,me=-1;function Ce(){return ae?!0:!(x.unstable_now()-me<at)}function Re(){if(ae=!1,qe){var D=x.unstable_now();me=D;var I=!0;try{e:{ce=!1,ue&&(ue=!1,ke(Oe),Oe=-1),oe=!0;var te=V;try{t:{for(xe(D),ne=v(M);ne!==null&&!(ne.expirationTime>D&&Ce());){var ge=ne.callback;if(typeof ge=="function"){ne.callback=null,V=ne.priorityLevel;var q=ge(ne.expirationTime<=D);if(D=x.unstable_now(),typeof q=="function"){ne.callback=q,xe(D),I=!0;break t}ne===v(M)&&m(M),xe(D)}else m(M);ne=v(M)}if(ne!==null)I=!0;else{var pe=v(Y);pe!==null&&vt(Ye,pe.startTime-D),I=!1}}break e}finally{ne=null,V=te,oe=!1}I=void 0}}finally{I?Ee():qe=!1}}}var Ee;if(typeof fe=="function")Ee=function(){fe(Re)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,Mt=et.port2;et.port1.onmessage=Re,Ee=function(){Mt.postMessage(null)}}else Ee=function(){de(Re,0)};function vt(D,I){Oe=de(function(){D(x.unstable_now())},I)}x.unstable_IdlePriority=5,x.unstable_ImmediatePriority=1,x.unstable_LowPriority=4,x.unstable_NormalPriority=3,x.unstable_Profiling=null,x.unstable_UserBlockingPriority=2,x.unstable_cancelCallback=function(D){D.callback=null},x.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):at=0<D?Math.floor(1e3/D):5},x.unstable_getCurrentPriorityLevel=function(){return V},x.unstable_next=function(D){switch(V){case 1:case 2:case 3:var I=3;break;default:I=V}var te=V;V=I;try{return D()}finally{V=te}},x.unstable_requestPaint=function(){ae=!0},x.unstable_runWithPriority=function(D,I){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=V;V=D;try{return I()}finally{V=te}},x.unstable_scheduleCallback=function(D,I,te){var ge=x.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ge+te:ge):te=ge,D){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=te+q,D={id:ee++,callback:I,priorityLevel:D,startTime:te,expirationTime:q,sortIndex:-1},te>ge?(D.sortIndex=te,f(Y,D),v(M)===null&&D===v(Y)&&(ue?(ke(Oe),Oe=-1):ue=!0,vt(Ye,te-ge))):(D.sortIndex=q,f(M,D),ce||oe||(ce=!0,qe||(qe=!0,Ee()))),D},x.unstable_shouldYield=Ce,x.unstable_wrapCallback=function(D){var I=V;return function(){var te=V;V=I;try{return D.apply(this,arguments)}finally{V=te}}}}(Qg)),Qg}var Zg={};/**
|
|
792
|
-
* @license React
|
|
793
|
-
* scheduler.development.js
|
|
794
|
-
*
|
|
795
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
796
|
-
*
|
|
797
|
-
* This source code is licensed under the MIT license found in the
|
|
798
|
-
* LICENSE file in the root directory of this source tree.
|
|
799
|
-
*/var Db;function o2(){return Db||(Db=1,function(x){process.env.NODE_ENV!=="production"&&function(){function f(){if(Ye=!1,me){var D=x.unstable_now();Ee=D;var I=!0;try{e:{fe=!1,xe&&(xe=!1,Oe(Ce),Ce=-1),ke=!0;var te=de;try{t:{for(w(D),ae=m(oe);ae!==null&&!(ae.expirationTime>D&&M());){var ge=ae.callback;if(typeof ge=="function"){ae.callback=null,de=ae.priorityLevel;var q=ge(ae.expirationTime<=D);if(D=x.unstable_now(),typeof q=="function"){ae.callback=q,w(D),I=!0;break t}ae===m(oe)&&T(oe),w(D)}else T(oe);ae=m(oe)}if(ae!==null)I=!0;else{var pe=m(ce);pe!==null&&Y(X,pe.startTime-D),I=!1}}break e}finally{ae=null,de=te,ke=!1}I=void 0}}finally{I?et():me=!1}}}function v(D,I){var te=D.length;D.push(I);e:for(;0<te;){var ge=te-1>>>1,q=D[ge];if(0<A(q,I))D[ge]=I,D[te]=q,te=ge;else break e}}function m(D){return D.length===0?null:D[0]}function T(D){if(D.length===0)return null;var I=D[0],te=D.pop();if(te!==I){D[0]=te;e:for(var ge=0,q=D.length,pe=q>>>1;ge<pe;){var ie=2*(ge+1)-1,ve=D[ie],Be=ie+1,rt=D[Be];if(0>A(ve,te))Be<q&&0>A(rt,ve)?(D[ge]=rt,D[Be]=te,ge=Be):(D[ge]=ve,D[ie]=te,ge=ie);else if(Be<q&&0>A(rt,te))D[ge]=rt,D[Be]=te,ge=Be;else break e}}return I}function A(D,I){var te=D.sortIndex-I.sortIndex;return te!==0?te:D.id-I.id}function w(D){for(var I=m(ce);I!==null;){if(I.callback===null)T(ce);else if(I.startTime<=D)T(ce),I.sortIndex=I.expirationTime,v(oe,I);else break;I=m(ce)}}function X(D){if(xe=!1,w(D),!fe)if(m(oe)!==null)fe=!0,me||(me=!0,et());else{var I=m(ce);I!==null&&Y(X,I.startTime-D)}}function M(){return Ye?!0:!(x.unstable_now()-Ee<Re)}function Y(D,I){Ce=qe(function(){D(x.unstable_now())},I)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),x.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var ee=performance;x.unstable_now=function(){return ee.now()}}else{var ne=Date,V=ne.now();x.unstable_now=function(){return ne.now()-V}}var oe=[],ce=[],ue=1,ae=null,de=3,ke=!1,fe=!1,xe=!1,Ye=!1,qe=typeof setTimeout=="function"?setTimeout:null,Oe=typeof clearTimeout=="function"?clearTimeout:null,at=typeof setImmediate<"u"?setImmediate:null,me=!1,Ce=-1,Re=5,Ee=-1;if(typeof at=="function")var et=function(){at(f)};else if(typeof MessageChannel<"u"){var Mt=new MessageChannel,vt=Mt.port2;Mt.port1.onmessage=f,et=function(){vt.postMessage(null)}}else et=function(){qe(f,0)};x.unstable_IdlePriority=5,x.unstable_ImmediatePriority=1,x.unstable_LowPriority=4,x.unstable_NormalPriority=3,x.unstable_Profiling=null,x.unstable_UserBlockingPriority=2,x.unstable_cancelCallback=function(D){D.callback=null},x.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Re=0<D?Math.floor(1e3/D):5},x.unstable_getCurrentPriorityLevel=function(){return de},x.unstable_next=function(D){switch(de){case 1:case 2:case 3:var I=3;break;default:I=de}var te=de;de=I;try{return D()}finally{de=te}},x.unstable_requestPaint=function(){Ye=!0},x.unstable_runWithPriority=function(D,I){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=de;de=D;try{return I()}finally{de=te}},x.unstable_scheduleCallback=function(D,I,te){var ge=x.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ge+te:ge):te=ge,D){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=te+q,D={id:ue++,callback:I,priorityLevel:D,startTime:te,expirationTime:q,sortIndex:-1},te>ge?(D.sortIndex=te,v(ce,D),m(oe)===null&&D===m(ce)&&(xe?(Oe(Ce),Ce=-1):xe=!0,Y(X,te-ge))):(D.sortIndex=q,v(oe,D),fe||ke||(fe=!0,me||(me=!0,et()))),D},x.unstable_shouldYield=M,x.unstable_wrapCallback=function(D){var I=de;return function(){var te=de;de=I;try{return D.apply(this,arguments)}finally{de=te}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(Zg)),Zg}var zb;function Ob(){return zb||(zb=1,process.env.NODE_ENV==="production"?hv.exports=u2():hv.exports=o2()),hv.exports}/**
|
|
800
|
-
* @license React
|
|
801
|
-
* react-dom-client.production.js
|
|
802
|
-
*
|
|
803
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
804
|
-
*
|
|
805
|
-
* This source code is licensed under the MIT license found in the
|
|
806
|
-
* LICENSE file in the root directory of this source tree.
|
|
807
|
-
*/var Ub;function c2(){if(Ub)return Xm;Ub=1;var x=Ob(),f=pt,v=kg;function m(l){var a="https://react.dev/errors/"+l;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+l+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function T(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function A(l){var a=l,i=l;if(l.alternate)for(;a.return;)a=a.return;else{l=a;do a=l,(a.flags&4098)!==0&&(i=a.return),l=a.return;while(l)}return a.tag===3?i:null}function w(l){if(l.tag===13){var a=l.memoizedState;if(a===null&&(l=l.alternate,l!==null&&(a=l.memoizedState)),a!==null)return a.dehydrated}return null}function X(l){if(A(l)!==l)throw Error(m(188))}function M(l){var a=l.alternate;if(!a){if(a=A(l),a===null)throw Error(m(188));return a!==l?null:l}for(var i=l,o=a;;){var r=i.return;if(r===null)break;var d=r.alternate;if(d===null){if(o=r.return,o!==null){i=o;continue}break}if(r.child===d.child){for(d=r.child;d;){if(d===i)return X(r),l;if(d===o)return X(r),a;d=d.sibling}throw Error(m(188))}if(i.return!==o.return)i=r,o=d;else{for(var g=!1,y=r.child;y;){if(y===i){g=!0,i=r,o=d;break}if(y===o){g=!0,o=r,i=d;break}y=y.sibling}if(!g){for(y=d.child;y;){if(y===i){g=!0,i=d,o=r;break}if(y===o){g=!0,o=d,i=r;break}y=y.sibling}if(!g)throw Error(m(189))}}if(i.alternate!==o)throw Error(m(190))}if(i.tag!==3)throw Error(m(188));return i.stateNode.current===i?l:a}function Y(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l;for(l=l.child;l!==null;){if(a=Y(l),a!==null)return a;l=l.sibling}return null}var ee=Object.assign,ne=Symbol.for("react.element"),V=Symbol.for("react.transitional.element"),oe=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),ke=Symbol.for("react.consumer"),fe=Symbol.for("react.context"),xe=Symbol.for("react.forward_ref"),Ye=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),at=Symbol.for("react.lazy"),me=Symbol.for("react.activity"),Ce=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function Ee(l){return l===null||typeof l!="object"?null:(l=Re&&l[Re]||l["@@iterator"],typeof l=="function"?l:null)}var et=Symbol.for("react.client.reference");function Mt(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===et?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case ce:return"Fragment";case ae:return"Profiler";case ue:return"StrictMode";case Ye:return"Suspense";case qe:return"SuspenseList";case me:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case oe:return"Portal";case fe:return(l.displayName||"Context")+".Provider";case ke:return(l._context.displayName||"Context")+".Consumer";case xe:var a=l.render;return l=l.displayName,l||(l=a.displayName||a.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Oe:return a=l.displayName||null,a!==null?a:Mt(l.type)||"Memo";case at:a=l._payload,l=l._init;try{return Mt(l(a))}catch{}}return null}var vt=Array.isArray,D=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=v.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ge=[],q=-1;function pe(l){return{current:l}}function ie(l){0>q||(l.current=ge[q],ge[q]=null,q--)}function ve(l,a){q++,ge[q]=l.current,l.current=a}var Be=pe(null),rt=pe(null),$e=pe(null),fn=pe(null);function xt(l,a){switch(ve($e,a),ve(rt,l),ve(Be,null),a.nodeType){case 9:case 11:l=(l=a.documentElement)&&(l=l.namespaceURI)?Hu(l):0;break;default:if(l=a.tagName,a=a.namespaceURI)a=Hu(a),l=hr(a,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}ie(Be),ve(Be,l)}function Vt(){ie(Be),ie(rt),ie($e)}function bl(l){l.memoizedState!==null&&ve(fn,l);var a=Be.current,i=hr(a,l.type);a!==i&&(ve(rt,l),ve(Be,i))}function On(l){rt.current===l&&(ie(Be),ie(rt)),fn.current===l&&(ie(fn),Dn._currentValue=te)}var ei=Object.prototype.hasOwnProperty,Un=x.unstable_scheduleCallback,au=x.unstable_cancelCallback,Qo=x.unstable_shouldYield,Hn=x.unstable_requestPaint,fl=x.unstable_now,Ca=x.unstable_getCurrentPriorityLevel,Qu=x.unstable_ImmediatePriority,iu=x.unstable_UserBlockingPriority,Aa=x.unstable_NormalPriority,uu=x.unstable_LowPriority,Pl=x.unstable_IdlePriority,ou=x.log,re=x.unstable_setDisableYieldValue,zt=null,Bt=null;function Sl(l){if(typeof ou=="function"&&re(l),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(zt,l)}catch{}}var Ot=Math.clz32?Math.clz32:Od,cu=Math.log,qr=Math.LN2;function Od(l){return l>>>=0,l===0?32:31-(cu(l)/qr|0)|0}var su=256,ea=4194304;function Gl(l){var a=l&42;if(a!==0)return a;switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function Ma(l,a,i){var o=l.pendingLanes;if(o===0)return 0;var r=0,d=l.suspendedLanes,g=l.pingedLanes;l=l.warmLanes;var y=o&134217727;return y!==0?(o=y&~d,o!==0?r=Gl(o):(g&=y,g!==0?r=Gl(g):i||(i=y&~l,i!==0&&(r=Gl(i))))):(y=o&~d,y!==0?r=Gl(y):g!==0?r=Gl(g):i||(i=o&~l,i!==0&&(r=Gl(i)))),r===0?0:a!==0&&a!==r&&(a&d)===0&&(d=r&-r,i=a&-a,d>=i||d===32&&(i&4194048)!==0)?a:r}function wn(l,a){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&a)===0}function tl(l,a){switch(l){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ra(){var l=su;return su<<=1,(su&4194048)===0&&(su=256),l}function ti(){var l=ea;return ea<<=1,(ea&62914560)===0&&(ea=4194304),l}function Da(l){for(var a=[],i=0;31>i;i++)a.push(l);return a}function li(l,a){l.pendingLanes|=a,a!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Yr(l,a,i,o,r,d){var g=l.pendingLanes;l.pendingLanes=i,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=i,l.entangledLanes&=i,l.errorRecoveryDisabledLanes&=i,l.shellSuspendCounter=0;var y=l.entanglements,E=l.expirationTimes,H=l.hiddenUpdates;for(i=g&~i;0<i;){var W=31-Ot(i),P=1<<W;y[W]=0,E[W]=-1;var k=H[W];if(k!==null)for(H[W]=null,W=0;W<k.length;W++){var L=k[W];L!==null&&(L.lane&=-536870913)}i&=~P}o!==0&&Zu(l,o,0),d!==0&&r===0&&l.tag!==0&&(l.suspendedLanes|=d&~(g&~a))}function Zu(l,a,i){l.pendingLanes|=a,l.suspendedLanes&=~a;var o=31-Ot(a);l.entangledLanes|=a,l.entanglements[o]=l.entanglements[o]|1073741824|i&4194090}function $u(l,a){var i=l.entangledLanes|=a;for(l=l.entanglements;i;){var o=31-Ot(i),r=1<<o;r&a|l[o]&a&&(l[o]|=a),i&=~r}}function dn(l){switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:l=128;break;case 268435456:l=134217728;break;default:l=0}return l}function Zo(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function Vr(){var l=I.p;return l!==0?l:(l=window.event,l===void 0?32:gp(l.type))}function Ud(l,a){var i=I.p;try{return I.p=l,a()}finally{I.p=i}}var Qt=Math.random().toString(36).slice(2),ll="__reactFiber$"+Qt,Tl="__reactProps$"+Qt,ru="__reactContainer$"+Qt,$o="__reactEvents$"+Qt,Gr="__reactListeners$"+Qt,Jo="__reactHandles$"+Qt,Xr="__reactResources$"+Qt,ye="__reactMarker$"+Qt;function Ju(l){delete l[ll],delete l[Tl],delete l[$o],delete l[Gr],delete l[Jo]}function il(l){var a=l[ll];if(a)return a;for(var i=l.parentNode;i;){if(a=i[ru]||i[ll]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(l=Nl(l);l!==null;){if(i=l[ll])return i;l=Nl(l)}return a}l=i,i=l.parentNode}return null}function ni(l){if(l=l[ll]||l[ru]){var a=l.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return l}return null}function Ku(l){var a=l.tag;if(a===5||a===26||a===27||a===6)return l.stateNode;throw Error(m(33))}function ta(l){var a=l[Xr];return a||(a=l[Xr]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Zt(l){l[ye]=!0}var Wu=new Set,Xl={};function za(l,a){Oa(l,a),Oa(l+"Capture",a)}function Oa(l,a){for(Xl[l]=a,l=0;l<a.length;l++)Wu.add(a[l])}var jr=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ko={},ts={};function Qr(l){return ei.call(ts,l)?!0:ei.call(Ko,l)?!1:jr.test(l)?ts[l]=!0:(Ko[l]=!0,!1)}function la(l,a,i){if(Qr(a))if(i===null)l.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":l.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){l.removeAttribute(a);return}}l.setAttribute(a,""+i)}}function Iu(l,a,i){if(i===null)l.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(a);return}l.setAttribute(a,""+i)}}function Bn(l,a,i,o){if(o===null)l.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(i);return}l.setAttributeNS(a,i,""+o)}}var Wo,ls;function ai(l){if(Wo===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);Wo=a&&a[1]||"",ls=-1<i.stack.indexOf(`
|
|
808
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
809
|
-
`+Wo+l+ls}var xl=!1;function Ua(l,a){if(!l||xl)return"";xl=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(L){var k=L}Reflect.construct(l,[],P)}else{try{P.call()}catch(L){k=L}l.call(P.prototype)}}else{try{throw Error()}catch(L){k=L}(P=l())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(L){if(L&&k&&typeof L.stack=="string")return[L.stack,k.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),g=d[0],y=d[1];if(g&&y){var E=g.split(`
|
|
810
|
-
`),H=y.split(`
|
|
811
|
-
`);for(r=o=0;o<E.length&&!E[o].includes("DetermineComponentFrameRoot");)o++;for(;r<H.length&&!H[r].includes("DetermineComponentFrameRoot");)r++;if(o===E.length||r===H.length)for(o=E.length-1,r=H.length-1;1<=o&&0<=r&&E[o]!==H[r];)r--;for(;1<=o&&0<=r;o--,r--)if(E[o]!==H[r]){if(o!==1||r!==1)do if(o--,r--,0>r||E[o]!==H[r]){var W=`
|
|
812
|
-
`+E[o].replace(" at new "," at ");return l.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",l.displayName)),W}while(1<=o&&0<=r);break}}}finally{xl=!1,Error.prepareStackTrace=i}return(i=l?l.displayName||l.name:"")?ai(i):""}function ii(l){switch(l.tag){case 26:case 27:case 5:return ai(l.type);case 16:return ai("Lazy");case 13:return ai("Suspense");case 19:return ai("SuspenseList");case 0:case 15:return Ua(l.type,!1);case 11:return Ua(l.type.render,!1);case 1:return Ua(l.type,!0);case 31:return ai("Activity");default:return""}}function ns(l){try{var a="";do a+=ii(l),l=l.return;while(l);return a}catch(i){return`
|
|
813
|
-
Error generating stack: `+i.message+`
|
|
814
|
-
`+i.stack}}function dl(l){switch(typeof l){case"bigint":case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function Fu(l){var a=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function as(l){var a=Fu(l)?"checked":"value",i=Object.getOwnPropertyDescriptor(l.constructor.prototype,a),o=""+l[a];if(!l.hasOwnProperty(a)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,d=i.set;return Object.defineProperty(l,a,{configurable:!0,get:function(){return r.call(this)},set:function(g){o=""+g,d.call(this,g)}}),Object.defineProperty(l,a,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(g){o=""+g},stopTracking:function(){l._valueTracker=null,delete l[a]}}}}function Ha(l){l._valueTracker||(l._valueTracker=as(l))}function ui(l){if(!l)return!1;var a=l._valueTracker;if(!a)return!0;var i=a.getValue(),o="";return l&&(o=Fu(l)?l.checked?"true":"false":l.value),l=o,l!==i?(a.setValue(l),!0):!1}function fu(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}var Hd=/[\n"\\]/g;function en(l){return l.replace(Hd,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Io(l,a,i,o,r,d,g,y){l.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?l.type=g:l.removeAttribute("type"),a!=null?g==="number"?(a===0&&l.value===""||l.value!=a)&&(l.value=""+dl(a)):l.value!==""+dl(a)&&(l.value=""+dl(a)):g!=="submit"&&g!=="reset"||l.removeAttribute("value"),a!=null?Pu(l,g,dl(a)):i!=null?Pu(l,g,dl(i)):o!=null&&l.removeAttribute("value"),r==null&&d!=null&&(l.defaultChecked=!!d),r!=null&&(l.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?l.name=""+dl(y):l.removeAttribute("name")}function Fo(l,a,i,o,r,d,g,y){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(l.type=d),a!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||a!=null))return;i=i!=null?""+dl(i):"",a=a!=null?""+dl(a):i,y||a===l.value||(l.value=a),l.defaultValue=a}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,l.checked=y?l.checked:!!o,l.defaultChecked=!!o,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(l.name=g)}function Pu(l,a,i){a==="number"&&fu(l.ownerDocument)===l||l.defaultValue===""+i||(l.defaultValue=""+i)}function oi(l,a,i,o){if(l=l.options,a){a={};for(var r=0;r<i.length;r++)a["$"+i[r]]=!0;for(i=0;i<l.length;i++)r=a.hasOwnProperty("$"+l[i].value),l[i].selected!==r&&(l[i].selected=r),r&&o&&(l[i].defaultSelected=!0)}else{for(i=""+dl(i),a=null,r=0;r<l.length;r++){if(l[r].value===i){l[r].selected=!0,o&&(l[r].defaultSelected=!0);return}a!==null||l[r].disabled||(a=l[r])}a!==null&&(a.selected=!0)}}function is(l,a,i){if(a!=null&&(a=""+dl(a),a!==l.value&&(l.value=a),i==null)){l.defaultValue!==a&&(l.defaultValue=a);return}l.defaultValue=i!=null?""+dl(i):""}function us(l,a,i,o){if(a==null){if(o!=null){if(i!=null)throw Error(m(92));if(vt(o)){if(1<o.length)throw Error(m(93));o=o[0]}i=o}i==null&&(i=""),a=i}i=dl(a),l.defaultValue=i,o=l.textContent,o===i&&o!==""&&o!==null&&(l.value=o)}function du(l,a){if(a){var i=l.firstChild;if(i&&i===l.lastChild&&i.nodeType===3){i.nodeValue=a;return}}l.textContent=a}var Zr=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Po(l,a,i){var o=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?l.setProperty(a,""):a==="float"?l.cssFloat="":l[a]="":o?l.setProperty(a,i):typeof i!="number"||i===0||Zr.has(a)?a==="float"?l.cssFloat=i:l[a]=(""+i).trim():l[a]=i+"px"}function eo(l,a,i){if(a!=null&&typeof a!="object")throw Error(m(62));if(l=l.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?l.setProperty(o,""):o==="float"?l.cssFloat="":l[o]="");for(var r in a)o=a[r],a.hasOwnProperty(r)&&i[r]!==o&&Po(l,r,o)}else for(var d in a)a.hasOwnProperty(d)&&Po(l,d,a[d])}function ci(l){if(l.indexOf("-")===-1)return!1;switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wd=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$r=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function to(l){return $r.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}var si=null;function ec(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var hu=null,mu=null;function Jr(l){var a=ni(l);if(a&&(l=a.stateNode)){var i=l[Tl]||null;e:switch(l=a.stateNode,a.type){case"input":if(Io(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=l;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+en(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var o=i[a];if(o!==l&&o.form===l.form){var r=o[Tl]||null;if(!r)throw Error(m(90));Io(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(a=0;a<i.length;a++)o=i[a],o.form===l.form&&ui(o)}break e;case"textarea":is(l,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&oi(l,!!i.multiple,a,!1)}}}var os=!1;function pu(l,a,i){if(os)return l(a,i);os=!0;try{var o=l(a);return o}finally{if(os=!1,(hu!==null||mu!==null)&&(wc(),hu&&(a=hu,l=mu,mu=hu=null,Jr(a),l)))for(a=0;a<l.length;a++)Jr(l[a])}}function ri(l,a){var i=l.stateNode;if(i===null)return null;var o=i[Tl]||null;if(o===null)return null;i=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(l=l.type,o=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!o;break e;default:l=!1}if(l)return null;if(i&&typeof i!="function")throw Error(m(231,a,typeof i));return i}var kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tc=!1;if(kn)try{var na={};Object.defineProperty(na,"passive",{get:function(){tc=!0}}),window.addEventListener("test",na,na),window.removeEventListener("test",na,na)}catch{tc=!1}var aa=null,vu=null,fi=null;function cs(){if(fi)return fi;var l,a=vu,i=a.length,o,r="value"in aa?aa.value:aa.textContent,d=r.length;for(l=0;l<i&&a[l]===r[l];l++);var g=i-l;for(o=1;o<=g&&a[i-o]===r[d-o];o++);return fi=r.slice(l,1<o?1-o:void 0)}function ul(l){var a=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&a===13&&(l=13)):l=a,l===10&&(l=13),32<=l||l===13?l:0}function lc(){return!0}function nc(){return!1}function El(l){function a(i,o,r,d,g){this._reactName=i,this._targetInst=r,this.type=o,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var y in l)l.hasOwnProperty(y)&&(i=l[y],this[y]=i?i(d):d[y]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?lc:nc,this.isPropagationStopped=nc,this}return ee(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=lc)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=lc)},persist:function(){},isPersistent:lc}),a}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ac=El(wa),lo=ee({},wa,{view:0,detail:0}),Kr=El(lo),ss,ic,no,di=ee({},lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ia,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==no&&(no&&l.type==="mousemove"?(ss=l.screenX-no.screenX,ic=l.screenY-no.screenY):ic=ss=0,no=l),ss)},movementY:function(l){return"movementY"in l?l.movementY:ic}}),rs=El(di),Wr=ee({},di,{dataTransfer:0}),Ir=El(Wr),Bd=ee({},lo,{relatedTarget:0}),fs=El(Bd),kd=ee({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),Nd=El(kd),Ld=ee({},wa,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),ao=El(Ld),Fr=ee({},wa,{data:0}),ds=El(Fr),Pr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ef={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hs={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tf(l){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(l):(l=hs[l])?!!a[l]:!1}function ia(){return tf}var hi=ee({},lo,{key:function(l){if(l.key){var a=Pr[l.key]||l.key;if(a!=="Unidentified")return a}return l.type==="keypress"?(l=ul(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?ef[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ia,charCode:function(l){return l.type==="keypress"?ul(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?ul(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),hn=El(hi),jl=ee({},di,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),io=El(jl),uc=ee({},lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ia}),ms=El(uc),Ol=ee({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),lf=El(Ol),oc=ee({},di,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),mi=El(oc),ps=ee({},wa,{newState:0,oldState:0}),nf=El(ps),af=[9,13,27,32],uo=kn&&"CompositionEvent"in window,oo=null;kn&&"documentMode"in document&&(oo=document.documentMode);var vs=kn&&"TextEvent"in window&&!oo,Nn=kn&&(!uo||oo&&8<oo&&11>=oo),gs=" ",cc=!1;function co(l,a){switch(l){case"keyup":return af.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ba(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var ka=!1;function ys(l,a){switch(l){case"compositionend":return Ba(a);case"keypress":return a.which!==32?null:(cc=!0,gs);case"textInput":return l=a.data,l===gs&&cc?null:l;default:return null}}function pi(l,a){if(ka)return l==="compositionend"||!uo&&co(l,a)?(l=cs(),fi=vu=aa=null,ka=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Nn&&a.locale!=="ko"?null:a.data;default:return null}}var uf={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sc(l){var a=l&&l.nodeName&&l.nodeName.toLowerCase();return a==="input"?!!uf[l.type]:a==="textarea"}function rc(l,a,i,o){hu?mu?mu.push(o):mu=[o]:hu=o,a=dr(a,"onChange"),0<a.length&&(i=new ac("onChange","change",null,i,o),l.push({event:i,listeners:a}))}var mn=null,pn=null;function bs(l){Lc(l,0)}function Ln(l){var a=Ku(l);if(ui(a))return l}function Ss(l,a){if(l==="change")return a}var Ts=!1;if(kn){var vi;if(kn){var gi="oninput"in document;if(!gi){var xs=document.createElement("div");xs.setAttribute("oninput","return;"),gi=typeof xs.oninput=="function"}vi=gi}else vi=!1;Ts=vi&&(!document.documentMode||9<document.documentMode)}function gu(){mn&&(mn.detachEvent("onpropertychange",Es),pn=mn=null)}function Es(l){if(l.propertyName==="value"&&Ln(pn)){var a=[];rc(a,pn,l,ec(l)),pu(bs,a)}}function fc(l,a,i){l==="focusin"?(gu(),mn=a,pn=i,mn.attachEvent("onpropertychange",Es)):l==="focusout"&&gu()}function Na(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Ln(pn)}function ua(l,a){if(l==="click")return Ln(a)}function _s(l,a){if(l==="input"||l==="change")return Ln(a)}function Cs(l,a){return l===a&&(l!==0||1/l===1/a)||l!==l&&a!==a}var ol=typeof Object.is=="function"?Object.is:Cs;function La(l,a){if(ol(l,a))return!0;if(typeof l!="object"||l===null||typeof a!="object"||a===null)return!1;var i=Object.keys(l),o=Object.keys(a);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var r=i[o];if(!ei.call(a,r)||!ol(l[r],a[r]))return!1}return!0}function qa(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function Et(l,a){var i=qa(l);l=0;for(var o;i;){if(i.nodeType===3){if(o=l+i.textContent.length,l<=a&&o>=a)return{node:i,offset:a-l};l=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=qa(i)}}function so(l,a){return l&&a?l===a?!0:l&&l.nodeType===3?!1:a&&a.nodeType===3?so(l,a.parentNode):"contains"in l?l.contains(a):l.compareDocumentPosition?!!(l.compareDocumentPosition(a)&16):!1:!1}function As(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var a=fu(l.document);a instanceof l.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)l=a.contentWindow;else break;a=fu(l.document)}return a}function ro(l){var a=l&&l.nodeName&&l.nodeName.toLowerCase();return a&&(a==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||a==="textarea"||l.contentEditable==="true")}var yi=kn&&"documentMode"in document&&11>=document.documentMode,qn=null,vn=null,Ya=null,bi=!1;function dc(l,a,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;bi||qn==null||qn!==fu(o)||(o=qn,"selectionStart"in o&&ro(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ya&&La(Ya,o)||(Ya=o,o=dr(vn,"onSelect"),0<o.length&&(a=new ac("onSelect","select",null,a,i),l.push({event:a,listeners:o}),a.target=qn)))}function oa(l,a){var i={};return i[l.toLowerCase()]=a.toLowerCase(),i["Webkit"+l]="webkit"+a,i["Moz"+l]="moz"+a,i}var Si={animationend:oa("Animation","AnimationEnd"),animationiteration:oa("Animation","AnimationIteration"),animationstart:oa("Animation","AnimationStart"),transitionrun:oa("Transition","TransitionRun"),transitionstart:oa("Transition","TransitionStart"),transitioncancel:oa("Transition","TransitionCancel"),transitionend:oa("Transition","TransitionEnd")},tn={},gn={};kn&&(gn=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);function Yn(l){if(tn[l])return tn[l];if(!Si[l])return l;var a=Si[l],i;for(i in a)if(a.hasOwnProperty(i)&&i in gn)return tn[l]=a[i];return l}var of=Yn("animationend"),Ms=Yn("animationiteration"),cf=Yn("animationstart"),Rs=Yn("transitionrun"),hc=Yn("transitionstart"),sf=Yn("transitioncancel"),Ds=Yn("transitionend"),zs=new Map,yu="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");yu.push("scrollEnd");function ln(l,a){zs.set(l,a),za(a,[l])}var Os=new WeakMap;function Ql(l,a){if(typeof l=="object"&&l!==null){var i=Os.get(l);return i!==void 0?i:(a={value:l,source:a,stack:ns(a)},Os.set(l,a),a)}return{value:l,source:a,stack:ns(a)}}var Ul=[],Va=0,Vn=0;function ze(){for(var l=Va,a=Vn=Va=0;a<l;){var i=Ul[a];Ul[a++]=null;var o=Ul[a];Ul[a++]=null;var r=Ul[a];Ul[a++]=null;var d=Ul[a];if(Ul[a++]=null,o!==null&&r!==null){var g=o.pending;g===null?r.next=r:(r.next=g.next,g.next=r),o.pending=r}d!==0&&Hs(i,r,d)}}function fo(l,a,i,o){Ul[Va++]=l,Ul[Va++]=a,Ul[Va++]=i,Ul[Va++]=o,Vn|=o,l.lanes|=o,l=l.alternate,l!==null&&(l.lanes|=o)}function Us(l,a,i,o){return fo(l,a,i,o),rf(l)}function Ti(l,a){return fo(l,null,null,a),rf(l)}function Hs(l,a,i){l.lanes|=i;var o=l.alternate;o!==null&&(o.lanes|=i);for(var r=!1,d=l.return;d!==null;)d.childLanes|=i,o=d.alternate,o!==null&&(o.childLanes|=i),d.tag===22&&(l=d.stateNode,l===null||l._visibility&1||(r=!0)),l=d,d=d.return;return l.tag===3?(d=l.stateNode,r&&a!==null&&(r=31-Ot(i),l=d.hiddenUpdates,o=l[r],o===null?l[r]=[a]:o.push(a),a.lane=i|536870912),d):null}function rf(l){if(50<ur)throw ur=0,j0=null,Error(m(185));for(var a=l.return;a!==null;)l=a,a=l.return;return l.tag===3?l.stateNode:null}var ws={};function mv(l,a,i,o){this.tag=l,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(l,a,i,o){return new mv(l,a,i,o)}function ff(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Ga(l,a){var i=l.alternate;return i===null?(i=yn(l.tag,a,l.key,l.mode),i.elementType=l.elementType,i.type=l.type,i.stateNode=l.stateNode,i.alternate=l,l.alternate=i):(i.pendingProps=a,i.type=l.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=l.flags&65011712,i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,a=l.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=l.sibling,i.index=l.index,i.ref=l.ref,i.refCleanup=l.refCleanup,i}function We(l,a){l.flags&=65011714;var i=l.alternate;return i===null?(l.childLanes=0,l.lanes=a,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=i.childLanes,l.lanes=i.lanes,l.child=i.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=i.memoizedProps,l.memoizedState=i.memoizedState,l.updateQueue=i.updateQueue,l.type=i.type,a=i.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),l}function le(l,a,i,o,r,d){var g=0;if(o=l,typeof l=="function")ff(l)&&(g=1);else if(typeof l=="string")g=Jv(l,i,Be.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case me:return l=yn(31,i,a,r),l.elementType=me,l.lanes=d,l;case ce:return ca(i.children,r,d,a);case ue:g=8,r|=24;break;case ae:return l=yn(12,i,a,r|2),l.elementType=ae,l.lanes=d,l;case Ye:return l=yn(13,i,a,r),l.elementType=Ye,l.lanes=d,l;case qe:return l=yn(19,i,a,r),l.elementType=qe,l.lanes=d,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case de:case fe:g=10;break e;case ke:g=9;break e;case xe:g=11;break e;case Oe:g=14;break e;case at:g=16,o=null;break e}g=29,i=Error(m(130,l===null?"null":typeof l,"")),o=null}return a=yn(g,i,a,r),a.elementType=l,a.type=o,a.lanes=d,a}function ca(l,a,i,o){return l=yn(7,l,o,a),l.lanes=i,l}function Bs(l,a,i){return l=yn(6,l,null,a),l.lanes=i,l}function Gt(l,a,i){return a=yn(4,l.children!==null?l.children:[],l.key,a),a.lanes=i,a.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},a}var ho=[],mo=0,df=null,ks=0,sa=[],bn=0,bu=null,Xa=1,$t="";function ut(l,a){ho[mo++]=ks,ho[mo++]=df,df=l,ks=a}function qd(l,a,i){sa[bn++]=Xa,sa[bn++]=$t,sa[bn++]=bu,bu=l;var o=Xa;l=$t;var r=32-Ot(o)-1;o&=~(1<<r),i+=1;var d=32-Ot(a)+r;if(30<d){var g=r-r%5;d=(o&(1<<g)-1).toString(32),o>>=g,r-=g,Xa=1<<32-Ot(a)+r|i<<r|o,$t=d+l}else Xa=1<<d|i<<r|o,$t=l}function mc(l){l.return!==null&&(ut(l,1),qd(l,1,0))}function xi(l){for(;l===df;)df=ho[--mo],ho[mo]=null,ks=ho[--mo],ho[mo]=null;for(;l===bu;)bu=sa[--bn],sa[bn]=null,$t=sa[--bn],sa[bn]=null,Xa=sa[--bn],sa[bn]=null}var nl=null,ft=null,st=!1,ra=null,fa=!1,pc=Error(m(519));function Su(l){var a=Error(m(418,""));throw qs(Ql(a,l)),pc}function hf(l){var a=l.stateNode,i=l.type,o=l.memoizedProps;switch(a[ll]=l,a[Tl]=o,i){case"dialog":je("cancel",a),je("close",a);break;case"iframe":case"object":case"embed":je("load",a);break;case"video":case"audio":for(i=0;i<Ff.length;i++)je(Ff[i],a);break;case"source":je("error",a);break;case"img":case"image":case"link":je("error",a),je("load",a);break;case"details":je("toggle",a);break;case"input":je("invalid",a),Fo(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),Ha(a);break;case"select":je("invalid",a);break;case"textarea":je("invalid",a),us(a,o.value,o.defaultValue,o.children),Ha(a)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||o.suppressHydrationWarning===!0||ap(a.textContent,i)?(o.popover!=null&&(je("beforetoggle",a),je("toggle",a)),o.onScroll!=null&&je("scroll",a),o.onScrollEnd!=null&&je("scrollend",a),o.onClick!=null&&(a.onclick=Kh),a=!0):a=!1,a||Su(l)}function Qm(l){for(nl=l.return;nl;)switch(nl.tag){case 5:case 13:fa=!1;return;case 27:case 3:fa=!0;return;default:nl=nl.return}}function Ns(l){if(l!==nl)return!1;if(!st)return Qm(l),st=!0,!1;var a=l.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=l.type,i=!(i!=="form"&&i!=="button")||Gi(l.type,l.memoizedProps)),i=!i),i&&ft&&Su(l),Qm(l),a===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(m(317));e:{for(l=l.nextSibling,a=0;l;){if(l.nodeType===8)if(i=l.data,i==="/$"){if(a===0){ft=Ka(l.nextSibling);break e}a--}else i!=="$"&&i!=="$!"&&i!=="$?"||a++;l=l.nextSibling}ft=null}}else a===27?(a=ft,Uo(l.type)?(l=Ho,Ho=null,ft=l):ft=a):ft=nl?Ka(l.stateNode.nextSibling):null;return!0}function Ls(){ft=nl=null,st=!1}function Zm(){var l=ra;return l!==null&&(Cn===null?Cn=l:Cn.push.apply(Cn,l),ra=null),l}function qs(l){ra===null?ra=[l]:ra.push(l)}var mf=pe(null),Tu=null,ja=null;function xu(l,a,i){ve(mf,a._currentValue),a._currentValue=i}function Ei(l){l._currentValue=mf.current,ie(mf)}function Yd(l,a,i){for(;l!==null;){var o=l.alternate;if((l.childLanes&a)!==a?(l.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),l===i)break;l=l.return}}function $m(l,a,i,o){var r=l.child;for(r!==null&&(r.return=l);r!==null;){var d=r.dependencies;if(d!==null){var g=r.child;d=d.firstContext;e:for(;d!==null;){var y=d;d=r;for(var E=0;E<a.length;E++)if(y.context===a[E]){d.lanes|=i,y=d.alternate,y!==null&&(y.lanes|=i),Yd(d.return,i,l),o||(g=null);break e}d=y.next}}else if(r.tag===18){if(g=r.return,g===null)throw Error(m(341));g.lanes|=i,d=g.alternate,d!==null&&(d.lanes|=i),Yd(g,i,l),g=null}else g=r.child;if(g!==null)g.return=r;else for(g=r;g!==null;){if(g===l){g=null;break}if(r=g.sibling,r!==null){r.return=g.return,g=r;break}g=g.return}r=g}}function Ys(l,a,i,o){l=null;for(var r=a,d=!1;r!==null;){if(!d){if((r.flags&524288)!==0)d=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var g=r.alternate;if(g===null)throw Error(m(387));if(g=g.memoizedProps,g!==null){var y=r.type;ol(r.pendingProps.value,g.value)||(l!==null?l.push(y):l=[y])}}else if(r===fn.current){if(g=r.alternate,g===null)throw Error(m(387));g.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(l!==null?l.push(Dn):l=[Dn])}r=r.return}l!==null&&$m(a,l,i,o),a.flags|=262144}function pf(l){for(l=l.firstContext;l!==null;){if(!ol(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function po(l){Tu=l,ja=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function _l(l){return Jm(Tu,l)}function vf(l,a){return Tu===null&&po(l),Jm(l,a)}function Jm(l,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},ja===null){if(l===null)throw Error(m(308));ja=a,l.dependencies={lanes:0,firstContext:a},l.flags|=524288}else ja=ja.next=a;return i}var Vs=typeof AbortController<"u"?AbortController:function(){var l=[],a=this.signal={aborted:!1,addEventListener:function(i,o){l.push(o)}};this.abort=function(){a.aborted=!0,l.forEach(function(i){return i()})}},Vd=x.unstable_scheduleCallback,pv=x.unstable_NormalPriority,hl={$$typeof:fe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gs(){return{controller:new Vs,data:new Map,refCount:0}}function _i(l){l.refCount--,l.refCount===0&&Vd(pv,function(){l.controller.abort()})}var vo=null,gf=0,da=0,ml=null;function Gd(l,a){if(vo===null){var i=vo=[];gf=0,da=Nc(),ml={status:"pending",value:void 0,then:function(o){i.push(o)}}}return gf++,a.then(Xd,Xd),a}function Xd(){if(--gf===0&&vo!==null){ml!==null&&(ml.status="fulfilled");var l=vo;vo=null,da=0,ml=null;for(var a=0;a<l.length;a++)(0,l[a])()}}function vv(l,a){var i=[],o={status:"pending",value:null,reason:null,then:function(r){i.push(r)}};return l.then(function(){o.status="fulfilled",o.value=a;for(var r=0;r<i.length;r++)(0,i[r])(a)},function(r){for(o.status="rejected",o.reason=r,r=0;r<i.length;r++)(0,i[r])(void 0)}),o}var jd=D.S;D.S=function(l,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&Gd(l,a),jd!==null&&jd(l,a)};var Ci=pe(null);function yf(){var l=Ci.current;return l!==null?l:Rt.pooledCache}function vc(l,a){a===null?ve(Ci,Ci.current):ve(Ci,a.pool)}function Qd(){var l=yf();return l===null?null:{parent:hl._currentValue,pool:l}}var go=Error(m(460)),Zd=Error(m(474)),bf=Error(m(542)),$d={then:function(){}};function Jd(l){return l=l.status,l==="fulfilled"||l==="rejected"}function Sf(){}function Km(l,a,i){switch(i=l[i],i===void 0?l.push(a):i!==a&&(a.then(Sf,Sf),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,Im(l),l;default:if(typeof a.status=="string")a.then(Sf,Sf);else{if(l=Rt,l!==null&&100<l.shellSuspendCounter)throw Error(m(482));l=a,l.status="pending",l.then(function(o){if(a.status==="pending"){var r=a;r.status="fulfilled",r.value=o}},function(o){if(a.status==="pending"){var r=a;r.status="rejected",r.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw l=a.reason,Im(l),l}throw gc=a,go}}var gc=null;function Wm(){if(gc===null)throw Error(m(459));var l=gc;return gc=null,l}function Im(l){if(l===go||l===bf)throw Error(m(483))}var Ai=!1;function Kd(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wd(l,a){l=l.updateQueue,a.updateQueue===l&&(a.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Sn(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Mi(l,a,i){var o=l.updateQueue;if(o===null)return null;if(o=o.shared,(yt&2)!==0){var r=o.pending;return r===null?a.next=a:(a.next=r.next,r.next=a),o.pending=a,a=rf(l),Hs(l,null,i),a}return fo(l,o,a,i),rf(l)}function yc(l,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var o=a.lanes;o&=l.pendingLanes,i|=o,a.lanes=i,$u(l,i)}}function Fm(l,a){var i=l.updateQueue,o=l.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var r=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var g={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?r=d=g:d=d.next=g,i=i.next}while(i!==null);d===null?r=d=a:d=d.next=a}else r=d=a;i={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},l.updateQueue=i;return}l=i.lastBaseUpdate,l===null?i.firstBaseUpdate=a:l.next=a,i.lastBaseUpdate=a}var Pm=!1;function Xs(){if(Pm){var l=ml;if(l!==null)throw l}}function Eu(l,a,i,o){Pm=!1;var r=l.updateQueue;Ai=!1;var d=r.firstBaseUpdate,g=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var E=y,H=E.next;E.next=null,g===null?d=H:g.next=H,g=E;var W=l.alternate;W!==null&&(W=W.updateQueue,y=W.lastBaseUpdate,y!==g&&(y===null?W.firstBaseUpdate=H:y.next=H,W.lastBaseUpdate=E))}if(d!==null){var P=r.baseState;g=0,W=H=E=null,y=d;do{var k=y.lane&-536870913,L=k!==y.lane;if(L?(lt&k)===k:(o&k)===k){k!==0&&k===da&&(Pm=!0),W!==null&&(W=W.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var Ae=l,Me=y;k=a;var ht=i;switch(Me.tag){case 1:if(Ae=Me.payload,typeof Ae=="function"){P=Ae.call(ht,P,k);break e}P=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=Me.payload,k=typeof Ae=="function"?Ae.call(ht,P,k):Ae,k==null)break e;P=ee({},P,k);break e;case 2:Ai=!0}}k=y.callback,k!==null&&(l.flags|=64,L&&(l.flags|=8192),L=r.callbacks,L===null?r.callbacks=[k]:L.push(k))}else L={lane:k,tag:y.tag,payload:y.payload,callback:y.callback,next:null},W===null?(H=W=L,E=P):W=W.next=L,g|=k;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;L=y,y=L.next,L.next=null,r.lastBaseUpdate=L,r.shared.pending=null}}while(!0);W===null&&(E=P),r.baseState=E,r.firstBaseUpdate=H,r.lastBaseUpdate=W,d===null&&(r.shared.lanes=0),zu|=g,l.lanes=g,l.memoizedState=P}}function Id(l,a){if(typeof l!="function")throw Error(m(191,l));l.call(a)}function Tf(l,a){var i=l.callbacks;if(i!==null)for(l.callbacks=null,l=0;l<i.length;l++)Id(i[l],a)}var bc=pe(null),xf=pe(0);function Cl(l,a){l=Du,ve(xf,l),ve(bc,a),Du=l|a.baseLanes}function js(){ve(xf,Du),ve(bc,bc.current)}function Qs(){Du=xf.current,ie(bc),ie(xf)}var ha=0,Xe=null,gt=null,Xt=null,Ef=!1,Gn=!1,yo=!1,Qa=0,Xn=0,_u=null,e0=0;function jt(){throw Error(m(321))}function Fd(l,a){if(a===null)return!1;for(var i=0;i<a.length&&i<l.length;i++)if(!ol(l[i],a[i]))return!1;return!0}function Pd(l,a,i,o,r,d){return ha=d,Xe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,D.H=l===null||l.memoizedState===null?p0:v0,yo=!1,d=i(o,r),yo=!1,Gn&&(d=t0(a,i,o,r)),bo(l),d}function bo(l){D.H=vh;var a=gt!==null&>.next!==null;if(ha=0,Xt=gt=Xe=null,Ef=!1,Xn=0,_u=null,a)throw Error(m(300));l===null||pl||(l=l.dependencies,l!==null&&pf(l)&&(pl=!0))}function t0(l,a,i,o){Xe=l;var r=0;do{if(Gn&&(_u=null),Xn=0,Gn=!1,25<=r)throw Error(m(301));if(r+=1,Xt=gt=null,l.updateQueue!=null){var d=l.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}D.H=Cu,d=a(i,o)}while(Gn);return d}function gv(){var l=D.H,a=l.useState()[0];return a=typeof a.then=="function"?Cf(a):a,l=l.useState()[0],(gt!==null?gt.memoizedState:null)!==l&&(Xe.flags|=1024),a}function eh(){var l=Qa!==0;return Qa=0,l}function Zs(l,a,i){a.updateQueue=l.updateQueue,a.flags&=-2053,l.lanes&=~i}function th(l){if(Ef){for(l=l.memoizedState;l!==null;){var a=l.queue;a!==null&&(a.pending=null),l=l.next}Ef=!1}ha=0,Xt=gt=Xe=null,Gn=!1,Xn=Qa=0,_u=null}function Zl(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?Xe.memoizedState=Xt=l:Xt=Xt.next=l,Xt}function Jt(){if(gt===null){var l=Xe.alternate;l=l!==null?l.memoizedState:null}else l=gt.next;var a=Xt===null?Xe.memoizedState:Xt.next;if(a!==null)Xt=a,gt=l;else{if(l===null)throw Xe.alternate===null?Error(m(467)):Error(m(310));gt=l,l={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Xt===null?Xe.memoizedState=Xt=l:Xt=Xt.next=l}return Xt}function _f(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Cf(l){var a=Xn;return Xn+=1,_u===null&&(_u=[]),l=Km(_u,l,a),a=Xe,(Xt===null?a.memoizedState:Xt.next)===null&&(a=a.alternate,D.H=a===null||a.memoizedState===null?p0:v0),l}function cl(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return Cf(l);if(l.$$typeof===fe)return _l(l)}throw Error(m(438,String(l)))}function lh(l){var a=null,i=Xe.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var o=Xe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(r){return r.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=_f(),Xe.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(l),o=0;o<l;o++)i[o]=Ce;return a.index++,i}function Ri(l,a){return typeof a=="function"?a(l):a}function Af(l){var a=Jt();return nh(a,gt,l)}function nh(l,a,i){var o=l.queue;if(o===null)throw Error(m(311));o.lastRenderedReducer=i;var r=l.baseQueue,d=o.pending;if(d!==null){if(r!==null){var g=r.next;r.next=d.next,d.next=g}a.baseQueue=r=d,o.pending=null}if(d=l.baseState,r===null)l.memoizedState=d;else{a=r.next;var y=g=null,E=null,H=a,W=!1;do{var P=H.lane&-536870913;if(P!==H.lane?(lt&P)===P:(ha&P)===P){var k=H.revertLane;if(k===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),P===da&&(W=!0);else if((ha&k)===k){H=H.next,k===da&&(W=!0);continue}else P={lane:0,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(y=E=P,g=d):E=E.next=P,Xe.lanes|=k,zu|=k;P=H.action,yo&&i(d,P),d=H.hasEagerState?H.eagerState:i(d,P)}else k={lane:P,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(y=E=k,g=d):E=E.next=k,Xe.lanes|=P,zu|=P;H=H.next}while(H!==null&&H!==a);if(E===null?g=d:E.next=y,!ol(d,l.memoizedState)&&(pl=!0,W&&(i=ml,i!==null)))throw i;l.memoizedState=d,l.baseState=g,l.baseQueue=E,o.lastRenderedState=d}return r===null&&(o.lanes=0),[l.memoizedState,o.dispatch]}function ah(l){var a=Jt(),i=a.queue;if(i===null)throw Error(m(311));i.lastRenderedReducer=l;var o=i.dispatch,r=i.pending,d=a.memoizedState;if(r!==null){i.pending=null;var g=r=r.next;do d=l(d,g.action),g=g.next;while(g!==r);ol(d,a.memoizedState)||(pl=!0),a.memoizedState=d,a.baseQueue===null&&(a.baseState=d),i.lastRenderedState=d}return[d,o]}function Mf(l,a,i){var o=Xe,r=Jt(),d=st;if(d){if(i===void 0)throw Error(m(407));i=i()}else i=a();var g=!ol((gt||r).memoizedState,i);g&&(r.memoizedState=i,pl=!0),r=r.queue;var y=n0.bind(null,o,r,l);if(_t(2048,8,y,[l]),r.getSnapshot!==a||g||Xt!==null&&Xt.memoizedState.tag&1){if(o.flags|=2048,Tn(9,zf(),l0.bind(null,o,r,i,a),null),Rt===null)throw Error(m(349));d||(ha&124)!==0||ih(o,a,i)}return i}function ih(l,a,i){l.flags|=16384,l={getSnapshot:a,value:i},a=Xe.updateQueue,a===null?(a=_f(),Xe.updateQueue=a,a.stores=[l]):(i=a.stores,i===null?a.stores=[l]:i.push(l))}function l0(l,a,i,o){a.value=i,a.getSnapshot=o,a0(a)&&uh(l)}function n0(l,a,i){return i(function(){a0(a)&&uh(l)})}function a0(l){var a=l.getSnapshot;l=l.value;try{var i=a();return!ol(l,i)}catch{return!0}}function uh(l){var a=Ti(l,2);a!==null&&Zn(a,l,2)}function Rf(l){var a=Zl();if(typeof l=="function"){var i=l;if(l=i(),yo){Sl(!0);try{i()}finally{Sl(!1)}}}return a.memoizedState=a.baseState=l,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:l},a}function oh(l,a,i,o){return l.baseState=i,nh(l,gt,typeof o=="function"?o:Ri)}function yv(l,a,i,o,r){if(Ec(l))throw Error(m(485));if(l=a.action,l!==null){var d={payload:r,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){d.listeners.push(g)}};D.T!==null?i(!0):d.isTransition=!1,o(d),i=a.pending,i===null?(d.next=a.pending=d,ch(a,d)):(d.next=i.next,a.pending=i.next=d)}}function ch(l,a){var i=a.action,o=a.payload,r=l.state;if(a.isTransition){var d=D.T,g={};D.T=g;try{var y=i(r,o),E=D.S;E!==null&&E(g,y),Df(l,a,y)}catch(H){rh(l,a,H)}finally{D.T=d}}else try{d=i(r,o),Df(l,a,d)}catch(H){rh(l,a,H)}}function Df(l,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){sh(l,a,o)},function(o){return rh(l,a,o)}):sh(l,a,i)}function sh(l,a,i){a.status="fulfilled",a.value=i,i0(a),l.state=i,a=l.pending,a!==null&&(i=a.next,i===a?l.pending=null:(i=i.next,a.next=i,ch(l,i)))}function rh(l,a,i){var o=l.pending;if(l.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=i,i0(a),a=a.next;while(a!==o)}l.action=null}function i0(l){l=l.listeners;for(var a=0;a<l.length;a++)(0,l[a])()}function fh(l,a){return a}function u0(l,a){if(st){var i=Rt.formState;if(i!==null){e:{var o=Xe;if(st){if(ft){t:{for(var r=ft,d=fa;r.nodeType!==8;){if(!d){r=null;break t}if(r=Ka(r.nextSibling),r===null){r=null;break t}}d=r.data,r=d==="F!"||d==="F"?r:null}if(r){ft=Ka(r.nextSibling),o=r.data==="F!";break e}}Su(o)}o=!1}o&&(a=i[0])}}return i=Zl(),i.memoizedState=i.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fh,lastRenderedState:a},i.queue=o,i=h0.bind(null,Xe,o),o.dispatch=i,o=Rf(!1),d=Hf.bind(null,Xe,!1,o.queue),o=Zl(),r={state:a,dispatch:null,action:l,pending:null},o.queue=r,i=yv.bind(null,Xe,r,d,i),r.dispatch=i,o.memoizedState=l,[a,i,!1]}function Di(l){var a=Jt();return dh(a,gt,l)}function dh(l,a,i){if(a=nh(l,a,fh)[0],l=Af(Ri)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=Cf(a)}catch(g){throw g===go?bf:g}else o=a;a=Jt();var r=a.queue,d=r.dispatch;return i!==a.memoizedState&&(Xe.flags|=2048,Tn(9,zf(),$g.bind(null,r,i),null)),[o,d,l]}function $g(l,a){l.action=a}function hh(l){var a=Jt(),i=gt;if(i!==null)return dh(a,i,l);Jt(),a=a.memoizedState,i=Jt();var o=i.queue.dispatch;return i.memoizedState=l,[a,o,!1]}function Tn(l,a,i,o){return l={tag:l,create:i,deps:o,inst:a,next:null},a=Xe.updateQueue,a===null&&(a=_f(),Xe.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=l.next=l:(o=i.next,i.next=l,l.next=o,a.lastEffect=l),l}function zf(){return{destroy:void 0,resource:void 0}}function Of(){return Jt().memoizedState}function So(l,a,i,o){var r=Zl();o=o===void 0?null:o,Xe.flags|=l,r.memoizedState=Tn(1|a,zf(),i,o)}function _t(l,a,i,o){var r=Jt();o=o===void 0?null:o;var d=r.memoizedState.inst;gt!==null&&o!==null&&Fd(o,gt.memoizedState.deps)?r.memoizedState=Tn(a,d,i,o):(Xe.flags|=l,r.memoizedState=Tn(1|a,d,i,o))}function bv(l,a){So(8390656,8,l,a)}function Sv(l,a){_t(2048,8,l,a)}function o0(l,a){return _t(4,2,l,a)}function Za(l,a){return _t(4,4,l,a)}function c0(l,a){if(typeof a=="function"){l=l();var i=a(l);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return l=l(),a.current=l,function(){a.current=null}}function mh(l,a,i){i=i!=null?i.concat([l]):null,_t(4,4,c0.bind(null,a,l),i)}function Sc(){}function Tc(l,a){var i=Jt();a=a===void 0?null:a;var o=i.memoizedState;return a!==null&&Fd(a,o[1])?o[0]:(i.memoizedState=[l,a],l)}function s0(l,a){var i=Jt();a=a===void 0?null:a;var o=i.memoizedState;if(a!==null&&Fd(a,o[1]))return o[0];if(o=l(),yo){Sl(!0);try{l()}finally{Sl(!1)}}return i.memoizedState=[o,a],o}function Uf(l,a,i){return i===void 0||(ha&1073741824)!==0?l.memoizedState=a:(l.memoizedState=i,l=Q0(),Xe.lanes|=l,zu|=l,i)}function r0(l,a,i,o){return ol(i,a)?i:bc.current!==null?(l=Uf(l,i,o),ol(l,a)||(pl=!0),l):(ha&42)===0?(pl=!0,l.memoizedState=i):(l=Q0(),Xe.lanes|=l,zu|=l,a)}function Tv(l,a,i,o,r){var d=I.p;I.p=d!==0&&8>d?d:8;var g=D.T,y={};D.T=y,Hf(l,!1,a,i);try{var E=r(),H=D.S;if(H!==null&&H(y,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var W=vv(E,o);xc(l,a,W,Qn(l))}else xc(l,a,o,Qn(l))}catch(P){xc(l,a,{then:function(){},status:"rejected",reason:P},Qn())}finally{I.p=d,D.T=g}}function Jg(){}function ph(l,a,i,o){if(l.tag!==5)throw Error(m(476));var r=xv(l).queue;Tv(l,r,a,te,i===null?Jg:function(){return $s(l),i(o)})}function xv(l){var a=l.memoizedState;if(a!==null)return a;a={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:te},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:i},next:null},l.memoizedState=a,l=l.alternate,l!==null&&(l.memoizedState=a),a}function $s(l){var a=xv(l).next.queue;xc(l,a,{},Qn())}function ma(){return _l(Dn)}function f0(){return Jt().memoizedState}function Ev(){return Jt().memoizedState}function _v(l){for(var a=l.return;a!==null;){switch(a.tag){case 24:case 3:var i=Qn();l=Sn(i);var o=Mi(a,l,i);o!==null&&(Zn(o,a,i),yc(o,a,i)),a={cache:Gs()},l.payload=a;return}a=a.return}}function d0(l,a,i){var o=Qn();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Ec(l)?Cv(a,i):(i=Us(l,a,i,o),i!==null&&(Zn(i,l,o),m0(i,a,o)))}function h0(l,a,i){var o=Qn();xc(l,a,i,o)}function xc(l,a,i,o){var r={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Ec(l))Cv(a,r);else{var d=l.alternate;if(l.lanes===0&&(d===null||d.lanes===0)&&(d=a.lastRenderedReducer,d!==null))try{var g=a.lastRenderedState,y=d(g,i);if(r.hasEagerState=!0,r.eagerState=y,ol(y,g))return fo(l,a,r,0),Rt===null&&ze(),!1}catch{}finally{}if(i=Us(l,a,r,o),i!==null)return Zn(i,l,o),m0(i,a,o),!0}return!1}function Hf(l,a,i,o){if(o={lane:2,revertLane:Nc(),action:o,hasEagerState:!1,eagerState:null,next:null},Ec(l)){if(a)throw Error(m(479))}else a=Us(l,i,o,2),a!==null&&Zn(a,l,2)}function Ec(l){var a=l.alternate;return l===Xe||a!==null&&a===Xe}function Cv(l,a){Gn=Ef=!0;var i=l.pending;i===null?a.next=a:(a.next=i.next,i.next=a),l.pending=a}function m0(l,a,i){if((i&4194048)!==0){var o=a.lanes;o&=l.pendingLanes,i|=o,a.lanes=i,$u(l,i)}}var vh={readContext:_l,use:cl,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt,useHostTransitionStatus:jt,useFormState:jt,useActionState:jt,useOptimistic:jt,useMemoCache:jt,useCacheRefresh:jt},p0={readContext:_l,use:cl,useCallback:function(l,a){return Zl().memoizedState=[l,a===void 0?null:a],l},useContext:_l,useEffect:bv,useImperativeHandle:function(l,a,i){i=i!=null?i.concat([l]):null,So(4194308,4,c0.bind(null,a,l),i)},useLayoutEffect:function(l,a){return So(4194308,4,l,a)},useInsertionEffect:function(l,a){So(4,2,l,a)},useMemo:function(l,a){var i=Zl();a=a===void 0?null:a;var o=l();if(yo){Sl(!0);try{l()}finally{Sl(!1)}}return i.memoizedState=[o,a],o},useReducer:function(l,a,i){var o=Zl();if(i!==void 0){var r=i(a);if(yo){Sl(!0);try{i(a)}finally{Sl(!1)}}}else r=a;return o.memoizedState=o.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:r},o.queue=l,l=l.dispatch=d0.bind(null,Xe,l),[o.memoizedState,l]},useRef:function(l){var a=Zl();return l={current:l},a.memoizedState=l},useState:function(l){l=Rf(l);var a=l.queue,i=h0.bind(null,Xe,a);return a.dispatch=i,[l.memoizedState,i]},useDebugValue:Sc,useDeferredValue:function(l,a){var i=Zl();return Uf(i,l,a)},useTransition:function(){var l=Rf(!1);return l=Tv.bind(null,Xe,l.queue,!0,!1),Zl().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,a,i){var o=Xe,r=Zl();if(st){if(i===void 0)throw Error(m(407));i=i()}else{if(i=a(),Rt===null)throw Error(m(349));(lt&124)!==0||ih(o,a,i)}r.memoizedState=i;var d={value:i,getSnapshot:a};return r.queue=d,bv(n0.bind(null,o,d,l),[l]),o.flags|=2048,Tn(9,zf(),l0.bind(null,o,d,i,a),null),i},useId:function(){var l=Zl(),a=Rt.identifierPrefix;if(st){var i=$t,o=Xa;i=(o&~(1<<32-Ot(o)-1)).toString(32)+i,a="«"+a+"R"+i,i=Qa++,0<i&&(a+="H"+i.toString(32)),a+="»"}else i=e0++,a="«"+a+"r"+i.toString(32)+"»";return l.memoizedState=a},useHostTransitionStatus:ma,useFormState:u0,useActionState:u0,useOptimistic:function(l){var a=Zl();a.memoizedState=a.baseState=l;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Hf.bind(null,Xe,!0,i),i.dispatch=a,[l,a]},useMemoCache:lh,useCacheRefresh:function(){return Zl().memoizedState=_v.bind(null,Xe)}},v0={readContext:_l,use:cl,useCallback:Tc,useContext:_l,useEffect:Sv,useImperativeHandle:mh,useInsertionEffect:o0,useLayoutEffect:Za,useMemo:s0,useReducer:Af,useRef:Of,useState:function(){return Af(Ri)},useDebugValue:Sc,useDeferredValue:function(l,a){var i=Jt();return r0(i,gt.memoizedState,l,a)},useTransition:function(){var l=Af(Ri)[0],a=Jt().memoizedState;return[typeof l=="boolean"?l:Cf(l),a]},useSyncExternalStore:Mf,useId:f0,useHostTransitionStatus:ma,useFormState:Di,useActionState:Di,useOptimistic:function(l,a){var i=Jt();return oh(i,gt,l,a)},useMemoCache:lh,useCacheRefresh:Ev},Cu={readContext:_l,use:cl,useCallback:Tc,useContext:_l,useEffect:Sv,useImperativeHandle:mh,useInsertionEffect:o0,useLayoutEffect:Za,useMemo:s0,useReducer:ah,useRef:Of,useState:function(){return ah(Ri)},useDebugValue:Sc,useDeferredValue:function(l,a){var i=Jt();return gt===null?Uf(i,l,a):r0(i,gt.memoizedState,l,a)},useTransition:function(){var l=ah(Ri)[0],a=Jt().memoizedState;return[typeof l=="boolean"?l:Cf(l),a]},useSyncExternalStore:Mf,useId:f0,useHostTransitionStatus:ma,useFormState:hh,useActionState:hh,useOptimistic:function(l,a){var i=Jt();return gt!==null?oh(i,gt,l,a):(i.baseState=l,[l,i.queue.dispatch])},useMemoCache:lh,useCacheRefresh:Ev},_c=null,Js=0;function gh(l){var a=Js;return Js+=1,_c===null&&(_c=[]),Km(_c,l,a)}function Cc(l,a){a=a.props.ref,l.ref=a!==void 0?a:null}function $l(l,a){throw a.$$typeof===ne?Error(m(525)):(l=Object.prototype.toString.call(a),Error(m(31,l==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":l)))}function g0(l){var a=l._init;return a(l._payload)}function xn(l){function a(O,z){if(l){var U=O.deletions;U===null?(O.deletions=[z],O.flags|=16):U.push(z)}}function i(O,z){if(!l)return null;for(;z!==null;)a(O,z),z=z.sibling;return null}function o(O){for(var z=new Map;O!==null;)O.key!==null?z.set(O.key,O):z.set(O.index,O),O=O.sibling;return z}function r(O,z){return O=Ga(O,z),O.index=0,O.sibling=null,O}function d(O,z,U){return O.index=U,l?(U=O.alternate,U!==null?(U=U.index,U<z?(O.flags|=67108866,z):U):(O.flags|=67108866,z)):(O.flags|=1048576,z)}function g(O){return l&&O.alternate===null&&(O.flags|=67108866),O}function y(O,z,U,F){return z===null||z.tag!==6?(z=Bs(U,O.mode,F),z.return=O,z):(z=r(z,U),z.return=O,z)}function E(O,z,U,F){var be=U.type;return be===ce?W(O,z,U.props.children,F,U.key):z!==null&&(z.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===at&&g0(be)===z.type)?(z=r(z,U.props),Cc(z,U),z.return=O,z):(z=le(U.type,U.key,U.props,null,O.mode,F),Cc(z,U),z.return=O,z)}function H(O,z,U,F){return z===null||z.tag!==4||z.stateNode.containerInfo!==U.containerInfo||z.stateNode.implementation!==U.implementation?(z=Gt(U,O.mode,F),z.return=O,z):(z=r(z,U.children||[]),z.return=O,z)}function W(O,z,U,F,be){return z===null||z.tag!==7?(z=ca(U,O.mode,F,be),z.return=O,z):(z=r(z,U),z.return=O,z)}function P(O,z,U){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Bs(""+z,O.mode,U),z.return=O,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case V:return U=le(z.type,z.key,z.props,null,O.mode,U),Cc(U,z),U.return=O,U;case oe:return z=Gt(z,O.mode,U),z.return=O,z;case at:var F=z._init;return z=F(z._payload),P(O,z,U)}if(vt(z)||Ee(z))return z=ca(z,O.mode,U,null),z.return=O,z;if(typeof z.then=="function")return P(O,gh(z),U);if(z.$$typeof===fe)return P(O,vf(O,z),U);$l(O,z)}return null}function k(O,z,U,F){var be=z!==null?z.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return be!==null?null:y(O,z,""+U,F);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case V:return U.key===be?E(O,z,U,F):null;case oe:return U.key===be?H(O,z,U,F):null;case at:return be=U._init,U=be(U._payload),k(O,z,U,F)}if(vt(U)||Ee(U))return be!==null?null:W(O,z,U,F,null);if(typeof U.then=="function")return k(O,z,gh(U),F);if(U.$$typeof===fe)return k(O,z,vf(O,U),F);$l(O,U)}return null}function L(O,z,U,F,be){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return O=O.get(U)||null,y(z,O,""+F,be);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case V:return O=O.get(F.key===null?U:F.key)||null,E(z,O,F,be);case oe:return O=O.get(F.key===null?U:F.key)||null,H(z,O,F,be);case at:var Ie=F._init;return F=Ie(F._payload),L(O,z,U,F,be)}if(vt(F)||Ee(F))return O=O.get(U)||null,W(z,O,F,be,null);if(typeof F.then=="function")return L(O,z,U,gh(F),be);if(F.$$typeof===fe)return L(O,z,U,vf(z,F),be);$l(z,F)}return null}function Ae(O,z,U,F){for(var be=null,Ie=null,_e=z,He=z=0,Rl=null;_e!==null&&He<U.length;He++){_e.index>He?(Rl=_e,_e=null):Rl=_e.sibling;var ct=k(O,_e,U[He],F);if(ct===null){_e===null&&(_e=Rl);break}l&&_e&&ct.alternate===null&&a(O,_e),z=d(ct,z,He),Ie===null?be=ct:Ie.sibling=ct,Ie=ct,_e=Rl}if(He===U.length)return i(O,_e),st&&ut(O,He),be;if(_e===null){for(;He<U.length;He++)_e=P(O,U[He],F),_e!==null&&(z=d(_e,z,He),Ie===null?be=_e:Ie.sibling=_e,Ie=_e);return st&&ut(O,He),be}for(_e=o(_e);He<U.length;He++)Rl=L(_e,O,He,U[He],F),Rl!==null&&(l&&Rl.alternate!==null&&_e.delete(Rl.key===null?He:Rl.key),z=d(Rl,z,He),Ie===null?be=Rl:Ie.sibling=Rl,Ie=Rl);return l&&_e.forEach(function(Lo){return a(O,Lo)}),st&&ut(O,He),be}function Me(O,z,U,F){if(U==null)throw Error(m(151));for(var be=null,Ie=null,_e=z,He=z=0,Rl=null,ct=U.next();_e!==null&&!ct.done;He++,ct=U.next()){_e.index>He?(Rl=_e,_e=null):Rl=_e.sibling;var Lo=k(O,_e,ct.value,F);if(Lo===null){_e===null&&(_e=Rl);break}l&&_e&&Lo.alternate===null&&a(O,_e),z=d(Lo,z,He),Ie===null?be=Lo:Ie.sibling=Lo,Ie=Lo,_e=Rl}if(ct.done)return i(O,_e),st&&ut(O,He),be;if(_e===null){for(;!ct.done;He++,ct=U.next())ct=P(O,ct.value,F),ct!==null&&(z=d(ct,z,He),Ie===null?be=ct:Ie.sibling=ct,Ie=ct);return st&&ut(O,He),be}for(_e=o(_e);!ct.done;He++,ct=U.next())ct=L(_e,O,He,ct.value,F),ct!==null&&(l&&ct.alternate!==null&&_e.delete(ct.key===null?He:ct.key),z=d(ct,z,He),Ie===null?be=ct:Ie.sibling=ct,Ie=ct);return l&&_e.forEach(function(uy){return a(O,uy)}),st&&ut(O,He),be}function ht(O,z,U,F){if(typeof U=="object"&&U!==null&&U.type===ce&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case V:e:{for(var be=U.key;z!==null;){if(z.key===be){if(be=U.type,be===ce){if(z.tag===7){i(O,z.sibling),F=r(z,U.props.children),F.return=O,O=F;break e}}else if(z.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===at&&g0(be)===z.type){i(O,z.sibling),F=r(z,U.props),Cc(F,U),F.return=O,O=F;break e}i(O,z);break}else a(O,z);z=z.sibling}U.type===ce?(F=ca(U.props.children,O.mode,F,U.key),F.return=O,O=F):(F=le(U.type,U.key,U.props,null,O.mode,F),Cc(F,U),F.return=O,O=F)}return g(O);case oe:e:{for(be=U.key;z!==null;){if(z.key===be)if(z.tag===4&&z.stateNode.containerInfo===U.containerInfo&&z.stateNode.implementation===U.implementation){i(O,z.sibling),F=r(z,U.children||[]),F.return=O,O=F;break e}else{i(O,z);break}else a(O,z);z=z.sibling}F=Gt(U,O.mode,F),F.return=O,O=F}return g(O);case at:return be=U._init,U=be(U._payload),ht(O,z,U,F)}if(vt(U))return Ae(O,z,U,F);if(Ee(U)){if(be=Ee(U),typeof be!="function")throw Error(m(150));return U=be.call(U),Me(O,z,U,F)}if(typeof U.then=="function")return ht(O,z,gh(U),F);if(U.$$typeof===fe)return ht(O,z,vf(O,U),F);$l(O,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,z!==null&&z.tag===6?(i(O,z.sibling),F=r(z,U),F.return=O,O=F):(i(O,z),F=Bs(U,O.mode,F),F.return=O,O=F),g(O)):i(O,z)}return function(O,z,U,F){try{Js=0;var be=ht(O,z,U,F);return _c=null,be}catch(_e){if(_e===go||_e===bf)throw _e;var Ie=yn(29,_e,null,O.mode);return Ie.lanes=F,Ie.return=O,Ie}finally{}}}var Ac=xn(!0),zi=xn(!1),jn=pe(null),Jl=null;function Au(l){var a=l.alternate;ve(Ct,Ct.current&1),ve(jn,l),Jl===null&&(a===null||bc.current!==null||a.memoizedState!==null)&&(Jl=l)}function Oi(l){if(l.tag===22){if(ve(Ct,Ct.current),ve(jn,l),Jl===null){var a=l.alternate;a!==null&&a.memoizedState!==null&&(Jl=l)}}else Ui()}function Ui(){ve(Ct,Ct.current),ve(jn,jn.current)}function $a(l){ie(jn),Jl===l&&(Jl=null),ie(Ct)}var Ct=pe(0);function wf(l){for(var a=l;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||nd(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function To(l,a,i,o){a=l.memoizedState,i=i(o,a),i=i==null?a:ee({},a,i),l.memoizedState=i,l.lanes===0&&(l.updateQueue.baseState=i)}var yh={enqueueSetState:function(l,a,i){l=l._reactInternals;var o=Qn(),r=Sn(o);r.payload=a,i!=null&&(r.callback=i),a=Mi(l,r,o),a!==null&&(Zn(a,l,o),yc(a,l,o))},enqueueReplaceState:function(l,a,i){l=l._reactInternals;var o=Qn(),r=Sn(o);r.tag=1,r.payload=a,i!=null&&(r.callback=i),a=Mi(l,r,o),a!==null&&(Zn(a,l,o),yc(a,l,o))},enqueueForceUpdate:function(l,a){l=l._reactInternals;var i=Qn(),o=Sn(i);o.tag=2,a!=null&&(o.callback=a),a=Mi(l,o,i),a!==null&&(Zn(a,l,i),yc(a,l,i))}};function Ks(l,a,i,o,r,d,g){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(o,d,g):a.prototype&&a.prototype.isPureReactComponent?!La(i,o)||!La(r,d):!0}function Mc(l,a,i,o){l=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,o),a.state!==l&&yh.enqueueReplaceState(a,a.state,null)}function xo(l,a){var i=a;if("ref"in a){i={};for(var o in a)o!=="ref"&&(i[o]=a[o])}if(l=l.defaultProps){i===a&&(i=ee({},i));for(var r in l)i[r]===void 0&&(i[r]=l[r])}return i}var Bf=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof l=="object"&&l!==null&&typeof l.message=="string"?String(l.message):String(l),error:l});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)};function Ws(l){Bf(l)}function y0(l){console.error(l)}function kf(l){Bf(l)}function Nf(l,a){try{var i=l.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function b0(l,a,i){try{var o=l.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function S0(l,a,i){return i=Sn(i),i.tag=3,i.payload={element:null},i.callback=function(){Nf(l,a)},i}function T0(l){return l=Sn(l),l.tag=3,l}function En(l,a,i,o){var r=i.type.getDerivedStateFromError;if(typeof r=="function"){var d=o.value;l.payload=function(){return r(d)},l.callback=function(){b0(a,i,o)}}var g=i.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(l.callback=function(){b0(a,i,o),typeof r!="function"&&(Ao===null?Ao=new Set([this]):Ao.add(this));var y=o.stack;this.componentDidCatch(o.value,{componentStack:y!==null?y:""})})}function Av(l,a,i,o,r){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=i.alternate,a!==null&&Ys(a,i,r,!0),i=jn.current,i!==null){switch(i.tag){case 13:return Jl===null?kc():i.alternate===null&&Ft===0&&(Ft=3),i.flags&=-257,i.flags|=65536,i.lanes=r,o===$d?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([o]):a.add(o),jh(l,o,r)),!1;case 22:return i.flags|=65536,o===$d?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([o]):i.add(o)),jh(l,o,r)),!1}throw Error(m(435,i.tag))}return jh(l,o,r),kc(),!1}if(st)return a=jn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=r,o!==pc&&(l=Error(m(422),{cause:o}),qs(Ql(l,i)))):(o!==pc&&(a=Error(m(423),{cause:o}),qs(Ql(a,i))),l=l.current.alternate,l.flags|=65536,r&=-r,l.lanes|=r,o=Ql(o,i),r=S0(l.stateNode,o,r),Fm(l,r),Ft!==4&&(Ft=2)),!1;var d=Error(m(520),{cause:o});if(d=Ql(d,i),nr===null?nr=[d]:nr.push(d),Ft!==4&&(Ft=2),a===null)return!0;o=Ql(o,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,l=r&-r,i.lanes|=l,l=S0(i.stateNode,o,l),Fm(i,l),!1;case 1:if(a=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ao===null||!Ao.has(d))))return i.flags|=65536,r&=-r,i.lanes|=r,r=T0(r),En(r,l,i,o),Fm(i,r),!1}i=i.return}while(i!==null);return!1}var Kt=Error(m(461)),pl=!1;function Al(l,a,i,o){a.child=l===null?zi(a,null,i,o):Ac(a,l.child,i,o)}function Mv(l,a,i,o,r){i=i.render;var d=a.ref;if("ref"in o){var g={};for(var y in o)y!=="ref"&&(g[y]=o[y])}else g=o;return po(a),o=Pd(l,a,i,g,d,r),y=eh(),l!==null&&!pl?(Zs(l,a,r),Hi(l,a,r)):(st&&y&&mc(a),a.flags|=1,Al(l,a,o,r),a.child)}function Mu(l,a,i,o,r){if(l===null){var d=i.type;return typeof d=="function"&&!ff(d)&&d.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=d,Rc(l,a,d,o,r)):(l=le(i.type,null,o,a,a.mode,r),l.ref=a.ref,l.return=a,a.child=l)}if(d=l.child,!Rh(l,r)){var g=d.memoizedProps;if(i=i.compare,i=i!==null?i:La,i(g,o)&&l.ref===a.ref)return Hi(l,a,r)}return a.flags|=1,l=Ga(d,o),l.ref=a.ref,l.return=a,a.child=l}function Rc(l,a,i,o,r){if(l!==null){var d=l.memoizedProps;if(La(d,o)&&l.ref===a.ref)if(pl=!1,a.pendingProps=o=d,Rh(l,r))(l.flags&131072)!==0&&(pl=!0);else return a.lanes=l.lanes,Hi(l,a,r)}return Sh(l,a,i,o,r)}function bh(l,a,i){var o=a.pendingProps,r=o.children,d=l!==null?l.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=d!==null?d.baseLanes|i:i,l!==null){for(r=a.child=l.child,d=0;r!==null;)d=d|r.lanes|r.childLanes,r=r.sibling;a.childLanes=d&~o}else a.childLanes=0,a.child=null;return Dc(l,a,o,i)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},l!==null&&vc(a,d!==null?d.cachePool:null),d!==null?Cl(a,d):js(),Oi(a);else return a.lanes=a.childLanes=536870912,Dc(l,a,d!==null?d.baseLanes|i:i,i)}else d!==null?(vc(a,d.cachePool),Cl(a,d),Ui(),a.memoizedState=null):(l!==null&&vc(a,null),js(),Ui());return Al(l,a,r,i),a.child}function Dc(l,a,i,o){var r=yf();return r=r===null?null:{parent:hl._currentValue,pool:r},a.memoizedState={baseLanes:i,cachePool:r},l!==null&&vc(a,null),js(),Oi(a),l!==null&&Ys(l,a,o,!0),null}function Lf(l,a){var i=a.ref;if(i===null)l!==null&&l.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(m(284));(l===null||l.ref!==i)&&(a.flags|=4194816)}}function Sh(l,a,i,o,r){return po(a),i=Pd(l,a,i,o,void 0,r),o=eh(),l!==null&&!pl?(Zs(l,a,r),Hi(l,a,r)):(st&&o&&mc(a),a.flags|=1,Al(l,a,i,r),a.child)}function x0(l,a,i,o,r,d){return po(a),a.updateQueue=null,i=t0(a,o,i,r),bo(l),o=eh(),l!==null&&!pl?(Zs(l,a,d),Hi(l,a,d)):(st&&o&&mc(a),a.flags|=1,Al(l,a,i,d),a.child)}function Th(l,a,i,o,r){if(po(a),a.stateNode===null){var d=ws,g=i.contextType;typeof g=="object"&&g!==null&&(d=_l(g)),d=new i(o,d),a.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=yh,a.stateNode=d,d._reactInternals=a,d=a.stateNode,d.props=o,d.state=a.memoizedState,d.refs={},Kd(a),g=i.contextType,d.context=typeof g=="object"&&g!==null?_l(g):ws,d.state=a.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(To(a,i,g,o),d.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&yh.enqueueReplaceState(d,d.state,null),Eu(a,o,d,r),Xs(),d.state=a.memoizedState),typeof d.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(l===null){d=a.stateNode;var y=a.memoizedProps,E=xo(i,y);d.props=E;var H=d.context,W=i.contextType;g=ws,typeof W=="object"&&W!==null&&(g=_l(W));var P=i.getDerivedStateFromProps;W=typeof P=="function"||typeof d.getSnapshotBeforeUpdate=="function",y=a.pendingProps!==y,W||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y||H!==g)&&Mc(a,d,o,g),Ai=!1;var k=a.memoizedState;d.state=k,Eu(a,o,d,r),Xs(),H=a.memoizedState,y||k!==H||Ai?(typeof P=="function"&&(To(a,i,P,o),H=a.memoizedState),(E=Ai||Ks(a,i,E,o,k,H,g))?(W||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(a.flags|=4194308)):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=H),d.props=o,d.state=H,d.context=g,o=E):(typeof d.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{d=a.stateNode,Wd(l,a),g=a.memoizedProps,W=xo(i,g),d.props=W,P=a.pendingProps,k=d.context,H=i.contextType,E=ws,typeof H=="object"&&H!==null&&(E=_l(H)),y=i.getDerivedStateFromProps,(H=typeof y=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==P||k!==E)&&Mc(a,d,o,E),Ai=!1,k=a.memoizedState,d.state=k,Eu(a,o,d,r),Xs();var L=a.memoizedState;g!==P||k!==L||Ai||l!==null&&l.dependencies!==null&&pf(l.dependencies)?(typeof y=="function"&&(To(a,i,y,o),L=a.memoizedState),(W=Ai||Ks(a,i,W,o,k,L,E)||l!==null&&l.dependencies!==null&&pf(l.dependencies))?(H||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,L,E),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,L,E)),typeof d.componentDidUpdate=="function"&&(a.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===l.memoizedProps&&k===l.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===l.memoizedProps&&k===l.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=L),d.props=o,d.state=L,d.context=E,o=W):(typeof d.componentDidUpdate!="function"||g===l.memoizedProps&&k===l.memoizedState||(a.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===l.memoizedProps&&k===l.memoizedState||(a.flags|=1024),o=!1)}return d=o,Lf(l,a),o=(a.flags&128)!==0,d||o?(d=a.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:d.render(),a.flags|=1,l!==null&&o?(a.child=Ac(a,l.child,null,r),a.child=Ac(a,null,i,r)):Al(l,a,i,r),a.memoizedState=d.state,l=a.child):l=Hi(l,a,r),l}function xh(l,a,i,o){return Ls(),a.flags|=256,Al(l,a,i,o),a.child}var Eh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function E0(l){return{baseLanes:l,cachePool:Qd()}}function _0(l,a,i){return l=l!==null?l.childLanes&~i:0,a&&(l|=ga),l}function C0(l,a,i){var o=a.pendingProps,r=!1,d=(a.flags&128)!==0,g;if((g=d)||(g=l!==null&&l.memoizedState===null?!1:(Ct.current&2)!==0),g&&(r=!0,a.flags&=-129),g=(a.flags&32)!==0,a.flags&=-33,l===null){if(st){if(r?Au(a):Ui(),st){var y=ft,E;if(E=y){e:{for(E=y,y=fa;E.nodeType!==8;){if(!y){y=null;break e}if(E=Ka(E.nextSibling),E===null){y=null;break e}}y=E}y!==null?(a.memoizedState={dehydrated:y,treeContext:bu!==null?{id:Xa,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},E=yn(18,null,null,0),E.stateNode=y,E.return=a,a.child=E,nl=a,ft=null,E=!0):E=!1}E||Su(a)}if(y=a.memoizedState,y!==null&&(y=y.dehydrated,y!==null))return nd(y)?a.lanes=32:a.lanes=536870912,null;$a(a)}return y=o.children,o=o.fallback,r?(Ui(),r=a.mode,y=Ch({mode:"hidden",children:y},r),o=ca(o,r,i,null),y.return=a,o.return=a,y.sibling=o,a.child=y,r=a.child,r.memoizedState=E0(i),r.childLanes=_0(l,g,i),a.memoizedState=Eh,o):(Au(a),_h(a,y))}if(E=l.memoizedState,E!==null&&(y=E.dehydrated,y!==null)){if(d)a.flags&256?(Au(a),a.flags&=-257,a=Eo(l,a,i)):a.memoizedState!==null?(Ui(),a.child=l.child,a.flags|=128,a=null):(Ui(),r=o.fallback,y=a.mode,o=Ch({mode:"visible",children:o.children},y),r=ca(r,y,i,null),r.flags|=2,o.return=a,r.return=a,o.sibling=r,a.child=o,Ac(a,l.child,null,i),o=a.child,o.memoizedState=E0(i),o.childLanes=_0(l,g,i),a.memoizedState=Eh,a=r);else if(Au(a),nd(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var H=g.dgst;g=H,o=Error(m(419)),o.stack="",o.digest=g,qs({value:o,source:null,stack:null}),a=Eo(l,a,i)}else if(pl||Ys(l,a,i,!1),g=(i&l.childLanes)!==0,pl||g){if(g=Rt,g!==null&&(o=i&-i,o=(o&42)!==0?1:dn(o),o=(o&(g.suspendedLanes|i))!==0?0:o,o!==0&&o!==E.retryLane))throw E.retryLane=o,Ti(l,o),Zn(g,l,o),Kt;y.data==="$?"||kc(),a=Eo(l,a,i)}else y.data==="$?"?(a.flags|=192,a.child=l.child,a=null):(l=E.treeContext,ft=Ka(y.nextSibling),nl=a,st=!0,ra=null,fa=!1,l!==null&&(sa[bn++]=Xa,sa[bn++]=$t,sa[bn++]=bu,Xa=l.id,$t=l.overflow,bu=a),a=_h(a,o.children),a.flags|=4096);return a}return r?(Ui(),r=o.fallback,y=a.mode,E=l.child,H=E.sibling,o=Ga(E,{mode:"hidden",children:o.children}),o.subtreeFlags=E.subtreeFlags&65011712,H!==null?r=Ga(H,r):(r=ca(r,y,i,null),r.flags|=2),r.return=a,o.return=a,o.sibling=r,a.child=o,o=r,r=a.child,y=l.child.memoizedState,y===null?y=E0(i):(E=y.cachePool,E!==null?(H=hl._currentValue,E=E.parent!==H?{parent:H,pool:H}:E):E=Qd(),y={baseLanes:y.baseLanes|i,cachePool:E}),r.memoizedState=y,r.childLanes=_0(l,g,i),a.memoizedState=Eh,o):(Au(a),i=l.child,l=i.sibling,i=Ga(i,{mode:"visible",children:o.children}),i.return=a,i.sibling=null,l!==null&&(g=a.deletions,g===null?(a.deletions=[l],a.flags|=16):g.push(l)),a.child=i,a.memoizedState=null,i)}function _h(l,a){return a=Ch({mode:"visible",children:a},l.mode),a.return=l,l.child=a}function Ch(l,a){return l=yn(22,l,null,a),l.lanes=0,l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},l}function Eo(l,a,i){return Ac(a,l.child,null,i),l=_h(a,a.pendingProps.children),l.flags|=2,a.memoizedState=null,l}function qf(l,a,i){l.lanes|=a;var o=l.alternate;o!==null&&(o.lanes|=a),Yd(l.return,a,i)}function Ah(l,a,i,o,r){var d=l.memoizedState;d===null?l.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:r}:(d.isBackwards=a,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=i,d.tailMode=r)}function Mh(l,a,i){var o=a.pendingProps,r=o.revealOrder,d=o.tail;if(Al(l,a,o.children,i),o=Ct.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(l!==null&&(l.flags&128)!==0)e:for(l=a.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&qf(l,i,a);else if(l.tag===19)qf(l,i,a);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o&=1}switch(ve(Ct,o),r){case"forwards":for(i=a.child,r=null;i!==null;)l=i.alternate,l!==null&&wf(l)===null&&(r=i),i=i.sibling;i=r,i===null?(r=a.child,a.child=null):(r=i.sibling,i.sibling=null),Ah(a,!1,r,i,d);break;case"backwards":for(i=null,r=a.child,a.child=null;r!==null;){if(l=r.alternate,l!==null&&wf(l)===null){a.child=r;break}l=r.sibling,r.sibling=i,i=r,r=l}Ah(a,!0,i,null,d);break;case"together":Ah(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Hi(l,a,i){if(l!==null&&(a.dependencies=l.dependencies),zu|=a.lanes,(i&a.childLanes)===0)if(l!==null){if(Ys(l,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(l!==null&&a.child!==l.child)throw Error(m(153));if(a.child!==null){for(l=a.child,i=Ga(l,l.pendingProps),a.child=i,i.return=a;l.sibling!==null;)l=l.sibling,i=i.sibling=Ga(l,l.pendingProps),i.return=a;i.sibling=null}return a.child}function Rh(l,a){return(l.lanes&a)!==0?!0:(l=l.dependencies,!!(l!==null&&pf(l)))}function Rv(l,a,i){switch(a.tag){case 3:xt(a,a.stateNode.containerInfo),xu(a,hl,l.memoizedState.cache),Ls();break;case 27:case 5:bl(a);break;case 4:xt(a,a.stateNode.containerInfo);break;case 10:xu(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(Au(a),a.flags|=128,null):(i&a.child.childLanes)!==0?C0(l,a,i):(Au(a),l=Hi(l,a,i),l!==null?l.sibling:null);Au(a);break;case 19:var r=(l.flags&128)!==0;if(o=(i&a.childLanes)!==0,o||(Ys(l,a,i,!1),o=(i&a.childLanes)!==0),r){if(o)return Mh(l,a,i);a.flags|=128}if(r=a.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ve(Ct,Ct.current),o)break;return null;case 22:case 23:return a.lanes=0,bh(l,a,i);case 24:xu(a,hl,l.memoizedState.cache)}return Hi(l,a,i)}function Dv(l,a,i){if(l!==null)if(l.memoizedProps!==a.pendingProps)pl=!0;else{if(!Rh(l,i)&&(a.flags&128)===0)return pl=!1,Rv(l,a,i);pl=(l.flags&131072)!==0}else pl=!1,st&&(a.flags&1048576)!==0&&qd(a,ks,a.index);switch(a.lanes=0,a.tag){case 16:e:{l=a.pendingProps;var o=a.elementType,r=o._init;if(o=r(o._payload),a.type=o,typeof o=="function")ff(o)?(l=xo(o,l),a.tag=1,a=Th(null,a,o,l,i)):(a.tag=0,a=Sh(null,a,o,l,i));else{if(o!=null){if(r=o.$$typeof,r===xe){a.tag=11,a=Mv(null,a,o,l,i);break e}else if(r===Oe){a.tag=14,a=Mu(null,a,o,l,i);break e}}throw a=Mt(o)||o,Error(m(306,a,""))}}return a;case 0:return Sh(l,a,a.type,a.pendingProps,i);case 1:return o=a.type,r=xo(o,a.pendingProps),Th(l,a,o,r,i);case 3:e:{if(xt(a,a.stateNode.containerInfo),l===null)throw Error(m(387));o=a.pendingProps;var d=a.memoizedState;r=d.element,Wd(l,a),Eu(a,o,null,i);var g=a.memoizedState;if(o=g.cache,xu(a,hl,o),o!==d.cache&&$m(a,[hl],i,!0),Xs(),o=g.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:g.cache},a.updateQueue.baseState=d,a.memoizedState=d,a.flags&256){a=xh(l,a,o,i);break e}else if(o!==r){r=Ql(Error(m(424)),a),qs(r),a=xh(l,a,o,i);break e}else{switch(l=a.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(ft=Ka(l.firstChild),nl=a,st=!0,ra=null,fa=!0,i=zi(a,null,o,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Ls(),o===r){a=Hi(l,a,i);break e}Al(l,a,o,i)}a=a.child}return a;case 26:return Lf(l,a),l===null?(i=Qv(a.type,null,a.pendingProps,null))?a.memoizedState=i:st||(i=a.type,l=a.pendingProps,o=ba($e.current).createElement(i),o[ll]=a,o[Tl]=l,Ne(o,i,l),Zt(o),a.stateNode=o):a.memoizedState=Qv(a.type,l.memoizedProps,a.pendingProps,l.memoizedState),null;case 27:return bl(a),l===null&&st&&(o=a.stateNode=he(a.type,a.pendingProps,$e.current),nl=a,fa=!0,r=ft,Uo(a.type)?(Ho=r,ft=Ka(o.firstChild)):ft=r),Al(l,a,a.pendingProps.children,i),Lf(l,a),l===null&&(a.flags|=4194304),a.child;case 5:return l===null&&st&&((r=o=ft)&&(o=pr(o,a.type,a.pendingProps,fa),o!==null?(a.stateNode=o,nl=a,ft=Ka(o.firstChild),fa=!1,r=!0):r=!1),r||Su(a)),bl(a),r=a.type,d=a.pendingProps,g=l!==null?l.memoizedProps:null,o=d.children,Gi(r,d)?o=null:g!==null&&Gi(r,g)&&(a.flags|=32),a.memoizedState!==null&&(r=Pd(l,a,gv,null,null,i),Dn._currentValue=r),Lf(l,a),Al(l,a,o,i),a.child;case 6:return l===null&&st&&((l=i=ft)&&(i=ny(i,a.pendingProps,fa),i!==null?(a.stateNode=i,nl=a,ft=null,l=!0):l=!1),l||Su(a)),null;case 13:return C0(l,a,i);case 4:return xt(a,a.stateNode.containerInfo),o=a.pendingProps,l===null?a.child=Ac(a,null,o,i):Al(l,a,o,i),a.child;case 11:return Mv(l,a,a.type,a.pendingProps,i);case 7:return Al(l,a,a.pendingProps,i),a.child;case 8:return Al(l,a,a.pendingProps.children,i),a.child;case 12:return Al(l,a,a.pendingProps.children,i),a.child;case 10:return o=a.pendingProps,xu(a,a.type,o.value),Al(l,a,o.children,i),a.child;case 9:return r=a.type._context,o=a.pendingProps.children,po(a),r=_l(r),o=o(r),a.flags|=1,Al(l,a,o,i),a.child;case 14:return Mu(l,a,a.type,a.pendingProps,i);case 15:return Rc(l,a,a.type,a.pendingProps,i);case 19:return Mh(l,a,i);case 31:return o=a.pendingProps,i=a.mode,o={mode:o.mode,children:o.children},l===null?(i=Ch(o,i),i.ref=a.ref,a.child=i,i.return=a,a=i):(i=Ga(l.child,o),i.ref=a.ref,a.child=i,i.return=a,a=i),a;case 22:return bh(l,a,i);case 24:return po(a),o=_l(hl),l===null?(r=yf(),r===null&&(r=Rt,d=Gs(),r.pooledCache=d,d.refCount++,d!==null&&(r.pooledCacheLanes|=i),r=d),a.memoizedState={parent:o,cache:r},Kd(a),xu(a,hl,r)):((l.lanes&i)!==0&&(Wd(l,a),Eu(a,null,null,i),Xs()),r=l.memoizedState,d=a.memoizedState,r.parent!==o?(r={parent:o,cache:o},a.memoizedState=r,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=r),xu(a,hl,o)):(o=d.cache,xu(a,hl,o),o!==r.cache&&$m(a,[hl],i,!0))),Al(l,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(m(156,a.tag))}function wi(l){l.flags|=4}function Is(l,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!cp(a)){if(a=jn.current,a!==null&&((lt&4194048)===lt?Jl!==null:(lt&62914560)!==lt&&(lt&536870912)===0||a!==Jl))throw gc=$d,Zd;l.flags|=8192}}function Yf(l,a){a!==null&&(l.flags|=4),l.flags&16384&&(a=l.tag!==22?ti():536870912,l.lanes|=a,lr|=a)}function Fs(l,a){if(!st)switch(l.tailMode){case"hidden":a=l.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?l.tail=null:i.sibling=null;break;case"collapsed":i=l.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?a||l.tail===null?l.tail=null:l.tail.sibling=null:o.sibling=null}}function Ue(l){var a=l.alternate!==null&&l.alternate.child===l.child,i=0,o=0;if(a)for(var r=l.child;r!==null;)i|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=l,r=r.sibling;else for(r=l.child;r!==null;)i|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=l,r=r.sibling;return l.subtreeFlags|=o,l.childLanes=i,a}function A0(l,a,i){var o=a.pendingProps;switch(xi(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(a),null;case 1:return Ue(a),null;case 3:return i=a.stateNode,o=null,l!==null&&(o=l.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Ei(hl),Vt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(l===null||l.child===null)&&(Ns(a)?wi(a):l===null||l.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Zm())),Ue(a),null;case 26:return i=a.memoizedState,l===null?(wi(a),i!==null?(Ue(a),Is(a,i)):(Ue(a),a.flags&=-16777217)):i?i!==l.memoizedState?(wi(a),Ue(a),Is(a,i)):(Ue(a),a.flags&=-16777217):(l.memoizedProps!==o&&wi(a),Ue(a),a.flags&=-16777217),null;case 27:On(a),i=$e.current;var r=a.type;if(l!==null&&a.stateNode!=null)l.memoizedProps!==o&&wi(a);else{if(!o){if(a.stateNode===null)throw Error(m(166));return Ue(a),null}l=Be.current,Ns(a)?hf(a):(l=he(r,o,i),a.stateNode=l,wi(a))}return Ue(a),null;case 5:if(On(a),i=a.type,l!==null&&a.stateNode!=null)l.memoizedProps!==o&&wi(a);else{if(!o){if(a.stateNode===null)throw Error(m(166));return Ue(a),null}if(l=Be.current,Ns(a))hf(a);else{switch(r=ba($e.current),l){case 1:l=r.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:l=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":l=r.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":l=r.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":l=r.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof o.is=="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l=typeof o.is=="string"?r.createElement(i,{is:o.is}):r.createElement(i)}}l[ll]=a,l[Tl]=o;e:for(r=a.child;r!==null;){if(r.tag===5||r.tag===6)l.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}a.stateNode=l;e:switch(Ne(l,i,o),i){case"button":case"input":case"select":case"textarea":l=!!o.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&wi(a)}}return Ue(a),a.flags&=-16777217,null;case 6:if(l&&a.stateNode!=null)l.memoizedProps!==o&&wi(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(m(166));if(l=$e.current,Ns(a)){if(l=a.stateNode,i=a.memoizedProps,o=null,r=nl,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}l[ll]=a,l=!!(l.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||ap(l.nodeValue,i)),l||Su(a)}else l=ba(l).createTextNode(o),l[ll]=a,a.stateNode=l}return Ue(a),null;case 13:if(o=a.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(r=Ns(a),o!==null&&o.dehydrated!==null){if(l===null){if(!r)throw Error(m(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(m(317));r[ll]=a}else Ls(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ue(a),r=!1}else r=Zm(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=r),r=!0;if(!r)return a.flags&256?($a(a),a):($a(a),null)}if($a(a),(a.flags&128)!==0)return a.lanes=i,a;if(i=o!==null,l=l!==null&&l.memoizedState!==null,i){o=a.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==r&&(o.flags|=2048)}return i!==l&&i&&(a.child.flags|=8192),Yf(a,a.updateQueue),Ue(a),null;case 4:return Vt(),l===null&&lp(a.stateNode.containerInfo),Ue(a),null;case 10:return Ei(a.type),Ue(a),null;case 19:if(ie(Ct),r=a.memoizedState,r===null)return Ue(a),null;if(o=(a.flags&128)!==0,d=r.rendering,d===null)if(o)Fs(r,!1);else{if(Ft!==0||l!==null&&(l.flags&128)!==0)for(l=a.child;l!==null;){if(d=wf(l),d!==null){for(a.flags|=128,Fs(r,!1),l=d.updateQueue,a.updateQueue=l,Yf(a,l),a.subtreeFlags=0,l=i,i=a.child;i!==null;)We(i,l),i=i.sibling;return ve(Ct,Ct.current&1|2),a.child}l=l.sibling}r.tail!==null&&fl()>Nh&&(a.flags|=128,o=!0,Fs(r,!1),a.lanes=4194304)}else{if(!o)if(l=wf(d),l!==null){if(a.flags|=128,o=!0,l=l.updateQueue,a.updateQueue=l,Yf(a,l),Fs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!st)return Ue(a),null}else 2*fl()-r.renderingStartTime>Nh&&i!==536870912&&(a.flags|=128,o=!0,Fs(r,!1),a.lanes=4194304);r.isBackwards?(d.sibling=a.child,a.child=d):(l=r.last,l!==null?l.sibling=d:a.child=d,r.last=d)}return r.tail!==null?(a=r.tail,r.rendering=a,r.tail=a.sibling,r.renderingStartTime=fl(),a.sibling=null,l=Ct.current,ve(Ct,o?l&1|2:l&1),a):(Ue(a),null);case 22:case 23:return $a(a),Qs(),o=a.memoizedState!==null,l!==null?l.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(i&536870912)!==0&&(a.flags&128)===0&&(Ue(a),a.subtreeFlags&6&&(a.flags|=8192)):Ue(a),i=a.updateQueue,i!==null&&Yf(a,i.retryQueue),i=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048),l!==null&&ie(Ci),null;case 24:return i=null,l!==null&&(i=l.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Ei(hl),Ue(a),null;case 25:return null;case 30:return null}throw Error(m(156,a.tag))}function Kg(l,a){switch(xi(a),a.tag){case 1:return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 3:return Ei(hl),Vt(),l=a.flags,(l&65536)!==0&&(l&128)===0?(a.flags=l&-65537|128,a):null;case 26:case 27:case 5:return On(a),null;case 13:if($a(a),l=a.memoizedState,l!==null&&l.dehydrated!==null){if(a.alternate===null)throw Error(m(340));Ls()}return l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 19:return ie(Ct),null;case 4:return Vt(),null;case 10:return Ei(a.type),null;case 22:case 23:return $a(a),Qs(),l!==null&&ie(Ci),l=a.flags,l&65536?(a.flags=l&-65537|128,a):null;case 24:return Ei(hl),null;case 25:return null;default:return null}}function M0(l,a){switch(xi(a),a.tag){case 3:Ei(hl),Vt();break;case 26:case 27:case 5:On(a);break;case 4:Vt();break;case 13:$a(a);break;case 19:ie(Ct);break;case 10:Ei(a.type);break;case 22:case 23:$a(a),Qs(),l!==null&&ie(Ci);break;case 24:Ei(hl)}}function Vf(l,a){try{var i=a.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var r=o.next;i=r;do{if((i.tag&l)===l){o=void 0;var d=i.create,g=i.inst;o=d(),g.destroy=o}i=i.next}while(i!==r)}}catch(y){St(a,a.return,y)}}function _o(l,a,i){try{var o=a.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var d=r.next;o=d;do{if((o.tag&l)===l){var g=o.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,r=a;var E=i,H=y;try{H()}catch(W){St(r,E,W)}}}o=o.next}while(o!==d)}}catch(W){St(a,a.return,W)}}function Dh(l){var a=l.updateQueue;if(a!==null){var i=l.stateNode;try{Tf(a,i)}catch(o){St(l,l.return,o)}}}function R0(l,a,i){i.props=xo(l.type,l.memoizedProps),i.state=l.memoizedState;try{i.componentWillUnmount()}catch(o){St(l,a,o)}}function Ps(l,a){try{var i=l.ref;if(i!==null){switch(l.tag){case 26:case 27:case 5:var o=l.stateNode;break;case 30:o=l.stateNode;break;default:o=l.stateNode}typeof i=="function"?l.refCleanup=i(o):i.current=o}}catch(r){St(l,a,r)}}function Ja(l,a){var i=l.ref,o=l.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(r){St(l,a,r)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(r){St(l,a,r)}else i.current=null}function er(l){var a=l.type,i=l.memoizedProps,o=l.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(r){St(l,l.return,r)}}function D0(l,a,i){try{var o=l.stateNode;ey(o,l.type,i,a),o[Tl]=a}catch(r){St(l,l.return,r)}}function zv(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&Uo(l.type)||l.tag===4}function pa(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||zv(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.tag===27&&Uo(l.type)||l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function zc(l,a,i){var o=l.tag;if(o===5||o===6)l=l.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(l,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(l),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=Kh));else if(o!==4&&(o===27&&Uo(l.type)&&(i=l.stateNode,a=null),l=l.child,l!==null))for(zc(l,a,i),l=l.sibling;l!==null;)zc(l,a,i),l=l.sibling}function zh(l,a,i){var o=l.tag;if(o===5||o===6)l=l.stateNode,a?i.insertBefore(l,a):i.appendChild(l);else if(o!==4&&(o===27&&Uo(l.type)&&(i=l.stateNode),l=l.child,l!==null))for(zh(l,a,i),l=l.sibling;l!==null;)zh(l,a,i),l=l.sibling}function Oh(l){var a=l.stateNode,i=l.memoizedProps;try{for(var o=l.type,r=a.attributes;r.length;)a.removeAttributeNode(r[0]);Ne(a,o,i),a[ll]=l,a[Tl]=i}catch(d){St(l,l.return,d)}}var Bi=!1,Wt=!1,Uh=!1,Hh=typeof WeakSet=="function"?WeakSet:Set,vl=null;function z0(l,a){if(l=l.containerInfo,ed=ud,l=As(l),ro(l)){if("selectionStart"in l)var i={start:l.selectionStart,end:l.selectionEnd};else e:{i=(i=l.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var r=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var g=0,y=-1,E=-1,H=0,W=0,P=l,k=null;t:for(;;){for(var L;P!==i||r!==0&&P.nodeType!==3||(y=g+r),P!==d||o!==0&&P.nodeType!==3||(E=g+o),P.nodeType===3&&(g+=P.nodeValue.length),(L=P.firstChild)!==null;)k=P,P=L;for(;;){if(P===l)break t;if(k===i&&++H===r&&(y=g),k===d&&++W===o&&(E=g),(L=P.nextSibling)!==null)break;P=k,k=P.parentNode}P=L}i=y===-1||E===-1?null:{start:y,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(td={focusedElem:l,selectionRange:i},ud=!1,vl=a;vl!==null;)if(a=vl,l=a.child,(a.subtreeFlags&1024)!==0&&l!==null)l.return=a,vl=l;else for(;vl!==null;){switch(a=vl,d=a.alternate,l=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((l&1024)!==0&&d!==null){l=void 0,i=a,r=d.memoizedProps,d=d.memoizedState,o=i.stateNode;try{var Ae=xo(i.type,r,i.elementType===i.type);l=o.getSnapshotBeforeUpdate(Ae,d),o.__reactInternalSnapshotBeforeUpdate=l}catch(Me){St(i,i.return,Me)}}break;case 3:if((l&1024)!==0){if(l=a.stateNode.containerInfo,i=l.nodeType,i===9)ld(l);else if(i===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":ld(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error(m(163))}if(l=a.sibling,l!==null){l.return=a.return,vl=l;break}vl=a.return}}function O0(l,a,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:Ni(l,i),o&4&&Vf(5,i);break;case 1:if(Ni(l,i),o&4)if(l=i.stateNode,a===null)try{l.componentDidMount()}catch(g){St(i,i.return,g)}else{var r=xo(i.type,a.memoizedProps);a=a.memoizedState;try{l.componentDidUpdate(r,a,l.__reactInternalSnapshotBeforeUpdate)}catch(g){St(i,i.return,g)}}o&64&&Dh(i),o&512&&Ps(i,i.return);break;case 3:if(Ni(l,i),o&64&&(l=i.updateQueue,l!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{Tf(l,a)}catch(g){St(i,i.return,g)}}break;case 27:a===null&&o&4&&Oh(i);case 26:case 5:Ni(l,i),a===null&&o&4&&er(i),o&512&&Ps(i,i.return);break;case 12:Ni(l,i);break;case 13:Ni(l,i),o&4&&wh(l,i),o&64&&(l=i.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(i=Wg.bind(null,i),ay(l,i))));break;case 22:if(o=i.memoizedState!==null||Bi,!o){a=a!==null&&a.memoizedState!==null||Wt,r=Bi;var d=Wt;Bi=o,(Wt=a)&&!d?Co(l,i,(i.subtreeFlags&8772)!==0):Ni(l,i),Bi=r,Wt=d}break;case 30:break;default:Ni(l,i)}}function U0(l){var a=l.alternate;a!==null&&(l.alternate=null,U0(a)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(a=l.stateNode,a!==null&&Ju(a)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}var kt=null,Hl=!1;function ki(l,a,i){for(i=i.child;i!==null;)Pe(l,a,i),i=i.sibling}function Pe(l,a,i){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(zt,i)}catch{}switch(i.tag){case 26:Wt||Ja(i,a),ki(l,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Wt||Ja(i,a);var o=kt,r=Hl;Uo(i.type)&&(kt=i.stateNode,Hl=!1),ki(l,a,i),Mn(i.stateNode),kt=o,Hl=r;break;case 5:Wt||Ja(i,a);case 6:if(o=kt,r=Hl,kt=null,ki(l,a,i),kt=o,Hl=r,kt!==null)if(Hl)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(i.stateNode)}catch(d){St(i,a,d)}else try{kt.removeChild(i.stateNode)}catch(d){St(i,a,d)}break;case 18:kt!==null&&(Hl?(l=kt,Ih(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.stateNode),Qi(l)):Ih(kt,i.stateNode));break;case 4:o=kt,r=Hl,kt=i.stateNode.containerInfo,Hl=!0,ki(l,a,i),kt=o,Hl=r;break;case 0:case 11:case 14:case 15:Wt||_o(2,i,a),Wt||_o(4,i,a),ki(l,a,i);break;case 1:Wt||(Ja(i,a),o=i.stateNode,typeof o.componentWillUnmount=="function"&&R0(i,a,o)),ki(l,a,i);break;case 21:ki(l,a,i);break;case 22:Wt=(o=Wt)||i.memoizedState!==null,ki(l,a,i),Wt=o;break;default:ki(l,a,i)}}function wh(l,a){if(a.memoizedState===null&&(l=a.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{Qi(l)}catch(i){St(a,a.return,i)}}function H0(l){switch(l.tag){case 13:case 19:var a=l.stateNode;return a===null&&(a=l.stateNode=new Hh),a;case 22:return l=l.stateNode,a=l._retryCache,a===null&&(a=l._retryCache=new Hh),a;default:throw Error(m(435,l.tag))}}function Bh(l,a){var i=H0(l);a.forEach(function(o){var r=Ig.bind(null,l,o);i.has(o)||(i.add(o),o.then(r,r))})}function nn(l,a){var i=a.deletions;if(i!==null)for(var o=0;o<i.length;o++){var r=i[o],d=l,g=a,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(Uo(y.type)){kt=y.stateNode,Hl=!1;break e}break;case 5:kt=y.stateNode,Hl=!1;break e;case 3:case 4:kt=y.stateNode.containerInfo,Hl=!0;break e}y=y.return}if(kt===null)throw Error(m(160));Pe(d,g,r),kt=null,Hl=!1,d=r.alternate,d!==null&&(d.return=null),r.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Gf(a,l),a=a.sibling}var an=null;function Gf(l,a){var i=l.alternate,o=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:nn(a,l),Ml(l),o&4&&(_o(3,l,l.return),Vf(3,l),_o(5,l,l.return));break;case 1:nn(a,l),Ml(l),o&512&&(Wt||i===null||Ja(i,i.return)),o&64&&Bi&&(l=l.updateQueue,l!==null&&(o=l.callbacks,o!==null&&(i=l.shared.hiddenCallbacks,l.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var r=an;if(nn(a,l),Ml(l),o&512&&(Wt||i===null||Ja(i,i.return)),o&4){var d=i!==null?i.memoizedState:null;if(o=l.memoizedState,i===null)if(o===null)if(l.stateNode===null){e:{o=l.type,i=l.memoizedProps,r=r.ownerDocument||r;t:switch(o){case"title":d=r.getElementsByTagName("title")[0],(!d||d[ye]||d[ll]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=r.createElement(o),r.head.insertBefore(d,r.querySelector("head > title"))),Ne(d,o,i),d[ll]=l,Zt(d),o=d;break e;case"link":var g=up("link","href",r).get(o+(i.href||""));if(g){for(var y=0;y<g.length;y++)if(d=g[y],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){g.splice(y,1);break t}}d=r.createElement(o),Ne(d,o,i),r.head.appendChild(d);break;case"meta":if(g=up("meta","content",r).get(o+(i.content||""))){for(y=0;y<g.length;y++)if(d=g[y],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){g.splice(y,1);break t}}d=r.createElement(o),Ne(d,o,i),r.head.appendChild(d);break;default:throw Error(m(468,o))}d[ll]=l,Zt(d),o=d}l.stateNode=o}else op(r,l.type,l.stateNode);else l.stateNode=$v(r,o,l.memoizedProps);else d!==o?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,o===null?op(r,l.type,l.stateNode):$v(r,o,l.memoizedProps)):o===null&&l.stateNode!==null&&D0(l,l.memoizedProps,i.memoizedProps)}break;case 27:nn(a,l),Ml(l),o&512&&(Wt||i===null||Ja(i,i.return)),i!==null&&o&4&&D0(l,l.memoizedProps,i.memoizedProps);break;case 5:if(nn(a,l),Ml(l),o&512&&(Wt||i===null||Ja(i,i.return)),l.flags&32){r=l.stateNode;try{du(r,"")}catch(L){St(l,l.return,L)}}o&4&&l.stateNode!=null&&(r=l.memoizedProps,D0(l,r,i!==null?i.memoizedProps:r)),o&1024&&(Uh=!0);break;case 6:if(nn(a,l),Ml(l),o&4){if(l.stateNode===null)throw Error(m(162));o=l.memoizedProps,i=l.stateNode;try{i.nodeValue=o}catch(L){St(l,l.return,L)}}break;case 3:if(ko=null,r=an,an=Fh(a.containerInfo),nn(a,l),an=r,Ml(l),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Qi(a.containerInfo)}catch(L){St(l,l.return,L)}Uh&&(Uh=!1,w0(l));break;case 4:o=an,an=Fh(l.stateNode.containerInfo),nn(a,l),Ml(l),an=o;break;case 12:nn(a,l),Ml(l);break;case 13:nn(a,l),Ml(l),l.child.flags&8192&&l.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(G0=fl()),o&4&&(o=l.updateQueue,o!==null&&(l.updateQueue=null,Bh(l,o)));break;case 22:r=l.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,H=Bi,W=Wt;if(Bi=H||r,Wt=W||E,nn(a,l),Wt=W,Bi=H,Ml(l),o&8192)e:for(a=l.stateNode,a._visibility=r?a._visibility&-2:a._visibility|1,r&&(i===null||E||Bi||Wt||Nt(l)),i=null,a=l;;){if(a.tag===5||a.tag===26){if(i===null){E=i=a;try{if(d=E.stateNode,r)g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=E.stateNode;var P=E.memoizedProps.style,k=P!=null&&P.hasOwnProperty("display")?P.display:null;y.style.display=k==null||typeof k=="boolean"?"":(""+k).trim()}}catch(L){St(E,E.return,L)}}}else if(a.tag===6){if(i===null){E=a;try{E.stateNode.nodeValue=r?"":E.memoizedProps}catch(L){St(E,E.return,L)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===l)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=l.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Bh(l,i))));break;case 19:nn(a,l),Ml(l),o&4&&(o=l.updateQueue,o!==null&&(l.updateQueue=null,Bh(l,o)));break;case 30:break;case 21:break;default:nn(a,l),Ml(l)}}function Ml(l){var a=l.flags;if(a&2){try{for(var i,o=l.return;o!==null;){if(zv(o)){i=o;break}o=o.return}if(i==null)throw Error(m(160));switch(i.tag){case 27:var r=i.stateNode,d=pa(l);zh(l,d,r);break;case 5:var g=i.stateNode;i.flags&32&&(du(g,""),i.flags&=-33);var y=pa(l);zh(l,y,g);break;case 3:case 4:var E=i.stateNode.containerInfo,H=pa(l);zc(l,H,E);break;default:throw Error(m(161))}}catch(W){St(l,l.return,W)}l.flags&=-3}a&4096&&(l.flags&=-4097)}function w0(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var a=l;w0(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),l=l.sibling}}function Ni(l,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)O0(l,a.alternate,a),a=a.sibling}function Nt(l){for(l=l.child;l!==null;){var a=l;switch(a.tag){case 0:case 11:case 14:case 15:_o(4,a,a.return),Nt(a);break;case 1:Ja(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&R0(a,a.return,i),Nt(a);break;case 27:Mn(a.stateNode);case 26:case 5:Ja(a,a.return),Nt(a);break;case 22:a.memoizedState===null&&Nt(a);break;case 30:Nt(a);break;default:Nt(a)}l=l.sibling}}function Co(l,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,r=l,d=a,g=d.flags;switch(d.tag){case 0:case 11:case 15:Co(r,d,i),Vf(4,d);break;case 1:if(Co(r,d,i),o=d,r=o.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(H){St(o,o.return,H)}if(o=d,r=o.updateQueue,r!==null){var y=o.stateNode;try{var E=r.shared.hiddenCallbacks;if(E!==null)for(r.shared.hiddenCallbacks=null,r=0;r<E.length;r++)Id(E[r],y)}catch(H){St(o,o.return,H)}}i&&g&64&&Dh(d),Ps(d,d.return);break;case 27:Oh(d);case 26:case 5:Co(r,d,i),i&&o===null&&g&4&&er(d),Ps(d,d.return);break;case 12:Co(r,d,i);break;case 13:Co(r,d,i),i&&g&4&&wh(r,d);break;case 22:d.memoizedState===null&&Co(r,d,i),Ps(d,d.return);break;case 30:break;default:Co(r,d,i)}a=a.sibling}}function va(l,a){var i=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==i&&(l!=null&&l.refCount++,i!=null&&_i(i))}function kh(l,a){l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&_i(l))}function wl(l,a,i,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)B0(l,a,i,o),a=a.sibling}function B0(l,a,i,o){var r=a.flags;switch(a.tag){case 0:case 11:case 15:wl(l,a,i,o),r&2048&&Vf(9,a);break;case 1:wl(l,a,i,o);break;case 3:wl(l,a,i,o),r&2048&&(l=null,a.alternate!==null&&(l=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==l&&(a.refCount++,l!=null&&_i(l)));break;case 12:if(r&2048){wl(l,a,i,o),l=a.stateNode;try{var d=a.memoizedProps,g=d.id,y=d.onPostCommit;typeof y=="function"&&y(g,a.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(E){St(a,a.return,E)}}else wl(l,a,i,o);break;case 13:wl(l,a,i,o);break;case 23:break;case 22:d=a.stateNode,g=a.alternate,a.memoizedState!==null?d._visibility&2?wl(l,a,i,o):dt(l,a):d._visibility&2?wl(l,a,i,o):(d._visibility|=2,Ru(l,a,i,o,(a.subtreeFlags&10256)!==0)),r&2048&&va(g,a);break;case 24:wl(l,a,i,o),r&2048&&kh(a.alternate,a);break;default:wl(l,a,i,o)}}function Ru(l,a,i,o,r){for(r=r&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var d=l,g=a,y=i,E=o,H=g.flags;switch(g.tag){case 0:case 11:case 15:Ru(d,g,y,E,r),Vf(8,g);break;case 23:break;case 22:var W=g.stateNode;g.memoizedState!==null?W._visibility&2?Ru(d,g,y,E,r):dt(d,g):(W._visibility|=2,Ru(d,g,y,E,r)),r&&H&2048&&va(g.alternate,g);break;case 24:Ru(d,g,y,E,r),r&&H&2048&&kh(g.alternate,g);break;default:Ru(d,g,y,E,r)}a=a.sibling}}function dt(l,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=l,o=a,r=o.flags;switch(o.tag){case 22:dt(i,o),r&2048&&va(o.alternate,o);break;case 24:dt(i,o),r&2048&&kh(o.alternate,o);break;default:dt(i,o)}a=a.sibling}}var Oc=8192;function It(l){if(l.subtreeFlags&Oc)for(l=l.child;l!==null;)Ov(l),l=l.sibling}function Ov(l){switch(l.tag){case 26:It(l),l.flags&Oc&&l.memoizedState!==null&&Wv(an,l.memoizedState,l.memoizedProps);break;case 5:It(l);break;case 3:case 4:var a=an;an=Fh(l.stateNode.containerInfo),It(l),an=a;break;case 22:l.memoizedState===null&&(a=l.alternate,a!==null&&a.memoizedState!==null?(a=Oc,Oc=16777216,It(l),Oc=a):It(l));break;default:It(l)}}function k0(l){var a=l.alternate;if(a!==null&&(l=a.child,l!==null)){a.child=null;do a=l.sibling,l.sibling=null,l=a;while(l!==null)}}function Uc(l){var a=l.deletions;if((l.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];vl=o,L0(o,l)}k0(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)N0(l),l=l.sibling}function N0(l){switch(l.tag){case 0:case 11:case 15:Uc(l),l.flags&2048&&_o(9,l,l.return);break;case 3:Uc(l);break;case 12:Uc(l);break;case 22:var a=l.stateNode;l.memoizedState!==null&&a._visibility&2&&(l.return===null||l.return.tag!==13)?(a._visibility&=-3,un(l)):Uc(l);break;default:Uc(l)}}function un(l){var a=l.deletions;if((l.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var o=a[i];vl=o,L0(o,l)}k0(l)}for(l=l.child;l!==null;){switch(a=l,a.tag){case 0:case 11:case 15:_o(8,a,a.return),un(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,un(a));break;default:un(a)}l=l.sibling}}function L0(l,a){for(;vl!==null;){var i=vl;switch(i.tag){case 0:case 11:case 15:_o(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:_i(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,vl=o;else e:for(i=l;vl!==null;){o=vl;var r=o.sibling,d=o.return;if(U0(o),o===i){vl=null;break e}if(r!==null){r.return=d,vl=r;break e}vl=d}}}var q0={getCacheForType:function(l){var a=_l(hl),i=a.data.get(l);return i===void 0&&(i=l(),a.data.set(l,i)),i}},Uv=typeof WeakMap=="function"?WeakMap:Map,yt=0,Rt=null,tt=null,lt=0,bt=0,_n=null,Li=!1,tr=!1,Y0=!1,Du=0,Ft=0,zu=0,Hc=0,qi=0,ga=0,lr=0,nr=null,Cn=null,V0=!1,G0=0,Nh=1/0,ar=null,Ao=null,Bl=0,Yi=null,ir=null,kl=0,Lh=0,qh=null,X0=null,ur=0,j0=null;function Qn(){if((yt&2)!==0&<!==0)return lt&-lt;if(D.T!==null){var l=da;return l!==0?l:Nc()}return Vr()}function Q0(){ga===0&&(ga=(lt&536870912)===0||st?Ra():536870912);var l=jn.current;return l!==null&&(l.flags|=32),ga}function Zn(l,a,i){(l===Rt&&(bt===2||bt===9)||l.cancelPendingCommit!==null)&&(Vi(l,0),Ou(l,lt,ga,!1)),li(l,i),((yt&2)===0||l!==Rt)&&(l===Rt&&((yt&2)===0&&(Hc|=i),Ft===4&&Ou(l,lt,ga,!1)),An(l))}function or(l,a,i){if((yt&6)!==0)throw Error(m(327));var o=!i&&(a&124)===0&&(a&l.expiredLanes)===0||wn(l,a),r=o?$0(l,a):Yh(l,a,!0),d=o;do{if(r===0){tr&&!o&&Ou(l,a,0,!1);break}else{if(i=l.current.alternate,d&&!Hv(i)){r=Yh(l,a,!1),d=!1;continue}if(r===2){if(d=a,l.errorRecoveryDisabledLanes&d)var g=0;else g=l.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){a=g;e:{var y=l;r=nr;var E=y.current.memoizedState.isDehydrated;if(E&&(Vi(y,g).flags|=256),g=Yh(y,g,!1),g!==2){if(Y0&&!E){y.errorRecoveryDisabledLanes|=d,Hc|=d,r=4;break e}d=Cn,Cn=r,d!==null&&(Cn===null?Cn=d:Cn.push.apply(Cn,d))}r=g}if(d=!1,r!==2)continue}}if(r===1){Vi(l,0),Ou(l,a,0,!0);break}e:{switch(o=l,d=r,d){case 0:case 1:throw Error(m(345));case 4:if((a&4194048)!==a)break;case 6:Ou(o,a,ga,!Li);break e;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(m(329))}if((a&62914560)===a&&(r=G0+300-fl(),10<r)){if(Ou(o,a,ga,!Li),Ma(o,0,!0)!==0)break e;o.timeoutHandle=Wh(Xf.bind(null,o,i,Cn,ar,V0,a,ga,Hc,lr,Li,d,2,-0,0),r);break e}Xf(o,i,Cn,ar,V0,a,ga,Hc,lr,Li,d,0,-0,0)}}break}while(!0);An(l)}function Xf(l,a,i,o,r,d,g,y,E,H,W,P,k,L){if(l.timeoutHandle=-1,P=a.subtreeFlags,(P&8192||(P&16785408)===16785408)&&(br={stylesheets:null,count:0,unsuspend:Kv},Ov(a),P=sp(),P!==null)){l.cancelPendingCommit=P(kv.bind(null,l,a,d,i,o,r,g,y,E,W,1,k,L)),Ou(l,d,g,!H);return}kv(l,a,d,i,o,r,g,y,E)}function Hv(l){for(var a=l;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var r=i[o],d=r.getSnapshot;r=r.value;try{if(!ol(d(),r))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===l)break;for(;a.sibling===null;){if(a.return===null||a.return===l)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ou(l,a,i,o){a&=~qi,a&=~Hc,l.suspendedLanes|=a,l.pingedLanes&=~a,o&&(l.warmLanes|=a),o=l.expirationTimes;for(var r=a;0<r;){var d=31-Ot(r),g=1<<d;o[d]=-1,r&=~g}i!==0&&Zu(l,i,a)}function wc(){return(yt&6)===0?($f(0),!1):!0}function Mo(){if(tt!==null){if(bt===0)var l=tt.return;else l=tt,ja=Tu=null,th(l),_c=null,Js=0,l=tt;for(;l!==null;)M0(l.alternate,l),l=l.return;tt=null}}function Vi(l,a){var i=l.timeoutHandle;i!==-1&&(l.timeoutHandle=-1,ty(i)),i=l.cancelPendingCommit,i!==null&&(l.cancelPendingCommit=null,i()),Mo(),Rt=l,tt=i=Ga(l.current,null),lt=a,bt=0,_n=null,Li=!1,tr=wn(l,a),Y0=!1,lr=ga=qi=Hc=zu=Ft=0,Cn=nr=null,V0=!1,(a&8)!==0&&(a|=a&32);var o=l.entangledLanes;if(o!==0)for(l=l.entanglements,o&=a;0<o;){var r=31-Ot(o),d=1<<r;a|=l[r],o&=~d}return Du=a,ze(),i}function Z0(l,a){Xe=null,D.H=vh,a===go||a===bf?(a=Wm(),bt=3):a===Zd?(a=Wm(),bt=4):bt=a===Kt?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,_n=a,tt===null&&(Ft=1,Nf(l,Ql(a,l.current)))}function wv(){var l=D.H;return D.H=vh,l===null?vh:l}function Bc(){var l=D.A;return D.A=q0,l}function kc(){Ft=4,Li||(lt&4194048)!==lt&&jn.current!==null||(tr=!0),(zu&134217727)===0&&(Hc&134217727)===0||Rt===null||Ou(Rt,lt,ga,!1)}function Yh(l,a,i){var o=yt;yt|=2;var r=wv(),d=Bc();(Rt!==l||lt!==a)&&(ar=null,Vi(l,a)),a=!1;var g=Ft;e:do try{if(bt!==0&&tt!==null){var y=tt,E=_n;switch(bt){case 8:Mo(),g=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(a=!0);var H=bt;if(bt=0,_n=null,cr(l,y,E,H),i&&tr){g=0;break e}break;default:H=bt,bt=0,_n=null,cr(l,y,E,H)}}Vh(),g=Ft;break}catch(W){Z0(l,W)}while(!0);return a&&l.shellSuspendCounter++,ja=Tu=null,yt=o,D.H=r,D.A=d,tt===null&&(Rt=null,lt=0,ze()),g}function Vh(){for(;tt!==null;)K0(tt)}function $0(l,a){var i=yt;yt|=2;var o=wv(),r=Bc();Rt!==l||lt!==a?(ar=null,Nh=fl()+500,Vi(l,a)):tr=wn(l,a);e:do try{if(bt!==0&&tt!==null){a=tt;var d=_n;t:switch(bt){case 1:bt=0,_n=null,cr(l,a,d,1);break;case 2:case 9:if(Jd(d)){bt=0,_n=null,W0(a);break}a=function(){bt!==2&&bt!==9||Rt!==l||(bt=7),An(l)},d.then(a,a);break e;case 3:bt=7;break e;case 4:bt=5;break e;case 7:Jd(d)?(bt=0,_n=null,W0(a)):(bt=0,_n=null,cr(l,a,d,7));break;case 5:var g=null;switch(tt.tag){case 26:g=tt.memoizedState;case 5:case 27:var y=tt;if(!g||cp(g)){bt=0,_n=null;var E=y.sibling;if(E!==null)tt=E;else{var H=y.return;H!==null?(tt=H,jf(H)):tt=null}break t}}bt=0,_n=null,cr(l,a,d,5);break;case 6:bt=0,_n=null,cr(l,a,d,6);break;case 8:Mo(),Ft=6;break e;default:throw Error(m(462))}}J0();break}catch(W){Z0(l,W)}while(!0);return ja=Tu=null,D.H=o,D.A=r,yt=i,tt!==null?0:(Rt=null,lt=0,ze(),Ft)}function J0(){for(;tt!==null&&!Qo();)K0(tt)}function K0(l){var a=Dv(l.alternate,l,Du);l.memoizedProps=l.pendingProps,a===null?jf(l):tt=a}function W0(l){var a=l,i=a.alternate;switch(a.tag){case 15:case 0:a=x0(i,a,a.pendingProps,a.type,void 0,lt);break;case 11:a=x0(i,a,a.pendingProps,a.type.render,a.ref,lt);break;case 5:th(a);default:M0(i,a),a=tt=We(a,Du),a=Dv(i,a,Du)}l.memoizedProps=l.pendingProps,a===null?jf(l):tt=a}function cr(l,a,i,o){ja=Tu=null,th(a),_c=null,Js=0;var r=a.return;try{if(Av(l,r,a,i,lt)){Ft=1,Nf(l,Ql(i,l.current)),tt=null;return}}catch(d){if(r!==null)throw tt=r,d;Ft=1,Nf(l,Ql(i,l.current)),tt=null;return}a.flags&32768?(st||o===1?l=!0:tr||(lt&536870912)!==0?l=!1:(Li=l=!0,(o===2||o===9||o===3||o===6)&&(o=jn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Bv(a,l)):jf(a)}function jf(l){var a=l;do{if((a.flags&32768)!==0){Bv(a,Li);return}l=a.return;var i=A0(a.alternate,a,Du);if(i!==null){tt=i;return}if(a=a.sibling,a!==null){tt=a;return}tt=a=l}while(a!==null);Ft===0&&(Ft=5)}function Bv(l,a){do{var i=Kg(l.alternate,l);if(i!==null){i.flags&=32767,tt=i;return}if(i=l.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(l=l.sibling,l!==null)){tt=l;return}tt=l=i}while(l!==null);Ft=6,tt=null}function kv(l,a,i,o,r,d,g,y,E){l.cancelPendingCommit=null;do Xh();while(Bl!==0);if((yt&6)!==0)throw Error(m(327));if(a!==null){if(a===l.current)throw Error(m(177));if(d=a.lanes|a.childLanes,d|=Vn,Yr(l,i,d,g,y,E),l===Rt&&(tt=Rt=null,lt=0),ir=a,Yi=l,kl=i,Lh=d,qh=r,X0=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,Fg(Aa,function(){return I0(),null})):(l.callbackNode=null,l.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=D.T,D.T=null,r=I.p,I.p=2,g=yt,yt|=4;try{z0(l,a,i)}finally{yt=g,I.p=r,D.T=o}}Bl=1,Nv(),Qf(),Gh()}}function Nv(){if(Bl===1){Bl=0;var l=Yi,a=ir,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var o=I.p;I.p=2;var r=yt;yt|=4;try{Gf(a,l);var d=td,g=As(l.containerInfo),y=d.focusedElem,E=d.selectionRange;if(g!==y&&y&&y.ownerDocument&&so(y.ownerDocument.documentElement,y)){if(E!==null&&ro(y)){var H=E.start,W=E.end;if(W===void 0&&(W=H),"selectionStart"in y)y.selectionStart=H,y.selectionEnd=Math.min(W,y.value.length);else{var P=y.ownerDocument||document,k=P&&P.defaultView||window;if(k.getSelection){var L=k.getSelection(),Ae=y.textContent.length,Me=Math.min(E.start,Ae),ht=E.end===void 0?Me:Math.min(E.end,Ae);!L.extend&&Me>ht&&(g=ht,ht=Me,Me=g);var O=Et(y,Me),z=Et(y,ht);if(O&&z&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==z.node||L.focusOffset!==z.offset)){var U=P.createRange();U.setStart(O.node,O.offset),L.removeAllRanges(),Me>ht?(L.addRange(U),L.extend(z.node,z.offset)):(U.setEnd(z.node,z.offset),L.addRange(U))}}}}for(P=[],L=y;L=L.parentNode;)L.nodeType===1&&P.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<P.length;y++){var F=P[y];F.element.scrollLeft=F.left,F.element.scrollTop=F.top}}ud=!!ed,td=ed=null}finally{yt=r,I.p=o,D.T=i}}l.current=a,Bl=2}}function Qf(){if(Bl===2){Bl=0;var l=Yi,a=ir,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var o=I.p;I.p=2;var r=yt;yt|=4;try{O0(l,a.alternate,a)}finally{yt=r,I.p=o,D.T=i}}Bl=3}}function Gh(){if(Bl===4||Bl===3){Bl=0,Hn();var l=Yi,a=ir,i=kl,o=X0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Bl=5:(Bl=0,ir=Yi=null,Lv(l,l.pendingLanes));var r=l.pendingLanes;if(r===0&&(Ao=null),Zo(i),a=a.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(zt,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=D.T,r=I.p,I.p=2,D.T=null;try{for(var d=l.onRecoverableError,g=0;g<o.length;g++){var y=o[g];d(y.value,{componentStack:y.stack})}}finally{D.T=a,I.p=r}}(kl&3)!==0&&Xh(),An(l),r=l.pendingLanes,(i&4194090)!==0&&(r&42)!==0?l===j0?ur++:(ur=0,j0=l):ur=0,$f(0)}}function Lv(l,a){(l.pooledCacheLanes&=a)===0&&(a=l.pooledCache,a!=null&&(l.pooledCache=null,_i(a)))}function Xh(l){return Nv(),Qf(),Gh(),I0()}function I0(){if(Bl!==5)return!1;var l=Yi,a=Lh;Lh=0;var i=Zo(kl),o=D.T,r=I.p;try{I.p=32>i?32:i,D.T=null,i=qh,qh=null;var d=Yi,g=kl;if(Bl=0,ir=Yi=null,kl=0,(yt&6)!==0)throw Error(m(331));var y=yt;if(yt|=4,N0(d.current),B0(d,d.current,g,i),yt=y,$f(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(zt,d)}catch{}return!0}finally{I.p=r,D.T=o,Lv(l,a)}}function F0(l,a,i){a=Ql(i,a),a=S0(l.stateNode,a,2),l=Mi(l,a,2),l!==null&&(li(l,2),An(l))}function St(l,a,i){if(l.tag===3)F0(l,l,i);else for(;a!==null;){if(a.tag===3){F0(a,l,i);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ao===null||!Ao.has(o))){l=Ql(i,l),i=T0(2),o=Mi(a,i,2),o!==null&&(En(i,o,a,l),li(o,2),An(o));break}}a=a.return}}function jh(l,a,i){var o=l.pingCache;if(o===null){o=l.pingCache=new Uv;var r=new Set;o.set(a,r)}else r=o.get(a),r===void 0&&(r=new Set,o.set(a,r));r.has(i)||(Y0=!0,r.add(i),l=P0.bind(null,l,a,i),a.then(l,l))}function P0(l,a,i){var o=l.pingCache;o!==null&&o.delete(a),l.pingedLanes|=l.suspendedLanes&i,l.warmLanes&=~i,Rt===l&&(lt&i)===i&&(Ft===4||Ft===3&&(lt&62914560)===lt&&300>fl()-G0?(yt&2)===0&&Vi(l,0):qi|=i,lr===lt&&(lr=0)),An(l)}function ep(l,a){a===0&&(a=ti()),l=Ti(l,a),l!==null&&(li(l,a),An(l))}function Wg(l){var a=l.memoizedState,i=0;a!==null&&(i=a.retryLane),ep(l,i)}function Ig(l,a){var i=0;switch(l.tag){case 13:var o=l.stateNode,r=l.memoizedState;r!==null&&(i=r.retryLane);break;case 19:o=l.stateNode;break;case 22:o=l.stateNode._retryCache;break;default:throw Error(m(314))}o!==null&&o.delete(a),ep(l,i)}function Fg(l,a){return Un(l,a)}var Qh=null,Ro=null,Zf=!1,sr=!1,Zh=!1,Do=0;function An(l){l!==Ro&&l.next===null&&(Ro===null?Qh=Ro=l:Ro=Ro.next=l),sr=!0,Zf||(Zf=!0,Vv())}function $f(l,a){if(!Zh&&sr){Zh=!0;do for(var i=!1,o=Qh;o!==null;){if(l!==0){var r=o.pendingLanes;if(r===0)var d=0;else{var g=o.suspendedLanes,y=o.pingedLanes;d=(1<<31-Ot(42|l)+1)-1,d&=r&~(g&~y),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Kf(o,d))}else d=lt,d=Ma(o,o===Rt?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||wn(o,d)||(i=!0,Kf(o,d));o=o.next}while(i);Zh=!1}}function qv(){Jf()}function Jf(){sr=Zf=!1;var l=0;Do!==0&&(wu()&&(l=Do),Do=0);for(var a=fl(),i=null,o=Qh;o!==null;){var r=o.next,d=tp(o,a);d===0?(o.next=null,i===null?Qh=r:i.next=r,r===null&&(Ro=i)):(i=o,(l!==0||(d&3)!==0)&&(sr=!0)),o=r}$f(l)}function tp(l,a){for(var i=l.suspendedLanes,o=l.pingedLanes,r=l.expirationTimes,d=l.pendingLanes&-62914561;0<d;){var g=31-Ot(d),y=1<<g,E=r[g];E===-1?((y&i)===0||(y&o)!==0)&&(r[g]=tl(y,a)):E<=a&&(l.expiredLanes|=y),d&=~y}if(a=Rt,i=lt,i=Ma(l,l===a?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),o=l.callbackNode,i===0||l===a&&(bt===2||bt===9)||l.cancelPendingCommit!==null)return o!==null&&o!==null&&au(o),l.callbackNode=null,l.callbackPriority=0;if((i&3)===0||wn(l,i)){if(a=i&-i,a===l.callbackPriority)return a;switch(o!==null&&au(o),Zo(i)){case 2:case 8:i=iu;break;case 32:i=Aa;break;case 268435456:i=Pl;break;default:i=Aa}return o=Yv.bind(null,l),i=Un(i,o),l.callbackPriority=a,l.callbackNode=i,a}return o!==null&&o!==null&&au(o),l.callbackPriority=2,l.callbackNode=null,2}function Yv(l,a){if(Bl!==0&&Bl!==5)return l.callbackNode=null,l.callbackPriority=0,null;var i=l.callbackNode;if(Xh()&&l.callbackNode!==i)return null;var o=lt;return o=Ma(l,l===Rt?o:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),o===0?null:(or(l,o,a),tp(l,fl()),l.callbackNode!=null&&l.callbackNode===i?Yv.bind(null,l):null)}function Kf(l,a){if(Xh())return null;or(l,a,!0)}function Vv(){ly(function(){(yt&6)!==0?Un(Qu,qv):Jf()})}function Nc(){return Do===0&&(Do=Ra()),Do}function $h(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:to(""+l)}function Wf(l,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,l.id&&i.setAttribute("form",l.id),a.parentNode.insertBefore(i,a),l=new FormData(l),i.parentNode.removeChild(i),l}function Gv(l,a,i,o,r){if(a==="submit"&&i&&i.stateNode===r){var d=$h((r[Tl]||null).action),g=o.submitter;g&&(a=(a=g[Tl]||null)?$h(a.formAction):g.getAttribute("formAction"),a!==null&&(d=a,g=null));var y=new ac("action","action",null,o,r);l.push({event:y,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Do!==0){var E=g?Wf(r,g):new FormData(r);ph(i,{pending:!0,data:E,method:r.method,action:d},null,E)}}else typeof d=="function"&&(y.preventDefault(),E=g?Wf(r,g):new FormData(r),ph(i,{pending:!0,data:E,method:r.method,action:d},d,E))},currentTarget:r}]})}}for(var Pt=0;Pt<yu.length;Pt++){var If=yu[Pt],Pg=If.toLowerCase(),Ke=If[0].toUpperCase()+If.slice(1);ln(Pg,"on"+Ke)}ln(of,"onAnimationEnd"),ln(Ms,"onAnimationIteration"),ln(cf,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(Rs,"onTransitionRun"),ln(hc,"onTransitionStart"),ln(sf,"onTransitionCancel"),ln(Ds,"onTransitionEnd"),Oa("onMouseEnter",["mouseout","mouseover"]),Oa("onMouseLeave",["mouseout","mouseover"]),Oa("onPointerEnter",["pointerout","pointerover"]),Oa("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ff="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zo=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ff));function Lc(l,a){a=(a&4)!==0;for(var i=0;i<l.length;i++){var o=l[i],r=o.event;o=o.listeners;e:{var d=void 0;if(a)for(var g=o.length-1;0<=g;g--){var y=o[g],E=y.instance,H=y.currentTarget;if(y=y.listener,E!==d&&r.isPropagationStopped())break e;d=y,r.currentTarget=H;try{d(r)}catch(W){Bf(W)}r.currentTarget=null,d=E}else for(g=0;g<o.length;g++){if(y=o[g],E=y.instance,H=y.currentTarget,y=y.listener,E!==d&&r.isPropagationStopped())break e;d=y,r.currentTarget=H;try{d(r)}catch(W){Bf(W)}r.currentTarget=null,d=E}}}}function je(l,a){var i=a[$o];i===void 0&&(i=a[$o]=new Set);var o=l+"__bubble";i.has(o)||(Jh(a,l,2,!1),i.add(o))}function rr(l,a,i){var o=0;a&&(o|=4),Jh(i,l,o,a)}var fr="_reactListening"+Math.random().toString(36).slice(2);function lp(l){if(!l[fr]){l[fr]=!0,Wu.forEach(function(i){i!=="selectionchange"&&(zo.has(i)||rr(i,!1,l),rr(i,!0,l))});var a=l.nodeType===9?l:l.ownerDocument;a===null||a[fr]||(a[fr]=!0,rr("selectionchange",!1,a))}}function Jh(l,a,i,o){switch(gp(a)){case 2:var r=Iv;break;case 8:r=Fv;break;default:r=pp}i=r.bind(null,a,i,l),r=void 0,!tc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(r=!0),o?r!==void 0?l.addEventListener(a,i,{capture:!0,passive:r}):l.addEventListener(a,i,!0):r!==void 0?l.addEventListener(a,i,{passive:r}):l.addEventListener(a,i,!1)}function ya(l,a,i,o,r){var d=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var g=o.tag;if(g===3||g===4){var y=o.stateNode.containerInfo;if(y===r)break;if(g===4)for(g=o.return;g!==null;){var E=g.tag;if((E===3||E===4)&&g.stateNode.containerInfo===r)return;g=g.return}for(;y!==null;){if(g=il(y),g===null)return;if(E=g.tag,E===5||E===6||E===26||E===27){o=d=g;continue e}y=y.parentNode}}o=o.return}pu(function(){var H=d,W=ec(i),P=[];e:{var k=zs.get(l);if(k!==void 0){var L=ac,Ae=l;switch(l){case"keypress":if(ul(i)===0)break e;case"keydown":case"keyup":L=hn;break;case"focusin":Ae="focus",L=fs;break;case"focusout":Ae="blur",L=fs;break;case"beforeblur":case"afterblur":L=fs;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=rs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Ir;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=ms;break;case of:case Ms:case cf:L=Nd;break;case Ds:L=lf;break;case"scroll":case"scrollend":L=Kr;break;case"wheel":L=mi;break;case"copy":case"cut":case"paste":L=ao;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=io;break;case"toggle":case"beforetoggle":L=nf}var Me=(a&4)!==0,ht=!Me&&(l==="scroll"||l==="scrollend"),O=Me?k!==null?k+"Capture":null:k;Me=[];for(var z=H,U;z!==null;){var F=z;if(U=F.stateNode,F=F.tag,F!==5&&F!==26&&F!==27||U===null||O===null||(F=ri(z,O),F!=null&&Me.push(Uu(z,F,U))),ht)break;z=z.return}0<Me.length&&(k=new L(k,Ae,null,i,W),P.push({event:k,listeners:Me}))}}if((a&7)===0){e:{if(k=l==="mouseover"||l==="pointerover",L=l==="mouseout"||l==="pointerout",k&&i!==si&&(Ae=i.relatedTarget||i.fromElement)&&(il(Ae)||Ae[ru]))break e;if((L||k)&&(k=W.window===W?W:(k=W.ownerDocument)?k.defaultView||k.parentWindow:window,L?(Ae=i.relatedTarget||i.toElement,L=H,Ae=Ae?il(Ae):null,Ae!==null&&(ht=A(Ae),Me=Ae.tag,Ae!==ht||Me!==5&&Me!==27&&Me!==6)&&(Ae=null)):(L=null,Ae=H),L!==Ae)){if(Me=rs,F="onMouseLeave",O="onMouseEnter",z="mouse",(l==="pointerout"||l==="pointerover")&&(Me=io,F="onPointerLeave",O="onPointerEnter",z="pointer"),ht=L==null?k:Ku(L),U=Ae==null?k:Ku(Ae),k=new Me(F,z+"leave",L,i,W),k.target=ht,k.relatedTarget=U,F=null,il(W)===H&&(Me=new Me(O,z+"enter",Ae,i,W),Me.target=U,Me.relatedTarget=ht,F=Me),ht=F,L&&Ae)t:{for(Me=L,O=Ae,z=0,U=Me;U;U=Oo(U))z++;for(U=0,F=O;F;F=Oo(F))U++;for(;0<z-U;)Me=Oo(Me),z--;for(;0<U-z;)O=Oo(O),U--;for(;z--;){if(Me===O||O!==null&&Me===O.alternate)break t;Me=Oo(Me),O=Oo(O)}Me=null}else Me=null;L!==null&&Pf(P,k,L,Me,!1),Ae!==null&&ht!==null&&Pf(P,ht,Ae,Me,!0)}}e:{if(k=H?Ku(H):window,L=k.nodeName&&k.nodeName.toLowerCase(),L==="select"||L==="input"&&k.type==="file")var be=Ss;else if(sc(k))if(Ts)be=_s;else{be=Na;var Ie=fc}else L=k.nodeName,!L||L.toLowerCase()!=="input"||k.type!=="checkbox"&&k.type!=="radio"?H&&ci(H.elementType)&&(be=Ss):be=ua;if(be&&(be=be(l,H))){rc(P,be,i,W);break e}Ie&&Ie(l,k,H),l==="focusout"&&H&&k.type==="number"&&H.memoizedProps.value!=null&&Pu(k,"number",k.value)}switch(Ie=H?Ku(H):window,l){case"focusin":(sc(Ie)||Ie.contentEditable==="true")&&(qn=Ie,vn=H,Ya=null);break;case"focusout":Ya=vn=qn=null;break;case"mousedown":bi=!0;break;case"contextmenu":case"mouseup":case"dragend":bi=!1,dc(P,i,W);break;case"selectionchange":if(yi)break;case"keydown":case"keyup":dc(P,i,W)}var _e;if(uo)e:{switch(l){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else ka?co(l,i)&&(He="onCompositionEnd"):l==="keydown"&&i.keyCode===229&&(He="onCompositionStart");He&&(Nn&&i.locale!=="ko"&&(ka||He!=="onCompositionStart"?He==="onCompositionEnd"&&ka&&(_e=cs()):(aa=W,vu="value"in aa?aa.value:aa.textContent,ka=!0)),Ie=dr(H,He),0<Ie.length&&(He=new ds(He,l,null,i,W),P.push({event:He,listeners:Ie}),_e?He.data=_e:(_e=Ba(i),_e!==null&&(He.data=_e)))),(_e=vs?ys(l,i):pi(l,i))&&(He=dr(H,"onBeforeInput"),0<He.length&&(Ie=new ds("onBeforeInput","beforeinput",null,i,W),P.push({event:Ie,listeners:He}),Ie.data=_e)),Gv(P,l,H,i,W)}Lc(P,a)})}function Uu(l,a,i){return{instance:l,listener:a,currentTarget:i}}function dr(l,a){for(var i=a+"Capture",o=[];l!==null;){var r=l,d=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||d===null||(r=ri(l,i),r!=null&&o.unshift(Uu(l,r,d)),r=ri(l,a),r!=null&&o.push(Uu(l,r,d))),l.tag===3)return o;l=l.return}return[]}function Oo(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function Pf(l,a,i,o,r){for(var d=a._reactName,g=[];i!==null&&i!==o;){var y=i,E=y.alternate,H=y.stateNode;if(y=y.tag,E!==null&&E===o)break;y!==5&&y!==26&&y!==27||H===null||(E=H,r?(H=ri(i,d),H!=null&&g.unshift(Uu(i,H,E))):r||(H=ri(i,d),H!=null&&g.push(Uu(i,H,E)))),i=i.return}g.length!==0&&l.push({event:a,listeners:g})}var $n=/\r\n?/g,np=/\u0000|\uFFFD/g;function Xv(l){return(typeof l=="string"?l:""+l).replace($n,`
|
|
815
|
-
`).replace(np,"")}function ap(l,a){return a=Xv(a),Xv(l)===a}function Kh(){}function Ve(l,a,i,o,r,d){switch(i){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||du(l,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&du(l,""+o);break;case"className":Iu(l,"class",o);break;case"tabIndex":Iu(l,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Iu(l,i,o);break;case"style":eo(l,o,d);break;case"data":if(a!=="object"){Iu(l,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||i!=="href")){l.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){l.removeAttribute(i);break}o=to(""+o),l.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){l.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(i==="formAction"?(a!=="input"&&Ve(l,a,"name",r.name,r,null),Ve(l,a,"formEncType",r.formEncType,r,null),Ve(l,a,"formMethod",r.formMethod,r,null),Ve(l,a,"formTarget",r.formTarget,r,null)):(Ve(l,a,"encType",r.encType,r,null),Ve(l,a,"method",r.method,r,null),Ve(l,a,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){l.removeAttribute(i);break}o=to(""+o),l.setAttribute(i,o);break;case"onClick":o!=null&&(l.onclick=Kh);break;case"onScroll":o!=null&&je("scroll",l);break;case"onScrollEnd":o!=null&&je("scrollend",l);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(m(61));if(i=o.__html,i!=null){if(r.children!=null)throw Error(m(60));l.innerHTML=i}}break;case"multiple":l.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":l.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){l.removeAttribute("xlink:href");break}i=to(""+o),l.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?l.setAttribute(i,""+o):l.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?l.setAttribute(i,""):l.removeAttribute(i);break;case"capture":case"download":o===!0?l.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?l.setAttribute(i,o):l.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?l.setAttribute(i,o):l.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?l.removeAttribute(i):l.setAttribute(i,o);break;case"popover":je("beforetoggle",l),je("toggle",l),la(l,"popover",o);break;case"xlinkActuate":Bn(l,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Bn(l,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Bn(l,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Bn(l,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Bn(l,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Bn(l,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Bn(l,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Bn(l,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Bn(l,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":la(l,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=wd.get(i)||i,la(l,i,o))}}function G(l,a,i,o,r,d){switch(i){case"style":eo(l,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(m(61));if(i=o.__html,i!=null){if(r.children!=null)throw Error(m(60));l.innerHTML=i}}break;case"children":typeof o=="string"?du(l,o):(typeof o=="number"||typeof o=="bigint")&&du(l,""+o);break;case"onScroll":o!=null&&je("scroll",l);break;case"onScrollEnd":o!=null&&je("scrollend",l);break;case"onClick":o!=null&&(l.onclick=Kh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xl.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(r=i.endsWith("Capture"),a=i.slice(2,r?i.length-7:void 0),d=l[Tl]||null,d=d!=null?d[i]:null,typeof d=="function"&&l.removeEventListener(a,d,r),typeof o=="function")){typeof d!="function"&&d!==null&&(i in l?l[i]=null:l.hasAttribute(i)&&l.removeAttribute(i)),l.addEventListener(a,o,r);break e}i in l?l[i]=o:o===!0?l.setAttribute(i,""):la(l,i,o)}}}function Ne(l,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",l),je("load",l);var o=!1,r=!1,d;for(d in i)if(i.hasOwnProperty(d)){var g=i[d];if(g!=null)switch(d){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(m(137,a));default:Ve(l,a,d,g,i,null)}}r&&Ve(l,a,"srcSet",i.srcSet,i,null),o&&Ve(l,a,"src",i.src,i,null);return;case"input":je("invalid",l);var y=d=g=r=null,E=null,H=null;for(o in i)if(i.hasOwnProperty(o)){var W=i[o];if(W!=null)switch(o){case"name":r=W;break;case"type":g=W;break;case"checked":E=W;break;case"defaultChecked":H=W;break;case"value":d=W;break;case"defaultValue":y=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(m(137,a));break;default:Ve(l,a,o,W,i,null)}}Fo(l,d,y,E,H,g,r,!1),Ha(l);return;case"select":je("invalid",l),o=g=d=null;for(r in i)if(i.hasOwnProperty(r)&&(y=i[r],y!=null))switch(r){case"value":d=y;break;case"defaultValue":g=y;break;case"multiple":o=y;default:Ve(l,a,r,y,i,null)}a=d,i=g,l.multiple=!!o,a!=null?oi(l,!!o,a,!1):i!=null&&oi(l,!!o,i,!0);return;case"textarea":je("invalid",l),d=r=o=null;for(g in i)if(i.hasOwnProperty(g)&&(y=i[g],y!=null))switch(g){case"value":o=y;break;case"defaultValue":r=y;break;case"children":d=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(m(91));break;default:Ve(l,a,g,y,i,null)}us(l,o,r,d),Ha(l);return;case"option":for(E in i)if(i.hasOwnProperty(E)&&(o=i[E],o!=null))switch(E){case"selected":l.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ve(l,a,E,o,i,null)}return;case"dialog":je("beforetoggle",l),je("toggle",l),je("cancel",l),je("close",l);break;case"iframe":case"object":je("load",l);break;case"video":case"audio":for(o=0;o<Ff.length;o++)je(Ff[o],l);break;case"image":je("error",l),je("load",l);break;case"details":je("toggle",l);break;case"embed":case"source":case"link":je("error",l),je("load",l);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(H in i)if(i.hasOwnProperty(H)&&(o=i[H],o!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(m(137,a));default:Ve(l,a,H,o,i,null)}return;default:if(ci(a)){for(W in i)i.hasOwnProperty(W)&&(o=i[W],o!==void 0&&G(l,a,W,o,i,void 0));return}}for(y in i)i.hasOwnProperty(y)&&(o=i[y],o!=null&&Ve(l,a,y,o,i,null))}function ey(l,a,i,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,d=null,g=null,y=null,E=null,H=null,W=null;for(L in i){var P=i[L];if(i.hasOwnProperty(L)&&P!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":E=P;default:o.hasOwnProperty(L)||Ve(l,a,L,null,o,P)}}for(var k in o){var L=o[k];if(P=i[k],o.hasOwnProperty(k)&&(L!=null||P!=null))switch(k){case"type":d=L;break;case"name":r=L;break;case"checked":H=L;break;case"defaultChecked":W=L;break;case"value":g=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(m(137,a));break;default:L!==P&&Ve(l,a,k,L,o,P)}}Io(l,g,y,E,H,W,d,r);return;case"select":L=g=y=k=null;for(d in i)if(E=i[d],i.hasOwnProperty(d)&&E!=null)switch(d){case"value":break;case"multiple":L=E;default:o.hasOwnProperty(d)||Ve(l,a,d,null,o,E)}for(r in o)if(d=o[r],E=i[r],o.hasOwnProperty(r)&&(d!=null||E!=null))switch(r){case"value":k=d;break;case"defaultValue":y=d;break;case"multiple":g=d;default:d!==E&&Ve(l,a,r,d,o,E)}a=y,i=g,o=L,k!=null?oi(l,!!i,k,!1):!!o!=!!i&&(a!=null?oi(l,!!i,a,!0):oi(l,!!i,i?[]:"",!1));return;case"textarea":L=k=null;for(y in i)if(r=i[y],i.hasOwnProperty(y)&&r!=null&&!o.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ve(l,a,y,null,o,r)}for(g in o)if(r=o[g],d=i[g],o.hasOwnProperty(g)&&(r!=null||d!=null))switch(g){case"value":k=r;break;case"defaultValue":L=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(m(91));break;default:r!==d&&Ve(l,a,g,r,o,d)}is(l,k,L);return;case"option":for(var Ae in i)if(k=i[Ae],i.hasOwnProperty(Ae)&&k!=null&&!o.hasOwnProperty(Ae))switch(Ae){case"selected":l.selected=!1;break;default:Ve(l,a,Ae,null,o,k)}for(E in o)if(k=o[E],L=i[E],o.hasOwnProperty(E)&&k!==L&&(k!=null||L!=null))switch(E){case"selected":l.selected=k&&typeof k!="function"&&typeof k!="symbol";break;default:Ve(l,a,E,k,o,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Me in i)k=i[Me],i.hasOwnProperty(Me)&&k!=null&&!o.hasOwnProperty(Me)&&Ve(l,a,Me,null,o,k);for(H in o)if(k=o[H],L=i[H],o.hasOwnProperty(H)&&k!==L&&(k!=null||L!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(m(137,a));break;default:Ve(l,a,H,k,o,L)}return;default:if(ci(a)){for(var ht in i)k=i[ht],i.hasOwnProperty(ht)&&k!==void 0&&!o.hasOwnProperty(ht)&&G(l,a,ht,void 0,o,k);for(W in o)k=o[W],L=i[W],!o.hasOwnProperty(W)||k===L||k===void 0&&L===void 0||G(l,a,W,k,o,L);return}}for(var O in i)k=i[O],i.hasOwnProperty(O)&&k!=null&&!o.hasOwnProperty(O)&&Ve(l,a,O,null,o,k);for(P in o)k=o[P],L=i[P],!o.hasOwnProperty(P)||k===L||k==null&&L==null||Ve(l,a,P,k,o,L)}var ed=null,td=null;function ba(l){return l.nodeType===9?l:l.ownerDocument}function Hu(l){switch(l){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hr(l,a){if(l===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&a==="foreignObject"?0:l}function Gi(l,a){return l==="textarea"||l==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var mr=null;function wu(){var l=window.event;return l&&l.type==="popstate"?l===mr?!1:(mr=l,!0):(mr=null,!1)}var Wh=typeof setTimeout=="function"?setTimeout:void 0,ty=typeof clearTimeout=="function"?clearTimeout:void 0,jv=typeof Promise=="function"?Promise:void 0,ly=typeof queueMicrotask=="function"?queueMicrotask:typeof jv<"u"?function(l){return jv.resolve(null).then(l).catch(Xi)}:Wh;function Xi(l){setTimeout(function(){throw l})}function Uo(l){return l==="head"}function Ih(l,a){var i=a,o=0,r=0;do{var d=i.nextSibling;if(l.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"){if(0<o&&8>o){i=o;var g=l.ownerDocument;if(i&1&&Mn(g.documentElement),i&2&&Mn(g.body),i&4)for(i=g.head,Mn(i),g=i.firstChild;g;){var y=g.nextSibling,E=g.nodeName;g[ye]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&g.rel.toLowerCase()==="stylesheet"||i.removeChild(g),g=y}}if(r===0){l.removeChild(d),Qi(a);return}r--}else i==="$"||i==="$?"||i==="$!"?r++:o=i.charCodeAt(0)-48;else o=0;i=d}while(i);Qi(a)}function ld(l){var a=l.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":ld(i),Ju(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}l.removeChild(i)}}function pr(l,a,i,o){for(;l.nodeType===1;){var r=i;if(l.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(o){if(!l[ye])switch(a){case"meta":if(!l.hasAttribute("itemprop"))break;return l;case"link":if(d=l.getAttribute("rel"),d==="stylesheet"&&l.hasAttribute("data-precedence"))break;if(d!==r.rel||l.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||l.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||l.getAttribute("title")!==(r.title==null?null:r.title))break;return l;case"style":if(l.hasAttribute("data-precedence"))break;return l;case"script":if(d=l.getAttribute("src"),(d!==(r.src==null?null:r.src)||l.getAttribute("type")!==(r.type==null?null:r.type)||l.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&d&&l.hasAttribute("async")&&!l.hasAttribute("itemprop"))break;return l;default:return l}}else if(a==="input"&&l.type==="hidden"){var d=r.name==null?null:""+r.name;if(r.type==="hidden"&&l.getAttribute("name")===d)return l}else return l;if(l=Ka(l.nextSibling),l===null)break}return null}function ny(l,a,i){if(a==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!i||(l=Ka(l.nextSibling),l===null))return null;return l}function nd(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState==="complete"}function ay(l,a){var i=l.ownerDocument;if(l.data!=="$?"||i.readyState==="complete")a();else{var o=function(){a(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),l._reactRetry=o}}function Ka(l){for(;l!=null;l=l.nextSibling){var a=l.nodeType;if(a===1||a===3)break;if(a===8){if(a=l.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return l}var Ho=null;function Nl(l){l=l.previousSibling;for(var a=0;l;){if(l.nodeType===8){var i=l.data;if(i==="$"||i==="$!"||i==="$?"){if(a===0)return l;a--}else i==="/$"&&a++}l=l.previousSibling}return null}function he(l,a,i){switch(a=ba(i),l){case"html":if(l=a.documentElement,!l)throw Error(m(452));return l;case"head":if(l=a.head,!l)throw Error(m(453));return l;case"body":if(l=a.body,!l)throw Error(m(454));return l;default:throw Error(m(451))}}function Mn(l){for(var a=l.attributes;a.length;)l.removeAttributeNode(a[0]);Ju(l)}var el=new Map,Kl=new Set;function Fh(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var Bu=I.d;I.d={f:Ph,r:em,D:ku,C:tm,L:wo,m:Wl,X:Bo,S:Rn,M:ip};function Ph(){var l=Bu.f(),a=wc();return l||a}function em(l){var a=ni(l);a!==null&&a.tag===5&&a.type==="form"?$s(a):Bu.r(l)}var Ll=typeof document>"u"?null:document;function Wa(l,a,i){var o=Ll;if(o&&typeof a=="string"&&a){var r=en(a);r='link[rel="'+l+'"][href="'+r+'"]',typeof i=="string"&&(r+='[crossorigin="'+i+'"]'),Kl.has(r)||(Kl.add(r),l={rel:l,crossOrigin:i,href:a},o.querySelector(r)===null&&(a=o.createElement("link"),Ne(a,"link",l),Zt(a),o.head.appendChild(a)))}}function ku(l){Bu.D(l),Wa("dns-prefetch",l,null)}function tm(l,a){Bu.C(l,a),Wa("preconnect",l,a)}function wo(l,a,i){Bu.L(l,a,i);var o=Ll;if(o&&l&&a){var r='link[rel="preload"][as="'+en(a)+'"]';a==="image"&&i&&i.imageSrcSet?(r+='[imagesrcset="'+en(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(r+='[imagesizes="'+en(i.imageSizes)+'"]')):r+='[href="'+en(l)+'"]';var d=r;switch(a){case"style":d=vr(l);break;case"script":d=Sa(l)}el.has(d)||(l=ee({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:l,as:a},i),el.set(d,l),o.querySelector(r)!==null||a==="style"&&o.querySelector(gr(d))||a==="script"&&o.querySelector(qc(d))||(a=o.createElement("link"),Ne(a,"link",l),Zt(a),o.head.appendChild(a)))}}function Wl(l,a){Bu.m(l,a);var i=Ll;if(i&&l){var o=a&&typeof a.as=="string"?a.as:"script",r='link[rel="modulepreload"][as="'+en(o)+'"][href="'+en(l)+'"]',d=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Sa(l)}if(!el.has(d)&&(l=ee({rel:"modulepreload",href:l},a),el.set(d,l),i.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(qc(d)))return}o=i.createElement("link"),Ne(o,"link",l),Zt(o),i.head.appendChild(o)}}}function Rn(l,a,i){Bu.S(l,a,i);var o=Ll;if(o&&l){var r=ta(o).hoistableStyles,d=vr(l);a=a||"default";var g=r.get(d);if(!g){var y={loading:0,preload:null};if(g=o.querySelector(gr(d)))y.loading=5;else{l=ee({rel:"stylesheet",href:l,"data-precedence":a},i),(i=el.get(d))&&nm(l,i);var E=g=o.createElement("link");Zt(E),Ne(E,"link",l),E._p=new Promise(function(H,W){E.onload=H,E.onerror=W}),E.addEventListener("load",function(){y.loading|=1}),E.addEventListener("error",function(){y.loading|=2}),y.loading|=4,lm(g,a,o)}g={type:"stylesheet",instance:g,count:1,state:y},r.set(d,g)}}}function Bo(l,a){Bu.X(l,a);var i=Ll;if(i&&l){var o=ta(i).hoistableScripts,r=Sa(l),d=o.get(r);d||(d=i.querySelector(qc(r)),d||(l=ee({src:l,async:!0},a),(a=el.get(r))&&am(l,a),d=i.createElement("script"),Zt(d),Ne(d,"link",l),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(r,d))}}function ip(l,a){Bu.M(l,a);var i=Ll;if(i&&l){var o=ta(i).hoistableScripts,r=Sa(l),d=o.get(r);d||(d=i.querySelector(qc(r)),d||(l=ee({src:l,async:!0,type:"module"},a),(a=el.get(r))&&am(l,a),d=i.createElement("script"),Zt(d),Ne(d,"link",l),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(r,d))}}function Qv(l,a,i,o){var r=(r=$e.current)?Fh(r):null;if(!r)throw Error(m(446));switch(l){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=vr(i.href),i=ta(r).hoistableStyles,o=i.get(a),o||(o={type:"style",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){l=vr(i.href);var d=ta(r).hoistableStyles,g=d.get(l);if(g||(r=r.ownerDocument||r,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(l,g),(d=r.querySelector(gr(l)))&&!d._p&&(g.instance=d,g.state.loading=5),el.has(l)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},el.set(l,i),d||Zv(r,l,i,g.state))),a&&o===null)throw Error(m(528,""));return g}if(a&&o!==null)throw Error(m(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Sa(i),i=ta(r).hoistableScripts,o=i.get(a),o||(o={type:"script",instance:null,count:0,state:null},i.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(m(444,l))}}function vr(l){return'href="'+en(l)+'"'}function gr(l){return'link[rel="stylesheet"]['+l+"]"}function yr(l){return ee({},l,{"data-precedence":l.precedence,precedence:null})}function Zv(l,a,i,o){l.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=l.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),Ne(a,"link",i),Zt(a),l.head.appendChild(a))}function Sa(l){return'[src="'+en(l)+'"]'}function qc(l){return"script[async]"+l}function $v(l,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var o=l.querySelector('style[data-href~="'+en(i.href)+'"]');if(o)return a.instance=o,Zt(o),o;var r=ee({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(l.ownerDocument||l).createElement("style"),Zt(o),Ne(o,"style",r),lm(o,i.precedence,l),a.instance=o;case"stylesheet":r=vr(i.href);var d=l.querySelector(gr(r));if(d)return a.state.loading|=4,a.instance=d,Zt(d),d;o=yr(i),(r=el.get(r))&&nm(o,r),d=(l.ownerDocument||l).createElement("link"),Zt(d);var g=d;return g._p=new Promise(function(y,E){g.onload=y,g.onerror=E}),Ne(d,"link",o),a.state.loading|=4,lm(d,i.precedence,l),a.instance=d;case"script":return d=Sa(i.src),(r=l.querySelector(qc(d)))?(a.instance=r,Zt(r),r):(o=i,(r=el.get(d))&&(o=ee({},i),am(o,r)),l=l.ownerDocument||l,r=l.createElement("script"),Zt(r),Ne(r,"link",o),l.head.appendChild(r),a.instance=r);case"void":return null;default:throw Error(m(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,lm(o,i.precedence,l));return a.instance}function lm(l,a,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,d=r,g=0;g<o.length;g++){var y=o[g];if(y.dataset.precedence===a)d=y;else if(d!==r)break}d?d.parentNode.insertBefore(l,d.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(l,a.firstChild))}function nm(l,a){l.crossOrigin==null&&(l.crossOrigin=a.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=a.referrerPolicy),l.title==null&&(l.title=a.title)}function am(l,a){l.crossOrigin==null&&(l.crossOrigin=a.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=a.referrerPolicy),l.integrity==null&&(l.integrity=a.integrity)}var ko=null;function up(l,a,i){if(ko===null){var o=new Map,r=ko=new Map;r.set(i,o)}else r=ko,o=r.get(i),o||(o=new Map,r.set(i,o));if(o.has(l))return o;for(o.set(l,null),i=i.getElementsByTagName(l),r=0;r<i.length;r++){var d=i[r];if(!(d[ye]||d[ll]||l==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var g=d.getAttribute(a)||"";g=l+g;var y=o.get(g);y?y.push(d):o.set(g,[d])}}return o}function op(l,a,i){l=l.ownerDocument||l,l.head.insertBefore(i,a==="title"?l.querySelector("head > title"):null)}function Jv(l,a,i){if(i===1||a.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return l=a.disabled,typeof a.precedence=="string"&&l==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function cp(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}var br=null;function Kv(){}function Wv(l,a,i){if(br===null)throw Error(m(475));var o=br;if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=vr(i.href),d=l.querySelector(gr(r));if(d){l=d._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=ad.bind(o),l.then(o,o)),a.state.loading|=4,a.instance=d,Zt(d);return}d=l.ownerDocument||l,i=yr(i),(r=el.get(r))&&nm(i,r),d=d.createElement("link"),Zt(d);var g=d;g._p=new Promise(function(y,E){g.onload=y,g.onerror=E}),Ne(d,"link",i),a.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,l),(l=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=ad.bind(o),l.addEventListener("load",a),l.addEventListener("error",a))}}function sp(){if(br===null)throw Error(m(475));var l=br;return l.stylesheets&&l.count===0&&id(l,l.stylesheets),0<l.count?function(a){var i=setTimeout(function(){if(l.stylesheets&&id(l,l.stylesheets),l.unsuspend){var o=l.unsuspend;l.unsuspend=null,o()}},6e4);return l.unsuspend=a,function(){l.unsuspend=null,clearTimeout(i)}}:null}function ad(){if(this.count--,this.count===0){if(this.stylesheets)id(this,this.stylesheets);else if(this.unsuspend){var l=this.unsuspend;this.unsuspend=null,l()}}}var Sr=null;function id(l,a){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Sr=new Map,a.forEach(Jn,l),Sr=null,ad.call(l))}function Jn(l,a){if(!(a.state.loading&4)){var i=Sr.get(l);if(i)var o=i.get(null);else{i=new Map,Sr.set(l,i);for(var r=l.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<r.length;d++){var g=r[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(i.set(g.dataset.precedence,g),o=g)}o&&i.set(null,o)}r=a.instance,g=r.getAttribute("data-precedence"),d=i.get(g)||o,d===o&&i.set(null,r),i.set(g,r),this.count++,o=ad.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),d?d.parentNode.insertBefore(r,d.nextSibling):(l=l.nodeType===9?l.head:l,l.insertBefore(r,l.firstChild)),a.state.loading|=4}}var Dn={$$typeof:fe,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function iy(l,a,i,o,r,d,g,y){this.tag=1,this.containerInfo=l,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Da(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Da(0),this.hiddenUpdates=Da(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function rp(l,a,i,o,r,d,g,y,E,H,W,P){return l=new iy(l,a,i,g,y,E,H,P),a=1,d===!0&&(a|=24),d=yn(3,null,null,a),l.current=d,d.stateNode=l,a=Gs(),a.refCount++,l.pooledCache=a,a.refCount++,d.memoizedState={element:o,isDehydrated:i,cache:a},Kd(d),l}function fp(l){return l?(l=ws,l):ws}function dp(l,a,i,o,r,d){r=fp(r),o.context===null?o.context=r:o.pendingContext=r,o=Sn(a),o.payload={element:i},d=d===void 0?null:d,d!==null&&(o.callback=d),i=Mi(l,o,a),i!==null&&(Zn(i,l,a),yc(i,l,a))}function hp(l,a){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var i=l.retryLane;l.retryLane=i!==0&&i<a?i:a}}function im(l,a){hp(l,a),(l=l.alternate)&&hp(l,a)}function mp(l){if(l.tag===13){var a=Ti(l,67108864);a!==null&&Zn(a,l,67108864),im(l,67108864)}}var ud=!0;function Iv(l,a,i,o){var r=D.T;D.T=null;var d=I.p;try{I.p=2,pp(l,a,i,o)}finally{I.p=d,D.T=r}}function Fv(l,a,i,o){var r=D.T;D.T=null;var d=I.p;try{I.p=8,pp(l,a,i,o)}finally{I.p=d,D.T=r}}function pp(l,a,i,o){if(ud){var r=um(o);if(r===null)ya(l,a,o,om,i),Yc(l,o);else if(eg(r,l,a,i,o))o.stopPropagation();else if(Yc(l,o),a&4&&-1<Pv.indexOf(l)){for(;r!==null;){var d=ni(r);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=Gl(d.pendingLanes);if(g!==0){var y=d;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var E=1<<31-Ot(g);y.entanglements[1]|=E,g&=~E}An(d),(yt&6)===0&&(Nh=fl()+500,$f(0))}}break;case 13:y=Ti(d,2),y!==null&&Zn(y,d,2),wc(),im(d,2)}if(d=um(o),d===null&&ya(l,a,o,om,i),d===r)break;r=d}r!==null&&o.stopPropagation()}else ya(l,a,o,null,i)}}function um(l){return l=ec(l),vp(l)}var om=null;function vp(l){if(om=null,l=il(l),l!==null){var a=A(l);if(a===null)l=null;else{var i=a.tag;if(i===13){if(l=w(a),l!==null)return l;l=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;l=null}else a!==l&&(l=null)}}return om=l,null}function gp(l){switch(l){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ca()){case Qu:return 2;case iu:return 8;case Aa:case uu:return 32;case Pl:return 268435456;default:return 32}default:return 32}}var Tr=!1,ji=null,Nu=null,Lu=null,od=new Map,cd=new Map,No=[],Pv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Yc(l,a){switch(l){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":Nu=null;break;case"mouseover":case"mouseout":Lu=null;break;case"pointerover":case"pointerout":od.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":cd.delete(a.pointerId)}}function Vc(l,a,i,o,r,d){return l===null||l.nativeEvent!==d?(l={blockedOn:a,domEventName:i,eventSystemFlags:o,nativeEvent:d,targetContainers:[r]},a!==null&&(a=ni(a),a!==null&&mp(a)),l):(l.eventSystemFlags|=o,a=l.targetContainers,r!==null&&a.indexOf(r)===-1&&a.push(r),l)}function eg(l,a,i,o,r){switch(a){case"focusin":return ji=Vc(ji,l,a,i,o,r),!0;case"dragenter":return Nu=Vc(Nu,l,a,i,o,r),!0;case"mouseover":return Lu=Vc(Lu,l,a,i,o,r),!0;case"pointerover":var d=r.pointerId;return od.set(d,Vc(od.get(d)||null,l,a,i,o,r)),!0;case"gotpointercapture":return d=r.pointerId,cd.set(d,Vc(cd.get(d)||null,l,a,i,o,r)),!0}return!1}function yp(l){var a=il(l.target);if(a!==null){var i=A(a);if(i!==null){if(a=i.tag,a===13){if(a=w(i),a!==null){l.blockedOn=a,Ud(l.priority,function(){if(i.tag===13){var o=Qn();o=dn(o);var r=Ti(i,o);r!==null&&Zn(r,i,o),im(i,o)}});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){l.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}l.blockedOn=null}function sd(l){if(l.blockedOn!==null)return!1;for(var a=l.targetContainers;0<a.length;){var i=um(l.nativeEvent);if(i===null){i=l.nativeEvent;var o=new i.constructor(i.type,i);si=o,i.target.dispatchEvent(o),si=null}else return a=ni(i),a!==null&&mp(a),l.blockedOn=i,!1;a.shift()}return!0}function rd(l,a,i){sd(l)&&i.delete(a)}function xr(){Tr=!1,ji!==null&&sd(ji)&&(ji=null),Nu!==null&&sd(Nu)&&(Nu=null),Lu!==null&&sd(Lu)&&(Lu=null),od.forEach(rd),cd.forEach(rd)}function cm(l,a){l.blockedOn===a&&(l.blockedOn=null,Tr||(Tr=!0,x.unstable_scheduleCallback(x.unstable_NormalPriority,xr)))}var Gc=null;function bp(l){Gc!==l&&(Gc=l,x.unstable_scheduleCallback(x.unstable_NormalPriority,function(){Gc===l&&(Gc=null);for(var a=0;a<l.length;a+=3){var i=l[a],o=l[a+1],r=l[a+2];if(typeof o!="function"){if(vp(o||i)===null)continue;break}var d=ni(i);d!==null&&(l.splice(a,3),a-=3,ph(d,{pending:!0,data:r,method:i.method,action:o},o,r))}}))}function Qi(l){function a(E){return cm(E,l)}ji!==null&&cm(ji,l),Nu!==null&&cm(Nu,l),Lu!==null&&cm(Lu,l),od.forEach(a),cd.forEach(a);for(var i=0;i<No.length;i++){var o=No[i];o.blockedOn===l&&(o.blockedOn=null)}for(;0<No.length&&(i=No[0],i.blockedOn===null);)yp(i),i.blockedOn===null&&No.shift();if(i=(l.ownerDocument||l).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var r=i[o],d=i[o+1],g=r[Tl]||null;if(typeof d=="function")g||bp(i);else if(g){var y=null;if(d&&d.hasAttribute("formAction")){if(r=d,g=d[Tl]||null)y=g.formAction;else if(vp(r)!==null)continue}else y=g.action;typeof y=="function"?i[o+1]=y:(i.splice(o,3),o-=3),bp(i)}}}function Sp(l){this._internalRoot=l}sm.prototype.render=Sp.prototype.render=function(l){var a=this._internalRoot;if(a===null)throw Error(m(409));var i=a.current,o=Qn();dp(i,o,l,a,null,null)},sm.prototype.unmount=Sp.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var a=l.containerInfo;dp(l.current,2,null,l,null,null),wc(),a[ru]=null}};function sm(l){this._internalRoot=l}sm.prototype.unstable_scheduleHydration=function(l){if(l){var a=Vr();l={blockedOn:null,target:l,priority:a};for(var i=0;i<No.length&&a!==0&&a<No[i].priority;i++);No.splice(i,0,l),i===0&&yp(l)}};var Tp=f.version;if(Tp!=="19.1.0")throw Error(m(527,Tp,"19.1.0"));I.findDOMNode=function(l){var a=l._reactInternals;if(a===void 0)throw typeof l.render=="function"?Error(m(188)):(l=Object.keys(l).join(","),Error(m(268,l)));return l=M(a),l=l!==null?Y(l):null,l=l===null?null:l.stateNode,l};var on={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fd.isDisabled&&fd.supportsFiber)try{zt=fd.inject(on),Bt=fd}catch{}}return Xm.createRoot=function(l,a){if(!T(l))throw Error(m(299));var i=!1,o="",r=Ws,d=y0,g=kf,y=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(y=a.unstable_transitionCallbacks)),a=rp(l,1,!1,null,null,i,o,r,d,g,y,null),l[ru]=a.current,lp(l),new Sp(a)},Xm.hydrateRoot=function(l,a,i){if(!T(l))throw Error(m(299));var o=!1,r="",d=Ws,g=y0,y=kf,E=null,H=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(r=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(y=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(E=i.unstable_transitionCallbacks),i.formState!==void 0&&(H=i.formState)),a=rp(l,1,!0,a,i??null,o,r,d,g,y,E,H),a.context=fp(null),i=a.current,o=Qn(),o=dn(o),r=Sn(o),r.callback=null,Mi(i,r,o),i=o,a.current.lanes=i,li(a,i),An(a),l[ru]=a.current,lp(l),new sm(a)},Xm.version="19.1.0",Xm}var jm={};/**
|
|
816
|
-
* @license React
|
|
817
|
-
* react-dom-client.development.js
|
|
818
|
-
*
|
|
819
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
820
|
-
*
|
|
821
|
-
* This source code is licensed under the MIT license found in the
|
|
822
|
-
* LICENSE file in the root directory of this source tree.
|
|
823
|
-
*/var Hb;function s2(){return Hb||(Hb=1,process.env.NODE_ENV!=="production"&&function(){function x(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function f(e,t,n,u){if(n>=t.length)return u;var c=t[n],s=Ve(e)?e.slice():Ke({},e);return s[c]=f(e[c],t,n+1,u),s}function v(e,t,n){if(t.length!==n.length)console.warn("copyWithRename() expects paths of the same length");else{for(var u=0;u<n.length-1;u++)if(t[u]!==n[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return m(e,t,n,0)}}function m(e,t,n,u){var c=t[u],s=Ve(e)?e.slice():Ke({},e);return u+1===t.length?(s[n[u]]=s[c],Ve(s)?s.splice(c,1):delete s[c]):s[c]=m(e[c],t,n,u+1),s}function T(e,t,n){var u=t[n],c=Ve(e)?e.slice():Ke({},e);return n+1===t.length?(Ve(c)?c.splice(u,1):delete c[u],c):(c[u]=T(e[u],t,n+1),c)}function A(){return!1}function w(){return null}function X(){}function M(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function Y(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function ee(){}function ne(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")}function V(e,t,n,u){return new oo(e,t,n,u)}function oe(e,t){e.context===Er&&(St(e.current,2,t,e,null,null),Rc())}function ce(e,t){if($i!==null){var n=t.staleFamilies;t=t.updatedFamilies,Is(),uo(e.current,t,n),Rc()}}function ue(e){$i=e}function ae(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function de(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ke(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function fe(e){if(de(e)!==e)throw Error("Unable to find node on an unmounted component.")}function xe(e){var t=e.alternate;if(!t){if(t=de(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,u=t;;){var c=n.return;if(c===null)break;var s=c.alternate;if(s===null){if(u=c.return,u!==null){n=u;continue}break}if(c.child===s.child){for(s=c.child;s;){if(s===n)return fe(c),e;if(s===u)return fe(c),t;s=s.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==u.return)n=c,u=s;else{for(var h=!1,p=c.child;p;){if(p===n){h=!0,n=c,u=s;break}if(p===u){h=!0,u=c,n=s;break}p=p.sibling}if(!h){for(p=s.child;p;){if(p===n){h=!0,n=s,u=c;break}if(p===u){h=!0,u=s,n=c;break}p=p.sibling}if(!h)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(n.tag!==3)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function Ye(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Ye(e),t!==null)return t;e=e.sibling}return null}function qe(e){return e===null||typeof e!="object"?null:(e=ap&&e[ap]||e["@@iterator"],typeof e=="function"?e:null)}function Oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Kh?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case je:return"Fragment";case fr:return"Profiler";case rr:return"StrictMode";case dr:return"Suspense";case Oo:return"SuspenseList";case np:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Lc:return"Portal";case ya:return(e.displayName||"Context")+".Provider";case Jh:return(e._context.displayName||"Context")+".Consumer";case Uu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Pf:return t=e.displayName||null,t!==null?t:Oe(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return Oe(e(t))}catch{}}return null}function at(e){return typeof e.tag=="number"?me(e):typeof e.name=="string"?e.name:null}function me(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return(t.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Oe(t);case 8:return t===rr?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name=="string")return t[n].name}if(e.return!==null)return me(e.return)}return null}function Ce(e){return{current:e}}function Re(e,t){0>ba?console.error("Unexpected pop."):(t!==td[ba]&&console.error("Unexpected Fiber popped."),e.current=ed[ba],ed[ba]=null,td[ba]=null,ba--)}function Ee(e,t,n){ba++,ed[ba]=e.current,td[ba]=n,e.current=t}function et(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Mt(e,t){Ee(Gi,t,e),Ee(hr,e,e),Ee(Hu,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?"#document":"#fragment",t=(t=t.documentElement)&&(t=t.namespaceURI)?bt(t):Ic;break;default:if(n=t.tagName,t=t.namespaceURI)t=bt(t),t=_n(t,n);else switch(n){case"svg":t=Nm;break;case"math":t=Dg;break;default:t=Ic}}n=n.toLowerCase(),n=is(null,n),n={context:t,ancestorInfo:n},Re(Hu,e),Ee(Hu,n,e)}function vt(e){Re(Hu,e),Re(hr,e),Re(Gi,e)}function D(){return et(Hu.current)}function I(e){e.memoizedState!==null&&Ee(mr,e,e);var t=et(Hu.current),n=e.type,u=_n(t.context,n);n=is(t.ancestorInfo,n),u={context:u,ancestorInfo:n},t!==u&&(Ee(hr,e,e),Ee(Hu,u,e))}function te(e){hr.current===e&&(Re(Hu,e),Re(hr,e)),mr.current===e&&(Re(mr,e),Pp._currentValue=zd)}function ge(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function q(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function ie(e,t){if(q(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,ge(e)),pe(e)}function ve(e,t){if(q(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,ge(e)),pe(e)}function Be(e){if(q(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ge(e)),pe(e)}function rt(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ho=t.inject(e),Nl=t}catch(n){console.error("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function $e(e){if(typeof ay=="function"&&Ka(e),Nl&&typeof Nl.setStrictMode=="function")try{Nl.setStrictMode(Ho,e)}catch(t){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %s",t))}}function fn(e){he=e}function xt(){he!==null&&typeof he.markCommitStopped=="function"&&he.markCommitStopped()}function Vt(e){he!==null&&typeof he.markComponentRenderStarted=="function"&&he.markComponentRenderStarted(e)}function bl(){he!==null&&typeof he.markComponentRenderStopped=="function"&&he.markComponentRenderStopped()}function On(e){he!==null&&typeof he.markRenderStarted=="function"&&he.markRenderStarted(e)}function ei(){he!==null&&typeof he.markRenderStopped=="function"&&he.markRenderStopped()}function Un(e,t){he!==null&&typeof he.markStateUpdateScheduled=="function"&&he.markStateUpdateScheduled(e,t)}function au(e){return e>>>=0,e===0?32:31-(Fh(e)/Bu|0)|0}function Qo(e){if(e&1)return"SyncHydrationLane";if(e&2)return"Sync";if(e&4)return"InputContinuousHydration";if(e&8)return"InputContinuous";if(e&16)return"DefaultHydration";if(e&32)return"Default";if(e&128)return"TransitionHydration";if(e&4194048)return"Transition";if(e&62914560)return"Retry";if(e&67108864)return"SelectiveHydration";if(e&134217728)return"IdleHydration";if(e&268435456)return"Idle";if(e&536870912)return"Offscreen";if(e&1073741824)return"Deferred"}function Hn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function fl(e,t,n){var u=e.pendingLanes;if(u===0)return 0;var c=0,s=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var p=u&134217727;return p!==0?(u=p&~s,u!==0?c=Hn(u):(h&=p,h!==0?c=Hn(h):n||(n=p&~e,n!==0&&(c=Hn(n))))):(p=u&~s,p!==0?c=Hn(p):h!==0?c=Hn(h):n||(n=u&~e,n!==0&&(c=Hn(n)))),c===0?0:t!==0&&t!==c&&(t&s)===0&&(s=c&-c,n=t&-t,s>=n||s===32&&(n&4194048)!==0)?t:c}function Ca(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qu(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function iu(){var e=Ph;return Ph<<=1,(Ph&4194048)===0&&(Ph=256),e}function Aa(){var e=em;return em<<=1,(em&62914560)===0&&(em=4194304),e}function uu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ou(e,t,n,u,c,s){var h=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var p=e.entanglements,b=e.expirationTimes,S=e.hiddenUpdates;for(n=h&~n;0<n;){var N=31-Kl(n),Q=1<<N;p[N]=0,b[N]=-1;var B=S[N];if(B!==null)for(S[N]=null,N=0;N<B.length;N++){var $=B[N];$!==null&&($.lane&=-536870913)}n&=~Q}u!==0&&re(e,u,0),s!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=s&~(h&~t))}function re(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-Kl(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|n&4194090}function zt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var u=31-Kl(n),c=1<<u;c&t|e[u]&t&&(e[u]|=t),n&=~c}}function Bt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Sl(e,t,n){if(el)for(e=e.pendingUpdatersLaneMap;0<n;){var u=31-Kl(n),c=1<<u;e[u].add(t),n&=~c}}function Ot(e,t){if(el)for(var n=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<t;){var c=31-Kl(t);e=1<<c,c=n[c],0<c.size&&(c.forEach(function(s){var h=s.alternate;h!==null&&u.has(h)||u.add(s)}),c.clear()),t&=~e}}function cu(e){return e&=-e,Ll<e?Wa<e?(e&134217727)!==0?ku:tm:Wa:Ll}function qr(){var e=Ne.p;return e!==0?e:(e=window.event,e===void 0?ku:Zh(e.type))}function Od(e,t){var n=Ne.p;try{return Ne.p=e,t()}finally{Ne.p=n}}function su(e){delete e[Wl],delete e[Rn],delete e[ip],delete e[Qv],delete e[vr]}function ea(e){var t=e[Wl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bo]||n[Wl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ur(e);e!==null;){if(n=e[Wl])return n;e=ur(e)}return t}e=n,n=e.parentNode}return null}function Gl(e){if(e=e[Wl]||e[Bo]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Ma(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function wn(e){var t=e[gr];return t||(t=e[gr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function tl(e){e[yr]=!0}function Ra(e,t){ti(e,t),ti(e+"Capture",t)}function ti(e,t){Sa[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Sa[e]=t;var n=e.toLowerCase();for(qc[n]=e,e==="onDoubleClick"&&(qc.ondblclick=e),e=0;e<t.length;e++)Zv.add(t[e])}function Da(e,t){$v[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function li(e){return wu.call(am,e)?!0:wu.call(nm,e)?!1:lm.test(e)?am[e]=!0:(nm[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Yr(e,t,n){if(li(t)){if(!e.hasAttribute(t)){switch(typeof n){case"symbol":case"object":return n;case"function":return n;case"boolean":if(n===!1)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===""&&n===!0?!0:(ie(n,t),e===""+n?n:e)}}function Zu(e,t,n){if(li(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}ie(n,t),e.setAttribute(t,""+n)}}function $u(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}ie(n,t),e.setAttribute(t,""+n)}}function dn(e,t,n,u){if(u===null)e.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}ie(u,n),e.setAttributeNS(t,n,""+u)}}function Zo(){}function Vr(){if(ko===0){up=console.log,op=console.info,Jv=console.warn,cp=console.error,br=console.group,Kv=console.groupCollapsed,Wv=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Zo,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ko++}function Ud(){if(ko--,ko===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},e,{value:up}),info:Ke({},e,{value:op}),warn:Ke({},e,{value:Jv}),error:Ke({},e,{value:cp}),group:Ke({},e,{value:br}),groupCollapsed:Ke({},e,{value:Kv}),groupEnd:Ke({},e,{value:Wv})})}0>ko&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Qt(e){if(sp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sp=t&&t[1]||"",ad=-1<n.stack.indexOf(`
|
|
824
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
825
|
-
`+sp+e+ad}function ll(e,t){if(!e||Sr)return"";var n=id.get(e);if(n!==void 0)return n;Sr=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=G.H,G.H=null,Vr();try{var c={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Se){var $=Se}Reflect.construct(e,[],B)}else{try{B.call()}catch(Se){$=Se}e.call(B.prototype)}}else{try{throw Error()}catch(Se){$=Se}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(Se){if(Se&&$&&typeof Se.stack=="string")return[Se.stack,$.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=c.DetermineComponentFrameRoot(),p=h[0],b=h[1];if(p&&b){var S=p.split(`
|
|
826
|
-
`),N=b.split(`
|
|
827
|
-
`);for(h=s=0;s<S.length&&!S[s].includes("DetermineComponentFrameRoot");)s++;for(;h<N.length&&!N[h].includes("DetermineComponentFrameRoot");)h++;if(s===S.length||h===N.length)for(s=S.length-1,h=N.length-1;1<=s&&0<=h&&S[s]!==N[h];)h--;for(;1<=s&&0<=h;s--,h--)if(S[s]!==N[h]){if(s!==1||h!==1)do if(s--,h--,0>h||S[s]!==N[h]){var Q=`
|
|
828
|
-
`+S[s].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),typeof e=="function"&&id.set(e,Q),Q}while(1<=s&&0<=h);break}}}finally{Sr=!1,G.H=u,Ud(),Error.prepareStackTrace=n}return S=(S=e?e.displayName||e.name:"")?Qt(S):"",typeof e=="function"&&id.set(e,S),S}function Tl(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
|
|
829
|
-
`)&&(e=e.slice(29)),t=e.indexOf(`
|
|
830
|
-
`),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react-stack-bottom-frame"),t!==-1&&(t=e.lastIndexOf(`
|
|
831
|
-
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function ru(e){switch(e.tag){case 26:case 27:case 5:return Qt(e.type);case 16:return Qt("Lazy");case 13:return Qt("Suspense");case 19:return Qt("SuspenseList");case 0:case 15:return ll(e.type,!1);case 11:return ll(e.type.render,!1);case 1:return ll(e.type,!0);case 31:return Qt("Activity");default:return""}}function $o(e){try{var t="";do{t+=ru(e);var n=e._debugInfo;if(n)for(var u=n.length-1;0<=u;u--){var c=n[u];if(typeof c.name=="string"){var s=t,h=c.env,p=Qt(c.name+(h?" ["+h+"]":""));t=s+p}}e=e.return}while(e);return t}catch(b){return`
|
|
832
|
-
Error generating stack: `+b.message+`
|
|
833
|
-
`+b.stack}}function Gr(e){return(e=e?e.displayName||e.name:"")?Qt(e):""}function Jo(){if(Jn===null)return null;var e=Jn._debugOwner;return e!=null?at(e):null}function Xr(){if(Jn===null)return"";var e=Jn;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=Qt(e.type);break;case 13:t+=Qt("Suspense");break;case 19:t+=Qt("SuspenseList");break;case 31:t+=Qt("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Gr(e.type));break;case 11:e._debugOwner||t!==""||(t+=Gr(e.type.render))}for(;e;)if(typeof e.tag=="number"){var n=e;e=n._debugOwner;var u=n._debugStack;e&&u&&(typeof u!="string"&&(n._debugStack=u=Tl(u)),u!==""&&(t+=`
|
|
834
|
-
`+u))}else if(e.debugStack!=null){var c=e.debugStack;(e=e.owner)&&c&&(t+=`
|
|
835
|
-
`+Tl(c))}else break;var s=t}catch(h){s=`
|
|
836
|
-
Error generating stack: `+h.message+`
|
|
837
|
-
`+h.stack}return s}function ye(e,t,n,u,c,s,h){var p=Jn;Ju(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,u,c,s,h)):t(n,u,c,s,h)}finally{Ju(p)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Ju(e){G.getCurrentStack=e===null?null:Xr,Dn=!1,Jn=e}function il(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Be(e),e;default:return""}}function ni(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ku(e){var t=ni(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Be(e[t]);var u=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var c=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(h){Be(h),u=""+h,s.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return u},setValue:function(h){Be(h),u=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ta(e){e._valueTracker||(e._valueTracker=Ku(e))}function Zt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),u="";return e&&(u=ni(e)?e.checked?"true":"false":e.value),e=u,e!==n?(t.setValue(e),!0):!1}function Wu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Xl(e){return e.replace(iy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function za(e,t){t.checked===void 0||t.defaultChecked===void 0||fp||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Jo()||"A component",t.type),fp=!0),t.value===void 0||t.defaultValue===void 0||rp||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Jo()||"A component",t.type),rp=!0)}function Oa(e,t,n,u,c,s,h,p){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?(ie(h,"type"),e.type=h):e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+il(t)):e.value!==""+il(t)&&(e.value=""+il(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Ko(e,h,il(t)):n!=null?Ko(e,h,il(n)):u!=null&&e.removeAttribute("value"),c==null&&s!=null&&(e.defaultChecked=!!s),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?(ie(p,"name"),e.name=""+il(p)):e.removeAttribute("name")}function jr(e,t,n,u,c,s,h,p){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(ie(s,"type"),e.type=s),t!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||t!=null))return;n=n!=null?""+il(n):"",t=t!=null?""+il(t):n,p||t===e.value||(e.value=t),e.defaultValue=t}u=u??c,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=p?e.checked:!!u,e.defaultChecked=!!u,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(ie(h,"name"),e.name=h)}function Ko(e,t,n){t==="number"&&Wu(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ts(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?If.Children.forEach(t.children,function(n){n==null||typeof n=="string"||typeof n=="number"||typeof n=="bigint"||hp||(hp=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||im||(im=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||dp||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),dp=!0)}function Qr(){var e=Jo();return e?`
|
|
838
|
-
|
|
839
|
-
Check the render method of \``+e+"`.":""}function la(e,t,n,u){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&u&&(e[n].defaultSelected=!0)}else{for(n=""+il(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,u&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Iu(e,t){for(e=0;e<ud.length;e++){var n=ud[e];if(t[n]!=null){var u=Ve(t[n]);t.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Qr()):!t.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Qr())}}t.value===void 0||t.defaultValue===void 0||mp||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),mp=!0)}function Bn(e,t){t.value===void 0||t.defaultValue===void 0||Iv||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Jo()||"A component"),Iv=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Wo(e,t,n){if(t!=null&&(t=""+il(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+il(n):""}function ls(e,t,n,u){if(t==null){if(u!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ve(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0]}n=u}n==null&&(n=""),t=n}n=il(t),e.defaultValue=n,u=e.textContent,u===n&&u!==""&&u!==null&&(e.value=u)}function ai(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?ai(e.children[0],t):e}function xl(e){return" "+" ".repeat(e)}function Ua(e){return"+ "+" ".repeat(e)}function ii(e){return"- "+" ".repeat(e)}function ns(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function dl(e,t){return Fv.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Fu(e,t,n){var u=120-2*n;if(t===null)return Ua(n)+dl(e,u)+`
|
|
840
|
-
`;if(typeof t=="string"){for(var c=0;c<t.length&&c<e.length&&t.charCodeAt(c)===e.charCodeAt(c);c++);return c>u-8&&10<c&&(e="..."+e.slice(c-8),t="..."+t.slice(c-8)),Ua(n)+dl(e,u)+`
|
|
841
|
-
`+ii(n)+dl(t,u)+`
|
|
842
|
-
`}return xl(n)+dl(e,u)+`
|
|
843
|
-
`}function as(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,n){return n})}function Ha(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Ve(e))return"[...]";if(e.$$typeof===zo)return(t=Oe(e.type))?"<"+t+">":"<...>";var n=as(e);if(n==="Object"){n="",t-=2;for(var u in e)if(e.hasOwnProperty(u)){var c=JSON.stringify(u);if(c!=='"'+u+'"'&&(u=c),t-=u.length-2,c=Ha(e[u],15>t?t:15),t-=c.length,0>t){n+=n===""?"...":", ...";break}n+=(n===""?"":",")+u+":"+c}return"{"+n+"}"}return n;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function ui(e,t){return typeof e!="string"||Fv.test(e)?"{"+Ha(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function fu(e,t,n){var u=120-n.length-e.length,c=[],s;for(s in t)if(t.hasOwnProperty(s)&&s!=="children"){var h=ui(t[s],120-n.length-s.length-1);u-=s.length+h.length+2,c.push(s+"="+h)}return c.length===0?n+"<"+e+`>
|
|
844
|
-
`:0<u?n+"<"+e+" "+c.join(" ")+`>
|
|
845
|
-
`:n+"<"+e+`
|
|
846
|
-
`+n+" "+c.join(`
|
|
847
|
-
`+n+" ")+`
|
|
848
|
-
`+n+`>
|
|
849
|
-
`}function Hd(e,t,n){var u="",c=Ke({},t),s;for(s in e)if(e.hasOwnProperty(s)){delete c[s];var h=120-2*n-s.length-2,p=Ha(e[s],h);t.hasOwnProperty(s)?(h=Ha(t[s],h),u+=Ua(n)+s+": "+p+`
|
|
850
|
-
`,u+=ii(n)+s+": "+h+`
|
|
851
|
-
`):u+=Ua(n)+s+": "+p+`
|
|
852
|
-
`}for(var b in c)c.hasOwnProperty(b)&&(e=Ha(c[b],120-2*n-b.length-2),u+=ii(n)+b+": "+e+`
|
|
853
|
-
`);return u}function en(e,t,n,u){var c="",s=new Map;for(S in n)n.hasOwnProperty(S)&&s.set(S.toLowerCase(),S);if(s.size===1&&s.has("children"))c+=fu(e,t,xl(u));else{for(var h in t)if(t.hasOwnProperty(h)&&h!=="children"){var p=120-2*(u+1)-h.length-1,b=s.get(h.toLowerCase());if(b!==void 0){s.delete(h.toLowerCase());var S=t[h];b=n[b];var N=ui(S,p);p=ui(b,p),typeof S=="object"&&S!==null&&typeof b=="object"&&b!==null&&as(S)==="Object"&&as(b)==="Object"&&(2<Object.keys(S).length||2<Object.keys(b).length||-1<N.indexOf("...")||-1<p.indexOf("..."))?c+=xl(u+1)+h+`={{
|
|
854
|
-
`+Hd(S,b,u+2)+xl(u+1)+`}}
|
|
855
|
-
`:(c+=Ua(u+1)+h+"="+N+`
|
|
856
|
-
`,c+=ii(u+1)+h+"="+p+`
|
|
857
|
-
`)}else c+=xl(u+1)+h+"="+ui(t[h],p)+`
|
|
858
|
-
`}s.forEach(function(Q){if(Q!=="children"){var B=120-2*(u+1)-Q.length-1;c+=ii(u+1)+Q+"="+ui(n[Q],B)+`
|
|
859
|
-
`}}),c=c===""?xl(u)+"<"+e+`>
|
|
860
|
-
`:xl(u)+"<"+e+`
|
|
861
|
-
`+c+xl(u)+`>
|
|
862
|
-
`}return e=n.children,t=t.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(s="",(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(s=""+t),c+=Fu(s,""+e,u+1)):(typeof t=="string"||typeof t=="number"||typeof t=="bigint")&&(c=e==null?c+Fu(""+t,null,u+1):c+Fu(""+t,void 0,u+1)),c}function Io(e,t){var n=ns(e);if(n===null){for(n="",e=e.child;e;)n+=Io(e,t),e=e.sibling;return n}return xl(t)+"<"+n+`>
|
|
863
|
-
`}function Fo(e,t){var n=ai(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return xl(t)+`...
|
|
864
|
-
`+Fo(n,t+1);n="";var u=e.fiber._debugInfo;if(u)for(var c=0;c<u.length;c++){var s=u[c].name;typeof s=="string"&&(n+=xl(t)+"<"+s+`>
|
|
865
|
-
`,t++)}if(u="",c=e.fiber.pendingProps,e.fiber.tag===6)u=Fu(c,e.serverProps,t),t++;else if(s=ns(e.fiber),s!==null)if(e.serverProps===void 0){u=t;var h=120-2*u-s.length-2,p="";for(S in c)if(c.hasOwnProperty(S)&&S!=="children"){var b=ui(c[S],15);if(h-=S.length+b.length+2,0>h){p+=" ...";break}p+=" "+S+"="+b}u=xl(u)+"<"+s+p+`>
|
|
866
|
-
`,t++}else e.serverProps===null?(u=fu(s,c,Ua(t)),t++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=en(s,c,e.serverProps,t),t++);var S="";for(c=e.fiber.child,s=0;c&&s<e.children.length;)h=e.children[s],h.fiber===c?(S+=Fo(h,t),s++):S+=Io(c,t),c=c.sibling;for(c&&0<e.children.length&&(S+=xl(t)+`...
|
|
867
|
-
`),c=e.serverTail,e.serverProps===null&&t--,e=0;e<c.length;e++)s=c[e],S=typeof s=="string"?S+(ii(t)+dl(s,120-2*t)+`
|
|
868
|
-
`):S+fu(s.type,s.props,ii(t));return n+u+S}function Pu(e){try{return`
|
|
869
|
-
|
|
870
|
-
`+Fo(e,0)}catch{return""}}function oi(e,t,n){for(var u=t,c=null,s=0;u;)u===e&&(s=0),c={fiber:u,children:c!==null?[c]:[],serverProps:u===t?n:u===e?null:void 0,serverTail:[],distanceFromLeaf:s},s++,u=u.return;return c!==null?Pu(c).replaceAll(/^[+-]/gm,">"):""}function is(e,t){var n=Ke({},e||gp),u={tag:t};return um.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),om.indexOf(t)!==-1&&(n.pTagInButtonScope=null),pp.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=u,t==="form"&&(n.formTag=u),t==="a"&&(n.aTagInScope=u),t==="button"&&(n.buttonTagInScope=u),t==="nobr"&&(n.nobrTagInScope=u),t==="p"&&(n.pTagInButtonScope=u),t==="li"&&(n.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=u),t==="#document"||t==="html"?n.containerTagInScope=null:n.containerTagInScope||(n.containerTagInScope=u),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?n.implicitRootScope===!0&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function us(e,t,n){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(n)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!n)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return vp.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return n||t===null;case"html":return n&&t==="#document"||t===null;case"body":return n&&(t==="#document"||t==="html")||t===null}return!0}function du(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function Zr(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Po(e,t){t=t||gp;var n=t.current;if(t=(n=us(e,n&&n.tag,t.implicitRootScope)?null:n)?null:du(e,t),t=n||t,!t)return!0;var u=t.tag;if(t=String(!!n)+"|"+e+"|"+u,Tr[t])return!1;Tr[t]=!0;var c=(t=Jn)?Zr(t.return,u):null,s=t!==null&&c!==null?oi(c,t,null):"",h="<"+e+">";return n?(n="",u==="table"&&e==="tr"&&(n+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
871
|
-
This will cause a hydration error.%s`,h,u,n,s)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
872
|
-
This will cause a hydration error.%s`,h,u,s),t&&(e=t.return,c===null||e===null||c===e&&e._debugOwner===t._debugOwner||ye(c,function(){console.error(`<%s> cannot contain a nested %s.
|
|
873
|
-
See this log for the ancestor stack trace.`,u,h)})),!1}function eo(e,t,n){if(n||us("#text",t,!1))return!0;if(n="#text|"+t,Tr[n])return!1;Tr[n]=!0;var u=(n=Jn)?Zr(n,t):null;return n=n!==null&&u!==null?oi(u,n,n.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
874
|
-
This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
875
|
-
This will cause a hydration error.%s`,t,n),!1}function ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function wd(e){return e.replace(No,function(t,n){return n.toUpperCase()})}function $r(e,t,n){var u=t.indexOf("--")===0;u||(-1<t.indexOf("-")?Yc.hasOwnProperty(t)&&Yc[t]||(Yc[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,wd(t.replace(cd,"ms-")))):od.test(t)?Yc.hasOwnProperty(t)&&Yc[t]||(Yc[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!Pv.test(n)||Vc.hasOwnProperty(n)&&Vc[n]||(Vc[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(Pv,""))),typeof n=="number"&&(isNaN(n)?eg||(eg=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||yp||(yp=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n=="boolean"||n===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,n):typeof n!="number"||n===0||sd.has(t)?t==="float"?e.cssFloat=n:(ve(n,t),e[t]=(""+n).trim()):e[t]=n+"px"}function to(e,t,n){if(t!=null&&typeof t!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var u={};if(n){for(var c in n)if(n.hasOwnProperty(c)&&!t.hasOwnProperty(c))for(var s=ji[c]||[c],h=0;h<s.length;h++)u[s[h]]=c}for(var p in t)if(t.hasOwnProperty(p)&&(!n||n[p]!==t[p]))for(c=ji[p]||[p],s=0;s<c.length;s++)u[c[s]]=p;p={};for(var b in t)for(c=ji[b]||[b],s=0;s<c.length;s++)p[c[s]]=b;b={};for(var S in u)if(c=u[S],(s=p[S])&&c!==s&&(h=c+","+s,!b[h])){b[h]=!0,h=console;var N=t[c];h.error.call(h,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",N==null||typeof N=="boolean"||N===""?"Removing":"Updating",c,s)}}for(var Q in n)!n.hasOwnProperty(Q)||t!=null&&t.hasOwnProperty(Q)||(Q.indexOf("--")===0?e.setProperty(Q,""):Q==="float"?e.cssFloat="":e[Q]="");for(var B in t)S=t[B],t.hasOwnProperty(B)&&n[B]!==S&&$r(e,B,S)}else for(u in t)t.hasOwnProperty(u)&&$r(e,u,t[u])}function si(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ec(e){return cm.get(e)||e}function hu(e,t){if(wu.call(Qi,t)&&Qi[t])return!0;if(sm.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=bp.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Qi[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Qi[t]=!0}if(Sp.test(t)){if(e=t.toLowerCase(),e=bp.hasOwnProperty(e)?e:null,e==null)return Qi[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Qi[t]=!0)}return!0}function mu(e,t){var n=[],u;for(u in t)hu(e,u)||n.push(u);t=n.map(function(c){return"`"+c+"`"}).join(", "),n.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<n.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function Jr(e,t,n,u){if(wu.call(on,t)&&on[t])return!0;var c=t.toLowerCase();if(c==="onfocusin"||c==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),on[t]=!0;if(typeof n=="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(t))return!0;if(u=e.hasOwnProperty(c)?e[c]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,u),on[t]=!0;if(fd.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),on[t]=!0}else if(fd.test(t))return l.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),on[t]=!0;if(a.test(t)||i.test(t))return!0;if(c==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),on[t]=!0;if(c==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),on[t]=!0;if(c==="is"&&n!==null&&n!==void 0&&typeof n!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),on[t]=!0;if(typeof n=="number"&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),on[t]=!0;if(Gc.hasOwnProperty(c)){if(c=Gc[c],c!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,c),on[t]=!0}else if(t!==c)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,c),on[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof n){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return c=t.toLowerCase().slice(0,5),c==="data-"||c==="aria-"?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),on[t]=!0)}case"function":case"symbol":return on[t]=!0,!1;case"string":if(n==="false"||n==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),on[t]=!0}}return!0}function os(e,t,n){var u=[],c;for(c in t)Jr(e,c,t[c],n)||u.push(c);t=u.map(function(s){return"`"+s+"`"}).join(", "),u.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<u.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function pu(e){return o.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ri(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function kn(e){var t=Gl(e);if(t&&(e=t.stateNode)){var n=e[Rn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Oa(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(ie(t,"name"),n=n.querySelectorAll('input[name="'+Xl(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var u=n[t];if(u!==e&&u.form===e.form){var c=u[Rn]||null;if(!c)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Oa(u,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)u=n[t],u.form===e.form&&Zt(u)}break e;case"textarea":Wo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&la(e,!!n.multiple,t,!1)}}}function tc(e,t,n){if(y)return e(t,n);y=!0;try{var u=e(t);return u}finally{if(y=!1,(d!==null||g!==null)&&(Rc(),d&&(t=d,e=g,g=d=null,kn(t),e)))for(t=0;t<e.length;t++)kn(e[t])}}function na(e,t){var n=e.stateNode;if(n===null)return null;var u=n[Rn]||null;if(u===null)return null;n=u[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function aa(){if(L)return L;var e,t=k,n=t.length,u,c="value"in P?P.value:P.textContent,s=c.length;for(e=0;e<n&&t[e]===c[e];e++);var h=n-e;for(u=1;u<=h&&t[n-u]===c[s-u];u++);return L=c.slice(e,1<u?1-u:void 0)}function vu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function fi(){return!0}function cs(){return!1}function ul(e){function t(n,u,c,s,h){this._reactName=n,this._targetInst=c,this.type=u,this.nativeEvent=s,this.target=h,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(s):s[p]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?fi:cs,this.isPropagationStopped=cs,this}return Ke(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=fi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fi)},persist:function(){},isPersistent:fi}),t}function lc(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=S2[e])?!!t[e]:!1}function nc(){return lc}function El(e,t){switch(e){case"keyup":return U2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Nb;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wa(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function ac(e,t){switch(e){case"compositionend":return wa(t);case"keypress":return t.which!==qb?null:(Vb=!0,Yb);case"textInput":return e=t.data,e===Yb&&Vb?null:e;default:return null}}function lo(e,t){if(rm)return e==="compositionend"||!oy&&El(e,t)?(e=aa(),L=k=P=null,rm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lb&&t.locale!=="ko"?null:t.data;default:return null}}function Kr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!w2[e.type]:t==="textarea"}function ss(e){if(!E)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]=="function"),t}function ic(e,t,n,u){d?g?g.push(u):g=[u]:d=u,t=Gf(t,"onChange"),0<t.length&&(n=new Me("onChange","change",null,n,u),e.push({event:n,listeners:t}))}function no(e){ki(e,0)}function di(e){var t=Ma(e);if(Zt(t))return e}function rs(e,t){if(e==="change")return t}function Wr(){Ep&&(Ep.detachEvent("onpropertychange",Ir),_p=Ep=null)}function Ir(e){if(e.propertyName==="value"&&di(_p)){var t=[];ic(t,_p,e,ri(e)),tc(no,t)}}function Bd(e,t,n){e==="focusin"?(Wr(),Ep=t,_p=n,Ep.attachEvent("onpropertychange",Ir)):e==="focusout"&&Wr()}function fs(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return di(_p)}function kd(e,t){if(e==="click")return di(t)}function Nd(e,t){if(e==="input"||e==="change")return di(t)}function Ld(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function ao(e,t){if(Kn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),u=Object.keys(t);if(n.length!==u.length)return!1;for(u=0;u<n.length;u++){var c=n[u];if(!wu.call(t,c)||!Kn(e[c],t[c]))return!1}return!0}function Fr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ds(e,t){var n=Fr(e);e=0;for(var u;n;){if(n.nodeType===3){if(u=e+n.textContent.length,e<=t&&u>=t)return{node:n,offset:t-e};e=u}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Fr(n)}}function Pr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ef(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wu(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Wu(e.document)}return t}function hs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function tf(e,t,n){var u=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sy||fm==null||fm!==Wu(u)||(u=fm,"selectionStart"in u&&hs(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Cp&&ao(Cp,u)||(Cp=u,u=Gf(cy,"onSelect"),0<u.length&&(t=new Me("onSelect","select",null,t,n),e.push({event:t,listeners:u}),t.target=fm)))}function ia(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function hi(e){if(ry[e])return ry[e];if(!dm[e])return e;var t=dm[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xb)return ry[e]=t[n];return e}function hn(e,t){Jb.set(e,t),Ra(t,[e])}function jl(e,t){if(typeof e=="object"&&e!==null){var n=dy.get(e);return n!==void 0?n:(t={value:e,source:t,stack:$o(t)},dy.set(e,t),t)}return{value:e,source:t,stack:$o(t)}}function io(){for(var e=hm,t=my=hm=0;t<e;){var n=Zi[t];Zi[t++]=null;var u=Zi[t];Zi[t++]=null;var c=Zi[t];Zi[t++]=null;var s=Zi[t];if(Zi[t++]=null,u!==null&&c!==null){var h=u.pending;h===null?c.next=c:(c.next=h.next,h.next=c),u.pending=c}s!==0&&lf(n,c,s)}}function uc(e,t,n,u){Zi[hm++]=e,Zi[hm++]=t,Zi[hm++]=n,Zi[hm++]=u,my|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function ms(e,t,n,u){return uc(e,t,n,u),oc(e)}function Ol(e,t){return uc(e,null,null,t),oc(e)}function lf(e,t,n){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n);for(var c=!1,s=e.return;s!==null;)s.childLanes|=n,u=s.alternate,u!==null&&(u.childLanes|=n),s.tag===22&&(e=s.stateNode,e===null||e._visibility&hy||(c=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,c&&t!==null&&(c=31-Kl(n),e=s.hiddenUpdates,u=e[c],u===null?e[c]=[t]:u.push(t),t.lane=n|536870912),s):null}function oc(e){if($p>nT)throw Cd=$p=0,Jp=jy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Cd>aT&&(Cd=0,Jp=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&Ja(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&(t.flags&4098)!==0&&Ja(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function mi(e){if($i===null)return e;var t=$i(e);return t===void 0?e:t.current}function ps(e){if($i===null)return e;var t=$i(e);return t===void 0?e!=null&&typeof e.render=="function"&&(t=mi(e.render),e.render!==t)?(t={$$typeof:Uu,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function nf(e,t){if($i===null)return!1;var n=e.elementType;t=t.type;var u=!1,c=typeof t=="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t=="function"&&(u=!0);break;case 0:(typeof t=="function"||c===$n)&&(u=!0);break;case 11:(c===Uu||c===$n)&&(u=!0);break;case 14:case 15:(c===Pf||c===$n)&&(u=!0);break;default:return!1}return!!(u&&(e=$i(n),e!==void 0&&e===$i(t)))}function af(e){$i!==null&&typeof WeakSet=="function"&&(mm===null&&(mm=new WeakSet),mm.add(e))}function uo(e,t,n){var u=e.alternate,c=e.child,s=e.sibling,h=e.tag,p=e.type,b=null;switch(h){case 0:case 15:case 1:b=p;break;case 11:b=p.render}if($i===null)throw Error("Expected resolveFamily to be set during hot reload.");var S=!1;p=!1,b!==null&&(b=$i(b),b!==void 0&&(n.has(b)?p=!0:t.has(b)&&(h===1?p=!0:S=!0))),mm!==null&&(mm.has(e)||u!==null&&mm.has(u))&&(p=!0),p&&(e._debugNeedsRemount=!0),(p||S)&&(u=Ol(e,2),u!==null&&Kt(u,e,2)),c===null||p||uo(c,t,n),s!==null&&uo(s,t,n)}function oo(e,t,n,u){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Wb||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function vs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Nn(e,t){var n=e.alternate;switch(n===null?(n=V(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=mi(e.type);break;case 1:n.type=mi(e.type);break;case 11:n.type=ps(e.type)}return n}function gs(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function cc(e,t,n,u,c,s){var h=0,p=e;if(typeof e=="function")vs(e)&&(h=1),p=mi(p);else if(typeof e=="string")h=D(),h=cr(e,n,h)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case np:return t=V(31,n,t,c),t.elementType=np,t.lanes=s,t;case je:return Ba(n.children,c,s,t);case rr:h=8,c|=zn,c|=qu;break;case fr:return e=n,u=c,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=V(12,e,t,u|cn),t.elementType=fr,t.lanes=s,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case dr:return t=V(13,n,t,c),t.elementType=dr,t.lanes=s,t;case Oo:return t=V(19,n,t,c),t.elementType=Oo,t.lanes=s,t;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lp:case ya:h=10;break e;case Jh:h=9;break e;case Uu:h=11,p=ps(p);break e;case Pf:h=14;break e;case $n:h=16,p=null;break e}p="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(p+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":Ve(e)?n="array":e!==void 0&&e.$$typeof===zo?(n="<"+(Oe(e.type)||"Unknown")+" />",p=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,(h=u?at(u):null)&&(p+=`
|
|
876
|
-
|
|
877
|
-
Check the render method of \``+h+"`."),h=29,n=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(n+"."+p)),p=null}return t=V(h,n,t,c),t.elementType=e,t.type=p,t.lanes=s,t._debugOwner=u,t}function co(e,t,n){return t=cc(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Ba(e,t,n,u){return e=V(7,e,u,t),e.lanes=n,e}function ka(e,t,n){return e=V(6,e,null,t),e.lanes=n,e}function ys(e,t,n){return t=V(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pi(e,t){mn(),pm[vm++]=lg,pm[vm++]=tg,tg=e,lg=t}function uf(e,t,n){mn(),Ji[Ki++]=Xc,Ji[Ki++]=jc,Ji[Ki++]=hd,hd=e;var u=Xc;e=jc;var c=32-Kl(u)-1;u&=~(1<<c),n+=1;var s=32-Kl(t)+c;if(30<s){var h=c-c%5;s=(u&(1<<h)-1).toString(32),u>>=h,c-=h,Xc=1<<32-Kl(t)+c|n<<c|u,jc=s+e}else Xc=1<<s|n<<c|u,jc=e}function sc(e){mn(),e.return!==null&&(pi(e,1),uf(e,1,0))}function rc(e){for(;e===tg;)tg=pm[--vm],pm[vm]=null,lg=pm[--vm],pm[vm]=null;for(;e===hd;)hd=Ji[--Ki],Ji[Ki]=null,jc=Ji[--Ki],Ji[Ki]=null,Xc=Ji[--Ki],Ji[Ki]=null}function mn(){mt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function pn(e,t){if(e.return===null){if(Wi===null)Wi={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Wi.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Wi.distanceFromLeaf>t&&(Wi.distanceFromLeaf=t)}return Wi}var n=pn(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function bs(e,t){Qc||(e=pn(e,0),e.serverProps=null,t!==null&&(t=Lh(t),e.serverTail.push(t)))}function Ln(e){var t="",n=Wi;throw n!==null&&(Wi=null,t=Pu(n)),gu(jl(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
878
|
-
|
|
879
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
880
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
881
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
882
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
883
|
-
- Invalid HTML tag nesting.
|
|
884
|
-
|
|
885
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
886
|
-
|
|
887
|
-
https://react.dev/link/hydration-mismatch`+t),e)),py}function Ss(e){var t=e.stateNode,n=e.type,u=e.memoizedProps;switch(t[Wl]=e,t[Rn]=u,Ni(n,u),n){case"dialog":Pe("cancel",t),Pe("close",t);break;case"iframe":case"object":case"embed":Pe("load",t);break;case"video":case"audio":for(n=0;n<Kp.length;n++)Pe(Kp[n],t);break;case"source":Pe("error",t);break;case"img":case"image":case"link":Pe("error",t),Pe("load",t);break;case"details":Pe("toggle",t);break;case"input":Da("input",u),Pe("invalid",t),za(t,u),jr(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),ta(t);break;case"option":ts(t,u);break;case"select":Da("select",u),Pe("invalid",t),Iu(t,u);break;case"textarea":Da("textarea",u),Pe("invalid",t),Bn(t,u),ls(t,u.value,u.defaultValue,u.children),ta(t)}n=u.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||u.suppressHydrationWarning===!0||B0(t.textContent,n)?(u.popover!=null&&(Pe("beforetoggle",t),Pe("toggle",t)),u.onScroll!=null&&Pe("scroll",t),u.onScrollEnd!=null&&Pe("scrollend",t),u.onClick!=null&&(t.onclick=Ru),t=!0):t=!1,t||Ln(e)}function Ts(e){for(Wn=e.return;Wn;)switch(Wn.tag){case 5:case 13:qo=!1;return;case 27:case 3:qo=!0;return;default:Wn=Wn.return}}function vi(e){if(e!==Wn)return!1;if(!mt)return Ts(e),mt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Li(e.type,e.memoizedProps)),n=!n),n&&sl){for(n=sl;n;){var u=pn(e,0),c=Lh(n);u.serverTail.push(c),n=c.type==="Suspense"?X0(n):kl(n.nextSibling)}Ln(e)}if(Ts(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");sl=X0(e)}else t===27?(t=sl,qi(e.type)?(e=lb,lb=null,sl=e):sl=t):sl=Wn?kl(e.stateNode.nextSibling):null;return!0}function gi(){sl=Wn=null,Qc=mt=!1}function xs(){var e=md;return e!==null&&(Pn===null?Pn=e:Pn.push.apply(Pn,e),md=null),e}function gu(e){md===null?md=[e]:md.push(e)}function Es(){var e=Wi;if(e!==null){Wi=null;for(var t=Pu(e);0<e.children.length;)e=e.children[0];ye(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
888
|
-
|
|
889
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
890
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
891
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
892
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
893
|
-
- Invalid HTML tag nesting.
|
|
894
|
-
|
|
895
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
896
|
-
|
|
897
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function fc(){gm=ng=null,ym=!1}function Na(e,t,n){Ee(vy,t._currentValue,e),t._currentValue=n,Ee(gy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==e1&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=e1}function ua(e,t){e._currentValue=vy.current;var n=gy.current;Re(gy,t),e._currentRenderer=n,Re(vy,t)}function _s(e,t,n){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===n)break;e=e.return}e!==n&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Cs(e,t,n,u){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var s=c.dependencies;if(s!==null){var h=c.child;s=s.firstContext;e:for(;s!==null;){var p=s;s=c;for(var b=0;b<t.length;b++)if(p.context===t[b]){s.lanes|=n,p=s.alternate,p!==null&&(p.lanes|=n),_s(s.return,n,e),u||(h=null);break e}s=p.next}}else if(c.tag===18){if(h=c.return,h===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");h.lanes|=n,s=h.alternate,s!==null&&(s.lanes|=n),_s(h,n,e),h=null}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===e){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return}c=h}}function ol(e,t,n,u){e=null;for(var c=t,s=!1;c!==null;){if(!s){if((c.flags&524288)!==0)s=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var h=c.alternate;if(h===null)throw Error("Should have a current fiber. This is a bug in React.");if(h=h.memoizedProps,h!==null){var p=c.type;Kn(c.pendingProps.value,h.value)||(e!==null?e.push(p):e=[p])}}else if(c===mr.current){if(h=c.alternate,h===null)throw Error("Should have a current fiber. This is a bug in React.");h.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Pp):e=[Pp])}c=c.return}e!==null&&Cs(t,e,n,u),t.flags|=262144}function La(e){for(e=e.firstContext;e!==null;){if(!Kn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qa(e){ng=e,gm=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return ym&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),As(ng,e)}function so(e,t){return ng===null&&qa(e),As(e,t)}function As(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},gm===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");gm=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else gm=gm.next=t;return n}function ro(){return{controller:new G2,data:new Map,refCount:0}}function yi(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function qn(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&X2(j2,function(){e.controller.abort()})}function vn(){var e=pd;return pd=0,e}function Ya(e){var t=pd;return pd=e,t}function bi(e){var t=pd;return pd+=e,t}function dc(e){Ta=bm(),0>e.actualStartTime&&(e.actualStartTime=Ta)}function oa(e){if(0<=Ta){var t=bm()-Ta;e.actualDuration+=t,e.selfBaseDuration=t,Ta=-1}}function Si(e){if(0<=Ta){var t=bm()-Ta;e.actualDuration+=t,Ta=-1}}function tn(){if(0<=Ta){var e=bm()-Ta;Ta=-1,pd+=e}}function gn(){Ta=bm()}function Yn(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function of(e,t){if(Ap===null){var n=Ap=[];yy=0,vd=z0(),Sm={status:"pending",value:void 0,then:function(u){n.push(u)}}}return yy++,t.then(Ms,Ms),t}function Ms(){if(--yy===0&&Ap!==null){Sm!==null&&(Sm.status="fulfilled");var e=Ap;Ap=null,vd=0,Sm=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cf(e,t){var n=[],u={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(u.status="rejected",u.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),u}function Rs(){var e=gd.current;return e!==null?e:Ut.pooledCache}function hc(e,t){t===null?Ee(gd,gd.current,e):Ee(gd,t.pool,e)}function sf(){var e=Rs();return e===null?null:{parent:ql._currentValue,pool:e}}function Ds(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function zs(e){return e=e.status,e==="fulfilled"||e==="rejected"}function yu(){}function ln(e,t,n){G.actQueue!==null&&(G.didUsePromise=!0);var u=e.thenables;switch(n=u[n],n===void 0?u.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(yu,yu),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ql(e),e;default:if(typeof t.status=="string")t.then(yu,yu);else{if(e=Ut,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(c){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=c}},function(c){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=c}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ql(e),e}throw wp=t,sg=!0,Hp}}function Os(){if(wp===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=wp;return wp=null,sg=!1,e}function Ql(e){if(e===Hp||e===cg)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ul(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vn(e){return{lane:e,tag:i1,payload:null,callback:null,next:null}}function ze(e,t,n){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,Ty===u&&!c1){var c=me(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
898
|
-
|
|
899
|
-
Please update the following component: %s`,c),c1=!0}return(Tt&Fn)!==Ia?(c=u.pending,c===null?t.next=t:(t.next=c.next,c.next=t),u.pending=t,t=oc(e),lf(e,null,n),t):(uc(e,u,t,n),oc(e))}function fo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,zt(e,n)}}function Us(e,t){var n=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,n===u)){var c=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var h={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?c=s=h:s=s.next=h,n=n.next}while(n!==null);s===null?c=s=t:s=s.next=t}else c=s=t;n={baseState:u.baseState,firstBaseUpdate:c,lastBaseUpdate:s,shared:u.shared,callbacks:u.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ti(){if(xy){var e=Sm;if(e!==null)throw e}}function Hs(e,t,n,u){xy=!1;var c=e.updateQueue;_r=!1,Ty=c.shared;var s=c.firstBaseUpdate,h=c.lastBaseUpdate,p=c.shared.pending;if(p!==null){c.shared.pending=null;var b=p,S=b.next;b.next=null,h===null?s=S:h.next=S,h=b;var N=e.alternate;N!==null&&(N=N.updateQueue,p=N.lastBaseUpdate,p!==h&&(p===null?N.firstBaseUpdate=S:p.next=S,N.lastBaseUpdate=b))}if(s!==null){var Q=c.baseState;h=0,N=S=b=null,p=s;do{var B=p.lane&-536870913,$=B!==p.lane;if($?(it&B)===B:(u&B)===B){B!==0&&B===vd&&(xy=!0),N!==null&&(N=N.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{B=e;var Se=p,Le=t,Ht=n;switch(Se.tag){case u1:if(Se=Se.payload,typeof Se=="function"){ym=!0;var ot=Se.call(Ht,Q,Le);if(B.mode&zn){$e(!0);try{Se.call(Ht,Q,Le)}finally{$e(!1)}}ym=!1,Q=ot;break e}Q=Se;break e;case Sy:B.flags=B.flags&-65537|128;case i1:if(ot=Se.payload,typeof ot=="function"){if(ym=!0,Se=ot.call(Ht,Q,Le),B.mode&zn){$e(!0);try{ot.call(Ht,Q,Le)}finally{$e(!1)}}ym=!1}else Se=ot;if(Se==null)break e;Q=Ke({},Q,Se);break e;case o1:_r=!0}}B=p.callback,B!==null&&(e.flags|=64,$&&(e.flags|=8192),$=c.callbacks,$===null?c.callbacks=[B]:$.push(B))}else $={lane:B,tag:p.tag,payload:p.payload,callback:p.callback,next:null},N===null?(S=N=$,b=Q):N=N.next=$,h|=B;if(p=p.next,p===null){if(p=c.shared.pending,p===null)break;$=p,p=$.next,$.next=null,c.lastBaseUpdate=$,c.shared.pending=null}}while(!0);N===null&&(b=Q),c.baseState=b,c.firstBaseUpdate=S,c.lastBaseUpdate=N,s===null&&(c.shared.lanes=0),Rr|=h,e.lanes=h,e.memoizedState=Q}Ty=null}function rf(e,t){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function ws(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)rf(n[e],t)}function mv(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)rf(n[e],t)}function yn(e,t){var n=Go;Ee(rg,n,e),Ee(Tm,t,e),Go=n|t.baseLanes}function ff(e){Ee(rg,Go,e),Ee(Tm,Tm.current,e)}function Ga(e){Go=rg.current,Re(Tm,e),Re(rg,e)}function We(){var e=j;Pi===null?Pi=[e]:Pi.push(e)}function le(){var e=j;if(Pi!==null&&($c++,Pi[$c]!==e)){var t=me(Ge);if(!s1.has(t)&&(s1.add(t),Pi!==null)){for(var n="",u=0;u<=$c;u++){var c=Pi[u],s=u===$c?e:c;for(c=u+1+". "+c;30>c.length;)c+=" ";c+=s+`
|
|
900
|
-
`,n+=c}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
901
|
-
|
|
902
|
-
Previous render Next render
|
|
903
|
-
------------------------------------------------------
|
|
904
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
905
|
-
`,t,n)}}}function ca(e){e==null||Ve(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",j,typeof e)}function Bs(){var e=me(Ge);f1.has(e)||(f1.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function Gt(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
906
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
907
|
-
2. You might be breaking the Rules of Hooks
|
|
908
|
-
3. You might have more than one copy of React in the same app
|
|
909
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function ho(e,t){if(kp)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",j),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
910
|
-
|
|
911
|
-
Previous: %s
|
|
912
|
-
Incoming: %s`,j,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Kn(e[n],t[n]))return!1;return!0}function mo(e,t,n,u,c,s){Cr=s,Ge=t,Pi=e!==null?e._debugHookTypes:null,$c=-1,kp=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)==="[object AsyncFunction]"||Object.prototype.toString.call(n)==="[object AsyncGeneratorFunction]")&&(s=me(Ge),Ey.has(s)||(Ey.add(s),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",s===null?"An unknown Component":"<"+s+">"))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?Cy:Pi!==null?d1:_y,bd=s=(t.mode&zn)!==Lt;var h=Ay(n,u,c);if(bd=!1,Em&&(h=ks(t,n,u,c)),s){$e(!0);try{h=ks(t,n,u,c)}finally{$e(!1)}}return df(e,t),h}function df(e,t){t._debugHookTypes=Pi,t.dependencies===null?Zc!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Zc}):t.dependencies._debugThenableState=Zc,G.H=hg;var n=Dt!==null&&Dt.next!==null;if(Cr=0,Pi=j=Dl=Dt=Ge=null,$c=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),fg=!1,Bp=0,Zc=null,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||Il||(e=e.dependencies,e!==null&&La(e)&&(Il=!0)),sg?(sg=!1,e=!0):e=!1,e&&(t=me(t)||"Unknown",r1.has(t)||Ey.has(t)||(r1.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function ks(e,t,n,u){Ge=e;var c=0;do{if(Em&&(Zc=null),Bp=0,Em=!1,c>=Z2)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(c+=1,kp=!1,Dl=Dt=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}$c=-1,G.H=h1,s=Ay(t,n,u)}while(Em);return s}function sa(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?mc(t):t,e=e.useState()[0],(Dt!==null?Dt.memoizedState:null)!==e&&(Ge.flags|=1024),t}function bn(){var e=dg!==0;return dg=0,e}function bu(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&qu)!==Lt?t.flags&-402655237:t.flags&-2053,e.lanes&=~n}function Xa(e){if(fg){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fg=!1}Cr=0,Pi=Dl=Dt=Ge=null,$c=-1,j=null,Em=!1,Bp=dg=0,Zc=null}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dl===null?Ge.memoizedState=Dl=e:Dl=Dl.next=e,Dl}function ut(){if(Dt===null){var e=Ge.alternate;e=e!==null?e.memoizedState:null}else e=Dt.next;var t=Dl===null?Ge.memoizedState:Dl.next;if(t!==null)Dl=t,Dt=e;else{if(e===null)throw Ge.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Dt=e,e={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Dl===null?Ge.memoizedState=Dl=e:Dl=Dl.next=e}return Dl}function qd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mc(e){var t=Bp;return Bp+=1,Zc===null&&(Zc=Ds()),e=ln(Zc,e,t),t=Ge,(Dl===null?t.memoizedState:Dl.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Cy:_y),e}function xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mc(e);if(e.$$typeof===ya)return Et(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function nl(e){var t=null,n=Ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var u=Ge.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=qd(),Ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||kp)for(n=t.data[t.index]=Array(e),u=0;u<e;u++)n[u]=Xv;else n.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",n.length,e);return t.index++,n}function ft(e,t){return typeof t=="function"?t(e):t}function st(e,t,n){var u=$t();if(n!==void 0){var c=n(t);if(bd){$e(!0);try{n(t)}finally{$e(!1)}}}else c=t;return u.memoizedState=u.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},u.queue=e,e=e.dispatch=Pm.bind(null,Ge,e),[u.memoizedState,e]}function ra(e){var t=ut();return fa(t,Dt,e)}function fa(e,t,n){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=n;var c=e.baseQueue,s=u.pending;if(s!==null){if(c!==null){var h=c.next;c.next=s.next,s.next=h}t.baseQueue!==c&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=c=s,u.pending=null}if(s=e.baseState,c===null)e.memoizedState=s;else{t=c.next;var p=h=null,b=null,S=t,N=!1;do{var Q=S.lane&-536870913;if(Q!==S.lane?(it&Q)===Q:(Cr&Q)===Q){var B=S.revertLane;if(B===0)b!==null&&(b=b.next={lane:0,revertLane:0,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null}),Q===vd&&(N=!0);else if((Cr&B)===B){S=S.next,B===vd&&(N=!0);continue}else Q={lane:0,revertLane:S.revertLane,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},b===null?(p=b=Q,h=s):b=b.next=Q,Ge.lanes|=B,Rr|=B;Q=S.action,bd&&n(s,Q),s=S.hasEagerState?S.eagerState:n(s,Q)}else B={lane:Q,revertLane:S.revertLane,action:S.action,hasEagerState:S.hasEagerState,eagerState:S.eagerState,next:null},b===null?(p=b=B,h=s):b=b.next=B,Ge.lanes|=Q,Rr|=Q;S=S.next}while(S!==null&&S!==t);if(b===null?h=s:b.next=p,!Kn(s,e.memoizedState)&&(Il=!0,N&&(n=Sm,n!==null)))throw n;e.memoizedState=s,e.baseState=h,e.baseQueue=b,u.lastRenderedState=s}return c===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function pc(e){var t=ut(),n=t.queue;if(n===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");n.lastRenderedReducer=e;var u=n.dispatch,c=n.pending,s=t.memoizedState;if(c!==null){n.pending=null;var h=c=c.next;do s=e(s,h.action),h=h.next;while(h!==c);Kn(s,t.memoizedState)||(Il=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,u]}function Su(e,t,n){var u=Ge,c=$t();if(mt){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var s=n();xm||s===n()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),xm=!0)}else{if(s=t(),xm||(n=t(),Kn(s,n)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),xm=!0)),Ut===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(it&124)!==0||Qm(u,t,s)}return c.memoizedState=s,n={value:s,getSnapshot:t},c.queue=n,Gd(Ls.bind(null,u,n,e),[e]),u.flags|=2048,_i(Fi|Yl,vo(),Ns.bind(null,u,n,s,t),null),s}function hf(e,t,n){var u=Ge,c=ut(),s=mt;if(s){if(n===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");n=n()}else if(n=t(),!xm){var h=t();Kn(n,h)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),xm=!0)}(h=!Kn((Dt||c).memoizedState,n))&&(c.memoizedState=n,Il=!0),c=c.queue;var p=Ls.bind(null,u,c,e);if(ml(2048,Yl,p,[e]),c.getSnapshot!==t||h||Dl!==null&&Dl.memoizedState.tag&Fi){if(u.flags|=2048,_i(Fi|Yl,vo(),Ns.bind(null,u,c,n,t),null),Ut===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");s||(Cr&124)!==0||Qm(u,t,n)}return n}function Qm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ge.updateQueue,t===null?(t=qd(),Ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ns(e,t,n,u){t.value=n,t.getSnapshot=u,Zm(t)&&qs(e)}function Ls(e,t,n){return n(function(){Zm(t)&&qs(e)})}function Zm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kn(e,n)}catch{return!0}}function qs(e){var t=Ol(e,2);t!==null&&Kt(t,e,2)}function mf(e){var t=$t();if(typeof e=="function"){var n=e;if(e=n(),bd){$e(!0);try{n()}finally{$e(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:e},t}function Tu(e){e=mf(e);var t=e.queue,n=Xs.bind(null,Ge,t);return t.dispatch=n,[e.memoizedState,n]}function ja(e){var t=$t();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Id.bind(null,Ge,!0,n),n.dispatch=t,[e,t]}function xu(e,t){var n=ut();return Ei(n,Dt,e,t)}function Ei(e,t,n,u){return e.baseState=n,fa(e,Dt,typeof u=="function"?u:ft)}function Yd(e,t){var n=ut();return Dt!==null?Ei(n,Dt,e,t):(n.baseState=e,[e,n.queue.dispatch])}function $m(e,t,n,u,c){if(Tf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var s={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){s.listeners.push(h)}};G.T!==null?n(!0):s.isTransition=!1,u(s),n=t.pending,n===null?(s.next=t.pending=s,Ys(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Ys(e,t){var n=t.action,u=t.payload,c=e.state;if(t.isTransition){var s=G.T,h={};G.T=h,G.T._updatedFibers=new Set;try{var p=n(c,u),b=G.S;b!==null&&b(h,p),pf(e,t,p)}catch(S){_l(e,t,S)}finally{G.T=s,s===null&&h._updatedFibers&&(e=h._updatedFibers.size,h._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{h=n(c,u),pf(e,t,h)}catch(S){_l(e,t,S)}}function pf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?(n.then(function(u){po(e,t,u)},function(u){return _l(e,t,u)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):po(e,t,n)}function po(e,t,n){t.status="fulfilled",t.value=n,vf(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ys(e,n)))}function _l(e,t,n){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=n,vf(t),t=t.next;while(t!==u)}e.action=null}function vf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Jm(e,t){return t}function Vs(e,t){if(mt){var n=Ut.formState;if(n!==null){e:{var u=Ge;if(mt){if(sl){t:{for(var c=sl,s=qo;c.nodeType!==8;){if(!s){c=null;break t}if(c=kl(c.nextSibling),c===null){c=null;break t}}s=c.data,c=s===Fy||s===fS?c:null}if(c){sl=kl(c.nextSibling),u=c.data===Fy;break e}}Ln(u)}u=!1}u&&(t=n[0])}}return n=$t(),n.memoizedState=n.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jm,lastRenderedState:t},n.queue=u,n=Xs.bind(null,Ge,u),u.dispatch=n,u=mf(!1),s=Id.bind(null,Ge,!1,u.queue),u=$t(),c={state:t,dispatch:null,action:e,pending:null},u.queue=c,n=$m.bind(null,Ge,c,s,n),c.dispatch=n,u.memoizedState=e,[t,n,!1]}function Vd(e){var t=ut();return pv(t,Dt,e)}function pv(e,t,n){if(t=fa(e,t,Jm)[0],e=ra(ft)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=mc(t)}catch(h){throw h===Hp?cg:h}else u=t;t=ut();var c=t.queue,s=c.dispatch;return n!==t.memoizedState&&(Ge.flags|=2048,_i(Fi|Yl,vo(),hl.bind(null,c,n),null)),[u,s,e]}function hl(e,t){e.action=t}function Gs(e){var t=ut(),n=Dt;if(n!==null)return pv(t,n,e);ut(),t=t.memoizedState,n=ut();var u=n.queue.dispatch;return n.memoizedState=e,[t,u,!1]}function _i(e,t,n,u){return e={tag:e,create:n,deps:u,inst:t,next:null},t=Ge.updateQueue,t===null&&(t=qd(),Ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(u=n.next,n.next=e,e.next=u,t.lastEffect=e),e}function vo(){return{destroy:void 0,resource:void 0}}function gf(e){var t=$t();return e={current:e},t.memoizedState=e}function da(e,t,n,u){var c=$t();u=u===void 0?null:u,Ge.flags|=e,c.memoizedState=_i(Fi|t,vo(),n,u)}function ml(e,t,n,u){var c=ut();u=u===void 0?null:u;var s=c.memoizedState.inst;Dt!==null&&u!==null&&ho(u,Dt.memoizedState.deps)?c.memoizedState=_i(t,s,n,u):(Ge.flags|=e,c.memoizedState=_i(Fi|t,s,n,u))}function Gd(e,t){(Ge.mode&qu)!==Lt&&(Ge.mode&Kb)===Lt?da(276826112,Yl,e,t):da(8390656,Yl,e,t)}function Xd(e,t){var n=4194308;return(Ge.mode&qu)!==Lt&&(n|=134217728),da(n,sn,e,t)}function vv(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function jd(e,t,n){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!=null?n.concat([e]):null;var u=4194308;(Ge.mode&qu)!==Lt&&(u|=134217728),da(u,sn,vv.bind(null,t,e),n)}function Ci(e,t,n){typeof t!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),n=n!=null?n.concat([e]):null,ml(4,sn,vv.bind(null,t,e),n)}function yf(e,t){return $t().memoizedState=[e,t===void 0?null:t],e}function vc(e,t){var n=ut();t=t===void 0?null:t;var u=n.memoizedState;return t!==null&&ho(t,u[1])?u[0]:(n.memoizedState=[e,t],e)}function Qd(e,t){var n=$t();t=t===void 0?null:t;var u=e();if(bd){$e(!0);try{e()}finally{$e(!1)}}return n.memoizedState=[u,t],u}function go(e,t){var n=ut();t=t===void 0?null:t;var u=n.memoizedState;if(t!==null&&ho(t,u[1]))return u[0];if(u=e(),bd){$e(!0);try{e()}finally{$e(!1)}}return n.memoizedState=[u,t],u}function Zd(e,t){var n=$t();return Jd(n,e,t)}function bf(e,t){var n=ut();return Sf(n,Dt.memoizedState,e,t)}function $d(e,t){var n=ut();return Dt===null?Jd(n,e,t):Sf(n,Dt.memoizedState,e,t)}function Jd(e,t,n){return n===void 0||(Cr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Av(),Ge.lanes|=e,Rr|=e,n)}function Sf(e,t,n,u){return Kn(n,t)?n:Tm.current!==null?(e=Jd(e,n,u),Kn(e,t)||(Il=!0),e):(Cr&42)===0?(Il=!0,e.memoizedState=n):(e=Av(),Ge.lanes|=e,Rr|=e,t)}function Km(e,t,n,u,c){var s=Ne.p;Ne.p=s!==0&&s<Wa?s:Wa;var h=G.T,p={};G.T=p,Id(e,!1,t,n),p._updatedFibers=new Set;try{var b=c(),S=G.S;if(S!==null&&S(p,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var N=cf(b,u);Eu(e,t,N,En(e))}else Eu(e,t,u,En(e))}catch(Q){Eu(e,t,{then:function(){},status:"rejected",reason:Q},En(e))}finally{Ne.p=s,G.T=h,h===null&&p._updatedFibers&&(e=p._updatedFibers.size,p._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function gc(e,t,n,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var c=Wm(e).queue;Km(e,c,t,zd,n===null?ee:function(){return Im(e),n(u)})}function Wm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:zd,baseState:zd,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:zd},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ft,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Im(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Wm(e).next.queue;Eu(e,t,{},En(e))}function Ai(){var e=mf(!1);return e=Km.bind(null,Ge,e.queue,!0,!1),$t().memoizedState=e,[!1,e]}function Kd(){var e=ra(ft)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:mc(e),t]}function Wd(){var e=pc(ft)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:mc(e),t]}function Sn(){return Et(Pp)}function Mi(){var e=$t(),t=Ut.identifierPrefix;if(mt){var n=jc,u=Xc;n=(u&~(1<<32-Kl(u)-1)).toString(32)+n,t="«"+t+"R"+n,n=dg++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Q2++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t}function yc(){return $t().memoizedState=Fm.bind(null,Ge)}function Fm(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var u=En(n);e=Vn(u);var c=ze(n,e,u);c!==null&&(Kt(c,n,u),fo(c,n,u)),n=ro(),t!=null&&c!==null&&console.error("The seed argument is not enabled outside experimental channels."),e.payload={cache:n};return}n=n.return}}function Pm(e,t,n){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=En(e);var c={lane:u,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};Tf(e)?bc(t,c):(c=ms(e,t,c,u),c!==null&&(Kt(c,e,u),xf(c,t,u))),Un(e,u)}function Xs(e,t,n){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=En(e),Eu(e,t,n,u),Un(e,u)}function Eu(e,t,n,u){var c={lane:u,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tf(e))bc(t,c);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null)){var h=G.H;G.H=Vu;try{var p=t.lastRenderedState,b=s(p,n);if(c.hasEagerState=!0,c.eagerState=b,Kn(b,p))return uc(e,t,c,0),Ut===null&&io(),!1}catch{}finally{G.H=h}}if(n=ms(e,t,c,u),n!==null)return Kt(n,e,u),xf(n,t,u),!0}return!1}function Id(e,t,n,u){if(G.T===null&&vd===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:z0(),action:u,hasEagerState:!1,eagerState:null,next:null},Tf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=ms(e,n,u,2),t!==null&&Kt(t,e,2);Un(e,2)}function Tf(e){var t=e.alternate;return e===Ge||t!==null&&t===Ge}function bc(e,t){Em=fg=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xf(e,t,n){if((n&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,zt(e,n)}}function Cl(e){var t=Fe;return e!=null&&(Fe=t===null?e:t.concat(e)),t}function js(e,t,n){for(var u=Object.keys(e.props),c=0;c<u.length;c++){var s=u[c];if(s!=="children"&&s!=="key"){t===null&&(t=co(e,n.mode,0),t._debugInfo=Fe,t.return=n),ye(t,function(h){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h)},s);break}}}function Qs(e){var t=Np;return Np+=1,_m===null&&(_m=Ds()),ln(_m,e,t)}function ha(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xe(e,t){throw t.$$typeof===Ff?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
913
|
-
- Multiple copies of the "react" package is used.
|
|
914
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
915
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function gt(e,t){var n=me(e)||"Component";R1[n]||(R1[n]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
916
|
-
root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
917
|
-
<%s>{%s}</%s>`,t,t,n,t,n))}function Xt(e,t){var n=me(e)||"Component";D1[n]||(D1[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
918
|
-
root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
|
|
919
|
-
<%s>%s</%s>`,n,t,n))}function Ef(e){function t(_,C){if(e){var R=_.deletions;R===null?(_.deletions=[C],_.flags|=16):R.push(C)}}function n(_,C){if(!e)return null;for(;C!==null;)t(_,C),C=C.sibling;return null}function u(_){for(var C=new Map;_!==null;)_.key!==null?C.set(_.key,_):C.set(_.index,_),_=_.sibling;return C}function c(_,C){return _=Nn(_,C),_.index=0,_.sibling=null,_}function s(_,C,R){return _.index=R,e?(R=_.alternate,R!==null?(R=R.index,R<C?(_.flags|=67108866,C):R):(_.flags|=67108866,C)):(_.flags|=1048576,C)}function h(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function p(_,C,R,J){return C===null||C.tag!==6?(C=ka(R,_.mode,J),C.return=_,C._debugOwner=_,C._debugTask=_._debugTask,C._debugInfo=Fe,C):(C=c(C,R),C.return=_,C._debugInfo=Fe,C)}function b(_,C,R,J){var se=R.type;return se===je?(C=N(_,C,R.props.children,J,R.key),js(R,C,_),C):C!==null&&(C.elementType===se||nf(C,R)||typeof se=="object"&&se!==null&&se.$$typeof===$n&&Ar(se)===C.type)?(C=c(C,R.props),ha(C,R),C.return=_,C._debugOwner=R._owner,C._debugInfo=Fe,C):(C=co(R,_.mode,J),ha(C,R),C.return=_,C._debugInfo=Fe,C)}function S(_,C,R,J){return C===null||C.tag!==4||C.stateNode.containerInfo!==R.containerInfo||C.stateNode.implementation!==R.implementation?(C=ys(R,_.mode,J),C.return=_,C._debugInfo=Fe,C):(C=c(C,R.children||[]),C.return=_,C._debugInfo=Fe,C)}function N(_,C,R,J,se){return C===null||C.tag!==7?(C=Ba(R,_.mode,J,se),C.return=_,C._debugOwner=_,C._debugTask=_._debugTask,C._debugInfo=Fe,C):(C=c(C,R),C.return=_,C._debugInfo=Fe,C)}function Q(_,C,R){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=ka(""+C,_.mode,R),C.return=_,C._debugOwner=_,C._debugTask=_._debugTask,C._debugInfo=Fe,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case zo:return R=co(C,_.mode,R),ha(R,C),R.return=_,_=Cl(C._debugInfo),R._debugInfo=Fe,Fe=_,R;case Lc:return C=ys(C,_.mode,R),C.return=_,C._debugInfo=Fe,C;case $n:var J=Cl(C._debugInfo);return C=Ar(C),_=Q(_,C,R),Fe=J,_}if(Ve(C)||qe(C))return R=Ba(C,_.mode,R,null),R.return=_,R._debugOwner=_,R._debugTask=_._debugTask,_=Cl(C._debugInfo),R._debugInfo=Fe,Fe=_,R;if(typeof C.then=="function")return J=Cl(C._debugInfo),_=Q(_,Qs(C),R),Fe=J,_;if(C.$$typeof===ya)return Q(_,so(_,C),R);Xe(_,C)}return typeof C=="function"&>(_,C),typeof C=="symbol"&&Xt(_,C),null}function B(_,C,R,J){var se=C!==null?C.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return se!==null?null:p(_,C,""+R,J);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case zo:return R.key===se?(se=Cl(R._debugInfo),_=b(_,C,R,J),Fe=se,_):null;case Lc:return R.key===se?S(_,C,R,J):null;case $n:return se=Cl(R._debugInfo),R=Ar(R),_=B(_,C,R,J),Fe=se,_}if(Ve(R)||qe(R))return se!==null?null:(se=Cl(R._debugInfo),_=N(_,C,R,J,null),Fe=se,_);if(typeof R.then=="function")return se=Cl(R._debugInfo),_=B(_,C,Qs(R),J),Fe=se,_;if(R.$$typeof===ya)return B(_,C,so(_,R),J);Xe(_,R)}return typeof R=="function"&>(_,R),typeof R=="symbol"&&Xt(_,R),null}function $(_,C,R,J,se){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return _=_.get(R)||null,p(C,_,""+J,se);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case zo:return R=_.get(J.key===null?R:J.key)||null,_=Cl(J._debugInfo),C=b(C,R,J,se),Fe=_,C;case Lc:return _=_.get(J.key===null?R:J.key)||null,S(C,_,J,se);case $n:var Qe=Cl(J._debugInfo);return J=Ar(J),C=$(_,C,R,J,se),Fe=Qe,C}if(Ve(J)||qe(J))return R=_.get(R)||null,_=Cl(J._debugInfo),C=N(C,R,J,se,null),Fe=_,C;if(typeof J.then=="function")return Qe=Cl(J._debugInfo),C=$(_,C,R,Qs(J),se),Fe=Qe,C;if(J.$$typeof===ya)return $(_,C,R,so(C,J),se);Xe(C,J)}return typeof J=="function"&>(C,J),typeof J=="symbol"&&Xt(C,J),null}function Se(_,C,R,J){if(typeof R!="object"||R===null)return J;switch(R.$$typeof){case zo:case Lc:X(_,C,R);var se=R.key;if(typeof se!="string")break;if(J===null){J=new Set,J.add(se);break}if(!J.has(se)){J.add(se);break}ye(C,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",se)});break;case $n:R=Ar(R),Se(_,C,R,J)}return J}function Le(_,C,R,J){for(var se=null,Qe=null,Te=null,Ze=C,Je=C=0,qt=null;Ze!==null&&Je<R.length;Je++){Ze.index>Je?(qt=Ze,Ze=null):qt=Ze.sibling;var yl=B(_,Ze,R[Je],J);if(yl===null){Ze===null&&(Ze=qt);break}se=Se(_,yl,R[Je],se),e&&Ze&&yl.alternate===null&&t(_,Ze),C=s(yl,C,Je),Te===null?Qe=yl:Te.sibling=yl,Te=yl,Ze=qt}if(Je===R.length)return n(_,Ze),mt&&pi(_,Je),Qe;if(Ze===null){for(;Je<R.length;Je++)Ze=Q(_,R[Je],J),Ze!==null&&(se=Se(_,Ze,R[Je],se),C=s(Ze,C,Je),Te===null?Qe=Ze:Te.sibling=Ze,Te=Ze);return mt&&pi(_,Je),Qe}for(Ze=u(Ze);Je<R.length;Je++)qt=$(Ze,_,Je,R[Je],J),qt!==null&&(se=Se(_,qt,R[Je],se),e&&qt.alternate!==null&&Ze.delete(qt.key===null?Je:qt.key),C=s(qt,C,Je),Te===null?Qe=qt:Te.sibling=qt,Te=qt);return e&&Ze.forEach(function(Pc){return t(_,Pc)}),mt&&pi(_,Je),Qe}function Ht(_,C,R,J){if(R==null)throw Error("An iterable object provided no iterator.");for(var se=null,Qe=null,Te=C,Ze=C=0,Je=null,qt=null,yl=R.next();Te!==null&&!yl.done;Ze++,yl=R.next()){Te.index>Ze?(Je=Te,Te=null):Je=Te.sibling;var Pc=B(_,Te,yl.value,J);if(Pc===null){Te===null&&(Te=Je);break}qt=Se(_,Pc,yl.value,qt),e&&Te&&Pc.alternate===null&&t(_,Te),C=s(Pc,C,Ze),Qe===null?se=Pc:Qe.sibling=Pc,Qe=Pc,Te=Je}if(yl.done)return n(_,Te),mt&&pi(_,Ze),se;if(Te===null){for(;!yl.done;Ze++,yl=R.next())Te=Q(_,yl.value,J),Te!==null&&(qt=Se(_,Te,yl.value,qt),C=s(Te,C,Ze),Qe===null?se=Te:Qe.sibling=Te,Qe=Te);return mt&&pi(_,Ze),se}for(Te=u(Te);!yl.done;Ze++,yl=R.next())Je=$(Te,_,Ze,yl.value,J),Je!==null&&(qt=Se(_,Je,yl.value,qt),e&&Je.alternate!==null&&Te.delete(Je.key===null?Ze:Je.key),C=s(Je,C,Ze),Qe===null?se=Je:Qe.sibling=Je,Qe=Je);return e&&Te.forEach(function(yT){return t(_,yT)}),mt&&pi(_,Ze),se}function ot(_,C,R,J){if(typeof R=="object"&&R!==null&&R.type===je&&R.key===null&&(js(R,null,_),R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case zo:var se=Cl(R._debugInfo);e:{for(var Qe=R.key;C!==null;){if(C.key===Qe){if(Qe=R.type,Qe===je){if(C.tag===7){n(_,C.sibling),J=c(C,R.props.children),J.return=_,J._debugOwner=R._owner,J._debugInfo=Fe,js(R,J,_),_=J;break e}}else if(C.elementType===Qe||nf(C,R)||typeof Qe=="object"&&Qe!==null&&Qe.$$typeof===$n&&Ar(Qe)===C.type){n(_,C.sibling),J=c(C,R.props),ha(J,R),J.return=_,J._debugOwner=R._owner,J._debugInfo=Fe,_=J;break e}n(_,C);break}else t(_,C);C=C.sibling}R.type===je?(J=Ba(R.props.children,_.mode,J,R.key),J.return=_,J._debugOwner=_,J._debugTask=_._debugTask,J._debugInfo=Fe,js(R,J,_),_=J):(J=co(R,_.mode,J),ha(J,R),J.return=_,J._debugInfo=Fe,_=J)}return _=h(_),Fe=se,_;case Lc:e:{for(se=R,R=se.key;C!==null;){if(C.key===R)if(C.tag===4&&C.stateNode.containerInfo===se.containerInfo&&C.stateNode.implementation===se.implementation){n(_,C.sibling),J=c(C,se.children||[]),J.return=_,_=J;break e}else{n(_,C);break}else t(_,C);C=C.sibling}J=ys(se,_.mode,J),J.return=_,_=J}return h(_);case $n:return se=Cl(R._debugInfo),R=Ar(R),_=ot(_,C,R,J),Fe=se,_}if(Ve(R))return se=Cl(R._debugInfo),_=Le(_,C,R,J),Fe=se,_;if(qe(R)){if(se=Cl(R._debugInfo),Qe=qe(R),typeof Qe!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Te=Qe.call(R);return Te===R?(_.tag!==0||Object.prototype.toString.call(_.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Te)!=="[object Generator]")&&(A1||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),A1=!0):R.entries!==Qe||Ry||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ry=!0),_=Ht(_,C,Te,J),Fe=se,_}if(typeof R.then=="function")return se=Cl(R._debugInfo),_=ot(_,C,Qs(R),J),Fe=se,_;if(R.$$typeof===ya)return ot(_,C,so(_,R),J);Xe(_,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(se=""+R,C!==null&&C.tag===6?(n(_,C.sibling),J=c(C,se),J.return=_,_=J):(n(_,C),J=ka(se,_.mode,J),J.return=_,J._debugOwner=_,J._debugTask=_._debugTask,J._debugInfo=Fe,_=J),h(_)):(typeof R=="function"&>(_,R),typeof R=="symbol"&&Xt(_,R),n(_,C))}return function(_,C,R,J){var se=Fe;Fe=null;try{Np=0;var Qe=ot(_,C,R,J);return _m=null,Qe}catch(qt){if(qt===Hp||qt===cg)throw qt;var Te=V(29,qt,null,_.mode);Te.lanes=J,Te.return=_;var Ze=Te._debugInfo=Fe;if(Te._debugOwner=_._debugOwner,Te._debugTask=_._debugTask,Ze!=null){for(var Je=Ze.length-1;0<=Je;Je--)if(typeof Ze[Je].stack=="string"){Te._debugOwner=Ze[Je],Te._debugTask=Ze[Je].debugTask;break}}return Te}finally{Fe=se}}}function Gn(e){var t=e.alternate;Ee(Vl,Vl.current&Am,e),Ee(eu,e,e),Vo===null&&(t===null||Tm.current!==null||t.memoizedState!==null)&&(Vo=e)}function yo(e){if(e.tag===22){if(Ee(Vl,Vl.current,e),Ee(eu,e,e),Vo===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Vo=e)}}else Qa(e)}function Qa(e){Ee(Vl,Vl.current,e),Ee(eu,eu.current,e)}function Xn(e){Re(eu,e),Vo===e&&(Vo=null),Re(Vl,e)}function _u(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===Wc||Yi(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function e0(e){if(e!==null&&typeof e!="function"){var t=String(e);V1.has(t)||(V1.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function jt(e,t,n,u){var c=e.memoizedState,s=n(u,c);if(e.mode&zn){$e(!0);try{s=n(u,c)}finally{$e(!1)}}s===void 0&&(t=Oe(t)||"Component",N1.has(t)||(N1.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),c=s==null?c:Ke({},c,s),e.memoizedState=c,e.lanes===0&&(e.updateQueue.baseState=c)}function Fd(e,t,n,u,c,s,h){var p=e.stateNode;if(typeof p.shouldComponentUpdate=="function"){if(n=p.shouldComponentUpdate(u,s,h),e.mode&zn){$e(!0);try{n=p.shouldComponentUpdate(u,s,h)}finally{$e(!1)}}return n===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Oe(t)||"Component"),n}return t.prototype&&t.prototype.isPureReactComponent?!ao(n,u)||!ao(c,s):!0}function Pd(e,t,n,u){var c=t.state;typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,u),t.state!==c&&(e=me(e)||"Component",U1.has(e)||(U1.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Dy.enqueueReplaceState(t,t.state,null))}function bo(e,t){var n=t;if("ref"in t){n={};for(var u in t)u!=="ref"&&(n[u]=t[u])}if(e=e.defaultProps){n===t&&(n=Ke({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}function t0(e){zy(e),console.warn(`%s
|
|
920
|
-
|
|
921
|
-
%s
|
|
922
|
-
`,Mm?"An error occurred in the <"+Mm+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
923
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function gv(e){var t=Mm?"The above error occurred in the <"+Mm+"> component.":"The above error occurred in one of your React components.",n="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Oy||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var u=e.environmentName;e=[`%o
|
|
924
|
-
|
|
925
|
-
%s
|
|
926
|
-
|
|
927
|
-
%s
|
|
928
|
-
`,e,t,n].slice(0),typeof e[0]=="string"?e.splice(0,1,bS+e[0],SS,Ug+u+Ug,TS):e.splice(0,0,bS,SS,Ug+u+Ug,TS),e.unshift(console),u=vT.apply(console.error,e),u()}else console.error(`%o
|
|
929
|
-
|
|
930
|
-
%s
|
|
931
|
-
|
|
932
|
-
%s
|
|
933
|
-
`,e,t,n)}function eh(e){zy(e)}function Zs(e,t){try{Mm=t.source?me(t.source):null,Oy=null;var n=t.value;if(G.actQueue!==null)G.thrownErrors.push(n);else{var u=e.onUncaughtError;u(n,{componentStack:t.stack})}}catch(c){setTimeout(function(){throw c})}}function th(e,t,n){try{Mm=n.source?me(n.source):null,Oy=me(t);var u=e.onCaughtError;u(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Zl(e,t,n){return n=Vn(n),n.tag=Sy,n.payload={element:null},n.callback=function(){ye(t.source,Zs,e,t)},n}function Jt(e){return e=Vn(e),e.tag=Sy,e}function _f(e,t,n,u){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var s=u.value;e.payload=function(){return c(s)},e.callback=function(){af(n),ye(u.source,th,t,n,u)}}var h=n.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){af(n),ye(u.source,th,t,n,u),typeof c!="function"&&(zr===null?zr=new Set([this]):zr.add(this)),$2(this,u),typeof c=="function"||(n.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",me(n)||"Unknown")})}function Cf(e,t,n,u,c){if(n.flags|=32768,el&&er(e,c),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=n.alternate,t!==null&&ol(t,n,c,!0),mt&&(Qc=!0),n=eu.current,n!==null){switch(n.tag){case 13:return Vo===null?Th():n.alternate===null&&rl===Kc&&(rl=By),n.flags&=-257,n.flags|=65536,n.lanes=c,u===by?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([u]):t.add(u),A0(e,u,c)),!1;case 22:return n.flags|=65536,u===by?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([u]):n.add(u)),A0(e,u,c)),!1}throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}return A0(e,u,c),Th(),!1}if(mt)return Qc=!0,t=eu.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,u!==py&&gu(jl(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),n))):(u!==py&&gu(jl(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),n)),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,u=jl(u,n),c=Zl(e.stateNode,u,c),Us(e,c),rl!==Sd&&(rl=Om)),!1;var s=jl(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),n);if(Qp===null?Qp=[s]:Qp.push(s),rl!==Sd&&(rl=Om),t===null)return!0;u=jl(u,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Zl(n.stateNode,u,e),Us(n,e),!1;case 1:if(t=n.type,s=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(zr===null||!zr.has(s))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Jt(c),_f(c,e,n,u),Us(n,c),!1}n=n.return}while(n!==null);return!1}function cl(e,t,n,u){t.child=e===null?z1(t,null,n,u):Cm(t,e.child,n,u)}function lh(e,t,n,u,c){n=n.render;var s=t.ref;if("ref"in u){var h={};for(var p in u)p!=="ref"&&(h[p]=u[p])}else h=u;return qa(t),Vt(t),u=mo(e,t,n,h,s,c),p=bn(),bl(),e!==null&&!Il?(bu(e,t,c),Di(e,t,c)):(mt&&p&&sc(t),t.flags|=1,cl(e,t,u,c),t.child)}function Ri(e,t,n,u,c){if(e===null){var s=n.type;return typeof s=="function"&&!vs(s)&&s.defaultProps===void 0&&n.compare===null?(n=mi(s),t.tag=15,t.type=n,uh(t,s),Af(e,t,n,u,c)):(e=cc(n.type,null,u,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!dh(e,c)){var h=s.memoizedProps;if(n=n.compare,n=n!==null?n:ao,n(h,u)&&e.ref===t.ref)return Di(e,t,c)}return t.flags|=1,e=Nn(s,u),e.ref=t.ref,e.return=t,t.child=e}function Af(e,t,n,u,c){if(e!==null){var s=e.memoizedProps;if(ao(s,u)&&e.ref===t.ref&&t.type===e.type)if(Il=!1,t.pendingProps=u=s,dh(e,c))(e.flags&131072)!==0&&(Il=!0);else return t.lanes=e.lanes,Di(e,t,c)}return ih(e,t,n,u,c)}function nh(e,t,n){var u=t.pendingProps,c=u.children,s=e!==null?e.memoizedState:null;if(u.mode==="hidden"){if((t.flags&128)!==0){if(u=s!==null?s.baseLanes|n:n,e!==null){for(c=t.child=e.child,s=0;c!==null;)s=s|c.lanes|c.childLanes,c=c.sibling;t.childLanes=s&~u}else t.childLanes=0,t.child=null;return ah(e,t,u,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&hc(t,s!==null?s.cachePool:null),s!==null?yn(t,s):ff(t),yo(t);else return t.lanes=t.childLanes=536870912,ah(e,t,s!==null?s.baseLanes|n:n,n)}else s!==null?(hc(t,s.cachePool),yn(t,s),Qa(t),t.memoizedState=null):(e!==null&&hc(t,null),ff(t),Qa(t));return cl(e,t,c,n),t.child}function ah(e,t,n,u){var c=Rs();return c=c===null?null:{parent:ql._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&hc(t,null),ff(t),yo(t),e!==null&&ol(e,t,u,!0),null}function Mf(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ih(e,t,n,u,c){if(n.prototype&&typeof n.prototype.render=="function"){var s=Oe(n)||"Unknown";X1[s]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",s,s),X1[s]=!0)}return t.mode&zn&&Yu.recordLegacyContextWarning(t,null),e===null&&(uh(t,t.type),n.contextTypes&&(s=Oe(n)||"Unknown",Q1[s]||(Q1[s]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",s)))),qa(t),Vt(t),n=mo(e,t,n,u,void 0,c),u=bn(),bl(),e!==null&&!Il?(bu(e,t,c),Di(e,t,c)):(mt&&u&&sc(t),t.flags|=1,cl(e,t,n,c),t.child)}function l0(e,t,n,u,c,s){return qa(t),Vt(t),$c=-1,kp=e!==null&&e.type!==t.type,t.updateQueue=null,n=ks(t,u,n,c),df(e,t),u=bn(),bl(),e!==null&&!Il?(bu(e,t,s),Di(e,t,s)):(mt&&u&&sc(t),t.flags|=1,cl(e,t,n,s),t.child)}function n0(e,t,n,u,c){switch(w(t)){case!1:var s=t.stateNode,h=new t.type(t.memoizedProps,s.context).state;s.updater.enqueueSetState(s,h,null);break;case!0:t.flags|=128,t.flags|=65536,s=Error("Simulated error coming from DevTools");var p=c&-c;if(t.lanes|=p,h=Ut,h===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");p=Jt(p),_f(p,h,t,jl(s,t)),Us(t,p)}if(qa(t),t.stateNode===null){if(h=Er,s=n.contextType,"contextType"in n&&s!==null&&(s===void 0||s.$$typeof!==ya)&&!Y1.has(n)&&(Y1.add(n),p=s===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof s!="object"?" However, it is set to a "+typeof s+".":s.$$typeof===Jh?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Oe(n)||"Component",p)),typeof s=="object"&&s!==null&&(h=Et(s)),s=new n(u,h),t.mode&zn){$e(!0);try{s=new n(u,h)}finally{$e(!1)}}if(h=t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Dy,t.stateNode=s,s._reactInternals=t,s._reactInternalInstance=O1,typeof n.getDerivedStateFromProps=="function"&&h===null&&(h=Oe(n)||"Component",H1.has(h)||(H1.add(h),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",h,s.state===null?"null":"undefined",h))),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"){var b=p=h=null;if(typeof s.componentWillMount=="function"&&s.componentWillMount.__suppressDeprecationWarning!==!0?h="componentWillMount":typeof s.UNSAFE_componentWillMount=="function"&&(h="UNSAFE_componentWillMount"),typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==!0?p="componentWillReceiveProps":typeof s.UNSAFE_componentWillReceiveProps=="function"&&(p="UNSAFE_componentWillReceiveProps"),typeof s.componentWillUpdate=="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==!0?b="componentWillUpdate":typeof s.UNSAFE_componentWillUpdate=="function"&&(b="UNSAFE_componentWillUpdate"),h!==null||p!==null||b!==null){s=Oe(n)||"Component";var S=typeof n.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";B1.has(s)||(B1.add(s),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
934
|
-
|
|
935
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
936
|
-
|
|
937
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
938
|
-
https://react.dev/link/unsafe-component-lifecycles`,s,S,h!==null?`
|
|
939
|
-
`+h:"",p!==null?`
|
|
940
|
-
`+p:"",b!==null?`
|
|
941
|
-
`+b:""))}}s=t.stateNode,h=Oe(n)||"Component",s.render||(n.prototype&&typeof n.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",h):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",h)),!s.getInitialState||s.getInitialState.isReactClassApproved||s.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",h),s.getDefaultProps&&!s.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",h),s.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",h),n.childContextTypes&&!q1.has(n)&&(q1.add(n),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",h)),n.contextTypes&&!L1.has(n)&&(L1.add(n),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",h)),typeof s.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",h),n.prototype&&n.prototype.isPureReactComponent&&typeof s.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Oe(n)||"A pure component"),typeof s.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",h),typeof s.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",h),typeof s.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",h),typeof s.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",h),p=s.props!==u,s.props!==void 0&&p&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",h),s.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",h,h),typeof s.getSnapshotBeforeUpdate!="function"||typeof s.componentDidUpdate=="function"||w1.has(n)||(w1.add(n),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Oe(n))),typeof s.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof s.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",h),typeof n.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",h),(p=s.state)&&(typeof p!="object"||Ve(p))&&console.error("%s.state: must be set to an object or null",h),typeof s.getChildContext=="function"&&typeof n.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",h),s=t.stateNode,s.props=u,s.state=t.memoizedState,s.refs={},Ul(t),h=n.contextType,s.context=typeof h=="object"&&h!==null?Et(h):Er,s.state===u&&(h=Oe(n)||"Component",k1.has(h)||(k1.add(h),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",h))),t.mode&zn&&Yu.recordLegacyContextWarning(t,s),Yu.recordUnsafeLifecycleWarnings(t,s),s.state=t.memoizedState,h=n.getDerivedStateFromProps,typeof h=="function"&&(jt(t,n,h,u),s.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(h=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),h!==s.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",me(t)||"Component"),Dy.enqueueReplaceState(s,s.state,null)),Hs(t,u,s,c),Ti(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&qu)!==Lt&&(t.flags|=134217728),s=!0}else if(e===null){s=t.stateNode;var N=t.memoizedProps;p=bo(n,N),s.props=p;var Q=s.context;b=n.contextType,h=Er,typeof b=="object"&&b!==null&&(h=Et(b)),S=n.getDerivedStateFromProps,b=typeof S=="function"||typeof s.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,b||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(N||Q!==h)&&Pd(t,s,u,h),_r=!1;var B=t.memoizedState;s.state=B,Hs(t,u,s,c),Ti(),Q=t.memoizedState,N||B!==Q||_r?(typeof S=="function"&&(jt(t,n,S,u),Q=t.memoizedState),(p=_r||Fd(t,n,p,u,B,Q,h))?(b||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&qu)!==Lt&&(t.flags|=134217728)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&qu)!==Lt&&(t.flags|=134217728),t.memoizedProps=u,t.memoizedState=Q),s.props=u,s.state=Q,s.context=h,s=p):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),(t.mode&qu)!==Lt&&(t.flags|=134217728),s=!1)}else{s=t.stateNode,Va(e,t),h=t.memoizedProps,b=bo(n,h),s.props=b,S=t.pendingProps,B=s.context,Q=n.contextType,p=Er,typeof Q=="object"&&Q!==null&&(p=Et(Q)),N=n.getDerivedStateFromProps,(Q=typeof N=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h!==S||B!==p)&&Pd(t,s,u,p),_r=!1,B=t.memoizedState,s.state=B,Hs(t,u,s,c),Ti();var $=t.memoizedState;h!==S||B!==$||_r||e!==null&&e.dependencies!==null&&La(e.dependencies)?(typeof N=="function"&&(jt(t,n,N,u),$=t.memoizedState),(b=_r||Fd(t,n,b,u,B,$,p)||e!==null&&e.dependencies!==null&&La(e.dependencies))?(Q||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(u,$,p),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(u,$,p)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=$),s.props=u,s.state=$,s.context=p,s=b):(typeof s.componentDidUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),s=!1)}if(p=s,Mf(e,t),h=(t.flags&128)!==0,p||h){if(p=t.stateNode,Ju(t),h&&typeof n.getDerivedStateFromError!="function")n=null,Ta=-1;else{if(Vt(t),n=v1(p),t.mode&zn){$e(!0);try{v1(p)}finally{$e(!1)}}bl()}t.flags|=1,e!==null&&h?(t.child=Cm(t,e.child,null,c),t.child=Cm(t,null,n,c)):cl(e,t,n,c),t.memoizedState=p.state,e=t.child}else e=Di(e,t,c);return c=t.stateNode,s&&c.props!==u&&(Rm||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",me(t)||"a component"),Rm=!0),e}function a0(e,t,n,u){return gi(),t.flags|=256,cl(e,t,n,u),t.child}function uh(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
942
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps=="function"&&(e=Oe(t)||"Unknown",Z1[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),Z1[e]=!0)),typeof t.contextType=="object"&&t.contextType!==null&&(t=Oe(t)||"Unknown",j1[t]||(console.error("%s: Function components do not support contextType.",t),j1[t]=!0))}function Rf(e){return{baseLanes:e,cachePool:sf()}}function oh(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Pa),e}function yv(e,t,n){var u,c=t.pendingProps;A(t)&&(t.flags|=128);var s=!1,h=(t.flags&128)!==0;if((u=h)||(u=e!==null&&e.memoizedState===null?!1:(Vl.current&Lp)!==0),u&&(s=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(mt){if(s?Gn(t):Qa(t),mt){var p=sl,b;if(!(b=!p)){e:{var S=p;for(b=qo;S.nodeType!==8;){if(!b){b=null;break e}if(S=kl(S.nextSibling),S===null){b=null;break e}}b=S}b!==null?(mn(),t.memoizedState={dehydrated:b,treeContext:hd!==null?{id:Xc,overflow:jc}:null,retryLane:536870912,hydrationErrors:null},S=V(18,null,null,Lt),S.stateNode=b,S.return=t,t.child=S,Wn=t,sl=null,b=!0):b=!1,b=!b}b&&(bs(t,p),Ln(t))}if(p=t.memoizedState,p!==null&&(p=p.dehydrated,p!==null))return Yi(p)?t.lanes=32:t.lanes=536870912,null;Xn(t)}return p=c.children,c=c.fallback,s?(Qa(t),s=t.mode,p=Df({mode:"hidden",children:p},s),c=Ba(c,s,n,null),p.return=t,c.return=t,p.sibling=c,t.child=p,s=t.child,s.memoizedState=Rf(n),s.childLanes=oh(e,u,n),t.memoizedState=Hy,c):(Gn(t),ch(t,p))}var N=e.memoizedState;if(N!==null&&(p=N.dehydrated,p!==null)){if(h)t.flags&256?(Gn(t),t.flags&=-257,t=sh(e,t,n)):t.memoizedState!==null?(Qa(t),t.child=e.child,t.flags|=128,t=null):(Qa(t),s=c.fallback,p=t.mode,c=Df({mode:"visible",children:c.children},p),s=Ba(s,p,n,null),s.flags|=2,c.return=t,s.return=t,c.sibling=s,t.child=c,Cm(t,e.child,null,n),c=t.child,c.memoizedState=Rf(n),c.childLanes=oh(e,u,n),t.memoizedState=Hy,t=s);else if(Gn(t),mt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug."),Yi(p)){if(u=p.nextSibling&&p.nextSibling.dataset,u){b=u.dgst;var Q=u.msg;S=u.stck;var B=u.cstck}p=Q,u=b,c=S,b=s=B,s=Error(p||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),s.stack=c||"",s.digest=u,u=b===void 0?null:b,c={value:s,source:null,stack:u},typeof u=="string"&&dy.set(s,c),gu(c),t=sh(e,t,n)}else if(Il||ol(e,t,n,!1),u=(n&e.childLanes)!==0,Il||u){if(u=Ut,u!==null&&(c=n&-n,c=(c&42)!==0?1:Bt(c),c=(c&(u.suspendedLanes|n))!==0?0:c,c!==0&&c!==N.retryLane))throw N.retryLane=c,Ol(e,c),Kt(u,e,c),G1;p.data===Wc||Th(),t=sh(e,t,n)}else p.data===Wc?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,sl=kl(p.nextSibling),Wn=t,mt=!0,md=null,Qc=!1,Wi=null,qo=!1,e!==null&&(mn(),Ji[Ki++]=Xc,Ji[Ki++]=jc,Ji[Ki++]=hd,Xc=e.id,jc=e.overflow,hd=t),t=ch(t,c.children),t.flags|=4096);return t}return s?(Qa(t),s=c.fallback,p=t.mode,b=e.child,S=b.sibling,c=Nn(b,{mode:"hidden",children:c.children}),c.subtreeFlags=b.subtreeFlags&65011712,S!==null?s=Nn(S,s):(s=Ba(s,p,n,null),s.flags|=2),s.return=t,c.return=t,c.sibling=s,t.child=c,c=s,s=t.child,p=e.child.memoizedState,p===null?p=Rf(n):(b=p.cachePool,b!==null?(S=ql._currentValue,b=b.parent!==S?{parent:S,pool:S}:b):b=sf(),p={baseLanes:p.baseLanes|n,cachePool:b}),s.memoizedState=p,s.childLanes=oh(e,u,n),t.memoizedState=Hy,c):(Gn(t),n=e.child,e=n.sibling,n=Nn(n,{mode:"visible",children:c.children}),n.return=t,n.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=n,t.memoizedState=null,n)}function ch(e,t){return t=Df({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Df(e,t){return e=V(22,e,null,t),e.lanes=0,e.stateNode={_visibility:hy,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function sh(e,t,n){return Cm(t,e.child,null,n),e=ch(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rh(e,t,n){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),_s(e.return,t,n)}function i0(e,t){var n=Ve(e);return e=!n&&typeof qe(e)=="function",n||e?(n=n?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",n,t,n),!1):!0}function fh(e,t,n,u,c){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:n,tailMode:c}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=u,s.tail=n,s.tailMode=c)}function u0(e,t,n){var u=t.pendingProps,c=u.revealOrder,s=u.tail;if(u=u.children,c!==void 0&&c!=="forwards"&&c!=="backwards"&&c!=="together"&&!$1[c])if($1[c]=!0,typeof c=="string")switch(c.toLowerCase()){case"together":case"forwards":case"backwards":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',c,c.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',c,c.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',c)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',c);s===void 0||Uy[s]||(s!=="collapsed"&&s!=="hidden"?(Uy[s]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',s)):c!=="forwards"&&c!=="backwards"&&(Uy[s]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',s)));e:if((c==="forwards"||c==="backwards")&&u!==void 0&&u!==null&&u!==!1)if(Ve(u)){for(var h=0;h<u.length;h++)if(!i0(u[h],h))break e}else if(h=qe(u),typeof h=="function"){if(h=h.call(u))for(var p=h.next(),b=0;!p.done;p=h.next()){if(!i0(p.value,b))break e;b++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',c);if(cl(e,t,u,n),u=Vl.current,(u&Lp)!==0)u=u&Am|Lp,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rh(e,n,t);else if(e.tag===19)rh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=Am}switch(Ee(Vl,u,t),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&_u(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),fh(t,!1,c,n,s);break;case"backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&_u(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}fh(t,!0,n,null,s);break;case"together":fh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ta=-1,Rr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ol(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){for(e=t.child,n=Nn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dh(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&La(e)))}function $g(e,t,n){switch(t.tag){case 3:Mt(t,t.stateNode.containerInfo),Na(t,ql,e.memoizedState.cache),gi();break;case 27:case 5:I(t);break;case 4:Mt(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var u=t.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 13:if(u=t.memoizedState,u!==null)return u.dehydrated!==null?(Gn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?yv(e,t,n):(Gn(t),e=Di(e,t,n),e!==null?e.sibling:null);Gn(t);break;case 19:var c=(e.flags&128)!==0;if(u=(n&t.childLanes)!==0,u||(ol(e,t,n,!1),u=(n&t.childLanes)!==0),c){if(u)return u0(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Ee(Vl,Vl.current,t),u)break;return null;case 22:case 23:return t.lanes=0,nh(e,t,n);case 24:Na(t,ql,e.memoizedState.cache)}return Di(e,t,n)}function hh(e,t,n){if(t._debugNeedsRemount&&e!==null){n=cc(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var u=t.return;if(u===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===u.child)u.child=n;else{var c=u.child;if(c===null)throw Error("Expected parent to have a child.");for(;c.sibling!==t;)if(c=c.sibling,c===null)throw Error("Expected to find the previous sibling.");c.sibling=n}return t=u.deletions,t===null?(u.deletions=[e],u.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)Il=!0;else{if(!dh(e,n)&&(t.flags&128)===0)return Il=!1,$g(e,t,n);Il=(e.flags&131072)!==0}else Il=!1,(u=mt)&&(mn(),u=(t.flags&1048576)!==0),u&&(u=t.index,mn(),uf(t,lg,u));switch(t.lanes=0,t.tag){case 16:e:if(u=t.pendingProps,e=Ar(t.elementType),t.type=e,typeof e=="function")vs(e)?(u=bo(e,u),t.tag=1,t.type=e=mi(e),t=n0(null,t,e,u,n)):(t.tag=0,uh(t,e),t.type=e=mi(e),t=ih(null,t,e,u,n));else{if(e!=null){if(c=e.$$typeof,c===Uu){t.tag=11,t.type=e=ps(e),t=lh(null,t,e,u,n);break e}else if(c===Pf){t.tag=14,t=Ri(null,t,e,u,n);break e}}throw t="",e!==null&&typeof e=="object"&&e.$$typeof===$n&&(t=" Did you wrap a component in React.lazy() more than once?"),e=Oe(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+e+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return ih(e,t,t.type,t.pendingProps,n);case 1:return u=t.type,c=bo(u,t.pendingProps),n0(e,t,u,c,n);case 3:e:{if(Mt(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");u=t.pendingProps;var s=t.memoizedState;c=s.element,Va(e,t),Hs(t,u,null,n);var h=t.memoizedState;if(u=h.cache,Na(t,ql,u),u!==s.cache&&Cs(t,[ql],n,!0),Ti(),u=h.element,s.isDehydrated)if(s={element:u,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=a0(e,t,u,n);break e}else if(u!==c){c=jl(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),gu(c),t=a0(e,t,u,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(sl=kl(e.firstChild),Wn=t,mt=!0,md=null,Qc=!1,Wi=null,qo=!0,e=z1(t,null,u,n),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling}else{if(gi(),u===c){t=Di(e,t,n);break e}cl(e,t,u,n)}t=t.child}return t;case 26:return Mf(e,t),e===null?(e=Ou(t.type,null,t.pendingProps,null))?t.memoizedState=e:mt||(e=t.type,n=t.pendingProps,u=et(Gi.current),u=lt(u).createElement(e),u[Wl]=t,u[Rn]=n,It(u,e,n),tl(u),t.stateNode=u):t.memoizedState=Ou(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return I(t),e===null&&mt&&(u=et(Gi.current),c=D(),u=t.stateNode=Q0(t.type,t.pendingProps,u,c,!1),Qc||(c=Rt(u,t.type,t.pendingProps,c),c!==null&&(pn(t,0).serverProps=c)),Wn=t,qo=!0,c=sl,qi(t.type)?(lb=c,sl=kl(u.firstChild)):sl=c),cl(e,t,t.pendingProps.children,n),Mf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&mt&&(s=D(),u=Po(t.type,s.ancestorInfo),c=sl,(h=!c)||(h=Ao(c,t.type,t.pendingProps,qo),h!==null?(t.stateNode=h,Qc||(s=Rt(h,t.type,t.pendingProps,s),s!==null&&(pn(t,0).serverProps=s)),Wn=t,sl=kl(h.firstChild),qo=!1,s=!0):s=!1,h=!s),h&&(u&&bs(t,c),Ln(t))),I(t),c=t.type,s=t.pendingProps,h=e!==null?e.memoizedProps:null,u=s.children,Li(c,s)?u=null:h!==null&&Li(c,h)&&(t.flags|=32),t.memoizedState!==null&&(c=mo(e,t,sa,null,null,n),Pp._currentValue=c),Mf(e,t),cl(e,t,u,n),t.child;case 6:return e===null&&mt&&(e=t.pendingProps,n=D(),u=n.ancestorInfo.current,e=u!=null?eo(e,u.tag,n.ancestorInfo.implicitRootScope):!0,n=sl,(u=!n)||(u=Bl(n,t.pendingProps,qo),u!==null?(t.stateNode=u,Wn=t,sl=null,u=!0):u=!1,u=!u),u&&(e&&bs(t,n),Ln(t))),null;case 13:return yv(e,t,n);case 4:return Mt(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=Cm(t,null,u,n):cl(e,t,u,n),t.child;case 11:return lh(e,t,t.type,t.pendingProps,n);case 7:return cl(e,t,t.pendingProps,n),t.child;case 8:return cl(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,u=t.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,cl(e,t,t.pendingProps.children,n),t.child;case 10:return u=t.type,c=t.pendingProps,s=c.value,"value"in c||J1||(J1=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Na(t,u,s),cl(e,t,c.children,n),t.child;case 9:return c=t.type._context,u=t.pendingProps.children,typeof u!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),qa(t),c=Et(c),Vt(t),u=Ay(u,c,void 0),bl(),t.flags|=1,cl(e,t,u,n),t.child;case 14:return Ri(e,t,t.type,t.pendingProps,n);case 15:return Af(e,t,t.type,t.pendingProps,n);case 19:return u0(e,t,n);case 31:return u=t.pendingProps,n=t.mode,u={mode:u.mode,children:u.children},e===null?(e=Df(u,n),e.ref=t.ref,t.child=e,e.return=t,t=e):(e=Nn(e.child,u),e.ref=t.ref,t.child=e,e.return=t,t=e),t;case 22:return nh(e,t,n);case 24:return qa(t),u=Et(ql),e===null?(c=Rs(),c===null&&(c=Ut,s=ro(),c.pooledCache=s,yi(s),s!==null&&(c.pooledCacheLanes|=n),c=s),t.memoizedState={parent:u,cache:c},Ul(t),Na(t,ql,c)):((e.lanes&n)!==0&&(Va(e,t),Hs(t,null,null,n),Ti()),c=e.memoizedState,s=t.memoizedState,c.parent!==u?(c={parent:u,cache:u},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Na(t,ql,u)):(u=s.cache,Na(t,ql,u),u!==c.cache&&Cs(t,[ql],n,!0))),cl(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Tn(e){e.flags|=4}function zf(e,t){if(t.type!=="stylesheet"||(t.state.loading&tu)!==Dd)e.flags&=-16777217;else if(e.flags|=16777216,!jf(t)){if(t=eu.current,t!==null&&((it&4194048)===it?Vo!==null:(it&62914560)!==it&&(it&536870912)===0||t!==Vo))throw wp=by,a1;e.flags|=8192}}function Of(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Aa():536870912,e.lanes|=t,Ed|=t)}function So(e,t){if(!mt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function _t(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,u=0;if(t)if((e.mode&cn)!==Lt){for(var c=e.selfBaseDuration,s=e.child;s!==null;)n|=s.lanes|s.childLanes,u|=s.subtreeFlags&65011712,u|=s.flags&65011712,c+=s.treeBaseDuration,s=s.sibling;e.treeBaseDuration=c}else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,u|=c.subtreeFlags&65011712,u|=c.flags&65011712,c.return=e,c=c.sibling;else if((e.mode&cn)!==Lt){c=e.actualDuration,s=e.selfBaseDuration;for(var h=e.child;h!==null;)n|=h.lanes|h.childLanes,u|=h.subtreeFlags,u|=h.flags,c+=h.actualDuration,s+=h.treeBaseDuration,h=h.sibling;e.actualDuration=c,e.treeBaseDuration=s}else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,u|=c.subtreeFlags,u|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=u,e.childLanes=n,t}function bv(e,t,n){var u=t.pendingProps;switch(rc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(t),null;case 1:return _t(t),null;case 3:return n=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),ua(ql,t),vt(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(vi(t)?(Es(),Tn(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xs())),_t(t),null;case 26:return n=t.memoizedState,e===null?(Tn(t),n!==null?(_t(t),zf(t,n)):(_t(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Tn(t),_t(t),zf(t,n)):(_t(t),t.flags&=-16777217):(e.memoizedProps!==u&&Tn(t),_t(t),t.flags&=-16777217),null;case 27:te(t),n=et(Gi.current);var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==u&&Tn(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return _t(t),null}e=D(),vi(t)?Ss(t):(e=Q0(c,u,n,e,!0),t.stateNode=e,Tn(t))}return _t(t),null;case 5:if(te(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&Tn(t);else{if(!u){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return _t(t),null}if(c=D(),vi(t))Ss(t);else{switch(e=et(Gi.current),Po(n,c.ancestorInfo),c=c.context,e=lt(e),c){case Nm:e=e.createElementNS(xr,n);break;case Dg:e=e.createElementNS(rd,n);break;default:switch(n){case"svg":e=e.createElementNS(xr,n);break;case"math":e=e.createElementNS(rd,n);break;case"script":e=e.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof u.is=="string"?e.createElement("select",{is:u.is}):e.createElement("select"),u.multiple?e.multiple=!0:u.size&&(e.size=u.size);break;default:e=typeof u.is=="string"?e.createElement(n,{is:u.is}):e.createElement(n),n.indexOf("-")===-1&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),Object.prototype.toString.call(e)!=="[object HTMLUnknownElement]"||wu.call(hS,n)||(hS[n]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",n)))}}e[Wl]=t,e[Rn]=u;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch(It(e,n,u),n){case"button":case"input":case"select":case"textarea":e=!!u.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Tn(t)}}return _t(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&Tn(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=et(Gi.current),n=D(),vi(t)){e=t.stateNode,n=t.memoizedProps,c=!Qc,u=null;var s=Wn;if(s!==null)switch(s.tag){case 3:c&&(c=qh(e,n,u),c!==null&&(pn(t,0).serverProps=c));break;case 27:case 5:u=s.memoizedProps,c&&(c=qh(e,n,u),c!==null&&(pn(t,0).serverProps=c))}e[Wl]=t,e=!!(e.nodeValue===n||u!==null&&u.suppressHydrationWarning===!0||B0(e.nodeValue,n)),e||Ln(t)}else c=n.ancestorInfo.current,c!=null&&eo(u,c.tag,n.ancestorInfo.implicitRootScope),e=lt(e).createTextNode(u),e[Wl]=t,t.stateNode=e}return _t(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=vi(t),u!==null&&u.dehydrated!==null){if(e===null){if(!c)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");c[Wl]=t,_t(t),(t.mode&cn)!==Lt&&u!==null&&(c=t.child,c!==null&&(t.treeBaseDuration-=c.treeBaseDuration))}else Es(),gi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4,_t(t),(t.mode&cn)!==Lt&&u!==null&&(c=t.child,c!==null&&(t.treeBaseDuration-=c.treeBaseDuration));c=!1}else c=xs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Xn(t),t):(Xn(t),null)}return Xn(t),(t.flags&128)!==0?(t.lanes=n,(t.mode&cn)!==Lt&&Yn(t),t):(n=u!==null,e=e!==null&&e.memoizedState!==null,n&&(u=t.child,c=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(c=u.alternate.memoizedState.cachePool.pool),s=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(s=u.memoizedState.cachePool.pool),s!==c&&(u.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Of(t,t.updateQueue),_t(t),(t.mode&cn)!==Lt&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return vt(t),e===null&&H0(t.stateNode.containerInfo),_t(t),null;case 10:return ua(t.type,t),_t(t),null;case 19:if(Re(Vl,t),c=t.memoizedState,c===null)return _t(t),null;if(u=(t.flags&128)!==0,s=c.rendering,s===null)if(u)So(c,!1);else{if(rl!==Kc||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=_u(e),s!==null){for(t.flags|=128,So(c,!1),e=s.updateQueue,t.updateQueue=e,Of(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)gs(n,e),n=n.sibling;return Ee(Vl,Vl.current&Am|Lp,t),t.child}e=e.sibling}c.tail!==null&&Xi()>gg&&(t.flags|=128,u=!0,So(c,!1),t.lanes=4194304)}else{if(!u)if(e=_u(s),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Of(t,e),So(c,!0),c.tail===null&&c.tailMode==="hidden"&&!s.alternate&&!mt)return _t(t),null}else 2*Xi()-c.renderingStartTime>gg&&n!==536870912&&(t.flags|=128,u=!0,So(c,!1),t.lanes=4194304);c.isBackwards?(s.sibling=t.child,t.child=s):(e=c.last,e!==null?e.sibling=s:t.child=s,c.last=s)}return c.tail!==null?(e=c.tail,c.rendering=e,c.tail=e.sibling,c.renderingStartTime=Xi(),e.sibling=null,n=Vl.current,n=u?n&Am|Lp:n&Am,Ee(Vl,n,t),e):(_t(t),null);case 22:case 23:return Xn(t),Ga(t),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(n&536870912)!==0&&(t.flags&128)===0&&(_t(t),t.subtreeFlags&6&&(t.flags|=8192)):_t(t),n=t.updateQueue,n!==null&&Of(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==n&&(t.flags|=2048),e!==null&&Re(gd,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ua(ql,t),_t(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Sv(e,t){switch(rc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&cn)!==Lt&&Yn(t),t):null;case 3:return ua(ql,t),vt(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return te(t),null;case 13:if(Xn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");gi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&cn)!==Lt&&Yn(t),t):null;case 19:return Re(Vl,t),null;case 4:return vt(t),null;case 10:return ua(t.type,t),null;case 22:case 23:return Xn(t),Ga(t),e!==null&&Re(gd,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&cn)!==Lt&&Yn(t),t):null;case 24:return ua(ql,t),null;case 25:return null;default:return null}}function o0(e,t){switch(rc(t),t.tag){case 3:ua(ql,t),vt(t);break;case 26:case 27:case 5:te(t);break;case 4:vt(t);break;case 13:Xn(t);break;case 19:Re(Vl,t);break;case 10:ua(t.type,t);break;case 22:case 23:Xn(t),Ga(t),e!==null&&Re(gd,t);break;case 24:ua(ql,t)}}function Za(e){return(e.mode&cn)!==Lt}function c0(e,t){Za(e)?(gn(),Sc(t,e),tn()):Sc(t,e)}function mh(e,t,n){Za(e)?(gn(),Tc(n,e,t),tn()):Tc(n,e,t)}function Sc(e,t){try{var n=t.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var c=u.next;n=c;do{if((n.tag&e)===e&&((e&Yl)!==Ii?he!==null&&typeof he.markComponentPassiveEffectMountStarted=="function"&&he.markComponentPassiveEffectMountStarted(t):(e&sn)!==Ii&&he!==null&&typeof he.markComponentLayoutEffectMountStarted=="function"&&he.markComponentLayoutEffectMountStarted(t),u=void 0,(e&In)!==Ii&&(Bm=!0),u=ye(t,J2,n),(e&In)!==Ii&&(Bm=!1),(e&Yl)!==Ii?he!==null&&typeof he.markComponentPassiveEffectMountStopped=="function"&&he.markComponentPassiveEffectMountStopped():(e&sn)!==Ii&&he!==null&&typeof he.markComponentLayoutEffectMountStopped=="function"&&he.markComponentLayoutEffectMountStopped(),u!==void 0&&typeof u!="function")){var s=void 0;s=(n.tag&sn)!==0?"useLayoutEffect":(n.tag&In)!==0?"useInsertionEffect":"useEffect";var h=void 0;h=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`
|
|
943
|
-
|
|
944
|
-
It looks like you wrote `+s+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
945
|
-
|
|
946
|
-
`+s+`(() => {
|
|
947
|
-
async function fetchData() {
|
|
948
|
-
// You can await here
|
|
949
|
-
const response = await MyAPI.getData(someId);
|
|
950
|
-
// ...
|
|
951
|
-
}
|
|
952
|
-
fetchData();
|
|
953
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
954
|
-
|
|
955
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,ye(t,function(p,b){console.error("%s must not return anything besides a function, which is used for clean-up.%s",p,b)},s,h)}n=n.next}while(n!==c)}}catch(p){Ue(t,t.return,p)}}function Tc(e,t,n){try{var u=t.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var s=c.next;u=s;do{if((u.tag&e)===e){var h=u.inst,p=h.destroy;p!==void 0&&(h.destroy=void 0,(e&Yl)!==Ii?he!==null&&typeof he.markComponentPassiveEffectUnmountStarted=="function"&&he.markComponentPassiveEffectUnmountStarted(t):(e&sn)!==Ii&&he!==null&&typeof he.markComponentLayoutEffectUnmountStarted=="function"&&he.markComponentLayoutEffectUnmountStarted(t),(e&In)!==Ii&&(Bm=!0),c=t,ye(c,K2,c,n,p),(e&In)!==Ii&&(Bm=!1),(e&Yl)!==Ii?he!==null&&typeof he.markComponentPassiveEffectUnmountStopped=="function"&&he.markComponentPassiveEffectUnmountStopped():(e&sn)!==Ii&&he!==null&&typeof he.markComponentLayoutEffectUnmountStopped=="function"&&he.markComponentLayoutEffectUnmountStopped())}u=u.next}while(u!==s)}}catch(b){Ue(t,t.return,b)}}function s0(e,t){Za(e)?(gn(),Sc(t,e),tn()):Sc(t,e)}function Uf(e,t,n){Za(e)?(gn(),Tc(n,e,t),tn()):Tc(n,e,t)}function r0(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Rm||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{ye(e,mv,t,n)}catch(u){Ue(e,e.return,u)}}}function Tv(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function Jg(e,t){var n=t.memoizedProps,u=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Rm||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(e)||"instance"));try{var c=bo(e.type,n,e.elementType===e.type),s=ye(e,Tv,t,c,u);n=K1,s!==void 0||n.has(e.type)||(n.add(e.type),ye(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",me(e))})),t.__reactInternalSnapshotBeforeUpdate=s}catch(h){Ue(e,e.return,h)}}function ph(e,t,n){n.props=bo(e.type,e.memoizedProps),n.state=e.memoizedState,Za(e)?(gn(),ye(e,x1,e,t,n),tn()):ye(e,x1,e,t,n)}function xv(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t=="function")if(Za(e))try{gn(),e.refCleanup=t(n)}finally{tn()}else e.refCleanup=t(n);else typeof t=="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",me(e)),t.current=n}}function $s(e,t){try{ye(e,xv,e)}catch(n){Ue(e,t,n)}}function ma(e,t){var n=e.ref,u=e.refCleanup;if(n!==null)if(typeof u=="function")try{if(Za(e))try{gn(),ye(e,u)}finally{tn(e)}else ye(e,u)}catch(c){Ue(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{if(Za(e))try{gn(),ye(e,n,null)}finally{tn(e)}else ye(e,n,null)}catch(c){Ue(e,t,c)}else n.current=null}function f0(e,t,n,u){var c=e.memoizedProps,s=c.id,h=c.onCommit;c=c.onRender,t=t===null?"mount":"update",ig&&(t="nested-update"),typeof c=="function"&&c(s,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof h=="function"&&h(e.memoizedProps.id,t,u,n)}function Ev(e,t,n,u){var c=e.memoizedProps;e=c.id,c=c.onPostCommit,t=t===null?"mount":"update",ig&&(t="nested-update"),typeof c=="function"&&c(e,t,u,n)}function _v(e){var t=e.type,n=e.memoizedProps,u=e.stateNode;try{ye(e,Du,u,t,n,e)}catch(c){Ue(e,e.return,c)}}function d0(e,t,n){try{ye(e,Ft,e.stateNode,e.type,n,t,e)}catch(u){Ue(e,e.return,u)}}function h0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&qi(e.type)||e.tag===4}function xc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||h0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&qi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Hf(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ru));else if(u!==4&&(u===27&&qi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Hf(e,t,n),e=e.sibling;e!==null;)Hf(e,t,n),e=e.sibling}function Ec(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(u!==4&&(u===27&&qi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ec(e,t,n),e=e.sibling;e!==null;)Ec(e,t,n),e=e.sibling}function Cv(e){for(var t,n=e.return;n!==null;){if(h0(n)){t=n;break}n=n.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,n=xc(e),Ec(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(zu(n),t.flags&=-33),t=xc(e),Ec(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=xc(e),Hf(e,n,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function m0(e){var t=e.stateNode,n=e.memoizedProps;try{ye(e,Zn,e.type,n,t,e)}catch(u){Ue(e,e.return,u)}}function vh(e,t){if(e=e.containerInfo,Py=Hg,e=ef(e),hs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var u=n.getSelection&&n.getSelection();if(u&&u.rangeCount!==0){n=u.anchorNode;var c=u.anchorOffset,s=u.focusNode;u=u.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var h=0,p=-1,b=-1,S=0,N=0,Q=e,B=null;t:for(;;){for(var $;Q!==n||c!==0&&Q.nodeType!==3||(p=h+c),Q!==s||u!==0&&Q.nodeType!==3||(b=h+u),Q.nodeType===3&&(h+=Q.nodeValue.length),($=Q.firstChild)!==null;)B=Q,Q=$;for(;;){if(Q===e)break t;if(B===n&&++S===c&&(p=h),B===s&&++N===u&&(b=h),($=Q.nextSibling)!==null)break;Q=B,B=Q.parentNode}Q=$}n=p===-1||b===-1?null:{start:p,end:b}}else n=null}n=n||{start:0,end:0}}else n=null;for(eb={focusedElem:e,selectionRange:n},Hg=!1,Fl=t;Fl!==null;)if(t=Fl,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Fl=e;else for(;Fl!==null;){switch(e=t=Fl,n=e.alternate,c=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:(c&1024)!==0&&n!==null&&Jg(e,n);break;case 3:if((c&1024)!==0){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)ar(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ar(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Fl=e;break}Fl=t.return}}function p0(e,t,n){var u=n.flags;switch(n.tag){case 0:case 11:case 15:zi(e,n),u&4&&c0(n,sn|Fi);break;case 1:if(zi(e,n),u&4)if(e=n.stateNode,t===null)n.type.defaultProps||"ref"in n.memoizedProps||Rm||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(n)||"instance")),Za(n)?(gn(),ye(n,My,n,e),tn()):ye(n,My,n,e);else{var c=bo(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||"ref"in n.memoizedProps||Rm||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",me(n)||"instance"),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",me(n)||"instance")),Za(n)?(gn(),ye(n,b1,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),tn()):ye(n,b1,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}u&64&&r0(n),u&512&&$s(n,n.return);break;case 3:if(t=vn(),zi(e,n),u&64&&(u=n.updateQueue,u!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{ye(n,mv,u,c)}catch(h){Ue(n,n.return,h)}}e.effectDuration+=Ya(t);break;case 27:t===null&&u&4&&m0(n);case 26:case 5:zi(e,n),t===null&&u&4&&_v(n),u&512&&$s(n,n.return);break;case 12:if(u&4){u=vn(),zi(e,n),e=n.stateNode,e.effectDuration+=bi(u);try{ye(n,f0,n,t,ag,e.effectDuration)}catch(h){Ue(n,n.return,h)}}else zi(e,n);break;case 13:zi(e,n),u&4&&Js(e,n),u&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Vf.bind(null,n),ir(e,n))));break;case 22:if(u=n.memoizedState!==null||Jc,!u){t=t!==null&&t.memoizedState!==null||gl,c=Jc;var s=gl;Jc=u,(gl=t)&&!s?Oi(e,n,(n.subtreeFlags&8772)!==0):zi(e,n),Jc=c,gl=s}break;case 30:break;default:zi(e,n)}}function v0(e){var t=e.alternate;t!==null&&(e.alternate=null,v0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&su(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Cu(e,t,n){for(n=n.child;n!==null;)_c(e,t,n),n=n.sibling}function _c(e,t,n){if(Nl&&typeof Nl.onCommitFiberUnmount=="function")try{Nl.onCommitFiberUnmount(Ho,n)}catch(s){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %s",s))}switch(n.tag){case 26:gl||ma(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:gl||ma(n,t);var u=zl,c=xa;qi(n.type)&&(zl=n.stateNode,xa=!1),Cu(e,t,n),ye(n,or,n.stateNode),zl=u,xa=c;break;case 5:gl||ma(n,t);case 6:if(u=zl,c=xa,zl=null,Cu(e,t,n),zl=u,xa=c,zl!==null)if(xa)try{ye(n,lr,zl,n.stateNode)}catch(s){Ue(n,t,s)}else try{ye(n,ga,zl,n.stateNode)}catch(s){Ue(n,t,s)}break;case 18:zl!==null&&(xa?(e=zl,nr(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Nc(e)):nr(zl,n.stateNode));break;case 4:u=zl,c=xa,zl=n.stateNode.containerInfo,xa=!0,Cu(e,t,n),zl=u,xa=c;break;case 0:case 11:case 14:case 15:gl||Tc(In,n,t),gl||mh(n,t,sn),Cu(e,t,n);break;case 1:gl||(ma(n,t),u=n.stateNode,typeof u.componentWillUnmount=="function"&&ph(n,t,u)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:gl=(u=gl)||n.memoizedState!==null,Cu(e,t,n),gl=u;break;default:Cu(e,t,n)}}function Js(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ye(t,Qn,e)}catch(n){Ue(t,t.return,n)}}function gh(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new W1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new W1),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Cc(e,t){var n=gh(e);t.forEach(function(u){var c=_o.bind(null,e,u);if(!n.has(u)){if(n.add(u),el)if(Dm!==null&&zm!==null)er(zm,Dm);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(c,c)}})}function $l(e,t){var n=t.deletions;if(n!==null)for(var u=0;u<n.length;u++){var c=e,s=t,h=n[u],p=s;e:for(;p!==null;){switch(p.tag){case 27:if(qi(p.type)){zl=p.stateNode,xa=!1;break e}break;case 5:zl=p.stateNode,xa=!1;break e;case 3:case 4:zl=p.stateNode.containerInfo,xa=!0;break e}p=p.return}if(zl===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");_c(c,s,h),zl=null,xa=!1,c=h,s=c.alternate,s!==null&&(s.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)g0(t,e),t=t.sibling}function g0(e,t){var n=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$l(t,e),xn(e),u&4&&(Tc(In|Fi,e,e.return),Sc(In|Fi,e),mh(e,e.return,sn|Fi));break;case 1:$l(t,e),xn(e),u&512&&(gl||n===null||ma(n,n.return)),u&64&&Jc&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?u:n.concat(u))));break;case 26:var c=Gu;if($l(t,e),xn(e),u&512&&(gl||n===null||ma(n,n.return)),u&4)if(t=n!==null?n.memoizedState:null,u=e.memoizedState,n===null)if(u===null)if(e.stateNode===null){e:{u=e.type,n=e.memoizedProps,t=c.ownerDocument||c;t:switch(u){case"title":c=t.getElementsByTagName("title")[0],(!c||c[yr]||c[Wl]||c.namespaceURI===xr||c.hasAttribute("itemprop"))&&(c=t.createElement(u),t.head.insertBefore(c,t.querySelector("head > title"))),It(c,u,n),c[Wl]=e,tl(c),u=c;break e;case"link":var s=K0("link","href",t).get(u+(n.href||""));if(s){for(var h=0;h<s.length;h++)if(c=s[h],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(h,1);break t}}c=t.createElement(u),It(c,u,n),t.head.appendChild(c);break;case"meta":if(s=K0("meta","content",t).get(u+(n.content||""))){for(h=0;h<s.length;h++)if(c=s[h],ie(n.content,"content"),c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(h,1);break t}}c=t.createElement(u),It(c,u,n),t.head.appendChild(c);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+u+'". This is a bug in React.')}c[Wl]=e,tl(c),u=c}e.stateNode=u}else W0(c,e.type,e.stateNode);else e.stateNode=Yh(c,u,e.memoizedProps);else t!==u?(t===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):t.count--,u===null?W0(c,e.type,e.stateNode):Yh(c,u,e.memoizedProps)):u===null&&e.stateNode!==null&&d0(e,e.memoizedProps,n.memoizedProps);break;case 27:$l(t,e),xn(e),u&512&&(gl||n===null||ma(n,n.return)),n!==null&&u&4&&d0(e,e.memoizedProps,n.memoizedProps);break;case 5:if($l(t,e),xn(e),u&512&&(gl||n===null||ma(n,n.return)),e.flags&32){t=e.stateNode;try{ye(e,zu,t)}catch(N){Ue(e,e.return,N)}}u&4&&e.stateNode!=null&&(t=e.memoizedProps,d0(e,t,n!==null?n.memoizedProps:t)),u&1024&&(wy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if($l(t,e),xn(e),u&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");u=e.memoizedProps,n=n!==null?n.memoizedProps:u,t=e.stateNode;try{ye(e,Hc,t,n,u)}catch(N){Ue(e,e.return,N)}}break;case 3:if(c=vn(),zg=null,s=Gu,Gu=Xf(t.containerInfo),$l(t,e),Gu=s,xn(e),u&4&&n!==null&&n.memoizedState.isDehydrated)try{ye(e,j0,t.containerInfo)}catch(N){Ue(e,e.return,N)}wy&&(wy=!1,Ac(e)),t.effectDuration+=Ya(c);break;case 4:u=Gu,Gu=Xf(e.stateNode.containerInfo),$l(t,e),xn(e),Gu=u;break;case 12:u=vn(),$l(t,e),xn(e),e.stateNode.effectDuration+=bi(u);break;case 13:$l(t,e),xn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Yy=Xi()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Cc(e,u)));break;case 22:c=e.memoizedState!==null;var p=n!==null&&n.memoizedState!==null,b=Jc,S=gl;if(Jc=b||c,gl=S||p,$l(t,e),gl=S,Jc=b,xn(e),u&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|hy,c&&(n===null||p||Jc||gl||Jl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){p=n=t;try{s=p.stateNode,c?ye(p,Cn,s):ye(p,G0,p.stateNode,p.memoizedProps)}catch(N){Ue(p,p.return,N)}}}else if(t.tag===6){if(n===null){p=t;try{h=p.stateNode,c?ye(p,V0,h):ye(p,Nh,h,p.memoizedProps)}catch(N){Ue(p,p.return,N)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}u&4&&(u=e.updateQueue,u!==null&&(n=u.retryQueue,n!==null&&(u.retryQueue=null,Cc(e,n))));break;case 19:$l(t,e),xn(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Cc(e,u)));break;case 30:break;case 21:break;default:$l(t,e),xn(e)}}function xn(e){var t=e.flags;if(t&2){try{ye(e,Cv,e)}catch(n){Ue(e,e.return,n)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ac(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ac(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function zi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)p0(e,t.alternate,t),t=t.sibling}function jn(e){switch(e.tag){case 0:case 11:case 14:case 15:mh(e,e.return,sn),Jl(e);break;case 1:ma(e,e.return);var t=e.stateNode;typeof t.componentWillUnmount=="function"&&ph(e,e.return,t),Jl(e);break;case 27:ye(e,or,e.stateNode);case 26:case 5:ma(e,e.return),Jl(e);break;case 22:e.memoizedState===null&&Jl(e);break;case 30:Jl(e);break;default:Jl(e)}}function Jl(e){for(e=e.child;e!==null;)jn(e),e=e.sibling}function Au(e,t,n,u){var c=n.flags;switch(n.tag){case 0:case 11:case 15:Oi(e,n,u),c0(n,sn);break;case 1:if(Oi(e,n,u),t=n.stateNode,typeof t.componentDidMount=="function"&&ye(n,My,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{ye(n,ws,t,e)}catch(s){Ue(n,n.return,s)}}u&&c&64&&r0(n),$s(n,n.return);break;case 27:m0(n);case 26:case 5:Oi(e,n,u),u&&t===null&&c&4&&_v(n),$s(n,n.return);break;case 12:if(u&&c&4){c=vn(),Oi(e,n,u),u=n.stateNode,u.effectDuration+=bi(c);try{ye(n,f0,n,t,ag,u.effectDuration)}catch(s){Ue(n,n.return,s)}}else Oi(e,n,u);break;case 13:Oi(e,n,u),u&&c&4&&Js(e,n);break;case 22:n.memoizedState===null&&Oi(e,n,u),$s(n,n.return);break;case 30:break;default:Oi(e,n,u)}}function Oi(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;)Au(e,t.alternate,t,n),t=t.sibling}function Ui(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&yi(e),n!=null&&qn(n))}function $a(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(yi(t),e!=null&&qn(e))}function Ct(e,t,n,u){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wf(e,t,n,u),t=t.sibling}function wf(e,t,n,u){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Ct(e,t,n,u),c&2048&&s0(t,Yl|Fi);break;case 1:Ct(e,t,n,u);break;case 3:var s=vn();Ct(e,t,n,u),c&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==n&&(yi(t),n!=null&&qn(n))),e.passiveEffectDuration+=Ya(s);break;case 12:if(c&2048){c=vn(),Ct(e,t,n,u),e=t.stateNode,e.passiveEffectDuration+=bi(c);try{ye(t,Ev,t,t.alternate,ag,e.passiveEffectDuration)}catch(p){Ue(t,t.return,p)}}else Ct(e,t,n,u);break;case 13:Ct(e,t,n,u);break;case 23:break;case 22:s=t.stateNode;var h=t.alternate;t.memoizedState!==null?s._visibility&dd?Ct(e,t,n,u):Ks(e,t):s._visibility&dd?Ct(e,t,n,u):(s._visibility|=dd,To(e,t,n,u,(t.subtreeFlags&10256)!==0)),c&2048&&Ui(h,t);break;case 24:Ct(e,t,n,u),c&2048&&$a(t.alternate,t);break;default:Ct(e,t,n,u)}}function To(e,t,n,u,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;)yh(e,t,n,u,c),t=t.sibling}function yh(e,t,n,u,c){var s=t.flags;switch(t.tag){case 0:case 11:case 15:To(e,t,n,u,c),s0(t,Yl);break;case 23:break;case 22:var h=t.stateNode;t.memoizedState!==null?h._visibility&dd?To(e,t,n,u,c):Ks(e,t):(h._visibility|=dd,To(e,t,n,u,c)),c&&s&2048&&Ui(t.alternate,t);break;case 24:To(e,t,n,u,c),c&&s&2048&&$a(t.alternate,t);break;default:To(e,t,n,u,c)}}function Ks(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,u=t,c=u.flags;switch(u.tag){case 22:Ks(n,u),c&2048&&Ui(u.alternate,u);break;case 24:Ks(n,u),c&2048&&$a(u.alternate,u);break;default:Ks(n,u)}t=t.sibling}}function Mc(e){if(e.subtreeFlags&qp)for(e=e.child;e!==null;)xo(e),e=e.sibling}function xo(e){switch(e.tag){case 26:Mc(e),e.flags&qp&&e.memoizedState!==null&&kv(Gu,e.memoizedState,e.memoizedProps);break;case 5:Mc(e);break;case 3:case 4:var t=Gu;Gu=Xf(e.stateNode.containerInfo),Mc(e),Gu=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=qp,qp=16777216,Mc(e),qp=t):Mc(e));break;default:Mc(e)}}function Bf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ws(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var u=t[n];Fl=u,b0(u,e)}Bf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)y0(e),e=e.sibling}function y0(e){switch(e.tag){case 0:case 11:case 15:Ws(e),e.flags&2048&&Uf(e,e.return,Yl|Fi);break;case 3:var t=vn();Ws(e),e.stateNode.passiveEffectDuration+=Ya(t);break;case 12:t=vn(),Ws(e),e.stateNode.passiveEffectDuration+=bi(t);break;case 22:t=e.stateNode,e.memoizedState!==null&&t._visibility&dd&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,kf(e)):Ws(e);break;default:Ws(e)}}function kf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var u=t[n];Fl=u,b0(u,e)}Bf(e)}for(e=e.child;e!==null;)Nf(e),e=e.sibling}function Nf(e){switch(e.tag){case 0:case 11:case 15:Uf(e,e.return,Yl),kf(e);break;case 22:var t=e.stateNode;t._visibility&dd&&(t._visibility&=-3,kf(e));break;default:kf(e)}}function b0(e,t){for(;Fl!==null;){var n=Fl,u=n;switch(u.tag){case 0:case 11:case 15:Uf(u,t,Yl);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(u=u.memoizedState.cachePool.pool,u!=null&&yi(u));break;case 24:qn(u.memoizedState.cache)}if(u=n.child,u!==null)u.return=n,Fl=u;else e:for(n=e;Fl!==null;){u=Fl;var c=u.sibling,s=u.return;if(v0(u),u===n){Fl=null;break e}if(c!==null){c.return=s,Fl=c;break e}Fl=s}}}function S0(){I2.forEach(function(e){return e()})}function T0(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function En(e){if((Tt&Fn)!==Ia&&it!==0)return it&-it;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),e=vd,e!==0?e:z0()):qr()}function Av(){Pa===0&&(Pa=(it&536870912)===0||mt?iu():536870912);var e=eu.current;return e!==null&&(e.flags|=32),Pa}function Kt(e,t,n){if(Bm&&console.error("useInsertionEffect must not schedule updates."),Qy&&(yg=!0),(e===Ut&&(At===Td||At===xd)||e.cancelPendingCommit!==null)&&(Dc(e,0),Mu(e,it,Pa,!1)),Pl(e,n),(Tt&Fn)!==0&&e===Ut){if(Dn)switch(t.tag){case 0:case 11:case 15:e=nt&&me(nt)||"Unknown",uS.has(e)||(uS.add(e),t=me(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:iS||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),iS=!0)}}else el&&Sl(e,t,n),zv(t),e===Ut&&((Tt&Fn)===Ia&&(Dr|=n),rl===Sd&&Mu(e,it,Pa,!1)),pa(e)}function pl(e,t,n){if((Tt&(Fn|Xu))!==Ia)throw Error("Should not already be working.");var u=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Ca(e,t),c=u?E0(e,t):xh(e,t,!0),s=u;do{if(c===Kc){Hm&&!u&&Mu(e,t,0,!1);break}else{if(n=e.current.alternate,s&&!Mv(n)){c=xh(e,t,!1),s=!1;continue}if(c===Om){if(s=t,e.errorRecoveryDisabledLanes&s)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{c=e;var p=h;h=Qp;var b=c.current.memoizedState.isDehydrated;if(b&&(Dc(c,p).flags|=256),p=xh(c,p,!1),p!==Om){if(Ly&&!b){c.errorRecoveryDisabledLanes|=s,Dr|=s,c=Sd;break e}c=Pn,Pn=h,c!==null&&(Pn===null?Pn=c:Pn.push.apply(Pn,c))}c=p}if(s=!1,c!==Om)continue}}if(c===Vp){Dc(e,0),Mu(e,t,0,!0);break}e:{switch(u=e,c){case Kc:case Vp:throw Error("Root did not complete. This is a bug in React.");case Sd:if((t&4194048)!==t)break;case pg:Mu(u,t,Pa,!Mr);break e;case Om:Pn=null;break;case By:case I1:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)Mh(u,n,t,Pn,Zp,vg,Pa,Dr,Ed);else{if((t&62914560)===t&&(s=Yy+P1-Xi(),10<s)){if(Mu(u,t,Pa,!Mr),fl(u,0,!0)!==0)break e;u.timeoutHandle=mS(Al.bind(null,u,n,Pn,Zp,vg,t,Pa,Dr,Ed,Mr,c,tT,t1,0),s);break e}Al(u,n,Pn,Zp,vg,t,Pa,Dr,Ed,Mr,c,P2,t1,0)}}}break}while(!0);pa(e)}function Al(e,t,n,u,c,s,h,p,b,S,N,Q,B,$){if(e.timeoutHandle=Rd,Q=t.subtreeFlags,(Q&8192||(Q&16785408)===16785408)&&(Fp={stylesheets:null,count:0,unsuspend:Bv},xo(t),Q=Nv(),Q!==null)){e.cancelPendingCommit=Q(Mh.bind(null,e,t,s,n,u,c,h,p,b,N,eT,B,$)),Mu(e,s,h,!S);return}Mh(e,t,s,n,u,c,h,p,b)}function Mv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var u=0;u<n.length;u++){var c=n[u],s=c.getSnapshot;c=c.value;try{if(!Kn(s(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mu(e,t,n,u){t&=~qy,t&=~Dr,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var c=t;0<c;){var s=31-Kl(c),h=1<<s;u[s]=-1,c&=~h}n!==0&&re(e,n,t)}function Rc(){return(Tt&(Fn|Xu))===Ia?(zc(0),!1):!0}function bh(){if(nt!==null){if(At===Ea)var e=nt.return;else e=nt,fc(),Xa(e),_m=null,Np=0,e=nt;for(;e!==null;)o0(e.alternate,e),e=e.return;nt=null}}function Dc(e,t){var n=e.timeoutHandle;n!==Rd&&(e.timeoutHandle=Rd,mT(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),bh(),Ut=e,nt=n=Nn(e.current,null),it=t,At=Ea,Fa=null,Mr=!1,Hm=Ca(e,t),Ly=!1,rl=Kc,Ed=Pa=qy=Dr=Rr=0,Pn=Qp=null,vg=!1,(t&8)!==0&&(t|=t&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=t;0<u;){var c=31-Kl(u),s=1<<c;t|=e[c],u&=~s}return Go=t,io(),t=Pb(),1e3<t-Fb&&(G.recentlyCreatedOwnerStacks=0,Fb=t),Yu.discardPendingWarnings(),n}function Lf(e,t){Ge=null,G.H=hg,G.getCurrentStack=null,Dn=!1,Jn=null,t===Hp||t===cg?(t=Os(),At=Xp):t===a1?(t=Os(),At=F1):At=t===G1?Ny:t!==null&&typeof t=="object"&&typeof t.then=="function"?Um:Gp,Fa=t;var n=nt;if(n===null)rl=Vp,Zs(e,jl(t,e.current));else switch(n.mode&cn&&oa(n),bl(),At){case Gp:he!==null&&typeof he.markComponentErrored=="function"&&he.markComponentErrored(n,t,it);break;case Td:case xd:case Xp:case Um:case jp:he!==null&&typeof he.markComponentSuspended=="function"&&he.markComponentSuspended(n,t,it)}}function Sh(){var e=G.H;return G.H=hg,e===null?hg:e}function x0(){var e=G.A;return G.A=W2,e}function Th(){rl=Sd,Mr||(it&4194048)!==it&&eu.current!==null||(Hm=!0),(Rr&134217727)===0&&(Dr&134217727)===0||Ut===null||Mu(Ut,it,Pa,!1)}function xh(e,t,n){var u=Tt;Tt|=Fn;var c=Sh(),s=x0();if(Ut!==e||it!==t){if(el){var h=e.memoizedUpdaters;0<h.size&&(er(e,it),h.clear()),Ot(e,t)}Zp=null,Dc(e,t)}On(t),t=!1,h=rl;e:do try{if(At!==Ea&&nt!==null){var p=nt,b=Fa;switch(At){case Ny:bh(),h=pg;break e;case Xp:case Td:case xd:case Um:eu.current===null&&(t=!0);var S=At;if(At=Ea,Fa=null,Eo(e,p,b,S),n&&Hm){h=Kc;break e}break;default:S=At,At=Ea,Fa=null,Eo(e,p,b,S)}}Eh(),h=rl;break}catch(N){Lf(e,N)}while(!0);return t&&e.shellSuspendCounter++,fc(),Tt=u,G.H=c,G.A=s,ei(),nt===null&&(Ut=null,it=0,io()),h}function Eh(){for(;nt!==null;)C0(nt)}function E0(e,t){var n=Tt;Tt|=Fn;var u=Sh(),c=x0();if(Ut!==e||it!==t){if(el){var s=e.memoizedUpdaters;0<s.size&&(er(e,it),s.clear()),Ot(e,t)}Zp=null,gg=Xi()+eS,Dc(e,t)}else Hm=Ca(e,t);On(t);e:do try{if(At!==Ea&&nt!==null)t:switch(t=nt,s=Fa,At){case Gp:At=Ea,Fa=null,Eo(e,t,s,Gp);break;case Td:case xd:if(zs(s)){At=Ea,Fa=null,_h(t);break}t=function(){At!==Td&&At!==xd||Ut!==e||(At=jp),pa(e)},s.then(t,t);break e;case Xp:At=jp;break e;case F1:At=ky;break e;case jp:zs(s)?(At=Ea,Fa=null,_h(t)):(At=Ea,Fa=null,Eo(e,t,s,jp));break;case ky:var h=null;switch(nt.tag){case 26:h=nt.memoizedState;case 5:case 27:var p=nt;if(!h||jf(h)){At=Ea,Fa=null;var b=p.sibling;if(b!==null)nt=b;else{var S=p.return;S!==null?(nt=S,qf(S)):nt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}At=Ea,Fa=null,Eo(e,t,s,ky);break;case Um:At=Ea,Fa=null,Eo(e,t,s,Um);break;case Ny:bh(),rl=pg;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?Eh():_0();break}catch(N){Lf(e,N)}while(!0);return fc(),G.H=u,G.A=c,Tt=n,nt!==null?(he!==null&&typeof he.markRenderYielded=="function"&&he.markRenderYielded(),Kc):(ei(),Ut=null,it=0,io(),rl)}function _0(){for(;nt!==null&&!jv();)C0(nt)}function C0(e){var t=e.alternate;(e.mode&cn)!==Lt?(dc(e),t=ye(e,hh,t,e,Go),oa(e)):t=ye(e,hh,t,e,Go),e.memoizedProps=e.pendingProps,t===null?qf(e):nt=t}function _h(e){var t=ye(e,Ch,e);e.memoizedProps=e.pendingProps,t===null?qf(e):nt=t}function Ch(e){var t=e.alternate,n=(e.mode&cn)!==Lt;switch(n&&dc(e),e.tag){case 15:case 0:t=l0(t,e,e.pendingProps,e.type,void 0,it);break;case 11:t=l0(t,e,e.pendingProps,e.type.render,e.ref,it);break;case 5:Xa(e);default:o0(t,e),e=nt=gs(e,Go),t=hh(t,e,Go)}return n&&oa(e),t}function Eo(e,t,n,u){fc(),Xa(t),_m=null,Np=0;var c=t.return;try{if(Cf(e,c,t,n,it)){rl=Vp,Zs(e,jl(n,e.current)),nt=null;return}}catch(s){if(c!==null)throw nt=c,s;rl=Vp,Zs(e,jl(n,e.current)),nt=null;return}t.flags&32768?(mt||u===Gp?e=!0:Hm||(it&536870912)!==0?e=!1:(Mr=e=!0,(u===Td||u===xd||u===Xp||u===Um)&&(u=eu.current,u!==null&&u.tag===13&&(u.flags|=16384))),Ah(t,e)):qf(t)}function qf(e){var t=e;do{if((t.flags&32768)!==0){Ah(t,Mr);return}var n=t.alternate;if(e=t.return,dc(t),n=ye(t,bv,n,t,Go),(t.mode&cn)!==Lt&&Si(t),n!==null){nt=n;return}if(t=t.sibling,t!==null){nt=t;return}nt=t=e}while(t!==null);rl===Kc&&(rl=I1)}function Ah(e,t){do{var n=Sv(e.alternate,e);if(n!==null){n.flags&=32767,nt=n;return}if((e.mode&cn)!==Lt){Si(e),n=e.actualDuration;for(var u=e.child;u!==null;)n+=u.actualDuration,u=u.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){nt=e;return}nt=e=n}while(e!==null);rl=pg,nt=null}function Mh(e,t,n,u,c,s,h,p,b){e.cancelPendingCommit=null;do Is();while(rn!==_d);if(Yu.flushLegacyContextWarning(),Yu.flushPendingUnsafeLifecycleWarnings(),(Tt&(Fn|Xu))!==Ia)throw Error("Should not already be working.");if(he!==null&&typeof he.markCommitStarted=="function"&&he.markCommitStarted(n),t===null)xt();else{if(n===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(s=t.lanes|t.childLanes,s|=my,ou(e,n,s,h,p,b),e===Ut&&(nt=Ut=null,it=0),wm=t,Or=e,Ur=n,Gy=s,Xy=c,aS=u,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,D0(pr,function(){return Yf(),null})):(e.callbackNode=null,e.callbackPriority=0),ag=bm(),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=G.T,G.T=null,c=Ne.p,Ne.p=Ll,h=Tt,Tt|=Xu;try{vh(e,t,n)}finally{Tt=h,Ne.p=c,G.T=u}}rn=tS,Hi(),Rh(),Rv()}}function Hi(){if(rn===tS){rn=_d;var e=Or,t=wm,n=Ur,u=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||u){u=G.T,G.T=null;var c=Ne.p;Ne.p=Ll;var s=Tt;Tt|=Xu;try{Dm=n,zm=e,g0(t,e),zm=Dm=null,n=eb;var h=ef(e.containerInfo),p=n.focusedElem,b=n.selectionRange;if(h!==p&&p&&p.ownerDocument&&Pr(p.ownerDocument.documentElement,p)){if(b!==null&&hs(p)){var S=b.start,N=b.end;if(N===void 0&&(N=S),"selectionStart"in p)p.selectionStart=S,p.selectionEnd=Math.min(N,p.value.length);else{var Q=p.ownerDocument||document,B=Q&&Q.defaultView||window;if(B.getSelection){var $=B.getSelection(),Se=p.textContent.length,Le=Math.min(b.start,Se),Ht=b.end===void 0?Le:Math.min(b.end,Se);!$.extend&&Le>Ht&&(h=Ht,Ht=Le,Le=h);var ot=ds(p,Le),_=ds(p,Ht);if(ot&&_&&($.rangeCount!==1||$.anchorNode!==ot.node||$.anchorOffset!==ot.offset||$.focusNode!==_.node||$.focusOffset!==_.offset)){var C=Q.createRange();C.setStart(ot.node,ot.offset),$.removeAllRanges(),Le>Ht?($.addRange(C),$.extend(_.node,_.offset)):(C.setEnd(_.node,_.offset),$.addRange(C))}}}}for(Q=[],$=p;$=$.parentNode;)$.nodeType===1&&Q.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<Q.length;p++){var R=Q[p];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}Hg=!!Py,eb=Py=null}finally{Tt=s,Ne.p=c,G.T=u}}e.current=t,rn=lS}}function Rh(){if(rn===lS){rn=_d;var e=Or,t=wm,n=Ur,u=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||u){u=G.T,G.T=null;var c=Ne.p;Ne.p=Ll;var s=Tt;Tt|=Xu;try{he!==null&&typeof he.markLayoutEffectsStarted=="function"&&he.markLayoutEffectsStarted(n),Dm=n,zm=e,p0(e,t.alternate,t),zm=Dm=null,he!==null&&typeof he.markLayoutEffectsStopped=="function"&&he.markLayoutEffectsStopped()}finally{Tt=s,Ne.p=c,G.T=u}}rn=nS}}function Rv(){if(rn===lT||rn===nS){rn=_d,ly();var e=Or,t=wm,n=Ur,u=aS,c=(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0;c?rn=Vy:(rn=_d,wm=Or=null,wi(e,e.pendingLanes),Cd=0,Jp=null);var s=e.pendingLanes;if(s===0&&(zr=null),c||Ps(e),c=cu(n),t=t.stateNode,Nl&&typeof Nl.onCommitFiberRoot=="function")try{var h=(t.current.flags&128)===128;switch(c){case Ll:var p=Ih;break;case Wa:p=ld;break;case ku:p=pr;break;case tm:p=nd;break;default:p=pr}Nl.onCommitFiberRoot(Ho,t,p,h)}catch(Q){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %s",Q))}if(el&&e.memoizedUpdaters.clear(),S0(),u!==null){h=G.T,p=Ne.p,Ne.p=Ll,G.T=null;try{var b=e.onRecoverableError;for(t=0;t<u.length;t++){var S=u[t],N=Dv(S.stack);ye(S.source,b,S.value,N)}}finally{G.T=h,Ne.p=p}}(Ur&3)!==0&&Is(),pa(e),s=e.pendingLanes,(n&4194090)!==0&&(s&42)!==0?(ug=!0,e===jy?$p++:($p=0,jy=e)):$p=0,zc(0),xt()}}function Dv(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function wi(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qn(t)))}function Is(e){return Hi(),Rh(),Rv(),Yf()}function Yf(){if(rn!==Vy)return!1;var e=Or,t=Gy;Gy=0;var n=cu(Ur),u=ku>n?ku:n;n=G.T;var c=Ne.p;try{Ne.p=u,G.T=null,u=Xy,Xy=null;var s=Or,h=Ur;if(rn=_d,wm=Or=null,Ur=0,(Tt&(Fn|Xu))!==Ia)throw Error("Cannot flush passive effects while already rendering.");Qy=!0,yg=!1,he!==null&&typeof he.markPassiveEffectsStarted=="function"&&he.markPassiveEffectsStarted(h);var p=Tt;if(Tt|=Xu,y0(s.current),wf(s,s.current,h,u),he!==null&&typeof he.markPassiveEffectsStopped=="function"&&he.markPassiveEffectsStopped(),Ps(s),Tt=p,zc(0,!1),yg?s===Jp?Cd++:(Cd=0,Jp=s):Cd=0,yg=Qy=!1,Nl&&typeof Nl.onPostCommitFiberRoot=="function")try{Nl.onPostCommitFiberRoot(Ho,s)}catch(S){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %s",S))}var b=s.current.stateNode;return b.effectDuration=0,b.passiveEffectDuration=0,!0}finally{Ne.p=c,G.T=n,wi(e,t)}}function Fs(e,t,n){t=jl(n,t),t=Zl(e.stateNode,t,2),e=ze(e,t,2),e!==null&&(Pl(e,2),pa(e))}function Ue(e,t,n){if(Bm=!1,e.tag===3)Fs(e,e,n);else{for(;t!==null;){if(t.tag===3){Fs(t,e,n);return}if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(zr===null||!zr.has(u))){e=jl(n,e),n=Jt(2),u=ze(t,n,2),u!==null&&(_f(n,u,t,e),Pl(u,2),pa(u));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
956
|
-
|
|
957
|
-
Error message:
|
|
958
|
-
|
|
959
|
-
%s`,n)}}function A0(e,t,n){var u=e.pingCache;if(u===null){u=e.pingCache=new F2;var c=new Set;u.set(t,c)}else c=u.get(t),c===void 0&&(c=new Set,u.set(t,c));c.has(n)||(Ly=!0,c.add(n),u=Kg.bind(null,e,t,n),el&&er(e,n),t.then(u,u))}function Kg(e,t,n){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,T0()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
960
|
-
|
|
961
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
962
|
-
|
|
963
|
-
act(() => {
|
|
964
|
-
/* finish loading suspended data */
|
|
965
|
-
});
|
|
966
|
-
/* assert on the output */
|
|
967
|
-
|
|
968
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ut===e&&(it&n)===n&&(rl===Sd||rl===By&&(it&62914560)===it&&Xi()-Yy<P1?(Tt&Fn)===Ia&&Dc(e,0):qy|=n,Ed===it&&(Ed=0)),pa(e)}function M0(e,t){t===0&&(t=Aa()),e=Ol(e,t),e!==null&&(Pl(e,t),pa(e))}function Vf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),M0(e,n)}function _o(e,t){var n=0;switch(e.tag){case 13:var u=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),M0(e,n)}function Dh(e,t,n){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var u=e,c=t,s=c.type===rr;s=n||s,c.tag!==22?c.flags&67108864?s&&ye(c,R0,u,c,(c.mode&Kb)===Lt):Dh(u,c,s):c.memoizedState===null&&(s&&c.flags&8192?ye(c,R0,u,c):c.subtreeFlags&67108864&&ye(c,Dh,u,c,s)),t=t.sibling}}function R0(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:!0;$e(!0);try{jn(t),n&&Nf(t),Au(e,t.alternate,t,!1),n&&yh(e,t,0,null,!1,0)}finally{$e(!1)}}function Ps(e){var t=!0;e.current.mode&(zn|qu)||(t=!1),Dh(e,e.current,t)}function Ja(e){if((Tt&Fn)===Ia){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=me(e)||"ReactComponent",bg!==null){if(bg.has(t))return;bg.add(t)}else bg=new Set([t]);ye(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")})}}}function er(e,t){el&&e.memoizedUpdaters.forEach(function(n){Sl(e,n,t)})}function D0(e,t){var n=G.actQueue;return n!==null?(n.push(t),iT):Wh(e,t)}function zv(e){T0()&&G.actQueue===null&&ye(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
969
|
-
|
|
970
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
971
|
-
|
|
972
|
-
act(() => {
|
|
973
|
-
/* fire events that update state */
|
|
974
|
-
});
|
|
975
|
-
/* assert on the output */
|
|
976
|
-
|
|
977
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,me(e))})}function pa(e){e!==km&&e.next===null&&(km===null?Sg=km=e:km=km.next=e),Tg=!0,G.actQueue!==null?$y||($y=!0,vl()):Zy||(Zy=!0,vl())}function zc(e,t){if(!Jy&&Tg){Jy=!0;do for(var n=!1,u=Sg;u!==null;){if(e!==0){var c=u.pendingLanes;if(c===0)var s=0;else{var h=u.suspendedLanes,p=u.pingedLanes;s=(1<<31-Kl(42|e)+1)-1,s&=c&~(h&~p),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Uh(u,s))}else s=it,s=fl(u,u===Ut?s:0,u.cancelPendingCommit!==null||u.timeoutHandle!==Rd),(s&3)===0||Ca(u,s)||(n=!0,Uh(u,s));u=u.next}while(n);Jy=!1}}function zh(){Oh()}function Oh(){Tg=$y=Zy=!1;var e=0;Ad!==0&&(tr()&&(e=Ad),Ad=0);for(var t=Xi(),n=null,u=Sg;u!==null;){var c=u.next,s=Bi(u,t);s===0?(u.next=null,n===null?Sg=c:n.next=c,c===null&&(km=n)):(n=u,(e!==0||(s&3)!==0)&&(Tg=!0)),u=c}zc(e)}function Bi(e,t){for(var n=e.suspendedLanes,u=e.pingedLanes,c=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var h=31-Kl(s),p=1<<h,b=c[h];b===-1?((p&n)===0||(p&u)!==0)&&(c[h]=Qu(p,t)):b<=t&&(e.expiredLanes|=p),s&=~p}if(t=Ut,n=it,n=fl(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Rd),u=e.callbackNode,n===0||e===t&&(At===Td||At===xd)||e.cancelPendingCommit!==null)return u!==null&&Hh(u),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ca(e,n)){if(t=n&-n,t!==e.callbackPriority||G.actQueue!==null&&u!==Ky)Hh(u);else return t;switch(cu(n)){case Ll:case Wa:n=ld;break;case ku:n=pr;break;case tm:n=nd;break;default:n=pr}return u=Wt.bind(null,e),G.actQueue!==null?(G.actQueue.push(u),n=Ky):n=Wh(n,u),e.callbackPriority=t,e.callbackNode=n,t}return u!==null&&Hh(u),e.callbackPriority=2,e.callbackNode=null,2}function Wt(e,t){if(ug=ig=!1,rn!==_d&&rn!==Vy)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Is()&&e.callbackNode!==n)return null;var u=it;return u=fl(e,e===Ut?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==Rd),u===0?null:(pl(e,u,t),Bi(e,Xi()),e.callbackNode!=null&&e.callbackNode===n?Wt.bind(null,e):null)}function Uh(e,t){if(Is())return null;ig=ug,ug=!1,pl(e,t,!0)}function Hh(e){e!==Ky&&e!==null&&ty(e)}function vl(){G.actQueue!==null&&G.actQueue.push(function(){return Oh(),null}),pT(function(){(Tt&(Fn|Xu))!==Ia?Wh(Ih,zh):Oh()})}function z0(){return Ad===0&&(Ad=iu()),Ad}function O0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(ie(e,"action"),pu(""+e))}function U0(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function kt(e,t,n,u,c){if(t==="submit"&&n&&n.stateNode===c){var s=O0((c[Rn]||null).action),h=u.submitter;h&&(t=(t=h[Rn]||null)?O0(t.formAction):h.getAttribute("formAction"),t!==null&&(s=t,h=null));var p=new Me("action","action",null,u,c);e.push({event:p,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ad!==0){var b=h?U0(c,h):new FormData(c),S={pending:!0,data:b,method:c.method,action:s};Object.freeze(S),gc(n,S,null,b)}}else typeof s=="function"&&(p.preventDefault(),b=h?U0(c,h):new FormData(c),S={pending:!0,data:b,method:c.method,action:s},Object.freeze(S),gc(n,S,s,b))},currentTarget:c}]})}}function Hl(e,t,n){e.currentTarget=n;try{t(e)}catch(u){zy(u)}e.currentTarget=null}function ki(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var u=e[n];e:{var c=void 0,s=u.event;if(u=u.listeners,t)for(var h=u.length-1;0<=h;h--){var p=u[h],b=p.instance,S=p.currentTarget;if(p=p.listener,b!==c&&s.isPropagationStopped())break e;b!==null?ye(b,Hl,s,p,S):Hl(s,p,S),c=b}else for(h=0;h<u.length;h++){if(p=u[h],b=p.instance,S=p.currentTarget,p=p.listener,b!==c&&s.isPropagationStopped())break e;b!==null?ye(b,Hl,s,p,S):Hl(s,p,S),c=b}}}}function Pe(e,t){Wy.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=t[ip];n===void 0&&(n=t[ip]=new Set);var u=e+"__bubble";n.has(u)||(Bh(t,e,2,!1),n.add(u))}function wh(e,t,n){Wy.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=4),Bh(n,e,u,t)}function H0(e){if(!e[xg]){e[xg]=!0,Zv.forEach(function(n){n!=="selectionchange"&&(Wy.has(n)||wh(n,!1,e),wh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xg]||(t[xg]=!0,wh("selectionchange",!1,t))}}function Bh(e,t,n,u){switch(Zh(t)){case Ll:var c=Fg;break;case Wa:c=Qh;break;default:c=Ro}n=c.bind(null,t,n,e),c=void 0,!H||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),u?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function nn(e,t,n,u,c){var s=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var h=u.tag;if(h===3||h===4){var p=u.stateNode.containerInfo;if(p===c)break;if(h===4)for(h=u.return;h!==null;){var b=h.tag;if((b===3||b===4)&&h.stateNode.containerInfo===c)return;h=h.return}for(;p!==null;){if(h=ea(p),h===null)return;if(b=h.tag,b===5||b===6||b===26||b===27){u=s=h;continue e}p=p.parentNode}}u=u.return}tc(function(){var S=s,N=ri(n),Q=[];e:{var B=Jb.get(e);if(B!==void 0){var $=Me,Se=e;switch(e){case"keypress":if(vu(n)===0)break e;case"keydown":case"keyup":$=x2;break;case"focusin":Se="focus",$=ct;break;case"focusout":Se="blur",$=ct;break;case"beforeblur":case"afterblur":$=ct;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$=Ie;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=He;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=C2;break;case jb:case Qb:case Zb:$=uy;break;case $b:$=M2;break;case"scroll":case"scrollend":$=O;break;case"wheel":$=D2;break;case"copy":case"cut":case"paste":$=p2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=kb;break;case"toggle":case"beforetoggle":$=O2}var Le=(t&4)!==0,Ht=!Le&&(e==="scroll"||e==="scrollend"),ot=Le?B!==null?B+"Capture":null:B;Le=[];for(var _=S,C;_!==null;){var R=_;if(C=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||C===null||ot===null||(R=na(_,ot),R!=null&&Le.push(an(_,R,C))),Ht)break;_=_.return}0<Le.length&&(B=new $(B,Se,null,n,N),Q.push({event:B,listeners:Le}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",B&&n!==r&&(Se=n.relatedTarget||n.fromElement)&&(ea(Se)||Se[Bo]))break e;if(($||B)&&(B=N.window===N?N:(B=N.ownerDocument)?B.defaultView||B.parentWindow:window,$?(Se=n.relatedTarget||n.toElement,$=S,Se=Se?ea(Se):null,Se!==null&&(Ht=de(Se),Le=Se.tag,Se!==Ht||Le!==5&&Le!==27&&Le!==6)&&(Se=null)):($=null,Se=S),$!==Se)){if(Le=Ie,R="onMouseLeave",ot="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(Le=kb,R="onPointerLeave",ot="onPointerEnter",_="pointer"),Ht=$==null?B:Ma($),C=Se==null?B:Ma(Se),B=new Le(R,_+"leave",$,n,N),B.target=Ht,B.relatedTarget=C,R=null,ea(N)===S&&(Le=new Le(ot,_+"enter",Se,n,N),Le.target=C,Le.relatedTarget=Ht,R=Le),Ht=R,$&&Se)t:{for(Le=$,ot=Se,_=0,C=Le;C;C=Ml(C))_++;for(C=0,R=ot;R;R=Ml(R))C++;for(;0<_-C;)Le=Ml(Le),_--;for(;0<C-_;)ot=Ml(ot),C--;for(;_--;){if(Le===ot||ot!==null&&Le===ot.alternate)break t;Le=Ml(Le),ot=Ml(ot)}Le=null}else Le=null;$!==null&&w0(Q,B,$,Le,!1),Se!==null&&Ht!==null&&w0(Q,Ht,Se,Le,!0)}}e:{if(B=S?Ma(S):window,$=B.nodeName&&B.nodeName.toLowerCase(),$==="select"||$==="input"&&B.type==="file")var J=rs;else if(Kr(B))if(Gb)J=Nd;else{J=fs;var se=Bd}else $=B.nodeName,!$||$.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?S&&si(S.elementType)&&(J=rs):J=kd;if(J&&(J=J(e,S))){ic(Q,J,n,N);break e}se&&se(e,B,S),e==="focusout"&&S&&B.type==="number"&&S.memoizedProps.value!=null&&Ko(B,"number",B.value)}switch(se=S?Ma(S):window,e){case"focusin":(Kr(se)||se.contentEditable==="true")&&(fm=se,cy=S,Cp=null);break;case"focusout":Cp=cy=fm=null;break;case"mousedown":sy=!0;break;case"contextmenu":case"mouseup":case"dragend":sy=!1,tf(Q,n,N);break;case"selectionchange":if(B2)break;case"keydown":case"keyup":tf(Q,n,N)}var Qe;if(oy)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else rm?El(e,n)&&(Te="onCompositionEnd"):e==="keydown"&&n.keyCode===Nb&&(Te="onCompositionStart");Te&&(Lb&&n.locale!=="ko"&&(rm||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&rm&&(Qe=aa()):(P=N,k="value"in P?P.value:P.textContent,rm=!0)),se=Gf(S,Te),0<se.length&&(Te=new Bb(Te,e,null,n,N),Q.push({event:Te,listeners:se}),Qe?Te.data=Qe:(Qe=wa(n),Qe!==null&&(Te.data=Qe)))),(Qe=H2?ac(e,n):lo(e,n))&&(Te=Gf(S,"onBeforeInput"),0<Te.length&&(se=new g2("onBeforeInput","beforeinput",null,n,N),Q.push({event:se,listeners:Te}),se.data=Qe)),kt(Q,e,S,n,N)}ki(Q,t)})}function an(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gf(e,t){for(var n=t+"Capture",u=[];e!==null;){var c=e,s=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||s===null||(c=na(e,n),c!=null&&u.unshift(an(e,c,s)),c=na(e,t),c!=null&&u.push(an(e,c,s))),e.tag===3)return u;e=e.return}return[]}function Ml(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function w0(e,t,n,u,c){for(var s=t._reactName,h=[];n!==null&&n!==u;){var p=n,b=p.alternate,S=p.stateNode;if(p=p.tag,b!==null&&b===u)break;p!==5&&p!==26&&p!==27||S===null||(b=S,c?(S=na(n,s),S!=null&&h.unshift(an(n,S,b))):c||(S=na(n,s),S!=null&&h.push(an(n,S,b)))),n=n.return}h.length!==0&&e.push({event:t,listeners:h})}function Ni(e,t){mu(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||Tp||(Tp=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:Sa,possibleRegistrationNames:qc};si(e)||typeof t.is=="string"||os(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Nt(e,t,n,u){t!==n&&(n=wl(n),wl(t)!==n&&(u[e]=t))}function Co(e,t,n){t.forEach(function(u){n[k0(u)]=u==="style"?Uc(e):e.getAttribute(u)})}function va(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function kh(e,t){return e=e.namespaceURI===rd||e.namespaceURI===xr?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function wl(e){return q(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ge(e)),pe(e)),(typeof e=="string"?e:""+e).replace(uT,`
|
|
978
|
-
`).replace(oT,"")}function B0(e,t){return t=wl(t),wl(e)===t}function Ru(){}function dt(e,t,n,u,c,s){switch(n){case"children":typeof u=="string"?(eo(u,t,!1),t==="body"||t==="textarea"&&u===""||ci(e,u)):(typeof u=="number"||typeof u=="bigint")&&(eo(""+u,t,!1),t!=="body"&&ci(e,""+u));break;case"className":$u(e,"class",u);break;case"tabIndex":$u(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":$u(e,n,u);break;case"style":to(e,u,s);break;case"data":if(t!=="object"){$u(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||n!=="href")){console.error(n==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',n,n),e.removeAttribute(n);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(n);break}ie(u,n),u=pu(""+u),e.setAttribute(n,u);break;case"action":case"formAction":if(u!=null&&(t==="form"?n==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(c.encType==null&&c.method==null||Cg||(Cg=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),c.target==null||_g||(_g=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?n==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||c.type==="submit"||c.type==="image"||Eg?t!=="button"||c.type==null||c.type==="submit"||Eg?typeof u=="function"&&(c.name==null||sS||(sS=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),c.formEncType==null&&c.formMethod==null||Cg||(Cg=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),c.formTarget==null||_g||(_g=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Eg=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Eg=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(n==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(n==="formAction"?(t!=="input"&&dt(e,t,"name",c.name,c,null),dt(e,t,"formEncType",c.formEncType,c,null),dt(e,t,"formMethod",c.formMethod,c,null),dt(e,t,"formTarget",c.formTarget,c,null)):(dt(e,t,"encType",c.encType,c,null),dt(e,t,"method",c.method,c,null),dt(e,t,"target",c.target,c,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(n);break}ie(u,n),u=pu(""+u),e.setAttribute(n,u);break;case"onClick":u!=null&&(typeof u!="function"&&va(n,u),e.onclick=Ru);break;case"onScroll":u!=null&&(typeof u!="function"&&va(n,u),Pe("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&va(n,u),Pe("scrollend",e));break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=u.__html,n!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}ie(u,n),n=pu(""+u),e.setAttributeNS(Md,"xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?(ie(u,n),e.setAttribute(n,""+u)):e.removeAttribute(n);break;case"inert":u!==""||Ag[n]||(Ag[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":u===!0?e.setAttribute(n,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(ie(u,n),e.setAttribute(n,u)):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(ie(u,n),e.setAttribute(n,u)):e.removeAttribute(n);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(n):(ie(u,n),e.setAttribute(n,u));break;case"popover":Pe("beforetoggle",e),Pe("toggle",e),Zu(e,"popover",u);break;case"xlinkActuate":dn(e,Md,"xlink:actuate",u);break;case"xlinkArcrole":dn(e,Md,"xlink:arcrole",u);break;case"xlinkRole":dn(e,Md,"xlink:role",u);break;case"xlinkShow":dn(e,Md,"xlink:show",u);break;case"xlinkTitle":dn(e,Md,"xlink:title",u);break;case"xlinkType":dn(e,Md,"xlink:type",u);break;case"xmlBase":dn(e,Iy,"xml:base",u);break;case"xmlLang":dn(e,Iy,"xml:lang",u);break;case"xmlSpace":dn(e,Iy,"xml:space",u);break;case"is":s!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Zu(e,"is",u);break;case"innerText":case"textContent":break;case"popoverTarget":rS||u==null||typeof u!="object"||(rS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N"?(n=ec(n),Zu(e,n,u)):Sa.hasOwnProperty(n)&&u!=null&&typeof u!="function"&&va(n,u)}}function Oc(e,t,n,u,c,s){switch(n){case"style":to(e,u,s);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=u.__html,n!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case"children":typeof u=="string"?ci(e,u):(typeof u=="number"||typeof u=="bigint")&&ci(e,""+u);break;case"onScroll":u!=null&&(typeof u!="function"&&va(n,u),Pe("scroll",e));break;case"onScrollEnd":u!=null&&(typeof u!="function"&&va(n,u),Pe("scrollend",e));break;case"onClick":u!=null&&(typeof u!="function"&&va(n,u),e.onclick=Ru);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Sa.hasOwnProperty(n))u!=null&&typeof u!="function"&&va(n,u);else e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),s=e[Rn]||null,s=s!=null?s[n]:null,typeof s=="function"&&e.removeEventListener(t,s,c),typeof u=="function")){typeof s!="function"&&s!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,u,c);break e}n in e?e[n]=u:u===!0?e.setAttribute(n,""):Zu(e,n,u)}}}function It(e,t,n){switch(Ni(t,n),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",e),Pe("load",e);var u=!1,c=!1,s;for(s in n)if(n.hasOwnProperty(s)){var h=n[s];if(h!=null)switch(s){case"src":u=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,s,h,n,null)}}c&&dt(e,t,"srcSet",n.srcSet,n,null),u&&dt(e,t,"src",n.src,n,null);return;case"input":Da("input",n),Pe("invalid",e);var p=s=h=c=null,b=null,S=null;for(u in n)if(n.hasOwnProperty(u)){var N=n[u];if(N!=null)switch(u){case"name":c=N;break;case"type":h=N;break;case"checked":b=N;break;case"defaultChecked":S=N;break;case"value":s=N;break;case"defaultValue":p=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,u,N,n,null)}}za(e,n),jr(e,s,p,b,S,h,c,!1),ta(e);return;case"select":Da("select",n),Pe("invalid",e),u=h=s=null;for(c in n)if(n.hasOwnProperty(c)&&(p=n[c],p!=null))switch(c){case"value":s=p;break;case"defaultValue":h=p;break;case"multiple":u=p;default:dt(e,t,c,p,n,null)}Iu(e,n),t=s,n=h,e.multiple=!!u,t!=null?la(e,!!u,t,!1):n!=null&&la(e,!!u,n,!0);return;case"textarea":Da("textarea",n),Pe("invalid",e),s=c=u=null;for(h in n)if(n.hasOwnProperty(h)&&(p=n[h],p!=null))switch(h){case"value":u=p;break;case"defaultValue":c=p;break;case"children":s=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:dt(e,t,h,p,n,null)}Bn(e,n),ls(e,u,c,s),ta(e);return;case"option":ts(e,n);for(b in n)if(n.hasOwnProperty(b)&&(u=n[b],u!=null))switch(b){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:dt(e,t,b,u,n,null)}return;case"dialog":Pe("beforetoggle",e),Pe("toggle",e),Pe("cancel",e),Pe("close",e);break;case"iframe":case"object":Pe("load",e);break;case"video":case"audio":for(u=0;u<Kp.length;u++)Pe(Kp[u],e);break;case"image":Pe("error",e),Pe("load",e);break;case"details":Pe("toggle",e);break;case"embed":case"source":case"link":Pe("error",e),Pe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(S in n)if(n.hasOwnProperty(S)&&(u=n[S],u!=null))switch(S){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(e,t,S,u,n,null)}return;default:if(si(t)){for(N in n)n.hasOwnProperty(N)&&(u=n[N],u!==void 0&&Oc(e,t,N,u,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(u=n[p],u!=null&&dt(e,t,p,u,n,null))}function Ov(e,t,n,u){switch(Ni(t,u),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,s=null,h=null,p=null,b=null,S=null,N=null;for($ in n){var Q=n[$];if(n.hasOwnProperty($)&&Q!=null)switch($){case"checked":break;case"value":break;case"defaultValue":b=Q;default:u.hasOwnProperty($)||dt(e,t,$,null,u,Q)}}for(var B in u){var $=u[B];if(Q=n[B],u.hasOwnProperty(B)&&($!=null||Q!=null))switch(B){case"type":s=$;break;case"name":c=$;break;case"checked":S=$;break;case"defaultChecked":N=$;break;case"value":h=$;break;case"defaultValue":p=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:$!==Q&&dt(e,t,B,$,u,Q)}}t=n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,t||!u||cS||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),cS=!0),!t||u||oS||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),oS=!0),Oa(e,h,p,b,S,N,s,c);return;case"select":$=h=p=B=null;for(s in n)if(b=n[s],n.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":$=b;default:u.hasOwnProperty(s)||dt(e,t,s,null,u,b)}for(c in u)if(s=u[c],b=n[c],u.hasOwnProperty(c)&&(s!=null||b!=null))switch(c){case"value":B=s;break;case"defaultValue":p=s;break;case"multiple":h=s;default:s!==b&&dt(e,t,c,s,u,b)}u=p,t=h,n=$,B!=null?la(e,!!t,B,!1):!!n!=!!t&&(u!=null?la(e,!!t,u,!0):la(e,!!t,t?[]:"",!1));return;case"textarea":$=B=null;for(p in n)if(c=n[p],n.hasOwnProperty(p)&&c!=null&&!u.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:dt(e,t,p,null,u,c)}for(h in u)if(c=u[h],s=n[h],u.hasOwnProperty(h)&&(c!=null||s!=null))switch(h){case"value":B=c;break;case"defaultValue":$=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:c!==s&&dt(e,t,h,c,u,s)}Wo(e,B,$);return;case"option":for(var Se in n)if(B=n[Se],n.hasOwnProperty(Se)&&B!=null&&!u.hasOwnProperty(Se))switch(Se){case"selected":e.selected=!1;break;default:dt(e,t,Se,null,u,B)}for(b in u)if(B=u[b],$=n[b],u.hasOwnProperty(b)&&B!==$&&(B!=null||$!=null))switch(b){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:dt(e,t,b,B,u,$)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Le in n)B=n[Le],n.hasOwnProperty(Le)&&B!=null&&!u.hasOwnProperty(Le)&&dt(e,t,Le,null,u,B);for(S in u)if(B=u[S],$=n[S],u.hasOwnProperty(S)&&B!==$&&(B!=null||$!=null))switch(S){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:dt(e,t,S,B,u,$)}return;default:if(si(t)){for(var Ht in n)B=n[Ht],n.hasOwnProperty(Ht)&&B!==void 0&&!u.hasOwnProperty(Ht)&&Oc(e,t,Ht,void 0,u,B);for(N in u)B=u[N],$=n[N],!u.hasOwnProperty(N)||B===$||B===void 0&&$===void 0||Oc(e,t,N,B,u,$);return}}for(var ot in n)B=n[ot],n.hasOwnProperty(ot)&&B!=null&&!u.hasOwnProperty(ot)&&dt(e,t,ot,null,u,B);for(Q in u)B=u[Q],$=n[Q],!u.hasOwnProperty(Q)||B===$||B==null&&$==null||dt(e,t,Q,B,u,$)}function k0(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Uc(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var u=e[n];t[u]=e.getPropertyValue(u)}return t}function N0(e,t,n){if(t!=null&&typeof t!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var u,c=u="",s;for(s in t)if(t.hasOwnProperty(s)){var h=t[s];h!=null&&typeof h!="boolean"&&h!==""&&(s.indexOf("--")===0?(ve(h,s),u+=c+s+":"+(""+h).trim()):typeof h!="number"||h===0||sd.has(s)?(ve(h,s),u+=c+s.replace(Nu,"-$1").toLowerCase().replace(Lu,"-ms-")+":"+(""+h).trim()):u+=c+s.replace(Nu,"-$1").toLowerCase().replace(Lu,"-ms-")+":"+h+"px",c=";")}u=u||null,t=e.getAttribute("style"),t!==u&&(u=wl(u),wl(t)!==u&&(n.style=Uc(e)))}}function un(e,t,n,u,c,s){if(c.delete(n),e=e.getAttribute(n),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(ie(u,t),e===""+u)return}Nt(t,e,u,s)}function L0(e,t,n,u,c,s){if(c.delete(n),e=e.getAttribute(n),e===null){switch(typeof u){case"function":case"symbol":return}if(!u)return}else switch(typeof u){case"function":case"symbol":break;default:if(u)return}Nt(t,e,u,s)}function q0(e,t,n,u,c,s){if(c.delete(n),e=e.getAttribute(n),e===null)switch(typeof u){case"undefined":case"function":case"symbol":return}else if(u!=null)switch(typeof u){case"function":case"symbol":break;default:if(ie(u,n),e===""+u)return}Nt(t,e,u,s)}function Uv(e,t,n,u,c,s){if(c.delete(n),e=e.getAttribute(n),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(!isNaN(u)&&(ie(u,t),e===""+u))return}Nt(t,e,u,s)}function yt(e,t,n,u,c,s){if(c.delete(n),e=e.getAttribute(n),e===null)switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":return}else if(u!=null)switch(typeof u){case"function":case"symbol":case"boolean":break;default:if(ie(u,t),n=pu(""+u),e===n)return}Nt(t,e,u,s)}function Rt(e,t,n,u){for(var c={},s=new Set,h=e.attributes,p=0;p<h.length;p++)switch(h[p].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:s.add(h[p].name)}if(si(t)){for(var b in n)if(n.hasOwnProperty(b)){var S=n[b];if(S!=null){if(Sa.hasOwnProperty(b))typeof S!="function"&&va(b,S);else if(n.suppressHydrationWarning!==!0)switch(b){case"children":typeof S!="string"&&typeof S!="number"||Nt("children",e.textContent,S,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":h=e.innerHTML,S=S?S.__html:void 0,S!=null&&(S=kh(e,S),Nt(b,h,S,c));continue;case"style":s.delete(b),N0(e,S,c);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":s.delete(b.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",b);continue;case"className":s.delete("class"),h=Yr(e,"class",S),Nt("className",h,S,c);continue;default:u.context===Ic&&t!=="svg"&&t!=="math"?s.delete(b.toLowerCase()):s.delete(b),h=Yr(e,b,S),Nt(b,h,S,c)}}}}else for(S in n)if(n.hasOwnProperty(S)&&(b=n[S],b!=null)){if(Sa.hasOwnProperty(S))typeof b!="function"&&va(S,b);else if(n.suppressHydrationWarning!==!0)switch(S){case"children":typeof b!="string"&&typeof b!="number"||Nt("children",e.textContent,b,c);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":h=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=kh(e,b),h!==b&&(c[S]={__html:h}));continue;case"className":un(e,S,"class",b,s,c);continue;case"tabIndex":un(e,S,"tabindex",b,s,c);continue;case"style":s.delete(S),N0(e,b,c);continue;case"multiple":s.delete(S),Nt(S,e.multiple,b,c);continue;case"muted":s.delete(S),Nt(S,e.muted,b,c);continue;case"autoFocus":s.delete("autofocus"),Nt(S,e.autofocus,b,c);continue;case"data":if(t!=="object"){s.delete(S),h=e.getAttribute("data"),Nt(S,h,b,c);continue}case"src":case"href":if(!(b!==""||t==="a"&&S==="href"||t==="object"&&S==="data")){console.error(S==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',S,S);continue}yt(e,S,S,b,s,c);continue;case"action":case"formAction":if(h=e.getAttribute(S),typeof b=="function"){s.delete(S.toLowerCase()),S==="formAction"?(s.delete("name"),s.delete("formenctype"),s.delete("formmethod"),s.delete("formtarget")):(s.delete("enctype"),s.delete("method"),s.delete("target"));continue}else if(h===cT){s.delete(S.toLowerCase()),Nt(S,"function",b,c);continue}yt(e,S,S.toLowerCase(),b,s,c);continue;case"xlinkHref":yt(e,S,"xlink:href",b,s,c);continue;case"contentEditable":q0(e,S,"contenteditable",b,s,c);continue;case"spellCheck":q0(e,S,"spellcheck",b,s,c);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":q0(e,S,S,b,s,c);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":L0(e,S,S.toLowerCase(),b,s,c);continue;case"capture":case"download":e:{p=e;var N=h=S,Q=c;if(s.delete(N),p=p.getAttribute(N),p===null)switch(typeof b){case"undefined":case"function":case"symbol":break e;default:if(b===!1)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":break;case"boolean":if(b===!0&&p==="")break e;break;default:if(ie(b,h),p===""+b)break e}Nt(h,p,b,Q)}continue;case"cols":case"rows":case"size":case"span":e:{if(p=e,N=h=S,Q=c,s.delete(N),p=p.getAttribute(N),p===null)switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(b)||1>b)break e}else if(b!=null)switch(typeof b){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(b)||1>b)&&(ie(b,h),p===""+b))break e}Nt(h,p,b,Q)}continue;case"rowSpan":Uv(e,S,"rowspan",b,s,c);continue;case"start":Uv(e,S,S,b,s,c);continue;case"xHeight":un(e,S,"x-height",b,s,c);continue;case"xlinkActuate":un(e,S,"xlink:actuate",b,s,c);continue;case"xlinkArcrole":un(e,S,"xlink:arcrole",b,s,c);continue;case"xlinkRole":un(e,S,"xlink:role",b,s,c);continue;case"xlinkShow":un(e,S,"xlink:show",b,s,c);continue;case"xlinkTitle":un(e,S,"xlink:title",b,s,c);continue;case"xlinkType":un(e,S,"xlink:type",b,s,c);continue;case"xmlBase":un(e,S,"xml:base",b,s,c);continue;case"xmlLang":un(e,S,"xml:lang",b,s,c);continue;case"xmlSpace":un(e,S,"xml:space",b,s,c);continue;case"inert":b!==""||Ag[S]||(Ag[S]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",S)),L0(e,S,S,b,s,c);continue;default:if(!(2<S.length)||S[0]!=="o"&&S[0]!=="O"||S[1]!=="n"&&S[1]!=="N"){p=ec(S),h=!1,u.context===Ic&&t!=="svg"&&t!=="math"?s.delete(p.toLowerCase()):(N=S.toLowerCase(),N=Gc.hasOwnProperty(N)&&Gc[N]||null,N!==null&&N!==S&&(h=!0,s.delete(N)),s.delete(p));e:if(N=e,Q=p,p=b,li(Q))if(N.hasAttribute(Q))N=N.getAttribute(Q),ie(p,Q),p=N===""+p?p:N;else{switch(typeof p){case"function":case"symbol":break e;case"boolean":if(N=Q.toLowerCase().slice(0,5),N!=="data-"&&N!=="aria-")break e}p=p===void 0?void 0:null}else p=void 0;h||Nt(S,p,b,c)}}}return 0<s.size&&n.suppressHydrationWarning!==!0&&Co(e,s,c),Object.keys(c).length===0?null:c}function tt(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function lt(e){return e.nodeType===9?e:e.ownerDocument}function bt(e){switch(e){case xr:return Nm;case rd:return Dg;default:return Ic}}function _n(e,t){if(e===Ic)switch(t){case"svg":return Nm;case"math":return Dg;default:return Ic}return e===Nm&&t==="foreignObject"?Ic:e}function Li(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function tr(){var e=window.event;return e&&e.type==="popstate"?e===tb?!1:(tb=e,!0):(tb=null,!1)}function Y0(e){setTimeout(function(){throw e})}function Du(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();break;case"img":n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Ft(e,t,n,u){Ov(e,t,n,u),e[Rn]=u}function zu(e){ci(e,"")}function Hc(e,t,n){e.nodeValue=n}function qi(e){return e==="head"}function ga(e,t){e.removeChild(t)}function lr(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function nr(e,t){var n=t,u=0,c=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n===Rg){if(0<u&&8>u){n=u;var h=e.ownerDocument;if(n&rT&&or(h.documentElement),n&fT&&or(h.body),n&dT)for(n=h.head,or(n),h=n.firstChild;h;){var p=h.nextSibling,b=h.nodeName;h[yr]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&h.rel.toLowerCase()==="stylesheet"||n.removeChild(h),h=p}}if(c===0){e.removeChild(s),Nc(t);return}c--}else n===Mg||n===Wc||n===Wp?c++:u=n.charCodeAt(0)-48;else u=0;n=s}while(n);Nc(t)}function Cn(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none"}function V0(e){e.nodeValue=""}function G0(e,t){t=t[hT],t=t!=null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t=="boolean"?"":(""+t).trim()}function Nh(e,t){e.nodeValue=t}function ar(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ar(n),su(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Ao(e,t,n,u){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[yr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){ie(c.name,"name");var s=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=kl(e.nextSibling),e===null)break}return null}function Bl(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=kl(e.nextSibling),e===null))return null;return e}function Yi(e){return e.data===Wp||e.data===Wc&&e.ownerDocument.readyState===dS}function ir(e,t){var n=e.ownerDocument;if(e.data!==Wc||n.readyState===dS)t();else{var u=function(){t(),n.removeEventListener("DOMContentLoaded",u)};n.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function kl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Mg||t===Wp||t===Wc||t===Fy||t===fS)break;if(t===Rg)return null}}return e}function Lh(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},u=e.attributes,c=0;c<u.length;c++){var s=u[c];n[k0(s.name)]=s.name.toLowerCase()==="style"?Uc(e):s.value}return{type:t,props:n}}return e.nodeType===8?{type:"Suspense",props:{}}:e.nodeValue}function qh(e,t,n){return n===null||n[sT]!==!0?(e.nodeValue===t?e=null:(t=wl(t),e=wl(e.nodeValue)===t?null:e.nodeValue),e):null}function X0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Rg){if(t===0)return kl(e.nextSibling);t--}else n!==Mg&&n!==Wp&&n!==Wc||t++}e=e.nextSibling}return null}function ur(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===Mg||n===Wp||n===Wc){if(t===0)return e;t--}else n===Rg&&t++}e=e.previousSibling}return null}function j0(e){Nc(e)}function Qn(e){Nc(e)}function Q0(e,t,n,u,c){switch(c&&Po(e,u.ancestorInfo),t=lt(n),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function Zn(e,t,n,u){if(!n[Bo]&&Gl(n)){var c=n.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",c,c,c)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(c=n.attributes;c.length;)n.removeAttributeNode(c[0]);It(n,e,t),n[Wl]=u,n[Rn]=t}function or(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);su(e)}function Xf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Hv(e,t,n){var u=Lm;if(u&&typeof t=="string"&&t){var c=Xl(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),yS.has(c)||(yS.add(c),e={rel:e,crossOrigin:n,href:t},u.querySelector(c)===null&&(t=u.createElement("link"),It(t,"link",e),tl(t),u.head.appendChild(t)))}}function Ou(e,t,n,u){var c=(c=Gi.current)?Xf(c):null;if(!c)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Mo(n.href),t=wn(c).hoistableStyles,u=t.get(n),u||(u={type:"style",instance:null,count:0,state:null},t.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Mo(n.href);var s=wn(c).hoistableStyles,h=s.get(e);if(!h&&(c=c.ownerDocument||c,h={type:"stylesheet",instance:null,count:0,state:{loading:Dd,preload:null}},s.set(e,h),(s=c.querySelector(Vi(e)))&&!s._p&&(h.instance=s,h.state.loading=Ip|tu),!lu.has(e))){var p={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};lu.set(e,p),s||wv(c,e,p,h.state)}if(t&&u===null)throw n=`
|
|
979
|
-
|
|
980
|
-
- `+wc(t)+`
|
|
981
|
-
+ `+wc(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return h}if(t&&u!==null)throw n=`
|
|
982
|
-
|
|
983
|
-
- `+wc(t)+`
|
|
984
|
-
+ `+wc(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Bc(n),t=wn(c).hoistableScripts,u=t.get(n),u||(u={type:"script",instance:null,count:0,state:null},t.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function wc(e){var t=0,n="<link";return typeof e.rel=="string"?(t++,n+=' rel="'+e.rel+'"'):wu.call(e,"rel")&&(t++,n+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(t++,n+=' href="'+e.href+'"'):wu.call(e,"href")&&(t++,n+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(t++,n+=' precedence="'+e.precedence+'"'):wu.call(e,"precedence")&&(t++,n+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(n+=" ..."),n+" />"}function Mo(e){return'href="'+Xl(e)+'"'}function Vi(e){return'link[rel="stylesheet"]['+e+"]"}function Z0(e){return Ke({},e,{"data-precedence":e.precedence,precedence:null})}function wv(e,t,n,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=Ip:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=Ip}),t.addEventListener("error",function(){return u.loading|=vS}),It(t,"link",n),tl(t),e.head.appendChild(t))}function Bc(e){return'[src="'+Xl(e)+'"]'}function kc(e){return"script[async]"+e}function Yh(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+Xl(n.href)+'"]');if(u)return t.instance=u,tl(u),u;var c=Ke({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),tl(u),It(u,"style",c),Vh(u,n.precedence,e),t.instance=u;case"stylesheet":c=Mo(n.href);var s=e.querySelector(Vi(c));if(s)return t.state.loading|=tu,t.instance=s,tl(s),s;u=Z0(n),(c=lu.get(c))&&$0(u,c),s=(e.ownerDocument||e).createElement("link"),tl(s);var h=s;return h._p=new Promise(function(p,b){h.onload=p,h.onerror=b}),It(s,"link",u),t.state.loading|=tu,Vh(s,n.precedence,e),t.instance=s;case"script":return s=Bc(n.src),(c=e.querySelector(kc(s)))?(t.instance=c,tl(c),c):(u=n,(c=lu.get(s))&&(u=Ke({},n),J0(u,c)),e=e.ownerDocument||e,c=e.createElement("script"),tl(c),It(c,"link",u),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&tu)===Dd&&(u=t.instance,t.state.loading|=tu,Vh(u,n.precedence,e));return t.instance}function Vh(e,t,n){for(var u=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=u.length?u[u.length-1]:null,s=c,h=0;h<u.length;h++){var p=u[h];if(p.dataset.precedence===t)s=p;else if(s!==c)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function $0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function J0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function K0(e,t,n){if(zg===null){var u=new Map,c=zg=new Map;c.set(n,u)}else c=zg,u=c.get(n),u||(u=new Map,c.set(n,u));if(u.has(e))return u;for(u.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var s=n[c];if(!(s[yr]||s[Wl]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!==xr){var h=s.getAttribute(t)||"";h=e+h;var p=u.get(h);p?p.push(s):u.set(h,[s])}}return u}function W0(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function cr(e,t,n){var u=!n.ancestorInfo.containerTagInScope;if(n.context===Nm||t.itemProp!=null)return!u||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href===""){u&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence=="string"){e=t.href;var c=t.onError,s=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),c&&n.push("`onError`"),s!=null&&n.push("`disabled`"),c=tt(n,"and"),c+=n.length===1?" prop":" props",s=n.length===1?"an "+c:"the "+c,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,s,c)}u&&(typeof t.rel!="string"||typeof t.href!="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!="string"&&u&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!="function"&&typeof t.async!="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!="string"){u&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function jf(e){return!(e.type==="stylesheet"&&(e.state.loading&gS)===Dd)}function Bv(){}function kv(e,t,n){if(Fp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var u=Fp;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&tu)===Dd){if(t.instance===null){var c=Mo(n.href),s=e.querySelector(Vi(c));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(u.count++,u=Qf.bind(u),e.then(u,u)),t.state.loading|=tu,t.instance=s,tl(s);return}s=e.ownerDocument||e,n=Z0(n),(c=lu.get(c))&&$0(n,c),s=s.createElement("link"),tl(s);var h=s;h._p=new Promise(function(p,b){h.onload=p,h.onerror=b}),It(s,"link",n),t.instance=s}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&gS)===Dd&&(u.count++,t=Qf.bind(u),e.addEventListener("load",t),e.addEventListener("error",t))}}function Nv(){if(Fp===null)throw Error("Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug.");var e=Fp;return e.stylesheets&&e.count===0&&Gh(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Gh(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Qf(){if(this.count--,this.count===0){if(this.stylesheets)Gh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Gh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Og=new Map,t.forEach(Lv,e),Og=null,Qf.call(e))}function Lv(e,t){if(!(t.state.loading&tu)){var n=Og.get(e);if(n)var u=n.get(nb);else{n=new Map,Og.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<c.length;s++){var h=c[s];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(n.set(h.dataset.precedence,h),u=h)}u&&n.set(nb,u)}c=t.instance,h=c.getAttribute("data-precedence"),s=n.get(h)||u,s===u&&n.set(nb,c),n.set(h,c),this.count++,u=Qf.bind(this),c.addEventListener("load",u),c.addEventListener("error",u),s?s.parentNode.insertBefore(c,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=tu}}function Xh(e,t,n,u,c,s,h,p){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Rd,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=uu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uu(0),this.hiddenUpdates=uu(null),this.identifierPrefix=u,this.onUncaughtError=c,this.onCaughtError=s,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?"hydrateRoot()":"createRoot()"}function I0(e,t,n,u,c,s,h,p,b,S,N,Q){return e=new Xh(e,t,n,h,p,b,S,Q),t=q2,s===!0&&(t|=zn|qu),el&&(t|=cn),s=V(3,null,null,t),e.current=s,s.stateNode=e,t=ro(),yi(t),e.pooledCache=t,yi(t),s.memoizedState={element:u,isDehydrated:n,cache:t},Ul(s),e}function F0(e){return e?(e=Er,e):Er}function St(e,t,n,u,c,s){if(Nl&&typeof Nl.onScheduleFiberRoot=="function")try{Nl.onScheduleFiberRoot(Ho,u,n)}catch(h){Mn||(Mn=!0,console.error("React instrumentation encountered an error: %s",h))}he!==null&&typeof he.markRenderScheduled=="function"&&he.markRenderScheduled(t),c=F0(c),u.context===null?u.context=c:u.pendingContext=c,Dn&&Jn!==null&&!xS&&(xS=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
985
|
-
|
|
986
|
-
Check the render method of %s.`,me(Jn)||"Unknown")),u=Vn(t),u.payload={element:n},s=s===void 0?null:s,s!==null&&(typeof s!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",s),u.callback=s),n=ze(e,u,t),n!==null&&(Kt(n,e,t),fo(n,e,t))}function jh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function P0(e,t){jh(e,t),(e=e.alternate)&&jh(e,t)}function ep(e){if(e.tag===13){var t=Ol(e,67108864);t!==null&&Kt(t,e,67108864),P0(e,67108864)}}function Wg(){return Jn}function Ig(){for(var e=new Map,t=1,n=0;31>n;n++){var u=Qo(t);e.set(t,u),t*=2}return e}function Fg(e,t,n,u){var c=G.T;G.T=null;var s=Ne.p;try{Ne.p=Ll,Ro(e,t,n,u)}finally{Ne.p=s,G.T=c}}function Qh(e,t,n,u){var c=G.T;G.T=null;var s=Ne.p;try{Ne.p=Wa,Ro(e,t,n,u)}finally{Ne.p=s,G.T=c}}function Ro(e,t,n,u){if(Hg){var c=Zf(u);if(c===null)nn(e,t,u,wg,n),Do(e,u);else if($f(c,e,t,n,u))u.stopPropagation();else if(Do(e,u),t&4&&-1<gT.indexOf(e)){for(;c!==null;){var s=Gl(c);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var h=Hn(s.pendingLanes);if(h!==0){var p=s;for(p.pendingLanes|=2,p.entangledLanes|=2;h;){var b=1<<31-Kl(h);p.entanglements[1]|=b,h&=~b}pa(s),(Tt&(Fn|Xu))===Ia&&(gg=Xi()+eS,zc(0))}}break;case 13:p=Ol(s,2),p!==null&&Kt(p,s,2),Rc(),P0(s,2)}if(s=Zf(u),s===null&&nn(e,t,u,wg,n),s===c)break;c=s}c!==null&&u.stopPropagation()}else nn(e,t,u,null,n)}}function Zf(e){return e=ri(e),sr(e)}function sr(e){if(wg=null,e=ea(e),e!==null){var t=de(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ke(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return wg=e,null}function Zh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Ll;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Wa;case"message":switch(Uo()){case Ih:return Ll;case ld:return Wa;case pr:case ny:return ku;case nd:return tm;default:return ku}default:return ku}}function Do(e,t){switch(e){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":Br=null;break;case"pointerover":case"pointerout":ev.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tv.delete(t.pointerId)}}function An(e,t,n,u,c,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:u,nativeEvent:s,targetContainers:[c]},t!==null&&(t=Gl(t),t!==null&&ep(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function $f(e,t,n,u,c){switch(t){case"focusin":return Hr=An(Hr,e,t,n,u,c),!0;case"dragenter":return wr=An(wr,e,t,n,u,c),!0;case"mouseover":return Br=An(Br,e,t,n,u,c),!0;case"pointerover":var s=c.pointerId;return ev.set(s,An(ev.get(s)||null,e,t,n,u,c)),!0;case"gotpointercapture":return s=c.pointerId,tv.set(s,An(tv.get(s)||null,e,t,n,u,c)),!0}return!1}function qv(e){var t=ea(e.target);if(t!==null){var n=de(t);if(n!==null){if(t=n.tag,t===13){if(t=ke(n),t!==null){e.blockedOn=t,Od(e.priority,function(){if(n.tag===13){var u=En(n);u=Bt(u);var c=Ol(n,u);c!==null&&Kt(c,n,u),P0(n,u)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zf(e.nativeEvent);if(n===null){n=e.nativeEvent;var u=new n.constructor(n.type,n),c=u;r!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),r=c,n.target.dispatchEvent(u),r===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),r=null}else return t=Gl(n),t!==null&&ep(t),e.blockedOn=n,!1;t.shift()}return!0}function tp(e,t,n){Jf(e)&&n.delete(t)}function Yv(){ab=!1,Hr!==null&&Jf(Hr)&&(Hr=null),wr!==null&&Jf(wr)&&(wr=null),Br!==null&&Jf(Br)&&(Br=null),ev.forEach(tp),tv.forEach(tp)}function Kf(e,t){e.blockedOn===t&&(e.blockedOn=null,ab||(ab=!0,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,Yv)))}function Vv(e){Bg!==e&&(Bg=e,Pt.unstable_scheduleCallback(Pt.unstable_NormalPriority,function(){Bg===e&&(Bg=null);for(var t=0;t<e.length;t+=3){var n=e[t],u=e[t+1],c=e[t+2];if(typeof u!="function"){if(sr(u||n)===null)continue;break}var s=Gl(n);s!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:c,method:n.method,action:u},Object.freeze(n),gc(s,n,u,c))}}))}function Nc(e){function t(b){return Kf(b,e)}Hr!==null&&Kf(Hr,e),wr!==null&&Kf(wr,e),Br!==null&&Kf(Br,e),ev.forEach(t),tv.forEach(t);for(var n=0;n<kr.length;n++){var u=kr[n];u.blockedOn===e&&(u.blockedOn=null)}for(;0<kr.length&&(n=kr[0],n.blockedOn===null);)qv(n),n.blockedOn===null&&kr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(u=0;u<n.length;u+=3){var c=n[u],s=n[u+1],h=c[Rn]||null;if(typeof s=="function")h||Vv(n);else if(h){var p=null;if(s&&s.hasAttribute("formAction")){if(c=s,h=s[Rn]||null)p=h.formAction;else if(sr(c)!==null)continue}else p=h.action;typeof p=="function"?n[u+1]=p:(n.splice(u,3),u-=3),Vv(n)}}}function $h(e){this._internalRoot=e}function Wf(e){this._internalRoot=e}function Gv(e){e[Bo]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Pt=Ob(),If=pt,Pg=kg,Ke=Object.assign,Ff=Symbol.for("react.element"),zo=Symbol.for("react.transitional.element"),Lc=Symbol.for("react.portal"),je=Symbol.for("react.fragment"),rr=Symbol.for("react.strict_mode"),fr=Symbol.for("react.profiler"),lp=Symbol.for("react.provider"),Jh=Symbol.for("react.consumer"),ya=Symbol.for("react.context"),Uu=Symbol.for("react.forward_ref"),dr=Symbol.for("react.suspense"),Oo=Symbol.for("react.suspense_list"),Pf=Symbol.for("react.memo"),$n=Symbol.for("react.lazy"),np=Symbol.for("react.activity"),Xv=Symbol.for("react.memo_cache_sentinel"),ap=Symbol.iterator,Kh=Symbol.for("react.client.reference"),Ve=Array.isArray,G=If.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Pg.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ey=Object.freeze({pending:!1,data:null,method:null,action:null}),ed=[],td=[],ba=-1,Hu=Ce(null),hr=Ce(null),Gi=Ce(null),mr=Ce(null),wu=Object.prototype.hasOwnProperty,Wh=Pt.unstable_scheduleCallback,ty=Pt.unstable_cancelCallback,jv=Pt.unstable_shouldYield,ly=Pt.unstable_requestPaint,Xi=Pt.unstable_now,Uo=Pt.unstable_getCurrentPriorityLevel,Ih=Pt.unstable_ImmediatePriority,ld=Pt.unstable_UserBlockingPriority,pr=Pt.unstable_NormalPriority,ny=Pt.unstable_LowPriority,nd=Pt.unstable_IdlePriority,ay=Pt.log,Ka=Pt.unstable_setDisableYieldValue,Ho=null,Nl=null,he=null,Mn=!1,el=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Kl=Math.clz32?Math.clz32:au,Fh=Math.log,Bu=Math.LN2,Ph=256,em=4194304,Ll=2,Wa=8,ku=32,tm=268435456,wo=Math.random().toString(36).slice(2),Wl="__reactFiber$"+wo,Rn="__reactProps$"+wo,Bo="__reactContainer$"+wo,ip="__reactEvents$"+wo,Qv="__reactListeners$"+wo,vr="__reactHandles$"+wo,gr="__reactResources$"+wo,yr="__reactMarker$"+wo,Zv=new Set,Sa={},qc={},$v={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},lm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),nm={},am={},ko=0,up,op,Jv,cp,br,Kv,Wv;Zo.__reactDisabledLog=!0;var sp,ad,Sr=!1,id=new(typeof WeakMap=="function"?WeakMap:Map),Jn=null,Dn=!1,iy=/[\n"\\]/g,rp=!1,fp=!1,dp=!1,hp=!1,im=!1,mp=!1,ud=["value","defaultValue"],Iv=!1,Fv=/["'&<>\n\t]|^\s|\s$/,pp="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),um="applet caption html table td th marquee object template foreignObject desc title".split(" "),om=um.concat(["button"]),vp="dd dt li option optgroup p rp rt".split(" "),gp={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Tr={},ji={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Nu=/([A-Z])/g,Lu=/^ms-/,od=/^(?:webkit|moz|o)[A-Z]/,cd=/^-ms-/,No=/-(.)/g,Pv=/;\s*$/,Yc={},Vc={},eg=!1,yp=!1,sd=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),rd="http://www.w3.org/1998/Math/MathML",xr="http://www.w3.org/2000/svg",cm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Gc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},bp={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Qi={},Sp=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),sm=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Tp=!1,on={},fd=/^on./,l=/^on[^A-Z]/,a=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),i=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),o=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,r=null,d=null,g=null,y=!1,E=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),H=!1;if(E)try{var W={};Object.defineProperty(W,"passive",{get:function(){H=!0}}),window.addEventListener("test",W,W),window.removeEventListener("test",W,W)}catch{H=!1}var P=null,k=null,L=null,Ae={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Me=ul(Ae),ht=Ke({},Ae,{view:0,detail:0}),O=ul(ht),z,U,F,be=Ke({},ht,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==F&&(F&&e.type==="mousemove"?(z=e.screenX-F.screenX,U=e.screenY-F.screenY):U=z=0,F=e),z)},movementY:function(e){return"movementY"in e?e.movementY:U}}),Ie=ul(be),_e=Ke({},be,{dataTransfer:0}),He=ul(_e),Rl=Ke({},ht,{relatedTarget:0}),ct=ul(Rl),Lo=Ke({},Ae,{animationName:0,elapsedTime:0,pseudoElement:0}),uy=ul(Lo),m2=Ke({},Ae,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),p2=ul(m2),v2=Ke({},Ae,{data:0}),Bb=ul(v2),g2=Bb,y2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},b2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},S2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},T2=Ke({},ht,{key:function(e){if(e.key){var t=y2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?b2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nc,charCode:function(e){return e.type==="keypress"?vu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),x2=ul(T2),E2=Ke({},be,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kb=ul(E2),_2=Ke({},ht,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nc}),C2=ul(_2),A2=Ke({},Ae,{propertyName:0,elapsedTime:0,pseudoElement:0}),M2=ul(A2),R2=Ke({},be,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),D2=ul(R2),z2=Ke({},Ae,{newState:0,oldState:0}),O2=ul(z2),U2=[9,13,27,32],Nb=229,oy=E&&"CompositionEvent"in window,xp=null;E&&"documentMode"in document&&(xp=document.documentMode);var H2=E&&"TextEvent"in window&&!xp,Lb=E&&(!oy||xp&&8<xp&&11>=xp),qb=32,Yb=String.fromCharCode(qb),Vb=!1,rm=!1,w2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Ep=null,_p=null,Gb=!1;E&&(Gb=ss("input")&&(!document.documentMode||9<document.documentMode));var Kn=typeof Object.is=="function"?Object.is:Ld,B2=E&&"documentMode"in document&&11>=document.documentMode,fm=null,cy=null,Cp=null,sy=!1,dm={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},ry={},Xb={};E&&(Xb=document.createElement("div").style,"AnimationEvent"in window||(delete dm.animationend.animation,delete dm.animationiteration.animation,delete dm.animationstart.animation),"TransitionEvent"in window||delete dm.transitionend.transition);var jb=hi("animationend"),Qb=hi("animationiteration"),Zb=hi("animationstart"),k2=hi("transitionrun"),N2=hi("transitionstart"),L2=hi("transitioncancel"),$b=hi("transitionend"),Jb=new Map,fy="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");fy.push("scrollEnd");var dy=new WeakMap,hy=1,dd=2,Zi=[],hm=0,my=0,Er={};Object.freeze(Er);var $i=null,mm=null,Lt=0,q2=1,cn=2,zn=8,qu=16,Kb=64,Wb=!1;try{var Ib=Object.preventExtensions({})}catch{Wb=!0}var pm=[],vm=0,tg=null,lg=0,Ji=[],Ki=0,hd=null,Xc=1,jc="",Wn=null,sl=null,mt=!1,Qc=!1,Wi=null,md=null,qo=!1,py=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Fb=0;if(typeof performance=="object"&&typeof performance.now=="function")var Y2=performance,Pb=function(){return Y2.now()};else{var V2=Date;Pb=function(){return V2.now()}}var vy=Ce(null),gy=Ce(null),e1={},ng=null,gm=null,ym=!1,G2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},X2=Pt.unstable_scheduleCallback,j2=Pt.unstable_NormalPriority,ql={$$typeof:ya,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},bm=Pt.unstable_now,t1=-0,ag=-0,Ta=-1.1,pd=-0,ig=!1,ug=!1,Ap=null,yy=0,vd=0,Sm=null,l1=G.S;G.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&of(e,t),l1!==null&&l1(e,t)};var gd=Ce(null),Yu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Mp=[],Rp=[],Dp=[],zp=[],Op=[],Up=[],yd=new Set;Yu.recordUnsafeLifecycleWarnings=function(e,t){yd.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Mp.push(e),e.mode&zn&&typeof t.UNSAFE_componentWillMount=="function"&&Rp.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Dp.push(e),e.mode&zn&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&zp.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Op.push(e),e.mode&zn&&typeof t.UNSAFE_componentWillUpdate=="function"&&Up.push(e))},Yu.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Mp.length&&(Mp.forEach(function(p){e.add(me(p)||"Component"),yd.add(p.type)}),Mp=[]);var t=new Set;0<Rp.length&&(Rp.forEach(function(p){t.add(me(p)||"Component"),yd.add(p.type)}),Rp=[]);var n=new Set;0<Dp.length&&(Dp.forEach(function(p){n.add(me(p)||"Component"),yd.add(p.type)}),Dp=[]);var u=new Set;0<zp.length&&(zp.forEach(function(p){u.add(me(p)||"Component"),yd.add(p.type)}),zp=[]);var c=new Set;0<Op.length&&(Op.forEach(function(p){c.add(me(p)||"Component"),yd.add(p.type)}),Op=[]);var s=new Set;if(0<Up.length&&(Up.forEach(function(p){s.add(me(p)||"Component"),yd.add(p.type)}),Up=[]),0<t.size){var h=ne(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
987
|
-
|
|
988
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
989
|
-
|
|
990
|
-
Please update the following components: %s`,h)}0<u.size&&(h=ne(u),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
991
|
-
|
|
992
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
993
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
994
|
-
|
|
995
|
-
Please update the following components: %s`,h)),0<s.size&&(h=ne(s),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
996
|
-
|
|
997
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
998
|
-
|
|
999
|
-
Please update the following components: %s`,h)),0<e.size&&(h=ne(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
1000
|
-
|
|
1001
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
1002
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
1003
|
-
|
|
1004
|
-
Please update the following components: %s`,h)),0<n.size&&(h=ne(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
1005
|
-
|
|
1006
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
1007
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
1008
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
1009
|
-
|
|
1010
|
-
Please update the following components: %s`,h)),0<c.size&&(h=ne(c),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
1011
|
-
|
|
1012
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
1013
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
1014
|
-
|
|
1015
|
-
Please update the following components: %s`,h))};var og=new Map,n1=new Set;Yu.recordLegacyContextWarning=function(e,t){for(var n=null,u=e;u!==null;)u.mode&zn&&(n=u),u=u.return;n===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!n1.has(e.type)&&(u=og.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(u===void 0&&(u=[],og.set(n,u)),u.push(e))},Yu.flushLegacyContextWarning=function(){og.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(c){n.add(me(c)||"Component"),n1.add(c.type)});var u=ne(n);ye(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
1016
|
-
|
|
1017
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
1018
|
-
|
|
1019
|
-
Please update the following components: %s
|
|
1020
|
-
|
|
1021
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,u)})}})},Yu.discardPendingWarnings=function(){Mp=[],Rp=[],Dp=[],zp=[],Op=[],Up=[],og=new Map};var Hp=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),a1=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),cg=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),by={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},wp=null,sg=!1,Ii=0,Fi=1,In=2,sn=4,Yl=8,i1=0,u1=1,o1=2,Sy=3,_r=!1,c1=!1,Ty=null,xy=!1,Tm=Ce(null),rg=Ce(0),xm,s1=new Set,r1=new Set,Ey=new Set,f1=new Set,Cr=0,Ge=null,Dt=null,Dl=null,fg=!1,Em=!1,bd=!1,dg=0,Bp=0,Zc=null,Q2=0,Z2=25,j=null,Pi=null,$c=-1,kp=!1,hg={readContext:Et,use:xi,useCallback:Gt,useContext:Gt,useEffect:Gt,useImperativeHandle:Gt,useLayoutEffect:Gt,useInsertionEffect:Gt,useMemo:Gt,useReducer:Gt,useRef:Gt,useState:Gt,useDebugValue:Gt,useDeferredValue:Gt,useTransition:Gt,useSyncExternalStore:Gt,useId:Gt,useHostTransitionStatus:Gt,useFormState:Gt,useActionState:Gt,useOptimistic:Gt,useMemoCache:Gt,useCacheRefresh:Gt},_y=null,d1=null,Cy=null,h1=null,Yo=null,Vu=null,mg=null;_y={readContext:function(e){return Et(e)},use:xi,useCallback:function(e,t){return j="useCallback",We(),ca(t),yf(e,t)},useContext:function(e){return j="useContext",We(),Et(e)},useEffect:function(e,t){return j="useEffect",We(),ca(t),Gd(e,t)},useImperativeHandle:function(e,t,n){return j="useImperativeHandle",We(),ca(n),jd(e,t,n)},useInsertionEffect:function(e,t){j="useInsertionEffect",We(),ca(t),da(4,In,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",We(),ca(t),Xd(e,t)},useMemo:function(e,t){j="useMemo",We(),ca(t);var n=G.H;G.H=Yo;try{return Qd(e,t)}finally{G.H=n}},useReducer:function(e,t,n){j="useReducer",We();var u=G.H;G.H=Yo;try{return st(e,t,n)}finally{G.H=u}},useRef:function(e){return j="useRef",We(),gf(e)},useState:function(e){j="useState",We();var t=G.H;G.H=Yo;try{return Tu(e)}finally{G.H=t}},useDebugValue:function(){j="useDebugValue",We()},useDeferredValue:function(e,t){return j="useDeferredValue",We(),Zd(e,t)},useTransition:function(){return j="useTransition",We(),Ai()},useSyncExternalStore:function(e,t,n){return j="useSyncExternalStore",We(),Su(e,t,n)},useId:function(){return j="useId",We(),Mi()},useFormState:function(e,t){return j="useFormState",We(),Bs(),Vs(e,t)},useActionState:function(e,t){return j="useActionState",We(),Vs(e,t)},useOptimistic:function(e){return j="useOptimistic",We(),ja(e)},useHostTransitionStatus:Sn,useMemoCache:nl,useCacheRefresh:function(){return j="useCacheRefresh",We(),yc()}},d1={readContext:function(e){return Et(e)},use:xi,useCallback:function(e,t){return j="useCallback",le(),yf(e,t)},useContext:function(e){return j="useContext",le(),Et(e)},useEffect:function(e,t){return j="useEffect",le(),Gd(e,t)},useImperativeHandle:function(e,t,n){return j="useImperativeHandle",le(),jd(e,t,n)},useInsertionEffect:function(e,t){j="useInsertionEffect",le(),da(4,In,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",le(),Xd(e,t)},useMemo:function(e,t){j="useMemo",le();var n=G.H;G.H=Yo;try{return Qd(e,t)}finally{G.H=n}},useReducer:function(e,t,n){j="useReducer",le();var u=G.H;G.H=Yo;try{return st(e,t,n)}finally{G.H=u}},useRef:function(e){return j="useRef",le(),gf(e)},useState:function(e){j="useState",le();var t=G.H;G.H=Yo;try{return Tu(e)}finally{G.H=t}},useDebugValue:function(){j="useDebugValue",le()},useDeferredValue:function(e,t){return j="useDeferredValue",le(),Zd(e,t)},useTransition:function(){return j="useTransition",le(),Ai()},useSyncExternalStore:function(e,t,n){return j="useSyncExternalStore",le(),Su(e,t,n)},useId:function(){return j="useId",le(),Mi()},useActionState:function(e,t){return j="useActionState",le(),Vs(e,t)},useFormState:function(e,t){return j="useFormState",le(),Bs(),Vs(e,t)},useOptimistic:function(e){return j="useOptimistic",le(),ja(e)},useHostTransitionStatus:Sn,useMemoCache:nl,useCacheRefresh:function(){return j="useCacheRefresh",le(),yc()}},Cy={readContext:function(e){return Et(e)},use:xi,useCallback:function(e,t){return j="useCallback",le(),vc(e,t)},useContext:function(e){return j="useContext",le(),Et(e)},useEffect:function(e,t){j="useEffect",le(),ml(2048,Yl,e,t)},useImperativeHandle:function(e,t,n){return j="useImperativeHandle",le(),Ci(e,t,n)},useInsertionEffect:function(e,t){return j="useInsertionEffect",le(),ml(4,In,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",le(),ml(4,sn,e,t)},useMemo:function(e,t){j="useMemo",le();var n=G.H;G.H=Vu;try{return go(e,t)}finally{G.H=n}},useReducer:function(e,t,n){j="useReducer",le();var u=G.H;G.H=Vu;try{return ra(e,t,n)}finally{G.H=u}},useRef:function(){return j="useRef",le(),ut().memoizedState},useState:function(){j="useState",le();var e=G.H;G.H=Vu;try{return ra(ft)}finally{G.H=e}},useDebugValue:function(){j="useDebugValue",le()},useDeferredValue:function(e,t){return j="useDeferredValue",le(),bf(e,t)},useTransition:function(){return j="useTransition",le(),Kd()},useSyncExternalStore:function(e,t,n){return j="useSyncExternalStore",le(),hf(e,t,n)},useId:function(){return j="useId",le(),ut().memoizedState},useFormState:function(e){return j="useFormState",le(),Bs(),Vd(e)},useActionState:function(e){return j="useActionState",le(),Vd(e)},useOptimistic:function(e,t){return j="useOptimistic",le(),xu(e,t)},useHostTransitionStatus:Sn,useMemoCache:nl,useCacheRefresh:function(){return j="useCacheRefresh",le(),ut().memoizedState}},h1={readContext:function(e){return Et(e)},use:xi,useCallback:function(e,t){return j="useCallback",le(),vc(e,t)},useContext:function(e){return j="useContext",le(),Et(e)},useEffect:function(e,t){j="useEffect",le(),ml(2048,Yl,e,t)},useImperativeHandle:function(e,t,n){return j="useImperativeHandle",le(),Ci(e,t,n)},useInsertionEffect:function(e,t){return j="useInsertionEffect",le(),ml(4,In,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",le(),ml(4,sn,e,t)},useMemo:function(e,t){j="useMemo",le();var n=G.H;G.H=mg;try{return go(e,t)}finally{G.H=n}},useReducer:function(e,t,n){j="useReducer",le();var u=G.H;G.H=mg;try{return pc(e,t,n)}finally{G.H=u}},useRef:function(){return j="useRef",le(),ut().memoizedState},useState:function(){j="useState",le();var e=G.H;G.H=mg;try{return pc(ft)}finally{G.H=e}},useDebugValue:function(){j="useDebugValue",le()},useDeferredValue:function(e,t){return j="useDeferredValue",le(),$d(e,t)},useTransition:function(){return j="useTransition",le(),Wd()},useSyncExternalStore:function(e,t,n){return j="useSyncExternalStore",le(),hf(e,t,n)},useId:function(){return j="useId",le(),ut().memoizedState},useFormState:function(e){return j="useFormState",le(),Bs(),Gs(e)},useActionState:function(e){return j="useActionState",le(),Gs(e)},useOptimistic:function(e,t){return j="useOptimistic",le(),Yd(e,t)},useHostTransitionStatus:Sn,useMemoCache:nl,useCacheRefresh:function(){return j="useCacheRefresh",le(),ut().memoizedState}},Yo={readContext:function(e){return Y(),Et(e)},use:function(e){return M(),xi(e)},useCallback:function(e,t){return j="useCallback",M(),We(),yf(e,t)},useContext:function(e){return j="useContext",M(),We(),Et(e)},useEffect:function(e,t){return j="useEffect",M(),We(),Gd(e,t)},useImperativeHandle:function(e,t,n){return j="useImperativeHandle",M(),We(),jd(e,t,n)},useInsertionEffect:function(e,t){j="useInsertionEffect",M(),We(),da(4,In,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",M(),We(),Xd(e,t)},useMemo:function(e,t){j="useMemo",M(),We();var n=G.H;G.H=Yo;try{return Qd(e,t)}finally{G.H=n}},useReducer:function(e,t,n){j="useReducer",M(),We();var u=G.H;G.H=Yo;try{return st(e,t,n)}finally{G.H=u}},useRef:function(e){return j="useRef",M(),We(),gf(e)},useState:function(e){j="useState",M(),We();var t=G.H;G.H=Yo;try{return Tu(e)}finally{G.H=t}},useDebugValue:function(){j="useDebugValue",M(),We()},useDeferredValue:function(e,t){return j="useDeferredValue",M(),We(),Zd(e,t)},useTransition:function(){return j="useTransition",M(),We(),Ai()},useSyncExternalStore:function(e,t,n){return j="useSyncExternalStore",M(),We(),Su(e,t,n)},useId:function(){return j="useId",M(),We(),Mi()},useFormState:function(e,t){return j="useFormState",M(),We(),Vs(e,t)},useActionState:function(e,t){return j="useActionState",M(),We(),Vs(e,t)},useOptimistic:function(e){return j="useOptimistic",M(),We(),ja(e)},useMemoCache:function(e){return M(),nl(e)},useHostTransitionStatus:Sn,useCacheRefresh:function(){return j="useCacheRefresh",We(),yc()}},Vu={readContext:function(e){return Y(),Et(e)},use:function(e){return M(),xi(e)},useCallback:function(e,t){return j="useCallback",M(),le(),vc(e,t)},useContext:function(e){return j="useContext",M(),le(),Et(e)},useEffect:function(e,t){j="useEffect",M(),le(),ml(2048,Yl,e,t)},useImperativeHandle:function(e,t,n){return j="useImperativeHandle",M(),le(),Ci(e,t,n)},useInsertionEffect:function(e,t){return j="useInsertionEffect",M(),le(),ml(4,In,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",M(),le(),ml(4,sn,e,t)},useMemo:function(e,t){j="useMemo",M(),le();var n=G.H;G.H=Vu;try{return go(e,t)}finally{G.H=n}},useReducer:function(e,t,n){j="useReducer",M(),le();var u=G.H;G.H=Vu;try{return ra(e,t,n)}finally{G.H=u}},useRef:function(){return j="useRef",M(),le(),ut().memoizedState},useState:function(){j="useState",M(),le();var e=G.H;G.H=Vu;try{return ra(ft)}finally{G.H=e}},useDebugValue:function(){j="useDebugValue",M(),le()},useDeferredValue:function(e,t){return j="useDeferredValue",M(),le(),bf(e,t)},useTransition:function(){return j="useTransition",M(),le(),Kd()},useSyncExternalStore:function(e,t,n){return j="useSyncExternalStore",M(),le(),hf(e,t,n)},useId:function(){return j="useId",M(),le(),ut().memoizedState},useFormState:function(e){return j="useFormState",M(),le(),Vd(e)},useActionState:function(e){return j="useActionState",M(),le(),Vd(e)},useOptimistic:function(e,t){return j="useOptimistic",M(),le(),xu(e,t)},useMemoCache:function(e){return M(),nl(e)},useHostTransitionStatus:Sn,useCacheRefresh:function(){return j="useCacheRefresh",le(),ut().memoizedState}},mg={readContext:function(e){return Y(),Et(e)},use:function(e){return M(),xi(e)},useCallback:function(e,t){return j="useCallback",M(),le(),vc(e,t)},useContext:function(e){return j="useContext",M(),le(),Et(e)},useEffect:function(e,t){j="useEffect",M(),le(),ml(2048,Yl,e,t)},useImperativeHandle:function(e,t,n){return j="useImperativeHandle",M(),le(),Ci(e,t,n)},useInsertionEffect:function(e,t){return j="useInsertionEffect",M(),le(),ml(4,In,e,t)},useLayoutEffect:function(e,t){return j="useLayoutEffect",M(),le(),ml(4,sn,e,t)},useMemo:function(e,t){j="useMemo",M(),le();var n=G.H;G.H=Vu;try{return go(e,t)}finally{G.H=n}},useReducer:function(e,t,n){j="useReducer",M(),le();var u=G.H;G.H=Vu;try{return pc(e,t,n)}finally{G.H=u}},useRef:function(){return j="useRef",M(),le(),ut().memoizedState},useState:function(){j="useState",M(),le();var e=G.H;G.H=Vu;try{return pc(ft)}finally{G.H=e}},useDebugValue:function(){j="useDebugValue",M(),le()},useDeferredValue:function(e,t){return j="useDeferredValue",M(),le(),$d(e,t)},useTransition:function(){return j="useTransition",M(),le(),Wd()},useSyncExternalStore:function(e,t,n){return j="useSyncExternalStore",M(),le(),hf(e,t,n)},useId:function(){return j="useId",M(),le(),ut().memoizedState},useFormState:function(e){return j="useFormState",M(),le(),Gs(e)},useActionState:function(e){return j="useActionState",M(),le(),Gs(e)},useOptimistic:function(e,t){return j="useOptimistic",M(),le(),Yd(e,t)},useMemoCache:function(e){return M(),nl(e)},useHostTransitionStatus:Sn,useCacheRefresh:function(){return j="useCacheRefresh",le(),ut().memoizedState}};var m1={"react-stack-bottom-frame":function(e,t,n){var u=Dn;Dn=!0;try{return e(t,n)}finally{Dn=u}}},Ay=m1["react-stack-bottom-frame"].bind(m1),p1={"react-stack-bottom-frame":function(e){var t=Dn;Dn=!0;try{return e.render()}finally{Dn=t}}},v1=p1["react-stack-bottom-frame"].bind(p1),g1={"react-stack-bottom-frame":function(e,t){try{t.componentDidMount()}catch(n){Ue(e,e.return,n)}}},My=g1["react-stack-bottom-frame"].bind(g1),y1={"react-stack-bottom-frame":function(e,t,n,u,c){try{t.componentDidUpdate(n,u,c)}catch(s){Ue(e,e.return,s)}}},b1=y1["react-stack-bottom-frame"].bind(y1),S1={"react-stack-bottom-frame":function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n!==null?n:""})}},$2=S1["react-stack-bottom-frame"].bind(S1),T1={"react-stack-bottom-frame":function(e,t,n){try{n.componentWillUnmount()}catch(u){Ue(e,t,u)}}},x1=T1["react-stack-bottom-frame"].bind(T1),E1={"react-stack-bottom-frame":function(e){e.resourceKind!=null&&console.error("Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",e.resourceKind);var t=e.create;return e=e.inst,t=t(),e.destroy=t}},J2=E1["react-stack-bottom-frame"].bind(E1),_1={"react-stack-bottom-frame":function(e,t,n){try{n()}catch(u){Ue(e,t,u)}}},K2=_1["react-stack-bottom-frame"].bind(_1),C1={"react-stack-bottom-frame":function(e){var t=e._init;return t(e._payload)}},Ar=C1["react-stack-bottom-frame"].bind(C1),_m=null,Np=0,Fe=null,Ry,A1=Ry=!1,M1={},R1={},D1={};X=function(e,t,n){if(n!==null&&typeof n=="object"&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");n._store.validated=1;var u=me(e),c=u||"null";if(!M1[c]){M1[c]=!0,n=n._owner,e=e._debugOwner;var s="";e&&typeof e.tag=="number"&&(c=me(e))&&(s=`
|
|
1022
|
-
|
|
1023
|
-
Check the render method of \``+c+"`."),s||u&&(s=`
|
|
1024
|
-
|
|
1025
|
-
Check the top-level render call using <`+u+">.");var h="";n!=null&&e!==n&&(u=null,typeof n.tag=="number"?u=me(n):typeof n.name=="string"&&(u=n.name),u&&(h=" It was passed a child from "+u+".")),ye(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',s,h)})}}};var Cm=Ef(!0),z1=Ef(!1),eu=Ce(null),Vo=null,Am=1,Lp=2,Vl=Ce(0),O1={},U1=new Set,H1=new Set,w1=new Set,B1=new Set,k1=new Set,N1=new Set,L1=new Set,q1=new Set,Y1=new Set,V1=new Set;Object.freeze(O1);var Dy={enqueueSetState:function(e,t,n){e=e._reactInternals;var u=En(e),c=Vn(u);c.payload=t,n!=null&&(e0(n),c.callback=n),t=ze(e,c,u),t!==null&&(Kt(t,e,u),fo(t,e,u)),Un(e,u)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var u=En(e),c=Vn(u);c.tag=u1,c.payload=t,n!=null&&(e0(n),c.callback=n),t=ze(e,c,u),t!==null&&(Kt(t,e,u),fo(t,e,u)),Un(e,u)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=En(e),u=Vn(n);u.tag=o1,t!=null&&(e0(t),u.callback=t),t=ze(e,u,n),t!==null&&(Kt(t,e,n),fo(t,e,n)),he!==null&&typeof he.markForceUpdateScheduled=="function"&&he.markForceUpdateScheduled(e,n)}},zy=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Mm=null,Oy=null,G1=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Il=!1,X1={},j1={},Q1={},Z1={},Rm=!1,$1={},Uy={},Hy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},J1=!1,K1=null;K1=new Set;var Jc=!1,gl=!1,wy=!1,W1=typeof WeakSet=="function"?WeakSet:Set,Fl=null,Dm=null,zm=null,zl=null,xa=!1,Gu=null,qp=8192,W2={getCacheForType:function(e){var t=Et(ql),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},getOwner:function(){return Jn}};if(typeof Symbol=="function"&&Symbol.for){var Yp=Symbol.for;Yp("selector.component"),Yp("selector.has_pseudo_class"),Yp("selector.role"),Yp("selector.test_id"),Yp("selector.text")}var I2=[],F2=typeof WeakMap=="function"?WeakMap:Map,Ia=0,Fn=2,Xu=4,Kc=0,Vp=1,Om=2,By=3,Sd=4,pg=6,I1=5,Tt=Ia,Ut=null,nt=null,it=0,Ea=0,Gp=1,Td=2,Xp=3,F1=4,ky=5,Um=6,jp=7,Ny=8,xd=9,At=Ea,Fa=null,Mr=!1,Hm=!1,Ly=!1,Go=0,rl=Kc,Rr=0,Dr=0,qy=0,Pa=0,Ed=0,Qp=null,Pn=null,vg=!1,Yy=0,P1=300,gg=1/0,eS=500,Zp=null,zr=null,P2=0,eT=1,tT=2,_d=0,tS=1,lS=2,nS=3,lT=4,Vy=5,rn=0,Or=null,wm=null,Ur=0,Gy=0,Xy=null,aS=null,nT=50,$p=0,jy=null,Qy=!1,yg=!1,aT=50,Cd=0,Jp=null,Bm=!1,bg=null,iS=!1,uS=new Set,iT={},Sg=null,km=null,Zy=!1,$y=!1,Tg=!1,Jy=!1,Ad=0,Ky={};(function(){for(var e=0;e<fy.length;e++){var t=fy[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),hn(n,"on"+t)}hn(jb,"onAnimationEnd"),hn(Qb,"onAnimationIteration"),hn(Zb,"onAnimationStart"),hn("dblclick","onDoubleClick"),hn("focusin","onFocus"),hn("focusout","onBlur"),hn(k2,"onTransitionRun"),hn(N2,"onTransitionStart"),hn(L2,"onTransitionCancel"),hn($b,"onTransitionEnd")})(),ti("onMouseEnter",["mouseout","mouseover"]),ti("onMouseLeave",["mouseout","mouseover"]),ti("onPointerEnter",["pointerout","pointerover"]),ti("onPointerLeave",["pointerout","pointerover"]),Ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Wy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kp)),xg="_reactListening"+Math.random().toString(36).slice(2),oS=!1,cS=!1,Eg=!1,sS=!1,_g=!1,Cg=!1,rS=!1,Ag={},uT=/\r\n?/g,oT=/\u0000|\uFFFD/g,Md="http://www.w3.org/1999/xlink",Iy="http://www.w3.org/XML/1998/namespace",cT="javascript:throw new Error('React form unexpectedly submitted.')",sT="suppressHydrationWarning",Mg="$",Rg="/$",Wc="$?",Wp="$!",rT=1,fT=2,dT=4,Fy="F!",fS="F",dS="complete",hT="style",Ic=0,Nm=1,Dg=2,Py=null,eb=null,hS={dialog:!0,webview:!0},tb=null,mS=typeof setTimeout=="function"?setTimeout:void 0,mT=typeof clearTimeout=="function"?clearTimeout:void 0,Rd=-1,pS=typeof Promise=="function"?Promise:void 0,pT=typeof queueMicrotask=="function"?queueMicrotask:typeof pS<"u"?function(e){return pS.resolve(null).then(e).catch(Y0)}:mS,lb=null,Dd=0,Ip=1,vS=2,gS=3,tu=4,lu=new Map,yS=new Set,Fc=Ne.d;Ne.d={f:function(){var e=Fc.f(),t=Rc();return e||t},r:function(e){var t=Gl(e);t!==null&&t.tag===5&&t.type==="form"?Im(t):Fc.r(e)},D:function(e){Fc.D(e),Hv("dns-prefetch",e,null)},C:function(e,t){Fc.C(e,t),Hv("preconnect",e,t)},L:function(e,t,n){Fc.L(e,t,n);var u=Lm;if(u&&e&&t){var c='link[rel="preload"][as="'+Xl(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+Xl(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+Xl(n.imageSizes)+'"]')):c+='[href="'+Xl(e)+'"]';var s=c;switch(t){case"style":s=Mo(e);break;case"script":s=Bc(e)}lu.has(s)||(e=Ke({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),lu.set(s,e),u.querySelector(c)!==null||t==="style"&&u.querySelector(Vi(s))||t==="script"&&u.querySelector(kc(s))||(t=u.createElement("link"),It(t,"link",e),tl(t),u.head.appendChild(t)))}},m:function(e,t){Fc.m(e,t);var n=Lm;if(n&&e){var u=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+Xl(u)+'"][href="'+Xl(e)+'"]',s=c;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Bc(e)}if(!lu.has(s)&&(e=Ke({rel:"modulepreload",href:e},t),lu.set(s,e),n.querySelector(c)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(kc(s)))return}u=n.createElement("link"),It(u,"link",e),tl(u),n.head.appendChild(u)}}},X:function(e,t){Fc.X(e,t);var n=Lm;if(n&&e){var u=wn(n).hoistableScripts,c=Bc(e),s=u.get(c);s||(s=n.querySelector(kc(c)),s||(e=Ke({src:e,async:!0},t),(t=lu.get(c))&&J0(e,t),s=n.createElement("script"),tl(s),It(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},u.set(c,s))}},S:function(e,t,n){Fc.S(e,t,n);var u=Lm;if(u&&e){var c=wn(u).hoistableStyles,s=Mo(e);t=t||"default";var h=c.get(s);if(!h){var p={loading:Dd,preload:null};if(h=u.querySelector(Vi(s)))p.loading=Ip|tu;else{e=Ke({rel:"stylesheet",href:e,"data-precedence":t},n),(n=lu.get(s))&&$0(e,n);var b=h=u.createElement("link");tl(b),It(b,"link",e),b._p=new Promise(function(S,N){b.onload=S,b.onerror=N}),b.addEventListener("load",function(){p.loading|=Ip}),b.addEventListener("error",function(){p.loading|=vS}),p.loading|=tu,Vh(h,t,u)}h={type:"stylesheet",instance:h,count:1,state:p},c.set(s,h)}}},M:function(e,t){Fc.M(e,t);var n=Lm;if(n&&e){var u=wn(n).hoistableScripts,c=Bc(e),s=u.get(c);s||(s=n.querySelector(kc(c)),s||(e=Ke({src:e,async:!0,type:"module"},t),(t=lu.get(c))&&J0(e,t),s=n.createElement("script"),tl(s),It(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},u.set(c,s))}}};var Lm=typeof document>"u"?null:document,zg=null,Fp=null,nb=null,Og=null,zd=ey,Pp={$$typeof:ya,Provider:null,Consumer:null,_currentValue:zd,_currentValue2:zd,_threadCount:0},bS="%c%s%c ",SS="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",TS="",Ug=" ",vT=Function.prototype.bind,xS=!1,ES=null,_S=null,CS=null,AS=null,MS=null,RS=null,DS=null,zS=null,OS=null;ES=function(e,t,n,u){t=x(e,t),t!==null&&(n=f(t.memoizedState,n,0,u),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ke({},e.memoizedProps),n=Ol(e,2),n!==null&&Kt(n,e,2))},_S=function(e,t,n){t=x(e,t),t!==null&&(n=T(t.memoizedState,n,0),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ke({},e.memoizedProps),n=Ol(e,2),n!==null&&Kt(n,e,2))},CS=function(e,t,n,u){t=x(e,t),t!==null&&(n=v(t.memoizedState,n,u),t.memoizedState=n,t.baseState=n,e.memoizedProps=Ke({},e.memoizedProps),n=Ol(e,2),n!==null&&Kt(n,e,2))},AS=function(e,t,n){e.pendingProps=f(e.memoizedProps,t,0,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ol(e,2),t!==null&&Kt(t,e,2)},MS=function(e,t){e.pendingProps=T(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ol(e,2),t!==null&&Kt(t,e,2)},RS=function(e,t,n){e.pendingProps=v(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Ol(e,2),t!==null&&Kt(t,e,2)},DS=function(e){var t=Ol(e,2);t!==null&&Kt(t,e,2)},zS=function(e){w=e},OS=function(e){A=e};var Hg=!0,wg=null,ab=!1,Hr=null,wr=null,Br=null,ev=new Map,tv=new Map,kr=[],gT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),Bg=null;if(Wf.prototype.render=$h.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var n=arguments;typeof n[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):ae(n[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof n[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),n=e;var u=t.current,c=En(u);St(u,c,n,t,null,null)},Wf.prototype.unmount=$h.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Tt&(Fn|Xu))!==Ia&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),St(e.current,2,null,e,null,null),Rc(),t[Bo]=null}},Wf.prototype.unstable_scheduleHydration=function(e){if(e){var t=qr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kr.length&&t!==0&&t<kr[n].priority;n++);kr.splice(n,0,e),n===0&&qv(e)}},function(){var e=If.version;if(e!=="19.1.0")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
1026
|
-
- react: `+(e+`
|
|
1027
|
-
- react-dom: 19.1.0
|
|
1028
|
-
Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Ne.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=xe(t),e=e!==null?Ye(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.1.0"};return e.overrideHookState=ES,e.overrideHookStateDeletePath=_S,e.overrideHookStateRenamePath=CS,e.overrideProps=AS,e.overridePropsDeletePath=MS,e.overridePropsRenamePath=RS,e.scheduleUpdate=DS,e.setErrorHandler=zS,e.setSuspenseHandler=OS,e.scheduleRefresh=ce,e.scheduleRoot=oe,e.setRefreshHandler=ue,e.getCurrentFiber=Wg,e.getLaneLabelMap=Ig,e.injectProfilingHooks=fn,rt(e)}()&&E&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var US=window.location.protocol;/^(https?|file):$/.test(US)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(US==="file:"?`
|
|
1029
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}jm.createRoot=function(e,t){if(!ae(e))throw Error("Target container is not a DOM element.");Gv(e);var n=!1,u="",c=t0,s=gv,h=eh,p=null;return t!=null&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===zo&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
1030
|
-
|
|
1031
|
-
let root = createRoot(domContainer);
|
|
1032
|
-
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(p=t.unstable_transitionCallbacks)),t=I0(e,1,!1,null,null,n,u,c,s,h,p,null),e[Bo]=t.current,H0(e),new $h(t)},jm.hydrateRoot=function(e,t,n){if(!ae(e))throw Error("Target container is not a DOM element.");Gv(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=!1,c="",s=t0,h=gv,p=eh,b=null,S=null;return n!=null&&(n.unstable_strictMode===!0&&(u=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(b=n.unstable_transitionCallbacks),n.formState!==void 0&&(S=n.formState)),t=I0(e,1,!0,t,n??null,u,c,s,h,p,b,S),t.context=F0(null),n=t.current,u=En(n),u=Bt(u),c=Vn(u),c.callback=null,ze(n,c,u),n=u,t.current.lanes=n,Pl(t,n),pa(t),e[Bo]=t.current,H0(e),new Wf(t)},jm.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),jm}var wb;function r2(){if(wb)return dv.exports;wb=1;function x(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x)}catch(f){console.error(f)}}}return process.env.NODE_ENV==="production"?(x(),dv.exports=c2()):dv.exports=s2(),dv.exports}var f2=r2();function _a(x){const f=document.createElement("div");return kg.flushSync(()=>{f2.createRoot(f).render(fv.jsx(fv.Fragment,{children:x}))}),f}const d2=x=>{const f=pt.useRef(null);return pt.useEffect(()=>{const v=f.current;v&&v.onMessageClick(x.onMessageClick)},[x.onMessageClick,f]),pt.useEffect(()=>{const v=f.current;v&&v.onMessageActionClick(x.onMessageActionClick)},[x.onMessageActionClick,f]),pt.useEffect(()=>{const v=f.current;v&&v.onMessageLongPress(x.onMessageLongPress)},[x.onMessageLongPress,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderHeader||queueMicrotask(()=>{v.setHeader(m=>{const T=x.renderHeader(m);return _a(T)})})},[x.renderHeader,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderListItem||queueMicrotask(()=>{v.setListItem(m=>{const T=x.renderListItem(m);return _a(T)})})},[x.renderListItem,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderEmptyState||queueMicrotask(()=>{v.setEmptyState(m=>{const T=x.renderEmptyState(m);return _a(T)})})},[x.renderEmptyState,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderLoadingState||queueMicrotask(()=>{v.setLoadingState(m=>{const T=x.renderLoadingState(m);return _a(T)})})},[x.renderLoadingState,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderErrorState||queueMicrotask(()=>{v.setErrorState(m=>{const T=x.renderErrorState(m);return _a(T)})})},[x.renderErrorState,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderPaginationItem||queueMicrotask(()=>{v.setPaginationItem(m=>{const T=x.renderPaginationItem(m);return _a(T)})})},[x.renderPaginationItem,f]),pt.useEffect(()=>{const v=f.current;v&&queueMicrotask(()=>{v.setFeedType(x.feedType||"inbox")})},[x.feedType,f]),fv.jsx("courier-inbox",{ref:f,height:x.height,"light-theme":x.lightTheme?JSON.stringify(x.lightTheme):void 0,"dark-theme":x.darkTheme?JSON.stringify(x.darkTheme):void 0,mode:x.mode})},h2=x=>{const f=pt.useRef(null);return pt.useEffect(()=>{const v=f.current;v&&v.onMessageClick(x.onMessageClick)},[x.onMessageClick,f]),pt.useEffect(()=>{const v=f.current;v&&v.onMessageActionClick(x.onMessageActionClick)},[x.onMessageActionClick,f]),pt.useEffect(()=>{const v=f.current;v&&v.onMessageLongPress(x.onMessageLongPress)},[x.onMessageLongPress,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderPopupHeader||queueMicrotask(()=>{v.setPopupHeader(m=>{const T=x.renderPopupHeader(m);return _a(T)})})},[x.renderPopupHeader,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderPopupListItem||queueMicrotask(()=>{v.setPopupListItem(m=>{const T=x.renderPopupListItem(m);return _a(T)})})},[x.renderPopupListItem,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderPopupEmptyState||queueMicrotask(()=>{v.setPopupEmptyState(m=>{const T=x.renderPopupEmptyState(m);return _a(T)})})},[x.renderPopupEmptyState,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderPopupLoadingState||queueMicrotask(()=>{v.setPopupLoadingState(m=>{const T=x.renderPopupLoadingState(m);return _a(T)})})},[x.renderPopupLoadingState,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderPopupErrorState||queueMicrotask(()=>{v.setPopupErrorState(m=>{const T=x.renderPopupErrorState(m);return _a(T)})})},[x.renderPopupErrorState,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderPopupPaginationItem||queueMicrotask(()=>{v.setPopupPaginationItem(m=>{const T=x.renderPopupPaginationItem(m);return _a(T)})})},[x.renderPopupPaginationItem,f]),pt.useEffect(()=>{const v=f.current;!v||!x.renderPopupMenuButton||queueMicrotask(()=>{v.setPopupMenuButton(m=>{const T=x.renderPopupMenuButton(m);return _a(T)})})},[x.renderPopupMenuButton,f]),pt.useEffect(()=>{const v=f.current;v&&queueMicrotask(()=>{v.setFeedType(x.feedType||"inbox")})},[x.feedType,f]),fv.jsx("courier-inbox-menu",{ref:f,"popup-alignment":x.popupAlignment,"popup-width":x.popupWidth,"popup-height":x.popupHeight,left:x.left,top:x.top,right:x.right,bottom:x.bottom,"light-theme":x.lightTheme?JSON.stringify(x.lightTheme):void 0,"dark-theme":x.darkTheme?JSON.stringify(x.darkTheme):void 0,mode:x.mode})};ju.CourierInbox=d2,ju.CourierInboxMenu=h2,ju.useCourier=l2,Object.defineProperty(ju,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("object-assign"),require("react-dom"),require("react-dom/client")):"function"==typeof define&&define.amd?define(["exports","react","object-assign","react-dom","react-dom/client"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).CourierReact={},e.React,e.ObjectAssign,e.ReactDOM,e.ReactDOMClient)}(this,(function(e,t,n,i,o){"use strict";var s=Object.defineProperty;function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}const a=r(i);var l=Object.defineProperty,d=(e,t,n)=>((e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);const u=class e{constructor(e,t){d(this,"webSocket",null),d(this,"pingInterval",null),d(this,"onOpen"),d(this,"onMessageReceived"),d(this,"onClose"),d(this,"onError"),d(this,"url"),d(this,"options"),this.url=e,this.options=t}get isConnected(){return null!==this.webSocket}async connect(){return this.disconnect(),new Promise(((e,t)=>{try{this.webSocket=new WebSocket(this.url),this.webSocket.onopen=()=>{var t;null==(t=this.onOpen)||t.call(this),e()},this.webSocket.onmessage=e=>{var t;null==(t=this.onMessageReceived)||t.call(this,e.data)},this.webSocket.onclose=e=>{var t;this.webSocket=null,null==(t=this.onClose)||t.call(this,e.code,e.reason)},this.webSocket.onerror=e=>{var n;this.webSocket=null;const i=new Error("Courier Socket connection failed");i.originalEvent=e,null==(n=this.onError)||n.call(this,i),t(i)}}catch(n){this.webSocket=null,t(n)}}))}disconnect(){this.stopPing(),this.webSocket&&(this.webSocket.close(e.NORMAL_CLOSURE_STATUS),this.webSocket=null)}async send(e){if(!this.webSocket)return!1;const t=JSON.stringify(e);return void 0!==this.webSocket.send(t)}keepAlive(e){this.stopPing(),this.pingInterval=setInterval((async()=>{var e;try{await this.send({action:"keepAlive"})}catch(t){null==(e=this.options.logger)||e.error("Error occurred on Keep Alive:",t)}}),(null==e?void 0:e.intervalInMillis)??3e5)}stopPing(){this.pingInterval&&(clearInterval(this.pingInterval),this.pingInterval=null)}};d(u,"NORMAL_CLOSURE_STATUS",1e3);let c=u;const h=e=>({courier:{rest:(null==e?void 0:e.courier.rest)||"https://api.courier.com",graphql:(null==e?void 0:e.courier.graphql)||"https://api.courier.com/client/q"},inbox:{graphql:(null==e?void 0:e.inbox.graphql)||"https://inbox.courier.com/q",webSocket:(null==e?void 0:e.inbox.webSocket)||"wss://realtime.courier.io"}});class p{constructor(e){d(this,"PREFIX","[COURIER]"),this.showLogs=e}warn(e,...t){this.showLogs&&console.warn(`${this.PREFIX} ${e}`,...t)}log(e,...t){this.showLogs&&console.log(`${this.PREFIX} ${e}`,...t)}error(e,...t){this.showLogs&&console.error(`${this.PREFIX} ${e}`,...t)}debug(e,...t){this.showLogs&&console.debug(`${this.PREFIX} ${e}`,...t)}info(e,...t){this.showLogs&&console.info(`${this.PREFIX} ${e}`,...t)}}class v{static generate(e){const t=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);return e?e+t:t}}class g extends Error{constructor(e,t,n){super(t),this.code=e,this.type=n,this.name="CourierRequestError"}}function m(e,t,n,i){e.log(`\n📡 New Courier ${n} Request: ${t}\nURL: ${i.url}\n${i.method?`Method: ${i.method}`:""}\n${i.query?`Query: ${i.query}`:""}\n${i.variables?`Variables: ${JSON.stringify(i.variables,null,2)}`:""}\nHeaders: ${JSON.stringify(i.headers,null,2)}\nBody: ${i.body?JSON.stringify(i.body,null,2):"Empty"}\n `)}function b(e,t,n,i){e.log(`\n📡 New Courier ${n} Response: ${t}\nStatus Code: ${i.status}\nResponse JSON: ${JSON.stringify(i.response,null,2)}\n `)}async function f(e){const t=e.validCodes??[200],n=e.options.showLogs?v.generate():void 0,i=new Request(e.url,{method:e.method,headers:{"Content-Type":"application/json",...e.headers},body:e.body?JSON.stringify(e.body):void 0});n&&m(e.options.logger,n,"HTTP",{url:i.url,method:i.method,headers:Object.fromEntries(i.headers.entries()),body:e.body});const o=await fetch(i);if(204===o.status)return;let s;try{s=await o.json()}catch(r){if(200===o.status)return;throw new g(o.status,"Failed to parse response as JSON","PARSE_ERROR")}if(n&&b(e.options.logger,n,"HTTP",{status:o.status,response:s}),!t.includes(o.status))throw new g(o.status,(null==s?void 0:s.message)||"Unknown Error",null==s?void 0:s.type);return s}async function _(e){const t=e.options.showLogs?v.generate():void 0;t&&m(e.options.logger,t,"GraphQL",{url:e.url,headers:e.headers,query:e.query,variables:e.variables});const n=await fetch(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:JSON.stringify({query:e.query,variables:e.variables})});let i;try{i=await n.json()}catch(o){throw new g(n.status,"Failed to parse response as JSON","PARSE_ERROR")}if(t&&b(e.options.logger,t,"GraphQL",{status:n.status,response:i}),!n.ok)throw new g(n.status,(null==i?void 0:i.message)||"Unknown Error",null==i?void 0:i.type);return i}class y{constructor(e){this.options=e}}class x extends y{async getBrand(e){const t=`\n query GetBrand {\n brand(brandId: "${e.brandId}") {\n settings {\n colors {\n primary\n secondary\n tertiary\n }\n inapp {\n borderRadius\n disableCourierFooter\n }\n }\n }\n }\n `;return(await _({options:this.options,url:this.options.apiUrls.courier.graphql,headers:{"x-courier-user-id":this.options.userId,"x-courier-client-key":"empty",Authorization:`Bearer ${this.options.accessToken}`},query:t,variables:{brandId:e.brandId}})).data.brand}}class C extends c{constructor(e){super(C.buildUrl(e),e),d(this,"receivedMessage"),d(this,"receivedMessageEvent"),this.onMessageReceived=e=>this.convertToType(e)}convertToType(e){var t,n,i,o;try{switch(JSON.parse(e).type){case"event":const i=JSON.parse(e);null==(t=this.receivedMessageEvent)||t.call(this,i);break;case"message":const o=JSON.parse(e);null==(n=this.receivedMessage)||n.call(this,o)}}catch(s){null==(i=this.options.logger)||i.error("Error parsing socket message",s),s instanceof Error&&(null==(o=this.onError)||o.call(this,s))}}async sendSubscribe(e){var t;const n={action:"subscribe",data:{userAgent:"courier-js",channel:this.options.userId,event:"*",version:(null==e?void 0:e.version)??5}};this.options.connectionId&&(n.data.clientSourceId=this.options.connectionId),this.options.tenantId&&(n.data.accountId=this.options.tenantId),null==(t=this.options.logger)||t.debug("Sending subscribe request",n),await this.send(n)}static buildUrl(e){var t;let n=(null==(t=e.apiUrls)?void 0:t.inbox.webSocket)??"";return e.accessToken&&(n+=`/?auth=${e.accessToken}`),n}}class k extends y{constructor(e){super(e),d(this,"socket"),this.socket=new C(e)}async getMessages(e){const t=`\n query GetInboxMessages(\n $params: FilterParamsInput = { ${this.options.tenantId?`accountId: "${this.options.tenantId}"`:""} }\n $limit: Int = ${(null==e?void 0:e.paginationLimit)??24}\n $after: String ${(null==e?void 0:e.startCursor)?`= "${e.startCursor}"`:""}\n ) {\n count(params: $params)\n messages(params: $params, limit: $limit, after: $after) {\n totalCount\n pageInfo {\n startCursor\n hasNextPage\n }\n nodes {\n messageId\n read\n archived\n created\n opened\n title\n preview\n data\n tags\n trackingIds {\n clickTrackingId\n }\n actions {\n content\n data\n href\n }\n }\n }\n }\n `;return await _({options:this.options,query:t,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})}async getArchivedMessages(e){const t=`\n query GetInboxMessages(\n $params: FilterParamsInput = { ${this.options.tenantId?`accountId: "${this.options.tenantId}"`:""}, archived: true }\n $limit: Int = ${(null==e?void 0:e.paginationLimit)??24}\n $after: String ${(null==e?void 0:e.startCursor)?`= "${e.startCursor}"`:""}\n ) {\n count(params: $params)\n messages(params: $params, limit: $limit, after: $after) {\n totalCount\n pageInfo {\n startCursor\n hasNextPage\n }\n nodes {\n messageId\n read\n archived\n created\n opened\n title\n preview\n data\n tags\n trackingIds {\n clickTrackingId\n }\n actions {\n content\n data\n href\n }\n }\n }\n }\n `;return _({options:this.options,query:t,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})}async getUnreadMessageCount(){var e;const t=`\n query GetMessages {\n count(params: { status: "unread" ${this.options.tenantId?`, accountId: "${this.options.tenantId}"`:""} })\n }\n `;return(null==(e=(await _({options:this.options,query:t,headers:{"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`},url:this.options.apiUrls.inbox.graphql})).data)?void 0:e.count)??0}async click(e){const t=`\n mutation TrackEvent {\n clicked(messageId: "${e.messageId}", trackingId: "${e.trackingId}")\n }\n `,n={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(n["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:t,headers:n,url:this.options.apiUrls.inbox.graphql})}async read(e){const t=`\n mutation TrackEvent {\n read(messageId: "${e.messageId}")\n }\n `,n={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(n["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:t,headers:n,url:this.options.apiUrls.inbox.graphql})}async unread(e){const t=`\n mutation TrackEvent {\n unread(messageId: "${e.messageId}")\n }\n `,n={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(n["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:t,headers:n,url:this.options.apiUrls.inbox.graphql})}async readAll(){const e={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(e["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:"\n mutation TrackEvent {\n markAllRead\n }\n ",headers:e,url:this.options.apiUrls.inbox.graphql})}async open(e){const t=`\n mutation TrackEvent {\n opened(messageId: "${e.messageId}")\n }\n `,n={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(n["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:t,headers:n,url:this.options.apiUrls.inbox.graphql})}async archive(e){const t=`\n mutation TrackEvent {\n archive(messageId: "${e.messageId}")\n }\n `,n={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(n["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:t,headers:n,url:this.options.apiUrls.inbox.graphql})}async unarchive(e){const t=`\n mutation TrackEvent {\n unarchive(messageId: "${e.messageId}")\n }\n `,n={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(n["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:t,headers:n,url:this.options.apiUrls.inbox.graphql})}async archiveRead(){const e={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(e["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:"\n mutation TrackEvent {\n archiveRead\n }\n ",headers:e,url:this.options.apiUrls.inbox.graphql})}async archiveAll(){const e={"x-courier-user-id":this.options.userId,Authorization:`Bearer ${this.options.accessToken}`};this.options.connectionId&&(e["x-courier-client-source-id"]=this.options.connectionId),await _({options:this.options,query:"\n mutation TrackEvent {\n archiveAll\n }\n ",headers:e,url:this.options.apiUrls.inbox.graphql})}}class w{transformItem(e){return{topicId:e.topic_id,topicName:e.topic_name,sectionId:e.section_id,sectionName:e.section_name,status:e.status,defaultStatus:e.default_status,hasCustomRouting:e.has_custom_routing,customRouting:e.custom_routing||[]}}*transform(e){for(const t of e)yield this.transformItem(t)}}class S extends y{constructor(){super(...arguments),d(this,"transformer",new w)}async getUserPreferences(e){let t=`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences`;(null==e?void 0:e.paginationCursor)&&(t+=`?cursor=${e.paginationCursor}`);const n=await f({options:this.options,url:t,method:"GET",headers:{Authorization:`Bearer ${this.options.accessToken}`}});return{items:[...this.transformer.transform(n.items)],paging:n.paging}}async getUserPreferenceTopic(e){const t=await f({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences/${e.topicId}`,method:"GET",headers:{Authorization:`Bearer ${this.options.accessToken}`}});return this.transformer.transformItem(t.topic)}async putUserPreferenceTopic(e){const t={topic:{status:e.status,has_custom_routing:e.hasCustomRouting,custom_routing:e.customRouting}};await f({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/preferences/${e.topicId}`,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:t})}getNotificationCenterUrl(e){return`https://view.notificationcenter.app/p/${function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return btoa(String.fromCharCode(...t))}(`${function(e){const t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return String.fromCharCode(...n)}(e.clientKey)}#${this.options.userId}${this.options.tenantId?`#${this.options.tenantId}`:""}#false`)}`}}class E extends y{async putUserToken(e){const t={provider_key:e.provider,...e.device&&{device:{app_id:e.device.appId,ad_id:e.device.adId,device_id:e.device.deviceId,platform:e.device.platform,manufacturer:e.device.manufacturer,model:e.device.model}}};await f({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/tokens/${e.token}`,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:t,validCodes:[200,204]})}async deleteUserToken(e){await f({options:this.options,url:`${this.options.apiUrls.courier.rest}/users/${this.options.userId}/tokens/${e.token}`,method:"DELETE",headers:{Authorization:`Bearer ${this.options.accessToken}`},validCodes:[200,204]})}}class I extends y{async putSubscription(e){return await f({url:`${this.options.apiUrls.courier.rest}/lists/${e.listId}/subscriptions/${this.options.userId}`,options:this.options,method:"PUT",headers:{Authorization:`Bearer ${this.options.accessToken}`}})}async deleteSubscription(e){return await f({url:`${this.options.apiUrls.courier.rest}/lists/${e.listId}/subscriptions/${this.options.userId}`,options:this.options,method:"DELETE",headers:{Authorization:`Bearer ${this.options.accessToken}`}})}}class M extends y{async postInboundCourier(e){return await f({url:`${this.options.apiUrls.courier.rest}/inbound/courier`,options:this.options,method:"POST",headers:{Authorization:`Bearer ${this.options.accessToken}`},body:{...e,userId:this.options.userId},validCodes:[200,202]})}async postTrackingUrl(e){return await f({url:e.url,options:this.options,method:"POST",body:{event:e.event}})}}class T extends y{constructor(e){var t,n;const i=void 0!==e.showLogs?e.showLogs:"development"===process.env.NODE_ENV,o={...e,showLogs:i,apiUrls:e.apiUrls||h(),accessToken:e.jwt??e.publicApiKey};super({...o,logger:new p(o.showLogs),apiUrls:h(o.apiUrls)}),d(this,"tokens"),d(this,"brands"),d(this,"preferences"),d(this,"inbox"),d(this,"lists"),d(this,"tracking"),this.tokens=new E(this.options),this.brands=new x(this.options),this.preferences=new S(this.options),this.inbox=new k(this.options),this.lists=new I(this.options),this.tracking=new M(this.options),this.options.jwt||this.options.publicApiKey||this.options.logger.warn("Courier Client initialized with no authentication method. Please provide a JWT or public API key."),this.options.publicApiKey&&(null==(t=this.options.logger)||t.warn("Courier Warning: Public API Keys are for testing only. Please use JWTs for production.\nYou can generate a JWT with this endpoint: https://www.courier.com/docs/reference/auth/issue-token\nThis endpoint should be called from your backend server, not the SDK.")),this.options.jwt&&this.options.publicApiKey&&(null==(n=this.options.logger)||n.warn("Courier Warning: Both a JWT and a Public API Key were provided. The Public API Key will be ignored."))}}class ${constructor(e){d(this,"callback"),this.callback=e}remove(){L.shared.removeAuthenticationListener(this)}}const P=class e{constructor(){d(this,"id",v.generate()),d(this,"instanceClient"),d(this,"_paginationLimit",24),d(this,"authenticationListeners",[])}get paginationLimit(){return this._paginationLimit}set paginationLimit(e){this._paginationLimit=Math.min(Math.max(e,1),100)}get client(){return this.instanceClient}static get shared(){return e.instance||(e.instance=new e),e.instance}signIn(e){const t=e.connectionId??v.generate();this.instanceClient=new T({...e,connectionId:t}),this.notifyAuthenticationListeners({userId:e.userId})}signOut(){this.instanceClient=void 0,this.notifyAuthenticationListeners({userId:void 0})}addAuthenticationListener(e){var t;null==(t=this.instanceClient)||t.options.logger.info("Adding authentication listener");const n=new $(e);return this.authenticationListeners.push(n),n}removeAuthenticationListener(e){var t;null==(t=this.instanceClient)||t.options.logger.info("Removing authentication listener"),this.authenticationListeners=this.authenticationListeners.filter((t=>t!==e))}notifyAuthenticationListeners(e){this.authenticationListeners.forEach((t=>t.callback(e)))}};d(P,"instance");let L=P;var A=Object.defineProperty,D=(e,t,n)=>((e,t,n)=>t in e?A(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),R=Object.defineProperty,B=(e,t,n)=>((e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);const O={500:"#171717",50010:"#1717171A",50020:"#17171733"},F={200:"#F5F5F5",400:"#3A3A3A",500:"#E5E5E5",600:"#737373"},H={500:"#FFFFFF",50010:"#FFFFFF1A",50020:"#FFFFFF33"},z={400:"#60A5FA",500:"#2563EB"},U={light:{colors:{primary:O[500],secondary:H[500],border:F[500],link:z[500],icon:O[500]},button:{cornerRadius:"4px"}},dark:{colors:{primary:H[500],secondary:O[500],border:F[400],link:z[400],icon:H[500]},button:{cornerRadius:"4px"}}},N=()=>"undefined"==typeof window?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",j=e=>{if("undefined"==typeof window)return()=>{};const t=window.matchMedia("(prefers-color-scheme: dark)"),n=t=>{e(t.matches?"dark":"light")};return t.addEventListener("change",n),()=>{t.removeEventListener("change",n)}};class q extends HTMLElement{constructor(){super(),B(this,"_currentSystemTheme"),B(this,"_systemThemeCleanup"),this._currentSystemTheme=N(),this._systemThemeCleanup=j((e=>{this._currentSystemTheme=e,this.onSystemThemeChange(e)}))}get currentSystemTheme(){return this._currentSystemTheme}disconnectedCallback(){this._systemThemeCleanup&&this._systemThemeCleanup()}onSystemThemeChange(e){}}const V={borderRadius:"4px",fontSize:"14px"},J=e=>({...V,backgroundColor:U[e].colors.secondary,textColor:U[e].colors.primary,fontWeight:"500",border:`1px solid ${U[e].colors.border}`,shadow:"light"===e?"0px 1px 2px 0px rgba(0, 0, 0, 0.06)":"0px 1px 2px 0px rgba(255, 255, 255, 0.1)"});class W extends q{constructor(e){super(),B(this,"_button"),B(this,"_style");const t=this.attachShadow({mode:"open"});this._button=document.createElement("button"),this._button.setAttribute("part","button"),this._style=document.createElement("style"),this._style.textContent=this.getStyles(e),t.appendChild(this._style),t.appendChild(this._button),this.updateButton(e),this._button.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),e.onClick&&e.onClick()}))}getStyles(e){return`\n :host {\n display: inline-block;\n }\n\n button {\n border: none;\n border-radius: ${e.borderRadius??(()=>J(this.currentSystemTheme).borderRadius)()};\n font-weight: ${e.fontWeight??(()=>J(this.currentSystemTheme).fontWeight)()};\n font-family: ${e.fontFamily??"inherit"};\n font-size: ${e.fontSize??(()=>J(this.currentSystemTheme).fontSize)()};\n padding: 6px 10px;\n cursor: pointer;\n width: 100%;\n height: 100%;\n background-color: ${e.backgroundColor??(()=>J(this.currentSystemTheme).backgroundColor)()};\n color: ${e.textColor??(()=>J(this.currentSystemTheme).textColor)()};\n border: ${e.border??(()=>J(this.currentSystemTheme).border)()};\n box-shadow: ${e.shadow??(()=>J(this.currentSystemTheme).shadow)()};\n touch-action: manipulation;\n }\n\n button:hover {\n ${e.hoverBackgroundColor?`background-color: ${e.hoverBackgroundColor};`:"filter: brightness(0.9);"}\n }\n\n button:active {\n ${e.activeBackgroundColor?`background-color: ${e.activeBackgroundColor};`:"filter: brightness(0.8);"}\n }\n\n button:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n `}updateButton(e){e.text&&(this._button.textContent=e.text),this._style.textContent=this.getStyles(e)}}customElements.get("courier-button")||customElements.define("courier-button",W);const Z={inbox:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5.5 14.5V17C5.5 17.2812 5.71875 17.5 6 17.5H18C18.25 17.5 18.5 17.2812 18.5 17V14.5H15.9375L15.2812 15.8125C15.0938 16.25 14.6562 16.5 14.1875 16.5H9.78125C9.3125 16.5 8.875 16.25 8.6875 15.8125L8.03125 14.5H5.5ZM18.1875 13L16.6562 6.90625C16.5938 6.65625 16.4062 6.5 16.1875 6.5H7.8125C7.5625 6.5 7.375 6.65625 7.3125 6.90625L5.78125 13H8.1875C8.65625 13 9.09375 13.2812 9.3125 13.7188L9.9375 15H14.0312L14.6875 13.7188C14.875 13.2812 15.3125 13 15.7812 13H18.1875ZM4 14.25C4 14.0938 4 13.9375 4.03125 13.7812L5.84375 6.53125C6.09375 5.625 6.875 5 7.8125 5H16.1875C17.0938 5 17.9062 5.625 18.125 6.53125L19.9375 13.7812C19.9688 13.9375 20 14.0938 20 14.25V17C20 18.125 19.0938 19 18 19H6C4.875 19 4 18.125 4 17V14.25Z" fill="currentColor"/>\n</svg>',archive:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5.5 6.5V8H18.5V6.5H5.5ZM5 5H19C19.5312 5 20 5.46875 20 6V8.5C20 9.0625 19.5312 9.5 19 9.5H5C4.4375 9.5 4 9.0625 4 8.5V6C4 5.46875 4.4375 5 5 5ZM9 11.75C9 11.3438 9.3125 11 9.75 11H14.25C14.6562 11 15 11.3438 15 11.75C15 12.1875 14.6562 12.5 14.25 12.5H9.75C9.3125 12.5 9 12.1875 9 11.75ZM5 17V10.5H6.5V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V10.5H19V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17Z" fill="currentColor"/>\n</svg>',check:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18.793 7.33203C19.0742 7.64453 19.0742 8.11328 18.793 8.39453L10.543 16.6445C10.2305 16.957 9.76172 16.957 9.48047 16.6445L5.23047 12.3945C4.91797 12.1133 4.91797 11.6445 5.23047 11.3633C5.51172 11.0508 5.98047 11.0508 6.26172 11.3633L9.98047 15.082L17.7305 7.33203C18.0117 7.05078 18.4805 7.05078 18.7617 7.33203H18.793Z" fill="currentColor"/>\n</svg>',filter:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5 7C5 6.59375 5.3125 6.25 5.75 6.25H18.25C18.6562 6.25 19 6.59375 19 7C19 7.4375 18.6562 7.75 18.25 7.75H5.75C5.3125 7.75 5 7.4375 5 7ZM7 12C7 11.5938 7.3125 11.25 7.75 11.25H16.25C16.6562 11.25 17 11.5938 17 12C17 12.4375 16.6562 12.75 16.25 12.75H7.75C7.3125 12.75 7 12.4375 7 12ZM14 17C14 17.4375 13.6562 17.75 13.25 17.75H10.75C10.3125 17.75 10 17.4375 10 17C10 16.5938 10.3125 16.25 10.75 16.25H13.25C13.6562 16.25 14 16.5938 14 17Z" fill="currentColor"/>\n</svg>',overflow:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M18.5117 11.9883C18.5117 12.5508 18.1992 13.0195 17.7617 13.3008C17.293 13.582 16.6992 13.582 16.2617 13.3008C15.793 13.0195 15.5117 12.5508 15.5117 11.9883C15.5117 11.457 15.793 10.9883 16.2617 10.707C16.6992 10.4258 17.293 10.4258 17.7617 10.707C18.1992 10.9883 18.5117 11.457 18.5117 11.9883ZM13.5117 11.9883C13.5117 12.5508 13.1992 13.0195 12.7617 13.3008C12.293 13.582 11.6992 13.582 11.2617 13.3008C10.793 13.0195 10.5117 12.5508 10.5117 11.9883C10.5117 11.457 10.793 10.9883 11.2617 10.707C11.6992 10.4258 12.293 10.4258 12.7617 10.707C13.1992 10.9883 13.5117 11.457 13.5117 11.9883ZM7.01172 13.4883C6.44922 13.4883 5.98047 13.207 5.69922 12.7383C5.41797 12.3008 5.41797 11.707 5.69922 11.2383C5.98047 10.8008 6.44922 10.4883 7.01172 10.4883C7.54297 10.4883 8.01172 10.8008 8.29297 11.2383C8.57422 11.707 8.57422 12.3008 8.29297 12.7383C8.01172 13.207 7.54297 13.4883 7.01172 13.4883Z" fill="currentColor"/>\n</svg>',read:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7 6.5C6.71875 6.5 6.5 6.75 6.5 7V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V7C17.5 6.75 17.25 6.5 17 6.5H7ZM5 7C5 5.90625 5.875 5 7 5H17C18.0938 5 19 5.90625 19 7V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17V7ZM15.5312 10.5312L11.5312 14.5312C11.2188 14.8438 10.75 14.8438 10.4688 14.5312L8.46875 12.5312C8.15625 12.25 8.15625 11.7812 8.46875 11.5C8.75 11.1875 9.21875 11.1875 9.53125 11.5L11 12.9688L14.4688 9.46875C14.75 9.1875 15.2188 9.1875 15.5 9.46875C15.8125 9.78125 15.8125 10.25 15.5 10.5312H15.5312Z" fill="currentColor"/>\n</svg>',archiveRead:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.5 6.5V15.25H16.5V6.5H7.5ZM6 15.25V6.5C6 5.6875 6.65625 5 7.5 5H16.5C17.3125 5 18 5.6875 18 6.5V15.25C18.4062 15.25 18.75 15.5938 18.75 16C18.75 16.4375 18.4062 16.75 18 16.75H6C5.5625 16.75 5.25 16.4375 5.25 16C5.25 15.5938 5.5625 15.25 6 15.25ZM5 13V14.5H4.5V17.5H19.5V14.5H19V13H19.5C20.3125 13 21 13.6875 21 14.5V17.5C21 18.3438 20.3125 19 19.5 19H4.5C3.65625 19 3 18.3438 3 17.5V14.5C3 13.6875 3.65625 13 4.5 13H5ZM15.0312 9.625L11.6875 12.9688C11.5312 13.0938 11.3438 13.1875 11.1562 13.1875C10.9375 13.1875 10.75 13.0938 10.625 12.9688L8.96875 11.2812C8.65625 11 8.65625 10.5312 8.96875 10.25C9.25 9.9375 9.71875 9.9375 10 10.25L11.1562 11.375L13.9688 8.5625C14.25 8.28125 14.7188 8.28125 15 8.5625C15.3125 8.875 15.3125 9.34375 15 9.625H15.0312Z" fill="currentColor"/>\n</svg>',unread:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M17 6.5H7C6.71875 6.5 6.5 6.75 6.5 7V17C6.5 17.2812 6.71875 17.5 7 17.5H17C17.25 17.5 17.5 17.2812 17.5 17V7C17.5 6.75 17.25 6.5 17 6.5ZM7 5H17C18.0938 5 19 5.90625 19 7V17C19 18.125 18.0938 19 17 19H7C5.875 19 5 18.125 5 17V7C5 5.90625 5.875 5 7 5Z" fill="currentColor"/>\n</svg>',unarchive:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M5.5 11C5.0625 11 4.75 10.6875 4.75 10.25V5.75C4.75 5.34375 5.0625 5 5.5 5C5.90625 5 6.25 5.34375 6.25 5.75V8.28125L6.875 7.53125C8.15625 6 10.0625 5 12.25 5C16.0938 5 19.25 8.15625 19.25 12C19.25 15.875 16.0938 19 12.25 19C10.6562 19 9.21875 18.5 8.03125 17.625C7.71875 17.375 7.625 16.9062 7.875 16.5625C8.125 16.2188 8.59375 16.1562 8.9375 16.4062C9.84375 17.0938 11 17.5 12.25 17.5C15.2812 17.5 17.75 15.0625 17.75 12C17.75 8.96875 15.2812 6.5 12.25 6.5C10.5312 6.5 9.03125 7.28125 8 8.5L7.15625 9.5H10C10.4062 9.5 10.75 9.84375 10.75 10.25C10.75 10.6875 10.4062 11 10 11H5.5Z" fill="currentColor"/>\n</svg>'};class G extends HTMLElement{constructor(e,t){super(),B(this,"_color"),B(this,"_svg"),B(this,"_iconContainer"),B(this,"_style"),this._color=e??O[500],this._svg=t;const n=this.attachShadow({mode:"open"});this._iconContainer=document.createElement("div"),n.appendChild(this._iconContainer),this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._color),n.appendChild(this._style),this.refresh()}getStyles(e){return`\n :host {\n display: inline-block;\n line-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n svg {\n width: 24px;\n height: 24px;\n color: ${e};\n }\n `}refresh(){this._svg&&(this._iconContainer.innerHTML=this._svg),this._color&&(this._style.textContent=this.getStyles(this._color))}updateColor(e){this._color=e,this.refresh()}updateSVG(e){this._svg=e,this.refresh()}}customElements.get("courier-icon")||customElements.define("courier-icon",G);class K extends HTMLElement{constructor(){super(),B(this,"link");const e=this.attachShadow({mode:"open"});this.link=document.createElement("a"),this.link.setAttribute("part","link");const t=document.createElement("style");t.textContent=`\n :host {\n display: inline-block;\n }\n\n a {\n text-decoration: none;\n border-radius: 4px;\n cursor: pointer;\n font-weight: 500;\n transition: all 0.2s ease;\n font-family: var(--courier-link-font-family, inherit);\n font-size: var(--courier-link-font-size, inherit);\n }\n\n /* Variants */\n a[data-variant="primary"][data-mode="light"] {\n color: var(--courier-link-color, ${U.light.colors.link});\n }\n\n a[data-variant="primary"][data-mode="light"]:hover {\n opacity: 0.8;\n }\n\n a[data-variant="primary"][data-mode="light"]:active {\n opacity: 0.6;\n }\n\n a[data-variant="primary"][data-mode="dark"] {\n color: var(--courier-link-color, ${U.dark.colors.link});\n }\n\n a[data-variant="primary"][data-mode="dark"]:hover {\n opacity: 0.8;\n }\n\n a[data-variant="primary"][data-mode="dark"]:active {\n opacity: 0.6;\n }\n\n a[data-underline="true"] {\n text-decoration: underline;\n }\n\n a:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n pointer-events: none;\n }\n `,e.appendChild(t),e.appendChild(this.link),this.updateVariant(),this.updateUnderline(),this.updateMode()}connectedCallback(){const e=document.createElement("slot");this.link.appendChild(e),this.updateHref()}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case"href":this.updateHref();break;case"variant":case"mode":this.updateVariant();break;case"disabled":this.link.style.pointerEvents=this.hasAttribute("disabled")?"none":"auto",this.link.style.opacity=this.hasAttribute("disabled")?"0.6":"1";break;case"color":this.updateColor();break;case"underline":this.updateUnderline();break;case"target":this.updateTarget();break;case"font-family":this.updateFontFamily();break;case"font-size":this.updateFontSize()}}updateHref(){const e=this.getAttribute("href");e&&(this.link.href=e)}updateVariant(){const e=this.getAttribute("variant")||"primary",t=this.getAttribute("mode")||"light";this.link.setAttribute("data-variant",e),this.link.setAttribute("data-mode",t)}updateColor(){const e=this.getAttribute("color");e?this.link.style.setProperty("--courier-link-color",e):this.link.style.removeProperty("--courier-link-color")}updateUnderline(){const e="true"===this.getAttribute("underline");this.link.setAttribute("data-underline",e.toString())}updateMode(){const e=this.getAttribute("mode")||"light";this.link.setAttribute("data-mode",e)}updateTarget(){const e=this.getAttribute("target");e&&(this.link.target=e)}updateFontFamily(){const e=this.getAttribute("font-family");e?this.link.style.setProperty("--courier-link-font-family",e):this.link.style.removeProperty("--courier-link-font-family")}updateFontSize(){const e=this.getAttribute("font-size");e?this.link.style.setProperty("--courier-link-font-size",e):this.link.style.removeProperty("--courier-link-font-size")}}B(K,"observedAttributes",["href","variant","disabled","color","underline","mode","target","font-family","font-size"]),customElements.get("courier-link")||customElements.define("courier-link",K);class X extends q{constructor(){super(),B(this,"shadow"),this.shadow=this.attachShadow({mode:"open"})}build(e){if(null===e)return void this.shadow.replaceChildren();const t=e??this.defaultElement();this.shadow.replaceChildren(t)}defaultElement(){const e=document.createElement("div");return e.textContent="Default Element Factory",e.style.cssText="\n background-color: red;\n text-align: center;\n padding: 12px;\n ",e}}class Y extends X{constructor(e){super(),B(this,"_props"),B(this,"_title"),B(this,"_button"),B(this,"_style"),B(this,"_buttonClickCallback",null),this._props=e}defaultElement(){var e,t;const n=document.createElement("div");return this._title=document.createElement("h2"),(null==(e=this._props.title)?void 0:e.text)&&(this._title.textContent=this._props.title.text),this._button=new W(this._props.button??J(this.currentSystemTheme)),this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._props),n.className="container",n.appendChild(this._style),n.appendChild(this._title),n.appendChild(this._button),this.shadow.appendChild(n),null==(t=this._button)||t.addEventListener("click",(()=>{this._buttonClickCallback&&this._buttonClickCallback()})),n}onSystemThemeChange(e){this.updateStyles(this._props)}getStyles(e){var t,n,i,o;return`\n :host {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n }\n\n .container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 16px;\n text-align: center;\n padding: 24px;\n }\n\n .container h2 {\n margin: 0;\n color: ${(null==(t=e.title)?void 0:t.textColor)??"red"};\n font-size: ${(null==(n=e.title)?void 0:n.fontSize)??"16px"};\n font-weight: ${(null==(i=e.title)?void 0:i.fontWeight)??"500"};\n font-family: ${(null==(o=e.title)?void 0:o.fontFamily)??"inherit"};\n }\n `}updateStyles(e){this._props=e,this._style&&(this._style.textContent=this.getStyles(e)),this._button&&this._button.updateButton(e.button)}setButtonClickCallback(e){this._buttonClickCallback=e}}customElements.get("courier-info-state")||customElements.define("courier-info-state",Y);class Q extends HTMLElement{constructor(e,t,n,i,o,s,r,a){super(),B(this,"_backgroundColor"),B(this,"_hoverBackgroundColor"),B(this,"_activeBackgroundColor"),B(this,"_borderRadius"),B(this,"_height"),B(this,"_width"),B(this,"_style"),B(this,"_button"),B(this,"_icon"),this._borderRadius=s,this._backgroundColor=n,this._hoverBackgroundColor=i,this._activeBackgroundColor=o,this._height=r,this._width=a;const l=this.attachShadow({mode:"open"});this._button=document.createElement("button"),this._button.setAttribute("part","button"),this._icon=new G(t,e),this._style=document.createElement("style"),this.refresh(),l.appendChild(this._style),this._button.appendChild(this._icon),l.appendChild(this._button)}refresh(){this._style.textContent=this.getStyles()}getStyles(){return`\n :host {\n display: inline-block;\n border-radius: ${this._borderRadius??"50%"};\n }\n\n button {\n border: none;\n border-radius: ${this._borderRadius??"50%"};\n cursor: pointer;\n width: ${this._width??"36px"};\n height: ${this._height??"36px"};\n display: flex;\n align-items: center;\n justify-content: center;\n background: ${this._backgroundColor??"transparent"};\n transition: background-color 0.2s ease;\n touch-action: manipulation;\n }\n\n button:hover {\n background-color: ${this._hoverBackgroundColor??"red"};\n }\n\n button:active {\n background-color: ${this._activeBackgroundColor??"red"};\n }\n\n button:disabled {\n opacity: 0.6;\n cursor: not-allowed;\n }\n\n [part="icon"] {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n }\n `}updateIconColor(e){this._icon.updateColor(e)}updateIconSVG(e){this._icon.updateSVG(e)}updateBackgroundColor(e){this._backgroundColor=e,this.refresh()}updateHoverBackgroundColor(e){this._hoverBackgroundColor=e,this.refresh()}updateActiveBackgroundColor(e){this._activeBackgroundColor=e,this.refresh()}}customElements.get("courier-icon-button")||customElements.define("courier-icon-button",Q);function ee(e){const t={...e};return e.actions&&(t.actions=e.actions.map((e=>function(e){const t={...e};e.data&&(t.data=JSON.parse(JSON.stringify(e.data)));return t}(e)))),e.data&&(t.data=JSON.parse(JSON.stringify(e.data))),e.tags&&(t.tags=[...e.tags]),e.trackingIds&&(t.trackingIds={...e.trackingIds}),t}function te(e){return{...e,messages:e.messages.map((e=>ee(e)))}}[{name:"courier-button",class:W},{name:"courier-icon",class:G},{name:"courier-link",class:K},{name:"courier-info-state",class:Y},{name:"courier-icon-button",class:Q}].forEach((({name:e,class:t})=>{customElements.get(e)||customElements.define(e,t)}));class ne extends HTMLElement{constructor(e){super(),D(this,"_theme"),D(this,"_options",[]),D(this,"_style"),this._theme=e;const t=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._style.textContent=this.getStyles(),t.appendChild(this._style);const n=document.createElement("ul");n.className="menu",t.appendChild(n)}getStyles(){var e,t,n;const i=null==(n=null==(t=null==(e=this._theme.inbox)?void 0:e.list)?void 0:t.item)?void 0:n.menu;return`\n :host {\n display: block;\n position: absolute;\n background: ${(null==i?void 0:i.backgroundColor)??"red"};\n border: ${(null==i?void 0:i.border)??"1px solid red"};\n border-radius: ${(null==i?void 0:i.borderRadius)??"0px"};\n box-shadow: ${(null==i?void 0:i.shadow)??"0 2px 8px red"};\n user-select: none;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.15s;\n overflow: hidden;\n }\n\n :host(.visible) {\n opacity: 1;\n pointer-events: auto;\n }\n\n ul.menu {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: row;\n }\n\n li.menu-item {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n border-bottom: none;\n background: transparent;\n }\n `}setOptions(e){this._options=e,this.renderMenu()}renderMenu(){var e,t,n,i;const o=null==(e=this.shadowRoot)?void 0:e.querySelector("ul.menu");if(!o)return;o.innerHTML="";const s=null==(i=null==(n=null==(t=this._theme.inbox)?void 0:t.list)?void 0:n.item)?void 0:i.menu,r=e=>{e.stopPropagation(),e.preventDefault()};this._options.forEach((e=>{var t,n,i;const a=new Q(e.icon.svg,e.icon.color,null==s?void 0:s.backgroundColor,null==(t=null==s?void 0:s.item)?void 0:t.hoverBackgroundColor,null==(n=null==s?void 0:s.item)?void 0:n.activeBackgroundColor,null==(i=null==s?void 0:s.item)?void 0:i.borderRadius),l=t=>{r(t),e.onClick()};a.addEventListener("click",l),a.addEventListener("touchstart",r),a.addEventListener("touchend",l),a.addEventListener("touchmove",r),a.addEventListener("mousedown",r),a.addEventListener("mouseup",r),o.appendChild(a)}))}show(){this.classList.add("visible")}hide(){this.classList.remove("visible")}}customElements.get("courier-list-item-menu")||customElements.define("courier-list-item-menu",ne);const ie=class e{constructor(){D(this,"_inboxDataSet"),D(this,"_archiveDataSet"),D(this,"_dataStoreListeners",[]),D(this,"_unreadCount"),D(this,"isPaginatingInbox",!1),D(this,"isPaginatingArchive",!1)}static get shared(){return e.instance||(e.instance=new e),e.instance}get unreadCount(){return this._unreadCount??0}get inboxDataSet(){return this._inboxDataSet??{feedType:"inbox",messages:[],canPaginate:!1,paginationCursor:null}}get archiveDataSet(){return this._archiveDataSet??{feedType:"archive",messages:[],canPaginate:!1,paginationCursor:null}}addDataStoreListener(e){this._dataStoreListeners.push(e)}removeDataStoreListener(e){this._dataStoreListeners=this._dataStoreListeners.filter((t=>t!==e))}async fetchDataSet(e){var t,n,i,o,s,r,a,l,d,u;if(e.canUseCache)switch(e.feedType){case"inbox":if(this._inboxDataSet)return this._inboxDataSet;break;case"archive":if(this._archiveDataSet)return this._archiveDataSet}const c="inbox"===e.feedType?await(null==(t=L.shared.client)?void 0:t.inbox.getMessages()):await(null==(n=L.shared.client)?void 0:n.inbox.getArchivedMessages());return{feedType:e.feedType,messages:(null==(o=null==(i=null==c?void 0:c.data)?void 0:i.messages)?void 0:o.nodes)??[],canPaginate:(null==(a=null==(r=null==(s=null==c?void 0:c.data)?void 0:s.messages)?void 0:r.pageInfo)?void 0:a.hasNextPage)??!1,paginationCursor:(null==(u=null==(d=null==(l=null==c?void 0:c.data)?void 0:l.messages)?void 0:d.pageInfo)?void 0:u.startCursor)??null}}async fetchUnreadCount(e){var t;if(e.canUseCache&&void 0!==this._unreadCount)return this._unreadCount;return await(null==(t=L.shared.client)?void 0:t.inbox.getUnreadMessageCount())??0}async load(e){var t,n,i;try{if(!(null==(t=L.shared.client)?void 0:t.options.userId))throw new Error("User is not signed in");const n=e??{feedType:"inbox",canUseCache:!0},[i,o]=await Promise.all([this.fetchDataSet(n),this.fetchUnreadCount(n)]);switch(n.feedType){case"inbox":this._inboxDataSet=i;break;case"archive":this._archiveDataSet=i}this._unreadCount=o,this._dataStoreListeners.forEach((e=>{var t,o,s,r;null==(o=(t=e.events).onDataSetChange)||o.call(t,i,n.feedType),null==(r=(s=e.events).onUnreadCountChange)||r.call(s,this._unreadCount??0)}))}catch(o){null==(i=null==(n=L.shared.client)?void 0:n.options.logger)||i.error("Error loading inbox:",o),this._dataStoreListeners.forEach((e=>{var t,n;null==(n=(t=e.events).onError)||n.call(t,o)}))}}async listenForUpdates(){var e,t;try{await this.ensureDataSetsLoaded(),await this.connectSocket()}catch(n){null==(t=null==(e=L.shared.client)?void 0:e.options.logger)||t.error("Error listening for updates:",n),this._dataStoreListeners.forEach((e=>{var t,i;null==(i=(t=e.events).onError)||i.call(t,n)}))}}async ensureDataSetsLoaded(){let e=[];this._inboxDataSet||e.push(this.load({feedType:"inbox",canUseCache:!0})),this._archiveDataSet||e.push(this.load({feedType:"archive",canUseCache:!0})),await Promise.all(e)}async connectSocket(){var e,t,n,i,o,s,r,a,l,d,u,c;const h=null==(e=L.shared.client)?void 0:e.inbox.socket;try{if(!h)return void(null==(n=null==(t=L.shared.client)?void 0:t.options.logger)||n.info("CourierInbox socket not available"));if(null==(s=null==(i=L.shared.client)?void 0:i.options.logger)||s.info("CourierInbox socket connectionId:",null==(o=L.shared.client)?void 0:o.options.connectionId),h.isConnected)return void(null==(a=null==(r=L.shared.client)?void 0:r.options.logger)||a.info("CourierInbox socket already connected. Socket will not attempt reconnection."));h.receivedMessage=e=>{this.addMessage(e,0,"inbox")},h.receivedMessageEvent=e=>{let t;switch(e.messageId&&(t=this.getMessage({messageId:e.messageId})),e.event){case"mark-all-read":this.readAllMessages({canCallApi:!1});break;case"read":t&&this.readMessage({message:t,canCallApi:!1});break;case"unread":t&&this.unreadMessage({message:t,canCallApi:!1});break;case"opened":t&&this.openMessage({message:t,canCallApi:!1});break;case"archive":t&&this.archiveMessage({message:t,canCallApi:!1});break;case"archive-read":this.archiveReadMessages({canCallApi:!1});break;case"click":t&&this.clickMessage({message:t,canCallApi:!1});break;case"unarchive":t&&this.unarchiveMessage({message:t,canCallApi:!1})}},await h.connect(),await h.sendSubscribe(),h.keepAlive(),null==(d=null==(l=L.shared.client)?void 0:l.options.logger)||d.info("CourierInbox socket connected")}catch(p){null==(c=null==(u=L.shared.client)?void 0:u.options.logger)||c.error("Failed to connect socket:",p)}}getMessage(e){var t,n;return(null==(t=this._inboxDataSet)?void 0:t.messages.find((t=>t.messageId===e.messageId)))??(null==(n=this._archiveDataSet)?void 0:n.messages.find((t=>t.messageId===e.messageId)))}async fetchNextPageOfMessages(e){var t,n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b,f,_,y,x,C,k,w;switch(e.feedType){case"inbox":if(this.isPaginatingInbox)return null;if((null==(t=this._inboxDataSet)?void 0:t.canPaginate)&&this._inboxDataSet.paginationCursor)try{this.isPaginatingInbox=!0;const e=await(null==(n=L.shared.client)?void 0:n.inbox.getMessages({paginationLimit:L.shared.paginationLimit,startCursor:this._inboxDataSet.paginationCursor})),t={feedType:"inbox",messages:(null==(o=null==(i=null==e?void 0:e.data)?void 0:i.messages)?void 0:o.nodes)??[],canPaginate:(null==(a=null==(r=null==(s=null==e?void 0:e.data)?void 0:s.messages)?void 0:r.pageInfo)?void 0:a.hasNextPage)??!1,paginationCursor:(null==(u=null==(d=null==(l=null==e?void 0:e.data)?void 0:l.messages)?void 0:d.pageInfo)?void 0:u.startCursor)??null};return this.addPage(t),t}catch(S){return null==(h=null==(c=L.shared.client)?void 0:c.options.logger)||h.error("Error fetching next page of inbox messages:",S),null}finally{this.isPaginatingInbox=!1}break;case"archive":if(this.isPaginatingArchive)return null;if((null==(p=this._archiveDataSet)?void 0:p.canPaginate)&&this._archiveDataSet.paginationCursor)try{this.isPaginatingArchive=!0;const e=await(null==(v=L.shared.client)?void 0:v.inbox.getArchivedMessages({paginationLimit:L.shared.paginationLimit,startCursor:this._archiveDataSet.paginationCursor})),t={feedType:"archive",messages:(null==(m=null==(g=null==e?void 0:e.data)?void 0:g.messages)?void 0:m.nodes)??[],canPaginate:(null==(_=null==(f=null==(b=null==e?void 0:e.data)?void 0:b.messages)?void 0:f.pageInfo)?void 0:_.hasNextPage)??!1,paginationCursor:(null==(C=null==(x=null==(y=null==e?void 0:e.data)?void 0:y.messages)?void 0:x.pageInfo)?void 0:C.startCursor)??null};return this.addPage(t),t}catch(S){return null==(w=null==(k=L.shared.client)?void 0:k.options.logger)||w.error("Error fetching next page of archived messages:",S),null}finally{this.isPaginatingArchive=!1}}return null}canMutate(){return!!(L.shared.client&&this._inboxDataSet&&this._archiveDataSet)}async readMessage({message:e,canCallApi:t=!0}){var n,i,o;if(!this.canMutate())return;const s=this.getDatastoreSnapshot(this.unreadCount,this._inboxDataSet,this._archiveDataSet),r=this.getMessageSnapshot(e);if(!r.message.read)try{r.message.read=(new Date).toISOString(),this.applyMessageSnapshot(r),this._unreadCount=s.unreadCount-1,this._dataStoreListeners.forEach((e=>{var t,n;null==(n=(t=e.events).onUnreadCountChange)||n.call(t,this._unreadCount)})),t&&await(null==(n=L.shared.client)?void 0:n.inbox.read({messageId:e.messageId}))}catch(a){null==(o=null==(i=L.shared.client)?void 0:i.options.logger)||o.error("Error reading message:",a),this.applyDatastoreSnapshot(s)}}async unreadMessage({message:e,canCallApi:t=!0}){var n,i,o;if(!this.canMutate())return;const s=this.getDatastoreSnapshot(this.unreadCount,this._inboxDataSet,this._archiveDataSet),r=this.getMessageSnapshot(e);if(r.message.read)try{r.message.read=void 0,this.applyMessageSnapshot(r),this._unreadCount=s.unreadCount+1,this._dataStoreListeners.forEach((e=>{var t,n;null==(n=(t=e.events).onUnreadCountChange)||n.call(t,this._unreadCount)})),t&&await(null==(n=L.shared.client)?void 0:n.inbox.unread({messageId:e.messageId}))}catch(a){null==(o=null==(i=L.shared.client)?void 0:i.options.logger)||o.error("Error unreading message:",a),this.applyDatastoreSnapshot(s)}}async openMessage({message:e,canCallApi:t=!0}){var n,i,o;if(!this.canMutate())return;const s=this.getMessageSnapshot(e);if((void 0!==s.inboxIndex||void 0!==s.archiveIndex)&&!s.message.opened)try{e.opened=(new Date).toISOString(),this.applyMessageSnapshot(s),t&&await(null==(n=L.shared.client)?void 0:n.inbox.open({messageId:e.messageId}))}catch(r){this.applyMessageSnapshot(s),null==(o=null==(i=L.shared.client)?void 0:i.options.logger)||o.error("Error opening message:",r)}}async clickMessage({message:e,canCallApi:t=!0}){var n,i,o,s,r;if(this.canMutate())try{(null==(n=e.trackingIds)?void 0:n.clickTrackingId)&&t&&await(null==(o=L.shared.client)?void 0:o.inbox.click({messageId:e.messageId,trackingId:null==(i=e.trackingIds)?void 0:i.clickTrackingId}))}catch(a){null==(r=null==(s=L.shared.client)?void 0:s.options.logger)||r.error("Error clicking message:",a)}}async archiveMessage({message:e,canCallApi:t=!0}){var n,i,o,s;if(!this.canMutate())return;const r=this.getMessageSnapshot(e);if(void 0===r.inboxIndex)return;const a=this.getDatastoreSnapshot(this.unreadCount,this._inboxDataSet,this._archiveDataSet);try{if(e.archived=(new Date).toISOString(),this.removeMessage(e,r.inboxIndex,"inbox"),null==(n=this._archiveDataSet)?void 0:n.messages){const t=this.findInsertIndex(e,this._archiveDataSet);this.addMessage(e,t,"archive")}t&&await(null==(i=L.shared.client)?void 0:i.inbox.archive({messageId:e.messageId}))}catch(l){null==(s=null==(o=L.shared.client)?void 0:o.options.logger)||s.error("Error archiving message:",l),this.applyDatastoreSnapshot(a)}}async unarchiveMessage({message:e,canCallApi:t=!0}){var n,i,o,s;if(!this.canMutate())return;const r=this.getDatastoreSnapshot(this.unreadCount,this._inboxDataSet,this._archiveDataSet),a=this.getMessageSnapshot(e);if(void 0!==a.archiveIndex)try{if(a.message.archived=void 0,this.removeMessage(e,a.archiveIndex,"archive"),null==(n=this._inboxDataSet)?void 0:n.messages){const t=this.findInsertIndex(e,this._inboxDataSet);this.addMessage(e,t,"inbox")}t&&await(null==(i=L.shared.client)?void 0:i.inbox.unarchive({messageId:e.messageId}))}catch(l){null==(s=null==(o=L.shared.client)?void 0:o.options.logger)||s.error("Error unarchiving message:",l),this.applyDatastoreSnapshot(r)}}async archiveReadMessages({canCallApi:e=!0}={}){var t,n,i,o;if(!this.canMutate())return;const s=this.getDatastoreSnapshot(this.unreadCount,this._inboxDataSet,this._archiveDataSet);try{const i=(new Date).toISOString();((null==(t=this._inboxDataSet)?void 0:t.messages.filter((e=>e.read)))??[]).forEach((e=>{var t,n,o;e.archived=i;const s=null==(t=this._inboxDataSet)?void 0:t.messages.findIndex((t=>t.messageId===e.messageId));if(void 0!==s&&-1!==s&&(null==(n=this._inboxDataSet)||n.messages.splice(s,1)),null==(o=this._archiveDataSet)?void 0:o.messages){const t=this.findInsertIndex(e,this._archiveDataSet);this._archiveDataSet.messages.splice(t,0,e)}})),this._dataStoreListeners.forEach((e=>{var t,n,i,o;this._inboxDataSet&&(null==(n=(t=e.events).onDataSetChange)||n.call(t,this._inboxDataSet,"inbox")),this._archiveDataSet&&(null==(o=(i=e.events).onDataSetChange)||o.call(i,this._archiveDataSet,"archive"))})),e&&await(null==(n=L.shared.client)?void 0:n.inbox.archiveRead())}catch(r){null==(o=null==(i=L.shared.client)?void 0:i.options.logger)||o.error("Error archiving read messages:",r),this.applyDatastoreSnapshot(s)}}async archiveAllMessages({canCallApi:e=!0}={}){var t,n,i,o;if(!this.canMutate())return;const s=this.getDatastoreSnapshot(this.unreadCount,this._inboxDataSet,this._archiveDataSet);try{const i=(new Date).toISOString();null==(t=this._inboxDataSet)||t.messages.forEach((e=>{var t;if(e.archived=i,null==(t=this._archiveDataSet)?void 0:t.messages){const t=this.findInsertIndex(e,this._archiveDataSet);this._archiveDataSet.messages.splice(t,0,e)}})),this._inboxDataSet={messages:[],canPaginate:!1,paginationCursor:null,feedType:"inbox"},this._unreadCount=0,this._dataStoreListeners.forEach((e=>{var t,n,i,o,s,r;this._inboxDataSet&&(null==(n=(t=e.events).onDataSetChange)||n.call(t,this._inboxDataSet,"inbox")),this._archiveDataSet&&(null==(o=(i=e.events).onDataSetChange)||o.call(i,this._archiveDataSet,"archive")),null==(r=(s=e.events).onUnreadCountChange)||r.call(s,this._unreadCount)})),e&&await(null==(n=L.shared.client)?void 0:n.inbox.archiveAll())}catch(r){null==(o=null==(i=L.shared.client)?void 0:i.options.logger)||o.error("Error archiving all messages:",r),this.applyDatastoreSnapshot(s)}}async readAllMessages({canCallApi:e=!0}={}){var t,n,i,o,s;if(!this.canMutate())return;const r=this.getDatastoreSnapshot(this.unreadCount,this._inboxDataSet,this._archiveDataSet);try{const o=(new Date).toISOString();null==(t=this._inboxDataSet)||t.messages.forEach((e=>{e.read||(e.read=o)})),null==(n=this._archiveDataSet)||n.messages.forEach((e=>{e.read||(e.read=o)})),this._unreadCount=0,this._dataStoreListeners.forEach((e=>{var t,n,i,o,s,r;this._inboxDataSet&&(null==(n=(t=e.events).onDataSetChange)||n.call(t,this._inboxDataSet,"inbox")),this._archiveDataSet&&(null==(o=(i=e.events).onDataSetChange)||o.call(i,this._archiveDataSet,"archive")),null==(r=(s=e.events).onUnreadCountChange)||r.call(s,this._unreadCount)})),e&&await(null==(i=L.shared.client)?void 0:i.inbox.readAll())}catch(a){null==(s=null==(o=L.shared.client)?void 0:o.options.logger)||s.error("Error reading all messages:",a),this.applyDatastoreSnapshot(r)}}findInsertIndex(e,t){const n=t.messages;for(let i=0;i<n.length;i++){const t=n[i];if(t.created&&e.created&&t.created<e.created)return i}return n.length}addPage(e){switch(e.feedType){case"inbox":this._inboxDataSet&&(this._inboxDataSet.canPaginate=e.canPaginate,this._inboxDataSet.paginationCursor=e.paginationCursor,this._inboxDataSet.messages=[...this._inboxDataSet.messages,...e.messages]);break;case"archive":this._archiveDataSet&&(this._archiveDataSet.canPaginate=e.canPaginate,this._archiveDataSet.paginationCursor=e.paginationCursor,this._archiveDataSet.messages=[...this._archiveDataSet.messages,...e.messages])}this._dataStoreListeners.forEach((t=>{var n,i;return null==(i=(n=t.events).onPageAdded)?void 0:i.call(n,e,e.feedType)}))}addMessage(e,t,n){var i,o;switch(n){case"inbox":e.read||void 0===this._unreadCount||(this._unreadCount=this._unreadCount+1),null==(i=this._inboxDataSet)||i.messages.splice(t,0,e);break;case"archive":null==(o=this._archiveDataSet)||o.messages.splice(t,0,e)}this._dataStoreListeners.forEach((i=>{var o,s,r,a;null==(s=(o=i.events).onMessageAdd)||s.call(o,e,t,n),null==(a=(r=i.events).onUnreadCountChange)||a.call(r,this._unreadCount??0)}))}removeMessage(e,t,n){var i,o;switch(n){case"inbox":e.read||void 0===this._unreadCount||(this._unreadCount=this._unreadCount-1),null==(i=this._inboxDataSet)||i.messages.splice(t,1);break;case"archive":null==(o=this._archiveDataSet)||o.messages.splice(t,1)}this._dataStoreListeners.forEach((i=>{var o,s,r,a;null==(s=(o=i.events).onMessageRemove)||s.call(o,e,t,n),null==(a=(r=i.events).onUnreadCountChange)||a.call(r,this._unreadCount??0)}))}applyMessageSnapshot(e){void 0!==e.archiveIndex&&this.updateMessage(e.message,e.archiveIndex,"archive"),void 0!==e.inboxIndex&&this.updateMessage(e.message,e.inboxIndex,"inbox")}applyDatastoreSnapshot(e){const{unreadCount:t,inbox:n,archive:i}=e;this._inboxDataSet=n,this._archiveDataSet=i,this._dataStoreListeners.forEach((e=>{var o,s,r,a,l,d;null==(s=(o=e.events).onDataSetChange)||s.call(o,n,"inbox"),null==(a=(r=e.events).onDataSetChange)||a.call(r,i,"archive"),null==(d=(l=e.events).onUnreadCountChange)||d.call(l,t)}))}updateMessage(e,t,n){switch(n){case"inbox":void 0===this._unreadCount||e.archived||(e.read&&(this._unreadCount=Math.max(0,this._unreadCount-1)),e.read||(this._unreadCount=this._unreadCount+1)),this._inboxDataSet&&(this._inboxDataSet.messages[t]=e);break;case"archive":this._archiveDataSet&&(this._archiveDataSet.messages[t]=e)}this._dataStoreListeners.forEach((i=>{var o,s,r,a;null==(s=(o=i.events).onMessageUpdate)||s.call(o,e,t,n),null==(a=(r=i.events).onUnreadCountChange)||a.call(r,this._unreadCount??0)}))}getDatastoreSnapshot(e,t,n){return{unreadCount:e,inbox:te(t),archive:te(n)}}getMessageSnapshot(e){const t=this._archiveDataSet?this._archiveDataSet.messages.findIndex((t=>t.messageId===e.messageId)):void 0,n=this._inboxDataSet?this._inboxDataSet.messages.findIndex((t=>t.messageId===e.messageId)):void 0;return{message:ee(e),archiveIndex:t,inboxIndex:n}}};D(ie,"instance");let oe=ie;class se extends HTMLElement{constructor(e){super(),D(this,"_theme"),D(this,"_message",null),D(this,"_feedType","inbox"),D(this,"_isMobile",!1),D(this,"_titleElement"),D(this,"_subtitleElement"),D(this,"_timeElement"),D(this,"_style"),D(this,"_menu"),D(this,"_unreadIndicator"),D(this,"_actionsContainer"),D(this,"_longPressTimeout",null),D(this,"_isLongPress",!1),D(this,"onItemClick",null),D(this,"onItemLongPress",null),D(this,"onItemActionClick",null),this._theme=e,this._isMobile="ontouchstart"in window;const t=this.attachShadow({mode:"open"}),n=document.createElement("div");n.className="content-container",this._titleElement=document.createElement("p"),this._titleElement.setAttribute("part","title"),this._subtitleElement=document.createElement("p"),this._subtitleElement.setAttribute("part","subtitle"),this._actionsContainer=document.createElement("div"),this._actionsContainer.className="actions-container",n.appendChild(this._titleElement),n.appendChild(this._subtitleElement),n.appendChild(this._actionsContainer),this._timeElement=document.createElement("p"),this._timeElement.setAttribute("part","time"),this._unreadIndicator=document.createElement("div"),this._unreadIndicator.className="unread-indicator",this._style=document.createElement("style"),this._refreshStyles(),this._menu=new ne(this._theme),this._menu.setOptions(this._getMenuOptions()),t.append(this._style,this._unreadIndicator,n,this._timeElement,this._menu);const i=e=>{e.stopPropagation(),e.preventDefault()};this._menu.addEventListener("mousedown",i),this._menu.addEventListener("pointerdown",i),this._menu.addEventListener("click",i),this.addEventListener("click",(e=>{this._menu.contains(e.target)||e.composedPath().includes(this._menu)||!this._message||!this.onItemClick||e.target instanceof G||this._isLongPress||this.onItemClick(this._message)})),this._setupHoverBehavior(),this._setupLongPressBehavior()}_setupHoverBehavior(){this._isMobile||(this.addEventListener("mouseenter",(()=>{this._isLongPress=!1,this._showMenu()})),this.addEventListener("mouseleave",(()=>this._hideMenu())))}_setupLongPressBehavior(){var e,t,n;const i=null==(n=null==(t=null==(e=this._theme.inbox)?void 0:e.list)?void 0:t.item)?void 0:n.menu;if(!(null==i?void 0:i.enabled))return;const o=i.longPress;this.addEventListener("touchstart",(()=>{this._longPressTimeout=window.setTimeout((()=>{this._isLongPress=!0,this._showMenu(),this._message&&this.onItemLongPress&&(this.onItemLongPress(this._message),navigator.vibrate&&navigator.vibrate((null==o?void 0:o.vibrationDuration)??50)),setTimeout((()=>{this._hideMenu(),this._isLongPress=!1}),(null==o?void 0:o.displayDuration)??2e3)}),650)}),{passive:!0}),this.addEventListener("touchend",(()=>{this._longPressTimeout&&(window.clearTimeout(this._longPressTimeout),this._longPressTimeout=null)}))}setOnLongPress(e){this.onItemLongPress=e}_getMenuOptions(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v;const g=null==(i=null==(n=null==(t=null==(e=this._theme.inbox)?void 0:e.list)?void 0:t.item)?void 0:n.menu)?void 0:i.item;let m=[];const b="archive"===this._feedType;return b||m.push({id:(null==(o=this._message)?void 0:o.read)?"unread":"read",icon:{svg:(null==(s=this._message)?void 0:s.read)?null==(r=null==g?void 0:g.unread)?void 0:r.svg:null==(a=null==g?void 0:g.read)?void 0:a.svg,color:(null==(l=this._message)?void 0:l.read)?null==(d=null==g?void 0:g.unread)?void 0:d.color:(null==(u=null==g?void 0:g.read)?void 0:u.color)??"red"},onClick:()=>{this._message&&(this._message.read?oe.shared.unreadMessage({message:this._message}):oe.shared.readMessage({message:this._message}))}}),m.push({id:b?"unarchive":"archive",icon:{svg:b?null==(c=null==g?void 0:g.unarchive)?void 0:c.svg:null==(h=null==g?void 0:g.archive)?void 0:h.svg,color:b?null==(p=null==g?void 0:g.unarchive)?void 0:p.color:(null==(v=null==g?void 0:g.archive)?void 0:v.color)??"red"},onClick:()=>{this._message&&(b?oe.shared.unarchiveMessage({message:this._message}):oe.shared.archiveMessage({message:this._message}))}}),m}_showMenu(){var e,t,n;const i=null==(n=null==(t=null==(e=this._theme.inbox)?void 0:e.list)?void 0:t.item)?void 0:n.menu;i&&i.enabled&&(this._menu.setOptions(this._getMenuOptions()),this._menu.style.display="block",this._menu.show(),this._timeElement.style.opacity="0")}_hideMenu(){var e,t,n;const i=null==(n=null==(t=null==(e=this._theme.inbox)?void 0:e.list)?void 0:t.item)?void 0:n.menu;i&&i.enabled&&(this._menu.hide(),this._menu.style.display="none",this._timeElement.style.opacity="1")}_getStyles(){var e,t,n,i,o,s,r,a,l,d,u;const c=null==(t=null==(e=this._theme.inbox)?void 0:e.list)?void 0:t.item;return`\n :host {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n border-bottom: ${(null==c?void 0:c.divider)??"1px solid red"};\n font-family: inherit;\n cursor: pointer;\n transition: background-color 0.2s ease;\n margin: 0;\n width: 100%;\n box-sizing: border-box;\n padding: 12px 20px;\n position: relative;\n background-color: ${(null==c?void 0:c.backgroundColor)??"transparent"};\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n touch-action: manipulation;\n }\n\n /* ───────────────────────── Base hover / active ────────────────── */\n @media (hover: hover) {\n :host(:hover) {\n background-color: ${(null==c?void 0:c.hoverBackgroundColor)??"red"};\n }\n }\n :host(:active) {\n background-color: ${(null==c?void 0:c.activeBackgroundColor)??"red"};\n }\n\n /* ───────────────────────── Menu hover / active ────────────────── */\n @media (hover: hover) {\n :host(:hover):has(courier-list-item-menu:hover, courier-list-item-menu *:hover, courier-button:hover, courier-button *:hover) {\n background-color: ${(null==c?void 0:c.backgroundColor)??"transparent"};\n }\n }\n :host(:active):has(courier-list-item-menu:active, courier-list-item-menu *:active, courier-button:active, courier-button *:active) {\n background-color: ${(null==c?void 0:c.backgroundColor)??"transparent"};\n }\n\n :host(:last-child) {\n border-bottom: none;\n }\n\n .unread-indicator {\n position: absolute;\n top: 28px;\n left: 6px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: ${(null==c?void 0:c.unreadIndicatorColor)??"red"};\n display: none;\n }\n\n :host(.unread) .unread-indicator {\n display: block;\n }\n\n .content-container {\n flex: 1;\n display: flex;\n flex-direction: column;\n margin-right: 12px;\n }\n\n p {\n margin: 0;\n overflow-wrap: break-word;\n word-break: break-word;\n hyphens: auto;\n line-height: 1.4;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n text-align: left;\n }\n\n p[part='title'] {\n font-family: ${(null==(n=null==c?void 0:c.title)?void 0:n.family)??"inherit"};\n font-size: ${(null==(i=null==c?void 0:c.title)?void 0:i.size)??"14px"};\n color: ${(null==(o=null==c?void 0:c.title)?void 0:o.color)??"red"};\n margin-bottom: 4px;\n }\n\n p[part='subtitle'] {\n font-family: ${(null==(s=null==c?void 0:c.subtitle)?void 0:s.family)??"inherit"};\n font-size: ${(null==(r=null==c?void 0:c.subtitle)?void 0:r.size)??"14px"};\n color: ${(null==(a=null==c?void 0:c.subtitle)?void 0:a.color)??"red"};\n }\n\n p[part='time'] {\n font-family: ${(null==(l=null==c?void 0:c.time)?void 0:l.family)??"inherit"};\n font-size: ${(null==(d=null==c?void 0:c.time)?void 0:d.size)??"14px"};\n color: ${(null==(u=null==c?void 0:c.time)?void 0:u.color)??"red"};\n text-align: right;\n white-space: nowrap;\n }\n\n courier-list-item-menu {\n z-index: 1;\n position: absolute;\n top: 8px;\n right: 8px;\n display: none; /* becomes block while visible */\n }\n\n .actions-container {\n display: flex;\n margin-top: 10px;\n flex-wrap: wrap;\n flex-direction: row;\n align-items: center;\n gap: 8px;\n display: none;\n }\n\n `}_refreshStyles(){this._style.textContent=this._getStyles()}connectedCallback(){var e,t;const n=this.getAttribute("message"),i=this.getAttribute("feed-type");if(i&&(this._feedType=i),n)try{this._message=JSON.parse(n),this._updateContent()}catch(o){null==(t=null==(e=L.shared.client)?void 0:e.options.logger)||t.error("CourierListItem – failed to parse message:",o)}}setMessage(e,t){this._message=e,this._feedType=t,this._updateContent()}setOnItemClick(e){this.onItemClick=e}setOnItemActionClick(e){this.onItemActionClick=e}setOnItemLongPress(e){this.onItemLongPress=e}_updateContent(){var e,t,n,i,o,s;if(!this._message)return this._titleElement.textContent="",void(this._subtitleElement.textContent="");this.classList.toggle("unread",!this._message.read&&"archive"!==this._feedType),this._titleElement.textContent=this._message.title||"Untitled Message",this._subtitleElement.textContent=this._message.preview||this._message.body||"",this._timeElement.textContent=function(e){if(!e.created)return"Now";const t=new Date,n=new Date(e.created),i=Math.floor((t.getTime()-n.getTime())/1e3);return i<60?`${i}s`:i<3600?`${Math.floor(i/60)}m`:i<86400?`${Math.floor(i/3600)}h`:i<604800?`${Math.floor(i/86400)}d`:i<31536e3?`${Math.floor(i/604800)}w`:`${Math.floor(i/31536e3)}y`}(this._message),this._menu.setOptions(this._getMenuOptions());const r=(null==(e=this._message)?void 0:e.actions)&&this._message.actions.length>0;this._actionsContainer.style.display=r?"flex":"none";const a=null==(i=null==(n=null==(t=this._theme.inbox)?void 0:t.list)?void 0:n.item)?void 0:i.actions;null==(s=null==(o=this._message)?void 0:o.actions)||s.forEach((e=>{var t,n,i,o;const s=new W({text:e.content,variant:"secondary",backgroundColor:null==a?void 0:a.backgroundColor,hoverBackgroundColor:null==a?void 0:a.hoverBackgroundColor,activeBackgroundColor:null==a?void 0:a.activeBackgroundColor,border:null==a?void 0:a.border,borderRadius:null==a?void 0:a.borderRadius,shadow:null==a?void 0:a.shadow,fontFamily:null==(t=null==a?void 0:a.font)?void 0:t.family,fontSize:null==(n=null==a?void 0:a.font)?void 0:n.size,fontWeight:null==(i=null==a?void 0:a.font)?void 0:i.weight,textColor:null==(o=null==a?void 0:a.font)?void 0:o.color,onClick:()=>{this._message&&this.onItemActionClick&&this.onItemActionClick(this._message,e)}});this._actionsContainer.appendChild(s)}))}}customElements.get("courier-list-item")||customElements.define("courier-list-item",se);class re extends HTMLElement{constructor(e,t){super(),D(this,"_shadow"),this._shadow=this.attachShadow({mode:"open"});const n=document.createElement("style");n.textContent=this.getStyles(t),this._shadow.appendChild(n);const i=new ae(e,35),o=new ae(e,100),s=new ae(e,82);this._shadow.appendChild(i),this._shadow.appendChild(o),this._shadow.appendChild(s)}getStyles(e){return`\n :host {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 12px;\n width: 100%;\n box-sizing: border-box;\n opacity: ${e};\n }\n `}}customElements.get("courier-inbox-skeleton-list-item")||customElements.define("courier-inbox-skeleton-list-item",re);class ae extends HTMLElement{constructor(e,t){super(),D(this,"_shadow"),this._shadow=this.attachShadow({mode:"open"});const n=document.createElement("style");n.textContent=this.getStyles(e,t),this._shadow.appendChild(n);const i=document.createElement("div");i.className="skeleton-item",this._shadow.appendChild(i)}getStyles(e,t){var n,i,o,s,r,a,l,d,u,c,h,p;const v=(null==(o=null==(i=null==(n=e.inbox)?void 0:n.loading)?void 0:i.animation)?void 0:o.barColor)??"#000",g=4===v.length?`#${v[1]}${v[1]}${v[2]}${v[2]}${v[3]}${v[3]}`:v,m=parseInt(g.slice(1,3),16),b=parseInt(g.slice(3,5),16),f=parseInt(g.slice(5,7),16),_=`rgba(${m}, ${b}, ${f}, 0.8)`,y=`rgba(${m}, ${b}, ${f}, 0.4)`;return`\n :host {\n display: flex;\n height: 100%;\n width: ${t}%;\n align-items: flex-start;\n justify-content: flex-start;\n }\n\n .skeleton-item {\n height: ${(null==(a=null==(r=null==(s=e.inbox)?void 0:s.loading)?void 0:r.animation)?void 0:a.barHeight)??"14px"};\n width: 100%;\n background: linear-gradient(\n 90deg,\n ${_} 25%,\n ${y} 50%,\n ${_} 75%\n );\n background-size: 200% 100%;\n animation: shimmer ${(null==(u=null==(d=null==(l=e.inbox)?void 0:l.loading)?void 0:d.animation)?void 0:u.duration)??"2s"} ease-in-out infinite;\n border-radius: ${(null==(p=null==(h=null==(c=e.inbox)?void 0:c.loading)?void 0:h.animation)?void 0:p.barBorderRadius)??"14px"};\n }\n\n @keyframes shimmer {\n 0% {\n background-position: 200% 0;\n }\n 100% {\n background-position: -200% 0;\n }\n }\n `}}customElements.get("courier-skeleton-animated-row")||customElements.define("courier-skeleton-animated-row",ae);class le extends X{constructor(e){super(),D(this,"_theme"),this._theme=e}defaultElement(){const e=document.createElement("div");e.className="list";const t=document.createElement("style");t.textContent=this.getStyles(),e.appendChild(t);for(let n=0;n<3;n++){const t=new re(this._theme,1/(n+1));e.appendChild(t)}return this.shadow.appendChild(e),e}getStyles(){var e,t;return`\n :host {\n display: flex;\n height: 100%;\n width: 100%;\n align-items: flex-start;\n justify-content: flex-start;\n overflow: hidden;\n }\n\n .list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n width: 100%;\n overflow: hidden;\n }\n\n .list > * {\n border-bottom: ${(null==(t=null==(e=this._theme.inbox)?void 0:e.loading)?void 0:t.divider)??"1px solid red"};\n }\n\n .list > *:last-child {\n border-bottom: none;\n }\n `}}customElements.get("courier-inbox-skeleton-list")||customElements.define("courier-inbox-skeleton-list",le);class de extends HTMLElement{constructor(e){super(),D(this,"skeletonLoadingList"),D(this,"observer"),D(this,"customItem"),D(this,"onPaginationTrigger"),this.onPaginationTrigger=e.onPaginationTrigger,this.customItem=e.customItem;const t=this.attachShadow({mode:"open"}),n=document.createElement("style");if(n.textContent=this.getStyles(),t.appendChild(n),this.customItem)t.appendChild(this.customItem);else{const n=document.createElement("div");n.className="skeleton-container",this.skeletonLoadingList=new le(e.theme),this.skeletonLoadingList.build(void 0),n.appendChild(this.skeletonLoadingList),t.appendChild(n)}this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&this.onPaginationTrigger()}))})),this.observer.observe(this)}getStyles(){return"\n :host {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n }\n\n .skeleton-container {\n height: 150%;\n }\n "}disconnectedCallback(){this.observer.disconnect()}}customElements.get("courier-inbox-pagination-list-item")||customElements.define("courier-inbox-pagination-list-item",de);class ue extends HTMLElement{constructor(e){super(),D(this,"_themeSubscription"),D(this,"_messages",[]),D(this,"_feedType","inbox"),D(this,"_isLoading",!0),D(this,"_error",null),D(this,"_canPaginate",!1),D(this,"_onMessageClick",null),D(this,"_onMessageActionClick",null),D(this,"_onMessageLongPress",null),D(this,"_onRefresh"),D(this,"_onPaginationTrigger"),D(this,"_listItemFactory"),D(this,"_paginationItemFactory"),D(this,"_loadingStateFactory"),D(this,"_emptyStateFactory"),D(this,"_errorStateFactory"),this._themeSubscription=e.themeManager.subscribe((e=>{this.refreshTheme()})),this._onRefresh=e.onRefresh,this._onPaginationTrigger=e.onPaginationTrigger,this._onMessageClick=e.onMessageClick,this._onMessageActionClick=e.onMessageActionClick,this._onMessageLongPress=e.onMessageLongPress;const t=this.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=this.getStyles(),t.appendChild(n)}get messages(){return this._messages}getStyles(){var e;const t=null==(e=this._themeSubscription.manager.getTheme().inbox)?void 0:e.list;return`\n :host {\n flex: 1;\n width: 100%;\n background-color: ${(null==t?void 0:t.backgroundColor)??H[500]};\n }\n\n ul {\n list-style: none;\n padding: 0;\n margin: 0;\n height: 100%;\n }\n `}reset(){for(var e,t;null==(e=this.shadowRoot)?void 0:e.firstChild;)this.shadowRoot.removeChild(this.shadowRoot.firstChild);const n=document.createElement("style");n.textContent=this.getStyles(),null==(t=this.shadowRoot)||t.appendChild(n)}setDataSet(e){this._messages=[...e.messages],this._canPaginate=Boolean(e.canPaginate),this._error=null,this._isLoading=!1,this.render()}addPage(e){this._messages=[...this._messages,...e.messages],this._canPaginate=Boolean(e.canPaginate),this._error=null,this._isLoading=!1,this.render()}addMessage(e,t=0){this._messages.splice(t,0,e),this.render()}removeMessage(e=0){this._messages.splice(e,1),this.render()}updateMessage(e,t=0){this._messages[t]=e,this.render()}setFeedType(e){this._feedType=e,this._error=null,this._isLoading=!0,this.render()}setLoading(e){this._error=null,this._isLoading=e,this.render()}setError(e){this._error=e,this._isLoading=!1,this._messages=[],this.render()}setErrorNoClient(){this.setError(new Error("No user signed in"))}handleRetry(){this._onRefresh()}handleRefresh(){this._onRefresh()}render(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b,f,_,y,x,C,k,w,S,E,I,M,T,$,P,L,A,D,R,B,O,F,H,z,U,N,j,q,V,J,W,Z,G,K,X,Q,ee,te,ne,ie,oe;this.reset();const re=this._themeSubscription.manager.getTheme();if(this._error){const I=null==(e=re.inbox)?void 0:e.error,M=new Y({title:{text:(null==(t=null==I?void 0:I.title)?void 0:t.text)??this._error.message,textColor:null==(i=null==(n=null==I?void 0:I.title)?void 0:n.font)?void 0:i.color,fontFamily:null==(s=null==(o=null==I?void 0:I.title)?void 0:o.font)?void 0:s.family,fontSize:null==(a=null==(r=null==I?void 0:I.title)?void 0:r.font)?void 0:a.size,fontWeight:null==(d=null==(l=null==I?void 0:I.title)?void 0:l.font)?void 0:d.weight},button:{text:null==(u=null==I?void 0:I.button)?void 0:u.text,backgroundColor:null==(c=null==I?void 0:I.button)?void 0:c.backgroundColor,hoverBackgroundColor:null==(h=null==I?void 0:I.button)?void 0:h.hoverBackgroundColor,activeBackgroundColor:null==(p=null==I?void 0:I.button)?void 0:p.activeBackgroundColor,textColor:null==(g=null==(v=null==I?void 0:I.button)?void 0:v.font)?void 0:g.color,fontFamily:null==(b=null==(m=null==I?void 0:I.button)?void 0:m.font)?void 0:b.family,fontSize:null==(_=null==(f=null==I?void 0:I.button)?void 0:f.font)?void 0:_.size,fontWeight:null==(x=null==(y=null==I?void 0:I.button)?void 0:y.font)?void 0:x.weight,shadow:null==(C=null==I?void 0:I.button)?void 0:C.shadow,border:null==(k=null==I?void 0:I.button)?void 0:k.border,borderRadius:null==(w=null==I?void 0:I.button)?void 0:w.borderRadius}});return M.build(null==(S=this._errorStateFactory)?void 0:S.call(this,{feedType:this._feedType,error:this._error})),M.setButtonClickCallback((()=>this.handleRetry())),void(null==(E=this.shadowRoot)||E.appendChild(M))}if(this._isLoading){const e=new le(re);return e.build(null==(I=this._loadingStateFactory)?void 0:I.call(this,{feedType:this._feedType})),void(null==(M=this.shadowRoot)||M.appendChild(e))}if(0===this._messages.length){const e=null==(T=re.inbox)?void 0:T.empty,t=new Y({title:{text:(null==($=null==e?void 0:e.title)?void 0:$.text)??`No ${this._feedType} messages yet`,textColor:null==(L=null==(P=null==e?void 0:e.title)?void 0:P.font)?void 0:L.color,fontFamily:null==(D=null==(A=null==e?void 0:e.title)?void 0:A.font)?void 0:D.family,fontSize:null==(B=null==(R=null==e?void 0:e.title)?void 0:R.font)?void 0:B.size,fontWeight:null==(F=null==(O=null==e?void 0:e.title)?void 0:O.font)?void 0:F.weight},button:{text:null==(H=null==e?void 0:e.button)?void 0:H.text,backgroundColor:null==(z=null==e?void 0:e.button)?void 0:z.backgroundColor,hoverBackgroundColor:null==(U=null==e?void 0:e.button)?void 0:U.hoverBackgroundColor,activeBackgroundColor:null==(N=null==e?void 0:e.button)?void 0:N.activeBackgroundColor,textColor:null==(q=null==(j=null==e?void 0:e.button)?void 0:j.font)?void 0:q.color,fontFamily:null==(J=null==(V=null==e?void 0:e.button)?void 0:V.font)?void 0:J.family,fontSize:null==(Z=null==(W=null==e?void 0:e.button)?void 0:W.font)?void 0:Z.size,fontWeight:null==(K=null==(G=null==e?void 0:e.button)?void 0:G.font)?void 0:K.weight,shadow:null==(X=null==e?void 0:e.button)?void 0:X.shadow,border:null==(Q=null==e?void 0:e.button)?void 0:Q.border,borderRadius:null==(ee=null==e?void 0:e.button)?void 0:ee.borderRadius}});return t.build(null==(te=this._emptyStateFactory)?void 0:te.call(this,{feedType:this._feedType})),t.setButtonClickCallback((()=>this.handleRefresh())),void(null==(ne=this.shadowRoot)||ne.appendChild(t))}const ae=document.createElement("ul");if(null==(ie=this.shadowRoot)||ie.appendChild(ae),this._messages.forEach(((e,t)=>{if(this._listItemFactory)return void ae.appendChild(this._listItemFactory({message:e,index:t}));const n=new se(re);n.setMessage(e,this._feedType),n.setOnItemClick((e=>{var n;return null==(n=this._onMessageClick)?void 0:n.call(this,e,t)})),n.setOnItemActionClick(((e,n)=>{var i;return null==(i=this._onMessageActionClick)?void 0:i.call(this,e,n,t)})),n.setOnItemLongPress((e=>{var n;return null==(n=this._onMessageLongPress)?void 0:n.call(this,e,t)})),ae.appendChild(n)})),this._canPaginate){const e=new de({theme:re,customItem:null==(oe=this._paginationItemFactory)?void 0:oe.call(this,{feedType:this._feedType}),onPaginationTrigger:()=>{var e;return null==(e=this._onPaginationTrigger)?void 0:e.call(this,this._feedType)}});ae.appendChild(e)}}setLoadingStateFactory(e){this._loadingStateFactory=e,this.render()}setEmptyStateFactory(e){this._emptyStateFactory=e,this.render()}setErrorStateFactory(e){this._errorStateFactory=e,this.render()}setListItemFactory(e){this._listItemFactory=e,this.render()}setPaginationItemFactory(e){this._paginationItemFactory=e,this.render()}refreshTheme(){this.render()}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-list")||customElements.define("courier-inbox-list",ue);class ce extends HTMLElement{constructor(e){super(),D(this,"_option"),D(this,"_isSelected"),D(this,"_content"),D(this,"_itemIcon"),D(this,"_title"),D(this,"_selectionIcon"),D(this,"_style"),D(this,"_themeManager"),this._option=e.option,this._isSelected=e.isSelected,this._themeManager=e.themeManager;const t=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._content=document.createElement("div"),this._content.className="menu-item",this._itemIcon=new G(this._option.icon.svg??Z.inbox),this._itemIcon.setAttribute("size","16"),this._title=document.createElement("p"),this._title.textContent=this._option.text;const n=document.createElement("div");n.className="spacer",this._selectionIcon=new G(Z.check),this._content.appendChild(this._itemIcon),this._content.appendChild(this._title),this._content.appendChild(n),e.selectable&&this._content.appendChild(this._selectionIcon),t.appendChild(this._style),t.appendChild(this._content),this._selectionIcon.style.display=this._isSelected?"block":"none",this.refreshTheme()}getStyles(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b,f,_,y,x,C,k,w,S,E,I,M,T,$,P,L,A;const D=this._themeManager.getTheme();return`\n :host {\n display: flex;\n flex-direction: row;\n padding: 6px 12px;\n cursor: pointer;\n }\n\n :host(:hover) {\n background-color: ${(null==(o=null==(i=null==(n=null==(t=null==(e=D.inbox)?void 0:e.header)?void 0:t.menus)?void 0:n.popup)?void 0:i.list)?void 0:o.hoverBackgroundColor)??"red"};\n }\n\n :host(:active) {\n background-color: ${(null==(d=null==(l=null==(a=null==(r=null==(s=D.inbox)?void 0:s.header)?void 0:r.menus)?void 0:a.popup)?void 0:l.list)?void 0:d.activeBackgroundColor)??"red"};\n }\n\n .menu-item {\n display: flex;\n align-items: center;\n width: 100%;\n gap: 12px;\n }\n\n .spacer {\n flex: 1;\n }\n\n p {\n margin: 0;\n font-family: ${(null==(g=null==(v=null==(p=null==(h=null==(c=null==(u=D.inbox)?void 0:u.header)?void 0:c.menus)?void 0:h.popup)?void 0:p.list)?void 0:v.font)?void 0:g.family)??"inherit"};\n font-weight: ${(null==(x=null==(y=null==(_=null==(f=null==(b=null==(m=D.inbox)?void 0:m.header)?void 0:b.menus)?void 0:f.popup)?void 0:_.list)?void 0:y.font)?void 0:x.weight)??"inherit"};\n font-size: ${(null==(I=null==(E=null==(S=null==(w=null==(k=null==(C=D.inbox)?void 0:C.header)?void 0:k.menus)?void 0:w.popup)?void 0:S.list)?void 0:E.font)?void 0:I.size)??"14px"};\n color: ${(null==(A=null==(L=null==(P=null==($=null==(T=null==(M=D.inbox)?void 0:M.header)?void 0:T.menus)?void 0:$.popup)?void 0:P.list)?void 0:L.font)?void 0:A.color)??"red"};\n white-space: nowrap;\n }\n\n .check-icon {\n display: none;\n }\n `}refreshTheme(){var e,t,n,i;this._style.textContent=this.getStyles(),this._selectionIcon.updateColor((null==(e=this._option.selectionIcon)?void 0:e.color)??"red"),this._selectionIcon.updateSVG((null==(t=this._option.selectionIcon)?void 0:t.svg)??Z.check),this._title.textContent=this._option.text??"Missing Text",this._itemIcon.updateColor((null==(n=this._option.icon)?void 0:n.color)??"red"),this._itemIcon.updateSVG((null==(i=this._option.icon)?void 0:i.svg)??Z.inbox)}}customElements.get("courier-inbox-filter-menu-item")||customElements.define("courier-inbox-filter-menu-item",ce);class he extends HTMLElement{constructor(e,t,n,i,o){super(),D(this,"_themeSubscription"),D(this,"_type"),D(this,"_selectedIndex",0),D(this,"_options"),D(this,"_selectable"),D(this,"_onMenuOpen"),D(this,"_menuButton"),D(this,"_menu"),D(this,"_style"),this._type=t,this._selectable=n,this._options=i,this._selectedIndex=0,this._onMenuOpen=o;const s=this.attachShadow({mode:"open"});this._menuButton=new Q("filters"===t?Z.filter:Z.overflow),this._menu=document.createElement("div"),this._menu.className=`menu ${t}`,this._style=document.createElement("style"),s.appendChild(this._style),s.appendChild(this._menuButton),s.appendChild(this._menu),this._menuButton.addEventListener("click",this.toggleMenu.bind(this)),document.addEventListener("click",this.handleOutsideClick.bind(this)),this._themeSubscription=e.subscribe((e=>{this.refreshTheme()})),this.refreshTheme()}getStyles(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b,f,_,y;const x=this._themeSubscription.manager.getTheme();return`\n :host {\n position: relative;\n display: inline-block;\n }\n\n .menu {\n display: none;\n position: absolute;\n top: 42px;\n right: -6px;\n border-radius: ${(null==(i=null==(n=null==(t=null==(e=x.inbox)?void 0:e.header)?void 0:t.menus)?void 0:n.popup)?void 0:i.borderRadius)??"6px"};\n border: ${(null==(a=null==(r=null==(s=null==(o=x.inbox)?void 0:o.header)?void 0:s.menus)?void 0:r.popup)?void 0:a.border)??"1px solid red"};\n background: ${(null==(c=null==(u=null==(d=null==(l=x.inbox)?void 0:l.header)?void 0:d.menus)?void 0:u.popup)?void 0:c.backgroundColor)??"red"};\n box-shadow: ${(null==(g=null==(v=null==(p=null==(h=x.inbox)?void 0:h.header)?void 0:p.menus)?void 0:v.popup)?void 0:g.shadow)??"0 4px 12px 0 red"};\n z-index: 1000;\n min-width: 200px;\n overflow: hidden;\n padding: 4px 0;\n }\n\n courier-inbox-filter-menu-item {\n border-bottom: ${(null==(y=null==(_=null==(f=null==(b=null==(m=x.inbox)?void 0:m.header)?void 0:b.menus)?void 0:f.popup)?void 0:_.list)?void 0:y.divider)??"none"};\n }\n\n courier-inbox-filter-menu-item:last-child {\n border-bottom: none;\n }\n `}refreshTheme(){var e,t,n,i,o,s;this._style.textContent=this.getStyles();const r=null==(t=null==(e=this._themeSubscription.manager.getTheme().inbox)?void 0:e.header)?void 0:t.menus,a="filters"===this._type,l=a?null==(n=null==r?void 0:r.filters)?void 0:n.button:null==(i=null==r?void 0:r.actions)?void 0:i.button,d=a?Z.filter:Z.overflow;this._menuButton.updateIconSVG((null==(o=null==l?void 0:l.icon)?void 0:o.svg)??d),this._menuButton.updateIconColor((null==(s=null==l?void 0:l.icon)?void 0:s.color)??"red"),this._menuButton.updateBackgroundColor((null==l?void 0:l.backgroundColor)??"transparent"),this._menuButton.updateHoverBackgroundColor((null==l?void 0:l.hoverBackgroundColor)??"red"),this._menuButton.updateActiveBackgroundColor((null==l?void 0:l.activeBackgroundColor)??"red"),this.refreshMenuItems()}setOptions(e){this._options=e,this.refreshMenuItems()}refreshMenuItems(){this._menu.innerHTML="",this._options.forEach(((e,t)=>{const n=new ce({option:e,selectable:this._selectable,isSelected:this._selectedIndex===t,themeManager:this._themeSubscription.manager});n.addEventListener("click",(()=>{this._selectedIndex=t,e.onClick(e),this.refreshMenuItems(),this.closeMenu()})),this._menu.appendChild(n)}))}toggleMenu(e){e.stopPropagation();const t="block"!==this._menu.style.display;this._menu.style.display=t?"block":"none",t&&this._onMenuOpen()}handleOutsideClick(e){this.contains(e.target)||this.closeMenu()}closeMenu(){this._menu.style.display="none"}selectOption(e){this._selectedIndex=this._options.findIndex((t=>t.id===e.id)),this.refreshMenuItems()}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-option-menu")||customElements.define("courier-inbox-option-menu",he);class pe extends HTMLElement{constructor(e){super(),D(this,"_themeSubscription"),D(this,"_location"),D(this,"_count",0),D(this,"_badge"),D(this,"_style"),this._location=e.location,this._themeSubscription=e.themeBus.subscribe((e=>{this.refreshTheme(this._location)}));const t=this.attachShadow({mode:"open"});this._badge=document.createElement("span"),this._badge.className="unread-badge",this._style=document.createElement("style"),this._style.textContent=this.getStyles(this._location),t.appendChild(this._style),t.appendChild(this._badge)}getStyles(e){var t,n,i,o,s,r,a;const l=this._themeSubscription.manager.getTheme(),d="button"===e?null==(n=null==(t=l.popup)?void 0:t.button)?void 0:n.unreadIndicator:null==(s=null==(o=null==(i=l.inbox)?void 0:i.header)?void 0:o.filters)?void 0:s.unreadIndicator,u=null==d?void 0:d.backgroundColor,c=null==d?void 0:d.borderRadius;return`\n :host {\n display: inline-block;\n }\n\n .unread-badge {\n background-color: ${u};\n color: ${null==(r=null==d?void 0:d.font)?void 0:r.color};\n border-radius: ${c};\n padding: 4px 8px;\n font-size: ${null==(a=null==d?void 0:d.font)?void 0:a.size};\n text-align: center;\n display: none;\n pointer-events: none;\n }\n `}setCount(e){this._count=e,this.updateBadge()}refreshTheme(e){this._location=e,this.updateBadge()}updateBadge(){this._style.textContent=this.getStyles(this._location),this._count>0?(this._badge.textContent=this._count.toString(),this._badge.style.display="block"):this._badge.style.display="none"}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-unread-count-badge")||customElements.define("courier-unread-count-badge",pe);class ve extends HTMLElement{constructor(e,t){super(),D(this,"_themeSubscription"),D(this,"_option"),D(this,"_feedType"),D(this,"_titleElement"),D(this,"_iconElement"),D(this,"_unreadBadge"),D(this,"_container"),D(this,"_style"),this._option=t;const n=this.attachShadow({mode:"open"});this._style=document.createElement("style"),this._container=document.createElement("div"),this._container.className="title-section",this._iconElement=new G(void 0,this._option.icon.svg),this._titleElement=document.createElement("h2"),this._unreadBadge=new pe({themeBus:e,location:"header"}),this._container.appendChild(this._iconElement),this._container.appendChild(this._titleElement),this._container.appendChild(this._unreadBadge),n.appendChild(this._style),n.appendChild(this._container),this._themeSubscription=e.subscribe((e=>{this.refreshTheme(this._feedType??"inbox")})),this.refreshTheme(this._feedType??"inbox")}getStyles(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v,g;const m=this._themeSubscription.manager.getTheme();return`\n .title-section {\n display: flex;\n align-items: center;\n gap: 8px;\n position: relative;\n }\n\n courier-icon {\n display: flex;\n align-items: center;\n }\n\n h2 {\n margin: 0;\n font-family: ${(null==(i=null==(n=null==(t=null==(e=m.inbox)?void 0:e.header)?void 0:t.filters)?void 0:n.font)?void 0:i.family)??"inherit"};\n font-size: ${(null==(a=null==(r=null==(s=null==(o=m.inbox)?void 0:o.header)?void 0:s.filters)?void 0:r.font)?void 0:a.size)??"18px"};\n font-weight: ${(null==(c=null==(u=null==(d=null==(l=m.inbox)?void 0:l.header)?void 0:d.filters)?void 0:u.font)?void 0:c.weight)??"500"};\n color: ${(null==(g=null==(v=null==(p=null==(h=m.inbox)?void 0:h.header)?void 0:p.filters)?void 0:v.font)?void 0:g.color)??"red"};\n }\n\n courier-unread-count-badge {\n margin-left: 4px;\n }\n `}refreshTheme(e){this._feedType=e,this._style.textContent=this.getStyles(),this._unreadBadge.refreshTheme("header"),this.updateFilter()}updateSelectedOption(e,t,n){this._option=e,this._feedType=t,this._unreadBadge.setCount(n),this.updateFilter()}updateFilter(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b,f,_,y,x,C,k,w,S,E,I;const M=this._themeSubscription.manager.getTheme();switch(this._feedType){case"inbox":this._titleElement.textContent=(null==(i=null==(n=null==(t=null==(e=M.inbox)?void 0:e.header)?void 0:t.filters)?void 0:n.inbox)?void 0:i.text)??"Inbox",this._iconElement.updateSVG((null==(l=null==(a=null==(r=null==(s=null==(o=M.inbox)?void 0:o.header)?void 0:s.filters)?void 0:r.inbox)?void 0:a.icon)?void 0:l.svg)??Z.inbox),this._iconElement.updateColor((null==(p=null==(h=null==(c=null==(u=null==(d=M.inbox)?void 0:d.header)?void 0:u.filters)?void 0:c.inbox)?void 0:h.icon)?void 0:p.color)??"red");break;case"archive":this._titleElement.textContent=(null==(b=null==(m=null==(g=null==(v=M.inbox)?void 0:v.header)?void 0:g.filters)?void 0:m.archive)?void 0:b.text)??"Archive",this._iconElement.updateSVG((null==(C=null==(x=null==(y=null==(_=null==(f=M.inbox)?void 0:f.header)?void 0:_.filters)?void 0:y.archive)?void 0:x.icon)?void 0:C.svg)??Z.archive),this._iconElement.updateColor((null==(I=null==(E=null==(S=null==(w=null==(k=M.inbox)?void 0:k.header)?void 0:w.filters)?void 0:S.archive)?void 0:E.icon)?void 0:I.color)??"red")}}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-header-title")||customElements.define("courier-inbox-header-title",ve);class ge extends X{constructor(e){super(),D(this,"_themeSubscription"),D(this,"_feedType","inbox"),D(this,"_unreadCount",0),D(this,"_titleSection"),D(this,"_filterMenu"),D(this,"_actionMenu"),D(this,"_style"),D(this,"_onFeedTypeChange"),this._themeSubscription=e.themeManager.subscribe((e=>{this.refreshTheme()})),this._onFeedTypeChange=e.onFeedTypeChange}getFilterOptions(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b,f,_,y,x,C,k,w,S,E,I,M,T,$,P,L,A,D,R,B;const O=this._themeSubscription.manager.getTheme(),F=null==(n=null==(t=null==(e=O.inbox)?void 0:e.header)?void 0:t.menus)?void 0:n.filters;return[{id:"inbox",text:(null==(i=null==F?void 0:F.inbox)?void 0:i.text)??"Inbox",icon:{color:(null==(s=null==(o=null==F?void 0:F.inbox)?void 0:o.icon)?void 0:s.color)??"red",svg:(null==(a=null==(r=null==F?void 0:F.inbox)?void 0:r.icon)?void 0:a.svg)??Z.inbox},selectionIcon:{color:(null==(p=null==(h=null==(c=null==(u=null==(d=null==(l=O.inbox)?void 0:l.header)?void 0:d.menus)?void 0:u.popup)?void 0:c.list)?void 0:h.selectionIcon)?void 0:p.color)??"red",svg:(null==(_=null==(f=null==(b=null==(m=null==(g=null==(v=O.inbox)?void 0:v.header)?void 0:g.menus)?void 0:m.popup)?void 0:b.list)?void 0:f.selectionIcon)?void 0:_.svg)??Z.check},onClick:e=>{this.handleOptionMenuItemClick("inbox",e)}},{id:"archive",text:(null==(y=null==F?void 0:F.archive)?void 0:y.text)??"Archive",icon:{color:(null==(C=null==(x=null==F?void 0:F.archive)?void 0:x.icon)?void 0:C.color)??"red",svg:(null==(w=null==(k=null==F?void 0:F.archive)?void 0:k.icon)?void 0:w.svg)??Z.archive},selectionIcon:{color:(null==($=null==(T=null==(M=null==(I=null==(E=null==(S=O.inbox)?void 0:S.header)?void 0:E.menus)?void 0:I.popup)?void 0:M.list)?void 0:T.selectionIcon)?void 0:$.color)??"red",svg:(null==(B=null==(R=null==(D=null==(A=null==(L=null==(P=O.inbox)?void 0:P.header)?void 0:L.menus)?void 0:A.popup)?void 0:D.list)?void 0:R.selectionIcon)?void 0:B.svg)??Z.check},onClick:e=>{this.handleOptionMenuItemClick("archive",e)}}]}getActionOptions(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b;const f=null==(n=null==(t=null==(e=this._themeSubscription.manager.getTheme().inbox)?void 0:e.header)?void 0:t.menus)?void 0:n.actions;return[{id:"markAllRead",text:(null==(i=null==f?void 0:f.markAllRead)?void 0:i.text)??"Mark All as Read",icon:{color:(null==(s=null==(o=null==f?void 0:f.markAllRead)?void 0:o.icon)?void 0:s.color)??"red",svg:(null==(a=null==(r=null==f?void 0:f.markAllRead)?void 0:r.icon)?void 0:a.svg)??Z.inbox},selectionIcon:null,onClick:e=>{oe.shared.readAllMessages({canCallApi:!0})}},{id:"archiveAll",text:(null==(l=null==f?void 0:f.archiveAll)?void 0:l.text)??"Archive All",icon:{color:(null==(u=null==(d=null==f?void 0:f.archiveAll)?void 0:d.icon)?void 0:u.color)??"red",svg:(null==(h=null==(c=null==f?void 0:f.archiveAll)?void 0:c.icon)?void 0:h.svg)??Z.archive},selectionIcon:null,onClick:e=>{oe.shared.archiveAllMessages({canCallApi:!0})}},{id:"archiveRead",text:(null==(p=null==f?void 0:f.archiveRead)?void 0:p.text)??"Archive Read",icon:{color:(null==(g=null==(v=null==f?void 0:f.archiveRead)?void 0:v.icon)?void 0:g.color)??"red",svg:(null==(b=null==(m=null==f?void 0:f.archiveRead)?void 0:m.icon)?void 0:b.svg)??Z.archive},selectionIcon:null,onClick:e=>{oe.shared.archiveReadMessages({canCallApi:!0})}}]}static get observedAttributes(){return["icon","title","feed-type"]}refreshTheme(){var e,t,n,i,o,s,r;const a=this._themeSubscription.manager.getTheme(),l=null==(e=this.shadow)?void 0:e.querySelector(".courier-inbox-header");l&&(l.style.backgroundColor=(null==(n=null==(t=a.inbox)?void 0:t.header)?void 0:n.backgroundColor)??H[500],l.style.boxShadow=(null==(o=null==(i=a.inbox)?void 0:i.header)?void 0:o.shadow)??`0px 1px 0px 0px ${F[500]}`),null==(s=this._filterMenu)||s.setOptions(this.getFilterOptions()),null==(r=this._actionMenu)||r.setOptions(this.getActionOptions())}handleOptionMenuItemClick(e,t){this._feedType=e,this._titleSection&&this._titleSection.updateSelectedOption(t,this._feedType,"inbox"===this._feedType?this._unreadCount:0),this._onFeedTypeChange(e)}render(e){this._feedType=e.feedType,this._unreadCount=e.unreadCount,this.refreshTitleSection()}refreshTitleSection(){var e,t;const n=this.getFilterOptions().find((e=>["inbox","archive"].includes(e.id)&&e.id===this._feedType));n&&(null==(e=this._titleSection)||e.updateSelectedOption(n,this._feedType,"inbox"===this._feedType?this._unreadCount:0),null==(t=this._filterMenu)||t.selectOption(n))}build(e){var t;super.build(e),this._style=document.createElement("style"),this._style.textContent=this.getStyles(),null==(t=this.shadow)||t.appendChild(this._style),this.refreshTheme()}defaultElement(){const e=this.getFilterOptions();this._titleSection=new ve(this._themeSubscription.manager,e[0]),this._filterMenu=new he(this._themeSubscription.manager,"filters",!0,e,(()=>{var e;null==(e=this._actionMenu)||e.closeMenu()})),this._actionMenu=new he(this._themeSubscription.manager,"actions",!1,this.getActionOptions(),(()=>{var e;null==(e=this._filterMenu)||e.closeMenu()})),this._filterMenu.selectOption(e[0]);const t=document.createElement("div");t.className="spacer";const n=document.createElement("div");n.className="actions",n.appendChild(this._filterMenu),n.appendChild(this._actionMenu);const i=document.createElement("div");return i.className="courier-inbox-header",i.appendChild(this._titleSection),i.appendChild(t),i.appendChild(n),i}getStyles(){return`\n :host {\n z-index: 100;\n }\n\n .courier-inbox-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 10px 10px 16px;\n background-color: ${H[500]};\n box-shadow: 0px 1px 0px 0px ${F[500]};\n }\n\n .header-content {\n display: flex;\n align-items: center;\n flex: 1;\n }\n\n .spacer {\n flex: 1;\n }\n\n .actions {\n display: flex;\n align-items: center;\n gap: 4px;\n }\n `}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-header")||customElements.define("courier-inbox-header",ge);class me{constructor(e){D(this,"events"),this.events=e}remove(){oe.shared.removeDataStoreListener(this)}}const be={popup:{button:{icon:{color:O[500],svg:Z.inbox},backgroundColor:"transparent",hoverBackgroundColor:O[50010],activeBackgroundColor:O[50020],unreadIndicator:{font:{color:H[500],size:"14px",family:void 0,weight:void 0},backgroundColor:z[500],borderRadius:"12px"}},window:{backgroundColor:H[500],borderRadius:"8px",border:`1px solid ${F[500]}`,shadow:`0px 8px 16px -4px ${F[500]}`}},inbox:{header:{backgroundColor:H[500],shadow:`0px 1px 0px 0px ${F[500]}`,filters:{font:{color:O[500],family:void 0,size:"18px"},inbox:{icon:{color:O[500],svg:Z.inbox},text:"Inbox"},archive:{icon:{color:O[500],svg:Z.archive},text:"Archive"},unreadIndicator:{font:{color:H[500],family:void 0,size:"14px"},backgroundColor:z[500],borderRadius:"12px"}},menus:{popup:{backgroundColor:H[500],border:`1px solid ${F[500]}`,borderRadius:"4px",shadow:`0px 4px 8px -2px ${F[500]}`,list:{hoverBackgroundColor:F[200],activeBackgroundColor:F[500],divider:"none",font:{color:O[500],family:void 0,size:"14px"},selectionIcon:{color:O[500],svg:Z.check}}},filters:{button:{icon:{color:O[500],svg:Z.filter},backgroundColor:"transparent",hoverBackgroundColor:O[50010],activeBackgroundColor:O[50020]},inbox:{icon:{color:O[500],svg:Z.inbox},text:"Inbox"},archive:{icon:{color:O[500],svg:Z.archive},text:"Archive"}},actions:{button:{icon:{color:O[500],svg:Z.overflow},backgroundColor:"transparent",hoverBackgroundColor:O[50010],activeBackgroundColor:O[50020]},markAllRead:{icon:{color:O[500],svg:Z.read},text:"Read All"},archiveAll:{icon:{color:O[500],svg:Z.archive},text:"Archive All"},archiveRead:{icon:{color:O[500],svg:Z.archiveRead},text:"Archive Read"}}}},list:{backgroundColor:H[500],item:{backgroundColor:"transparent",unreadIndicatorColor:z[500],hoverBackgroundColor:F[200],activeBackgroundColor:F[500],actions:{backgroundColor:"transparent",hoverBackgroundColor:F[200],activeBackgroundColor:F[500],border:`1px solid ${F[500]}`,borderRadius:"4px",shadow:"0px 1px 2px 0px rgba(0, 0, 0, 0.06)",font:{color:O[500],family:void 0,size:"14px"}},title:{color:O[500],family:void 0,size:"14px"},subtitle:{color:F[600],family:void 0,size:"14px"},time:{color:F[600],family:void 0,size:"14px"},divider:`1px solid ${F[200]}`,menu:{enabled:!0,backgroundColor:H[500],border:`1px solid ${F[500]}`,borderRadius:"4px",shadow:`0px 2px 4px -2px ${F[500]}`,longPress:{displayDuration:4e3,vibrationDuration:50},item:{hoverBackgroundColor:F[200],activeBackgroundColor:F[500],borderRadius:"0px",read:{color:O[500],svg:Z.read},unread:{color:O[500],svg:Z.unread},archive:{color:O[500],svg:Z.archive},unarchive:{color:O[500],svg:Z.unarchive}}}}},loading:{animation:{barColor:F[500],barHeight:"14px",barBorderRadius:"14px",duration:"2s"},divider:`1px solid ${F[200]}`},empty:{title:{font:{size:"16px",weight:"500",color:O[500]}},button:{text:"Refresh"}},error:{title:{font:{size:"16px",weight:"500",color:O[500]}},button:{text:"Retry"}}}},fe={popup:{button:{icon:{color:H[500],svg:Z.inbox},backgroundColor:"transparent",hoverBackgroundColor:H[50010],activeBackgroundColor:H[50020],unreadIndicator:{font:{color:H[500],size:"14px",family:void 0,weight:void 0},backgroundColor:z[500],borderRadius:"12px"}},window:{backgroundColor:O[500],borderRadius:"8px",border:`1px solid ${F[400]}`,shadow:`0px 4px 8px -2px ${H[50020]}`}},inbox:{header:{backgroundColor:O[500],shadow:`0px 1px 0px 0px ${F[400]}`,filters:{font:{color:H[500],family:void 0,size:"18px"},inbox:{icon:{color:H[500],svg:Z.inbox},text:"Inbox"},archive:{icon:{color:H[500],svg:Z.archive},text:"Archive"},unreadIndicator:{font:{color:H[500],family:void 0,size:"14px"},backgroundColor:z[500],borderRadius:"12px"}},menus:{popup:{backgroundColor:O[500],border:`1px solid ${F[400]}`,borderRadius:"4px",shadow:`0px 4px 8px -2px ${H[50020]}`,list:{hoverBackgroundColor:H[50010],activeBackgroundColor:H[50020],divider:"none",font:{color:H[500],family:void 0,size:"14px"},selectionIcon:{color:H[500],svg:Z.check}}},filters:{button:{icon:{color:H[500],svg:Z.filter},backgroundColor:"transparent",hoverBackgroundColor:H[50010],activeBackgroundColor:H[50020]},inbox:{icon:{color:H[500],svg:Z.inbox},text:"Inbox"},archive:{icon:{color:H[500],svg:Z.archive},text:"Archive"}},actions:{button:{icon:{color:H[500],svg:Z.overflow},backgroundColor:"transparent",hoverBackgroundColor:H[50010],activeBackgroundColor:H[50020]},markAllRead:{icon:{color:H[500],svg:Z.read},text:"Read All"},archiveAll:{icon:{color:H[500],svg:Z.archive},text:"Archive All"},archiveRead:{icon:{color:H[500],svg:Z.archiveRead},text:"Archive Read"}}}},list:{backgroundColor:O[500],item:{backgroundColor:"transparent",unreadIndicatorColor:z[500],hoverBackgroundColor:H[50010],activeBackgroundColor:H[50020],actions:{backgroundColor:"transparent",hoverBackgroundColor:H[50010],activeBackgroundColor:H[50020],border:`1px solid ${F[400]}`,borderRadius:"4px",shadow:`0px 1px 2px 0px ${H[50010]}`,font:{color:H[500],family:void 0,size:"14px"}},title:{color:H[500],family:void 0,size:"14px"},subtitle:{color:F[500],family:void 0,size:"14px"},time:{color:F[500],family:void 0,size:"12px"},divider:`1px solid ${F[400]}`,menu:{enabled:!0,backgroundColor:O[500],border:`1px solid ${F[400]}`,borderRadius:"4px",shadow:`0px 2px 4px -2px ${H[50020]}`,longPress:{displayDuration:4e3,vibrationDuration:50},item:{hoverBackgroundColor:H[50010],activeBackgroundColor:H[50020],borderRadius:"0px",read:{color:H[500],svg:Z.read},unread:{color:H[500],svg:Z.unread},archive:{color:H[500],svg:Z.archive},unarchive:{color:H[500],svg:Z.unarchive}}}}},loading:{animation:{barColor:H[500],barHeight:"14px",barBorderRadius:"14px",duration:"2s"},divider:`1px solid ${F[400]}`},empty:{title:{font:{size:"16px",weight:"500",color:H[500]}},button:{text:"Refresh"}},error:{title:{font:{size:"16px",weight:"500",color:H[500]}},button:{text:"Retry"}}}};class _e{constructor(e){D(this,"THEME_CHANGE_EVENT","courier_inbox_theme_change"),D(this,"_theme"),D(this,"_lightTheme",be),D(this,"_darkTheme",fe),D(this,"_target"),D(this,"_subscriptions",[]),D(this,"_userMode"),D(this,"_systemMode"),D(this,"_systemThemeCleanup"),this._theme=e,this._target=new EventTarget,this._userMode="system",this._systemMode=N(),this.setLightTheme(be),this.setDarkTheme(fe),this._systemThemeCleanup=j((e=>{this._systemMode=e,this.updateTheme()}))}setLightTheme(e){this._lightTheme=e,"light"===this._systemMode&&this.updateTheme()}setDarkTheme(e){this._darkTheme=e,"dark"===this._systemMode&&this.updateTheme()}get currentSystemTheme(){return this._systemMode}getTheme(){return this._theme}updateTheme(){const e="system"===this._userMode?this._systemMode:this._userMode,t=((e,t)=>{var n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b,f,_,y,x,C,k,w,S,E,I,M,T,$,P,L,A,D,R,B,O,F,H,z,U,N,j,q,V,J,W,Z,G,K,X,Y,Q,ee,te,ne,ie,oe,se,re,ae,le,de,ue,ce,he,pe,ve,ge,me,_e,ye,xe,Ce,ke,we,Se,Ee,Ie,Me,Te,$e,Pe,Le,Ae,De,Re,Be,Oe,Fe,He,ze,Ue,Ne,je,qe,Ve,Je,We,Ze,Ge,Ke,Xe,Ye,Qe,et,tt,nt,it,ot,st,rt,at,lt,dt,ut,ct,ht,pt,vt,gt,mt,bt,ft,_t,yt,xt,Ct,kt,wt,St,Et,It,Mt,Tt,$t,Pt,Lt,At,Dt,Rt,Bt,Ot,Ft,Ht,zt,Ut,Nt,jt,qt,Vt,Jt,Wt,Zt,Gt,Kt,Xt,Yt,Qt,en,tn,nn,on,sn,rn,an,ln,dn,un,cn,hn,pn,vn,gn,mn,bn,fn,_n,yn,xn,Cn,kn,wn,Sn,En,In,Mn,Tn,$n,Pn,Ln,An,Dn,Rn,Bn,On,Fn,Hn,zn,Un,Nn,jn,qn,Vn,Jn,Wn,Zn,Gn,Kn,Xn,Yn,Qn,ei,ti,ni,ii,oi,si,ri,ai,li,di,ui,ci,hi,pi,vi,gi,mi,bi,fi,_i,yi,xi,Ci,ki,wi,Si,Ei,Ii,Mi,Ti,$i,Pi,Li,Ai,Di,Ri,Bi,Oi,Fi,Hi,zi,Ui,Ni,ji,qi,Vi,Ji;const Wi="light"===e?be:fe;return{popup:{button:{...null==(n=Wi.popup)?void 0:n.button,...null==(i=t.popup)?void 0:i.button,icon:{...null==(s=null==(o=Wi.popup)?void 0:o.button)?void 0:s.icon,...null==(a=null==(r=t.popup)?void 0:r.button)?void 0:a.icon},unreadIndicator:{...null==(d=null==(l=Wi.popup)?void 0:l.button)?void 0:d.unreadIndicator,...null==(c=null==(u=t.popup)?void 0:u.button)?void 0:c.unreadIndicator}},window:{...null==(h=Wi.popup)?void 0:h.window,...null==(p=t.popup)?void 0:p.window}},inbox:{header:{...null==(v=Wi.inbox)?void 0:v.header,...null==(g=t.inbox)?void 0:g.header,filters:{...null==(b=null==(m=Wi.inbox)?void 0:m.header)?void 0:b.filters,...null==(_=null==(f=t.inbox)?void 0:f.header)?void 0:_.filters,inbox:{...null==(C=null==(x=null==(y=Wi.inbox)?void 0:y.header)?void 0:x.filters)?void 0:C.inbox,...null==(S=null==(w=null==(k=t.inbox)?void 0:k.header)?void 0:w.filters)?void 0:S.inbox,icon:{...null==(T=null==(M=null==(I=null==(E=Wi.inbox)?void 0:E.header)?void 0:I.filters)?void 0:M.inbox)?void 0:T.icon,...null==(A=null==(L=null==(P=null==($=t.inbox)?void 0:$.header)?void 0:P.filters)?void 0:L.inbox)?void 0:A.icon}},archive:{...null==(B=null==(R=null==(D=Wi.inbox)?void 0:D.header)?void 0:R.filters)?void 0:B.archive,...null==(H=null==(F=null==(O=t.inbox)?void 0:O.header)?void 0:F.filters)?void 0:H.archive,icon:{...null==(j=null==(N=null==(U=null==(z=Wi.inbox)?void 0:z.header)?void 0:U.filters)?void 0:N.archive)?void 0:j.icon,...null==(W=null==(J=null==(V=null==(q=t.inbox)?void 0:q.header)?void 0:V.filters)?void 0:J.archive)?void 0:W.icon}},unreadIndicator:{...null==(K=null==(G=null==(Z=Wi.inbox)?void 0:Z.header)?void 0:G.filters)?void 0:K.unreadIndicator,...null==(Q=null==(Y=null==(X=t.inbox)?void 0:X.header)?void 0:Y.filters)?void 0:Q.unreadIndicator}},menus:{...null==(te=null==(ee=Wi.inbox)?void 0:ee.header)?void 0:te.menus,...null==(ie=null==(ne=t.inbox)?void 0:ne.header)?void 0:ie.menus,popup:{...null==(re=null==(se=null==(oe=Wi.inbox)?void 0:oe.header)?void 0:se.menus)?void 0:re.popup,...null==(de=null==(le=null==(ae=t.inbox)?void 0:ae.header)?void 0:le.menus)?void 0:de.popup,list:{...null==(pe=null==(he=null==(ce=null==(ue=Wi.inbox)?void 0:ue.header)?void 0:ce.menus)?void 0:he.popup)?void 0:pe.list,...null==(_e=null==(me=null==(ge=null==(ve=t.inbox)?void 0:ve.header)?void 0:ge.menus)?void 0:me.popup)?void 0:_e.list,font:{...null==(we=null==(ke=null==(Ce=null==(xe=null==(ye=Wi.inbox)?void 0:ye.header)?void 0:xe.menus)?void 0:Ce.popup)?void 0:ke.list)?void 0:we.font,...null==(Te=null==(Me=null==(Ie=null==(Ee=null==(Se=t.inbox)?void 0:Se.header)?void 0:Ee.menus)?void 0:Ie.popup)?void 0:Me.list)?void 0:Te.font},selectionIcon:{...null==(De=null==(Ae=null==(Le=null==(Pe=null==($e=Wi.inbox)?void 0:$e.header)?void 0:Pe.menus)?void 0:Le.popup)?void 0:Ae.list)?void 0:De.selectionIcon,...null==(He=null==(Fe=null==(Oe=null==(Be=null==(Re=t.inbox)?void 0:Re.header)?void 0:Be.menus)?void 0:Oe.popup)?void 0:Fe.list)?void 0:He.selectionIcon}}},filters:{...null==(Ne=null==(Ue=null==(ze=Wi.inbox)?void 0:ze.header)?void 0:Ue.menus)?void 0:Ne.filters,...null==(Ve=null==(qe=null==(je=t.inbox)?void 0:je.header)?void 0:qe.menus)?void 0:Ve.filters,inbox:{...null==(Ge=null==(Ze=null==(We=null==(Je=Wi.inbox)?void 0:Je.header)?void 0:We.menus)?void 0:Ze.filters)?void 0:Ge.inbox,...null==(Qe=null==(Ye=null==(Xe=null==(Ke=t.inbox)?void 0:Ke.header)?void 0:Xe.menus)?void 0:Ye.filters)?void 0:Qe.inbox,icon:{...null==(ot=null==(it=null==(nt=null==(tt=null==(et=Wi.inbox)?void 0:et.header)?void 0:tt.menus)?void 0:nt.filters)?void 0:it.inbox)?void 0:ot.icon,...null==(dt=null==(lt=null==(at=null==(rt=null==(st=t.inbox)?void 0:st.header)?void 0:rt.menus)?void 0:at.filters)?void 0:lt.inbox)?void 0:dt.icon}},archive:{...null==(pt=null==(ht=null==(ct=null==(ut=Wi.inbox)?void 0:ut.header)?void 0:ct.menus)?void 0:ht.filters)?void 0:pt.archive,...null==(bt=null==(mt=null==(gt=null==(vt=t.inbox)?void 0:vt.header)?void 0:gt.menus)?void 0:mt.filters)?void 0:bt.archive,icon:{...null==(Ct=null==(xt=null==(yt=null==(_t=null==(ft=Wi.inbox)?void 0:ft.header)?void 0:_t.menus)?void 0:yt.filters)?void 0:xt.archive)?void 0:Ct.icon,...null==(It=null==(Et=null==(St=null==(wt=null==(kt=t.inbox)?void 0:kt.header)?void 0:wt.menus)?void 0:St.filters)?void 0:Et.archive)?void 0:It.icon}}},actions:{...null==($t=null==(Tt=null==(Mt=Wi.inbox)?void 0:Mt.header)?void 0:Tt.menus)?void 0:$t.actions,...null==(At=null==(Lt=null==(Pt=t.inbox)?void 0:Pt.header)?void 0:Lt.menus)?void 0:At.actions,markAllRead:{...null==(Ot=null==(Bt=null==(Rt=null==(Dt=Wi.inbox)?void 0:Dt.header)?void 0:Rt.menus)?void 0:Bt.actions)?void 0:Ot.markAllRead,...null==(Ut=null==(zt=null==(Ht=null==(Ft=t.inbox)?void 0:Ft.header)?void 0:Ht.menus)?void 0:zt.actions)?void 0:Ut.markAllRead,icon:{...null==(Jt=null==(Vt=null==(qt=null==(jt=null==(Nt=Wi.inbox)?void 0:Nt.header)?void 0:jt.menus)?void 0:qt.actions)?void 0:Vt.markAllRead)?void 0:Jt.icon,...null==(Xt=null==(Kt=null==(Gt=null==(Zt=null==(Wt=t.inbox)?void 0:Wt.header)?void 0:Zt.menus)?void 0:Gt.actions)?void 0:Kt.markAllRead)?void 0:Xt.icon}},archiveAll:{...null==(tn=null==(en=null==(Qt=null==(Yt=Wi.inbox)?void 0:Yt.header)?void 0:Qt.menus)?void 0:en.actions)?void 0:tn.archiveAll,...null==(rn=null==(sn=null==(on=null==(nn=t.inbox)?void 0:nn.header)?void 0:on.menus)?void 0:sn.actions)?void 0:rn.archiveAll,icon:{...null==(cn=null==(un=null==(dn=null==(ln=null==(an=Wi.inbox)?void 0:an.header)?void 0:ln.menus)?void 0:dn.actions)?void 0:un.archiveAll)?void 0:cn.icon,...null==(mn=null==(gn=null==(vn=null==(pn=null==(hn=t.inbox)?void 0:hn.header)?void 0:pn.menus)?void 0:vn.actions)?void 0:gn.archiveAll)?void 0:mn.icon}},archiveRead:{...null==(yn=null==(_n=null==(fn=null==(bn=Wi.inbox)?void 0:bn.header)?void 0:fn.menus)?void 0:_n.actions)?void 0:yn.archiveRead,...null==(wn=null==(kn=null==(Cn=null==(xn=t.inbox)?void 0:xn.header)?void 0:Cn.menus)?void 0:kn.actions)?void 0:wn.archiveRead,icon:{...null==(Tn=null==(Mn=null==(In=null==(En=null==(Sn=Wi.inbox)?void 0:Sn.header)?void 0:En.menus)?void 0:In.actions)?void 0:Mn.archiveRead)?void 0:Tn.icon,...null==(Dn=null==(An=null==(Ln=null==(Pn=null==($n=t.inbox)?void 0:$n.header)?void 0:Pn.menus)?void 0:Ln.actions)?void 0:An.archiveRead)?void 0:Dn.icon}}}}},list:{...null==(Rn=Wi.inbox)?void 0:Rn.list,...null==(Bn=t.inbox)?void 0:Bn.list,item:{...null==(Fn=null==(On=Wi.inbox)?void 0:On.list)?void 0:Fn.item,...null==(zn=null==(Hn=t.inbox)?void 0:Hn.list)?void 0:zn.item,menu:{...null==(jn=null==(Nn=null==(Un=Wi.inbox)?void 0:Un.list)?void 0:Nn.item)?void 0:jn.menu,...null==(Jn=null==(Vn=null==(qn=t.inbox)?void 0:qn.list)?void 0:Vn.item)?void 0:Jn.menu,item:{...null==(Kn=null==(Gn=null==(Zn=null==(Wn=Wi.inbox)?void 0:Wn.list)?void 0:Zn.item)?void 0:Gn.menu)?void 0:Kn.item,...null==(ei=null==(Qn=null==(Yn=null==(Xn=t.inbox)?void 0:Xn.list)?void 0:Yn.item)?void 0:Qn.menu)?void 0:ei.item,read:{...null==(si=null==(oi=null==(ii=null==(ni=null==(ti=Wi.inbox)?void 0:ti.list)?void 0:ni.item)?void 0:ii.menu)?void 0:oi.item)?void 0:si.read,...null==(ui=null==(di=null==(li=null==(ai=null==(ri=t.inbox)?void 0:ri.list)?void 0:ai.item)?void 0:li.menu)?void 0:di.item)?void 0:ui.read},unread:{...null==(gi=null==(vi=null==(pi=null==(hi=null==(ci=Wi.inbox)?void 0:ci.list)?void 0:hi.item)?void 0:pi.menu)?void 0:vi.item)?void 0:gi.unread,...null==(yi=null==(_i=null==(fi=null==(bi=null==(mi=t.inbox)?void 0:mi.list)?void 0:bi.item)?void 0:fi.menu)?void 0:_i.item)?void 0:yi.unread},archive:{...null==(Si=null==(wi=null==(ki=null==(Ci=null==(xi=Wi.inbox)?void 0:xi.list)?void 0:Ci.item)?void 0:ki.menu)?void 0:wi.item)?void 0:Si.archive,...null==($i=null==(Ti=null==(Mi=null==(Ii=null==(Ei=t.inbox)?void 0:Ei.list)?void 0:Ii.item)?void 0:Mi.menu)?void 0:Ti.item)?void 0:$i.archive},unarchive:{...null==(Ri=null==(Di=null==(Ai=null==(Li=null==(Pi=Wi.inbox)?void 0:Pi.list)?void 0:Li.item)?void 0:Ai.menu)?void 0:Di.item)?void 0:Ri.unarchive,...null==(zi=null==(Hi=null==(Fi=null==(Oi=null==(Bi=t.inbox)?void 0:Bi.list)?void 0:Oi.item)?void 0:Fi.menu)?void 0:Hi.item)?void 0:zi.unarchive}}}}},loading:{...null==(Ui=Wi.inbox)?void 0:Ui.loading,...null==(Ni=t.inbox)?void 0:Ni.loading},empty:{...null==(ji=Wi.inbox)?void 0:ji.empty,...null==(qi=t.inbox)?void 0:qi.empty},error:{...null==(Vi=Wi.inbox)?void 0:Vi.error,...null==(Ji=t.inbox)?void 0:Ji.error}}}})(e,"light"===e?this._lightTheme:this._darkTheme);this.setTheme(t)}setTheme(e){e!==this._theme&&(this._theme=e,this._target.dispatchEvent(new CustomEvent(this.THEME_CHANGE_EVENT,{detail:{theme:e}})))}setMode(e){this._userMode=e,this.updateTheme()}subscribe(e){const t=new AbortController;this._target.addEventListener(this.THEME_CHANGE_EVENT,(t=>{e(t.detail.theme)}),{signal:t.signal});const n={manager:this,unsubscribe:()=>{t.abort();const e=this._subscriptions.indexOf(n);e>-1&&this._subscriptions.splice(e,1)}};return this._subscriptions.push(n),n}cleanup(){this._systemThemeCleanup&&this._systemThemeCleanup(),this._subscriptions.forEach((e=>e.unsubscribe())),this._subscriptions=[]}}let ye=class extends HTMLElement{constructor(e){var t;super(),D(this,"_currentFeed","inbox"),D(this,"_themeManager"),D(this,"_shadow"),D(this,"_list"),D(this,"_datastoreListener"),D(this,"_authListener"),D(this,"_style"),D(this,"_header"),D(this,"_headerFactory"),D(this,"_onMessageClick"),D(this,"_onMessageActionClick"),D(this,"_onMessageLongPress"),D(this,"_defaultProps",{title:"Inbox",icon:Z.inbox,feedType:this._currentFeed,height:"768px"}),this._shadow=this.attachShadow({mode:"open"}),this._themeManager=e??new _e(be),this._header=new ge({themeManager:this._themeManager,onFeedTypeChange:e=>{this.setFeedType(e)}}),this._header.build(void 0),this._shadow.appendChild(this._header),this._list=new ue({themeManager:this._themeManager,onRefresh:()=>{this.refresh()},onPaginationTrigger:async e=>{var t,n;try{await oe.shared.fetchNextPageOfMessages({feedType:e})}catch(i){null==(n=null==(t=L.shared.client)?void 0:t.options.logger)||n.error("Failed to fetch next page of messages:",i)}},onMessageClick:(e,t)=>{var n;oe.shared.clickMessage({message:e}),this.dispatchEvent(new CustomEvent("message-click",{detail:{message:e,index:t},bubbles:!0,composed:!0})),null==(n=this._onMessageClick)||n.call(this,{message:e,index:t})},onMessageActionClick:(e,t,n)=>{var i;this.dispatchEvent(new CustomEvent("message-action-click",{detail:{message:e,action:t,index:n},bubbles:!0,composed:!0})),null==(i=this._onMessageActionClick)||i.call(this,{message:e,action:t,index:n})},onMessageLongPress:(e,t)=>{var n;this.dispatchEvent(new CustomEvent("message-long-press",{detail:{message:e,index:t},bubbles:!0,composed:!0})),null==(n=this._onMessageLongPress)||n.call(this,{message:e,index:t})}}),this._style=document.createElement("style"),this.refreshTheme(),this._shadow.appendChild(this._style),this._shadow.appendChild(this._list),this._datastoreListener=new me({onError:e=>{this._list.setError(e)},onDataSetChange:(e,t)=>{this._currentFeed===t&&(this._list.setDataSet(e),this.updateHeader())},onPageAdded:(e,t)=>{this._currentFeed===t&&(this._list.addPage(e),this.updateHeader())},onMessageAdd:(e,t,n)=>{this._currentFeed===n&&(this._list.addMessage(e,t),this.updateHeader())},onMessageRemove:(e,t,n)=>{this._currentFeed===n&&(this._list.removeMessage(t),this.updateHeader())},onMessageUpdate:(e,t,n)=>{this._currentFeed===n&&(this._list.updateMessage(e,t),this.updateHeader())},onUnreadCountChange:e=>{this.updateHeader()}}),oe.shared.addDataStoreListener(this._datastoreListener),this._themeManager.subscribe((e=>{this.refreshTheme()})),this._authListener=L.shared.addAuthenticationListener((e=>{this.refresh()})),(null==(t=L.shared.client)?void 0:t.options.userId)&&this.refresh()}get theme(){return this._themeManager.getTheme()}setLightTheme(e){this._themeManager.setLightTheme(e)}setDarkTheme(e){this._themeManager.setDarkTheme(e)}static get observedAttributes(){return["height","light-theme","dark-theme","mode","message-click","message-action-click","message-long-press"]}refreshTheme(){this._style.textContent=this.getStyles()}getStyles(){return`\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: ${this._defaultProps.height};\n }\n\n courier-inbox-header {\n flex-shrink: 0;\n }\n\n courier-inbox-list {\n flex: 1;\n overflow-y: auto;\n overflow-x: hidden;\n }\n `}setHeader(e){this._headerFactory=e,this.updateHeader()}removeHeader(){this._headerFactory=null,this.updateHeader()}setLoadingState(e){this._list.setLoadingStateFactory(e)}setEmptyState(e){this._list.setEmptyStateFactory(e)}setErrorState(e){this._list.setErrorStateFactory(e)}setListItem(e){this._list.setListItemFactory(e)}setPaginationItem(e){this._list.setPaginationItemFactory(e)}onMessageClick(e){this._onMessageClick=e}onMessageActionClick(e){this._onMessageActionClick=e}onMessageLongPress(e){this._onMessageLongPress=e}setFeedType(e){this._currentFeed=e,this._list.setFeedType(e),this.updateHeader(),this.load({feedType:this._currentFeed,canUseCache:!0})}updateHeader(){const e={feedType:this._currentFeed,unreadCount:oe.shared.unreadCount,messageCount:this._list.messages.length};switch(this._headerFactory){case void 0:this._header.render(e);break;case null:this._header.build(null);break;default:const t=this._headerFactory(e);this._header.build(t)}}async load(e){await oe.shared.load(e),await oe.shared.listenForUpdates()}refresh(){this.load({feedType:this._currentFeed,canUseCache:!1})}connectedCallback(){this.refresh()}disconnectedCallback(){var e,t;this._themeManager.cleanup(),null==(e=this._datastoreListener)||e.remove(),null==(t=this._authListener)||t.remove()}attributeChangedCallback(e,t,n){var i,o,s,r,a,l;if(t!==n)switch(e){case"height":const e=n||this._defaultProps.height;this.style.height=e;break;case"message-click":if(n)try{this._onMessageClick=new Function("props",n)}catch(d){null==(o=null==(i=L.shared.client)?void 0:i.options.logger)||o.error("Failed to parse message-click handler:",d)}else this._onMessageClick=void 0;break;case"message-action-click":if(n)try{this._onMessageActionClick=new Function("props",n)}catch(d){null==(r=null==(s=L.shared.client)?void 0:s.options.logger)||r.error("Failed to parse message-action-click handler:",d)}else this._onMessageActionClick=void 0;break;case"message-long-press":if(n)try{this._onMessageLongPress=new Function("props",n)}catch(d){null==(l=null==(a=L.shared.client)?void 0:a.options.logger)||l.error("Failed to parse message-long-press handler:",d)}else this._onMessageLongPress=void 0;break;case"light-theme":n&&this.setLightTheme(JSON.parse(n));break;case"dark-theme":n&&this.setDarkTheme(JSON.parse(n));break;case"mode":this._themeManager.setMode(n)}}};customElements.get("courier-inbox")||customElements.define("courier-inbox",ye);class xe extends X{constructor(e){super(),D(this,"_themeSubscription"),D(this,"_container"),D(this,"_triggerButton"),D(this,"_unreadCountBadge"),this._themeSubscription=e.subscribe((e=>{this.updateTheme()}))}defaultElement(){this._container=document.createElement("div"),this._container.className="menu-button-container",this._triggerButton=new Q(Z.inbox),this._unreadCountBadge=new pe({themeBus:this._themeSubscription.manager,location:"button"}),this._unreadCountBadge.id="unread-badge";const e=document.createElement("style");return e.textContent=this.getStyles(),this._container.appendChild(e),this._container.appendChild(this._triggerButton),this._container.appendChild(this._unreadCountBadge),this.shadow.appendChild(this._container),this.updateTheme(),this._container}getStyles(){return"\n .menu-button-container {\n position: relative;\n display: inline-block;\n }\n \n #unread-badge {\n position: absolute;\n top: -8px;\n left: 50%;\n pointer-events: none;\n }\n "}onUnreadCountChange(e){var t;null==(t=this._unreadCountBadge)||t.setCount(e),this.updateTheme()}updateTheme(){var e,t,n,i,o,s,r,a,l,d,u,c,h,p,v,g,m,b;const f=this._themeSubscription.manager.getTheme();null==(i=this._triggerButton)||i.updateIconColor((null==(n=null==(t=null==(e=null==f?void 0:f.popup)?void 0:e.button)?void 0:t.icon)?void 0:n.color)??O[500]),null==(a=this._triggerButton)||a.updateIconSVG((null==(r=null==(s=null==(o=null==f?void 0:f.popup)?void 0:o.button)?void 0:s.icon)?void 0:r.svg)??Z.inbox),null==(u=this._triggerButton)||u.updateBackgroundColor((null==(d=null==(l=null==f?void 0:f.popup)?void 0:l.button)?void 0:d.backgroundColor)??"transparent"),null==(p=this._triggerButton)||p.updateHoverBackgroundColor((null==(h=null==(c=null==f?void 0:f.popup)?void 0:c.button)?void 0:h.hoverBackgroundColor)??O[50010]),null==(m=this._triggerButton)||m.updateActiveBackgroundColor((null==(g=null==(v=null==f?void 0:f.popup)?void 0:v.button)?void 0:g.activeBackgroundColor)??O[50020]),null==(b=this._unreadCountBadge)||b.refreshTheme("button")}disconnectedCallback(){this._themeSubscription.unsubscribe()}}customElements.get("courier-inbox-menu-button")||customElements.define("courier-inbox-menu-button",xe);let Ce=class extends HTMLElement{constructor(){super(),D(this,"_width","440px"),D(this,"_height","440px"),D(this,"_popupAlignment","top-right"),D(this,"_top","40px"),D(this,"_right","0"),D(this,"_bottom","40px"),D(this,"_left","0"),D(this,"_themeManager",new _e(be)),D(this,"_triggerButton"),D(this,"_popup"),D(this,"_inbox"),D(this,"_style"),D(this,"_datastoreListener"),D(this,"_popupMenuButtonFactory");const e=this.attachShadow({mode:"open"});this._triggerButton=new xe(this._themeManager),this._triggerButton.build(void 0),this._popup=document.createElement("div"),this._popup.className="popup",this._inbox=new ye(this._themeManager),this._inbox.setAttribute("height","100%"),this._style=document.createElement("style"),this.refreshTheme(),e.appendChild(this._style),e.appendChild(this._triggerButton),e.appendChild(this._popup),this._popup.appendChild(this._inbox),this._triggerButton.addEventListener("click",this.togglePopup.bind(this)),document.addEventListener("click",this.handleOutsideClick.bind(this)),this.updatePopupPosition(),this._datastoreListener=new me(this),oe.shared.addDataStoreListener(this._datastoreListener),this._themeManager.subscribe((e=>{this.refreshTheme()}))}get theme(){return this._themeManager.getTheme()}setLightTheme(e){this._themeManager.setLightTheme(e)}setDarkTheme(e){this._themeManager.setDarkTheme(e)}static get observedAttributes(){return["popup-alignment","message-click","message-action-click","message-long-press","popup-width","popup-height","top","right","bottom","left","light-theme","dark-theme","mode"]}refreshTheme(){this._style.textContent=this.getStyles()}getStyles(){var e,t,n,i,o,s,r,a;return`\n :host {\n display: inline-block;\n position: relative;\n }\n\n .menu-button-container {\n position: relative;\n display: inline-block;\n }\n\n .popup {\n display: none;\n position: absolute;\n background: ${(null==(t=null==(e=this.theme.popup)?void 0:e.window)?void 0:t.backgroundColor)??"red"};\n border-radius: ${(null==(i=null==(n=this.theme.popup)?void 0:n.window)?void 0:i.borderRadius)??"8px"};\n border: ${(null==(s=null==(o=this.theme.popup)?void 0:o.window)?void 0:s.border)??"1px solid red"};\n box-shadow: ${(null==(a=null==(r=this.theme.popup)?void 0:r.window)?void 0:a.shadow)??"0px 8px 16px -4px red"};\n z-index: 1000;\n width: ${this._width};\n height: ${this._height};\n overflow: hidden;\n transform: translateZ(0);\n will-change: transform;\n }\n \n #unread-badge {\n position: absolute;\n top: -8px;\n left: 50%;\n pointer-events: none;\n }\n\n courier-inbox {\n height: 100%;\n }\n `}attributeChangedCallback(e,t,n){switch(e){case"popup-alignment":this.isValidPosition(n)&&(this._popupAlignment=n,this.updatePopupPosition());break;case"popup-width":this._width=n,this.setSize(n,this._height);break;case"popup-height":this._height=n,this.setSize(this._width,n);break;case"top":this._top=n,this.updatePopupPosition();break;case"right":this._right=n,this.updatePopupPosition();break;case"bottom":this._bottom=n,this.updatePopupPosition();break;case"left":this._left=n,this.updatePopupPosition();break;case"light-theme":n&&this.setLightTheme(JSON.parse(n));break;case"dark-theme":n&&this.setDarkTheme(JSON.parse(n));break;case"mode":this._themeManager.setMode(n)}}onUnreadCountChange(e){this.render()}onMessageClick(e){this._inbox.onMessageClick(e)}onMessageActionClick(e){this._inbox.onMessageActionClick(e)}onMessageLongPress(e){this._inbox.onMessageLongPress(e)}isValidPosition(e){return["top-right","top-left","top-center","bottom-right","bottom-left","bottom-center","center-right","center-left","center-center"].includes(e)}updatePopupPosition(){switch(this._popup.style.top="",this._popup.style.bottom="",this._popup.style.left="",this._popup.style.right="",this._popup.style.margin="",this._popup.style.transform="",this._popupAlignment){case"top-right":this._popup.style.top=this._top,this._popup.style.right=this._right;break;case"top-left":this._popup.style.top=this._top,this._popup.style.left=this._left;break;case"top-center":this._popup.style.top=this._top,this._popup.style.left="50%",this._popup.style.transform="translateX(-50%)";break;case"bottom-right":this._popup.style.bottom=this._bottom,this._popup.style.right=this._right;break;case"bottom-left":this._popup.style.bottom=this._bottom,this._popup.style.left=this._left;break;case"bottom-center":this._popup.style.bottom=this._bottom,this._popup.style.left="50%",this._popup.style.transform="translateX(-50%)";break;case"center-right":this._popup.style.top="50%",this._popup.style.right=this._right,this._popup.style.transform="translateY(-50%)";break;case"center-left":this._popup.style.top="50%",this._popup.style.left=this._left,this._popup.style.transform="translateY(-50%)";break;case"center-center":this._popup.style.top="50%",this._popup.style.left="50%",this._popup.style.transform="translate(-50%, -50%)"}}togglePopup(e){e.stopPropagation();const t="block"===this._popup.style.display;this._popup.style.display=t?"none":"block"}handleOutsideClick(e){this.contains(e.target)||(this._popup.style.display="none")}setContent(e){this._inbox.innerHTML="",this._inbox.appendChild(e)}setSize(e,t){this._width=e,this._height=t,this._popup.style.width=e,this._popup.style.height=t}setPosition(e){var t,n;this.isValidPosition(e)?(this._popupAlignment=e,this.updatePopupPosition()):null==(n=null==(t=L.shared.client)?void 0:t.options.logger)||n.error(`Invalid position: ${e}`)}setFeedType(e){this._inbox.setFeedType(e)}setPopupHeader(e){this._inbox.setHeader(e)}removePopupHeader(){this._inbox.removeHeader()}setPopupLoadingState(e){this._inbox.setLoadingState(e)}setPopupEmptyState(e){this._inbox.setEmptyState(e)}setPopupErrorState(e){this._inbox.setErrorState(e)}setPopupListItem(e){this._inbox.setListItem(e)}setPopupPaginationItem(e){this._inbox.setPaginationItem(e)}setPopupMenuButton(e){this._popupMenuButtonFactory=e,this.render()}render(){const e=oe.shared.unreadCount;switch(this._popupMenuButtonFactory){case void 0:case null:this._triggerButton.build(void 0),this._triggerButton.onUnreadCountChange(e);break;default:const t=this._popupMenuButtonFactory({unreadCount:e});this._triggerButton.build(t)}}disconnectedCallback(){var e;null==(e=this._datastoreListener)||e.remove(),this._themeManager.cleanup()}};customElements.get("courier-inbox-menu")||customElements.define("courier-inbox-menu",Ce);var ke,we={exports:{}},Se={};var Ee,Ie,Me={};
|
|
2
|
+
/** @license React v17.0.2
|
|
3
|
+
* react-jsx-runtime.development.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/function Te(){return Ee||(Ee=1,e=Me,"production"!==process.env.NODE_ENV&&function(){var i=t,o=n,s=60103,r=60106;e.Fragment=60107;var a=60108,l=60114,d=60109,u=60110,c=60112,h=60113,p=60120,v=60115,g=60116,m=60121,b=60122,f=60117,_=60129,y=60131;if("function"==typeof Symbol&&Symbol.for){var x=Symbol.for;s=x("react.element"),r=x("react.portal"),e.Fragment=x("react.fragment"),a=x("react.strict_mode"),l=x("react.profiler"),d=x("react.provider"),u=x("react.context"),c=x("react.forward_ref"),h=x("react.suspense"),p=x("react.suspense_list"),v=x("react.memo"),g=x("react.lazy"),m=x("react.block"),b=x("react.server.block"),f=x("react.fundamental"),x("react.scope"),x("react.opaque.id"),_=x("react.debug_trace_mode"),x("react.offscreen"),y=x("react.legacy_hidden")}var C="function"==typeof Symbol&&Symbol.iterator,k=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];!function(e,t,n){var i=k.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(t+="%s",n=n.concat([i]));var o=n.map((function(e){return""+e}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}("error",e,n)}function S(e){return e.displayName||"Context"}function E(t){if(null==t)return null;if("number"==typeof t.tag&&w("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e.Fragment:return"Fragment";case r:return"Portal";case l:return"Profiler";case a:return"StrictMode";case h:return"Suspense";case p:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case u:return S(t)+".Consumer";case d:return S(t._context)+".Provider";case c:return s=t,b=t.render,f="ForwardRef",_=b.displayName||b.name||"",s.displayName||(""!==_?f+"("+_+")":f);case v:return E(t.type);case m:return E(t._render);case g:var n=t,i=n._payload,o=n._init;try{return E(o(i))}catch(y){return null}}var s,b,f,_;return null}var I,M,T,$,P,L,A,D=0;function R(){}R.__reactDisabledLog=!0;var B,O=k.ReactCurrentDispatcher;function F(e,t,n){if(void 0===B)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);B=i&&i[1]||""}return"\n"+B+e}var H,z=!1,U="function"==typeof WeakMap?WeakMap:Map;function N(e,t){if(!e||z)return"";var n,i=H.get(e);if(void 0!==i)return i;z=!0;var s,r=Error.prepareStackTrace;Error.prepareStackTrace=void 0,s=O.current,O.current=null,function(){if(0===D){I=console.log,M=console.info,T=console.warn,$=console.error,P=console.group,L=console.groupCollapsed,A=console.groupEnd;var e={configurable:!0,enumerable:!0,value:R,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(g){n=g}Reflect.construct(e,[],a)}else{try{a.call()}catch(g){n=g}e.call(a.prototype)}}else{try{throw Error()}catch(g){n=g}e()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var l=m.stack.split("\n"),d=n.stack.split("\n"),u=l.length-1,c=d.length-1;u>=1&&c>=0&&l[u]!==d[c];)c--;for(;u>=1&&c>=0;u--,c--)if(l[u]!==d[c]){if(1!==u||1!==c)do{if(u--,--c<0||l[u]!==d[c]){var h="\n"+l[u].replace(" at new "," at ");return"function"==typeof e&&H.set(e,h),h}}while(u>=1&&c>=0);break}}}finally{z=!1,O.current=s,function(){if(0==--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:o({},e,{value:I}),info:o({},e,{value:M}),warn:o({},e,{value:T}),error:o({},e,{value:$}),group:o({},e,{value:P}),groupCollapsed:o({},e,{value:L}),groupEnd:o({},e,{value:A})})}D<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=r}var p=e?e.displayName||e.name:"",v=p?F(p):"";return"function"==typeof e&&H.set(e,v),v}function j(e,t,n){return N(e,!1)}function q(e,t,n){if(null==e)return"";if("function"==typeof e)return N(e,!(!(i=e.prototype)||!i.isReactComponent));var i;if("string"==typeof e)return F(e);switch(e){case h:return F("Suspense");case p:return F("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return j(e.render);case v:return q(e.type,t,n);case m:return j(e._render);case g:var o=e,s=o._payload,r=o._init;try{return q(r(s),t,n)}catch(a){}}return""}H=new U;var V={},J=k.ReactDebugCurrentFrame;function W(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);J.setExtraStackFrame(n)}else J.setExtraStackFrame(null)}var Z,G,K=k.ReactCurrentOwner,X=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function Q(e,t,n,i,o){var r,a={},l=null,d=null;for(r in void 0!==n&&(l=""+n),function(e){if(X.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(l=""+t.key),function(e){if(X.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(d=t.ref,function(e){"string"==typeof e.ref&&K.current}(t)),t)X.call(t,r)&&!Y.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps){var u=e.defaultProps;for(r in u)void 0===a[r]&&(a[r]=u[r])}if(l||d){var c="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){Z||(Z=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(a,c),d&&function(e,t){var n=function(){G||(G=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(a,c)}return function(e,t,n,i,o,r,a){var l={$$typeof:s,type:e,key:t,ref:n,props:a,_owner:r,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,d,o,i,K.current,a)}var ee,te=k.ReactCurrentOwner,ne=k.ReactDebugCurrentFrame;function ie(e){if(e){var t=e._owner,n=q(e.type,e._source,t?t.type:null);ne.setExtraStackFrame(n)}else ne.setExtraStackFrame(null)}function oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===s}function se(){if(te.current){var e=E(te.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ee=!1;var re={};function ae(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=se();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!re[n]){re[n]=!0;var i="";e&&e._owner&&e._owner!==te.current&&(i=" It was passed a child from "+E(e._owner.type)+"."),ie(e),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),ie(null)}}}function le(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var i=e[n];oe(i)&&ae(i,t)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=C&&e[C]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var s,r=o.call(e);!(s=r.next()).done;)oe(s.value)&&ae(s.value,t)}}function de(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==v)return;t=n.propTypes}if(t){var i=E(n);!function(e,t,n,i,o){var s=Function.call.bind(Object.prototype.hasOwnProperty);for(var r in e)if(s(e,r)){var a=void 0;try{if("function"!=typeof e[r]){var l=Error((i||"React class")+": "+n+" type `"+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[r]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}a=e[r](t,r,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}!a||a instanceof Error||(W(o),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,r,typeof a),W(null)),a instanceof Error&&!(a.message in V)&&(V[a.message]=!0,W(o),w("Failed %s type: %s",n,a.message),W(null))}}(t,e.props,"prop",i,e)}else void 0===n.PropTypes||ee||(ee=!0,w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ue(t,n,i,o,r,x){var C=function(t){return"string"==typeof t||"function"==typeof t||t===e.Fragment||t===l||t===_||t===a||t===h||t===p||t===y||"object"==typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===v||t.$$typeof===d||t.$$typeof===u||t.$$typeof===c||t.$$typeof===f||t.$$typeof===m||t[0]===b)}(t);if(!C){var k,S="";(void 0===t||"object"==typeof t&&null!==t&&0===Object.keys(t).length)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),S+=se(),null===t?k="null":Array.isArray(t)?k="array":void 0!==t&&t.$$typeof===s?(k="<"+(E(t.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):k=typeof t,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,S)}var I=Q(t,n,i,r,x);if(null==I)return I;if(C){var M=n.children;if(void 0!==M)if(o)if(Array.isArray(M)){for(var T=0;T<M.length;T++)le(M[T],t);Object.freeze&&Object.freeze(M)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(M,t)}return t===e.Fragment?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if("children"!==i&&"key"!==i){ie(e),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),ie(null);break}}null!==e.ref&&(ie(e),w("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null))}(I):de(I),I}var ce=function(e,t,n){return ue(e,t,n,!1)},he=function(e,t,n){return ue(e,t,n,!0)};e.jsx=ce,e.jsxs=he}()),Me;var e}var $e=(Ie||(Ie=1,"production"===process.env.NODE_ENV?we.exports=function(){if(ke)return Se;ke=1;var e=t,n=60103;if(Se.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),Se.Fragment=i("react.fragment")}var o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,r={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,i){var a,l={},d=null,u=null;for(a in void 0!==i&&(d=""+i),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,a)&&!r.hasOwnProperty(a)&&(l[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===l[a]&&(l[a]=t[a]);return{$$typeof:n,type:e,key:d,ref:u,props:l,_owner:o.current}}return Se.jsx=a,Se.jsxs=a,Se}():we.exports=Te()),we.exports);class Pe{static render(e,t){i.flushSync((()=>{o.createRoot(t).render(e)}))}}const Le=class e{static async render(t,n){if(e.reactVersion>=18)Pe.render(t,n);else{const{default:e}=await Promise.resolve().then((()=>Fe));e.render(t,n)}}};var Ae,De,Re;Ae=Le,De="reactVersion",Re=parseInt(t.version.split(".")[0]),((e,t,n)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(Ae,"symbol"!=typeof De?De+"":De,Re);let Be=Le;function Oe(e){const t=document.createElement("div");return Be.render(e,t),t}const Fe=Object.freeze(Object.defineProperty({__proto__:null,default:class{static render(e,t){if("render"in a)a.render(e,t);else{const n=a.createRoot(t);i.flushSync((()=>{n.render(e)}))}}}},Symbol.toStringTag,{value:"Module"}));e.CourierInbox=e=>{const n=t.useRef(null);return t.useEffect((()=>{const t=n.current;t&&t.onMessageClick(e.onMessageClick)}),[e.onMessageClick,n]),t.useEffect((()=>{const t=n.current;t&&t.onMessageActionClick(e.onMessageActionClick)}),[e.onMessageActionClick,n]),t.useEffect((()=>{const t=n.current;t&&t.onMessageLongPress(e.onMessageLongPress)}),[e.onMessageLongPress,n]),t.useEffect((()=>{const t=n.current;t&&e.renderHeader&&queueMicrotask((()=>{t.setHeader((t=>Oe(e.renderHeader(t))))}))}),[e.renderHeader,n]),t.useEffect((()=>{const t=n.current;t&&e.renderListItem&&queueMicrotask((()=>{t.setListItem((t=>Oe(e.renderListItem(t))))}))}),[e.renderListItem,n]),t.useEffect((()=>{const t=n.current;t&&e.renderEmptyState&&queueMicrotask((()=>{t.setEmptyState((t=>Oe(e.renderEmptyState(t))))}))}),[e.renderEmptyState,n]),t.useEffect((()=>{const t=n.current;t&&e.renderLoadingState&&queueMicrotask((()=>{t.setLoadingState((t=>Oe(e.renderLoadingState(t))))}))}),[e.renderLoadingState,n]),t.useEffect((()=>{const t=n.current;t&&e.renderErrorState&&queueMicrotask((()=>{t.setErrorState((t=>Oe(e.renderErrorState(t))))}))}),[e.renderErrorState,n]),t.useEffect((()=>{const t=n.current;t&&e.renderPaginationItem&&queueMicrotask((()=>{t.setPaginationItem((t=>Oe(e.renderPaginationItem(t))))}))}),[e.renderPaginationItem,n]),t.useEffect((()=>{const t=n.current;t&&queueMicrotask((()=>{t.setFeedType(e.feedType||"inbox")}))}),[e.feedType,n]),$e.jsx("courier-inbox",{ref:n,height:e.height,"light-theme":e.lightTheme?JSON.stringify(e.lightTheme):void 0,"dark-theme":e.darkTheme?JSON.stringify(e.darkTheme):void 0,mode:e.mode})},e.CourierInboxMenu=e=>{const n=t.useRef(null);return t.useEffect((()=>{const t=n.current;t&&t.onMessageClick(e.onMessageClick)}),[e.onMessageClick,n]),t.useEffect((()=>{const t=n.current;t&&t.onMessageActionClick(e.onMessageActionClick)}),[e.onMessageActionClick,n]),t.useEffect((()=>{const t=n.current;t&&t.onMessageLongPress(e.onMessageLongPress)}),[e.onMessageLongPress,n]),t.useEffect((()=>{const t=n.current;t&&e.renderPopupHeader&&queueMicrotask((()=>{t.setPopupHeader((t=>Oe(e.renderPopupHeader(t))))}))}),[e.renderPopupHeader,n]),t.useEffect((()=>{const t=n.current;t&&e.renderPopupListItem&&queueMicrotask((()=>{t.setPopupListItem((t=>Oe(e.renderPopupListItem(t))))}))}),[e.renderPopupListItem,n]),t.useEffect((()=>{const t=n.current;t&&e.renderPopupEmptyState&&queueMicrotask((()=>{t.setPopupEmptyState((t=>Oe(e.renderPopupEmptyState(t))))}))}),[e.renderPopupEmptyState,n]),t.useEffect((()=>{const t=n.current;t&&e.renderPopupLoadingState&&queueMicrotask((()=>{t.setPopupLoadingState((t=>Oe(e.renderPopupLoadingState(t))))}))}),[e.renderPopupLoadingState,n]),t.useEffect((()=>{const t=n.current;t&&e.renderPopupErrorState&&queueMicrotask((()=>{t.setPopupErrorState((t=>Oe(e.renderPopupErrorState(t))))}))}),[e.renderPopupErrorState,n]),t.useEffect((()=>{const t=n.current;t&&e.renderPopupPaginationItem&&queueMicrotask((()=>{t.setPopupPaginationItem((t=>Oe(e.renderPopupPaginationItem(t))))}))}),[e.renderPopupPaginationItem,n]),t.useEffect((()=>{const t=n.current;t&&e.renderPopupMenuButton&&queueMicrotask((()=>{t.setPopupMenuButton((t=>Oe(e.renderPopupMenuButton(t))))}))}),[e.renderPopupMenuButton,n]),t.useEffect((()=>{const t=n.current;t&&queueMicrotask((()=>{t.setFeedType(e.feedType||"inbox")}))}),[e.feedType,n]),$e.jsx("courier-inbox-menu",{ref:n,"popup-alignment":e.popupAlignment,"popup-width":e.popupWidth,"popup-height":e.popupHeight,left:e.left,top:e.top,right:e.right,bottom:e.bottom,"light-theme":e.lightTheme?JSON.stringify(e.lightTheme):void 0,"dark-theme":e.darkTheme?JSON.stringify(e.darkTheme):void 0,mode:e.mode})},e.useCourier=()=>{const e=e=>L.shared.signIn(e),n=()=>L.shared.signOut(),i=e=>oe.shared.load(e),o=e=>oe.shared.fetchNextPageOfMessages(e),s=e=>L.shared.paginationLimit=e,r=e=>oe.shared.readMessage({message:e}),a=e=>oe.shared.unreadMessage({message:e}),l=e=>oe.shared.clickMessage({message:e}),d=e=>oe.shared.archiveMessage({message:e}),u=e=>oe.shared.openMessage({message:e}),c=e=>oe.shared.unarchiveMessage({message:e}),h=()=>oe.shared.readAllMessages(),[p,v]=t.useState({userId:void 0,signIn:e,signOut:n}),[g,m]=t.useState({load:i,fetchNextPageOfMessages:o,setPaginationLimit:s,readMessage:r,unreadMessage:a,clickMessage:l,archiveMessage:d,openMessage:u,unarchiveMessage:c,readAllMessages:h});t.useEffect((()=>{const e=L.shared.addAuthenticationListener((()=>b())),t=new me({onError:e=>f(e),onDataSetChange:()=>f(),onPageAdded:()=>f(),onMessageAdd:()=>f(),onMessageRemove:()=>f(),onMessageUpdate:()=>f(),onUnreadCountChange:()=>f()});return oe.shared.addDataStoreListener(t),b(),f(),()=>{e.remove(),t.remove()}}),[]);const b=()=>{var t;const i=null==(t=L.shared.client)?void 0:t.options;v({userId:null==i?void 0:i.userId,signIn:e,signOut:n})},f=e=>{const t=oe.shared;m({load:i,fetchNextPageOfMessages:o,setPaginationLimit:s,readMessage:r,unreadMessage:a,clickMessage:l,archiveMessage:d,openMessage:u,unarchiveMessage:c,readAllMessages:h,inbox:t.inboxDataSet,archive:t.archiveDataSet,unreadCount:t.unreadCount,error:e})};return{shared:L.shared,auth:p,inbox:g}},Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
10
|
+
//# sourceMappingURL=index.js.map
|