headroom-cms 0.1.4 → 0.1.6
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/admin/assets/AdminsPage-BqfhR4Zc.js +1 -0
- package/admin/assets/AllContentPage-C11eeRMt.js +1 -0
- package/admin/assets/ApiKeysPage-DJjOSLoR.js +1 -0
- package/admin/assets/AuditPage-DJNk7IaW.js +1 -0
- package/admin/assets/{BlockEditor-uSyk_TPt.js → BlockEditor-DDsml97y.js} +54 -54
- package/admin/assets/BlockTypeEditPage-Cg7BifaZ.js +1 -0
- package/admin/assets/BlockTypesPage-BDFj8TSL.js +1 -0
- package/admin/assets/BulkActionBar-CastJGEP.js +1 -0
- package/admin/assets/CollectionEditPage-DGW4iMfo.js +1 -0
- package/admin/assets/CollectionsPage-C8XNxRda.js +1 -0
- package/admin/assets/ContentCreatePage-CX4aOzTR.js +1 -0
- package/admin/assets/ContentEditPage-Dj3RK2BF.js +2 -0
- package/admin/assets/ContentListPage-CoDanHrR.js +1 -0
- package/admin/assets/{CustomBlockPreview-ers8OdZ0.js → CustomBlockPreview-DfDOcbmR.js} +1 -1
- package/admin/assets/FieldBuilder-8VVLG_j0.js +3 -0
- package/admin/assets/FilterBar-JCp03kkK.js +1 -0
- package/admin/assets/{LoginPage-uxiw8K1J.js → LoginPage-gPNC9XRN.js} +1 -1
- package/admin/assets/MediaField-Du7_gRse.js +1 -0
- package/admin/assets/MediaPage-D9763lEk.js +1 -0
- package/admin/assets/RelationshipPicker-D7dFI43Q.js +1 -0
- package/admin/assets/SiteSettingsPage-Tfiex2yn.js +1 -0
- package/admin/assets/SiteUsersPage-CSV8syR3.js +1 -0
- package/admin/assets/SitesPage-BFIZ3Y5K.js +1 -0
- package/admin/assets/SubmissionDetailPage-8vtUQsLd.js +1 -0
- package/admin/assets/SubmissionEditPage-PgowJuvq.js +1 -0
- package/admin/assets/SubmissionListPage-HFDQxPhn.js +1 -0
- package/admin/assets/TagInput-CDkKZboX.js +1 -0
- package/admin/assets/TagsPage-BW15-W4H.js +1 -0
- package/admin/assets/UsersPage-C-zlDeTy.js +1 -0
- package/admin/assets/WebhookEditPage-cPPALIbH.js +1 -0
- package/admin/assets/WebhooksPage-vkPC4m9a.js +1 -0
- package/admin/assets/{card-C7fgQS_U.js → card-10FqkZPA.js} +1 -1
- package/admin/assets/checkbox-fC1QPb_4.js +1 -0
- package/admin/assets/collapsible-B414SspL.js +1 -0
- package/admin/assets/command-BeacdV75.js +1 -0
- package/admin/assets/{core.esm-DRuhixPo.js → core.esm-B_kcYf6n.js} +2 -2
- package/admin/assets/index-Do_SK4Zl.css +1 -0
- package/admin/assets/index-wYNPRVrc.js +18 -0
- package/admin/assets/media-url-DIg_vSyf.js +1 -0
- package/admin/assets/popover-BJDj8C6y.js +1 -0
- package/admin/assets/{radix-lA_IxTIV.js → radix-C1kb_NqW.js} +2 -2
- package/admin/assets/react-vendor-C2CvUxFh.js +4 -0
- package/admin/assets/select-BV3jemT6.js +1 -0
- package/admin/assets/serializeToText-BJy0Ms5I.js +2 -0
- package/admin/assets/sortable.esm-QyXA6fio.js +1 -0
- package/admin/assets/{table-BjSue8Ev.js → table-WkEcC9MH.js} +1 -1
- package/admin/assets/{tanstack-oFmRhGwV.js → tanstack-Bs3zYPPV.js} +1 -1
- package/admin/assets/textarea-CHQ9tT69.js +1 -0
- package/admin/assets/useAdminResolver-CpZj93vH.js +1 -0
- package/admin/assets/useContent-D8yDRTTy.js +1 -0
- package/admin/assets/useContentSearch-B-_p0_QX.js +1 -0
- package/admin/assets/{useDebouncedValue-DHUCnm9B.js → useDebouncedValue-C-cQUcLG.js} +1 -1
- package/admin/assets/useFilterParams-DYdEuWPE.js +1 -0
- package/admin/assets/useMedia-m6zKB__r.js +1 -0
- package/admin/assets/usePageTitle-Bwf-MpTD.js +1 -0
- package/admin/assets/useSiteUsers-QbiItSH1.js +1 -0
- package/admin/assets/{useTags-BuXf7_7H.js → useTags-CLPWVUB3.js} +1 -1
- package/admin/assets/{useWebhooks-Cx9tbBME.js → useWebhooks-no0l3-mF.js} +1 -1
- package/admin/favicon-16x16.png +0 -0
- package/admin/favicon-32x32.png +0 -0
- package/admin/index.html +8 -7
- package/admin/sw.js +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +8 -0
- package/dist/api.js.map +1 -1
- package/dist/cdn.js +1 -1
- package/dist/cdn.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/scheduler.d.ts +25 -0
- package/dist/scheduler.d.ts.map +1 -0
- package/dist/scheduler.js +64 -0
- package/dist/scheduler.js.map +1 -0
- package/dist/storage.d.ts +1 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +16 -0
- package/dist/storage.js.map +1 -1
- package/lambda/api/bootstrap +0 -0
- package/lambda/image-lambda/index.mjs +1 -1
- package/lambda/webhook-worker/bootstrap +0 -0
- package/package.json +1 -1
- package/src/api.ts +9 -0
- package/src/cdn.ts +1 -1
- package/src/index.ts +17 -2
- package/src/scheduler.ts +83 -0
- package/src/sst-env.d.ts +4 -0
- package/src/storage.ts +17 -0
- package/admin/assets/AdminsPage-Cvqw6UOu.js +0 -1
- package/admin/assets/AllContentPage-Cnkt8Fgm.js +0 -1
- package/admin/assets/ApiKeysPage-FLex3Chc.js +0 -1
- package/admin/assets/AuditPage-ClgwR_8y.js +0 -1
- package/admin/assets/BlockTypeEditPage-Dr_yNLDI.js +0 -1
- package/admin/assets/BlockTypesPage-CwsGPuAZ.js +0 -1
- package/admin/assets/BulkActionBar-C-88Wnqw.js +0 -1
- package/admin/assets/CollectionEditPage-Cimkb84B.js +0 -1
- package/admin/assets/CollectionsPage-CxnSFPCH.js +0 -1
- package/admin/assets/ContentCreatePage-DZCyOcte.js +0 -1
- package/admin/assets/ContentEditPage-RtHbU_l4.js +0 -3
- package/admin/assets/ContentListPage-qFcZVzg9.js +0 -1
- package/admin/assets/FieldBuilder-Ds-agLm7.js +0 -3
- package/admin/assets/MediaPage-CeepVDHQ.js +0 -1
- package/admin/assets/SiteSettingsPage-xkngL15i.js +0 -1
- package/admin/assets/SitesPage-BD9tou9-.js +0 -1
- package/admin/assets/TagsPage-BxSwTLpQ.js +0 -1
- package/admin/assets/UsersPage-BayuQyLh.js +0 -1
- package/admin/assets/WebhookEditPage-BrXm8Dht.js +0 -1
- package/admin/assets/WebhooksPage-BUE6XuIP.js +0 -1
- package/admin/assets/badge-B8OxObuF.js +0 -1
- package/admin/assets/check-CxKAR64t.js +0 -1
- package/admin/assets/checkbox-BV2kjQBe.js +0 -1
- package/admin/assets/command-qGFnWxcS.js +0 -1
- package/admin/assets/copy-CgYzmj06.js +0 -1
- package/admin/assets/index-DX9xeoQx.js +0 -18
- package/admin/assets/index-PpbsYFRh.css +0 -1
- package/admin/assets/plus-HdRn2U0S.js +0 -1
- package/admin/assets/popover-Cou924mw.js +0 -1
- package/admin/assets/react-vendor-B0Dih9Pj.js +0 -4
- package/admin/assets/search-C-3Q9nn7.js +0 -1
- package/admin/assets/select-CHW5R8qv.js +0 -1
- package/admin/assets/sortable.esm-CBJBhe4k.js +0 -1
- package/admin/assets/trash-2-CWWRVuRB.js +0 -1
- package/admin/assets/use-mobile-C1r2eP64.js +0 -1
- package/admin/assets/useAdminResolver-D6B6RXnk.js +0 -1
- package/admin/assets/useContent-f19XHVlJ.js +0 -1
- package/admin/assets/useMedia-DkvP1QLG.js +0 -1
- package/admin/vite.svg +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginPage-uxiw8K1J.js","assets/tanstack-oFmRhGwV.js","assets/react-vendor-B0Dih9Pj.js","assets/card-C7fgQS_U.js","assets/radix-lA_IxTIV.js","assets/SitesPage-BD9tou9-.js","assets/badge-B8OxObuF.js","assets/checkbox-BV2kjQBe.js","assets/check-CxKAR64t.js","assets/plus-HdRn2U0S.js","assets/UsersPage-BayuQyLh.js","assets/table-BjSue8Ev.js","assets/trash-2-CWWRVuRB.js","assets/AllContentPage-Cnkt8Fgm.js","assets/useContent-f19XHVlJ.js","assets/use-mobile-C1r2eP64.js","assets/format-C88SDH8g.js","assets/BulkActionBar-C-88Wnqw.js","assets/ContentListPage-qFcZVzg9.js","assets/useTags-BuXf7_7H.js","assets/useDebouncedValue-DHUCnm9B.js","assets/popover-Cou924mw.js","assets/select-CHW5R8qv.js","assets/contentStatus-BmaiYVOm.js","assets/search-C-3Q9nn7.js","assets/ContentCreatePage-DZCyOcte.js","assets/ContentEditPage-RtHbU_l4.js","assets/useAdminResolver-D6B6RXnk.js","assets/sortable.esm-CBJBhe4k.js","assets/core.esm-DRuhixPo.js","assets/useMedia-DkvP1QLG.js","assets/command-qGFnWxcS.js","assets/MediaPage-CeepVDHQ.js","assets/copy-CgYzmj06.js","assets/MediaPage-DfPQBmNf.css","assets/CollectionsPage-CxnSFPCH.js","assets/CollectionEditPage-Cimkb84B.js","assets/FieldBuilder-Ds-agLm7.js","assets/BlockTypesPage-CwsGPuAZ.js","assets/BlockTypeEditPage-Dr_yNLDI.js","assets/CustomBlockPreview-ers8OdZ0.js","assets/ApiKeysPage-FLex3Chc.js","assets/WebhooksPage-BUE6XuIP.js","assets/useWebhooks-Cx9tbBME.js","assets/WebhookEditPage-BrXm8Dht.js","assets/AdminsPage-Cvqw6UOu.js","assets/AuditPage-ClgwR_8y.js","assets/TagsPage-BxSwTLpQ.js","assets/SiteSettingsPage-xkngL15i.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as x,Q as vy,u as Wn,a as zt,b as Ot,c as yy}from"./tanstack-oFmRhGwV.js";import{a as by,r as ve,R as ae,c as Im,d as Vc,N as Us,u as gg,e as Sy,f as wy,L as xy,O as Ey,h as Ay,i as Gm,j as Ty,k as Cy}from"./react-vendor-B0Dih9Pj.js";import{r as Uy,R as _y,S as Dy,a as Ry,T as Ny,P as My,C as By,I as zy,b as Oy,c as pg,d as jy,e as vg,f as Kc,g as yg,D as qy,h as bg,O as Sg,i as ky,L as Ly,j as Hy,k as Fy,l as Vy,m as Ky,V as Yy,n as Iy,o as Gy,p as Qy,q as Xy}from"./radix-lA_IxTIV.js";(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))l(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();var Qu={exports:{}},Vr={},Xu={exports:{}},Zu={};var Qm;function Zy(){return Qm||(Qm=1,(function(i){function r(j,Q){var G=j.length;j.push(Q);e:for(;0<G;){var ie=G-1>>>1,be=j[ie];if(0<c(be,Q))j[ie]=Q,j[G]=be,G=ie;else break e}}function s(j){return j.length===0?null:j[0]}function l(j){if(j.length===0)return null;var Q=j[0],G=j.pop();if(G!==Q){j[0]=G;e:for(var ie=0,be=j.length,Se=be>>>1;ie<Se;){var re=2*(ie+1)-1,te=j[re],ce=re+1,_e=j[ce];if(0>c(te,G))ce<be&&0>c(_e,te)?(j[ie]=_e,j[ce]=G,ie=ce):(j[ie]=te,j[re]=G,ie=re);else if(ce<be&&0>c(_e,G))j[ie]=_e,j[ce]=G,ie=ce;else break e}}return Q}function c(j,Q){var G=j.sortIndex-Q.sortIndex;return G!==0?G:j.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();i.unstable_now=function(){return d.now()-h}}var v=[],y=[],w=1,A=null,U=3,S=!1,N=!1,D=!1,I=!1,K=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function $(j){for(var Q=s(y);Q!==null;){if(Q.callback===null)l(y);else if(Q.startTime<=j)l(y),Q.sortIndex=Q.expirationTime,r(v,Q);else break;Q=s(y)}}function se(j){if(D=!1,$(j),!N)if(s(v)!==null)N=!0,X||(X=!0,ee());else{var Q=s(y);Q!==null&&Ae(se,Q.startTime-j)}}var X=!1,W=-1,L=5,Z=-1;function ue(){return I?!0:!(i.unstable_now()-Z<L)}function ne(){if(I=!1,X){var j=i.unstable_now();Z=j;var Q=!0;try{e:{N=!1,D&&(D=!1,P(W),W=-1),S=!0;var G=U;try{t:{for($(j),A=s(v);A!==null&&!(A.expirationTime>j&&ue());){var ie=A.callback;if(typeof ie=="function"){A.callback=null,U=A.priorityLevel;var be=ie(A.expirationTime<=j);if(j=i.unstable_now(),typeof be=="function"){A.callback=be,$(j),Q=!0;break t}A===s(v)&&l(v),$(j)}else l(v);A=s(v)}if(A!==null)Q=!0;else{var Se=s(y);Se!==null&&Ae(se,Se.startTime-j),Q=!1}}break e}finally{A=null,U=G,S=!1}Q=void 0}}finally{Q?ee():X=!1}}}var ee;if(typeof J=="function")ee=function(){J(ne)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,oe=le.port2;le.port1.onmessage=ne,ee=function(){oe.postMessage(null)}}else ee=function(){K(ne,0)};function Ae(j,Q){W=K(function(){j(i.unstable_now())},Q)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return U},i.unstable_next=function(j){switch(U){case 1:case 2:case 3:var Q=3;break;default:Q=U}var G=U;U=Q;try{return j()}finally{U=G}},i.unstable_requestPaint=function(){I=!0},i.unstable_runWithPriority=function(j,Q){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var G=U;U=j;try{return Q()}finally{U=G}},i.unstable_scheduleCallback=function(j,Q,G){var ie=i.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ie+G:ie):G=ie,j){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=G+be,j={id:w++,callback:Q,priorityLevel:j,startTime:G,expirationTime:be,sortIndex:-1},G>ie?(j.sortIndex=G,r(y,j),s(v)===null&&j===s(y)&&(D?(P(W),W=-1):D=!0,Ae(se,G-ie))):(j.sortIndex=be,r(v,j),N||S||(N=!0,X||(X=!0,ee()))),j},i.unstable_shouldYield=ue,i.unstable_wrapCallback=function(j){var Q=U;return function(){var G=U;U=Q;try{return j.apply(this,arguments)}finally{U=G}}}})(Zu)),Zu}var Xm;function Jy(){return Xm||(Xm=1,Xu.exports=Zy()),Xu.exports}var Zm;function Py(){if(Zm)return Vr;Zm=1;var i=Jy(),r=by(),s=Uy();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 d(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 h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(f(e)!==e)throw Error(l(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return v(o),e;if(u===a)return v(o),t;u=u.sibling}throw Error(l(188))}if(n.return!==a.return)n=o,a=u;else{for(var m=!1,b=o.child;b;){if(b===n){m=!0,n=o,a=u;break}if(b===a){m=!0,a=o,n=u;break}b=b.sibling}if(!m){for(b=u.child;b;){if(b===n){m=!0,n=u,a=o;break}if(b===a){m=!0,a=u,n=o;break}b=b.sibling}if(!m)throw Error(l(189))}}if(n.alternate!==a)throw Error(l(190))}if(n.tag!==3)throw Error(l(188));return n.stateNode.current===n?e:t}function w(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=w(e),t!==null)return t;e=e.sibling}return null}var A=Object.assign,U=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),J=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),se=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),ue=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var le=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case K:return"Profiler";case I:return"StrictMode";case se:return"Suspense";case X:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case J:return e.displayName||"Context";case P:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var Ae=Array.isArray,j=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ie=[],be=-1;function Se(e){return{current:e}}function re(e){0>be||(e.current=ie[be],ie[be]=null,be--)}function te(e,t){be++,ie[be]=e.current,e.current=t}var ce=Se(null),_e=Se(null),Je=Se(null),ge=Se(null);function $e(e,t){switch(te(Je,t),te(_e,e),te(ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mm(t),e=gm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}re(ce),te(ce,e)}function Ke(){re(ce),re(_e),re(Je)}function ut(e){e.memoizedState!==null&&te(ge,e);var t=ce.current,n=gm(t,e.type);t!==n&&(te(_e,e),te(ce,n))}function xe(e){_e.current===e&&(re(ce),re(_e)),ge.current===e&&(re(ge),kr._currentValue=G)}var Ye,pn;function vn(e){if(Ye===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",pn=-1<n.stack.indexOf(`
|
|
3
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
-
`+Ye+e+pn}var ea=!1;function yn(e,t){if(!e||ea)return"";ea=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(q){var O=q}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(q){O=q}e.call(Y.prototype)}}else{try{throw Error()}catch(q){O=q}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(q){if(q&&O&&typeof q.stack=="string")return[q.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),m=u[0],b=u[1];if(m&&b){var C=m.split(`
|
|
5
|
-
`),z=b.split(`
|
|
6
|
-
`);for(o=a=0;a<C.length&&!C[a].includes("DetermineComponentFrameRoot");)a++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(a===C.length||o===z.length)for(a=C.length-1,o=z.length-1;1<=a&&0<=o&&C[a]!==z[o];)o--;for(;1<=a&&0<=o;a--,o--)if(C[a]!==z[o]){if(a!==1||o!==1)do if(a--,o--,0>o||C[a]!==z[o]){var k=`
|
|
7
|
-
`+C[a].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=a&&0<=o);break}}}finally{ea=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?vn(n):""}function $i(e,t){switch(e.tag){case 26:case 27:case 5:return vn(e.type);case 16:return vn("Lazy");case 13:return e.child!==t&&t!==null?vn("Suspense Fallback"):vn("Suspense");case 19:return vn("SuspenseList");case 0:case 15:return yn(e.type,!1);case 11:return yn(e.type.render,!1);case 1:return yn(e.type,!0);case 31:return vn("Activity");default:return""}}function E(e){try{var t="",n=null;do t+=$i(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
8
|
-
Error generating stack: `+a.message+`
|
|
9
|
-
`+a.stack}}var g=Object.prototype.hasOwnProperty,p=i.unstable_scheduleCallback,T=i.unstable_cancelCallback,M=i.unstable_shouldYield,F=i.unstable_requestPaint,V=i.unstable_now,Re=i.unstable_getCurrentPriorityLevel,Te=i.unstable_ImmediatePriority,je=i.unstable_UserBlockingPriority,rt=i.unstable_NormalPriority,Pe=i.unstable_LowPriority,en=i.unstable_IdlePriority,ni=i.log,Na=i.unstable_setDisableYieldValue,Mn=null,dt=null;function bn(e){if(typeof ni=="function"&&Na(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Mn,e)}catch{}}var ht=Math.clz32?Math.clz32:rl,Bs=Math.log,zs=Math.LN2;function rl(e){return e>>>=0,e===0?32:31-(Bs(e)/zs|0)|0}var Ma=256,ai=262144,ta=4194304;function Rt(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:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;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 e}}function ii(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var b=a&134217727;return b!==0?(a=b&~u,a!==0?o=Rt(a):(m&=b,m!==0?o=Rt(m):n||(n=b&~e,n!==0&&(o=Rt(n))))):(b=a&~u,b!==0?o=Rt(b):m!==0?o=Rt(m):n||(n=a&~e,n!==0&&(o=Rt(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function Ee(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function He(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-1}}function Xe(){var e=ta;return ta<<=1,(ta&62914560)===0&&(ta=4194304),e}function Nt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function At(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Tn(e,t,n,a,o,u){var m=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 b=e.entanglements,C=e.expirationTimes,z=e.hiddenUpdates;for(n=m&~n;0<n;){var k=31-ht(n),Y=1<<k;b[k]=0,C[k]=-1;var O=z[k];if(O!==null)for(z[k]=null,k=0;k<O.length;k++){var q=O[k];q!==null&&(q.lane&=-536870913)}n&=~Y}a!==0&&Cn(e,a,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function Cn(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ht(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function jt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ht(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Sn(e,t){var n=t&-t;return n=(n&42)!==0?1:Os(n),(n&(e.suspendedLanes|t))!==0?0:n}function Os(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 js(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $c(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:km(e.type))}function Wc(e,t){var n=Q.p;try{return Q.p=e,t()}finally{Q.p=n}}var na=Math.random().toString(36).slice(2),Tt="__reactFiber$"+na,qt="__reactProps$"+na,ri="__reactContainer$"+na,qs="__reactEvents$"+na,lp="__reactListeners$"+na,sp="__reactHandles$"+na,ef="__reactResources$"+na,Wi="__reactMarker$"+na;function ks(e){delete e[Tt],delete e[qt],delete e[qs],delete e[lp],delete e[sp]}function li(e){var t=e[Tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ri]||n[Tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xm(e);e!==null;){if(n=e[Tt])return n;e=xm(e)}return t}e=n,n=e.parentNode}return null}function si(e){if(e=e[Tt]||e[ri]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function er(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function oi(e){var t=e[ef];return t||(t=e[ef]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[Wi]=!0}var tf=new Set,nf={};function Ba(e,t){ui(e,t),ui(e+"Capture",t)}function ui(e,t){for(nf[e]=t,e=0;e<t.length;e++)tf.add(t[e])}var op=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]*$"),af={},rf={};function up(e){return g.call(rf,e)?!0:g.call(af,e)?!1:op.test(e)?rf[e]=!0:(af[e]=!0,!1)}function ll(e,t,n){if(up(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function sl(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}e.setAttribute(t,""+n)}}function Bn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cp(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ls(e){if(!e._valueTracker){var t=lf(e)?"checked":"value";e._valueTracker=cp(e,t,""+e[t])}}function sf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=lf(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ol(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}}var fp=/[\n"\\]/g;function nn(e){return e.replace(fp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hs(e,t,n,a,o,u,m,b){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Fs(e,m,tn(t)):n!=null?Fs(e,m,tn(n)):a!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.name=""+tn(b):e.removeAttribute("name")}function of(e,t,n,a,o,u,m,b){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Ls(e);return}n=n!=null?""+tn(n):"",t=t!=null?""+tn(t):n,b||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=b?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Ls(e)}function Fs(e,t,n){t==="number"&&ol(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ci(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function uf(e,t,n){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+tn(n):""}function cf(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(l(92));if(Ae(a)){if(1<a.length)throw Error(l(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=tn(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Ls(e)}function fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dp=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 ff(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||dp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function df(e,t,n){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&ff(e,o,a)}else for(var u in t)t.hasOwnProperty(u)&&ff(e,u,t[u])}function Vs(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}}var hp=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"]]),mp=/^[\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 ul(e){return mp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function zn(){}var Ks=null;function Ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var di=null,hi=null;function hf(e){var t=si(e);if(t&&(e=t.stateNode)){var n=e[qt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Hs(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(n=n.querySelectorAll('input[name="'+nn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[qt]||null;if(!o)throw Error(l(90));Hs(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&sf(a)}break e;case"textarea":uf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ci(e,!!n.multiple,t,!1)}}}var Is=!1;function mf(e,t,n){if(Is)return e(t,n);Is=!0;try{var a=e(t);return a}finally{if(Is=!1,(di!==null||hi!==null)&&(Jl(),di&&(t=di,e=hi,hi=di=null,hf(t),e)))for(t=0;t<e.length;t++)hf(e[t])}}function tr(e,t){var n=e.stateNode;if(n===null)return null;var a=n[qt]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(l(231,t,typeof n));return n}var On=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gs=!1;if(On)try{var nr={};Object.defineProperty(nr,"passive",{get:function(){Gs=!0}}),window.addEventListener("test",nr,nr),window.removeEventListener("test",nr,nr)}catch{Gs=!1}var aa=null,Qs=null,cl=null;function gf(){if(cl)return cl;var e,t=Qs,n=t.length,a,o="value"in aa?aa.value:aa.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===o[u-a];a++);return cl=o.slice(e,1<a?1-a:void 0)}function fl(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 dl(){return!0}function pf(){return!1}function kt(e){function t(n,a,o,u,m){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var b in e)e.hasOwnProperty(b)&&(n=e[b],this[b]=n?n(u):u[b]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?dl:pf,this.isPropagationStopped=pf,this}return A(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=dl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=dl)},persist:function(){},isPersistent:dl}),t}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hl=kt(za),ar=A({},za,{view:0,detail:0}),gp=kt(ar),Xs,Zs,ir,ml=A({},ar,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ps,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!==ir&&(ir&&e.type==="mousemove"?(Xs=e.screenX-ir.screenX,Zs=e.screenY-ir.screenY):Zs=Xs=0,ir=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:Zs}}),vf=kt(ml),pp=A({},ml,{dataTransfer:0}),vp=kt(pp),yp=A({},ar,{relatedTarget:0}),Js=kt(yp),bp=A({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),Sp=kt(bp),wp=A({},za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xp=kt(wp),Ep=A({},za,{data:0}),yf=kt(Ep),Ap={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tp={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"},Cp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Up(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Cp[e])?!!t[e]:!1}function Ps(){return Up}var _p=A({},ar,{key:function(e){if(e.key){var t=Ap[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Tp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ps,charCode:function(e){return e.type==="keypress"?fl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dp=kt(_p),Rp=A({},ml,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bf=kt(Rp),Np=A({},ar,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ps}),Mp=kt(Np),Bp=A({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),zp=kt(Bp),Op=A({},ml,{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}),jp=kt(Op),qp=A({},za,{newState:0,oldState:0}),kp=kt(qp),Lp=[9,13,27,32],$s=On&&"CompositionEvent"in window,rr=null;On&&"documentMode"in document&&(rr=document.documentMode);var Hp=On&&"TextEvent"in window&&!rr,Sf=On&&(!$s||rr&&8<rr&&11>=rr),wf=" ",xf=!1;function Ef(e,t){switch(e){case"keyup":return Lp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Af(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mi=!1;function Fp(e,t){switch(e){case"compositionend":return Af(t);case"keypress":return t.which!==32?null:(xf=!0,wf);case"textInput":return e=t.data,e===wf&&xf?null:e;default:return null}}function Vp(e,t){if(mi)return e==="compositionend"||!$s&&Ef(e,t)?(e=gf(),cl=Qs=aa=null,mi=!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 Sf&&t.locale!=="ko"?null:t.data;default:return null}}var Kp={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 Tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Kp[e.type]:t==="textarea"}function Cf(e,t,n,a){di?hi?hi.push(a):hi=[a]:di=a,t=as(t,"onChange"),0<t.length&&(n=new hl("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var lr=null,sr=null;function Yp(e){om(e,0)}function gl(e){var t=er(e);if(sf(t))return e}function Uf(e,t){if(e==="change")return t}var _f=!1;if(On){var Ws;if(On){var eo="oninput"in document;if(!eo){var Df=document.createElement("div");Df.setAttribute("oninput","return;"),eo=typeof Df.oninput=="function"}Ws=eo}else Ws=!1;_f=Ws&&(!document.documentMode||9<document.documentMode)}function Rf(){lr&&(lr.detachEvent("onpropertychange",Nf),sr=lr=null)}function Nf(e){if(e.propertyName==="value"&&gl(sr)){var t=[];Cf(t,sr,e,Ys(e)),mf(Yp,t)}}function Ip(e,t,n){e==="focusin"?(Rf(),lr=t,sr=n,lr.attachEvent("onpropertychange",Nf)):e==="focusout"&&Rf()}function Gp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gl(sr)}function Qp(e,t){if(e==="click")return gl(t)}function Xp(e,t){if(e==="input"||e==="change")return gl(t)}function Zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:Zp;function or(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!g.call(t,o)||!Gt(e[o],t[o]))return!1}return!0}function Mf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bf(e,t){var n=Mf(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mf(n)}}function zf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ol(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=ol(e.document)}return t}function to(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")}var Jp=On&&"documentMode"in document&&11>=document.documentMode,gi=null,no=null,ur=null,ao=!1;function jf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ao||gi==null||gi!==ol(a)||(a=gi,"selectionStart"in a&&to(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ur&&or(ur,a)||(ur=a,a=as(no,"onSelect"),0<a.length&&(t=new hl("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=gi)))}function Oa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var pi={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")},io={},qf={};On&&(qf=document.createElement("div").style,"AnimationEvent"in window||(delete pi.animationend.animation,delete pi.animationiteration.animation,delete pi.animationstart.animation),"TransitionEvent"in window||delete pi.transitionend.transition);function ja(e){if(io[e])return io[e];if(!pi[e])return e;var t=pi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qf)return io[e]=t[n];return e}var kf=ja("animationend"),Lf=ja("animationiteration"),Hf=ja("animationstart"),Pp=ja("transitionrun"),$p=ja("transitionstart"),Wp=ja("transitioncancel"),Ff=ja("transitionend"),Vf=new Map,ro="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(" ");ro.push("scrollEnd");function wn(e,t){Vf.set(e,t),Ba(t,[e])}var pl=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)},an=[],vi=0,lo=0;function vl(){for(var e=vi,t=lo=vi=0;t<e;){var n=an[t];an[t++]=null;var a=an[t];an[t++]=null;var o=an[t];an[t++]=null;var u=an[t];if(an[t++]=null,a!==null&&o!==null){var m=a.pending;m===null?o.next=o:(o.next=m.next,m.next=o),a.pending=o}u!==0&&Kf(n,o,u)}}function yl(e,t,n,a){an[vi++]=e,an[vi++]=t,an[vi++]=n,an[vi++]=a,lo|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function so(e,t,n,a){return yl(e,t,n,a),bl(e)}function qa(e,t){return yl(e,null,null,t),bl(e)}function Kf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-ht(n),e=u.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),u):null}function bl(e){if(50<Nr)throw Nr=0,vu=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var yi={};function ev(e,t,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,t,n,a){return new ev(e,t,n,a)}function oo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jn(e,t){var n=e.alternate;return n===null?(n=Qt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),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},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Yf(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.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}),e}function Sl(e,t,n,a,o,u){var m=0;if(a=e,typeof e=="function")oo(e)&&(m=1);else if(typeof e=="string")m=ry(e,n,ce.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=Qt(31,n,t,o),e.elementType=Z,e.lanes=u,e;case D:return ka(n.children,o,u,t);case I:m=8,o|=24;break;case K:return e=Qt(12,n,t,o|2),e.elementType=K,e.lanes=u,e;case se:return e=Qt(13,n,t,o),e.elementType=se,e.lanes=u,e;case X:return e=Qt(19,n,t,o),e.elementType=X,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:m=10;break e;case P:m=9;break e;case $:m=11;break e;case W:m=14;break e;case L:m=16,a=null;break e}m=29,n=Error(l(130,e===null?"null":typeof e,"")),a=null}return t=Qt(m,n,t,o),t.elementType=e,t.type=a,t.lanes=u,t}function ka(e,t,n,a){return e=Qt(7,e,a,t),e.lanes=n,e}function uo(e,t,n){return e=Qt(6,e,null,t),e.lanes=n,e}function If(e){var t=Qt(18,null,null,0);return t.stateNode=e,t}function co(e,t,n){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gf=new WeakMap;function rn(e,t){if(typeof e=="object"&&e!==null){var n=Gf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:E(t)},Gf.set(e,t),t)}return{value:e,source:t,stack:E(t)}}var bi=[],Si=0,wl=null,cr=0,ln=[],sn=0,ia=null,Un=1,_n="";function qn(e,t){bi[Si++]=cr,bi[Si++]=wl,wl=e,cr=t}function Qf(e,t,n){ln[sn++]=Un,ln[sn++]=_n,ln[sn++]=ia,ia=e;var a=Un;e=_n;var o=32-ht(a)-1;a&=~(1<<o),n+=1;var u=32-ht(t)+o;if(30<u){var m=o-o%5;u=(a&(1<<m)-1).toString(32),a>>=m,o-=m,Un=1<<32-ht(t)+o|n<<o|a,_n=u+e}else Un=1<<u|n<<o|a,_n=e}function fo(e){e.return!==null&&(qn(e,1),Qf(e,1,0))}function ho(e){for(;e===wl;)wl=bi[--Si],bi[Si]=null,cr=bi[--Si],bi[Si]=null;for(;e===ia;)ia=ln[--sn],ln[sn]=null,_n=ln[--sn],ln[sn]=null,Un=ln[--sn],ln[sn]=null}function Xf(e,t){ln[sn++]=Un,ln[sn++]=_n,ln[sn++]=ia,Un=t.id,_n=t.overflow,ia=e}var Ct=null,We=null,Oe=!1,ra=null,on=!1,mo=Error(l(519));function la(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw fr(rn(t,e)),mo}function Zf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Tt]=e,t[qt]=a,n){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(n=0;n<Br.length;n++)Me(Br[n],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),of(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),cf(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||dm(t.textContent,n)?(a.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),a.onScroll!=null&&Me("scroll",t),a.onScrollEnd!=null&&Me("scrollend",t),a.onClick!=null&&(t.onclick=zn),t=!0):t=!1,t||la(e,!0)}function Jf(e){for(Ct=e.return;Ct;)switch(Ct.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:Ct=Ct.return}}function wi(e){if(e!==Ct)return!1;if(!Oe)return Jf(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Mu(e.type,e.memoizedProps)),n=!n),n&&We&&la(e),Jf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));We=wm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));We=wm(e)}else t===27?(t=We,Sa(e.type)?(e=qu,qu=null,We=e):We=t):We=Ct?cn(e.stateNode.nextSibling):null;return!0}function La(){We=Ct=null,Oe=!1}function go(){var e=ra;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),ra=null),e}function fr(e){ra===null?ra=[e]:ra.push(e)}var po=Se(null),Ha=null,kn=null;function sa(e,t,n){te(po,t._currentValue),t._currentValue=n}function Ln(e){e._currentValue=po.current,re(po)}function vo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function yo(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var m=o.child;u=u.firstContext;e:for(;u!==null;){var b=u;u=o;for(var C=0;C<t.length;C++)if(b.context===t[C]){u.lanes|=n,b=u.alternate,b!==null&&(b.lanes|=n),vo(u.return,n,e),a||(m=null);break e}u=b.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(l(341));m.lanes|=n,u=m.alternate,u!==null&&(u.lanes|=n),vo(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function xi(e,t,n,a){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(l(387));if(m=m.memoizedProps,m!==null){var b=o.type;Gt(o.pendingProps.value,m.value)||(e!==null?e.push(b):e=[b])}}else if(o===ge.current){if(m=o.alternate,m===null)throw Error(l(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(kr):e=[kr])}o=o.return}e!==null&&yo(t,e,n,a),t.flags|=262144}function xl(e){for(e=e.firstContext;e!==null;){if(!Gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fa(e){Ha=e,kn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return Pf(Ha,e)}function El(e,t){return Ha===null&&Fa(e),Pf(e,t)}function Pf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},kn===null){if(e===null)throw Error(l(308));kn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else kn=kn.next=t;return n}var tv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},nv=i.unstable_scheduleCallback,av=i.unstable_NormalPriority,mt={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bo(){return{controller:new tv,data:new Map,refCount:0}}function dr(e){e.refCount--,e.refCount===0&&nv(av,function(){e.controller.abort()})}var hr=null,So=0,Ei=0,Ai=null;function iv(e,t){if(hr===null){var n=hr=[];So=0,Ei=Eu(),Ai={status:"pending",value:void 0,then:function(a){n.push(a)}}}return So++,t.then($f,$f),t}function $f(){if(--So===0&&hr!==null){Ai!==null&&(Ai.status="fulfilled");var e=hr;hr=null,Ei=0,Ai=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Wf=j.S;j.S=function(e,t){jh=V(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&iv(e,t),Wf!==null&&Wf(e,t)};var Va=Se(null);function wo(){var e=Va.current;return e!==null?e:Ze.pooledCache}function Al(e,t){t===null?te(Va,Va.current):te(Va,t.pool)}function ed(){var e=wo();return e===null?null:{parent:mt._currentValue,pool:e}}var Ti=Error(l(460)),xo=Error(l(474)),Tl=Error(l(542)),Cl={then:function(){}};function td(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(zn,zn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,id(e),e;default:if(typeof t.status=="string")t.then(zn,zn);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,id(e),e}throw Ya=t,Ti}}function Ka(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ya=n,Ti):n}}var Ya=null;function ad(){if(Ya===null)throw Error(l(459));var e=Ya;return Ya=null,e}function id(e){if(e===Ti||e===Tl)throw Error(l(483))}var Ci=null,mr=0;function Ul(e){var t=mr;return mr+=1,Ci===null&&(Ci=[]),nd(Ci,e,t)}function gr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function _l(e,t){throw t.$$typeof===U?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rd(e){function t(R,_){if(e){var B=R.deletions;B===null?(R.deletions=[_],R.flags|=16):B.push(_)}}function n(R,_){if(!e)return null;for(;_!==null;)t(R,_),_=_.sibling;return null}function a(R){for(var _=new Map;R!==null;)R.key!==null?_.set(R.key,R):_.set(R.index,R),R=R.sibling;return _}function o(R,_){return R=jn(R,_),R.index=0,R.sibling=null,R}function u(R,_,B){return R.index=B,e?(B=R.alternate,B!==null?(B=B.index,B<_?(R.flags|=67108866,_):B):(R.flags|=67108866,_)):(R.flags|=1048576,_)}function m(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function b(R,_,B,H){return _===null||_.tag!==6?(_=uo(B,R.mode,H),_.return=R,_):(_=o(_,B),_.return=R,_)}function C(R,_,B,H){var ye=B.type;return ye===D?k(R,_,B.props.children,H,B.key):_!==null&&(_.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===L&&Ka(ye)===_.type)?(_=o(_,B.props),gr(_,B),_.return=R,_):(_=Sl(B.type,B.key,B.props,null,R.mode,H),gr(_,B),_.return=R,_)}function z(R,_,B,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==B.containerInfo||_.stateNode.implementation!==B.implementation?(_=co(B,R.mode,H),_.return=R,_):(_=o(_,B.children||[]),_.return=R,_)}function k(R,_,B,H,ye){return _===null||_.tag!==7?(_=ka(B,R.mode,H,ye),_.return=R,_):(_=o(_,B),_.return=R,_)}function Y(R,_,B){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return _=uo(""+_,R.mode,B),_.return=R,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case S:return B=Sl(_.type,_.key,_.props,null,R.mode,B),gr(B,_),B.return=R,B;case N:return _=co(_,R.mode,B),_.return=R,_;case L:return _=Ka(_),Y(R,_,B)}if(Ae(_)||ee(_))return _=ka(_,R.mode,B,null),_.return=R,_;if(typeof _.then=="function")return Y(R,Ul(_),B);if(_.$$typeof===J)return Y(R,El(R,_),B);_l(R,_)}return null}function O(R,_,B,H){var ye=_!==null?_.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ye!==null?null:b(R,_,""+B,H);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return B.key===ye?C(R,_,B,H):null;case N:return B.key===ye?z(R,_,B,H):null;case L:return B=Ka(B),O(R,_,B,H)}if(Ae(B)||ee(B))return ye!==null?null:k(R,_,B,H,null);if(typeof B.then=="function")return O(R,_,Ul(B),H);if(B.$$typeof===J)return O(R,_,El(R,B),H);_l(R,B)}return null}function q(R,_,B,H,ye){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(B)||null,b(_,R,""+H,ye);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case S:return R=R.get(H.key===null?B:H.key)||null,C(_,R,H,ye);case N:return R=R.get(H.key===null?B:H.key)||null,z(_,R,H,ye);case L:return H=Ka(H),q(R,_,B,H,ye)}if(Ae(H)||ee(H))return R=R.get(B)||null,k(_,R,H,ye,null);if(typeof H.then=="function")return q(R,_,B,Ul(H),ye);if(H.$$typeof===J)return q(R,_,B,El(_,H),ye);_l(_,H)}return null}function fe(R,_,B,H){for(var ye=null,qe=null,pe=_,Ue=_=0,ze=null;pe!==null&&Ue<B.length;Ue++){pe.index>Ue?(ze=pe,pe=null):ze=pe.sibling;var ke=O(R,pe,B[Ue],H);if(ke===null){pe===null&&(pe=ze);break}e&&pe&&ke.alternate===null&&t(R,pe),_=u(ke,_,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke,pe=ze}if(Ue===B.length)return n(R,pe),Oe&&qn(R,Ue),ye;if(pe===null){for(;Ue<B.length;Ue++)pe=Y(R,B[Ue],H),pe!==null&&(_=u(pe,_,Ue),qe===null?ye=pe:qe.sibling=pe,qe=pe);return Oe&&qn(R,Ue),ye}for(pe=a(pe);Ue<B.length;Ue++)ze=q(pe,R,Ue,B[Ue],H),ze!==null&&(e&&ze.alternate!==null&&pe.delete(ze.key===null?Ue:ze.key),_=u(ze,_,Ue),qe===null?ye=ze:qe.sibling=ze,qe=ze);return e&&pe.forEach(function(Ta){return t(R,Ta)}),Oe&&qn(R,Ue),ye}function we(R,_,B,H){if(B==null)throw Error(l(151));for(var ye=null,qe=null,pe=_,Ue=_=0,ze=null,ke=B.next();pe!==null&&!ke.done;Ue++,ke=B.next()){pe.index>Ue?(ze=pe,pe=null):ze=pe.sibling;var Ta=O(R,pe,ke.value,H);if(Ta===null){pe===null&&(pe=ze);break}e&&pe&&Ta.alternate===null&&t(R,pe),_=u(Ta,_,Ue),qe===null?ye=Ta:qe.sibling=Ta,qe=Ta,pe=ze}if(ke.done)return n(R,pe),Oe&&qn(R,Ue),ye;if(pe===null){for(;!ke.done;Ue++,ke=B.next())ke=Y(R,ke.value,H),ke!==null&&(_=u(ke,_,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke);return Oe&&qn(R,Ue),ye}for(pe=a(pe);!ke.done;Ue++,ke=B.next())ke=q(pe,R,Ue,ke.value,H),ke!==null&&(e&&ke.alternate!==null&&pe.delete(ke.key===null?Ue:ke.key),_=u(ke,_,Ue),qe===null?ye=ke:qe.sibling=ke,qe=ke);return e&&pe.forEach(function(py){return t(R,py)}),Oe&&qn(R,Ue),ye}function Qe(R,_,B,H){if(typeof B=="object"&&B!==null&&B.type===D&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case S:e:{for(var ye=B.key;_!==null;){if(_.key===ye){if(ye=B.type,ye===D){if(_.tag===7){n(R,_.sibling),H=o(_,B.props.children),H.return=R,R=H;break e}}else if(_.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===L&&Ka(ye)===_.type){n(R,_.sibling),H=o(_,B.props),gr(H,B),H.return=R,R=H;break e}n(R,_);break}else t(R,_);_=_.sibling}B.type===D?(H=ka(B.props.children,R.mode,H,B.key),H.return=R,R=H):(H=Sl(B.type,B.key,B.props,null,R.mode,H),gr(H,B),H.return=R,R=H)}return m(R);case N:e:{for(ye=B.key;_!==null;){if(_.key===ye)if(_.tag===4&&_.stateNode.containerInfo===B.containerInfo&&_.stateNode.implementation===B.implementation){n(R,_.sibling),H=o(_,B.children||[]),H.return=R,R=H;break e}else{n(R,_);break}else t(R,_);_=_.sibling}H=co(B,R.mode,H),H.return=R,R=H}return m(R);case L:return B=Ka(B),Qe(R,_,B,H)}if(Ae(B))return fe(R,_,B,H);if(ee(B)){if(ye=ee(B),typeof ye!="function")throw Error(l(150));return B=ye.call(B),we(R,_,B,H)}if(typeof B.then=="function")return Qe(R,_,Ul(B),H);if(B.$$typeof===J)return Qe(R,_,El(R,B),H);_l(R,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,_!==null&&_.tag===6?(n(R,_.sibling),H=o(_,B),H.return=R,R=H):(n(R,_),H=uo(B,R.mode,H),H.return=R,R=H),m(R)):n(R,_)}return function(R,_,B,H){try{mr=0;var ye=Qe(R,_,B,H);return Ci=null,ye}catch(pe){if(pe===Ti||pe===Tl)throw pe;var qe=Qt(29,pe,null,R.mode);return qe.lanes=H,qe.return=R,qe}finally{}}}var Ia=rd(!0),ld=rd(!1),oa=!1;function Eo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ao(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 ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ca(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Le&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=bl(e),Kf(e,null,n),t}return yl(e,a,t,n),bl(e)}function pr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,jt(e,n)}}function To(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=m:u=u.next=m,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Co=!1;function vr(){if(Co){var e=Ai;if(e!==null)throw e}}function yr(e,t,n,a){Co=!1;var o=e.updateQueue;oa=!1;var u=o.firstBaseUpdate,m=o.lastBaseUpdate,b=o.shared.pending;if(b!==null){o.shared.pending=null;var C=b,z=C.next;C.next=null,m===null?u=z:m.next=z,m=C;var k=e.alternate;k!==null&&(k=k.updateQueue,b=k.lastBaseUpdate,b!==m&&(b===null?k.firstBaseUpdate=z:b.next=z,k.lastBaseUpdate=C))}if(u!==null){var Y=o.baseState;m=0,k=z=C=null,b=u;do{var O=b.lane&-536870913,q=O!==b.lane;if(q?(Be&O)===O:(a&O)===O){O!==0&&O===Ei&&(Co=!0),k!==null&&(k=k.next={lane:0,tag:b.tag,payload:b.payload,callback:null,next:null});e:{var fe=e,we=b;O=t;var Qe=n;switch(we.tag){case 1:if(fe=we.payload,typeof fe=="function"){Y=fe.call(Qe,Y,O);break e}Y=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=we.payload,O=typeof fe=="function"?fe.call(Qe,Y,O):fe,O==null)break e;Y=A({},Y,O);break e;case 2:oa=!0}}O=b.callback,O!==null&&(e.flags|=64,q&&(e.flags|=8192),q=o.callbacks,q===null?o.callbacks=[O]:q.push(O))}else q={lane:O,tag:b.tag,payload:b.payload,callback:b.callback,next:null},k===null?(z=k=q,C=Y):k=k.next=q,m|=O;if(b=b.next,b===null){if(b=o.shared.pending,b===null)break;q=b,b=q.next,q.next=null,o.lastBaseUpdate=q,o.shared.pending=null}}while(!0);k===null&&(C=Y),o.baseState=C,o.firstBaseUpdate=z,o.lastBaseUpdate=k,u===null&&(o.shared.lanes=0),ga|=m,e.lanes=m,e.memoizedState=Y}}function sd(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function od(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)sd(n[e],t)}var Ui=Se(null),Dl=Se(0);function ud(e,t){e=Xn,te(Dl,e),te(Ui,t),Xn=e|t.baseLanes}function Uo(){te(Dl,Xn),te(Ui,Ui.current)}function _o(){Xn=Dl.current,re(Ui),re(Dl)}var Xt=Se(null),un=null;function fa(e){var t=e.alternate;te(ct,ct.current&1),te(Xt,e),un===null&&(t===null||Ui.current!==null||t.memoizedState!==null)&&(un=e)}function Do(e){te(ct,ct.current),te(Xt,e),un===null&&(un=e)}function cd(e){e.tag===22?(te(ct,ct.current),te(Xt,e),un===null&&(un=e)):da()}function da(){te(ct,ct.current),te(Xt,Xt.current)}function Zt(e){re(Xt),un===e&&(un=null),re(ct)}var ct=Se(0);function Rl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ou(n)||ju(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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}var Hn=0,Ce=null,Ie=null,gt=null,Nl=!1,_i=!1,Ga=!1,Ml=0,br=0,Di=null,lv=0;function lt(){throw Error(l(321))}function Ro(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function No(e,t,n,a,o,u){return Hn=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Qd:Go,Ga=!1,u=n(a,o),Ga=!1,_i&&(u=dd(t,n,a,o)),fd(e),u}function fd(e){j.H=xr;var t=Ie!==null&&Ie.next!==null;if(Hn=0,gt=Ie=Ce=null,Nl=!1,br=0,Di=null,t)throw Error(l(300));e===null||pt||(e=e.dependencies,e!==null&&xl(e)&&(pt=!0))}function dd(e,t,n,a){Ce=e;var o=0;do{if(_i&&(Di=null),br=0,_i=!1,25<=o)throw Error(l(301));if(o+=1,gt=Ie=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}j.H=Xd,u=t(n,a)}while(_i);return u}function sv(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?Sr(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Mo(){var e=Ml!==0;return Ml=0,e}function Bo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function zo(e){if(Nl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Nl=!1}Hn=0,gt=Ie=Ce=null,_i=!1,br=Ml=0,Di=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Ce.memoizedState=gt=e:gt=gt.next=e,gt}function ft(){if(Ie===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=gt===null?Ce.memoizedState:gt.next;if(t!==null)gt=t,Ie=e;else{if(e===null)throw Ce.alternate===null?Error(l(467)):Error(l(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},gt===null?Ce.memoizedState=gt=e:gt=gt.next=e}return gt}function Bl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sr(e){var t=br;return br+=1,Di===null&&(Di=[]),e=nd(Di,e,t),t=Ce,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Qd:Go),e}function zl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Sr(e);if(e.$$typeof===J)return Ut(e)}throw Error(l(438,String(e)))}function Oo(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Ce.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Bl(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=ue;return t.index++,n}function Fn(e,t){return typeof t=="function"?t(e):t}function Ol(e){var t=ft();return jo(t,Ie,e)}function jo(e,t,n){var a=e.queue;if(a===null)throw Error(l(311));a.lastRenderedReducer=n;var o=e.baseQueue,u=a.pending;if(u!==null){if(o!==null){var m=o.next;o.next=u.next,u.next=m}t.baseQueue=o=u,a.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var b=m=null,C=null,z=t,k=!1;do{var Y=z.lane&-536870913;if(Y!==z.lane?(Be&Y)===Y:(Hn&Y)===Y){var O=z.revertLane;if(O===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Y===Ei&&(k=!0);else if((Hn&O)===O){z=z.next,O===Ei&&(k=!0);continue}else Y={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},C===null?(b=C=Y,m=u):C=C.next=Y,Ce.lanes|=O,ga|=O;Y=z.action,Ga&&n(u,Y),u=z.hasEagerState?z.eagerState:n(u,Y)}else O={lane:Y,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},C===null?(b=C=O,m=u):C=C.next=O,Ce.lanes|=Y,ga|=Y;z=z.next}while(z!==null&&z!==t);if(C===null?m=u:C.next=b,!Gt(u,e.memoizedState)&&(pt=!0,k&&(n=Ai,n!==null)))throw n;e.memoizedState=u,e.baseState=m,e.baseQueue=C,a.lastRenderedState=u}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function qo(e){var t=ft(),n=t.queue;if(n===null)throw Error(l(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do u=e(u,m.action),m=m.next;while(m!==o);Gt(u,t.memoizedState)||(pt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function hd(e,t,n){var a=Ce,o=ft(),u=Oe;if(u){if(n===void 0)throw Error(l(407));n=n()}else n=t();var m=!Gt((Ie||o).memoizedState,n);if(m&&(o.memoizedState=n,pt=!0),o=o.queue,Ho(pd.bind(null,a,o,e),[e]),o.getSnapshot!==t||m||gt!==null&>.memoizedState.tag&1){if(a.flags|=2048,Ri(9,{destroy:void 0},gd.bind(null,a,o,n,t),null),Ze===null)throw Error(l(349));u||(Hn&127)!==0||md(a,t,n)}return n}function md(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Bl(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gd(e,t,n,a){t.value=n,t.getSnapshot=a,vd(t)&&yd(e)}function pd(e,t,n){return n(function(){vd(t)&&yd(e)})}function vd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function yd(e){var t=qa(e,2);t!==null&&Kt(t,e,2)}function ko(e){var t=Mt();if(typeof e=="function"){var n=e;if(e=n(),Ga){bn(!0);try{n()}finally{bn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:e},t}function bd(e,t,n,a){return e.baseState=n,jo(e,Ie,typeof a=="function"?a:Fn)}function ov(e,t,n,a,o){if(kl(e))throw Error(l(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};j.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,Sd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Sd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var u=j.T,m={};j.T=m;try{var b=n(o,a),C=j.S;C!==null&&C(m,b),wd(e,t,b)}catch(z){Lo(e,t,z)}finally{u!==null&&m.types!==null&&(u.types=m.types),j.T=u}}else try{u=n(o,a),wd(e,t,u)}catch(z){Lo(e,t,z)}}function wd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){xd(e,t,a)},function(a){return Lo(e,t,a)}):xd(e,t,n)}function xd(e,t,n){t.status="fulfilled",t.value=n,Ed(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Sd(e,n)))}function Lo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Ed(t),t=t.next;while(t!==a)}e.action=null}function Ed(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ad(e,t){return t}function Td(e,t){if(Oe){var n=Ze.formState;if(n!==null){e:{var a=Ce;if(Oe){if(We){t:{for(var o=We,u=on;o.nodeType!==8;){if(!u){o=null;break t}if(o=cn(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){We=cn(o.nextSibling),a=o.data==="F!";break e}}la(a)}a=!1}a&&(t=n[0])}}return n=Mt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ad,lastRenderedState:t},n.queue=a,n=Yd.bind(null,Ce,a),a.dispatch=n,a=ko(!1),u=Io.bind(null,Ce,!1,a.queue),a=Mt(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=ov.bind(null,Ce,o,u,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function Cd(e){var t=ft();return Ud(t,Ie,e)}function Ud(e,t,n){if(t=jo(e,t,Ad)[0],e=Ol(Fn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Sr(t)}catch(m){throw m===Ti?Tl:m}else a=t;t=ft();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Ri(9,{destroy:void 0},uv.bind(null,o,n),null)),[a,u,e]}function uv(e,t){e.action=t}function _d(e){var t=ft(),n=Ie;if(n!==null)return Ud(t,n,e);ft(),t=t.memoizedState,n=ft();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ri(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Bl(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Dd(){return ft().memoizedState}function jl(e,t,n,a){var o=Mt();Ce.flags|=e,o.memoizedState=Ri(1|t,{destroy:void 0},n,a===void 0?null:a)}function ql(e,t,n,a){var o=ft();a=a===void 0?null:a;var u=o.memoizedState.inst;Ie!==null&&a!==null&&Ro(a,Ie.memoizedState.deps)?o.memoizedState=Ri(t,u,n,a):(Ce.flags|=e,o.memoizedState=Ri(1|t,u,n,a))}function Rd(e,t){jl(8390656,8,e,t)}function Ho(e,t){ql(2048,8,e,t)}function cv(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Bl(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Nd(e){var t=ft().memoizedState;return cv({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Md(e,t){return ql(4,2,e,t)}function Bd(e,t){return ql(4,4,e,t)}function zd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Od(e,t,n){n=n!=null?n.concat([e]):null,ql(4,4,zd.bind(null,t,e),n)}function Fo(){}function jd(e,t){var n=ft();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ro(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function qd(e,t){var n=ft();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ro(t,a[1]))return a[0];if(a=e(),Ga){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[a,t],a}function Vo(e,t,n){return n===void 0||(Hn&1073741824)!==0&&(Be&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=kh(),Ce.lanes|=e,ga|=e,n)}function kd(e,t,n,a){return Gt(n,t)?n:Ui.current!==null?(e=Vo(e,n,a),Gt(e,t)||(pt=!0),e):(Hn&42)===0||(Hn&1073741824)!==0&&(Be&261930)===0?(pt=!0,e.memoizedState=n):(e=kh(),Ce.lanes|=e,ga|=e,t)}function Ld(e,t,n,a,o){var u=Q.p;Q.p=u!==0&&8>u?u:8;var m=j.T,b={};j.T=b,Io(e,!1,t,n);try{var C=o(),z=j.S;if(z!==null&&z(b,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var k=rv(C,a);wr(e,t,k,$t(e))}else wr(e,t,a,$t(e))}catch(Y){wr(e,t,{then:function(){},status:"rejected",reason:Y},$t())}finally{Q.p=u,m!==null&&b.types!==null&&(m.types=b.types),j.T=m}}function fv(){}function Ko(e,t,n,a){if(e.tag!==5)throw Error(l(476));var o=Hd(e).queue;Ld(e,o,t,G,n===null?fv:function(){return Fd(e),n(a)})}function Hd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:G},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Fd(e){var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),wr(e,t.next.queue,{},$t())}function Yo(){return Ut(kr)}function Vd(){return ft().memoizedState}function Kd(){return ft().memoizedState}function dv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$t();e=ua(n);var a=ca(t,e,n);a!==null&&(Kt(a,t,n),pr(a,t,n)),t={cache:bo()},e.payload=t;return}t=t.return}}function hv(e,t,n){var a=$t();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},kl(e)?Id(t,n):(n=so(e,t,n,a),n!==null&&(Kt(n,e,a),Gd(n,t,a)))}function Yd(e,t,n){var a=$t();wr(e,t,n,a)}function wr(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(kl(e))Id(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,b=u(m,n);if(o.hasEagerState=!0,o.eagerState=b,Gt(b,m))return yl(e,t,o,0),Ze===null&&vl(),!1}catch{}finally{}if(n=so(e,t,o,a),n!==null)return Kt(n,e,a),Gd(n,t,a),!0}return!1}function Io(e,t,n,a){if(a={lane:2,revertLane:Eu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},kl(e)){if(t)throw Error(l(479))}else t=so(e,n,a,2),t!==null&&Kt(t,e,2)}function kl(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Id(e,t){_i=Nl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gd(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,jt(e,n)}}var xr={readContext:Ut,use:zl,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};xr.useEffectEvent=lt;var Qd={readContext:Ut,use:zl,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:Rd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,jl(4194308,4,zd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return jl(4194308,4,e,t)},useInsertionEffect:function(e,t){jl(4,2,e,t)},useMemo:function(e,t){var n=Mt();t=t===void 0?null:t;var a=e();if(Ga){bn(!0);try{e()}finally{bn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Mt();if(n!==void 0){var o=n(t);if(Ga){bn(!0);try{n(t)}finally{bn(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=hv.bind(null,Ce,e),[a.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=ko(e);var t=e.queue,n=Yd.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Fo,useDeferredValue:function(e,t){var n=Mt();return Vo(n,e,t)},useTransition:function(){var e=ko(!1);return e=Ld.bind(null,Ce,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Ce,o=Mt();if(Oe){if(n===void 0)throw Error(l(407));n=n()}else{if(n=t(),Ze===null)throw Error(l(349));(Be&127)!==0||md(a,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Rd(pd.bind(null,a,u,e),[e]),a.flags|=2048,Ri(9,{destroy:void 0},gd.bind(null,a,u,n,t),null),n},useId:function(){var e=Mt(),t=Ze.identifierPrefix;if(Oe){var n=_n,a=Un;n=(a&~(1<<32-ht(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Ml++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=lv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Yo,useFormState:Td,useActionState:Td,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Io.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return Mt().memoizedState=dv.bind(null,Ce)},useEffectEvent:function(e){var t=Mt(),n={impl:e};return t.memoizedState=n,function(){if((Le&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}},Go={readContext:Ut,use:zl,useCallback:jd,useContext:Ut,useEffect:Ho,useImperativeHandle:Od,useInsertionEffect:Md,useLayoutEffect:Bd,useMemo:qd,useReducer:Ol,useRef:Dd,useState:function(){return Ol(Fn)},useDebugValue:Fo,useDeferredValue:function(e,t){var n=ft();return kd(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Ol(Fn)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:Sr(e),t]},useSyncExternalStore:hd,useId:Vd,useHostTransitionStatus:Yo,useFormState:Cd,useActionState:Cd,useOptimistic:function(e,t){var n=ft();return bd(n,Ie,e,t)},useMemoCache:Oo,useCacheRefresh:Kd};Go.useEffectEvent=Nd;var Xd={readContext:Ut,use:zl,useCallback:jd,useContext:Ut,useEffect:Ho,useImperativeHandle:Od,useInsertionEffect:Md,useLayoutEffect:Bd,useMemo:qd,useReducer:qo,useRef:Dd,useState:function(){return qo(Fn)},useDebugValue:Fo,useDeferredValue:function(e,t){var n=ft();return Ie===null?Vo(n,e,t):kd(n,Ie.memoizedState,e,t)},useTransition:function(){var e=qo(Fn)[0],t=ft().memoizedState;return[typeof e=="boolean"?e:Sr(e),t]},useSyncExternalStore:hd,useId:Vd,useHostTransitionStatus:Yo,useFormState:_d,useActionState:_d,useOptimistic:function(e,t){var n=ft();return Ie!==null?bd(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Oo,useCacheRefresh:Kd};Xd.useEffectEvent=Nd;function Qo(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:A({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xo={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=$t(),o=ua(a);o.payload=t,n!=null&&(o.callback=n),t=ca(e,o,a),t!==null&&(Kt(t,e,a),pr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=$t(),o=ua(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ca(e,o,a),t!==null&&(Kt(t,e,a),pr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$t(),a=ua(n);a.tag=2,t!=null&&(a.callback=t),t=ca(e,a,n),t!==null&&(Kt(t,e,n),pr(t,e,n))}};function Zd(e,t,n,a,o,u,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,m):t.prototype&&t.prototype.isPureReactComponent?!or(n,a)||!or(o,u):!0}function Jd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Xo.enqueueReplaceState(t,t.state,null)}function Qa(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=A({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Pd(e){pl(e)}function $d(e){console.error(e)}function Wd(e){pl(e)}function Ll(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function eh(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Zo(e,t,n){return n=ua(n),n.tag=3,n.payload={element:null},n.callback=function(){Ll(e,t)},n}function th(e){return e=ua(e),e.tag=3,e}function nh(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=a.value;e.payload=function(){return o(u)},e.callback=function(){eh(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){eh(t,n,a),typeof o!="function"&&(pa===null?pa=new Set([this]):pa.add(this));var b=a.stack;this.componentDidCatch(a.value,{componentStack:b!==null?b:""})})}function mv(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&xi(t,n,o,!0),n=Xt.current,n!==null){switch(n.tag){case 31:case 13:return un===null?Pl():n.alternate===null&&st===0&&(st=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===Cl?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Su(e,a,o)),!1;case 22:return n.flags|=65536,a===Cl?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),Su(e,a,o)),!1}throw Error(l(435,n.tag))}return Su(e,a,o),Pl(),!1}if(Oe)return t=Xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==mo&&(e=Error(l(422),{cause:a}),fr(rn(e,n)))):(a!==mo&&(t=Error(l(423),{cause:a}),fr(rn(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=rn(a,n),o=Zo(e.stateNode,a,o),To(e,o),st!==4&&(st=2)),!1;var u=Error(l(520),{cause:a});if(u=rn(u,n),Rr===null?Rr=[u]:Rr.push(u),st!==4&&(st=2),t===null)return!0;a=rn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Zo(n.stateNode,a,e),To(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(pa===null||!pa.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=th(o),nh(o,e,n,a),To(n,o),!1}n=n.return}while(n!==null);return!1}var Jo=Error(l(461)),pt=!1;function _t(e,t,n,a){t.child=e===null?ld(t,null,n,a):Ia(t,e.child,n,a)}function ah(e,t,n,a,o){n=n.render;var u=t.ref;if("ref"in a){var m={};for(var b in a)b!=="ref"&&(m[b]=a[b])}else m=a;return Fa(t),a=No(e,t,n,m,u,o),b=Mo(),e!==null&&!pt?(Bo(e,t,o),Vn(e,t,o)):(Oe&&b&&fo(t),t.flags|=1,_t(e,t,a,o),t.child)}function ih(e,t,n,a,o){if(e===null){var u=n.type;return typeof u=="function"&&!oo(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,rh(e,t,u,a,o)):(e=Sl(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!iu(e,o)){var m=u.memoizedProps;if(n=n.compare,n=n!==null?n:or,n(m,a)&&e.ref===t.ref)return Vn(e,t,o)}return t.flags|=1,e=jn(u,a),e.ref=t.ref,e.return=t,t.child=e}function rh(e,t,n,a,o){if(e!==null){var u=e.memoizedProps;if(or(u,a)&&e.ref===t.ref)if(pt=!1,t.pendingProps=a=u,iu(e,o))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,Vn(e,t,o)}return Po(e,t,n,a,o)}function lh(e,t,n,a){var o=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~u}else a=0,t.child=null;return sh(e,t,u,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Al(t,u!==null?u.cachePool:null),u!==null?ud(t,u):Uo(),cd(t);else return a=t.lanes=536870912,sh(e,t,u!==null?u.baseLanes|n:n,n,a)}else u!==null?(Al(t,u.cachePool),ud(t,u),da(),t.memoizedState=null):(e!==null&&Al(t,null),Uo(),da());return _t(e,t,o,n),t.child}function Er(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sh(e,t,n,a,o){var u=wo();return u=u===null?null:{parent:mt._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Al(t,null),Uo(),cd(t),e!==null&&xi(e,t,a,!0),t.childLanes=o,null}function Hl(e,t){return t=Vl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function oh(e,t,n){return Ia(t,e.child,null,n),e=Hl(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function gv(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(a.mode==="hidden")return e=Hl(t,a),t.lanes=536870912,Er(null,e);if(Do(t),(e=We)?(e=Sm(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ia!==null?{id:Un,overflow:_n}:null,retryLane:536870912,hydrationErrors:null},n=If(e),n.return=t,t.child=n,Ct=t,We=null)):e=null,e===null)throw la(t);return t.lanes=536870912,null}return Hl(t,a)}var u=e.memoizedState;if(u!==null){var m=u.dehydrated;if(Do(t),o)if(t.flags&256)t.flags&=-257,t=oh(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(pt||xi(e,t,n,!1),o=(n&e.childLanes)!==0,pt||o){if(a=Ze,a!==null&&(m=Sn(a,n),m!==0&&m!==u.retryLane))throw u.retryLane=m,qa(e,m),Kt(a,e,m),Jo;Pl(),t=oh(e,t,n)}else e=u.treeContext,We=cn(m.nextSibling),Ct=t,Oe=!0,ra=null,on=!1,e!==null&&Xf(t,e),t=Hl(t,a),t.flags|=4096;return t}return e=jn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fl(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(l(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Po(e,t,n,a,o){return Fa(t),n=No(e,t,n,a,void 0,o),a=Mo(),e!==null&&!pt?(Bo(e,t,o),Vn(e,t,o)):(Oe&&a&&fo(t),t.flags|=1,_t(e,t,n,o),t.child)}function uh(e,t,n,a,o,u){return Fa(t),t.updateQueue=null,n=dd(t,a,n,o),fd(e),a=Mo(),e!==null&&!pt?(Bo(e,t,u),Vn(e,t,u)):(Oe&&a&&fo(t),t.flags|=1,_t(e,t,n,u),t.child)}function ch(e,t,n,a,o){if(Fa(t),t.stateNode===null){var u=yi,m=n.contextType;typeof m=="object"&&m!==null&&(u=Ut(m)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Xo,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},Eo(t),m=n.contextType,u.context=typeof m=="object"&&m!==null?Ut(m):yi,u.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Qo(t,n,m,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&Xo.enqueueReplaceState(u,u.state,null),yr(t,a,u,o),vr(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var b=t.memoizedProps,C=Qa(n,b);u.props=C;var z=u.context,k=n.contextType;m=yi,typeof k=="object"&&k!==null&&(m=Ut(k));var Y=n.getDerivedStateFromProps;k=typeof Y=="function"||typeof u.getSnapshotBeforeUpdate=="function",b=t.pendingProps!==b,k||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b||z!==m)&&Jd(t,u,a,m),oa=!1;var O=t.memoizedState;u.state=O,yr(t,a,u,o),vr(),z=t.memoizedState,b||O!==z||oa?(typeof Y=="function"&&(Qo(t,n,Y,a),z=t.memoizedState),(C=oa||Zd(t,n,C,a,O,z,m))?(k||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=m,a=C):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Ao(e,t),m=t.memoizedProps,k=Qa(n,m),u.props=k,Y=t.pendingProps,O=u.context,z=n.contextType,C=yi,typeof z=="object"&&z!==null&&(C=Ut(z)),b=n.getDerivedStateFromProps,(z=typeof b=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==Y||O!==C)&&Jd(t,u,a,C),oa=!1,O=t.memoizedState,u.state=O,yr(t,a,u,o),vr();var q=t.memoizedState;m!==Y||O!==q||oa||e!==null&&e.dependencies!==null&&xl(e.dependencies)?(typeof b=="function"&&(Qo(t,n,b,a),q=t.memoizedState),(k=oa||Zd(t,n,k,a,O,q,C)||e!==null&&e.dependencies!==null&&xl(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,q,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,q,C)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=q),u.props=a,u.state=q,u.context=C,a=k):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Fl(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Ia(t,e.child,null,o),t.child=Ia(t,null,n,o)):_t(e,t,n,o),t.memoizedState=u.state,e=t.child):e=Vn(e,t,o),e}function fh(e,t,n,a){return La(),t.flags|=256,_t(e,t,n,a),t.child}var $o={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wo(e){return{baseLanes:e,cachePool:ed()}}function eu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Pt),e}function dh(e,t,n){var a=t.pendingProps,o=!1,u=(t.flags&128)!==0,m;if((m=u)||(m=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?fa(t):da(),(e=We)?(e=Sm(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ia!==null?{id:Un,overflow:_n}:null,retryLane:536870912,hydrationErrors:null},n=If(e),n.return=t,t.child=n,Ct=t,We=null)):e=null,e===null)throw la(t);return ju(e)?t.lanes=32:t.lanes=536870912,null}var b=a.children;return a=a.fallback,o?(da(),o=t.mode,b=Vl({mode:"hidden",children:b},o),a=ka(a,o,n,null),b.return=t,a.return=t,b.sibling=a,t.child=b,a=t.child,a.memoizedState=Wo(n),a.childLanes=eu(e,m,n),t.memoizedState=$o,Er(null,a)):(fa(t),tu(t,b))}var C=e.memoizedState;if(C!==null&&(b=C.dehydrated,b!==null)){if(u)t.flags&256?(fa(t),t.flags&=-257,t=nu(e,t,n)):t.memoizedState!==null?(da(),t.child=e.child,t.flags|=128,t=null):(da(),b=a.fallback,o=t.mode,a=Vl({mode:"visible",children:a.children},o),b=ka(b,o,n,null),b.flags|=2,a.return=t,b.return=t,a.sibling=b,t.child=a,Ia(t,e.child,null,n),a=t.child,a.memoizedState=Wo(n),a.childLanes=eu(e,m,n),t.memoizedState=$o,t=Er(null,a));else if(fa(t),ju(b)){if(m=b.nextSibling&&b.nextSibling.dataset,m)var z=m.dgst;m=z,a=Error(l(419)),a.stack="",a.digest=m,fr({value:a,source:null,stack:null}),t=nu(e,t,n)}else if(pt||xi(e,t,n,!1),m=(n&e.childLanes)!==0,pt||m){if(m=Ze,m!==null&&(a=Sn(m,n),a!==0&&a!==C.retryLane))throw C.retryLane=a,qa(e,a),Kt(m,e,a),Jo;Ou(b)||Pl(),t=nu(e,t,n)}else Ou(b)?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,We=cn(b.nextSibling),Ct=t,Oe=!0,ra=null,on=!1,e!==null&&Xf(t,e),t=tu(t,a.children),t.flags|=4096);return t}return o?(da(),b=a.fallback,o=t.mode,C=e.child,z=C.sibling,a=jn(C,{mode:"hidden",children:a.children}),a.subtreeFlags=C.subtreeFlags&65011712,z!==null?b=jn(z,b):(b=ka(b,o,n,null),b.flags|=2),b.return=t,a.return=t,a.sibling=b,t.child=a,Er(null,a),a=t.child,b=e.child.memoizedState,b===null?b=Wo(n):(o=b.cachePool,o!==null?(C=mt._currentValue,o=o.parent!==C?{parent:C,pool:C}:o):o=ed(),b={baseLanes:b.baseLanes|n,cachePool:o}),a.memoizedState=b,a.childLanes=eu(e,m,n),t.memoizedState=$o,Er(e.child,a)):(fa(t),n=e.child,e=n.sibling,n=jn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function tu(e,t){return t=Vl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vl(e,t){return e=Qt(22,e,null,t),e.lanes=0,e}function nu(e,t,n){return Ia(t,e.child,null,n),e=tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),vo(e.return,t,n)}function au(e,t,n,a,o,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:u}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=o,m.treeForkCount=u)}function mh(e,t,n){var a=t.pendingProps,o=a.revealOrder,u=a.tail;a=a.children;var m=ct.current,b=(m&2)!==0;if(b?(m=m&1|2,t.flags|=128):m&=1,te(ct,m),_t(e,t,a,n),a=Oe?cr:0,!b&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hh(e,n,t);else if(e.tag===19)hh(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}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Rl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),au(t,!1,o,n,u,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Rl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}au(t,!0,n,null,u,a);break;case"together":au(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ga|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function iu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xl(e)))}function pv(e,t,n){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),sa(t,mt,e.memoizedState.cache),La();break;case 27:case 5:ut(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Do(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(fa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?dh(e,t,n):(fa(t),e=Vn(e,t,n),e!==null?e.sibling:null);fa(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(xi(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return mh(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),te(ct,ct.current),a)break;return null;case 22:return t.lanes=0,lh(e,t,n,t.pendingProps);case 24:sa(t,mt,e.memoizedState.cache)}return Vn(e,t,n)}function gh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!iu(e,n)&&(t.flags&128)===0)return pt=!1,pv(e,t,n);pt=(e.flags&131072)!==0}else pt=!1,Oe&&(t.flags&1048576)!==0&&Qf(t,cr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ka(t.elementType),t.type=e,typeof e=="function")oo(e)?(a=Qa(e,a),t.tag=1,t=ch(null,t,e,a,n)):(t.tag=0,t=Po(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===$){t.tag=11,t=ah(null,t,e,a,n);break e}else if(o===W){t.tag=14,t=ih(null,t,e,a,n);break e}}throw t=oe(e)||e,Error(l(306,t,""))}}return t;case 0:return Po(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Qa(a,t.pendingProps),ch(e,t,a,o,n);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(l(387));a=t.pendingProps;var u=t.memoizedState;o=u.element,Ao(e,t),yr(t,a,null,n);var m=t.memoizedState;if(a=m.cache,sa(t,mt,a),a!==u.cache&&yo(t,[mt],n,!0),vr(),a=m.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=fh(e,t,a,n);break e}else if(a!==o){o=rn(Error(l(424)),t),fr(o),t=fh(e,t,a,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(We=cn(e.firstChild),Ct=t,Oe=!0,ra=null,on=!0,n=ld(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(La(),a===o){t=Vn(e,t,n);break e}_t(e,t,a,n)}t=t.child}return t;case 26:return Fl(e,t),e===null?(n=Cm(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,a=is(Je.current).createElement(n),a[Tt]=t,a[qt]=e,Dt(a,n,e),xt(a),t.stateNode=a):t.memoizedState=Cm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ut(t),e===null&&Oe&&(a=t.stateNode=Em(t.type,t.pendingProps,Je.current),Ct=t,on=!0,o=We,Sa(t.type)?(qu=o,We=cn(a.firstChild)):We=o),_t(e,t,t.pendingProps.children,n),Fl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=a=We)&&(a=Gv(a,t.type,t.pendingProps,on),a!==null?(t.stateNode=a,Ct=t,We=cn(a.firstChild),on=!1,o=!0):o=!1),o||la(t)),ut(t),o=t.type,u=t.pendingProps,m=e!==null?e.memoizedProps:null,a=u.children,Mu(o,u)?a=null:m!==null&&Mu(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=No(e,t,sv,null,null,n),kr._currentValue=o),Fl(e,t),_t(e,t,a,n),t.child;case 6:return e===null&&Oe&&((e=n=We)&&(n=Qv(n,t.pendingProps,on),n!==null?(t.stateNode=n,Ct=t,We=null,e=!0):e=!1),e||la(t)),null;case 13:return dh(e,t,n);case 4:return $e(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ia(t,null,a,n):_t(e,t,a,n),t.child;case 11:return ah(e,t,t.type,t.pendingProps,n);case 7:return _t(e,t,t.pendingProps,n),t.child;case 8:return _t(e,t,t.pendingProps.children,n),t.child;case 12:return _t(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,sa(t,t.type,a.value),_t(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,Fa(t),o=Ut(o),a=a(o),t.flags|=1,_t(e,t,a,n),t.child;case 14:return ih(e,t,t.type,t.pendingProps,n);case 15:return rh(e,t,t.type,t.pendingProps,n);case 19:return mh(e,t,n);case 31:return gv(e,t,n);case 22:return lh(e,t,n,t.pendingProps);case 24:return Fa(t),a=Ut(mt),e===null?(o=wo(),o===null&&(o=Ze,u=bo(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:a,cache:o},Eo(t),sa(t,mt,o)):((e.lanes&n)!==0&&(Ao(e,t),yr(t,null,null,n),vr()),o=e.memoizedState,u=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),sa(t,mt,a)):(a=u.cache,sa(t,mt,a),a!==o.cache&&yo(t,[mt],n,!0))),_t(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Kn(e){e.flags|=4}function ru(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Vh())e.flags|=8192;else throw Ya=Cl,xo}else e.flags&=-16777217}function ph(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nm(t))if(Vh())e.flags|=8192;else throw Ya=Cl,xo}function Kl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Xe():536870912,e.lanes|=t,zi|=t)}function Ar(e,t){if(!Oe)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function vv(e,t,n){var a=t.pendingProps;switch(ho(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ln(mt),Ke(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wi(t)?Kn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,go())),et(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(Kn(t),u!==null?(et(t),ph(t,u)):(et(t),ru(t,o,null,a,n))):u?u!==e.memoizedState?(Kn(t),et(t),ph(t,u)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Kn(t),et(t),ru(t,o,e,a,n)),null;case 27:if(xe(t),n=Je.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return et(t),null}e=ce.current,wi(t)?Zf(t):(e=Em(o,a,n),t.stateNode=e,Kn(t))}return et(t),null;case 5:if(xe(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(!a){if(t.stateNode===null)throw Error(l(166));return et(t),null}if(u=ce.current,wi(t))Zf(t);else{var m=is(Je.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?m.createElement(o,{is:a.is}):m.createElement(o)}}u[Tt]=t,u[qt]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=u;e:switch(Dt(u,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Kn(t)}}return et(t),ru(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(l(166));if(e=Je.current,wi(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=Ct,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||dm(e.nodeValue,n)),e||la(t,!0)}else e=is(e).createTextNode(a),e[Tt]=t,t.stateNode=e}return et(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=wi(t),n!==null){if(e===null){if(!a)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Tt]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else n=go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return et(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=wi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[Tt]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),o=!1}else o=go(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Kl(t,t.updateQueue),et(t),null);case 4:return Ke(),e===null&&Uu(t.stateNode.containerInfo),et(t),null;case 10:return Ln(t.type),et(t),null;case 19:if(re(ct),a=t.memoizedState,a===null)return et(t),null;if(o=(t.flags&128)!==0,u=a.rendering,u===null)if(o)Ar(a,!1);else{if(st!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Rl(e),u!==null){for(t.flags|=128,Ar(a,!1),e=u.updateQueue,t.updateQueue=e,Kl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Yf(n,e),n=n.sibling;return te(ct,ct.current&1|2),Oe&&qn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&V()>Xl&&(t.flags|=128,o=!0,Ar(a,!1),t.lanes=4194304)}else{if(!o)if(e=Rl(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Kl(t,e),Ar(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Oe)return et(t),null}else 2*V()-a.renderingStartTime>Xl&&n!==536870912&&(t.flags|=128,o=!0,Ar(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=V(),e.sibling=null,n=ct.current,te(ct,o?n&1|2:n&1),Oe&&qn(t,a.treeForkCount),e):(et(t),null);case 22:case 23:return Zt(t),_o(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),n=t.updateQueue,n!==null&&Kl(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&re(Va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ln(mt),et(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function yv(e,t){switch(ho(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ln(mt),Ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(l(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(ct),null;case 4:return Ke(),null;case 10:return Ln(t.type),null;case 22:case 23:return Zt(t),_o(),e!==null&&re(Va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ln(mt),null;case 25:return null;default:return null}}function vh(e,t){switch(ho(t),t.tag){case 3:Ln(mt),Ke();break;case 26:case 27:case 5:xe(t);break;case 4:Ke();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:re(ct);break;case 10:Ln(t.type);break;case 22:case 23:Zt(t),_o(),e!==null&&re(Va);break;case 24:Ln(mt)}}function Tr(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var u=n.create,m=n.inst;a=u(),m.destroy=a}n=n.next}while(n!==o)}}catch(b){Ve(t,t.return,b)}}function ha(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){var m=a.inst,b=m.destroy;if(b!==void 0){m.destroy=void 0,o=t;var C=n,z=b;try{z()}catch(k){Ve(o,C,k)}}}a=a.next}while(a!==u)}}catch(k){Ve(t,t.return,k)}}function yh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{od(t,n)}catch(a){Ve(e,e.return,a)}}}function bh(e,t,n){n.props=Qa(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ve(e,t,a)}}function Cr(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Ve(e,t,o)}}function Dn(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Ve(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Ve(e,t,o)}else n.current=null}function Sh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Ve(e,e.return,o)}}function lu(e,t,n){try{var a=e.stateNode;Hv(a,e.type,n,t),a[qt]=t}catch(o){Ve(e,e.return,o)}}function wh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sa(e.type)||e.tag===4}function su(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wh(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&&Sa(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 ou(e,t,n){var a=e.tag;if(a===5||a===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=zn));else if(a!==4&&(a===27&&Sa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ou(e,t,n),e=e.sibling;e!==null;)ou(e,t,n),e=e.sibling}function Yl(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Sa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Yl(e,t,n),e=e.sibling;e!==null;)Yl(e,t,n),e=e.sibling}function xh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Dt(t,a,n),t[Tt]=e,t[qt]=n}catch(u){Ve(e,e.return,u)}}var Yn=!1,vt=!1,uu=!1,Eh=typeof WeakSet=="function"?WeakSet:Set,Et=null;function bv(e,t){if(e=e.containerInfo,Ru=fs,e=Of(e),to(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var m=0,b=-1,C=-1,z=0,k=0,Y=e,O=null;t:for(;;){for(var q;Y!==n||o!==0&&Y.nodeType!==3||(b=m+o),Y!==u||a!==0&&Y.nodeType!==3||(C=m+a),Y.nodeType===3&&(m+=Y.nodeValue.length),(q=Y.firstChild)!==null;)O=Y,Y=q;for(;;){if(Y===e)break t;if(O===n&&++z===o&&(b=m),O===u&&++k===a&&(C=m),(q=Y.nextSibling)!==null)break;Y=O,O=Y.parentNode}Y=q}n=b===-1||C===-1?null:{start:b,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nu={focusedElem:e,selectionRange:n},fs=!1,Et=t;Et!==null;)if(t=Et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Et=e;else for(;Et!==null;){switch(t=Et,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var fe=Qa(n.type,o);e=a.getSnapshotBeforeUpdate(fe,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(we){Ve(n,n.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)zu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zu(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,Et=e;break}Et=t.return}}function Ah(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Gn(e,n),a&4&&Tr(5,n);break;case 1:if(Gn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Ve(n,n.return,m)}else{var o=Qa(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Ve(n,n.return,m)}}a&64&&yh(n),a&512&&Cr(n,n.return);break;case 3:if(Gn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{od(e,t)}catch(m){Ve(n,n.return,m)}}break;case 27:t===null&&a&4&&xh(n);case 26:case 5:Gn(e,n),t===null&&a&4&&Sh(n),a&512&&Cr(n,n.return);break;case 12:Gn(e,n);break;case 31:Gn(e,n),a&4&&Uh(e,n);break;case 13:Gn(e,n),a&4&&_h(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_v.bind(null,n),Xv(e,n))));break;case 22:if(a=n.memoizedState!==null||Yn,!a){t=t!==null&&t.memoizedState!==null||vt,o=Yn;var u=vt;Yn=a,(vt=t)&&!u?Qn(e,n,(n.subtreeFlags&8772)!==0):Gn(e,n),Yn=o,vt=u}break;case 30:break;default:Gn(e,n)}}function Th(e){var t=e.alternate;t!==null&&(e.alternate=null,Th(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ks(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var at=null,Lt=!1;function In(e,t,n){for(n=n.child;n!==null;)Ch(e,t,n),n=n.sibling}function Ch(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Mn,n)}catch{}switch(n.tag){case 26:vt||Dn(n,t),In(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:vt||Dn(n,t);var a=at,o=Lt;Sa(n.type)&&(at=n.stateNode,Lt=!1),In(e,t,n),Or(n.stateNode),at=a,Lt=o;break;case 5:vt||Dn(n,t);case 6:if(a=at,o=Lt,at=null,In(e,t,n),at=a,Lt=o,at!==null)if(Lt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(n.stateNode)}catch(u){Ve(n,t,u)}else try{at.removeChild(n.stateNode)}catch(u){Ve(n,t,u)}break;case 18:at!==null&&(Lt?(e=at,ym(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Vi(e)):ym(at,n.stateNode));break;case 4:a=at,o=Lt,at=n.stateNode.containerInfo,Lt=!0,In(e,t,n),at=a,Lt=o;break;case 0:case 11:case 14:case 15:ha(2,n,t),vt||ha(4,n,t),In(e,t,n);break;case 1:vt||(Dn(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&bh(n,t,a)),In(e,t,n);break;case 21:In(e,t,n);break;case 22:vt=(a=vt)||n.memoizedState!==null,In(e,t,n),vt=a;break;default:In(e,t,n)}}function Uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vi(e)}catch(n){Ve(t,t.return,n)}}}function _h(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vi(e)}catch(n){Ve(t,t.return,n)}}function Sv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Eh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Eh),t;default:throw Error(l(435,e.tag))}}function Il(e,t){var n=Sv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=Dv.bind(null,e,a);a.then(o,o)}})}function Ht(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],u=e,m=t,b=m;e:for(;b!==null;){switch(b.tag){case 27:if(Sa(b.type)){at=b.stateNode,Lt=!1;break e}break;case 5:at=b.stateNode,Lt=!1;break e;case 3:case 4:at=b.stateNode.containerInfo,Lt=!0;break e}b=b.return}if(at===null)throw Error(l(160));Ch(u,m,o),at=null,Lt=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dh(t,e),t=t.sibling}var xn=null;function Dh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ht(t,e),Ft(e),a&4&&(ha(3,e,e.return),Tr(3,e),ha(5,e,e.return));break;case 1:Ht(t,e),Ft(e),a&512&&(vt||n===null||Dn(n,n.return)),a&64&&Yn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=xn;if(Ht(t,e),Ft(e),a&512&&(vt||n===null||Dn(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":u=o.getElementsByTagName("title")[0],(!u||u[Wi]||u[Tt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(a),o.head.insertBefore(u,o.querySelector("head > title"))),Dt(u,a,n),u[Tt]=e,xt(u),a=u;break e;case"link":var m=Dm("link","href",o).get(a+(n.href||""));if(m){for(var b=0;b<m.length;b++)if(u=m[b],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(b,1);break t}}u=o.createElement(a),Dt(u,a,n),o.head.appendChild(u);break;case"meta":if(m=Dm("meta","content",o).get(a+(n.content||""))){for(b=0;b<m.length;b++)if(u=m[b],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(b,1);break t}}u=o.createElement(a),Dt(u,a,n),o.head.appendChild(u);break;default:throw Error(l(468,a))}u[Tt]=e,xt(u),a=u}e.stateNode=a}else Rm(o,e.type,e.stateNode);else e.stateNode=_m(o,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?Rm(o,e.type,e.stateNode):_m(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&lu(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ht(t,e),Ft(e),a&512&&(vt||n===null||Dn(n,n.return)),n!==null&&a&4&&lu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ht(t,e),Ft(e),a&512&&(vt||n===null||Dn(n,n.return)),e.flags&32){o=e.stateNode;try{fi(o,"")}catch(fe){Ve(e,e.return,fe)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,lu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(uu=!0);break;case 6:if(Ht(t,e),Ft(e),a&4){if(e.stateNode===null)throw Error(l(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(fe){Ve(e,e.return,fe)}}break;case 3:if(ss=null,o=xn,xn=rs(t.containerInfo),Ht(t,e),xn=o,Ft(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Vi(t.containerInfo)}catch(fe){Ve(e,e.return,fe)}uu&&(uu=!1,Rh(e));break;case 4:a=xn,xn=rs(e.stateNode.containerInfo),Ht(t,e),Ft(e),xn=a;break;case 12:Ht(t,e),Ft(e);break;case 31:Ht(t,e),Ft(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Il(e,a)));break;case 13:Ht(t,e),Ft(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ql=V()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Il(e,a)));break;case 22:o=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,z=Yn,k=vt;if(Yn=z||o,vt=k||C,Ht(t,e),vt=k,Yn=z,Ft(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||C||Yn||vt||Xa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(u=C.stateNode,o)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{b=C.stateNode;var Y=C.memoizedProps.style,O=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;b.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(fe){Ve(C,C.return,fe)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=o?"":C.memoizedProps}catch(fe){Ve(C,C.return,fe)}}}else if(t.tag===18){if(n===null){C=t;try{var q=C.stateNode;o?bm(q,!0):bm(C.stateNode,!1)}catch(fe){Ve(C,C.return,fe)}}}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}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Il(e,n))));break;case 19:Ht(t,e),Ft(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Il(e,a)));break;case 30:break;case 21:break;default:Ht(t,e),Ft(e)}}function Ft(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(wh(a)){n=a;break}a=a.return}if(n==null)throw Error(l(160));switch(n.tag){case 27:var o=n.stateNode,u=su(e);Yl(e,u,o);break;case 5:var m=n.stateNode;n.flags&32&&(fi(m,""),n.flags&=-33);var b=su(e);Yl(e,b,m);break;case 3:case 4:var C=n.stateNode.containerInfo,z=su(e);ou(e,z,C);break;default:throw Error(l(161))}}catch(k){Ve(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ah(e,t.alternate,t),t=t.sibling}function Xa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ha(4,t,t.return),Xa(t);break;case 1:Dn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&bh(t,t.return,n),Xa(t);break;case 27:Or(t.stateNode);case 26:case 5:Dn(t,t.return),Xa(t);break;case 22:t.memoizedState===null&&Xa(t);break;case 30:Xa(t);break;default:Xa(t)}e=e.sibling}}function Qn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,u=t,m=u.flags;switch(u.tag){case 0:case 11:case 15:Qn(o,u,n),Tr(4,u);break;case 1:if(Qn(o,u,n),a=u,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Ve(a,a.return,z)}if(a=u,o=a.updateQueue,o!==null){var b=a.stateNode;try{var C=o.shared.hiddenCallbacks;if(C!==null)for(o.shared.hiddenCallbacks=null,o=0;o<C.length;o++)sd(C[o],b)}catch(z){Ve(a,a.return,z)}}n&&m&64&&yh(u),Cr(u,u.return);break;case 27:xh(u);case 26:case 5:Qn(o,u,n),n&&a===null&&m&4&&Sh(u),Cr(u,u.return);break;case 12:Qn(o,u,n);break;case 31:Qn(o,u,n),n&&m&4&&Uh(o,u);break;case 13:Qn(o,u,n),n&&m&4&&_h(o,u);break;case 22:u.memoizedState===null&&Qn(o,u,n),Cr(u,u.return);break;case 30:break;default:Qn(o,u,n)}t=t.sibling}}function cu(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&&e.refCount++,n!=null&&dr(n))}function fu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dr(e))}function En(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nh(e,t,n,a),t=t.sibling}function Nh(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:En(e,t,n,a),o&2048&&Tr(9,t);break;case 1:En(e,t,n,a);break;case 3:En(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&dr(e)));break;case 12:if(o&2048){En(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,m=u.id,b=u.onPostCommit;typeof b=="function"&&b(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Ve(t,t.return,C)}}else En(e,t,n,a);break;case 31:En(e,t,n,a);break;case 13:En(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,m=t.alternate,t.memoizedState!==null?u._visibility&2?En(e,t,n,a):Ur(e,t):u._visibility&2?En(e,t,n,a):(u._visibility|=2,Ni(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&cu(m,t);break;case 24:En(e,t,n,a),o&2048&&fu(t.alternate,t);break;default:En(e,t,n,a)}}function Ni(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,m=t,b=n,C=a,z=m.flags;switch(m.tag){case 0:case 11:case 15:Ni(u,m,b,C,o),Tr(8,m);break;case 23:break;case 22:var k=m.stateNode;m.memoizedState!==null?k._visibility&2?Ni(u,m,b,C,o):Ur(u,m):(k._visibility|=2,Ni(u,m,b,C,o)),o&&z&2048&&cu(m.alternate,m);break;case 24:Ni(u,m,b,C,o),o&&z&2048&&fu(m.alternate,m);break;default:Ni(u,m,b,C,o)}t=t.sibling}}function Ur(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:Ur(n,a),o&2048&&cu(a.alternate,a);break;case 24:Ur(n,a),o&2048&&fu(a.alternate,a);break;default:Ur(n,a)}t=t.sibling}}var _r=8192;function Mi(e,t,n){if(e.subtreeFlags&_r)for(e=e.child;e!==null;)Mh(e,t,n),e=e.sibling}function Mh(e,t,n){switch(e.tag){case 26:Mi(e,t,n),e.flags&_r&&e.memoizedState!==null&&ly(n,xn,e.memoizedState,e.memoizedProps);break;case 5:Mi(e,t,n);break;case 3:case 4:var a=xn;xn=rs(e.stateNode.containerInfo),Mi(e,t,n),xn=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=_r,_r=16777216,Mi(e,t,n),_r=a):Mi(e,t,n));break;default:Mi(e,t,n)}}function Bh(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 Dr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Et=a,Oh(a,e)}Bh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)zh(e),e=e.sibling}function zh(e){switch(e.tag){case 0:case 11:case 15:Dr(e),e.flags&2048&&ha(9,e,e.return);break;case 3:Dr(e);break;case 12:Dr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gl(e)):Dr(e);break;default:Dr(e)}}function Gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Et=a,Oh(a,e)}Bh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ha(8,t,t.return),Gl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Gl(t));break;default:Gl(t)}e=e.sibling}}function Oh(e,t){for(;Et!==null;){var n=Et;switch(n.tag){case 0:case 11:case 15:ha(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:dr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Et=a;else e:for(n=e;Et!==null;){a=Et;var o=a.sibling,u=a.return;if(Th(a),a===n){Et=null;break e}if(o!==null){o.return=u,Et=o;break e}Et=u}}}var wv={getCacheForType:function(e){var t=Ut(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ut(mt).controller.signal}},xv=typeof WeakMap=="function"?WeakMap:Map,Le=0,Ze=null,Ne=null,Be=0,Fe=0,Jt=null,ma=!1,Bi=!1,du=!1,Xn=0,st=0,ga=0,Za=0,hu=0,Pt=0,zi=0,Rr=null,Vt=null,mu=!1,Ql=0,jh=0,Xl=1/0,Zl=null,pa=null,bt=0,va=null,Oi=null,Zn=0,gu=0,pu=null,qh=null,Nr=0,vu=null;function $t(){return(Le&2)!==0&&Be!==0?Be&-Be:j.T!==null?Eu():$c()}function kh(){if(Pt===0)if((Be&536870912)===0||Oe){var e=ai;ai<<=1,(ai&3932160)===0&&(ai=262144),Pt=e}else Pt=536870912;return e=Xt.current,e!==null&&(e.flags|=32),Pt}function Kt(e,t,n){(e===Ze&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(ji(e,0),ya(e,Be,Pt,!1)),At(e,n),((Le&2)===0||e!==Ze)&&(e===Ze&&((Le&2)===0&&(Za|=n),st===4&&ya(e,Be,Pt,!1)),Rn(e))}function Lh(e,t,n){if((Le&6)!==0)throw Error(l(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ee(e,t),o=a?Tv(e,t):bu(e,t,!0),u=a;do{if(o===0){Bi&&!a&&ya(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!Ev(n)){o=bu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var b=e;o=Rr;var C=b.current.memoizedState.isDehydrated;if(C&&(ji(b,m).flags|=256),m=bu(b,m,!1),m!==2){if(du&&!C){b.errorRecoveryDisabledLanes|=u,Za|=u,o=4;break e}u=Vt,Vt=o,u!==null&&(Vt===null?Vt=u:Vt.push.apply(Vt,u))}o=m}if(u=!1,o!==2)continue}}if(o===1){ji(e,0),ya(e,t,0,!0);break}e:{switch(a=e,u=o,u){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:ya(a,t,Pt,!ma);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Ql+300-V(),10<o)){if(ya(a,t,Pt,!ma),ii(a,0,!0)!==0)break e;Zn=t,a.timeoutHandle=pm(Hh.bind(null,a,n,Vt,Zl,mu,t,Pt,Za,zi,ma,u,"Throttled",-0,0),o);break e}Hh(a,n,Vt,Zl,mu,t,Pt,Za,zi,ma,u,null,-0,0)}}break}while(!0);Rn(e)}function Hh(e,t,n,a,o,u,m,b,C,z,k,Y,O,q){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zn},Mh(t,u,Y);var fe=(u&62914560)===u?Ql-V():(u&4194048)===u?jh-V():0;if(fe=sy(Y,fe),fe!==null){Zn=u,e.cancelPendingCommit=fe(Xh.bind(null,e,t,u,n,a,o,m,b,C,k,Y,null,O,q)),ya(e,u,m,!z);return}}Xh(e,t,u,n,a,o,m,b,C)}function Ev(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 a=0;a<n.length;a++){var o=n[a],u=o.getSnapshot;o=o.value;try{if(!Gt(u(),o))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 ya(e,t,n,a){t&=~hu,t&=~Za,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var u=31-ht(o),m=1<<u;a[u]=-1,o&=~m}n!==0&&Cn(e,n,t)}function Jl(){return(Le&6)===0?(Mr(0),!1):!0}function yu(){if(Ne!==null){if(Fe===0)var e=Ne.return;else e=Ne,kn=Ha=null,zo(e),Ci=null,mr=0,e=Ne;for(;e!==null;)vh(e.alternate,e),e=e.return;Ne=null}}function ji(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Kv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Zn=0,yu(),Ze=e,Ne=n=jn(e.current,null),Be=t,Fe=0,Jt=null,ma=!1,Bi=Ee(e,t),du=!1,zi=Pt=hu=Za=ga=st=0,Vt=Rr=null,mu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-ht(a),u=1<<o;t|=e[o],a&=~u}return Xn=t,vl(),n}function Fh(e,t){Ce=null,j.H=xr,t===Ti||t===Tl?(t=ad(),Fe=3):t===xo?(t=ad(),Fe=4):Fe=t===Jo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jt=t,Ne===null&&(st=1,Ll(e,rn(t,e.current)))}function Vh(){var e=Xt.current;return e===null?!0:(Be&4194048)===Be?un===null:(Be&62914560)===Be||(Be&536870912)!==0?e===un:!1}function Kh(){var e=j.H;return j.H=xr,e===null?xr:e}function Yh(){var e=j.A;return j.A=wv,e}function Pl(){st=4,ma||(Be&4194048)!==Be&&Xt.current!==null||(Bi=!0),(ga&134217727)===0&&(Za&134217727)===0||Ze===null||ya(Ze,Be,Pt,!1)}function bu(e,t,n){var a=Le;Le|=2;var o=Kh(),u=Yh();(Ze!==e||Be!==t)&&(Zl=null,ji(e,t)),t=!1;var m=st;e:do try{if(Fe!==0&&Ne!==null){var b=Ne,C=Jt;switch(Fe){case 8:yu(),m=6;break e;case 3:case 2:case 9:case 6:Xt.current===null&&(t=!0);var z=Fe;if(Fe=0,Jt=null,qi(e,b,C,z),n&&Bi){m=0;break e}break;default:z=Fe,Fe=0,Jt=null,qi(e,b,C,z)}}Av(),m=st;break}catch(k){Fh(e,k)}while(!0);return t&&e.shellSuspendCounter++,kn=Ha=null,Le=a,j.H=o,j.A=u,Ne===null&&(Ze=null,Be=0,vl()),m}function Av(){for(;Ne!==null;)Ih(Ne)}function Tv(e,t){var n=Le;Le|=2;var a=Kh(),o=Yh();Ze!==e||Be!==t?(Zl=null,Xl=V()+500,ji(e,t)):Bi=Ee(e,t);e:do try{if(Fe!==0&&Ne!==null){t=Ne;var u=Jt;t:switch(Fe){case 1:Fe=0,Jt=null,qi(e,t,u,1);break;case 2:case 9:if(td(u)){Fe=0,Jt=null,Gh(t);break}t=function(){Fe!==2&&Fe!==9||Ze!==e||(Fe=7),Rn(e)},u.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:td(u)?(Fe=0,Jt=null,Gh(t)):(Fe=0,Jt=null,qi(e,t,u,7));break;case 5:var m=null;switch(Ne.tag){case 26:m=Ne.memoizedState;case 5:case 27:var b=Ne;if(m?Nm(m):b.stateNode.complete){Fe=0,Jt=null;var C=b.sibling;if(C!==null)Ne=C;else{var z=b.return;z!==null?(Ne=z,$l(z)):Ne=null}break t}}Fe=0,Jt=null,qi(e,t,u,5);break;case 6:Fe=0,Jt=null,qi(e,t,u,6);break;case 8:yu(),st=6;break e;default:throw Error(l(462))}}Cv();break}catch(k){Fh(e,k)}while(!0);return kn=Ha=null,j.H=a,j.A=o,Le=n,Ne!==null?0:(Ze=null,Be=0,vl(),st)}function Cv(){for(;Ne!==null&&!M();)Ih(Ne)}function Ih(e){var t=gh(e.alternate,e,Xn);e.memoizedProps=e.pendingProps,t===null?$l(e):Ne=t}function Gh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=uh(n,t,t.pendingProps,t.type,void 0,Be);break;case 11:t=uh(n,t,t.pendingProps,t.type.render,t.ref,Be);break;case 5:zo(t);default:vh(n,t),t=Ne=Yf(t,Xn),t=gh(n,t,Xn)}e.memoizedProps=e.pendingProps,t===null?$l(e):Ne=t}function qi(e,t,n,a){kn=Ha=null,zo(t),Ci=null,mr=0;var o=t.return;try{if(mv(e,o,t,n,Be)){st=1,Ll(e,rn(n,e.current)),Ne=null;return}}catch(u){if(o!==null)throw Ne=o,u;st=1,Ll(e,rn(n,e.current)),Ne=null;return}t.flags&32768?(Oe||a===1?e=!0:Bi||(Be&536870912)!==0?e=!1:(ma=e=!0,(a===2||a===9||a===3||a===6)&&(a=Xt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Qh(t,e)):$l(t)}function $l(e){var t=e;do{if((t.flags&32768)!==0){Qh(t,ma);return}e=t.return;var n=vv(t.alternate,t,Xn);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);st===0&&(st=5)}function Qh(e,t){do{var n=yv(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);st=6,Ne=null}function Xh(e,t,n,a,o,u,m,b,C){e.cancelPendingCommit=null;do Wl();while(bt!==0);if((Le&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(u=t.lanes|t.childLanes,u|=lo,Tn(e,n,u,m,b,C),e===Ze&&(Ne=Ze=null,Be=0),Oi=t,va=e,Zn=n,gu=u,pu=o,qh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Rv(rt,function(){return Wh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null,o=Q.p,Q.p=2,m=Le,Le|=4;try{bv(e,t,n)}finally{Le=m,Q.p=o,j.T=a}}bt=1,Zh(),Jh(),Ph()}}function Zh(){if(bt===1){bt=0;var e=va,t=Oi,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null;var a=Q.p;Q.p=2;var o=Le;Le|=4;try{Dh(t,e);var u=Nu,m=Of(e.containerInfo),b=u.focusedElem,C=u.selectionRange;if(m!==b&&b&&b.ownerDocument&&zf(b.ownerDocument.documentElement,b)){if(C!==null&&to(b)){var z=C.start,k=C.end;if(k===void 0&&(k=z),"selectionStart"in b)b.selectionStart=z,b.selectionEnd=Math.min(k,b.value.length);else{var Y=b.ownerDocument||document,O=Y&&Y.defaultView||window;if(O.getSelection){var q=O.getSelection(),fe=b.textContent.length,we=Math.min(C.start,fe),Qe=C.end===void 0?we:Math.min(C.end,fe);!q.extend&&we>Qe&&(m=Qe,Qe=we,we=m);var R=Bf(b,we),_=Bf(b,Qe);if(R&&_&&(q.rangeCount!==1||q.anchorNode!==R.node||q.anchorOffset!==R.offset||q.focusNode!==_.node||q.focusOffset!==_.offset)){var B=Y.createRange();B.setStart(R.node,R.offset),q.removeAllRanges(),we>Qe?(q.addRange(B),q.extend(_.node,_.offset)):(B.setEnd(_.node,_.offset),q.addRange(B))}}}}for(Y=[],q=b;q=q.parentNode;)q.nodeType===1&&Y.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<Y.length;b++){var H=Y[b];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}fs=!!Ru,Nu=Ru=null}finally{Le=o,Q.p=a,j.T=n}}e.current=t,bt=2}}function Jh(){if(bt===2){bt=0;var e=va,t=Oi,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=j.T,j.T=null;var a=Q.p;Q.p=2;var o=Le;Le|=4;try{Ah(e,t.alternate,t)}finally{Le=o,Q.p=a,j.T=n}}bt=3}}function Ph(){if(bt===4||bt===3){bt=0,F();var e=va,t=Oi,n=Zn,a=qh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,Oi=va=null,$h(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(pa=null),js(n),t=t.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Mn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=j.T,o=Q.p,Q.p=2,j.T=null;try{for(var u=e.onRecoverableError,m=0;m<a.length;m++){var b=a[m];u(b.value,{componentStack:b.stack})}}finally{j.T=t,Q.p=o}}(Zn&3)!==0&&Wl(),Rn(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===vu?Nr++:(Nr=0,vu=e):Nr=0,Mr(0)}}function $h(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,dr(t)))}function Wl(){return Zh(),Jh(),Ph(),Wh()}function Wh(){if(bt!==5)return!1;var e=va,t=gu;gu=0;var n=js(Zn),a=j.T,o=Q.p;try{Q.p=32>n?32:n,j.T=null,n=pu,pu=null;var u=va,m=Zn;if(bt=0,Oi=va=null,Zn=0,(Le&6)!==0)throw Error(l(331));var b=Le;if(Le|=4,zh(u.current),Nh(u,u.current,m,n),Le=b,Mr(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Mn,u)}catch{}return!0}finally{Q.p=o,j.T=a,$h(e,t)}}function em(e,t,n){t=rn(n,t),t=Zo(e.stateNode,t,2),e=ca(e,t,2),e!==null&&(At(e,2),Rn(e))}function Ve(e,t,n){if(e.tag===3)em(e,e,n);else for(;t!==null;){if(t.tag===3){em(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(pa===null||!pa.has(a))){e=rn(n,e),n=th(2),a=ca(t,n,2),a!==null&&(nh(n,a,t,e),At(a,2),Rn(a));break}}t=t.return}}function Su(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new xv;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(du=!0,o.add(n),e=Uv.bind(null,e,t,n),t.then(e,e))}function Uv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(Be&n)===n&&(st===4||st===3&&(Be&62914560)===Be&&300>V()-Ql?(Le&2)===0&&ji(e,0):hu|=n,zi===Be&&(zi=0)),Rn(e)}function tm(e,t){t===0&&(t=Xe()),e=qa(e,t),e!==null&&(At(e,t),Rn(e))}function _v(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tm(e,n)}function Dv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(l(314))}a!==null&&a.delete(t),tm(e,n)}function Rv(e,t){return p(e,t)}var es=null,ki=null,wu=!1,ts=!1,xu=!1,ba=0;function Rn(e){e!==ki&&e.next===null&&(ki===null?es=ki=e:ki=ki.next=e),ts=!0,wu||(wu=!0,Mv())}function Mr(e,t){if(!xu&&ts){xu=!0;do for(var n=!1,a=es;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var u=0;else{var m=a.suspendedLanes,b=a.pingedLanes;u=(1<<31-ht(42|e)+1)-1,u&=o&~(m&~b),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,rm(a,u))}else u=Be,u=ii(a,a===Ze?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Ee(a,u)||(n=!0,rm(a,u));a=a.next}while(n);xu=!1}}function Nv(){nm()}function nm(){ts=wu=!1;var e=0;ba!==0&&Vv()&&(e=ba);for(var t=V(),n=null,a=es;a!==null;){var o=a.next,u=am(a,t);u===0?(a.next=null,n===null?es=o:n.next=o,o===null&&(ki=n)):(n=a,(e!==0||(u&3)!==0)&&(ts=!0)),a=o}bt!==0&&bt!==5||Mr(e),ba!==0&&(ba=0)}function am(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var m=31-ht(u),b=1<<m,C=o[m];C===-1?((b&n)===0||(b&a)!==0)&&(o[m]=He(b,t)):C<=t&&(e.expiredLanes|=b),u&=~b}if(t=Ze,n=Be,n=ii(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&T(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ee(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&T(a),js(n)){case 2:case 8:n=je;break;case 32:n=rt;break;case 268435456:n=en;break;default:n=rt}return a=im.bind(null,e),n=p(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&T(a),e.callbackPriority=2,e.callbackNode=null,2}function im(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wl()&&e.callbackNode!==n)return null;var a=Be;return a=ii(e,e===Ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Lh(e,a,t),am(e,V()),e.callbackNode!=null&&e.callbackNode===n?im.bind(null,e):null)}function rm(e,t){if(Wl())return null;Lh(e,t,!0)}function Mv(){Yv(function(){(Le&6)!==0?p(Te,Nv):nm()})}function Eu(){if(ba===0){var e=Ei;e===0&&(e=Ma,Ma<<=1,(Ma&261888)===0&&(Ma=256)),ba=e}return ba}function lm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ul(""+e)}function sm(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 Bv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var u=lm((o[qt]||null).action),m=a.submitter;m&&(t=(t=m[qt]||null)?lm(t.formAction):m.getAttribute("formAction"),t!==null&&(u=t,m=null));var b=new hl("action","action",null,a,o);e.push({event:b,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ba!==0){var C=m?sm(o,m):new FormData(o);Ko(n,{pending:!0,data:C,method:o.method,action:u},null,C)}}else typeof u=="function"&&(b.preventDefault(),C=m?sm(o,m):new FormData(o),Ko(n,{pending:!0,data:C,method:o.method,action:u},u,C))},currentTarget:o}]})}}for(var Au=0;Au<ro.length;Au++){var Tu=ro[Au],zv=Tu.toLowerCase(),Ov=Tu[0].toUpperCase()+Tu.slice(1);wn(zv,"on"+Ov)}wn(kf,"onAnimationEnd"),wn(Lf,"onAnimationIteration"),wn(Hf,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn(Pp,"onTransitionRun"),wn($p,"onTransitionStart"),wn(Wp,"onTransitionCancel"),wn(Ff,"onTransitionEnd"),ui("onMouseEnter",["mouseout","mouseover"]),ui("onMouseLeave",["mouseout","mouseover"]),ui("onPointerEnter",["pointerout","pointerover"]),ui("onPointerLeave",["pointerout","pointerover"]),Ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ba("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Br="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(" "),jv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Br));function om(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var m=a.length-1;0<=m;m--){var b=a[m],C=b.instance,z=b.currentTarget;if(b=b.listener,C!==u&&o.isPropagationStopped())break e;u=b,o.currentTarget=z;try{u(o)}catch(k){pl(k)}o.currentTarget=null,u=C}else for(m=0;m<a.length;m++){if(b=a[m],C=b.instance,z=b.currentTarget,b=b.listener,C!==u&&o.isPropagationStopped())break e;u=b,o.currentTarget=z;try{u(o)}catch(k){pl(k)}o.currentTarget=null,u=C}}}}function Me(e,t){var n=t[qs];n===void 0&&(n=t[qs]=new Set);var a=e+"__bubble";n.has(a)||(um(t,e,2,!1),n.add(a))}function Cu(e,t,n){var a=0;t&&(a|=4),um(n,e,a,t)}var ns="_reactListening"+Math.random().toString(36).slice(2);function Uu(e){if(!e[ns]){e[ns]=!0,tf.forEach(function(n){n!=="selectionchange"&&(jv.has(n)||Cu(n,!1,e),Cu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ns]||(t[ns]=!0,Cu("selectionchange",!1,t))}}function um(e,t,n,a){switch(km(t)){case 2:var o=cy;break;case 8:o=fy;break;default:o=Vu}n=o.bind(null,t,n,e),o=void 0,!Gs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function _u(e,t,n,a,o){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var b=a.stateNode.containerInfo;if(b===o)break;if(m===4)for(m=a.return;m!==null;){var C=m.tag;if((C===3||C===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;b!==null;){if(m=li(b),m===null)return;if(C=m.tag,C===5||C===6||C===26||C===27){a=u=m;continue e}b=b.parentNode}}a=a.return}mf(function(){var z=u,k=Ys(n),Y=[];e:{var O=Vf.get(e);if(O!==void 0){var q=hl,fe=e;switch(e){case"keypress":if(fl(n)===0)break e;case"keydown":case"keyup":q=Dp;break;case"focusin":fe="focus",q=Js;break;case"focusout":fe="blur",q=Js;break;case"beforeblur":case"afterblur":q=Js;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":q=vf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=vp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=Mp;break;case kf:case Lf:case Hf:q=Sp;break;case Ff:q=zp;break;case"scroll":case"scrollend":q=gp;break;case"wheel":q=jp;break;case"copy":case"cut":case"paste":q=xp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=bf;break;case"toggle":case"beforetoggle":q=kp}var we=(t&4)!==0,Qe=!we&&(e==="scroll"||e==="scrollend"),R=we?O!==null?O+"Capture":null:O;we=[];for(var _=z,B;_!==null;){var H=_;if(B=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||B===null||R===null||(H=tr(_,R),H!=null&&we.push(zr(_,H,B))),Qe)break;_=_.return}0<we.length&&(O=new q(O,fe,null,n,k),Y.push({event:O,listeners:we}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",O&&n!==Ks&&(fe=n.relatedTarget||n.fromElement)&&(li(fe)||fe[ri]))break e;if((q||O)&&(O=k.window===k?k:(O=k.ownerDocument)?O.defaultView||O.parentWindow:window,q?(fe=n.relatedTarget||n.toElement,q=z,fe=fe?li(fe):null,fe!==null&&(Qe=f(fe),we=fe.tag,fe!==Qe||we!==5&&we!==27&&we!==6)&&(fe=null)):(q=null,fe=z),q!==fe)){if(we=vf,H="onMouseLeave",R="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(we=bf,H="onPointerLeave",R="onPointerEnter",_="pointer"),Qe=q==null?O:er(q),B=fe==null?O:er(fe),O=new we(H,_+"leave",q,n,k),O.target=Qe,O.relatedTarget=B,H=null,li(k)===z&&(we=new we(R,_+"enter",fe,n,k),we.target=B,we.relatedTarget=Qe,H=we),Qe=H,q&&fe)t:{for(we=qv,R=q,_=fe,B=0,H=R;H;H=we(H))B++;H=0;for(var ye=_;ye;ye=we(ye))H++;for(;0<B-H;)R=we(R),B--;for(;0<H-B;)_=we(_),H--;for(;B--;){if(R===_||_!==null&&R===_.alternate){we=R;break t}R=we(R),_=we(_)}we=null}else we=null;q!==null&&cm(Y,O,q,we,!1),fe!==null&&Qe!==null&&cm(Y,Qe,fe,we,!0)}}e:{if(O=z?er(z):window,q=O.nodeName&&O.nodeName.toLowerCase(),q==="select"||q==="input"&&O.type==="file")var qe=Uf;else if(Tf(O))if(_f)qe=Xp;else{qe=Gp;var pe=Ip}else q=O.nodeName,!q||q.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?z&&Vs(z.elementType)&&(qe=Uf):qe=Qp;if(qe&&(qe=qe(e,z))){Cf(Y,qe,n,k);break e}pe&&pe(e,O,z),e==="focusout"&&z&&O.type==="number"&&z.memoizedProps.value!=null&&Fs(O,"number",O.value)}switch(pe=z?er(z):window,e){case"focusin":(Tf(pe)||pe.contentEditable==="true")&&(gi=pe,no=z,ur=null);break;case"focusout":ur=no=gi=null;break;case"mousedown":ao=!0;break;case"contextmenu":case"mouseup":case"dragend":ao=!1,jf(Y,n,k);break;case"selectionchange":if(Jp)break;case"keydown":case"keyup":jf(Y,n,k)}var Ue;if($s)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else mi?Ef(e,n)&&(ze="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ze="onCompositionStart");ze&&(Sf&&n.locale!=="ko"&&(mi||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&mi&&(Ue=gf()):(aa=k,Qs="value"in aa?aa.value:aa.textContent,mi=!0)),pe=as(z,ze),0<pe.length&&(ze=new yf(ze,e,null,n,k),Y.push({event:ze,listeners:pe}),Ue?ze.data=Ue:(Ue=Af(n),Ue!==null&&(ze.data=Ue)))),(Ue=Hp?Fp(e,n):Vp(e,n))&&(ze=as(z,"onBeforeInput"),0<ze.length&&(pe=new yf("onBeforeInput","beforeinput",null,n,k),Y.push({event:pe,listeners:ze}),pe.data=Ue)),Bv(Y,e,z,n,k)}om(Y,t)})}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function as(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=tr(e,n),o!=null&&a.unshift(zr(e,o,u)),o=tr(e,t),o!=null&&a.push(zr(e,o,u))),e.tag===3)return a;e=e.return}return[]}function qv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cm(e,t,n,a,o){for(var u=t._reactName,m=[];n!==null&&n!==a;){var b=n,C=b.alternate,z=b.stateNode;if(b=b.tag,C!==null&&C===a)break;b!==5&&b!==26&&b!==27||z===null||(C=z,o?(z=tr(n,u),z!=null&&m.unshift(zr(n,z,C))):o||(z=tr(n,u),z!=null&&m.push(zr(n,z,C)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var kv=/\r\n?/g,Lv=/\u0000|\uFFFD/g;function fm(e){return(typeof e=="string"?e:""+e).replace(kv,`
|
|
10
|
-
`).replace(Lv,"")}function dm(e,t){return t=fm(t),fm(e)===t}function Ge(e,t,n,a,o,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||fi(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&fi(e,""+a);break;case"className":sl(e,"class",a);break;case"tabIndex":sl(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":sl(e,n,a);break;case"style":df(e,a,u);break;case"data":if(t!=="object"){sl(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ul(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 u=="function"&&(n==="formAction"?(t!=="input"&&Ge(e,t,"name",o.name,o,null),Ge(e,t,"formEncType",o.formEncType,o,null),Ge(e,t,"formMethod",o.formMethod,o,null),Ge(e,t,"formTarget",o.formTarget,o,null)):(Ge(e,t,"encType",o.encType,o,null),Ge(e,t,"method",o.method,o,null),Ge(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=ul(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=zn);break;case"onScroll":a!=null&&Me("scroll",e);break;case"onScrollEnd":a!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=ul(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Me("beforetoggle",e),Me("toggle",e),ll(e,"popover",a);break;case"xlinkActuate":Bn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Bn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Bn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Bn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Bn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Bn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Bn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ll(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=hp.get(n)||n,ll(e,n,a))}}function Du(e,t,n,a,o,u){switch(n){case"style":df(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(l(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=n}}break;case"children":typeof a=="string"?fi(e,a):(typeof a=="number"||typeof a=="bigint")&&fi(e,""+a);break;case"onScroll":a!=null&&Me("scroll",e);break;case"onScrollEnd":a!=null&&Me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=zn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nf.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[qt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):ll(e,n,a)}}}function Dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var a=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var m=n[u];if(m!=null)switch(u){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ge(e,t,u,m,n,null)}}o&&Ge(e,t,"srcSet",n.srcSet,n,null),a&&Ge(e,t,"src",n.src,n,null);return;case"input":Me("invalid",e);var b=u=m=o=null,C=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var k=n[a];if(k!=null)switch(a){case"name":o=k;break;case"type":m=k;break;case"checked":C=k;break;case"defaultChecked":z=k;break;case"value":u=k;break;case"defaultValue":b=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(l(137,t));break;default:Ge(e,t,a,k,n,null)}}of(e,u,b,C,z,m,o,!1);return;case"select":Me("invalid",e),a=m=u=null;for(o in n)if(n.hasOwnProperty(o)&&(b=n[o],b!=null))switch(o){case"value":u=b;break;case"defaultValue":m=b;break;case"multiple":a=b;default:Ge(e,t,o,b,n,null)}t=u,n=m,e.multiple=!!a,t!=null?ci(e,!!a,t,!1):n!=null&&ci(e,!!a,n,!0);return;case"textarea":Me("invalid",e),u=o=a=null;for(m in n)if(n.hasOwnProperty(m)&&(b=n[m],b!=null))switch(m){case"value":a=b;break;case"defaultValue":o=b;break;case"children":u=b;break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(l(91));break;default:Ge(e,t,m,b,n,null)}cf(e,a,o,u);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ge(e,t,C,a,n,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(a=0;a<Br.length;a++)Me(Br[a],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:Ge(e,t,z,a,n,null)}return;default:if(Vs(t)){for(k in n)n.hasOwnProperty(k)&&(a=n[k],a!==void 0&&Du(e,t,k,a,n,void 0));return}}for(b in n)n.hasOwnProperty(b)&&(a=n[b],a!=null&&Ge(e,t,b,a,n,null))}function Hv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,m=null,b=null,C=null,z=null,k=null;for(q in n){var Y=n[q];if(n.hasOwnProperty(q)&&Y!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":C=Y;default:a.hasOwnProperty(q)||Ge(e,t,q,null,a,Y)}}for(var O in a){var q=a[O];if(Y=n[O],a.hasOwnProperty(O)&&(q!=null||Y!=null))switch(O){case"type":u=q;break;case"name":o=q;break;case"checked":z=q;break;case"defaultChecked":k=q;break;case"value":m=q;break;case"defaultValue":b=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(l(137,t));break;default:q!==Y&&Ge(e,t,O,q,a,Y)}}Hs(e,m,b,C,z,k,u,o);return;case"select":q=m=b=O=null;for(u in n)if(C=n[u],n.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":q=C;default:a.hasOwnProperty(u)||Ge(e,t,u,null,a,C)}for(o in a)if(u=a[o],C=n[o],a.hasOwnProperty(o)&&(u!=null||C!=null))switch(o){case"value":O=u;break;case"defaultValue":b=u;break;case"multiple":m=u;default:u!==C&&Ge(e,t,o,u,a,C)}t=b,n=m,a=q,O!=null?ci(e,!!n,O,!1):!!a!=!!n&&(t!=null?ci(e,!!n,t,!0):ci(e,!!n,n?[]:"",!1));return;case"textarea":q=O=null;for(b in n)if(o=n[b],n.hasOwnProperty(b)&&o!=null&&!a.hasOwnProperty(b))switch(b){case"value":break;case"children":break;default:Ge(e,t,b,null,a,o)}for(m in a)if(o=a[m],u=n[m],a.hasOwnProperty(m)&&(o!=null||u!=null))switch(m){case"value":O=o;break;case"defaultValue":q=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==u&&Ge(e,t,m,o,a,u)}uf(e,O,q);return;case"option":for(var fe in n)if(O=n[fe],n.hasOwnProperty(fe)&&O!=null&&!a.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ge(e,t,fe,null,a,O)}for(C in a)if(O=a[C],q=n[C],a.hasOwnProperty(C)&&O!==q&&(O!=null||q!=null))switch(C){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ge(e,t,C,O,a,q)}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 we in n)O=n[we],n.hasOwnProperty(we)&&O!=null&&!a.hasOwnProperty(we)&&Ge(e,t,we,null,a,O);for(z in a)if(O=a[z],q=n[z],a.hasOwnProperty(z)&&O!==q&&(O!=null||q!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(l(137,t));break;default:Ge(e,t,z,O,a,q)}return;default:if(Vs(t)){for(var Qe in n)O=n[Qe],n.hasOwnProperty(Qe)&&O!==void 0&&!a.hasOwnProperty(Qe)&&Du(e,t,Qe,void 0,a,O);for(k in a)O=a[k],q=n[k],!a.hasOwnProperty(k)||O===q||O===void 0&&q===void 0||Du(e,t,k,O,a,q);return}}for(var R in n)O=n[R],n.hasOwnProperty(R)&&O!=null&&!a.hasOwnProperty(R)&&Ge(e,t,R,null,a,O);for(Y in a)O=a[Y],q=n[Y],!a.hasOwnProperty(Y)||O===q||O==null&&q==null||Ge(e,t,Y,O,a,q)}function hm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],u=o.transferSize,m=o.initiatorType,b=o.duration;if(u&&b&&hm(m)){for(m=0,b=o.responseEnd,a+=1;a<n.length;a++){var C=n[a],z=C.startTime;if(z>b)break;var k=C.transferSize,Y=C.initiatorType;k&&hm(Y)&&(C=C.responseEnd,m+=k*(C<b?1:(b-z)/(C-z)))}if(--a,t+=8*(u+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ru=null,Nu=null;function is(e){return e.nodeType===9?e:e.ownerDocument}function mm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Mu(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}var Bu=null;function Vv(){var e=window.event;return e&&e.type==="popstate"?e===Bu?!1:(Bu=e,!0):(Bu=null,!1)}var pm=typeof setTimeout=="function"?setTimeout:void 0,Kv=typeof clearTimeout=="function"?clearTimeout:void 0,vm=typeof Promise=="function"?Promise:void 0,Yv=typeof queueMicrotask=="function"?queueMicrotask:typeof vm<"u"?function(e){return vm.resolve(null).then(e).catch(Iv)}:pm;function Iv(e){setTimeout(function(){throw e})}function Sa(e){return e==="head"}function ym(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),Vi(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Or(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Or(n);for(var u=n.firstChild;u;){var m=u.nextSibling,b=u.nodeName;u[Wi]||b==="SCRIPT"||b==="STYLE"||b==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}else n==="body"&&Or(e.ownerDocument.body);n=o}while(n);Vi(t)}function bm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function zu(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":zu(n),ks(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Gv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Wi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function Qv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function Ou(e){return e.data==="$?"||e.data==="$~"}function ju(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Xv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function cn(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==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var qu=null;function wm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function xm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Em(e,t,n){switch(t=is(n),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Or(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ks(e)}var fn=new Map,Am=new Set;function rs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Jn=Q.d;Q.d={f:Zv,r:Jv,D:Pv,C:$v,L:Wv,m:ey,X:ny,S:ty,M:ay};function Zv(){var e=Jn.f(),t=Jl();return e||t}function Jv(e){var t=si(e);t!==null&&t.tag===5&&t.type==="form"?Fd(t):Jn.r(e)}var Li=typeof document>"u"?null:document;function Tm(e,t,n){var a=Li;if(a&&typeof t=="string"&&t){var o=nn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),Am.has(o)||(Am.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),Dt(t,"link",e),xt(t),a.head.appendChild(t)))}}function Pv(e){Jn.D(e),Tm("dns-prefetch",e,null)}function $v(e,t){Jn.C(e,t),Tm("preconnect",e,t)}function Wv(e,t,n){Jn.L(e,t,n);var a=Li;if(a&&e&&t){var o='link[rel="preload"][as="'+nn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+nn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+nn(n.imageSizes)+'"]')):o+='[href="'+nn(e)+'"]';var u=o;switch(t){case"style":u=Hi(e);break;case"script":u=Fi(e)}fn.has(u)||(e=A({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),fn.set(u,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(jr(u))||t==="script"&&a.querySelector(qr(u))||(t=a.createElement("link"),Dt(t,"link",e),xt(t),a.head.appendChild(t)))}}function ey(e,t){Jn.m(e,t);var n=Li;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+nn(a)+'"][href="'+nn(e)+'"]',u=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Fi(e)}if(!fn.has(u)&&(e=A({rel:"modulepreload",href:e},t),fn.set(u,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(qr(u)))return}a=n.createElement("link"),Dt(a,"link",e),xt(a),n.head.appendChild(a)}}}function ty(e,t,n){Jn.S(e,t,n);var a=Li;if(a&&e){var o=oi(a).hoistableStyles,u=Hi(e);t=t||"default";var m=o.get(u);if(!m){var b={loading:0,preload:null};if(m=a.querySelector(jr(u)))b.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},n),(n=fn.get(u))&&ku(e,n);var C=m=a.createElement("link");xt(C),Dt(C,"link",e),C._p=new Promise(function(z,k){C.onload=z,C.onerror=k}),C.addEventListener("load",function(){b.loading|=1}),C.addEventListener("error",function(){b.loading|=2}),b.loading|=4,ls(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:b},o.set(u,m)}}}function ny(e,t){Jn.X(e,t);var n=Li;if(n&&e){var a=oi(n).hoistableScripts,o=Fi(e),u=a.get(o);u||(u=n.querySelector(qr(o)),u||(e=A({src:e,async:!0},t),(t=fn.get(o))&&Lu(e,t),u=n.createElement("script"),xt(u),Dt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function ay(e,t){Jn.M(e,t);var n=Li;if(n&&e){var a=oi(n).hoistableScripts,o=Fi(e),u=a.get(o);u||(u=n.querySelector(qr(o)),u||(e=A({src:e,async:!0,type:"module"},t),(t=fn.get(o))&&Lu(e,t),u=n.createElement("script"),xt(u),Dt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function Cm(e,t,n,a){var o=(o=Je.current)?rs(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Hi(n.href),n=oi(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Hi(n.href);var u=oi(o).hoistableStyles,m=u.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,m),(u=o.querySelector(jr(e)))&&!u._p&&(m.instance=u,m.state.loading=5),fn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},fn.set(e,n),u||iy(o,e,n,m.state))),t&&a===null)throw Error(l(528,""));return m}if(t&&a!==null)throw Error(l(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fi(n),n=oi(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Hi(e){return'href="'+nn(e)+'"'}function jr(e){return'link[rel="stylesheet"]['+e+"]"}function Um(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function iy(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Dt(t,"link",n),xt(t),e.head.appendChild(t))}function Fi(e){return'[src="'+nn(e)+'"]'}function qr(e){return"script[async]"+e}function _m(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+nn(n.href)+'"]');if(a)return t.instance=a,xt(a),a;var o=A({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),xt(a),Dt(a,"style",o),ls(a,n.precedence,e),t.instance=a;case"stylesheet":o=Hi(n.href);var u=e.querySelector(jr(o));if(u)return t.state.loading|=4,t.instance=u,xt(u),u;a=Um(n),(o=fn.get(o))&&ku(a,o),u=(e.ownerDocument||e).createElement("link"),xt(u);var m=u;return m._p=new Promise(function(b,C){m.onload=b,m.onerror=C}),Dt(u,"link",a),t.state.loading|=4,ls(u,n.precedence,e),t.instance=u;case"script":return u=Fi(n.src),(o=e.querySelector(qr(u)))?(t.instance=o,xt(o),o):(a=n,(o=fn.get(u))&&(a=A({},n),Lu(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),xt(o),Dt(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ls(a,n.precedence,e));return t.instance}function ls(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,u=o,m=0;m<a.length;m++){var b=a[m];if(b.dataset.precedence===t)u=b;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ku(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Lu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ss=null;function Dm(e,t,n){if(ss===null){var a=new Map,o=ss=new Map;o.set(n,a)}else o=ss,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[Wi]||u[Tt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(t)||"";m=e+m;var b=a.get(m);b?b.push(u):a.set(m,[u])}}return a}function Rm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ry(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function ly(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=Hi(a.href),u=t.querySelector(jr(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=os.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,xt(u);return}u=t.ownerDocument||t,a=Um(a),(o=fn.get(o))&&ku(a,o),u=u.createElement("link"),xt(u);var m=u;m._p=new Promise(function(b,C){m.onload=b,m.onerror=C}),Dt(u,"link",a),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=os.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Hu=0;function sy(e,t){return e.stylesheets&&e.count===0&&cs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&cs(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Hu===0&&(Hu=62500*Fv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cs(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Hu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function os(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var us=null;function cs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,us=new Map,t.forEach(oy,e),us=null,os.call(e))}function oy(e,t){if(!(t.state.loading&4)){var n=us.get(e);if(n)var a=n.get(null);else{n=new Map,us.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var m=o[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}o=t.instance,m=o.getAttribute("data-precedence"),u=n.get(m)||a,u===a&&n.set(null,o),n.set(m,o),this.count++,a=os.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var kr={$$typeof:J,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function uy(e,t,n,a,o,u,m,b,C){this.tag=1,this.containerInfo=e,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=Nt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nt(0),this.hiddenUpdates=Nt(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function Mm(e,t,n,a,o,u,m,b,C,z,k,Y){return e=new uy(e,t,n,m,C,z,k,Y,b),t=1,u===!0&&(t|=24),u=Qt(3,null,null,t),e.current=u,u.stateNode=e,t=bo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},Eo(u),e}function Bm(e){return e?(e=yi,e):yi}function zm(e,t,n,a,o,u){o=Bm(o),a.context===null?a.context=o:a.pendingContext=o,a=ua(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=ca(e,a,t),n!==null&&(Kt(n,e,t),pr(n,e,t))}function Om(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fu(e,t){Om(e,t),(e=e.alternate)&&Om(e,t)}function jm(e){if(e.tag===13||e.tag===31){var t=qa(e,67108864);t!==null&&Kt(t,e,67108864),Fu(e,67108864)}}function qm(e){if(e.tag===13||e.tag===31){var t=$t();t=Os(t);var n=qa(e,t);n!==null&&Kt(n,e,t),Fu(e,t)}}var fs=!0;function cy(e,t,n,a){var o=j.T;j.T=null;var u=Q.p;try{Q.p=2,Vu(e,t,n,a)}finally{Q.p=u,j.T=o}}function fy(e,t,n,a){var o=j.T;j.T=null;var u=Q.p;try{Q.p=8,Vu(e,t,n,a)}finally{Q.p=u,j.T=o}}function Vu(e,t,n,a){if(fs){var o=Ku(a);if(o===null)_u(e,t,a,ds,n),Lm(e,a);else if(hy(o,e,t,n,a))a.stopPropagation();else if(Lm(e,a),t&4&&-1<dy.indexOf(e)){for(;o!==null;){var u=si(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=Rt(u.pendingLanes);if(m!==0){var b=u;for(b.pendingLanes|=2,b.entangledLanes|=2;m;){var C=1<<31-ht(m);b.entanglements[1]|=C,m&=~C}Rn(u),(Le&6)===0&&(Xl=V()+500,Mr(0))}}break;case 31:case 13:b=qa(u,2),b!==null&&Kt(b,u,2),Jl(),Fu(u,2)}if(u=Ku(a),u===null&&_u(e,t,a,ds,n),u===o)break;o=u}o!==null&&a.stopPropagation()}else _u(e,t,a,null,n)}}function Ku(e){return e=Ys(e),Yu(e)}var ds=null;function Yu(e){if(ds=null,e=li(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=h(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 ds=e,null}function km(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 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(Re()){case Te:return 2;case je:return 8;case rt:case Pe:return 32;case en:return 268435456;default:return 32}default:return 32}}var Iu=!1,wa=null,xa=null,Ea=null,Lr=new Map,Hr=new Map,Aa=[],dy="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 Lm(e,t){switch(e){case"focusin":case"focusout":wa=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":Ea=null;break;case"pointerover":case"pointerout":Lr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hr.delete(t.pointerId)}}function Fr(e,t,n,a,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[o]},t!==null&&(t=si(t),t!==null&&jm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function hy(e,t,n,a,o){switch(t){case"focusin":return wa=Fr(wa,e,t,n,a,o),!0;case"dragenter":return xa=Fr(xa,e,t,n,a,o),!0;case"mouseover":return Ea=Fr(Ea,e,t,n,a,o),!0;case"pointerover":var u=o.pointerId;return Lr.set(u,Fr(Lr.get(u)||null,e,t,n,a,o)),!0;case"gotpointercapture":return u=o.pointerId,Hr.set(u,Fr(Hr.get(u)||null,e,t,n,a,o)),!0}return!1}function Hm(e){var t=li(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Wc(e.priority,function(){qm(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,Wc(e.priority,function(){qm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ku(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ks=a,n.target.dispatchEvent(a),Ks=null}else return t=si(n),t!==null&&jm(t),e.blockedOn=n,!1;t.shift()}return!0}function Fm(e,t,n){hs(e)&&n.delete(t)}function my(){Iu=!1,wa!==null&&hs(wa)&&(wa=null),xa!==null&&hs(xa)&&(xa=null),Ea!==null&&hs(Ea)&&(Ea=null),Lr.forEach(Fm),Hr.forEach(Fm)}function ms(e,t){e.blockedOn===t&&(e.blockedOn=null,Iu||(Iu=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,my)))}var gs=null;function Vm(e){gs!==e&&(gs=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){gs===e&&(gs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Yu(a||n)===null)continue;break}var u=si(n);u!==null&&(e.splice(t,3),t-=3,Ko(u,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function Vi(e){function t(C){return ms(C,e)}wa!==null&&ms(wa,e),xa!==null&&ms(xa,e),Ea!==null&&ms(Ea,e),Lr.forEach(t),Hr.forEach(t);for(var n=0;n<Aa.length;n++){var a=Aa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Aa.length&&(n=Aa[0],n.blockedOn===null);)Hm(n),n.blockedOn===null&&Aa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],u=n[a+1],m=o[qt]||null;if(typeof u=="function")m||Vm(n);else if(m){var b=null;if(u&&u.hasAttribute("formAction")){if(o=u,m=u[qt]||null)b=m.formAction;else if(Yu(o)!==null)continue}else b=m.action;typeof b=="function"?n[a+1]=b:(n.splice(a,3),a-=3),Vm(n)}}}function Km(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Gu(e){this._internalRoot=e}ps.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var n=t.current,a=$t();zm(n,a,e,t,null,null)},ps.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zm(e.current,2,null,e,null,null),Jl(),t[ri]=null}};function ps(e){this._internalRoot=e}ps.prototype.unstable_scheduleHydration=function(e){if(e){var t=$c();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Aa.length&&t!==0&&t<Aa[n].priority;n++);Aa.splice(n,0,e),n===0&&Hm(e)}};var Ym=r.version;if(Ym!=="19.2.4")throw Error(l(527,Ym,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=y(t),e=e!==null?w(e):null,e=e===null?null:e.stateNode,e};var gy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{Mn=vs.inject(gy),dt=vs}catch{}}return Vr.createRoot=function(e,t){if(!c(e))throw Error(l(299));var n=!1,a="",o=Pd,u=$d,m=Wd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Mm(e,1,!1,null,null,n,a,null,o,u,m,Km),e[ri]=t.current,Uu(e),new Gu(t)},Vr.hydrateRoot=function(e,t,n){if(!c(e))throw Error(l(299));var a=!1,o="",u=Pd,m=$d,b=Wd,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Mm(e,1,!0,t,n??null,a,o,C,u,m,b,Km),t.context=Bm(null),n=t.current,a=$t(),a=Os(a),o=ua(a),o.callback=null,ca(n,o,a),n=a,t.current.lanes=n,At(t,n),Rn(t),e[ri]=t.current,Uu(e),new ps(t)},Vr.version="19.2.4",Vr}var Jm;function $y(){if(Jm)return Qu.exports;Jm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),Qu.exports=Py(),Qu.exports}var Wy=$y();const wg=(...i)=>i.filter((r,s,l)=>!!r&&r.trim()!==""&&l.indexOf(r)===s).join(" ").trim();const e1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const t1=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,s,l)=>l?l.toUpperCase():s.toLowerCase());const Pm=i=>{const r=t1(i);return r.charAt(0).toUpperCase()+r.slice(1)};var n1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const a1=i=>{for(const r in i)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1};const i1=ve.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:c="",children:f,iconNode:d,...h},v)=>ve.createElement("svg",{ref:v,...n1,width:r,height:r,stroke:i,strokeWidth:l?Number(s)*24/Number(r):s,className:wg("lucide",c),...!f&&!a1(h)&&{"aria-hidden":"true"},...h},[...d.map(([y,w])=>ve.createElement(y,w)),...Array.isArray(f)?f:[f]]));const ot=(i,r)=>{const s=ve.forwardRef(({className:l,...c},f)=>ve.createElement(i1,{ref:f,iconNode:r,className:wg(`lucide-${e1(Pm(i))}`,`lucide-${i}`,l),...c}));return s.displayName=Pm(i),s};const r1=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],l1=ot("archive",r1);const s1=[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]],o1=ot("blocks",s1);const u1=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],c1=ot("chevrons-up-down",u1);const f1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],d1=ot("circle-check",f1);const h1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]],m1=ot("circle-user",h1);const g1=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],p1=ot("clock",g1);const v1=[["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["circle",{cx:"12",cy:"12",r:"8",key:"46899m"}]],y1=ot("cog",v1);const b1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],S1=ot("database",b1);const w1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],x1=ot("file-text",w1);const E1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],A1=ot("history",E1);const T1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],C1=ot("image",T1);const U1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],_1=ot("info",U1);const D1=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],R1=ot("key",D1);const N1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],$n=ot("loader-circle",N1);const M1=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],B1=ot("menu",M1);const z1=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],O1=ot("octagon-x",z1);const j1=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xg=ot("settings",j1);const q1=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],k1=ot("tag",q1);const L1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],H1=ot("triangle-alert",L1);const F1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],V1=ot("users",F1);const K1=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],Y1=ot("webhook",K1);const I1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Eg=ot("x",I1);var G1=(i,r,s,l,c,f,d,h)=>{let v=document.documentElement,y=["light","dark"];function w(S){(Array.isArray(i)?i:[i]).forEach(N=>{let D=N==="class",I=D&&f?c.map(K=>f[K]||K):c;D?(v.classList.remove(...I),v.classList.add(f&&f[S]?f[S]:S)):v.setAttribute(N,S)}),A(S)}function A(S){h&&y.includes(S)&&(v.style.colorScheme=S)}function U(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)w(l);else try{let S=localStorage.getItem(r)||s,N=d&&S==="system"?U():S;w(N)}catch{}},Q1=ve.createContext(void 0),X1={setTheme:i=>{},themes:[]},Z1=()=>{var i;return(i=ve.useContext(Q1))!=null?i:X1};ve.memo(({forcedTheme:i,storageKey:r,attribute:s,enableSystem:l,enableColorScheme:c,defaultTheme:f,value:d,themes:h,nonce:v,scriptProps:y})=>{let w=JSON.stringify([s,r,f,i,h,d,l,c]).slice(1,-1);return ve.createElement("script",{...y,suppressHydrationWarning:!0,nonce:typeof window>"u"?v:"",dangerouslySetInnerHTML:{__html:`(${G1.toString()})(${w})`}})});var J1=i=>{switch(i){case"success":return W1;case"info":return tb;case"warning":return eb;case"error":return nb;default:return null}},P1=Array(12).fill(0),$1=({visible:i,className:r})=>ae.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":i},ae.createElement("div",{className:"sonner-spinner"},P1.map((s,l)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),W1=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),eb=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),tb=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),nb=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),ab=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ib=()=>{let[i,r]=ae.useState(document.hidden);return ae.useEffect(()=>{let s=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),i},Nc=1,rb=class{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{let r=this.subscribers.indexOf(i);this.subscribers.splice(r,1)}),this.publish=i=>{this.subscribers.forEach(r=>r(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var r;let{message:s,...l}=i,c=typeof i?.id=="number"||((r=i.id)==null?void 0:r.length)>0?i.id:Nc++,f=this.toasts.find(h=>h.id===c),d=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),f?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...i,id:c,title:s}),{...h,...i,id:c,dismissible:d,title:s}):h):this.addToast({title:s,...l,dismissible:d,id:c}),c},this.dismiss=i=>(this.dismissedToasts.add(i),i||this.toasts.forEach(r=>{this.subscribers.forEach(s=>s({id:r.id,dismiss:!0}))}),this.subscribers.forEach(r=>r({id:i,dismiss:!0})),i),this.message=(i,r)=>this.create({...r,message:i}),this.error=(i,r)=>this.create({...r,message:i,type:"error"}),this.success=(i,r)=>this.create({...r,type:"success",message:i}),this.info=(i,r)=>this.create({...r,type:"info",message:i}),this.warning=(i,r)=>this.create({...r,type:"warning",message:i}),this.loading=(i,r)=>this.create({...r,type:"loading",message:i}),this.promise=(i,r)=>{if(!r)return;let s;r.loading!==void 0&&(s=this.create({...r,promise:i,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let l=i instanceof Promise?i:i(),c=s!==void 0,f,d=l.then(async v=>{if(f=["resolve",v],ae.isValidElement(v))c=!1,this.create({id:s,type:"default",message:v});else if(sb(v)&&!v.ok){c=!1;let y=typeof r.error=="function"?await r.error(`HTTP error! status: ${v.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${v.status}`):r.description;this.create({id:s,type:"error",message:y,description:w})}else if(r.success!==void 0){c=!1;let y=typeof r.success=="function"?await r.success(v):r.success,w=typeof r.description=="function"?await r.description(v):r.description;this.create({id:s,type:"success",message:y,description:w})}}).catch(async v=>{if(f=["reject",v],r.error!==void 0){c=!1;let y=typeof r.error=="function"?await r.error(v):r.error,w=typeof r.description=="function"?await r.description(v):r.description;this.create({id:s,type:"error",message:y,description:w})}}).finally(()=>{var v;c&&(this.dismiss(s),s=void 0),(v=r.finally)==null||v.call(r)}),h=()=>new Promise((v,y)=>d.then(()=>f[0]==="reject"?y(f[1]):v(f[1])).catch(y));return typeof s!="string"&&typeof s!="number"?{unwrap:h}:Object.assign(s,{unwrap:h})},this.custom=(i,r)=>{let s=r?.id||Nc++;return this.create({jsx:i(s),id:s,...r}),s},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Yt=new rb,lb=(i,r)=>{let s=r?.id||Nc++;return Yt.addToast({title:i,...r,id:s}),s},sb=i=>i&&typeof i=="object"&&"ok"in i&&typeof i.ok=="boolean"&&"status"in i&&typeof i.status=="number",ob=lb,ub=()=>Yt.toasts,cb=()=>Yt.getActiveToasts(),ys=Object.assign(ob,{success:Yt.success,info:Yt.info,warning:Yt.warning,error:Yt.error,custom:Yt.custom,message:Yt.message,promise:Yt.promise,dismiss:Yt.dismiss,loading:Yt.loading},{getHistory:ub,getToasts:cb});function fb(i,{insertAt:r}={}){if(typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r==="top"&&s.firstChild?s.insertBefore(l,s.firstChild):s.appendChild(l),l.styleSheet?l.styleSheet.cssText=i:l.appendChild(document.createTextNode(i))}fb(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
11
|
-
`);function bs(i){return i.label!==void 0}var db=3,hb="32px",mb="16px",$m=4e3,gb=356,pb=14,vb=20,yb=200;function An(...i){return i.filter(Boolean).join(" ")}function bb(i){let[r,s]=i.split("-"),l=[];return r&&l.push(r),s&&l.push(s),l}var Sb=i=>{var r,s,l,c,f,d,h,v,y,w,A;let{invert:U,toast:S,unstyled:N,interacting:D,setHeights:I,visibleToasts:K,heights:P,index:J,toasts:$,expanded:se,removeToast:X,defaultRichColors:W,closeButton:L,style:Z,cancelButtonStyle:ue,actionButtonStyle:ne,className:ee="",descriptionClassName:le="",duration:oe,position:Ae,gap:j,loadingIcon:Q,expandByDefault:G,classNames:ie,icons:be,closeButtonAriaLabel:Se="Close toast",pauseWhenPageIsHidden:re}=i,[te,ce]=ae.useState(null),[_e,Je]=ae.useState(null),[ge,$e]=ae.useState(!1),[Ke,ut]=ae.useState(!1),[xe,Ye]=ae.useState(!1),[pn,vn]=ae.useState(!1),[ea,yn]=ae.useState(!1),[$i,E]=ae.useState(0),[g,p]=ae.useState(0),T=ae.useRef(S.duration||oe||$m),M=ae.useRef(null),F=ae.useRef(null),V=J===0,Re=J+1<=K,Te=S.type,je=S.dismissible!==!1,rt=S.className||"",Pe=S.descriptionClassName||"",en=ae.useMemo(()=>P.findIndex(Ee=>Ee.toastId===S.id)||0,[P,S.id]),ni=ae.useMemo(()=>{var Ee;return(Ee=S.closeButton)!=null?Ee:L},[S.closeButton,L]),Na=ae.useMemo(()=>S.duration||oe||$m,[S.duration,oe]),Mn=ae.useRef(0),dt=ae.useRef(0),bn=ae.useRef(0),ht=ae.useRef(null),[Bs,zs]=Ae.split("-"),rl=ae.useMemo(()=>P.reduce((Ee,He,Xe)=>Xe>=en?Ee:Ee+He.height,0),[P,en]),Ma=ib(),ai=S.invert||U,ta=Te==="loading";dt.current=ae.useMemo(()=>en*j+rl,[en,rl]),ae.useEffect(()=>{T.current=Na},[Na]),ae.useEffect(()=>{$e(!0)},[]),ae.useEffect(()=>{let Ee=F.current;if(Ee){let He=Ee.getBoundingClientRect().height;return p(He),I(Xe=>[{toastId:S.id,height:He,position:S.position},...Xe]),()=>I(Xe=>Xe.filter(Nt=>Nt.toastId!==S.id))}},[I,S.id]),ae.useLayoutEffect(()=>{if(!ge)return;let Ee=F.current,He=Ee.style.height;Ee.style.height="auto";let Xe=Ee.getBoundingClientRect().height;Ee.style.height=He,p(Xe),I(Nt=>Nt.find(At=>At.toastId===S.id)?Nt.map(At=>At.toastId===S.id?{...At,height:Xe}:At):[{toastId:S.id,height:Xe,position:S.position},...Nt])},[ge,S.title,S.description,I,S.id]);let Rt=ae.useCallback(()=>{ut(!0),E(dt.current),I(Ee=>Ee.filter(He=>He.toastId!==S.id)),setTimeout(()=>{X(S)},yb)},[S,X,I,dt]);ae.useEffect(()=>{if(S.promise&&Te==="loading"||S.duration===1/0||S.type==="loading")return;let Ee;return se||D||re&&Ma?(()=>{if(bn.current<Mn.current){let He=new Date().getTime()-Mn.current;T.current=T.current-He}bn.current=new Date().getTime()})():T.current!==1/0&&(Mn.current=new Date().getTime(),Ee=setTimeout(()=>{var He;(He=S.onAutoClose)==null||He.call(S,S),Rt()},T.current)),()=>clearTimeout(Ee)},[se,D,S,Te,re,Ma,Rt]),ae.useEffect(()=>{S.delete&&Rt()},[Rt,S.delete]);function ii(){var Ee,He,Xe;return be!=null&&be.loading?ae.createElement("div",{className:An(ie?.loader,(Ee=S?.classNames)==null?void 0:Ee.loader,"sonner-loader"),"data-visible":Te==="loading"},be.loading):Q?ae.createElement("div",{className:An(ie?.loader,(He=S?.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":Te==="loading"},Q):ae.createElement($1,{className:An(ie?.loader,(Xe=S?.classNames)==null?void 0:Xe.loader),visible:Te==="loading"})}return ae.createElement("li",{tabIndex:0,ref:F,className:An(ee,rt,ie?.toast,(r=S?.classNames)==null?void 0:r.toast,ie?.default,ie?.[Te],(s=S?.classNames)==null?void 0:s[Te]),"data-sonner-toast":"","data-rich-colors":(l=S.richColors)!=null?l:W,"data-styled":!(S.jsx||S.unstyled||N),"data-mounted":ge,"data-promise":!!S.promise,"data-swiped":ea,"data-removed":Ke,"data-visible":Re,"data-y-position":Bs,"data-x-position":zs,"data-index":J,"data-front":V,"data-swiping":xe,"data-dismissible":je,"data-type":Te,"data-invert":ai,"data-swipe-out":pn,"data-swipe-direction":_e,"data-expanded":!!(se||G&&ge),style:{"--index":J,"--toasts-before":J,"--z-index":$.length-J,"--offset":`${Ke?$i:dt.current}px`,"--initial-height":G?"auto":`${g}px`,...Z,...S.style},onDragEnd:()=>{Ye(!1),ce(null),ht.current=null},onPointerDown:Ee=>{ta||!je||(M.current=new Date,E(dt.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(Ye(!0),ht.current={x:Ee.clientX,y:Ee.clientY}))},onPointerUp:()=>{var Ee,He,Xe,Nt;if(pn||!je)return;ht.current=null;let At=Number(((Ee=F.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tn=Number(((He=F.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Cn=new Date().getTime()-((Xe=M.current)==null?void 0:Xe.getTime()),jt=te==="x"?At:Tn,Sn=Math.abs(jt)/Cn;if(Math.abs(jt)>=vb||Sn>.11){E(dt.current),(Nt=S.onDismiss)==null||Nt.call(S,S),Je(te==="x"?At>0?"right":"left":Tn>0?"down":"up"),Rt(),vn(!0),yn(!1);return}Ye(!1),ce(null)},onPointerMove:Ee=>{var He,Xe,Nt,At;if(!ht.current||!je||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;let Tn=Ee.clientY-ht.current.y,Cn=Ee.clientX-ht.current.x,jt=(Xe=i.swipeDirections)!=null?Xe:bb(Ae);!te&&(Math.abs(Cn)>1||Math.abs(Tn)>1)&&ce(Math.abs(Cn)>Math.abs(Tn)?"x":"y");let Sn={x:0,y:0};te==="y"?(jt.includes("top")||jt.includes("bottom"))&&(jt.includes("top")&&Tn<0||jt.includes("bottom")&&Tn>0)&&(Sn.y=Tn):te==="x"&&(jt.includes("left")||jt.includes("right"))&&(jt.includes("left")&&Cn<0||jt.includes("right")&&Cn>0)&&(Sn.x=Cn),(Math.abs(Sn.x)>0||Math.abs(Sn.y)>0)&&yn(!0),(Nt=F.current)==null||Nt.style.setProperty("--swipe-amount-x",`${Sn.x}px`),(At=F.current)==null||At.style.setProperty("--swipe-amount-y",`${Sn.y}px`)}},ni&&!S.jsx?ae.createElement("button",{"aria-label":Se,"data-disabled":ta,"data-close-button":!0,onClick:ta||!je?()=>{}:()=>{var Ee;Rt(),(Ee=S.onDismiss)==null||Ee.call(S,S)},className:An(ie?.closeButton,(c=S?.classNames)==null?void 0:c.closeButton)},(f=be?.close)!=null?f:ab):null,S.jsx||ve.isValidElement(S.title)?S.jsx?S.jsx:typeof S.title=="function"?S.title():S.title:ae.createElement(ae.Fragment,null,Te||S.icon||S.promise?ae.createElement("div",{"data-icon":"",className:An(ie?.icon,(d=S?.classNames)==null?void 0:d.icon)},S.promise||S.type==="loading"&&!S.icon?S.icon||ii():null,S.type!=="loading"?S.icon||be?.[Te]||J1(Te):null):null,ae.createElement("div",{"data-content":"",className:An(ie?.content,(h=S?.classNames)==null?void 0:h.content)},ae.createElement("div",{"data-title":"",className:An(ie?.title,(v=S?.classNames)==null?void 0:v.title)},typeof S.title=="function"?S.title():S.title),S.description?ae.createElement("div",{"data-description":"",className:An(le,Pe,ie?.description,(y=S?.classNames)==null?void 0:y.description)},typeof S.description=="function"?S.description():S.description):null),ve.isValidElement(S.cancel)?S.cancel:S.cancel&&bs(S.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:S.cancelButtonStyle||ue,onClick:Ee=>{var He,Xe;bs(S.cancel)&&je&&((Xe=(He=S.cancel).onClick)==null||Xe.call(He,Ee),Rt())},className:An(ie?.cancelButton,(w=S?.classNames)==null?void 0:w.cancelButton)},S.cancel.label):null,ve.isValidElement(S.action)?S.action:S.action&&bs(S.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:S.actionButtonStyle||ne,onClick:Ee=>{var He,Xe;bs(S.action)&&((Xe=(He=S.action).onClick)==null||Xe.call(He,Ee),!Ee.defaultPrevented&&Rt())},className:An(ie?.actionButton,(A=S?.classNames)==null?void 0:A.actionButton)},S.action.label):null))};function Wm(){if(typeof window>"u"||typeof document>"u")return"ltr";let i=document.documentElement.getAttribute("dir");return i==="auto"||!i?window.getComputedStyle(document.documentElement).direction:i}function wb(i,r){let s={};return[i,r].forEach((l,c)=>{let f=c===1,d=f?"--mobile-offset":"--offset",h=f?mb:hb;function v(y){["top","right","bottom","left"].forEach(w=>{s[`${d}-${w}`]=typeof y=="number"?`${y}px`:y})}typeof l=="number"||typeof l=="string"?v(l):typeof l=="object"?["top","right","bottom","left"].forEach(y=>{l[y]===void 0?s[`${d}-${y}`]=h:s[`${d}-${y}`]=typeof l[y]=="number"?`${l[y]}px`:l[y]}):v(h)}),s}var xb=ve.forwardRef(function(i,r){let{invert:s,position:l="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:d,className:h,offset:v,mobileOffset:y,theme:w="light",richColors:A,duration:U,style:S,visibleToasts:N=db,toastOptions:D,dir:I=Wm(),gap:K=pb,loadingIcon:P,icons:J,containerAriaLabel:$="Notifications",pauseWhenPageIsHidden:se}=i,[X,W]=ae.useState([]),L=ae.useMemo(()=>Array.from(new Set([l].concat(X.filter(re=>re.position).map(re=>re.position)))),[X,l]),[Z,ue]=ae.useState([]),[ne,ee]=ae.useState(!1),[le,oe]=ae.useState(!1),[Ae,j]=ae.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Q=ae.useRef(null),G=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),ie=ae.useRef(null),be=ae.useRef(!1),Se=ae.useCallback(re=>{W(te=>{var ce;return(ce=te.find(_e=>_e.id===re.id))!=null&&ce.delete||Yt.dismiss(re.id),te.filter(({id:_e})=>_e!==re.id)})},[]);return ae.useEffect(()=>Yt.subscribe(re=>{if(re.dismiss){W(te=>te.map(ce=>ce.id===re.id?{...ce,delete:!0}:ce));return}setTimeout(()=>{_y.flushSync(()=>{W(te=>{let ce=te.findIndex(_e=>_e.id===re.id);return ce!==-1?[...te.slice(0,ce),{...te[ce],...re},...te.slice(ce+1)]:[re,...te]})})})}),[]),ae.useEffect(()=>{if(w!=="system"){j(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?j("dark"):j("light")),typeof window>"u")return;let re=window.matchMedia("(prefers-color-scheme: dark)");try{re.addEventListener("change",({matches:te})=>{j(te?"dark":"light")})}catch{re.addListener(({matches:ce})=>{try{j(ce?"dark":"light")}catch(_e){console.error(_e)}})}},[w]),ae.useEffect(()=>{X.length<=1&&ee(!1)},[X]),ae.useEffect(()=>{let re=te=>{var ce,_e;c.every(Je=>te[Je]||te.code===Je)&&(ee(!0),(ce=Q.current)==null||ce.focus()),te.code==="Escape"&&(document.activeElement===Q.current||(_e=Q.current)!=null&&_e.contains(document.activeElement))&&ee(!1)};return document.addEventListener("keydown",re),()=>document.removeEventListener("keydown",re)},[c]),ae.useEffect(()=>{if(Q.current)return()=>{ie.current&&(ie.current.focus({preventScroll:!0}),ie.current=null,be.current=!1)}},[Q.current]),ae.createElement("section",{ref:r,"aria-label":`${$} ${G}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((re,te)=>{var ce;let[_e,Je]=re.split("-");return X.length?ae.createElement("ol",{key:re,dir:I==="auto"?Wm():I,tabIndex:-1,ref:Q,className:h,"data-sonner-toaster":!0,"data-theme":Ae,"data-y-position":_e,"data-lifted":ne&&X.length>1&&!f,"data-x-position":Je,style:{"--front-toast-height":`${((ce=Z[0])==null?void 0:ce.height)||0}px`,"--width":`${gb}px`,"--gap":`${K}px`,...S,...wb(v,y)},onBlur:ge=>{be.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(be.current=!1,ie.current&&(ie.current.focus({preventScroll:!0}),ie.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||be.current||(be.current=!0,ie.current=ge.relatedTarget)},onMouseEnter:()=>ee(!0),onMouseMove:()=>ee(!0),onMouseLeave:()=>{le||ee(!1)},onDragEnd:()=>ee(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},X.filter(ge=>!ge.position&&te===0||ge.position===re).map((ge,$e)=>{var Ke,ut;return ae.createElement(Sb,{key:ge.id,icons:J,index:$e,toast:ge,defaultRichColors:A,duration:(Ke=D?.duration)!=null?Ke:U,className:D?.className,descriptionClassName:D?.descriptionClassName,invert:s,visibleToasts:N,closeButton:(ut=D?.closeButton)!=null?ut:d,interacting:le,position:re,style:D?.style,unstyled:D?.unstyled,classNames:D?.classNames,cancelButtonStyle:D?.cancelButtonStyle,actionButtonStyle:D?.actionButtonStyle,removeToast:Se,toasts:X.filter(xe=>xe.position==ge.position),heights:Z.filter(xe=>xe.position==ge.position),setHeights:ue,expandByDefault:f,gap:K,loadingIcon:P,expanded:ne,pauseWhenPageIsHidden:se,swipeDirections:i.swipeDirections})})):null}))});const Eb=({...i})=>{const{theme:r="system"}=Z1();return x.jsx(xb,{theme:r,className:"toaster group",icons:{success:x.jsx(d1,{className:"size-4"}),info:x.jsx(_1,{className:"size-4"}),warning:x.jsx(H1,{className:"size-4"}),error:x.jsx(O1,{className:"size-4"}),loading:x.jsx($n,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...i})},Ab="modulepreload",Tb=function(i){return"/"+i},e0={},yt=function(r,s,l){let c=Promise.resolve();if(s&&s.length>0){let v=function(y){return Promise.all(y.map(w=>Promise.resolve(w).then(A=>({status:"fulfilled",value:A}),A=>({status:"rejected",reason:A}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");c=v(s.map(y=>{if(y=Tb(y),y in e0)return;e0[y]=!0;const w=y.endsWith(".css"),A=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${A}`))return;const U=document.createElement("link");if(U.rel=w?"stylesheet":Ab,w||(U.as="script"),U.crossOrigin="",U.href=y,h&&U.setAttribute("nonce",h),document.head.appendChild(U),w)return new Promise((S,N)=>{U.addEventListener("load",S),U.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return c.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return r().catch(f)})};function Cb(i={}){const{immediate:r=!1,onNeedRefresh:s,onOfflineReady:l,onRegistered:c,onRegisteredSW:f,onRegisterError:d}=i;let h,v;const y=async(A=!0)=>{await v};async function w(){if("serviceWorker"in navigator){if(h=await yt(async()=>{const{Workbox:A}=await import("./workbox-window.prod.es5-BIl4cyR9.js");return{Workbox:A}},[]).then(({Workbox:A})=>new A("/sw.js",{scope:"/",type:"classic"})).catch(A=>{d?.(A)}),!h)return;h.addEventListener("activated",A=>{(A.isUpdate||A.isExternal)&&window.location.reload()}),h.addEventListener("installed",A=>{A.isUpdate||l?.()}),h.register({immediate:r}).then(A=>{f?f("/sw.js",A):c?.(A)}).catch(A=>{d?.(A)})}}return v=w(),y}function Ub(i={}){const{immediate:r=!0,onNeedRefresh:s,onOfflineReady:l,onRegistered:c,onRegisteredSW:f,onRegisterError:d}=i,[h,v]=ve.useState(!1),[y,w]=ve.useState(!1),[A]=ve.useState(()=>Cb({immediate:r,onOfflineReady(){w(!0),l?.()},onNeedRefresh(){v(!0),s?.()},onRegistered:c,onRegisteredSW:f,onRegisterError:d}));return{needRefresh:[h,v],offlineReady:[y,w],updateServiceWorker:A}}function _b(){const{needRefresh:[i],updateServiceWorker:r}=Ub();return i?x.jsxs("div",{className:"fixed bottom-4 right-4 z-50 rounded-lg bg-primary p-4 text-primary-foreground shadow-lg",children:[x.jsx("p",{className:"text-sm font-medium",children:"New version available"}),x.jsx("button",{onClick:()=>r(!0),className:"mt-2 rounded bg-white px-3 py-1 text-sm text-primary",children:"Update now"})]}):null}var Db=(function(){function i(s){var l=s||{},c=l.ValidationData,f=l.Username,d=l.Password,h=l.AuthParameters,v=l.ClientMetadata;this.validationData=c||{},this.authParameters=h||{},this.clientMetadata=v||{},this.username=f,this.password=d}var r=i.prototype;return r.getUsername=function(){return this.username},r.getPassword=function(){return this.password},r.getValidationData=function(){return this.validationData},r.getAuthParameters=function(){return this.authParameters},r.getClientMetadata=function(){return this.clientMetadata},i})(),Ju={},Kr={},t0;function Rb(){if(t0)return Kr;t0=1,Kr.byteLength=h,Kr.toByteArray=y,Kr.fromByteArray=U;for(var i=[],r=[],s=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,f=l.length;c<f;++c)i[c]=l[c],r[l.charCodeAt(c)]=c;r[45]=62,r[95]=63;function d(S){var N=S.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var D=S.indexOf("=");D===-1&&(D=N);var I=D===N?0:4-D%4;return[D,I]}function h(S){var N=d(S),D=N[0],I=N[1];return(D+I)*3/4-I}function v(S,N,D){return(N+D)*3/4-D}function y(S){var N,D=d(S),I=D[0],K=D[1],P=new s(v(S,I,K)),J=0,$=K>0?I-4:I,se;for(se=0;se<$;se+=4)N=r[S.charCodeAt(se)]<<18|r[S.charCodeAt(se+1)]<<12|r[S.charCodeAt(se+2)]<<6|r[S.charCodeAt(se+3)],P[J++]=N>>16&255,P[J++]=N>>8&255,P[J++]=N&255;return K===2&&(N=r[S.charCodeAt(se)]<<2|r[S.charCodeAt(se+1)]>>4,P[J++]=N&255),K===1&&(N=r[S.charCodeAt(se)]<<10|r[S.charCodeAt(se+1)]<<4|r[S.charCodeAt(se+2)]>>2,P[J++]=N>>8&255,P[J++]=N&255),P}function w(S){return i[S>>18&63]+i[S>>12&63]+i[S>>6&63]+i[S&63]}function A(S,N,D){for(var I,K=[],P=N;P<D;P+=3)I=(S[P]<<16&16711680)+(S[P+1]<<8&65280)+(S[P+2]&255),K.push(w(I));return K.join("")}function U(S){for(var N,D=S.length,I=D%3,K=[],P=16383,J=0,$=D-I;J<$;J+=P)K.push(A(S,J,J+P>$?$:J+P));return I===1?(N=S[D-1],K.push(i[N>>2]+i[N<<4&63]+"==")):I===2&&(N=(S[D-2]<<8)+S[D-1],K.push(i[N>>10]+i[N>>4&63]+i[N<<2&63]+"=")),K.join("")}return Kr}var Ss={},n0;function Nb(){return n0||(n0=1,Ss.read=function(i,r,s,l,c){var f,d,h=c*8-l-1,v=(1<<h)-1,y=v>>1,w=-7,A=s?c-1:0,U=s?-1:1,S=i[r+A];for(A+=U,f=S&(1<<-w)-1,S>>=-w,w+=h;w>0;f=f*256+i[r+A],A+=U,w-=8);for(d=f&(1<<-w)-1,f>>=-w,w+=l;w>0;d=d*256+i[r+A],A+=U,w-=8);if(f===0)f=1-y;else{if(f===v)return d?NaN:(S?-1:1)*(1/0);d=d+Math.pow(2,l),f=f-y}return(S?-1:1)*d*Math.pow(2,f-l)},Ss.write=function(i,r,s,l,c,f){var d,h,v,y=f*8-c-1,w=(1<<y)-1,A=w>>1,U=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=l?0:f-1,N=l?1:-1,D=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(h=isNaN(r)?1:0,d=w):(d=Math.floor(Math.log(r)/Math.LN2),r*(v=Math.pow(2,-d))<1&&(d--,v*=2),d+A>=1?r+=U/v:r+=U*Math.pow(2,1-A),r*v>=2&&(d++,v/=2),d+A>=w?(h=0,d=w):d+A>=1?(h=(r*v-1)*Math.pow(2,c),d=d+A):(h=r*Math.pow(2,A-1)*Math.pow(2,c),d=0));c>=8;i[s+S]=h&255,S+=N,h/=256,c-=8);for(d=d<<c|h,y+=c;y>0;i[s+S]=d&255,S+=N,d/=256,y-=8);i[s+S-N]|=D*128}),Ss}var Pu,a0;function Mb(){if(a0)return Pu;a0=1;var i={}.toString;return Pu=Array.isArray||function(r){return i.call(r)=="[object Array]"},Pu}var i0;function Bb(){return i0||(i0=1,(function(i){var r=Rb(),s=Nb(),l=Mb();i.Buffer=h,i.SlowBuffer=K,i.INSPECT_MAX_BYTES=50,h.TYPED_ARRAY_SUPPORT=Im.TYPED_ARRAY_SUPPORT!==void 0?Im.TYPED_ARRAY_SUPPORT:c(),i.kMaxLength=f();function c(){try{var E=new Uint8Array(1);return E.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},E.foo()===42&&typeof E.subarray=="function"&&E.subarray(1,1).byteLength===0}catch{return!1}}function f(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(E,g){if(f()<g)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(E=new Uint8Array(g),E.__proto__=h.prototype):(E===null&&(E=new h(g)),E.length=g),E}function h(E,g,p){if(!h.TYPED_ARRAY_SUPPORT&&!(this instanceof h))return new h(E,g,p);if(typeof E=="number"){if(typeof g=="string")throw new Error("If encoding is specified then the first argument must be a string");return A(this,E)}return v(this,E,g,p)}h.poolSize=8192,h._augment=function(E){return E.__proto__=h.prototype,E};function v(E,g,p,T){if(typeof g=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&g instanceof ArrayBuffer?N(E,g,p,T):typeof g=="string"?U(E,g,p):D(E,g)}h.from=function(E,g,p){return v(null,E,g,p)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0}));function y(E){if(typeof E!="number")throw new TypeError('"size" argument must be a number');if(E<0)throw new RangeError('"size" argument must not be negative')}function w(E,g,p,T){return y(g),g<=0?d(E,g):p!==void 0?typeof T=="string"?d(E,g).fill(p,T):d(E,g).fill(p):d(E,g)}h.alloc=function(E,g,p){return w(null,E,g,p)};function A(E,g){if(y(g),E=d(E,g<0?0:I(g)|0),!h.TYPED_ARRAY_SUPPORT)for(var p=0;p<g;++p)E[p]=0;return E}h.allocUnsafe=function(E){return A(null,E)},h.allocUnsafeSlow=function(E){return A(null,E)};function U(E,g,p){if((typeof p!="string"||p==="")&&(p="utf8"),!h.isEncoding(p))throw new TypeError('"encoding" must be a valid string encoding');var T=P(g,p)|0;E=d(E,T);var M=E.write(g,p);return M!==T&&(E=E.slice(0,M)),E}function S(E,g){var p=g.length<0?0:I(g.length)|0;E=d(E,p);for(var T=0;T<p;T+=1)E[T]=g[T]&255;return E}function N(E,g,p,T){if(g.byteLength,p<0||g.byteLength<p)throw new RangeError("'offset' is out of bounds");if(g.byteLength<p+(T||0))throw new RangeError("'length' is out of bounds");return p===void 0&&T===void 0?g=new Uint8Array(g):T===void 0?g=new Uint8Array(g,p):g=new Uint8Array(g,p,T),h.TYPED_ARRAY_SUPPORT?(E=g,E.__proto__=h.prototype):E=S(E,g),E}function D(E,g){if(h.isBuffer(g)){var p=I(g.length)|0;return E=d(E,p),E.length===0||g.copy(E,0,0,p),E}if(g){if(typeof ArrayBuffer<"u"&&g.buffer instanceof ArrayBuffer||"length"in g)return typeof g.length!="number"||$i(g.length)?d(E,0):S(E,g);if(g.type==="Buffer"&&l(g.data))return S(E,g.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function I(E){if(E>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return E|0}function K(E){return+E!=E&&(E=0),h.alloc(+E)}h.isBuffer=function(g){return!!(g!=null&&g._isBuffer)},h.compare=function(g,p){if(!h.isBuffer(g)||!h.isBuffer(p))throw new TypeError("Arguments must be Buffers");if(g===p)return 0;for(var T=g.length,M=p.length,F=0,V=Math.min(T,M);F<V;++F)if(g[F]!==p[F]){T=g[F],M=p[F];break}return T<M?-1:M<T?1:0},h.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(g,p){if(!l(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return h.alloc(0);var T;if(p===void 0)for(p=0,T=0;T<g.length;++T)p+=g[T].length;var M=h.allocUnsafe(p),F=0;for(T=0;T<g.length;++T){var V=g[T];if(!h.isBuffer(V))throw new TypeError('"list" argument must be an Array of Buffers');V.copy(M,F),F+=V.length}return M};function P(E,g){if(h.isBuffer(E))return E.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(E)||E instanceof ArrayBuffer))return E.byteLength;typeof E!="string"&&(E=""+E);var p=E.length;if(p===0)return 0;for(var T=!1;;)switch(g){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":case void 0:return Ye(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return ea(E).length;default:if(T)return Ye(E).length;g=(""+g).toLowerCase(),T=!0}}h.byteLength=P;function J(E,g,p){var T=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,g>>>=0,p<=g))return"";for(E||(E="utf8");;)switch(E){case"hex":return ie(this,g,p);case"utf8":case"utf-8":return oe(this,g,p);case"ascii":return Q(this,g,p);case"latin1":case"binary":return G(this,g,p);case"base64":return le(this,g,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return be(this,g,p);default:if(T)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),T=!0}}h.prototype._isBuffer=!0;function $(E,g,p){var T=E[g];E[g]=E[p],E[p]=T}h.prototype.swap16=function(){var g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var p=0;p<g;p+=2)$(this,p,p+1);return this},h.prototype.swap32=function(){var g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var p=0;p<g;p+=4)$(this,p,p+3),$(this,p+1,p+2);return this},h.prototype.swap64=function(){var g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var p=0;p<g;p+=8)$(this,p,p+7),$(this,p+1,p+6),$(this,p+2,p+5),$(this,p+3,p+4);return this},h.prototype.toString=function(){var g=this.length|0;return g===0?"":arguments.length===0?oe(this,0,g):J.apply(this,arguments)},h.prototype.equals=function(g){if(!h.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:h.compare(this,g)===0},h.prototype.inspect=function(){var g="",p=i.INSPECT_MAX_BYTES;return this.length>0&&(g=this.toString("hex",0,p).match(/.{2}/g).join(" "),this.length>p&&(g+=" ... ")),"<Buffer "+g+">"},h.prototype.compare=function(g,p,T,M,F){if(!h.isBuffer(g))throw new TypeError("Argument must be a Buffer");if(p===void 0&&(p=0),T===void 0&&(T=g?g.length:0),M===void 0&&(M=0),F===void 0&&(F=this.length),p<0||T>g.length||M<0||F>this.length)throw new RangeError("out of range index");if(M>=F&&p>=T)return 0;if(M>=F)return-1;if(p>=T)return 1;if(p>>>=0,T>>>=0,M>>>=0,F>>>=0,this===g)return 0;for(var V=F-M,Re=T-p,Te=Math.min(V,Re),je=this.slice(M,F),rt=g.slice(p,T),Pe=0;Pe<Te;++Pe)if(je[Pe]!==rt[Pe]){V=je[Pe],Re=rt[Pe];break}return V<Re?-1:Re<V?1:0};function se(E,g,p,T,M){if(E.length===0)return-1;if(typeof p=="string"?(T=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,isNaN(p)&&(p=M?0:E.length-1),p<0&&(p=E.length+p),p>=E.length){if(M)return-1;p=E.length-1}else if(p<0)if(M)p=0;else return-1;if(typeof g=="string"&&(g=h.from(g,T)),h.isBuffer(g))return g.length===0?-1:X(E,g,p,T,M);if(typeof g=="number")return g=g&255,h.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?M?Uint8Array.prototype.indexOf.call(E,g,p):Uint8Array.prototype.lastIndexOf.call(E,g,p):X(E,[g],p,T,M);throw new TypeError("val must be string, number or Buffer")}function X(E,g,p,T,M){var F=1,V=E.length,Re=g.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(E.length<2||g.length<2)return-1;F=2,V/=2,Re/=2,p/=2}function Te(ni,Na){return F===1?ni[Na]:ni.readUInt16BE(Na*F)}var je;if(M){var rt=-1;for(je=p;je<V;je++)if(Te(E,je)===Te(g,rt===-1?0:je-rt)){if(rt===-1&&(rt=je),je-rt+1===Re)return rt*F}else rt!==-1&&(je-=je-rt),rt=-1}else for(p+Re>V&&(p=V-Re),je=p;je>=0;je--){for(var Pe=!0,en=0;en<Re;en++)if(Te(E,je+en)!==Te(g,en)){Pe=!1;break}if(Pe)return je}return-1}h.prototype.includes=function(g,p,T){return this.indexOf(g,p,T)!==-1},h.prototype.indexOf=function(g,p,T){return se(this,g,p,T,!0)},h.prototype.lastIndexOf=function(g,p,T){return se(this,g,p,T,!1)};function W(E,g,p,T){p=Number(p)||0;var M=E.length-p;T?(T=Number(T),T>M&&(T=M)):T=M;var F=g.length;if(F%2!==0)throw new TypeError("Invalid hex string");T>F/2&&(T=F/2);for(var V=0;V<T;++V){var Re=parseInt(g.substr(V*2,2),16);if(isNaN(Re))return V;E[p+V]=Re}return V}function L(E,g,p,T){return yn(Ye(g,E.length-p),E,p,T)}function Z(E,g,p,T){return yn(pn(g),E,p,T)}function ue(E,g,p,T){return Z(E,g,p,T)}function ne(E,g,p,T){return yn(ea(g),E,p,T)}function ee(E,g,p,T){return yn(vn(g,E.length-p),E,p,T)}h.prototype.write=function(g,p,T,M){if(p===void 0)M="utf8",T=this.length,p=0;else if(T===void 0&&typeof p=="string")M=p,T=this.length,p=0;else if(isFinite(p))p=p|0,isFinite(T)?(T=T|0,M===void 0&&(M="utf8")):(M=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var F=this.length-p;if((T===void 0||T>F)&&(T=F),g.length>0&&(T<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");M||(M="utf8");for(var V=!1;;)switch(M){case"hex":return W(this,g,p,T);case"utf8":case"utf-8":return L(this,g,p,T);case"ascii":return Z(this,g,p,T);case"latin1":case"binary":return ue(this,g,p,T);case"base64":return ne(this,g,p,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,g,p,T);default:if(V)throw new TypeError("Unknown encoding: "+M);M=(""+M).toLowerCase(),V=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function le(E,g,p){return g===0&&p===E.length?r.fromByteArray(E):r.fromByteArray(E.slice(g,p))}function oe(E,g,p){p=Math.min(E.length,p);for(var T=[],M=g;M<p;){var F=E[M],V=null,Re=F>239?4:F>223?3:F>191?2:1;if(M+Re<=p){var Te,je,rt,Pe;switch(Re){case 1:F<128&&(V=F);break;case 2:Te=E[M+1],(Te&192)===128&&(Pe=(F&31)<<6|Te&63,Pe>127&&(V=Pe));break;case 3:Te=E[M+1],je=E[M+2],(Te&192)===128&&(je&192)===128&&(Pe=(F&15)<<12|(Te&63)<<6|je&63,Pe>2047&&(Pe<55296||Pe>57343)&&(V=Pe));break;case 4:Te=E[M+1],je=E[M+2],rt=E[M+3],(Te&192)===128&&(je&192)===128&&(rt&192)===128&&(Pe=(F&15)<<18|(Te&63)<<12|(je&63)<<6|rt&63,Pe>65535&&Pe<1114112&&(V=Pe))}}V===null?(V=65533,Re=1):V>65535&&(V-=65536,T.push(V>>>10&1023|55296),V=56320|V&1023),T.push(V),M+=Re}return j(T)}var Ae=4096;function j(E){var g=E.length;if(g<=Ae)return String.fromCharCode.apply(String,E);for(var p="",T=0;T<g;)p+=String.fromCharCode.apply(String,E.slice(T,T+=Ae));return p}function Q(E,g,p){var T="";p=Math.min(E.length,p);for(var M=g;M<p;++M)T+=String.fromCharCode(E[M]&127);return T}function G(E,g,p){var T="";p=Math.min(E.length,p);for(var M=g;M<p;++M)T+=String.fromCharCode(E[M]);return T}function ie(E,g,p){var T=E.length;(!g||g<0)&&(g=0),(!p||p<0||p>T)&&(p=T);for(var M="",F=g;F<p;++F)M+=xe(E[F]);return M}function be(E,g,p){for(var T=E.slice(g,p),M="",F=0;F<T.length;F+=2)M+=String.fromCharCode(T[F]+T[F+1]*256);return M}h.prototype.slice=function(g,p){var T=this.length;g=~~g,p=p===void 0?T:~~p,g<0?(g+=T,g<0&&(g=0)):g>T&&(g=T),p<0?(p+=T,p<0&&(p=0)):p>T&&(p=T),p<g&&(p=g);var M;if(h.TYPED_ARRAY_SUPPORT)M=this.subarray(g,p),M.__proto__=h.prototype;else{var F=p-g;M=new h(F,void 0);for(var V=0;V<F;++V)M[V]=this[V+g]}return M};function Se(E,g,p){if(E%1!==0||E<0)throw new RangeError("offset is not uint");if(E+g>p)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function(g,p,T){g=g|0,p=p|0,T||Se(g,p,this.length);for(var M=this[g],F=1,V=0;++V<p&&(F*=256);)M+=this[g+V]*F;return M},h.prototype.readUIntBE=function(g,p,T){g=g|0,p=p|0,T||Se(g,p,this.length);for(var M=this[g+--p],F=1;p>0&&(F*=256);)M+=this[g+--p]*F;return M},h.prototype.readUInt8=function(g,p){return p||Se(g,1,this.length),this[g]},h.prototype.readUInt16LE=function(g,p){return p||Se(g,2,this.length),this[g]|this[g+1]<<8},h.prototype.readUInt16BE=function(g,p){return p||Se(g,2,this.length),this[g]<<8|this[g+1]},h.prototype.readUInt32LE=function(g,p){return p||Se(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},h.prototype.readUInt32BE=function(g,p){return p||Se(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},h.prototype.readIntLE=function(g,p,T){g=g|0,p=p|0,T||Se(g,p,this.length);for(var M=this[g],F=1,V=0;++V<p&&(F*=256);)M+=this[g+V]*F;return F*=128,M>=F&&(M-=Math.pow(2,8*p)),M},h.prototype.readIntBE=function(g,p,T){g=g|0,p=p|0,T||Se(g,p,this.length);for(var M=p,F=1,V=this[g+--M];M>0&&(F*=256);)V+=this[g+--M]*F;return F*=128,V>=F&&(V-=Math.pow(2,8*p)),V},h.prototype.readInt8=function(g,p){return p||Se(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},h.prototype.readInt16LE=function(g,p){p||Se(g,2,this.length);var T=this[g]|this[g+1]<<8;return T&32768?T|4294901760:T},h.prototype.readInt16BE=function(g,p){p||Se(g,2,this.length);var T=this[g+1]|this[g]<<8;return T&32768?T|4294901760:T},h.prototype.readInt32LE=function(g,p){return p||Se(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},h.prototype.readInt32BE=function(g,p){return p||Se(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},h.prototype.readFloatLE=function(g,p){return p||Se(g,4,this.length),s.read(this,g,!0,23,4)},h.prototype.readFloatBE=function(g,p){return p||Se(g,4,this.length),s.read(this,g,!1,23,4)},h.prototype.readDoubleLE=function(g,p){return p||Se(g,8,this.length),s.read(this,g,!0,52,8)},h.prototype.readDoubleBE=function(g,p){return p||Se(g,8,this.length),s.read(this,g,!1,52,8)};function re(E,g,p,T,M,F){if(!h.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>M||g<F)throw new RangeError('"value" argument is out of bounds');if(p+T>E.length)throw new RangeError("Index out of range")}h.prototype.writeUIntLE=function(g,p,T,M){if(g=+g,p=p|0,T=T|0,!M){var F=Math.pow(2,8*T)-1;re(this,g,p,T,F,0)}var V=1,Re=0;for(this[p]=g&255;++Re<T&&(V*=256);)this[p+Re]=g/V&255;return p+T},h.prototype.writeUIntBE=function(g,p,T,M){if(g=+g,p=p|0,T=T|0,!M){var F=Math.pow(2,8*T)-1;re(this,g,p,T,F,0)}var V=T-1,Re=1;for(this[p+V]=g&255;--V>=0&&(Re*=256);)this[p+V]=g/Re&255;return p+T},h.prototype.writeUInt8=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,1,255,0),h.TYPED_ARRAY_SUPPORT||(g=Math.floor(g)),this[p]=g&255,p+1};function te(E,g,p,T){g<0&&(g=65535+g+1);for(var M=0,F=Math.min(E.length-p,2);M<F;++M)E[p+M]=(g&255<<8*(T?M:1-M))>>>(T?M:1-M)*8}h.prototype.writeUInt16LE=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8):te(this,g,p,!0),p+2},h.prototype.writeUInt16BE=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>8,this[p+1]=g&255):te(this,g,p,!1),p+2};function ce(E,g,p,T){g<0&&(g=4294967295+g+1);for(var M=0,F=Math.min(E.length-p,4);M<F;++M)E[p+M]=g>>>(T?M:3-M)*8&255}h.prototype.writeUInt32LE=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[p+3]=g>>>24,this[p+2]=g>>>16,this[p+1]=g>>>8,this[p]=g&255):ce(this,g,p,!0),p+4},h.prototype.writeUInt32BE=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>24,this[p+1]=g>>>16,this[p+2]=g>>>8,this[p+3]=g&255):ce(this,g,p,!1),p+4},h.prototype.writeIntLE=function(g,p,T,M){if(g=+g,p=p|0,!M){var F=Math.pow(2,8*T-1);re(this,g,p,T,F-1,-F)}var V=0,Re=1,Te=0;for(this[p]=g&255;++V<T&&(Re*=256);)g<0&&Te===0&&this[p+V-1]!==0&&(Te=1),this[p+V]=(g/Re>>0)-Te&255;return p+T},h.prototype.writeIntBE=function(g,p,T,M){if(g=+g,p=p|0,!M){var F=Math.pow(2,8*T-1);re(this,g,p,T,F-1,-F)}var V=T-1,Re=1,Te=0;for(this[p+V]=g&255;--V>=0&&(Re*=256);)g<0&&Te===0&&this[p+V+1]!==0&&(Te=1),this[p+V]=(g/Re>>0)-Te&255;return p+T},h.prototype.writeInt8=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,1,127,-128),h.TYPED_ARRAY_SUPPORT||(g=Math.floor(g)),g<0&&(g=255+g+1),this[p]=g&255,p+1},h.prototype.writeInt16LE=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8):te(this,g,p,!0),p+2},h.prototype.writeInt16BE=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>8,this[p+1]=g&255):te(this,g,p,!1),p+2},h.prototype.writeInt32LE=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[p]=g&255,this[p+1]=g>>>8,this[p+2]=g>>>16,this[p+3]=g>>>24):ce(this,g,p,!0),p+4},h.prototype.writeInt32BE=function(g,p,T){return g=+g,p=p|0,T||re(this,g,p,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),h.TYPED_ARRAY_SUPPORT?(this[p]=g>>>24,this[p+1]=g>>>16,this[p+2]=g>>>8,this[p+3]=g&255):ce(this,g,p,!1),p+4};function _e(E,g,p,T,M,F){if(p+T>E.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Je(E,g,p,T,M){return M||_e(E,g,p,4),s.write(E,g,p,T,23,4),p+4}h.prototype.writeFloatLE=function(g,p,T){return Je(this,g,p,!0,T)},h.prototype.writeFloatBE=function(g,p,T){return Je(this,g,p,!1,T)};function ge(E,g,p,T,M){return M||_e(E,g,p,8),s.write(E,g,p,T,52,8),p+8}h.prototype.writeDoubleLE=function(g,p,T){return ge(this,g,p,!0,T)},h.prototype.writeDoubleBE=function(g,p,T){return ge(this,g,p,!1,T)},h.prototype.copy=function(g,p,T,M){if(T||(T=0),!M&&M!==0&&(M=this.length),p>=g.length&&(p=g.length),p||(p=0),M>0&&M<T&&(M=T),M===T||g.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("sourceStart out of bounds");if(M<0)throw new RangeError("sourceEnd out of bounds");M>this.length&&(M=this.length),g.length-p<M-T&&(M=g.length-p+T);var F=M-T,V;if(this===g&&T<p&&p<M)for(V=F-1;V>=0;--V)g[V+p]=this[V+T];else if(F<1e3||!h.TYPED_ARRAY_SUPPORT)for(V=0;V<F;++V)g[V+p]=this[V+T];else Uint8Array.prototype.set.call(g,this.subarray(T,T+F),p);return F},h.prototype.fill=function(g,p,T,M){if(typeof g=="string"){if(typeof p=="string"?(M=p,p=0,T=this.length):typeof T=="string"&&(M=T,T=this.length),g.length===1){var F=g.charCodeAt(0);F<256&&(g=F)}if(M!==void 0&&typeof M!="string")throw new TypeError("encoding must be a string");if(typeof M=="string"&&!h.isEncoding(M))throw new TypeError("Unknown encoding: "+M)}else typeof g=="number"&&(g=g&255);if(p<0||this.length<p||this.length<T)throw new RangeError("Out of range index");if(T<=p)return this;p=p>>>0,T=T===void 0?this.length:T>>>0,g||(g=0);var V;if(typeof g=="number")for(V=p;V<T;++V)this[V]=g;else{var Re=h.isBuffer(g)?g:Ye(new h(g,M).toString()),Te=Re.length;for(V=0;V<T-p;++V)this[V+p]=Re[V%Te]}return this};var $e=/[^+\/0-9A-Za-z-_]/g;function Ke(E){if(E=ut(E).replace($e,""),E.length<2)return"";for(;E.length%4!==0;)E=E+"=";return E}function ut(E){return E.trim?E.trim():E.replace(/^\s+|\s+$/g,"")}function xe(E){return E<16?"0"+E.toString(16):E.toString(16)}function Ye(E,g){g=g||1/0;for(var p,T=E.length,M=null,F=[],V=0;V<T;++V){if(p=E.charCodeAt(V),p>55295&&p<57344){if(!M){if(p>56319){(g-=3)>-1&&F.push(239,191,189);continue}else if(V+1===T){(g-=3)>-1&&F.push(239,191,189);continue}M=p;continue}if(p<56320){(g-=3)>-1&&F.push(239,191,189),M=p;continue}p=(M-55296<<10|p-56320)+65536}else M&&(g-=3)>-1&&F.push(239,191,189);if(M=null,p<128){if((g-=1)<0)break;F.push(p)}else if(p<2048){if((g-=2)<0)break;F.push(p>>6|192,p&63|128)}else if(p<65536){if((g-=3)<0)break;F.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((g-=4)<0)break;F.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return F}function pn(E){for(var g=[],p=0;p<E.length;++p)g.push(E.charCodeAt(p)&255);return g}function vn(E,g){for(var p,T,M,F=[],V=0;V<E.length&&!((g-=2)<0);++V)p=E.charCodeAt(V),T=p>>8,M=p%256,F.push(M),F.push(T);return F}function ea(E){return r.toByteArray(Ke(E))}function yn(E,g,p,T){for(var M=0;M<T&&!(M+p>=g.length||M>=E.length);++M)g[M+p]=E[M];return M}function $i(E){return E!==E}})(Ju)),Ju}var tt=Bb(),hn;typeof window<"u"&&window.crypto&&(hn=window.crypto);!hn&&typeof window<"u"&&window.msCrypto&&(hn=window.msCrypto);!hn&&typeof global<"u"&&global.crypto&&(hn=global.crypto);if(!hn&&typeof require=="function")try{hn=require("crypto")}catch{}function zb(){if(hn){if(typeof hn.getRandomValues=="function")try{return hn.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof hn.randomBytes=="function")try{return hn.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")}function Ob(i){for(var r=i.words,s=i.sigBytes,l=[],c=0;c<s;c++){var f=r[c>>>2]>>>24-c%4*8&255;l.push((f>>>4).toString(16)),l.push((f&15).toString(16))}return l.join("")}var jb=(function(){function i(s,l){s=this.words=s||[],l!=null?this.sigBytes=l:this.sigBytes=s.length*4}var r=i.prototype;return r.random=function(l){for(var c=[],f=0;f<l;f+=4)c.push(zb());return new i(c,l)},r.toString=function(){return Ob(this)},i})(),$u={};var Mc=function(i,r){return Mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var c in l)l.hasOwnProperty(c)&&(s[c]=l[c])},Mc(i,r)};function qb(i,r){Mc(i,r);function s(){this.constructor=i}i.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)}var Bc=function(){return Bc=Object.assign||function(r){for(var s,l=1,c=arguments.length;l<c;l++){s=arguments[l];for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&(r[f]=s[f])}return r},Bc.apply(this,arguments)};function kb(i,r){var s={};for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&r.indexOf(l)<0&&(s[l]=i[l]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,l=Object.getOwnPropertySymbols(i);c<l.length;c++)r.indexOf(l[c])<0&&Object.prototype.propertyIsEnumerable.call(i,l[c])&&(s[l[c]]=i[l[c]]);return s}function Lb(i,r,s,l){var c=arguments.length,f=c<3?r:l===null?l=Object.getOwnPropertyDescriptor(r,s):l,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(i,r,s,l);else for(var h=i.length-1;h>=0;h--)(d=i[h])&&(f=(c<3?d(f):c>3?d(r,s,f):d(r,s))||f);return c>3&&f&&Object.defineProperty(r,s,f),f}function Hb(i,r){return function(s,l){r(s,l,i)}}function Fb(i,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,r)}function Vb(i,r,s,l){function c(f){return f instanceof s?f:new s(function(d){d(f)})}return new(s||(s=Promise))(function(f,d){function h(w){try{y(l.next(w))}catch(A){d(A)}}function v(w){try{y(l.throw(w))}catch(A){d(A)}}function y(w){w.done?f(w.value):c(w.value).then(h,v)}y((l=l.apply(i,r||[])).next())})}function Kb(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},l,c,f,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(y){return function(w){return v([y,w])}}function v(y){if(l)throw new TypeError("Generator is already executing.");for(;s;)try{if(l=1,c&&(f=y[0]&2?c.return:y[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,y[1])).done)return f;switch(c=0,f&&(y=[y[0]&2,f.value]),y[0]){case 0:case 1:f=y;break;case 4:return s.label++,{value:y[1],done:!1};case 5:s.label++,c=y[1],y=[0];continue;case 7:y=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(y[0]===6||y[0]===2)){s=0;continue}if(y[0]===3&&(!f||y[1]>f[0]&&y[1]<f[3])){s.label=y[1];break}if(y[0]===6&&s.label<f[1]){s.label=f[1],f=y;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(y);break}f[2]&&s.ops.pop(),s.trys.pop();continue}y=r.call(i,s)}catch(w){y=[6,w],c=0}finally{l=f=0}if(y[0]&5)throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}}function Yb(i,r,s,l){l===void 0&&(l=s),i[l]=r[s]}function Ib(i,r){for(var s in i)s!=="default"&&!r.hasOwnProperty(s)&&(r[s]=i[s])}function zc(i){var r=typeof Symbol=="function"&&Symbol.iterator,s=r&&i[r],l=0;if(s)return s.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&l>=i.length&&(i=void 0),{value:i&&i[l++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ag(i,r){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var l=s.call(i),c,f=[],d;try{for(;(r===void 0||r-- >0)&&!(c=l.next()).done;)f.push(c.value)}catch(h){d={error:h}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(d)throw d.error}}return f}function Gb(){for(var i=[],r=0;r<arguments.length;r++)i=i.concat(Ag(arguments[r]));return i}function Qb(){for(var i=0,r=0,s=arguments.length;r<s;r++)i+=arguments[r].length;for(var l=Array(i),c=0,r=0;r<s;r++)for(var f=arguments[r],d=0,h=f.length;d<h;d++,c++)l[c]=f[d];return l}function nl(i){return this instanceof nl?(this.v=i,this):new nl(i)}function Xb(i,r,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l=s.apply(i,r||[]),c,f=[];return c={},d("next"),d("throw"),d("return"),c[Symbol.asyncIterator]=function(){return this},c;function d(U){l[U]&&(c[U]=function(S){return new Promise(function(N,D){f.push([U,S,N,D])>1||h(U,S)})})}function h(U,S){try{v(l[U](S))}catch(N){A(f[0][3],N)}}function v(U){U.value instanceof nl?Promise.resolve(U.value.v).then(y,w):A(f[0][2],U)}function y(U){h("next",U)}function w(U){h("throw",U)}function A(U,S){U(S),f.shift(),f.length&&h(f[0][0],f[0][1])}}function Zb(i){var r,s;return r={},l("next"),l("throw",function(c){throw c}),l("return"),r[Symbol.iterator]=function(){return this},r;function l(c,f){r[c]=i[c]?function(d){return(s=!s)?{value:nl(i[c](d)),done:c==="return"}:f?f(d):d}:f}}function Jb(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=i[Symbol.asyncIterator],s;return r?r.call(i):(i=typeof zc=="function"?zc(i):i[Symbol.iterator](),s={},l("next"),l("throw"),l("return"),s[Symbol.asyncIterator]=function(){return this},s);function l(f){s[f]=i[f]&&function(d){return new Promise(function(h,v){d=i[f](d),c(h,v,d.done,d.value)})}}function c(f,d,h,v){Promise.resolve(v).then(function(y){f({value:y,done:h})},d)}}function Pb(i,r){return Object.defineProperty?Object.defineProperty(i,"raw",{value:r}):i.raw=r,i}function $b(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)Object.hasOwnProperty.call(i,s)&&(r[s]=i[s]);return r.default=i,r}function Wb(i){return i&&i.__esModule?i:{default:i}}function eS(i,r){if(!r.has(i))throw new TypeError("attempted to get private field on non-instance");return r.get(i)}function tS(i,r,s){if(!r.has(i))throw new TypeError("attempted to set private field on non-instance");return r.set(i,s),s}const nS=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Bc},__asyncDelegator:Zb,__asyncGenerator:Xb,__asyncValues:Jb,__await:nl,__awaiter:Vb,__classPrivateFieldGet:eS,__classPrivateFieldSet:tS,__createBinding:Yb,__decorate:Lb,__exportStar:Ib,__extends:qb,__generator:Kb,__importDefault:Wb,__importStar:$b,__makeTemplateObject:Pb,__metadata:Fb,__param:Hb,__read:Ag,__rest:kb,__spread:Gb,__spreadArrays:Qb,__values:zc},Symbol.toStringTag,{value:"Module"})),Tg=Vc(nS);var Yr={},Wt={},r0;function Cg(){return r0||(r0=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.MAX_HASHABLE_LENGTH=Wt.INIT=Wt.KEY=Wt.DIGEST_LENGTH=Wt.BLOCK_SIZE=void 0,Wt.BLOCK_SIZE=64,Wt.DIGEST_LENGTH=32,Wt.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Wt.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Wt.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),Wt}var Ir={},l0;function aS(){if(l0)return Ir;l0=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.RawSha256=void 0;var i=Cg(),r=(function(){function s(){this.state=Int32Array.from(i.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return s.prototype.update=function(l){if(this.finished)throw new Error("Attempted to update an already finished hash.");var c=0,f=l.byteLength;if(this.bytesHashed+=f,this.bytesHashed*8>i.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;f>0;)this.buffer[this.bufferLength++]=l[c++],f--,this.bufferLength===i.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},s.prototype.digest=function(){if(!this.finished){var l=this.bytesHashed*8,c=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),f=this.bufferLength;if(c.setUint8(this.bufferLength++,128),f%i.BLOCK_SIZE>=i.BLOCK_SIZE-8){for(var d=this.bufferLength;d<i.BLOCK_SIZE;d++)c.setUint8(d,0);this.hashBuffer(),this.bufferLength=0}for(var d=this.bufferLength;d<i.BLOCK_SIZE-8;d++)c.setUint8(d,0);c.setUint32(i.BLOCK_SIZE-8,Math.floor(l/4294967296),!0),c.setUint32(i.BLOCK_SIZE-4,l),this.hashBuffer(),this.finished=!0}for(var h=new Uint8Array(i.DIGEST_LENGTH),d=0;d<8;d++)h[d*4]=this.state[d]>>>24&255,h[d*4+1]=this.state[d]>>>16&255,h[d*4+2]=this.state[d]>>>8&255,h[d*4+3]=this.state[d]>>>0&255;return h},s.prototype.hashBuffer=function(){for(var l=this,c=l.buffer,f=l.state,d=f[0],h=f[1],v=f[2],y=f[3],w=f[4],A=f[5],U=f[6],S=f[7],N=0;N<i.BLOCK_SIZE;N++){if(N<16)this.temp[N]=(c[N*4]&255)<<24|(c[N*4+1]&255)<<16|(c[N*4+2]&255)<<8|c[N*4+3]&255;else{var D=this.temp[N-2],I=(D>>>17|D<<15)^(D>>>19|D<<13)^D>>>10;D=this.temp[N-15];var K=(D>>>7|D<<25)^(D>>>18|D<<14)^D>>>3;this.temp[N]=(I+this.temp[N-7]|0)+(K+this.temp[N-16]|0)}var P=(((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&A^~w&U)|0)+(S+(i.KEY[N]+this.temp[N]|0)|0)|0,J=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&h^d&v^h&v)|0;S=U,U=A,A=w,w=y+P|0,y=v,v=h,h=d,d=P+J|0}f[0]+=d,f[1]+=h,f[2]+=v,f[3]+=y,f[4]+=w,f[5]+=A,f[6]+=U,f[7]+=S},s})();return Ir.RawSha256=r,Ir}var Wu={},Gr={};const iS=i=>{const r=[];for(let s=0,l=i.length;s<l;s++){const c=i.charCodeAt(s);if(c<128)r.push(c);else if(c<2048)r.push(c>>6|192,c&63|128);else if(s+1<i.length&&(c&64512)===55296&&(i.charCodeAt(s+1)&64512)===56320){const f=65536+((c&1023)<<10)+(i.charCodeAt(++s)&1023);r.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else r.push(c>>12|224,c>>6&63|128,c&63|128)}return Uint8Array.from(r)},rS=i=>{let r="";for(let s=0,l=i.length;s<l;s++){const c=i[s];if(c<128)r+=String.fromCharCode(c);else if(192<=c&&c<224){const f=i[++s];r+=String.fromCharCode((c&31)<<6|f&63)}else if(240<=c&&c<365){const d="%"+[c,i[++s],i[++s],i[++s]].map(h=>h.toString(16)).join("%");r+=decodeURIComponent(d)}else r+=String.fromCharCode((c&15)<<12|(i[++s]&63)<<6|i[++s]&63)}return r};function lS(i){return new TextEncoder().encode(i)}function sS(i){return new TextDecoder("utf-8").decode(i)}const oS=i=>typeof TextEncoder=="function"?lS(i):iS(i),uS=i=>typeof TextDecoder=="function"?sS(i):rS(i),cS=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:oS,toUtf8:uS},Symbol.toStringTag,{value:"Module"})),fS=Vc(cS);var s0;function dS(){if(s0)return Gr;s0=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.convertToBuffer=void 0;var i=fS,r=typeof Buffer<"u"&&Buffer.from?function(l){return Buffer.from(l,"utf8")}:i.fromUtf8;function s(l){return l instanceof Uint8Array?l:typeof l=="string"?r(l):ArrayBuffer.isView(l)?new Uint8Array(l.buffer,l.byteOffset,l.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(l)}return Gr.convertToBuffer=s,Gr}var Qr={},o0;function hS(){if(o0)return Qr;o0=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.isEmptyData=void 0;function i(r){return typeof r=="string"?r.length===0:r.byteLength===0}return Qr.isEmptyData=i,Qr}var Xr={},u0;function mS(){if(u0)return Xr;u0=1,Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.numToUint8=void 0;function i(r){return new Uint8Array([(r&4278190080)>>24,(r&16711680)>>16,(r&65280)>>8,r&255])}return Xr.numToUint8=i,Xr}var Zr={},c0;function gS(){if(c0)return Zr;c0=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.uint32ArrayFrom=void 0;function i(r){if(!Array.from){for(var s=new Uint32Array(r.length),l=0;l<r.length;)s[l]=r[l];return s}return Uint32Array.from(r)}return Zr.uint32ArrayFrom=i,Zr}var f0;function pS(){return f0||(f0=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.uint32ArrayFrom=i.numToUint8=i.isEmptyData=i.convertToBuffer=void 0;var r=dS();Object.defineProperty(i,"convertToBuffer",{enumerable:!0,get:function(){return r.convertToBuffer}});var s=hS();Object.defineProperty(i,"isEmptyData",{enumerable:!0,get:function(){return s.isEmptyData}});var l=mS();Object.defineProperty(i,"numToUint8",{enumerable:!0,get:function(){return l.numToUint8}});var c=gS();Object.defineProperty(i,"uint32ArrayFrom",{enumerable:!0,get:function(){return c.uint32ArrayFrom}})})(Wu)),Wu}var d0;function vS(){if(d0)return Yr;d0=1,Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.Sha256=void 0;var i=Tg,r=Cg(),s=aS(),l=pS(),c=(function(){function d(h){if(this.hash=new s.RawSha256,h){this.outer=new s.RawSha256;var v=f(h),y=new Uint8Array(r.BLOCK_SIZE);y.set(v);for(var w=0;w<r.BLOCK_SIZE;w++)v[w]^=54,y[w]^=92;this.hash.update(v),this.outer.update(y);for(var w=0;w<v.byteLength;w++)v[w]=0}}return d.prototype.update=function(h){if(!((0,l.isEmptyData)(h)||this.error))try{this.hash.update((0,l.convertToBuffer)(h))}catch(v){this.error=v}},d.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},d.prototype.digest=function(){return(0,i.__awaiter)(this,void 0,void 0,function(){return(0,i.__generator)(this,function(h){return[2,this.digestSync()]})})},d})();Yr.Sha256=c;function f(d){var h=(0,l.convertToBuffer)(d);if(h.byteLength>r.BLOCK_SIZE){var v=new s.RawSha256;v.update(h),h=v.digest()}var y=new Uint8Array(r.BLOCK_SIZE);return y.set(h),y}return Yr}var h0;function yS(){return h0||(h0=1,(function(i){Object.defineProperty(i,"__esModule",{value:!0});var r=Tg;(0,r.__exportStar)(vS(),i)})($u)),$u}var tl=yS();function de(i,r){i!=null&&this.fromString(i,r)}function Bt(){return new de(null)}var Ra,bS=0xdeadbeefcafe,m0=(bS&16777215)==15715070;function SS(i,r,s,l,c,f){for(;--f>=0;){var d=r*this[i++]+s[l]+c;c=Math.floor(d/67108864),s[l++]=d&67108863}return c}function wS(i,r,s,l,c,f){for(var d=r&32767,h=r>>15;--f>=0;){var v=this[i]&32767,y=this[i++]>>15,w=h*v+y*d;v=d*v+((w&32767)<<15)+s[l]+(c&1073741823),c=(v>>>30)+(w>>>15)+h*y+(c>>>30),s[l++]=v&1073741823}return c}function xS(i,r,s,l,c,f){for(var d=r&16383,h=r>>14;--f>=0;){var v=this[i]&16383,y=this[i++]>>14,w=h*v+y*d;v=d*v+((w&16383)<<14)+s[l]+c,c=(v>>28)+(w>>14)+h*y,s[l++]=v&268435455}return c}var g0=typeof navigator<"u";g0&&m0&&navigator.appName=="Microsoft Internet Explorer"?(de.prototype.am=wS,Ra=30):g0&&m0&&navigator.appName!="Netscape"?(de.prototype.am=SS,Ra=26):(de.prototype.am=xS,Ra=28);de.prototype.DB=Ra;de.prototype.DM=(1<<Ra)-1;de.prototype.DV=1<<Ra;var Yc=52;de.prototype.FV=Math.pow(2,Yc);de.prototype.F1=Yc-Ra;de.prototype.F2=2*Ra-Yc;var ES="0123456789abcdefghijklmnopqrstuvwxyz",Rs=new Array,Xi,mn;Xi=48;for(mn=0;mn<=9;++mn)Rs[Xi++]=mn;Xi=97;for(mn=10;mn<36;++mn)Rs[Xi++]=mn;Xi=65;for(mn=10;mn<36;++mn)Rs[Xi++]=mn;function p0(i){return ES.charAt(i)}function AS(i,r){var s=Rs[i.charCodeAt(r)];return s??-1}function TS(i){for(var r=this.t-1;r>=0;--r)i[r]=this[r];i.t=this.t,i.s=this.s}function CS(i){this.t=1,this.s=i<0?-1:0,i>0?this[0]=i:i<-1?this[0]=i+this.DV:this.t=0}function Ic(i){var r=Bt();return r.fromInt(i),r}function US(i,r){var s;if(r==16)s=4;else if(r==8)s=3;else if(r==2)s=1;else if(r==32)s=5;else if(r==4)s=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var l=i.length,c=!1,f=0;--l>=0;){var d=AS(i,l);if(d<0){i.charAt(l)=="-"&&(c=!0);continue}c=!1,f==0?this[this.t++]=d:f+s>this.DB?(this[this.t-1]|=(d&(1<<this.DB-f)-1)<<f,this[this.t++]=d>>this.DB-f):this[this.t-1]|=d<<f,f+=s,f>=this.DB&&(f-=this.DB)}this.clamp(),c&&de.ZERO.subTo(this,this)}function _S(){for(var i=this.s&this.DM;this.t>0&&this[this.t-1]==i;)--this.t}function DS(i){if(this.s<0)return"-"+this.negate().toString(i);var r;if(i==16)r=4;else if(i==8)r=3;else if(i==2)r=1;else if(i==32)r=5;else if(i==4)r=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");var s=(1<<r)-1,l,c=!1,f="",d=this.t,h=this.DB-d*this.DB%r;if(d-- >0)for(h<this.DB&&(l=this[d]>>h)>0&&(c=!0,f=p0(l));d>=0;)h<r?(l=(this[d]&(1<<h)-1)<<r-h,l|=this[--d]>>(h+=this.DB-r)):(l=this[d]>>(h-=r)&s,h<=0&&(h+=this.DB,--d)),l>0&&(c=!0),c&&(f+=p0(l));return c?f:"0"}function RS(){var i=Bt();return de.ZERO.subTo(this,i),i}function NS(){return this.s<0?this.negate():this}function MS(i){var r=this.s-i.s;if(r!=0)return r;var s=this.t;if(r=s-i.t,r!=0)return this.s<0?-r:r;for(;--s>=0;)if((r=this[s]-i[s])!=0)return r;return 0}function Gc(i){var r=1,s;return(s=i>>>16)!=0&&(i=s,r+=16),(s=i>>8)!=0&&(i=s,r+=8),(s=i>>4)!=0&&(i=s,r+=4),(s=i>>2)!=0&&(i=s,r+=2),(s=i>>1)!=0&&(i=s,r+=1),r}function BS(){return this.t<=0?0:this.DB*(this.t-1)+Gc(this[this.t-1]^this.s&this.DM)}function zS(i,r){var s;for(s=this.t-1;s>=0;--s)r[s+i]=this[s];for(s=i-1;s>=0;--s)r[s]=0;r.t=this.t+i,r.s=this.s}function OS(i,r){for(var s=i;s<this.t;++s)r[s-i]=this[s];r.t=Math.max(this.t-i,0),r.s=this.s}function jS(i,r){var s=i%this.DB,l=this.DB-s,c=(1<<l)-1,f=Math.floor(i/this.DB),d=this.s<<s&this.DM,h;for(h=this.t-1;h>=0;--h)r[h+f+1]=this[h]>>l|d,d=(this[h]&c)<<s;for(h=f-1;h>=0;--h)r[h]=0;r[f]=d,r.t=this.t+f+1,r.s=this.s,r.clamp()}function qS(i,r){r.s=this.s;var s=Math.floor(i/this.DB);if(s>=this.t){r.t=0;return}var l=i%this.DB,c=this.DB-l,f=(1<<l)-1;r[0]=this[s]>>l;for(var d=s+1;d<this.t;++d)r[d-s-1]|=(this[d]&f)<<c,r[d-s]=this[d]>>l;l>0&&(r[this.t-s-1]|=(this.s&f)<<c),r.t=this.t-s,r.clamp()}function kS(i,r){for(var s=0,l=0,c=Math.min(i.t,this.t);s<c;)l+=this[s]-i[s],r[s++]=l&this.DM,l>>=this.DB;if(i.t<this.t){for(l-=i.s;s<this.t;)l+=this[s],r[s++]=l&this.DM,l>>=this.DB;l+=this.s}else{for(l+=this.s;s<i.t;)l-=i[s],r[s++]=l&this.DM,l>>=this.DB;l-=i.s}r.s=l<0?-1:0,l<-1?r[s++]=this.DV+l:l>0&&(r[s++]=l),r.t=s,r.clamp()}function LS(i,r){var s=this.abs(),l=i.abs(),c=s.t;for(r.t=c+l.t;--c>=0;)r[c]=0;for(c=0;c<l.t;++c)r[c+s.t]=s.am(0,l[c],r,c,0,s.t);r.s=0,r.clamp(),this.s!=i.s&&de.ZERO.subTo(r,r)}function HS(i){for(var r=this.abs(),s=i.t=2*r.t;--s>=0;)i[s]=0;for(s=0;s<r.t-1;++s){var l=r.am(s,r[s],i,2*s,0,1);(i[s+r.t]+=r.am(s+1,2*r[s],i,2*s+1,l,r.t-s-1))>=r.DV&&(i[s+r.t]-=r.DV,i[s+r.t+1]=1)}i.t>0&&(i[i.t-1]+=r.am(s,r[s],i,2*s,0,1)),i.s=0,i.clamp()}function FS(i,r,s){var l=i.abs();if(!(l.t<=0)){var c=this.abs();if(c.t<l.t){r?.fromInt(0),s!=null&&this.copyTo(s);return}s==null&&(s=Bt());var f=Bt(),d=this.s,h=i.s,v=this.DB-Gc(l[l.t-1]);v>0?(l.lShiftTo(v,f),c.lShiftTo(v,s)):(l.copyTo(f),c.copyTo(s));var y=f.t,w=f[y-1];if(w!=0){var A=w*(1<<this.F1)+(y>1?f[y-2]>>this.F2:0),U=this.FV/A,S=(1<<this.F1)/A,N=1<<this.F2,D=s.t,I=D-y,K=r??Bt();for(f.dlShiftTo(I,K),s.compareTo(K)>=0&&(s[s.t++]=1,s.subTo(K,s)),de.ONE.dlShiftTo(y,K),K.subTo(f,f);f.t<y;)f[f.t++]=0;for(;--I>=0;){var P=s[--D]==w?this.DM:Math.floor(s[D]*U+(s[D-1]+N)*S);if((s[D]+=f.am(0,P,s,I,0,y))<P)for(f.dlShiftTo(I,K),s.subTo(K,s);s[D]<--P;)s.subTo(K,s)}r!=null&&(s.drShiftTo(y,r),d!=h&&de.ZERO.subTo(r,r)),s.t=y,s.clamp(),v>0&&s.rShiftTo(v,s),d<0&&de.ZERO.subTo(s,s)}}}function VS(i){var r=Bt();return this.abs().divRemTo(i,null,r),this.s<0&&r.compareTo(de.ZERO)>0&&i.subTo(r,r),r}function KS(){if(this.t<1)return 0;var i=this[0];if((i&1)==0)return 0;var r=i&3;return r=r*(2-(i&15)*r)&15,r=r*(2-(i&255)*r)&255,r=r*(2-((i&65535)*r&65535))&65535,r=r*(2-i*r%this.DV)%this.DV,r>0?this.DV-r:-r}function YS(i){return this.compareTo(i)==0}function IS(i,r){for(var s=0,l=0,c=Math.min(i.t,this.t);s<c;)l+=this[s]+i[s],r[s++]=l&this.DM,l>>=this.DB;if(i.t<this.t){for(l+=i.s;s<this.t;)l+=this[s],r[s++]=l&this.DM,l>>=this.DB;l+=this.s}else{for(l+=this.s;s<i.t;)l+=i[s],r[s++]=l&this.DM,l>>=this.DB;l+=i.s}r.s=l<0?-1:0,l>0?r[s++]=l:l<-1&&(r[s++]=this.DV+l),r.t=s,r.clamp()}function GS(i){var r=Bt();return this.addTo(i,r),r}function QS(i){var r=Bt();return this.subTo(i,r),r}function XS(i){var r=Bt();return this.multiplyTo(i,r),r}function ZS(i){var r=Bt();return this.divRemTo(i,r,null),r}function Zi(i){this.m=i,this.mp=i.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<i.DB-15)-1,this.mt2=2*i.t}function JS(i){var r=Bt();return i.abs().dlShiftTo(this.m.t,r),r.divRemTo(this.m,null,r),i.s<0&&r.compareTo(de.ZERO)>0&&this.m.subTo(r,r),r}function PS(i){var r=Bt();return i.copyTo(r),this.reduce(r),r}function $S(i){for(;i.t<=this.mt2;)i[i.t++]=0;for(var r=0;r<this.m.t;++r){var s=i[r]&32767,l=s*this.mpl+((s*this.mph+(i[r]>>15)*this.mpl&this.um)<<15)&i.DM;for(s=r+this.m.t,i[s]+=this.m.am(0,l,i,r,0,this.m.t);i[s]>=i.DV;)i[s]-=i.DV,i[++s]++}i.clamp(),i.drShiftTo(this.m.t,i),i.compareTo(this.m)>=0&&i.subTo(this.m,i)}function WS(i,r){i.squareTo(r),this.reduce(r)}function e2(i,r,s){i.multiplyTo(r,s),this.reduce(s)}Zi.prototype.convert=JS;Zi.prototype.revert=PS;Zi.prototype.reduce=$S;Zi.prototype.mulTo=e2;Zi.prototype.sqrTo=WS;function t2(i,r,s){var l=i.bitLength(),c,f=Ic(1),d=new Zi(r);if(l<=0)return f;l<18?c=1:l<48?c=3:l<144?c=4:l<768?c=5:c=6;var h=new Array,v=3,y=c-1,w=(1<<c)-1;if(h[1]=d.convert(this),c>1){var A=Bt();for(d.sqrTo(h[1],A);v<=w;)h[v]=Bt(),d.mulTo(A,h[v-2],h[v]),v+=2}var U=i.t-1,S,N=!0,D=Bt(),I;for(l=Gc(i[U])-1;U>=0;){for(l>=y?S=i[U]>>l-y&w:(S=(i[U]&(1<<l+1)-1)<<y-l,U>0&&(S|=i[U-1]>>this.DB+l-y)),v=c;(S&1)==0;)S>>=1,--v;if((l-=v)<0&&(l+=this.DB,--U),N)h[S].copyTo(f),N=!1;else{for(;v>1;)d.sqrTo(f,D),d.sqrTo(D,f),v-=2;v>0?d.sqrTo(f,D):(I=f,f=D,D=I),d.mulTo(D,h[S],f)}for(;U>=0&&(i[U]&1<<l)==0;)d.sqrTo(f,D),I=f,f=D,D=I,--l<0&&(l=this.DB-1,--U)}var K=d.revert(f);return s(null,K),K}de.prototype.copyTo=TS;de.prototype.fromInt=CS;de.prototype.fromString=US;de.prototype.clamp=_S;de.prototype.dlShiftTo=zS;de.prototype.drShiftTo=OS;de.prototype.lShiftTo=jS;de.prototype.rShiftTo=qS;de.prototype.subTo=kS;de.prototype.multiplyTo=LS;de.prototype.squareTo=HS;de.prototype.divRemTo=FS;de.prototype.invDigit=KS;de.prototype.addTo=IS;de.prototype.toString=DS;de.prototype.negate=RS;de.prototype.abs=NS;de.prototype.compareTo=MS;de.prototype.bitLength=BS;de.prototype.mod=VS;de.prototype.equals=YS;de.prototype.add=GS;de.prototype.subtract=QS;de.prototype.multiply=XS;de.prototype.divide=ZS;de.prototype.modPow=t2;de.ZERO=Ic(0);de.ONE=Ic(1);function ec(i){return tt.Buffer.from(new jb().random(i).toString(),"hex")}var n2=/^[89a-f]/i,a2="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",i2="userAttributes.",Ki=(function(){function i(s){this.N=new de(a2,16),this.g=new de("2",16),this.k=new de(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=tt.Buffer.from("Caldera Derived Key","utf8"),this.poolName=s}var r=i.prototype;return r.getSmallAValue=function(){return this.smallAValue},r.getLargeAValue=function(l){var c=this;this.largeAValue?l(null,this.largeAValue):this.calculateA(this.smallAValue,function(f,d){f&&l(f,null),c.largeAValue=d,l(null,c.largeAValue)})},r.generateRandomSmallA=function(){var l=ec(128).toString("hex"),c=new de(l,16);return c},r.generateRandomString=function(){return ec(40).toString("base64")},r.getRandomPassword=function(){return this.randomPassword},r.getSaltDevices=function(){return this.SaltToHashDevices},r.getVerifierDevices=function(){return this.verifierDevices},r.generateHashDevice=function(l,c,f){var d=this;this.randomPassword=this.generateRandomString();var h=""+l+c+":"+this.randomPassword,v=this.hash(h),y=ec(16).toString("hex");this.SaltToHashDevices=this.padHex(new de(y,16)),this.g.modPow(new de(this.hexHash(this.SaltToHashDevices+v),16),this.N,function(w,A){w&&f(w,null),d.verifierDevices=d.padHex(A),f(null,null)})},r.calculateA=function(l,c){var f=this;this.g.modPow(l,this.N,function(d,h){d&&c(d,null),h.mod(f.N).equals(de.ZERO)&&c(new Error("Illegal paramater. A mod N cannot be 0."),null),c(null,h)})},r.calculateU=function(l,c){this.UHexHash=this.hexHash(this.padHex(l)+this.padHex(c));var f=new de(this.UHexHash,16);return f},r.hash=function(l){var c=new tl.Sha256;c.update(l);var f=c.digestSync(),d=tt.Buffer.from(f).toString("hex");return new Array(64-d.length).join("0")+d},r.hexHash=function(l){return this.hash(tt.Buffer.from(l,"hex"))},r.computehkdf=function(l,c){var f=tt.Buffer.concat([this.infoBits,tt.Buffer.from("","utf8")]),d=new tl.Sha256(c);d.update(l);var h=d.digestSync(),v=new tl.Sha256(h);v.update(f);var y=v.digestSync(),w=y,A=w.slice(0,16);return A},r.getPasswordAuthenticationKey=function(l,c,f,d,h){var v=this;if(f.mod(this.N).equals(de.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,f),this.UValue.equals(de.ZERO))throw new Error("U cannot be zero.");var y=""+this.poolName+l+":"+c,w=this.hash(y),A=new de(this.hexHash(this.padHex(d)+w),16);this.calculateS(A,f,function(U,S){U&&h(U,null);var N=v.computehkdf(tt.Buffer.from(v.padHex(S),"hex"),tt.Buffer.from(v.padHex(v.UValue),"hex"));h(null,N)})},r.calculateS=function(l,c,f){var d=this;this.g.modPow(l,this.N,function(h,v){h&&f(h,null);var y=c.subtract(d.k.multiply(v));y.modPow(d.smallAValue.add(d.UValue.multiply(l)),d.N,function(w,A){w&&f(w,null),f(null,A.mod(d.N))})})},r.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return i2},r.padHex=function(l){if(!(l instanceof de))throw new Error("Not a BigInteger");var c=l.compareTo(de.ZERO)<0,f=l.abs().toString(16);if(f=f.length%2!==0?"0"+f:f,f=n2.test(f)?"00"+f:f,c){var d=f.split("").map(function(v){var y=~parseInt(v,16)&15;return"0123456789ABCDEF".charAt(y)}).join(""),h=new de(d,16).add(de.ONE);f=h.toString(16),f.toUpperCase().startsWith("FF8")&&(f=f.substring(2))}return f},i})();var Ug=(function(){function i(s){this.jwtToken=s||"",this.payload=this.decodePayload()}var r=i.prototype;return r.getJwtToken=function(){return this.jwtToken},r.getExpiration=function(){return this.payload.exp},r.getIssuedAt=function(){return this.payload.iat},r.decodePayload=function(){var l=this.jwtToken.split(".")[1];try{return JSON.parse(tt.Buffer.from(l,"base64").toString("utf8"))}catch{return{}}},i})();function r2(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,Oc(i,r)}function Oc(i,r){return Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},Oc(i,r)}var v0=(function(i){function r(s){var l=s===void 0?{}:s,c=l.AccessToken;return i.call(this,c||"")||this}return r2(r,i),r})(Ug);function l2(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,jc(i,r)}function jc(i,r){return jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},jc(i,r)}var y0=(function(i){function r(s){var l=s===void 0?{}:s,c=l.IdToken;return i.call(this,c||"")||this}return l2(r,i),r})(Ug);var qc=(function(){function i(s){var l=s===void 0?{}:s,c=l.RefreshToken;this.token=c||""}var r=i.prototype;return r.getToken=function(){return this.token},i})(),s2="5.0.4";var o2="aws-amplify/"+s2,_g={userAgent:o2,isReactNative:typeof navigator<"u"&&navigator.product==="ReactNative"},u2=function(){return _g.userAgent};var b0=(function(){function i(s){var l=s===void 0?{}:s,c=l.IdToken,f=l.RefreshToken,d=l.AccessToken,h=l.ClockDrift;if(d==null||c==null)throw new Error("Id token and Access Token must be present.");this.idToken=c,this.refreshToken=f,this.accessToken=d,this.clockDrift=h===void 0?this.calculateClockDrift():h}var r=i.prototype;return r.getIdToken=function(){return this.idToken},r.getRefreshToken=function(){return this.refreshToken},r.getAccessToken=function(){return this.accessToken},r.getClockDrift=function(){return this.clockDrift},r.calculateClockDrift=function(){var l=Math.floor(new Date/1e3),c=Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt());return l-c},r.isValid=function(){var l=Math.floor(new Date/1e3),c=l-this.clockDrift;return c<this.accessToken.getExpiration()&&c<this.idToken.getExpiration()},i})();var c2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],f2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],S0=(function(){function i(){}var r=i.prototype;return r.getNowString=function(){var l=new Date,c=f2[l.getUTCDay()],f=c2[l.getUTCMonth()],d=l.getUTCDate(),h=l.getUTCHours();h<10&&(h="0"+h);var v=l.getUTCMinutes();v<10&&(v="0"+v);var y=l.getUTCSeconds();y<10&&(y="0"+y);var w=l.getUTCFullYear(),A=c+" "+f+" "+d+" "+h+":"+v+":"+y+" UTC "+w;return A},i})();var Dg=(function(){function i(s){var l=s===void 0?{}:s,c=l.Name,f=l.Value;this.Name=c||"",this.Value=f||""}var r=i.prototype;return r.getValue=function(){return this.Value},r.setValue=function(l){return this.Value=l,this},r.getName=function(){return this.Name},r.setName=function(l){return this.Name=l,this},r.toString=function(){return JSON.stringify(this)},r.toJSON=function(){return{Name:this.Name,Value:this.Value}},i})();var Ja={},d2=(function(){function i(){}return i.setItem=function(s,l){return Ja[s]=l,Ja[s]},i.getItem=function(s){return Object.prototype.hasOwnProperty.call(Ja,s)?Ja[s]:void 0},i.removeItem=function(s){return delete Ja[s]},i.clear=function(){return Ja={},Ja},i})(),Rg=(function(){function i(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch{this.storageWindow=d2}}var r=i.prototype;return r.getStorage=function(){return this.storageWindow},i})();var h2=typeof navigator<"u",w0=h2?_g.isReactNative?"react-native":navigator.userAgent:"nodejs",al=(function(){function i(s){if(s==null||s.Username==null||s.Pool==null)throw new Error("Username and Pool information are required.");this.username=s.Username||"",this.pool=s.Pool,this.Session=null,this.client=s.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=s.Storage||new Rg().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var r=i.prototype;return r.setSignInUserSession=function(l){this.clearCachedUserData(),this.signInUserSession=l,this.cacheTokens()},r.getSignInUserSession=function(){return this.signInUserSession},r.getUsername=function(){return this.username},r.getAuthenticationFlowType=function(){return this.authenticationFlowType},r.setAuthenticationFlowType=function(l){this.authenticationFlowType=l},r.initiateAuth=function(l,c){var f=this,d=l.getAuthParameters();d.USERNAME=this.username;var h=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),v={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:d,ClientMetadata:h};this.getUserContextData()&&(v.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",v,function(y,w){if(y)return c.onFailure(y);var A=w.ChallengeName,U=w.ChallengeParameters;return A==="CUSTOM_CHALLENGE"?(f.Session=w.Session,c.customChallenge(U)):(f.signInUserSession=f.getCognitoUserSession(w.AuthenticationResult),f.cacheTokens(),c.onSuccess(f.signInUserSession))})},r.authenticateUser=function(l,c){return this.authenticationFlowType==="USER_PASSWORD_AUTH"?this.authenticateUserPlainUsernamePassword(l,c):this.authenticationFlowType==="USER_SRP_AUTH"||this.authenticationFlowType==="CUSTOM_AUTH"?this.authenticateUserDefaultAuth(l,c):c.onFailure(new Error("Authentication flow type is invalid."))},r.authenticateUserDefaultAuth=function(l,c){var f=this,d=new Ki(this.pool.getUserPoolName()),h=new S0,v,y,w={};this.deviceKey!=null&&(w.DEVICE_KEY=this.deviceKey),w.USERNAME=this.username,d.getLargeAValue(function(A,U){A&&c.onFailure(A),w.SRP_A=U.toString(16),f.authenticationFlowType==="CUSTOM_AUTH"&&(w.CHALLENGE_NAME="SRP_A");var S=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),N={AuthFlow:f.authenticationFlowType,ClientId:f.pool.getClientId(),AuthParameters:w,ClientMetadata:S};f.getUserContextData(f.username)&&(N.UserContextData=f.getUserContextData(f.username)),f.client.request("InitiateAuth",N,function(D,I){if(D)return c.onFailure(D);var K=I.ChallengeParameters;f.username=K.USER_ID_FOR_SRP,f.userDataKey=f.keyPrefix+"."+f.username+".userData",v=new de(K.SRP_B,16),y=new de(K.SALT,16),f.getCachedDeviceKeyAndPassword(),d.getPasswordAuthenticationKey(f.username,l.getPassword(),v,y,function(P,J){P&&c.onFailure(P);var $=h.getNowString(),se=tt.Buffer.concat([tt.Buffer.from(f.pool.getUserPoolName(),"utf8"),tt.Buffer.from(f.username,"utf8"),tt.Buffer.from(K.SECRET_BLOCK,"base64"),tt.Buffer.from($,"utf8")]),X=new tl.Sha256(J);X.update(se);var W=X.digestSync(),L=tt.Buffer.from(W).toString("base64"),Z={};Z.USERNAME=f.username,Z.PASSWORD_CLAIM_SECRET_BLOCK=K.SECRET_BLOCK,Z.TIMESTAMP=$,Z.PASSWORD_CLAIM_SIGNATURE=L,f.deviceKey!=null&&(Z.DEVICE_KEY=f.deviceKey);var ue=function(le,oe){return f.client.request("RespondToAuthChallenge",le,function(Ae,j){return Ae&&Ae.code==="ResourceNotFoundException"&&Ae.message.toLowerCase().indexOf("device")!==-1?(Z.DEVICE_KEY=null,f.deviceKey=null,f.randomPassword=null,f.deviceGroupKey=null,f.clearCachedDeviceKeyAndPassword(),ue(le,oe)):oe(Ae,j)})},ne={ChallengeName:"PASSWORD_VERIFIER",ClientId:f.pool.getClientId(),ChallengeResponses:Z,Session:I.Session,ClientMetadata:S};f.getUserContextData()&&(ne.UserContextData=f.getUserContextData()),ue(ne,function(ee,le){return ee?c.onFailure(ee):f.authenticateUserInternal(le,d,c)})})})})},r.authenticateUserPlainUsernamePassword=function(l,c){var f=this,d={};if(d.USERNAME=this.username,d.PASSWORD=l.getPassword(),!d.PASSWORD){c.onFailure(new Error("PASSWORD parameter is required"));return}var h=new Ki(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(d.DEVICE_KEY=this.deviceKey);var v=Object.keys(l.getValidationData()).length!==0?l.getValidationData():l.getClientMetadata(),y={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:d,ClientMetadata:v};this.getUserContextData(this.username)&&(y.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",y,function(w,A){return w?c.onFailure(w):f.authenticateUserInternal(A,h,c)})},r.authenticateUserInternal=function(l,c,f){var d=this,h=l.ChallengeName,v=l.ChallengeParameters;if(h==="SMS_MFA")return this.Session=l.Session,f.mfaRequired(h,v);if(h==="SELECT_MFA_TYPE")return this.Session=l.Session,f.selectMFAType(h,v);if(h==="MFA_SETUP")return this.Session=l.Session,f.mfaSetup(h,v);if(h==="SOFTWARE_TOKEN_MFA")return this.Session=l.Session,f.totpRequired(h,v);if(h==="CUSTOM_CHALLENGE")return this.Session=l.Session,f.customChallenge(v);if(h==="NEW_PASSWORD_REQUIRED"){this.Session=l.Session;var y=null,w=null,A=[],U=c.getNewPasswordRequiredChallengeUserAttributePrefix();if(v&&(y=JSON.parse(l.ChallengeParameters.userAttributes),w=JSON.parse(l.ChallengeParameters.requiredAttributes)),w)for(var S=0;S<w.length;S++)A[S]=w[S].substr(U.length);return f.newPasswordRequired(y,A)}if(h==="DEVICE_SRP_AUTH"){this.Session=l.Session,this.getDeviceResponse(f);return}this.signInUserSession=this.getCognitoUserSession(l.AuthenticationResult),this.challengeName=h,this.cacheTokens();var N=l.AuthenticationResult.NewDeviceMetadata;if(N==null)return f.onSuccess(this.signInUserSession);c.generateHashDevice(l.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,l.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(D){if(D)return f.onFailure(D);var I={Salt:tt.Buffer.from(c.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:tt.Buffer.from(c.getVerifierDevices(),"hex").toString("base64")};d.verifierDevices=I.PasswordVerifier,d.deviceGroupKey=N.DeviceGroupKey,d.randomPassword=c.getRandomPassword(),d.client.request("ConfirmDevice",{DeviceKey:N.DeviceKey,AccessToken:d.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:I,DeviceName:w0},function(K,P){return K?f.onFailure(K):(d.deviceKey=l.AuthenticationResult.NewDeviceMetadata.DeviceKey,d.cacheDeviceKeyAndPassword(),P.UserConfirmationNecessary===!0?f.onSuccess(d.signInUserSession,P.UserConfirmationNecessary):f.onSuccess(d.signInUserSession))})})},r.completeNewPasswordChallenge=function(l,c,f,d){var h=this;if(!l)return f.onFailure(new Error("New password is required."));var v=new Ki(this.pool.getUserPoolName()),y=v.getNewPasswordRequiredChallengeUserAttributePrefix(),w={};c&&Object.keys(c).forEach(function(U){w[y+U]=c[U]}),w.NEW_PASSWORD=l,w.USERNAME=this.username;var A={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:w,Session:this.Session,ClientMetadata:d};this.getUserContextData()&&(A.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",A,function(U,S){return U?f.onFailure(U):h.authenticateUserInternal(S,v,f)})},r.getDeviceResponse=function(l,c){var f=this,d=new Ki(this.deviceGroupKey),h=new S0,v={};v.USERNAME=this.username,v.DEVICE_KEY=this.deviceKey,d.getLargeAValue(function(y,w){y&&l.onFailure(y),v.SRP_A=w.toString(16);var A={ChallengeName:"DEVICE_SRP_AUTH",ClientId:f.pool.getClientId(),ChallengeResponses:v,ClientMetadata:c,Session:f.Session};f.getUserContextData()&&(A.UserContextData=f.getUserContextData()),f.client.request("RespondToAuthChallenge",A,function(U,S){if(U)return l.onFailure(U);var N=S.ChallengeParameters,D=new de(N.SRP_B,16),I=new de(N.SALT,16);d.getPasswordAuthenticationKey(f.deviceKey,f.randomPassword,D,I,function(K,P){if(K)return l.onFailure(K);var J=h.getNowString(),$=tt.Buffer.concat([tt.Buffer.from(f.deviceGroupKey,"utf8"),tt.Buffer.from(f.deviceKey,"utf8"),tt.Buffer.from(N.SECRET_BLOCK,"base64"),tt.Buffer.from(J,"utf8")]),se=new tl.Sha256(P);se.update($);var X=se.digestSync(),W=tt.Buffer.from(X).toString("base64"),L={};L.USERNAME=f.username,L.PASSWORD_CLAIM_SECRET_BLOCK=N.SECRET_BLOCK,L.TIMESTAMP=J,L.PASSWORD_CLAIM_SIGNATURE=W,L.DEVICE_KEY=f.deviceKey;var Z={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:f.pool.getClientId(),ChallengeResponses:L,Session:S.Session};f.getUserContextData()&&(Z.UserContextData=f.getUserContextData()),f.client.request("RespondToAuthChallenge",Z,function(ue,ne){return ue?l.onFailure(ue):(f.signInUserSession=f.getCognitoUserSession(ne.AuthenticationResult),f.cacheTokens(),l.onSuccess(f.signInUserSession))})})})})},r.confirmRegistration=function(l,c,f,d){var h={ClientId:this.pool.getClientId(),ConfirmationCode:l,Username:this.username,ForceAliasCreation:c,ClientMetadata:d};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",h,function(v){return v?f(v,null):f(null,"SUCCESS")})},r.sendCustomChallengeAnswer=function(l,c,f){var d=this,h={};h.USERNAME=this.username,h.ANSWER=l;var v=new Ki(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),this.deviceKey!=null&&(h.DEVICE_KEY=this.deviceKey);var y={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:h,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:f};this.getUserContextData()&&(y.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",y,function(w,A){return w?c.onFailure(w):d.authenticateUserInternal(A,v,c)})},r.sendMFACode=function(l,c,f,d){var h=this,v={};v.USERNAME=this.username,v.SMS_MFA_CODE=l;var y=f||"SMS_MFA";y==="SOFTWARE_TOKEN_MFA"&&(v.SOFTWARE_TOKEN_MFA_CODE=l),this.deviceKey!=null&&(v.DEVICE_KEY=this.deviceKey);var w={ChallengeName:y,ChallengeResponses:v,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:d};this.getUserContextData()&&(w.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",w,function(A,U){if(A)return c.onFailure(A);var S=U.ChallengeName;if(S==="DEVICE_SRP_AUTH"){h.getDeviceResponse(c);return}if(h.signInUserSession=h.getCognitoUserSession(U.AuthenticationResult),h.cacheTokens(),U.AuthenticationResult.NewDeviceMetadata==null)return c.onSuccess(h.signInUserSession);var N=new Ki(h.pool.getUserPoolName());N.generateHashDevice(U.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,U.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(D){if(D)return c.onFailure(D);var I={Salt:tt.Buffer.from(N.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:tt.Buffer.from(N.getVerifierDevices(),"hex").toString("base64")};h.verifierDevices=I.PasswordVerifier,h.deviceGroupKey=U.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,h.randomPassword=N.getRandomPassword(),h.client.request("ConfirmDevice",{DeviceKey:U.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:h.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:I,DeviceName:w0},function(K,P){return K?c.onFailure(K):(h.deviceKey=U.AuthenticationResult.NewDeviceMetadata.DeviceKey,h.cacheDeviceKeyAndPassword(),P.UserConfirmationNecessary===!0?c.onSuccess(h.signInUserSession,P.UserConfirmationNecessary):c.onSuccess(h.signInUserSession))})})})},r.changePassword=function(l,c,f,d){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return f(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:l,ProposedPassword:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:d},function(h){return h?f(h,null):f(null,"SUCCESS")})},r.enableMFA=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);var c=[],f={DeliveryMedium:"SMS",AttributeName:"phone_number"};c.push(f),this.client.request("SetUserSettings",{MFAOptions:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?l(d,null):l(null,"SUCCESS")})},r.setUserMfaPreference=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:l,SoftwareTokenMfaSettings:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?f(d,null):f(null,"SUCCESS")})},r.disableMFA=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);var c=[];this.client.request("SetUserSettings",{MFAOptions:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?l(f,null):l(null,"SUCCESS")})},r.deleteUser=function(l,c){var f=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return l(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:c},function(d){return d?l(d,null):(f.clearCachedUser(),l(null,"SUCCESS"))})},r.updateAttributes=function(l,c,f){var d=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return c(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:l,ClientMetadata:f},function(h,v){return h?c(h,null):d.getUserData(function(){return c(null,"SUCCESS",v)},{bypassCache:!0})})},r.getUserAttributes=function(l){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return l(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c,f){if(c)return l(c,null);for(var d=[],h=0;h<f.UserAttributes.length;h++){var v={Name:f.UserAttributes[h].Name,Value:f.UserAttributes[h].Value},y=new Dg(v);d.push(y)}return l(null,d)})},r.getMFAOptions=function(l){if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return l(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(c,f){return c?l(c,null):l(null,f.MFAOptions)})},r.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},r.refreshSessionIfPossible=function(l){var c=this;return l===void 0&&(l={}),new Promise(function(f){var d=c.signInUserSession.getRefreshToken();d&&d.getToken()?c.refreshSession(d,f,l.clientMetadata):f()})},r.getUserData=function(l,c){var f=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return this.clearCachedUserData(),l(new Error("User is not authenticated"),null);var d=this.getUserDataFromCache();if(!d){this.fetchUserData().then(function(h){l(null,h)}).catch(l);return}if(this.isFetchUserDataAndTokenRequired(c)){this.fetchUserData().then(function(h){return f.refreshSessionIfPossible(c).then(function(){return h})}).then(function(h){return l(null,h)}).catch(l);return}try{l(null,JSON.parse(d));return}catch(h){this.clearCachedUserData(),l(h,null);return}},r.getUserDataFromCache=function(){var l=this.storage.getItem(this.userDataKey);return l},r.isFetchUserDataAndTokenRequired=function(l){var c=l||{},f=c.bypassCache,d=f===void 0?!1:f;return d},r.fetchUserData=function(){var l=this;return this.createGetUserRequest().then(function(c){return l.cacheUserData(c),c})},r.deleteAttributes=function(l,c){var f=this;if(!(this.signInUserSession!=null&&this.signInUserSession.isValid()))return c(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:l,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?c(d,null):f.getUserData(function(){return c(null,"SUCCESS")},{bypassCache:!0})})},r.resendConfirmationCode=function(l,c){var f={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:c};this.client.request("ResendConfirmationCode",f,function(d,h){return d?l(d,null):l(null,h)})},r.getSession=function(l,c){if(c===void 0&&(c={}),this.username==null)return l(new Error("Username is null. Cannot retrieve a new session"),null);if(this.signInUserSession!=null&&this.signInUserSession.isValid())return l(null,this.signInUserSession);var f="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,d=f+".idToken",h=f+".accessToken",v=f+".refreshToken",y=f+".clockDrift";if(this.storage.getItem(d)){var w=new y0({IdToken:this.storage.getItem(d)}),A=new v0({AccessToken:this.storage.getItem(h)}),U=new qc({RefreshToken:this.storage.getItem(v)}),S=parseInt(this.storage.getItem(y),0)||0,N={IdToken:w,AccessToken:A,RefreshToken:U,ClockDrift:S},D=new b0(N);if(D.isValid())return this.signInUserSession=D,l(null,this.signInUserSession);if(!U.getToken())return l(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(U,l,c.clientMetadata)}else l(new Error("Local storage is missing an ID Token, Please authenticate"),null)},r.refreshSession=function(l,c,f){var d=this,h=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(c):c,v={};v.REFRESH_TOKEN=l.getToken();var y="CognitoIdentityServiceProvider."+this.pool.getClientId(),w=y+".LastAuthUser";if(this.storage.getItem(w)){this.username=this.storage.getItem(w);var A=y+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(A),v.DEVICE_KEY=this.deviceKey}var U={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:v,ClientMetadata:f};this.getUserContextData()&&(U.UserContextData=this.getUserContextData()),this.client.requestWithRetry("InitiateAuth",U,function(S,N){if(S)return S.code==="NotAuthorizedException"&&d.clearCachedUser(),h(S,null);if(N){var D=N.AuthenticationResult;return Object.prototype.hasOwnProperty.call(D,"RefreshToken")||(D.RefreshToken=l.getToken()),d.signInUserSession=d.getCognitoUserSession(D),d.cacheTokens(),h(null,d.signInUserSession)}})},r.cacheTokens=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId(),c=l+"."+this.username+".idToken",f=l+"."+this.username+".accessToken",d=l+"."+this.username+".refreshToken",h=l+"."+this.username+".clockDrift",v=l+".LastAuthUser";this.storage.setItem(c,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(f,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(d,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(h,""+this.signInUserSession.getClockDrift()),this.storage.setItem(v,this.username)},r.cacheUserData=function(l){this.storage.setItem(this.userDataKey,JSON.stringify(l))},r.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},r.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},r.cacheDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.setItem(c,this.deviceKey),this.storage.setItem(f,this.randomPassword),this.storage.setItem(d,this.deviceGroupKey)},r.getCachedDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.getItem(c)&&(this.deviceKey=this.storage.getItem(c),this.randomPassword=this.storage.getItem(f),this.deviceGroupKey=this.storage.getItem(d))},r.clearCachedDeviceKeyAndPassword=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=l+".deviceKey",f=l+".randomPasswordKey",d=l+".deviceGroupKey";this.storage.removeItem(c),this.storage.removeItem(f),this.storage.removeItem(d)},r.clearCachedTokens=function(){var l="CognitoIdentityServiceProvider."+this.pool.getClientId(),c=l+"."+this.username+".idToken",f=l+"."+this.username+".accessToken",d=l+"."+this.username+".refreshToken",h=l+".LastAuthUser",v=l+"."+this.username+".clockDrift";this.storage.removeItem(c),this.storage.removeItem(f),this.storage.removeItem(d),this.storage.removeItem(h),this.storage.removeItem(v)},r.getCognitoUserSession=function(l){var c=new y0(l),f=new v0(l),d=new qc(l),h={IdToken:c,AccessToken:f,RefreshToken:d};return new b0(h)},r.forgotPassword=function(l,c){var f={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:c};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",f,function(d,h){return d?l.onFailure(d):typeof l.inputVerificationCode=="function"?l.inputVerificationCode(h):l.onSuccess(h)})},r.confirmPassword=function(l,c,f,d){var h={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:l,Password:c,ClientMetadata:d};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",h,function(v){return v?f.onFailure(v):f.onSuccess("SUCCESS")})},r.getAttributeVerificationCode=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:l,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:f},function(d,h){return d?c.onFailure(d):typeof c.inputVerificationCode=="function"?c.inputVerificationCode(h):c.onSuccess("SUCCESS")})},r.verifyAttribute=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:l,Code:c,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(d){return d?f.onFailure(d):f.onSuccess("SUCCESS")})},r.getDevice=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(c,f){return c?l.onFailure(c):l.onSuccess(f)})},r.forgetSpecificDevice=function(l,c){if(this.signInUserSession==null||!this.signInUserSession.isValid())return c.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:l},function(f){return f?c.onFailure(f):c.onSuccess("SUCCESS")})},r.forgetDevice=function(l){var c=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:l.onFailure,onSuccess:function(d){return c.deviceKey=null,c.deviceGroupKey=null,c.randomPassword=null,c.clearCachedDeviceKeyAndPassword(),l.onSuccess(d)}})},r.setDeviceStatusRemembered=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(c){return c?l.onFailure(c):l.onSuccess("SUCCESS")})},r.setDeviceStatusNotRemembered=function(l){if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(c){return c?l.onFailure(c):l.onSuccess("SUCCESS")})},r.listDevices=function(l,c,f){if(this.signInUserSession==null||!this.signInUserSession.isValid())return f.onFailure(new Error("User is not authenticated"));var d={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:l};c&&(d.PaginationToken=c),this.client.request("ListDevices",d,function(h,v){return h?f.onFailure(h):f.onSuccess(v)})},r.globalSignOut=function(l){var c=this;if(this.signInUserSession==null||!this.signInUserSession.isValid())return l.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f){return f?l.onFailure(f):(c.clearCachedUser(),l.onSuccess("SUCCESS"))})},r.signOut=function(l){var c=this;if(!l||typeof l!="function"){this.cleanClientData();return}this.getSession(function(f,d){if(f)return l(f);c.revokeTokens(function(h){c.cleanClientData(),l(h)})})},r.revokeTokens=function(l){if(l===void 0&&(l=function(){}),typeof l!="function")throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession){var c=new Error("User is not authenticated");return l(c)}if(!this.signInUserSession.getAccessToken()){var f=new Error("No Access token available");return l(f)}var d=this.signInUserSession.getRefreshToken().getToken(),h=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(h)&&d)return this.revokeToken({token:d,callback:l});l()},r.isSessionRevocable=function(l){if(l&&typeof l.decodePayload=="function")try{var c=l.decodePayload(),f=c.origin_jti;return!!f}catch{}return!1},r.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},r.revokeToken=function(l){var c=l.token,f=l.callback;this.client.requestWithRetry("RevokeToken",{Token:c,ClientId:this.pool.getClientId()},function(d){if(d)return f(d);f()})},r.sendMFASelectionAnswer=function(l,c){var f=this,d={};d.USERNAME=this.username,d.ANSWER=l;var h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:d,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(h.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",h,function(v,y){if(v)return c.onFailure(v);if(f.Session=y.Session,l==="SMS_MFA")return c.mfaRequired(y.ChallengeName,y.ChallengeParameters);if(l==="SOFTWARE_TOKEN_MFA")return c.totpRequired(y.ChallengeName,y.ChallengeParameters)})},r.getUserContextData=function(){var l=this.pool;return l.getUserContextData(this.username)},r.associateSoftwareToken=function(l){var c=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(f,d){return f?l.onFailure(f):l.associateSecretCode(d.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(f,d){return f?l.onFailure(f):(c.Session=d.Session,l.associateSecretCode(d.SecretCode))})},r.verifySoftwareToken=function(l,c,f){var d=this;this.signInUserSession!=null&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:l,FriendlyDeviceName:c},function(h,v){return h?f.onFailure(h):f.onSuccess(v)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:l,FriendlyDeviceName:c},function(h,v){if(h)return f.onFailure(h);d.Session=v.Session;var y={};y.USERNAME=d.username;var w={ChallengeName:"MFA_SETUP",ClientId:d.pool.getClientId(),ChallengeResponses:y,Session:d.Session};d.getUserContextData()&&(w.UserContextData=d.getUserContextData()),d.client.request("RespondToAuthChallenge",w,function(A,U){return A?f.onFailure(A):(d.signInUserSession=d.getCognitoUserSession(U.AuthenticationResult),d.cacheTokens(),f.onSuccess(d.signInUserSession))})})},i})();function m2(i,r){return r=r||{},new Promise(function(s,l){var c=new XMLHttpRequest,f=[],d=[],h={},v=function(){return{ok:(c.status/100|0)==2,statusText:c.statusText,status:c.status,url:c.responseURL,text:function(){return Promise.resolve(c.responseText)},json:function(){return Promise.resolve(c.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([c.response]))},clone:v,headers:{keys:function(){return f},entries:function(){return d},get:function(w){return h[w.toLowerCase()]},has:function(w){return w.toLowerCase()in h}}}};for(var y in c.open(r.method||"get",i,!0),c.onload=function(){c.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(w,A,U){f.push(A=A.toLowerCase()),d.push([A,U]),h[A]=h[A]?h[A]+","+U:U}),s(v())},c.onerror=l,c.withCredentials=r.credentials=="include",r.headers)c.setRequestHeader(y,r.headers[y]);c.send(r.body||null)})}const g2=Object.freeze(Object.defineProperty({__proto__:null,default:m2},Symbol.toStringTag,{value:"Module"})),x0=Vc(g2);var tc,E0;function p2(){return E0||(E0=1,tc=self.fetch||(self.fetch=x0.default||x0)),tc}p2();function Gi(){}Gi.prototype.userAgent=u2();var v2=function(r){var s=Gi.category?" "+Gi.category:"",l=Gi.framework?" framework/"+Gi.framework:"",c=""+Gi.prototype.userAgent+s+l;return c};function y2(i,r){i.prototype=Object.create(r.prototype),i.prototype.constructor=i,il(i,r)}function kc(i){var r=typeof Map=="function"?new Map:void 0;return kc=function(l){if(l===null||!S2(l))return l;if(typeof l!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(l))return r.get(l);r.set(l,c)}function c(){return b2(l,arguments,Lc(this).constructor)}return c.prototype=Object.create(l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),il(c,l)},kc(i)}function b2(i,r,s){if(Ng())return Reflect.construct.apply(null,arguments);var l=[null];l.push.apply(l,r);var c=new(i.bind.apply(i,l));return s&&il(c,s.prototype),c}function Ng(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ng=function(){return!!i})()}function S2(i){try{return Function.toString.call(i).indexOf("[native code]")!==-1}catch{return typeof i=="function"}}function il(i,r){return il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,l){return s.__proto__=l,s},il(i,r)}function Lc(i){return Lc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Lc(i)}var w2=(function(i){function r(s,l,c,f){var d;return d=i.call(this,s)||this,d.code=l,d.name=c,d.statusCode=f,d}return y2(r,i),r})(kc(Error)),x2=(function(){function i(s,l,c){this.endpoint=l||"https://cognito-idp."+s+".amazonaws.com/";var f=c||{},d=f.credentials;this.fetchOptions=d?{credentials:d}:{}}var r=i.prototype;return r.promisifyRequest=function(l,c){var f=this;return new Promise(function(d,h){f.request(l,c,function(v,y){v?h(new w2(v.message,v.code,v.name,v.statusCode)):d(y)})})},r.requestWithRetry=function(l,c,f){var d=this,h=5*1e3;T2(function(v){return new Promise(function(y,w){d.request(l,v,function(A,U){A?w(A):y(U)})})},[c],h).then(function(v){return f(null,v)}).catch(function(v){return f(v)})},r.request=function(l,c,f){var d={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+l,"X-Amz-User-Agent":v2(),"Cache-Control":"no-store"},h=Object.assign({},this.fetchOptions,{headers:d,method:"POST",mode:"cors",body:JSON.stringify(c)}),v;fetch(this.endpoint,h).then(function(y){return v=y,y},function(y){throw y instanceof TypeError?new Error("Network error"):y}).then(function(y){return y.json().catch(function(){return{}})}).then(function(y){if(v.ok)return f(null,y);var w=(y.__type||y.code).split("#").pop(),A=new Error(y.message||y.Message||null);return A.name=w,A.code=w,f(A)}).catch(function(y){if(v&&v.headers&&v.headers.get("x-amzn-errortype"))try{var w=v.headers.get("x-amzn-errortype").split(":")[0],A=new Error(v.status?v.status.toString():null);return A.code=w,A.name=w,A.statusCode=v.status,f(A)}catch{return f(y)}else y instanceof Error&&y.message==="Network error"&&(y.code="NetworkError");return f(y)})},i})(),ws={debug:function(){}},E2=function(r){var s="nonRetryable";return r&&r[s]};function Mg(i,r,s,l){if(l===void 0&&(l=1),typeof i!="function")throw Error("functionToRetry must be a function");return ws.debug(i.name+" attempt #"+l+" with args: "+JSON.stringify(r)),i.apply(void 0,r).catch(function(c){if(ws.debug("error on "+i.name,c),E2(c))throw ws.debug(i.name+" non retryable error",c),c;var f=s(l,r,c);if(ws.debug(i.name+" retrying in "+f+" ms"),f!==!1)return new Promise(function(d){return setTimeout(d,f)}).then(function(){return Mg(i,r,s,l+1)});throw c})}function A2(i){var r=100,s=100;return function(l){var c=Math.pow(2,l)*r+s*Math.random();return c>i?!1:c}}function T2(i,r,s){return Mg(i,r,A2(s))}var C2=55,U2=(function(){function i(s,l){var c=s||{},f=c.UserPoolId,d=c.ClientId,h=c.endpoint,v=c.fetchOptions,y=c.AdvancedSecurityDataCollectionFlag;if(!f||!d)throw new Error("Both UserPoolId and ClientId are required.");if(f.length>C2||!/^[\w-]+_[0-9a-zA-Z]+$/.test(f))throw new Error("Invalid UserPoolId format.");var w=f.split("_")[0];this.userPoolId=f,this.clientId=d,this.client=new x2(w,h,v),this.advancedSecurityDataCollectionFlag=y!==!1,this.storage=s.Storage||new Rg().getStorage(),l&&(this.wrapRefreshSessionCallback=l)}var r=i.prototype;return r.getUserPoolId=function(){return this.userPoolId},r.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},r.getClientId=function(){return this.clientId},r.signUp=function(l,c,f,d,h,v){var y=this,w={ClientId:this.clientId,Username:l,Password:c,UserAttributes:f,ValidationData:d,ClientMetadata:v};this.getUserContextData(l)&&(w.UserContextData=this.getUserContextData(l)),this.client.request("SignUp",w,function(A,U){if(A)return h(A,null);var S={Username:l,Pool:y,Storage:y.storage},N={user:new al(S),userConfirmed:U.UserConfirmed,userSub:U.UserSub,codeDeliveryDetails:U.CodeDeliveryDetails};return h(null,N)})},r.getCurrentUser=function(){var l="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",c=this.storage.getItem(l);if(c){var f={Username:c,Pool:this,Storage:this.storage};return new al(f)}return null},r.getUserContextData=function(l){if(!(typeof AmazonCognitoAdvancedSecurityData>"u")){var c=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var f=c.getData(l,this.userPoolId,this.clientId);if(f){var d={EncodedData:f};return d}}return{}}},i})(),nc={exports:{}};var A0;function _2(){return A0||(A0=1,(function(i,r){(function(s){var l;if(i.exports=s(),l=!0,!l){var c=window.Cookies,f=window.Cookies=s();f.noConflict=function(){return window.Cookies=c,f}}})(function(){function s(){for(var f=0,d={};f<arguments.length;f++){var h=arguments[f];for(var v in h)d[v]=h[v]}return d}function l(f){return f.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function c(f){function d(){}function h(y,w,A){if(!(typeof document>"u")){A=s({path:"/"},d.defaults,A),typeof A.expires=="number"&&(A.expires=new Date(new Date*1+A.expires*864e5)),A.expires=A.expires?A.expires.toUTCString():"";try{var U=JSON.stringify(w);/^[\{\[]/.test(U)&&(w=U)}catch{}w=f.write?f.write(w,y):encodeURIComponent(String(w)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),y=encodeURIComponent(String(y)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var S="";for(var N in A)A[N]&&(S+="; "+N,A[N]!==!0&&(S+="="+A[N].split(";")[0]));return document.cookie=y+"="+w+S}}function v(y,w){if(!(typeof document>"u")){for(var A={},U=document.cookie?document.cookie.split("; "):[],S=0;S<U.length;S++){var N=U[S].split("="),D=N.slice(1).join("=");!w&&D.charAt(0)==='"'&&(D=D.slice(1,-1));try{var I=l(N[0]);if(D=(f.read||f)(D,I)||l(D),w)try{D=JSON.parse(D)}catch{}if(A[I]=D,y===I)break}catch{}}return y?A[y]:A}}return d.set=h,d.get=function(y){return v(y,!1)},d.getJSON=function(y){return v(y,!0)},d.remove=function(y,w){h(y,"",s(w,{expires:-1}))},d.defaults={},d.withConverter=c,d}return c(function(){})})})(nc)),nc.exports}_2();const gn=new U2({UserPoolId:"__HEADROOM_USER_POOL_ID__",ClientId:"__HEADROOM_USER_POOL_CLIENT_ID__"});function Ns(i,r){const s=i.getIdToken().decodePayload();return{accessToken:i.getAccessToken().getJwtToken(),idToken:i.getIdToken().getJwtToken(),refreshToken:i.getRefreshToken().getToken(),expiresAt:i.getAccessToken().getExpiration()*1e3,email:s.email,sub:r.getUsername()}}function D2(i,r){const s=new al({Username:i,Pool:gn}),l=new Db({Username:i,Password:r});return new Promise((c,f)=>{s.authenticateUser(l,{onSuccess(d){c(Ns(d,s))},onFailure(d){f(d)},newPasswordRequired(){c({challenge:"NEW_PASSWORD_REQUIRED",user:s})},totpRequired(){c({challenge:"SOFTWARE_TOKEN_MFA",user:s})}})})}function R2(i,r){return new Promise((s,l)=>{i.completeNewPasswordChallenge(r,{},{onSuccess(c){s(Ns(c,i))},onFailure(c){l(c)}})})}function Bg(i){const r=gn.getCurrentUser();if(!r)return Promise.reject(new Error("No current user"));const s=new qc({RefreshToken:i});return new Promise((l,c)=>{r.refreshSession(s,(f,d)=>{if(f){c(f);return}l(Ns(d,r))})})}function N2(i,r){const s=gn.getCurrentUser();return s?new Promise((l,c)=>{s.getSession(f=>{if(f){c(f);return}s.changePassword(i,r,d=>{if(d){c(d);return}l()})})}):Promise.reject(new Error("No current user"))}function T0(i){const r=gn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}const f=[new Dg({Name:"email",Value:i})];r.updateAttributes(f,d=>{if(d){l(d);return}s()})})}):Promise.reject(new Error("No current user"))}function M2(i){const r=gn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}r.verifyAttribute("email",i,{onSuccess(){s()},onFailure(f){l(f)}})})}):Promise.reject(new Error("No current user"))}function B2(){const i=gn.getCurrentUser();return i?new Promise((r,s)=>{i.getSession(l=>{if(l){s(l);return}i.associateSoftwareToken({associateSecretCode(c){r(c)},onFailure(c){s(c)}})})}):Promise.reject(new Error("No current user"))}function C0(i){const r=gn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}r.verifySoftwareToken(i,"Headroom CMS",{onSuccess(){s()},onFailure(f){l(f)}})})}):Promise.reject(new Error("No current user"))}function U0(i){const r=gn.getCurrentUser();return r?new Promise((s,l)=>{r.getSession(c=>{if(c){l(c);return}const f={PreferredMfa:i,Enabled:i};r.setUserMfaPreference(null,f,d=>{if(d){l(d);return}s()})})}):Promise.reject(new Error("No current user"))}function z2(){const i=gn.getCurrentUser();return i?new Promise((r,s)=>{i.getSession(l=>{if(l){s(l);return}i.getUserData((c,f)=>{if(c){s(c);return}r(f?.PreferredMfaSetting==="SOFTWARE_TOKEN_MFA")})})}):Promise.reject(new Error("No current user"))}function O2(i,r){return new Promise((s,l)=>{i.sendMFACode(r,{onSuccess(c){s(Ns(c,i))},onFailure(c){l(c)}},"SOFTWARE_TOKEN_MFA")})}function rE(i){const r=new al({Username:i,Pool:gn});return new Promise((s,l)=>{r.forgotPassword({onSuccess(){s()},onFailure(c){l(c)}})})}function lE(i,r,s){const l=new al({Username:i,Pool:gn});return new Promise((c,f)=>{l.confirmPassword(r,s,{onSuccess(){c()},onFailure(d){f(d)}})})}function j2(){const i=gn.getCurrentUser();i&&i.signOut()}const Qc="headroom_auth";function Qi(i){localStorage.setItem(Qc,JSON.stringify(i))}function Wa(){const i=localStorage.getItem(Qc);if(!i)return null;try{return JSON.parse(i)}catch{return null}}function _s(){localStorage.removeItem(Qc)}const zg=300*1e3;function q2(){const i=Wa();return i?Date.now()>=i.expiresAt-zg:!0}function k2(){return Wa()?.accessToken??null}let Cs=null;function Jr(i){Hc();const r=Wa();if(!r)return;const s=r.expiresAt-Date.now()-zg;if(s<=0){i();return}Cs=setTimeout(()=>{i()},s)}function Hc(){Cs!==null&&(clearTimeout(Cs),Cs=null)}const Og=ve.createContext(null);function L2(){const i=Wa();return i?Date.now()<i.expiresAt?{status:"authenticated",user:{sub:i.sub,email:i.email},accessToken:i.accessToken}:{status:"loading",user:null,accessToken:null}:{status:"unauthenticated",user:null,accessToken:null}}function H2({children:i}){const[r,s]=ve.useState(L2),l=ve.useRef(void 0),c=ve.useCallback(async()=>{const w=Wa();if(!w?.refreshToken){s({status:"unauthenticated",user:null,accessToken:null});return}try{const A=await Bg(w.refreshToken);Qi(A),s({status:"authenticated",user:{sub:A.sub,email:A.email},accessToken:A.accessToken}),Jr(()=>l.current())}catch{_s(),s({status:"unauthenticated",user:null,accessToken:null})}},[]);ve.useEffect(()=>{l.current=c}),ve.useEffect(()=>(r.status==="loading"?c():r.status==="authenticated"&&Jr(()=>l.current()),()=>Hc()),[]);const f=ve.useCallback(async(w,A)=>{const U=await D2(w,A);return"challenge"in U?{challenge:U.challenge,cognitoUser:U.user}:(Qi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Jr(()=>l.current()),{})},[]),d=ve.useCallback(async(w,A)=>{const U=await R2(w,A);Qi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Jr(()=>l.current())},[]),h=ve.useCallback(async(w,A)=>{const U=await O2(w,A);Qi(U),s({status:"authenticated",user:{sub:U.sub,email:U.email},accessToken:U.accessToken}),Jr(()=>l.current())},[]),v=ve.useCallback(w=>{s(U=>U.user?{...U,user:{...U.user,email:w}}:U);const A=Wa();A&&Qi({...A,email:w}),c()},[c]),y=ve.useCallback(()=>{j2(),_s(),Hc(),s({status:"unauthenticated",user:null,accessToken:null})},[]);return x.jsx(Og.Provider,{value:{...r,login:f,completeNewPassword:d,respondToMfaChallenge:h,logout:y,updateUserEmail:v},children:i})}var F2=class extends Error{status;code;constructor(i,r,s){super(s||r),this.name="HeadroomApiError",this.status=i,this.code=r}get detail(){return this.message}},V2={".jpg":"image/jpeg",".jpeg":"image/jpeg",".png":"image/png",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml",".mp4":"video/mp4",".pdf":"application/pdf"};function K2(i){const r=i.includes(".")?"."+i.split(".").pop().toLowerCase():"";return V2[r]||"application/octet-stream"}var Y2=class{baseUrl;tokenProvider;constructor(i,r){this.baseUrl=i.replace(/\/+$/,""),this.tokenProvider=r}async apiFetch(i,r){const l={"Content-Type":"application/json",Authorization:`Bearer ${await this.tokenProvider.getToken()}`,...r?.headers},c=await fetch(`${this.baseUrl}${i}`,{...r,headers:l});if(c.status===401&&this.tokenProvider.onUnauthorized){const f=await this.tokenProvider.onUnauthorized();l.Authorization=`Bearer ${f}`;const d=await fetch(`${this.baseUrl}${i}`,{...r,headers:l});return this.handleResponse(d)}return this.handleResponse(c)}async handleResponse(i){if(!i.ok){let r="UNKNOWN",s=`HTTP ${i.status}`;try{const l=await i.json();r=l.code||l.error||r,s=l.message||l.error||s}catch{}throw new F2(i.status,r,s)}if(i.status!==204)return i.json()}async listSites(i=!1){const r=i?"?includeArchived=true":"";return(await this.apiFetch(`/v1/admin/sites${r}`)).items}async createSite(i,r){return this.apiFetch("/v1/admin/sites",{method:"POST",body:JSON.stringify({host:i,name:r})})}async getSite(i){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`)}async updateSite(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify(r)})}async deleteSite(i){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}`,{method:"DELETE"})}async updateSiteAdmins(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/admins`,{method:"PUT",body:JSON.stringify({admins:r})})}async purgeSite(i){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/purge`,{method:"POST"})}async inviteToSite(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/invite`,{method:"POST",body:JSON.stringify({email:r,adminUrl:s})})}async listCollections(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections`)).collections}async createCollection(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections`,{method:"POST",body:JSON.stringify(r)})}async getCollection(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`)}async updateCollection(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`,{method:"PUT",body:JSON.stringify(s)})}async deleteCollection(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/collections/${encodeURIComponent(r)}`,{method:"DELETE"})}async listBlockTypes(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types`)).blockTypes}async createBlockType(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types`,{method:"POST",body:JSON.stringify(r)})}async getBlockType(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`)}async updateBlockType(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`,{method:"PUT",body:JSON.stringify(s)})}async deleteBlockType(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/block-types/${encodeURIComponent(r)}`,{method:"DELETE"})}async listContent(i,r){const s=new URLSearchParams;r?.collection&&s.set("collection",r.collection),r?.q&&s.set("q",r.q),r?.search&&s.set("search",r.search),r?.tag&&s.set("tag",r.tag),r?.status&&s.set("status",r.status),r?.sort&&s.set("sort",r.sort),r?.relatedTo&&s.set("relatedTo",r.relatedTo),r?.limit&&s.set("limit",String(r.limit)),r?.cursor&&s.set("cursor",r.cursor);const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content${l?`?${l}`:""}`)}async createContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content`,{method:"POST",body:JSON.stringify(r)})}async getContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}`)}async deleteContent(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}`,{method:"DELETE"})}async saveDraft(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/draft`,{method:"PUT",body:JSON.stringify(s)})}async publishContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/publish`,{method:"POST"})}async unpublishContent(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/unpublish`,{method:"POST"})}async discardDraft(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/discard`,{method:"POST"})}async getPublishedContent(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/published`)}async listVersions(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/versions`)}async getVersion(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/versions/${s}`)}async getReferences(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/content/${r}/references`)}async listMedia(i,r){const s=new URLSearchParams;r?.tag&&s.set("tag",r.tag),r?.folderId&&s.set("folderId",r.folderId),r?.q&&s.set("q",r.q),r?.sort&&s.set("sort",r.sort),r?.limit&&s.set("limit",String(r.limit)),r?.cursor&&s.set("cursor",r.cursor);const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media${l?`?${l}`:""}`)}async getMedia(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`)}async updateMedia(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`,{method:"PUT",body:JSON.stringify(s)})}async deleteMedia(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}`,{method:"DELETE"})}async getUploadUrl(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/upload-url`,{method:"POST",body:JSON.stringify(r)})}async completeUpload(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/complete`,{method:"POST",body:JSON.stringify(s)})}async uploadFromUrl(i,r,s,l){const c=await fetch(r);if(!c.ok)throw new Error(`Failed to fetch ${r}: ${c.status}`);const f=new Uint8Array(await c.arrayBuffer());let d=c.headers.get("content-type")?.split(";")[0]?.trim()||"";(!d||d==="application/octet-stream")&&(d=K2(s));const{mediaId:h,uploadUrl:v}=await this.getUploadUrl(i,{filename:s,contentType:d,size:f.length}),y=await fetch(v,{method:"PUT",body:f,headers:{"Content-Type":d}});if(!y.ok)throw new Error(`S3 upload failed: ${y.status}`);return this.completeUpload(i,h,{filename:s,alt:l})}async listMediaFolders(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders`)).items}async createMediaFolder(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders`,{method:"POST",body:JSON.stringify({name:r})})}async updateMediaFolder(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders/${r}`,{method:"PUT",body:JSON.stringify({name:s})})}async deleteMediaFolder(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/folders/${r}`,{method:"DELETE"})}async bulkMediaOperation(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/bulk`,{method:"POST",body:JSON.stringify(r)})}async checkDuplicate(i,r,s){const l=new URLSearchParams({filename:r,size:String(s)});return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/check-duplicate?${l}`)}async getTransformUrl(i,r,s){const l=new URLSearchParams;for(const[c,f]of Object.entries(s))f!==void 0&&l.set(c,String(f));return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/transform-url?${l}`)}async saveTransform(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/save-transform`,{method:"POST",body:JSON.stringify(s)})}async getMediaUsage(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/media/${r}/usage`)}async listApiKeys(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys`)).keys}async createApiKey(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys`,{method:"POST",body:JSON.stringify({label:r})})}async updateApiKey(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys/${r}`,{method:"PUT",body:JSON.stringify({label:s})})}async deleteApiKey(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/api-keys/${r}`,{method:"DELETE"})}async listWebhooks(i){return(await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks`)).webhooks}async createWebhook(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks`,{method:"POST",body:JSON.stringify(r)})}async getWebhook(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`)}async updateWebhook(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`,{method:"PUT",body:JSON.stringify(s)})}async deleteWebhook(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}`,{method:"DELETE"})}async testWebhook(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/test`,{method:"POST"})}async rotateWebhookSecret(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/rotate-secret`,{method:"POST"})}async listWebhookDeliveries(i,r){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries`)}async getWebhookDelivery(i,r,s){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries/${s}`)}async retryDelivery(i,r,s){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/webhooks/${r}/deliveries/${s}/retry`,{method:"POST"})}async listTags(i){return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags`)}async createTag(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags`,{method:"POST",body:JSON.stringify({tag:r})})}async deleteTag(i,r){await this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/tags/${encodeURIComponent(r)}`,{method:"DELETE"})}async listAuditEvents(i,r){const s=new URLSearchParams;r?.action&&s.set("action",r.action),r?.before&&s.set("before",String(r.before));const l=s.toString();return this.apiFetch(`/v1/admin/sites/${encodeURIComponent(i)}/audit${l?`?${l}`:""}`)}async listUsers(){return this.apiFetch("/v1/admin/users")}async deleteUser(i){await this.apiFetch(`/v1/admin/users/${i}`,{method:"DELETE"})}async disableUserMfa(i){await this.apiFetch(`/v1/admin/users/${i}/mfa`,{method:"DELETE"})}async resolveAdmins(i){return this.apiFetch("/v1/admin/users/resolve",{method:"POST",body:JSON.stringify({subs:i})})}async listSuperAdmins(){return this.apiFetch("/v1/admin/super-admins")}async updateSuperAdmins(i){await this.apiFetch("/v1/admin/super-admins",{method:"PUT",body:JSON.stringify({superAdminIds:i})})}};class I2{async getToken(){const r=k2();return!r||q2()?this.refresh():r}async onUnauthorized(){try{return await this.refresh()}catch{throw _s(),window.location.href="/login",new Error("Session expired")}}async refresh(){const r=Wa();if(!r?.refreshToken)throw _s(),window.location.href="/login",new Error("No refresh token");const s=await Bg(r.refreshToken);return Qi(s),s.accessToken}}const jg=ve.createContext(null);function it(){const i=ve.useContext(jg);if(!i)throw new Error("useAdminClient must be used within AdminClientProvider");return i}const G2="__HEADROOM_API_URL__".replace(/\/+$/,"");function Q2({children:i}){const r=ve.useMemo(()=>new Y2(G2,new I2),[]);return x.jsx(jg.Provider,{value:r,children:i})}const X2=new vy({defaultOptions:{queries:{staleTime:0,retry:1,refetchOnWindowFocus:!0}}});function Ms(){const i=ve.useContext(Og);if(!i)throw new Error("useAuth must be used within an AuthProvider");return i}function qg(){return x.jsx("div",{className:"flex h-dvh w-dvw items-center justify-center",children:x.jsxs("div",{className:"flex flex-col items-center gap-4",children:[x.jsx($n,{className:"text-muted-foreground h-8 w-8 animate-spin"}),x.jsx("p",{className:"text-muted-foreground text-sm",children:"Headroom"})]})})}function ac({children:i}){const{status:r}=Ms();return r==="loading"?x.jsx(qg,{}):r==="unauthenticated"?x.jsx(Us,{to:"/login",replace:!0}):x.jsx(x.Fragment,{children:i})}function kg(i=!1){const r=it();return Wn({queryKey:["sites",{includeArchived:i}],queryFn:()=>r.apiFetch(`/v1/admin/sites${i?"?includeArchived=true":""}`)})}function sE(i){const r=it();return Wn({queryKey:["sites",i],queryFn:()=>r.apiFetch(`/v1/admin/sites/${i}`),enabled:!!i})}function oE(){const i=it(),r=zt();return Ot({mutationFn:s=>i.apiFetch("/v1/admin/sites",{method:"POST",body:JSON.stringify(s)}),onSuccess:()=>r.invalidateQueries({queryKey:["sites"]})})}function uE(i){const r=it(),s=zt();return Ot({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}`,{method:"PUT",body:JSON.stringify(l)}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites"]}),s.invalidateQueries({queryKey:["sites",i]})}})}function cE(i){const r=it(),s=zt();return Ot({mutationFn:()=>r.apiFetch(`/v1/admin/sites/${i}`,{method:"DELETE"}),onSuccess:()=>s.invalidateQueries({queryKey:["sites"]})})}function fE(i){const r=it(),s=zt();return Ot({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/admins`,{method:"PUT",body:JSON.stringify(l)}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites",i]})}})}function dE(i){const r=it(),s=zt();return Ot({mutationFn:()=>r.apiFetch(`/v1/admin/sites/${i}/purge`,{method:"POST"}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites"]}),s.invalidateQueries({queryKey:["sites",i]})}})}function hE(i){const r=it(),s=zt();return Ot({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/invite`,{method:"POST",body:JSON.stringify({email:l.email,adminUrl:window.location.origin})}),onSuccess:()=>{s.invalidateQueries({queryKey:["sites",i]}),s.invalidateQueries({queryKey:["users"]})}})}function Z2(i){const r=it();return Wn({queryKey:["sites",i,"collections"],queryFn:async()=>({items:(await r.apiFetch(`/v1/admin/sites/${i}/collections`)).collections}),enabled:!!i})}function mE(i,r){const s=it();return Wn({queryKey:["sites",i,"collections",r],queryFn:()=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`),enabled:!!i&&!!r})}function gE(i){const r=it(),s=zt();return Ot({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/collections`,{method:"POST",body:JSON.stringify(l)}),onSuccess:()=>s.invalidateQueries({queryKey:["sites",i,"collections"]})})}function pE(i,r){const s=it(),l=zt();return Ot({mutationFn:c=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`,{method:"PUT",body:JSON.stringify(c)}),onSuccess:()=>{l.invalidateQueries({queryKey:["sites",i,"collections"]})}})}function vE(i,r){const s=it(),l=zt();return Ot({mutationFn:()=>s.apiFetch(`/v1/admin/sites/${i}/collections/${r}`,{method:"DELETE"}),onSuccess:()=>l.invalidateQueries({queryKey:["sites",i,"collections"]})})}function J2(i){const r=it();return Wn({queryKey:["sites",i,"block-types"],queryFn:async()=>({items:(await r.apiFetch(`/v1/admin/sites/${i}/block-types`)).blockTypes}),enabled:!!i})}function yE(i,r){const s=it();return Wn({queryKey:["sites",i,"block-types",r],queryFn:()=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`),enabled:!!i&&!!r})}function bE(i){const r=it(),s=zt();return Ot({mutationFn:l=>r.apiFetch(`/v1/admin/sites/${i}/block-types`,{method:"POST",body:JSON.stringify(l)}),onSuccess:()=>s.invalidateQueries({queryKey:["sites",i,"block-types"]})})}function SE(i,r){const s=it(),l=zt();return Ot({mutationFn:c=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`,{method:"PUT",body:JSON.stringify(c)}),onSuccess:()=>{l.invalidateQueries({queryKey:["sites",i,"block-types"]})}})}function wE(i,r){const s=it(),l=zt();return Ot({mutationFn:()=>s.apiFetch(`/v1/admin/sites/${i}/block-types/${r}`,{method:"DELETE"}),onSuccess:()=>l.invalidateQueries({queryKey:["sites",i,"block-types"]})})}const Xc=ve.createContext(null);function P2({site:i,children:r}){const{data:s,isLoading:l}=Z2(i.host),{data:c,isLoading:f}=J2(i.host),d=l||f;return x.jsx(Xc.Provider,{value:{site:i,collections:s?.items??[],blockTypes:c?.items??[],isLoading:d},children:r})}function Zc(){const i=ve.useContext(Xc);if(!i)throw new Error("useSiteContext must be used within a SiteProvider");return i}function xE(){return ve.useContext(Xc)}function $2({children:i}){const{host:r}=gg(),{data:s,isLoading:l}=kg(!0);if(l)return x.jsx(qg,{});const c=s?.items.find(f=>f.host===r);return c?x.jsx(P2,{site:c,children:i}):x.jsx(Us,{to:"/sites",replace:!0})}function EE(){const i=it();return Wn({queryKey:["users"],queryFn:()=>i.apiFetch("/v1/admin/users")})}function AE(){const i=it(),r=zt();return Ot({mutationFn:s=>i.apiFetch(`/v1/admin/users/${s}`,{method:"DELETE"}),onSuccess:()=>r.invalidateQueries({queryKey:["users"]})})}function TE(){const i=it(),r=zt();return Ot({mutationFn:s=>i.apiFetch(`/v1/admin/users/${s}/mfa`,{method:"DELETE"}),onSuccess:()=>r.invalidateQueries({queryKey:["users"]})})}function CE(i){const r=it();return Wn({queryKey:["users","resolve",...[...i].sort()],queryFn:()=>r.apiFetch("/v1/admin/users/resolve",{method:"POST",body:JSON.stringify({subs:i})}),enabled:i.length>0,staleTime:300*1e3})}function Lg(){const i=it();return Wn({queryKey:["super-admins"],queryFn:()=>i.apiFetch("/v1/admin/super-admins")})}function UE(){const i=it(),r=zt();return Ot({mutationFn:s=>i.apiFetch("/v1/admin/super-admins",{method:"PUT",body:JSON.stringify(s)}),onSuccess:()=>r.invalidateQueries({queryKey:["super-admins"]})})}function Hg(i){var r,s,l="";if(typeof i=="string"||typeof i=="number")l+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(r=0;r<c;r++)i[r]&&(s=Hg(i[r]))&&(l&&(l+=" "),l+=s)}else for(s in i)i[s]&&(l&&(l+=" "),l+=s);return l}function Fg(){for(var i,r,s=0,l="",c=arguments.length;s<c;s++)(i=arguments[s])&&(r=Hg(i))&&(l&&(l+=" "),l+=r);return l}const _0=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,D0=Fg,Vg=(i,r)=>s=>{var l;if(r?.variants==null)return D0(i,s?.class,s?.className);const{variants:c,defaultVariants:f}=r,d=Object.keys(c).map(y=>{const w=s?.[y],A=f?.[y];if(w===null)return null;const U=_0(w)||_0(A);return c[y][U]}),h=s&&Object.entries(s).reduce((y,w)=>{let[A,U]=w;return U===void 0||(y[A]=U),y},{}),v=r==null||(l=r.compoundVariants)===null||l===void 0?void 0:l.reduce((y,w)=>{let{class:A,className:U,...S}=w;return Object.entries(S).every(N=>{let[D,I]=N;return Array.isArray(I)?I.includes({...f,...h}[D]):{...f,...h}[D]===I})?[...y,A,U]:y},[]);return D0(i,d,v,s?.class,s?.className)},W2=(i,r)=>{const s=new Array(i.length+r.length);for(let l=0;l<i.length;l++)s[l]=i[l];for(let l=0;l<r.length;l++)s[i.length+l]=r[l];return s},ew=(i,r)=>({classGroupId:i,validator:r}),Kg=(i=new Map,r=null,s)=>({nextPart:i,validators:r,classGroupId:s}),Ds="-",R0=[],tw="arbitrary..",nw=i=>{const r=iw(i),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=i;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return aw(d);const h=d.split(Ds),v=h[0]===""&&h.length>1?1:0;return Yg(h,v,r)},getConflictingClassGroupIds:(d,h)=>{if(h){const v=l[d],y=s[d];return v?y?W2(y,v):v:y||R0}return s[d]||R0}}},Yg=(i,r,s)=>{if(i.length-r===0)return s.classGroupId;const c=i[r],f=s.nextPart.get(c);if(f){const y=Yg(i,r+1,f);if(y)return y}const d=s.validators;if(d===null)return;const h=r===0?i.join(Ds):i.slice(r).join(Ds),v=d.length;for(let y=0;y<v;y++){const w=d[y];if(w.validator(h))return w.classGroupId}},aw=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=i.slice(1,-1),s=r.indexOf(":"),l=r.slice(0,s);return l?tw+l:void 0})(),iw=i=>{const{theme:r,classGroups:s}=i;return rw(s,r)},rw=(i,r)=>{const s=Kg();for(const l in i){const c=i[l];Jc(c,s,l,r)}return s},Jc=(i,r,s,l)=>{const c=i.length;for(let f=0;f<c;f++){const d=i[f];lw(d,r,s,l)}},lw=(i,r,s,l)=>{if(typeof i=="string"){sw(i,r,s);return}if(typeof i=="function"){ow(i,r,s,l);return}uw(i,r,s,l)},sw=(i,r,s)=>{const l=i===""?r:Ig(r,i);l.classGroupId=s},ow=(i,r,s,l)=>{if(cw(i)){Jc(i(l),r,s,l);return}r.validators===null&&(r.validators=[]),r.validators.push(ew(s,i))},uw=(i,r,s,l)=>{const c=Object.entries(i),f=c.length;for(let d=0;d<f;d++){const[h,v]=c[d];Jc(v,Ig(r,h),s,l)}},Ig=(i,r)=>{let s=i;const l=r.split(Ds),c=l.length;for(let f=0;f<c;f++){const d=l[f];let h=s.nextPart.get(d);h||(h=Kg(),s.nextPart.set(d,h)),s=h}return s},cw=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,fw=i=>{if(i<1)return{get:()=>{},set:()=>{}};let r=0,s=Object.create(null),l=Object.create(null);const c=(f,d)=>{s[f]=d,r++,r>i&&(r=0,l=s,s=Object.create(null))};return{get(f){let d=s[f];if(d!==void 0)return d;if((d=l[f])!==void 0)return c(f,d),d},set(f,d){f in s?s[f]=d:c(f,d)}}},Fc="!",N0=":",dw=[],M0=(i,r,s,l,c)=>({modifiers:i,hasImportantModifier:r,baseClassName:s,maybePostfixModifierPosition:l,isExternal:c}),hw=i=>{const{prefix:r,experimentalParseClassName:s}=i;let l=c=>{const f=[];let d=0,h=0,v=0,y;const w=c.length;for(let D=0;D<w;D++){const I=c[D];if(d===0&&h===0){if(I===N0){f.push(c.slice(v,D)),v=D+1;continue}if(I==="/"){y=D;continue}}I==="["?d++:I==="]"?d--:I==="("?h++:I===")"&&h--}const A=f.length===0?c:c.slice(v);let U=A,S=!1;A.endsWith(Fc)?(U=A.slice(0,-1),S=!0):A.startsWith(Fc)&&(U=A.slice(1),S=!0);const N=y&&y>v?y-v:void 0;return M0(f,S,U,N)};if(r){const c=r+N0,f=l;l=d=>d.startsWith(c)?f(d.slice(c.length)):M0(dw,!1,d,void 0,!0)}if(s){const c=l;l=f=>s({className:f,parseClassName:c})}return l},mw=i=>{const r=new Map;return i.orderSensitiveModifiers.forEach((s,l)=>{r.set(s,1e6+l)}),s=>{const l=[];let c=[];for(let f=0;f<s.length;f++){const d=s[f],h=d[0]==="[",v=r.has(d);h||v?(c.length>0&&(c.sort(),l.push(...c),c=[]),l.push(d)):c.push(d)}return c.length>0&&(c.sort(),l.push(...c)),l}},gw=i=>({cache:fw(i.cacheSize),parseClassName:hw(i),sortModifiers:mw(i),...nw(i)}),pw=/\s+/,vw=(i,r)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:c,sortModifiers:f}=r,d=[],h=i.trim().split(pw);let v="";for(let y=h.length-1;y>=0;y-=1){const w=h[y],{isExternal:A,modifiers:U,hasImportantModifier:S,baseClassName:N,maybePostfixModifierPosition:D}=s(w);if(A){v=w+(v.length>0?" "+v:v);continue}let I=!!D,K=l(I?N.substring(0,D):N);if(!K){if(!I){v=w+(v.length>0?" "+v:v);continue}if(K=l(N),!K){v=w+(v.length>0?" "+v:v);continue}I=!1}const P=U.length===0?"":U.length===1?U[0]:f(U).join(":"),J=S?P+Fc:P,$=J+K;if(d.indexOf($)>-1)continue;d.push($);const se=c(K,I);for(let X=0;X<se.length;++X){const W=se[X];d.push(J+W)}v=w+(v.length>0?" "+v:v)}return v},yw=(...i)=>{let r=0,s,l,c="";for(;r<i.length;)(s=i[r++])&&(l=Gg(s))&&(c&&(c+=" "),c+=l);return c},Gg=i=>{if(typeof i=="string")return i;let r,s="";for(let l=0;l<i.length;l++)i[l]&&(r=Gg(i[l]))&&(s&&(s+=" "),s+=r);return s},bw=(i,...r)=>{let s,l,c,f;const d=v=>{const y=r.reduce((w,A)=>A(w),i());return s=gw(y),l=s.cache.get,c=s.cache.set,f=h,h(v)},h=v=>{const y=l(v);if(y)return y;const w=vw(v,s);return c(v,w),w};return f=d,(...v)=>f(yw(...v))},Sw=[],St=i=>{const r=s=>s[i]||Sw;return r.isThemeGetter=!0,r},Qg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ww=/^\d+\/\d+$/,xw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ew=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Aw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Tw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Cw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yi=i=>ww.test(i),De=i=>!!i&&!Number.isNaN(Number(i)),Ca=i=>!!i&&Number.isInteger(Number(i)),ic=i=>i.endsWith("%")&&De(i.slice(0,-1)),Pn=i=>xw.test(i),Uw=()=>!0,_w=i=>Ew.test(i)&&!Aw.test(i),Zg=()=>!1,Dw=i=>Tw.test(i),Rw=i=>Cw.test(i),Nw=i=>!he(i)&&!me(i),Mw=i=>Ji(i,$g,Zg),he=i=>Qg.test(i),Pa=i=>Ji(i,Wg,_w),rc=i=>Ji(i,qw,De),B0=i=>Ji(i,Jg,Zg),Bw=i=>Ji(i,Pg,Rw),xs=i=>Ji(i,ep,Dw),me=i=>Xg.test(i),Pr=i=>Pi(i,Wg),zw=i=>Pi(i,kw),z0=i=>Pi(i,Jg),Ow=i=>Pi(i,$g),jw=i=>Pi(i,Pg),Es=i=>Pi(i,ep,!0),Ji=(i,r,s)=>{const l=Qg.exec(i);return l?l[1]?r(l[1]):s(l[2]):!1},Pi=(i,r,s=!1)=>{const l=Xg.exec(i);return l?l[1]?r(l[1]):s:!1},Jg=i=>i==="position"||i==="percentage",Pg=i=>i==="image"||i==="url",$g=i=>i==="length"||i==="size"||i==="bg-size",Wg=i=>i==="length",qw=i=>i==="number",kw=i=>i==="family-name",ep=i=>i==="shadow",Lw=()=>{const i=St("color"),r=St("font"),s=St("text"),l=St("font-weight"),c=St("tracking"),f=St("leading"),d=St("breakpoint"),h=St("container"),v=St("spacing"),y=St("radius"),w=St("shadow"),A=St("inset-shadow"),U=St("text-shadow"),S=St("drop-shadow"),N=St("blur"),D=St("perspective"),I=St("aspect"),K=St("ease"),P=St("animate"),J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],se=()=>[...$(),me,he],X=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],L=()=>[me,he,v],Z=()=>[Yi,"full","auto",...L()],ue=()=>[Ca,"none","subgrid",me,he],ne=()=>["auto",{span:["full",Ca,me,he]},Ca,me,he],ee=()=>[Ca,"auto",me,he],le=()=>["auto","min","max","fr",me,he],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ae=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...L()],Q=()=>[Yi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],G=()=>[i,me,he],ie=()=>[...$(),z0,B0,{position:[me,he]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Se=()=>["auto","cover","contain",Ow,Mw,{size:[me,he]}],re=()=>[ic,Pr,Pa],te=()=>["","none","full",y,me,he],ce=()=>["",De,Pr,Pa],_e=()=>["solid","dashed","dotted","double"],Je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>[De,ic,z0,B0],$e=()=>["","none",N,me,he],Ke=()=>["none",De,me,he],ut=()=>["none",De,me,he],xe=()=>[De,me,he],Ye=()=>[Yi,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pn],breakpoint:[Pn],color:[Uw],container:[Pn],"drop-shadow":[Pn],ease:["in","out","in-out"],font:[Nw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pn],shadow:[Pn],spacing:["px",De],text:[Pn],"text-shadow":[Pn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yi,he,me,I]}],container:["container"],columns:[{columns:[De,he,me,h]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:se()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Ca,"auto",me,he]}],basis:[{basis:[Yi,"full","auto",h,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,Yi,"auto","initial","none",he]}],grow:[{grow:["",De,me,he]}],shrink:[{shrink:["",De,me,he]}],order:[{order:[Ca,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":ue()}],"col-start-end":[{col:ne()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":ue()}],"row-start-end":[{row:ne()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...Ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ae()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...Ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...Ae(),"baseline"]}],"place-self":[{"place-self":["auto",...Ae()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[h,"screen",...Q()]}],"min-w":[{"min-w":[h,"screen","none",...Q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",s,Pr,Pa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,me,rc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ic,he]}],"font-family":[{font:[zw,he,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,me,he]}],"line-clamp":[{"line-clamp":[De,"none",me,rc]}],leading:[{leading:[f,...L()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[..._e(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",me,Pa]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[De,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:Se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ca,me,he],radial:["",me,he],conic:[Ca,me,he]},jw,Bw]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[..._e(),"hidden","none"]}],"divide-style":[{divide:[..._e(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[..._e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,me,he]}],"outline-w":[{outline:["",De,Pr,Pa]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",w,Es,xs]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",A,Es,xs]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[De,Pa]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",U,Es,xs]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[De,me,he]}],"mix-blend":[{"mix-blend":[...Je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:Se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:$e()}],brightness:[{brightness:[De,me,he]}],contrast:[{contrast:[De,me,he]}],"drop-shadow":[{"drop-shadow":["","none",S,Es,xs]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",De,me,he]}],"hue-rotate":[{"hue-rotate":[De,me,he]}],invert:[{invert:["",De,me,he]}],saturate:[{saturate:[De,me,he]}],sepia:[{sepia:["",De,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":$e()}],"backdrop-brightness":[{"backdrop-brightness":[De,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[De,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,me,he]}],"backdrop-invert":[{"backdrop-invert":["",De,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[De,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[De,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",De,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",me,he]}],ease:[{ease:["linear","initial",K,me,he]}],delay:[{delay:[De,me,he]}],animate:[{animate:["none",P,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,me,he]}],"perspective-origin":[{"perspective-origin":se()}],rotate:[{rotate:Ke()}],"rotate-x":[{"rotate-x":Ke()}],"rotate-y":[{"rotate-y":Ke()}],"rotate-z":[{"rotate-z":Ke()}],scale:[{scale:ut()}],"scale-x":[{"scale-x":ut()}],"scale-y":[{"scale-y":ut()}],"scale-z":[{"scale-z":ut()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:se()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[De,Pr,Pa,rc]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Hw=bw(Lw);function nt(...i){return Hw(Fg(i))}const Fw=Vg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function It({className:i,variant:r="default",size:s="default",asChild:l=!1,...c}){const f=l?Dy:"button";return x.jsx(f,{"data-slot":"button","data-variant":r,"data-size":s,className:nt(Fw({variant:r,size:s,className:i})),...c})}function O0({...i}){return x.jsx(Ry,{"data-slot":"dropdown-menu",...i})}function j0({...i}){return x.jsx(Ny,{"data-slot":"dropdown-menu-trigger",...i})}function q0({className:i,sideOffset:r=4,...s}){return x.jsx(My,{children:x.jsx(By,{"data-slot":"dropdown-menu-content",sideOffset:r,className:nt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",i),...s})})}function $r({className:i,inset:r,variant:s="default",...l}){return x.jsx(zy,{"data-slot":"dropdown-menu-item","data-inset":r,"data-variant":s,className:nt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",i),...l})}function k0({className:i,...r}){return x.jsx(Oy,{"data-slot":"dropdown-menu-separator",className:nt("bg-border -mx-1 my-1 h-px",i),...r})}var Ii={},lc,L0;function Vw(){return L0||(L0=1,lc=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),lc}var sc={},Ua={},H0;function ei(){if(H0)return Ua;H0=1;let i;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Ua.getSymbolSize=function(l){if(!l)throw new Error('"version" cannot be null or undefined');if(l<1||l>40)throw new Error('"version" should be in range from 1 to 40');return l*4+17},Ua.getSymbolTotalCodewords=function(l){return r[l]},Ua.getBCHDigit=function(s){let l=0;for(;s!==0;)l++,s>>>=1;return l},Ua.setToSJISFunction=function(l){if(typeof l!="function")throw new Error('"toSJISFunc" is not a valid function.');i=l},Ua.isKanjiModeEnabled=function(){return typeof i<"u"},Ua.toSJIS=function(l){return i(l)},Ua}var oc={},F0;function Pc(){return F0||(F0=1,(function(i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2};function r(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+s)}}i.isValid=function(l){return l&&typeof l.bit<"u"&&l.bit>=0&&l.bit<4},i.from=function(l,c){if(i.isValid(l))return l;try{return r(l)}catch{return c}}})(oc)),oc}var uc,V0;function Kw(){if(V0)return uc;V0=1;function i(){this.buffer=[],this.length=0}return i.prototype={get:function(r){const s=Math.floor(r/8);return(this.buffer[s]>>>7-r%8&1)===1},put:function(r,s){for(let l=0;l<s;l++)this.putBit((r>>>s-l-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),r&&(this.buffer[s]|=128>>>this.length%8),this.length++}},uc=i,uc}var cc,K0;function Yw(){if(K0)return cc;K0=1;function i(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return i.prototype.set=function(r,s,l,c){const f=r*this.size+s;this.data[f]=l,c&&(this.reservedBit[f]=!0)},i.prototype.get=function(r,s){return this.data[r*this.size+s]},i.prototype.xor=function(r,s,l){this.data[r*this.size+s]^=l},i.prototype.isReserved=function(r,s){return this.reservedBit[r*this.size+s]},cc=i,cc}var fc={},Y0;function Iw(){return Y0||(Y0=1,(function(i){const r=ei().getSymbolSize;i.getRowColCoords=function(l){if(l===1)return[];const c=Math.floor(l/7)+2,f=r(l),d=f===145?26:Math.ceil((f-13)/(2*c-2))*2,h=[f-7];for(let v=1;v<c-1;v++)h[v]=h[v-1]-d;return h.push(6),h.reverse()},i.getPositions=function(l){const c=[],f=i.getRowColCoords(l),d=f.length;for(let h=0;h<d;h++)for(let v=0;v<d;v++)h===0&&v===0||h===0&&v===d-1||h===d-1&&v===0||c.push([f[h],f[v]]);return c}})(fc)),fc}var dc={},I0;function Gw(){if(I0)return dc;I0=1;const i=ei().getSymbolSize,r=7;return dc.getPositions=function(l){const c=i(l);return[[0,0],[c-r,0],[0,c-r]]},dc}var hc={},G0;function Qw(){return G0||(G0=1,(function(i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};i.isValid=function(c){return c!=null&&c!==""&&!isNaN(c)&&c>=0&&c<=7},i.from=function(c){return i.isValid(c)?parseInt(c,10):void 0},i.getPenaltyN1=function(c){const f=c.size;let d=0,h=0,v=0,y=null,w=null;for(let A=0;A<f;A++){h=v=0,y=w=null;for(let U=0;U<f;U++){let S=c.get(A,U);S===y?h++:(h>=5&&(d+=r.N1+(h-5)),y=S,h=1),S=c.get(U,A),S===w?v++:(v>=5&&(d+=r.N1+(v-5)),w=S,v=1)}h>=5&&(d+=r.N1+(h-5)),v>=5&&(d+=r.N1+(v-5))}return d},i.getPenaltyN2=function(c){const f=c.size;let d=0;for(let h=0;h<f-1;h++)for(let v=0;v<f-1;v++){const y=c.get(h,v)+c.get(h,v+1)+c.get(h+1,v)+c.get(h+1,v+1);(y===4||y===0)&&d++}return d*r.N2},i.getPenaltyN3=function(c){const f=c.size;let d=0,h=0,v=0;for(let y=0;y<f;y++){h=v=0;for(let w=0;w<f;w++)h=h<<1&2047|c.get(y,w),w>=10&&(h===1488||h===93)&&d++,v=v<<1&2047|c.get(w,y),w>=10&&(v===1488||v===93)&&d++}return d*r.N3},i.getPenaltyN4=function(c){let f=0;const d=c.data.length;for(let v=0;v<d;v++)f+=c.data[v];return Math.abs(Math.ceil(f*100/d/5)-10)*r.N4};function s(l,c,f){switch(l){case i.Patterns.PATTERN000:return(c+f)%2===0;case i.Patterns.PATTERN001:return c%2===0;case i.Patterns.PATTERN010:return f%3===0;case i.Patterns.PATTERN011:return(c+f)%3===0;case i.Patterns.PATTERN100:return(Math.floor(c/2)+Math.floor(f/3))%2===0;case i.Patterns.PATTERN101:return c*f%2+c*f%3===0;case i.Patterns.PATTERN110:return(c*f%2+c*f%3)%2===0;case i.Patterns.PATTERN111:return(c*f%3+(c+f)%2)%2===0;default:throw new Error("bad maskPattern:"+l)}}i.applyMask=function(c,f){const d=f.size;for(let h=0;h<d;h++)for(let v=0;v<d;v++)f.isReserved(v,h)||f.xor(v,h,s(c,v,h))},i.getBestMask=function(c,f){const d=Object.keys(i.Patterns).length;let h=0,v=1/0;for(let y=0;y<d;y++){f(y),i.applyMask(y,c);const w=i.getPenaltyN1(c)+i.getPenaltyN2(c)+i.getPenaltyN3(c)+i.getPenaltyN4(c);i.applyMask(y,c),w<v&&(v=w,h=y)}return h}})(hc)),hc}var As={},Q0;function tp(){if(Q0)return As;Q0=1;const i=Pc(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return As.getBlocksCount=function(c,f){switch(f){case i.L:return r[(c-1)*4+0];case i.M:return r[(c-1)*4+1];case i.Q:return r[(c-1)*4+2];case i.H:return r[(c-1)*4+3];default:return}},As.getTotalCodewordsCount=function(c,f){switch(f){case i.L:return s[(c-1)*4+0];case i.M:return s[(c-1)*4+1];case i.Q:return s[(c-1)*4+2];case i.H:return s[(c-1)*4+3];default:return}},As}var mc={},Wr={},X0;function Xw(){if(X0)return Wr;X0=1;const i=new Uint8Array(512),r=new Uint8Array(256);return(function(){let l=1;for(let c=0;c<255;c++)i[c]=l,r[l]=c,l<<=1,l&256&&(l^=285);for(let c=255;c<512;c++)i[c]=i[c-255]})(),Wr.log=function(l){if(l<1)throw new Error("log("+l+")");return r[l]},Wr.exp=function(l){return i[l]},Wr.mul=function(l,c){return l===0||c===0?0:i[r[l]+r[c]]},Wr}var Z0;function Zw(){return Z0||(Z0=1,(function(i){const r=Xw();i.mul=function(l,c){const f=new Uint8Array(l.length+c.length-1);for(let d=0;d<l.length;d++)for(let h=0;h<c.length;h++)f[d+h]^=r.mul(l[d],c[h]);return f},i.mod=function(l,c){let f=new Uint8Array(l);for(;f.length-c.length>=0;){const d=f[0];for(let v=0;v<c.length;v++)f[v]^=r.mul(c[v],d);let h=0;for(;h<f.length&&f[h]===0;)h++;f=f.slice(h)}return f},i.generateECPolynomial=function(l){let c=new Uint8Array([1]);for(let f=0;f<l;f++)c=i.mul(c,new Uint8Array([1,r.exp(f)]));return c}})(mc)),mc}var gc,J0;function Jw(){if(J0)return gc;J0=1;const i=Zw();function r(s){this.genPoly=void 0,this.degree=s,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(l){this.degree=l,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");const c=new Uint8Array(l.length+this.degree);c.set(l);const f=i.mod(c,this.genPoly),d=this.degree-f.length;if(d>0){const h=new Uint8Array(this.degree);return h.set(f,d),h}return f},gc=r,gc}var pc={},vc={},yc={},P0;function np(){return P0||(P0=1,yc.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),yc}var Nn={},$0;function ap(){if($0)return Nn;$0=1;const i="[0-9]+",r="[A-Z $%*+\\-./:]+";let s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");const l="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+`)(?:.|[\r
|
|
12
|
-
]))+`;Nn.KANJI=new RegExp(s,"g"),Nn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Nn.BYTE=new RegExp(l,"g"),Nn.NUMERIC=new RegExp(i,"g"),Nn.ALPHANUMERIC=new RegExp(r,"g");const c=new RegExp("^"+s+"$"),f=new RegExp("^"+i+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Nn.testKanji=function(v){return c.test(v)},Nn.testNumeric=function(v){return f.test(v)},Nn.testAlphanumeric=function(v){return d.test(v)},Nn}var W0;function ti(){return W0||(W0=1,(function(i){const r=np(),s=ap();i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(f,d){if(!f.ccBits)throw new Error("Invalid mode: "+f);if(!r.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?f.ccBits[0]:d<27?f.ccBits[1]:f.ccBits[2]},i.getBestModeForData=function(f){return s.testNumeric(f)?i.NUMERIC:s.testAlphanumeric(f)?i.ALPHANUMERIC:s.testKanji(f)?i.KANJI:i.BYTE},i.toString=function(f){if(f&&f.id)return f.id;throw new Error("Invalid mode")},i.isValid=function(f){return f&&f.bit&&f.ccBits};function l(c){if(typeof c!="string")throw new Error("Param is not a string");switch(c.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+c)}}i.from=function(f,d){if(i.isValid(f))return f;try{return l(f)}catch{return d}}})(vc)),vc}var eg;function Pw(){return eg||(eg=1,(function(i){const r=ei(),s=tp(),l=Pc(),c=ti(),f=np(),d=7973,h=r.getBCHDigit(d);function v(U,S,N){for(let D=1;D<=40;D++)if(S<=i.getCapacity(D,N,U))return D}function y(U,S){return c.getCharCountIndicator(U,S)+4}function w(U,S){let N=0;return U.forEach(function(D){const I=y(D.mode,S);N+=I+D.getBitsLength()}),N}function A(U,S){for(let N=1;N<=40;N++)if(w(U,N)<=i.getCapacity(N,S,c.MIXED))return N}i.from=function(S,N){return f.isValid(S)?parseInt(S,10):N},i.getCapacity=function(S,N,D){if(!f.isValid(S))throw new Error("Invalid QR Code version");typeof D>"u"&&(D=c.BYTE);const I=r.getSymbolTotalCodewords(S),K=s.getTotalCodewordsCount(S,N),P=(I-K)*8;if(D===c.MIXED)return P;const J=P-y(D,S);switch(D){case c.NUMERIC:return Math.floor(J/10*3);case c.ALPHANUMERIC:return Math.floor(J/11*2);case c.KANJI:return Math.floor(J/13);case c.BYTE:default:return Math.floor(J/8)}},i.getBestVersionForData=function(S,N){let D;const I=l.from(N,l.M);if(Array.isArray(S)){if(S.length>1)return A(S,I);if(S.length===0)return 1;D=S[0]}else D=S;return v(D.mode,D.getLength(),I)},i.getEncodedBits=function(S){if(!f.isValid(S)||S<7)throw new Error("Invalid QR Code version");let N=S<<12;for(;r.getBCHDigit(N)-h>=0;)N^=d<<r.getBCHDigit(N)-h;return S<<12|N}})(pc)),pc}var bc={},tg;function $w(){if(tg)return bc;tg=1;const i=ei(),r=1335,s=21522,l=i.getBCHDigit(r);return bc.getEncodedBits=function(f,d){const h=f.bit<<3|d;let v=h<<10;for(;i.getBCHDigit(v)-l>=0;)v^=r<<i.getBCHDigit(v)-l;return(h<<10|v)^s},bc}var Sc={},wc,ng;function Ww(){if(ng)return wc;ng=1;const i=ti();function r(s){this.mode=i.NUMERIC,this.data=s.toString()}return r.getBitsLength=function(l){return 10*Math.floor(l/3)+(l%3?l%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(l){let c,f,d;for(c=0;c+3<=this.data.length;c+=3)f=this.data.substr(c,3),d=parseInt(f,10),l.put(d,10);const h=this.data.length-c;h>0&&(f=this.data.substr(c),d=parseInt(f,10),l.put(d,h*3+1))},wc=r,wc}var xc,ag;function ex(){if(ag)return xc;ag=1;const i=ti(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(l){this.mode=i.ALPHANUMERIC,this.data=l}return s.getBitsLength=function(c){return 11*Math.floor(c/2)+6*(c%2)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(c){let f;for(f=0;f+2<=this.data.length;f+=2){let d=r.indexOf(this.data[f])*45;d+=r.indexOf(this.data[f+1]),c.put(d,11)}this.data.length%2&&c.put(r.indexOf(this.data[f]),6)},xc=s,xc}var Ec,ig;function tx(){if(ig)return Ec;ig=1;const i=ti();function r(s){this.mode=i.BYTE,typeof s=="string"?this.data=new TextEncoder().encode(s):this.data=new Uint8Array(s)}return r.getBitsLength=function(l){return l*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){for(let l=0,c=this.data.length;l<c;l++)s.put(this.data[l],8)},Ec=r,Ec}var Ac,rg;function nx(){if(rg)return Ac;rg=1;const i=ti(),r=ei();function s(l){this.mode=i.KANJI,this.data=l}return s.getBitsLength=function(c){return c*13},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(l){let c;for(c=0;c<this.data.length;c++){let f=r.toSJIS(this.data[c]);if(f>=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[c]+`
|
|
13
|
-
Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),l.put(f,13)}},Ac=s,Ac}var Tc={exports:{}},lg;function ax(){return lg||(lg=1,(function(i){var r={single_source_shortest_paths:function(s,l,c){var f={},d={};d[l]=0;var h=r.PriorityQueue.make();h.push(l,0);for(var v,y,w,A,U,S,N,D,I;!h.empty();){v=h.pop(),y=v.value,A=v.cost,U=s[y]||{};for(w in U)U.hasOwnProperty(w)&&(S=U[w],N=A+S,D=d[w],I=typeof d[w]>"u",(I||D>N)&&(d[w]=N,h.push(w,N),f[w]=y))}if(typeof c<"u"&&typeof d[c]>"u"){var K=["Could not find a path from ",l," to ",c,"."].join("");throw new Error(K)}return f},extract_shortest_path_from_predecessor_list:function(s,l){for(var c=[],f=l;f;)c.push(f),s[f],f=s[f];return c.reverse(),c},find_path:function(s,l,c){var f=r.single_source_shortest_paths(s,l,c);return r.extract_shortest_path_from_predecessor_list(f,c)},PriorityQueue:{make:function(s){var l=r.PriorityQueue,c={},f;s=s||{};for(f in l)l.hasOwnProperty(f)&&(c[f]=l[f]);return c.queue=[],c.sorter=s.sorter||l.default_sorter,c},default_sorter:function(s,l){return s.cost-l.cost},push:function(s,l){var c={value:s,cost:l};this.queue.push(c),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};i.exports=r})(Tc)),Tc.exports}var sg;function ix(){return sg||(sg=1,(function(i){const r=ti(),s=Ww(),l=ex(),c=tx(),f=nx(),d=ap(),h=ei(),v=ax();function y(K){return unescape(encodeURIComponent(K)).length}function w(K,P,J){const $=[];let se;for(;(se=K.exec(J))!==null;)$.push({data:se[0],index:se.index,mode:P,length:se[0].length});return $}function A(K){const P=w(d.NUMERIC,r.NUMERIC,K),J=w(d.ALPHANUMERIC,r.ALPHANUMERIC,K);let $,se;return h.isKanjiModeEnabled()?($=w(d.BYTE,r.BYTE,K),se=w(d.KANJI,r.KANJI,K)):($=w(d.BYTE_KANJI,r.BYTE,K),se=[]),P.concat(J,$,se).sort(function(W,L){return W.index-L.index}).map(function(W){return{data:W.data,mode:W.mode,length:W.length}})}function U(K,P){switch(P){case r.NUMERIC:return s.getBitsLength(K);case r.ALPHANUMERIC:return l.getBitsLength(K);case r.KANJI:return f.getBitsLength(K);case r.BYTE:return c.getBitsLength(K)}}function S(K){return K.reduce(function(P,J){const $=P.length-1>=0?P[P.length-1]:null;return $&&$.mode===J.mode?(P[P.length-1].data+=J.data,P):(P.push(J),P)},[])}function N(K){const P=[];for(let J=0;J<K.length;J++){const $=K[J];switch($.mode){case r.NUMERIC:P.push([$,{data:$.data,mode:r.ALPHANUMERIC,length:$.length},{data:$.data,mode:r.BYTE,length:$.length}]);break;case r.ALPHANUMERIC:P.push([$,{data:$.data,mode:r.BYTE,length:$.length}]);break;case r.KANJI:P.push([$,{data:$.data,mode:r.BYTE,length:y($.data)}]);break;case r.BYTE:P.push([{data:$.data,mode:r.BYTE,length:y($.data)}])}}return P}function D(K,P){const J={},$={start:{}};let se=["start"];for(let X=0;X<K.length;X++){const W=K[X],L=[];for(let Z=0;Z<W.length;Z++){const ue=W[Z],ne=""+X+Z;L.push(ne),J[ne]={node:ue,lastCount:0},$[ne]={};for(let ee=0;ee<se.length;ee++){const le=se[ee];J[le]&&J[le].node.mode===ue.mode?($[le][ne]=U(J[le].lastCount+ue.length,ue.mode)-U(J[le].lastCount,ue.mode),J[le].lastCount+=ue.length):(J[le]&&(J[le].lastCount=ue.length),$[le][ne]=U(ue.length,ue.mode)+4+r.getCharCountIndicator(ue.mode,P))}}se=L}for(let X=0;X<se.length;X++)$[se[X]].end=0;return{map:$,table:J}}function I(K,P){let J;const $=r.getBestModeForData(K);if(J=r.from(P,$),J!==r.BYTE&&J.bit<$.bit)throw new Error('"'+K+'" cannot be encoded with mode '+r.toString(J)+`.
|
|
14
|
-
Suggested mode is: `+r.toString($));switch(J===r.KANJI&&!h.isKanjiModeEnabled()&&(J=r.BYTE),J){case r.NUMERIC:return new s(K);case r.ALPHANUMERIC:return new l(K);case r.KANJI:return new f(K);case r.BYTE:return new c(K)}}i.fromArray=function(P){return P.reduce(function(J,$){return typeof $=="string"?J.push(I($,null)):$.data&&J.push(I($.data,$.mode)),J},[])},i.fromString=function(P,J){const $=A(P,h.isKanjiModeEnabled()),se=N($),X=D(se,J),W=v.find_path(X.map,"start","end"),L=[];for(let Z=1;Z<W.length-1;Z++)L.push(X.table[W[Z]].node);return i.fromArray(S(L))},i.rawSplit=function(P){return i.fromArray(A(P,h.isKanjiModeEnabled()))}})(Sc)),Sc}var og;function rx(){if(og)return sc;og=1;const i=ei(),r=Pc(),s=Kw(),l=Yw(),c=Iw(),f=Gw(),d=Qw(),h=tp(),v=Jw(),y=Pw(),w=$w(),A=ti(),U=ix();function S(X,W){const L=X.size,Z=f.getPositions(W);for(let ue=0;ue<Z.length;ue++){const ne=Z[ue][0],ee=Z[ue][1];for(let le=-1;le<=7;le++)if(!(ne+le<=-1||L<=ne+le))for(let oe=-1;oe<=7;oe++)ee+oe<=-1||L<=ee+oe||(le>=0&&le<=6&&(oe===0||oe===6)||oe>=0&&oe<=6&&(le===0||le===6)||le>=2&&le<=4&&oe>=2&&oe<=4?X.set(ne+le,ee+oe,!0,!0):X.set(ne+le,ee+oe,!1,!0))}}function N(X){const W=X.size;for(let L=8;L<W-8;L++){const Z=L%2===0;X.set(L,6,Z,!0),X.set(6,L,Z,!0)}}function D(X,W){const L=c.getPositions(W);for(let Z=0;Z<L.length;Z++){const ue=L[Z][0],ne=L[Z][1];for(let ee=-2;ee<=2;ee++)for(let le=-2;le<=2;le++)ee===-2||ee===2||le===-2||le===2||ee===0&&le===0?X.set(ue+ee,ne+le,!0,!0):X.set(ue+ee,ne+le,!1,!0)}}function I(X,W){const L=X.size,Z=y.getEncodedBits(W);let ue,ne,ee;for(let le=0;le<18;le++)ue=Math.floor(le/3),ne=le%3+L-8-3,ee=(Z>>le&1)===1,X.set(ue,ne,ee,!0),X.set(ne,ue,ee,!0)}function K(X,W,L){const Z=X.size,ue=w.getEncodedBits(W,L);let ne,ee;for(ne=0;ne<15;ne++)ee=(ue>>ne&1)===1,ne<6?X.set(ne,8,ee,!0):ne<8?X.set(ne+1,8,ee,!0):X.set(Z-15+ne,8,ee,!0),ne<8?X.set(8,Z-ne-1,ee,!0):ne<9?X.set(8,15-ne-1+1,ee,!0):X.set(8,15-ne-1,ee,!0);X.set(Z-8,8,1,!0)}function P(X,W){const L=X.size;let Z=-1,ue=L-1,ne=7,ee=0;for(let le=L-1;le>0;le-=2)for(le===6&&le--;;){for(let oe=0;oe<2;oe++)if(!X.isReserved(ue,le-oe)){let Ae=!1;ee<W.length&&(Ae=(W[ee]>>>ne&1)===1),X.set(ue,le-oe,Ae),ne--,ne===-1&&(ee++,ne=7)}if(ue+=Z,ue<0||L<=ue){ue-=Z,Z=-Z;break}}}function J(X,W,L){const Z=new s;L.forEach(function(oe){Z.put(oe.mode.bit,4),Z.put(oe.getLength(),A.getCharCountIndicator(oe.mode,X)),oe.write(Z)});const ue=i.getSymbolTotalCodewords(X),ne=h.getTotalCodewordsCount(X,W),ee=(ue-ne)*8;for(Z.getLengthInBits()+4<=ee&&Z.put(0,4);Z.getLengthInBits()%8!==0;)Z.putBit(0);const le=(ee-Z.getLengthInBits())/8;for(let oe=0;oe<le;oe++)Z.put(oe%2?17:236,8);return $(Z,X,W)}function $(X,W,L){const Z=i.getSymbolTotalCodewords(W),ue=h.getTotalCodewordsCount(W,L),ne=Z-ue,ee=h.getBlocksCount(W,L),le=Z%ee,oe=ee-le,Ae=Math.floor(Z/ee),j=Math.floor(ne/ee),Q=j+1,G=Ae-j,ie=new v(G);let be=0;const Se=new Array(ee),re=new Array(ee);let te=0;const ce=new Uint8Array(X.buffer);for(let Ke=0;Ke<ee;Ke++){const ut=Ke<oe?j:Q;Se[Ke]=ce.slice(be,be+ut),re[Ke]=ie.encode(Se[Ke]),be+=ut,te=Math.max(te,ut)}const _e=new Uint8Array(Z);let Je=0,ge,$e;for(ge=0;ge<te;ge++)for($e=0;$e<ee;$e++)ge<Se[$e].length&&(_e[Je++]=Se[$e][ge]);for(ge=0;ge<G;ge++)for($e=0;$e<ee;$e++)_e[Je++]=re[$e][ge];return _e}function se(X,W,L,Z){let ue;if(Array.isArray(X))ue=U.fromArray(X);else if(typeof X=="string"){let Ae=W;if(!Ae){const j=U.rawSplit(X);Ae=y.getBestVersionForData(j,L)}ue=U.fromString(X,Ae||40)}else throw new Error("Invalid data");const ne=y.getBestVersionForData(ue,L);if(!ne)throw new Error("The amount of data is too big to be stored in a QR Code");if(!W)W=ne;else if(W<ne)throw new Error(`
|
|
15
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
16
|
-
Minimum version required to store current data is: `+ne+`.
|
|
17
|
-
`);const ee=J(W,L,ue),le=i.getSymbolSize(W),oe=new l(le);return S(oe,W),N(oe),D(oe,W),K(oe,L,0),W>=7&&I(oe,W),P(oe,ee),isNaN(Z)&&(Z=d.getBestMask(oe,K.bind(null,oe,L))),d.applyMask(Z,oe),K(oe,L,Z),{modules:oe,version:W,errorCorrectionLevel:L,maskPattern:Z,segments:ue}}return sc.create=function(W,L){if(typeof W>"u"||W==="")throw new Error("No input text");let Z=r.M,ue,ne;return typeof L<"u"&&(Z=r.from(L.errorCorrectionLevel,r.M),ue=y.from(L.version),ne=d.from(L.maskPattern),L.toSJISFunc&&i.setToSJISFunction(L.toSJISFunc)),se(W,ue,Z,ne)},sc}var Cc={},Uc={},ug;function ip(){return ug||(ug=1,(function(i){function r(s){if(typeof s=="number"&&(s=s.toString()),typeof s!="string")throw new Error("Color should be defined as hex string");let l=s.slice().replace("#","").split("");if(l.length<3||l.length===5||l.length>8)throw new Error("Invalid hex color: "+s);(l.length===3||l.length===4)&&(l=Array.prototype.concat.apply([],l.map(function(f){return[f,f]}))),l.length===6&&l.push("F","F");const c=parseInt(l.join(""),16);return{r:c>>24&255,g:c>>16&255,b:c>>8&255,a:c&255,hex:"#"+l.slice(0,6).join("")}}i.getOptions=function(l){l||(l={}),l.color||(l.color={});const c=typeof l.margin>"u"||l.margin===null||l.margin<0?4:l.margin,f=l.width&&l.width>=21?l.width:void 0,d=l.scale||4;return{width:f,scale:f?4:d,margin:c,color:{dark:r(l.color.dark||"#000000ff"),light:r(l.color.light||"#ffffffff")},type:l.type,rendererOpts:l.rendererOpts||{}}},i.getScale=function(l,c){return c.width&&c.width>=l+c.margin*2?c.width/(l+c.margin*2):c.scale},i.getImageWidth=function(l,c){const f=i.getScale(l,c);return Math.floor((l+c.margin*2)*f)},i.qrToImageData=function(l,c,f){const d=c.modules.size,h=c.modules.data,v=i.getScale(d,f),y=Math.floor((d+f.margin*2)*v),w=f.margin*v,A=[f.color.light,f.color.dark];for(let U=0;U<y;U++)for(let S=0;S<y;S++){let N=(U*y+S)*4,D=f.color.light;if(U>=w&&S>=w&&U<y-w&&S<y-w){const I=Math.floor((U-w)/v),K=Math.floor((S-w)/v);D=A[h[I*d+K]?1:0]}l[N++]=D.r,l[N++]=D.g,l[N++]=D.b,l[N]=D.a}}})(Uc)),Uc}var cg;function lx(){return cg||(cg=1,(function(i){const r=ip();function s(c,f,d){c.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=d,f.width=d,f.style.height=d+"px",f.style.width=d+"px"}function l(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}i.render=function(f,d,h){let v=h,y=d;typeof v>"u"&&(!d||!d.getContext)&&(v=d,d=void 0),d||(y=l()),v=r.getOptions(v);const w=r.getImageWidth(f.modules.size,v),A=y.getContext("2d"),U=A.createImageData(w,w);return r.qrToImageData(U.data,f,v),s(A,y,w),A.putImageData(U,0,0),y},i.renderToDataURL=function(f,d,h){let v=h;typeof v>"u"&&(!d||!d.getContext)&&(v=d,d=void 0),v||(v={});const y=i.render(f,d,v),w=v.type||"image/png",A=v.rendererOpts||{};return y.toDataURL(w,A.quality)}})(Cc)),Cc}var _c={},fg;function sx(){if(fg)return _c;fg=1;const i=ip();function r(c,f){const d=c.a/255,h=f+'="'+c.hex+'"';return d<1?h+" "+f+'-opacity="'+d.toFixed(2).slice(1)+'"':h}function s(c,f,d){let h=c+f;return typeof d<"u"&&(h+=" "+d),h}function l(c,f,d){let h="",v=0,y=!1,w=0;for(let A=0;A<c.length;A++){const U=Math.floor(A%f),S=Math.floor(A/f);!U&&!y&&(y=!0),c[A]?(w++,A>0&&U>0&&c[A-1]||(h+=y?s("M",U+d,.5+S+d):s("m",v,0),v=0,y=!1),U+1<f&&c[A+1]||(h+=s("h",w),w=0)):v++}return h}return _c.render=function(f,d,h){const v=i.getOptions(d),y=f.modules.size,w=f.modules.data,A=y+v.margin*2,U=v.color.light.a?"<path "+r(v.color.light,"fill")+' d="M0 0h'+A+"v"+A+'H0z"/>':"",S="<path "+r(v.color.dark,"stroke")+' d="'+l(w,y,v.margin)+'"/>',N='viewBox="0 0 '+A+" "+A+'"',I='<svg xmlns="http://www.w3.org/2000/svg" '+(v.width?'width="'+v.width+'" height="'+v.width+'" ':"")+N+' shape-rendering="crispEdges">'+U+S+`</svg>
|
|
18
|
-
`;return typeof h=="function"&&h(null,I),I},_c}var dg;function ox(){if(dg)return Ii;dg=1;const i=Vw(),r=rx(),s=lx(),l=sx();function c(f,d,h,v,y){const w=[].slice.call(arguments,1),A=w.length,U=typeof w[A-1]=="function";if(!U&&!i())throw new Error("Callback required as last argument");if(U){if(A<2)throw new Error("Too few arguments provided");A===2?(y=h,h=d,d=v=void 0):A===3&&(d.getContext&&typeof y>"u"?(y=v,v=void 0):(y=v,v=h,h=d,d=void 0))}else{if(A<1)throw new Error("Too few arguments provided");return A===1?(h=d,d=v=void 0):A===2&&!d.getContext&&(v=h,h=d,d=void 0),new Promise(function(S,N){try{const D=r.create(h,v);S(f(D,d,v))}catch(D){N(D)}})}try{const S=r.create(h,v);y(null,f(S,d,v))}catch(S){y(S)}}return Ii.create=r.create,Ii.toCanvas=c.bind(null,s.render),Ii.toDataURL=c.bind(null,s.renderToDataURL),Ii.toString=c.bind(null,function(f,d,h){return l.render(f,h)}),Ii}var ux=ox();function cx({...i}){return x.jsx(pg,{"data-slot":"dialog",...i})}function _E({...i}){return x.jsx(jy,{"data-slot":"dialog-trigger",...i})}function fx({...i}){return x.jsx(bg,{"data-slot":"dialog-portal",...i})}function dx({className:i,...r}){return x.jsx(Sg,{"data-slot":"dialog-overlay",className:nt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",i),...r})}function hx({className:i,children:r,showCloseButton:s=!0,...l}){return x.jsxs(fx,{"data-slot":"dialog-portal",children:[x.jsx(dx,{}),x.jsxs(vg,{"data-slot":"dialog-content",className:nt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",i),...l,children:[r,s&&x.jsxs(Kc,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[x.jsx(Eg,{}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function mx({className:i,...r}){return x.jsx("div",{"data-slot":"dialog-header",className:nt("flex flex-col gap-2 text-center sm:text-left",i),...r})}function DE({className:i,showCloseButton:r=!1,children:s,...l}){return x.jsxs("div",{"data-slot":"dialog-footer",className:nt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",i),...l,children:[s,r&&x.jsx(Kc,{asChild:!0,children:x.jsx(It,{variant:"outline",children:"Close"})})]})}function gx({className:i,...r}){return x.jsx(yg,{"data-slot":"dialog-title",className:nt("text-lg leading-none font-semibold",i),...r})}function px({className:i,...r}){return x.jsx(qy,{"data-slot":"dialog-description",className:nt("text-muted-foreground text-sm",i),...r})}function vx({className:i,orientation:r="horizontal",...s}){return x.jsx(ky,{"data-slot":"tabs","data-orientation":r,orientation:r,className:nt("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",i),...s})}const yx=Vg("rounded-lg p-[3px] group-data-[orientation=horizontal]/tabs:h-9 data-[variant=line]:rounded-none group/tabs-list text-muted-foreground inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function bx({className:i,variant:r="default",...s}){return x.jsx(Ly,{"data-slot":"tabs-list","data-variant":r,className:nt(yx({variant:r}),i),...s})}function Dc({className:i,...r}){return x.jsx(Hy,{"data-slot":"tabs-trigger",className:nt("focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground/60 hover:text-foreground dark:text-muted-foreground dark:hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:text-foreground","after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",i),...r})}function Rc({className:i,...r}){return x.jsx(Fy,{"data-slot":"tabs-content",className:nt("flex-1 outline-none",i),...r})}function _a({className:i,type:r,...s}){return x.jsx("input",{type:r,"data-slot":"input",className:nt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...s})}function Da({className:i,...r}){return x.jsx(Vy,{"data-slot":"label",className:nt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",i),...r})}const hg=12;function $a(i,r){if(i&&typeof i=="object"&&"name"in i){const s=i.name;if(s==="NotAuthorizedException")return"Current password is incorrect";if(s==="InvalidPasswordException")return"New password does not meet requirements";if(s==="LimitExceededException")return"Too many attempts. Please try again later.";if(s==="AliasExistsException")return"An account with this email already exists";if(s==="CodeMismatchException")return"Invalid verification code";if(s==="EnableSoftwareTokenMFAException")return"Invalid authentication code"}return r}function Sx({open:i,onOpenChange:r}){const{user:s,updateUserEmail:l}=Ms(),[c,f]=ve.useState(""),[d,h]=ve.useState(""),[v,y]=ve.useState(""),[w,A]=ve.useState(""),[U,S]=ve.useState(!1),[N,D]=ve.useState("input"),[I,K]=ve.useState(""),[P,J]=ve.useState(""),[$,se]=ve.useState(""),[X,W]=ve.useState(!1),[L,Z]=ve.useState(null),[ue,ne]=ve.useState("status"),[ee,le]=ve.useState(""),[oe,Ae]=ve.useState(""),[j,Q]=ve.useState(""),[G,ie]=ve.useState(!1),[be,Se]=ve.useState("");ve.useEffect(()=>{i&&z2().then(Z).catch(()=>Z(!1))},[i]);function re(){f(""),h(""),y(""),A(""),S(!1),D("input"),K(""),J(""),se(""),W(!1),Z(null),ne("status"),le(""),Ae(""),Q(""),ie(!1),Se("")}async function te(xe){if(xe.preventDefault(),A(""),d.length<hg){A(`Password must be at least ${hg} characters`);return}if(d!==v){A("Passwords do not match");return}if(d===c){A("New password must be different from current password");return}S(!0);try{await N2(c,d),ys.success("Password changed successfully"),f(""),h(""),y(""),A("")}catch(Ye){A($a(Ye,"Failed to change password"))}finally{S(!1)}}async function ce(xe){if(xe.preventDefault(),se(""),!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(I)){se("Please enter a valid email address");return}if(I===s?.email){se("New email must be different from current email");return}W(!0);try{await T0(I),D("verify")}catch(pn){se($a(pn,"Failed to send verification code"))}finally{W(!1)}}async function _e(xe){xe.preventDefault(),se(""),W(!0);try{await M2(P),l(I),ys.success("Email changed successfully"),D("input"),K(""),J("")}catch(Ye){se($a(Ye,"Failed to verify email"))}finally{W(!1)}}async function Je(){se(""),W(!0);try{await T0(I)}catch(xe){se($a(xe,"Failed to resend verification code"))}finally{W(!1)}}async function ge(){Q(""),ie(!0);try{const xe=await B2();le(xe);const Ye=`otpauth://totp/Headroom%20CMS:${encodeURIComponent(s?.email??"")}?secret=${xe}&issuer=Headroom%20CMS`,pn=await ux.toDataURL(Ye);Se(pn),ne("setup")}catch(xe){Q($a(xe,"Failed to start 2FA setup"))}finally{ie(!1)}}async function $e(xe){xe.preventDefault(),Q(""),ie(!0);try{await C0(oe),await U0(!0),Z(!0),ne("status"),le(""),Ae(""),Se(""),ys.success("Two-factor authentication enabled")}catch(Ye){Q($a(Ye,"Failed to verify code"))}finally{ie(!1)}}async function Ke(xe){xe.preventDefault(),Q(""),ie(!0);try{await C0(oe),await U0(!1),Z(!1),ne("status"),Ae(""),ys.success("Two-factor authentication disabled")}catch(Ye){Q($a(Ye,"Failed to disable 2FA"))}finally{ie(!1)}}function ut(){return ue==="setup"?x.jsxs("div",{className:"space-y-4",children:[x.jsx("p",{className:"text-muted-foreground text-sm",children:"Scan this QR code with your authenticator app, then enter the 6-digit code below."}),be&&x.jsx("div",{className:"flex justify-center",children:x.jsx("img",{src:be,alt:"TOTP QR Code",className:"h-48 w-48"})}),x.jsxs("div",{className:"space-y-1",children:[x.jsx("p",{className:"text-muted-foreground text-xs",children:"Or enter this code manually:"}),x.jsx("code",{className:"bg-muted block rounded p-2 text-center text-sm font-mono break-all",children:ee})]}),x.jsxs("form",{onSubmit:$e,className:"space-y-4",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(Da,{htmlFor:"totp-setup-code",children:"Authentication Code"}),x.jsx(_a,{id:"totp-setup-code",type:"text",inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,value:oe,onChange:xe=>Ae(xe.target.value),required:!0,autoComplete:"one-time-code"})]}),j&&x.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx(It,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{ne("status"),le(""),Ae(""),Se(""),Q("")},children:"Cancel"}),x.jsxs(It,{type:"submit",className:"flex-1",disabled:G,children:[G&&x.jsx($n,{className:"mr-2 h-4 w-4 animate-spin"}),"Enable 2FA"]})]})]})]}):ue==="disable"?x.jsxs("div",{className:"space-y-4",children:[x.jsx("p",{className:"text-muted-foreground text-sm",children:"Enter a code from your authenticator app to confirm disabling two-factor authentication."}),x.jsxs("form",{onSubmit:Ke,className:"space-y-4",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(Da,{htmlFor:"totp-disable-code",children:"Authentication Code"}),x.jsx(_a,{id:"totp-disable-code",type:"text",inputMode:"numeric",pattern:"[0-9]{6}",maxLength:6,value:oe,onChange:xe=>Ae(xe.target.value),required:!0,autoComplete:"one-time-code"})]}),j&&x.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx(It,{type:"button",variant:"outline",className:"flex-1",onClick:()=>{ne("status"),Ae(""),Q("")},children:"Cancel"}),x.jsxs(It,{type:"submit",variant:"destructive",className:"flex-1",disabled:G,children:[G&&x.jsx($n,{className:"mr-2 h-4 w-4 animate-spin"}),"Disable 2FA"]})]})]})]}):L===null?x.jsx("div",{className:"flex items-center justify-center py-4",children:x.jsx($n,{className:"h-5 w-5 animate-spin"})}):L?x.jsxs("div",{className:"space-y-4",children:[x.jsxs("p",{className:"text-sm",children:["Status: ",x.jsx("span",{className:"font-medium text-green-600",children:"Enabled"})]}),x.jsx(It,{variant:"outline",className:"w-full",onClick:()=>{ne("disable"),Q(""),Ae("")},children:"Disable 2FA"})]}):x.jsxs("div",{className:"space-y-4",children:[x.jsxs("p",{className:"text-sm",children:["Status: ",x.jsx("span",{className:"text-muted-foreground",children:"Not enabled"})]}),j&&x.jsx("p",{className:"text-destructive text-sm",role:"alert",children:j}),x.jsxs(It,{className:"w-full",onClick:ge,disabled:G,children:[G&&x.jsx($n,{className:"mr-2 h-4 w-4 animate-spin"}),"Set Up 2FA"]})]})}return x.jsx(cx,{open:i,onOpenChange:xe=>{xe||re(),r(xe)},children:x.jsxs(hx,{className:"sm:max-w-md",children:[x.jsxs(mx,{children:[x.jsx(gx,{children:"Account Settings"}),x.jsx(px,{className:"sr-only",children:"Manage your password, email, and security settings"})]}),x.jsxs(vx,{defaultValue:"password",children:[x.jsxs(bx,{className:"w-full",children:[x.jsx(Dc,{value:"password",children:"Password"}),x.jsx(Dc,{value:"email",children:"Email"}),x.jsx(Dc,{value:"security",children:"Security"})]}),x.jsx(Rc,{value:"password",children:x.jsxs("form",{onSubmit:te,className:"space-y-4 pt-4",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(Da,{htmlFor:"current-password",children:"Current Password"}),x.jsx(_a,{id:"current-password",type:"password",value:c,onChange:xe=>f(xe.target.value),required:!0})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(Da,{htmlFor:"new-password",children:"New Password"}),x.jsx(_a,{id:"new-password",type:"password",value:d,onChange:xe=>h(xe.target.value),required:!0})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(Da,{htmlFor:"confirm-password",children:"Confirm New Password"}),x.jsx(_a,{id:"confirm-password",type:"password",value:v,onChange:xe=>y(xe.target.value),required:!0})]}),w&&x.jsx("p",{className:"text-destructive text-sm",role:"alert",children:w}),x.jsxs(It,{type:"submit",disabled:U,className:"w-full",children:[U&&x.jsx($n,{className:"mr-2 h-4 w-4 animate-spin"}),"Change Password"]})]})}),x.jsx(Rc,{value:"email",children:x.jsx("div",{className:"pt-4",children:N==="input"?x.jsxs("form",{onSubmit:ce,className:"space-y-4",children:[x.jsxs("div",{className:"space-y-2",children:[x.jsx(Da,{htmlFor:"current-email",children:"Current Email"}),x.jsx(_a,{id:"current-email",type:"email",value:s?.email??"",disabled:!0})]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(Da,{htmlFor:"new-email",children:"New Email"}),x.jsx(_a,{id:"new-email",type:"email",value:I,onChange:xe=>K(xe.target.value),required:!0})]}),$&&x.jsx("p",{className:"text-destructive text-sm",role:"alert",children:$}),x.jsxs(It,{type:"submit",disabled:X,className:"w-full",children:[X&&x.jsx($n,{className:"mr-2 h-4 w-4 animate-spin"}),"Send Verification Code"]})]}):x.jsxs("form",{onSubmit:_e,className:"space-y-4",children:[x.jsxs("p",{className:"text-muted-foreground text-sm",children:["A verification code has been sent to"," ",x.jsx("strong",{children:I}),"."]}),x.jsxs("div",{className:"space-y-2",children:[x.jsx(Da,{htmlFor:"verification-code",children:"Verification Code"}),x.jsx(_a,{id:"verification-code",type:"text",value:P,onChange:xe=>J(xe.target.value),required:!0})]}),$&&x.jsx("p",{className:"text-destructive text-sm",role:"alert",children:$}),x.jsxs(It,{type:"submit",disabled:X,className:"w-full",children:[X&&x.jsx($n,{className:"mr-2 h-4 w-4 animate-spin"}),"Verify Email"]}),x.jsx("button",{type:"button",className:"text-muted-foreground hover:text-foreground text-sm underline",onClick:Je,children:"Resend code"})]})})}),x.jsx(Rc,{value:"security",children:x.jsxs("div",{className:"pt-4",children:[x.jsx("h3",{className:"mb-4 text-sm font-medium",children:"Two-Factor Authentication"}),ut()]})})]})]})})}function wx({currentSite:i,onMenuClick:r}){const{user:s,logout:l}=Ms(),[c,f]=ve.useState(!1),{data:d}=kg(),{data:h}=Lg(),v=Sy(),y=d?.items??[],w=s?(h?.superAdminIds??[]).includes(s.sub):!1;return x.jsxs("header",{className:"bg-background sticky top-0 z-30 flex items-center border-b px-4 pt-[env(safe-area-inset-top,0px)] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] min-h-14",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[r&&x.jsx(It,{variant:"ghost",size:"icon",className:"md:hidden",onClick:r,"aria-label":"Open menu",children:x.jsx(B1,{className:"h-5 w-5"})}),x.jsx("span",{className:"text-lg font-semibold",children:"Headroom"}),i&&y.length>0&&x.jsxs(O0,{children:[x.jsx(j0,{asChild:!0,children:x.jsxs(It,{variant:"outline",size:"sm",className:"gap-1",children:[i.name||i.host,x.jsx(c1,{className:"h-3 w-3 opacity-50"})]})}),x.jsxs(q0,{align:"start",children:[y.map(A=>x.jsx($r,{onSelect:()=>v(`/sites/${A.host}/content`),children:A.name||A.host},A.host)),w&&x.jsxs(x.Fragment,{children:[x.jsx(k0,{}),x.jsx($r,{onSelect:()=>v("/sites"),children:"Manage Sites"})]})]})]})]}),x.jsx("div",{className:"ml-auto flex items-center gap-2",children:x.jsxs(O0,{children:[x.jsx(j0,{asChild:!0,children:x.jsxs(It,{variant:"ghost",size:"sm",className:"gap-2",children:[x.jsx(m1,{className:"h-4 w-4"}),x.jsx("span",{className:"text-muted-foreground hidden text-sm md:inline",children:s?.email})]})}),x.jsxs(q0,{align:"end",children:[x.jsx($r,{disabled:!0,className:"text-xs",children:s?.email}),x.jsxs($r,{onSelect:()=>f(!0),children:[x.jsx(xg,{className:"mr-2 h-4 w-4"}),"Account Settings"]}),x.jsx(k0,{}),x.jsx($r,{onSelect:l,children:"Log out"})]})]})}),x.jsx(Sx,{open:c,onOpenChange:f})]})}function xx({className:i,children:r,...s}){return x.jsxs(Ky,{"data-slot":"scroll-area",className:nt("relative",i),...s,children:[x.jsx(Yy,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:r}),x.jsx(Ex,{}),x.jsx(Iy,{})]})}function Ex({className:i,orientation:r="vertical",...s}){return x.jsx(Gy,{"data-slot":"scroll-area-scrollbar",orientation:r,className:nt("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",i),...s,children:x.jsx(Qy,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}function mg({className:i,orientation:r="horizontal",decorative:s=!0,...l}){return x.jsx(Xy,{"data-slot":"separator",decorative:s,orientation:r,className:nt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",i),...l})}function Ax({className:i,...r}){return x.jsx("div",{"data-slot":"skeleton",className:nt("bg-accent animate-pulse rounded-md",i),...r})}function Tx(){const{user:i}=Ms(),{site:r}=Zc(),{data:s}=Lg();return i?(s?.superAdminIds??[]).includes(i.sub)?"admin":r.admins?.find(f=>f.id===i.sub)?.role??null:null}function dn({to:i,icon:r,end:s,children:l,onClick:c}){const{host:f}=gg(),d=`/sites/${f}/${i}`;return x.jsxs(wy,{to:d,end:s,onClick:c,className:({isActive:h})=>nt("flex items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors",h?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-accent-foreground"),children:[x.jsx(r,{className:"h-4 w-4"}),l]})}function el({title:i,children:r}){return x.jsxs("div",{className:"mb-2",children:[i&&x.jsx("p",{className:"text-muted-foreground mb-1 px-3 text-xs font-medium uppercase tracking-wider",children:i}),x.jsx("div",{className:"space-y-0.5",children:r})]})}function rp({onNavigate:i}){const{collections:r,isLoading:s}=Zc(),l=Tx(),c=r.filter(h=>!h.singleton),f=r.filter(h=>h.singleton),d=l==="admin";return s?x.jsx("div",{className:"p-4",children:x.jsx("div",{className:"space-y-3",children:Array.from({length:6}).map((h,v)=>x.jsx(Ax,{className:"h-8 w-full"},v))})}):x.jsx(xx,{className:"h-full",children:x.jsxs("nav",{className:"space-y-1 p-3",children:[x.jsx(el,{title:"",children:x.jsx(dn,{to:"content",icon:p1,end:!0,onClick:i,children:"Recent"})}),c.length>0&&x.jsx(el,{title:"Collections",children:c.map(h=>x.jsx(dn,{to:`content/${h.name}`,icon:x1,onClick:i,children:h.label},h.name))}),f.length>0&&x.jsx(el,{title:"Singletons",children:f.map(h=>x.jsx(dn,{to:h.singletonContentId?`content/${h.name}/${h.singletonContentId}`:`content/${h.name}`,icon:xg,onClick:i,children:h.label},h.name))}),x.jsx(mg,{className:"my-2"}),x.jsxs(el,{title:"Content",children:[x.jsx(dn,{to:"media",icon:C1,onClick:i,children:"Media"}),x.jsx(dn,{to:"settings/tags",icon:k1,onClick:i,children:"Tags"})]}),d&&x.jsxs(x.Fragment,{children:[x.jsx(mg,{className:"my-2"}),x.jsxs(el,{title:"Settings",children:[x.jsx(dn,{to:"settings/collections",icon:S1,onClick:i,children:"Collections"}),x.jsx(dn,{to:"settings/block-types",icon:o1,onClick:i,children:"Block Types"}),x.jsx(dn,{to:"settings/api-keys",icon:R1,onClick:i,children:"API Keys"}),x.jsx(dn,{to:"settings/webhooks",icon:Y1,onClick:i,children:"Webhooks"}),x.jsx(dn,{to:"settings/admins",icon:V1,onClick:i,children:"Admins"}),x.jsx(dn,{to:"audit",icon:A1,onClick:i,children:"Audit Log"}),x.jsx(dn,{to:"settings",icon:y1,end:!0,onClick:i,children:"Configuration"})]})]})]})})}function Cx(){return x.jsx("div",{className:"w-50 border-r h-[calc(100vh-3.5rem)] pl-[env(safe-area-inset-left,0px)]",children:x.jsx(rp,{})})}function Ux({...i}){return x.jsx(pg,{"data-slot":"sheet",...i})}function _x({...i}){return x.jsx(bg,{"data-slot":"sheet-portal",...i})}function Dx({className:i,...r}){return x.jsx(Sg,{"data-slot":"sheet-overlay",className:nt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",i),...r})}function Rx({className:i,children:r,side:s="right",showCloseButton:l=!0,...c}){return x.jsxs(_x,{children:[x.jsx(Dx,{}),x.jsxs(vg,{"data-slot":"sheet-content",className:nt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",s==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",s==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",i),...c,children:[r,l&&x.jsxs(Kc,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[x.jsx(Eg,{className:"size-4"}),x.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function RE({className:i,...r}){return x.jsx("div",{"data-slot":"sheet-header",className:nt("flex flex-col gap-1.5 p-4",i),...r})}function Nx({className:i,...r}){return x.jsx(yg,{"data-slot":"sheet-title",className:nt("text-foreground font-semibold",i),...r})}function Mx({open:i,onOpenChange:r}){return x.jsx(Ux,{open:i,onOpenChange:r,children:x.jsxs(Rx,{side:"left",className:"w-64 p-0 pt-[env(safe-area-inset-top,0px)] pl-[env(safe-area-inset-left,0px)] [&_[data-slot=sheet-close]]:top-[calc(1rem+env(safe-area-inset-top,0px))]",children:[x.jsx(Nx,{className:"sr-only",children:"Navigation"}),x.jsx(rp,{onNavigate:()=>r(!1)})]})})}function Bx(){const{site:i}=Zc(),[r,s]=ve.useState(!1);return x.jsxs("div",{className:"flex w-full flex-col md:h-dvh",children:[x.jsx(wx,{currentSite:i,onMenuClick:()=>s(!0)}),i?.status==="archived"&&x.jsxs("div",{className:"bg-muted border-b px-4 py-2 text-sm flex items-center gap-2",children:[x.jsx(l1,{className:"h-4 w-4"}),"This site is archived. Content is read-only.",x.jsx(xy,{to:`/sites/${i.host}/settings`,className:"text-primary underline underline-offset-4",children:"Go to settings"})]}),x.jsxs("div",{className:"flex max-w-full flex-1 md:overflow-hidden",children:[x.jsx("div",{className:"hidden md:block",children:x.jsx(Cx,{})}),x.jsx(Mx,{open:r,onOpenChange:s}),x.jsx("main",{className:"min-w-0 flex-1 p-2 pb-[max(0.5rem,env(safe-area-inset-bottom,0px))] pl-[max(0.5rem,env(safe-area-inset-left,0px))] pr-[max(0.5rem,env(safe-area-inset-right,0px))] md:overflow-y-auto md:p-6 md:pl-6 md:pr-[max(1.5rem,env(safe-area-inset-right,0px))] md:pb-[max(1.5rem,env(safe-area-inset-bottom,0px))]",children:x.jsx(ve.Suspense,{children:x.jsx(Ey,{})})})]})]})}function Ts(){const i=Ay(),r=i instanceof TypeError&&(i.message.includes("module script")||i.message.includes("dynamically imported module")),s=r?"App update available":Gm(i)&&i.status===404?"Page not found":"Something went wrong",l=r?"A new version of Headroom has been deployed. Reload to get the latest.":Gm(i)&&i.status===404?"The page you're looking for doesn't exist.":"An unexpected error occurred. Try reloading the app.";return x.jsx("div",{className:"flex h-dvh w-dvw items-center justify-center bg-background p-4",children:x.jsxs("div",{className:"flex max-w-sm flex-col items-center gap-4 text-center",children:[x.jsx("h1",{className:"text-lg font-semibold",children:s}),x.jsx("p",{className:"text-sm text-muted-foreground",children:l}),x.jsx(It,{onClick:()=>window.location.reload(),children:"Reload"})]})})}function wt(i){return ve.lazy(()=>i().catch(r=>{if(r instanceof TypeError&&(r.message.includes("Importing a module script failed")||r.message.includes("Failed to fetch dynamically imported module")||r.message.includes("error loading dynamically imported module"))&&!sessionStorage.getItem("chunk_reload"))return sessionStorage.setItem("chunk_reload","1"),window.location.reload(),new Promise(()=>{});throw sessionStorage.removeItem("chunk_reload"),r}))}const zx=wt(()=>yt(()=>import("./LoginPage-uxiw8K1J.js"),__vite__mapDeps([0,1,2,3,4])).then(i=>({default:i.LoginPage}))),Ox=wt(()=>yt(()=>import("./SitesPage-BD9tou9-.js"),__vite__mapDeps([5,1,2,3,6,4,7,8,9])).then(i=>({default:i.SitesPage}))),jx=wt(()=>yt(()=>import("./UsersPage-BayuQyLh.js"),__vite__mapDeps([10,1,2,7,8,4,6,11,12])).then(i=>({default:i.UsersPage}))),qx=wt(()=>yt(()=>import("./AllContentPage-Cnkt8Fgm.js"),__vite__mapDeps([13,1,2,14,15,6,4,3,7,8,11,16,17])).then(i=>({default:i.AllContentPage}))),kx=wt(()=>yt(()=>import("./ContentListPage-qFcZVzg9.js"),__vite__mapDeps([18,1,2,14,19,20,15,6,4,3,7,8,21,22,11,16,23,17,9,24])).then(i=>({default:i.ContentListPage}))),Lx=wt(()=>yt(()=>import("./ContentCreatePage-DZCyOcte.js"),__vite__mapDeps([25,1,2,14,3,16,4])).then(i=>({default:i.ContentCreatePage}))),Hx=wt(()=>yt(()=>import("./ContentEditPage-RtHbU_l4.js").then(i=>i.a),__vite__mapDeps([26,1,2,14,27,15,22,8,4,16,28,29,6,3,30,19,21,31,24,20,9,7,12,23])).then(i=>({default:i.ContentEditPage}))),Fx=wt(()=>yt(()=>import("./MediaPage-CeepVDHQ.js"),__vite__mapDeps([32,1,2,30,4,6,3,7,8,22,29,16,15,11,33,12,9,24,34])).then(i=>({default:i.MediaPage}))),Vx=wt(()=>yt(()=>import("./CollectionsPage-CxnSFPCH.js"),__vite__mapDeps([35,1,2,6,4,11,9])).then(i=>({default:i.CollectionsPage}))),Kx=wt(()=>yt(()=>import("./CollectionEditPage-Cimkb84B.js"),__vite__mapDeps([36,1,2,37,29,4,28,22,8,16,7,9,12,3])).then(i=>({default:i.CollectionEditPage}))),Yx=wt(()=>yt(()=>import("./BlockTypesPage-CwsGPuAZ.js"),__vite__mapDeps([38,1,2,11,9,4])).then(i=>({default:i.BlockTypesPage}))),Ix=wt(()=>yt(()=>import("./BlockTypeEditPage-Dr_yNLDI.js"),__vite__mapDeps([39,1,2,37,29,4,28,22,8,16,7,9,12,3,40,20])).then(i=>({default:i.BlockTypeEditPage}))),Gx=wt(()=>yt(()=>import("./ApiKeysPage-FLex3Chc.js"),__vite__mapDeps([41,1,2,11,16,9,12,33,4])).then(i=>({default:i.ApiKeysPage}))),Qx=wt(()=>yt(()=>import("./WebhooksPage-BUE6XuIP.js"),__vite__mapDeps([42,1,2,43,6,4,11,9])).then(i=>({default:i.WebhooksPage}))),Xx=wt(()=>yt(()=>import("./WebhookEditPage-BrXm8Dht.js"),__vite__mapDeps([44,1,2,43,6,4,3,11,16,12])).then(i=>({default:i.WebhookEditPage}))),Zx=wt(()=>yt(()=>import("./AdminsPage-Cvqw6UOu.js"),__vite__mapDeps([45,1,2,27,11,21,4,31,24,22,8,9,12])).then(i=>({default:i.AdminsPage}))),Jx=wt(()=>yt(()=>import("./AuditPage-ClgwR_8y.js"),__vite__mapDeps([46,1,2,27,11,16,4])).then(i=>({default:i.AuditPage}))),Px=wt(()=>yt(()=>import("./TagsPage-BxSwTLpQ.js"),__vite__mapDeps([47,1,2,19,11,9,12,4])).then(i=>({default:i.TagsPage}))),$x=wt(()=>yt(()=>import("./SiteSettingsPage-xkngL15i.js"),__vite__mapDeps([48,1,2,6,4,3,16])).then(i=>({default:i.SiteSettingsPage}))),Wx=[{path:"/login",element:x.jsx(ve.Suspense,{children:x.jsx(zx,{})}),errorElement:x.jsx(Ts,{})},{path:"/",element:x.jsx(Us,{to:"/sites",replace:!0})},{path:"/sites",element:x.jsx(ac,{children:x.jsx(ve.Suspense,{children:x.jsx(Ox,{})})}),errorElement:x.jsx(Ts,{})},{path:"/users",element:x.jsx(ac,{children:x.jsx(ve.Suspense,{children:x.jsx(jx,{})})}),errorElement:x.jsx(Ts,{})},{path:"/sites/:host",element:x.jsx(ac,{children:x.jsx($2,{children:x.jsx(Bx,{})})}),errorElement:x.jsx(Ts,{}),children:[{index:!0,element:x.jsx(Us,{to:"content",replace:!0})},{path:"content",element:x.jsx(qx,{})},{path:"content/:collection",element:x.jsx(kx,{})},{path:"content/:collection/new",element:x.jsx(Lx,{})},{path:"content/:collection/:id",element:x.jsx(Hx,{})},{path:"media",element:x.jsx(Fx,{})},{path:"settings",element:x.jsx($x,{})},{path:"settings/collections",element:x.jsx(Vx,{})},{path:"settings/collections/:name",element:x.jsx(Kx,{})},{path:"settings/block-types",element:x.jsx(Yx,{})},{path:"settings/block-types/:name",element:x.jsx(Ix,{})},{path:"settings/tags",element:x.jsx(Px,{})},{path:"settings/api-keys",element:x.jsx(Gx,{})},{path:"settings/webhooks",element:x.jsx(Qx,{})},{path:"settings/webhooks/:id",element:x.jsx(Xx,{})},{path:"settings/admins",element:x.jsx(Zx,{})},{path:"audit",element:x.jsx(Jx,{})}]}],eE=Ty(Wx);function tE(){return x.jsx(yy,{client:X2,children:x.jsx(H2,{children:x.jsxs(Q2,{children:[x.jsx(Cy,{router:eE}),x.jsx(Eb,{}),x.jsx(_b,{})]})})})}sessionStorage.removeItem("chunk_reload");Wy.createRoot(document.getElementById("root")).render(x.jsx(ve.StrictMode,{children:x.jsx(tE,{})}));export{gE as $,Rx as A,It as B,RE as C,cx as D,Nx as E,bx as F,Dc as G,wx as H,_a as I,Rc as J,C1 as K,Da as L,x1 as M,xE as N,O0 as O,j0 as P,p1 as Q,q0 as R,Ax as S,vx as T,V1 as U,$r as V,mg as W,Eg as X,Z2 as Y,mE as Z,yt as _,$n as a,pE as a0,vE as a1,J2 as a2,yE as a3,bE as a4,SE as a5,wE as a6,Tx as a7,sE as a8,fE as a9,hE as aa,CE as ab,uE as ac,dE as ad,cE as ae,l1 as af,Vg as ag,Wy as ah,Fg as ai,kg as b,lE as c,Lg as d,it as e,rE as f,oE as g,qg as h,_E as i,hx as j,mx as k,gx as l,px as m,DE as n,ot as o,EE as p,UE as q,AE as r,TE as s,ys as t,Ms as u,Zc as v,nt as w,F2 as x,k2 as y,Ux as z};
|