@chatwillow/widget 0.0.9 → 0.1.0

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.
Files changed (28) hide show
  1. package/README.md +2 -2
  2. package/dist/chatwillow-widget.es.js +25364 -2940
  3. package/dist/chatwillow-widget.umd.js +201 -6
  4. package/dist/chatwillow.bundle.js +213 -18
  5. package/dist/components/atom/MarkdownRenderer.d.ts +5 -0
  6. package/dist/components/ui/badge.d.ts +1 -1
  7. package/dist/components/ui/button.d.ts +1 -1
  8. package/dist/components/ui/input-group.d.ts +1 -1
  9. package/dist/components/ui/item.d.ts +1 -1
  10. package/dist/components/ui/tabs.d.ts +1 -1
  11. package/dist/lib/encryptionService.d.ts +17 -0
  12. package/dist/lib/urlParsingService.d.ts +11 -0
  13. package/dist/modules/ChatWidget/ChatWidget.d.ts +2 -1
  14. package/dist/modules/ChatWidget/components/ChatInputArea.d.ts +9 -0
  15. package/dist/modules/ChatWidget/components/ChatMessageList.d.ts +9 -0
  16. package/dist/modules/ChatWidget/components/ChatWidgetUI.d.ts +1 -1
  17. package/dist/modules/ChatWidget/components/ChatWindowHeader.d.ts +7 -0
  18. package/dist/modules/ChatWidget/components/FilePreviewDialog.d.ts +6 -0
  19. package/dist/modules/ChatWidget/constants/configurableData.d.ts +2 -0
  20. package/dist/modules/ChatWidget/hooks/useChatSocket.hooks.d.ts +10 -0
  21. package/dist/modules/ChatWidget/hooks/useChatWidget.hooks.d.ts +8 -1
  22. package/dist/modules/ChatWidget/service/chatWidget.service.d.ts +20 -4
  23. package/dist/modules/ChatWidget/types/chatWidget.type.d.ts +5 -1
  24. package/dist/modules/ChatWidget/types/configurable.type.d.ts +23 -0
  25. package/dist/style.bundle.css +1 -0
  26. package/dist/style.css +1 -0
  27. package/package.json +10 -1
  28. package/dist/widget.css +0 -1
@@ -1,4 +1,4 @@
1
- (function(yt,vt){typeof exports=="object"&&typeof module<"u"?vt(exports):typeof define=="function"&&define.amd?define(["exports"],vt):(yt=typeof globalThis<"u"?globalThis:yt||self,vt(yt.ChatWillow={}))})(this,(function(yt){"use strict";var x1=Object.defineProperty;var Qm=yt=>{throw TypeError(yt)};var q1=(yt,vt,Z)=>vt in yt?x1(yt,vt,{enumerable:!0,configurable:!0,writable:!0,value:Z}):yt[vt]=Z;var Je=(yt,vt,Z)=>q1(yt,typeof vt!="symbol"?vt+"":vt,Z),vr=(yt,vt,Z)=>vt.has(yt)||Qm("Cannot "+Z);var z=(yt,vt,Z)=>(vr(yt,vt,"read from private field"),Z?Z.call(yt):vt.get(yt)),at=(yt,vt,Z)=>vt.has(yt)?Qm("Cannot add the same private member more than once"):vt instanceof WeakSet?vt.add(yt):vt.set(yt,Z),P=(yt,vt,Z,dn)=>(vr(yt,vt,"write to private field"),dn?dn.call(yt,Z):vt.set(yt,Z),Z),Yt=(yt,vt,Z)=>(vr(yt,vt,"access private method"),Z);var bc=(yt,vt,Z,dn)=>({set _(Tc){P(yt,vt,Tc,Z)},get _(){return z(yt,vt,dn)}});var Nl,Wc,Do,gn,xl,Zn,Mo,Vn,ql,Kn,Co,pn,Uo,Sn,Jn,He,bn,Ft,Ka,En,We,Ul,No,Ja,el,ce,Tn,ll,on,xo,fl,$e,Fa,qo,rl,Hl,he,ol,dl,Ec,gr,Ho,nl,Bo,qt,Bl,jl,Fn,kn,wl,Wn,$n,jo;var vt={exports:{}},Z={};/**
1
+ (function(Xe,We){typeof exports=="object"&&typeof module<"u"?We(exports):typeof define=="function"&&define.amd?define(["exports"],We):(Xe=typeof globalThis<"u"?globalThis:Xe||self,We(Xe.ChatWillow={}))})(this,(function(Xe){"use strict";var _O=Object.defineProperty;var H4=Xe=>{throw TypeError(Xe)};var kO=(Xe,We,vt)=>We in Xe?_O(Xe,We,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Xe[We]=vt;var dr=(Xe,We,vt)=>kO(Xe,typeof We!="symbol"?We+"":We,vt),Xp=(Xe,We,vt)=>We.has(Xe)||H4("Cannot "+vt);var q=(Xe,We,vt)=>(Xp(Xe,We,"read from private field"),vt?vt.call(Xe):We.get(Xe)),Ce=(Xe,We,vt)=>We.has(Xe)?H4("Cannot add the same private member more than once"):We instanceof WeakSet?We.add(Xe):We.set(Xe,vt),ge=(Xe,We,vt,Cr)=>(Xp(Xe,We,"write to private field"),Cr?Cr.call(Xe,vt):We.set(Xe,vt),vt),Me=(Xe,We,vt)=>(Xp(Xe,We,"access private method"),vt);var Df=(Xe,We,vt,Cr)=>({set _(Tf){ge(Xe,We,Tf,vt)},get _(){return q(Xe,We,Cr)}});var Si,Md,Uv,va,wi,ul,jv,cl,Ai,fl,Hv,ba,qv,Ea,dl,Wn,Ca,Gt,zs,Sa,gr,pi,Iv,_n,Ye,Ns,xn,wa,hl,Pr,_i,Fs,pl,ml,Aa,_a,ki,xl,et,Do,Gp,Kp,$p,Zp,Wp,Jp,em,q4,Pv,Ms,Br,fn,ka,Tr,ia,Vv,Vr,yr,Ls,Yv,Yr,Di,kn,Qr,Xr,Bf,tm,Qv,Rr,Xv,St,Bi,Ti,gl,yl,Ri,vl,bl,Gv;function We(e,n){for(var r=0;r<n.length;r++){const a=n[r];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const u=Object.getOwnPropertyDescriptor(a,s);u&&Object.defineProperty(e,s,u.get?u:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Tf(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var r=function a(){return this instanceof a?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:function(){return e[a]}})}),r}var Rf={exports:{}},Te={};/**
2
2
  * @license React
3
3
  * react.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var dn;function Tc(){if(dn)return Z;dn=1;var c=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),w=Symbol.iterator;function F(g){return g===null||typeof g!="object"?null:(g=w&&g[w]||g["@@iterator"],typeof g=="function"?g:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,j={};function W(g,x,L){this.props=g,this.context=x,this.refs=j,this.updater=L||H}W.prototype.isReactComponent={},W.prototype.setState=function(g,x){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,x,"setState")},W.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function ft(){}ft.prototype=W.prototype;function K(g,x,L){this.props=g,this.context=x,this.refs=j,this.updater=L||H}var Y=K.prototype=new ft;Y.constructor=K,B(Y,W.prototype),Y.isPureReactComponent=!0;var ut=Array.isArray;function mt(){}var k={H:null,A:null,T:null,S:null},rt=Object.prototype.hasOwnProperty;function St(g,x,L){var G=L.ref;return{$$typeof:c,type:g,key:x,ref:G!==void 0?G:null,props:L}}function Be(g,x){return St(g.type,x,g.props)}function se(g){return typeof g=="object"&&g!==null&&g.$$typeof===c}function Kt(g){var x={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(L){return x[L]})}var Te=/\/+/g;function Pt(g,x){return typeof g=="object"&&g!==null&&g.key!=null?Kt(""+g.key):x.toString(36)}function ye(g){switch(g.status){case"fulfilled":return g.value;case"rejected":throw g.reason;default:switch(typeof g.status=="string"?g.then(mt,mt):(g.status="pending",g.then(function(x){g.status==="pending"&&(g.status="fulfilled",g.value=x)},function(x){g.status==="pending"&&(g.status="rejected",g.reason=x)})),g.status){case"fulfilled":return g.value;case"rejected":throw g.reason}}throw g}function M(g,x,L,G,et){var it=typeof g;(it==="undefined"||it==="boolean")&&(g=null);var Tt=!1;if(g===null)Tt=!0;else switch(it){case"bigint":case"string":case"number":Tt=!0;break;case"object":switch(g.$$typeof){case c:case u:Tt=!0;break;case R:return Tt=g._init,M(Tt(g._payload),x,L,G,et)}}if(Tt)return et=et(g),Tt=G===""?"."+Pt(g,0):G,ut(et)?(L="",Tt!=null&&(L=Tt.replace(Te,"$&/")+"/"),M(et,x,L,"",function(ka){return ka})):et!=null&&(se(et)&&(et=Be(et,L+(et.key==null||g&&g.key===et.key?"":(""+et.key).replace(Te,"$&/")+"/")+Tt)),x.push(et)),1;Tt=0;var fe=G===""?".":G+":";if(ut(g))for(var wt=0;wt<g.length;wt++)G=g[wt],it=fe+Pt(G,wt),Tt+=M(G,x,L,it,et);else if(wt=F(g),typeof wt=="function")for(g=wt.call(g),wt=0;!(G=g.next()).done;)G=G.value,it=fe+Pt(G,wt++),Tt+=M(G,x,L,it,et);else if(it==="object"){if(typeof g.then=="function")return M(ye(g),x,L,G,et);throw x=String(g),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.")}return Tt}function Q(g,x,L){if(g==null)return g;var G=[],et=0;return M(g,G,"","",function(it){return x.call(L,it,et++)}),G}function J(g){if(g._status===-1){var x=g._result;x=x(),x.then(function(L){(g._status===0||g._status===-1)&&(g._status=1,g._result=L)},function(L){(g._status===0||g._status===-1)&&(g._status=2,g._result=L)}),g._status===-1&&(g._status=0,g._result=x)}if(g._status===1)return g._result.default;throw g._result}var bt=typeof reportError=="function"?reportError:function(g){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var x=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g),error:g});if(!window.dispatchEvent(x))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",g);return}console.error(g)},At={map:Q,forEach:function(g,x,L){Q(g,function(){x.apply(this,arguments)},L)},count:function(g){var x=0;return Q(g,function(){x++}),x},toArray:function(g){return Q(g,function(x){return x})||[]},only:function(g){if(!se(g))throw Error("React.Children.only expected to receive a single React element child.");return g}};return Z.Activity=C,Z.Children=At,Z.Component=W,Z.Fragment=f,Z.Profiler=o,Z.PureComponent=K,Z.StrictMode=s,Z.Suspense=T,Z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Z.__COMPILER_RUNTIME={__proto__:null,c:function(g){return k.H.useMemoCache(g)}},Z.cache=function(g){return function(){return g.apply(null,arguments)}},Z.cacheSignal=function(){return null},Z.cloneElement=function(g,x,L){if(g==null)throw Error("The argument must be a React element, but you passed "+g+".");var G=B({},g.props),et=g.key;if(x!=null)for(it in x.key!==void 0&&(et=""+x.key),x)!rt.call(x,it)||it==="key"||it==="__self"||it==="__source"||it==="ref"&&x.ref===void 0||(G[it]=x[it]);var it=arguments.length-2;if(it===1)G.children=L;else if(1<it){for(var Tt=Array(it),fe=0;fe<it;fe++)Tt[fe]=arguments[fe+2];G.children=Tt}return St(g.type,et,G)},Z.createContext=function(g){return g={$$typeof:y,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null},g.Provider=g,g.Consumer={$$typeof:h,_context:g},g},Z.createElement=function(g,x,L){var G,et={},it=null;if(x!=null)for(G in x.key!==void 0&&(it=""+x.key),x)rt.call(x,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(et[G]=x[G]);var Tt=arguments.length-2;if(Tt===1)et.children=L;else if(1<Tt){for(var fe=Array(Tt),wt=0;wt<Tt;wt++)fe[wt]=arguments[wt+2];et.children=fe}if(g&&g.defaultProps)for(G in Tt=g.defaultProps,Tt)et[G]===void 0&&(et[G]=Tt[G]);return St(g,it,et)},Z.createRef=function(){return{current:null}},Z.forwardRef=function(g){return{$$typeof:S,render:g}},Z.isValidElement=se,Z.lazy=function(g){return{$$typeof:R,_payload:{_status:-1,_result:g},_init:J}},Z.memo=function(g,x){return{$$typeof:v,type:g,compare:x===void 0?null:x}},Z.startTransition=function(g){var x=k.T,L={};k.T=L;try{var G=g(),et=k.S;et!==null&&et(L,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(mt,bt)}catch(it){bt(it)}finally{x!==null&&L.types!==null&&(x.types=L.types),k.T=x}},Z.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Z.use=function(g){return k.H.use(g)},Z.useActionState=function(g,x,L){return k.H.useActionState(g,x,L)},Z.useCallback=function(g,x){return k.H.useCallback(g,x)},Z.useContext=function(g){return k.H.useContext(g)},Z.useDebugValue=function(){},Z.useDeferredValue=function(g,x){return k.H.useDeferredValue(g,x)},Z.useEffect=function(g,x){return k.H.useEffect(g,x)},Z.useEffectEvent=function(g){return k.H.useEffectEvent(g)},Z.useId=function(){return k.H.useId()},Z.useImperativeHandle=function(g,x,L){return k.H.useImperativeHandle(g,x,L)},Z.useInsertionEffect=function(g,x){return k.H.useInsertionEffect(g,x)},Z.useLayoutEffect=function(g,x){return k.H.useLayoutEffect(g,x)},Z.useMemo=function(g,x){return k.H.useMemo(g,x)},Z.useOptimistic=function(g,x){return k.H.useOptimistic(g,x)},Z.useReducer=function(g,x,L){return k.H.useReducer(g,x,L)},Z.useRef=function(g){return k.H.useRef(g)},Z.useState=function(g){return k.H.useState(g)},Z.useSyncExternalStore=function(g,x,L){return k.H.useSyncExternalStore(g,x,L)},Z.useTransition=function(){return k.H.useTransition()},Z.version="19.2.4",Z}var pr;function Ac(){return pr||(pr=1,vt.exports=Tc()),vt.exports}var Fe=Ac(),Oc={exports:{}},Ba={},Rc={exports:{}},zc={};/**
9
+ */var nm;function V4(){if(nm)return Te;nm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),y=Symbol.iterator;function v(O){return O===null||typeof O!="object"?null:(O=y&&O[y]||O["@@iterator"],typeof O=="function"?O:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,S={};function w(O,U,_){this.props=O,this.context=U,this.refs=S,this.updater=_||b}w.prototype.isReactComponent={},w.prototype.setState=function(O,U){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,U,"setState")},w.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function k(){}k.prototype=w.prototype;function A(O,U,_){this.props=O,this.context=U,this.refs=S,this.updater=_||b}var D=A.prototype=new k;D.constructor=A,E(D,w.prototype),D.isPureReactComponent=!0;var F=Array.isArray;function R(){}var z={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function X(O,U,_){var I=_.ref;return{$$typeof:e,type:O,key:U,ref:I!==void 0?I:null,props:_}}function T(O,U){return X(O.type,U,O.props)}function j(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function V(O){var U={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(_){return U[_]})}var G=/\/+/g;function ie(O,U){return typeof O=="object"&&O!==null&&O.key!=null?V(""+O.key):U.toString(36)}function J(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(R,R):(O.status="pending",O.then(function(U){O.status==="pending"&&(O.status="fulfilled",O.value=U)},function(U){O.status==="pending"&&(O.status="rejected",O.reason=U)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function L(O,U,_,I,ue){var ce=typeof O;(ce==="undefined"||ce==="boolean")&&(O=null);var xe=!1;if(O===null)xe=!0;else switch(ce){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(O.$$typeof){case e:case n:xe=!0;break;case x:return xe=O._init,L(xe(O._payload),U,_,I,ue)}}if(xe)return ue=ue(O),xe=I===""?"."+ie(O,0):I,F(ue)?(_="",xe!=null&&(_=xe.replace(G,"$&/")+"/"),L(ue,U,_,"",function(nt){return nt})):ue!=null&&(j(ue)&&(ue=T(ue,_+(ue.key==null||O&&O.key===ue.key?"":(""+ue.key).replace(G,"$&/")+"/")+xe)),U.push(ue)),1;xe=0;var de=I===""?".":I+":";if(F(O))for(var Be=0;Be<O.length;Be++)I=O[Be],ce=de+ie(I,Be),xe+=L(I,U,_,ce,ue);else if(Be=v(O),typeof Be=="function")for(O=Be.call(O),Be=0;!(I=O.next()).done;)I=I.value,ce=de+ie(I,Be++),xe+=L(I,U,_,ce,ue);else if(ce==="object"){if(typeof O.then=="function")return L(J(O),U,_,I,ue);throw U=String(O),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return xe}function te(O,U,_){if(O==null)return O;var I=[],ue=0;return L(O,I,"","",function(ce){return U.call(_,ce,ue++)}),I}function W(O){if(O._status===-1){var U=O._result;U=U(),U.then(function(_){(O._status===0||O._status===-1)&&(O._status=1,O._result=_)},function(_){(O._status===0||O._status===-1)&&(O._status=2,O._result=_)}),O._status===-1&&(O._status=0,O._result=U)}if(O._status===1)return O._result.default;throw O._result}var me=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},N={map:te,forEach:function(O,U,_){te(O,function(){U.apply(this,arguments)},_)},count:function(O){var U=0;return te(O,function(){U++}),U},toArray:function(O){return te(O,function(U){return U})||[]},only:function(O){if(!j(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return Te.Activity=m,Te.Children=N,Te.Component=w,Te.Fragment=r,Te.Profiler=s,Te.PureComponent=A,Te.StrictMode=a,Te.Suspense=p,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Te.__COMPILER_RUNTIME={__proto__:null,c:function(O){return z.H.useMemoCache(O)}},Te.cache=function(O){return function(){return O.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(O,U,_){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var I=E({},O.props),ue=O.key;if(U!=null)for(ce in U.key!==void 0&&(ue=""+U.key),U)!M.call(U,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&U.ref===void 0||(I[ce]=U[ce]);var ce=arguments.length-2;if(ce===1)I.children=_;else if(1<ce){for(var xe=Array(ce),de=0;de<ce;de++)xe[de]=arguments[de+2];I.children=xe}return X(O.type,ue,I)},Te.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:u,_context:O},O},Te.createElement=function(O,U,_){var I,ue={},ce=null;if(U!=null)for(I in U.key!==void 0&&(ce=""+U.key),U)M.call(U,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ue[I]=U[I]);var xe=arguments.length-2;if(xe===1)ue.children=_;else if(1<xe){for(var de=Array(xe),Be=0;Be<xe;Be++)de[Be]=arguments[Be+2];ue.children=de}if(O&&O.defaultProps)for(I in xe=O.defaultProps,xe)ue[I]===void 0&&(ue[I]=xe[I]);return X(O,ce,ue)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(O){return{$$typeof:f,render:O}},Te.isValidElement=j,Te.lazy=function(O){return{$$typeof:x,_payload:{_status:-1,_result:O},_init:W}},Te.memo=function(O,U){return{$$typeof:d,type:O,compare:U===void 0?null:U}},Te.startTransition=function(O){var U=z.T,_={};z.T=_;try{var I=O(),ue=z.S;ue!==null&&ue(_,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(R,me)}catch(ce){me(ce)}finally{U!==null&&_.types!==null&&(U.types=_.types),z.T=U}},Te.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Te.use=function(O){return z.H.use(O)},Te.useActionState=function(O,U,_){return z.H.useActionState(O,U,_)},Te.useCallback=function(O,U){return z.H.useCallback(O,U)},Te.useContext=function(O){return z.H.useContext(O)},Te.useDebugValue=function(){},Te.useDeferredValue=function(O,U){return z.H.useDeferredValue(O,U)},Te.useEffect=function(O,U){return z.H.useEffect(O,U)},Te.useEffectEvent=function(O){return z.H.useEffectEvent(O)},Te.useId=function(){return z.H.useId()},Te.useImperativeHandle=function(O,U,_){return z.H.useImperativeHandle(O,U,_)},Te.useInsertionEffect=function(O,U){return z.H.useInsertionEffect(O,U)},Te.useLayoutEffect=function(O,U){return z.H.useLayoutEffect(O,U)},Te.useMemo=function(O,U){return z.H.useMemo(O,U)},Te.useOptimistic=function(O,U){return z.H.useOptimistic(O,U)},Te.useReducer=function(O,U,_){return z.H.useReducer(O,U,_)},Te.useRef=function(O){return z.H.useRef(O)},Te.useState=function(O){return z.H.useState(O)},Te.useSyncExternalStore=function(O,U,_){return z.H.useSyncExternalStore(O,U,_)},Te.useTransition=function(){return z.H.useTransition()},Te.version="19.2.4",Te}var rm;function Of(){return rm||(rm=1,Rf.exports=V4()),Rf.exports}var Y=Of();const pe=Cr(Y),im=We({__proto__:null,default:pe},[Y]);var zf={exports:{}},as={},Nf={exports:{}},Ff={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Sr;function Gm(){return Sr||(Sr=1,(function(c){function u(M,Q){var J=M.length;M.push(Q);t:for(;0<J;){var bt=J-1>>>1,At=M[bt];if(0<o(At,Q))M[bt]=Q,M[J]=At,J=bt;else break t}}function f(M){return M.length===0?null:M[0]}function s(M){if(M.length===0)return null;var Q=M[0],J=M.pop();if(J!==Q){M[0]=J;t:for(var bt=0,At=M.length,g=At>>>1;bt<g;){var x=2*(bt+1)-1,L=M[x],G=x+1,et=M[G];if(0>o(L,J))G<At&&0>o(et,L)?(M[bt]=et,M[G]=J,bt=G):(M[bt]=L,M[x]=J,bt=x);else if(G<At&&0>o(et,J))M[bt]=et,M[G]=J,bt=G;else break t}}return Q}function o(M,Q){var J=M.sortIndex-Q.sortIndex;return J!==0?J:M.id-Q.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;c.unstable_now=function(){return h.now()}}else{var y=Date,S=y.now();c.unstable_now=function(){return y.now()-S}}var T=[],v=[],R=1,C=null,w=3,F=!1,H=!1,B=!1,j=!1,W=typeof setTimeout=="function"?setTimeout:null,ft=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function Y(M){for(var Q=f(v);Q!==null;){if(Q.callback===null)s(v);else if(Q.startTime<=M)s(v),Q.sortIndex=Q.expirationTime,u(T,Q);else break;Q=f(v)}}function ut(M){if(B=!1,Y(M),!H)if(f(T)!==null)H=!0,mt||(mt=!0,Kt());else{var Q=f(v);Q!==null&&ye(ut,Q.startTime-M)}}var mt=!1,k=-1,rt=5,St=-1;function Be(){return j?!0:!(c.unstable_now()-St<rt)}function se(){if(j=!1,mt){var M=c.unstable_now();St=M;var Q=!0;try{t:{H=!1,B&&(B=!1,ft(k),k=-1),F=!0;var J=w;try{e:{for(Y(M),C=f(T);C!==null&&!(C.expirationTime>M&&Be());){var bt=C.callback;if(typeof bt=="function"){C.callback=null,w=C.priorityLevel;var At=bt(C.expirationTime<=M);if(M=c.unstable_now(),typeof At=="function"){C.callback=At,Y(M),Q=!0;break e}C===f(T)&&s(T),Y(M)}else s(T);C=f(T)}if(C!==null)Q=!0;else{var g=f(v);g!==null&&ye(ut,g.startTime-M),Q=!1}}break t}finally{C=null,w=J,F=!1}Q=void 0}}finally{Q?Kt():mt=!1}}}var Kt;if(typeof K=="function")Kt=function(){K(se)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,Pt=Te.port2;Te.port1.onmessage=se,Kt=function(){Pt.postMessage(null)}}else Kt=function(){W(se,0)};function ye(M,Q){k=W(function(){M(c.unstable_now())},Q)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(M){M.callback=null},c.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):rt=0<M?Math.floor(1e3/M):5},c.unstable_getCurrentPriorityLevel=function(){return w},c.unstable_next=function(M){switch(w){case 1:case 2:case 3:var Q=3;break;default:Q=w}var J=w;w=Q;try{return M()}finally{w=J}},c.unstable_requestPaint=function(){j=!0},c.unstable_runWithPriority=function(M,Q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var J=w;w=M;try{return Q()}finally{w=J}},c.unstable_scheduleCallback=function(M,Q,J){var bt=c.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?bt+J:bt):J=bt,M){case 1:var At=-1;break;case 2:At=250;break;case 5:At=1073741823;break;case 4:At=1e4;break;default:At=5e3}return At=J+At,M={id:R++,callback:Q,priorityLevel:M,startTime:J,expirationTime:At,sortIndex:-1},J>bt?(M.sortIndex=J,u(v,M),f(T)===null&&M===f(v)&&(B?(ft(k),k=-1):B=!0,ye(ut,J-bt))):(M.sortIndex=At,u(T,M),H||F||(H=!0,mt||(mt=!0,Kt()))),M},c.unstable_shouldYield=Be,c.unstable_wrapCallback=function(M){var Q=w;return function(){var J=w;w=Q;try{return M.apply(this,arguments)}finally{w=J}}}})(zc)),zc}var br;function Xm(){return br||(br=1,Rc.exports=Gm()),Rc.exports}var _c={exports:{}},ue={};/**
17
+ */var am;function Y4(){return am||(am=1,(function(e){function n(L,te){var W=L.length;L.push(te);e:for(;0<W;){var me=W-1>>>1,N=L[me];if(0<s(N,te))L[me]=te,L[W]=N,W=me;else break e}}function r(L){return L.length===0?null:L[0]}function a(L){if(L.length===0)return null;var te=L[0],W=L.pop();if(W!==te){L[0]=W;e:for(var me=0,N=L.length,O=N>>>1;me<O;){var U=2*(me+1)-1,_=L[U],I=U+1,ue=L[I];if(0>s(_,W))I<N&&0>s(ue,_)?(L[me]=ue,L[I]=W,me=I):(L[me]=_,L[U]=W,me=U);else if(I<N&&0>s(ue,W))L[me]=ue,L[I]=W,me=I;else break e}}return te}function s(L,te){var W=L.sortIndex-te.sortIndex;return W!==0?W:L.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],d=[],x=1,m=null,y=3,v=!1,b=!1,E=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function D(L){for(var te=r(d);te!==null;){if(te.callback===null)a(d);else if(te.startTime<=L)a(d),te.sortIndex=te.expirationTime,n(p,te);else break;te=r(d)}}function F(L){if(E=!1,D(L),!b)if(r(p)!==null)b=!0,R||(R=!0,V());else{var te=r(d);te!==null&&J(F,te.startTime-L)}}var R=!1,z=-1,M=5,X=-1;function T(){return S?!0:!(e.unstable_now()-X<M)}function j(){if(S=!1,R){var L=e.unstable_now();X=L;var te=!0;try{e:{b=!1,E&&(E=!1,k(z),z=-1),v=!0;var W=y;try{t:{for(D(L),m=r(p);m!==null&&!(m.expirationTime>L&&T());){var me=m.callback;if(typeof me=="function"){m.callback=null,y=m.priorityLevel;var N=me(m.expirationTime<=L);if(L=e.unstable_now(),typeof N=="function"){m.callback=N,D(L),te=!0;break t}m===r(p)&&a(p),D(L)}else a(p);m=r(p)}if(m!==null)te=!0;else{var O=r(d);O!==null&&J(F,O.startTime-L),te=!1}}break e}finally{m=null,y=W,v=!1}te=void 0}}finally{te?V():R=!1}}}var V;if(typeof A=="function")V=function(){A(j)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,ie=G.port2;G.port1.onmessage=j,V=function(){ie.postMessage(null)}}else V=function(){w(j,0)};function J(L,te){z=w(function(){L(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(L){switch(y){case 1:case 2:case 3:var te=3;break;default:te=y}var W=y;y=te;try{return L()}finally{y=W}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(L,te){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var W=y;y=L;try{return te()}finally{y=W}},e.unstable_scheduleCallback=function(L,te,W){var me=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?me+W:me):W=me,L){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=W+N,L={id:x++,callback:te,priorityLevel:L,startTime:W,expirationTime:N,sortIndex:-1},W>me?(L.sortIndex=W,n(d,L),r(p)===null&&L===r(d)&&(E?(k(z),z=-1):E=!0,J(F,W-me))):(L.sortIndex=N,n(p,L),b||v||(b=!0,R||(R=!0,V()))),L},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(L){var te=y;return function(){var W=y;y=te;try{return L.apply(this,arguments)}finally{y=W}}}})(Ff)),Ff}var lm;function Q4(){return lm||(lm=1,Nf.exports=Y4()),Nf.exports}var Mf={exports:{}},sn={};/**
18
18
  * @license React
19
19
  * react-dom.production.js
20
20
  *
@@ -22,7 +22,7 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Er;function Zm(){if(Er)return ue;Er=1;var c=Ac();function u(T){var v="https://react.dev/errors/"+T;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var R=2;R<arguments.length;R++)v+="&args[]="+encodeURIComponent(arguments[R])}return"Minified React error #"+T+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var s={d:{f,r:function(){throw Error(u(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},o=Symbol.for("react.portal");function h(T,v,R){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:C==null?null:""+C,children:T,containerInfo:v,implementation:R}}var y=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function S(T,v){if(T==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ue.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ue.createPortal=function(T,v){var R=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(u(299));return h(T,v,null,R)},ue.flushSync=function(T){var v=y.T,R=s.p;try{if(y.T=null,s.p=2,T)return T()}finally{y.T=v,s.p=R,s.d.f()}},ue.preconnect=function(T,v){typeof T=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,s.d.C(T,v))},ue.prefetchDNS=function(T){typeof T=="string"&&s.d.D(T)},ue.preinit=function(T,v){if(typeof T=="string"&&v&&typeof v.as=="string"){var R=v.as,C=S(R,v.crossOrigin),w=typeof v.integrity=="string"?v.integrity:void 0,F=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;R==="style"?s.d.S(T,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:C,integrity:w,fetchPriority:F}):R==="script"&&s.d.X(T,{crossOrigin:C,integrity:w,fetchPriority:F,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ue.preinitModule=function(T,v){if(typeof T=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var R=S(v.as,v.crossOrigin);s.d.M(T,{crossOrigin:R,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&s.d.M(T)},ue.preload=function(T,v){if(typeof T=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var R=v.as,C=S(R,v.crossOrigin);s.d.L(T,R,{crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ue.preloadModule=function(T,v){if(typeof T=="string")if(v){var R=S(v.as,v.crossOrigin);s.d.m(T,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:R,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else s.d.m(T)},ue.requestFormReset=function(T){s.d.r(T)},ue.unstable_batchedUpdates=function(T,v){return T(v)},ue.useFormState=function(T,v,R){return y.H.useFormState(T,v,R)},ue.useFormStatus=function(){return y.H.useHostTransitionStatus()},ue.version="19.2.4",ue}var Tr;function Vm(){if(Tr)return _c.exports;Tr=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(u){console.error(u)}}return c(),_c.exports=Zm(),_c.exports}/**
25
+ */var sm;function X4(){if(sm)return sn;sm=1;var e=Of();function n(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)d+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,d,x){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:m==null?null:""+m,children:p,containerInfo:d,implementation:x}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return sn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,sn.createPortal=function(p,d){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(n(299));return u(p,d,null,x)},sn.flushSync=function(p){var d=c.T,x=a.p;try{if(c.T=null,a.p=2,p)return p()}finally{c.T=d,a.p=x,a.d.f()}},sn.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,a.d.C(p,d))},sn.prefetchDNS=function(p){typeof p=="string"&&a.d.D(p)},sn.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var x=d.as,m=f(x,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;x==="style"?a.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:y,fetchPriority:v}):x==="script"&&a.d.X(p,{crossOrigin:m,integrity:y,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},sn.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var x=f(d.as,d.crossOrigin);a.d.M(p,{crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&a.d.M(p)},sn.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var x=d.as,m=f(x,d.crossOrigin);a.d.L(p,x,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},sn.preloadModule=function(p,d){if(typeof p=="string")if(d){var x=f(d.as,d.crossOrigin);a.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else a.d.m(p)},sn.requestFormReset=function(p){a.d.r(p)},sn.unstable_batchedUpdates=function(p,d){return p(d)},sn.useFormState=function(p,d,x){return c.H.useFormState(p,d,x)},sn.useFormStatus=function(){return c.H.useHostTransitionStatus()},sn.version="19.2.4",sn}var om;function um(){if(om)return Mf.exports;om=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Mf.exports=X4(),Mf.exports}/**
26
26
  * @license React
27
27
  * react-dom-client.production.js
28
28
  *
@@ -30,15 +30,15 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Ar;function Km(){if(Ar)return Ba;Ar=1;var c=Xm(),u=Ac(),f=Vm();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function S(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function T(t){if(h(t)!==t)throw Error(s(188))}function v(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(s(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var i=a.alternate;if(i===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===l)return T(a),t;if(i===n)return T(a),e;i=i.sibling}throw Error(s(188))}if(l.return!==n.return)l=a,n=i;else{for(var r=!1,d=a.child;d;){if(d===l){r=!0,l=a,n=i;break}if(d===n){r=!0,n=a,l=i;break}d=d.sibling}if(!r){for(d=i.child;d;){if(d===l){r=!0,l=i,n=a;break}if(d===n){r=!0,n=i,l=a;break}d=d.sibling}if(!r)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?t:e}function R(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=R(t),e!==null)return e;t=t.sibling}return null}var C=Object.assign,w=Symbol.for("react.element"),F=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ft=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),ut=Symbol.for("react.suspense"),mt=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),St=Symbol.for("react.activity"),Be=Symbol.for("react.memo_cache_sentinel"),se=Symbol.iterator;function Kt(t){return t===null||typeof t!="object"?null:(t=se&&t[se]||t["@@iterator"],typeof t=="function"?t:null)}var Te=Symbol.for("react.client.reference");function Pt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Te?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case B:return"Fragment";case W:return"Profiler";case j:return"StrictMode";case ut:return"Suspense";case mt:return"SuspenseList";case St:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case H:return"Portal";case K:return t.displayName||"Context";case ft:return(t._context.displayName||"Context")+".Consumer";case Y:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return e=t.displayName||null,e!==null?e:Pt(t.type)||"Memo";case rt:e=t._payload,t=t._init;try{return Pt(t(e))}catch{}}return null}var ye=Array.isArray,M=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},bt=[],At=-1;function g(t){return{current:t}}function x(t){0>At||(t.current=bt[At],bt[At]=null,At--)}function L(t,e){At++,bt[At]=t.current,t.current=e}var G=g(null),et=g(null),it=g(null),Tt=g(null);function fe(t,e){switch(L(it,e),L(et,t),L(G,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?sm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=sm(e),t=fm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}x(G),L(G,t)}function wt(){x(G),x(et),x(it)}function ka(t){t.memoizedState!==null&&L(Tt,t);var e=G.current,l=fm(e,t.type);e!==l&&(L(et,t),L(G,l))}function li(t){et.current===t&&(x(G),x(et)),Tt.current===t&&(x(Tt),wu._currentValue=J)}var $c,wo;function An(t){if($c===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);$c=e&&e[1]||"",wo=-1<l.stack.indexOf(`
33
+ */var cm;function G4(){if(cm)return as;cm=1;var e=Q4(),n=Of(),r=um();function a(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var i=t,l=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(l=i.return),t=i.return;while(t)}return i.tag===3?l:null}function c(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function f(t){if(t.tag===31){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function p(t){if(u(t)!==t)throw Error(a(188))}function d(t){var i=t.alternate;if(!i){if(i=u(t),i===null)throw Error(a(188));return i!==t?null:t}for(var l=t,o=i;;){var h=l.return;if(h===null)break;var g=h.alternate;if(g===null){if(o=h.return,o!==null){l=o;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===l)return p(h),t;if(g===o)return p(h),i;g=g.sibling}throw Error(a(188))}if(l.return!==o.return)l=h,o=g;else{for(var C=!1,B=h.child;B;){if(B===l){C=!0,l=h,o=g;break}if(B===o){C=!0,o=h,l=g;break}B=B.sibling}if(!C){for(B=g.child;B;){if(B===l){C=!0,l=g,o=h;break}if(B===o){C=!0,o=g,l=h;break}B=B.sibling}if(!C)throw Error(a(189))}}if(l.alternate!==o)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?t:i}function x(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=x(t),i!==null)return i;t=t.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),A=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function V(t){return t===null||typeof t!="object"?null:(t=j&&t[j]||t["@@iterator"],typeof t=="function"?t:null)}var G=Symbol.for("react.client.reference");function ie(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===G?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case w:return"Profiler";case S:return"StrictMode";case F:return"Suspense";case R:return"SuspenseList";case X:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case b:return"Portal";case A:return t.displayName||"Context";case k:return(t._context.displayName||"Context")+".Consumer";case D:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case z:return i=t.displayName||null,i!==null?i:ie(t.type)||"Memo";case M:i=t._payload,t=t._init;try{return ie(t(i))}catch{}}return null}var J=Array.isArray,L=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},me=[],N=-1;function O(t){return{current:t}}function U(t){0>N||(t.current=me[N],me[N]=null,N--)}function _(t,i){N++,me[N]=t.current,t.current=i}var I=O(null),ue=O(null),ce=O(null),xe=O(null);function de(t,i){switch(_(ce,i),_(ue,t),_(I,null),i.nodeType){case 9:case 11:t=(t=i.documentElement)&&(t=t.namespaceURI)?u4(t):0;break;default:if(t=i.tagName,i=i.namespaceURI)i=u4(i),t=c4(i,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(I),_(I,t)}function Be(){U(I),U(ue),U(ce)}function nt(t){t.memoizedState!==null&&_(xe,t);var i=I.current,l=c4(i,t.type);i!==l&&(_(ue,t),_(I,l))}function wt(t){ue.current===t&&(U(I),U(ue)),xe.current===t&&(U(xe),wo._currentValue=W)}var bt,Kt;function ct(t){if(bt===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);bt=i&&i[1]||"",Kt=-1<l.stack.indexOf(`
34
34
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
35
- `+$c+t+wo}var Ic=!1;function Pc(t,e){if(!t||Ic)return"";Ic=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(D){var O=D}Reflect.construct(t,[],q)}else{try{q.call()}catch(D){O=D}t.call(q.prototype)}}else{try{throw Error()}catch(D){O=D}(q=t())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(D){if(D&&O&&typeof D.stack=="string")return[D.stack,O.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=n.DetermineComponentFrameRoot(),r=i[0],d=i[1];if(r&&d){var m=r.split(`
36
- `),A=d.split(`
37
- `);for(a=n=0;n<m.length&&!m[n].includes("DetermineComponentFrameRoot");)n++;for(;a<A.length&&!A[a].includes("DetermineComponentFrameRoot");)a++;if(n===m.length||a===A.length)for(n=m.length-1,a=A.length-1;1<=n&&0<=a&&m[n]!==A[a];)a--;for(;1<=n&&0<=a;n--,a--)if(m[n]!==A[a]){if(n!==1||a!==1)do if(n--,a--,0>a||m[n]!==A[a]){var U=`
38
- `+m[n].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),U}while(1<=n&&0<=a);break}}}finally{Ic=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?An(l):""}function rg(t,e){switch(t.tag){case 26:case 27:case 5:return An(t.type);case 16:return An("Lazy");case 13:return t.child!==e&&e!==null?An("Suspense Fallback"):An("Suspense");case 19:return An("SuspenseList");case 0:case 15:return Pc(t.type,!1);case 11:return Pc(t.type.render,!1);case 1:return Pc(t.type,!0);case 31:return An("Activity");default:return""}}function Qo(t){try{var e="",l=null;do e+=rg(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
39
- Error generating stack: `+n.message+`
40
- `+n.stack}}var ts=Object.prototype.hasOwnProperty,es=c.unstable_scheduleCallback,ls=c.unstable_cancelCallback,og=c.unstable_shouldYield,dg=c.unstable_requestPaint,Ae=c.unstable_now,hg=c.unstable_getCurrentPriorityLevel,Lo=c.unstable_ImmediatePriority,Yo=c.unstable_UserBlockingPriority,ni=c.unstable_NormalPriority,yg=c.unstable_LowPriority,Go=c.unstable_IdlePriority,mg=c.log,vg=c.unstable_setDisableYieldValue,Wa=null,Oe=null;function Ql(t){if(typeof mg=="function"&&vg(t),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(Wa,t)}catch{}}var Re=Math.clz32?Math.clz32:Sg,gg=Math.log,pg=Math.LN2;function Sg(t){return t>>>=0,t===0?32:31-(gg(t)/pg|0)|0}var ai=256,ui=262144,ii=4194304;function On(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ci(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,i=t.suspendedLanes,r=t.pingedLanes;t=t.warmLanes;var d=n&134217727;return d!==0?(n=d&~i,n!==0?a=On(n):(r&=d,r!==0?a=On(r):l||(l=d&~t,l!==0&&(a=On(l))))):(d=n&~i,d!==0?a=On(d):r!==0?a=On(r):l||(l=n&~t,l!==0&&(a=On(l)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:a}function $a(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function bg(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Xo(){var t=ii;return ii<<=1,(ii&62914560)===0&&(ii=4194304),t}function ns(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Ia(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Eg(t,e,l,n,a,i){var r=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var d=t.entanglements,m=t.expirationTimes,A=t.hiddenUpdates;for(l=r&~l;0<l;){var U=31-Re(l),q=1<<U;d[U]=0,m[U]=-1;var O=A[U];if(O!==null)for(A[U]=null,U=0;U<O.length;U++){var D=O[U];D!==null&&(D.lane&=-536870913)}l&=~q}n!==0&&Zo(t,n,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(r&~e))}function Zo(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-Re(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function Vo(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-Re(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function Ko(t,e){var l=e&-e;return l=(l&42)!==0?1:as(l),(l&(t.suspendedLanes|e))!==0?0:l}function as(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function us(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Jo(){var t=Q.p;return t!==0?t:(t=window.event,t===void 0?32:Nm(t.type))}function Fo(t,e){var l=Q.p;try{return Q.p=t,e()}finally{Q.p=l}}var Ll=Math.random().toString(36).slice(2),te="__reactFiber$"+Ll,me="__reactProps$"+Ll,In="__reactContainer$"+Ll,is="__reactEvents$"+Ll,Tg="__reactListeners$"+Ll,Ag="__reactHandles$"+Ll,ko="__reactResources$"+Ll,Pa="__reactMarker$"+Ll;function cs(t){delete t[te],delete t[me],delete t[is],delete t[Tg],delete t[Ag]}function Pn(t){var e=t[te];if(e)return e;for(var l=t.parentNode;l;){if(e=l[In]||l[te]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=vm(t);t!==null;){if(l=t[te])return l;t=vm(t)}return e}t=l,l=t.parentNode}return null}function ta(t){if(t=t[te]||t[In]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function tu(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function ea(t){var e=t[ko];return e||(e=t[ko]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Pa]=!0}var Wo=new Set,$o={};function Rn(t,e){la(t,e),la(t+"Capture",e)}function la(t,e){for($o[t]=e,t=0;t<e.length;t++)Wo.add(e[t])}var Og=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]*$"),Io={},Po={};function Rg(t){return ts.call(Po,t)?!0:ts.call(Io,t)?!1:Og.test(t)?Po[t]=!0:(Io[t]=!0,!1)}function si(t,e,l){if(Rg(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function fi(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function hl(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function je(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function td(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function zg(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(r){l=""+r,i.call(this,r)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ss(t){if(!t._valueTracker){var e=td(t)?"checked":"value";t._valueTracker=zg(t,e,""+t[e])}}function ed(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=td(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function ri(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var _g=/[\n"\\]/g;function we(t){return t.replace(_g,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function fs(t,e,l,n,a,i,r,d){t.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.type=r:t.removeAttribute("type"),e!=null?r==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+je(e)):t.value!==""+je(e)&&(t.value=""+je(e)):r!=="submit"&&r!=="reset"||t.removeAttribute("value"),e!=null?rs(t,r,je(e)):l!=null?rs(t,r,je(l)):n!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.name=""+je(d):t.removeAttribute("name")}function ld(t,e,l,n,a,i,r,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){ss(t);return}l=l!=null?""+je(l):"",e=e!=null?""+je(e):l,d||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=d?t.checked:!!n,t.defaultChecked=!!n,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.name=r),ss(t)}function rs(t,e,l){e==="number"&&ri(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function na(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+je(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function nd(t,e,l){if(e!=null&&(e=""+je(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+je(l):""}function ad(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(s(92));if(ye(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=je(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),ss(t)}function aa(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Dg=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 ud(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Dg.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function id(t,e,l){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&ud(t,a,n)}else for(var i in e)e.hasOwnProperty(i)&&ud(t,i,e[i])}function os(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Mg=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"]]),Cg=/^[\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 oi(t){return Cg.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function yl(){}var ds=null;function hs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ua=null,ia=null;function cd(t){var e=ta(t);if(e&&(t=e.stateNode)){var l=t[me]||null;t:switch(t=e.stateNode,e.type){case"input":if(fs(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+we(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[me]||null;if(!a)throw Error(s(90));fs(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&ed(n)}break t;case"textarea":nd(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&na(t,!!l.multiple,e,!1)}}}var ys=!1;function sd(t,e,l){if(ys)return t(e,l);ys=!0;try{var n=t(e);return n}finally{if(ys=!1,(ua!==null||ia!==null)&&(Ii(),ua&&(e=ua,t=ia,ia=ua=null,cd(e),t)))for(e=0;e<t.length;e++)cd(t[e])}}function eu(t,e){var l=t.stateNode;if(l===null)return null;var n=l[me]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(s(231,e,typeof l));return l}var ml=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ms=!1;if(ml)try{var lu={};Object.defineProperty(lu,"passive",{get:function(){ms=!0}}),window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,lu)}catch{ms=!1}var Yl=null,vs=null,di=null;function fd(){if(di)return di;var t,e=vs,l=e.length,n,a="value"in Yl?Yl.value:Yl.textContent,i=a.length;for(t=0;t<l&&e[t]===a[t];t++);var r=l-t;for(n=1;n<=r&&e[l-n]===a[i-n];n++);return di=a.slice(t,1<n?1-n:void 0)}function hi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function yi(){return!0}function rd(){return!1}function ve(t){function e(l,n,a,i,r){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=i,this.target=r,this.currentTarget=null;for(var d in t)t.hasOwnProperty(d)&&(l=t[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?yi:rd,this.isPropagationStopped=rd,this}return C(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=yi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=yi)},persist:function(){},isPersistent:yi}),e}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mi=ve(zn),nu=C({},zn,{view:0,detail:0}),Ug=ve(nu),gs,ps,au,vi=C({},nu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bs,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==au&&(au&&t.type==="mousemove"?(gs=t.screenX-au.screenX,ps=t.screenY-au.screenY):ps=gs=0,au=t),gs)},movementY:function(t){return"movementY"in t?t.movementY:ps}}),od=ve(vi),Ng=C({},vi,{dataTransfer:0}),xg=ve(Ng),qg=C({},nu,{relatedTarget:0}),Ss=ve(qg),Hg=C({},zn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bg=ve(Hg),jg=C({},zn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),wg=ve(jg),Qg=C({},zn,{data:0}),dd=ve(Qg),Lg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yg={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"},Gg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xg(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Gg[t])?!!e[t]:!1}function bs(){return Xg}var Zg=C({},nu,{key:function(t){if(t.key){var e=Lg[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=hi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Yg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bs,charCode:function(t){return t.type==="keypress"?hi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?hi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Vg=ve(Zg),Kg=C({},vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hd=ve(Kg),Jg=C({},nu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bs}),Fg=ve(Jg),kg=C({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wg=ve(kg),$g=C({},vi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ig=ve($g),Pg=C({},zn,{newState:0,oldState:0}),tp=ve(Pg),ep=[9,13,27,32],Es=ml&&"CompositionEvent"in window,uu=null;ml&&"documentMode"in document&&(uu=document.documentMode);var lp=ml&&"TextEvent"in window&&!uu,yd=ml&&(!Es||uu&&8<uu&&11>=uu),md=" ",vd=!1;function gd(t,e){switch(t){case"keyup":return ep.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ca=!1;function np(t,e){switch(t){case"compositionend":return pd(e);case"keypress":return e.which!==32?null:(vd=!0,md);case"textInput":return t=e.data,t===md&&vd?null:t;default:return null}}function ap(t,e){if(ca)return t==="compositionend"||!Es&&gd(t,e)?(t=fd(),di=vs=Yl=null,ca=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return yd&&e.locale!=="ko"?null:e.data;default:return null}}var up={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 Sd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!up[t.type]:e==="textarea"}function bd(t,e,l,n){ua?ia?ia.push(n):ia=[n]:ua=n,e=uc(e,"onChange"),0<e.length&&(l=new mi("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var iu=null,cu=null;function ip(t){lm(t,0)}function gi(t){var e=tu(t);if(ed(e))return t}function Ed(t,e){if(t==="change")return e}var Td=!1;if(ml){var Ts;if(ml){var As="oninput"in document;if(!As){var Ad=document.createElement("div");Ad.setAttribute("oninput","return;"),As=typeof Ad.oninput=="function"}Ts=As}else Ts=!1;Td=Ts&&(!document.documentMode||9<document.documentMode)}function Od(){iu&&(iu.detachEvent("onpropertychange",Rd),cu=iu=null)}function Rd(t){if(t.propertyName==="value"&&gi(cu)){var e=[];bd(e,cu,t,hs(t)),sd(ip,e)}}function cp(t,e,l){t==="focusin"?(Od(),iu=e,cu=l,iu.attachEvent("onpropertychange",Rd)):t==="focusout"&&Od()}function sp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return gi(cu)}function fp(t,e){if(t==="click")return gi(e)}function rp(t,e){if(t==="input"||t==="change")return gi(e)}function op(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:op;function su(t,e){if(ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!ts.call(e,a)||!ze(t[a],e[a]))return!1}return!0}function zd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function _d(t,e){var l=zd(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=zd(l)}}function Dd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Dd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Md(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ri(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=ri(t.document)}return e}function Os(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var dp=ml&&"documentMode"in document&&11>=document.documentMode,sa=null,Rs=null,fu=null,zs=!1;function Cd(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zs||sa==null||sa!==ri(n)||(n=sa,"selectionStart"in n&&Os(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),fu&&su(fu,n)||(fu=n,n=uc(Rs,"onSelect"),0<n.length&&(e=new mi("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=sa)))}function _n(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var fa={animationend:_n("Animation","AnimationEnd"),animationiteration:_n("Animation","AnimationIteration"),animationstart:_n("Animation","AnimationStart"),transitionrun:_n("Transition","TransitionRun"),transitionstart:_n("Transition","TransitionStart"),transitioncancel:_n("Transition","TransitionCancel"),transitionend:_n("Transition","TransitionEnd")},_s={},Ud={};ml&&(Ud=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function Dn(t){if(_s[t])return _s[t];if(!fa[t])return t;var e=fa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Ud)return _s[t]=e[l];return t}var Nd=Dn("animationend"),xd=Dn("animationiteration"),qd=Dn("animationstart"),hp=Dn("transitionrun"),yp=Dn("transitionstart"),mp=Dn("transitioncancel"),Hd=Dn("transitionend"),Bd=new Map,Ds="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(" ");Ds.push("scrollEnd");function Ie(t,e){Bd.set(t,e),Rn(e,[t])}var pi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Qe=[],ra=0,Ms=0;function Si(){for(var t=ra,e=Ms=ra=0;e<t;){var l=Qe[e];Qe[e++]=null;var n=Qe[e];Qe[e++]=null;var a=Qe[e];Qe[e++]=null;var i=Qe[e];if(Qe[e++]=null,n!==null&&a!==null){var r=n.pending;r===null?a.next=a:(a.next=r.next,r.next=a),n.pending=a}i!==0&&jd(l,a,i)}}function bi(t,e,l,n){Qe[ra++]=t,Qe[ra++]=e,Qe[ra++]=l,Qe[ra++]=n,Ms|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function Cs(t,e,l,n){return bi(t,e,l,n),Ei(t)}function Mn(t,e){return bi(t,null,null,e),Ei(t)}function jd(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,i=t.return;i!==null;)i.childLanes|=l,n=i.alternate,n!==null&&(n.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-Re(l),t=i.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),i):null}function Ei(t){if(50<Uu)throw Uu=0,Lf=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var oa={};function vp(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(t,e,l,n){return new vp(t,e,l,n)}function Us(t){return t=t.prototype,!(!t||!t.isReactComponent)}function vl(t,e){var l=t.alternate;return l===null?(l=_e(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function wd(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ti(t,e,l,n,a,i){var r=0;if(n=t,typeof t=="function")Us(t)&&(r=1);else if(typeof t=="string")r=E1(t,l,G.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case St:return t=_e(31,l,e,a),t.elementType=St,t.lanes=i,t;case B:return Cn(l.children,a,i,e);case j:r=8,a|=24;break;case W:return t=_e(12,l,e,a|2),t.elementType=W,t.lanes=i,t;case ut:return t=_e(13,l,e,a),t.elementType=ut,t.lanes=i,t;case mt:return t=_e(19,l,e,a),t.elementType=mt,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:r=10;break t;case ft:r=9;break t;case Y:r=11;break t;case k:r=14;break t;case rt:r=16,n=null;break t}r=29,l=Error(s(130,t===null?"null":typeof t,"")),n=null}return e=_e(r,l,e,a),e.elementType=t,e.type=n,e.lanes=i,e}function Cn(t,e,l,n){return t=_e(7,t,n,e),t.lanes=l,t}function Ns(t,e,l){return t=_e(6,t,null,e),t.lanes=l,t}function Qd(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function xs(t,e,l){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ld=new WeakMap;function Le(t,e){if(typeof t=="object"&&t!==null){var l=Ld.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Qo(e)},Ld.set(t,e),e)}return{value:t,source:e,stack:Qo(e)}}var da=[],ha=0,Ai=null,ru=0,Ye=[],Ge=0,Gl=null,ul=1,il="";function gl(t,e){da[ha++]=ru,da[ha++]=Ai,Ai=t,ru=e}function Yd(t,e,l){Ye[Ge++]=ul,Ye[Ge++]=il,Ye[Ge++]=Gl,Gl=t;var n=ul;t=il;var a=32-Re(n)-1;n&=~(1<<a),l+=1;var i=32-Re(e)+a;if(30<i){var r=a-a%5;i=(n&(1<<r)-1).toString(32),n>>=r,a-=r,ul=1<<32-Re(e)+a|l<<a|n,il=i+t}else ul=1<<i|l<<a|n,il=t}function qs(t){t.return!==null&&(gl(t,1),Yd(t,1,0))}function Hs(t){for(;t===Ai;)Ai=da[--ha],da[ha]=null,ru=da[--ha],da[ha]=null;for(;t===Gl;)Gl=Ye[--Ge],Ye[Ge]=null,il=Ye[--Ge],Ye[Ge]=null,ul=Ye[--Ge],Ye[Ge]=null}function Gd(t,e){Ye[Ge++]=ul,Ye[Ge++]=il,Ye[Ge++]=Gl,ul=e.id,il=e.overflow,Gl=t}var ee=null,Ct=null,ht=!1,Xl=null,Xe=!1,Bs=Error(s(519));function Zl(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ou(Le(e,t)),Bs}function Xd(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[te]=t,e[me]=n,l){case"dialog":st("cancel",e),st("close",e);break;case"iframe":case"object":case"embed":st("load",e);break;case"video":case"audio":for(l=0;l<xu.length;l++)st(xu[l],e);break;case"source":st("error",e);break;case"img":case"image":case"link":st("error",e),st("load",e);break;case"details":st("toggle",e);break;case"input":st("invalid",e),ld(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":st("invalid",e);break;case"textarea":st("invalid",e),ad(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||im(e.textContent,l)?(n.popover!=null&&(st("beforetoggle",e),st("toggle",e)),n.onScroll!=null&&st("scroll",e),n.onScrollEnd!=null&&st("scrollend",e),n.onClick!=null&&(e.onclick=yl),e=!0):e=!1,e||Zl(t,!0)}function Zd(t){for(ee=t.return;ee;)switch(ee.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:ee=ee.return}}function ya(t){if(t!==ee)return!1;if(!ht)return Zd(t),ht=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||er(t.type,t.memoizedProps)),l=!l),l&&Ct&&Zl(t),Zd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Ct=mm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Ct=mm(t)}else e===27?(e=Ct,an(t.type)?(t=ir,ir=null,Ct=t):Ct=e):Ct=ee?Ve(t.stateNode.nextSibling):null;return!0}function Un(){Ct=ee=null,ht=!1}function js(){var t=Xl;return t!==null&&(be===null?be=t:be.push.apply(be,t),Xl=null),t}function ou(t){Xl===null?Xl=[t]:Xl.push(t)}var ws=g(null),Nn=null,pl=null;function Vl(t,e,l){L(ws,e._currentValue),e._currentValue=l}function Sl(t){t._currentValue=ws.current,x(ws)}function Qs(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function Ls(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var r=a.child;i=i.firstContext;t:for(;i!==null;){var d=i;i=a;for(var m=0;m<e.length;m++)if(d.context===e[m]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),Qs(i.return,l,t),n||(r=null);break t}i=d.next}}else if(a.tag===18){if(r=a.return,r===null)throw Error(s(341));r.lanes|=l,i=r.alternate,i!==null&&(i.lanes|=l),Qs(r,l,t),r=null}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===t){r=null;break}if(a=r.sibling,a!==null){a.return=r.return,r=a;break}r=r.return}a=r}}function ma(t,e,l,n){t=null;for(var a=e,i=!1;a!==null;){if(!i){if((a.flags&524288)!==0)i=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var r=a.alternate;if(r===null)throw Error(s(387));if(r=r.memoizedProps,r!==null){var d=a.type;ze(a.pendingProps.value,r.value)||(t!==null?t.push(d):t=[d])}}else if(a===Tt.current){if(r=a.alternate,r===null)throw Error(s(387));r.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(wu):t=[wu])}a=a.return}t!==null&&Ls(e,t,l,n),e.flags|=262144}function Oi(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function xn(t){Nn=t,pl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return Vd(Nn,t)}function Ri(t,e){return Nn===null&&xn(t),Vd(t,e)}function Vd(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},pl===null){if(t===null)throw Error(s(308));pl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else pl=pl.next=e;return l}var gp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},pp=c.unstable_scheduleCallback,Sp=c.unstable_NormalPriority,Gt={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ys(){return{controller:new gp,data:new Map,refCount:0}}function du(t){t.refCount--,t.refCount===0&&pp(Sp,function(){t.controller.abort()})}var hu=null,Gs=0,va=0,ga=null;function bp(t,e){if(hu===null){var l=hu=[];Gs=0,va=Kf(),ga={status:"pending",value:void 0,then:function(n){l.push(n)}}}return Gs++,e.then(Kd,Kd),e}function Kd(){if(--Gs===0&&hu!==null){ga!==null&&(ga.status="fulfilled");var t=hu;hu=null,va=0,ga=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Ep(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var Jd=M.S;M.S=function(t,e){Cy=Ae(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&bp(t,e),Jd!==null&&Jd(t,e)};var qn=g(null);function Xs(){var t=qn.current;return t!==null?t:Mt.pooledCache}function zi(t,e){e===null?L(qn,qn.current):L(qn,e.pool)}function Fd(){var t=Xs();return t===null?null:{parent:Gt._currentValue,pool:t}}var pa=Error(s(460)),Zs=Error(s(474)),_i=Error(s(542)),Di={then:function(){}};function kd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Wd(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(yl,yl),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Id(t),t;default:if(typeof e.status=="string")e.then(yl,yl);else{if(t=Mt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Id(t),t}throw Bn=e,pa}}function Hn(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Bn=l,pa):l}}var Bn=null;function $d(){if(Bn===null)throw Error(s(459));var t=Bn;return Bn=null,t}function Id(t){if(t===pa||t===_i)throw Error(s(483))}var Sa=null,yu=0;function Mi(t){var e=yu;return yu+=1,Sa===null&&(Sa=[]),Wd(Sa,t,e)}function mu(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Ci(t,e){throw e.$$typeof===w?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Pd(t){function e(b,p){if(t){var E=b.deletions;E===null?(b.deletions=[p],b.flags|=16):E.push(p)}}function l(b,p){if(!t)return null;for(;p!==null;)e(b,p),p=p.sibling;return null}function n(b){for(var p=new Map;b!==null;)b.key!==null?p.set(b.key,b):p.set(b.index,b),b=b.sibling;return p}function a(b,p){return b=vl(b,p),b.index=0,b.sibling=null,b}function i(b,p,E){return b.index=E,t?(E=b.alternate,E!==null?(E=E.index,E<p?(b.flags|=67108866,p):E):(b.flags|=67108866,p)):(b.flags|=1048576,p)}function r(b){return t&&b.alternate===null&&(b.flags|=67108866),b}function d(b,p,E,N){return p===null||p.tag!==6?(p=Ns(E,b.mode,N),p.return=b,p):(p=a(p,E),p.return=b,p)}function m(b,p,E,N){var $=E.type;return $===B?U(b,p,E.props.children,N,E.key):p!==null&&(p.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===rt&&Hn($)===p.type)?(p=a(p,E.props),mu(p,E),p.return=b,p):(p=Ti(E.type,E.key,E.props,null,b.mode,N),mu(p,E),p.return=b,p)}function A(b,p,E,N){return p===null||p.tag!==4||p.stateNode.containerInfo!==E.containerInfo||p.stateNode.implementation!==E.implementation?(p=xs(E,b.mode,N),p.return=b,p):(p=a(p,E.children||[]),p.return=b,p)}function U(b,p,E,N,$){return p===null||p.tag!==7?(p=Cn(E,b.mode,N,$),p.return=b,p):(p=a(p,E),p.return=b,p)}function q(b,p,E){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Ns(""+p,b.mode,E),p.return=b,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case F:return E=Ti(p.type,p.key,p.props,null,b.mode,E),mu(E,p),E.return=b,E;case H:return p=xs(p,b.mode,E),p.return=b,p;case rt:return p=Hn(p),q(b,p,E)}if(ye(p)||Kt(p))return p=Cn(p,b.mode,E,null),p.return=b,p;if(typeof p.then=="function")return q(b,Mi(p),E);if(p.$$typeof===K)return q(b,Ri(b,p),E);Ci(b,p)}return null}function O(b,p,E,N){var $=p!==null?p.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return $!==null?null:d(b,p,""+E,N);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case F:return E.key===$?m(b,p,E,N):null;case H:return E.key===$?A(b,p,E,N):null;case rt:return E=Hn(E),O(b,p,E,N)}if(ye(E)||Kt(E))return $!==null?null:U(b,p,E,N,null);if(typeof E.then=="function")return O(b,p,Mi(E),N);if(E.$$typeof===K)return O(b,p,Ri(b,E),N);Ci(b,E)}return null}function D(b,p,E,N,$){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return b=b.get(E)||null,d(p,b,""+N,$);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case F:return b=b.get(N.key===null?E:N.key)||null,m(p,b,N,$);case H:return b=b.get(N.key===null?E:N.key)||null,A(p,b,N,$);case rt:return N=Hn(N),D(b,p,E,N,$)}if(ye(N)||Kt(N))return b=b.get(E)||null,U(p,b,N,$,null);if(typeof N.then=="function")return D(b,p,E,Mi(N),$);if(N.$$typeof===K)return D(b,p,E,Ri(p,N),$);Ci(p,N)}return null}function X(b,p,E,N){for(var $=null,gt=null,V=p,nt=p=0,dt=null;V!==null&&nt<E.length;nt++){V.index>nt?(dt=V,V=null):dt=V.sibling;var pt=O(b,V,E[nt],N);if(pt===null){V===null&&(V=dt);break}t&&V&&pt.alternate===null&&e(b,V),p=i(pt,p,nt),gt===null?$=pt:gt.sibling=pt,gt=pt,V=dt}if(nt===E.length)return l(b,V),ht&&gl(b,nt),$;if(V===null){for(;nt<E.length;nt++)V=q(b,E[nt],N),V!==null&&(p=i(V,p,nt),gt===null?$=V:gt.sibling=V,gt=V);return ht&&gl(b,nt),$}for(V=n(V);nt<E.length;nt++)dt=D(V,b,nt,E[nt],N),dt!==null&&(t&&dt.alternate!==null&&V.delete(dt.key===null?nt:dt.key),p=i(dt,p,nt),gt===null?$=dt:gt.sibling=dt,gt=dt);return t&&V.forEach(function(rn){return e(b,rn)}),ht&&gl(b,nt),$}function I(b,p,E,N){if(E==null)throw Error(s(151));for(var $=null,gt=null,V=p,nt=p=0,dt=null,pt=E.next();V!==null&&!pt.done;nt++,pt=E.next()){V.index>nt?(dt=V,V=null):dt=V.sibling;var rn=O(b,V,pt.value,N);if(rn===null){V===null&&(V=dt);break}t&&V&&rn.alternate===null&&e(b,V),p=i(rn,p,nt),gt===null?$=rn:gt.sibling=rn,gt=rn,V=dt}if(pt.done)return l(b,V),ht&&gl(b,nt),$;if(V===null){for(;!pt.done;nt++,pt=E.next())pt=q(b,pt.value,N),pt!==null&&(p=i(pt,p,nt),gt===null?$=pt:gt.sibling=pt,gt=pt);return ht&&gl(b,nt),$}for(V=n(V);!pt.done;nt++,pt=E.next())pt=D(V,b,nt,pt.value,N),pt!==null&&(t&&pt.alternate!==null&&V.delete(pt.key===null?nt:pt.key),p=i(pt,p,nt),gt===null?$=pt:gt.sibling=pt,gt=pt);return t&&V.forEach(function(N1){return e(b,N1)}),ht&&gl(b,nt),$}function Dt(b,p,E,N){if(typeof E=="object"&&E!==null&&E.type===B&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case F:t:{for(var $=E.key;p!==null;){if(p.key===$){if($=E.type,$===B){if(p.tag===7){l(b,p.sibling),N=a(p,E.props.children),N.return=b,b=N;break t}}else if(p.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===rt&&Hn($)===p.type){l(b,p.sibling),N=a(p,E.props),mu(N,E),N.return=b,b=N;break t}l(b,p);break}else e(b,p);p=p.sibling}E.type===B?(N=Cn(E.props.children,b.mode,N,E.key),N.return=b,b=N):(N=Ti(E.type,E.key,E.props,null,b.mode,N),mu(N,E),N.return=b,b=N)}return r(b);case H:t:{for($=E.key;p!==null;){if(p.key===$)if(p.tag===4&&p.stateNode.containerInfo===E.containerInfo&&p.stateNode.implementation===E.implementation){l(b,p.sibling),N=a(p,E.children||[]),N.return=b,b=N;break t}else{l(b,p);break}else e(b,p);p=p.sibling}N=xs(E,b.mode,N),N.return=b,b=N}return r(b);case rt:return E=Hn(E),Dt(b,p,E,N)}if(ye(E))return X(b,p,E,N);if(Kt(E)){if($=Kt(E),typeof $!="function")throw Error(s(150));return E=$.call(E),I(b,p,E,N)}if(typeof E.then=="function")return Dt(b,p,Mi(E),N);if(E.$$typeof===K)return Dt(b,p,Ri(b,E),N);Ci(b,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,p!==null&&p.tag===6?(l(b,p.sibling),N=a(p,E),N.return=b,b=N):(l(b,p),N=Ns(E,b.mode,N),N.return=b,b=N),r(b)):l(b,p)}return function(b,p,E,N){try{yu=0;var $=Dt(b,p,E,N);return Sa=null,$}catch(V){if(V===pa||V===_i)throw V;var gt=_e(29,V,null,b.mode);return gt.lanes=N,gt.return=b,gt}finally{}}}var jn=Pd(!0),th=Pd(!1),Kl=!1;function Vs(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ks(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Jl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Fl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Et&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=Ei(t),jd(t,null,l),e}return bi(t,n,e,l),Ei(t)}function vu(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Vo(t,l)}}function Js(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?a=i=r:i=i.next=r,l=l.next}while(l!==null);i===null?a=i=e:i=i.next=e}else a=i=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Fs=!1;function gu(){if(Fs){var t=ga;if(t!==null)throw t}}function pu(t,e,l,n){Fs=!1;var a=t.updateQueue;Kl=!1;var i=a.firstBaseUpdate,r=a.lastBaseUpdate,d=a.shared.pending;if(d!==null){a.shared.pending=null;var m=d,A=m.next;m.next=null,r===null?i=A:r.next=A,r=m;var U=t.alternate;U!==null&&(U=U.updateQueue,d=U.lastBaseUpdate,d!==r&&(d===null?U.firstBaseUpdate=A:d.next=A,U.lastBaseUpdate=m))}if(i!==null){var q=a.baseState;r=0,U=A=m=null,d=i;do{var O=d.lane&-536870913,D=O!==d.lane;if(D?(ot&O)===O:(n&O)===O){O!==0&&O===va&&(Fs=!0),U!==null&&(U=U.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});t:{var X=t,I=d;O=e;var Dt=l;switch(I.tag){case 1:if(X=I.payload,typeof X=="function"){q=X.call(Dt,q,O);break t}q=X;break t;case 3:X.flags=X.flags&-65537|128;case 0:if(X=I.payload,O=typeof X=="function"?X.call(Dt,q,O):X,O==null)break t;q=C({},q,O);break t;case 2:Kl=!0}}O=d.callback,O!==null&&(t.flags|=64,D&&(t.flags|=8192),D=a.callbacks,D===null?a.callbacks=[O]:D.push(O))}else D={lane:O,tag:d.tag,payload:d.payload,callback:d.callback,next:null},U===null?(A=U=D,m=q):U=U.next=D,r|=O;if(d=d.next,d===null){if(d=a.shared.pending,d===null)break;D=d,d=D.next,D.next=null,a.lastBaseUpdate=D,a.shared.pending=null}}while(!0);U===null&&(m=q),a.baseState=m,a.firstBaseUpdate=A,a.lastBaseUpdate=U,i===null&&(a.shared.lanes=0),Pl|=r,t.lanes=r,t.memoizedState=q}}function eh(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function lh(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)eh(l[t],e)}var ba=g(null),Ui=g(0);function nh(t,e){t=Dl,L(Ui,t),L(ba,e),Dl=t|e.baseLanes}function ks(){L(Ui,Dl),L(ba,ba.current)}function Ws(){Dl=Ui.current,x(ba),x(Ui)}var De=g(null),Ze=null;function kl(t){var e=t.alternate;L(Qt,Qt.current&1),L(De,t),Ze===null&&(e===null||ba.current!==null||e.memoizedState!==null)&&(Ze=t)}function $s(t){L(Qt,Qt.current),L(De,t),Ze===null&&(Ze=t)}function ah(t){t.tag===22?(L(Qt,Qt.current),L(De,t),Ze===null&&(Ze=t)):Wl()}function Wl(){L(Qt,Qt.current),L(De,De.current)}function Me(t){x(De),Ze===t&&(Ze=null),x(Qt)}var Qt=g(0);function Ni(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ar(l)||ur(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var bl=0,lt=null,zt=null,Xt=null,xi=!1,Ea=!1,wn=!1,qi=0,Su=0,Ta=null,Tp=0;function Ht(){throw Error(s(321))}function Is(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ze(t[l],e[l]))return!1;return!0}function Ps(t,e,l,n,a,i){return bl=i,lt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,M.H=t===null||t.memoizedState===null?Yh:mf,wn=!1,i=l(n,a),wn=!1,Ea&&(i=ih(e,l,n,a)),uh(t),i}function uh(t){M.H=Tu;var e=zt!==null&&zt.next!==null;if(bl=0,Xt=zt=lt=null,xi=!1,Su=0,Ta=null,e)throw Error(s(300));t===null||Zt||(t=t.dependencies,t!==null&&Oi(t)&&(Zt=!0))}function ih(t,e,l,n){lt=t;var a=0;do{if(Ea&&(Ta=null),Su=0,Ea=!1,25<=a)throw Error(s(301));if(a+=1,Xt=zt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}M.H=Gh,i=e(l,n)}while(Ea);return i}function Ap(){var t=M.H,e=t.useState()[0];return e=typeof e.then=="function"?bu(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(lt.flags|=1024),e}function tf(){var t=qi!==0;return qi=0,t}function ef(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function lf(t){if(xi){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}xi=!1}bl=0,Xt=zt=lt=null,Ea=!1,Su=qi=0,Ta=null}function re(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?lt.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Lt(){if(zt===null){var t=lt.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Xt===null?lt.memoizedState:Xt.next;if(e!==null)Xt=e,zt=t;else{if(t===null)throw lt.alternate===null?Error(s(467)):Error(s(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Xt===null?lt.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function Hi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bu(t){var e=Su;return Su+=1,Ta===null&&(Ta=[]),t=Wd(Ta,t,e),e=lt,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,M.H=e===null||e.memoizedState===null?Yh:mf),t}function Bi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return bu(t);if(t.$$typeof===K)return le(t)}throw Error(s(438,String(t)))}function nf(t){var e=null,l=lt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=lt.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Hi(),lt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=Be;return e.index++,l}function El(t,e){return typeof e=="function"?e(t):e}function ji(t){var e=Lt();return af(e,zt,t)}function af(t,e,l){var n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=l;var a=t.baseQueue,i=n.pending;if(i!==null){if(a!==null){var r=a.next;a.next=i.next,i.next=r}e.baseQueue=a=i,n.pending=null}if(i=t.baseState,a===null)t.memoizedState=i;else{e=a.next;var d=r=null,m=null,A=e,U=!1;do{var q=A.lane&-536870913;if(q!==A.lane?(ot&q)===q:(bl&q)===q){var O=A.revertLane;if(O===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),q===va&&(U=!0);else if((bl&O)===O){A=A.next,O===va&&(U=!0);continue}else q={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},m===null?(d=m=q,r=i):m=m.next=q,lt.lanes|=O,Pl|=O;q=A.action,wn&&l(i,q),i=A.hasEagerState?A.eagerState:l(i,q)}else O={lane:q,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},m===null?(d=m=O,r=i):m=m.next=O,lt.lanes|=q,Pl|=q;A=A.next}while(A!==null&&A!==e);if(m===null?r=i:m.next=d,!ze(i,t.memoizedState)&&(Zt=!0,U&&(l=ga,l!==null)))throw l;t.memoizedState=i,t.baseState=r,t.baseQueue=m,n.lastRenderedState=i}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function uf(t){var e=Lt(),l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,i=e.memoizedState;if(a!==null){l.pending=null;var r=a=a.next;do i=t(i,r.action),r=r.next;while(r!==a);ze(i,e.memoizedState)||(Zt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,n]}function ch(t,e,l){var n=lt,a=Lt(),i=ht;if(i){if(l===void 0)throw Error(s(407));l=l()}else l=e();var r=!ze((zt||a).memoizedState,l);if(r&&(a.memoizedState=l,Zt=!0),a=a.queue,ff(rh.bind(null,n,a,t),[t]),a.getSnapshot!==e||r||Xt!==null&&Xt.memoizedState.tag&1){if(n.flags|=2048,Aa(9,{destroy:void 0},fh.bind(null,n,a,l,e),null),Mt===null)throw Error(s(349));i||(bl&127)!==0||sh(n,e,l)}return l}function sh(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=lt.updateQueue,e===null?(e=Hi(),lt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function fh(t,e,l,n){e.value=l,e.getSnapshot=n,oh(e)&&dh(t)}function rh(t,e,l){return l(function(){oh(e)&&dh(t)})}function oh(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ze(t,l)}catch{return!0}}function dh(t){var e=Mn(t,2);e!==null&&Ee(e,t,2)}function cf(t){var e=re();if(typeof t=="function"){var l=t;if(t=l(),wn){Ql(!0);try{l()}finally{Ql(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:t},e}function hh(t,e,l,n){return t.baseState=l,af(t,zt,typeof n=="function"?n:El)}function Op(t,e,l,n,a){if(Li(t))throw Error(s(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(r){i.listeners.push(r)}};M.T!==null?l(!0):i.isTransition=!1,n(i),l=e.pending,l===null?(i.next=e.pending=i,yh(e,i)):(i.next=l.next,e.pending=l.next=i)}}function yh(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var i=M.T,r={};M.T=r;try{var d=l(a,n),m=M.S;m!==null&&m(r,d),mh(t,e,d)}catch(A){sf(t,e,A)}finally{i!==null&&r.types!==null&&(i.types=r.types),M.T=i}}else try{i=l(a,n),mh(t,e,i)}catch(A){sf(t,e,A)}}function mh(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){vh(t,e,n)},function(n){return sf(t,e,n)}):vh(t,e,l)}function vh(t,e,l){e.status="fulfilled",e.value=l,gh(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,yh(t,l)))}function sf(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,gh(e),e=e.next;while(e!==n)}t.action=null}function gh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ph(t,e){return e}function Sh(t,e){if(ht){var l=Mt.formState;if(l!==null){t:{var n=lt;if(ht){if(Ct){e:{for(var a=Ct,i=Xe;a.nodeType!==8;){if(!i){a=null;break e}if(a=Ve(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ct=Ve(a.nextSibling),n=a.data==="F!";break t}}Zl(n)}n=!1}n&&(e=l[0])}}return l=re(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ph,lastRenderedState:e},l.queue=n,l=wh.bind(null,lt,n),n.dispatch=l,n=cf(!1),i=yf.bind(null,lt,!1,n.queue),n=re(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=Op.bind(null,lt,a,i,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function bh(t){var e=Lt();return Eh(e,zt,t)}function Eh(t,e,l){if(e=af(t,e,ph)[0],t=ji(El)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=bu(e)}catch(r){throw r===pa?_i:r}else n=e;e=Lt();var a=e.queue,i=a.dispatch;return l!==e.memoizedState&&(lt.flags|=2048,Aa(9,{destroy:void 0},Rp.bind(null,a,l),null)),[n,i,t]}function Rp(t,e){t.action=e}function Th(t){var e=Lt(),l=zt;if(l!==null)return Eh(e,l,t);Lt(),e=e.memoizedState,l=Lt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Aa(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=lt.updateQueue,e===null&&(e=Hi(),lt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function Ah(){return Lt().memoizedState}function wi(t,e,l,n){var a=re();lt.flags|=t,a.memoizedState=Aa(1|e,{destroy:void 0},l,n===void 0?null:n)}function Qi(t,e,l,n){var a=Lt();n=n===void 0?null:n;var i=a.memoizedState.inst;zt!==null&&n!==null&&Is(n,zt.memoizedState.deps)?a.memoizedState=Aa(e,i,l,n):(lt.flags|=t,a.memoizedState=Aa(1|e,i,l,n))}function Oh(t,e){wi(8390656,8,t,e)}function ff(t,e){Qi(2048,8,t,e)}function zp(t){lt.flags|=4;var e=lt.updateQueue;if(e===null)e=Hi(),lt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Rh(t){var e=Lt().memoizedState;return zp({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function zh(t,e){return Qi(4,2,t,e)}function _h(t,e){return Qi(4,4,t,e)}function Dh(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Mh(t,e,l){l=l!=null?l.concat([t]):null,Qi(4,4,Dh.bind(null,e,t),l)}function rf(){}function Ch(t,e){var l=Lt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Is(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Uh(t,e){var l=Lt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Is(e,n[1]))return n[0];if(n=t(),wn){Ql(!0);try{t()}finally{Ql(!1)}}return l.memoizedState=[n,e],n}function of(t,e,l){return l===void 0||(bl&1073741824)!==0&&(ot&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Ny(),lt.lanes|=t,Pl|=t,l)}function Nh(t,e,l,n){return ze(l,e)?l:ba.current!==null?(t=of(t,l,n),ze(t,e)||(Zt=!0),t):(bl&42)===0||(bl&1073741824)!==0&&(ot&261930)===0?(Zt=!0,t.memoizedState=l):(t=Ny(),lt.lanes|=t,Pl|=t,e)}function xh(t,e,l,n,a){var i=Q.p;Q.p=i!==0&&8>i?i:8;var r=M.T,d={};M.T=d,yf(t,!1,e,l);try{var m=a(),A=M.S;if(A!==null&&A(d,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var U=Ep(m,n);Eu(t,e,U,Ne(t))}else Eu(t,e,n,Ne(t))}catch(q){Eu(t,e,{then:function(){},status:"rejected",reason:q},Ne())}finally{Q.p=i,r!==null&&d.types!==null&&(r.types=d.types),M.T=r}}function _p(){}function df(t,e,l,n){if(t.tag!==5)throw Error(s(476));var a=qh(t).queue;xh(t,a,e,J,l===null?_p:function(){return Hh(t),l(n)})}function qh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:J},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:El,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Hh(t){var e=qh(t);e.next===null&&(e=t.alternate.memoizedState),Eu(t,e.next.queue,{},Ne())}function hf(){return le(wu)}function Bh(){return Lt().memoizedState}function jh(){return Lt().memoizedState}function Dp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Ne();t=Jl(l);var n=Fl(e,t,l);n!==null&&(Ee(n,e,l),vu(n,e,l)),e={cache:Ys()},t.payload=e;return}e=e.return}}function Mp(t,e,l){var n=Ne();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Li(t)?Qh(e,l):(l=Cs(t,e,l,n),l!==null&&(Ee(l,t,n),Lh(l,e,n)))}function wh(t,e,l){var n=Ne();Eu(t,e,l,n)}function Eu(t,e,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Li(t))Qh(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var r=e.lastRenderedState,d=i(r,l);if(a.hasEagerState=!0,a.eagerState=d,ze(d,r))return bi(t,e,a,0),Mt===null&&Si(),!1}catch{}finally{}if(l=Cs(t,e,a,n),l!==null)return Ee(l,t,n),Lh(l,e,n),!0}return!1}function yf(t,e,l,n){if(n={lane:2,revertLane:Kf(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Li(t)){if(e)throw Error(s(479))}else e=Cs(t,l,n,2),e!==null&&Ee(e,t,2)}function Li(t){var e=t.alternate;return t===lt||e!==null&&e===lt}function Qh(t,e){Ea=xi=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Lh(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Vo(t,l)}}var Tu={readContext:le,use:Bi,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht,useHostTransitionStatus:Ht,useFormState:Ht,useActionState:Ht,useOptimistic:Ht,useMemoCache:Ht,useCacheRefresh:Ht};Tu.useEffectEvent=Ht;var Yh={readContext:le,use:Bi,useCallback:function(t,e){return re().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Oh,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,wi(4194308,4,Dh.bind(null,e,t),l)},useLayoutEffect:function(t,e){return wi(4194308,4,t,e)},useInsertionEffect:function(t,e){wi(4,2,t,e)},useMemo:function(t,e){var l=re();e=e===void 0?null:e;var n=t();if(wn){Ql(!0);try{t()}finally{Ql(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=re();if(l!==void 0){var a=l(e);if(wn){Ql(!0);try{l(e)}finally{Ql(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Mp.bind(null,lt,t),[n.memoizedState,t]},useRef:function(t){var e=re();return t={current:t},e.memoizedState=t},useState:function(t){t=cf(t);var e=t.queue,l=wh.bind(null,lt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:rf,useDeferredValue:function(t,e){var l=re();return of(l,t,e)},useTransition:function(){var t=cf(!1);return t=xh.bind(null,lt,t.queue,!0,!1),re().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=lt,a=re();if(ht){if(l===void 0)throw Error(s(407));l=l()}else{if(l=e(),Mt===null)throw Error(s(349));(ot&127)!==0||sh(n,e,l)}a.memoizedState=l;var i={value:l,getSnapshot:e};return a.queue=i,Oh(rh.bind(null,n,i,t),[t]),n.flags|=2048,Aa(9,{destroy:void 0},fh.bind(null,n,i,l,e),null),l},useId:function(){var t=re(),e=Mt.identifierPrefix;if(ht){var l=il,n=ul;l=(n&~(1<<32-Re(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=qi++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Tp++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:hf,useFormState:Sh,useActionState:Sh,useOptimistic:function(t){var e=re();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=yf.bind(null,lt,!0,l),l.dispatch=e,[t,e]},useMemoCache:nf,useCacheRefresh:function(){return re().memoizedState=Dp.bind(null,lt)},useEffectEvent:function(t){var e=re(),l={impl:t};return e.memoizedState=l,function(){if((Et&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},mf={readContext:le,use:Bi,useCallback:Ch,useContext:le,useEffect:ff,useImperativeHandle:Mh,useInsertionEffect:zh,useLayoutEffect:_h,useMemo:Uh,useReducer:ji,useRef:Ah,useState:function(){return ji(El)},useDebugValue:rf,useDeferredValue:function(t,e){var l=Lt();return Nh(l,zt.memoizedState,t,e)},useTransition:function(){var t=ji(El)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:bu(t),e]},useSyncExternalStore:ch,useId:Bh,useHostTransitionStatus:hf,useFormState:bh,useActionState:bh,useOptimistic:function(t,e){var l=Lt();return hh(l,zt,t,e)},useMemoCache:nf,useCacheRefresh:jh};mf.useEffectEvent=Rh;var Gh={readContext:le,use:Bi,useCallback:Ch,useContext:le,useEffect:ff,useImperativeHandle:Mh,useInsertionEffect:zh,useLayoutEffect:_h,useMemo:Uh,useReducer:uf,useRef:Ah,useState:function(){return uf(El)},useDebugValue:rf,useDeferredValue:function(t,e){var l=Lt();return zt===null?of(l,t,e):Nh(l,zt.memoizedState,t,e)},useTransition:function(){var t=uf(El)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:bu(t),e]},useSyncExternalStore:ch,useId:Bh,useHostTransitionStatus:hf,useFormState:Th,useActionState:Th,useOptimistic:function(t,e){var l=Lt();return zt!==null?hh(l,zt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:nf,useCacheRefresh:jh};Gh.useEffectEvent=Rh;function vf(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:C({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var gf={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=Ne(),a=Jl(n);a.payload=e,l!=null&&(a.callback=l),e=Fl(t,a,n),e!==null&&(Ee(e,t,n),vu(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=Ne(),a=Jl(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=Fl(t,a,n),e!==null&&(Ee(e,t,n),vu(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Ne(),n=Jl(l);n.tag=2,e!=null&&(n.callback=e),e=Fl(t,n,l),e!==null&&(Ee(e,t,l),vu(e,t,l))}};function Xh(t,e,l,n,a,i,r){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,r):e.prototype&&e.prototype.isPureReactComponent?!su(l,n)||!su(a,i):!0}function Zh(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&gf.enqueueReplaceState(e,e.state,null)}function Qn(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=C({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}function Vh(t){pi(t)}function Kh(t){console.error(t)}function Jh(t){pi(t)}function Yi(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function Fh(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function pf(t,e,l){return l=Jl(l),l.tag=3,l.payload={element:null},l.callback=function(){Yi(t,e)},l}function kh(t){return t=Jl(t),t.tag=3,t}function Wh(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var i=n.value;t.payload=function(){return a(i)},t.callback=function(){Fh(e,l,n)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(t.callback=function(){Fh(e,l,n),typeof a!="function"&&(tn===null?tn=new Set([this]):tn.add(this));var d=n.stack;this.componentDidCatch(n.value,{componentStack:d!==null?d:""})})}function Cp(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&ma(e,l,a,!0),l=De.current,l!==null){switch(l.tag){case 31:case 13:return Ze===null?Pi():l.alternate===null&&Bt===0&&(Bt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===Di?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),Xf(t,n,a)),!1;case 22:return l.flags|=65536,n===Di?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),Xf(t,n,a)),!1}throw Error(s(435,l.tag))}return Xf(t,n,a),Pi(),!1}if(ht)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Bs&&(t=Error(s(422),{cause:n}),ou(Le(t,l)))):(n!==Bs&&(e=Error(s(423),{cause:n}),ou(Le(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Le(n,l),a=pf(t.stateNode,n,a),Js(t,a),Bt!==4&&(Bt=2)),!1;var i=Error(s(520),{cause:n});if(i=Le(i,l),Cu===null?Cu=[i]:Cu.push(i),Bt!==4&&(Bt=2),e===null)return!0;n=Le(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=pf(l.stateNode,n,t),Js(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(tn===null||!tn.has(i))))return l.flags|=65536,a&=-a,l.lanes|=a,a=kh(a),Wh(a,t,l,n),Js(l,a),!1}l=l.return}while(l!==null);return!1}var Sf=Error(s(461)),Zt=!1;function ne(t,e,l,n){e.child=t===null?th(e,null,l,n):jn(e,t.child,l,n)}function $h(t,e,l,n,a){l=l.render;var i=e.ref;if("ref"in n){var r={};for(var d in n)d!=="ref"&&(r[d]=n[d])}else r=n;return xn(e),n=Ps(t,e,l,r,i,a),d=tf(),t!==null&&!Zt?(ef(t,e,a),Tl(t,e,a)):(ht&&d&&qs(e),e.flags|=1,ne(t,e,n,a),e.child)}function Ih(t,e,l,n,a){if(t===null){var i=l.type;return typeof i=="function"&&!Us(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,Ph(t,e,i,n,a)):(t=Ti(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!_f(t,a)){var r=i.memoizedProps;if(l=l.compare,l=l!==null?l:su,l(r,n)&&t.ref===e.ref)return Tl(t,e,a)}return e.flags|=1,t=vl(i,n),t.ref=e.ref,t.return=e,e.child=t}function Ph(t,e,l,n,a){if(t!==null){var i=t.memoizedProps;if(su(i,n)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=n=i,_f(t,a))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,Tl(t,e,a)}return bf(t,e,l,n,a)}function ty(t,e,l,n){var a=n.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(n=e.child=t.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~i}else n=0,e.child=null;return ey(t,e,i,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&zi(e,i!==null?i.cachePool:null),i!==null?nh(e,i):ks(),ah(e);else return n=e.lanes=536870912,ey(t,e,i!==null?i.baseLanes|l:l,l,n)}else i!==null?(zi(e,i.cachePool),nh(e,i),Wl(),e.memoizedState=null):(t!==null&&zi(e,null),ks(),Wl());return ne(t,e,a,l),e.child}function Au(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ey(t,e,l,n,a){var i=Xs();return i=i===null?null:{parent:Gt._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&zi(e,null),ks(),ah(e),t!==null&&ma(t,e,n,!0),e.childLanes=a,null}function Gi(t,e){return e=Zi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ly(t,e,l){return jn(e,t.child,null,l),t=Gi(e,e.pendingProps),t.flags|=2,Me(e),e.memoizedState=null,t}function Up(t,e,l){var n=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ht){if(n.mode==="hidden")return t=Gi(e,n),e.lanes=536870912,Au(null,t);if($s(e),(t=Ct)?(t=ym(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gl!==null?{id:ul,overflow:il}:null,retryLane:536870912,hydrationErrors:null},l=Qd(t),l.return=e,e.child=l,ee=e,Ct=null)):t=null,t===null)throw Zl(e);return e.lanes=536870912,null}return Gi(e,n)}var i=t.memoizedState;if(i!==null){var r=i.dehydrated;if($s(e),a)if(e.flags&256)e.flags&=-257,e=ly(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(Zt||ma(t,e,l,!1),a=(l&t.childLanes)!==0,Zt||a){if(n=Mt,n!==null&&(r=Ko(n,l),r!==0&&r!==i.retryLane))throw i.retryLane=r,Mn(t,r),Ee(n,t,r),Sf;Pi(),e=ly(t,e,l)}else t=i.treeContext,Ct=Ve(r.nextSibling),ee=e,ht=!0,Xl=null,Xe=!1,t!==null&&Gd(e,t),e=Gi(e,n),e.flags|=4096;return e}return t=vl(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Xi(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function bf(t,e,l,n,a){return xn(e),l=Ps(t,e,l,n,void 0,a),n=tf(),t!==null&&!Zt?(ef(t,e,a),Tl(t,e,a)):(ht&&n&&qs(e),e.flags|=1,ne(t,e,l,a),e.child)}function ny(t,e,l,n,a,i){return xn(e),e.updateQueue=null,l=ih(e,n,l,a),uh(t),n=tf(),t!==null&&!Zt?(ef(t,e,i),Tl(t,e,i)):(ht&&n&&qs(e),e.flags|=1,ne(t,e,l,i),e.child)}function ay(t,e,l,n,a){if(xn(e),e.stateNode===null){var i=oa,r=l.contextType;typeof r=="object"&&r!==null&&(i=le(r)),i=new l(n,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=gf,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=n,i.state=e.memoizedState,i.refs={},Vs(e),r=l.contextType,i.context=typeof r=="object"&&r!==null?le(r):oa,i.state=e.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(vf(e,l,r,n),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(r=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),r!==i.state&&gf.enqueueReplaceState(i,i.state,null),pu(e,n,i,a),gu(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){i=e.stateNode;var d=e.memoizedProps,m=Qn(l,d);i.props=m;var A=i.context,U=l.contextType;r=oa,typeof U=="object"&&U!==null&&(r=le(U));var q=l.getDerivedStateFromProps;U=typeof q=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=e.pendingProps!==d,U||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||A!==r)&&Zh(e,i,n,r),Kl=!1;var O=e.memoizedState;i.state=O,pu(e,n,i,a),gu(),A=e.memoizedState,d||O!==A||Kl?(typeof q=="function"&&(vf(e,l,q,n),A=e.memoizedState),(m=Kl||Xh(e,l,m,n,O,A,r))?(U||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=A),i.props=n,i.state=A,i.context=r,n=m):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{i=e.stateNode,Ks(t,e),r=e.memoizedProps,U=Qn(l,r),i.props=U,q=e.pendingProps,O=i.context,A=l.contextType,m=oa,typeof A=="object"&&A!==null&&(m=le(A)),d=l.getDerivedStateFromProps,(A=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r!==q||O!==m)&&Zh(e,i,n,m),Kl=!1,O=e.memoizedState,i.state=O,pu(e,n,i,a),gu();var D=e.memoizedState;r!==q||O!==D||Kl||t!==null&&t.dependencies!==null&&Oi(t.dependencies)?(typeof d=="function"&&(vf(e,l,d,n),D=e.memoizedState),(U=Kl||Xh(e,l,U,n,O,D,m)||t!==null&&t.dependencies!==null&&Oi(t.dependencies))?(A||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(n,D,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(n,D,m)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||r===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=D),i.props=n,i.state=D,i.context=m,n=U):(typeof i.componentDidUpdate!="function"||r===t.memoizedProps&&O===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||r===t.memoizedProps&&O===t.memoizedState||(e.flags|=1024),n=!1)}return i=n,Xi(t,e),n=(e.flags&128)!==0,i||n?(i=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&n?(e.child=jn(e,t.child,null,a),e.child=jn(e,null,l,a)):ne(t,e,l,a),e.memoizedState=i.state,t=e.child):t=Tl(t,e,a),t}function uy(t,e,l,n){return Un(),e.flags|=256,ne(t,e,l,n),e.child}var Ef={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tf(t){return{baseLanes:t,cachePool:Fd()}}function Af(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Ue),t}function iy(t,e,l){var n=e.pendingProps,a=!1,i=(e.flags&128)!==0,r;if((r=i)||(r=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),r&&(a=!0,e.flags&=-129),r=(e.flags&32)!==0,e.flags&=-33,t===null){if(ht){if(a?kl(e):Wl(),(t=Ct)?(t=ym(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Gl!==null?{id:ul,overflow:il}:null,retryLane:536870912,hydrationErrors:null},l=Qd(t),l.return=e,e.child=l,ee=e,Ct=null)):t=null,t===null)throw Zl(e);return ur(t)?e.lanes=32:e.lanes=536870912,null}var d=n.children;return n=n.fallback,a?(Wl(),a=e.mode,d=Zi({mode:"hidden",children:d},a),n=Cn(n,a,l,null),d.return=e,n.return=e,d.sibling=n,e.child=d,n=e.child,n.memoizedState=Tf(l),n.childLanes=Af(t,r,l),e.memoizedState=Ef,Au(null,n)):(kl(e),Of(e,d))}var m=t.memoizedState;if(m!==null&&(d=m.dehydrated,d!==null)){if(i)e.flags&256?(kl(e),e.flags&=-257,e=Rf(t,e,l)):e.memoizedState!==null?(Wl(),e.child=t.child,e.flags|=128,e=null):(Wl(),d=n.fallback,a=e.mode,n=Zi({mode:"visible",children:n.children},a),d=Cn(d,a,l,null),d.flags|=2,n.return=e,d.return=e,n.sibling=d,e.child=n,jn(e,t.child,null,l),n=e.child,n.memoizedState=Tf(l),n.childLanes=Af(t,r,l),e.memoizedState=Ef,e=Au(null,n));else if(kl(e),ur(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r)var A=r.dgst;r=A,n=Error(s(419)),n.stack="",n.digest=r,ou({value:n,source:null,stack:null}),e=Rf(t,e,l)}else if(Zt||ma(t,e,l,!1),r=(l&t.childLanes)!==0,Zt||r){if(r=Mt,r!==null&&(n=Ko(r,l),n!==0&&n!==m.retryLane))throw m.retryLane=n,Mn(t,n),Ee(r,t,n),Sf;ar(d)||Pi(),e=Rf(t,e,l)}else ar(d)?(e.flags|=192,e.child=t.child,e=null):(t=m.treeContext,Ct=Ve(d.nextSibling),ee=e,ht=!0,Xl=null,Xe=!1,t!==null&&Gd(e,t),e=Of(e,n.children),e.flags|=4096);return e}return a?(Wl(),d=n.fallback,a=e.mode,m=t.child,A=m.sibling,n=vl(m,{mode:"hidden",children:n.children}),n.subtreeFlags=m.subtreeFlags&65011712,A!==null?d=vl(A,d):(d=Cn(d,a,l,null),d.flags|=2),d.return=e,n.return=e,n.sibling=d,e.child=n,Au(null,n),n=e.child,d=t.child.memoizedState,d===null?d=Tf(l):(a=d.cachePool,a!==null?(m=Gt._currentValue,a=a.parent!==m?{parent:m,pool:m}:a):a=Fd(),d={baseLanes:d.baseLanes|l,cachePool:a}),n.memoizedState=d,n.childLanes=Af(t,r,l),e.memoizedState=Ef,Au(t.child,n)):(kl(e),l=t.child,t=l.sibling,l=vl(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=l,e.memoizedState=null,l)}function Of(t,e){return e=Zi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Zi(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function Rf(t,e,l){return jn(e,t.child,null,l),t=Of(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function cy(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Qs(t.return,e,l)}function zf(t,e,l,n,a,i){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:i}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=n,r.tail=l,r.tailMode=a,r.treeForkCount=i)}function sy(t,e,l){var n=e.pendingProps,a=n.revealOrder,i=n.tail;n=n.children;var r=Qt.current,d=(r&2)!==0;if(d?(r=r&1|2,e.flags|=128):r&=1,L(Qt,r),ne(t,e,n,l),n=ht?ru:0,!d&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&cy(t,l,e);else if(t.tag===19)cy(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&Ni(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),zf(e,!1,a,l,i,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Ni(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}zf(e,!0,l,null,i,n);break;case"together":zf(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function Tl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Pl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(ma(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,l=vl(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=vl(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function _f(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Oi(t)))}function Np(t,e,l){switch(e.tag){case 3:fe(e,e.stateNode.containerInfo),Vl(e,Gt,t.memoizedState.cache),Un();break;case 27:case 5:ka(e);break;case 4:fe(e,e.stateNode.containerInfo);break;case 10:Vl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,$s(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(kl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?iy(t,e,l):(kl(e),t=Tl(t,e,l),t!==null?t.sibling:null);kl(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(ma(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return sy(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),L(Qt,Qt.current),n)break;return null;case 22:return e.lanes=0,ty(t,e,l,e.pendingProps);case 24:Vl(e,Gt,t.memoizedState.cache)}return Tl(t,e,l)}function fy(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!_f(t,l)&&(e.flags&128)===0)return Zt=!1,Np(t,e,l);Zt=(t.flags&131072)!==0}else Zt=!1,ht&&(e.flags&1048576)!==0&&Yd(e,ru,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Hn(e.elementType),e.type=t,typeof t=="function")Us(t)?(n=Qn(t,n),e.tag=1,e=ay(null,e,t,n,l)):(e.tag=0,e=bf(null,e,t,n,l));else{if(t!=null){var a=t.$$typeof;if(a===Y){e.tag=11,e=$h(null,e,t,n,l);break t}else if(a===k){e.tag=14,e=Ih(null,e,t,n,l);break t}}throw e=Pt(t)||t,Error(s(306,e,""))}}return e;case 0:return bf(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=Qn(n,e.pendingProps),ay(t,e,n,a,l);case 3:t:{if(fe(e,e.stateNode.containerInfo),t===null)throw Error(s(387));n=e.pendingProps;var i=e.memoizedState;a=i.element,Ks(t,e),pu(e,n,null,l);var r=e.memoizedState;if(n=r.cache,Vl(e,Gt,n),n!==i.cache&&Ls(e,[Gt],l,!0),gu(),n=r.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:r.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=uy(t,e,n,l);break t}else if(n!==a){a=Le(Error(s(424)),e),ou(a),e=uy(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ct=Ve(t.firstChild),ee=e,ht=!0,Xl=null,Xe=!0,l=th(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Un(),n===a){e=Tl(t,e,l);break t}ne(t,e,n,l)}e=e.child}return e;case 26:return Xi(t,e),t===null?(l=bm(e.type,null,e.pendingProps,null))?e.memoizedState=l:ht||(l=e.type,t=e.pendingProps,n=ic(it.current).createElement(l),n[te]=e,n[me]=t,ae(n,l,t),kt(n),e.stateNode=n):e.memoizedState=bm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ka(e),t===null&&ht&&(n=e.stateNode=gm(e.type,e.pendingProps,it.current),ee=e,Xe=!0,a=Ct,an(e.type)?(ir=a,Ct=Ve(n.firstChild)):Ct=a),ne(t,e,e.pendingProps.children,l),Xi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ht&&((a=n=Ct)&&(n=s1(n,e.type,e.pendingProps,Xe),n!==null?(e.stateNode=n,ee=e,Ct=Ve(n.firstChild),Xe=!1,a=!0):a=!1),a||Zl(e)),ka(e),a=e.type,i=e.pendingProps,r=t!==null?t.memoizedProps:null,n=i.children,er(a,i)?n=null:r!==null&&er(a,r)&&(e.flags|=32),e.memoizedState!==null&&(a=Ps(t,e,Ap,null,null,l),wu._currentValue=a),Xi(t,e),ne(t,e,n,l),e.child;case 6:return t===null&&ht&&((t=l=Ct)&&(l=f1(l,e.pendingProps,Xe),l!==null?(e.stateNode=l,ee=e,Ct=null,t=!0):t=!1),t||Zl(e)),null;case 13:return iy(t,e,l);case 4:return fe(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=jn(e,null,n,l):ne(t,e,n,l),e.child;case 11:return $h(t,e,e.type,e.pendingProps,l);case 7:return ne(t,e,e.pendingProps,l),e.child;case 8:return ne(t,e,e.pendingProps.children,l),e.child;case 12:return ne(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,Vl(e,e.type,n.value),ne(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,xn(e),a=le(a),n=n(a),e.flags|=1,ne(t,e,n,l),e.child;case 14:return Ih(t,e,e.type,e.pendingProps,l);case 15:return Ph(t,e,e.type,e.pendingProps,l);case 19:return sy(t,e,l);case 31:return Up(t,e,l);case 22:return ty(t,e,l,e.pendingProps);case 24:return xn(e),n=le(Gt),t===null?(a=Xs(),a===null&&(a=Mt,i=Ys(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=l),a=i),e.memoizedState={parent:n,cache:a},Vs(e),Vl(e,Gt,a)):((t.lanes&l)!==0&&(Ks(t,e),pu(e,null,null,l),gu()),a=t.memoizedState,i=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Vl(e,Gt,n)):(n=i.cache,Vl(e,Gt,n),n!==a.cache&&Ls(e,[Gt],l,!0))),ne(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function Al(t){t.flags|=4}function Df(t,e,l,n,a){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(By())t.flags|=8192;else throw Bn=Di,Zs}else t.flags&=-16777217}function ry(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Rm(e))if(By())t.flags|=8192;else throw Bn=Di,Zs}function Vi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Xo():536870912,t.lanes|=e,_a|=e)}function Ou(t,e){if(!ht)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function xp(t,e,l){var n=e.pendingProps;switch(Hs(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Sl(Gt),wt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(ya(e)?Al(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,js())),Ut(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(Al(e),i!==null?(Ut(e),ry(e,i)):(Ut(e),Df(e,a,null,n,l))):i?i!==t.memoizedState?(Al(e),Ut(e),ry(e,i)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&Al(e),Ut(e),Df(e,a,t,n,l)),null;case 27:if(li(e),l=it.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Al(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return Ut(e),null}t=G.current,ya(e)?Xd(e):(t=gm(a,n,l),e.stateNode=t,Al(e))}return Ut(e),null;case 5:if(li(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&Al(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return Ut(e),null}if(i=G.current,ya(e))Xd(e);else{var r=ic(it.current);switch(i){case 1:i=r.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=r.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=r.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=r.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof n.is=="string"?r.createElement("select",{is:n.is}):r.createElement("select"),n.multiple?i.multiple=!0:n.size&&(i.size=n.size);break;default:i=typeof n.is=="string"?r.createElement(a,{is:n.is}):r.createElement(a)}}i[te]=e,i[me]=n;t:for(r=e.child;r!==null;){if(r.tag===5||r.tag===6)i.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break t;for(;r.sibling===null;){if(r.return===null||r.return===e)break t;r=r.return}r.sibling.return=r.return,r=r.sibling}e.stateNode=i;t:switch(ae(i,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&Al(e)}}return Ut(e),Df(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&Al(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(s(166));if(t=it.current,ya(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=ee,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[te]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||im(t.nodeValue,l)),t||Zl(e,!0)}else t=ic(t).createTextNode(n),t[te]=e,e.stateNode=t}return Ut(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=ya(e),l!==null){if(t===null){if(!n)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[te]=e}else Un(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else l=js(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Me(e),e):(Me(e),null);if((e.flags&128)!==0)throw Error(s(558))}return Ut(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=ya(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[te]=e}else Un(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),a=!1}else a=js(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(Me(e),e):(Me(e),null)}return Me(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==a&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Vi(e,e.updateQueue),Ut(e),null);case 4:return wt(),t===null&&Wf(e.stateNode.containerInfo),Ut(e),null;case 10:return Sl(e.type),Ut(e),null;case 19:if(x(Qt),n=e.memoizedState,n===null)return Ut(e),null;if(a=(e.flags&128)!==0,i=n.rendering,i===null)if(a)Ou(n,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Ni(t),i!==null){for(e.flags|=128,Ou(n,!1),t=i.updateQueue,e.updateQueue=t,Vi(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)wd(l,t),l=l.sibling;return L(Qt,Qt.current&1|2),ht&&gl(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&Ae()>Wi&&(e.flags|=128,a=!0,Ou(n,!1),e.lanes=4194304)}else{if(!a)if(t=Ni(i),t!==null){if(e.flags|=128,a=!0,t=t.updateQueue,e.updateQueue=t,Vi(e,t),Ou(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!ht)return Ut(e),null}else 2*Ae()-n.renderingStartTime>Wi&&l!==536870912&&(e.flags|=128,a=!0,Ou(n,!1),e.lanes=4194304);n.isBackwards?(i.sibling=e.child,e.child=i):(t=n.last,t!==null?t.sibling=i:e.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=Ae(),t.sibling=null,l=Qt.current,L(Qt,a?l&1|2:l&1),ht&&gl(e,n.treeForkCount),t):(Ut(e),null);case 22:case 23:return Me(e),Ws(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),l=e.updateQueue,l!==null&&Vi(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&x(qn),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Sl(Gt),Ut(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function qp(t,e){switch(Hs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Sl(Gt),wt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return li(e),null;case 31:if(e.memoizedState!==null){if(Me(e),e.alternate===null)throw Error(s(340));Un()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Me(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));Un()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return x(Qt),null;case 4:return wt(),null;case 10:return Sl(e.type),null;case 22:case 23:return Me(e),Ws(),t!==null&&x(qn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Sl(Gt),null;case 25:return null;default:return null}}function oy(t,e){switch(Hs(e),e.tag){case 3:Sl(Gt),wt();break;case 26:case 27:case 5:li(e);break;case 4:wt();break;case 31:e.memoizedState!==null&&Me(e);break;case 13:Me(e);break;case 19:x(Qt);break;case 10:Sl(e.type);break;case 22:case 23:Me(e),Ws(),t!==null&&x(qn);break;case 24:Sl(Gt)}}function Ru(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var i=l.create,r=l.inst;n=i(),r.destroy=n}l=l.next}while(l!==a)}}catch(d){Rt(e,e.return,d)}}function $l(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){var r=n.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,a=e;var m=l,A=d;try{A()}catch(U){Rt(a,m,U)}}}n=n.next}while(n!==i)}}catch(U){Rt(e,e.return,U)}}function dy(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{lh(e,l)}catch(n){Rt(t,t.return,n)}}}function hy(t,e,l){l.props=Qn(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){Rt(t,e,n)}}function zu(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){Rt(t,e,a)}}function cl(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Rt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Rt(t,e,a)}else l.current=null}function yy(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Rt(t,t.return,a)}}function Mf(t,e,l){try{var n=t.stateNode;l1(n,t.type,l,e),n[me]=e}catch(a){Rt(t,t.return,a)}}function my(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&an(t.type)||t.tag===4}function Cf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||my(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&an(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Uf(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=yl));else if(n!==4&&(n===27&&an(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Uf(t,e,l),t=t.sibling;t!==null;)Uf(t,e,l),t=t.sibling}function Ki(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&an(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Ki(t,e,l),t=t.sibling;t!==null;)Ki(t,e,l),t=t.sibling}function vy(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);ae(e,n,l),e[te]=t,e[me]=l}catch(i){Rt(t,t.return,i)}}var Ol=!1,Vt=!1,Nf=!1,gy=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function Hp(t,e){if(t=t.containerInfo,Pf=hc,t=Md(t),Os(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break t}var r=0,d=-1,m=-1,A=0,U=0,q=t,O=null;e:for(;;){for(var D;q!==l||a!==0&&q.nodeType!==3||(d=r+a),q!==i||n!==0&&q.nodeType!==3||(m=r+n),q.nodeType===3&&(r+=q.nodeValue.length),(D=q.firstChild)!==null;)O=q,q=D;for(;;){if(q===t)break e;if(O===l&&++A===a&&(d=r),O===i&&++U===n&&(m=r),(D=q.nextSibling)!==null)break;q=O,O=q.parentNode}q=D}l=d===-1||m===-1?null:{start:d,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(tr={focusedElem:t,selectionRange:l},hc=!1,Wt=e;Wt!==null;)if(e=Wt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Wt=t;else for(;Wt!==null;){switch(e=Wt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)a=t[l],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,l=e,a=i.memoizedProps,i=i.memoizedState,n=l.stateNode;try{var X=Qn(l.type,a);t=n.getSnapshotBeforeUpdate(X,i),n.__reactInternalSnapshotBeforeUpdate=t}catch(I){Rt(l,l.return,I)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)nr(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":nr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=e.sibling,t!==null){t.return=e.return,Wt=t;break}Wt=e.return}}function py(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:zl(t,l),n&4&&Ru(5,l);break;case 1:if(zl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(r){Rt(l,l.return,r)}else{var a=Qn(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(r){Rt(l,l.return,r)}}n&64&&dy(l),n&512&&zu(l,l.return);break;case 3:if(zl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{lh(t,e)}catch(r){Rt(l,l.return,r)}}break;case 27:e===null&&n&4&&vy(l);case 26:case 5:zl(t,l),e===null&&n&4&&yy(l),n&512&&zu(l,l.return);break;case 12:zl(t,l);break;case 31:zl(t,l),n&4&&Ey(t,l);break;case 13:zl(t,l),n&4&&Ty(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Zp.bind(null,l),r1(t,l))));break;case 22:if(n=l.memoizedState!==null||Ol,!n){e=e!==null&&e.memoizedState!==null||Vt,a=Ol;var i=Vt;Ol=n,(Vt=e)&&!i?_l(t,l,(l.subtreeFlags&8772)!==0):zl(t,l),Ol=a,Vt=i}break;case 30:break;default:zl(t,l)}}function Sy(t){var e=t.alternate;e!==null&&(t.alternate=null,Sy(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&cs(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var xt=null,ge=!1;function Rl(t,e,l){for(l=l.child;l!==null;)by(t,e,l),l=l.sibling}function by(t,e,l){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(Wa,l)}catch{}switch(l.tag){case 26:Vt||cl(l,e),Rl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Vt||cl(l,e);var n=xt,a=ge;an(l.type)&&(xt=l.stateNode,ge=!1),Rl(t,e,l),Hu(l.stateNode),xt=n,ge=a;break;case 5:Vt||cl(l,e);case 6:if(n=xt,a=ge,xt=null,Rl(t,e,l),xt=n,ge=a,xt!==null)if(ge)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(l.stateNode)}catch(i){Rt(l,e,i)}else try{xt.removeChild(l.stateNode)}catch(i){Rt(l,e,i)}break;case 18:xt!==null&&(ge?(t=xt,dm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Ha(t)):dm(xt,l.stateNode));break;case 4:n=xt,a=ge,xt=l.stateNode.containerInfo,ge=!0,Rl(t,e,l),xt=n,ge=a;break;case 0:case 11:case 14:case 15:$l(2,l,e),Vt||$l(4,l,e),Rl(t,e,l);break;case 1:Vt||(cl(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&hy(l,e,n)),Rl(t,e,l);break;case 21:Rl(t,e,l);break;case 22:Vt=(n=Vt)||l.memoizedState!==null,Rl(t,e,l),Vt=n;break;default:Rl(t,e,l)}}function Ey(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ha(t)}catch(l){Rt(e,e.return,l)}}}function Ty(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ha(t)}catch(l){Rt(e,e.return,l)}}function Bp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new gy),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new gy),e;default:throw Error(s(435,t.tag))}}function Ji(t,e){var l=Bp(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var a=Vp.bind(null,t,n);n.then(a,a)}})}function pe(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],i=t,r=e,d=r;t:for(;d!==null;){switch(d.tag){case 27:if(an(d.type)){xt=d.stateNode,ge=!1;break t}break;case 5:xt=d.stateNode,ge=!1;break t;case 3:case 4:xt=d.stateNode.containerInfo,ge=!0;break t}d=d.return}if(xt===null)throw Error(s(160));by(i,r,a),xt=null,ge=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Ay(e,t),e=e.sibling}var Pe=null;function Ay(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:pe(e,t),Se(t),n&4&&($l(3,t,t.return),Ru(3,t),$l(5,t,t.return));break;case 1:pe(e,t),Se(t),n&512&&(Vt||l===null||cl(l,l.return)),n&64&&Ol&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Pe;if(pe(e,t),Se(t),n&512&&(Vt||l===null||cl(l,l.return)),n&4){var i=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Pa]||i[te]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(n),a.head.insertBefore(i,a.querySelector("head > title"))),ae(i,n,l),i[te]=t,kt(i),n=i;break t;case"link":var r=Am("link","href",a).get(n+(l.href||""));if(r){for(var d=0;d<r.length;d++)if(i=r[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){r.splice(d,1);break e}}i=a.createElement(n),ae(i,n,l),a.head.appendChild(i);break;case"meta":if(r=Am("meta","content",a).get(n+(l.content||""))){for(d=0;d<r.length;d++)if(i=r[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){r.splice(d,1);break e}}i=a.createElement(n),ae(i,n,l),a.head.appendChild(i);break;default:throw Error(s(468,n))}i[te]=t,kt(i),n=i}t.stateNode=n}else Om(a,t.type,t.stateNode);else t.stateNode=Tm(a,n,t.memoizedProps);else i!==n?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,n===null?Om(a,t.type,t.stateNode):Tm(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&Mf(t,t.memoizedProps,l.memoizedProps)}break;case 27:pe(e,t),Se(t),n&512&&(Vt||l===null||cl(l,l.return)),l!==null&&n&4&&Mf(t,t.memoizedProps,l.memoizedProps);break;case 5:if(pe(e,t),Se(t),n&512&&(Vt||l===null||cl(l,l.return)),t.flags&32){a=t.stateNode;try{aa(a,"")}catch(X){Rt(t,t.return,X)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,Mf(t,a,l!==null?l.memoizedProps:a)),n&1024&&(Nf=!0);break;case 6:if(pe(e,t),Se(t),n&4){if(t.stateNode===null)throw Error(s(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(X){Rt(t,t.return,X)}}break;case 3:if(fc=null,a=Pe,Pe=cc(e.containerInfo),pe(e,t),Pe=a,Se(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Ha(e.containerInfo)}catch(X){Rt(t,t.return,X)}Nf&&(Nf=!1,Oy(t));break;case 4:n=Pe,Pe=cc(t.stateNode.containerInfo),pe(e,t),Se(t),Pe=n;break;case 12:pe(e,t),Se(t);break;case 31:pe(e,t),Se(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ji(t,n)));break;case 13:pe(e,t),Se(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ki=Ae()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ji(t,n)));break;case 22:a=t.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,A=Ol,U=Vt;if(Ol=A||a,Vt=U||m,pe(e,t),Vt=U,Ol=A,Se(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||m||Ol||Vt||Ln(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){m=l=e;try{if(i=m.stateNode,a)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=m.stateNode;var q=m.memoizedProps.style,O=q!=null&&q.hasOwnProperty("display")?q.display:null;d.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(X){Rt(m,m.return,X)}}}else if(e.tag===6){if(l===null){m=e;try{m.stateNode.nodeValue=a?"":m.memoizedProps}catch(X){Rt(m,m.return,X)}}}else if(e.tag===18){if(l===null){m=e;try{var D=m.stateNode;a?hm(D,!0):hm(m.stateNode,!1)}catch(X){Rt(m,m.return,X)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Ji(t,l))));break;case 19:pe(e,t),Se(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ji(t,n)));break;case 30:break;case 21:break;default:pe(e,t),Se(t)}}function Se(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(my(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var a=l.stateNode,i=Cf(t);Ki(t,i,a);break;case 5:var r=l.stateNode;l.flags&32&&(aa(r,""),l.flags&=-33);var d=Cf(t);Ki(t,d,r);break;case 3:case 4:var m=l.stateNode.containerInfo,A=Cf(t);Uf(t,A,m);break;default:throw Error(s(161))}}catch(U){Rt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Oy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Oy(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function zl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)py(t,e.alternate,e),e=e.sibling}function Ln(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:$l(4,e,e.return),Ln(e);break;case 1:cl(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&hy(e,e.return,l),Ln(e);break;case 27:Hu(e.stateNode);case 26:case 5:cl(e,e.return),Ln(e);break;case 22:e.memoizedState===null&&Ln(e);break;case 30:Ln(e);break;default:Ln(e)}t=t.sibling}}function _l(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,i=e,r=i.flags;switch(i.tag){case 0:case 11:case 15:_l(a,i,l),Ru(4,i);break;case 1:if(_l(a,i,l),n=i,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(A){Rt(n,n.return,A)}if(n=i,a=n.updateQueue,a!==null){var d=n.stateNode;try{var m=a.shared.hiddenCallbacks;if(m!==null)for(a.shared.hiddenCallbacks=null,a=0;a<m.length;a++)eh(m[a],d)}catch(A){Rt(n,n.return,A)}}l&&r&64&&dy(i),zu(i,i.return);break;case 27:vy(i);case 26:case 5:_l(a,i,l),l&&n===null&&r&4&&yy(i),zu(i,i.return);break;case 12:_l(a,i,l);break;case 31:_l(a,i,l),l&&r&4&&Ey(a,i);break;case 13:_l(a,i,l),l&&r&4&&Ty(a,i);break;case 22:i.memoizedState===null&&_l(a,i,l),zu(i,i.return);break;case 30:break;default:_l(a,i,l)}e=e.sibling}}function xf(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&du(l))}function qf(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&du(t))}function tl(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ry(t,e,l,n),e=e.sibling}function Ry(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:tl(t,e,l,n),a&2048&&Ru(9,e);break;case 1:tl(t,e,l,n);break;case 3:tl(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&du(t)));break;case 12:if(a&2048){tl(t,e,l,n),t=e.stateNode;try{var i=e.memoizedProps,r=i.id,d=i.onPostCommit;typeof d=="function"&&d(r,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(m){Rt(e,e.return,m)}}else tl(t,e,l,n);break;case 31:tl(t,e,l,n);break;case 13:tl(t,e,l,n);break;case 23:break;case 22:i=e.stateNode,r=e.alternate,e.memoizedState!==null?i._visibility&2?tl(t,e,l,n):_u(t,e):i._visibility&2?tl(t,e,l,n):(i._visibility|=2,Oa(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),a&2048&&xf(r,e);break;case 24:tl(t,e,l,n),a&2048&&qf(e.alternate,e);break;default:tl(t,e,l,n)}}function Oa(t,e,l,n,a){for(a=a&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,r=e,d=l,m=n,A=r.flags;switch(r.tag){case 0:case 11:case 15:Oa(i,r,d,m,a),Ru(8,r);break;case 23:break;case 22:var U=r.stateNode;r.memoizedState!==null?U._visibility&2?Oa(i,r,d,m,a):_u(i,r):(U._visibility|=2,Oa(i,r,d,m,a)),a&&A&2048&&xf(r.alternate,r);break;case 24:Oa(i,r,d,m,a),a&&A&2048&&qf(r.alternate,r);break;default:Oa(i,r,d,m,a)}e=e.sibling}}function _u(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:_u(l,n),a&2048&&xf(n.alternate,n);break;case 24:_u(l,n),a&2048&&qf(n.alternate,n);break;default:_u(l,n)}e=e.sibling}}var Du=8192;function Ra(t,e,l){if(t.subtreeFlags&Du)for(t=t.child;t!==null;)zy(t,e,l),t=t.sibling}function zy(t,e,l){switch(t.tag){case 26:Ra(t,e,l),t.flags&Du&&t.memoizedState!==null&&T1(l,Pe,t.memoizedState,t.memoizedProps);break;case 5:Ra(t,e,l);break;case 3:case 4:var n=Pe;Pe=cc(t.stateNode.containerInfo),Ra(t,e,l),Pe=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Du,Du=16777216,Ra(t,e,l),Du=n):Ra(t,e,l));break;default:Ra(t,e,l)}}function _y(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Mu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Wt=n,My(n,t)}_y(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dy(t),t=t.sibling}function Dy(t){switch(t.tag){case 0:case 11:case 15:Mu(t),t.flags&2048&&$l(9,t,t.return);break;case 3:Mu(t);break;case 12:Mu(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Fi(t)):Mu(t);break;default:Mu(t)}}function Fi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Wt=n,My(n,t)}_y(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:$l(8,e,e.return),Fi(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Fi(e));break;default:Fi(e)}t=t.sibling}}function My(t,e){for(;Wt!==null;){var l=Wt;switch(l.tag){case 0:case 11:case 15:$l(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:du(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Wt=n;else t:for(l=t;Wt!==null;){n=Wt;var a=n.sibling,i=n.return;if(Sy(n),n===l){Wt=null;break t}if(a!==null){a.return=i,Wt=a;break t}Wt=i}}}var jp={getCacheForType:function(t){var e=le(Gt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return le(Gt).controller.signal}},wp=typeof WeakMap=="function"?WeakMap:Map,Et=0,Mt=null,ct=null,ot=0,Ot=0,Ce=null,Il=!1,za=!1,Hf=!1,Dl=0,Bt=0,Pl=0,Yn=0,Bf=0,Ue=0,_a=0,Cu=null,be=null,jf=!1,ki=0,Cy=0,Wi=1/0,$i=null,tn=null,Jt=0,en=null,Da=null,Ml=0,wf=0,Qf=null,Uy=null,Uu=0,Lf=null;function Ne(){return(Et&2)!==0&&ot!==0?ot&-ot:M.T!==null?Kf():Jo()}function Ny(){if(Ue===0)if((ot&536870912)===0||ht){var t=ui;ui<<=1,(ui&3932160)===0&&(ui=262144),Ue=t}else Ue=536870912;return t=De.current,t!==null&&(t.flags|=32),Ue}function Ee(t,e,l){(t===Mt&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)&&(Ma(t,0),ln(t,ot,Ue,!1)),Ia(t,l),((Et&2)===0||t!==Mt)&&(t===Mt&&((Et&2)===0&&(Yn|=l),Bt===4&&ln(t,ot,Ue,!1)),sl(t))}function xy(t,e,l){if((Et&6)!==0)throw Error(s(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||$a(t,e),a=n?Yp(t,e):Gf(t,e,!0),i=n;do{if(a===0){za&&!n&&ln(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!Qp(l)){a=Gf(t,e,!1),i=!1;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var r=0;else r=t.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){e=r;t:{var d=t;a=Cu;var m=d.current.memoizedState.isDehydrated;if(m&&(Ma(d,r).flags|=256),r=Gf(d,r,!1),r!==2){if(Hf&&!m){d.errorRecoveryDisabledLanes|=i,Yn|=i,a=4;break t}i=be,be=a,i!==null&&(be===null?be=i:be.push.apply(be,i))}a=r}if(i=!1,a!==2)continue}}if(a===1){Ma(t,0),ln(t,e,0,!0);break}t:{switch(n=t,i=a,i){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:ln(n,e,Ue,!Il);break t;case 2:be=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=ki+300-Ae(),10<a)){if(ln(n,e,Ue,!Il),ci(n,0,!0)!==0)break t;Ml=e,n.timeoutHandle=rm(qy.bind(null,n,l,be,$i,jf,e,Ue,Yn,_a,Il,i,"Throttled",-0,0),a);break t}qy(n,l,be,$i,jf,e,Ue,Yn,_a,Il,i,null,-0,0)}}break}while(!0);sl(t)}function qy(t,e,l,n,a,i,r,d,m,A,U,q,O,D){if(t.timeoutHandle=-1,q=e.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yl},zy(e,i,q);var X=(i&62914560)===i?ki-Ae():(i&4194048)===i?Cy-Ae():0;if(X=A1(q,X),X!==null){Ml=i,t.cancelPendingCommit=X(Gy.bind(null,t,e,i,l,n,a,r,d,m,U,q,null,O,D)),ln(t,i,r,!A);return}}Gy(t,e,i,l,n,a,r,d,m)}function Qp(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],i=a.getSnapshot;a=a.value;try{if(!ze(i(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ln(t,e,l,n){e&=~Bf,e&=~Yn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var i=31-Re(a),r=1<<i;n[i]=-1,a&=~r}l!==0&&Zo(t,l,e)}function Ii(){return(Et&6)===0?(Nu(0),!1):!0}function Yf(){if(ct!==null){if(Ot===0)var t=ct.return;else t=ct,pl=Nn=null,lf(t),Sa=null,yu=0,t=ct;for(;t!==null;)oy(t.alternate,t),t=t.return;ct=null}}function Ma(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,u1(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Ml=0,Yf(),Mt=t,ct=l=vl(t.current,null),ot=e,Ot=0,Ce=null,Il=!1,za=$a(t,e),Hf=!1,_a=Ue=Bf=Yn=Pl=Bt=0,be=Cu=null,jf=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-Re(n),i=1<<a;e|=t[a],n&=~i}return Dl=e,Si(),l}function Hy(t,e){lt=null,M.H=Tu,e===pa||e===_i?(e=$d(),Ot=3):e===Zs?(e=$d(),Ot=4):Ot=e===Sf?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ce=e,ct===null&&(Bt=1,Yi(t,Le(e,t.current)))}function By(){var t=De.current;return t===null?!0:(ot&4194048)===ot?Ze===null:(ot&62914560)===ot||(ot&536870912)!==0?t===Ze:!1}function jy(){var t=M.H;return M.H=Tu,t===null?Tu:t}function wy(){var t=M.A;return M.A=jp,t}function Pi(){Bt=4,Il||(ot&4194048)!==ot&&De.current!==null||(za=!0),(Pl&134217727)===0&&(Yn&134217727)===0||Mt===null||ln(Mt,ot,Ue,!1)}function Gf(t,e,l){var n=Et;Et|=2;var a=jy(),i=wy();(Mt!==t||ot!==e)&&($i=null,Ma(t,e)),e=!1;var r=Bt;t:do try{if(Ot!==0&&ct!==null){var d=ct,m=Ce;switch(Ot){case 8:Yf(),r=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(e=!0);var A=Ot;if(Ot=0,Ce=null,Ca(t,d,m,A),l&&za){r=0;break t}break;default:A=Ot,Ot=0,Ce=null,Ca(t,d,m,A)}}Lp(),r=Bt;break}catch(U){Hy(t,U)}while(!0);return e&&t.shellSuspendCounter++,pl=Nn=null,Et=n,M.H=a,M.A=i,ct===null&&(Mt=null,ot=0,Si()),r}function Lp(){for(;ct!==null;)Qy(ct)}function Yp(t,e){var l=Et;Et|=2;var n=jy(),a=wy();Mt!==t||ot!==e?($i=null,Wi=Ae()+500,Ma(t,e)):za=$a(t,e);t:do try{if(Ot!==0&&ct!==null){e=ct;var i=Ce;e:switch(Ot){case 1:Ot=0,Ce=null,Ca(t,e,i,1);break;case 2:case 9:if(kd(i)){Ot=0,Ce=null,Ly(e);break}e=function(){Ot!==2&&Ot!==9||Mt!==t||(Ot=7),sl(t)},i.then(e,e);break t;case 3:Ot=7;break t;case 4:Ot=5;break t;case 7:kd(i)?(Ot=0,Ce=null,Ly(e)):(Ot=0,Ce=null,Ca(t,e,i,7));break;case 5:var r=null;switch(ct.tag){case 26:r=ct.memoizedState;case 5:case 27:var d=ct;if(r?Rm(r):d.stateNode.complete){Ot=0,Ce=null;var m=d.sibling;if(m!==null)ct=m;else{var A=d.return;A!==null?(ct=A,tc(A)):ct=null}break e}}Ot=0,Ce=null,Ca(t,e,i,5);break;case 6:Ot=0,Ce=null,Ca(t,e,i,6);break;case 8:Yf(),Bt=6;break t;default:throw Error(s(462))}}Gp();break}catch(U){Hy(t,U)}while(!0);return pl=Nn=null,M.H=n,M.A=a,Et=l,ct!==null?0:(Mt=null,ot=0,Si(),Bt)}function Gp(){for(;ct!==null&&!og();)Qy(ct)}function Qy(t){var e=fy(t.alternate,t,Dl);t.memoizedProps=t.pendingProps,e===null?tc(t):ct=e}function Ly(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=ny(l,e,e.pendingProps,e.type,void 0,ot);break;case 11:e=ny(l,e,e.pendingProps,e.type.render,e.ref,ot);break;case 5:lf(e);default:oy(l,e),e=ct=wd(e,Dl),e=fy(l,e,Dl)}t.memoizedProps=t.pendingProps,e===null?tc(t):ct=e}function Ca(t,e,l,n){pl=Nn=null,lf(e),Sa=null,yu=0;var a=e.return;try{if(Cp(t,a,e,l,ot)){Bt=1,Yi(t,Le(l,t.current)),ct=null;return}}catch(i){if(a!==null)throw ct=a,i;Bt=1,Yi(t,Le(l,t.current)),ct=null;return}e.flags&32768?(ht||n===1?t=!0:za||(ot&536870912)!==0?t=!1:(Il=t=!0,(n===2||n===9||n===3||n===6)&&(n=De.current,n!==null&&n.tag===13&&(n.flags|=16384))),Yy(e,t)):tc(e)}function tc(t){var e=t;do{if((e.flags&32768)!==0){Yy(e,Il);return}t=e.return;var l=xp(e.alternate,e,Dl);if(l!==null){ct=l;return}if(e=e.sibling,e!==null){ct=e;return}ct=e=t}while(e!==null);Bt===0&&(Bt=5)}function Yy(t,e){do{var l=qp(t.alternate,t);if(l!==null){l.flags&=32767,ct=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ct=t;return}ct=t=l}while(t!==null);Bt=6,ct=null}function Gy(t,e,l,n,a,i,r,d,m){t.cancelPendingCommit=null;do ec();while(Jt!==0);if((Et&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(i=e.lanes|e.childLanes,i|=Ms,Eg(t,l,i,r,d,m),t===Mt&&(ct=Mt=null,ot=0),Da=e,en=t,Ml=l,wf=i,Qf=a,Uy=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Kp(ni,function(){return Jy(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=M.T,M.T=null,a=Q.p,Q.p=2,r=Et,Et|=4;try{Hp(t,e,l)}finally{Et=r,Q.p=a,M.T=n}}Jt=1,Xy(),Zy(),Vy()}}function Xy(){if(Jt===1){Jt=0;var t=en,e=Da,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var n=Q.p;Q.p=2;var a=Et;Et|=4;try{Ay(e,t);var i=tr,r=Md(t.containerInfo),d=i.focusedElem,m=i.selectionRange;if(r!==d&&d&&d.ownerDocument&&Dd(d.ownerDocument.documentElement,d)){if(m!==null&&Os(d)){var A=m.start,U=m.end;if(U===void 0&&(U=A),"selectionStart"in d)d.selectionStart=A,d.selectionEnd=Math.min(U,d.value.length);else{var q=d.ownerDocument||document,O=q&&q.defaultView||window;if(O.getSelection){var D=O.getSelection(),X=d.textContent.length,I=Math.min(m.start,X),Dt=m.end===void 0?I:Math.min(m.end,X);!D.extend&&I>Dt&&(r=Dt,Dt=I,I=r);var b=_d(d,I),p=_d(d,Dt);if(b&&p&&(D.rangeCount!==1||D.anchorNode!==b.node||D.anchorOffset!==b.offset||D.focusNode!==p.node||D.focusOffset!==p.offset)){var E=q.createRange();E.setStart(b.node,b.offset),D.removeAllRanges(),I>Dt?(D.addRange(E),D.extend(p.node,p.offset)):(E.setEnd(p.node,p.offset),D.addRange(E))}}}}for(q=[],D=d;D=D.parentNode;)D.nodeType===1&&q.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<q.length;d++){var N=q[d];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}hc=!!Pf,tr=Pf=null}finally{Et=a,Q.p=n,M.T=l}}t.current=e,Jt=2}}function Zy(){if(Jt===2){Jt=0;var t=en,e=Da,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var n=Q.p;Q.p=2;var a=Et;Et|=4;try{py(t,e.alternate,e)}finally{Et=a,Q.p=n,M.T=l}}Jt=3}}function Vy(){if(Jt===4||Jt===3){Jt=0,dg();var t=en,e=Da,l=Ml,n=Uy;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,Da=en=null,Ky(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(tn=null),us(l),e=e.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(Wa,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=M.T,a=Q.p,Q.p=2,M.T=null;try{for(var i=t.onRecoverableError,r=0;r<n.length;r++){var d=n[r];i(d.value,{componentStack:d.stack})}}finally{M.T=e,Q.p=a}}(Ml&3)!==0&&ec(),sl(t),a=t.pendingLanes,(l&261930)!==0&&(a&42)!==0?t===Lf?Uu++:(Uu=0,Lf=t):Uu=0,Nu(0)}}function Ky(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,du(e)))}function ec(){return Xy(),Zy(),Vy(),Jy()}function Jy(){if(Jt!==5)return!1;var t=en,e=wf;wf=0;var l=us(Ml),n=M.T,a=Q.p;try{Q.p=32>l?32:l,M.T=null,l=Qf,Qf=null;var i=en,r=Ml;if(Jt=0,Da=en=null,Ml=0,(Et&6)!==0)throw Error(s(331));var d=Et;if(Et|=4,Dy(i.current),Ry(i,i.current,r,l),Et=d,Nu(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(Wa,i)}catch{}return!0}finally{Q.p=a,M.T=n,Ky(t,e)}}function Fy(t,e,l){e=Le(l,e),e=pf(t.stateNode,e,2),t=Fl(t,e,2),t!==null&&(Ia(t,2),sl(t))}function Rt(t,e,l){if(t.tag===3)Fy(t,t,l);else for(;e!==null;){if(e.tag===3){Fy(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(tn===null||!tn.has(n))){t=Le(l,t),l=kh(2),n=Fl(e,l,2),n!==null&&(Wh(l,n,e,t),Ia(n,2),sl(n));break}}e=e.return}}function Xf(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new wp;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(Hf=!0,a.add(l),t=Xp.bind(null,t,e,l),e.then(t,t))}function Xp(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Mt===t&&(ot&l)===l&&(Bt===4||Bt===3&&(ot&62914560)===ot&&300>Ae()-ki?(Et&2)===0&&Ma(t,0):Bf|=l,_a===ot&&(_a=0)),sl(t)}function ky(t,e){e===0&&(e=Xo()),t=Mn(t,e),t!==null&&(Ia(t,e),sl(t))}function Zp(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),ky(t,l)}function Vp(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(e),ky(t,l)}function Kp(t,e){return es(t,e)}var lc=null,Ua=null,Zf=!1,nc=!1,Vf=!1,nn=0;function sl(t){t!==Ua&&t.next===null&&(Ua===null?lc=Ua=t:Ua=Ua.next=t),nc=!0,Zf||(Zf=!0,Fp())}function Nu(t,e){if(!Vf&&nc){Vf=!0;do for(var l=!1,n=lc;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var i=0;else{var r=n.suspendedLanes,d=n.pingedLanes;i=(1<<31-Re(42|t)+1)-1,i&=a&~(r&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Py(n,i))}else i=ot,i=ci(n,n===Mt?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(i&3)===0||$a(n,i)||(l=!0,Py(n,i));n=n.next}while(l);Vf=!1}}function Jp(){Wy()}function Wy(){nc=Zf=!1;var t=0;nn!==0&&a1()&&(t=nn);for(var e=Ae(),l=null,n=lc;n!==null;){var a=n.next,i=$y(n,e);i===0?(n.next=null,l===null?lc=a:l.next=a,a===null&&(Ua=l)):(l=n,(t!==0||(i&3)!==0)&&(nc=!0)),n=a}Jt!==0&&Jt!==5||Nu(t),nn!==0&&(nn=0)}function $y(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var r=31-Re(i),d=1<<r,m=a[r];m===-1?((d&l)===0||(d&n)!==0)&&(a[r]=bg(d,e)):m<=e&&(t.expiredLanes|=d),i&=~d}if(e=Mt,l=ot,l=ci(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(Ot===2||Ot===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&ls(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||$a(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&ls(n),us(l)){case 2:case 8:l=Yo;break;case 32:l=ni;break;case 268435456:l=Go;break;default:l=ni}return n=Iy.bind(null,t),l=es(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&ls(n),t.callbackPriority=2,t.callbackNode=null,2}function Iy(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ec()&&t.callbackNode!==l)return null;var n=ot;return n=ci(t,t===Mt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(xy(t,n,e),$y(t,Ae()),t.callbackNode!=null&&t.callbackNode===l?Iy.bind(null,t):null)}function Py(t,e){if(ec())return null;xy(t,e,!0)}function Fp(){i1(function(){(Et&6)!==0?es(Lo,Jp):Wy()})}function Kf(){if(nn===0){var t=va;t===0&&(t=ai,ai<<=1,(ai&261888)===0&&(ai=256)),nn=t}return nn}function tm(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:oi(""+t)}function em(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function kp(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var i=tm((a[me]||null).action),r=n.submitter;r&&(e=(e=r[me]||null)?tm(e.formAction):r.getAttribute("formAction"),e!==null&&(i=e,r=null));var d=new mi("action","action",null,n,a);t.push({event:d,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(nn!==0){var m=r?em(a,r):new FormData(a);df(l,{pending:!0,data:m,method:a.method,action:i},null,m)}}else typeof i=="function"&&(d.preventDefault(),m=r?em(a,r):new FormData(a),df(l,{pending:!0,data:m,method:a.method,action:i},i,m))},currentTarget:a}]})}}for(var Jf=0;Jf<Ds.length;Jf++){var Ff=Ds[Jf],Wp=Ff.toLowerCase(),$p=Ff[0].toUpperCase()+Ff.slice(1);Ie(Wp,"on"+$p)}Ie(Nd,"onAnimationEnd"),Ie(xd,"onAnimationIteration"),Ie(qd,"onAnimationStart"),Ie("dblclick","onDoubleClick"),Ie("focusin","onFocus"),Ie("focusout","onBlur"),Ie(hp,"onTransitionRun"),Ie(yp,"onTransitionStart"),Ie(mp,"onTransitionCancel"),Ie(Hd,"onTransitionEnd"),la("onMouseEnter",["mouseout","mouseover"]),la("onMouseLeave",["mouseout","mouseover"]),la("onPointerEnter",["pointerout","pointerover"]),la("onPointerLeave",["pointerout","pointerover"]),Rn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Rn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Rn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Rn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Rn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Rn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="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(" "),Ip=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xu));function lm(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var i=void 0;if(e)for(var r=n.length-1;0<=r;r--){var d=n[r],m=d.instance,A=d.currentTarget;if(d=d.listener,m!==i&&a.isPropagationStopped())break t;i=d,a.currentTarget=A;try{i(a)}catch(U){pi(U)}a.currentTarget=null,i=m}else for(r=0;r<n.length;r++){if(d=n[r],m=d.instance,A=d.currentTarget,d=d.listener,m!==i&&a.isPropagationStopped())break t;i=d,a.currentTarget=A;try{i(a)}catch(U){pi(U)}a.currentTarget=null,i=m}}}}function st(t,e){var l=e[is];l===void 0&&(l=e[is]=new Set);var n=t+"__bubble";l.has(n)||(nm(e,t,2,!1),l.add(n))}function kf(t,e,l){var n=0;e&&(n|=4),nm(l,t,n,e)}var ac="_reactListening"+Math.random().toString(36).slice(2);function Wf(t){if(!t[ac]){t[ac]=!0,Wo.forEach(function(l){l!=="selectionchange"&&(Ip.has(l)||kf(l,!1,t),kf(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ac]||(e[ac]=!0,kf("selectionchange",!1,e))}}function nm(t,e,l,n){switch(Nm(e)){case 2:var a=z1;break;case 8:a=_1;break;default:a=or}l=a.bind(null,e,l,t),a=void 0,!ms||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function $f(t,e,l,n,a){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var r=n.tag;if(r===3||r===4){var d=n.stateNode.containerInfo;if(d===a)break;if(r===4)for(r=n.return;r!==null;){var m=r.tag;if((m===3||m===4)&&r.stateNode.containerInfo===a)return;r=r.return}for(;d!==null;){if(r=Pn(d),r===null)return;if(m=r.tag,m===5||m===6||m===26||m===27){n=i=r;continue t}d=d.parentNode}}n=n.return}sd(function(){var A=i,U=hs(l),q=[];t:{var O=Bd.get(t);if(O!==void 0){var D=mi,X=t;switch(t){case"keypress":if(hi(l)===0)break t;case"keydown":case"keyup":D=Vg;break;case"focusin":X="focus",D=Ss;break;case"focusout":X="blur",D=Ss;break;case"beforeblur":case"afterblur":D=Ss;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=Fg;break;case Nd:case xd:case qd:D=Bg;break;case Hd:D=Wg;break;case"scroll":case"scrollend":D=Ug;break;case"wheel":D=Ig;break;case"copy":case"cut":case"paste":D=wg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=hd;break;case"toggle":case"beforetoggle":D=tp}var I=(e&4)!==0,Dt=!I&&(t==="scroll"||t==="scrollend"),b=I?O!==null?O+"Capture":null:O;I=[];for(var p=A,E;p!==null;){var N=p;if(E=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||E===null||b===null||(N=eu(p,b),N!=null&&I.push(qu(p,N,E))),Dt)break;p=p.return}0<I.length&&(O=new D(O,X,null,l,U),q.push({event:O,listeners:I}))}}if((e&7)===0){t:{if(O=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",O&&l!==ds&&(X=l.relatedTarget||l.fromElement)&&(Pn(X)||X[In]))break t;if((D||O)&&(O=U.window===U?U:(O=U.ownerDocument)?O.defaultView||O.parentWindow:window,D?(X=l.relatedTarget||l.toElement,D=A,X=X?Pn(X):null,X!==null&&(Dt=h(X),I=X.tag,X!==Dt||I!==5&&I!==27&&I!==6)&&(X=null)):(D=null,X=A),D!==X)){if(I=od,N="onMouseLeave",b="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(I=hd,N="onPointerLeave",b="onPointerEnter",p="pointer"),Dt=D==null?O:tu(D),E=X==null?O:tu(X),O=new I(N,p+"leave",D,l,U),O.target=Dt,O.relatedTarget=E,N=null,Pn(U)===A&&(I=new I(b,p+"enter",X,l,U),I.target=E,I.relatedTarget=Dt,N=I),Dt=N,D&&X)e:{for(I=Pp,b=D,p=X,E=0,N=b;N;N=I(N))E++;N=0;for(var $=p;$;$=I($))N++;for(;0<E-N;)b=I(b),E--;for(;0<N-E;)p=I(p),N--;for(;E--;){if(b===p||p!==null&&b===p.alternate){I=b;break e}b=I(b),p=I(p)}I=null}else I=null;D!==null&&am(q,O,D,I,!1),X!==null&&Dt!==null&&am(q,Dt,X,I,!0)}}t:{if(O=A?tu(A):window,D=O.nodeName&&O.nodeName.toLowerCase(),D==="select"||D==="input"&&O.type==="file")var gt=Ed;else if(Sd(O))if(Td)gt=rp;else{gt=sp;var V=cp}else D=O.nodeName,!D||D.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?A&&os(A.elementType)&&(gt=Ed):gt=fp;if(gt&&(gt=gt(t,A))){bd(q,gt,l,U);break t}V&&V(t,O,A),t==="focusout"&&A&&O.type==="number"&&A.memoizedProps.value!=null&&rs(O,"number",O.value)}switch(V=A?tu(A):window,t){case"focusin":(Sd(V)||V.contentEditable==="true")&&(sa=V,Rs=A,fu=null);break;case"focusout":fu=Rs=sa=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,Cd(q,l,U);break;case"selectionchange":if(dp)break;case"keydown":case"keyup":Cd(q,l,U)}var nt;if(Es)t:{switch(t){case"compositionstart":var dt="onCompositionStart";break t;case"compositionend":dt="onCompositionEnd";break t;case"compositionupdate":dt="onCompositionUpdate";break t}dt=void 0}else ca?gd(t,l)&&(dt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(dt="onCompositionStart");dt&&(yd&&l.locale!=="ko"&&(ca||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&ca&&(nt=fd()):(Yl=U,vs="value"in Yl?Yl.value:Yl.textContent,ca=!0)),V=uc(A,dt),0<V.length&&(dt=new dd(dt,t,null,l,U),q.push({event:dt,listeners:V}),nt?dt.data=nt:(nt=pd(l),nt!==null&&(dt.data=nt)))),(nt=lp?np(t,l):ap(t,l))&&(dt=uc(A,"onBeforeInput"),0<dt.length&&(V=new dd("onBeforeInput","beforeinput",null,l,U),q.push({event:V,listeners:dt}),V.data=nt)),kp(q,t,A,l,U)}lm(q,e)})}function qu(t,e,l){return{instance:t,listener:e,currentTarget:l}}function uc(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=eu(t,l),a!=null&&n.unshift(qu(t,a,i)),a=eu(t,e),a!=null&&n.push(qu(t,a,i))),t.tag===3)return n;t=t.return}return[]}function Pp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function am(t,e,l,n,a){for(var i=e._reactName,r=[];l!==null&&l!==n;){var d=l,m=d.alternate,A=d.stateNode;if(d=d.tag,m!==null&&m===n)break;d!==5&&d!==26&&d!==27||A===null||(m=A,a?(A=eu(l,i),A!=null&&r.unshift(qu(l,A,m))):a||(A=eu(l,i),A!=null&&r.push(qu(l,A,m)))),l=l.return}r.length!==0&&t.push({event:e,listeners:r})}var t1=/\r\n?/g,e1=/\u0000|\uFFFD/g;function um(t){return(typeof t=="string"?t:""+t).replace(t1,`
41
- `).replace(e1,"")}function im(t,e){return e=um(e),um(t)===e}function _t(t,e,l,n,a,i){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||aa(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&aa(t,""+n);break;case"className":fi(t,"class",n);break;case"tabIndex":fi(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":fi(t,l,n);break;case"style":id(t,n,i);break;case"data":if(e!=="object"){fi(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=oi(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"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 i=="function"&&(l==="formAction"?(e!=="input"&&_t(t,e,"name",a.name,a,null),_t(t,e,"formEncType",a.formEncType,a,null),_t(t,e,"formMethod",a.formMethod,a,null),_t(t,e,"formTarget",a.formTarget,a,null)):(_t(t,e,"encType",a.encType,a,null),_t(t,e,"method",a.method,a,null),_t(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=oi(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=yl);break;case"onScroll":n!=null&&st("scroll",t);break;case"onScrollEnd":n!=null&&st("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=oi(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":st("beforetoggle",t),st("toggle",t),si(t,"popover",n);break;case"xlinkActuate":hl(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":hl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":hl(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":hl(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":hl(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":hl(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":hl(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":hl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":hl(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":si(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Mg.get(l)||l,si(t,l,n))}}function If(t,e,l,n,a,i){switch(l){case"style":id(t,n,i);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"children":typeof n=="string"?aa(t,n):(typeof n=="number"||typeof n=="bigint")&&aa(t,""+n);break;case"onScroll":n!=null&&st("scroll",t);break;case"onScrollEnd":n!=null&&st("scrollend",t);break;case"onClick":n!=null&&(t.onclick=yl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$o.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),i=t[me]||null,i=i!=null?i[l]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof n=="function")){typeof i!="function"&&i!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):si(t,l,n)}}}function ae(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",t),st("load",t);var n=!1,a=!1,i;for(i in l)if(l.hasOwnProperty(i)){var r=l[i];if(r!=null)switch(i){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:_t(t,e,i,r,l,null)}}a&&_t(t,e,"srcSet",l.srcSet,l,null),n&&_t(t,e,"src",l.src,l,null);return;case"input":st("invalid",t);var d=i=r=a=null,m=null,A=null;for(n in l)if(l.hasOwnProperty(n)){var U=l[n];if(U!=null)switch(n){case"name":a=U;break;case"type":r=U;break;case"checked":m=U;break;case"defaultChecked":A=U;break;case"value":i=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,e));break;default:_t(t,e,n,U,l,null)}}ld(t,i,d,m,A,r,a,!1);return;case"select":st("invalid",t),n=r=i=null;for(a in l)if(l.hasOwnProperty(a)&&(d=l[a],d!=null))switch(a){case"value":i=d;break;case"defaultValue":r=d;break;case"multiple":n=d;default:_t(t,e,a,d,l,null)}e=i,l=r,t.multiple=!!n,e!=null?na(t,!!n,e,!1):l!=null&&na(t,!!n,l,!0);return;case"textarea":st("invalid",t),i=a=n=null;for(r in l)if(l.hasOwnProperty(r)&&(d=l[r],d!=null))switch(r){case"value":n=d;break;case"defaultValue":a=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:_t(t,e,r,d,l,null)}ad(t,n,a,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(n=l[m],n!=null))switch(m){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:_t(t,e,m,n,l,null)}return;case"dialog":st("beforetoggle",t),st("toggle",t),st("cancel",t),st("close",t);break;case"iframe":case"object":st("load",t);break;case"video":case"audio":for(n=0;n<xu.length;n++)st(xu[n],t);break;case"image":st("error",t),st("load",t);break;case"details":st("toggle",t);break;case"embed":case"source":case"link":st("error",t),st("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in l)if(l.hasOwnProperty(A)&&(n=l[A],n!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:_t(t,e,A,n,l,null)}return;default:if(os(e)){for(U in l)l.hasOwnProperty(U)&&(n=l[U],n!==void 0&&If(t,e,U,n,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(n=l[d],n!=null&&_t(t,e,d,n,l,null))}function l1(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,r=null,d=null,m=null,A=null,U=null;for(D in l){var q=l[D];if(l.hasOwnProperty(D)&&q!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":m=q;default:n.hasOwnProperty(D)||_t(t,e,D,null,n,q)}}for(var O in n){var D=n[O];if(q=l[O],n.hasOwnProperty(O)&&(D!=null||q!=null))switch(O){case"type":i=D;break;case"name":a=D;break;case"checked":A=D;break;case"defaultChecked":U=D;break;case"value":r=D;break;case"defaultValue":d=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,e));break;default:D!==q&&_t(t,e,O,D,n,q)}}fs(t,r,d,m,A,U,i,a);return;case"select":D=r=d=O=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":D=m;default:n.hasOwnProperty(i)||_t(t,e,i,null,n,m)}for(a in n)if(i=n[a],m=l[a],n.hasOwnProperty(a)&&(i!=null||m!=null))switch(a){case"value":O=i;break;case"defaultValue":d=i;break;case"multiple":r=i;default:i!==m&&_t(t,e,a,i,n,m)}e=d,l=r,n=D,O!=null?na(t,!!l,O,!1):!!n!=!!l&&(e!=null?na(t,!!l,e,!0):na(t,!!l,l?[]:"",!1));return;case"textarea":D=O=null;for(d in l)if(a=l[d],l.hasOwnProperty(d)&&a!=null&&!n.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:_t(t,e,d,null,n,a)}for(r in n)if(a=n[r],i=l[r],n.hasOwnProperty(r)&&(a!=null||i!=null))switch(r){case"value":O=a;break;case"defaultValue":D=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==i&&_t(t,e,r,a,n,i)}nd(t,O,D);return;case"option":for(var X in l)if(O=l[X],l.hasOwnProperty(X)&&O!=null&&!n.hasOwnProperty(X))switch(X){case"selected":t.selected=!1;break;default:_t(t,e,X,null,n,O)}for(m in n)if(O=n[m],D=l[m],n.hasOwnProperty(m)&&O!==D&&(O!=null||D!=null))switch(m){case"selected":t.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:_t(t,e,m,O,n,D)}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 I in l)O=l[I],l.hasOwnProperty(I)&&O!=null&&!n.hasOwnProperty(I)&&_t(t,e,I,null,n,O);for(A in n)if(O=n[A],D=l[A],n.hasOwnProperty(A)&&O!==D&&(O!=null||D!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,e));break;default:_t(t,e,A,O,n,D)}return;default:if(os(e)){for(var Dt in l)O=l[Dt],l.hasOwnProperty(Dt)&&O!==void 0&&!n.hasOwnProperty(Dt)&&If(t,e,Dt,void 0,n,O);for(U in n)O=n[U],D=l[U],!n.hasOwnProperty(U)||O===D||O===void 0&&D===void 0||If(t,e,U,O,n,D);return}}for(var b in l)O=l[b],l.hasOwnProperty(b)&&O!=null&&!n.hasOwnProperty(b)&&_t(t,e,b,null,n,O);for(q in n)O=n[q],D=l[q],!n.hasOwnProperty(q)||O===D||O==null&&D==null||_t(t,e,q,O,n,D)}function cm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function n1(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],i=a.transferSize,r=a.initiatorType,d=a.duration;if(i&&d&&cm(r)){for(r=0,d=a.responseEnd,n+=1;n<l.length;n++){var m=l[n],A=m.startTime;if(A>d)break;var U=m.transferSize,q=m.initiatorType;U&&cm(q)&&(m=m.responseEnd,r+=U*(m<d?1:(d-A)/(m-A)))}if(--n,e+=8*(i+r)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Pf=null,tr=null;function ic(t){return t.nodeType===9?t:t.ownerDocument}function sm(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function er(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var lr=null;function a1(){var t=window.event;return t&&t.type==="popstate"?t===lr?!1:(lr=t,!0):(lr=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,u1=typeof clearTimeout=="function"?clearTimeout:void 0,om=typeof Promise=="function"?Promise:void 0,i1=typeof queueMicrotask=="function"?queueMicrotask:typeof om<"u"?function(t){return om.resolve(null).then(t).catch(c1)}:rm;function c1(t){setTimeout(function(){throw t})}function an(t){return t==="head"}function dm(t,e){var l=e,n=0;do{var a=l.nextSibling;if(t.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(a),Ha(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Hu(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Hu(l);for(var i=l.firstChild;i;){var r=i.nextSibling,d=i.nodeName;i[Pa]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=r}}else l==="body"&&Hu(t.ownerDocument.body);l=a}while(l);Ha(e)}function hm(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function nr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":nr(l),cs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function s1(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Pa])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=Ve(t.nextSibling),t===null)break}return null}function f1(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ve(t.nextSibling),t===null))return null;return t}function ym(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ve(t.nextSibling),t===null))return null;return t}function ar(t){return t.data==="$?"||t.data==="$~"}function ur(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function r1(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ve(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var ir=null;function mm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ve(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function vm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function gm(t,e,l){switch(e=ic(l),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Hu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);cs(t)}var Ke=new Map,pm=new Set;function cc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Cl=Q.d;Q.d={f:o1,r:d1,D:h1,C:y1,L:m1,m:v1,X:p1,S:g1,M:S1};function o1(){var t=Cl.f(),e=Ii();return t||e}function d1(t){var e=ta(t);e!==null&&e.tag===5&&e.type==="form"?Hh(e):Cl.r(t)}var Na=typeof document>"u"?null:document;function Sm(t,e,l){var n=Na;if(n&&typeof e=="string"&&e){var a=we(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),pm.has(a)||(pm.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),ae(e,"link",t),kt(e),n.head.appendChild(e)))}}function h1(t){Cl.D(t),Sm("dns-prefetch",t,null)}function y1(t,e){Cl.C(t,e),Sm("preconnect",t,e)}function m1(t,e,l){Cl.L(t,e,l);var n=Na;if(n&&t&&e){var a='link[rel="preload"][as="'+we(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+we(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+we(l.imageSizes)+'"]')):a+='[href="'+we(t)+'"]';var i=a;switch(e){case"style":i=xa(t);break;case"script":i=qa(t)}Ke.has(i)||(t=C({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),Ke.set(i,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(Bu(i))||e==="script"&&n.querySelector(ju(i))||(e=n.createElement("link"),ae(e,"link",t),kt(e),n.head.appendChild(e)))}}function v1(t,e){Cl.m(t,e);var l=Na;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+we(n)+'"][href="'+we(t)+'"]',i=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=qa(t)}if(!Ke.has(i)&&(t=C({rel:"modulepreload",href:t},e),Ke.set(i,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ju(i)))return}n=l.createElement("link"),ae(n,"link",t),kt(n),l.head.appendChild(n)}}}function g1(t,e,l){Cl.S(t,e,l);var n=Na;if(n&&t){var a=ea(n).hoistableStyles,i=xa(t);e=e||"default";var r=a.get(i);if(!r){var d={loading:0,preload:null};if(r=n.querySelector(Bu(i)))d.loading=5;else{t=C({rel:"stylesheet",href:t,"data-precedence":e},l),(l=Ke.get(i))&&cr(t,l);var m=r=n.createElement("link");kt(m),ae(m,"link",t),m._p=new Promise(function(A,U){m.onload=A,m.onerror=U}),m.addEventListener("load",function(){d.loading|=1}),m.addEventListener("error",function(){d.loading|=2}),d.loading|=4,sc(r,e,n)}r={type:"stylesheet",instance:r,count:1,state:d},a.set(i,r)}}}function p1(t,e){Cl.X(t,e);var l=Na;if(l&&t){var n=ea(l).hoistableScripts,a=qa(t),i=n.get(a);i||(i=l.querySelector(ju(a)),i||(t=C({src:t,async:!0},e),(e=Ke.get(a))&&sr(t,e),i=l.createElement("script"),kt(i),ae(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function S1(t,e){Cl.M(t,e);var l=Na;if(l&&t){var n=ea(l).hoistableScripts,a=qa(t),i=n.get(a);i||(i=l.querySelector(ju(a)),i||(t=C({src:t,async:!0,type:"module"},e),(e=Ke.get(a))&&sr(t,e),i=l.createElement("script"),kt(i),ae(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},n.set(a,i))}}function bm(t,e,l,n){var a=(a=it.current)?cc(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=xa(l.href),l=ea(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=xa(l.href);var i=ea(a).hoistableStyles,r=i.get(t);if(r||(a=a.ownerDocument||a,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,r),(i=a.querySelector(Bu(t)))&&!i._p&&(r.instance=i,r.state.loading=5),Ke.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Ke.set(t,l),i||b1(a,t,l,r.state))),e&&n===null)throw Error(s(528,""));return r}if(e&&n!==null)throw Error(s(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=qa(l),l=ea(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function xa(t){return'href="'+we(t)+'"'}function Bu(t){return'link[rel="stylesheet"]['+t+"]"}function Em(t){return C({},t,{"data-precedence":t.precedence,precedence:null})}function b1(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),ae(e,"link",l),kt(e),t.head.appendChild(e))}function qa(t){return'[src="'+we(t)+'"]'}function ju(t){return"script[async]"+t}function Tm(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+we(l.href)+'"]');if(n)return e.instance=n,kt(n),n;var a=C({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),kt(n),ae(n,"style",a),sc(n,l.precedence,t),e.instance=n;case"stylesheet":a=xa(l.href);var i=t.querySelector(Bu(a));if(i)return e.state.loading|=4,e.instance=i,kt(i),i;n=Em(l),(a=Ke.get(a))&&cr(n,a),i=(t.ownerDocument||t).createElement("link"),kt(i);var r=i;return r._p=new Promise(function(d,m){r.onload=d,r.onerror=m}),ae(i,"link",n),e.state.loading|=4,sc(i,l.precedence,t),e.instance=i;case"script":return i=qa(l.src),(a=t.querySelector(ju(i)))?(e.instance=a,kt(a),a):(n=l,(a=Ke.get(i))&&(n=C({},l),sr(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),kt(a),ae(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,sc(n,l.precedence,t));return e.instance}function sc(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,i=a,r=0;r<n.length;r++){var d=n[r];if(d.dataset.precedence===e)i=d;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function cr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function sr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var fc=null;function Am(t,e,l){if(fc===null){var n=new Map,a=fc=new Map;a.set(l,n)}else a=fc,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var i=l[a];if(!(i[Pa]||i[te]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var r=i.getAttribute(e)||"";r=t+r;var d=n.get(r);d?d.push(i):n.set(r,[i])}}return n}function Om(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function E1(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Rm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function T1(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=xa(n.href),i=e.querySelector(Bu(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=rc.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,kt(i);return}i=e.ownerDocument||e,n=Em(n),(a=Ke.get(a))&&cr(n,a),i=i.createElement("link"),kt(i);var r=i;r._p=new Promise(function(d,m){r.onload=d,r.onerror=m}),ae(i,"link",n),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=rc.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var fr=0;function A1(t,e){return t.stylesheets&&t.count===0&&dc(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&dc(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&fr===0&&(fr=62500*n1());var a=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&dc(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>fr?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)dc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var oc=null;function dc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,oc=new Map,e.forEach(O1,t),oc=null,rc.call(t))}function O1(t,e){if(!(e.state.loading&4)){var l=oc.get(t);if(l)var n=l.get(null);else{l=new Map,oc.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var r=a[i];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),n=r)}n&&l.set(null,n)}a=e.instance,r=a.getAttribute("data-precedence"),i=l.get(r)||n,i===n&&l.set(null,a),l.set(r,a),this.count++,n=rc.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var wu={$$typeof:K,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function R1(t,e,l,n,a,i,r,d,m){this.tag=1,this.containerInfo=t,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=ns(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ns(0),this.hiddenUpdates=ns(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function zm(t,e,l,n,a,i,r,d,m,A,U,q){return t=new R1(t,e,l,r,m,A,U,q,d),e=1,i===!0&&(e|=24),i=_e(3,null,null,e),t.current=i,i.stateNode=t,e=Ys(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:n,isDehydrated:l,cache:e},Vs(i),t}function _m(t){return t?(t=oa,t):oa}function Dm(t,e,l,n,a,i){a=_m(a),n.context===null?n.context=a:n.pendingContext=a,n=Jl(e),n.payload={element:l},i=i===void 0?null:i,i!==null&&(n.callback=i),l=Fl(t,n,e),l!==null&&(Ee(l,t,e),vu(l,t,e))}function Mm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function rr(t,e){Mm(t,e),(t=t.alternate)&&Mm(t,e)}function Cm(t){if(t.tag===13||t.tag===31){var e=Mn(t,67108864);e!==null&&Ee(e,t,67108864),rr(t,67108864)}}function Um(t){if(t.tag===13||t.tag===31){var e=Ne();e=as(e);var l=Mn(t,e);l!==null&&Ee(l,t,e),rr(t,e)}}var hc=!0;function z1(t,e,l,n){var a=M.T;M.T=null;var i=Q.p;try{Q.p=2,or(t,e,l,n)}finally{Q.p=i,M.T=a}}function _1(t,e,l,n){var a=M.T;M.T=null;var i=Q.p;try{Q.p=8,or(t,e,l,n)}finally{Q.p=i,M.T=a}}function or(t,e,l,n){if(hc){var a=dr(n);if(a===null)$f(t,e,n,yc,l),xm(t,n);else if(M1(a,t,e,l,n))n.stopPropagation();else if(xm(t,n),e&4&&-1<D1.indexOf(t)){for(;a!==null;){var i=ta(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var r=On(i.pendingLanes);if(r!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var m=1<<31-Re(r);d.entanglements[1]|=m,r&=~m}sl(i),(Et&6)===0&&(Wi=Ae()+500,Nu(0))}}break;case 31:case 13:d=Mn(i,2),d!==null&&Ee(d,i,2),Ii(),rr(i,2)}if(i=dr(n),i===null&&$f(t,e,n,yc,l),i===a)break;a=i}a!==null&&n.stopPropagation()}else $f(t,e,n,null,l)}}function dr(t){return t=hs(t),hr(t)}var yc=null;function hr(t){if(yc=null,t=Pn(t),t!==null){var e=h(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=S(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return yc=t,null}function Nm(t){switch(t){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(hg()){case Lo:return 2;case Yo:return 8;case ni:case yg:return 32;case Go:return 268435456;default:return 32}default:return 32}}var yr=!1,un=null,cn=null,sn=null,Qu=new Map,Lu=new Map,fn=[],D1="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 xm(t,e){switch(t){case"focusin":case"focusout":un=null;break;case"dragenter":case"dragleave":cn=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":Qu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lu.delete(e.pointerId)}}function Yu(t,e,l,n,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:i,targetContainers:[a]},e!==null&&(e=ta(e),e!==null&&Cm(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function M1(t,e,l,n,a){switch(e){case"focusin":return un=Yu(un,t,e,l,n,a),!0;case"dragenter":return cn=Yu(cn,t,e,l,n,a),!0;case"mouseover":return sn=Yu(sn,t,e,l,n,a),!0;case"pointerover":var i=a.pointerId;return Qu.set(i,Yu(Qu.get(i)||null,t,e,l,n,a)),!0;case"gotpointercapture":return i=a.pointerId,Lu.set(i,Yu(Lu.get(i)||null,t,e,l,n,a)),!0}return!1}function qm(t){var e=Pn(t.target);if(e!==null){var l=h(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,Fo(t.priority,function(){Um(l)});return}}else if(e===31){if(e=S(l),e!==null){t.blockedOn=e,Fo(t.priority,function(){Um(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function mc(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=dr(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);ds=n,l.target.dispatchEvent(n),ds=null}else return e=ta(l),e!==null&&Cm(e),t.blockedOn=l,!1;e.shift()}return!0}function Hm(t,e,l){mc(t)&&l.delete(e)}function C1(){yr=!1,un!==null&&mc(un)&&(un=null),cn!==null&&mc(cn)&&(cn=null),sn!==null&&mc(sn)&&(sn=null),Qu.forEach(Hm),Lu.forEach(Hm)}function vc(t,e){t.blockedOn===e&&(t.blockedOn=null,yr||(yr=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,C1)))}var gc=null;function Bm(t){gc!==t&&(gc=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){gc===t&&(gc=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(hr(n||l)===null)continue;break}var i=ta(l);i!==null&&(t.splice(e,3),e-=3,df(i,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Ha(t){function e(m){return vc(m,t)}un!==null&&vc(un,t),cn!==null&&vc(cn,t),sn!==null&&vc(sn,t),Qu.forEach(e),Lu.forEach(e);for(var l=0;l<fn.length;l++){var n=fn[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<fn.length&&(l=fn[0],l.blockedOn===null);)qm(l),l.blockedOn===null&&fn.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],i=l[n+1],r=a[me]||null;if(typeof i=="function")r||Bm(l);else if(r){var d=null;if(i&&i.hasAttribute("formAction")){if(a=i,r=i[me]||null)d=r.formAction;else if(hr(a)!==null)continue}else d=r.action;typeof d=="function"?l[n+1]=d:(l.splice(n,3),n-=3),Bm(l)}}}function jm(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(r){return a=r})},focusReset:"manual",scroll:"manual"})}function e(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null)}}}function mr(t){this._internalRoot=t}pc.prototype.render=mr.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var l=e.current,n=Ne();Dm(l,n,t,e,null,null)},pc.prototype.unmount=mr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Dm(t.current,2,null,t,null,null),Ii(),e[In]=null}};function pc(t){this._internalRoot=t}pc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Jo();t={blockedOn:null,target:t,priority:e};for(var l=0;l<fn.length&&e!==0&&e<fn[l].priority;l++);fn.splice(l,0,t),l===0&&qm(t)}};var wm=u.version;if(wm!=="19.2.4")throw Error(s(527,wm,"19.2.4"));Q.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=v(e),t=t!==null?R(t):null,t=t===null?null:t.stateNode,t};var U1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sc.isDisabled&&Sc.supportsFiber)try{Wa=Sc.inject(U1),Oe=Sc}catch{}}return Ba.createRoot=function(t,e){if(!o(t))throw Error(s(299));var l=!1,n="",a=Vh,i=Kh,r=Jh;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(r=e.onRecoverableError)),e=zm(t,1,!1,null,null,l,n,null,a,i,r,jm),t[In]=e.current,Wf(t),new mr(e)},Ba.hydrateRoot=function(t,e,l){if(!o(t))throw Error(s(299));var n=!1,a="",i=Vh,r=Kh,d=Jh,m=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=zm(t,1,!0,e,l??null,n,a,m,i,r,d,jm),e.context=_m(null),l=e.current,n=Ne(),n=as(n),a=Jl(n),a.callback=null,Fl(l,a,n),l=n,e.current.lanes=l,Ia(e,l),sl(e),t[In]=e.current,Wf(t),new pc(e)},Ba.version="19.2.4",Ba}var Or;function Jm(){if(Or)return Oc.exports;Or=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(u){console.error(u)}}return c(),Oc.exports=Km(),Oc.exports}var Fm=Jm(),Dc={exports:{}},ja={};/**
35
+ `+bt+t+Kt}var Un=!1;function gn(t,i){if(!t||Un)return"";Un=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(i){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(re){var ee=re}Reflect.construct(t,[],oe)}else{try{oe.call()}catch(re){ee=re}t.call(oe.prototype)}}else{try{throw Error()}catch(re){ee=re}(oe=t())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(re){if(re&&ee&&typeof re.stack=="string")return[re.stack,ee.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=o.DetermineComponentFrameRoot(),C=g[0],B=g[1];if(C&&B){var H=C.split(`
36
+ `),Z=B.split(`
37
+ `);for(h=o=0;o<H.length&&!H[o].includes("DetermineComponentFrameRoot");)o++;for(;h<Z.length&&!Z[h].includes("DetermineComponentFrameRoot");)h++;if(o===H.length||h===Z.length)for(o=H.length-1,h=Z.length-1;1<=o&&0<=h&&H[o]!==Z[h];)h--;for(;1<=o&&0<=h;o--,h--)if(H[o]!==Z[h]){if(o!==1||h!==1)do if(o--,h--,0>h||H[o]!==Z[h]){var le=`
38
+ `+H[o].replace(" at new "," at ");return t.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",t.displayName)),le}while(1<=o&&0<=h);break}}}finally{Un=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ct(l):""}function yn(t,i){switch(t.tag){case 26:case 27:case 5:return ct(t.type);case 16:return ct("Lazy");case 13:return t.child!==i&&i!==null?ct("Suspense Fallback"):ct("Suspense");case 19:return ct("SuspenseList");case 0:case 15:return gn(t.type,!1);case 11:return gn(t.type.render,!1);case 1:return gn(t.type,!0);case 31:return ct("Activity");default:return""}}function jn(t){try{var i="",l=null;do i+=yn(t,l),l=t,t=t.return;while(t);return i}catch(o){return`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}}var Ft=Object.prototype.hasOwnProperty,Dn=e.unstable_scheduleCallback,Pt=e.unstable_cancelCallback,tt=e.unstable_shouldYield,Vt=e.unstable_requestPaint,At=e.unstable_now,Oi=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,he=e.unstable_UserBlockingPriority,we=e.unstable_NormalPriority,Re=e.unstable_LowPriority,Fe=e.unstable_IdlePriority,Et=e.log,_t=e.unstable_setDisableYieldValue,Yt=null,gt=null;function Mt(t){if(typeof Et=="function"&&_t(t),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(Yt,t)}catch{}}var Ke=Math.clz32?Math.clz32:er,Jn=Math.log,$t=Math.LN2;function er(t){return t>>>=0,t===0?32:31-(Jn(t)/$t|0)|0}var Gr=256,zi=262144,zr=4194304;function tr(t){var i=t&42;if(i!==0)return i;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function De(t,i,l){var o=t.pendingLanes;if(o===0)return 0;var h=0,g=t.suspendedLanes,C=t.pingedLanes;t=t.warmLanes;var B=o&134217727;return B!==0?(o=B&~g,o!==0?h=tr(o):(C&=B,C!==0?h=tr(C):l||(l=B&~t,l!==0&&(h=tr(l))))):(B=o&~g,B!==0?h=tr(B):C!==0?h=tr(C):l||(l=o&~t,l!==0&&(h=tr(l)))),h===0?0:i!==0&&i!==h&&(i&g)===0&&(g=h&-h,l=i&-i,g>=l||g===32&&(l&4194048)!==0)?i:h}function ht(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function Tt(t,i){switch(t){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Zt(){var t=zr;return zr<<=1,(zr&62914560)===0&&(zr=4194304),t}function Nr(t){for(var i=[],l=0;31>l;l++)i.push(t);return i}function pt(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function dn(t,i,l,o,h,g){var C=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var B=t.entanglements,H=t.expirationTimes,Z=t.hiddenUpdates;for(l=C&~l;0<l;){var le=31-Ke(l),oe=1<<le;B[le]=0,H[le]=-1;var ee=Z[le];if(ee!==null)for(Z[le]=null,le=0;le<ee.length;le++){var re=ee[le];re!==null&&(re.lane&=-536870913)}l&=~oe}o!==0&&Fr(t,o,0),g!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=g&~(C&~i))}function Fr(t,i,l){t.pendingLanes|=i,t.suspendedLanes&=~i;var o=31-Ke(i);t.entangledLanes|=i,t.entanglements[o]=t.entanglements[o]|1073741824|l&261930}function at(t,i){var l=t.entangledLanes|=i;for(t=t.entanglements;l;){var o=31-Ke(l),h=1<<o;h&i|t[o]&i&&(t[o]|=i),l&=~h}}function Ct(t,i){var l=i&-i;return l=(l&42)!==0?1:Kr(l),(l&(t.suspendedLanes|i))!==0?0:l}function Kr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Hn(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ld(){var t=te.p;return t!==0?t:(t=window.event,t===void 0?32:z4(t.type))}function Kv(t,i){var l=te.p;try{return te.p=t,i()}finally{te.p=l}}var Ni=Math.random().toString(36).slice(2),tn="__reactFiber$"+Ni,Bn="__reactProps$"+Ni,El="__reactContainer$"+Ni,Ud="__reactEvents$"+Ni,m9="__reactListeners$"+Ni,x9="__reactHandles$"+Ni,$v="__reactResources$"+Ni,Us="__reactMarker$"+Ni;function jd(t){delete t[tn],delete t[Bn],delete t[Ud],delete t[m9],delete t[x9]}function Cl(t){var i=t[tn];if(i)return i;for(var l=t.parentNode;l;){if(i=l[El]||l[tn]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(t=g4(t);t!==null;){if(l=t[tn])return l;t=g4(t)}return i}t=l,l=t.parentNode}return null}function Sl(t){if(t=t[tn]||t[El]){var i=t.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return t}return null}function js(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(a(33))}function wl(t){var i=t[$v];return i||(i=t[$v]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Wt(t){t[Us]=!0}var Zv=new Set,Wv={};function Da(t,i){Al(t,i),Al(t+"Capture",i)}function Al(t,i){for(Wv[t]=i,t=0;t<i.length;t++)Zv.add(i[t])}var g9=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]*$"),Jv={},eb={};function y9(t){return Ft.call(eb,t)?!0:Ft.call(Jv,t)?!1:g9.test(t)?eb[t]=!0:(Jv[t]=!0,!1)}function mc(t,i,l){if(y9(i))if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var o=i.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+l)}}function xc(t,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+l)}}function $r(t,i,l,o){if(o===null)t.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(i,l,""+o)}}function nr(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function tb(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function v9(t,i,l){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);if(!t.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var h=o.get,g=o.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return h.call(this)},set:function(C){l=""+C,g.call(this,C)}}),Object.defineProperty(t,i,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Hd(t){if(!t._valueTracker){var i=tb(t)?"checked":"value";t._valueTracker=v9(t,i,""+t[i])}}function nb(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var l=i.getValue(),o="";return t&&(o=tb(t)?t.checked?"true":"false":t.value),t=o,t!==l?(i.setValue(t),!0):!1}function gc(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var b9=/[\n"\\]/g;function rr(t){return t.replace(b9,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function qd(t,i,l,o,h,g,C,B){t.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.type=C:t.removeAttribute("type"),i!=null?C==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+nr(i)):t.value!==""+nr(i)&&(t.value=""+nr(i)):C!=="submit"&&C!=="reset"||t.removeAttribute("value"),i!=null?Id(t,C,nr(i)):l!=null?Id(t,C,nr(l)):o!=null&&t.removeAttribute("value"),h==null&&g!=null&&(t.defaultChecked=!!g),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?t.name=""+nr(B):t.removeAttribute("name")}function rb(t,i,l,o,h,g,C,B){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.type=g),i!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){Hd(t);return}l=l!=null?""+nr(l):"",i=i!=null?""+nr(i):l,B||i===t.value||(t.value=i),t.defaultValue=i}o=o??h,o=typeof o!="function"&&typeof o!="symbol"&&!!o,t.checked=B?t.checked:!!o,t.defaultChecked=!!o,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(t.name=C),Hd(t)}function Id(t,i,l){i==="number"&&gc(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function _l(t,i,l,o){if(t=t.options,i){i={};for(var h=0;h<l.length;h++)i["$"+l[h]]=!0;for(l=0;l<t.length;l++)h=i.hasOwnProperty("$"+t[l].value),t[l].selected!==h&&(t[l].selected=h),h&&o&&(t[l].defaultSelected=!0)}else{for(l=""+nr(l),i=null,h=0;h<t.length;h++){if(t[h].value===l){t[h].selected=!0,o&&(t[h].defaultSelected=!0);return}i!==null||t[h].disabled||(i=t[h])}i!==null&&(i.selected=!0)}}function ib(t,i,l){if(i!=null&&(i=""+nr(i),i!==t.value&&(t.value=i),l==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=l!=null?""+nr(l):""}function ab(t,i,l,o){if(i==null){if(o!=null){if(l!=null)throw Error(a(92));if(J(o)){if(1<o.length)throw Error(a(93));o=o[0]}l=o}l==null&&(l=""),i=l}l=nr(i),t.defaultValue=l,o=t.textContent,o===l&&o!==""&&o!==null&&(t.value=o),Hd(t)}function kl(t,i){if(i){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=i;return}}t.textContent=i}var E9=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 lb(t,i,l){var o=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":o?t.setProperty(i,l):typeof l!="number"||l===0||E9.has(i)?i==="float"?t.cssFloat=l:t[i]=(""+l).trim():t[i]=l+"px"}function sb(t,i,l){if(i!=null&&typeof i!="object")throw Error(a(62));if(t=t.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||i!=null&&i.hasOwnProperty(o)||(o.indexOf("--")===0?t.setProperty(o,""):o==="float"?t.cssFloat="":t[o]="");for(var h in i)o=i[h],i.hasOwnProperty(h)&&l[h]!==o&&lb(t,h,o)}else for(var g in i)i.hasOwnProperty(g)&&lb(t,g,i[g])}function Pd(t){if(t.indexOf("-")===-1)return!1;switch(t){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 C9=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"]]),S9=/^[\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 yc(t){return S9.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Zr(){}var Vd=null;function Yd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Dl=null,Bl=null;function ob(t){var i=Sl(t);if(i&&(t=i.stateNode)){var l=t[Bn]||null;e:switch(t=i.stateNode,i.type){case"input":if(qd(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+rr(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var o=l[i];if(o!==t&&o.form===t.form){var h=o[Bn]||null;if(!h)throw Error(a(90));qd(o,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<l.length;i++)o=l[i],o.form===t.form&&nb(o)}break e;case"textarea":ib(t,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&_l(t,!!l.multiple,i,!1)}}}var Qd=!1;function ub(t,i,l){if(Qd)return t(i,l);Qd=!0;try{var o=t(i);return o}finally{if(Qd=!1,(Dl!==null||Bl!==null)&&(lf(),Dl&&(i=Dl,t=Bl,Bl=Dl=null,ob(i),t)))for(i=0;i<t.length;i++)ob(t[i])}}function Hs(t,i){var l=t.stateNode;if(l===null)return null;var o=l[Bn]||null;if(o===null)return null;l=o[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(a(231,i,typeof l));return l}var Wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=!1;if(Wr)try{var qs={};Object.defineProperty(qs,"passive",{get:function(){Xd=!0}}),window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{Xd=!1}var Fi=null,Gd=null,vc=null;function cb(){if(vc)return vc;var t,i=Gd,l=i.length,o,h="value"in Fi?Fi.value:Fi.textContent,g=h.length;for(t=0;t<l&&i[t]===h[t];t++);var C=l-t;for(o=1;o<=C&&i[l-o]===h[g-o];o++);return vc=h.slice(t,1<o?1-o:void 0)}function bc(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function Ec(){return!0}function fb(){return!1}function Tn(t){function i(l,o,h,g,C){this._reactName=l,this._targetInst=h,this.type=o,this.nativeEvent=g,this.target=C,this.currentTarget=null;for(var B in t)t.hasOwnProperty(B)&&(l=t[B],this[B]=l?l(g):g[B]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Ec:fb,this.isPropagationStopped=fb,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ec)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ec)},persist:function(){},isPersistent:Ec}),i}var Ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cc=Tn(Ba),Is=m({},Ba,{view:0,detail:0}),w9=Tn(Is),Kd,$d,Ps,Sc=m({},Is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ps&&(Ps&&t.type==="mousemove"?(Kd=t.screenX-Ps.screenX,$d=t.screenY-Ps.screenY):$d=Kd=0,Ps=t),Kd)},movementY:function(t){return"movementY"in t?t.movementY:$d}}),db=Tn(Sc),A9=m({},Sc,{dataTransfer:0}),_9=Tn(A9),k9=m({},Is,{relatedTarget:0}),Zd=Tn(k9),D9=m({},Ba,{animationName:0,elapsedTime:0,pseudoElement:0}),B9=Tn(D9),T9=m({},Ba,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),R9=Tn(T9),O9=m({},Ba,{data:0}),hb=Tn(O9),z9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N9={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"},F9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M9(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=F9[t])?!!i[t]:!1}function Wd(){return M9}var L9=m({},Is,{key:function(t){if(t.key){var i=z9[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=bc(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?N9[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wd,charCode:function(t){return t.type==="keypress"?bc(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bc(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),U9=Tn(L9),j9=m({},Sc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pb=Tn(j9),H9=m({},Is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wd}),q9=Tn(H9),I9=m({},Ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),P9=Tn(I9),V9=m({},Sc,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Y9=Tn(V9),Q9=m({},Ba,{newState:0,oldState:0}),X9=Tn(Q9),G9=[9,13,27,32],Jd=Wr&&"CompositionEvent"in window,Vs=null;Wr&&"documentMode"in document&&(Vs=document.documentMode);var K9=Wr&&"TextEvent"in window&&!Vs,mb=Wr&&(!Jd||Vs&&8<Vs&&11>=Vs),xb=" ",gb=!1;function yb(t,i){switch(t){case"keyup":return G9.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vb(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Tl=!1;function $9(t,i){switch(t){case"compositionend":return vb(i);case"keypress":return i.which!==32?null:(gb=!0,xb);case"textInput":return t=i.data,t===xb&&gb?null:t;default:return null}}function Z9(t,i){if(Tl)return t==="compositionend"||!Jd&&yb(t,i)?(t=cb(),vc=Gd=Fi=null,Tl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return mb&&i.locale!=="ko"?null:i.data;default:return null}}var W9={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 bb(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!W9[t.type]:i==="textarea"}function Eb(t,i,l,o){Dl?Bl?Bl.push(o):Bl=[o]:Dl=o,i=hf(i,"onChange"),0<i.length&&(l=new Cc("onChange","change",null,l,o),t.push({event:l,listeners:i}))}var Ys=null,Qs=null;function J9(t){r4(t,0)}function wc(t){var i=js(t);if(nb(i))return t}function Cb(t,i){if(t==="change")return i}var Sb=!1;if(Wr){var eh;if(Wr){var th="oninput"in document;if(!th){var wb=document.createElement("div");wb.setAttribute("oninput","return;"),th=typeof wb.oninput=="function"}eh=th}else eh=!1;Sb=eh&&(!document.documentMode||9<document.documentMode)}function Ab(){Ys&&(Ys.detachEvent("onpropertychange",_b),Qs=Ys=null)}function _b(t){if(t.propertyName==="value"&&wc(Qs)){var i=[];Eb(i,Qs,t,Yd(t)),ub(J9,i)}}function e7(t,i,l){t==="focusin"?(Ab(),Ys=i,Qs=l,Ys.attachEvent("onpropertychange",_b)):t==="focusout"&&Ab()}function t7(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return wc(Qs)}function n7(t,i){if(t==="click")return wc(i)}function r7(t,i){if(t==="input"||t==="change")return wc(i)}function i7(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var qn=typeof Object.is=="function"?Object.is:i7;function Xs(t,i){if(qn(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var l=Object.keys(t),o=Object.keys(i);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var h=l[o];if(!Ft.call(i,h)||!qn(t[h],i[h]))return!1}return!0}function kb(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Db(t,i){var l=kb(t);t=0;for(var o;l;){if(l.nodeType===3){if(o=t+l.textContent.length,t<=i&&o>=i)return{node:l,offset:i-t};t=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=kb(l)}}function Bb(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Bb(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Tb(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=gc(t.document);i instanceof t.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)t=i.contentWindow;else break;i=gc(t.document)}return i}function nh(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}var a7=Wr&&"documentMode"in document&&11>=document.documentMode,Rl=null,rh=null,Gs=null,ih=!1;function Rb(t,i,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ih||Rl==null||Rl!==gc(o)||(o=Rl,"selectionStart"in o&&nh(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Gs&&Xs(Gs,o)||(Gs=o,o=hf(rh,"onSelect"),0<o.length&&(i=new Cc("onSelect","select",null,i,l),t.push({event:i,listeners:o}),i.target=Rl)))}function Ta(t,i){var l={};return l[t.toLowerCase()]=i.toLowerCase(),l["Webkit"+t]="webkit"+i,l["Moz"+t]="moz"+i,l}var Ol={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},ah={},Ob={};Wr&&(Ob=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Ra(t){if(ah[t])return ah[t];if(!Ol[t])return t;var i=Ol[t],l;for(l in i)if(i.hasOwnProperty(l)&&l in Ob)return ah[t]=i[l];return t}var zb=Ra("animationend"),Nb=Ra("animationiteration"),Fb=Ra("animationstart"),l7=Ra("transitionrun"),s7=Ra("transitionstart"),o7=Ra("transitioncancel"),Mb=Ra("transitionend"),Lb=new Map,lh="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(" ");lh.push("scrollEnd");function vr(t,i){Lb.set(t,i),Da(i,[t])}var Ac=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},ir=[],zl=0,sh=0;function _c(){for(var t=zl,i=sh=zl=0;i<t;){var l=ir[i];ir[i++]=null;var o=ir[i];ir[i++]=null;var h=ir[i];ir[i++]=null;var g=ir[i];if(ir[i++]=null,o!==null&&h!==null){var C=o.pending;C===null?h.next=h:(h.next=C.next,C.next=h),o.pending=h}g!==0&&Ub(l,h,g)}}function kc(t,i,l,o){ir[zl++]=t,ir[zl++]=i,ir[zl++]=l,ir[zl++]=o,sh|=o,t.lanes|=o,t=t.alternate,t!==null&&(t.lanes|=o)}function oh(t,i,l,o){return kc(t,i,l,o),Dc(t)}function Oa(t,i){return kc(t,null,null,i),Dc(t)}function Ub(t,i,l){t.lanes|=l;var o=t.alternate;o!==null&&(o.lanes|=l);for(var h=!1,g=t.return;g!==null;)g.childLanes|=l,o=g.alternate,o!==null&&(o.childLanes|=l),g.tag===22&&(t=g.stateNode,t===null||t._visibility&1||(h=!0)),t=g,g=g.return;return t.tag===3?(g=t.stateNode,h&&i!==null&&(h=31-Ke(l),t=g.hiddenUpdates,o=t[h],o===null?t[h]=[i]:o.push(i),i.lane=l|536870912),g):null}function Dc(t){if(50<go)throw go=0,gp=null,Error(a(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var Nl={};function u7(t,i,l,o){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(t,i,l,o){return new u7(t,i,l,o)}function uh(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Jr(t,i){var l=t.alternate;return l===null?(l=In(t.tag,i,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=i,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,i=t.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function jb(t,i){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=i,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,i=l.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function Bc(t,i,l,o,h,g){var C=0;if(o=t,typeof t=="function")uh(t)&&(C=1);else if(typeof t=="string")C=pO(t,l,I.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case X:return t=In(31,l,i,h),t.elementType=X,t.lanes=g,t;case E:return za(l.children,h,g,i);case S:C=8,h|=24;break;case w:return t=In(12,l,i,h|2),t.elementType=w,t.lanes=g,t;case F:return t=In(13,l,i,h),t.elementType=F,t.lanes=g,t;case R:return t=In(19,l,i,h),t.elementType=R,t.lanes=g,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:C=10;break e;case k:C=9;break e;case D:C=11;break e;case z:C=14;break e;case M:C=16,o=null;break e}C=29,l=Error(a(130,t===null?"null":typeof t,"")),o=null}return i=In(C,l,i,h),i.elementType=t,i.type=o,i.lanes=g,i}function za(t,i,l,o){return t=In(7,t,o,i),t.lanes=l,t}function ch(t,i,l){return t=In(6,t,null,i),t.lanes=l,t}function Hb(t){var i=In(18,null,null,0);return i.stateNode=t,i}function fh(t,i,l){return i=In(4,t.children!==null?t.children:[],t.key,i),i.lanes=l,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}var qb=new WeakMap;function ar(t,i){if(typeof t=="object"&&t!==null){var l=qb.get(t);return l!==void 0?l:(i={value:t,source:i,stack:jn(i)},qb.set(t,i),i)}return{value:t,source:i,stack:jn(i)}}var Fl=[],Ml=0,Tc=null,Ks=0,lr=[],sr=0,Mi=null,Mr=1,Lr="";function ei(t,i){Fl[Ml++]=Ks,Fl[Ml++]=Tc,Tc=t,Ks=i}function Ib(t,i,l){lr[sr++]=Mr,lr[sr++]=Lr,lr[sr++]=Mi,Mi=t;var o=Mr;t=Lr;var h=32-Ke(o)-1;o&=~(1<<h),l+=1;var g=32-Ke(i)+h;if(30<g){var C=h-h%5;g=(o&(1<<C)-1).toString(32),o>>=C,h-=C,Mr=1<<32-Ke(i)+h|l<<h|o,Lr=g+t}else Mr=1<<g|l<<h|o,Lr=t}function dh(t){t.return!==null&&(ei(t,1),Ib(t,1,0))}function hh(t){for(;t===Tc;)Tc=Fl[--Ml],Fl[Ml]=null,Ks=Fl[--Ml],Fl[Ml]=null;for(;t===Mi;)Mi=lr[--sr],lr[sr]=null,Lr=lr[--sr],lr[sr]=null,Mr=lr[--sr],lr[sr]=null}function Pb(t,i){lr[sr++]=Mr,lr[sr++]=Lr,lr[sr++]=Mi,Mr=i.id,Lr=i.overflow,Mi=t}var nn=null,mt=null,Qe=!1,Li=null,or=!1,ph=Error(a(519));function Ui(t){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $s(ar(i,t)),ph}function Vb(t){var i=t.stateNode,l=t.type,o=t.memoizedProps;switch(i[tn]=t,i[Bn]=o,l){case"dialog":He("cancel",i),He("close",i);break;case"iframe":case"object":case"embed":He("load",i);break;case"video":case"audio":for(l=0;l<vo.length;l++)He(vo[l],i);break;case"source":He("error",i);break;case"img":case"image":case"link":He("error",i),He("load",i);break;case"details":He("toggle",i);break;case"input":He("invalid",i),rb(i,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":He("invalid",i);break;case"textarea":He("invalid",i),ab(i,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||o.suppressHydrationWarning===!0||s4(i.textContent,l)?(o.popover!=null&&(He("beforetoggle",i),He("toggle",i)),o.onScroll!=null&&He("scroll",i),o.onScrollEnd!=null&&He("scrollend",i),o.onClick!=null&&(i.onclick=Zr),i=!0):i=!1,i||Ui(t,!0)}function Yb(t){for(nn=t.return;nn;)switch(nn.tag){case 5:case 31:case 13:or=!1;return;case 27:case 3:or=!0;return;default:nn=nn.return}}function Ll(t){if(t!==nn)return!1;if(!Qe)return Yb(t),Qe=!0,!1;var i=t.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Op(t.type,t.memoizedProps)),l=!l),l&&mt&&Ui(t),Yb(t),i===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));mt=x4(t)}else if(i===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));mt=x4(t)}else i===27?(i=mt,Wi(t.type)?(t=Lp,Lp=null,mt=t):mt=i):mt=nn?cr(t.stateNode.nextSibling):null;return!0}function Na(){mt=nn=null,Qe=!1}function mh(){var t=Li;return t!==null&&(Nn===null?Nn=t:Nn.push.apply(Nn,t),Li=null),t}function $s(t){Li===null?Li=[t]:Li.push(t)}var xh=O(null),Fa=null,ti=null;function ji(t,i,l){_(xh,i._currentValue),i._currentValue=l}function ni(t){t._currentValue=xh.current,U(xh)}function gh(t,i,l){for(;t!==null;){var o=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,o!==null&&(o.childLanes|=i)):o!==null&&(o.childLanes&i)!==i&&(o.childLanes|=i),t===l)break;t=t.return}}function yh(t,i,l,o){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var g=h.dependencies;if(g!==null){var C=h.child;g=g.firstContext;e:for(;g!==null;){var B=g;g=h;for(var H=0;H<i.length;H++)if(B.context===i[H]){g.lanes|=l,B=g.alternate,B!==null&&(B.lanes|=l),gh(g.return,l,t),o||(C=null);break e}g=B.next}}else if(h.tag===18){if(C=h.return,C===null)throw Error(a(341));C.lanes|=l,g=C.alternate,g!==null&&(g.lanes|=l),gh(C,l,t),C=null}else C=h.child;if(C!==null)C.return=h;else for(C=h;C!==null;){if(C===t){C=null;break}if(h=C.sibling,h!==null){h.return=C.return,C=h;break}C=C.return}h=C}}function Ul(t,i,l,o){t=null;for(var h=i,g=!1;h!==null;){if(!g){if((h.flags&524288)!==0)g=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var C=h.alternate;if(C===null)throw Error(a(387));if(C=C.memoizedProps,C!==null){var B=h.type;qn(h.pendingProps.value,C.value)||(t!==null?t.push(B):t=[B])}}else if(h===xe.current){if(C=h.alternate,C===null)throw Error(a(387));C.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(wo):t=[wo])}h=h.return}t!==null&&yh(i,t,l,o),i.flags|=262144}function Rc(t){for(t=t.firstContext;t!==null;){if(!qn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ma(t){Fa=t,ti=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function rn(t){return Qb(Fa,t)}function Oc(t,i){return Fa===null&&Ma(t),Qb(t,i)}function Qb(t,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},ti===null){if(t===null)throw Error(a(308));ti=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else ti=ti.next=i;return l}var c7=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(l,o){t.push(o)}};this.abort=function(){i.aborted=!0,t.forEach(function(l){return l()})}},f7=e.unstable_scheduleCallback,d7=e.unstable_NormalPriority,Lt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vh(){return{controller:new c7,data:new Map,refCount:0}}function Zs(t){t.refCount--,t.refCount===0&&f7(d7,function(){t.controller.abort()})}var Ws=null,bh=0,jl=0,Hl=null;function h7(t,i){if(Ws===null){var l=Ws=[];bh=0,jl=Sp(),Hl={status:"pending",value:void 0,then:function(o){l.push(o)}}}return bh++,i.then(Xb,Xb),i}function Xb(){if(--bh===0&&Ws!==null){Hl!==null&&(Hl.status="fulfilled");var t=Ws;Ws=null,jl=0,Hl=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function p7(t,i){var l=[],o={status:"pending",value:null,reason:null,then:function(h){l.push(h)}};return t.then(function(){o.status="fulfilled",o.value=i;for(var h=0;h<l.length;h++)(0,l[h])(i)},function(h){for(o.status="rejected",o.reason=h,h=0;h<l.length;h++)(0,l[h])(void 0)}),o}var Gb=L.S;L.S=function(t,i){RE=At(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&h7(t,i),Gb!==null&&Gb(t,i)};var La=O(null);function Eh(){var t=La.current;return t!==null?t:ft.pooledCache}function zc(t,i){i===null?_(La,La.current):_(La,i.pool)}function Kb(){var t=Eh();return t===null?null:{parent:Lt._currentValue,pool:t}}var ql=Error(a(460)),Ch=Error(a(474)),Nc=Error(a(542)),Fc={then:function(){}};function $b(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Zb(t,i,l){switch(l=t[l],l===void 0?t.push(i):l!==i&&(i.then(Zr,Zr),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Jb(t),t;default:if(typeof i.status=="string")i.then(Zr,Zr);else{if(t=ft,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=i,t.status="pending",t.then(function(o){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=o}},function(o){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=o}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Jb(t),t}throw ja=i,ql}}function Ua(t){try{var i=t._init;return i(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ja=l,ql):l}}var ja=null;function Wb(){if(ja===null)throw Error(a(459));var t=ja;return ja=null,t}function Jb(t){if(t===ql||t===Nc)throw Error(a(483))}var Il=null,Js=0;function Mc(t){var i=Js;return Js+=1,Il===null&&(Il=[]),Zb(Il,t,i)}function eo(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function Lc(t,i){throw i.$$typeof===y?Error(a(525)):(t=Object.prototype.toString.call(i),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t)))}function e2(t){function i(Q,P){if(t){var K=Q.deletions;K===null?(Q.deletions=[P],Q.flags|=16):K.push(P)}}function l(Q,P){if(!t)return null;for(;P!==null;)i(Q,P),P=P.sibling;return null}function o(Q){for(var P=new Map;Q!==null;)Q.key!==null?P.set(Q.key,Q):P.set(Q.index,Q),Q=Q.sibling;return P}function h(Q,P){return Q=Jr(Q,P),Q.index=0,Q.sibling=null,Q}function g(Q,P,K){return Q.index=K,t?(K=Q.alternate,K!==null?(K=K.index,K<P?(Q.flags|=67108866,P):K):(Q.flags|=67108866,P)):(Q.flags|=1048576,P)}function C(Q){return t&&Q.alternate===null&&(Q.flags|=67108866),Q}function B(Q,P,K,se){return P===null||P.tag!==6?(P=ch(K,Q.mode,se),P.return=Q,P):(P=h(P,K),P.return=Q,P)}function H(Q,P,K,se){var Se=K.type;return Se===E?le(Q,P,K.props.children,se,K.key):P!==null&&(P.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===M&&Ua(Se)===P.type)?(P=h(P,K.props),eo(P,K),P.return=Q,P):(P=Bc(K.type,K.key,K.props,null,Q.mode,se),eo(P,K),P.return=Q,P)}function Z(Q,P,K,se){return P===null||P.tag!==4||P.stateNode.containerInfo!==K.containerInfo||P.stateNode.implementation!==K.implementation?(P=fh(K,Q.mode,se),P.return=Q,P):(P=h(P,K.children||[]),P.return=Q,P)}function le(Q,P,K,se,Se){return P===null||P.tag!==7?(P=za(K,Q.mode,se,Se),P.return=Q,P):(P=h(P,K),P.return=Q,P)}function oe(Q,P,K){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return P=ch(""+P,Q.mode,K),P.return=Q,P;if(typeof P=="object"&&P!==null){switch(P.$$typeof){case v:return K=Bc(P.type,P.key,P.props,null,Q.mode,K),eo(K,P),K.return=Q,K;case b:return P=fh(P,Q.mode,K),P.return=Q,P;case M:return P=Ua(P),oe(Q,P,K)}if(J(P)||V(P))return P=za(P,Q.mode,K,null),P.return=Q,P;if(typeof P.then=="function")return oe(Q,Mc(P),K);if(P.$$typeof===A)return oe(Q,Oc(Q,P),K);Lc(Q,P)}return null}function ee(Q,P,K,se){var Se=P!==null?P.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return Se!==null?null:B(Q,P,""+K,se);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case v:return K.key===Se?H(Q,P,K,se):null;case b:return K.key===Se?Z(Q,P,K,se):null;case M:return K=Ua(K),ee(Q,P,K,se)}if(J(K)||V(K))return Se!==null?null:le(Q,P,K,se,null);if(typeof K.then=="function")return ee(Q,P,Mc(K),se);if(K.$$typeof===A)return ee(Q,P,Oc(Q,K),se);Lc(Q,K)}return null}function re(Q,P,K,se,Se){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return Q=Q.get(K)||null,B(P,Q,""+se,Se);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case v:return Q=Q.get(se.key===null?K:se.key)||null,H(P,Q,se,Se);case b:return Q=Q.get(se.key===null?K:se.key)||null,Z(P,Q,se,Se);case M:return se=Ua(se),re(Q,P,K,se,Se)}if(J(se)||V(se))return Q=Q.get(K)||null,le(P,Q,se,Se,null);if(typeof se.then=="function")return re(Q,P,K,Mc(se),Se);if(se.$$typeof===A)return re(Q,P,K,Oc(P,se),Se);Lc(P,se)}return null}function ye(Q,P,K,se){for(var Se=null,$e=null,Ee=P,Ne=P=0,Ie=null;Ee!==null&&Ne<K.length;Ne++){Ee.index>Ne?(Ie=Ee,Ee=null):Ie=Ee.sibling;var Ze=ee(Q,Ee,K[Ne],se);if(Ze===null){Ee===null&&(Ee=Ie);break}t&&Ee&&Ze.alternate===null&&i(Q,Ee),P=g(Ze,P,Ne),$e===null?Se=Ze:$e.sibling=Ze,$e=Ze,Ee=Ie}if(Ne===K.length)return l(Q,Ee),Qe&&ei(Q,Ne),Se;if(Ee===null){for(;Ne<K.length;Ne++)Ee=oe(Q,K[Ne],se),Ee!==null&&(P=g(Ee,P,Ne),$e===null?Se=Ee:$e.sibling=Ee,$e=Ee);return Qe&&ei(Q,Ne),Se}for(Ee=o(Ee);Ne<K.length;Ne++)Ie=re(Ee,Q,Ne,K[Ne],se),Ie!==null&&(t&&Ie.alternate!==null&&Ee.delete(Ie.key===null?Ne:Ie.key),P=g(Ie,P,Ne),$e===null?Se=Ie:$e.sibling=Ie,$e=Ie);return t&&Ee.forEach(function(ra){return i(Q,ra)}),Qe&&ei(Q,Ne),Se}function _e(Q,P,K,se){if(K==null)throw Error(a(151));for(var Se=null,$e=null,Ee=P,Ne=P=0,Ie=null,Ze=K.next();Ee!==null&&!Ze.done;Ne++,Ze=K.next()){Ee.index>Ne?(Ie=Ee,Ee=null):Ie=Ee.sibling;var ra=ee(Q,Ee,Ze.value,se);if(ra===null){Ee===null&&(Ee=Ie);break}t&&Ee&&ra.alternate===null&&i(Q,Ee),P=g(ra,P,Ne),$e===null?Se=ra:$e.sibling=ra,$e=ra,Ee=Ie}if(Ze.done)return l(Q,Ee),Qe&&ei(Q,Ne),Se;if(Ee===null){for(;!Ze.done;Ne++,Ze=K.next())Ze=oe(Q,Ze.value,se),Ze!==null&&(P=g(Ze,P,Ne),$e===null?Se=Ze:$e.sibling=Ze,$e=Ze);return Qe&&ei(Q,Ne),Se}for(Ee=o(Ee);!Ze.done;Ne++,Ze=K.next())Ze=re(Ee,Q,Ne,Ze.value,se),Ze!==null&&(t&&Ze.alternate!==null&&Ee.delete(Ze.key===null?Ne:Ze.key),P=g(Ze,P,Ne),$e===null?Se=Ze:$e.sibling=Ze,$e=Ze);return t&&Ee.forEach(function(AO){return i(Q,AO)}),Qe&&ei(Q,Ne),Se}function ot(Q,P,K,se){if(typeof K=="object"&&K!==null&&K.type===E&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case v:e:{for(var Se=K.key;P!==null;){if(P.key===Se){if(Se=K.type,Se===E){if(P.tag===7){l(Q,P.sibling),se=h(P,K.props.children),se.return=Q,Q=se;break e}}else if(P.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===M&&Ua(Se)===P.type){l(Q,P.sibling),se=h(P,K.props),eo(se,K),se.return=Q,Q=se;break e}l(Q,P);break}else i(Q,P);P=P.sibling}K.type===E?(se=za(K.props.children,Q.mode,se,K.key),se.return=Q,Q=se):(se=Bc(K.type,K.key,K.props,null,Q.mode,se),eo(se,K),se.return=Q,Q=se)}return C(Q);case b:e:{for(Se=K.key;P!==null;){if(P.key===Se)if(P.tag===4&&P.stateNode.containerInfo===K.containerInfo&&P.stateNode.implementation===K.implementation){l(Q,P.sibling),se=h(P,K.children||[]),se.return=Q,Q=se;break e}else{l(Q,P);break}else i(Q,P);P=P.sibling}se=fh(K,Q.mode,se),se.return=Q,Q=se}return C(Q);case M:return K=Ua(K),ot(Q,P,K,se)}if(J(K))return ye(Q,P,K,se);if(V(K)){if(Se=V(K),typeof Se!="function")throw Error(a(150));return K=Se.call(K),_e(Q,P,K,se)}if(typeof K.then=="function")return ot(Q,P,Mc(K),se);if(K.$$typeof===A)return ot(Q,P,Oc(Q,K),se);Lc(Q,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,P!==null&&P.tag===6?(l(Q,P.sibling),se=h(P,K),se.return=Q,Q=se):(l(Q,P),se=ch(K,Q.mode,se),se.return=Q,Q=se),C(Q)):l(Q,P)}return function(Q,P,K,se){try{Js=0;var Se=ot(Q,P,K,se);return Il=null,Se}catch(Ee){if(Ee===ql||Ee===Nc)throw Ee;var $e=In(29,Ee,null,Q.mode);return $e.lanes=se,$e.return=Q,$e}finally{}}}var Ha=e2(!0),t2=e2(!1),Hi=!1;function Sh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wh(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function qi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ii(t,i,l){var o=t.updateQueue;if(o===null)return null;if(o=o.shared,(Je&2)!==0){var h=o.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),o.pending=i,i=Dc(t),Ub(t,null,l),i}return kc(t,o,i,l),Dc(t)}function to(t,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var o=i.lanes;o&=t.pendingLanes,l|=o,i.lanes=l,at(t,l)}}function Ah(t,i){var l=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var h=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var C={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?h=g=C:g=g.next=C,l=l.next}while(l!==null);g===null?h=g=i:g=g.next=i}else h=g=i;l={baseState:o.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:o.shared,callbacks:o.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=i:t.next=i,l.lastBaseUpdate=i}var _h=!1;function no(){if(_h){var t=Hl;if(t!==null)throw t}}function ro(t,i,l,o){_h=!1;var h=t.updateQueue;Hi=!1;var g=h.firstBaseUpdate,C=h.lastBaseUpdate,B=h.shared.pending;if(B!==null){h.shared.pending=null;var H=B,Z=H.next;H.next=null,C===null?g=Z:C.next=Z,C=H;var le=t.alternate;le!==null&&(le=le.updateQueue,B=le.lastBaseUpdate,B!==C&&(B===null?le.firstBaseUpdate=Z:B.next=Z,le.lastBaseUpdate=H))}if(g!==null){var oe=h.baseState;C=0,le=Z=H=null,B=g;do{var ee=B.lane&-536870913,re=ee!==B.lane;if(re?(qe&ee)===ee:(o&ee)===ee){ee!==0&&ee===jl&&(_h=!0),le!==null&&(le=le.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var ye=t,_e=B;ee=i;var ot=l;switch(_e.tag){case 1:if(ye=_e.payload,typeof ye=="function"){oe=ye.call(ot,oe,ee);break e}oe=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=_e.payload,ee=typeof ye=="function"?ye.call(ot,oe,ee):ye,ee==null)break e;oe=m({},oe,ee);break e;case 2:Hi=!0}}ee=B.callback,ee!==null&&(t.flags|=64,re&&(t.flags|=8192),re=h.callbacks,re===null?h.callbacks=[ee]:re.push(ee))}else re={lane:ee,tag:B.tag,payload:B.payload,callback:B.callback,next:null},le===null?(Z=le=re,H=oe):le=le.next=re,C|=ee;if(B=B.next,B===null){if(B=h.shared.pending,B===null)break;re=B,B=re.next,re.next=null,h.lastBaseUpdate=re,h.shared.pending=null}}while(!0);le===null&&(H=oe),h.baseState=H,h.firstBaseUpdate=Z,h.lastBaseUpdate=le,g===null&&(h.shared.lanes=0),Xi|=C,t.lanes=C,t.memoizedState=oe}}function n2(t,i){if(typeof t!="function")throw Error(a(191,t));t.call(i)}function r2(t,i){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)n2(l[t],i)}var Pl=O(null),Uc=O(0);function i2(t,i){t=fi,_(Uc,t),_(Pl,i),fi=t|i.baseLanes}function kh(){_(Uc,fi),_(Pl,Pl.current)}function Dh(){fi=Uc.current,U(Pl),U(Uc)}var Pn=O(null),ur=null;function Pi(t){var i=t.alternate;_(Rt,Rt.current&1),_(Pn,t),ur===null&&(i===null||Pl.current!==null||i.memoizedState!==null)&&(ur=t)}function Bh(t){_(Rt,Rt.current),_(Pn,t),ur===null&&(ur=t)}function a2(t){t.tag===22?(_(Rt,Rt.current),_(Pn,t),ur===null&&(ur=t)):Vi()}function Vi(){_(Rt,Rt.current),_(Pn,Pn.current)}function Vn(t){U(Pn),ur===t&&(ur=null),U(Rt)}var Rt=O(0);function jc(t){for(var i=t;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Fp(l)||Mp(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var ri=0,Oe=null,lt=null,Ut=null,Hc=!1,Vl=!1,qa=!1,qc=0,io=0,Yl=null,m7=0;function kt(){throw Error(a(321))}function Th(t,i){if(i===null)return!1;for(var l=0;l<i.length&&l<t.length;l++)if(!qn(t[l],i[l]))return!1;return!0}function Rh(t,i,l,o,h,g){return ri=g,Oe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,L.H=t===null||t.memoizedState===null?I2:Qh,qa=!1,g=l(o,h),qa=!1,Vl&&(g=s2(i,l,o,h)),l2(t),g}function l2(t){L.H=so;var i=lt!==null&&lt.next!==null;if(ri=0,Ut=lt=Oe=null,Hc=!1,io=0,Yl=null,i)throw Error(a(300));t===null||jt||(t=t.dependencies,t!==null&&Rc(t)&&(jt=!0))}function s2(t,i,l,o){Oe=t;var h=0;do{if(Vl&&(Yl=null),io=0,Vl=!1,25<=h)throw Error(a(301));if(h+=1,Ut=lt=null,t.updateQueue!=null){var g=t.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}L.H=P2,g=i(l,o)}while(Vl);return g}function x7(){var t=L.H,i=t.useState()[0];return i=typeof i.then=="function"?ao(i):i,t=t.useState()[0],(lt!==null?lt.memoizedState:null)!==t&&(Oe.flags|=1024),i}function Oh(){var t=qc!==0;return qc=0,t}function zh(t,i,l){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~l}function Nh(t){if(Hc){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Hc=!1}ri=0,Ut=lt=Oe=null,Vl=!1,io=qc=0,Yl=null}function vn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?Oe.memoizedState=Ut=t:Ut=Ut.next=t,Ut}function Ot(){if(lt===null){var t=Oe.alternate;t=t!==null?t.memoizedState:null}else t=lt.next;var i=Ut===null?Oe.memoizedState:Ut.next;if(i!==null)Ut=i,lt=t;else{if(t===null)throw Oe.alternate===null?Error(a(467)):Error(a(310));lt=t,t={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Ut===null?Oe.memoizedState=Ut=t:Ut=Ut.next=t}return Ut}function Ic(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ao(t){var i=io;return io+=1,Yl===null&&(Yl=[]),t=Zb(Yl,t,i),i=Oe,(Ut===null?i.memoizedState:Ut.next)===null&&(i=i.alternate,L.H=i===null||i.memoizedState===null?I2:Qh),t}function Pc(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ao(t);if(t.$$typeof===A)return rn(t)}throw Error(a(438,String(t)))}function Fh(t){var i=null,l=Oe.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var o=Oe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(i={data:o.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Ic(),Oe.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(t),o=0;o<t;o++)l[o]=T;return i.index++,l}function ii(t,i){return typeof i=="function"?i(t):i}function Vc(t){var i=Ot();return Mh(i,lt,t)}function Mh(t,i,l){var o=t.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=l;var h=t.baseQueue,g=o.pending;if(g!==null){if(h!==null){var C=h.next;h.next=g.next,g.next=C}i.baseQueue=h=g,o.pending=null}if(g=t.baseState,h===null)t.memoizedState=g;else{i=h.next;var B=C=null,H=null,Z=i,le=!1;do{var oe=Z.lane&-536870913;if(oe!==Z.lane?(qe&oe)===oe:(ri&oe)===oe){var ee=Z.revertLane;if(ee===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),oe===jl&&(le=!0);else if((ri&ee)===ee){Z=Z.next,ee===jl&&(le=!0);continue}else oe={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},H===null?(B=H=oe,C=g):H=H.next=oe,Oe.lanes|=ee,Xi|=ee;oe=Z.action,qa&&l(g,oe),g=Z.hasEagerState?Z.eagerState:l(g,oe)}else ee={lane:oe,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},H===null?(B=H=ee,C=g):H=H.next=ee,Oe.lanes|=oe,Xi|=oe;Z=Z.next}while(Z!==null&&Z!==i);if(H===null?C=g:H.next=B,!qn(g,t.memoizedState)&&(jt=!0,le&&(l=Hl,l!==null)))throw l;t.memoizedState=g,t.baseState=C,t.baseQueue=H,o.lastRenderedState=g}return h===null&&(o.lanes=0),[t.memoizedState,o.dispatch]}function Lh(t){var i=Ot(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=t;var o=l.dispatch,h=l.pending,g=i.memoizedState;if(h!==null){l.pending=null;var C=h=h.next;do g=t(g,C.action),C=C.next;while(C!==h);qn(g,i.memoizedState)||(jt=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),l.lastRenderedState=g}return[g,o]}function o2(t,i,l){var o=Oe,h=Ot(),g=Qe;if(g){if(l===void 0)throw Error(a(407));l=l()}else l=i();var C=!qn((lt||h).memoizedState,l);if(C&&(h.memoizedState=l,jt=!0),h=h.queue,Hh(f2.bind(null,o,h,t),[t]),h.getSnapshot!==i||C||Ut!==null&&Ut.memoizedState.tag&1){if(o.flags|=2048,Ql(9,{destroy:void 0},c2.bind(null,o,h,l,i),null),ft===null)throw Error(a(349));g||(ri&127)!==0||u2(o,i,l)}return l}function u2(t,i,l){t.flags|=16384,t={getSnapshot:i,value:l},i=Oe.updateQueue,i===null?(i=Ic(),Oe.updateQueue=i,i.stores=[t]):(l=i.stores,l===null?i.stores=[t]:l.push(t))}function c2(t,i,l,o){i.value=l,i.getSnapshot=o,d2(i)&&h2(t)}function f2(t,i,l){return l(function(){d2(i)&&h2(t)})}function d2(t){var i=t.getSnapshot;t=t.value;try{var l=i();return!qn(t,l)}catch{return!0}}function h2(t){var i=Oa(t,2);i!==null&&Fn(i,t,2)}function Uh(t){var i=vn();if(typeof t=="function"){var l=t;if(t=l(),qa){Mt(!0);try{l()}finally{Mt(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:t},i}function p2(t,i,l,o){return t.baseState=l,Mh(t,lt,typeof o=="function"?o:ii)}function g7(t,i,l,o,h){if(Xc(t))throw Error(a(485));if(t=i.action,t!==null){var g={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){g.listeners.push(C)}};L.T!==null?l(!0):g.isTransition=!1,o(g),l=i.pending,l===null?(g.next=i.pending=g,m2(i,g)):(g.next=l.next,i.pending=l.next=g)}}function m2(t,i){var l=i.action,o=i.payload,h=t.state;if(i.isTransition){var g=L.T,C={};L.T=C;try{var B=l(h,o),H=L.S;H!==null&&H(C,B),x2(t,i,B)}catch(Z){jh(t,i,Z)}finally{g!==null&&C.types!==null&&(g.types=C.types),L.T=g}}else try{g=l(h,o),x2(t,i,g)}catch(Z){jh(t,i,Z)}}function x2(t,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){g2(t,i,o)},function(o){return jh(t,i,o)}):g2(t,i,l)}function g2(t,i,l){i.status="fulfilled",i.value=l,y2(i),t.state=l,i=t.pending,i!==null&&(l=i.next,l===i?t.pending=null:(l=l.next,i.next=l,m2(t,l)))}function jh(t,i,l){var o=t.pending;if(t.pending=null,o!==null){o=o.next;do i.status="rejected",i.reason=l,y2(i),i=i.next;while(i!==o)}t.action=null}function y2(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function v2(t,i){return i}function b2(t,i){if(Qe){var l=ft.formState;if(l!==null){e:{var o=Oe;if(Qe){if(mt){t:{for(var h=mt,g=or;h.nodeType!==8;){if(!g){h=null;break t}if(h=cr(h.nextSibling),h===null){h=null;break t}}g=h.data,h=g==="F!"||g==="F"?h:null}if(h){mt=cr(h.nextSibling),o=h.data==="F!";break e}}Ui(o)}o=!1}o&&(i=l[0])}}return l=vn(),l.memoizedState=l.baseState=i,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:v2,lastRenderedState:i},l.queue=o,l=j2.bind(null,Oe,o),o.dispatch=l,o=Uh(!1),g=Yh.bind(null,Oe,!1,o.queue),o=vn(),h={state:i,dispatch:null,action:t,pending:null},o.queue=h,l=g7.bind(null,Oe,h,g,l),h.dispatch=l,o.memoizedState=t,[i,l,!1]}function E2(t){var i=Ot();return C2(i,lt,t)}function C2(t,i,l){if(i=Mh(t,i,v2)[0],t=Vc(ii)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var o=ao(i)}catch(C){throw C===ql?Nc:C}else o=i;i=Ot();var h=i.queue,g=h.dispatch;return l!==i.memoizedState&&(Oe.flags|=2048,Ql(9,{destroy:void 0},y7.bind(null,h,l),null)),[o,g,t]}function y7(t,i){t.action=i}function S2(t){var i=Ot(),l=lt;if(l!==null)return C2(i,l,t);Ot(),i=i.memoizedState,l=Ot();var o=l.queue.dispatch;return l.memoizedState=t,[i,o,!1]}function Ql(t,i,l,o){return t={tag:t,create:l,deps:o,inst:i,next:null},i=Oe.updateQueue,i===null&&(i=Ic(),Oe.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=t.next=t:(o=l.next,l.next=t,t.next=o,i.lastEffect=t),t}function w2(){return Ot().memoizedState}function Yc(t,i,l,o){var h=vn();Oe.flags|=t,h.memoizedState=Ql(1|i,{destroy:void 0},l,o===void 0?null:o)}function Qc(t,i,l,o){var h=Ot();o=o===void 0?null:o;var g=h.memoizedState.inst;lt!==null&&o!==null&&Th(o,lt.memoizedState.deps)?h.memoizedState=Ql(i,g,l,o):(Oe.flags|=t,h.memoizedState=Ql(1|i,g,l,o))}function A2(t,i){Yc(8390656,8,t,i)}function Hh(t,i){Qc(2048,8,t,i)}function v7(t){Oe.flags|=4;var i=Oe.updateQueue;if(i===null)i=Ic(),Oe.updateQueue=i,i.events=[t];else{var l=i.events;l===null?i.events=[t]:l.push(t)}}function _2(t){var i=Ot().memoizedState;return v7({ref:i,nextImpl:t}),function(){if((Je&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function k2(t,i){return Qc(4,2,t,i)}function D2(t,i){return Qc(4,4,t,i)}function B2(t,i){if(typeof i=="function"){t=t();var l=i(t);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function T2(t,i,l){l=l!=null?l.concat([t]):null,Qc(4,4,B2.bind(null,i,t),l)}function qh(){}function R2(t,i){var l=Ot();i=i===void 0?null:i;var o=l.memoizedState;return i!==null&&Th(i,o[1])?o[0]:(l.memoizedState=[t,i],t)}function O2(t,i){var l=Ot();i=i===void 0?null:i;var o=l.memoizedState;if(i!==null&&Th(i,o[1]))return o[0];if(o=t(),qa){Mt(!0);try{t()}finally{Mt(!1)}}return l.memoizedState=[o,i],o}function Ih(t,i,l){return l===void 0||(ri&1073741824)!==0&&(qe&261930)===0?t.memoizedState=i:(t.memoizedState=l,t=zE(),Oe.lanes|=t,Xi|=t,l)}function z2(t,i,l,o){return qn(l,i)?l:Pl.current!==null?(t=Ih(t,l,o),qn(t,i)||(jt=!0),t):(ri&42)===0||(ri&1073741824)!==0&&(qe&261930)===0?(jt=!0,t.memoizedState=l):(t=zE(),Oe.lanes|=t,Xi|=t,i)}function N2(t,i,l,o,h){var g=te.p;te.p=g!==0&&8>g?g:8;var C=L.T,B={};L.T=B,Yh(t,!1,i,l);try{var H=h(),Z=L.S;if(Z!==null&&Z(B,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var le=p7(H,o);lo(t,i,le,Xn(t))}else lo(t,i,o,Xn(t))}catch(oe){lo(t,i,{then:function(){},status:"rejected",reason:oe},Xn())}finally{te.p=g,C!==null&&B.types!==null&&(C.types=B.types),L.T=C}}function b7(){}function Ph(t,i,l,o){if(t.tag!==5)throw Error(a(476));var h=F2(t).queue;N2(t,h,i,W,l===null?b7:function(){return M2(t),l(o)})}function F2(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:W},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:l},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function M2(t){var i=F2(t);i.next===null&&(i=t.alternate.memoizedState),lo(t,i.next.queue,{},Xn())}function Vh(){return rn(wo)}function L2(){return Ot().memoizedState}function U2(){return Ot().memoizedState}function E7(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var l=Xn();t=qi(l);var o=Ii(i,t,l);o!==null&&(Fn(o,i,l),to(o,i,l)),i={cache:vh()},t.payload=i;return}i=i.return}}function C7(t,i,l){var o=Xn();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xc(t)?H2(i,l):(l=oh(t,i,l,o),l!==null&&(Fn(l,t,o),q2(l,i,o)))}function j2(t,i,l){var o=Xn();lo(t,i,l,o)}function lo(t,i,l,o){var h={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xc(t))H2(i,h);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var C=i.lastRenderedState,B=g(C,l);if(h.hasEagerState=!0,h.eagerState=B,qn(B,C))return kc(t,i,h,0),ft===null&&_c(),!1}catch{}finally{}if(l=oh(t,i,h,o),l!==null)return Fn(l,t,o),q2(l,i,o),!0}return!1}function Yh(t,i,l,o){if(o={lane:2,revertLane:Sp(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Xc(t)){if(i)throw Error(a(479))}else i=oh(t,l,o,2),i!==null&&Fn(i,t,2)}function Xc(t){var i=t.alternate;return t===Oe||i!==null&&i===Oe}function H2(t,i){Vl=Hc=!0;var l=t.pending;l===null?i.next=i:(i.next=l.next,l.next=i),t.pending=i}function q2(t,i,l){if((l&4194048)!==0){var o=i.lanes;o&=t.pendingLanes,l|=o,i.lanes=l,at(t,l)}}var so={readContext:rn,use:Pc,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt};so.useEffectEvent=kt;var I2={readContext:rn,use:Pc,useCallback:function(t,i){return vn().memoizedState=[t,i===void 0?null:i],t},useContext:rn,useEffect:A2,useImperativeHandle:function(t,i,l){l=l!=null?l.concat([t]):null,Yc(4194308,4,B2.bind(null,i,t),l)},useLayoutEffect:function(t,i){return Yc(4194308,4,t,i)},useInsertionEffect:function(t,i){Yc(4,2,t,i)},useMemo:function(t,i){var l=vn();i=i===void 0?null:i;var o=t();if(qa){Mt(!0);try{t()}finally{Mt(!1)}}return l.memoizedState=[o,i],o},useReducer:function(t,i,l){var o=vn();if(l!==void 0){var h=l(i);if(qa){Mt(!0);try{l(i)}finally{Mt(!1)}}}else h=i;return o.memoizedState=o.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},o.queue=t,t=t.dispatch=C7.bind(null,Oe,t),[o.memoizedState,t]},useRef:function(t){var i=vn();return t={current:t},i.memoizedState=t},useState:function(t){t=Uh(t);var i=t.queue,l=j2.bind(null,Oe,i);return i.dispatch=l,[t.memoizedState,l]},useDebugValue:qh,useDeferredValue:function(t,i){var l=vn();return Ih(l,t,i)},useTransition:function(){var t=Uh(!1);return t=N2.bind(null,Oe,t.queue,!0,!1),vn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,l){var o=Oe,h=vn();if(Qe){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),ft===null)throw Error(a(349));(qe&127)!==0||u2(o,i,l)}h.memoizedState=l;var g={value:l,getSnapshot:i};return h.queue=g,A2(f2.bind(null,o,g,t),[t]),o.flags|=2048,Ql(9,{destroy:void 0},c2.bind(null,o,g,l,i),null),l},useId:function(){var t=vn(),i=ft.identifierPrefix;if(Qe){var l=Lr,o=Mr;l=(o&~(1<<32-Ke(o)-1)).toString(32)+l,i="_"+i+"R_"+l,l=qc++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=m7++,i="_"+i+"r_"+l.toString(32)+"_";return t.memoizedState=i},useHostTransitionStatus:Vh,useFormState:b2,useActionState:b2,useOptimistic:function(t){var i=vn();i.memoizedState=i.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Yh.bind(null,Oe,!0,l),l.dispatch=i,[t,i]},useMemoCache:Fh,useCacheRefresh:function(){return vn().memoizedState=E7.bind(null,Oe)},useEffectEvent:function(t){var i=vn(),l={impl:t};return i.memoizedState=l,function(){if((Je&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},Qh={readContext:rn,use:Pc,useCallback:R2,useContext:rn,useEffect:Hh,useImperativeHandle:T2,useInsertionEffect:k2,useLayoutEffect:D2,useMemo:O2,useReducer:Vc,useRef:w2,useState:function(){return Vc(ii)},useDebugValue:qh,useDeferredValue:function(t,i){var l=Ot();return z2(l,lt.memoizedState,t,i)},useTransition:function(){var t=Vc(ii)[0],i=Ot().memoizedState;return[typeof t=="boolean"?t:ao(t),i]},useSyncExternalStore:o2,useId:L2,useHostTransitionStatus:Vh,useFormState:E2,useActionState:E2,useOptimistic:function(t,i){var l=Ot();return p2(l,lt,t,i)},useMemoCache:Fh,useCacheRefresh:U2};Qh.useEffectEvent=_2;var P2={readContext:rn,use:Pc,useCallback:R2,useContext:rn,useEffect:Hh,useImperativeHandle:T2,useInsertionEffect:k2,useLayoutEffect:D2,useMemo:O2,useReducer:Lh,useRef:w2,useState:function(){return Lh(ii)},useDebugValue:qh,useDeferredValue:function(t,i){var l=Ot();return lt===null?Ih(l,t,i):z2(l,lt.memoizedState,t,i)},useTransition:function(){var t=Lh(ii)[0],i=Ot().memoizedState;return[typeof t=="boolean"?t:ao(t),i]},useSyncExternalStore:o2,useId:L2,useHostTransitionStatus:Vh,useFormState:S2,useActionState:S2,useOptimistic:function(t,i){var l=Ot();return lt!==null?p2(l,lt,t,i):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Fh,useCacheRefresh:U2};P2.useEffectEvent=_2;function Xh(t,i,l,o){i=t.memoizedState,l=l(o,i),l=l==null?i:m({},i,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Gh={enqueueSetState:function(t,i,l){t=t._reactInternals;var o=Xn(),h=qi(o);h.payload=i,l!=null&&(h.callback=l),i=Ii(t,h,o),i!==null&&(Fn(i,t,o),to(i,t,o))},enqueueReplaceState:function(t,i,l){t=t._reactInternals;var o=Xn(),h=qi(o);h.tag=1,h.payload=i,l!=null&&(h.callback=l),i=Ii(t,h,o),i!==null&&(Fn(i,t,o),to(i,t,o))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var l=Xn(),o=qi(l);o.tag=2,i!=null&&(o.callback=i),i=Ii(t,o,l),i!==null&&(Fn(i,t,l),to(i,t,l))}};function V2(t,i,l,o,h,g,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,g,C):i.prototype&&i.prototype.isPureReactComponent?!Xs(l,o)||!Xs(h,g):!0}function Y2(t,i,l,o){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,o),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,o),i.state!==t&&Gh.enqueueReplaceState(i,i.state,null)}function Ia(t,i){var l=i;if("ref"in i){l={};for(var o in i)o!=="ref"&&(l[o]=i[o])}if(t=t.defaultProps){l===i&&(l=m({},l));for(var h in t)l[h]===void 0&&(l[h]=t[h])}return l}function Q2(t){Ac(t)}function X2(t){console.error(t)}function G2(t){Ac(t)}function Gc(t,i){try{var l=t.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(o){setTimeout(function(){throw o})}}function K2(t,i,l){try{var o=t.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Kh(t,i,l){return l=qi(l),l.tag=3,l.payload={element:null},l.callback=function(){Gc(t,i)},l}function $2(t){return t=qi(t),t.tag=3,t}function Z2(t,i,l,o){var h=l.type.getDerivedStateFromError;if(typeof h=="function"){var g=o.value;t.payload=function(){return h(g)},t.callback=function(){K2(i,l,o)}}var C=l.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(t.callback=function(){K2(i,l,o),typeof h!="function"&&(Gi===null?Gi=new Set([this]):Gi.add(this));var B=o.stack;this.componentDidCatch(o.value,{componentStack:B!==null?B:""})})}function S7(t,i,l,o,h){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(i=l.alternate,i!==null&&Ul(i,l,h,!0),l=Pn.current,l!==null){switch(l.tag){case 31:case 13:return ur===null?sf():l.alternate===null&&Dt===0&&(Dt=3),l.flags&=-257,l.flags|=65536,l.lanes=h,o===Fc?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([o]):i.add(o),bp(t,o,h)),!1;case 22:return l.flags|=65536,o===Fc?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([o]):l.add(o)),bp(t,o,h)),!1}throw Error(a(435,l.tag))}return bp(t,o,h),sf(),!1}if(Qe)return i=Pn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,o!==ph&&(t=Error(a(422),{cause:o}),$s(ar(t,l)))):(o!==ph&&(i=Error(a(423),{cause:o}),$s(ar(i,l))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,o=ar(o,l),h=Kh(t.stateNode,o,h),Ah(t,h),Dt!==4&&(Dt=2)),!1;var g=Error(a(520),{cause:o});if(g=ar(g,l),xo===null?xo=[g]:xo.push(g),Dt!==4&&(Dt=2),i===null)return!0;o=ar(o,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,t=h&-h,l.lanes|=t,t=Kh(l.stateNode,o,t),Ah(l,t),!1;case 1:if(i=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Gi===null||!Gi.has(g))))return l.flags|=65536,h&=-h,l.lanes|=h,h=$2(h),Z2(h,t,l,o),Ah(l,h),!1}l=l.return}while(l!==null);return!1}var $h=Error(a(461)),jt=!1;function an(t,i,l,o){i.child=t===null?t2(i,null,l,o):Ha(i,t.child,l,o)}function W2(t,i,l,o,h){l=l.render;var g=i.ref;if("ref"in o){var C={};for(var B in o)B!=="ref"&&(C[B]=o[B])}else C=o;return Ma(i),o=Rh(t,i,l,C,g,h),B=Oh(),t!==null&&!jt?(zh(t,i,h),ai(t,i,h)):(Qe&&B&&dh(i),i.flags|=1,an(t,i,o,h),i.child)}function J2(t,i,l,o,h){if(t===null){var g=l.type;return typeof g=="function"&&!uh(g)&&g.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=g,eE(t,i,g,o,h)):(t=Bc(l.type,null,o,i,i.mode,h),t.ref=i.ref,t.return=i,i.child=t)}if(g=t.child,!ip(t,h)){var C=g.memoizedProps;if(l=l.compare,l=l!==null?l:Xs,l(C,o)&&t.ref===i.ref)return ai(t,i,h)}return i.flags|=1,t=Jr(g,o),t.ref=i.ref,t.return=i,i.child=t}function eE(t,i,l,o,h){if(t!==null){var g=t.memoizedProps;if(Xs(g,o)&&t.ref===i.ref)if(jt=!1,i.pendingProps=o=g,ip(t,h))(t.flags&131072)!==0&&(jt=!0);else return i.lanes=t.lanes,ai(t,i,h)}return Zh(t,i,l,o,h)}function tE(t,i,l,o){var h=o.children,g=t!==null?t.memoizedState:null;if(t===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|l:l,t!==null){for(o=i.child=t.child,h=0;o!==null;)h=h|o.lanes|o.childLanes,o=o.sibling;o=h&~g}else o=0,i.child=null;return nE(t,i,g,l,o)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&zc(i,g!==null?g.cachePool:null),g!==null?i2(i,g):kh(),a2(i);else return o=i.lanes=536870912,nE(t,i,g!==null?g.baseLanes|l:l,l,o)}else g!==null?(zc(i,g.cachePool),i2(i,g),Vi(),i.memoizedState=null):(t!==null&&zc(i,null),kh(),Vi());return an(t,i,h,l),i.child}function oo(t,i){return t!==null&&t.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function nE(t,i,l,o,h){var g=Eh();return g=g===null?null:{parent:Lt._currentValue,pool:g},i.memoizedState={baseLanes:l,cachePool:g},t!==null&&zc(i,null),kh(),a2(i),t!==null&&Ul(t,i,o,!0),i.childLanes=h,null}function Kc(t,i){return i=Zc({mode:i.mode,children:i.children},t.mode),i.ref=t.ref,t.child=i,i.return=t,i}function rE(t,i,l){return Ha(i,t.child,null,l),t=Kc(i,i.pendingProps),t.flags|=2,Vn(i),i.memoizedState=null,t}function w7(t,i,l){var o=i.pendingProps,h=(i.flags&128)!==0;if(i.flags&=-129,t===null){if(Qe){if(o.mode==="hidden")return t=Kc(i,o),i.lanes=536870912,oo(null,t);if(Bh(i),(t=mt)?(t=m4(t,or),t=t!==null&&t.data==="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Mi!==null?{id:Mr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},l=Hb(t),l.return=i,i.child=l,nn=i,mt=null)):t=null,t===null)throw Ui(i);return i.lanes=536870912,null}return Kc(i,o)}var g=t.memoizedState;if(g!==null){var C=g.dehydrated;if(Bh(i),h)if(i.flags&256)i.flags&=-257,i=rE(t,i,l);else if(i.memoizedState!==null)i.child=t.child,i.flags|=128,i=null;else throw Error(a(558));else if(jt||Ul(t,i,l,!1),h=(l&t.childLanes)!==0,jt||h){if(o=ft,o!==null&&(C=Ct(o,l),C!==0&&C!==g.retryLane))throw g.retryLane=C,Oa(t,C),Fn(o,t,C),$h;sf(),i=rE(t,i,l)}else t=g.treeContext,mt=cr(C.nextSibling),nn=i,Qe=!0,Li=null,or=!1,t!==null&&Pb(i,t),i=Kc(i,o),i.flags|=4096;return i}return t=Jr(t.child,{mode:o.mode,children:o.children}),t.ref=i.ref,i.child=t,t.return=i,t}function $c(t,i){var l=i.ref;if(l===null)t!==null&&t.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(t===null||t.ref!==l)&&(i.flags|=4194816)}}function Zh(t,i,l,o,h){return Ma(i),l=Rh(t,i,l,o,void 0,h),o=Oh(),t!==null&&!jt?(zh(t,i,h),ai(t,i,h)):(Qe&&o&&dh(i),i.flags|=1,an(t,i,l,h),i.child)}function iE(t,i,l,o,h,g){return Ma(i),i.updateQueue=null,l=s2(i,o,l,h),l2(t),o=Oh(),t!==null&&!jt?(zh(t,i,g),ai(t,i,g)):(Qe&&o&&dh(i),i.flags|=1,an(t,i,l,g),i.child)}function aE(t,i,l,o,h){if(Ma(i),i.stateNode===null){var g=Nl,C=l.contextType;typeof C=="object"&&C!==null&&(g=rn(C)),g=new l(o,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Gh,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=o,g.state=i.memoizedState,g.refs={},Sh(i),C=l.contextType,g.context=typeof C=="object"&&C!==null?rn(C):Nl,g.state=i.memoizedState,C=l.getDerivedStateFromProps,typeof C=="function"&&(Xh(i,l,C,o),g.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(C=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),C!==g.state&&Gh.enqueueReplaceState(g,g.state,null),ro(i,o,g,h),no(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),o=!0}else if(t===null){g=i.stateNode;var B=i.memoizedProps,H=Ia(l,B);g.props=H;var Z=g.context,le=l.contextType;C=Nl,typeof le=="object"&&le!==null&&(C=rn(le));var oe=l.getDerivedStateFromProps;le=typeof oe=="function"||typeof g.getSnapshotBeforeUpdate=="function",B=i.pendingProps!==B,le||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(B||Z!==C)&&Y2(i,g,o,C),Hi=!1;var ee=i.memoizedState;g.state=ee,ro(i,o,g,h),no(),Z=i.memoizedState,B||ee!==Z||Hi?(typeof oe=="function"&&(Xh(i,l,oe,o),Z=i.memoizedState),(H=Hi||V2(i,l,H,o,ee,Z,C))?(le||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=o,i.memoizedState=Z),g.props=o,g.state=Z,g.context=C,o=H):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),o=!1)}else{g=i.stateNode,wh(t,i),C=i.memoizedProps,le=Ia(l,C),g.props=le,oe=i.pendingProps,ee=g.context,Z=l.contextType,H=Nl,typeof Z=="object"&&Z!==null&&(H=rn(Z)),B=l.getDerivedStateFromProps,(Z=typeof B=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(C!==oe||ee!==H)&&Y2(i,g,o,H),Hi=!1,ee=i.memoizedState,g.state=ee,ro(i,o,g,h),no();var re=i.memoizedState;C!==oe||ee!==re||Hi||t!==null&&t.dependencies!==null&&Rc(t.dependencies)?(typeof B=="function"&&(Xh(i,l,B,o),re=i.memoizedState),(le=Hi||V2(i,l,le,o,ee,re,H)||t!==null&&t.dependencies!==null&&Rc(t.dependencies))?(Z||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(o,re,H),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(o,re,H)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&ee===t.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&ee===t.memoizedState||(i.flags|=1024),i.memoizedProps=o,i.memoizedState=re),g.props=o,g.state=re,g.context=H,o=le):(typeof g.componentDidUpdate!="function"||C===t.memoizedProps&&ee===t.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&ee===t.memoizedState||(i.flags|=1024),o=!1)}return g=o,$c(t,i),o=(i.flags&128)!==0,g||o?(g=i.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,t!==null&&o?(i.child=Ha(i,t.child,null,h),i.child=Ha(i,null,l,h)):an(t,i,l,h),i.memoizedState=g.state,t=i.child):t=ai(t,i,h),t}function lE(t,i,l,o){return Na(),i.flags|=256,an(t,i,l,o),i.child}var Wh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jh(t){return{baseLanes:t,cachePool:Kb()}}function ep(t,i,l){return t=t!==null?t.childLanes&~l:0,i&&(t|=Qn),t}function sE(t,i,l){var o=i.pendingProps,h=!1,g=(i.flags&128)!==0,C;if((C=g)||(C=t!==null&&t.memoizedState===null?!1:(Rt.current&2)!==0),C&&(h=!0,i.flags&=-129),C=(i.flags&32)!==0,i.flags&=-33,t===null){if(Qe){if(h?Pi(i):Vi(),(t=mt)?(t=m4(t,or),t=t!==null&&t.data!=="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Mi!==null?{id:Mr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},l=Hb(t),l.return=i,i.child=l,nn=i,mt=null)):t=null,t===null)throw Ui(i);return Mp(t)?i.lanes=32:i.lanes=536870912,null}var B=o.children;return o=o.fallback,h?(Vi(),h=i.mode,B=Zc({mode:"hidden",children:B},h),o=za(o,h,l,null),B.return=i,o.return=i,B.sibling=o,i.child=B,o=i.child,o.memoizedState=Jh(l),o.childLanes=ep(t,C,l),i.memoizedState=Wh,oo(null,o)):(Pi(i),tp(i,B))}var H=t.memoizedState;if(H!==null&&(B=H.dehydrated,B!==null)){if(g)i.flags&256?(Pi(i),i.flags&=-257,i=np(t,i,l)):i.memoizedState!==null?(Vi(),i.child=t.child,i.flags|=128,i=null):(Vi(),B=o.fallback,h=i.mode,o=Zc({mode:"visible",children:o.children},h),B=za(B,h,l,null),B.flags|=2,o.return=i,B.return=i,o.sibling=B,i.child=o,Ha(i,t.child,null,l),o=i.child,o.memoizedState=Jh(l),o.childLanes=ep(t,C,l),i.memoizedState=Wh,i=oo(null,o));else if(Pi(i),Mp(B)){if(C=B.nextSibling&&B.nextSibling.dataset,C)var Z=C.dgst;C=Z,o=Error(a(419)),o.stack="",o.digest=C,$s({value:o,source:null,stack:null}),i=np(t,i,l)}else if(jt||Ul(t,i,l,!1),C=(l&t.childLanes)!==0,jt||C){if(C=ft,C!==null&&(o=Ct(C,l),o!==0&&o!==H.retryLane))throw H.retryLane=o,Oa(t,o),Fn(C,t,o),$h;Fp(B)||sf(),i=np(t,i,l)}else Fp(B)?(i.flags|=192,i.child=t.child,i=null):(t=H.treeContext,mt=cr(B.nextSibling),nn=i,Qe=!0,Li=null,or=!1,t!==null&&Pb(i,t),i=tp(i,o.children),i.flags|=4096);return i}return h?(Vi(),B=o.fallback,h=i.mode,H=t.child,Z=H.sibling,o=Jr(H,{mode:"hidden",children:o.children}),o.subtreeFlags=H.subtreeFlags&65011712,Z!==null?B=Jr(Z,B):(B=za(B,h,l,null),B.flags|=2),B.return=i,o.return=i,o.sibling=B,i.child=o,oo(null,o),o=i.child,B=t.child.memoizedState,B===null?B=Jh(l):(h=B.cachePool,h!==null?(H=Lt._currentValue,h=h.parent!==H?{parent:H,pool:H}:h):h=Kb(),B={baseLanes:B.baseLanes|l,cachePool:h}),o.memoizedState=B,o.childLanes=ep(t,C,l),i.memoizedState=Wh,oo(t.child,o)):(Pi(i),l=t.child,t=l.sibling,l=Jr(l,{mode:"visible",children:o.children}),l.return=i,l.sibling=null,t!==null&&(C=i.deletions,C===null?(i.deletions=[t],i.flags|=16):C.push(t)),i.child=l,i.memoizedState=null,l)}function tp(t,i){return i=Zc({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function Zc(t,i){return t=In(22,t,null,i),t.lanes=0,t}function np(t,i,l){return Ha(i,t.child,null,l),t=tp(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function oE(t,i,l){t.lanes|=i;var o=t.alternate;o!==null&&(o.lanes|=i),gh(t.return,i,l)}function rp(t,i,l,o,h,g){var C=t.memoizedState;C===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:h,treeForkCount:g}:(C.isBackwards=i,C.rendering=null,C.renderingStartTime=0,C.last=o,C.tail=l,C.tailMode=h,C.treeForkCount=g)}function uE(t,i,l){var o=i.pendingProps,h=o.revealOrder,g=o.tail;o=o.children;var C=Rt.current,B=(C&2)!==0;if(B?(C=C&1|2,i.flags|=128):C&=1,_(Rt,C),an(t,i,o,l),o=Qe?Ks:0,!B&&t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&oE(t,l,i);else if(t.tag===19)oE(t,l,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(h){case"forwards":for(l=i.child,h=null;l!==null;)t=l.alternate,t!==null&&jc(t)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),rp(i,!1,h,l,g,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,h=i.child,i.child=null;h!==null;){if(t=h.alternate,t!==null&&jc(t)===null){i.child=h;break}t=h.sibling,h.sibling=l,l=h,h=t}rp(i,!0,l,null,g,o);break;case"together":rp(i,!1,null,null,void 0,o);break;default:i.memoizedState=null}return i.child}function ai(t,i,l){if(t!==null&&(i.dependencies=t.dependencies),Xi|=i.lanes,(l&i.childLanes)===0)if(t!==null){if(Ul(t,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(t!==null&&i.child!==t.child)throw Error(a(153));if(i.child!==null){for(t=i.child,l=Jr(t,t.pendingProps),i.child=l,l.return=i;t.sibling!==null;)t=t.sibling,l=l.sibling=Jr(t,t.pendingProps),l.return=i;l.sibling=null}return i.child}function ip(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&Rc(t)))}function A7(t,i,l){switch(i.tag){case 3:de(i,i.stateNode.containerInfo),ji(i,Lt,t.memoizedState.cache),Na();break;case 27:case 5:nt(i);break;case 4:de(i,i.stateNode.containerInfo);break;case 10:ji(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Bh(i),null;break;case 13:var o=i.memoizedState;if(o!==null)return o.dehydrated!==null?(Pi(i),i.flags|=128,null):(l&i.child.childLanes)!==0?sE(t,i,l):(Pi(i),t=ai(t,i,l),t!==null?t.sibling:null);Pi(i);break;case 19:var h=(t.flags&128)!==0;if(o=(l&i.childLanes)!==0,o||(Ul(t,i,l,!1),o=(l&i.childLanes)!==0),h){if(o)return uE(t,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),_(Rt,Rt.current),o)break;return null;case 22:return i.lanes=0,tE(t,i,l,i.pendingProps);case 24:ji(i,Lt,t.memoizedState.cache)}return ai(t,i,l)}function cE(t,i,l){if(t!==null)if(t.memoizedProps!==i.pendingProps)jt=!0;else{if(!ip(t,l)&&(i.flags&128)===0)return jt=!1,A7(t,i,l);jt=(t.flags&131072)!==0}else jt=!1,Qe&&(i.flags&1048576)!==0&&Ib(i,Ks,i.index);switch(i.lanes=0,i.tag){case 16:e:{var o=i.pendingProps;if(t=Ua(i.elementType),i.type=t,typeof t=="function")uh(t)?(o=Ia(t,o),i.tag=1,i=aE(null,i,t,o,l)):(i.tag=0,i=Zh(null,i,t,o,l));else{if(t!=null){var h=t.$$typeof;if(h===D){i.tag=11,i=W2(null,i,t,o,l);break e}else if(h===z){i.tag=14,i=J2(null,i,t,o,l);break e}}throw i=ie(t)||t,Error(a(306,i,""))}}return i;case 0:return Zh(t,i,i.type,i.pendingProps,l);case 1:return o=i.type,h=Ia(o,i.pendingProps),aE(t,i,o,h,l);case 3:e:{if(de(i,i.stateNode.containerInfo),t===null)throw Error(a(387));o=i.pendingProps;var g=i.memoizedState;h=g.element,wh(t,i),ro(i,o,null,l);var C=i.memoizedState;if(o=C.cache,ji(i,Lt,o),o!==g.cache&&yh(i,[Lt],l,!0),no(),o=C.element,g.isDehydrated)if(g={element:o,isDehydrated:!1,cache:C.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=lE(t,i,o,l);break e}else if(o!==h){h=ar(Error(a(424)),i),$s(h),i=lE(t,i,o,l);break e}else{switch(t=i.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(mt=cr(t.firstChild),nn=i,Qe=!0,Li=null,or=!0,l=t2(i,null,o,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Na(),o===h){i=ai(t,i,l);break e}an(t,i,o,l)}i=i.child}return i;case 26:return $c(t,i),t===null?(l=E4(i.type,null,i.pendingProps,null))?i.memoizedState=l:Qe||(l=i.type,t=i.pendingProps,o=pf(ce.current).createElement(l),o[tn]=i,o[Bn]=t,ln(o,l,t),Wt(o),i.stateNode=o):i.memoizedState=E4(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return nt(i),t===null&&Qe&&(o=i.stateNode=y4(i.type,i.pendingProps,ce.current),nn=i,or=!0,h=mt,Wi(i.type)?(Lp=h,mt=cr(o.firstChild)):mt=h),an(t,i,i.pendingProps.children,l),$c(t,i),t===null&&(i.flags|=4194304),i.child;case 5:return t===null&&Qe&&((h=o=mt)&&(o=tO(o,i.type,i.pendingProps,or),o!==null?(i.stateNode=o,nn=i,mt=cr(o.firstChild),or=!1,h=!0):h=!1),h||Ui(i)),nt(i),h=i.type,g=i.pendingProps,C=t!==null?t.memoizedProps:null,o=g.children,Op(h,g)?o=null:C!==null&&Op(h,C)&&(i.flags|=32),i.memoizedState!==null&&(h=Rh(t,i,x7,null,null,l),wo._currentValue=h),$c(t,i),an(t,i,o,l),i.child;case 6:return t===null&&Qe&&((t=l=mt)&&(l=nO(l,i.pendingProps,or),l!==null?(i.stateNode=l,nn=i,mt=null,t=!0):t=!1),t||Ui(i)),null;case 13:return sE(t,i,l);case 4:return de(i,i.stateNode.containerInfo),o=i.pendingProps,t===null?i.child=Ha(i,null,o,l):an(t,i,o,l),i.child;case 11:return W2(t,i,i.type,i.pendingProps,l);case 7:return an(t,i,i.pendingProps,l),i.child;case 8:return an(t,i,i.pendingProps.children,l),i.child;case 12:return an(t,i,i.pendingProps.children,l),i.child;case 10:return o=i.pendingProps,ji(i,i.type,o.value),an(t,i,o.children,l),i.child;case 9:return h=i.type._context,o=i.pendingProps.children,Ma(i),h=rn(h),o=o(h),i.flags|=1,an(t,i,o,l),i.child;case 14:return J2(t,i,i.type,i.pendingProps,l);case 15:return eE(t,i,i.type,i.pendingProps,l);case 19:return uE(t,i,l);case 31:return w7(t,i,l);case 22:return tE(t,i,l,i.pendingProps);case 24:return Ma(i),o=rn(Lt),t===null?(h=Eh(),h===null&&(h=ft,g=vh(),h.pooledCache=g,g.refCount++,g!==null&&(h.pooledCacheLanes|=l),h=g),i.memoizedState={parent:o,cache:h},Sh(i),ji(i,Lt,h)):((t.lanes&l)!==0&&(wh(t,i),ro(i,null,null,l),no()),h=t.memoizedState,g=i.memoizedState,h.parent!==o?(h={parent:o,cache:o},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),ji(i,Lt,o)):(o=g.cache,ji(i,Lt,o),o!==h.cache&&yh(i,[Lt],l,!0))),an(t,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function li(t){t.flags|=4}function ap(t,i,l,o,h){if((i=(t.mode&32)!==0)&&(i=!1),i){if(t.flags|=16777216,(h&335544128)===h)if(t.stateNode.complete)t.flags|=8192;else if(LE())t.flags|=8192;else throw ja=Fc,Ch}else t.flags&=-16777217}function fE(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_4(i))if(LE())t.flags|=8192;else throw ja=Fc,Ch}function Wc(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?Zt():536870912,t.lanes|=i,$l|=i)}function uo(t,i){if(!Qe)switch(t.tailMode){case"hidden":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function xt(t){var i=t.alternate!==null&&t.alternate.child===t.child,l=0,o=0;if(i)for(var h=t.child;h!==null;)l|=h.lanes|h.childLanes,o|=h.subtreeFlags&65011712,o|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)l|=h.lanes|h.childLanes,o|=h.subtreeFlags,o|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=o,t.childLanes=l,i}function _7(t,i,l){var o=i.pendingProps;switch(hh(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(i),null;case 1:return xt(i),null;case 3:return l=i.stateNode,o=null,t!==null&&(o=t.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),ni(Lt),Be(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Ll(i)?li(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,mh())),xt(i),null;case 26:var h=i.type,g=i.memoizedState;return t===null?(li(i),g!==null?(xt(i),fE(i,g)):(xt(i),ap(i,h,null,o,l))):g?g!==t.memoizedState?(li(i),xt(i),fE(i,g)):(xt(i),i.flags&=-16777217):(t=t.memoizedProps,t!==o&&li(i),xt(i),ap(i,h,t,o,l)),null;case 27:if(wt(i),l=ce.current,h=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==o&&li(i);else{if(!o){if(i.stateNode===null)throw Error(a(166));return xt(i),null}t=I.current,Ll(i)?Vb(i):(t=y4(h,o,l),i.stateNode=t,li(i))}return xt(i),null;case 5:if(wt(i),h=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==o&&li(i);else{if(!o){if(i.stateNode===null)throw Error(a(166));return xt(i),null}if(g=I.current,Ll(i))Vb(i);else{var C=pf(ce.current);switch(g){case 1:g=C.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:g=C.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":g=C.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":g=C.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":g=C.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof o.is=="string"?C.createElement("select",{is:o.is}):C.createElement("select"),o.multiple?g.multiple=!0:o.size&&(g.size=o.size);break;default:g=typeof o.is=="string"?C.createElement(h,{is:o.is}):C.createElement(h)}}g[tn]=i,g[Bn]=o;e:for(C=i.child;C!==null;){if(C.tag===5||C.tag===6)g.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===i)break e;for(;C.sibling===null;){if(C.return===null||C.return===i)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}i.stateNode=g;e:switch(ln(g,h,o),h){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&li(i)}}return xt(i),ap(i,i.type,t===null?null:t.memoizedProps,i.pendingProps,l),null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==o&&li(i);else{if(typeof o!="string"&&i.stateNode===null)throw Error(a(166));if(t=ce.current,Ll(i)){if(t=i.stateNode,l=i.memoizedProps,o=null,h=nn,h!==null)switch(h.tag){case 27:case 5:o=h.memoizedProps}t[tn]=i,t=!!(t.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||s4(t.nodeValue,l)),t||Ui(i,!0)}else t=pf(t).createTextNode(o),t[tn]=i,i.stateNode=t}return xt(i),null;case 31:if(l=i.memoizedState,t===null||t.memoizedState!==null){if(o=Ll(i),l!==null){if(t===null){if(!o)throw Error(a(318));if(t=i.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[tn]=i}else Na(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;xt(i),t=!1}else l=mh(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return i.flags&256?(Vn(i),i):(Vn(i),null);if((i.flags&128)!==0)throw Error(a(558))}return xt(i),null;case 13:if(o=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=Ll(i),o!==null&&o.dehydrated!==null){if(t===null){if(!h)throw Error(a(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[tn]=i}else Na(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;xt(i),h=!1}else h=mh(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(Vn(i),i):(Vn(i),null)}return Vn(i),(i.flags&128)!==0?(i.lanes=l,i):(l=o!==null,t=t!==null&&t.memoizedState!==null,l&&(o=i.child,h=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(h=o.alternate.memoizedState.cachePool.pool),g=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(g=o.memoizedState.cachePool.pool),g!==h&&(o.flags|=2048)),l!==t&&l&&(i.child.flags|=8192),Wc(i,i.updateQueue),xt(i),null);case 4:return Be(),t===null&&kp(i.stateNode.containerInfo),xt(i),null;case 10:return ni(i.type),xt(i),null;case 19:if(U(Rt),o=i.memoizedState,o===null)return xt(i),null;if(h=(i.flags&128)!==0,g=o.rendering,g===null)if(h)uo(o,!1);else{if(Dt!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(g=jc(t),g!==null){for(i.flags|=128,uo(o,!1),t=g.updateQueue,i.updateQueue=t,Wc(i,t),i.subtreeFlags=0,t=l,l=i.child;l!==null;)jb(l,t),l=l.sibling;return _(Rt,Rt.current&1|2),Qe&&ei(i,o.treeForkCount),i.child}t=t.sibling}o.tail!==null&&At()>rf&&(i.flags|=128,h=!0,uo(o,!1),i.lanes=4194304)}else{if(!h)if(t=jc(g),t!==null){if(i.flags|=128,h=!0,t=t.updateQueue,i.updateQueue=t,Wc(i,t),uo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!g.alternate&&!Qe)return xt(i),null}else 2*At()-o.renderingStartTime>rf&&l!==536870912&&(i.flags|=128,h=!0,uo(o,!1),i.lanes=4194304);o.isBackwards?(g.sibling=i.child,i.child=g):(t=o.last,t!==null?t.sibling=g:i.child=g,o.last=g)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=At(),t.sibling=null,l=Rt.current,_(Rt,h?l&1|2:l&1),Qe&&ei(i,o.treeForkCount),t):(xt(i),null);case 22:case 23:return Vn(i),Dh(),o=i.memoizedState!==null,t!==null?t.memoizedState!==null!==o&&(i.flags|=8192):o&&(i.flags|=8192),o?(l&536870912)!==0&&(i.flags&128)===0&&(xt(i),i.subtreeFlags&6&&(i.flags|=8192)):xt(i),l=i.updateQueue,l!==null&&Wc(i,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==l&&(i.flags|=2048),t!==null&&U(La),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ni(Lt),xt(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function k7(t,i){switch(hh(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return ni(Lt),Be(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return wt(i),null;case 31:if(i.memoizedState!==null){if(Vn(i),i.alternate===null)throw Error(a(340));Na()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 13:if(Vn(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(a(340));Na()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return U(Rt),null;case 4:return Be(),null;case 10:return ni(i.type),null;case 22:case 23:return Vn(i),Dh(),t!==null&&U(La),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return ni(Lt),null;case 25:return null;default:return null}}function dE(t,i){switch(hh(i),i.tag){case 3:ni(Lt),Be();break;case 26:case 27:case 5:wt(i);break;case 4:Be();break;case 31:i.memoizedState!==null&&Vn(i);break;case 13:Vn(i);break;case 19:U(Rt);break;case 10:ni(i.type);break;case 22:case 23:Vn(i),Dh(),t!==null&&U(La);break;case 24:ni(Lt)}}function co(t,i){try{var l=i.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var h=o.next;l=h;do{if((l.tag&t)===t){o=void 0;var g=l.create,C=l.inst;o=g(),C.destroy=o}l=l.next}while(l!==h)}}catch(B){it(i,i.return,B)}}function Yi(t,i,l){try{var o=i.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var g=h.next;o=g;do{if((o.tag&t)===t){var C=o.inst,B=C.destroy;if(B!==void 0){C.destroy=void 0,h=i;var H=l,Z=B;try{Z()}catch(le){it(h,H,le)}}}o=o.next}while(o!==g)}}catch(le){it(i,i.return,le)}}function hE(t){var i=t.updateQueue;if(i!==null){var l=t.stateNode;try{r2(i,l)}catch(o){it(t,t.return,o)}}}function pE(t,i,l){l.props=Ia(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(o){it(t,i,o)}}function fo(t,i){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var o=t.stateNode;break;case 30:o=t.stateNode;break;default:o=t.stateNode}typeof l=="function"?t.refCleanup=l(o):l.current=o}}catch(h){it(t,i,h)}}function Ur(t,i){var l=t.ref,o=t.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(h){it(t,i,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(h){it(t,i,h)}else l.current=null}function mE(t){var i=t.type,l=t.memoizedProps,o=t.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(h){it(t,t.return,h)}}function lp(t,i,l){try{var o=t.stateNode;K7(o,t.type,l,i),o[Bn]=i}catch(h){it(t,t.return,h)}}function xE(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Wi(t.type)||t.tag===4}function sp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||xE(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Wi(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function op(t,i,l){var o=t.tag;if(o===5||o===6)t=t.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(t),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Zr));else if(o!==4&&(o===27&&Wi(t.type)&&(l=t.stateNode,i=null),t=t.child,t!==null))for(op(t,i,l),t=t.sibling;t!==null;)op(t,i,l),t=t.sibling}function Jc(t,i,l){var o=t.tag;if(o===5||o===6)t=t.stateNode,i?l.insertBefore(t,i):l.appendChild(t);else if(o!==4&&(o===27&&Wi(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Jc(t,i,l),t=t.sibling;t!==null;)Jc(t,i,l),t=t.sibling}function gE(t){var i=t.stateNode,l=t.memoizedProps;try{for(var o=t.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);ln(i,o,l),i[tn]=t,i[Bn]=l}catch(g){it(t,t.return,g)}}var si=!1,Ht=!1,up=!1,yE=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function D7(t,i){if(t=t.containerInfo,Tp=Ef,t=Tb(t),nh(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var h=o.anchorOffset,g=o.focusNode;o=o.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var C=0,B=-1,H=-1,Z=0,le=0,oe=t,ee=null;t:for(;;){for(var re;oe!==l||h!==0&&oe.nodeType!==3||(B=C+h),oe!==g||o!==0&&oe.nodeType!==3||(H=C+o),oe.nodeType===3&&(C+=oe.nodeValue.length),(re=oe.firstChild)!==null;)ee=oe,oe=re;for(;;){if(oe===t)break t;if(ee===l&&++Z===h&&(B=C),ee===g&&++le===o&&(H=C),(re=oe.nextSibling)!==null)break;oe=ee,ee=oe.parentNode}oe=re}l=B===-1||H===-1?null:{start:B,end:H}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rp={focusedElem:t,selectionRange:l},Ef=!1,Jt=i;Jt!==null;)if(i=Jt,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,Jt=t;else for(;Jt!==null;){switch(i=Jt,g=i.alternate,t=i.flags,i.tag){case 0:if((t&4)!==0&&(t=i.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)h=t[l],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&g!==null){t=void 0,l=i,h=g.memoizedProps,g=g.memoizedState,o=l.stateNode;try{var ye=Ia(l.type,h);t=o.getSnapshotBeforeUpdate(ye,g),o.__reactInternalSnapshotBeforeUpdate=t}catch(_e){it(l,l.return,_e)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,l=t.nodeType,l===9)Np(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Np(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(a(163))}if(t=i.sibling,t!==null){t.return=i.return,Jt=t;break}Jt=i.return}}function vE(t,i,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:ui(t,l),o&4&&co(5,l);break;case 1:if(ui(t,l),o&4)if(t=l.stateNode,i===null)try{t.componentDidMount()}catch(C){it(l,l.return,C)}else{var h=Ia(l.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(h,i,t.__reactInternalSnapshotBeforeUpdate)}catch(C){it(l,l.return,C)}}o&64&&hE(l),o&512&&fo(l,l.return);break;case 3:if(ui(t,l),o&64&&(t=l.updateQueue,t!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{r2(t,i)}catch(C){it(l,l.return,C)}}break;case 27:i===null&&o&4&&gE(l);case 26:case 5:ui(t,l),i===null&&o&4&&mE(l),o&512&&fo(l,l.return);break;case 12:ui(t,l);break;case 31:ui(t,l),o&4&&CE(t,l);break;case 13:ui(t,l),o&4&&SE(t,l),o&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=L7.bind(null,l),rO(t,l))));break;case 22:if(o=l.memoizedState!==null||si,!o){i=i!==null&&i.memoizedState!==null||Ht,h=si;var g=Ht;si=o,(Ht=i)&&!g?ci(t,l,(l.subtreeFlags&8772)!==0):ui(t,l),si=h,Ht=g}break;case 30:break;default:ui(t,l)}}function bE(t){var i=t.alternate;i!==null&&(t.alternate=null,bE(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&jd(i)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var yt=null,Rn=!1;function oi(t,i,l){for(l=l.child;l!==null;)EE(t,i,l),l=l.sibling}function EE(t,i,l){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Yt,l)}catch{}switch(l.tag){case 26:Ht||Ur(l,i),oi(t,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ht||Ur(l,i);var o=yt,h=Rn;Wi(l.type)&&(yt=l.stateNode,Rn=!1),oi(t,i,l),Eo(l.stateNode),yt=o,Rn=h;break;case 5:Ht||Ur(l,i);case 6:if(o=yt,h=Rn,yt=null,oi(t,i,l),yt=o,Rn=h,yt!==null)if(Rn)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(l.stateNode)}catch(g){it(l,i,g)}else try{yt.removeChild(l.stateNode)}catch(g){it(l,i,g)}break;case 18:yt!==null&&(Rn?(t=yt,h4(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),is(t)):h4(yt,l.stateNode));break;case 4:o=yt,h=Rn,yt=l.stateNode.containerInfo,Rn=!0,oi(t,i,l),yt=o,Rn=h;break;case 0:case 11:case 14:case 15:Yi(2,l,i),Ht||Yi(4,l,i),oi(t,i,l);break;case 1:Ht||(Ur(l,i),o=l.stateNode,typeof o.componentWillUnmount=="function"&&pE(l,i,o)),oi(t,i,l);break;case 21:oi(t,i,l);break;case 22:Ht=(o=Ht)||l.memoizedState!==null,oi(t,i,l),Ht=o;break;default:oi(t,i,l)}}function CE(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{is(t)}catch(l){it(i,i.return,l)}}}function SE(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{is(t)}catch(l){it(i,i.return,l)}}function B7(t){switch(t.tag){case 31:case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new yE),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new yE),i;default:throw Error(a(435,t.tag))}}function ef(t,i){var l=B7(t);i.forEach(function(o){if(!l.has(o)){l.add(o);var h=U7.bind(null,t,o);o.then(h,h)}})}function On(t,i){var l=i.deletions;if(l!==null)for(var o=0;o<l.length;o++){var h=l[o],g=t,C=i,B=C;e:for(;B!==null;){switch(B.tag){case 27:if(Wi(B.type)){yt=B.stateNode,Rn=!1;break e}break;case 5:yt=B.stateNode,Rn=!1;break e;case 3:case 4:yt=B.stateNode.containerInfo,Rn=!0;break e}B=B.return}if(yt===null)throw Error(a(160));EE(g,C,h),yt=null,Rn=!1,g=h.alternate,g!==null&&(g.return=null),h.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)wE(i,t),i=i.sibling}var br=null;function wE(t,i){var l=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:On(i,t),zn(t),o&4&&(Yi(3,t,t.return),co(3,t),Yi(5,t,t.return));break;case 1:On(i,t),zn(t),o&512&&(Ht||l===null||Ur(l,l.return)),o&64&&si&&(t=t.updateQueue,t!==null&&(o=t.callbacks,o!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var h=br;if(On(i,t),zn(t),o&512&&(Ht||l===null||Ur(l,l.return)),o&4){var g=l!==null?l.memoizedState:null;if(o=t.memoizedState,l===null)if(o===null)if(t.stateNode===null){e:{o=t.type,l=t.memoizedProps,h=h.ownerDocument||h;t:switch(o){case"title":g=h.getElementsByTagName("title")[0],(!g||g[Us]||g[tn]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=h.createElement(o),h.head.insertBefore(g,h.querySelector("head > title"))),ln(g,o,l),g[tn]=t,Wt(g),o=g;break e;case"link":var C=w4("link","href",h).get(o+(l.href||""));if(C){for(var B=0;B<C.length;B++)if(g=C[B],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){C.splice(B,1);break t}}g=h.createElement(o),ln(g,o,l),h.head.appendChild(g);break;case"meta":if(C=w4("meta","content",h).get(o+(l.content||""))){for(B=0;B<C.length;B++)if(g=C[B],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){C.splice(B,1);break t}}g=h.createElement(o),ln(g,o,l),h.head.appendChild(g);break;default:throw Error(a(468,o))}g[tn]=t,Wt(g),o=g}t.stateNode=o}else A4(h,t.type,t.stateNode);else t.stateNode=S4(h,o,t.memoizedProps);else g!==o?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,o===null?A4(h,t.type,t.stateNode):S4(h,o,t.memoizedProps)):o===null&&t.stateNode!==null&&lp(t,t.memoizedProps,l.memoizedProps)}break;case 27:On(i,t),zn(t),o&512&&(Ht||l===null||Ur(l,l.return)),l!==null&&o&4&&lp(t,t.memoizedProps,l.memoizedProps);break;case 5:if(On(i,t),zn(t),o&512&&(Ht||l===null||Ur(l,l.return)),t.flags&32){h=t.stateNode;try{kl(h,"")}catch(ye){it(t,t.return,ye)}}o&4&&t.stateNode!=null&&(h=t.memoizedProps,lp(t,h,l!==null?l.memoizedProps:h)),o&1024&&(up=!0);break;case 6:if(On(i,t),zn(t),o&4){if(t.stateNode===null)throw Error(a(162));o=t.memoizedProps,l=t.stateNode;try{l.nodeValue=o}catch(ye){it(t,t.return,ye)}}break;case 3:if(gf=null,h=br,br=mf(i.containerInfo),On(i,t),br=h,zn(t),o&4&&l!==null&&l.memoizedState.isDehydrated)try{is(i.containerInfo)}catch(ye){it(t,t.return,ye)}up&&(up=!1,AE(t));break;case 4:o=br,br=mf(t.stateNode.containerInfo),On(i,t),zn(t),br=o;break;case 12:On(i,t),zn(t);break;case 31:On(i,t),zn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,ef(t,o)));break;case 13:On(i,t),zn(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(nf=At()),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,ef(t,o)));break;case 22:h=t.memoizedState!==null;var H=l!==null&&l.memoizedState!==null,Z=si,le=Ht;if(si=Z||h,Ht=le||H,On(i,t),Ht=le,si=Z,zn(t),o&8192)e:for(i=t.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(l===null||H||si||Ht||Pa(t)),l=null,i=t;;){if(i.tag===5||i.tag===26){if(l===null){H=l=i;try{if(g=H.stateNode,h)C=g.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{B=H.stateNode;var oe=H.memoizedProps.style,ee=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;B.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(ye){it(H,H.return,ye)}}}else if(i.tag===6){if(l===null){H=i;try{H.stateNode.nodeValue=h?"":H.memoizedProps}catch(ye){it(H,H.return,ye)}}}else if(i.tag===18){if(l===null){H=i;try{var re=H.stateNode;h?p4(re,!0):p4(H.stateNode,!1)}catch(ye){it(H,H.return,ye)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===t)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}o&4&&(o=t.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,ef(t,l))));break;case 19:On(i,t),zn(t),o&4&&(o=t.updateQueue,o!==null&&(t.updateQueue=null,ef(t,o)));break;case 30:break;case 21:break;default:On(i,t),zn(t)}}function zn(t){var i=t.flags;if(i&2){try{for(var l,o=t.return;o!==null;){if(xE(o)){l=o;break}o=o.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var h=l.stateNode,g=sp(t);Jc(t,g,h);break;case 5:var C=l.stateNode;l.flags&32&&(kl(C,""),l.flags&=-33);var B=sp(t);Jc(t,B,C);break;case 3:case 4:var H=l.stateNode.containerInfo,Z=sp(t);op(t,Z,H);break;default:throw Error(a(161))}}catch(le){it(t,t.return,le)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function AE(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;AE(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function ui(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)vE(t,i.alternate,i),i=i.sibling}function Pa(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:Yi(4,i,i.return),Pa(i);break;case 1:Ur(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&pE(i,i.return,l),Pa(i);break;case 27:Eo(i.stateNode);case 26:case 5:Ur(i,i.return),Pa(i);break;case 22:i.memoizedState===null&&Pa(i);break;case 30:Pa(i);break;default:Pa(i)}t=t.sibling}}function ci(t,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var o=i.alternate,h=t,g=i,C=g.flags;switch(g.tag){case 0:case 11:case 15:ci(h,g,l),co(4,g);break;case 1:if(ci(h,g,l),o=g,h=o.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(Z){it(o,o.return,Z)}if(o=g,h=o.updateQueue,h!==null){var B=o.stateNode;try{var H=h.shared.hiddenCallbacks;if(H!==null)for(h.shared.hiddenCallbacks=null,h=0;h<H.length;h++)n2(H[h],B)}catch(Z){it(o,o.return,Z)}}l&&C&64&&hE(g),fo(g,g.return);break;case 27:gE(g);case 26:case 5:ci(h,g,l),l&&o===null&&C&4&&mE(g),fo(g,g.return);break;case 12:ci(h,g,l);break;case 31:ci(h,g,l),l&&C&4&&CE(h,g);break;case 13:ci(h,g,l),l&&C&4&&SE(h,g);break;case 22:g.memoizedState===null&&ci(h,g,l),fo(g,g.return);break;case 30:break;default:ci(h,g,l)}i=i.sibling}}function cp(t,i){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Zs(l))}function fp(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&Zs(t))}function Er(t,i,l,o){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)_E(t,i,l,o),i=i.sibling}function _E(t,i,l,o){var h=i.flags;switch(i.tag){case 0:case 11:case 15:Er(t,i,l,o),h&2048&&co(9,i);break;case 1:Er(t,i,l,o);break;case 3:Er(t,i,l,o),h&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&Zs(t)));break;case 12:if(h&2048){Er(t,i,l,o),t=i.stateNode;try{var g=i.memoizedProps,C=g.id,B=g.onPostCommit;typeof B=="function"&&B(C,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(H){it(i,i.return,H)}}else Er(t,i,l,o);break;case 31:Er(t,i,l,o);break;case 13:Er(t,i,l,o);break;case 23:break;case 22:g=i.stateNode,C=i.alternate,i.memoizedState!==null?g._visibility&2?Er(t,i,l,o):ho(t,i):g._visibility&2?Er(t,i,l,o):(g._visibility|=2,Xl(t,i,l,o,(i.subtreeFlags&10256)!==0||!1)),h&2048&&cp(C,i);break;case 24:Er(t,i,l,o),h&2048&&fp(i.alternate,i);break;default:Er(t,i,l,o)}}function Xl(t,i,l,o,h){for(h=h&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=t,C=i,B=l,H=o,Z=C.flags;switch(C.tag){case 0:case 11:case 15:Xl(g,C,B,H,h),co(8,C);break;case 23:break;case 22:var le=C.stateNode;C.memoizedState!==null?le._visibility&2?Xl(g,C,B,H,h):ho(g,C):(le._visibility|=2,Xl(g,C,B,H,h)),h&&Z&2048&&cp(C.alternate,C);break;case 24:Xl(g,C,B,H,h),h&&Z&2048&&fp(C.alternate,C);break;default:Xl(g,C,B,H,h)}i=i.sibling}}function ho(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=t,o=i,h=o.flags;switch(o.tag){case 22:ho(l,o),h&2048&&cp(o.alternate,o);break;case 24:ho(l,o),h&2048&&fp(o.alternate,o);break;default:ho(l,o)}i=i.sibling}}var po=8192;function Gl(t,i,l){if(t.subtreeFlags&po)for(t=t.child;t!==null;)kE(t,i,l),t=t.sibling}function kE(t,i,l){switch(t.tag){case 26:Gl(t,i,l),t.flags&po&&t.memoizedState!==null&&mO(l,br,t.memoizedState,t.memoizedProps);break;case 5:Gl(t,i,l);break;case 3:case 4:var o=br;br=mf(t.stateNode.containerInfo),Gl(t,i,l),br=o;break;case 22:t.memoizedState===null&&(o=t.alternate,o!==null&&o.memoizedState!==null?(o=po,po=16777216,Gl(t,i,l),po=o):Gl(t,i,l));break;default:Gl(t,i,l)}}function DE(t){var i=t.alternate;if(i!==null&&(t=i.child,t!==null)){i.child=null;do i=t.sibling,t.sibling=null,t=i;while(t!==null)}}function mo(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];Jt=o,TE(o,t)}DE(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)BE(t),t=t.sibling}function BE(t){switch(t.tag){case 0:case 11:case 15:mo(t),t.flags&2048&&Yi(9,t,t.return);break;case 3:mo(t);break;case 12:mo(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&2&&(t.return===null||t.return.tag!==13)?(i._visibility&=-3,tf(t)):mo(t);break;default:mo(t)}}function tf(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var o=i[l];Jt=o,TE(o,t)}DE(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:Yi(8,i,i.return),tf(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,tf(i));break;default:tf(i)}t=t.sibling}}function TE(t,i){for(;Jt!==null;){var l=Jt;switch(l.tag){case 0:case 11:case 15:Yi(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Zs(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Jt=o;else e:for(l=t;Jt!==null;){o=Jt;var h=o.sibling,g=o.return;if(bE(o),o===l){Jt=null;break e}if(h!==null){h.return=g,Jt=h;break e}Jt=g}}}var T7={getCacheForType:function(t){var i=rn(Lt),l=i.data.get(t);return l===void 0&&(l=t(),i.data.set(t,l)),l},cacheSignal:function(){return rn(Lt).controller.signal}},R7=typeof WeakMap=="function"?WeakMap:Map,Je=0,ft=null,je=null,qe=0,rt=0,Yn=null,Qi=!1,Kl=!1,dp=!1,fi=0,Dt=0,Xi=0,Va=0,hp=0,Qn=0,$l=0,xo=null,Nn=null,pp=!1,nf=0,RE=0,rf=1/0,af=null,Gi=null,Qt=0,Ki=null,Zl=null,di=0,mp=0,xp=null,OE=null,go=0,gp=null;function Xn(){return(Je&2)!==0&&qe!==0?qe&-qe:L.T!==null?Sp():Ld()}function zE(){if(Qn===0)if((qe&536870912)===0||Qe){var t=zi;zi<<=1,(zi&3932160)===0&&(zi=262144),Qn=t}else Qn=536870912;return t=Pn.current,t!==null&&(t.flags|=32),Qn}function Fn(t,i,l){(t===ft&&(rt===2||rt===9)||t.cancelPendingCommit!==null)&&(Wl(t,0),$i(t,qe,Qn,!1)),pt(t,l),((Je&2)===0||t!==ft)&&(t===ft&&((Je&2)===0&&(Va|=l),Dt===4&&$i(t,qe,Qn,!1)),jr(t))}function NE(t,i,l){if((Je&6)!==0)throw Error(a(327));var o=!l&&(i&127)===0&&(i&t.expiredLanes)===0||ht(t,i),h=o?N7(t,i):vp(t,i,!0),g=o;do{if(h===0){Kl&&!o&&$i(t,i,0,!1);break}else{if(l=t.current.alternate,g&&!O7(l)){h=vp(t,i,!1),g=!1;continue}if(h===2){if(g=i,t.errorRecoveryDisabledLanes&g)var C=0;else C=t.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){i=C;e:{var B=t;h=xo;var H=B.current.memoizedState.isDehydrated;if(H&&(Wl(B,C).flags|=256),C=vp(B,C,!1),C!==2){if(dp&&!H){B.errorRecoveryDisabledLanes|=g,Va|=g,h=4;break e}g=Nn,Nn=h,g!==null&&(Nn===null?Nn=g:Nn.push.apply(Nn,g))}h=C}if(g=!1,h!==2)continue}}if(h===1){Wl(t,0),$i(t,i,0,!0);break}e:{switch(o=t,g=h,g){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:$i(o,i,Qn,!Qi);break e;case 2:Nn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(h=nf+300-At(),10<h)){if($i(o,i,Qn,!Qi),De(o,0,!0)!==0)break e;di=i,o.timeoutHandle=f4(FE.bind(null,o,l,Nn,af,pp,i,Qn,Va,$l,Qi,g,"Throttled",-0,0),h);break e}FE(o,l,Nn,af,pp,i,Qn,Va,$l,Qi,g,null,-0,0)}}break}while(!0);jr(t)}function FE(t,i,l,o,h,g,C,B,H,Z,le,oe,ee,re){if(t.timeoutHandle=-1,oe=i.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zr},kE(i,g,oe);var ye=(g&62914560)===g?nf-At():(g&4194048)===g?RE-At():0;if(ye=xO(oe,ye),ye!==null){di=g,t.cancelPendingCommit=ye(PE.bind(null,t,i,g,l,o,h,C,B,H,le,oe,null,ee,re)),$i(t,g,C,!Z);return}}PE(t,i,g,l,o,h,C,B,H)}function O7(t){for(var i=t;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var h=l[o],g=h.getSnapshot;h=h.value;try{if(!qn(g(),h))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function $i(t,i,l,o){i&=~hp,i&=~Va,t.suspendedLanes|=i,t.pingedLanes&=~i,o&&(t.warmLanes|=i),o=t.expirationTimes;for(var h=i;0<h;){var g=31-Ke(h),C=1<<g;o[g]=-1,h&=~C}l!==0&&Fr(t,l,i)}function lf(){return(Je&6)===0?(yo(0),!1):!0}function yp(){if(je!==null){if(rt===0)var t=je.return;else t=je,ti=Fa=null,Nh(t),Il=null,Js=0,t=je;for(;t!==null;)dE(t.alternate,t),t=t.return;je=null}}function Wl(t,i){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,W7(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),di=0,yp(),ft=t,je=l=Jr(t.current,null),qe=i,rt=0,Yn=null,Qi=!1,Kl=ht(t,i),dp=!1,$l=Qn=hp=Va=Xi=Dt=0,Nn=xo=null,pp=!1,(i&8)!==0&&(i|=i&32);var o=t.entangledLanes;if(o!==0)for(t=t.entanglements,o&=i;0<o;){var h=31-Ke(o),g=1<<h;i|=t[h],o&=~g}return fi=i,_c(),l}function ME(t,i){Oe=null,L.H=so,i===ql||i===Nc?(i=Wb(),rt=3):i===Ch?(i=Wb(),rt=4):rt=i===$h?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Yn=i,je===null&&(Dt=1,Gc(t,ar(i,t.current)))}function LE(){var t=Pn.current;return t===null?!0:(qe&4194048)===qe?ur===null:(qe&62914560)===qe||(qe&536870912)!==0?t===ur:!1}function UE(){var t=L.H;return L.H=so,t===null?so:t}function jE(){var t=L.A;return L.A=T7,t}function sf(){Dt=4,Qi||(qe&4194048)!==qe&&Pn.current!==null||(Kl=!0),(Xi&134217727)===0&&(Va&134217727)===0||ft===null||$i(ft,qe,Qn,!1)}function vp(t,i,l){var o=Je;Je|=2;var h=UE(),g=jE();(ft!==t||qe!==i)&&(af=null,Wl(t,i)),i=!1;var C=Dt;e:do try{if(rt!==0&&je!==null){var B=je,H=Yn;switch(rt){case 8:yp(),C=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(i=!0);var Z=rt;if(rt=0,Yn=null,Jl(t,B,H,Z),l&&Kl){C=0;break e}break;default:Z=rt,rt=0,Yn=null,Jl(t,B,H,Z)}}z7(),C=Dt;break}catch(le){ME(t,le)}while(!0);return i&&t.shellSuspendCounter++,ti=Fa=null,Je=o,L.H=h,L.A=g,je===null&&(ft=null,qe=0,_c()),C}function z7(){for(;je!==null;)HE(je)}function N7(t,i){var l=Je;Je|=2;var o=UE(),h=jE();ft!==t||qe!==i?(af=null,rf=At()+500,Wl(t,i)):Kl=ht(t,i);e:do try{if(rt!==0&&je!==null){i=je;var g=Yn;t:switch(rt){case 1:rt=0,Yn=null,Jl(t,i,g,1);break;case 2:case 9:if($b(g)){rt=0,Yn=null,qE(i);break}i=function(){rt!==2&&rt!==9||ft!==t||(rt=7),jr(t)},g.then(i,i);break e;case 3:rt=7;break e;case 4:rt=5;break e;case 7:$b(g)?(rt=0,Yn=null,qE(i)):(rt=0,Yn=null,Jl(t,i,g,7));break;case 5:var C=null;switch(je.tag){case 26:C=je.memoizedState;case 5:case 27:var B=je;if(C?_4(C):B.stateNode.complete){rt=0,Yn=null;var H=B.sibling;if(H!==null)je=H;else{var Z=B.return;Z!==null?(je=Z,of(Z)):je=null}break t}}rt=0,Yn=null,Jl(t,i,g,5);break;case 6:rt=0,Yn=null,Jl(t,i,g,6);break;case 8:yp(),Dt=6;break e;default:throw Error(a(462))}}F7();break}catch(le){ME(t,le)}while(!0);return ti=Fa=null,L.H=o,L.A=h,Je=l,je!==null?0:(ft=null,qe=0,_c(),Dt)}function F7(){for(;je!==null&&!tt();)HE(je)}function HE(t){var i=cE(t.alternate,t,fi);t.memoizedProps=t.pendingProps,i===null?of(t):je=i}function qE(t){var i=t,l=i.alternate;switch(i.tag){case 15:case 0:i=iE(l,i,i.pendingProps,i.type,void 0,qe);break;case 11:i=iE(l,i,i.pendingProps,i.type.render,i.ref,qe);break;case 5:Nh(i);default:dE(l,i),i=je=jb(i,fi),i=cE(l,i,fi)}t.memoizedProps=t.pendingProps,i===null?of(t):je=i}function Jl(t,i,l,o){ti=Fa=null,Nh(i),Il=null,Js=0;var h=i.return;try{if(S7(t,h,i,l,qe)){Dt=1,Gc(t,ar(l,t.current)),je=null;return}}catch(g){if(h!==null)throw je=h,g;Dt=1,Gc(t,ar(l,t.current)),je=null;return}i.flags&32768?(Qe||o===1?t=!0:Kl||(qe&536870912)!==0?t=!1:(Qi=t=!0,(o===2||o===9||o===3||o===6)&&(o=Pn.current,o!==null&&o.tag===13&&(o.flags|=16384))),IE(i,t)):of(i)}function of(t){var i=t;do{if((i.flags&32768)!==0){IE(i,Qi);return}t=i.return;var l=_7(i.alternate,i,fi);if(l!==null){je=l;return}if(i=i.sibling,i!==null){je=i;return}je=i=t}while(i!==null);Dt===0&&(Dt=5)}function IE(t,i){do{var l=k7(t.alternate,t);if(l!==null){l.flags&=32767,je=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(t=t.sibling,t!==null)){je=t;return}je=t=l}while(t!==null);Dt=6,je=null}function PE(t,i,l,o,h,g,C,B,H){t.cancelPendingCommit=null;do uf();while(Qt!==0);if((Je&6)!==0)throw Error(a(327));if(i!==null){if(i===t.current)throw Error(a(177));if(g=i.lanes|i.childLanes,g|=sh,dn(t,l,g,C,B,H),t===ft&&(je=ft=null,qe=0),Zl=i,Ki=t,di=l,mp=g,xp=h,OE=o,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,j7(we,function(){return GE(),null})):(t.callbackNode=null,t.callbackPriority=0),o=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||o){o=L.T,L.T=null,h=te.p,te.p=2,C=Je,Je|=4;try{D7(t,i,l)}finally{Je=C,te.p=h,L.T=o}}Qt=1,VE(),YE(),QE()}}function VE(){if(Qt===1){Qt=0;var t=Ki,i=Zl,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=L.T,L.T=null;var o=te.p;te.p=2;var h=Je;Je|=4;try{wE(i,t);var g=Rp,C=Tb(t.containerInfo),B=g.focusedElem,H=g.selectionRange;if(C!==B&&B&&B.ownerDocument&&Bb(B.ownerDocument.documentElement,B)){if(H!==null&&nh(B)){var Z=H.start,le=H.end;if(le===void 0&&(le=Z),"selectionStart"in B)B.selectionStart=Z,B.selectionEnd=Math.min(le,B.value.length);else{var oe=B.ownerDocument||document,ee=oe&&oe.defaultView||window;if(ee.getSelection){var re=ee.getSelection(),ye=B.textContent.length,_e=Math.min(H.start,ye),ot=H.end===void 0?_e:Math.min(H.end,ye);!re.extend&&_e>ot&&(C=ot,ot=_e,_e=C);var Q=Db(B,_e),P=Db(B,ot);if(Q&&P&&(re.rangeCount!==1||re.anchorNode!==Q.node||re.anchorOffset!==Q.offset||re.focusNode!==P.node||re.focusOffset!==P.offset)){var K=oe.createRange();K.setStart(Q.node,Q.offset),re.removeAllRanges(),_e>ot?(re.addRange(K),re.extend(P.node,P.offset)):(K.setEnd(P.node,P.offset),re.addRange(K))}}}}for(oe=[],re=B;re=re.parentNode;)re.nodeType===1&&oe.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<oe.length;B++){var se=oe[B];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}Ef=!!Tp,Rp=Tp=null}finally{Je=h,te.p=o,L.T=l}}t.current=i,Qt=2}}function YE(){if(Qt===2){Qt=0;var t=Ki,i=Zl,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=L.T,L.T=null;var o=te.p;te.p=2;var h=Je;Je|=4;try{vE(t,i.alternate,i)}finally{Je=h,te.p=o,L.T=l}}Qt=3}}function QE(){if(Qt===4||Qt===3){Qt=0,Vt();var t=Ki,i=Zl,l=di,o=OE;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Qt=5:(Qt=0,Zl=Ki=null,XE(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(Gi=null),Hn(l),i=i.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(Yt,i,void 0,(i.current.flags&128)===128)}catch{}if(o!==null){i=L.T,h=te.p,te.p=2,L.T=null;try{for(var g=t.onRecoverableError,C=0;C<o.length;C++){var B=o[C];g(B.value,{componentStack:B.stack})}}finally{L.T=i,te.p=h}}(di&3)!==0&&uf(),jr(t),h=t.pendingLanes,(l&261930)!==0&&(h&42)!==0?t===gp?go++:(go=0,gp=t):go=0,yo(0)}}function XE(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,Zs(i)))}function uf(){return VE(),YE(),QE(),GE()}function GE(){if(Qt!==5)return!1;var t=Ki,i=mp;mp=0;var l=Hn(di),o=L.T,h=te.p;try{te.p=32>l?32:l,L.T=null,l=xp,xp=null;var g=Ki,C=di;if(Qt=0,Zl=Ki=null,di=0,(Je&6)!==0)throw Error(a(331));var B=Je;if(Je|=4,BE(g.current),_E(g,g.current,C,l),Je=B,yo(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(Yt,g)}catch{}return!0}finally{te.p=h,L.T=o,XE(t,i)}}function KE(t,i,l){i=ar(l,i),i=Kh(t.stateNode,i,2),t=Ii(t,i,2),t!==null&&(pt(t,2),jr(t))}function it(t,i,l){if(t.tag===3)KE(t,t,l);else for(;i!==null;){if(i.tag===3){KE(i,t,l);break}else if(i.tag===1){var o=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Gi===null||!Gi.has(o))){t=ar(l,t),l=$2(2),o=Ii(i,l,2),o!==null&&(Z2(l,o,i,t),pt(o,2),jr(o));break}}i=i.return}}function bp(t,i,l){var o=t.pingCache;if(o===null){o=t.pingCache=new R7;var h=new Set;o.set(i,h)}else h=o.get(i),h===void 0&&(h=new Set,o.set(i,h));h.has(l)||(dp=!0,h.add(l),t=M7.bind(null,t,i,l),i.then(t,t))}function M7(t,i,l){var o=t.pingCache;o!==null&&o.delete(i),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,ft===t&&(qe&l)===l&&(Dt===4||Dt===3&&(qe&62914560)===qe&&300>At()-nf?(Je&2)===0&&Wl(t,0):hp|=l,$l===qe&&($l=0)),jr(t)}function $E(t,i){i===0&&(i=Zt()),t=Oa(t,i),t!==null&&(pt(t,i),jr(t))}function L7(t){var i=t.memoizedState,l=0;i!==null&&(l=i.retryLane),$E(t,l)}function U7(t,i){var l=0;switch(t.tag){case 31:case 13:var o=t.stateNode,h=t.memoizedState;h!==null&&(l=h.retryLane);break;case 19:o=t.stateNode;break;case 22:o=t.stateNode._retryCache;break;default:throw Error(a(314))}o!==null&&o.delete(i),$E(t,l)}function j7(t,i){return Dn(t,i)}var cf=null,es=null,Ep=!1,ff=!1,Cp=!1,Zi=0;function jr(t){t!==es&&t.next===null&&(es===null?cf=es=t:es=es.next=t),ff=!0,Ep||(Ep=!0,q7())}function yo(t,i){if(!Cp&&ff){Cp=!0;do for(var l=!1,o=cf;o!==null;){if(t!==0){var h=o.pendingLanes;if(h===0)var g=0;else{var C=o.suspendedLanes,B=o.pingedLanes;g=(1<<31-Ke(42|t)+1)-1,g&=h&~(C&~B),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,e4(o,g))}else g=qe,g=De(o,o===ft?g:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(g&3)===0||ht(o,g)||(l=!0,e4(o,g));o=o.next}while(l);Cp=!1}}function H7(){ZE()}function ZE(){ff=Ep=!1;var t=0;Zi!==0&&Z7()&&(t=Zi);for(var i=At(),l=null,o=cf;o!==null;){var h=o.next,g=WE(o,i);g===0?(o.next=null,l===null?cf=h:l.next=h,h===null&&(es=l)):(l=o,(t!==0||(g&3)!==0)&&(ff=!0)),o=h}Qt!==0&&Qt!==5||yo(t),Zi!==0&&(Zi=0)}function WE(t,i){for(var l=t.suspendedLanes,o=t.pingedLanes,h=t.expirationTimes,g=t.pendingLanes&-62914561;0<g;){var C=31-Ke(g),B=1<<C,H=h[C];H===-1?((B&l)===0||(B&o)!==0)&&(h[C]=Tt(B,i)):H<=i&&(t.expiredLanes|=B),g&=~B}if(i=ft,l=qe,l=De(t,t===i?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o=t.callbackNode,l===0||t===i&&(rt===2||rt===9)||t.cancelPendingCommit!==null)return o!==null&&o!==null&&Pt(o),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ht(t,l)){if(i=l&-l,i===t.callbackPriority)return i;switch(o!==null&&Pt(o),Hn(l)){case 2:case 8:l=he;break;case 32:l=we;break;case 268435456:l=Fe;break;default:l=we}return o=JE.bind(null,t),l=Dn(l,o),t.callbackPriority=i,t.callbackNode=l,i}return o!==null&&o!==null&&Pt(o),t.callbackPriority=2,t.callbackNode=null,2}function JE(t,i){if(Qt!==0&&Qt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(uf()&&t.callbackNode!==l)return null;var o=qe;return o=De(t,t===ft?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),o===0?null:(NE(t,o,i),WE(t,At()),t.callbackNode!=null&&t.callbackNode===l?JE.bind(null,t):null)}function e4(t,i){if(uf())return null;NE(t,i,!0)}function q7(){J7(function(){(Je&6)!==0?Dn(ae,H7):ZE()})}function Sp(){if(Zi===0){var t=jl;t===0&&(t=Gr,Gr<<=1,(Gr&261888)===0&&(Gr=256)),Zi=t}return Zi}function t4(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:yc(""+t)}function n4(t,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,t.id&&l.setAttribute("form",t.id),i.parentNode.insertBefore(l,i),t=new FormData(t),l.parentNode.removeChild(l),t}function I7(t,i,l,o,h){if(i==="submit"&&l&&l.stateNode===h){var g=t4((h[Bn]||null).action),C=o.submitter;C&&(i=(i=C[Bn]||null)?t4(i.formAction):C.getAttribute("formAction"),i!==null&&(g=i,C=null));var B=new Cc("action","action",null,o,h);t.push({event:B,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Zi!==0){var H=C?n4(h,C):new FormData(h);Ph(l,{pending:!0,data:H,method:h.method,action:g},null,H)}}else typeof g=="function"&&(B.preventDefault(),H=C?n4(h,C):new FormData(h),Ph(l,{pending:!0,data:H,method:h.method,action:g},g,H))},currentTarget:h}]})}}for(var wp=0;wp<lh.length;wp++){var Ap=lh[wp],P7=Ap.toLowerCase(),V7=Ap[0].toUpperCase()+Ap.slice(1);vr(P7,"on"+V7)}vr(zb,"onAnimationEnd"),vr(Nb,"onAnimationIteration"),vr(Fb,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(l7,"onTransitionRun"),vr(s7,"onTransitionStart"),vr(o7,"onTransitionCancel"),vr(Mb,"onTransitionEnd"),Al("onMouseEnter",["mouseout","mouseover"]),Al("onMouseLeave",["mouseout","mouseover"]),Al("onPointerEnter",["pointerout","pointerover"]),Al("onPointerLeave",["pointerout","pointerover"]),Da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Da("onBeforeInput",["compositionend","keypress","textInput","paste"]),Da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),Y7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vo));function r4(t,i){i=(i&4)!==0;for(var l=0;l<t.length;l++){var o=t[l],h=o.event;o=o.listeners;e:{var g=void 0;if(i)for(var C=o.length-1;0<=C;C--){var B=o[C],H=B.instance,Z=B.currentTarget;if(B=B.listener,H!==g&&h.isPropagationStopped())break e;g=B,h.currentTarget=Z;try{g(h)}catch(le){Ac(le)}h.currentTarget=null,g=H}else for(C=0;C<o.length;C++){if(B=o[C],H=B.instance,Z=B.currentTarget,B=B.listener,H!==g&&h.isPropagationStopped())break e;g=B,h.currentTarget=Z;try{g(h)}catch(le){Ac(le)}h.currentTarget=null,g=H}}}}function He(t,i){var l=i[Ud];l===void 0&&(l=i[Ud]=new Set);var o=t+"__bubble";l.has(o)||(i4(i,t,2,!1),l.add(o))}function _p(t,i,l){var o=0;i&&(o|=4),i4(l,t,o,i)}var df="_reactListening"+Math.random().toString(36).slice(2);function kp(t){if(!t[df]){t[df]=!0,Zv.forEach(function(l){l!=="selectionchange"&&(Y7.has(l)||_p(l,!1,t),_p(l,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[df]||(i[df]=!0,_p("selectionchange",!1,i))}}function i4(t,i,l,o){switch(z4(i)){case 2:var h=vO;break;case 8:h=bO;break;default:h=Ip}l=h.bind(null,i,l,t),h=void 0,!Xd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),o?h!==void 0?t.addEventListener(i,l,{capture:!0,passive:h}):t.addEventListener(i,l,!0):h!==void 0?t.addEventListener(i,l,{passive:h}):t.addEventListener(i,l,!1)}function Dp(t,i,l,o,h){var g=o;if((i&1)===0&&(i&2)===0&&o!==null)e:for(;;){if(o===null)return;var C=o.tag;if(C===3||C===4){var B=o.stateNode.containerInfo;if(B===h)break;if(C===4)for(C=o.return;C!==null;){var H=C.tag;if((H===3||H===4)&&C.stateNode.containerInfo===h)return;C=C.return}for(;B!==null;){if(C=Cl(B),C===null)return;if(H=C.tag,H===5||H===6||H===26||H===27){o=g=C;continue e}B=B.parentNode}}o=o.return}ub(function(){var Z=g,le=Yd(l),oe=[];e:{var ee=Lb.get(t);if(ee!==void 0){var re=Cc,ye=t;switch(t){case"keypress":if(bc(l)===0)break e;case"keydown":case"keyup":re=U9;break;case"focusin":ye="focus",re=Zd;break;case"focusout":ye="blur",re=Zd;break;case"beforeblur":case"afterblur":re=Zd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=db;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=_9;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=q9;break;case zb:case Nb:case Fb:re=B9;break;case Mb:re=P9;break;case"scroll":case"scrollend":re=w9;break;case"wheel":re=Y9;break;case"copy":case"cut":case"paste":re=R9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=pb;break;case"toggle":case"beforetoggle":re=X9}var _e=(i&4)!==0,ot=!_e&&(t==="scroll"||t==="scrollend"),Q=_e?ee!==null?ee+"Capture":null:ee;_e=[];for(var P=Z,K;P!==null;){var se=P;if(K=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||K===null||Q===null||(se=Hs(P,Q),se!=null&&_e.push(bo(P,se,K))),ot)break;P=P.return}0<_e.length&&(ee=new re(ee,ye,null,l,le),oe.push({event:ee,listeners:_e}))}}if((i&7)===0){e:{if(ee=t==="mouseover"||t==="pointerover",re=t==="mouseout"||t==="pointerout",ee&&l!==Vd&&(ye=l.relatedTarget||l.fromElement)&&(Cl(ye)||ye[El]))break e;if((re||ee)&&(ee=le.window===le?le:(ee=le.ownerDocument)?ee.defaultView||ee.parentWindow:window,re?(ye=l.relatedTarget||l.toElement,re=Z,ye=ye?Cl(ye):null,ye!==null&&(ot=u(ye),_e=ye.tag,ye!==ot||_e!==5&&_e!==27&&_e!==6)&&(ye=null)):(re=null,ye=Z),re!==ye)){if(_e=db,se="onMouseLeave",Q="onMouseEnter",P="mouse",(t==="pointerout"||t==="pointerover")&&(_e=pb,se="onPointerLeave",Q="onPointerEnter",P="pointer"),ot=re==null?ee:js(re),K=ye==null?ee:js(ye),ee=new _e(se,P+"leave",re,l,le),ee.target=ot,ee.relatedTarget=K,se=null,Cl(le)===Z&&(_e=new _e(Q,P+"enter",ye,l,le),_e.target=K,_e.relatedTarget=ot,se=_e),ot=se,re&&ye)t:{for(_e=Q7,Q=re,P=ye,K=0,se=Q;se;se=_e(se))K++;se=0;for(var Se=P;Se;Se=_e(Se))se++;for(;0<K-se;)Q=_e(Q),K--;for(;0<se-K;)P=_e(P),se--;for(;K--;){if(Q===P||P!==null&&Q===P.alternate){_e=Q;break t}Q=_e(Q),P=_e(P)}_e=null}else _e=null;re!==null&&a4(oe,ee,re,_e,!1),ye!==null&&ot!==null&&a4(oe,ot,ye,_e,!0)}}e:{if(ee=Z?js(Z):window,re=ee.nodeName&&ee.nodeName.toLowerCase(),re==="select"||re==="input"&&ee.type==="file")var $e=Cb;else if(bb(ee))if(Sb)$e=r7;else{$e=t7;var Ee=e7}else re=ee.nodeName,!re||re.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?Z&&Pd(Z.elementType)&&($e=Cb):$e=n7;if($e&&($e=$e(t,Z))){Eb(oe,$e,l,le);break e}Ee&&Ee(t,ee,Z),t==="focusout"&&Z&&ee.type==="number"&&Z.memoizedProps.value!=null&&Id(ee,"number",ee.value)}switch(Ee=Z?js(Z):window,t){case"focusin":(bb(Ee)||Ee.contentEditable==="true")&&(Rl=Ee,rh=Z,Gs=null);break;case"focusout":Gs=rh=Rl=null;break;case"mousedown":ih=!0;break;case"contextmenu":case"mouseup":case"dragend":ih=!1,Rb(oe,l,le);break;case"selectionchange":if(a7)break;case"keydown":case"keyup":Rb(oe,l,le)}var Ne;if(Jd)e:{switch(t){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else Tl?yb(t,l)&&(Ie="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Ie="onCompositionStart");Ie&&(mb&&l.locale!=="ko"&&(Tl||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&Tl&&(Ne=cb()):(Fi=le,Gd="value"in Fi?Fi.value:Fi.textContent,Tl=!0)),Ee=hf(Z,Ie),0<Ee.length&&(Ie=new hb(Ie,t,null,l,le),oe.push({event:Ie,listeners:Ee}),Ne?Ie.data=Ne:(Ne=vb(l),Ne!==null&&(Ie.data=Ne)))),(Ne=K9?$9(t,l):Z9(t,l))&&(Ie=hf(Z,"onBeforeInput"),0<Ie.length&&(Ee=new hb("onBeforeInput","beforeinput",null,l,le),oe.push({event:Ee,listeners:Ie}),Ee.data=Ne)),I7(oe,t,Z,l,le)}r4(oe,i)})}function bo(t,i,l){return{instance:t,listener:i,currentTarget:l}}function hf(t,i){for(var l=i+"Capture",o=[];t!==null;){var h=t,g=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||g===null||(h=Hs(t,l),h!=null&&o.unshift(bo(t,h,g)),h=Hs(t,i),h!=null&&o.push(bo(t,h,g))),t.tag===3)return o;t=t.return}return[]}function Q7(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function a4(t,i,l,o,h){for(var g=i._reactName,C=[];l!==null&&l!==o;){var B=l,H=B.alternate,Z=B.stateNode;if(B=B.tag,H!==null&&H===o)break;B!==5&&B!==26&&B!==27||Z===null||(H=Z,h?(Z=Hs(l,g),Z!=null&&C.unshift(bo(l,Z,H))):h||(Z=Hs(l,g),Z!=null&&C.push(bo(l,Z,H)))),l=l.return}C.length!==0&&t.push({event:i,listeners:C})}var X7=/\r\n?/g,G7=/\u0000|\uFFFD/g;function l4(t){return(typeof t=="string"?t:""+t).replace(X7,`
41
+ `).replace(G7,"")}function s4(t,i){return i=l4(i),l4(t)===i}function st(t,i,l,o,h,g){switch(l){case"children":typeof o=="string"?i==="body"||i==="textarea"&&o===""||kl(t,o):(typeof o=="number"||typeof o=="bigint")&&i!=="body"&&kl(t,""+o);break;case"className":xc(t,"class",o);break;case"tabIndex":xc(t,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":xc(t,l,o);break;case"style":sb(t,o,g);break;case"data":if(i!=="object"){xc(t,"data",o);break}case"src":case"href":if(o===""&&(i!=="a"||l!=="href")){t.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=yc(""+o),t.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){t.setAttribute(l,"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 g=="function"&&(l==="formAction"?(i!=="input"&&st(t,i,"name",h.name,h,null),st(t,i,"formEncType",h.formEncType,h,null),st(t,i,"formMethod",h.formMethod,h,null),st(t,i,"formTarget",h.formTarget,h,null)):(st(t,i,"encType",h.encType,h,null),st(t,i,"method",h.method,h,null),st(t,i,"target",h.target,h,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){t.removeAttribute(l);break}o=yc(""+o),t.setAttribute(l,o);break;case"onClick":o!=null&&(t.onclick=Zr);break;case"onScroll":o!=null&&He("scroll",t);break;case"onScrollEnd":o!=null&&He("scrollend",t);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(l=o.__html,l!=null){if(h.children!=null)throw Error(a(60));t.innerHTML=l}}break;case"multiple":t.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":t.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){t.removeAttribute("xlink:href");break}l=yc(""+o),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,""+o):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":o===!0?t.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?t.setAttribute(l,o):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?t.setAttribute(l,o):t.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?t.removeAttribute(l):t.setAttribute(l,o);break;case"popover":He("beforetoggle",t),He("toggle",t),mc(t,"popover",o);break;case"xlinkActuate":$r(t,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":$r(t,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":$r(t,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":$r(t,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":$r(t,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":$r(t,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":$r(t,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":$r(t,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":$r(t,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":mc(t,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=C9.get(l)||l,mc(t,l,o))}}function Bp(t,i,l,o,h,g){switch(l){case"style":sb(t,o,g);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(a(61));if(l=o.__html,l!=null){if(h.children!=null)throw Error(a(60));t.innerHTML=l}}break;case"children":typeof o=="string"?kl(t,o):(typeof o=="number"||typeof o=="bigint")&&kl(t,""+o);break;case"onScroll":o!=null&&He("scroll",t);break;case"onScrollEnd":o!=null&&He("scrollend",t);break;case"onClick":o!=null&&(t.onclick=Zr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Wv.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(h=l.endsWith("Capture"),i=l.slice(2,h?l.length-7:void 0),g=t[Bn]||null,g=g!=null?g[l]:null,typeof g=="function"&&t.removeEventListener(i,g,h),typeof o=="function")){typeof g!="function"&&g!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(i,o,h);break e}l in t?t[l]=o:o===!0?t.setAttribute(l,""):mc(t,l,o)}}}function ln(t,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",t),He("load",t);var o=!1,h=!1,g;for(g in l)if(l.hasOwnProperty(g)){var C=l[g];if(C!=null)switch(g){case"src":o=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:st(t,i,g,C,l,null)}}h&&st(t,i,"srcSet",l.srcSet,l,null),o&&st(t,i,"src",l.src,l,null);return;case"input":He("invalid",t);var B=g=C=h=null,H=null,Z=null;for(o in l)if(l.hasOwnProperty(o)){var le=l[o];if(le!=null)switch(o){case"name":h=le;break;case"type":C=le;break;case"checked":H=le;break;case"defaultChecked":Z=le;break;case"value":g=le;break;case"defaultValue":B=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(a(137,i));break;default:st(t,i,o,le,l,null)}}rb(t,g,B,H,Z,C,h,!1);return;case"select":He("invalid",t),o=C=g=null;for(h in l)if(l.hasOwnProperty(h)&&(B=l[h],B!=null))switch(h){case"value":g=B;break;case"defaultValue":C=B;break;case"multiple":o=B;default:st(t,i,h,B,l,null)}i=g,l=C,t.multiple=!!o,i!=null?_l(t,!!o,i,!1):l!=null&&_l(t,!!o,l,!0);return;case"textarea":He("invalid",t),g=h=o=null;for(C in l)if(l.hasOwnProperty(C)&&(B=l[C],B!=null))switch(C){case"value":o=B;break;case"defaultValue":h=B;break;case"children":g=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(a(91));break;default:st(t,i,C,B,l,null)}ab(t,o,h,g);return;case"option":for(H in l)if(l.hasOwnProperty(H)&&(o=l[H],o!=null))switch(H){case"selected":t.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:st(t,i,H,o,l,null)}return;case"dialog":He("beforetoggle",t),He("toggle",t),He("cancel",t),He("close",t);break;case"iframe":case"object":He("load",t);break;case"video":case"audio":for(o=0;o<vo.length;o++)He(vo[o],t);break;case"image":He("error",t),He("load",t);break;case"details":He("toggle",t);break;case"embed":case"source":case"link":He("error",t),He("load",t);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 l)if(l.hasOwnProperty(Z)&&(o=l[Z],o!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:st(t,i,Z,o,l,null)}return;default:if(Pd(i)){for(le in l)l.hasOwnProperty(le)&&(o=l[le],o!==void 0&&Bp(t,i,le,o,l,void 0));return}}for(B in l)l.hasOwnProperty(B)&&(o=l[B],o!=null&&st(t,i,B,o,l,null))}function K7(t,i,l,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,C=null,B=null,H=null,Z=null,le=null;for(re in l){var oe=l[re];if(l.hasOwnProperty(re)&&oe!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":H=oe;default:o.hasOwnProperty(re)||st(t,i,re,null,o,oe)}}for(var ee in o){var re=o[ee];if(oe=l[ee],o.hasOwnProperty(ee)&&(re!=null||oe!=null))switch(ee){case"type":g=re;break;case"name":h=re;break;case"checked":Z=re;break;case"defaultChecked":le=re;break;case"value":C=re;break;case"defaultValue":B=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(a(137,i));break;default:re!==oe&&st(t,i,ee,re,o,oe)}}qd(t,C,B,H,Z,le,g,h);return;case"select":re=C=B=ee=null;for(g in l)if(H=l[g],l.hasOwnProperty(g)&&H!=null)switch(g){case"value":break;case"multiple":re=H;default:o.hasOwnProperty(g)||st(t,i,g,null,o,H)}for(h in o)if(g=o[h],H=l[h],o.hasOwnProperty(h)&&(g!=null||H!=null))switch(h){case"value":ee=g;break;case"defaultValue":B=g;break;case"multiple":C=g;default:g!==H&&st(t,i,h,g,o,H)}i=B,l=C,o=re,ee!=null?_l(t,!!l,ee,!1):!!o!=!!l&&(i!=null?_l(t,!!l,i,!0):_l(t,!!l,l?[]:"",!1));return;case"textarea":re=ee=null;for(B in l)if(h=l[B],l.hasOwnProperty(B)&&h!=null&&!o.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:st(t,i,B,null,o,h)}for(C in o)if(h=o[C],g=l[C],o.hasOwnProperty(C)&&(h!=null||g!=null))switch(C){case"value":ee=h;break;case"defaultValue":re=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==g&&st(t,i,C,h,o,g)}ib(t,ee,re);return;case"option":for(var ye in l)if(ee=l[ye],l.hasOwnProperty(ye)&&ee!=null&&!o.hasOwnProperty(ye))switch(ye){case"selected":t.selected=!1;break;default:st(t,i,ye,null,o,ee)}for(H in o)if(ee=o[H],re=l[H],o.hasOwnProperty(H)&&ee!==re&&(ee!=null||re!=null))switch(H){case"selected":t.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:st(t,i,H,ee,o,re)}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 _e in l)ee=l[_e],l.hasOwnProperty(_e)&&ee!=null&&!o.hasOwnProperty(_e)&&st(t,i,_e,null,o,ee);for(Z in o)if(ee=o[Z],re=l[Z],o.hasOwnProperty(Z)&&ee!==re&&(ee!=null||re!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(a(137,i));break;default:st(t,i,Z,ee,o,re)}return;default:if(Pd(i)){for(var ot in l)ee=l[ot],l.hasOwnProperty(ot)&&ee!==void 0&&!o.hasOwnProperty(ot)&&Bp(t,i,ot,void 0,o,ee);for(le in o)ee=o[le],re=l[le],!o.hasOwnProperty(le)||ee===re||ee===void 0&&re===void 0||Bp(t,i,le,ee,o,re);return}}for(var Q in l)ee=l[Q],l.hasOwnProperty(Q)&&ee!=null&&!o.hasOwnProperty(Q)&&st(t,i,Q,null,o,ee);for(oe in o)ee=o[oe],re=l[oe],!o.hasOwnProperty(oe)||ee===re||ee==null&&re==null||st(t,i,oe,ee,o,re)}function o4(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $7(){if(typeof performance.getEntriesByType=="function"){for(var t=0,i=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var h=l[o],g=h.transferSize,C=h.initiatorType,B=h.duration;if(g&&B&&o4(C)){for(C=0,B=h.responseEnd,o+=1;o<l.length;o++){var H=l[o],Z=H.startTime;if(Z>B)break;var le=H.transferSize,oe=H.initiatorType;le&&o4(oe)&&(H=H.responseEnd,C+=le*(H<B?1:(B-Z)/(H-Z)))}if(--o,i+=8*(g+C)/(h.duration/1e3),t++,10<t)break}}if(0<t)return i/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Tp=null,Rp=null;function pf(t){return t.nodeType===9?t:t.ownerDocument}function u4(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function c4(t,i){if(t===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&i==="foreignObject"?0:t}function Op(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var zp=null;function Z7(){var t=window.event;return t&&t.type==="popstate"?t===zp?!1:(zp=t,!0):(zp=null,!1)}var f4=typeof setTimeout=="function"?setTimeout:void 0,W7=typeof clearTimeout=="function"?clearTimeout:void 0,d4=typeof Promise=="function"?Promise:void 0,J7=typeof queueMicrotask=="function"?queueMicrotask:typeof d4<"u"?function(t){return d4.resolve(null).then(t).catch(eO)}:f4;function eO(t){setTimeout(function(){throw t})}function Wi(t){return t==="head"}function h4(t,i){var l=i,o=0;do{var h=l.nextSibling;if(t.removeChild(l),h&&h.nodeType===8)if(l=h.data,l==="/$"||l==="/&"){if(o===0){t.removeChild(h),is(i);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")Eo(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Eo(l);for(var g=l.firstChild;g;){var C=g.nextSibling,B=g.nodeName;g[Us]||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=C}}else l==="body"&&Eo(t.ownerDocument.body);l=h}while(l);is(i)}function p4(t,i){var l=t;t=0;do{var o=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=o}while(l)}function Np(t){var i=t.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Np(l),jd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function tO(t,i,l,o){for(;t.nodeType===1;){var h=l;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!o&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(o){if(!t[Us])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(g=t.getAttribute("rel"),g==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(g!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(g=t.getAttribute("src"),(g!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===g)return t}else return t;if(t=cr(t.nextSibling),t===null)break}return null}function nO(t,i,l){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=cr(t.nextSibling),t===null))return null;return t}function m4(t,i){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=cr(t.nextSibling),t===null))return null;return t}function Fp(t){return t.data==="$?"||t.data==="$~"}function Mp(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function rO(t,i){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=i;else if(t.data!=="$?"||l.readyState!=="loading")i();else{var o=function(){i(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),t._reactRetry=o}}function cr(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return t}var Lp=null;function x4(t){t=t.nextSibling;for(var i=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(i===0)return cr(t.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}t=t.nextSibling}return null}function g4(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return t;i--}else l!=="/$"&&l!=="/&"||i++}t=t.previousSibling}return null}function y4(t,i,l){switch(i=pf(l),t){case"html":if(t=i.documentElement,!t)throw Error(a(452));return t;case"head":if(t=i.head,!t)throw Error(a(453));return t;case"body":if(t=i.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}function Eo(t){for(var i=t.attributes;i.length;)t.removeAttributeNode(i[0]);jd(t)}var fr=new Map,v4=new Set;function mf(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var hi=te.d;te.d={f:iO,r:aO,D:lO,C:sO,L:oO,m:uO,X:fO,S:cO,M:dO};function iO(){var t=hi.f(),i=lf();return t||i}function aO(t){var i=Sl(t);i!==null&&i.tag===5&&i.type==="form"?M2(i):hi.r(t)}var ts=typeof document>"u"?null:document;function b4(t,i,l){var o=ts;if(o&&typeof i=="string"&&i){var h=rr(i);h='link[rel="'+t+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),v4.has(h)||(v4.add(h),t={rel:t,crossOrigin:l,href:i},o.querySelector(h)===null&&(i=o.createElement("link"),ln(i,"link",t),Wt(i),o.head.appendChild(i)))}}function lO(t){hi.D(t),b4("dns-prefetch",t,null)}function sO(t,i){hi.C(t,i),b4("preconnect",t,i)}function oO(t,i,l){hi.L(t,i,l);var o=ts;if(o&&t&&i){var h='link[rel="preload"][as="'+rr(i)+'"]';i==="image"&&l&&l.imageSrcSet?(h+='[imagesrcset="'+rr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(h+='[imagesizes="'+rr(l.imageSizes)+'"]')):h+='[href="'+rr(t)+'"]';var g=h;switch(i){case"style":g=ns(t);break;case"script":g=rs(t)}fr.has(g)||(t=m({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:t,as:i},l),fr.set(g,t),o.querySelector(h)!==null||i==="style"&&o.querySelector(Co(g))||i==="script"&&o.querySelector(So(g))||(i=o.createElement("link"),ln(i,"link",t),Wt(i),o.head.appendChild(i)))}}function uO(t,i){hi.m(t,i);var l=ts;if(l&&t){var o=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+rr(o)+'"][href="'+rr(t)+'"]',g=h;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=rs(t)}if(!fr.has(g)&&(t=m({rel:"modulepreload",href:t},i),fr.set(g,t),l.querySelector(h)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(So(g)))return}o=l.createElement("link"),ln(o,"link",t),Wt(o),l.head.appendChild(o)}}}function cO(t,i,l){hi.S(t,i,l);var o=ts;if(o&&t){var h=wl(o).hoistableStyles,g=ns(t);i=i||"default";var C=h.get(g);if(!C){var B={loading:0,preload:null};if(C=o.querySelector(Co(g)))B.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":i},l),(l=fr.get(g))&&Up(t,l);var H=C=o.createElement("link");Wt(H),ln(H,"link",t),H._p=new Promise(function(Z,le){H.onload=Z,H.onerror=le}),H.addEventListener("load",function(){B.loading|=1}),H.addEventListener("error",function(){B.loading|=2}),B.loading|=4,xf(C,i,o)}C={type:"stylesheet",instance:C,count:1,state:B},h.set(g,C)}}}function fO(t,i){hi.X(t,i);var l=ts;if(l&&t){var o=wl(l).hoistableScripts,h=rs(t),g=o.get(h);g||(g=l.querySelector(So(h)),g||(t=m({src:t,async:!0},i),(i=fr.get(h))&&jp(t,i),g=l.createElement("script"),Wt(g),ln(g,"link",t),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},o.set(h,g))}}function dO(t,i){hi.M(t,i);var l=ts;if(l&&t){var o=wl(l).hoistableScripts,h=rs(t),g=o.get(h);g||(g=l.querySelector(So(h)),g||(t=m({src:t,async:!0,type:"module"},i),(i=fr.get(h))&&jp(t,i),g=l.createElement("script"),Wt(g),ln(g,"link",t),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},o.set(h,g))}}function E4(t,i,l,o){var h=(h=ce.current)?mf(h):null;if(!h)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=ns(l.href),l=wl(h).hoistableStyles,o=l.get(i),o||(o={type:"style",instance:null,count:0,state:null},l.set(i,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ns(l.href);var g=wl(h).hoistableStyles,C=g.get(t);if(C||(h=h.ownerDocument||h,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,C),(g=h.querySelector(Co(t)))&&!g._p&&(C.instance=g,C.state.loading=5),fr.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},fr.set(t,l),g||hO(h,t,l,C.state))),i&&o===null)throw Error(a(528,""));return C}if(i&&o!==null)throw Error(a(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=rs(l),l=wl(h).hoistableScripts,o=l.get(i),o||(o={type:"script",instance:null,count:0,state:null},l.set(i,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function ns(t){return'href="'+rr(t)+'"'}function Co(t){return'link[rel="stylesheet"]['+t+"]"}function C4(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function hO(t,i,l,o){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?o.loading=1:(i=t.createElement("link"),o.preload=i,i.addEventListener("load",function(){return o.loading|=1}),i.addEventListener("error",function(){return o.loading|=2}),ln(i,"link",l),Wt(i),t.head.appendChild(i))}function rs(t){return'[src="'+rr(t)+'"]'}function So(t){return"script[async]"+t}function S4(t,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var o=t.querySelector('style[data-href~="'+rr(l.href)+'"]');if(o)return i.instance=o,Wt(o),o;var h=m({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(t.ownerDocument||t).createElement("style"),Wt(o),ln(o,"style",h),xf(o,l.precedence,t),i.instance=o;case"stylesheet":h=ns(l.href);var g=t.querySelector(Co(h));if(g)return i.state.loading|=4,i.instance=g,Wt(g),g;o=C4(l),(h=fr.get(h))&&Up(o,h),g=(t.ownerDocument||t).createElement("link"),Wt(g);var C=g;return C._p=new Promise(function(B,H){C.onload=B,C.onerror=H}),ln(g,"link",o),i.state.loading|=4,xf(g,l.precedence,t),i.instance=g;case"script":return g=rs(l.src),(h=t.querySelector(So(g)))?(i.instance=h,Wt(h),h):(o=l,(h=fr.get(g))&&(o=m({},l),jp(o,h)),t=t.ownerDocument||t,h=t.createElement("script"),Wt(h),ln(h,"link",o),t.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(o=i.instance,i.state.loading|=4,xf(o,l.precedence,t));return i.instance}function xf(t,i,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=o.length?o[o.length-1]:null,g=h,C=0;C<o.length;C++){var B=o[C];if(B.dataset.precedence===i)g=B;else if(g!==h)break}g?g.parentNode.insertBefore(t,g.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(t,i.firstChild))}function Up(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function jp(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var gf=null;function w4(t,i,l){if(gf===null){var o=new Map,h=gf=new Map;h.set(l,o)}else h=gf,o=h.get(l),o||(o=new Map,h.set(l,o));if(o.has(t))return o;for(o.set(t,null),l=l.getElementsByTagName(t),h=0;h<l.length;h++){var g=l[h];if(!(g[Us]||g[tn]||t==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var C=g.getAttribute(i)||"";C=t+C;var B=o.get(C);B?B.push(g):o.set(C,[g])}}return o}function A4(t,i,l){t=t.ownerDocument||t,t.head.insertBefore(l,i==="title"?t.querySelector("head > title"):null)}function pO(t,i,l){if(l===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return t=i.disabled,typeof i.precedence=="string"&&t==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function _4(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function mO(t,i,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var h=ns(o.href),g=i.querySelector(Co(h));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(t.count++,t=yf.bind(t),i.then(t,t)),l.state.loading|=4,l.instance=g,Wt(g);return}g=i.ownerDocument||i,o=C4(o),(h=fr.get(h))&&Up(o,h),g=g.createElement("link"),Wt(g);var C=g;C._p=new Promise(function(B,H){C.onload=B,C.onerror=H}),ln(g,"link",o),l.instance=g}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=yf.bind(t),i.addEventListener("load",l),i.addEventListener("error",l))}}var Hp=0;function xO(t,i){return t.stylesheets&&t.count===0&&bf(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var o=setTimeout(function(){if(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend){var g=t.unsuspend;t.unsuspend=null,g()}},6e4+i);0<t.imgBytes&&Hp===0&&(Hp=62500*$7());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend)){var g=t.unsuspend;t.unsuspend=null,g()}},(t.imgBytes>Hp?50:800)+i);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(o),clearTimeout(h)}}:null}function yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var vf=null;function bf(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,vf=new Map,i.forEach(gO,t),vf=null,yf.call(t))}function gO(t,i){if(!(i.state.loading&4)){var l=vf.get(t);if(l)var o=l.get(null);else{l=new Map,vf.set(t,l);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var C=h[g];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(l.set(C.dataset.precedence,C),o=C)}o&&l.set(null,o)}h=i.instance,C=h.getAttribute("data-precedence"),g=l.get(C)||o,g===o&&l.set(null,h),l.set(C,h),this.count++,o=yf.bind(this),h.addEventListener("load",o),h.addEventListener("error",o),g?g.parentNode.insertBefore(h,g.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),i.state.loading|=4}}var wo={$$typeof:A,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function yO(t,i,l,o,h,g,C,B,H){this.tag=1,this.containerInfo=t,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=Nr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nr(0),this.hiddenUpdates=Nr(null),this.identifierPrefix=o,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function k4(t,i,l,o,h,g,C,B,H,Z,le,oe){return t=new yO(t,i,l,C,H,Z,le,oe,B),i=1,g===!0&&(i|=24),g=In(3,null,null,i),t.current=g,g.stateNode=t,i=vh(),i.refCount++,t.pooledCache=i,i.refCount++,g.memoizedState={element:o,isDehydrated:l,cache:i},Sh(g),t}function D4(t){return t?(t=Nl,t):Nl}function B4(t,i,l,o,h,g){h=D4(h),o.context===null?o.context=h:o.pendingContext=h,o=qi(i),o.payload={element:l},g=g===void 0?null:g,g!==null&&(o.callback=g),l=Ii(t,o,i),l!==null&&(Fn(l,t,i),to(l,t,i))}function T4(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<i?l:i}}function qp(t,i){T4(t,i),(t=t.alternate)&&T4(t,i)}function R4(t){if(t.tag===13||t.tag===31){var i=Oa(t,67108864);i!==null&&Fn(i,t,67108864),qp(t,67108864)}}function O4(t){if(t.tag===13||t.tag===31){var i=Xn();i=Kr(i);var l=Oa(t,i);l!==null&&Fn(l,t,i),qp(t,i)}}var Ef=!0;function vO(t,i,l,o){var h=L.T;L.T=null;var g=te.p;try{te.p=2,Ip(t,i,l,o)}finally{te.p=g,L.T=h}}function bO(t,i,l,o){var h=L.T;L.T=null;var g=te.p;try{te.p=8,Ip(t,i,l,o)}finally{te.p=g,L.T=h}}function Ip(t,i,l,o){if(Ef){var h=Pp(o);if(h===null)Dp(t,i,o,Cf,l),N4(t,o);else if(CO(h,t,i,l,o))o.stopPropagation();else if(N4(t,o),i&4&&-1<EO.indexOf(t)){for(;h!==null;){var g=Sl(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var C=tr(g.pendingLanes);if(C!==0){var B=g;for(B.pendingLanes|=2,B.entangledLanes|=2;C;){var H=1<<31-Ke(C);B.entanglements[1]|=H,C&=~H}jr(g),(Je&6)===0&&(rf=At()+500,yo(0))}}break;case 31:case 13:B=Oa(g,2),B!==null&&Fn(B,g,2),lf(),qp(g,2)}if(g=Pp(o),g===null&&Dp(t,i,o,Cf,l),g===h)break;h=g}h!==null&&o.stopPropagation()}else Dp(t,i,o,null,l)}}function Pp(t){return t=Yd(t),Vp(t)}var Cf=null;function Vp(t){if(Cf=null,t=Cl(t),t!==null){var i=u(t);if(i===null)t=null;else{var l=i.tag;if(l===13){if(t=c(i),t!==null)return t;t=null}else if(l===31){if(t=f(i),t!==null)return t;t=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return Cf=t,null}function z4(t){switch(t){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(Oi()){case ae:return 2;case he:return 8;case we:case Re:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var Yp=!1,Ji=null,ea=null,ta=null,Ao=new Map,_o=new Map,na=[],EO="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 N4(t,i){switch(t){case"focusin":case"focusout":Ji=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":Ao.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":_o.delete(i.pointerId)}}function ko(t,i,l,o,h,g){return t===null||t.nativeEvent!==g?(t={blockedOn:i,domEventName:l,eventSystemFlags:o,nativeEvent:g,targetContainers:[h]},i!==null&&(i=Sl(i),i!==null&&R4(i)),t):(t.eventSystemFlags|=o,i=t.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),t)}function CO(t,i,l,o,h){switch(i){case"focusin":return Ji=ko(Ji,t,i,l,o,h),!0;case"dragenter":return ea=ko(ea,t,i,l,o,h),!0;case"mouseover":return ta=ko(ta,t,i,l,o,h),!0;case"pointerover":var g=h.pointerId;return Ao.set(g,ko(Ao.get(g)||null,t,i,l,o,h)),!0;case"gotpointercapture":return g=h.pointerId,_o.set(g,ko(_o.get(g)||null,t,i,l,o,h)),!0}return!1}function F4(t){var i=Cl(t.target);if(i!==null){var l=u(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){t.blockedOn=i,Kv(t.priority,function(){O4(l)});return}}else if(i===31){if(i=f(l),i!==null){t.blockedOn=i,Kv(t.priority,function(){O4(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Sf(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var l=Pp(t.nativeEvent);if(l===null){l=t.nativeEvent;var o=new l.constructor(l.type,l);Vd=o,l.target.dispatchEvent(o),Vd=null}else return i=Sl(l),i!==null&&R4(i),t.blockedOn=l,!1;i.shift()}return!0}function M4(t,i,l){Sf(t)&&l.delete(i)}function SO(){Yp=!1,Ji!==null&&Sf(Ji)&&(Ji=null),ea!==null&&Sf(ea)&&(ea=null),ta!==null&&Sf(ta)&&(ta=null),Ao.forEach(M4),_o.forEach(M4)}function wf(t,i){t.blockedOn===i&&(t.blockedOn=null,Yp||(Yp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,SO)))}var Af=null;function L4(t){Af!==t&&(Af=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Af===t&&(Af=null);for(var i=0;i<t.length;i+=3){var l=t[i],o=t[i+1],h=t[i+2];if(typeof o!="function"){if(Vp(o||l)===null)continue;break}var g=Sl(l);g!==null&&(t.splice(i,3),i-=3,Ph(g,{pending:!0,data:h,method:l.method,action:o},o,h))}}))}function is(t){function i(H){return wf(H,t)}Ji!==null&&wf(Ji,t),ea!==null&&wf(ea,t),ta!==null&&wf(ta,t),Ao.forEach(i),_o.forEach(i);for(var l=0;l<na.length;l++){var o=na[l];o.blockedOn===t&&(o.blockedOn=null)}for(;0<na.length&&(l=na[0],l.blockedOn===null);)F4(l),l.blockedOn===null&&na.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var h=l[o],g=l[o+1],C=h[Bn]||null;if(typeof g=="function")C||L4(l);else if(C){var B=null;if(g&&g.hasAttribute("formAction")){if(h=g,C=g[Bn]||null)B=C.formAction;else if(Vp(h)!==null)continue}else B=C.action;typeof B=="function"?l[o+1]=B:(l.splice(o,3),o-=3),L4(l)}}}function U4(){function t(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(C){return h=C})},focusReset:"manual",scroll:"manual"})}function i(){h!==null&&(h(),h=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,h=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),h!==null&&(h(),h=null)}}}function Qp(t){this._internalRoot=t}_f.prototype.render=Qp.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,o=Xn();B4(l,o,t,i,null,null)},_f.prototype.unmount=Qp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;B4(t.current,2,null,t,null,null),lf(),i[El]=null}};function _f(t){this._internalRoot=t}_f.prototype.unstable_scheduleHydration=function(t){if(t){var i=Ld();t={blockedOn:null,target:t,priority:i};for(var l=0;l<na.length&&i!==0&&i<na[l].priority;l++);na.splice(l,0,t),l===0&&F4(t)}};var j4=n.version;if(j4!=="19.2.4")throw Error(a(527,j4,"19.2.4"));te.findDOMNode=function(t){var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=d(i),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var wO={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kf.isDisabled&&kf.supportsFiber)try{Yt=kf.inject(wO),gt=kf}catch{}}return as.createRoot=function(t,i){if(!s(t))throw Error(a(299));var l=!1,o="",h=Q2,g=X2,C=G2;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(C=i.onRecoverableError)),i=k4(t,1,!1,null,null,l,o,null,h,g,C,U4),t[El]=i.current,kp(t),new Qp(i)},as.hydrateRoot=function(t,i,l){if(!s(t))throw Error(a(299));var o=!1,h="",g=Q2,C=X2,B=G2,H=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(h=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(C=l.onCaughtError),l.onRecoverableError!==void 0&&(B=l.onRecoverableError),l.formState!==void 0&&(H=l.formState)),i=k4(t,1,!0,i,l??null,o,h,H,g,C,B,U4),i.context=D4(null),l=i.current,o=Xn(),o=Kr(o),h=qi(o),h.callback=null,Ii(l,h,o),l=o,i.current.lanes=l,pt(i,l),jr(i),t[El]=i.current,kp(t),new _f(i)},as.version="19.2.4",as}var fm;function K4(){if(fm)return zf.exports;fm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),zf.exports=G4(),zf.exports}var $4=K4(),Lf={exports:{}},ls={};/**
42
42
  * @license React
43
43
  * react-jsx-runtime.production.js
44
44
  *
@@ -46,9 +46,204 @@ Error generating stack: `+n.message+`
46
46
  *
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */var Rr;function km(){if(Rr)return ja;Rr=1;var c=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function f(s,o,h){var y=null;if(h!==void 0&&(y=""+h),o.key!==void 0&&(y=""+o.key),"key"in o){h={};for(var S in o)S!=="key"&&(h[S]=o[S])}else h=o;return o=h.ref,{$$typeof:c,type:s,key:y,ref:o!==void 0?o:null,props:h}}return ja.Fragment=u,ja.jsx=f,ja.jsxs=f,ja}var zr;function Wm(){return zr||(zr=1,Dc.exports=km()),Dc.exports}var Nt=Wm(),wa=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(c){return this.listeners.add(c),this.onSubscribe(),()=>{this.listeners.delete(c),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$m={setTimeout:(c,u)=>setTimeout(c,u),clearTimeout:c=>clearTimeout(c),setInterval:(c,u)=>setInterval(c,u),clearInterval:c=>clearInterval(c)},Im=(Do=class{constructor(){at(this,Nl,$m);at(this,Wc,!1)}setTimeoutProvider(c){P(this,Nl,c)}setTimeout(c,u){return z(this,Nl).setTimeout(c,u)}clearTimeout(c){z(this,Nl).clearTimeout(c)}setInterval(c,u){return z(this,Nl).setInterval(c,u)}clearInterval(c){z(this,Nl).clearInterval(c)}},Nl=new WeakMap,Wc=new WeakMap,Do),Mc=new Im;function Pm(c){setTimeout(c,0)}var Gu=typeof window>"u"||"Deno"in globalThis;function xe(){}function t0(c,u){return typeof c=="function"?c(u):c}function e0(c){return typeof c=="number"&&c>=0&&c!==1/0}function l0(c,u){return Math.max(c+(u||0)-Date.now(),0)}function Cc(c,u){return typeof c=="function"?c(u):c}function n0(c,u){return typeof c=="function"?c(u):c}function _r(c,u){const{type:f="all",exact:s,fetchStatus:o,predicate:h,queryKey:y,stale:S}=c;if(y){if(s){if(u.queryHash!==Uc(y,u.options))return!1}else if(!Qa(u.queryKey,y))return!1}if(f!=="all"){const T=u.isActive();if(f==="active"&&!T||f==="inactive"&&T)return!1}return!(typeof S=="boolean"&&u.isStale()!==S||o&&o!==u.state.fetchStatus||h&&!h(u))}function Dr(c,u){const{exact:f,status:s,predicate:o,mutationKey:h}=c;if(h){if(!u.options.mutationKey)return!1;if(f){if(hn(u.options.mutationKey)!==hn(h))return!1}else if(!Qa(u.options.mutationKey,h))return!1}return!(s&&u.state.status!==s||o&&!o(u))}function Uc(c,u){return((u==null?void 0:u.queryKeyHashFn)||hn)(c)}function hn(c){return JSON.stringify(c,(u,f)=>Nc(f)?Object.keys(f).sort().reduce((s,o)=>(s[o]=f[o],s),{}):f)}function Qa(c,u){return c===u?!0:typeof c!=typeof u?!1:c&&u&&typeof c=="object"&&typeof u=="object"?Object.keys(u).every(f=>Qa(c[f],u[f])):!1}var a0=Object.prototype.hasOwnProperty;function Mr(c,u,f=0){if(c===u)return c;if(f>500)return u;const s=Cr(c)&&Cr(u);if(!s&&!(Nc(c)&&Nc(u)))return u;const h=(s?c:Object.keys(c)).length,y=s?u:Object.keys(u),S=y.length,T=s?new Array(S):{};let v=0;for(let R=0;R<S;R++){const C=s?R:y[R],w=c[C],F=u[C];if(w===F){T[C]=w,(s?R<h:a0.call(c,C))&&v++;continue}if(w===null||F===null||typeof w!="object"||typeof F!="object"){T[C]=F;continue}const H=Mr(w,F,f+1);T[C]=H,H===w&&v++}return h===S&&v===h?c:T}function u0(c,u){if(!u||Object.keys(c).length!==Object.keys(u).length)return!1;for(const f in c)if(c[f]!==u[f])return!1;return!0}function Cr(c){return Array.isArray(c)&&c.length===Object.keys(c).length}function Nc(c){if(!Ur(c))return!1;const u=c.constructor;if(u===void 0)return!0;const f=u.prototype;return!(!Ur(f)||!f.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(c)!==Object.prototype)}function Ur(c){return Object.prototype.toString.call(c)==="[object Object]"}function i0(c){return new Promise(u=>{Mc.setTimeout(u,c)})}function c0(c,u,f){return typeof f.structuralSharing=="function"?f.structuralSharing(c,u):f.structuralSharing!==!1?Mr(c,u):u}function s0(c,u,f=0){const s=[...c,u];return f&&s.length>f?s.slice(1):s}function f0(c,u,f=0){const s=[u,...c];return f&&s.length>f?s.slice(0,-1):s}var xc=Symbol();function Nr(c,u){return!c.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!c.queryFn||c.queryFn===xc?()=>Promise.reject(new Error(`Missing queryFn: '${c.queryHash}'`)):c.queryFn}function r0(c,u){return typeof c=="function"?c(...u):!!c}function o0(c,u,f){let s=!1,o;return Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(o??(o=u()),s||(s=!0,o.aborted?f():o.addEventListener("abort",f,{once:!0})),o)}),c}var d0=(Mo=class extends wa{constructor(){super();at(this,gn);at(this,xl);at(this,Zn);P(this,Zn,u=>{if(!Gu&&window.addEventListener){const f=()=>u();return window.addEventListener("visibilitychange",f,!1),()=>{window.removeEventListener("visibilitychange",f)}}})}onSubscribe(){z(this,xl)||this.setEventListener(z(this,Zn))}onUnsubscribe(){var u;this.hasListeners()||((u=z(this,xl))==null||u.call(this),P(this,xl,void 0))}setEventListener(u){var f;P(this,Zn,u),(f=z(this,xl))==null||f.call(this),P(this,xl,u(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(u){z(this,gn)!==u&&(P(this,gn,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(f=>{f(u)})}isFocused(){var u;return typeof z(this,gn)=="boolean"?z(this,gn):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},gn=new WeakMap,xl=new WeakMap,Zn=new WeakMap,Mo),xr=new d0;function h0(){let c,u;const f=new Promise((o,h)=>{c=o,u=h});f.status="pending",f.catch(()=>{});function s(o){Object.assign(f,o),delete f.resolve,delete f.reject}return f.resolve=o=>{s({status:"fulfilled",value:o}),c(o)},f.reject=o=>{s({status:"rejected",reason:o}),u(o)},f}var y0=Pm;function m0(){let c=[],u=0,f=S=>{S()},s=S=>{S()},o=y0;const h=S=>{u?c.push(S):o(()=>{f(S)})},y=()=>{const S=c;c=[],S.length&&o(()=>{s(()=>{S.forEach(T=>{f(T)})})})};return{batch:S=>{let T;u++;try{T=S()}finally{u--,u||y()}return T},batchCalls:S=>(...T)=>{h(()=>{S(...T)})},schedule:h,setNotifyFunction:S=>{f=S},setBatchNotifyFunction:S=>{s=S},setScheduler:S=>{o=S}}}var $t=m0(),v0=(Co=class extends wa{constructor(){super();at(this,Vn,!0);at(this,ql);at(this,Kn);P(this,Kn,u=>{if(!Gu&&window.addEventListener){const f=()=>u(!0),s=()=>u(!1);return window.addEventListener("online",f,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",f),window.removeEventListener("offline",s)}}})}onSubscribe(){z(this,ql)||this.setEventListener(z(this,Kn))}onUnsubscribe(){var u;this.hasListeners()||((u=z(this,ql))==null||u.call(this),P(this,ql,void 0))}setEventListener(u){var f;P(this,Kn,u),(f=z(this,ql))==null||f.call(this),P(this,ql,u(this.setOnline.bind(this)))}setOnline(u){z(this,Vn)!==u&&(P(this,Vn,u),this.listeners.forEach(s=>{s(u)}))}isOnline(){return z(this,Vn)}},Vn=new WeakMap,ql=new WeakMap,Kn=new WeakMap,Co),Xu=new v0;function g0(c){return Math.min(1e3*2**c,3e4)}function qr(c){return(c??"online")==="online"?Xu.isOnline():!0}var qc=class extends Error{constructor(c){super("CancelledError"),this.revert=c==null?void 0:c.revert,this.silent=c==null?void 0:c.silent}};function Hr(c){let u=!1,f=0,s;const o=h0(),h=()=>o.status!=="pending",y=B=>{var j;if(!h()){const W=new qc(B);w(W),(j=c.onCancel)==null||j.call(c,W)}},S=()=>{u=!0},T=()=>{u=!1},v=()=>xr.isFocused()&&(c.networkMode==="always"||Xu.isOnline())&&c.canRun(),R=()=>qr(c.networkMode)&&c.canRun(),C=B=>{h()||(s==null||s(),o.resolve(B))},w=B=>{h()||(s==null||s(),o.reject(B))},F=()=>new Promise(B=>{var j;s=W=>{(h()||v())&&B(W)},(j=c.onPause)==null||j.call(c)}).then(()=>{var B;s=void 0,h()||(B=c.onContinue)==null||B.call(c)}),H=()=>{if(h())return;let B;const j=f===0?c.initialPromise:void 0;try{B=j??c.fn()}catch(W){B=Promise.reject(W)}Promise.resolve(B).then(C).catch(W=>{var mt;if(h())return;const ft=c.retry??(Gu?0:3),K=c.retryDelay??g0,Y=typeof K=="function"?K(f,W):K,ut=ft===!0||typeof ft=="number"&&f<ft||typeof ft=="function"&&ft(f,W);if(u||!ut){w(W);return}f++,(mt=c.onFail)==null||mt.call(c,f,W),i0(Y).then(()=>v()?void 0:F()).then(()=>{u?w(W):H()})})};return{promise:o,status:()=>o.status,cancel:y,continue:()=>(s==null||s(),o),cancelRetry:S,continueRetry:T,canStart:R,start:()=>(R()?H():F().then(H),o)}}var Br=(Uo=class{constructor(){at(this,pn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),e0(this.gcTime)&&P(this,pn,Mc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(c){this.gcTime=Math.max(this.gcTime||0,c??(Gu?1/0:300*1e3))}clearGcTimeout(){z(this,pn)&&(Mc.clearTimeout(z(this,pn)),P(this,pn,void 0))}},pn=new WeakMap,Uo),p0=(No=class extends Br{constructor(u){super();at(this,We);at(this,Sn);at(this,Jn);at(this,He);at(this,bn);at(this,Ft);at(this,Ka);at(this,En);P(this,En,!1),P(this,Ka,u.defaultOptions),this.setOptions(u.options),this.observers=[],P(this,bn,u.client),P(this,He,z(this,bn).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,P(this,Sn,wr(this.options)),this.state=u.state??z(this,Sn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var u;return(u=z(this,Ft))==null?void 0:u.promise}setOptions(u){if(this.options={...z(this,Ka),...u},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const f=wr(this.options);f.data!==void 0&&(this.setState(jr(f.data,f.dataUpdatedAt)),P(this,Sn,f))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&z(this,He).remove(this)}setData(u,f){const s=c0(this.state.data,u,this.options);return Yt(this,We,Ul).call(this,{data:s,type:"success",dataUpdatedAt:f==null?void 0:f.updatedAt,manual:f==null?void 0:f.manual}),s}setState(u,f){Yt(this,We,Ul).call(this,{type:"setState",state:u,setStateOptions:f})}cancel(u){var s,o;const f=(s=z(this,Ft))==null?void 0:s.promise;return(o=z(this,Ft))==null||o.cancel(u),f?f.then(xe).catch(xe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(z(this,Sn))}isActive(){return this.observers.some(u=>n0(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xc||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(u=>Cc(u.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(u=0){return this.state.data===void 0?!0:u==="static"?!1:this.state.isInvalidated?!0:!l0(this.state.dataUpdatedAt,u)}onFocus(){var f;const u=this.observers.find(s=>s.shouldFetchOnWindowFocus());u==null||u.refetch({cancelRefetch:!1}),(f=z(this,Ft))==null||f.continue()}onOnline(){var f;const u=this.observers.find(s=>s.shouldFetchOnReconnect());u==null||u.refetch({cancelRefetch:!1}),(f=z(this,Ft))==null||f.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),z(this,He).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){this.observers.includes(u)&&(this.observers=this.observers.filter(f=>f!==u),this.observers.length||(z(this,Ft)&&(z(this,En)?z(this,Ft).cancel({revert:!0}):z(this,Ft).cancelRetry()),this.scheduleGc()),z(this,He).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Yt(this,We,Ul).call(this,{type:"invalidate"})}async fetch(u,f){var T,v,R,C,w,F,H,B,j,W,ft,K;if(this.state.fetchStatus!=="idle"&&((T=z(this,Ft))==null?void 0:T.status())!=="rejected"){if(this.state.data!==void 0&&(f!=null&&f.cancelRefetch))this.cancel({silent:!0});else if(z(this,Ft))return z(this,Ft).continueRetry(),z(this,Ft).promise}if(u&&this.setOptions(u),!this.options.queryFn){const Y=this.observers.find(ut=>ut.options.queryFn);Y&&this.setOptions(Y.options)}const s=new AbortController,o=Y=>{Object.defineProperty(Y,"signal",{enumerable:!0,get:()=>(P(this,En,!0),s.signal)})},h=()=>{const Y=Nr(this.options,f),mt=(()=>{const k={client:z(this,bn),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return P(this,En,!1),this.options.persister?this.options.persister(Y,mt,this):Y(mt)},S=(()=>{const Y={fetchOptions:f,options:this.options,queryKey:this.queryKey,client:z(this,bn),state:this.state,fetchFn:h};return o(Y),Y})();(v=this.options.behavior)==null||v.onFetch(S,this),P(this,Jn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((R=S.fetchOptions)==null?void 0:R.meta))&&Yt(this,We,Ul).call(this,{type:"fetch",meta:(C=S.fetchOptions)==null?void 0:C.meta}),P(this,Ft,Hr({initialPromise:f==null?void 0:f.initialPromise,fn:S.fetchFn,onCancel:Y=>{Y instanceof qc&&Y.revert&&this.setState({...z(this,Jn),fetchStatus:"idle"}),s.abort()},onFail:(Y,ut)=>{Yt(this,We,Ul).call(this,{type:"failed",failureCount:Y,error:ut})},onPause:()=>{Yt(this,We,Ul).call(this,{type:"pause"})},onContinue:()=>{Yt(this,We,Ul).call(this,{type:"continue"})},retry:S.options.retry,retryDelay:S.options.retryDelay,networkMode:S.options.networkMode,canRun:()=>!0}));try{const Y=await z(this,Ft).start();if(Y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Y),(F=(w=z(this,He).config).onSuccess)==null||F.call(w,Y,this),(B=(H=z(this,He).config).onSettled)==null||B.call(H,Y,this.state.error,this),Y}catch(Y){if(Y instanceof qc){if(Y.silent)return z(this,Ft).promise;if(Y.revert){if(this.state.data===void 0)throw Y;return this.state.data}}throw Yt(this,We,Ul).call(this,{type:"error",error:Y}),(W=(j=z(this,He).config).onError)==null||W.call(j,Y,this),(K=(ft=z(this,He).config).onSettled)==null||K.call(ft,this.state.data,Y,this),Y}finally{this.scheduleGc()}}},Sn=new WeakMap,Jn=new WeakMap,He=new WeakMap,bn=new WeakMap,Ft=new WeakMap,Ka=new WeakMap,En=new WeakMap,We=new WeakSet,Ul=function(u){const f=s=>{switch(u.type){case"failed":return{...s,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...S0(s.data,this.options),fetchMeta:u.meta??null};case"success":const o={...s,...jr(u.data,u.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return P(this,Jn,u.manual?o:void 0),o;case"error":const h=u.error;return{...s,error:h,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:h,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...u.state}}};this.state=f(this.state),$t.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),z(this,He).notify({query:this,type:"updated",action:u})})},No);function S0(c,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:qr(u.networkMode)?"fetching":"paused",...c===void 0&&{error:null,status:"pending"}}}function jr(c,u){return{data:c,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wr(c){const u=typeof c.initialData=="function"?c.initialData():c.initialData,f=u!==void 0,s=f?typeof c.initialDataUpdatedAt=="function"?c.initialDataUpdatedAt():c.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:f?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:f?"success":"pending",fetchStatus:"idle"}}function Qr(c){return{onFetch:(u,f)=>{var R,C,w,F,H;const s=u.options,o=(w=(C=(R=u.fetchOptions)==null?void 0:R.meta)==null?void 0:C.fetchMore)==null?void 0:w.direction,h=((F=u.state.data)==null?void 0:F.pages)||[],y=((H=u.state.data)==null?void 0:H.pageParams)||[];let S={pages:[],pageParams:[]},T=0;const v=async()=>{let B=!1;const j=K=>{o0(K,()=>u.signal,()=>B=!0)},W=Nr(u.options,u.fetchOptions),ft=async(K,Y,ut)=>{if(B)return Promise.reject();if(Y==null&&K.pages.length)return Promise.resolve(K);const k=(()=>{const se={client:u.client,queryKey:u.queryKey,pageParam:Y,direction:ut?"backward":"forward",meta:u.options.meta};return j(se),se})(),rt=await W(k),{maxPages:St}=u.options,Be=ut?f0:s0;return{pages:Be(K.pages,rt,St),pageParams:Be(K.pageParams,Y,St)}};if(o&&h.length){const K=o==="backward",Y=K?b0:Lr,ut={pages:h,pageParams:y},mt=Y(s,ut);S=await ft(ut,mt,K)}else{const K=c??h.length;do{const Y=T===0?y[0]??s.initialPageParam:Lr(s,S);if(T>0&&Y==null)break;S=await ft(S,Y),T++}while(T<K)}return S};u.options.persister?u.fetchFn=()=>{var B,j;return(j=(B=u.options).persister)==null?void 0:j.call(B,v,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},f)}:u.fetchFn=v}}}function Lr(c,{pages:u,pageParams:f}){const s=u.length-1;return u.length>0?c.getNextPageParam(u[s],u,f[s],f):void 0}function b0(c,{pages:u,pageParams:f}){var s;return u.length>0?(s=c.getPreviousPageParam)==null?void 0:s.call(c,u[0],u,f[0],f):void 0}var E0=(xo=class extends Br{constructor(u){super();at(this,ll);at(this,Ja);at(this,el);at(this,ce);at(this,Tn);P(this,Ja,u.client),this.mutationId=u.mutationId,P(this,ce,u.mutationCache),P(this,el,[]),this.state=u.state||Yr(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){z(this,el).includes(u)||(z(this,el).push(u),this.clearGcTimeout(),z(this,ce).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){P(this,el,z(this,el).filter(f=>f!==u)),this.scheduleGc(),z(this,ce).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){z(this,el).length||(this.state.status==="pending"?this.scheduleGc():z(this,ce).remove(this))}continue(){var u;return((u=z(this,Tn))==null?void 0:u.continue())??this.execute(this.state.variables)}async execute(u){var y,S,T,v,R,C,w,F,H,B,j,W,ft,K,Y,ut,mt,k;const f=()=>{Yt(this,ll,on).call(this,{type:"continue"})},s={client:z(this,Ja),meta:this.options.meta,mutationKey:this.options.mutationKey};P(this,Tn,Hr({fn:()=>this.options.mutationFn?this.options.mutationFn(u,s):Promise.reject(new Error("No mutationFn found")),onFail:(rt,St)=>{Yt(this,ll,on).call(this,{type:"failed",failureCount:rt,error:St})},onPause:()=>{Yt(this,ll,on).call(this,{type:"pause"})},onContinue:f,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>z(this,ce).canRun(this)}));const o=this.state.status==="pending",h=!z(this,Tn).canStart();try{if(o)f();else{Yt(this,ll,on).call(this,{type:"pending",variables:u,isPaused:h}),z(this,ce).config.onMutate&&await z(this,ce).config.onMutate(u,this,s);const St=await((S=(y=this.options).onMutate)==null?void 0:S.call(y,u,s));St!==this.state.context&&Yt(this,ll,on).call(this,{type:"pending",context:St,variables:u,isPaused:h})}const rt=await z(this,Tn).start();return await((v=(T=z(this,ce).config).onSuccess)==null?void 0:v.call(T,rt,u,this.state.context,this,s)),await((C=(R=this.options).onSuccess)==null?void 0:C.call(R,rt,u,this.state.context,s)),await((F=(w=z(this,ce).config).onSettled)==null?void 0:F.call(w,rt,null,this.state.variables,this.state.context,this,s)),await((B=(H=this.options).onSettled)==null?void 0:B.call(H,rt,null,u,this.state.context,s)),Yt(this,ll,on).call(this,{type:"success",data:rt}),rt}catch(rt){try{await((W=(j=z(this,ce).config).onError)==null?void 0:W.call(j,rt,u,this.state.context,this,s))}catch(St){Promise.reject(St)}try{await((K=(ft=this.options).onError)==null?void 0:K.call(ft,rt,u,this.state.context,s))}catch(St){Promise.reject(St)}try{await((ut=(Y=z(this,ce).config).onSettled)==null?void 0:ut.call(Y,void 0,rt,this.state.variables,this.state.context,this,s))}catch(St){Promise.reject(St)}try{await((k=(mt=this.options).onSettled)==null?void 0:k.call(mt,void 0,rt,u,this.state.context,s))}catch(St){Promise.reject(St)}throw Yt(this,ll,on).call(this,{type:"error",error:rt}),rt}finally{z(this,ce).runNext(this)}}},Ja=new WeakMap,el=new WeakMap,ce=new WeakMap,Tn=new WeakMap,ll=new WeakSet,on=function(u){const f=s=>{switch(u.type){case"failed":return{...s,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...s,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:u.error,failureCount:s.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=f(this.state),$t.batch(()=>{z(this,el).forEach(s=>{s.onMutationUpdate(u)}),z(this,ce).notify({mutation:this,type:"updated",action:u})})},xo);function Yr(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var T0=(qo=class extends wa{constructor(u={}){super();at(this,fl);at(this,$e);at(this,Fa);this.config=u,P(this,fl,new Set),P(this,$e,new Map),P(this,Fa,0)}build(u,f,s){const o=new E0({client:u,mutationCache:this,mutationId:++bc(this,Fa)._,options:u.defaultMutationOptions(f),state:s});return this.add(o),o}add(u){z(this,fl).add(u);const f=Zu(u);if(typeof f=="string"){const s=z(this,$e).get(f);s?s.push(u):z(this,$e).set(f,[u])}this.notify({type:"added",mutation:u})}remove(u){if(z(this,fl).delete(u)){const f=Zu(u);if(typeof f=="string"){const s=z(this,$e).get(f);if(s)if(s.length>1){const o=s.indexOf(u);o!==-1&&s.splice(o,1)}else s[0]===u&&z(this,$e).delete(f)}}this.notify({type:"removed",mutation:u})}canRun(u){const f=Zu(u);if(typeof f=="string"){const s=z(this,$e).get(f),o=s==null?void 0:s.find(h=>h.state.status==="pending");return!o||o===u}else return!0}runNext(u){var s;const f=Zu(u);if(typeof f=="string"){const o=(s=z(this,$e).get(f))==null?void 0:s.find(h=>h!==u&&h.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$t.batch(()=>{z(this,fl).forEach(u=>{this.notify({type:"removed",mutation:u})}),z(this,fl).clear(),z(this,$e).clear()})}getAll(){return Array.from(z(this,fl))}find(u){const f={exact:!0,...u};return this.getAll().find(s=>Dr(f,s))}findAll(u={}){return this.getAll().filter(f=>Dr(u,f))}notify(u){$t.batch(()=>{this.listeners.forEach(f=>{f(u)})})}resumePausedMutations(){const u=this.getAll().filter(f=>f.state.isPaused);return $t.batch(()=>Promise.all(u.map(f=>f.continue().catch(xe))))}},fl=new WeakMap,$e=new WeakMap,Fa=new WeakMap,qo);function Zu(c){var u;return(u=c.options.scope)==null?void 0:u.id}var A0=(Ho=class extends wa{constructor(u,f){super();at(this,dl);at(this,rl);at(this,Hl);at(this,he);at(this,ol);P(this,rl,u),this.setOptions(f),this.bindMethods(),Yt(this,dl,Ec).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(u){var s;const f=this.options;this.options=z(this,rl).defaultMutationOptions(u),u0(this.options,f)||z(this,rl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:z(this,he),observer:this}),f!=null&&f.mutationKey&&this.options.mutationKey&&hn(f.mutationKey)!==hn(this.options.mutationKey)?this.reset():((s=z(this,he))==null?void 0:s.state.status)==="pending"&&z(this,he).setOptions(this.options)}onUnsubscribe(){var u;this.hasListeners()||(u=z(this,he))==null||u.removeObserver(this)}onMutationUpdate(u){Yt(this,dl,Ec).call(this),Yt(this,dl,gr).call(this,u)}getCurrentResult(){return z(this,Hl)}reset(){var u;(u=z(this,he))==null||u.removeObserver(this),P(this,he,void 0),Yt(this,dl,Ec).call(this),Yt(this,dl,gr).call(this)}mutate(u,f){var s;return P(this,ol,f),(s=z(this,he))==null||s.removeObserver(this),P(this,he,z(this,rl).getMutationCache().build(z(this,rl),this.options)),z(this,he).addObserver(this),z(this,he).execute(u)}},rl=new WeakMap,Hl=new WeakMap,he=new WeakMap,ol=new WeakMap,dl=new WeakSet,Ec=function(){var f;const u=((f=z(this,he))==null?void 0:f.state)??Yr();P(this,Hl,{...u,isPending:u.status==="pending",isSuccess:u.status==="success",isError:u.status==="error",isIdle:u.status==="idle",mutate:this.mutate,reset:this.reset})},gr=function(u){$t.batch(()=>{var f,s,o,h,y,S,T,v;if(z(this,ol)&&this.hasListeners()){const R=z(this,Hl).variables,C=z(this,Hl).context,w={client:z(this,rl),meta:this.options.meta,mutationKey:this.options.mutationKey};if((u==null?void 0:u.type)==="success"){try{(s=(f=z(this,ol)).onSuccess)==null||s.call(f,u.data,R,C,w)}catch(F){Promise.reject(F)}try{(h=(o=z(this,ol)).onSettled)==null||h.call(o,u.data,null,R,C,w)}catch(F){Promise.reject(F)}}else if((u==null?void 0:u.type)==="error"){try{(S=(y=z(this,ol)).onError)==null||S.call(y,u.error,R,C,w)}catch(F){Promise.reject(F)}try{(v=(T=z(this,ol)).onSettled)==null||v.call(T,void 0,u.error,R,C,w)}catch(F){Promise.reject(F)}}}this.listeners.forEach(R=>{R(z(this,Hl))})})},Ho),O0=(Bo=class extends wa{constructor(u={}){super();at(this,nl);this.config=u,P(this,nl,new Map)}build(u,f,s){const o=f.queryKey,h=f.queryHash??Uc(o,f);let y=this.get(h);return y||(y=new p0({client:u,queryKey:o,queryHash:h,options:u.defaultQueryOptions(f),state:s,defaultOptions:u.getQueryDefaults(o)}),this.add(y)),y}add(u){z(this,nl).has(u.queryHash)||(z(this,nl).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){const f=z(this,nl).get(u.queryHash);f&&(u.destroy(),f===u&&z(this,nl).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){$t.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return z(this,nl).get(u)}getAll(){return[...z(this,nl).values()]}find(u){const f={exact:!0,...u};return this.getAll().find(s=>_r(f,s))}findAll(u={}){const f=this.getAll();return Object.keys(u).length>0?f.filter(s=>_r(u,s)):f}notify(u){$t.batch(()=>{this.listeners.forEach(f=>{f(u)})})}onFocus(){$t.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){$t.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},nl=new WeakMap,Bo),R0=(jo=class{constructor(c={}){at(this,qt);at(this,Bl);at(this,jl);at(this,Fn);at(this,kn);at(this,wl);at(this,Wn);at(this,$n);P(this,qt,c.queryCache||new O0),P(this,Bl,c.mutationCache||new T0),P(this,jl,c.defaultOptions||{}),P(this,Fn,new Map),P(this,kn,new Map),P(this,wl,0)}mount(){bc(this,wl)._++,z(this,wl)===1&&(P(this,Wn,xr.subscribe(async c=>{c&&(await this.resumePausedMutations(),z(this,qt).onFocus())})),P(this,$n,Xu.subscribe(async c=>{c&&(await this.resumePausedMutations(),z(this,qt).onOnline())})))}unmount(){var c,u;bc(this,wl)._--,z(this,wl)===0&&((c=z(this,Wn))==null||c.call(this),P(this,Wn,void 0),(u=z(this,$n))==null||u.call(this),P(this,$n,void 0))}isFetching(c){return z(this,qt).findAll({...c,fetchStatus:"fetching"}).length}isMutating(c){return z(this,Bl).findAll({...c,status:"pending"}).length}getQueryData(c){var f;const u=this.defaultQueryOptions({queryKey:c});return(f=z(this,qt).get(u.queryHash))==null?void 0:f.state.data}ensureQueryData(c){const u=this.defaultQueryOptions(c),f=z(this,qt).build(this,u),s=f.state.data;return s===void 0?this.fetchQuery(c):(c.revalidateIfStale&&f.isStaleByTime(Cc(u.staleTime,f))&&this.prefetchQuery(u),Promise.resolve(s))}getQueriesData(c){return z(this,qt).findAll(c).map(({queryKey:u,state:f})=>{const s=f.data;return[u,s]})}setQueryData(c,u,f){const s=this.defaultQueryOptions({queryKey:c}),o=z(this,qt).get(s.queryHash),h=o==null?void 0:o.state.data,y=t0(u,h);if(y!==void 0)return z(this,qt).build(this,s).setData(y,{...f,manual:!0})}setQueriesData(c,u,f){return $t.batch(()=>z(this,qt).findAll(c).map(({queryKey:s})=>[s,this.setQueryData(s,u,f)]))}getQueryState(c){var f;const u=this.defaultQueryOptions({queryKey:c});return(f=z(this,qt).get(u.queryHash))==null?void 0:f.state}removeQueries(c){const u=z(this,qt);$t.batch(()=>{u.findAll(c).forEach(f=>{u.remove(f)})})}resetQueries(c,u){const f=z(this,qt);return $t.batch(()=>(f.findAll(c).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...c},u)))}cancelQueries(c,u={}){const f={revert:!0,...u},s=$t.batch(()=>z(this,qt).findAll(c).map(o=>o.cancel(f)));return Promise.all(s).then(xe).catch(xe)}invalidateQueries(c,u={}){return $t.batch(()=>(z(this,qt).findAll(c).forEach(f=>{f.invalidate()}),(c==null?void 0:c.refetchType)==="none"?Promise.resolve():this.refetchQueries({...c,type:(c==null?void 0:c.refetchType)??(c==null?void 0:c.type)??"active"},u)))}refetchQueries(c,u={}){const f={...u,cancelRefetch:u.cancelRefetch??!0},s=$t.batch(()=>z(this,qt).findAll(c).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let h=o.fetch(void 0,f);return f.throwOnError||(h=h.catch(xe)),o.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(s).then(xe)}fetchQuery(c){const u=this.defaultQueryOptions(c);u.retry===void 0&&(u.retry=!1);const f=z(this,qt).build(this,u);return f.isStaleByTime(Cc(u.staleTime,f))?f.fetch(u):Promise.resolve(f.state.data)}prefetchQuery(c){return this.fetchQuery(c).then(xe).catch(xe)}fetchInfiniteQuery(c){return c.behavior=Qr(c.pages),this.fetchQuery(c)}prefetchInfiniteQuery(c){return this.fetchInfiniteQuery(c).then(xe).catch(xe)}ensureInfiniteQueryData(c){return c.behavior=Qr(c.pages),this.ensureQueryData(c)}resumePausedMutations(){return Xu.isOnline()?z(this,Bl).resumePausedMutations():Promise.resolve()}getQueryCache(){return z(this,qt)}getMutationCache(){return z(this,Bl)}getDefaultOptions(){return z(this,jl)}setDefaultOptions(c){P(this,jl,c)}setQueryDefaults(c,u){z(this,Fn).set(hn(c),{queryKey:c,defaultOptions:u})}getQueryDefaults(c){const u=[...z(this,Fn).values()],f={};return u.forEach(s=>{Qa(c,s.queryKey)&&Object.assign(f,s.defaultOptions)}),f}setMutationDefaults(c,u){z(this,kn).set(hn(c),{mutationKey:c,defaultOptions:u})}getMutationDefaults(c){const u=[...z(this,kn).values()],f={};return u.forEach(s=>{Qa(c,s.mutationKey)&&Object.assign(f,s.defaultOptions)}),f}defaultQueryOptions(c){if(c._defaulted)return c;const u={...z(this,jl).queries,...this.getQueryDefaults(c.queryKey),...c,_defaulted:!0};return u.queryHash||(u.queryHash=Uc(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===xc&&(u.enabled=!1),u}defaultMutationOptions(c){return c!=null&&c._defaulted?c:{...z(this,jl).mutations,...(c==null?void 0:c.mutationKey)&&this.getMutationDefaults(c.mutationKey),...c,_defaulted:!0}}clear(){z(this,qt).clear(),z(this,Bl).clear()}},qt=new WeakMap,Bl=new WeakMap,jl=new WeakMap,Fn=new WeakMap,kn=new WeakMap,wl=new WeakMap,Wn=new WeakMap,$n=new WeakMap,jo),Gr=Fe.createContext(void 0),z0=c=>{const u=Fe.useContext(Gr);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},_0=({client:c,children:u})=>(Fe.useEffect(()=>(c.mount(),()=>{c.unmount()}),[c]),Nt.jsx(Gr.Provider,{value:c,children:u}));function D0(c,u){const f=z0(),[s]=Fe.useState(()=>new A0(f,c));Fe.useEffect(()=>{s.setOptions(c)},[s,c]);const o=Fe.useSyncExternalStore(Fe.useCallback(y=>s.subscribe($t.batchCalls(y)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),h=Fe.useCallback((y,S)=>{s.mutate(y,S).catch(xe)},[s]);if(o.error&&r0(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:h,mutateAsync:o.mutate}}function M0({messages:c,onSendMessage:u,isSending:f,className:s,style:o}){const[h,y]=Fe.useState(""),S=T=>{T.preventDefault(),h.trim()&&!f&&(u(h),y(""))};return Nt.jsxs("div",{className:`fixed bottom-4 right-4 w-96 h-[500px] flex flex-col bg-white border border-gray-200 rounded-lg shadow-xl overflow-hidden font-sans ${s||""}`,style:o,children:[Nt.jsxs("div",{className:"bg-slate-800 text-white p-4 flex justify-between items-center",children:[Nt.jsx("h3",{className:"font-semibold text-lg",children:"ChatWillow"}),Nt.jsx("span",{className:"text-xs text-slate-300",children:"Online"})]}),Nt.jsxs("div",{className:"flex-1 p-4 overflow-y-auto bg-gray-50 flex flex-col gap-3",children:[c.length===0&&Nt.jsx("div",{className:"text-center text-gray-400 my-auto text-sm",children:"Start a conversation..."}),c.map(T=>Nt.jsx("div",{className:`flex ${T.role==="user"?"justify-end":"justify-start"}`,children:Nt.jsx("div",{className:`max-w-[80%] p-3 rounded-lg text-sm ${T.role==="user"?"bg-slate-800 text-white rounded-br-none":"bg-white text-gray-800 border border-gray-200 rounded-bl-none shadow-sm"}`,children:T.content})},T.id)),f&&Nt.jsx("div",{className:"flex justify-start",children:Nt.jsx("div",{className:"bg-white text-gray-800 border border-gray-200 p-3 rounded-lg rounded-bl-none shadow-sm",children:Nt.jsxs("span",{className:"flex gap-1",children:[Nt.jsx("span",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce"}),Nt.jsx("span",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce delay-75"}),Nt.jsx("span",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce delay-150"})]})})})]}),Nt.jsx("form",{onSubmit:S,className:"p-3 bg-white border-t border-gray-100",children:Nt.jsxs("div",{className:"flex gap-2",children:[Nt.jsx("input",{type:"text",value:h,onChange:T=>y(T.target.value),disabled:f,placeholder:"Type your message...",className:"flex-1 px-4 py-2 bg-gray-100 border-0 rounded-full focus:ring-2 focus:ring-slate-800 focus:outline-none transition-all text-sm disabled:opacity-50"}),Nt.jsx("button",{type:"submit",disabled:!h.trim()||f,className:"p-2 bg-slate-800 text-white rounded-full hover:bg-slate-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:Nt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"w-5 h-5",children:Nt.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})})})]})})]})}function Xr(c,u){return function(){return c.apply(u,arguments)}}const{toString:C0}=Object.prototype,{getPrototypeOf:Hc}=Object,{iterator:Vu,toStringTag:Zr}=Symbol,Ku=(c=>u=>{const f=C0.call(u);return c[f]||(c[f]=f.slice(8,-1).toLowerCase())})(Object.create(null)),ke=c=>(c=c.toLowerCase(),u=>Ku(u)===c),Ju=c=>u=>typeof u===c,{isArray:Gn}=Array,Xn=Ju("undefined");function La(c){return c!==null&&!Xn(c)&&c.constructor!==null&&!Xn(c.constructor)&&oe(c.constructor.isBuffer)&&c.constructor.isBuffer(c)}const Vr=ke("ArrayBuffer");function U0(c){let u;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?u=ArrayBuffer.isView(c):u=c&&c.buffer&&Vr(c.buffer),u}const N0=Ju("string"),oe=Ju("function"),Kr=Ju("number"),Ya=c=>c!==null&&typeof c=="object",x0=c=>c===!0||c===!1,Fu=c=>{if(Ku(c)!=="object")return!1;const u=Hc(c);return(u===null||u===Object.prototype||Object.getPrototypeOf(u)===null)&&!(Zr in c)&&!(Vu in c)},q0=c=>{if(!Ya(c)||La(c))return!1;try{return Object.keys(c).length===0&&Object.getPrototypeOf(c)===Object.prototype}catch{return!1}},H0=ke("Date"),B0=ke("File"),j0=ke("Blob"),w0=ke("FileList"),Q0=c=>Ya(c)&&oe(c.pipe),L0=c=>{let u;return c&&(typeof FormData=="function"&&c instanceof FormData||oe(c.append)&&((u=Ku(c))==="formdata"||u==="object"&&oe(c.toString)&&c.toString()==="[object FormData]"))},Y0=ke("URLSearchParams"),[G0,X0,Z0,V0]=["ReadableStream","Request","Response","Headers"].map(ke),K0=c=>c.trim?c.trim():c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ga(c,u,{allOwnKeys:f=!1}={}){if(c===null||typeof c>"u")return;let s,o;if(typeof c!="object"&&(c=[c]),Gn(c))for(s=0,o=c.length;s<o;s++)u.call(null,c[s],s,c);else{if(La(c))return;const h=f?Object.getOwnPropertyNames(c):Object.keys(c),y=h.length;let S;for(s=0;s<y;s++)S=h[s],u.call(null,c[S],S,c)}}function Jr(c,u){if(La(c))return null;u=u.toLowerCase();const f=Object.keys(c);let s=f.length,o;for(;s-- >0;)if(o=f[s],u===o.toLowerCase())return o;return null}const yn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fr=c=>!Xn(c)&&c!==yn;function Bc(){const{caseless:c,skipUndefined:u}=Fr(this)&&this||{},f={},s=(o,h)=>{if(h==="__proto__"||h==="constructor"||h==="prototype")return;const y=c&&Jr(f,h)||h;Fu(f[y])&&Fu(o)?f[y]=Bc(f[y],o):Fu(o)?f[y]=Bc({},o):Gn(o)?f[y]=o.slice():(!u||!Xn(o))&&(f[y]=o)};for(let o=0,h=arguments.length;o<h;o++)arguments[o]&&Ga(arguments[o],s);return f}const J0=(c,u,f,{allOwnKeys:s}={})=>(Ga(u,(o,h)=>{f&&oe(o)?Object.defineProperty(c,h,{value:Xr(o,f),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(c,h,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),c),F0=c=>(c.charCodeAt(0)===65279&&(c=c.slice(1)),c),k0=(c,u,f,s)=>{c.prototype=Object.create(u.prototype,s),Object.defineProperty(c.prototype,"constructor",{value:c,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(c,"super",{value:u.prototype}),f&&Object.assign(c.prototype,f)},W0=(c,u,f,s)=>{let o,h,y;const S={};if(u=u||{},c==null)return u;do{for(o=Object.getOwnPropertyNames(c),h=o.length;h-- >0;)y=o[h],(!s||s(y,c,u))&&!S[y]&&(u[y]=c[y],S[y]=!0);c=f!==!1&&Hc(c)}while(c&&(!f||f(c,u))&&c!==Object.prototype);return u},$0=(c,u,f)=>{c=String(c),(f===void 0||f>c.length)&&(f=c.length),f-=u.length;const s=c.indexOf(u,f);return s!==-1&&s===f},I0=c=>{if(!c)return null;if(Gn(c))return c;let u=c.length;if(!Kr(u))return null;const f=new Array(u);for(;u-- >0;)f[u]=c[u];return f},P0=(c=>u=>c&&u instanceof c)(typeof Uint8Array<"u"&&Hc(Uint8Array)),tv=(c,u)=>{const s=(c&&c[Vu]).call(c);let o;for(;(o=s.next())&&!o.done;){const h=o.value;u.call(c,h[0],h[1])}},ev=(c,u)=>{let f;const s=[];for(;(f=c.exec(u))!==null;)s.push(f);return s},lv=ke("HTMLFormElement"),nv=c=>c.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(f,s,o){return s.toUpperCase()+o}),kr=(({hasOwnProperty:c})=>(u,f)=>c.call(u,f))(Object.prototype),av=ke("RegExp"),Wr=(c,u)=>{const f=Object.getOwnPropertyDescriptors(c),s={};Ga(f,(o,h)=>{let y;(y=u(o,h,c))!==!1&&(s[h]=y||o)}),Object.defineProperties(c,s)},uv=c=>{Wr(c,(u,f)=>{if(oe(c)&&["arguments","caller","callee"].indexOf(f)!==-1)return!1;const s=c[f];if(oe(s)){if(u.enumerable=!1,"writable"in u){u.writable=!1;return}u.set||(u.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},iv=(c,u)=>{const f={},s=o=>{o.forEach(h=>{f[h]=!0})};return Gn(c)?s(c):s(String(c).split(u)),f},cv=()=>{},sv=(c,u)=>c!=null&&Number.isFinite(c=+c)?c:u;function fv(c){return!!(c&&oe(c.append)&&c[Zr]==="FormData"&&c[Vu])}const rv=c=>{const u=new Array(10),f=(s,o)=>{if(Ya(s)){if(u.indexOf(s)>=0)return;if(La(s))return s;if(!("toJSON"in s)){u[o]=s;const h=Gn(s)?[]:{};return Ga(s,(y,S)=>{const T=f(y,o+1);!Xn(T)&&(h[S]=T)}),u[o]=void 0,h}}return s};return f(c,0)},ov=ke("AsyncFunction"),dv=c=>c&&(Ya(c)||oe(c))&&oe(c.then)&&oe(c.catch),$r=((c,u)=>c?setImmediate:u?((f,s)=>(yn.addEventListener("message",({source:o,data:h})=>{o===yn&&h===f&&s.length&&s.shift()()},!1),o=>{s.push(o),yn.postMessage(f,"*")}))(`axios@${Math.random()}`,[]):f=>setTimeout(f))(typeof setImmediate=="function",oe(yn.postMessage)),hv=typeof queueMicrotask<"u"?queueMicrotask.bind(yn):typeof process<"u"&&process.nextTick||$r,_={isArray:Gn,isArrayBuffer:Vr,isBuffer:La,isFormData:L0,isArrayBufferView:U0,isString:N0,isNumber:Kr,isBoolean:x0,isObject:Ya,isPlainObject:Fu,isEmptyObject:q0,isReadableStream:G0,isRequest:X0,isResponse:Z0,isHeaders:V0,isUndefined:Xn,isDate:H0,isFile:B0,isBlob:j0,isRegExp:av,isFunction:oe,isStream:Q0,isURLSearchParams:Y0,isTypedArray:P0,isFileList:w0,forEach:Ga,merge:Bc,extend:J0,trim:K0,stripBOM:F0,inherits:k0,toFlatObject:W0,kindOf:Ku,kindOfTest:ke,endsWith:$0,toArray:I0,forEachEntry:tv,matchAll:ev,isHTMLForm:lv,hasOwnProperty:kr,hasOwnProp:kr,reduceDescriptors:Wr,freezeMethods:uv,toObjectSet:iv,toCamelCase:nv,noop:cv,toFiniteNumber:sv,findKey:Jr,global:yn,isContextDefined:Fr,isSpecCompliantForm:fv,toJSONObject:rv,isAsyncFn:ov,isThenable:dv,setImmediate:$r,asap:hv,isIterable:c=>c!=null&&oe(c[Vu])};let tt=class Lm extends Error{static from(u,f,s,o,h,y){const S=new Lm(u.message,f||u.code,s,o,h);return S.cause=u,S.name=u.name,y&&Object.assign(S,y),S}constructor(u,f,s,o,h){super(u),this.name="AxiosError",this.isAxiosError=!0,f&&(this.code=f),s&&(this.config=s),o&&(this.request=o),h&&(this.response=h,this.status=h.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.status}}};tt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",tt.ERR_BAD_OPTION="ERR_BAD_OPTION",tt.ECONNABORTED="ECONNABORTED",tt.ETIMEDOUT="ETIMEDOUT",tt.ERR_NETWORK="ERR_NETWORK",tt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",tt.ERR_DEPRECATED="ERR_DEPRECATED",tt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",tt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",tt.ERR_CANCELED="ERR_CANCELED",tt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",tt.ERR_INVALID_URL="ERR_INVALID_URL";const yv=null;function jc(c){return _.isPlainObject(c)||_.isArray(c)}function Ir(c){return _.endsWith(c,"[]")?c.slice(0,-2):c}function Pr(c,u,f){return c?c.concat(u).map(function(o,h){return o=Ir(o),!f&&h?"["+o+"]":o}).join(f?".":""):u}function mv(c){return _.isArray(c)&&!c.some(jc)}const vv=_.toFlatObject(_,{},null,function(u){return/^is[A-Z]/.test(u)});function ku(c,u,f){if(!_.isObject(c))throw new TypeError("target must be an object");u=u||new FormData,f=_.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(B,j){return!_.isUndefined(j[B])});const s=f.metaTokens,o=f.visitor||R,h=f.dots,y=f.indexes,T=(f.Blob||typeof Blob<"u"&&Blob)&&_.isSpecCompliantForm(u);if(!_.isFunction(o))throw new TypeError("visitor must be a function");function v(H){if(H===null)return"";if(_.isDate(H))return H.toISOString();if(_.isBoolean(H))return H.toString();if(!T&&_.isBlob(H))throw new tt("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(H)||_.isTypedArray(H)?T&&typeof Blob=="function"?new Blob([H]):Buffer.from(H):H}function R(H,B,j){let W=H;if(H&&!j&&typeof H=="object"){if(_.endsWith(B,"{}"))B=s?B:B.slice(0,-2),H=JSON.stringify(H);else if(_.isArray(H)&&mv(H)||(_.isFileList(H)||_.endsWith(B,"[]"))&&(W=_.toArray(H)))return B=Ir(B),W.forEach(function(K,Y){!(_.isUndefined(K)||K===null)&&u.append(y===!0?Pr([B],Y,h):y===null?B:B+"[]",v(K))}),!1}return jc(H)?!0:(u.append(Pr(j,B,h),v(H)),!1)}const C=[],w=Object.assign(vv,{defaultVisitor:R,convertValue:v,isVisitable:jc});function F(H,B){if(!_.isUndefined(H)){if(C.indexOf(H)!==-1)throw Error("Circular reference detected in "+B.join("."));C.push(H),_.forEach(H,function(W,ft){(!(_.isUndefined(W)||W===null)&&o.call(u,W,_.isString(ft)?ft.trim():ft,B,w))===!0&&F(W,B?B.concat(ft):[ft])}),C.pop()}}if(!_.isObject(c))throw new TypeError("data must be an object");return F(c),u}function to(c){const u={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(c).replace(/[!'()~]|%20|%00/g,function(s){return u[s]})}function wc(c,u){this._pairs=[],c&&ku(c,this,u)}const eo=wc.prototype;eo.append=function(u,f){this._pairs.push([u,f])},eo.toString=function(u){const f=u?function(s){return u.call(this,s,to)}:to;return this._pairs.map(function(o){return f(o[0])+"="+f(o[1])},"").join("&")};function gv(c){return encodeURIComponent(c).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function lo(c,u,f){if(!u)return c;const s=f&&f.encode||gv,o=_.isFunction(f)?{serialize:f}:f,h=o&&o.serialize;let y;if(h?y=h(u,o):y=_.isURLSearchParams(u)?u.toString():new wc(u,o).toString(s),y){const S=c.indexOf("#");S!==-1&&(c=c.slice(0,S)),c+=(c.indexOf("?")===-1?"?":"&")+y}return c}class no{constructor(){this.handlers=[]}use(u,f,s){return this.handlers.push({fulfilled:u,rejected:f,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(u){this.handlers[u]&&(this.handlers[u]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(u){_.forEach(this.handlers,function(s){s!==null&&u(s)})}}const Qc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},pv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:wc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Lc=typeof window<"u"&&typeof document<"u",Yc=typeof navigator=="object"&&navigator||void 0,Sv=Lc&&(!Yc||["ReactNative","NativeScript","NS"].indexOf(Yc.product)<0),bv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ev=Lc&&window.location.href||"http://localhost",ie={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lc,hasStandardBrowserEnv:Sv,hasStandardBrowserWebWorkerEnv:bv,navigator:Yc,origin:Ev},Symbol.toStringTag,{value:"Module"})),...pv};function Tv(c,u){return ku(c,new ie.classes.URLSearchParams,{visitor:function(f,s,o,h){return ie.isNode&&_.isBuffer(f)?(this.append(s,f.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...u})}function Av(c){return _.matchAll(/\w+|\[(\w*)]/g,c).map(u=>u[0]==="[]"?"":u[1]||u[0])}function Ov(c){const u={},f=Object.keys(c);let s;const o=f.length;let h;for(s=0;s<o;s++)h=f[s],u[h]=c[h];return u}function ao(c){function u(f,s,o,h){let y=f[h++];if(y==="__proto__")return!0;const S=Number.isFinite(+y),T=h>=f.length;return y=!y&&_.isArray(o)?o.length:y,T?(_.hasOwnProp(o,y)?o[y]=[o[y],s]:o[y]=s,!S):((!o[y]||!_.isObject(o[y]))&&(o[y]=[]),u(f,s,o[y],h)&&_.isArray(o[y])&&(o[y]=Ov(o[y])),!S)}if(_.isFormData(c)&&_.isFunction(c.entries)){const f={};return _.forEachEntry(c,(s,o)=>{u(Av(s),o,f,0)}),f}return null}function Rv(c,u,f){if(_.isString(c))try{return(u||JSON.parse)(c),_.trim(c)}catch(s){if(s.name!=="SyntaxError")throw s}return(f||JSON.stringify)(c)}const Xa={transitional:Qc,adapter:["xhr","http","fetch"],transformRequest:[function(u,f){const s=f.getContentType()||"",o=s.indexOf("application/json")>-1,h=_.isObject(u);if(h&&_.isHTMLForm(u)&&(u=new FormData(u)),_.isFormData(u))return o?JSON.stringify(ao(u)):u;if(_.isArrayBuffer(u)||_.isBuffer(u)||_.isStream(u)||_.isFile(u)||_.isBlob(u)||_.isReadableStream(u))return u;if(_.isArrayBufferView(u))return u.buffer;if(_.isURLSearchParams(u))return f.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),u.toString();let S;if(h){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Tv(u,this.formSerializer).toString();if((S=_.isFileList(u))||s.indexOf("multipart/form-data")>-1){const T=this.env&&this.env.FormData;return ku(S?{"files[]":u}:u,T&&new T,this.formSerializer)}}return h||o?(f.setContentType("application/json",!1),Rv(u)):u}],transformResponse:[function(u){const f=this.transitional||Xa.transitional,s=f&&f.forcedJSONParsing,o=this.responseType==="json";if(_.isResponse(u)||_.isReadableStream(u))return u;if(u&&_.isString(u)&&(s&&!this.responseType||o)){const y=!(f&&f.silentJSONParsing)&&o;try{return JSON.parse(u,this.parseReviver)}catch(S){if(y)throw S.name==="SyntaxError"?tt.from(S,tt.ERR_BAD_RESPONSE,this,null,this.response):S}}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_.forEach(["delete","get","head","post","put","patch"],c=>{Xa.headers[c]={}});const zv=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_v=c=>{const u={};let f,s,o;return c&&c.split(`
50
- `).forEach(function(y){o=y.indexOf(":"),f=y.substring(0,o).trim().toLowerCase(),s=y.substring(o+1).trim(),!(!f||u[f]&&zv[f])&&(f==="set-cookie"?u[f]?u[f].push(s):u[f]=[s]:u[f]=u[f]?u[f]+", "+s:s)}),u},uo=Symbol("internals");function Za(c){return c&&String(c).trim().toLowerCase()}function Wu(c){return c===!1||c==null?c:_.isArray(c)?c.map(Wu):String(c)}function Dv(c){const u=Object.create(null),f=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=f.exec(c);)u[s[1]]=s[2];return u}const Mv=c=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(c.trim());function Gc(c,u,f,s,o){if(_.isFunction(s))return s.call(this,u,f);if(o&&(u=f),!!_.isString(u)){if(_.isString(s))return u.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(u)}}function Cv(c){return c.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(u,f,s)=>f.toUpperCase()+s)}function Uv(c,u){const f=_.toCamelCase(" "+u);["get","set","has"].forEach(s=>{Object.defineProperty(c,s+f,{value:function(o,h,y){return this[s].call(this,u,o,h,y)},configurable:!0})})}let de=class{constructor(u){u&&this.set(u)}set(u,f,s){const o=this;function h(S,T,v){const R=Za(T);if(!R)throw new Error("header name must be a non-empty string");const C=_.findKey(o,R);(!C||o[C]===void 0||v===!0||v===void 0&&o[C]!==!1)&&(o[C||T]=Wu(S))}const y=(S,T)=>_.forEach(S,(v,R)=>h(v,R,T));if(_.isPlainObject(u)||u instanceof this.constructor)y(u,f);else if(_.isString(u)&&(u=u.trim())&&!Mv(u))y(_v(u),f);else if(_.isObject(u)&&_.isIterable(u)){let S={},T,v;for(const R of u){if(!_.isArray(R))throw TypeError("Object iterator must return a key-value pair");S[v=R[0]]=(T=S[v])?_.isArray(T)?[...T,R[1]]:[T,R[1]]:R[1]}y(S,f)}else u!=null&&h(f,u,s);return this}get(u,f){if(u=Za(u),u){const s=_.findKey(this,u);if(s){const o=this[s];if(!f)return o;if(f===!0)return Dv(o);if(_.isFunction(f))return f.call(this,o,s);if(_.isRegExp(f))return f.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(u,f){if(u=Za(u),u){const s=_.findKey(this,u);return!!(s&&this[s]!==void 0&&(!f||Gc(this,this[s],s,f)))}return!1}delete(u,f){const s=this;let o=!1;function h(y){if(y=Za(y),y){const S=_.findKey(s,y);S&&(!f||Gc(s,s[S],S,f))&&(delete s[S],o=!0)}}return _.isArray(u)?u.forEach(h):h(u),o}clear(u){const f=Object.keys(this);let s=f.length,o=!1;for(;s--;){const h=f[s];(!u||Gc(this,this[h],h,u,!0))&&(delete this[h],o=!0)}return o}normalize(u){const f=this,s={};return _.forEach(this,(o,h)=>{const y=_.findKey(s,h);if(y){f[y]=Wu(o),delete f[h];return}const S=u?Cv(h):String(h).trim();S!==h&&delete f[h],f[S]=Wu(o),s[S]=!0}),this}concat(...u){return this.constructor.concat(this,...u)}toJSON(u){const f=Object.create(null);return _.forEach(this,(s,o)=>{s!=null&&s!==!1&&(f[o]=u&&_.isArray(s)?s.join(", "):s)}),f}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([u,f])=>u+": "+f).join(`
51
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(u){return u instanceof this?u:new this(u)}static concat(u,...f){const s=new this(u);return f.forEach(o=>s.set(o)),s}static accessor(u){const s=(this[uo]=this[uo]={accessors:{}}).accessors,o=this.prototype;function h(y){const S=Za(y);s[S]||(Uv(o,y),s[S]=!0)}return _.isArray(u)?u.forEach(h):h(u),this}};de.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.reduceDescriptors(de.prototype,({value:c},u)=>{let f=u[0].toUpperCase()+u.slice(1);return{get:()=>c,set(s){this[f]=s}}}),_.freezeMethods(de);function Xc(c,u){const f=this||Xa,s=u||f,o=de.from(s.headers);let h=s.data;return _.forEach(c,function(S){h=S.call(f,h,o.normalize(),u?u.status:void 0)}),o.normalize(),h}function io(c){return!!(c&&c.__CANCEL__)}let Va=class extends tt{constructor(u,f,s){super(u??"canceled",tt.ERR_CANCELED,f,s),this.name="CanceledError",this.__CANCEL__=!0}};function co(c,u,f){const s=f.config.validateStatus;!f.status||!s||s(f.status)?c(f):u(new tt("Request failed with status code "+f.status,[tt.ERR_BAD_REQUEST,tt.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}function Nv(c){const u=/^([-+\w]{1,25})(:?\/\/|:)/.exec(c);return u&&u[1]||""}function xv(c,u){c=c||10;const f=new Array(c),s=new Array(c);let o=0,h=0,y;return u=u!==void 0?u:1e3,function(T){const v=Date.now(),R=s[h];y||(y=v),f[o]=T,s[o]=v;let C=h,w=0;for(;C!==o;)w+=f[C++],C=C%c;if(o=(o+1)%c,o===h&&(h=(h+1)%c),v-y<u)return;const F=R&&v-R;return F?Math.round(w*1e3/F):void 0}}function qv(c,u){let f=0,s=1e3/u,o,h;const y=(v,R=Date.now())=>{f=R,o=null,h&&(clearTimeout(h),h=null),c(...v)};return[(...v)=>{const R=Date.now(),C=R-f;C>=s?y(v,R):(o=v,h||(h=setTimeout(()=>{h=null,y(o)},s-C)))},()=>o&&y(o)]}const $u=(c,u,f=3)=>{let s=0;const o=xv(50,250);return qv(h=>{const y=h.loaded,S=h.lengthComputable?h.total:void 0,T=y-s,v=o(T),R=y<=S;s=y;const C={loaded:y,total:S,progress:S?y/S:void 0,bytes:T,rate:v||void 0,estimated:v&&S&&R?(S-y)/v:void 0,event:h,lengthComputable:S!=null,[u?"download":"upload"]:!0};c(C)},f)},so=(c,u)=>{const f=c!=null;return[s=>u[0]({lengthComputable:f,total:c,loaded:s}),u[1]]},fo=c=>(...u)=>_.asap(()=>c(...u)),Hv=ie.hasStandardBrowserEnv?((c,u)=>f=>(f=new URL(f,ie.origin),c.protocol===f.protocol&&c.host===f.host&&(u||c.port===f.port)))(new URL(ie.origin),ie.navigator&&/(msie|trident)/i.test(ie.navigator.userAgent)):()=>!0,Bv=ie.hasStandardBrowserEnv?{write(c,u,f,s,o,h,y){if(typeof document>"u")return;const S=[`${c}=${encodeURIComponent(u)}`];_.isNumber(f)&&S.push(`expires=${new Date(f).toUTCString()}`),_.isString(s)&&S.push(`path=${s}`),_.isString(o)&&S.push(`domain=${o}`),h===!0&&S.push("secure"),_.isString(y)&&S.push(`SameSite=${y}`),document.cookie=S.join("; ")},read(c){if(typeof document>"u")return null;const u=document.cookie.match(new RegExp("(?:^|; )"+c+"=([^;]*)"));return u?decodeURIComponent(u[1]):null},remove(c){this.write(c,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function jv(c){return typeof c!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(c)}function wv(c,u){return u?c.replace(/\/?\/$/,"")+"/"+u.replace(/^\/+/,""):c}function ro(c,u,f){let s=!jv(u);return c&&(s||f==!1)?wv(c,u):u}const oo=c=>c instanceof de?{...c}:c;function mn(c,u){u=u||{};const f={};function s(v,R,C,w){return _.isPlainObject(v)&&_.isPlainObject(R)?_.merge.call({caseless:w},v,R):_.isPlainObject(R)?_.merge({},R):_.isArray(R)?R.slice():R}function o(v,R,C,w){if(_.isUndefined(R)){if(!_.isUndefined(v))return s(void 0,v,C,w)}else return s(v,R,C,w)}function h(v,R){if(!_.isUndefined(R))return s(void 0,R)}function y(v,R){if(_.isUndefined(R)){if(!_.isUndefined(v))return s(void 0,v)}else return s(void 0,R)}function S(v,R,C){if(C in u)return s(v,R);if(C in c)return s(void 0,v)}const T={url:h,method:h,data:h,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:S,headers:(v,R,C)=>o(oo(v),oo(R),C,!0)};return _.forEach(Object.keys({...c,...u}),function(R){if(R==="__proto__"||R==="constructor"||R==="prototype")return;const C=_.hasOwnProp(T,R)?T[R]:o,w=C(c[R],u[R],R);_.isUndefined(w)&&C!==S||(f[R]=w)}),f}const ho=c=>{const u=mn({},c);let{data:f,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:h,headers:y,auth:S}=u;if(u.headers=y=de.from(y),u.url=lo(ro(u.baseURL,u.url,u.allowAbsoluteUrls),c.params,c.paramsSerializer),S&&y.set("Authorization","Basic "+btoa((S.username||"")+":"+(S.password?unescape(encodeURIComponent(S.password)):""))),_.isFormData(f)){if(ie.hasStandardBrowserEnv||ie.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if(_.isFunction(f.getHeaders)){const T=f.getHeaders(),v=["content-type","content-length"];Object.entries(T).forEach(([R,C])=>{v.includes(R.toLowerCase())&&y.set(R,C)})}}if(ie.hasStandardBrowserEnv&&(s&&_.isFunction(s)&&(s=s(u)),s||s!==!1&&Hv(u.url))){const T=o&&h&&Bv.read(h);T&&y.set(o,T)}return u},Qv=typeof XMLHttpRequest<"u"&&function(c){return new Promise(function(f,s){const o=ho(c);let h=o.data;const y=de.from(o.headers).normalize();let{responseType:S,onUploadProgress:T,onDownloadProgress:v}=o,R,C,w,F,H;function B(){F&&F(),H&&H(),o.cancelToken&&o.cancelToken.unsubscribe(R),o.signal&&o.signal.removeEventListener("abort",R)}let j=new XMLHttpRequest;j.open(o.method.toUpperCase(),o.url,!0),j.timeout=o.timeout;function W(){if(!j)return;const K=de.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),ut={data:!S||S==="text"||S==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:K,config:c,request:j};co(function(k){f(k),B()},function(k){s(k),B()},ut),j=null}"onloadend"in j?j.onloadend=W:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(W)},j.onabort=function(){j&&(s(new tt("Request aborted",tt.ECONNABORTED,c,j)),j=null)},j.onerror=function(Y){const ut=Y&&Y.message?Y.message:"Network Error",mt=new tt(ut,tt.ERR_NETWORK,c,j);mt.event=Y||null,s(mt),j=null},j.ontimeout=function(){let Y=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const ut=o.transitional||Qc;o.timeoutErrorMessage&&(Y=o.timeoutErrorMessage),s(new tt(Y,ut.clarifyTimeoutError?tt.ETIMEDOUT:tt.ECONNABORTED,c,j)),j=null},h===void 0&&y.setContentType(null),"setRequestHeader"in j&&_.forEach(y.toJSON(),function(Y,ut){j.setRequestHeader(ut,Y)}),_.isUndefined(o.withCredentials)||(j.withCredentials=!!o.withCredentials),S&&S!=="json"&&(j.responseType=o.responseType),v&&([w,H]=$u(v,!0),j.addEventListener("progress",w)),T&&j.upload&&([C,F]=$u(T),j.upload.addEventListener("progress",C),j.upload.addEventListener("loadend",F)),(o.cancelToken||o.signal)&&(R=K=>{j&&(s(!K||K.type?new Va(null,c,j):K),j.abort(),j=null)},o.cancelToken&&o.cancelToken.subscribe(R),o.signal&&(o.signal.aborted?R():o.signal.addEventListener("abort",R)));const ft=Nv(o.url);if(ft&&ie.protocols.indexOf(ft)===-1){s(new tt("Unsupported protocol "+ft+":",tt.ERR_BAD_REQUEST,c));return}j.send(h||null)})},Lv=(c,u)=>{const{length:f}=c=c?c.filter(Boolean):[];if(u||f){let s=new AbortController,o;const h=function(v){if(!o){o=!0,S();const R=v instanceof Error?v:this.reason;s.abort(R instanceof tt?R:new Va(R instanceof Error?R.message:R))}};let y=u&&setTimeout(()=>{y=null,h(new tt(`timeout of ${u}ms exceeded`,tt.ETIMEDOUT))},u);const S=()=>{c&&(y&&clearTimeout(y),y=null,c.forEach(v=>{v.unsubscribe?v.unsubscribe(h):v.removeEventListener("abort",h)}),c=null)};c.forEach(v=>v.addEventListener("abort",h));const{signal:T}=s;return T.unsubscribe=()=>_.asap(S),T}},Yv=function*(c,u){let f=c.byteLength;if(f<u){yield c;return}let s=0,o;for(;s<f;)o=s+u,yield c.slice(s,o),s=o},Gv=async function*(c,u){for await(const f of Xv(c))yield*Yv(f,u)},Xv=async function*(c){if(c[Symbol.asyncIterator]){yield*c;return}const u=c.getReader();try{for(;;){const{done:f,value:s}=await u.read();if(f)break;yield s}}finally{await u.cancel()}},yo=(c,u,f,s)=>{const o=Gv(c,u);let h=0,y,S=T=>{y||(y=!0,s&&s(T))};return new ReadableStream({async pull(T){try{const{done:v,value:R}=await o.next();if(v){S(),T.close();return}let C=R.byteLength;if(f){let w=h+=C;f(w)}T.enqueue(new Uint8Array(R))}catch(v){throw S(v),v}},cancel(T){return S(T),o.return()}},{highWaterMark:2})},mo=64*1024,{isFunction:Iu}=_,Zv=(({Request:c,Response:u})=>({Request:c,Response:u}))(_.global),{ReadableStream:vo,TextEncoder:go}=_.global,po=(c,...u)=>{try{return!!c(...u)}catch{return!1}},Vv=c=>{c=_.merge.call({skipUndefined:!0},Zv,c);const{fetch:u,Request:f,Response:s}=c,o=u?Iu(u):typeof fetch=="function",h=Iu(f),y=Iu(s);if(!o)return!1;const S=o&&Iu(vo),T=o&&(typeof go=="function"?(H=>B=>H.encode(B))(new go):async H=>new Uint8Array(await new f(H).arrayBuffer())),v=h&&S&&po(()=>{let H=!1;const B=new f(ie.origin,{body:new vo,method:"POST",get duplex(){return H=!0,"half"}}).headers.has("Content-Type");return H&&!B}),R=y&&S&&po(()=>_.isReadableStream(new s("").body)),C={stream:R&&(H=>H.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(H=>{!C[H]&&(C[H]=(B,j)=>{let W=B&&B[H];if(W)return W.call(B);throw new tt(`Response type '${H}' is not supported`,tt.ERR_NOT_SUPPORT,j)})});const w=async H=>{if(H==null)return 0;if(_.isBlob(H))return H.size;if(_.isSpecCompliantForm(H))return(await new f(ie.origin,{method:"POST",body:H}).arrayBuffer()).byteLength;if(_.isArrayBufferView(H)||_.isArrayBuffer(H))return H.byteLength;if(_.isURLSearchParams(H)&&(H=H+""),_.isString(H))return(await T(H)).byteLength},F=async(H,B)=>{const j=_.toFiniteNumber(H.getContentLength());return j??w(B)};return async H=>{let{url:B,method:j,data:W,signal:ft,cancelToken:K,timeout:Y,onDownloadProgress:ut,onUploadProgress:mt,responseType:k,headers:rt,withCredentials:St="same-origin",fetchOptions:Be}=ho(H),se=u||fetch;k=k?(k+"").toLowerCase():"text";let Kt=Lv([ft,K&&K.toAbortSignal()],Y),Te=null;const Pt=Kt&&Kt.unsubscribe&&(()=>{Kt.unsubscribe()});let ye;try{if(mt&&v&&j!=="get"&&j!=="head"&&(ye=await F(rt,W))!==0){let g=new f(B,{method:"POST",body:W,duplex:"half"}),x;if(_.isFormData(W)&&(x=g.headers.get("content-type"))&&rt.setContentType(x),g.body){const[L,G]=so(ye,$u(fo(mt)));W=yo(g.body,mo,L,G)}}_.isString(St)||(St=St?"include":"omit");const M=h&&"credentials"in f.prototype,Q={...Be,signal:Kt,method:j.toUpperCase(),headers:rt.normalize().toJSON(),body:W,duplex:"half",credentials:M?St:void 0};Te=h&&new f(B,Q);let J=await(h?se(Te,Be):se(B,Q));const bt=R&&(k==="stream"||k==="response");if(R&&(ut||bt&&Pt)){const g={};["status","statusText","headers"].forEach(et=>{g[et]=J[et]});const x=_.toFiniteNumber(J.headers.get("content-length")),[L,G]=ut&&so(x,$u(fo(ut),!0))||[];J=new s(yo(J.body,mo,L,()=>{G&&G(),Pt&&Pt()}),g)}k=k||"text";let At=await C[_.findKey(C,k)||"text"](J,H);return!bt&&Pt&&Pt(),await new Promise((g,x)=>{co(g,x,{data:At,headers:de.from(J.headers),status:J.status,statusText:J.statusText,config:H,request:Te})})}catch(M){throw Pt&&Pt(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new tt("Network Error",tt.ERR_NETWORK,H,Te,M&&M.response),{cause:M.cause||M}):tt.from(M,M&&M.code,H,Te,M&&M.response)}}},Kv=new Map,So=c=>{let u=c&&c.env||{};const{fetch:f,Request:s,Response:o}=u,h=[s,o,f];let y=h.length,S=y,T,v,R=Kv;for(;S--;)T=h[S],v=R.get(T),v===void 0&&R.set(T,v=S?new Map:Vv(u)),R=v;return v};So();const Zc={http:yv,xhr:Qv,fetch:{get:So}};_.forEach(Zc,(c,u)=>{if(c){try{Object.defineProperty(c,"name",{value:u})}catch{}Object.defineProperty(c,"adapterName",{value:u})}});const bo=c=>`- ${c}`,Jv=c=>_.isFunction(c)||c===null||c===!1;function Fv(c,u){c=_.isArray(c)?c:[c];const{length:f}=c;let s,o;const h={};for(let y=0;y<f;y++){s=c[y];let S;if(o=s,!Jv(s)&&(o=Zc[(S=String(s)).toLowerCase()],o===void 0))throw new tt(`Unknown adapter '${S}'`);if(o&&(_.isFunction(o)||(o=o.get(u))))break;h[S||"#"+y]=o}if(!o){const y=Object.entries(h).map(([T,v])=>`adapter ${T} `+(v===!1?"is not supported by the environment":"is not available in the build"));let S=f?y.length>1?`since :
52
- `+y.map(bo).join(`
53
- `):" "+bo(y[0]):"as no adapter specified";throw new tt("There is no suitable adapter to dispatch the request "+S,"ERR_NOT_SUPPORT")}return o}const Eo={getAdapter:Fv,adapters:Zc};function Vc(c){if(c.cancelToken&&c.cancelToken.throwIfRequested(),c.signal&&c.signal.aborted)throw new Va(null,c)}function To(c){return Vc(c),c.headers=de.from(c.headers),c.data=Xc.call(c,c.transformRequest),["post","put","patch"].indexOf(c.method)!==-1&&c.headers.setContentType("application/x-www-form-urlencoded",!1),Eo.getAdapter(c.adapter||Xa.adapter,c)(c).then(function(s){return Vc(c),s.data=Xc.call(c,c.transformResponse,s),s.headers=de.from(s.headers),s},function(s){return io(s)||(Vc(c),s&&s.response&&(s.response.data=Xc.call(c,c.transformResponse,s.response),s.response.headers=de.from(s.response.headers))),Promise.reject(s)})}const Ao="1.13.5",Pu={};["object","boolean","number","function","string","symbol"].forEach((c,u)=>{Pu[c]=function(s){return typeof s===c||"a"+(u<1?"n ":" ")+c}});const Oo={};Pu.transitional=function(u,f,s){function o(h,y){return"[Axios v"+Ao+"] Transitional option '"+h+"'"+y+(s?". "+s:"")}return(h,y,S)=>{if(u===!1)throw new tt(o(y," has been removed"+(f?" in "+f:"")),tt.ERR_DEPRECATED);return f&&!Oo[y]&&(Oo[y]=!0,console.warn(o(y," has been deprecated since v"+f+" and will be removed in the near future"))),u?u(h,y,S):!0}},Pu.spelling=function(u){return(f,s)=>(console.warn(`${s} is likely a misspelling of ${u}`),!0)};function kv(c,u,f){if(typeof c!="object")throw new tt("options must be an object",tt.ERR_BAD_OPTION_VALUE);const s=Object.keys(c);let o=s.length;for(;o-- >0;){const h=s[o],y=u[h];if(y){const S=c[h],T=S===void 0||y(S,h,c);if(T!==!0)throw new tt("option "+h+" must be "+T,tt.ERR_BAD_OPTION_VALUE);continue}if(f!==!0)throw new tt("Unknown option "+h,tt.ERR_BAD_OPTION)}}const ti={assertOptions:kv,validators:Pu},qe=ti.validators;let vn=class{constructor(u){this.defaults=u||{},this.interceptors={request:new no,response:new no}}async request(u,f){try{return await this._request(u,f)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const h=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?h&&!String(s.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(s.stack+=`
54
- `+h):s.stack=h}catch{}}throw s}}_request(u,f){typeof u=="string"?(f=f||{},f.url=u):f=u||{},f=mn(this.defaults,f);const{transitional:s,paramsSerializer:o,headers:h}=f;s!==void 0&&ti.assertOptions(s,{silentJSONParsing:qe.transitional(qe.boolean),forcedJSONParsing:qe.transitional(qe.boolean),clarifyTimeoutError:qe.transitional(qe.boolean),legacyInterceptorReqResOrdering:qe.transitional(qe.boolean)},!1),o!=null&&(_.isFunction(o)?f.paramsSerializer={serialize:o}:ti.assertOptions(o,{encode:qe.function,serialize:qe.function},!0)),f.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?f.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:f.allowAbsoluteUrls=!0),ti.assertOptions(f,{baseUrl:qe.spelling("baseURL"),withXsrfToken:qe.spelling("withXSRFToken")},!0),f.method=(f.method||this.defaults.method||"get").toLowerCase();let y=h&&_.merge(h.common,h[f.method]);h&&_.forEach(["delete","get","head","post","put","patch","common"],H=>{delete h[H]}),f.headers=de.concat(y,h);const S=[];let T=!0;this.interceptors.request.forEach(function(B){if(typeof B.runWhen=="function"&&B.runWhen(f)===!1)return;T=T&&B.synchronous;const j=f.transitional||Qc;j&&j.legacyInterceptorReqResOrdering?S.unshift(B.fulfilled,B.rejected):S.push(B.fulfilled,B.rejected)});const v=[];this.interceptors.response.forEach(function(B){v.push(B.fulfilled,B.rejected)});let R,C=0,w;if(!T){const H=[To.bind(this),void 0];for(H.unshift(...S),H.push(...v),w=H.length,R=Promise.resolve(f);C<w;)R=R.then(H[C++],H[C++]);return R}w=S.length;let F=f;for(;C<w;){const H=S[C++],B=S[C++];try{F=H(F)}catch(j){B.call(this,j);break}}try{R=To.call(this,F)}catch(H){return Promise.reject(H)}for(C=0,w=v.length;C<w;)R=R.then(v[C++],v[C++]);return R}getUri(u){u=mn(this.defaults,u);const f=ro(u.baseURL,u.url,u.allowAbsoluteUrls);return lo(f,u.params,u.paramsSerializer)}};_.forEach(["delete","get","head","options"],function(u){vn.prototype[u]=function(f,s){return this.request(mn(s||{},{method:u,url:f,data:(s||{}).data}))}}),_.forEach(["post","put","patch"],function(u){function f(s){return function(h,y,S){return this.request(mn(S||{},{method:u,headers:s?{"Content-Type":"multipart/form-data"}:{},url:h,data:y}))}}vn.prototype[u]=f(),vn.prototype[u+"Form"]=f(!0)});let Wv=class Ym{constructor(u){if(typeof u!="function")throw new TypeError("executor must be a function.");let f;this.promise=new Promise(function(h){f=h});const s=this;this.promise.then(o=>{if(!s._listeners)return;let h=s._listeners.length;for(;h-- >0;)s._listeners[h](o);s._listeners=null}),this.promise.then=o=>{let h;const y=new Promise(S=>{s.subscribe(S),h=S}).then(o);return y.cancel=function(){s.unsubscribe(h)},y},u(function(h,y,S){s.reason||(s.reason=new Va(h,y,S),f(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(u){if(this.reason){u(this.reason);return}this._listeners?this._listeners.push(u):this._listeners=[u]}unsubscribe(u){if(!this._listeners)return;const f=this._listeners.indexOf(u);f!==-1&&this._listeners.splice(f,1)}toAbortSignal(){const u=new AbortController,f=s=>{u.abort(s)};return this.subscribe(f),u.signal.unsubscribe=()=>this.unsubscribe(f),u.signal}static source(){let u;return{token:new Ym(function(o){u=o}),cancel:u}}};function $v(c){return function(f){return c.apply(null,f)}}function Iv(c){return _.isObject(c)&&c.isAxiosError===!0}const Kc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Kc).forEach(([c,u])=>{Kc[u]=c});function Ro(c){const u=new vn(c),f=Xr(vn.prototype.request,u);return _.extend(f,vn.prototype,u,{allOwnKeys:!0}),_.extend(f,u,null,{allOwnKeys:!0}),f.create=function(o){return Ro(mn(c,o))},f}const jt=Ro(Xa);jt.Axios=vn,jt.CanceledError=Va,jt.CancelToken=Wv,jt.isCancel=io,jt.VERSION=Ao,jt.toFormData=ku,jt.AxiosError=tt,jt.Cancel=jt.CanceledError,jt.all=function(u){return Promise.all(u)},jt.spread=$v,jt.isAxiosError=Iv,jt.mergeConfig=mn,jt.AxiosHeaders=de,jt.formToJSON=c=>ao(_.isHTMLForm(c)?new FormData(c):c),jt.getAdapter=Eo.getAdapter,jt.HttpStatusCode=Kc,jt.default=jt;const{Axios:Y1,AxiosError:G1,CanceledError:X1,isCancel:Z1,CancelToken:V1,VERSION:K1,all:J1,Cancel:F1,isAxiosError:k1,spread:W1,toFormData:$1,AxiosHeaders:I1,HttpStatusCode:P1,formToJSON:tS,getAdapter:eS,mergeConfig:lS}=jt,al=class al{};Je(al,"handleError",(u,f)=>{console.error("Global Error:",u),console.error("Error Info:",f),console.group("🔴 Error Details"),console.error("Error:",u),console.error("Stack:",u.stack),f&&console.error("Component Stack:",f.componentStack),console.groupEnd()}),Je(al,"handleApiError",u=>{const f=new Error;if(u.response){const{status:s,data:o}=u.response;switch(f.statusCode=s,f.message=al.getErrorMessage(s,o),f.details=o,s){case 400:f.code="BAD_REQUEST";break;case 401:f.code="UNAUTHORIZED";break;case 403:f.code="FORBIDDEN";break;case 404:f.code="NOT_FOUND";break;case 409:f.code="CONFLICT";break;case 422:f.code="VALIDATION_ERROR";break;case 429:f.code="RATE_LIMIT_EXCEEDED";break;case 500:f.code="INTERNAL_SERVER_ERROR";break;default:f.code="UNKNOWN_ERROR"}}else u.request?(f.code="NETWORK_ERROR",f.message="Tidak dapat terhubung ke server. Periksa koneksi internet Anda."):(f.code="REQUEST_ERROR",f.message=u.message||"Terjadi kesalahan yang tidak diketahui.");return f}),Je(al,"getErrorMessage",(u,f)=>{if(f!=null&&f.message)return f.message;if(f!=null&&f.detail)return f.detail;if(f!=null&&f.error)return f.error;switch(u){case 400:return"Permintaan tidak valid. Periksa data yang Anda kirim.";case 401:return"Sesi Anda telah habis. Silakan login kembali.";case 403:return"Anda tidak memiliki izin untuk mengakses resource ini.";case 404:return"Data yang diminta tidak ditemukan.";case 409:return"Konflik data. Resource sudah ada atau sedang digunakan.";case 422:return"Data yang dikirim tidak valid. Periksa kembali form Anda.";case 429:return"Terlalu banyak permintaan. Mohon tunggu sebentar dan coba lagi.";case 500:return"Terjadi kesalahan di server. Silakan coba lagi nanti.";case 503:return"Layanan sedang tidak tersedia. Silakan coba lagi nanti.";default:return"Terjadi kesalahan yang tidak diketahui."}}),Je(al,"isNetworkError",u=>u.code==="NETWORK_ERROR"),Je(al,"isValidationError",u=>u.code==="VALIDATION_ERROR"||u.statusCode===422),Je(al,"isAuthError",u=>u.code==="UNAUTHORIZED"||u.statusCode===401),Je(al,"isRateLimitError",u=>u.code==="RATE_LIMIT_EXCEEDED"||u.statusCode===429);let ei=al;class Pv{constructor(u){Je(this,"axios");Je(this,"retries");Je(this,"retryDelay");this.retries=u.retries??3,this.retryDelay=u.retryDelay??1e3,this.axios=jt.create({baseURL:u.baseURL,timeout:u.timeout??1e4,headers:{"Content-Type":"application/json",...u.headers},withCredentials:!0}),this.setupInterceptors()}setupInterceptors(){this.axios.interceptors.request.use(u=>{var f;return u.metadata={startTime:Date.now()},console.log(`🚀 ${(f=u.method)==null?void 0:f.toUpperCase()} ${u.url}`,u.data?{data:u.data}:""),u},u=>Promise.reject(ei.handleApiError(u))),this.axios.interceptors.response.use(u=>{var s,o;const f=Date.now()-(((s=u.config.metadata)==null?void 0:s.startTime)||0);return console.log(`✅ ${(o=u.config.method)==null?void 0:o.toUpperCase()} ${u.config.url} (${f}ms)`,{status:u.status,data:u.data}),u},async u=>{const f=ei.handleApiError(u);return this.shouldRetry(u)&&u.config&&!u.config.__retryCount?this.retryRequest(u.config,u):Promise.reject(f)})}shouldRetry(u){return!u.response||u.response.status===429||u.response.status>=500&&u.response.status<=599}async retryRequest(u,f){var o;if(u.__retryCount=u.__retryCount||0,u.__retryCount>=this.retries)throw u;u.__retryCount+=1;let s=this.retryDelay*Math.pow(2,u.__retryCount-1);if(((o=f==null?void 0:f.response)==null?void 0:o.status)===429){const h=f.response.headers["retry-after"];if(h){const y=isNaN(h)?new Date(h).getTime()-Date.now():parseInt(h)*1e3;s=Math.max(y,1e3)}else s=6e4}return console.log(`⏳ Retrying request in ${s}ms (attempt ${u.__retryCount}/${this.retries})`),await new Promise(h=>setTimeout(h,s)),this.axios(u)}async get(u,f){return(await this.axios.get(u,f)).data}async getRaw(u,f){return await this.axios.get(u,f)}async post(u,f,s){return(await this.axios.post(u,f,s)).data}async put(u,f,s){return(await this.axios.put(u,f,s)).data}async patch(u,f,s){return(await this.axios.patch(u,f,s)).data}async delete(u,f){return(await this.axios.delete(u,f)).data}async uploadFile(u,f,s){const o=new FormData;o.append("file",f);const h={headers:{"Content-Type":"multipart/form-data"}};return s&&(h.onUploadProgress=s),(await this.axios.post(u,o,h)).data}setAuthHeader(u){this.axios.defaults.headers.common.Authorization=`Bearer ${u}`}removeAuthHeader(){delete this.axios.defaults.headers.common.Authorization}setCustomHeader(u,f){this.axios.defaults.headers.common[u]=f}removeCustomHeader(u){delete this.axios.defaults.headers.common[u]}setBaseURL(u){this.axios.defaults.baseURL=u}}class tg{constructor(){Je(this,"apiClient");this.apiClient=new Pv({baseURL:"http://localhost:9999"})}async sendMessage(u){return await this.apiClient.post("/chat-module/send-message",{message:u})}}const eg=new tg;function lg(){return D0({mutationFn:c=>eg.sendMessage(c)})}const It=[];for(let c=0;c<256;++c)It.push((c+256).toString(16).slice(1));function ng(c,u=0){return(It[c[u+0]]+It[c[u+1]]+It[c[u+2]]+It[c[u+3]]+"-"+It[c[u+4]]+It[c[u+5]]+"-"+It[c[u+6]]+It[c[u+7]]+"-"+It[c[u+8]]+It[c[u+9]]+"-"+It[c[u+10]]+It[c[u+11]]+It[c[u+12]]+It[c[u+13]]+It[c[u+14]]+It[c[u+15]]).toLowerCase()}let Jc;const ag=new Uint8Array(16);function ug(){if(!Jc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Jc=crypto.getRandomValues.bind(crypto)}return Jc(ag)}const Fc={};function kc(c,u,f){let s;{const o=Date.now(),h=ug();ig(Fc,o,h),s=cg(h,Fc.msecs,Fc.seq,u,f)}return ng(s)}function ig(c,u,f){return c.msecs??(c.msecs=-1/0),c.seq??(c.seq=0),u>c.msecs?(c.seq=f[6]<<23|f[7]<<16|f[8]<<8|f[9],c.msecs=u):(c.seq=c.seq+1|0,c.seq===0&&c.msecs++),c}function cg(c,u,f,s,o=0){if(c.length<16)throw new Error("Random bytes length must be >= 16");if(!s)s=new Uint8Array(16),o=0;else if(o<0||o+16>s.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);return u??(u=Date.now()),f??(f=c[6]*127<<24|c[7]<<16|c[8]<<8|c[9]),s[o++]=u/1099511627776&255,s[o++]=u/4294967296&255,s[o++]=u/16777216&255,s[o++]=u/65536&255,s[o++]=u/256&255,s[o++]=u&255,s[o++]=112|f>>>28&15,s[o++]=f>>>20&255,s[o++]=128|f>>>14&63,s[o++]=f>>>6&255,s[o++]=f<<2&255|c[10]&3,s[o++]=c[11],s[o++]=c[12],s[o++]=c[13],s[o++]=c[14],s[o++]=c[15],s}function sg({className:c,style:u}){const[f,s]=Fe.useState([{id:"1",role:"assistant",content:"Hi there! I'm ChatWillow. How can I help you today?",timestamp:new Date}]),{mutate:o,isPending:h}=lg(),y=S=>{const T={id:kc(),role:"user",content:S,timestamp:new Date};s(v=>[...v,T]),o(S,{onSuccess:v=>{const R=typeof v.data=="string"?v.data:v.message||"Error parsing response",C={id:kc(),role:"assistant",content:R,timestamp:new Date};s(w=>[...w,C])},onError:v=>{const R={id:kc(),role:"assistant",content:"Sorry, something went wrong. Please try again.",timestamp:new Date};s(C=>[...C,R]),console.error("Failed to send message:",v)}})};return Nt.jsx(M0,{messages:f,onSendMessage:y,isSending:h,className:c,style:u})}const fg=new R0({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});function zo(c){return Nt.jsx(_0,{client:fg,children:Nt.jsx(sg,{...c})})}const _o=c=>{if(typeof window>"u")return;const u=c.containerId||"chatwillow-root";let f=document.getElementById(u);f||(f=document.createElement("div"),f.id=u,document.body.appendChild(f)),Fm.createRoot(f).render(Fe.createElement(zo,c))};typeof window<"u"&&(window.ChatWillow={init:_o}),yt.ChatWillowWidget=zo,yt.init=_o,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"})}));
49
+ */var dm;function Z4(){if(dm)return ls;dm=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(a,s,u){var c=null;if(u!==void 0&&(c=""+u),s.key!==void 0&&(c=""+s.key),"key"in s){u={};for(var f in s)f!=="key"&&(u[f]=s[f])}else u=s;return s=u.ref,{$$typeof:e,type:a,key:c,ref:s!==void 0?s:null,props:u}}return ls.Fragment=n,ls.jsx=r,ls.jsxs=r,ls}var hm;function W4(){return hm||(hm=1,Lf.exports=Z4()),Lf.exports}var $=W4(),Ya=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},J4={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},eC=(Uv=class{constructor(){Ce(this,Si,J4);Ce(this,Md,!1)}setTimeoutProvider(e){ge(this,Si,e)}setTimeout(e,n){return q(this,Si).setTimeout(e,n)}clearTimeout(e){q(this,Si).clearTimeout(e)}setInterval(e,n){return q(this,Si).setInterval(e,n)}clearInterval(e){q(this,Si).clearInterval(e)}},Si=new WeakMap,Md=new WeakMap,Uv),aa=new eC;function tC(e){setTimeout(e,0)}var la=typeof window>"u"||"Deno"in globalThis;function hn(){}function nC(e,n){return typeof e=="function"?e(n):e}function Uf(e){return typeof e=="number"&&e>=0&&e!==1/0}function pm(e,n){return Math.max(e+(n||0)-Date.now(),0)}function mi(e,n){return typeof e=="function"?e(n):e}function Gn(e,n){return typeof e=="function"?e(n):e}function mm(e,n){const{type:r="all",exact:a,fetchStatus:s,predicate:u,queryKey:c,stale:f}=e;if(c){if(a){if(n.queryHash!==jf(c,n.options))return!1}else if(!ss(n.queryKey,c))return!1}if(r!=="all"){const p=n.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof f=="boolean"&&n.isStale()!==f||s&&s!==n.state.fetchStatus||u&&!u(n))}function xm(e,n){const{exact:r,status:a,predicate:s,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(r){if(sa(n.options.mutationKey)!==sa(u))return!1}else if(!ss(n.options.mutationKey,u))return!1}return!(a&&n.state.status!==a||s&&!s(n))}function jf(e,n){return((n==null?void 0:n.queryKeyHashFn)||sa)(e)}function sa(e){return JSON.stringify(e,(n,r)=>Hf(r)?Object.keys(r).sort().reduce((a,s)=>(a[s]=r[s],a),{}):r)}function ss(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>ss(e[r],n[r])):!1}var rC=Object.prototype.hasOwnProperty;function gm(e,n,r=0){if(e===n)return e;if(r>500)return n;const a=ym(e)&&ym(n);if(!a&&!(Hf(e)&&Hf(n)))return n;const u=(a?e:Object.keys(e)).length,c=a?n:Object.keys(n),f=c.length,p=a?new Array(f):{};let d=0;for(let x=0;x<f;x++){const m=a?x:c[x],y=e[m],v=n[m];if(y===v){p[m]=y,(a?x<u:rC.call(e,m))&&d++;continue}if(y===null||v===null||typeof y!="object"||typeof v!="object"){p[m]=v;continue}const b=gm(y,v,r+1);p[m]=b,b===y&&d++}return u===f&&d===u?e:p}function Bo(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}function ym(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hf(e){if(!vm(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!vm(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function vm(e){return Object.prototype.toString.call(e)==="[object Object]"}function iC(e){return new Promise(n=>{aa.setTimeout(n,e)})}function qf(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?gm(e,n):n}function aC(e,n,r=0){const a=[...e,n];return r&&a.length>r?a.slice(1):a}function lC(e,n,r=0){const a=[n,...e];return r&&a.length>r?a.slice(0,-1):a}var If=Symbol();function bm(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===If?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Pf(e,n){return typeof e=="function"?e(...n):!!e}function sC(e,n,r){let a=!1,s;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(s??(s=n()),a||(a=!0,s.aborted?r():s.addEventListener("abort",r,{once:!0})),s)}),e}var oC=(jv=class extends Ya{constructor(){super();Ce(this,va);Ce(this,wi);Ce(this,ul);ge(this,ul,n=>{if(!la&&window.addEventListener){const r=()=>n();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){q(this,wi)||this.setEventListener(q(this,ul))}onUnsubscribe(){var n;this.hasListeners()||((n=q(this,wi))==null||n.call(this),ge(this,wi,void 0))}setEventListener(n){var r;ge(this,ul,n),(r=q(this,wi))==null||r.call(this),ge(this,wi,n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(n){q(this,va)!==n&&(ge(this,va,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(r=>{r(n)})}isFocused(){var n;return typeof q(this,va)=="boolean"?q(this,va):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},va=new WeakMap,wi=new WeakMap,ul=new WeakMap,jv),Vf=new oC;function Yf(){let e,n;const r=new Promise((s,u)=>{e=s,n=u});r.status="pending",r.catch(()=>{});function a(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{a({status:"fulfilled",value:s}),e(s)},r.reject=s=>{a({status:"rejected",reason:s}),n(s)},r}var uC=tC;function cC(){let e=[],n=0,r=f=>{f()},a=f=>{f()},s=uC;const u=f=>{n?e.push(f):s(()=>{r(f)})},c=()=>{const f=e;e=[],f.length&&s(()=>{a(()=>{f.forEach(p=>{r(p)})})})};return{batch:f=>{let p;n++;try{p=f()}finally{n--,n||c()}return p},batchCalls:f=>(...p)=>{u(()=>{f(...p)})},schedule:u,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{a=f},setScheduler:f=>{s=f}}}var qt=cC(),fC=(Hv=class extends Ya{constructor(){super();Ce(this,cl,!0);Ce(this,Ai);Ce(this,fl);ge(this,fl,n=>{if(!la&&window.addEventListener){const r=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}})}onSubscribe(){q(this,Ai)||this.setEventListener(q(this,fl))}onUnsubscribe(){var n;this.hasListeners()||((n=q(this,Ai))==null||n.call(this),ge(this,Ai,void 0))}setEventListener(n){var r;ge(this,fl,n),(r=q(this,Ai))==null||r.call(this),ge(this,Ai,n(this.setOnline.bind(this)))}setOnline(n){q(this,cl)!==n&&(ge(this,cl,n),this.listeners.forEach(a=>{a(n)}))}isOnline(){return q(this,cl)}},cl=new WeakMap,Ai=new WeakMap,fl=new WeakMap,Hv),To=new fC;function dC(e){return Math.min(1e3*2**e,3e4)}function Em(e){return(e??"online")==="online"?To.isOnline():!0}var Qf=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Cm(e){let n=!1,r=0,a;const s=Yf(),u=()=>s.status!=="pending",c=E=>{var S;if(!u()){const w=new Qf(E);y(w),(S=e.onCancel)==null||S.call(e,w)}},f=()=>{n=!0},p=()=>{n=!1},d=()=>Vf.isFocused()&&(e.networkMode==="always"||To.isOnline())&&e.canRun(),x=()=>Em(e.networkMode)&&e.canRun(),m=E=>{u()||(a==null||a(),s.resolve(E))},y=E=>{u()||(a==null||a(),s.reject(E))},v=()=>new Promise(E=>{var S;a=w=>{(u()||d())&&E(w)},(S=e.onPause)==null||S.call(e)}).then(()=>{var E;a=void 0,u()||(E=e.onContinue)==null||E.call(e)}),b=()=>{if(u())return;let E;const S=r===0?e.initialPromise:void 0;try{E=S??e.fn()}catch(w){E=Promise.reject(w)}Promise.resolve(E).then(m).catch(w=>{var R;if(u())return;const k=e.retry??(la?0:3),A=e.retryDelay??dC,D=typeof A=="function"?A(r,w):A,F=k===!0||typeof k=="number"&&r<k||typeof k=="function"&&k(r,w);if(n||!F){y(w);return}r++,(R=e.onFail)==null||R.call(e,r,w),iC(D).then(()=>d()?void 0:v()).then(()=>{n?y(w):b()})})};return{promise:s,status:()=>s.status,cancel:c,continue:()=>(a==null||a(),s),cancelRetry:f,continueRetry:p,canStart:x,start:()=>(x()?b():v().then(b),s)}}var Sm=(qv=class{constructor(){Ce(this,ba)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uf(this.gcTime)&&ge(this,ba,aa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(la?1/0:300*1e3))}clearGcTimeout(){q(this,ba)&&(aa.clearTimeout(q(this,ba)),ge(this,ba,void 0))}},ba=new WeakMap,qv),hC=(Iv=class extends Sm{constructor(n){super();Ce(this,gr);Ce(this,Ea);Ce(this,dl);Ce(this,Wn);Ce(this,Ca);Ce(this,Gt);Ce(this,zs);Ce(this,Sa);ge(this,Sa,!1),ge(this,zs,n.defaultOptions),this.setOptions(n.options),this.observers=[],ge(this,Ca,n.client),ge(this,Wn,q(this,Ca).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,ge(this,Ea,_m(this.options)),this.state=n.state??q(this,Ea),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=q(this,Gt))==null?void 0:n.promise}setOptions(n){if(this.options={...q(this,zs),...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=_m(this.options);r.data!==void 0&&(this.setState(Am(r.data,r.dataUpdatedAt)),ge(this,Ea,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&q(this,Wn).remove(this)}setData(n,r){const a=qf(this.state.data,n,this.options);return Me(this,gr,pi).call(this,{data:a,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),a}setState(n,r){Me(this,gr,pi).call(this,{type:"setState",state:n,setStateOptions:r})}cancel(n){var a,s;const r=(a=q(this,Gt))==null?void 0:a.promise;return(s=q(this,Gt))==null||s.cancel(n),r?r.then(hn).catch(hn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(q(this,Ea))}isActive(){return this.observers.some(n=>Gn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===If||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>mi(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!pm(this.state.dataUpdatedAt,n)}onFocus(){var r;const n=this.observers.find(a=>a.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(r=q(this,Gt))==null||r.continue()}onOnline(){var r;const n=this.observers.find(a=>a.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(r=q(this,Gt))==null||r.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),q(this,Wn).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(r=>r!==n),this.observers.length||(q(this,Gt)&&(q(this,Sa)?q(this,Gt).cancel({revert:!0}):q(this,Gt).cancelRetry()),this.scheduleGc()),q(this,Wn).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Me(this,gr,pi).call(this,{type:"invalidate"})}async fetch(n,r){var p,d,x,m,y,v,b,E,S,w,k,A;if(this.state.fetchStatus!=="idle"&&((p=q(this,Gt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(q(this,Gt))return q(this,Gt).continueRetry(),q(this,Gt).promise}if(n&&this.setOptions(n),!this.options.queryFn){const D=this.observers.find(F=>F.options.queryFn);D&&this.setOptions(D.options)}const a=new AbortController,s=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(ge(this,Sa,!0),a.signal)})},u=()=>{const D=bm(this.options,r),R=(()=>{const z={client:q(this,Ca),queryKey:this.queryKey,meta:this.meta};return s(z),z})();return ge(this,Sa,!1),this.options.persister?this.options.persister(D,R,this):D(R)},f=(()=>{const D={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:q(this,Ca),state:this.state,fetchFn:u};return s(D),D})();(d=this.options.behavior)==null||d.onFetch(f,this),ge(this,dl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((x=f.fetchOptions)==null?void 0:x.meta))&&Me(this,gr,pi).call(this,{type:"fetch",meta:(m=f.fetchOptions)==null?void 0:m.meta}),ge(this,Gt,Cm({initialPromise:r==null?void 0:r.initialPromise,fn:f.fetchFn,onCancel:D=>{D instanceof Qf&&D.revert&&this.setState({...q(this,dl),fetchStatus:"idle"}),a.abort()},onFail:(D,F)=>{Me(this,gr,pi).call(this,{type:"failed",failureCount:D,error:F})},onPause:()=>{Me(this,gr,pi).call(this,{type:"pause"})},onContinue:()=>{Me(this,gr,pi).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const D=await q(this,Gt).start();if(D===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(D),(v=(y=q(this,Wn).config).onSuccess)==null||v.call(y,D,this),(E=(b=q(this,Wn).config).onSettled)==null||E.call(b,D,this.state.error,this),D}catch(D){if(D instanceof Qf){if(D.silent)return q(this,Gt).promise;if(D.revert){if(this.state.data===void 0)throw D;return this.state.data}}throw Me(this,gr,pi).call(this,{type:"error",error:D}),(w=(S=q(this,Wn).config).onError)==null||w.call(S,D,this),(A=(k=q(this,Wn).config).onSettled)==null||A.call(k,this.state.data,D,this),D}finally{this.scheduleGc()}}},Ea=new WeakMap,dl=new WeakMap,Wn=new WeakMap,Ca=new WeakMap,Gt=new WeakMap,zs=new WeakMap,Sa=new WeakMap,gr=new WeakSet,pi=function(n){const r=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...wm(a.data,this.options),fetchMeta:n.meta??null};case"success":const s={...a,...Am(n.data,n.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ge(this,dl,n.manual?s:void 0),s;case"error":const u=n.error;return{...a,error:u,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=r(this.state),qt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),q(this,Wn).notify({query:this,type:"updated",action:n})})},Iv);function wm(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Em(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Am(e,n){return{data:e,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function _m(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,a=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var pC=(Pv=class extends Ya{constructor(n,r){super();Ce(this,et);Ce(this,_n);Ce(this,Ye);Ce(this,Ns);Ce(this,xn);Ce(this,wa);Ce(this,hl);Ce(this,Pr);Ce(this,_i);Ce(this,Fs);Ce(this,pl);Ce(this,ml);Ce(this,Aa);Ce(this,_a);Ce(this,ki);Ce(this,xl,new Set);this.options=r,ge(this,_n,n),ge(this,_i,null),ge(this,Pr,Yf()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(q(this,Ye).addObserver(this),km(q(this,Ye),this.options)?Me(this,et,Do).call(this):this.updateResult(),Me(this,et,Zp).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Xf(q(this,Ye),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Xf(q(this,Ye),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Me(this,et,Wp).call(this),Me(this,et,Jp).call(this),q(this,Ye).removeObserver(this)}setOptions(n){const r=this.options,a=q(this,Ye);if(this.options=q(this,_n).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Gn(this.options.enabled,q(this,Ye))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Me(this,et,em).call(this),q(this,Ye).setOptions(this.options),r._defaulted&&!Bo(this.options,r)&&q(this,_n).getQueryCache().notify({type:"observerOptionsUpdated",query:q(this,Ye),observer:this});const s=this.hasListeners();s&&Dm(q(this,Ye),a,this.options,r)&&Me(this,et,Do).call(this),this.updateResult(),s&&(q(this,Ye)!==a||Gn(this.options.enabled,q(this,Ye))!==Gn(r.enabled,q(this,Ye))||mi(this.options.staleTime,q(this,Ye))!==mi(r.staleTime,q(this,Ye)))&&Me(this,et,Gp).call(this);const u=Me(this,et,Kp).call(this);s&&(q(this,Ye)!==a||Gn(this.options.enabled,q(this,Ye))!==Gn(r.enabled,q(this,Ye))||u!==q(this,ki))&&Me(this,et,$p).call(this,u)}getOptimisticResult(n){const r=q(this,_n).getQueryCache().build(q(this,_n),n),a=this.createResult(r,n);return xC(this,a)&&(ge(this,xn,a),ge(this,hl,this.options),ge(this,wa,q(this,Ye).state)),a}getCurrentResult(){return q(this,xn)}trackResult(n,r){return new Proxy(n,{get:(a,s)=>(this.trackProp(s),r==null||r(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&q(this,Pr).status==="pending"&&q(this,Pr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,s))})}trackProp(n){q(this,xl).add(n)}getCurrentQuery(){return q(this,Ye)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const r=q(this,_n).defaultQueryOptions(n),a=q(this,_n).getQueryCache().build(q(this,_n),r);return a.fetch().then(()=>this.createResult(a,r))}fetch(n){return Me(this,et,Do).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),q(this,xn)))}createResult(n,r){var X;const a=q(this,Ye),s=this.options,u=q(this,xn),c=q(this,wa),f=q(this,hl),d=n!==a?n.state:q(this,Ns),{state:x}=n;let m={...x},y=!1,v;if(r._optimisticResults){const T=this.hasListeners(),j=!T&&km(n,r),V=T&&Dm(n,a,r,s);(j||V)&&(m={...m,...wm(x.data,n.options)}),r._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:E,status:S}=m;v=m.data;let w=!1;if(r.placeholderData!==void 0&&v===void 0&&S==="pending"){let T;u!=null&&u.isPlaceholderData&&r.placeholderData===(f==null?void 0:f.placeholderData)?(T=u.data,w=!0):T=typeof r.placeholderData=="function"?r.placeholderData((X=q(this,ml))==null?void 0:X.state.data,q(this,ml)):r.placeholderData,T!==void 0&&(S="success",v=qf(u==null?void 0:u.data,T,r),y=!0)}if(r.select&&v!==void 0&&!w)if(u&&v===(c==null?void 0:c.data)&&r.select===q(this,Fs))v=q(this,pl);else try{ge(this,Fs,r.select),v=r.select(v),v=qf(u==null?void 0:u.data,v,r),ge(this,pl,v),ge(this,_i,null)}catch(T){ge(this,_i,T)}q(this,_i)&&(b=q(this,_i),v=q(this,pl),E=Date.now(),S="error");const k=m.fetchStatus==="fetching",A=S==="pending",D=S==="error",F=A&&k,R=v!==void 0,M={status:S,fetchStatus:m.fetchStatus,isPending:A,isSuccess:S==="success",isError:D,isInitialLoading:F,isLoading:F,data:v,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:E,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:k,isRefetching:k&&!A,isLoadingError:D&&!R,isPaused:m.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:D&&R,isStale:Gf(n,r),refetch:this.refetch,promise:q(this,Pr),isEnabled:Gn(r.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const T=M.data!==void 0,j=M.status==="error"&&!T,V=J=>{j?J.reject(M.error):T&&J.resolve(M.data)},G=()=>{const J=ge(this,Pr,M.promise=Yf());V(J)},ie=q(this,Pr);switch(ie.status){case"pending":n.queryHash===a.queryHash&&V(ie);break;case"fulfilled":(j||M.data!==ie.value)&&G();break;case"rejected":(!j||M.error!==ie.reason)&&G();break}}return M}updateResult(){const n=q(this,xn),r=this.createResult(q(this,Ye),this.options);if(ge(this,wa,q(this,Ye).state),ge(this,hl,this.options),q(this,wa).data!==void 0&&ge(this,ml,q(this,Ye)),Bo(r,n))return;ge(this,xn,r);const a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!q(this,xl).size)return!0;const c=new Set(u??q(this,xl));return this.options.throwOnError&&c.add("error"),Object.keys(q(this,xn)).some(f=>{const p=f;return q(this,xn)[p]!==n[p]&&c.has(p)})};Me(this,et,q4).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Me(this,et,Zp).call(this)}},_n=new WeakMap,Ye=new WeakMap,Ns=new WeakMap,xn=new WeakMap,wa=new WeakMap,hl=new WeakMap,Pr=new WeakMap,_i=new WeakMap,Fs=new WeakMap,pl=new WeakMap,ml=new WeakMap,Aa=new WeakMap,_a=new WeakMap,ki=new WeakMap,xl=new WeakMap,et=new WeakSet,Do=function(n){Me(this,et,em).call(this);let r=q(this,Ye).fetch(this.options,n);return n!=null&&n.throwOnError||(r=r.catch(hn)),r},Gp=function(){Me(this,et,Wp).call(this);const n=mi(this.options.staleTime,q(this,Ye));if(la||q(this,xn).isStale||!Uf(n))return;const a=pm(q(this,xn).dataUpdatedAt,n)+1;ge(this,Aa,aa.setTimeout(()=>{q(this,xn).isStale||this.updateResult()},a))},Kp=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(q(this,Ye)):this.options.refetchInterval)??!1},$p=function(n){Me(this,et,Jp).call(this),ge(this,ki,n),!(la||Gn(this.options.enabled,q(this,Ye))===!1||!Uf(q(this,ki))||q(this,ki)===0)&&ge(this,_a,aa.setInterval(()=>{(this.options.refetchIntervalInBackground||Vf.isFocused())&&Me(this,et,Do).call(this)},q(this,ki)))},Zp=function(){Me(this,et,Gp).call(this),Me(this,et,$p).call(this,Me(this,et,Kp).call(this))},Wp=function(){q(this,Aa)&&(aa.clearTimeout(q(this,Aa)),ge(this,Aa,void 0))},Jp=function(){q(this,_a)&&(aa.clearInterval(q(this,_a)),ge(this,_a,void 0))},em=function(){const n=q(this,_n).getQueryCache().build(q(this,_n),this.options);if(n===q(this,Ye))return;const r=q(this,Ye);ge(this,Ye,n),ge(this,Ns,n.state),this.hasListeners()&&(r==null||r.removeObserver(this),n.addObserver(this))},q4=function(n){qt.batch(()=>{n.listeners&&this.listeners.forEach(r=>{r(q(this,xn))}),q(this,_n).getQueryCache().notify({query:q(this,Ye),type:"observerResultsUpdated"})})},Pv);function mC(e,n){return Gn(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function km(e,n){return mC(e,n)||e.state.data!==void 0&&Xf(e,n,n.refetchOnMount)}function Xf(e,n,r){if(Gn(n.enabled,e)!==!1&&mi(n.staleTime,e)!=="static"){const a=typeof r=="function"?r(e):r;return a==="always"||a!==!1&&Gf(e,n)}return!1}function Dm(e,n,r,a){return(e!==n||Gn(a.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Gf(e,r)}function Gf(e,n){return Gn(n.enabled,e)!==!1&&e.isStaleByTime(mi(n.staleTime,e))}function xC(e,n){return!Bo(e.getCurrentResult(),n)}function Bm(e){return{onFetch:(n,r)=>{var x,m,y,v,b;const a=n.options,s=(y=(m=(x=n.fetchOptions)==null?void 0:x.meta)==null?void 0:m.fetchMore)==null?void 0:y.direction,u=((v=n.state.data)==null?void 0:v.pages)||[],c=((b=n.state.data)==null?void 0:b.pageParams)||[];let f={pages:[],pageParams:[]},p=0;const d=async()=>{let E=!1;const S=A=>{sC(A,()=>n.signal,()=>E=!0)},w=bm(n.options,n.fetchOptions),k=async(A,D,F)=>{if(E)return Promise.reject();if(D==null&&A.pages.length)return Promise.resolve(A);const z=(()=>{const j={client:n.client,queryKey:n.queryKey,pageParam:D,direction:F?"backward":"forward",meta:n.options.meta};return S(j),j})(),M=await w(z),{maxPages:X}=n.options,T=F?lC:aC;return{pages:T(A.pages,M,X),pageParams:T(A.pageParams,D,X)}};if(s&&u.length){const A=s==="backward",D=A?gC:Tm,F={pages:u,pageParams:c},R=D(a,F);f=await k(F,R,A)}else{const A=e??u.length;do{const D=p===0?c[0]??a.initialPageParam:Tm(a,f);if(p>0&&D==null)break;f=await k(f,D),p++}while(p<A)}return f};n.options.persister?n.fetchFn=()=>{var E,S;return(S=(E=n.options).persister)==null?void 0:S.call(E,d,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r)}:n.fetchFn=d}}}function Tm(e,{pages:n,pageParams:r}){const a=n.length-1;return n.length>0?e.getNextPageParam(n[a],n,r[a],r):void 0}function gC(e,{pages:n,pageParams:r}){var a;return n.length>0?(a=e.getPreviousPageParam)==null?void 0:a.call(e,n[0],n,r[0],r):void 0}var yC=(Vv=class extends Sm{constructor(n){super();Ce(this,Tr);Ce(this,Ms);Ce(this,Br);Ce(this,fn);Ce(this,ka);ge(this,Ms,n.client),this.mutationId=n.mutationId,ge(this,fn,n.mutationCache),ge(this,Br,[]),this.state=n.state||Rm(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){q(this,Br).includes(n)||(q(this,Br).push(n),this.clearGcTimeout(),q(this,fn).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){ge(this,Br,q(this,Br).filter(r=>r!==n)),this.scheduleGc(),q(this,fn).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){q(this,Br).length||(this.state.status==="pending"?this.scheduleGc():q(this,fn).remove(this))}continue(){var n;return((n=q(this,ka))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var c,f,p,d,x,m,y,v,b,E,S,w,k,A,D,F,R,z;const r=()=>{Me(this,Tr,ia).call(this,{type:"continue"})},a={client:q(this,Ms),meta:this.options.meta,mutationKey:this.options.mutationKey};ge(this,ka,Cm({fn:()=>this.options.mutationFn?this.options.mutationFn(n,a):Promise.reject(new Error("No mutationFn found")),onFail:(M,X)=>{Me(this,Tr,ia).call(this,{type:"failed",failureCount:M,error:X})},onPause:()=>{Me(this,Tr,ia).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>q(this,fn).canRun(this)}));const s=this.state.status==="pending",u=!q(this,ka).canStart();try{if(s)r();else{Me(this,Tr,ia).call(this,{type:"pending",variables:n,isPaused:u}),q(this,fn).config.onMutate&&await q(this,fn).config.onMutate(n,this,a);const X=await((f=(c=this.options).onMutate)==null?void 0:f.call(c,n,a));X!==this.state.context&&Me(this,Tr,ia).call(this,{type:"pending",context:X,variables:n,isPaused:u})}const M=await q(this,ka).start();return await((d=(p=q(this,fn).config).onSuccess)==null?void 0:d.call(p,M,n,this.state.context,this,a)),await((m=(x=this.options).onSuccess)==null?void 0:m.call(x,M,n,this.state.context,a)),await((v=(y=q(this,fn).config).onSettled)==null?void 0:v.call(y,M,null,this.state.variables,this.state.context,this,a)),await((E=(b=this.options).onSettled)==null?void 0:E.call(b,M,null,n,this.state.context,a)),Me(this,Tr,ia).call(this,{type:"success",data:M}),M}catch(M){try{await((w=(S=q(this,fn).config).onError)==null?void 0:w.call(S,M,n,this.state.context,this,a))}catch(X){Promise.reject(X)}try{await((A=(k=this.options).onError)==null?void 0:A.call(k,M,n,this.state.context,a))}catch(X){Promise.reject(X)}try{await((F=(D=q(this,fn).config).onSettled)==null?void 0:F.call(D,void 0,M,this.state.variables,this.state.context,this,a))}catch(X){Promise.reject(X)}try{await((z=(R=this.options).onSettled)==null?void 0:z.call(R,void 0,M,n,this.state.context,a))}catch(X){Promise.reject(X)}throw Me(this,Tr,ia).call(this,{type:"error",error:M}),M}finally{q(this,fn).runNext(this)}}},Ms=new WeakMap,Br=new WeakMap,fn=new WeakMap,ka=new WeakMap,Tr=new WeakSet,ia=function(n){const r=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=r(this.state),qt.batch(()=>{q(this,Br).forEach(a=>{a.onMutationUpdate(n)}),q(this,fn).notify({mutation:this,type:"updated",action:n})})},Vv);function Rm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vC=(Yv=class extends Ya{constructor(n={}){super();Ce(this,Vr);Ce(this,yr);Ce(this,Ls);this.config=n,ge(this,Vr,new Set),ge(this,yr,new Map),ge(this,Ls,0)}build(n,r,a){const s=new yC({client:n,mutationCache:this,mutationId:++Df(this,Ls)._,options:n.defaultMutationOptions(r),state:a});return this.add(s),s}add(n){q(this,Vr).add(n);const r=Ro(n);if(typeof r=="string"){const a=q(this,yr).get(r);a?a.push(n):q(this,yr).set(r,[n])}this.notify({type:"added",mutation:n})}remove(n){if(q(this,Vr).delete(n)){const r=Ro(n);if(typeof r=="string"){const a=q(this,yr).get(r);if(a)if(a.length>1){const s=a.indexOf(n);s!==-1&&a.splice(s,1)}else a[0]===n&&q(this,yr).delete(r)}}this.notify({type:"removed",mutation:n})}canRun(n){const r=Ro(n);if(typeof r=="string"){const a=q(this,yr).get(r),s=a==null?void 0:a.find(u=>u.state.status==="pending");return!s||s===n}else return!0}runNext(n){var a;const r=Ro(n);if(typeof r=="string"){const s=(a=q(this,yr).get(r))==null?void 0:a.find(u=>u!==n&&u.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){qt.batch(()=>{q(this,Vr).forEach(n=>{this.notify({type:"removed",mutation:n})}),q(this,Vr).clear(),q(this,yr).clear()})}getAll(){return Array.from(q(this,Vr))}find(n){const r={exact:!0,...n};return this.getAll().find(a=>xm(r,a))}findAll(n={}){return this.getAll().filter(r=>xm(n,r))}notify(n){qt.batch(()=>{this.listeners.forEach(r=>{r(n)})})}resumePausedMutations(){const n=this.getAll().filter(r=>r.state.isPaused);return qt.batch(()=>Promise.all(n.map(r=>r.continue().catch(hn))))}},Vr=new WeakMap,yr=new WeakMap,Ls=new WeakMap,Yv);function Ro(e){var n;return(n=e.options.scope)==null?void 0:n.id}var bC=(Qv=class extends Ya{constructor(r,a){super();Ce(this,Xr);Ce(this,Yr);Ce(this,Di);Ce(this,kn);Ce(this,Qr);ge(this,Yr,r),this.setOptions(a),this.bindMethods(),Me(this,Xr,Bf).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const a=this.options;this.options=q(this,Yr).defaultMutationOptions(r),Bo(this.options,a)||q(this,Yr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:q(this,kn),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&sa(a.mutationKey)!==sa(this.options.mutationKey)?this.reset():((s=q(this,kn))==null?void 0:s.state.status)==="pending"&&q(this,kn).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=q(this,kn))==null||r.removeObserver(this)}onMutationUpdate(r){Me(this,Xr,Bf).call(this),Me(this,Xr,tm).call(this,r)}getCurrentResult(){return q(this,Di)}reset(){var r;(r=q(this,kn))==null||r.removeObserver(this),ge(this,kn,void 0),Me(this,Xr,Bf).call(this),Me(this,Xr,tm).call(this)}mutate(r,a){var s;return ge(this,Qr,a),(s=q(this,kn))==null||s.removeObserver(this),ge(this,kn,q(this,Yr).getMutationCache().build(q(this,Yr),this.options)),q(this,kn).addObserver(this),q(this,kn).execute(r)}},Yr=new WeakMap,Di=new WeakMap,kn=new WeakMap,Qr=new WeakMap,Xr=new WeakSet,Bf=function(){var a;const r=((a=q(this,kn))==null?void 0:a.state)??Rm();ge(this,Di,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},tm=function(r){qt.batch(()=>{var a,s,u,c,f,p,d,x;if(q(this,Qr)&&this.hasListeners()){const m=q(this,Di).variables,y=q(this,Di).context,v={client:q(this,Yr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(s=(a=q(this,Qr)).onSuccess)==null||s.call(a,r.data,m,y,v)}catch(b){Promise.reject(b)}try{(c=(u=q(this,Qr)).onSettled)==null||c.call(u,r.data,null,m,y,v)}catch(b){Promise.reject(b)}}else if((r==null?void 0:r.type)==="error"){try{(p=(f=q(this,Qr)).onError)==null||p.call(f,r.error,m,y,v)}catch(b){Promise.reject(b)}try{(x=(d=q(this,Qr)).onSettled)==null||x.call(d,void 0,r.error,m,y,v)}catch(b){Promise.reject(b)}}}this.listeners.forEach(m=>{m(q(this,Di))})})},Qv),EC=(Xv=class extends Ya{constructor(n={}){super();Ce(this,Rr);this.config=n,ge(this,Rr,new Map)}build(n,r,a){const s=r.queryKey,u=r.queryHash??jf(s,r);let c=this.get(u);return c||(c=new hC({client:n,queryKey:s,queryHash:u,options:n.defaultQueryOptions(r),state:a,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}add(n){q(this,Rr).has(n.queryHash)||(q(this,Rr).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const r=q(this,Rr).get(n.queryHash);r&&(n.destroy(),r===n&&q(this,Rr).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){qt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return q(this,Rr).get(n)}getAll(){return[...q(this,Rr).values()]}find(n){const r={exact:!0,...n};return this.getAll().find(a=>mm(r,a))}findAll(n={}){const r=this.getAll();return Object.keys(n).length>0?r.filter(a=>mm(n,a)):r}notify(n){qt.batch(()=>{this.listeners.forEach(r=>{r(n)})})}onFocus(){qt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){qt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Rr=new WeakMap,Xv),CC=(Gv=class{constructor(e={}){Ce(this,St);Ce(this,Bi);Ce(this,Ti);Ce(this,gl);Ce(this,yl);Ce(this,Ri);Ce(this,vl);Ce(this,bl);ge(this,St,e.queryCache||new EC),ge(this,Bi,e.mutationCache||new vC),ge(this,Ti,e.defaultOptions||{}),ge(this,gl,new Map),ge(this,yl,new Map),ge(this,Ri,0)}mount(){Df(this,Ri)._++,q(this,Ri)===1&&(ge(this,vl,Vf.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,St).onFocus())})),ge(this,bl,To.subscribe(async e=>{e&&(await this.resumePausedMutations(),q(this,St).onOnline())})))}unmount(){var e,n;Df(this,Ri)._--,q(this,Ri)===0&&((e=q(this,vl))==null||e.call(this),ge(this,vl,void 0),(n=q(this,bl))==null||n.call(this),ge(this,bl,void 0))}isFetching(e){return q(this,St).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return q(this,Bi).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=q(this,St).get(n.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=q(this,St).build(this,n),a=r.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(mi(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(a))}getQueriesData(e){return q(this,St).findAll(e).map(({queryKey:n,state:r})=>{const a=r.data;return[n,a]})}setQueryData(e,n,r){const a=this.defaultQueryOptions({queryKey:e}),s=q(this,St).get(a.queryHash),u=s==null?void 0:s.state.data,c=nC(n,u);if(c!==void 0)return q(this,St).build(this,a).setData(c,{...r,manual:!0})}setQueriesData(e,n,r){return qt.batch(()=>q(this,St).findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,n,r)]))}getQueryState(e){var r;const n=this.defaultQueryOptions({queryKey:e});return(r=q(this,St).get(n.queryHash))==null?void 0:r.state}removeQueries(e){const n=q(this,St);qt.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=q(this,St);return qt.batch(()=>(r.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},a=qt.batch(()=>q(this,St).findAll(e).map(s=>s.cancel(r)));return Promise.all(a).then(hn).catch(hn)}invalidateQueries(e,n={}){return qt.batch(()=>(q(this,St).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},a=qt.batch(()=>q(this,St).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let u=s.fetch(void 0,r);return r.throwOnError||(u=u.catch(hn)),s.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(a).then(hn)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const r=q(this,St).build(this,n);return r.isStaleByTime(mi(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(hn).catch(hn)}fetchInfiniteQuery(e){return e.behavior=Bm(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(hn).catch(hn)}ensureInfiniteQueryData(e){return e.behavior=Bm(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return To.isOnline()?q(this,Bi).resumePausedMutations():Promise.resolve()}getQueryCache(){return q(this,St)}getMutationCache(){return q(this,Bi)}getDefaultOptions(){return q(this,Ti)}setDefaultOptions(e){ge(this,Ti,e)}setQueryDefaults(e,n){q(this,gl).set(sa(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...q(this,gl).values()],r={};return n.forEach(a=>{ss(e,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(e,n){q(this,yl).set(sa(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...q(this,yl).values()],r={};return n.forEach(a=>{ss(e,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...q(this,Ti).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=jf(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===If&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...q(this,Ti).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){q(this,St).clear(),q(this,Bi).clear()}},St=new WeakMap,Bi=new WeakMap,Ti=new WeakMap,gl=new WeakMap,yl=new WeakMap,Ri=new WeakMap,vl=new WeakMap,bl=new WeakMap,Gv),Om=Y.createContext(void 0),zm=e=>{const n=Y.useContext(Om);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},SC=({client:e,children:n})=>(Y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),$.jsx(Om.Provider,{value:e,children:n})),Nm=Y.createContext(!1),wC=()=>Y.useContext(Nm);Nm.Provider;function AC(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _C=Y.createContext(AC()),kC=()=>Y.useContext(_C),DC=(e,n,r)=>{const a=r!=null&&r.state.error&&typeof e.throwOnError=="function"?Pf(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||a)&&(n.isReset()||(e.retryOnMount=!1))},BC=e=>{Y.useEffect(()=>{e.clearReset()},[e])},TC=({result:e,errorResetBoundary:n,throwOnError:r,query:a,suspense:s})=>e.isError&&!n.isReset()&&!e.isFetching&&a&&(s&&e.data===void 0||Pf(r,[e.error,a])),RC=e=>{if(e.suspense){const r=s=>s==="static"?s:Math.max(s??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...s)=>r(a(...s)):r(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},OC=(e,n)=>e.isLoading&&e.isFetching&&!n,zC=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,Fm=(e,n,r)=>n.fetchOptimistic(e).catch(()=>{r.clearReset()});function NC(e,n,r){var y,v,b,E;const a=wC(),s=kC(),u=zm(),c=u.defaultQueryOptions(e);(v=(y=u.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||v.call(y,c);const f=u.getQueryCache().get(c.queryHash);c._optimisticResults=a?"isRestoring":"optimistic",RC(c),DC(c,s,f),BC(s);const p=!u.getQueryCache().get(c.queryHash),[d]=Y.useState(()=>new n(u,c)),x=d.getOptimisticResult(c),m=!a&&e.subscribed!==!1;if(Y.useSyncExternalStore(Y.useCallback(S=>{const w=m?d.subscribe(qt.batchCalls(S)):hn;return d.updateResult(),w},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),Y.useEffect(()=>{d.setOptions(c)},[c,d]),zC(c,x))throw Fm(c,d,s);if(TC({result:x,errorResetBoundary:s,throwOnError:c.throwOnError,query:f,suspense:c.suspense}))throw x.error;if((E=(b=u.getDefaultOptions().queries)==null?void 0:b._experimental_afterQuery)==null||E.call(b,c,x),c.experimental_prefetchInRender&&!la&&OC(x,a)){const S=p?Fm(c,d,s):f==null?void 0:f.promise;S==null||S.catch(hn).finally(()=>{d.updateResult()})}return c.notifyOnChangeProps?x:d.trackResult(x)}function FC(e,n){return NC(e,pC)}function MC(e,n){const r=zm(),[a]=Y.useState(()=>new bC(r,e));Y.useEffect(()=>{a.setOptions(e)},[a,e]);const s=Y.useSyncExternalStore(Y.useCallback(c=>a.subscribe(qt.batchCalls(c)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),u=Y.useCallback((c,f)=>{a.mutate(c,f).catch(hn)},[a]);if(s.error&&Pf(a.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}/**
50
+ * @license lucide-react v0.563.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const Mm=(...e)=>e.filter((n,r,a)=>!!n&&n.trim()!==""&&a.indexOf(n)===r).join(" ").trim();/**
55
+ * @license lucide-react v0.563.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */const LC=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
60
+ * @license lucide-react v0.563.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const UC=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,a)=>a?a.toUpperCase():r.toLowerCase());/**
65
+ * @license lucide-react v0.563.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const Lm=e=>{const n=UC(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
70
+ * @license lucide-react v0.563.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */var jC={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"};/**
75
+ * @license lucide-react v0.563.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const HC=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};/**
80
+ * @license lucide-react v0.563.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const qC=Y.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:s="",children:u,iconNode:c,...f},p)=>Y.createElement("svg",{ref:p,...jC,width:n,height:n,stroke:e,strokeWidth:a?Number(r)*24/Number(n):r,className:Mm("lucide",s),...!u&&!HC(f)&&{"aria-hidden":"true"},...f},[...c.map(([d,x])=>Y.createElement(d,x)),...Array.isArray(u)?u:[u]]));/**
85
+ * @license lucide-react v0.563.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const bn=(e,n)=>{const r=Y.forwardRef(({className:a,...s},u)=>Y.createElement(qC,{ref:u,iconNode:n,className:Mm(`lucide-${LC(Lm(e))}`,`lucide-${e}`,a),...s}));return r.displayName=Lm(e),r};/**
90
+ * @license lucide-react v0.563.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const IC=bn("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
95
+ * @license lucide-react v0.563.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const PC=bn("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
100
+ * @license lucide-react v0.563.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const VC=bn("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
105
+ * @license lucide-react v0.563.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const YC=bn("file-spreadsheet",[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/**
110
+ * @license lucide-react v0.563.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const Oo=bn("file-text",[["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"}]]);/**
115
+ * @license lucide-react v0.563.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const QC=bn("file",[["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"}]]);/**
120
+ * @license lucide-react v0.563.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const XC=bn("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
125
+ * @license lucide-react v0.563.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const GC=bn("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
130
+ * @license lucide-react v0.563.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const KC=bn("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]);/**
135
+ * @license lucide-react v0.563.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const $C=bn("octagon-x",[["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"}]]);/**
140
+ * @license lucide-react v0.563.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const ZC=bn("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]);/**
145
+ * @license lucide-react v0.563.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const WC=bn("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
150
+ * @license lucide-react v0.563.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const JC=bn("triangle-alert",[["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"}]]);/**
155
+ * @license lucide-react v0.563.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const zo=bn("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function eS({config:e,onClose:n}){return $.jsxs("div",{className:"p-4 flex justify-between items-center",style:{backgroundColor:e.headerBackgroundColor},children:[$.jsxs("div",{className:"flex items-center gap-3",children:[$.jsx("div",{className:"w-10 h-10 rounded-full bg-white/10 flex items-center justify-center backdrop-blur-sm overflow-hidden",children:e.headerImage?$.jsx("img",{src:e.headerImage,alt:"Bot",className:"w-full h-full object-cover"}):$.jsx(IC,{className:"w-6 h-6 text-white"})}),$.jsxs("div",{className:"flex flex-col",children:[$.jsx("h3",{className:"font-semibold text-lg leading-tight",style:{color:e.headerTextColor},children:e.headerTitle}),$.jsx("span",{className:"text-xs",style:{color:e.subLabelColor},children:e.subLabelTitle})]})]}),$.jsx("button",{onClick:n,className:"p-1 hover:bg-black/10 rounded-full transition-colors",style:{color:e.closeButtonColor},children:$.jsx(zo,{})})]})}function IO(){}function PO(){}function tS(e,n){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const nS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iS={};function Um(e,n){return(iS.jsx?rS:nS).test(e)}const aS=/[ \t\n\f\r]/g;function lS(e){return typeof e=="object"?e.type==="text"?jm(e.value):!1:jm(e)}function jm(e){return e.replace(aS,"")===""}class os{constructor(n,r,a){this.normal=r,this.property=n,a&&(this.space=a)}}os.prototype.normal={},os.prototype.property={},os.prototype.space=void 0;function Hm(e,n){const r={},a={};for(const s of e)Object.assign(r,s.property),Object.assign(a,s.normal);return new os(r,a,n)}function Kf(e){return e.toLowerCase()}class En{constructor(n,r){this.attribute=r,this.property=n}}En.prototype.attribute="",En.prototype.booleanish=!1,En.prototype.boolean=!1,En.prototype.commaOrSpaceSeparated=!1,En.prototype.commaSeparated=!1,En.prototype.defined=!1,En.prototype.mustUseProperty=!1,En.prototype.number=!1,En.prototype.overloadedBoolean=!1,En.prototype.property="",En.prototype.spaceSeparated=!1,En.prototype.space=void 0;let sS=0;const ze=oa(),zt=oa(),$f=oa(),fe=oa(),dt=oa(),Qa=oa(),Mn=oa();function oa(){return 2**++sS}const Zf=Object.freeze(Object.defineProperty({__proto__:null,boolean:ze,booleanish:zt,commaOrSpaceSeparated:Mn,commaSeparated:Qa,number:fe,overloadedBoolean:$f,spaceSeparated:dt},Symbol.toStringTag,{value:"Module"})),Wf=Object.keys(Zf);class Jf extends En{constructor(n,r,a,s){let u=-1;if(super(n,r),qm(this,"space",s),typeof a=="number")for(;++u<Wf.length;){const c=Wf[u];qm(this,Wf[u],(a&Zf[c])===Zf[c])}}}Jf.prototype.defined=!0;function qm(e,n,r){r&&(e[n]=r)}function Xa(e){const n={},r={};for(const[a,s]of Object.entries(e.properties)){const u=new Jf(a,e.transform(e.attributes||{},a),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),n[a]=u,r[Kf(a)]=a,r[Kf(u.attribute)]=a}return new os(n,r,e.space)}const Im=Xa({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:dt,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:fe,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:dt,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:zt,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Pm(e,n){return n in e?e[n]:n}function Vm(e,n){return Pm(e,n.toLowerCase())}const oS=Xa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qa,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:ze,allowPaymentRequest:ze,allowUserMedia:ze,alt:null,as:null,async:ze,autoCapitalize:null,autoComplete:dt,autoFocus:ze,autoPlay:ze,blocking:dt,capture:null,charSet:null,checked:ze,cite:null,className:dt,cols:fe,colSpan:null,content:null,contentEditable:zt,controls:ze,controlsList:dt,coords:fe|Qa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ze,defer:ze,dir:null,dirName:null,disabled:ze,download:$f,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ze,formTarget:null,headers:dt,height:fe,hidden:$f,high:fe,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:ze,inputMode:null,integrity:null,is:null,isMap:ze,itemId:null,itemProp:dt,itemRef:dt,itemScope:ze,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ze,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:ze,muted:ze,name:null,nonce:null,noModule:ze,noValidate:ze,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ze,optimum:fe,pattern:null,ping:dt,placeholder:null,playsInline:ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ze,referrerPolicy:null,rel:dt,required:ze,reversed:ze,rows:fe,rowSpan:fe,sandbox:dt,scope:null,scoped:ze,seamless:ze,selected:ze,shadowRootClonable:ze,shadowRootDelegatesFocus:ze,shadowRootMode:null,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:ze,useMap:null,value:zt,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ze,declare:ze,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:ze,noHref:ze,noShade:ze,noWrap:ze,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ze,disableRemotePlayback:ze,prefix:null,property:null,results:fe,security:null,unselectable:null},space:"html",transform:Vm}),uS=Xa({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Mn,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:dt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qa,g2:Qa,glyphName:Qa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:Mn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:fe,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Mn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Mn,rev:Mn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Mn,requiredFeatures:Mn,requiredFonts:Mn,requiredFormats:Mn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:Mn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Mn,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Mn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Pm}),Ym=Xa({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),Qm=Xa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Vm}),Xm=Xa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),cS={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},fS=/[A-Z]/g,Gm=/-[a-z]/g,dS=/^data[-\w.:]+$/i;function hS(e,n){const r=Kf(n);let a=n,s=En;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&dS.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(Gm,mS);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!Gm.test(u)){let c=u.replace(fS,pS);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}s=Jf}return new s(a,n)}function pS(e){return"-"+e.toLowerCase()}function mS(e){return e.charAt(1).toUpperCase()}const xS=Hm([Im,oS,Ym,Qm,Xm],"html"),e0=Hm([Im,uS,Ym,Qm,Xm],"svg");function gS(e){return e.join(" ").trim()}var Ga={},t0,Km;function yS(){if(Km)return t0;Km=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,u=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,p=`
160
+ `,d="/",x="*",m="",y="comment",v="declaration";function b(S,w){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];w=w||{};var k=1,A=1;function D(ie){var J=ie.match(n);J&&(k+=J.length);var L=ie.lastIndexOf(p);A=~L?ie.length-L:A+ie.length}function F(){var ie={line:k,column:A};return function(J){return J.position=new R(ie),X(),J}}function R(ie){this.start=ie,this.end={line:k,column:A},this.source=w.source}R.prototype.content=S;function z(ie){var J=new Error(w.source+":"+k+":"+A+": "+ie);if(J.reason=ie,J.filename=w.source,J.line=k,J.column=A,J.source=S,!w.silent)throw J}function M(ie){var J=ie.exec(S);if(J){var L=J[0];return D(L),S=S.slice(L.length),J}}function X(){M(r)}function T(ie){var J;for(ie=ie||[];J=j();)J!==!1&&ie.push(J);return ie}function j(){var ie=F();if(!(d!=S.charAt(0)||x!=S.charAt(1))){for(var J=2;m!=S.charAt(J)&&(x!=S.charAt(J)||d!=S.charAt(J+1));)++J;if(J+=2,m===S.charAt(J-1))return z("End of comment missing");var L=S.slice(2,J-2);return A+=2,D(L),S=S.slice(J),A+=2,ie({type:y,comment:L})}}function V(){var ie=F(),J=M(a);if(J){if(j(),!M(s))return z("property missing ':'");var L=M(u),te=ie({type:v,property:E(J[0].replace(e,m)),value:L?E(L[0].replace(e,m)):m});return M(c),te}}function G(){var ie=[];T(ie);for(var J;J=V();)J!==!1&&(ie.push(J),T(ie));return ie}return X(),G()}function E(S){return S?S.replace(f,m):m}return t0=b,t0}var $m;function vS(){if($m)return Ga;$m=1;var e=Ga&&Ga.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ga,"__esModule",{value:!0}),Ga.default=r;const n=e(yS());function r(a,s){let u=null;if(!a||typeof a!="string")return u;const c=(0,n.default)(a),f=typeof s=="function";return c.forEach(p=>{if(p.type!=="declaration")return;const{property:d,value:x}=p;f?s(d,x,p):x&&(u=u||{},u[d]=x)}),u}return Ga}var us={},Zm;function bS(){if(Zm)return us;Zm=1,Object.defineProperty(us,"__esModule",{value:!0}),us.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,u=function(d){return!d||r.test(d)||e.test(d)},c=function(d,x){return x.toUpperCase()},f=function(d,x){return"".concat(x,"-")},p=function(d,x){return x===void 0&&(x={}),u(d)?d:(d=d.toLowerCase(),x.reactCompat?d=d.replace(s,f):d=d.replace(a,f),d.replace(n,c))};return us.camelCase=p,us}var cs,Wm;function ES(){if(Wm)return cs;Wm=1;var e=cs&&cs.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},n=e(vS()),r=bS();function a(s,u){var c={};return!s||typeof s!="string"||(0,n.default)(s,function(f,p){f&&p&&(c[(0,r.camelCase)(f,u)]=p)}),c}return a.default=a,cs=a,cs}var CS=ES();const SS=Cr(CS),Jm=ex("end"),n0=ex("start");function ex(e){return n;function n(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function wS(e){const n=n0(e),r=Jm(e);if(n&&r)return{start:n,end:r}}function fs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?tx(e.position):"start"in e||"end"in e?tx(e):"line"in e||"column"in e?r0(e):""}function r0(e){return nx(e&&e.line)+":"+nx(e&&e.column)}function tx(e){return r0(e&&e.start)+"-"+r0(e&&e.end)}function nx(e){return e&&typeof e=="number"?e:1}class on extends Error{constructor(n,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let s="",u={},c=!1;if(r&&("line"in r&&"column"in r?u={place:r}:"start"in r&&"end"in r?u={place:r}:"type"in r?u={ancestors:[r],place:r.position}:u={...r}),typeof n=="string"?s=n:!u.cause&&n&&(c=!0,s=n.message,u.cause=n),!u.ruleId&&!u.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?u.ruleId=a:(u.source=a.slice(0,p),u.ruleId=a.slice(p+1))}if(!u.place&&u.ancestors&&u.ancestors){const p=u.ancestors[u.ancestors.length-1];p&&(u.place=p.position)}const f=u.place&&"start"in u.place?u.place.start:u.place;this.ancestors=u.ancestors||void 0,this.cause=u.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=fs(u.place)||"1:1",this.place=u.place||void 0,this.reason=this.message,this.ruleId=u.ruleId||void 0,this.source=u.source||void 0,this.stack=c&&u.cause&&typeof u.cause.stack=="string"?u.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}on.prototype.file="",on.prototype.name="",on.prototype.reason="",on.prototype.message="",on.prototype.stack="",on.prototype.column=void 0,on.prototype.line=void 0,on.prototype.ancestors=void 0,on.prototype.cause=void 0,on.prototype.fatal=void 0,on.prototype.place=void 0,on.prototype.ruleId=void 0,on.prototype.source=void 0;const i0={}.hasOwnProperty,AS=new Map,_S=/[A-Z]/g,kS=new Set(["table","tbody","thead","tfoot","tr"]),DS=new Set(["td","th"]),rx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function BS(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let a;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=LS(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=MS(r,n.jsx,n.jsxs)}const s={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:a,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?e0:xS,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},u=ix(s,e,void 0);return u&&typeof u!="string"?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}function ix(e,n,r){if(n.type==="element")return TS(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return RS(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return zS(e,n,r);if(n.type==="mdxjsEsm")return OS(e,n);if(n.type==="root")return NS(e,n,r);if(n.type==="text")return FS(e,n)}function TS(e,n,r){const a=e.schema;let s=a;n.tagName.toLowerCase()==="svg"&&a.space==="html"&&(s=e0,e.schema=s),e.ancestors.push(n);const u=lx(e,n.tagName,!1),c=US(e,n);let f=l0(e,n);return kS.has(n.tagName)&&(f=f.filter(function(p){return typeof p=="string"?!lS(p):!0})),ax(e,c,u,n),a0(c,f),e.ancestors.pop(),e.schema=a,e.create(n,u,c,r)}function RS(e,n){if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}ds(e,n.position)}function OS(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ds(e,n.position)}function zS(e,n,r){const a=e.schema;let s=a;n.name==="svg"&&a.space==="html"&&(s=e0,e.schema=s),e.ancestors.push(n);const u=n.name===null?e.Fragment:lx(e,n.name,!0),c=jS(e,n),f=l0(e,n);return ax(e,c,u,n),a0(c,f),e.ancestors.pop(),e.schema=a,e.create(n,u,c,r)}function NS(e,n,r){const a={};return a0(a,l0(e,n)),e.create(n,e.Fragment,a,r)}function FS(e,n){return n.value}function ax(e,n,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=a)}function a0(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function MS(e,n,r){return a;function a(s,u,c,f){const d=Array.isArray(c.children)?r:n;return f?d(u,c,f):d(u,c)}}function LS(e,n){return r;function r(a,s,u,c){const f=Array.isArray(u.children),p=n0(a);return n(s,u,c,f,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function US(e,n){const r={};let a,s;for(s in n.properties)if(s!=="children"&&i0.call(n.properties,s)){const u=HS(e,s,n.properties[s]);if(u){const[c,f]=u;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&DS.has(n.tagName)?a=f:r[c]=f}}if(a){const u=r.style||(r.style={});u[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function jS(e,n){const r={};for(const a of n.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const u=a.data.estree.body[0];u.type;const c=u.expression;c.type;const f=c.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else ds(e,n.position);else{const s=a.name;let u;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,u=e.evaluater.evaluateExpression(f.expression)}else ds(e,n.position);else u=a.value===null?!0:a.value;r[s]=u}return r}function l0(e,n){const r=[];let a=-1;const s=e.passKeys?new Map:AS;for(;++a<n.children.length;){const u=n.children[a];let c;if(e.passKeys){const p=u.type==="element"?u.tagName:u.type==="mdxJsxFlowElement"||u.type==="mdxJsxTextElement"?u.name:void 0;if(p){const d=s.get(p)||0;c=p+"-"+d,s.set(p,d+1)}}const f=ix(e,u,c);f!==void 0&&r.push(f)}return r}function HS(e,n,r){const a=hS(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?tS(r):gS(r)),a.property==="style"){let s=typeof r=="object"?r:qS(e,String(r));return e.stylePropertyNameCase==="css"&&(s=IS(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&a.space?cS[a.property]||a.property:a.attribute,r]}}function qS(e,n){try{return SS(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,s=new on("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=rx+"#cannot-parse-style-attribute",s}}function lx(e,n,r){let a;if(!r)a={type:"Literal",value:n};else if(n.includes(".")){const s=n.split(".");let u=-1,c;for(;++u<s.length;){const f=Um(s[u])?{type:"Identifier",name:s[u]}:{type:"Literal",value:s[u]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(u&&f.type==="Literal"),optional:!1}:f}a=c}else a=Um(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(a.type==="Literal"){const s=a.value;return i0.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(a);ds(e)}function ds(e,n){const r=new on("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=rx+"#cannot-handle-mdx-estrees-without-createevaluater",r}function IS(e){const n={};let r;for(r in e)i0.call(e,r)&&(n[PS(r)]=e[r]);return n}function PS(e){let n=e.replace(_S,VS);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function VS(e){return"-"+e.toLowerCase()}const s0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},YS={};function o0(e,n){const r=YS,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,s=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return sx(e,a,s)}function sx(e,n,r){if(QS(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ox(e.children,n,r)}return Array.isArray(e)?ox(e,n,r):""}function ox(e,n,r){const a=[];let s=-1;for(;++s<e.length;)a[s]=sx(e[s],n,r);return a.join("")}function QS(e){return!!(e&&typeof e=="object")}const ux=document.createElement("i");function u0(e){const n="&"+e+";";ux.innerHTML=n;const r=ux.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function Ln(e,n,r,a){const s=e.length;let u=0,c;if(n<0?n=-n>s?0:s+n:n=n>s?s:n,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(n,r),e.splice(...c);else for(r&&e.splice(n,r);u<a.length;)c=a.slice(u,u+1e4),c.unshift(n,0),e.splice(...c),u+=1e4,n+=1e4}function Kn(e,n){return e.length>0?(Ln(e,e.length,0,n),e):n}const cx={}.hasOwnProperty;function fx(e){const n={};let r=-1;for(;++r<e.length;)XS(n,e[r]);return n}function XS(e,n){let r;for(r in n){const s=(cx.call(e,r)?e[r]:void 0)||(e[r]={}),u=n[r];let c;if(u)for(c in u){cx.call(s,c)||(s[c]=[]);const f=u[c];GS(s[c],Array.isArray(f)?f:f?[f]:[])}}}function GS(e,n){let r=-1;const a=[];for(;++r<n.length;)(n[r].add==="after"?e:a).push(n[r]);Ln(e,0,0,a)}function dx(e,n){const r=Number.parseInt(e,n);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function hr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pn=xi(/[A-Za-z]/),un=xi(/[\dA-Za-z]/),KS=xi(/[#-'*+\--9=?A-Z^-~]/);function No(e){return e!==null&&(e<32||e===127)}const c0=xi(/\d/),$S=xi(/[\dA-Fa-f]/),ZS=xi(/[!-/:-@[-`{-~]/);function Ae(e){return e!==null&&e<-2}function ut(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Fo=xi(new RegExp("\\p{P}|\\p{S}","u")),ua=xi(/\s/);function xi(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Ka(e){const n=[];let r=-1,a=0,s=0;for(;++r<e.length;){const u=e.charCodeAt(r);let c="";if(u===37&&un(e.charCodeAt(r+1))&&un(e.charCodeAt(r+2)))s=2;else if(u<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(u))||(c=String.fromCharCode(u));else if(u>55295&&u<57344){const f=e.charCodeAt(r+1);u<56320&&f>56319&&f<57344?(c=String.fromCharCode(u,f),s=1):c="�"}else c=String.fromCharCode(u);c&&(n.push(e.slice(a,r),encodeURIComponent(c)),a=r+s+1,c=""),s&&(r+=s,s=0)}return n.join("")+e.slice(a)}function Ge(e,n,r,a){const s=a?a-1:Number.POSITIVE_INFINITY;let u=0;return c;function c(p){return Ue(p)?(e.enter(r),f(p)):n(p)}function f(p){return Ue(p)&&u++<s?(e.consume(p),f):(e.exit(r),n(p))}}const WS={tokenize:JS};function JS(e){const n=e.attempt(this.parser.constructs.contentInitial,a,s);let r;return n;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ge(e,n,"linePrefix")}function s(f){return e.enter("paragraph"),u(f)}function u(f){const p=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return Ae(f)?(e.consume(f),e.exit("chunkText"),u):(e.consume(f),c)}}const e8={tokenize:t8},hx={tokenize:n8};function t8(e){const n=this,r=[];let a=0,s,u,c;return f;function f(A){if(a<r.length){const D=r[a];return n.containerState=D[1],e.attempt(D[0].continuation,p,d)(A)}return d(A)}function p(A){if(a++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,s&&k();const D=n.events.length;let F=D,R;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){R=n.events[F][1].end;break}w(a);let z=D;for(;z<n.events.length;)n.events[z][1].end={...R},z++;return Ln(n.events,F+1,0,n.events.slice(D)),n.events.length=z,d(A)}return f(A)}function d(A){if(a===r.length){if(!s)return y(A);if(s.currentConstruct&&s.currentConstruct.concrete)return b(A);n.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(hx,x,m)(A)}function x(A){return s&&k(),w(a),y(A)}function m(A){return n.parser.lazy[n.now().line]=a!==r.length,c=n.now().offset,b(A)}function y(A){return n.containerState={},e.attempt(hx,v,b)(A)}function v(A){return a++,r.push([n.currentConstruct,n.containerState]),y(A)}function b(A){if(A===null){s&&k(),w(0),e.consume(A);return}return s=s||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:u}),E(A)}function E(A){if(A===null){S(e.exit("chunkFlow"),!0),w(0),e.consume(A);return}return Ae(A)?(e.consume(A),S(e.exit("chunkFlow")),a=0,n.interrupt=void 0,f):(e.consume(A),E)}function S(A,D){const F=n.sliceStream(A);if(D&&F.push(null),A.previous=u,u&&(u.next=A),u=A,s.defineSkip(A.start),s.write(F),n.parser.lazy[A.start.line]){let R=s.events.length;for(;R--;)if(s.events[R][1].start.offset<c&&(!s.events[R][1].end||s.events[R][1].end.offset>c))return;const z=n.events.length;let M=z,X,T;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){if(X){T=n.events[M][1].end;break}X=!0}for(w(a),R=z;R<n.events.length;)n.events[R][1].end={...T},R++;Ln(n.events,M+1,0,n.events.slice(z)),n.events.length=R}}function w(A){let D=r.length;for(;D-- >A;){const F=r[D];n.containerState=F[1],F[0].exit.call(n,e)}r.length=A}function k(){s.write([null]),u=void 0,s=void 0,n.containerState._closeFlow=void 0}}function n8(e,n,r){return Ge(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $a(e){if(e===null||ut(e)||ua(e))return 1;if(Fo(e))return 2}function Mo(e,n,r){const a=[];let s=-1;for(;++s<e.length;){const u=e[s].resolveAll;u&&!a.includes(u)&&(n=u(n,r),a.push(u))}return n}const f0={name:"attention",resolveAll:r8,tokenize:i8};function r8(e,n){let r=-1,a,s,u,c,f,p,d,x;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;p=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const m={...e[a][1].end},y={...e[r][1].start};px(m,-p),px(y,p),c={type:p>1?"strongSequence":"emphasisSequence",start:m,end:{...e[a][1].end}},f={type:p>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:y},u={type:p>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},s={type:p>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[a][1].end={...c.start},e[r][1].start={...f.end},d=[],e[a][1].end.offset-e[a][1].start.offset&&(d=Kn(d,[["enter",e[a][1],n],["exit",e[a][1],n]])),d=Kn(d,[["enter",s,n],["enter",c,n],["exit",c,n],["enter",u,n]]),d=Kn(d,Mo(n.parser.constructs.insideSpan.null,e.slice(a+1,r),n)),d=Kn(d,[["exit",u,n],["enter",f,n],["exit",f,n],["exit",s,n]]),e[r][1].end.offset-e[r][1].start.offset?(x=2,d=Kn(d,[["enter",e[r][1],n],["exit",e[r][1],n]])):x=0,Ln(e,a-1,r-a+3,d),r=a+d.length-x-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function i8(e,n){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,s=$a(a);let u;return c;function c(p){return u=p,e.enter("attentionSequence"),f(p)}function f(p){if(p===u)return e.consume(p),f;const d=e.exit("attentionSequence"),x=$a(p),m=!x||x===2&&s||r.includes(p),y=!s||s===2&&x||r.includes(a);return d._open=!!(u===42?m:m&&(s||!y)),d._close=!!(u===42?y:y&&(x||!m)),n(p)}}function px(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const a8={name:"autolink",tokenize:l8};function l8(e,n,r){let a=0;return s;function s(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),u}function u(v){return pn(v)?(e.consume(v),c):v===64?r(v):d(v)}function c(v){return v===43||v===45||v===46||un(v)?(a=1,f(v)):d(v)}function f(v){return v===58?(e.consume(v),a=0,p):(v===43||v===45||v===46||un(v))&&a++<32?(e.consume(v),f):(a=0,d(v))}function p(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):v===null||v===32||v===60||No(v)?r(v):(e.consume(v),p)}function d(v){return v===64?(e.consume(v),x):KS(v)?(e.consume(v),d):r(v)}function x(v){return un(v)?m(v):r(v)}function m(v){return v===46?(e.consume(v),a=0,x):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):y(v)}function y(v){if((v===45||un(v))&&a++<63){const b=v===45?y:m;return e.consume(v),b}return r(v)}}const hs={partial:!0,tokenize:s8};function s8(e,n,r){return a;function a(u){return Ue(u)?Ge(e,s,"linePrefix")(u):s(u)}function s(u){return u===null||Ae(u)?n(u):r(u)}}const mx={continuation:{tokenize:u8},exit:c8,name:"blockQuote",tokenize:o8};function o8(e,n,r){const a=this;return s;function s(c){if(c===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),u}return r(c)}function u(c){return Ue(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function u8(e,n,r){const a=this;return s;function s(c){return Ue(c)?Ge(e,u,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):u(c)}function u(c){return e.attempt(mx,n,r)(c)}}function c8(e){e.exit("blockQuote")}const xx={name:"characterEscape",tokenize:f8};function f8(e,n,r){return a;function a(u){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(u),e.exit("escapeMarker"),s}function s(u){return ZS(u)?(e.enter("characterEscapeValue"),e.consume(u),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(u)}}const gx={name:"characterReference",tokenize:d8};function d8(e,n,r){const a=this;let s=0,u,c;return f;function f(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),p}function p(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),u=31,c=un,x(m))}function d(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),u=6,c=$S,x):(e.enter("characterReferenceValue"),u=7,c=c0,x(m))}function x(m){if(m===59&&s){const y=e.exit("characterReferenceValue");return c===un&&!u0(a.sliceSerialize(y))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(m)&&s++<u?(e.consume(m),x):r(m)}}const yx={partial:!0,tokenize:p8},vx={concrete:!0,name:"codeFenced",tokenize:h8};function h8(e,n,r){const a=this,s={partial:!0,tokenize:F};let u=0,c=0,f;return p;function p(R){return d(R)}function d(R){const z=a.events[a.events.length-1];return u=z&&z[1].type==="linePrefix"?z[2].sliceSerialize(z[1],!0).length:0,f=R,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),x(R)}function x(R){return R===f?(c++,e.consume(R),x):c<3?r(R):(e.exit("codeFencedFenceSequence"),Ue(R)?Ge(e,m,"whitespace")(R):m(R))}function m(R){return R===null||Ae(R)?(e.exit("codeFencedFence"),a.interrupt?n(R):e.check(yx,E,D)(R)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(R))}function y(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(R)):Ue(R)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ge(e,v,"whitespace")(R)):R===96&&R===f?r(R):(e.consume(R),y)}function v(R){return R===null||Ae(R)?m(R):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(R))}function b(R){return R===null||Ae(R)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(R)):R===96&&R===f?r(R):(e.consume(R),b)}function E(R){return e.attempt(s,D,S)(R)}function S(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),w}function w(R){return u>0&&Ue(R)?Ge(e,k,"linePrefix",u+1)(R):k(R)}function k(R){return R===null||Ae(R)?e.check(yx,E,D)(R):(e.enter("codeFlowValue"),A(R))}function A(R){return R===null||Ae(R)?(e.exit("codeFlowValue"),k(R)):(e.consume(R),A)}function D(R){return e.exit("codeFenced"),n(R)}function F(R,z,M){let X=0;return T;function T(J){return R.enter("lineEnding"),R.consume(J),R.exit("lineEnding"),j}function j(J){return R.enter("codeFencedFence"),Ue(J)?Ge(R,V,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(J):V(J)}function V(J){return J===f?(R.enter("codeFencedFenceSequence"),G(J)):M(J)}function G(J){return J===f?(X++,R.consume(J),G):X>=c?(R.exit("codeFencedFenceSequence"),Ue(J)?Ge(R,ie,"whitespace")(J):ie(J)):M(J)}function ie(J){return J===null||Ae(J)?(R.exit("codeFencedFence"),z(J)):M(J)}}}function p8(e,n,r){const a=this;return s;function s(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u)}function u(c){return a.parser.lazy[a.now().line]?r(c):n(c)}}const d0={name:"codeIndented",tokenize:x8},m8={partial:!0,tokenize:g8};function x8(e,n,r){const a=this;return s;function s(d){return e.enter("codeIndented"),Ge(e,u,"linePrefix",5)(d)}function u(d){const x=a.events[a.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?c(d):r(d)}function c(d){return d===null?p(d):Ae(d)?e.attempt(m8,c,p)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||Ae(d)?(e.exit("codeFlowValue"),c(d)):(e.consume(d),f)}function p(d){return e.exit("codeIndented"),n(d)}}function g8(e,n,r){const a=this;return s;function s(c){return a.parser.lazy[a.now().line]?r(c):Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):Ge(e,u,"linePrefix",5)(c)}function u(c){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):Ae(c)?s(c):r(c)}}const y8={name:"codeText",previous:b8,resolve:v8,tokenize:E8};function v8(e){let n=e.length-4,r=3,a,s;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(a=r;++a<n;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(a=r-1,n++;++a<=n;)s===void 0?a!==n&&e[a][1].type!=="lineEnding"&&(s=a):(a===n||e[a][1].type==="lineEnding")&&(e[s][1].type="codeTextData",a!==s+2&&(e[s][1].end=e[a-1][1].end,e.splice(s+2,a-s-2),n-=a-s-2,a=s+2),s=void 0);return e}function b8(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function E8(e,n,r){let a=0,s,u;return c;function c(m){return e.enter("codeText"),e.enter("codeTextSequence"),f(m)}function f(m){return m===96?(e.consume(m),a++,f):(e.exit("codeTextSequence"),p(m))}function p(m){return m===null?r(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),p):m===96?(u=e.enter("codeTextSequence"),s=0,x(m)):Ae(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),p):(e.enter("codeTextData"),d(m))}function d(m){return m===null||m===32||m===96||Ae(m)?(e.exit("codeTextData"),p(m)):(e.consume(m),d)}function x(m){return m===96?(e.consume(m),s++,x):s===a?(e.exit("codeTextSequence"),e.exit("codeText"),n(m)):(u.type="codeTextData",d(m))}}class C8{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(n,a):n>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(n,r,a){const s=r||0;this.setCursor(Math.trunc(n));const u=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return a&&ps(this.left,a),u.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),ps(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ps(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);ps(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ps(this.left,r.reverse())}}}function ps(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function bx(e){const n={};let r=-1,a,s,u,c,f,p,d;const x=new C8(e);for(;++r<x.length;){for(;r in n;)r=n[r];if(a=x.get(r),r&&a[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,u=0,u<p.length&&p[u][1].type==="lineEndingBlank"&&(u+=2),u<p.length&&p[u][1].type==="content"))for(;++u<p.length&&p[u][1].type!=="content";)p[u][1].type==="chunkText"&&(p[u][1]._isInFirstContentOfListItem=!0,u++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,S8(x,r)),r=n[r],d=!0);else if(a[1]._container){for(u=r,s=void 0;u--;)if(c=x.get(u),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(x.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=u);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(a[1].end={...x.get(s)[1].start},f=x.slice(s,r),f.unshift(a),x.splice(s,r-s+1,f))}}return Ln(e,0,Number.POSITIVE_INFINITY,x.slice(0)),!d}function S8(e,n){const r=e.get(n)[1],a=e.get(n)[2];let s=n-1;const u=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,p=[],d={};let x,m,y=-1,v=r,b=0,E=0;const S=[E];for(;v;){for(;e.get(++s)[1]!==v;);u.push(s),v._tokenizer||(x=a.sliceStream(v),v.next||x.push(null),m&&c.defineSkip(v.start),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(x),v._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),m=v,v=v.next}for(v=r;++y<f.length;)f[y][0]==="exit"&&f[y-1][0]==="enter"&&f[y][1].type===f[y-1][1].type&&f[y][1].start.line!==f[y][1].end.line&&(E=y+1,S.push(E),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(c.events=[],v?(v._tokenizer=void 0,v.previous=void 0):S.pop(),y=S.length;y--;){const w=f.slice(S[y],S[y+1]),k=u.pop();p.push([k,k+w.length-1]),e.splice(k,2,w)}for(p.reverse(),y=-1;++y<p.length;)d[b+p[y][0]]=b+p[y][1],b+=p[y][1]-p[y][0]-1;return d}const w8={resolve:_8,tokenize:k8},A8={partial:!0,tokenize:D8};function _8(e){return bx(e),e}function k8(e,n){let r;return a;function a(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?u(f):Ae(f)?e.check(A8,c,u)(f):(e.consume(f),s)}function u(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,s}}function D8(e,n,r){const a=this;return s;function s(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ge(e,u,"linePrefix")}function u(c){if(c===null||Ae(c))return r(c);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(a.parser.constructs.flow,r,n)(c)}}function Ex(e,n,r,a,s,u,c,f,p){const d=p||Number.POSITIVE_INFINITY;let x=0;return m;function m(w){return w===60?(e.enter(a),e.enter(s),e.enter(u),e.consume(w),e.exit(u),y):w===null||w===32||w===41||No(w)?r(w):(e.enter(a),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),E(w))}function y(w){return w===62?(e.enter(u),e.consume(w),e.exit(u),e.exit(s),e.exit(a),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),v(w))}function v(w){return w===62?(e.exit("chunkString"),e.exit(f),y(w)):w===null||w===60||Ae(w)?r(w):(e.consume(w),w===92?b:v)}function b(w){return w===60||w===62||w===92?(e.consume(w),v):v(w)}function E(w){return!x&&(w===null||w===41||ut(w))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(a),n(w)):x<d&&w===40?(e.consume(w),x++,E):w===41?(e.consume(w),x--,E):w===null||w===32||w===40||No(w)?r(w):(e.consume(w),w===92?S:E)}function S(w){return w===40||w===41||w===92?(e.consume(w),E):E(w)}}function Cx(e,n,r,a,s,u){const c=this;let f=0,p;return d;function d(v){return e.enter(a),e.enter(s),e.consume(v),e.exit(s),e.enter(u),x}function x(v){return f>999||v===null||v===91||v===93&&!p||v===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(v):v===93?(e.exit(u),e.enter(s),e.consume(v),e.exit(s),e.exit(a),n):Ae(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),x):(e.enter("chunkString",{contentType:"string"}),m(v))}function m(v){return v===null||v===91||v===93||Ae(v)||f++>999?(e.exit("chunkString"),x(v)):(e.consume(v),p||(p=!Ue(v)),v===92?y:m)}function y(v){return v===91||v===92||v===93?(e.consume(v),f++,m):m(v)}}function Sx(e,n,r,a,s,u){let c;return f;function f(y){return y===34||y===39||y===40?(e.enter(a),e.enter(s),e.consume(y),e.exit(s),c=y===40?41:y,p):r(y)}function p(y){return y===c?(e.enter(s),e.consume(y),e.exit(s),e.exit(a),n):(e.enter(u),d(y))}function d(y){return y===c?(e.exit(u),p(c)):y===null?r(y):Ae(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),Ge(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),x(y))}function x(y){return y===c||y===null||Ae(y)?(e.exit("chunkString"),d(y)):(e.consume(y),y===92?m:x)}function m(y){return y===c||y===92?(e.consume(y),x):x(y)}}function ms(e,n){let r;return a;function a(s){return Ae(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r=!0,a):Ue(s)?Ge(e,a,r?"linePrefix":"lineSuffix")(s):n(s)}}const B8={name:"definition",tokenize:R8},T8={partial:!0,tokenize:O8};function R8(e,n,r){const a=this;let s;return u;function u(v){return e.enter("definition"),c(v)}function c(v){return Cx.call(a,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function f(v){return s=hr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),p):r(v)}function p(v){return ut(v)?ms(e,d)(v):d(v)}function d(v){return Ex(e,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function x(v){return e.attempt(T8,m,m)(v)}function m(v){return Ue(v)?Ge(e,y,"whitespace")(v):y(v)}function y(v){return v===null||Ae(v)?(e.exit("definition"),a.parser.defined.push(s),n(v)):r(v)}}function O8(e,n,r){return a;function a(f){return ut(f)?ms(e,s)(f):r(f)}function s(f){return Sx(e,u,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function u(f){return Ue(f)?Ge(e,c,"whitespace")(f):c(f)}function c(f){return f===null||Ae(f)?n(f):r(f)}}const z8={name:"hardBreakEscape",tokenize:N8};function N8(e,n,r){return a;function a(u){return e.enter("hardBreakEscape"),e.consume(u),s}function s(u){return Ae(u)?(e.exit("hardBreakEscape"),n(u)):r(u)}}const F8={name:"headingAtx",resolve:M8,tokenize:L8};function M8(e,n){let r=e.length-2,a=3,s,u;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(s={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},u={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},Ln(e,a,r-a+1,[["enter",s,n],["enter",u,n],["exit",u,n],["exit",s,n]])),e}function L8(e,n,r){let a=0;return s;function s(x){return e.enter("atxHeading"),u(x)}function u(x){return e.enter("atxHeadingSequence"),c(x)}function c(x){return x===35&&a++<6?(e.consume(x),c):x===null||ut(x)?(e.exit("atxHeadingSequence"),f(x)):r(x)}function f(x){return x===35?(e.enter("atxHeadingSequence"),p(x)):x===null||Ae(x)?(e.exit("atxHeading"),n(x)):Ue(x)?Ge(e,f,"whitespace")(x):(e.enter("atxHeadingText"),d(x))}function p(x){return x===35?(e.consume(x),p):(e.exit("atxHeadingSequence"),f(x))}function d(x){return x===null||x===35||ut(x)?(e.exit("atxHeadingText"),f(x)):(e.consume(x),d)}}const U8=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],wx=["pre","script","style","textarea"],j8={concrete:!0,name:"htmlFlow",resolveTo:I8,tokenize:P8},H8={partial:!0,tokenize:Y8},q8={partial:!0,tokenize:V8};function I8(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function P8(e,n,r){const a=this;let s,u,c,f,p;return d;function d(_){return x(_)}function x(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),m}function m(_){return _===33?(e.consume(_),y):_===47?(e.consume(_),u=!0,E):_===63?(e.consume(_),s=3,a.interrupt?n:N):pn(_)?(e.consume(_),c=String.fromCharCode(_),S):r(_)}function y(_){return _===45?(e.consume(_),s=2,v):_===91?(e.consume(_),s=5,f=0,b):pn(_)?(e.consume(_),s=4,a.interrupt?n:N):r(_)}function v(_){return _===45?(e.consume(_),a.interrupt?n:N):r(_)}function b(_){const I="CDATA[";return _===I.charCodeAt(f++)?(e.consume(_),f===I.length?a.interrupt?n:V:b):r(_)}function E(_){return pn(_)?(e.consume(_),c=String.fromCharCode(_),S):r(_)}function S(_){if(_===null||_===47||_===62||ut(_)){const I=_===47,ue=c.toLowerCase();return!I&&!u&&wx.includes(ue)?(s=1,a.interrupt?n(_):V(_)):U8.includes(c.toLowerCase())?(s=6,I?(e.consume(_),w):a.interrupt?n(_):V(_)):(s=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(_):u?k(_):A(_))}return _===45||un(_)?(e.consume(_),c+=String.fromCharCode(_),S):r(_)}function w(_){return _===62?(e.consume(_),a.interrupt?n:V):r(_)}function k(_){return Ue(_)?(e.consume(_),k):T(_)}function A(_){return _===47?(e.consume(_),T):_===58||_===95||pn(_)?(e.consume(_),D):Ue(_)?(e.consume(_),A):T(_)}function D(_){return _===45||_===46||_===58||_===95||un(_)?(e.consume(_),D):F(_)}function F(_){return _===61?(e.consume(_),R):Ue(_)?(e.consume(_),F):A(_)}function R(_){return _===null||_===60||_===61||_===62||_===96?r(_):_===34||_===39?(e.consume(_),p=_,z):Ue(_)?(e.consume(_),R):M(_)}function z(_){return _===p?(e.consume(_),p=null,X):_===null||Ae(_)?r(_):(e.consume(_),z)}function M(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||ut(_)?F(_):(e.consume(_),M)}function X(_){return _===47||_===62||Ue(_)?A(_):r(_)}function T(_){return _===62?(e.consume(_),j):r(_)}function j(_){return _===null||Ae(_)?V(_):Ue(_)?(e.consume(_),j):r(_)}function V(_){return _===45&&s===2?(e.consume(_),L):_===60&&s===1?(e.consume(_),te):_===62&&s===4?(e.consume(_),O):_===63&&s===3?(e.consume(_),N):_===93&&s===5?(e.consume(_),me):Ae(_)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(H8,U,G)(_)):_===null||Ae(_)?(e.exit("htmlFlowData"),G(_)):(e.consume(_),V)}function G(_){return e.check(q8,ie,U)(_)}function ie(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),J}function J(_){return _===null||Ae(_)?G(_):(e.enter("htmlFlowData"),V(_))}function L(_){return _===45?(e.consume(_),N):V(_)}function te(_){return _===47?(e.consume(_),c="",W):V(_)}function W(_){if(_===62){const I=c.toLowerCase();return wx.includes(I)?(e.consume(_),O):V(_)}return pn(_)&&c.length<8?(e.consume(_),c+=String.fromCharCode(_),W):V(_)}function me(_){return _===93?(e.consume(_),N):V(_)}function N(_){return _===62?(e.consume(_),O):_===45&&s===2?(e.consume(_),N):V(_)}function O(_){return _===null||Ae(_)?(e.exit("htmlFlowData"),U(_)):(e.consume(_),O)}function U(_){return e.exit("htmlFlow"),n(_)}}function V8(e,n,r){const a=this;return s;function s(c){return Ae(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):r(c)}function u(c){return a.parser.lazy[a.now().line]?r(c):n(c)}}function Y8(e,n,r){return a;function a(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(hs,n,r)}}const Q8={name:"htmlText",tokenize:X8};function X8(e,n,r){const a=this;let s,u,c;return f;function f(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),p}function p(N){return N===33?(e.consume(N),d):N===47?(e.consume(N),F):N===63?(e.consume(N),A):pn(N)?(e.consume(N),M):r(N)}function d(N){return N===45?(e.consume(N),x):N===91?(e.consume(N),u=0,b):pn(N)?(e.consume(N),k):r(N)}function x(N){return N===45?(e.consume(N),v):r(N)}function m(N){return N===null?r(N):N===45?(e.consume(N),y):Ae(N)?(c=m,te(N)):(e.consume(N),m)}function y(N){return N===45?(e.consume(N),v):m(N)}function v(N){return N===62?L(N):N===45?y(N):m(N)}function b(N){const O="CDATA[";return N===O.charCodeAt(u++)?(e.consume(N),u===O.length?E:b):r(N)}function E(N){return N===null?r(N):N===93?(e.consume(N),S):Ae(N)?(c=E,te(N)):(e.consume(N),E)}function S(N){return N===93?(e.consume(N),w):E(N)}function w(N){return N===62?L(N):N===93?(e.consume(N),w):E(N)}function k(N){return N===null||N===62?L(N):Ae(N)?(c=k,te(N)):(e.consume(N),k)}function A(N){return N===null?r(N):N===63?(e.consume(N),D):Ae(N)?(c=A,te(N)):(e.consume(N),A)}function D(N){return N===62?L(N):A(N)}function F(N){return pn(N)?(e.consume(N),R):r(N)}function R(N){return N===45||un(N)?(e.consume(N),R):z(N)}function z(N){return Ae(N)?(c=z,te(N)):Ue(N)?(e.consume(N),z):L(N)}function M(N){return N===45||un(N)?(e.consume(N),M):N===47||N===62||ut(N)?X(N):r(N)}function X(N){return N===47?(e.consume(N),L):N===58||N===95||pn(N)?(e.consume(N),T):Ae(N)?(c=X,te(N)):Ue(N)?(e.consume(N),X):L(N)}function T(N){return N===45||N===46||N===58||N===95||un(N)?(e.consume(N),T):j(N)}function j(N){return N===61?(e.consume(N),V):Ae(N)?(c=j,te(N)):Ue(N)?(e.consume(N),j):X(N)}function V(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),s=N,G):Ae(N)?(c=V,te(N)):Ue(N)?(e.consume(N),V):(e.consume(N),ie)}function G(N){return N===s?(e.consume(N),s=void 0,J):N===null?r(N):Ae(N)?(c=G,te(N)):(e.consume(N),G)}function ie(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||ut(N)?X(N):(e.consume(N),ie)}function J(N){return N===47||N===62||ut(N)?X(N):r(N)}function L(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),n):r(N)}function te(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),W}function W(N){return Ue(N)?Ge(e,me,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):me(N)}function me(N){return e.enter("htmlTextData"),c(N)}}const h0={name:"labelEnd",resolveAll:Z8,resolveTo:W8,tokenize:J8},G8={tokenize:ew},K8={tokenize:tw},$8={tokenize:nw};function Z8(e){let n=-1;const r=[];for(;++n<e.length;){const a=e[n][1];if(r.push(e[n]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const s=a.type==="labelImage"?4:2;a.type="data",n+=s}}return e.length!==r.length&&Ln(e,0,e.length,r),e}function W8(e,n){let r=e.length,a=0,s,u,c,f;for(;r--;)if(s=e[r][1],u){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[r][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(u=r,s.type!=="labelLink")){a=2;break}}else s.type==="labelEnd"&&(c=r);const p={type:e[u][1].type==="labelLink"?"link":"image",start:{...e[u][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[u][1].start},end:{...e[c][1].end}},x={type:"labelText",start:{...e[u+a+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",p,n],["enter",d,n]],f=Kn(f,e.slice(u+1,u+a+3)),f=Kn(f,[["enter",x,n]]),f=Kn(f,Mo(n.parser.constructs.insideSpan.null,e.slice(u+a+4,c-3),n)),f=Kn(f,[["exit",x,n],e[c-2],e[c-1],["exit",d,n]]),f=Kn(f,e.slice(c+1)),f=Kn(f,[["exit",p,n]]),Ln(e,u,e.length,f),e}function J8(e,n,r){const a=this;let s=a.events.length,u,c;for(;s--;)if((a.events[s][1].type==="labelImage"||a.events[s][1].type==="labelLink")&&!a.events[s][1]._balanced){u=a.events[s][1];break}return f;function f(y){return u?u._inactive?m(y):(c=a.parser.defined.includes(hr(a.sliceSerialize({start:u.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),p):r(y)}function p(y){return y===40?e.attempt(G8,x,c?x:m)(y):y===91?e.attempt(K8,x,c?d:m)(y):c?x(y):m(y)}function d(y){return e.attempt($8,x,m)(y)}function x(y){return n(y)}function m(y){return u._balanced=!0,r(y)}}function ew(e,n,r){return a;function a(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),s}function s(m){return ut(m)?ms(e,u)(m):u(m)}function u(m){return m===41?x(m):Ex(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function c(m){return ut(m)?ms(e,p)(m):x(m)}function f(m){return r(m)}function p(m){return m===34||m===39||m===40?Sx(e,d,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):x(m)}function d(m){return ut(m)?ms(e,x)(m):x(m)}function x(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),n):r(m)}}function tw(e,n,r){const a=this;return s;function s(f){return Cx.call(a,e,u,c,"reference","referenceMarker","referenceString")(f)}function u(f){return a.parser.defined.includes(hr(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function c(f){return r(f)}}function nw(e,n,r){return a;function a(u){return e.enter("reference"),e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),s}function s(u){return u===93?(e.enter("referenceMarker"),e.consume(u),e.exit("referenceMarker"),e.exit("reference"),n):r(u)}}const rw={name:"labelStartImage",resolveAll:h0.resolveAll,tokenize:iw};function iw(e,n,r){const a=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),u}function u(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):r(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(f):n(f)}}const aw={name:"labelStartLink",resolveAll:h0.resolveAll,tokenize:lw};function lw(e,n,r){const a=this;return s;function s(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),u}function u(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):n(c)}}const p0={name:"lineEnding",tokenize:sw};function sw(e,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Ge(e,n,"linePrefix")}}const Lo={name:"thematicBreak",tokenize:ow};function ow(e,n,r){let a=0,s;return u;function u(d){return e.enter("thematicBreak"),c(d)}function c(d){return s=d,f(d)}function f(d){return d===s?(e.enter("thematicBreakSequence"),p(d)):a>=3&&(d===null||Ae(d))?(e.exit("thematicBreak"),n(d)):r(d)}function p(d){return d===s?(e.consume(d),a++,p):(e.exit("thematicBreakSequence"),Ue(d)?Ge(e,f,"whitespace")(d):f(d))}}const Cn={continuation:{tokenize:dw},exit:pw,name:"list",tokenize:fw},uw={partial:!0,tokenize:mw},cw={partial:!0,tokenize:hw};function fw(e,n,r){const a=this,s=a.events[a.events.length-1];let u=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return f;function f(v){const b=a.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!a.containerState.marker||v===a.containerState.marker:c0(v)){if(a.containerState.type||(a.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Lo,r,d)(v):d(v);if(!a.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(v)}return r(v)}function p(v){return c0(v)&&++c<10?(e.consume(v),p):(!a.interrupt||c<2)&&(a.containerState.marker?v===a.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),d(v)):r(v)}function d(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||v,e.check(hs,a.interrupt?r:x,e.attempt(uw,y,m))}function x(v){return a.containerState.initialBlankLine=!0,u++,y(v)}function m(v){return Ue(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),y):r(v)}function y(v){return a.containerState.size=u+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(v)}}function dw(e,n,r){const a=this;return a.containerState._closeFlow=void 0,e.check(hs,s,u);function s(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ge(e,n,"listItemIndent",a.containerState.size+1)(f)}function u(f){return a.containerState.furtherBlankLines||!Ue(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(cw,n,c)(f))}function c(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ge(e,e.attempt(Cn,n,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function hw(e,n,r){const a=this;return Ge(e,s,"listItemIndent",a.containerState.size+1);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?n(u):r(u)}}function pw(e){e.exit(this.containerState.type)}function mw(e,n,r){const a=this;return Ge(e,s,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(u){const c=a.events[a.events.length-1];return!Ue(u)&&c&&c[1].type==="listItemPrefixWhitespace"?n(u):r(u)}}const Ax={name:"setextUnderline",resolveTo:xw,tokenize:gw};function xw(e,n){let r=e.length,a,s,u;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(s=r)}else e[r][1].type==="content"&&e.splice(r,1),!u&&e[r][1].type==="definition"&&(u=r);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",u?(e.splice(s,0,["enter",c,n]),e.splice(u+1,0,["exit",e[a][1],n]),e[a][1].end={...e[u][1].end}):e[a][1]=c,e.push(["exit",c,n]),e}function gw(e,n,r){const a=this;let s;return u;function u(d){let x=a.events.length,m;for(;x--;)if(a.events[x][1].type!=="lineEnding"&&a.events[x][1].type!=="linePrefix"&&a.events[x][1].type!=="content"){m=a.events[x][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||m)?(e.enter("setextHeadingLine"),s=d,c(d)):r(d)}function c(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===s?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),Ue(d)?Ge(e,p,"lineSuffix")(d):p(d))}function p(d){return d===null||Ae(d)?(e.exit("setextHeadingLine"),n(d)):r(d)}}const yw={tokenize:vw};function vw(e){const n=this,r=e.attempt(hs,a,e.attempt(this.parser.constructs.flowInitial,s,Ge(e,e.attempt(this.parser.constructs.flow,s,e.attempt(w8,s)),"linePrefix")));return r;function a(u){if(u===null){e.consume(u);return}return e.enter("lineEndingBlank"),e.consume(u),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function s(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const bw={resolveAll:kx()},Ew=_x("string"),Cw=_x("text");function _x(e){return{resolveAll:kx(e==="text"?Sw:void 0),tokenize:n};function n(r){const a=this,s=this.parser.constructs[e],u=r.attempt(s,c,f);return c;function c(x){return d(x)?u(x):f(x)}function f(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),p}function p(x){return d(x)?(r.exit("data"),u(x)):(r.consume(x),p)}function d(x){if(x===null)return!0;const m=s[x];let y=-1;if(m)for(;++y<m.length;){const v=m[y];if(!v.previous||v.previous.call(a,a.previous))return!0}return!1}}}function kx(e){return n;function n(r,a){let s=-1,u;for(;++s<=r.length;)u===void 0?r[s]&&r[s][1].type==="data"&&(u=s,s++):(!r[s]||r[s][1].type!=="data")&&(s!==u+2&&(r[u][1].end=r[s-1][1].end,r.splice(u+2,s-u-2),s=u+2),u=void 0);return e?e(r,a):r}}function Sw(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],s=n.sliceStream(a);let u=s.length,c=-1,f=0,p;for(;u--;){const d=s[u];if(typeof d=="string"){for(c=d.length;d.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(d===-2)p=!0,f++;else if(d!==-1){u++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const d={type:r===e.length||p||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?c:a.start._bufferIndex+c,_index:a.start._index+u,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...d.start},a.start.offset===a.end.offset?Object.assign(a,d):(e.splice(r,0,["enter",d,n],["exit",d,n]),r+=2)}r++}return e}const ww=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:B8},disable:{null:[]},document:{42:Cn,43:Cn,45:Cn,48:Cn,49:Cn,50:Cn,51:Cn,52:Cn,53:Cn,54:Cn,55:Cn,56:Cn,57:Cn,62:mx},flow:{35:F8,42:Lo,45:[Ax,Lo],60:j8,61:Ax,95:Lo,96:vx,126:vx},flowInitial:{[-2]:d0,[-1]:d0,32:d0},insideSpan:{null:[f0,bw]},string:{38:gx,92:xx},text:{[-5]:p0,[-4]:p0,[-3]:p0,33:rw,38:gx,42:f0,60:[a8,Q8],91:aw,92:[z8,xx],93:h0,95:f0,96:y8}},Symbol.toStringTag,{value:"Module"}));function Aw(e,n,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const s={},u=[];let c=[],f=[];const p={attempt:z(F),check:z(R),consume:k,enter:A,exit:D,interrupt:z(R,{interrupt:!0})},d={code:null,containerState:{},defineSkip:E,events:[],now:b,parser:e,previous:null,sliceSerialize:y,sliceStream:v,write:m};let x=n.tokenize.call(d,p);return n.resolveAll&&u.push(n),d;function m(j){return c=Kn(c,j),S(),c[c.length-1]!==null?[]:(M(n,0),d.events=Mo(u,d.events,d),d.events)}function y(j,V){return kw(v(j),V)}function v(j){return _w(c,j)}function b(){const{_bufferIndex:j,_index:V,line:G,column:ie,offset:J}=a;return{_bufferIndex:j,_index:V,line:G,column:ie,offset:J}}function E(j){s[j.line]=j.column,T()}function S(){let j;for(;a._index<c.length;){const V=c[a._index];if(typeof V=="string")for(j=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===j&&a._bufferIndex<V.length;)w(V.charCodeAt(a._bufferIndex));else w(V)}}function w(j){x=x(j)}function k(j){Ae(j)?(a.line++,a.column=1,a.offset+=j===-3?2:1,T()):j!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),d.previous=j}function A(j,V){const G=V||{};return G.type=j,G.start=b(),d.events.push(["enter",G,d]),f.push(G),G}function D(j){const V=f.pop();return V.end=b(),d.events.push(["exit",V,d]),V}function F(j,V){M(j,V.from)}function R(j,V){V.restore()}function z(j,V){return G;function G(ie,J,L){let te,W,me,N;return Array.isArray(ie)?U(ie):"tokenize"in ie?U([ie]):O(ie);function O(ce){return xe;function xe(de){const Be=de!==null&&ce[de],nt=de!==null&&ce.null,wt=[...Array.isArray(Be)?Be:Be?[Be]:[],...Array.isArray(nt)?nt:nt?[nt]:[]];return U(wt)(de)}}function U(ce){return te=ce,W=0,ce.length===0?L:_(ce[W])}function _(ce){return xe;function xe(de){return N=X(),me=ce,ce.partial||(d.currentConstruct=ce),ce.name&&d.parser.constructs.disable.null.includes(ce.name)?ue():ce.tokenize.call(V?Object.assign(Object.create(d),V):d,p,I,ue)(de)}}function I(ce){return j(me,N),J}function ue(ce){return N.restore(),++W<te.length?_(te[W]):L}}}function M(j,V){j.resolveAll&&!u.includes(j)&&u.push(j),j.resolve&&Ln(d.events,V,d.events.length-V,j.resolve(d.events.slice(V),d)),j.resolveTo&&(d.events=j.resolveTo(d.events,d))}function X(){const j=b(),V=d.previous,G=d.currentConstruct,ie=d.events.length,J=Array.from(f);return{from:ie,restore:L};function L(){a=j,d.previous=V,d.currentConstruct=G,d.events.length=ie,f=J,T()}}function T(){a.line in s&&a.column<2&&(a.column=s[a.line],a.offset+=s[a.line]-1)}}function _w(e,n){const r=n.start._index,a=n.start._bufferIndex,s=n.end._index,u=n.end._bufferIndex;let c;if(r===s)c=[e[r].slice(a,u)];else{if(c=e.slice(r,s),a>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(a):c.shift()}u>0&&c.push(e[s].slice(0,u))}return c}function kw(e,n){let r=-1;const a=[];let s;for(;++r<e.length;){const u=e[r];let c;if(typeof u=="string")c=u;else switch(u){case-5:{c="\r";break}case-4:{c=`
161
+ `;break}case-3:{c=`\r
162
+ `;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&s)continue;c=" ";break}default:c=String.fromCharCode(u)}s=u===-2,a.push(c)}return a.join("")}function Dw(e){const a={constructs:fx([ww,...(e||{}).extensions||[]]),content:s(WS),defined:[],document:s(e8),flow:s(yw),lazy:{},string:s(Ew),text:s(Cw)};return a;function s(u){return c;function c(f){return Aw(a,u,f)}}}function Bw(e){for(;!bx(e););return e}const Dx=/[\0\t\n\r]/g;function Tw(){let e=1,n="",r=!0,a;return s;function s(u,c,f){const p=[];let d,x,m,y,v;for(u=n+(typeof u=="string"?u.toString():new TextDecoder(c||void 0).decode(u)),m=0,n="",r&&(u.charCodeAt(0)===65279&&m++,r=void 0);m<u.length;){if(Dx.lastIndex=m,d=Dx.exec(u),y=d&&d.index!==void 0?d.index:u.length,v=u.charCodeAt(y),!d){n=u.slice(m);break}if(v===10&&m===y&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),m<y&&(p.push(u.slice(m,y)),e+=y-m),v){case 0:{p.push(65533),e++;break}case 9:{for(x=Math.ceil(e/4)*4,p.push(-2);e++<x;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}m=y+1}return f&&(a&&p.push(-5),n&&p.push(n),p.push(null)),p}}const Rw=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ow(e){return e.replace(Rw,zw)}function zw(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const s=r.charCodeAt(1),u=s===120||s===88;return dx(r.slice(u?2:1),u?16:10)}return u0(r)||e}const Bx={}.hasOwnProperty;function Nw(e,n,r){return typeof n!="string"&&(r=n,n=void 0),Fw(r)(Bw(Dw(r).document().write(Tw()(e,n,!0))))}function Fw(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Ft),autolinkProtocol:X,autolinkEmail:X,atxHeading:u(Un),blockQuote:u(nt),characterEscape:X,characterReference:X,codeFenced:u(wt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:u(wt,c),codeText:u(bt,c),codeTextData:X,data:X,codeFlowValue:X,definition:u(Kt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:u(ct),hardBreakEscape:u(gn),hardBreakTrailing:u(gn),htmlFlow:u(yn,c),htmlFlowData:X,htmlText:u(yn,c),htmlTextData:X,image:u(jn),label:c,link:u(Ft),listItem:u(Pt),listItemValue:y,listOrdered:u(Dn,m),listUnordered:u(Dn),paragraph:u(tt),reference:_,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:u(Un),strong:u(Vt),thematicBreak:u(Oi)},exit:{atxHeading:p(),atxHeadingSequence:F,autolink:p(),autolinkEmail:Be,autolinkProtocol:de,blockQuote:p(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:ce,characterReference:xe,codeFenced:p(S),codeFencedFence:E,codeFencedFenceInfo:v,codeFencedFenceMeta:b,codeFlowValue:T,codeIndented:p(w),codeText:p(J),codeTextData:T,data:T,definition:p(),definitionDestinationString:D,definitionLabelString:k,definitionTitleString:A,emphasis:p(),hardBreakEscape:p(V),hardBreakTrailing:p(V),htmlFlow:p(G),htmlFlowData:T,htmlText:p(ie),htmlTextData:T,image:p(te),label:me,labelText:W,lineEnding:j,link:p(L),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:I,resourceDestinationString:N,resourceTitleString:O,resource:U,setextHeading:p(M),setextHeadingLineSequence:z,setextHeadingText:R,strong:p(),thematicBreak:p()}};Tx(n,(e||{}).mdastExtensions||[]);const r={};return a;function a(ae){let he={type:"root",children:[]};const we={stack:[he],tokenStack:[],config:n,enter:f,exit:d,buffer:c,resume:x,data:r},Re=[];let Fe=-1;for(;++Fe<ae.length;)if(ae[Fe][1].type==="listOrdered"||ae[Fe][1].type==="listUnordered")if(ae[Fe][0]==="enter")Re.push(Fe);else{const Et=Re.pop();Fe=s(ae,Et,Fe)}for(Fe=-1;++Fe<ae.length;){const Et=n[ae[Fe][0]];Bx.call(Et,ae[Fe][1].type)&&Et[ae[Fe][1].type].call(Object.assign({sliceSerialize:ae[Fe][2].sliceSerialize},we),ae[Fe][1])}if(we.tokenStack.length>0){const Et=we.tokenStack[we.tokenStack.length-1];(Et[1]||Rx).call(we,void 0,Et[0])}for(he.position={start:gi(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:gi(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},Fe=-1;++Fe<n.transforms.length;)he=n.transforms[Fe](he)||he;return he}function s(ae,he,we){let Re=he-1,Fe=-1,Et=!1,_t,Yt,gt,Mt;for(;++Re<=we;){const Ke=ae[Re];switch(Ke[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ke[0]==="enter"?Fe++:Fe--,Mt=void 0;break}case"lineEndingBlank":{Ke[0]==="enter"&&(_t&&!Mt&&!Fe&&!gt&&(gt=Re),Mt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Mt=void 0}if(!Fe&&Ke[0]==="enter"&&Ke[1].type==="listItemPrefix"||Fe===-1&&Ke[0]==="exit"&&(Ke[1].type==="listUnordered"||Ke[1].type==="listOrdered")){if(_t){let Jn=Re;for(Yt=void 0;Jn--;){const $t=ae[Jn];if($t[1].type==="lineEnding"||$t[1].type==="lineEndingBlank"){if($t[0]==="exit")continue;Yt&&(ae[Yt][1].type="lineEndingBlank",Et=!0),$t[1].type="lineEnding",Yt=Jn}else if(!($t[1].type==="linePrefix"||$t[1].type==="blockQuotePrefix"||$t[1].type==="blockQuotePrefixWhitespace"||$t[1].type==="blockQuoteMarker"||$t[1].type==="listItemIndent"))break}gt&&(!Yt||gt<Yt)&&(_t._spread=!0),_t.end=Object.assign({},Yt?ae[Yt][1].start:Ke[1].end),ae.splice(Yt||Re,0,["exit",_t,Ke[2]]),Re++,we++}if(Ke[1].type==="listItemPrefix"){const Jn={type:"listItem",_spread:!1,start:Object.assign({},Ke[1].start),end:void 0};_t=Jn,ae.splice(Re,0,["enter",Jn,Ke[2]]),Re++,we++,gt=void 0,Mt=!0}}}return ae[he][1]._spread=Et,we}function u(ae,he){return we;function we(Re){f.call(this,ae(Re),Re),he&&he.call(this,Re)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(ae,he,we){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([he,we||void 0]),ae.position={start:gi(he.start),end:void 0}}function p(ae){return he;function he(we){ae&&ae.call(this,we),d.call(this,we)}}function d(ae,he){const we=this.stack.pop(),Re=this.tokenStack.pop();if(Re)Re[0].type!==ae.type&&(he?he.call(this,ae,Re[0]):(Re[1]||Rx).call(this,ae,Re[0]));else throw new Error("Cannot close `"+ae.type+"` ("+fs({start:ae.start,end:ae.end})+"): it’s not open");we.position.end=gi(ae.end)}function x(){return o0(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function y(ae){if(this.data.expectingFirstListItemValue){const he=this.stack[this.stack.length-2];he.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function v(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.lang=ae}function b(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.meta=ae}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.value=ae.replace(/(\r?\n|\r)$/g,"")}function k(ae){const he=this.resume(),we=this.stack[this.stack.length-1];we.label=he,we.identifier=hr(this.sliceSerialize(ae)).toLowerCase()}function A(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.title=ae}function D(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.url=ae}function F(ae){const he=this.stack[this.stack.length-1];if(!he.depth){const we=this.sliceSerialize(ae).length;he.depth=we}}function R(){this.data.setextHeadingSlurpLineEnding=!0}function z(ae){const he=this.stack[this.stack.length-1];he.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function X(ae){const we=this.stack[this.stack.length-1].children;let Re=we[we.length-1];(!Re||Re.type!=="text")&&(Re=At(),Re.position={start:gi(ae.start),end:void 0},we.push(Re)),this.stack.push(Re)}function T(ae){const he=this.stack.pop();he.value+=this.sliceSerialize(ae),he.position.end=gi(ae.end)}function j(ae){const he=this.stack[this.stack.length-1];if(this.data.atHardBreak){const we=he.children[he.children.length-1];we.position.end=gi(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(he.type)&&(X.call(this,ae),T.call(this,ae))}function V(){this.data.atHardBreak=!0}function G(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.value=ae}function ie(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.value=ae}function J(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.value=ae}function L(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=he,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function te(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=he,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function W(ae){const he=this.sliceSerialize(ae),we=this.stack[this.stack.length-2];we.label=Ow(he),we.identifier=hr(he).toLowerCase()}function me(){const ae=this.stack[this.stack.length-1],he=this.resume(),we=this.stack[this.stack.length-1];if(this.data.inReference=!0,we.type==="link"){const Re=ae.children;we.children=Re}else we.alt=he}function N(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.url=ae}function O(){const ae=this.resume(),he=this.stack[this.stack.length-1];he.title=ae}function U(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function I(ae){const he=this.resume(),we=this.stack[this.stack.length-1];we.label=he,we.identifier=hr(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function ue(ae){this.data.characterReferenceType=ae.type}function ce(ae){const he=this.sliceSerialize(ae),we=this.data.characterReferenceType;let Re;we?(Re=dx(he,we==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Re=u0(he);const Fe=this.stack[this.stack.length-1];Fe.value+=Re}function xe(ae){const he=this.stack.pop();he.position.end=gi(ae.end)}function de(ae){T.call(this,ae);const he=this.stack[this.stack.length-1];he.url=this.sliceSerialize(ae)}function Be(ae){T.call(this,ae);const he=this.stack[this.stack.length-1];he.url="mailto:"+this.sliceSerialize(ae)}function nt(){return{type:"blockquote",children:[]}}function wt(){return{type:"code",lang:null,meta:null,value:""}}function bt(){return{type:"inlineCode",value:""}}function Kt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ct(){return{type:"emphasis",children:[]}}function Un(){return{type:"heading",depth:0,children:[]}}function gn(){return{type:"break"}}function yn(){return{type:"html",value:""}}function jn(){return{type:"image",title:null,url:"",alt:null}}function Ft(){return{type:"link",title:null,url:"",children:[]}}function Dn(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function Pt(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function tt(){return{type:"paragraph",children:[]}}function Vt(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function Oi(){return{type:"thematicBreak"}}}function gi(e){return{line:e.line,column:e.column,offset:e.offset}}function Tx(e,n){let r=-1;for(;++r<n.length;){const a=n[r];Array.isArray(a)?Tx(e,a):Mw(e,a)}}function Mw(e,n){let r;for(r in n)if(Bx.call(n,r))switch(r){case"canContainEols":{const a=n[r];a&&e[r].push(...a);break}case"transforms":{const a=n[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=n[r];a&&Object.assign(e[r],a);break}}}function Rx(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+fs({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+fs({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+fs({start:n.start,end:n.end})+") is still open")}function Lw(e){const n=this;n.parser=r;function r(a){return Nw(a,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Uw(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function jw(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
163
+ `}]}function Hw(e,n){const r=n.value?n.value+`
164
+ `:"",a={},s=n.lang?n.lang.split(/\s+/):[];s.length>0&&(a.className=["language-"+s[0]]);let u={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return n.meta&&(u.data={meta:n.meta}),e.patch(n,u),u=e.applyData(n,u),u={type:"element",tagName:"pre",properties:{},children:[u]},e.patch(n,u),u}function qw(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Iw(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Pw(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(n.identifier).toUpperCase(),s=Ka(a.toLowerCase()),u=e.footnoteOrder.indexOf(a);let c,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=u+1,f+=1,e.footnoteCounts.set(a,f);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,p);const d={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(n,d),e.applyData(n,d)}function Vw(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Yw(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function Ox(e,n){const r=n.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+a}];const s=e.all(n),u=s[0];u&&u.type==="text"?u.value="["+u.value:s.unshift({type:"text",value:"["});const c=s[s.length-1];return c&&c.type==="text"?c.value+=a:s.push({type:"text",value:a}),s}function Qw(e,n){const r=String(n.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Ox(e,n);const s={src:Ka(a.url||""),alt:n.alt};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"img",properties:s,children:[]};return e.patch(n,u),e.applyData(n,u)}function Xw(e,n){const r={src:Ka(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function Gw(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,a),e.applyData(n,a)}function Kw(e,n){const r=String(n.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Ox(e,n);const s={href:Ka(a.url||"")};a.title!==null&&a.title!==void 0&&(s.title=a.title);const u={type:"element",tagName:"a",properties:s,children:e.all(n)};return e.patch(n,u),e.applyData(n,u)}function $w(e,n){const r={href:Ka(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Zw(e,n,r){const a=e.all(n),s=r?Ww(r):zx(n),u={},c=[];if(typeof n.checked=="boolean"){const x=a[0];let m;x&&x.type==="element"&&x.tagName==="p"?m=x:(m={type:"element",tagName:"p",properties:{},children:[]},a.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),u.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const x=a[f];(s||f!==0||x.type!=="element"||x.tagName!=="p")&&c.push({type:"text",value:`
165
+ `}),x.type==="element"&&x.tagName==="p"&&!s?c.push(...x.children):c.push(x)}const p=a[a.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&c.push({type:"text",value:`
166
+ `});const d={type:"element",tagName:"li",properties:u,children:c};return e.patch(n,d),e.applyData(n,d)}function Ww(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let a=-1;for(;!n&&++a<r.length;)n=zx(r[a])}return n}function zx(e){const n=e.spread;return n??e.children.length>1}function Jw(e,n){const r={},a=e.all(n);let s=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++s<a.length;){const c=a[s];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const u={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(n,u),e.applyData(n,u)}function eA(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function tA(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function nA(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function rA(e,n){const r=e.all(n),a=r.shift(),s=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(n.children[0],c),s.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=n0(n.children[1]),p=Jm(n.children[n.children.length-1]);f&&p&&(c.position={start:f,end:p}),s.push(c)}const u={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(n,u),e.applyData(n,u)}function iA(e,n,r){const a=r?r.children:void 0,u=(a?a.indexOf(n):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,f=c?c.length:n.children.length;let p=-1;const d=[];for(;++p<f;){const m=n.children[p],y={},v=c?c[p]:void 0;v&&(y.align=v);let b={type:"element",tagName:u,properties:y,children:[]};m&&(b.children=e.all(m),e.patch(m,b),b=e.applyData(m,b)),d.push(b)}const x={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(n,x),e.applyData(n,x)}function aA(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const Nx=9,Fx=32;function lA(e){const n=String(e),r=/\r?\n|\r/g;let a=r.exec(n),s=0;const u=[];for(;a;)u.push(Mx(n.slice(s,a.index),s>0,!0),a[0]),s=a.index+a[0].length,a=r.exec(n);return u.push(Mx(n.slice(s),s>0,!1)),u.join("")}function Mx(e,n,r){let a=0,s=e.length;if(n){let u=e.codePointAt(a);for(;u===Nx||u===Fx;)a++,u=e.codePointAt(a)}if(r){let u=e.codePointAt(s-1);for(;u===Nx||u===Fx;)s--,u=e.codePointAt(s-1)}return s>a?e.slice(a,s):""}function sA(e,n){const r={type:"text",value:lA(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function oA(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const uA={blockquote:Uw,break:jw,code:Hw,delete:qw,emphasis:Iw,footnoteReference:Pw,heading:Vw,html:Yw,imageReference:Qw,image:Xw,inlineCode:Gw,linkReference:Kw,link:$w,listItem:Zw,list:Jw,paragraph:eA,root:tA,strong:nA,table:rA,tableCell:aA,tableRow:iA,text:sA,thematicBreak:oA,toml:Uo,yaml:Uo,definition:Uo,footnoteDefinition:Uo};function Uo(){}const Lx=-1,jo=0,xs=1,Ho=2,m0=3,x0=4,g0=5,y0=6,Ux=7,jx=8,Hx=typeof self=="object"?self:globalThis,cA=(e,n)=>{const r=(s,u)=>(e.set(u,s),s),a=s=>{if(e.has(s))return e.get(s);const[u,c]=n[s];switch(u){case jo:case Lx:return r(c,s);case xs:{const f=r([],s);for(const p of c)f.push(a(p));return f}case Ho:{const f=r({},s);for(const[p,d]of c)f[a(p)]=a(d);return f}case m0:return r(new Date(c),s);case x0:{const{source:f,flags:p}=c;return r(new RegExp(f,p),s)}case g0:{const f=r(new Map,s);for(const[p,d]of c)f.set(a(p),a(d));return f}case y0:{const f=r(new Set,s);for(const p of c)f.add(a(p));return f}case Ux:{const{name:f,message:p}=c;return r(new Hx[f](p),s)}case jx:return r(BigInt(c),s);case"BigInt":return r(Object(BigInt(c)),s);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return r(new DataView(f),c)}}return r(new Hx[u](c),s)};return a},qx=e=>cA(new Map,e)(0),Za="",{toString:fA}={},{keys:dA}=Object,gs=e=>{const n=typeof e;if(n!=="object"||!e)return[jo,n];const r=fA.call(e).slice(8,-1);switch(r){case"Array":return[xs,Za];case"Object":return[Ho,Za];case"Date":return[m0,Za];case"RegExp":return[x0,Za];case"Map":return[g0,Za];case"Set":return[y0,Za];case"DataView":return[xs,r]}return r.includes("Array")?[xs,r]:r.includes("Error")?[Ux,r]:[Ho,r]},qo=([e,n])=>e===jo&&(n==="function"||n==="symbol"),hA=(e,n,r,a)=>{const s=(c,f)=>{const p=a.push(c)-1;return r.set(f,p),p},u=c=>{if(r.has(c))return r.get(c);let[f,p]=gs(c);switch(f){case jo:{let x=c;switch(p){case"bigint":f=jx,x=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);x=null;break;case"undefined":return s([Lx],c)}return s([f,x],c)}case xs:{if(p){let y=c;return p==="DataView"?y=new Uint8Array(c.buffer):p==="ArrayBuffer"&&(y=new Uint8Array(c)),s([p,[...y]],c)}const x=[],m=s([f,x],c);for(const y of c)x.push(u(y));return m}case Ho:{if(p)switch(p){case"BigInt":return s([p,c.toString()],c);case"Boolean":case"Number":case"String":return s([p,c.valueOf()],c)}if(n&&"toJSON"in c)return u(c.toJSON());const x=[],m=s([f,x],c);for(const y of dA(c))(e||!qo(gs(c[y])))&&x.push([u(y),u(c[y])]);return m}case m0:return s([f,c.toISOString()],c);case x0:{const{source:x,flags:m}=c;return s([f,{source:x,flags:m}],c)}case g0:{const x=[],m=s([f,x],c);for(const[y,v]of c)(e||!(qo(gs(y))||qo(gs(v))))&&x.push([u(y),u(v)]);return m}case y0:{const x=[],m=s([f,x],c);for(const y of c)(e||!qo(gs(y)))&&x.push(u(y));return m}}const{message:d}=c;return s([f,{name:p,message:d}],c)};return u},Ix=(e,{json:n,lossy:r}={})=>{const a=[];return hA(!(n||r),!!n,new Map,a)(e),a},Io=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?qx(Ix(e,n)):structuredClone(e):(e,n)=>qx(Ix(e,n));function pA(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function mA(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function xA(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||pA,a=e.options.footnoteBackLabel||mA,s=e.options.footnoteLabel||"Footnotes",u=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let p=-1;for(;++p<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[p]);if(!d)continue;const x=e.all(d),m=String(d.identifier).toUpperCase(),y=Ka(m.toLowerCase());let v=0;const b=[],E=e.footnoteCounts.get(m);for(;E!==void 0&&++v<=E;){b.length>0&&b.push({type:"text",value:" "});let k=typeof r=="string"?r:r(p,v);typeof k=="string"&&(k={type:"text",value:k}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+y+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,v),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const S=x[x.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const k=S.children[S.children.length-1];k&&k.type==="text"?k.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...b)}else x.push(...b);const w={type:"element",tagName:"li",properties:{id:n+"fn-"+y},children:e.wrap(x,!0)};e.patch(d,w),f.push(w)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:u,properties:{...Io(c),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
167
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
168
+ `}]}}const Po=(function(e){if(e==null)return bA;if(typeof e=="function")return Vo(e);if(typeof e=="object")return Array.isArray(e)?gA(e):yA(e);if(typeof e=="string")return vA(e);throw new Error("Expected function, string, or object as test")});function gA(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=Po(e[r]);return Vo(a);function a(...s){let u=-1;for(;++u<n.length;)if(n[u].apply(this,s))return!0;return!1}}function yA(e){const n=e;return Vo(r);function r(a){const s=a;let u;for(u in e)if(s[u]!==n[u])return!1;return!0}}function vA(e){return Vo(n);function n(r){return r&&r.type===e}}function Vo(e){return n;function n(r,a,s){return!!(EA(r)&&e.call(this,r,typeof a=="number"?a:void 0,s||void 0))}}function bA(){return!0}function EA(e){return e!==null&&typeof e=="object"&&"type"in e}function JO(e){return e}const Px=[],CA=!0,v0=!1,SA="skip";function Vx(e,n,r,a){let s;typeof n=="function"&&typeof r!="function"?(a=r,r=n):s=n;const u=Po(s),c=a?-1:1;f(e,void 0,[])();function f(p,d,x){const m=p&&typeof p=="object"?p:{};if(typeof m.type=="string"){const v=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return y;function y(){let v=Px,b,E,S;if((!n||u(p,d,x[x.length-1]||void 0))&&(v=wA(r(p,x)),v[0]===v0))return v;if("children"in p&&p.children){const w=p;if(w.children&&v[0]!==SA)for(E=(a?w.children.length:-1)+c,S=x.concat(w);E>-1&&E<w.children.length;){const k=w.children[E];if(b=f(k,E,S)(),b[0]===v0)return b;E=typeof b[1]=="number"?b[1]:E+c}}return v}}}function wA(e){return Array.isArray(e)?e:typeof e=="number"?[CA,e]:e==null?Px:[e]}function b0(e,n,r,a){let s,u,c;typeof n=="function"&&typeof r!="function"?(u=void 0,c=n,s=r):(u=n,c=r,s=a),Vx(e,u,f,s);function f(p,d){const x=d[d.length-1],m=x?x.children.indexOf(p):void 0;return c(p,m,x)}}const E0={}.hasOwnProperty,AA={};function _A(e,n){const r=n||AA,a=new Map,s=new Map,u=new Map,c={...uA,...r.handlers},f={all:d,applyData:DA,definitionById:a,footnoteById:s,footnoteCounts:u,footnoteOrder:[],handlers:c,one:p,options:r,patch:kA,wrap:TA};return b0(e,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const m=x.type==="definition"?a:s,y=String(x.identifier).toUpperCase();m.has(y)||m.set(y,x)}}),f;function p(x,m){const y=x.type,v=f.handlers[y];if(E0.call(f.handlers,y)&&v)return v(f,x,m);if(f.options.passThrough&&f.options.passThrough.includes(y)){if("children"in x){const{children:E,...S}=x,w=Io(S);return w.children=f.all(x),w}return Io(x)}return(f.options.unknownHandler||BA)(f,x,m)}function d(x){const m=[];if("children"in x){const y=x.children;let v=-1;for(;++v<y.length;){const b=f.one(y[v],x);if(b){if(v&&y[v-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Yx(b.value)),!Array.isArray(b)&&b.type==="element")){const E=b.children[0];E&&E.type==="text"&&(E.value=Yx(E.value))}Array.isArray(b)?m.push(...b):m.push(b)}}}return m}}function kA(e,n){e.position&&(n.position=wS(e))}function DA(e,n){let r=n;if(e&&e.data){const a=e.data.hName,s=e.data.hChildren,u=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&u&&Object.assign(r.properties,Io(u)),"children"in r&&r.children&&s!==null&&s!==void 0&&(r.children=s)}return r}function BA(e,n){const r=n.data||{},a="value"in n&&!(E0.call(r,"hProperties")||E0.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function TA(e,n){const r=[];let a=-1;for(n&&r.push({type:"text",value:`
169
+ `});++a<e.length;)a&&r.push({type:"text",value:`
170
+ `}),r.push(e[a]);return n&&e.length>0&&r.push({type:"text",value:`
171
+ `}),r}function Yx(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function Qx(e,n){const r=_A(e,n),a=r.one(e,void 0),s=xA(r),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&u.children.push({type:"text",value:`
172
+ `},s),u}function RA(e,n){return e&&"run"in e?async function(r,a){const s=Qx(r,{file:a,...n});await e.run(s,a)}:function(r,a){return Qx(r,{file:a,...e||n})}}function Xx(e){if(e)throw e}var C0,Gx;function OA(){if(Gx)return C0;Gx=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):n.call(d)==="[object Array]"},u=function(d){if(!d||n.call(d)!=="[object Object]")return!1;var x=e.call(d,"constructor"),m=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!x&&!m)return!1;var y;for(y in d);return typeof y>"u"||e.call(d,y)},c=function(d,x){r&&x.name==="__proto__"?r(d,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):d[x.name]=x.newValue},f=function(d,x){if(x==="__proto__")if(e.call(d,x)){if(a)return a(d,x).value}else return;return d[x]};return C0=function p(){var d,x,m,y,v,b,E=arguments[0],S=1,w=arguments.length,k=!1;for(typeof E=="boolean"&&(k=E,E=arguments[1]||{},S=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});S<w;++S)if(d=arguments[S],d!=null)for(x in d)m=f(E,x),y=f(d,x),E!==y&&(k&&y&&(u(y)||(v=s(y)))?(v?(v=!1,b=m&&s(m)?m:[]):b=m&&u(m)?m:{},c(E,{name:x,newValue:p(k,b,y)})):typeof y<"u"&&c(E,{name:x,newValue:y}));return E},C0}var zA=OA();const S0=Cr(zA);function w0(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function NA(){const e=[],n={run:r,use:a};return n;function r(...s){let u=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...s);function f(p,...d){const x=e[++u];let m=-1;if(p){c(p);return}for(;++m<s.length;)(d[m]===null||d[m]===void 0)&&(d[m]=s[m]);s=d,x?FA(x,f)(...d):c(null,...d)}}function a(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),n}}function FA(e,n){let r;return a;function a(...c){const f=e.length>c.length;let p;f&&c.push(s);try{p=e.apply(this,c)}catch(d){const x=d;if(f&&r)throw x;return s(x)}f||(p&&p.then&&typeof p.then=="function"?p.then(u,s):p instanceof Error?s(p):u(p))}function s(c,...f){r||(r=!0,n(c,...f))}function u(c){s(null,c)}}const Sr={basename:MA,dirname:LA,extname:UA,join:jA,sep:"/"};function MA(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ys(e);let r=0,a=-1,s=e.length,u;if(n===void 0||n.length===0||n.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(u){r=s+1;break}}else a<0&&(u=!0,a=s+1);return a<0?"":e.slice(r,a)}if(n===e)return"";let c=-1,f=n.length-1;for(;s--;)if(e.codePointAt(s)===47){if(u){r=s+1;break}}else c<0&&(u=!0,c=s+1),f>-1&&(e.codePointAt(s)===n.codePointAt(f--)?f<0&&(a=s):(f=-1,a=c));return r===a?a=c:a<0&&(a=e.length),e.slice(r,a)}function LA(e){if(ys(e),e.length===0)return".";let n=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){n=r;break}}else a||(a=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function UA(e){ys(e);let n=e.length,r=-1,a=0,s=-1,u=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){a=n+1;break}continue}r<0&&(c=!0,r=n+1),f===46?s<0?s=n:u!==1&&(u=1):s>-1&&(u=-1)}return s<0||r<0||u===0||u===1&&s===r-1&&s===a+1?"":e.slice(s,r)}function jA(...e){let n=-1,r;for(;++n<e.length;)ys(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":HA(r)}function HA(e){ys(e);const n=e.codePointAt(0)===47;let r=qA(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function qA(e,n){let r="",a=0,s=-1,u=0,c=-1,f,p;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(s===c-1||u===1))if(s!==c-1&&u===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",a=0):(r=r.slice(0,p),a=r.length-1-r.lastIndexOf("/")),s=c,u=0;continue}}else if(r.length>0){r="",a=0,s=c,u=0;continue}}n&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(s+1,c):r=e.slice(s+1,c),a=c-s-1;s=c,u=0}else f===46&&u>-1?u++:u=-1}return r}function ys(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const IA={cwd:PA};function PA(){return"/"}function A0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function VA(e){if(typeof e=="string")e=new URL(e);else if(!A0(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return YA(e)}function YA(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const a=n.codePointAt(r+2);if(a===70||a===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(n)}const _0=["history","path","basename","stem","extname","dirname"];class Kx{constructor(n){let r;n?A0(n)?r={path:n}:typeof n=="string"||QA(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":IA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<_0.length;){const u=_0[a];u in r&&r[u]!==void 0&&r[u]!==null&&(this[u]=u==="history"?[...r[u]]:r[u])}let s;for(s in r)_0.includes(s)||(this[s]=r[s])}get basename(){return typeof this.path=="string"?Sr.basename(this.path):void 0}set basename(n){D0(n,"basename"),k0(n,"basename"),this.path=Sr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Sr.dirname(this.path):void 0}set dirname(n){$x(this.basename,"dirname"),this.path=Sr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Sr.extname(this.path):void 0}set extname(n){if(k0(n,"extname"),$x(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Sr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){A0(n)&&(n=VA(n)),D0(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Sr.basename(this.path,this.extname):void 0}set stem(n){D0(n,"stem"),k0(n,"stem"),this.path=Sr.join(this.dirname||"",n+(this.extname||""))}fail(n,r,a){const s=this.message(n,r,a);throw s.fatal=!0,s}info(n,r,a){const s=this.message(n,r,a);return s.fatal=void 0,s}message(n,r,a){const s=new on(n,r,a);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function k0(e,n){if(e&&e.includes(Sr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Sr.sep+"`")}function D0(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function $x(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function QA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const XA=(function(e){const a=this.constructor.prototype,s=a[e],u=function(){return s.apply(u,arguments)};return Object.setPrototypeOf(u,a),u}),GA={}.hasOwnProperty;class B0 extends XA{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=NA()}copy(){const n=new B0;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];n.use(...a)}return n.data(S0(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(O0("data",this.frozen),this.namespace[n]=r,this):GA.call(this.namespace,n)&&this.namespace[n]||void 0:n?(O0("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const s=r.call(n,...a);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=Yo(n),a=this.parser||this.Parser;return T0("parse",a),a(String(r),r)}process(n,r){const a=this;return this.freeze(),T0("process",this.parser||this.Parser),R0("process",this.compiler||this.Compiler),r?s(void 0,r):new Promise(s);function s(u,c){const f=Yo(n),p=a.parse(f);a.run(p,f,function(x,m,y){if(x||!m||!y)return d(x);const v=m,b=a.stringify(v,y);ZA(b)?y.value=b:y.result=b,d(x,y)});function d(x,m){x||!m?c(x):u?u(m):r(void 0,m)}}}processSync(n){let r=!1,a;return this.freeze(),T0("processSync",this.parser||this.Parser),R0("processSync",this.compiler||this.Compiler),this.process(n,s),Wx("processSync","process",r),a;function s(u,c){r=!0,Xx(u),a=c}}run(n,r,a){Zx(n),this.freeze();const s=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?u(void 0,a):new Promise(u);function u(c,f){const p=Yo(r);s.run(n,p,d);function d(x,m,y){const v=m||n;x?f(x):c?c(v):a(void 0,v,y)}}}runSync(n,r){let a=!1,s;return this.run(n,r,u),Wx("runSync","run",a),s;function u(c,f){Xx(c),s=f,a=!0}}stringify(n,r){this.freeze();const a=Yo(r),s=this.compiler||this.Compiler;return R0("stringify",s),Zx(n),s(n,a)}use(n,...r){const a=this.attachers,s=this.namespace;if(O0("use",this.frozen),n!=null)if(typeof n=="function")p(n,r);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function u(d){if(typeof d=="function")p(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[x,...m]=d;p(x,m)}else c(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function c(d){if(!("plugins"in d)&&!("settings"in d))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");f(d.plugins),d.settings&&(s.settings=S0(!0,s.settings,d.settings))}function f(d){let x=-1;if(d!=null)if(Array.isArray(d))for(;++x<d.length;){const m=d[x];u(m)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function p(d,x){let m=-1,y=-1;for(;++m<a.length;)if(a[m][0]===d){y=m;break}if(y===-1)a.push([d,...x]);else if(x.length>0){let[v,...b]=x;const E=a[y][1];w0(E)&&w0(v)&&(v=S0(!0,E,v)),a[y]=[d,v,...b]}}}}const KA=new B0().freeze();function T0(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function R0(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function O0(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Zx(e){if(!w0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Wx(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Yo(e){return $A(e)?e:new Kx(e)}function $A(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ZA(e){return typeof e=="string"||WA(e)}function WA(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const JA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Jx=[],eg={allowDangerousHtml:!0},e3=/^(https?|ircs?|mailto|xmpp)$/i,t3=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function n3(e){const n=r3(e),r=i3(e);return a3(n.runSync(n.parse(r),r),e)}function r3(e){const n=e.rehypePlugins||Jx,r=e.remarkPlugins||Jx,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...eg}:eg;return KA().use(Lw).use(r).use(RA,a).use(n)}function i3(e){const n=e.children||"",r=new Kx;return typeof n=="string"&&(r.value=n),r}function a3(e,n){const r=n.allowedElements,a=n.allowElement,s=n.components,u=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,p=n.urlTransform||l3;for(const x of t3)Object.hasOwn(n,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+JA+x.id,void 0);return b0(e,d),BS(e,{Fragment:$.Fragment,components:s,ignoreInvalidStyle:!0,jsx:$.jsx,jsxs:$.jsxs,passKeys:!0,passNode:!0});function d(x,m,y){if(x.type==="raw"&&y&&typeof m=="number")return c?y.children.splice(m,1):y.children[m]={type:"text",value:x.value},m;if(x.type==="element"){let v;for(v in s0)if(Object.hasOwn(s0,v)&&Object.hasOwn(x.properties,v)){const b=x.properties[v],E=s0[v];(E===null||E.includes(x.tagName))&&(x.properties[v]=p(String(b||""),v,x))}}if(x.type==="element"){let v=r?!r.includes(x.tagName):u?u.includes(x.tagName):!1;if(!v&&a&&typeof m=="number"&&(v=!a(x,m,y)),v&&y&&typeof m=="number")return f&&x.children?y.children.splice(m,1,...x.children):y.children.splice(m,1),m}}}function l3(e){const n=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),s=e.indexOf("/");return n===-1||s!==-1&&n>s||r!==-1&&n>r||a!==-1&&n>a||e3.test(e.slice(0,n))?e:""}function tg(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let a=0,s=r.indexOf(n);for(;s!==-1;)a++,s=r.indexOf(n,s+n.length);return a}function s3(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function o3(e,n,r){const s=Po((r||{}).ignore||[]),u=u3(n);let c=-1;for(;++c<u.length;)Vx(e,"text",f);function f(d,x){let m=-1,y;for(;++m<x.length;){const v=x[m],b=y?y.children:void 0;if(s(v,b?b.indexOf(v):void 0,y))return;y=v}if(y)return p(d,x)}function p(d,x){const m=x[x.length-1],y=u[c][0],v=u[c][1];let b=0;const S=m.children.indexOf(d);let w=!1,k=[];y.lastIndex=0;let A=y.exec(d.value);for(;A;){const D=A.index,F={index:A.index,input:A.input,stack:[...x,d]};let R=v(...A,F);if(typeof R=="string"&&(R=R.length>0?{type:"text",value:R}:void 0),R===!1?y.lastIndex=D+1:(b!==D&&k.push({type:"text",value:d.value.slice(b,D)}),Array.isArray(R)?k.push(...R):R&&k.push(R),b=D+A[0].length,w=!0),!y.global)break;A=y.exec(d.value)}return w?(b<d.value.length&&k.push({type:"text",value:d.value.slice(b)}),m.children.splice(S,1,...k)):k=[d],S+k.length}}function u3(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<r.length;){const s=r[a];n.push([c3(s[0]),f3(s[1])])}return n}function c3(e){return typeof e=="string"?new RegExp(s3(e),"g"):e}function f3(e){return typeof e=="function"?e:function(){return e}}const z0="phrasing",N0=["autolink","link","image","label"];function d3(){return{transforms:[v3],enter:{literalAutolink:p3,literalAutolinkEmail:F0,literalAutolinkHttp:F0,literalAutolinkWww:F0},exit:{literalAutolink:y3,literalAutolinkEmail:g3,literalAutolinkHttp:m3,literalAutolinkWww:x3}}}function h3(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:z0,notInConstruct:N0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:z0,notInConstruct:N0},{character:":",before:"[ps]",after:"\\/",inConstruct:z0,notInConstruct:N0}]}}function p3(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function F0(e){this.config.enter.autolinkProtocol.call(this,e)}function m3(e){this.config.exit.autolinkProtocol.call(this,e)}function x3(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function g3(e){this.config.exit.autolinkEmail.call(this,e)}function y3(e){this.exit(e)}function v3(e){o3(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,b3],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),E3]],{ignore:["link","linkReference"]})}function b3(e,n,r,a,s){let u="";if(!ng(s)||(/^w/i.test(n)&&(r=n+r,n="",u="http://"),!C3(r)))return!1;const c=S3(r+a);if(!c[0])return!1;const f={type:"link",title:null,url:u+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function E3(e,n,r,a){return!ng(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function C3(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function S3(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],a=r.indexOf(")");const s=tg(e,"(");let u=tg(e,")");for(;a!==-1&&s>u;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),u++;return[e,r]}function ng(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||ua(r)||Fo(r))&&(!n||r!==47)}rg.peek=O3;function w3(){this.buffer()}function A3(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function _3(){this.buffer()}function k3(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function D3(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=hr(this.sliceSerialize(e)).toLowerCase(),r.label=n}function B3(e){this.exit(e)}function T3(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=hr(this.sliceSerialize(e)).toLowerCase(),r.label=n}function R3(e){this.exit(e)}function O3(){return"["}function rg(e,n,r,a){const s=r.createTracker(a);let u=s.move("[^");const c=r.enter("footnoteReference"),f=r.enter("reference");return u+=s.move(r.safe(r.associationId(e),{after:"]",before:u})),f(),c(),u+=s.move("]"),u}function z3(){return{enter:{gfmFootnoteCallString:w3,gfmFootnoteCall:A3,gfmFootnoteDefinitionLabelString:_3,gfmFootnoteDefinition:k3},exit:{gfmFootnoteCallString:D3,gfmFootnoteCall:B3,gfmFootnoteDefinitionLabelString:T3,gfmFootnoteDefinition:R3}}}function N3(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:rg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,s,u,c){const f=u.createTracker(c);let p=f.move("[^");const d=u.enter("footnoteDefinition"),x=u.enter("label");return p+=f.move(u.safe(u.associationId(a),{before:p,after:"]"})),x(),p+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),p+=f.move((n?`
173
+ `:" ")+u.indentLines(u.containerFlow(a,f.current()),n?ig:F3))),d(),p}}function F3(e,n,r){return n===0?e:ig(e,n,r)}function ig(e,n,r){return(r?"":" ")+e}const M3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ag.peek=q3;function L3(){return{canContainEols:["delete"],enter:{strikethrough:j3},exit:{strikethrough:H3}}}function U3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:M3}],handlers:{delete:ag}}}function j3(e){this.enter({type:"delete",children:[]},e)}function H3(e){this.exit(e)}function ag(e,n,r,a){const s=r.createTracker(a),u=r.enter("strikethrough");let c=s.move("~~");return c+=r.containerPhrasing(e,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),u(),c}function q3(){return"~"}function I3(e){return e.length}function P3(e,n){const r=n||{},a=(r.align||[]).concat(),s=r.stringLength||I3,u=[],c=[],f=[],p=[];let d=0,x=-1;for(;++x<e.length;){const E=[],S=[];let w=-1;for(e[x].length>d&&(d=e[x].length);++w<e[x].length;){const k=V3(e[x][w]);if(r.alignDelimiters!==!1){const A=s(k);S[w]=A,(p[w]===void 0||A>p[w])&&(p[w]=A)}E.push(k)}c[x]=E,f[x]=S}let m=-1;if(typeof a=="object"&&"length"in a)for(;++m<d;)u[m]=lg(a[m]);else{const E=lg(a);for(;++m<d;)u[m]=E}m=-1;const y=[],v=[];for(;++m<d;){const E=u[m];let S="",w="";E===99?(S=":",w=":"):E===108?S=":":E===114&&(w=":");let k=r.alignDelimiters===!1?1:Math.max(1,p[m]-S.length-w.length);const A=S+"-".repeat(k)+w;r.alignDelimiters!==!1&&(k=S.length+k+w.length,k>p[m]&&(p[m]=k),v[m]=k),y[m]=A}c.splice(1,0,y),f.splice(1,0,v),x=-1;const b=[];for(;++x<c.length;){const E=c[x],S=f[x];m=-1;const w=[];for(;++m<d;){const k=E[m]||"";let A="",D="";if(r.alignDelimiters!==!1){const F=p[m]-(S[m]||0),R=u[m];R===114?A=" ".repeat(F):R===99?F%2?(A=" ".repeat(F/2+.5),D=" ".repeat(F/2-.5)):(A=" ".repeat(F/2),D=A):D=" ".repeat(F)}r.delimiterStart!==!1&&!m&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&k==="")&&(r.delimiterStart!==!1||m)&&w.push(" "),r.alignDelimiters!==!1&&w.push(A),w.push(k),r.alignDelimiters!==!1&&w.push(D),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||m!==d-1)&&w.push("|")}b.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return b.join(`
174
+ `)}function V3(e){return e==null?"":String(e)}function lg(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Y3(e,n,r,a){const s=r.enter("blockquote"),u=r.createTracker(a);u.move("> "),u.shift(2);const c=r.indentLines(r.containerFlow(e,u.current()),Q3);return s(),c}function Q3(e,n,r){return">"+(r?"":" ")+e}function X3(e,n){return sg(e,n.inConstruct,!0)&&!sg(e,n.notInConstruct,!1)}function sg(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let a=-1;for(;++a<n.length;)if(e.includes(n[a]))return!0;return!1}function og(e,n,r,a){let s=-1;for(;++s<r.unsafe.length;)if(r.unsafe[s].character===`
175
+ `&&X3(r.stack,r.unsafe[s]))return/[ \t]/.test(a.before)?"":" ";return`\\
176
+ `}function G3(e,n){const r=String(e);let a=r.indexOf(n),s=a,u=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===s?++u>c&&(c=u):u=1,s=a+n.length,a=r.indexOf(n,s);return c}function K3(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function $3(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Z3(e,n,r,a){const s=$3(r),u=e.value||"",c=s==="`"?"GraveAccent":"Tilde";if(K3(e,r)){const m=r.enter("codeIndented"),y=r.indentLines(u,W3);return m(),y}const f=r.createTracker(a),p=s.repeat(Math.max(G3(u,s)+1,3)),d=r.enter("codeFenced");let x=f.move(p);if(e.lang){const m=r.enter(`codeFencedLang${c}`);x+=f.move(r.safe(e.lang,{before:x,after:" ",encode:["`"],...f.current()})),m()}if(e.lang&&e.meta){const m=r.enter(`codeFencedMeta${c}`);x+=f.move(" "),x+=f.move(r.safe(e.meta,{before:x,after:`
177
+ `,encode:["`"],...f.current()})),m()}return x+=f.move(`
178
+ `),u&&(x+=f.move(u+`
179
+ `)),x+=f.move(p),d(),x}function W3(e,n,r){return(r?"":" ")+e}function M0(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function J3(e,n,r,a){const s=M0(r),u=s==='"'?"Quote":"Apostrophe",c=r.enter("definition");let f=r.enter("label");const p=r.createTracker(a);let d=p.move("[");return d+=p.move(r.safe(r.associationId(e),{before:d,after:"]",...p.current()})),d+=p.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(r.safe(e.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(f=r.enter("destinationRaw"),d+=p.move(r.safe(e.url,{before:d,after:e.title?" ":`
180
+ `,...p.current()}))),f(),e.title&&(f=r.enter(`title${u}`),d+=p.move(" "+s),d+=p.move(r.safe(e.title,{before:d,after:s,...p.current()})),d+=p.move(s),f()),c(),d}function e6(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function vs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Qo(e,n,r){const a=$a(e),s=$a(n);return a===void 0?s===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ug.peek=t6;function ug(e,n,r,a){const s=e6(r),u=r.enter("emphasis"),c=r.createTracker(a),f=c.move(s);let p=c.move(r.containerPhrasing(e,{after:s,before:f,...c.current()}));const d=p.charCodeAt(0),x=Qo(a.before.charCodeAt(a.before.length-1),d,s);x.inside&&(p=vs(d)+p.slice(1));const m=p.charCodeAt(p.length-1),y=Qo(a.after.charCodeAt(0),m,s);y.inside&&(p=p.slice(0,-1)+vs(m));const v=c.move(s);return u(),r.attentionEncodeSurroundingInfo={after:y.outside,before:x.outside},f+p+v}function t6(e,n,r){return r.options.emphasis||"*"}function n6(e,n){let r=!1;return b0(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,v0}),!!((!e.depth||e.depth<3)&&o0(e)&&(n.options.setext||r))}function r6(e,n,r,a){const s=Math.max(Math.min(6,e.depth||1),1),u=r.createTracker(a);if(n6(e,r)){const x=r.enter("headingSetext"),m=r.enter("phrasing"),y=r.containerPhrasing(e,{...u.current(),before:`
181
+ `,after:`
182
+ `});return m(),x(),y+`
183
+ `+(s===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
184
+ `))+1))}const c="#".repeat(s),f=r.enter("headingAtx"),p=r.enter("phrasing");u.move(c+" ");let d=r.containerPhrasing(e,{before:"# ",after:`
185
+ `,...u.current()});return/^[\t ]/.test(d)&&(d=vs(d.charCodeAt(0))+d.slice(1)),d=d?c+" "+d:c,r.options.closeAtx&&(d+=" "+c),p(),f(),d}cg.peek=i6;function cg(e){return e.value||""}function i6(){return"<"}fg.peek=a6;function fg(e,n,r,a){const s=M0(r),u=s==='"'?"Quote":"Apostrophe",c=r.enter("image");let f=r.enter("label");const p=r.createTracker(a);let d=p.move("![");return d+=p.move(r.safe(e.alt,{before:d,after:"]",...p.current()})),d+=p.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),d+=p.move("<"),d+=p.move(r.safe(e.url,{before:d,after:">",...p.current()})),d+=p.move(">")):(f=r.enter("destinationRaw"),d+=p.move(r.safe(e.url,{before:d,after:e.title?" ":")",...p.current()}))),f(),e.title&&(f=r.enter(`title${u}`),d+=p.move(" "+s),d+=p.move(r.safe(e.title,{before:d,after:s,...p.current()})),d+=p.move(s),f()),d+=p.move(")"),c(),d}function a6(){return"!"}dg.peek=l6;function dg(e,n,r,a){const s=e.referenceType,u=r.enter("imageReference");let c=r.enter("label");const f=r.createTracker(a);let p=f.move("![");const d=r.safe(e.alt,{before:p,after:"]",...f.current()});p+=f.move(d+"]["),c();const x=r.stack;r.stack=[],c=r.enter("reference");const m=r.safe(r.associationId(e),{before:p,after:"]",...f.current()});return c(),r.stack=x,u(),s==="full"||!d||d!==m?p+=f.move(m+"]"):s==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function l6(){return"!"}hg.peek=s6;function hg(e,n,r){let a=e.value||"",s="`",u=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(a);)s+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++u<r.unsafe.length;){const c=r.unsafe[u],f=r.compilePattern(c);let p;if(c.atBreak)for(;p=f.exec(a);){let d=p.index;a.charCodeAt(d)===10&&a.charCodeAt(d-1)===13&&d--,a=a.slice(0,d)+" "+a.slice(p.index+1)}}return s+a+s}function s6(){return"`"}function pg(e,n){const r=o0(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}mg.peek=o6;function mg(e,n,r,a){const s=M0(r),u=s==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let f,p;if(pg(e,r)){const x=r.stack;r.stack=[],f=r.enter("autolink");let m=c.move("<");return m+=c.move(r.containerPhrasing(e,{before:m,after:">",...c.current()})),m+=c.move(">"),f(),r.stack=x,m}f=r.enter("link"),p=r.enter("label");let d=c.move("[");return d+=c.move(r.containerPhrasing(e,{before:d,after:"](",...c.current()})),d+=c.move("]("),p(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(p=r.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(r.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(p=r.enter("destinationRaw"),d+=c.move(r.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),p(),e.title&&(p=r.enter(`title${u}`),d+=c.move(" "+s),d+=c.move(r.safe(e.title,{before:d,after:s,...c.current()})),d+=c.move(s),p()),d+=c.move(")"),f(),d}function o6(e,n,r){return pg(e,r)?"<":"["}xg.peek=u6;function xg(e,n,r,a){const s=e.referenceType,u=r.enter("linkReference");let c=r.enter("label");const f=r.createTracker(a);let p=f.move("[");const d=r.containerPhrasing(e,{before:p,after:"]",...f.current()});p+=f.move(d+"]["),c();const x=r.stack;r.stack=[],c=r.enter("reference");const m=r.safe(r.associationId(e),{before:p,after:"]",...f.current()});return c(),r.stack=x,u(),s==="full"||!d||d!==m?p+=f.move(m+"]"):s==="shortcut"?p=p.slice(0,-1):p+=f.move("]"),p}function u6(){return"["}function L0(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function c6(e){const n=L0(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function f6(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function gg(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function d6(e,n,r,a){const s=r.enter("list"),u=r.bulletCurrent;let c=e.ordered?f6(r):L0(r);const f=e.ordered?c==="."?")":".":c6(r);let p=n&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const x=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&x&&(!x.children||!x.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(p=!0),gg(r)===c&&x){let m=-1;for(;++m<e.children.length;){const y=e.children[m];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(c=f),r.bulletCurrent=c;const d=r.containerFlow(e,a);return r.bulletLastUsed=c,r.bulletCurrent=u,s(),d}function h6(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function p6(e,n,r,a){const s=h6(r);let u=r.bulletCurrent||L0(r);n&&n.type==="list"&&n.ordered&&(u=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+u);let c=u.length+1;(s==="tab"||s==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=r.createTracker(a);f.move(u+" ".repeat(c-u.length)),f.shift(c);const p=r.enter("listItem"),d=r.indentLines(r.containerFlow(e,f.current()),x);return p(),d;function x(m,y,v){return y?(v?"":" ".repeat(c))+m:(v?u:u+" ".repeat(c-u.length))+m}}function m6(e,n,r,a){const s=r.enter("paragraph"),u=r.enter("phrasing"),c=r.containerPhrasing(e,a);return u(),s(),c}const x6=Po(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function g6(e,n,r,a){return(e.children.some(function(c){return x6(c)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}function y6(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}yg.peek=v6;function yg(e,n,r,a){const s=y6(r),u=r.enter("strong"),c=r.createTracker(a),f=c.move(s+s);let p=c.move(r.containerPhrasing(e,{after:s,before:f,...c.current()}));const d=p.charCodeAt(0),x=Qo(a.before.charCodeAt(a.before.length-1),d,s);x.inside&&(p=vs(d)+p.slice(1));const m=p.charCodeAt(p.length-1),y=Qo(a.after.charCodeAt(0),m,s);y.inside&&(p=p.slice(0,-1)+vs(m));const v=c.move(s+s);return u(),r.attentionEncodeSurroundingInfo={after:y.outside,before:x.outside},f+p+v}function v6(e,n,r){return r.options.strong||"*"}function b6(e,n,r,a){return r.safe(e.value,a)}function E6(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function C6(e,n,r){const a=(gg(r)+(r.options.ruleSpaces?" ":"")).repeat(E6(r));return r.options.ruleSpaces?a.slice(0,-1):a}const vg={blockquote:Y3,break:og,code:Z3,definition:J3,emphasis:ug,hardBreak:og,heading:r6,html:cg,image:fg,imageReference:dg,inlineCode:hg,link:mg,linkReference:xg,list:d6,listItem:p6,paragraph:m6,root:g6,strong:yg,text:b6,thematicBreak:C6};function S6(){return{enter:{table:w6,tableData:bg,tableHeader:bg,tableRow:_6},exit:{codeText:k6,table:A6,tableData:U0,tableHeader:U0,tableRow:U0}}}function w6(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function A6(e){this.exit(e),this.data.inTable=void 0}function _6(e){this.enter({type:"tableRow",children:[]},e)}function U0(e){this.exit(e)}function bg(e){this.enter({type:"tableCell",children:[]},e)}function k6(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,D6));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function D6(e,n){return n==="|"?n:e}function B6(e){const n=e||{},r=n.tableCellPadding,a=n.tablePipeAlign,s=n.stringLength,u=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
186
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:c,tableCell:p,tableRow:f}};function c(v,b,E,S){return d(x(v,E,S),v.align)}function f(v,b,E,S){const w=m(v,E,S),k=d([w]);return k.slice(0,k.indexOf(`
187
+ `))}function p(v,b,E,S){const w=E.enter("tableCell"),k=E.enter("phrasing"),A=E.containerPhrasing(v,{...S,before:u,after:u});return k(),w(),A}function d(v,b){return P3(v,{align:b,alignDelimiters:a,padding:r,stringLength:s})}function x(v,b,E){const S=v.children;let w=-1;const k=[],A=b.enter("table");for(;++w<S.length;)k[w]=m(S[w],b,E);return A(),k}function m(v,b,E){const S=v.children;let w=-1;const k=[],A=b.enter("tableRow");for(;++w<S.length;)k[w]=p(S[w],v,b,E);return A(),k}function y(v,b,E){let S=vg.inlineCode(v,b,E);return E.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function T6(){return{exit:{taskListCheckValueChecked:Eg,taskListCheckValueUnchecked:Eg,paragraph:O6}}}function R6(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:z6}}}function Eg(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function O6(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const s=n.children;let u=-1,c;for(;++u<s.length;){const f=s[u];if(f.type==="paragraph"){c=f;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function z6(e,n,r,a){const s=e.children[0],u=typeof e.checked=="boolean"&&s&&s.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=r.createTracker(a);u&&f.move(c);let p=vg.listItem(e,n,r,{...a,...f.current()});return u&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),p;function d(x){return x+c}}function N6(){return[d3(),z3(),L3(),S6(),T6()]}function F6(e){return{extensions:[h3(),N3(e),U3(),B6(e),R6()]}}const M6={tokenize:I6,partial:!0},Cg={tokenize:P6,partial:!0},Sg={tokenize:V6,partial:!0},wg={tokenize:Y6,partial:!0},L6={tokenize:Q6,partial:!0},Ag={name:"wwwAutolink",tokenize:H6,previous:kg},_g={name:"protocolAutolink",tokenize:q6,previous:Dg},Hr={name:"emailAutolink",tokenize:j6,previous:Bg},wr={};function U6(){return{text:wr}}let ca=48;for(;ca<123;)wr[ca]=Hr,ca++,ca===58?ca=65:ca===91&&(ca=97);wr[43]=Hr,wr[45]=Hr,wr[46]=Hr,wr[95]=Hr,wr[72]=[Hr,_g],wr[104]=[Hr,_g],wr[87]=[Hr,Ag],wr[119]=[Hr,Ag];function j6(e,n,r){const a=this;let s,u;return c;function c(m){return!j0(m)||!Bg.call(a,a.previous)||H0(a.events)?r(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(m))}function f(m){return j0(m)?(e.consume(m),f):m===64?(e.consume(m),p):r(m)}function p(m){return m===46?e.check(L6,x,d)(m):m===45||m===95||un(m)?(u=!0,e.consume(m),p):x(m)}function d(m){return e.consume(m),s=!0,p}function x(m){return u&&s&&pn(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(m)):r(m)}}function H6(e,n,r){const a=this;return s;function s(c){return c!==87&&c!==119||!kg.call(a,a.previous)||H0(a.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(M6,e.attempt(Cg,e.attempt(Sg,u),r),r)(c))}function u(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function q6(e,n,r){const a=this;let s="",u=!1;return c;function c(m){return(m===72||m===104)&&Dg.call(a,a.previous)&&!H0(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(m),e.consume(m),f):r(m)}function f(m){if(pn(m)&&s.length<5)return s+=String.fromCodePoint(m),e.consume(m),f;if(m===58){const y=s.toLowerCase();if(y==="http"||y==="https")return e.consume(m),p}return r(m)}function p(m){return m===47?(e.consume(m),u?d:(u=!0,p)):r(m)}function d(m){return m===null||No(m)||ut(m)||ua(m)||Fo(m)?r(m):e.attempt(Cg,e.attempt(Sg,x),r)(m)}function x(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(m)}}function I6(e,n,r){let a=0;return s;function s(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),s):c===46&&a===3?(e.consume(c),u):r(c)}function u(c){return c===null?r(c):n(c)}}function P6(e,n,r){let a,s,u;return c;function c(d){return d===46||d===95?e.check(wg,p,f)(d):d===null||ut(d)||ua(d)||d!==45&&Fo(d)?p(d):(u=!0,e.consume(d),c)}function f(d){return d===95?a=!0:(s=a,a=void 0),e.consume(d),c}function p(d){return s||a||!u?r(d):n(d)}}function V6(e,n){let r=0,a=0;return s;function s(c){return c===40?(r++,e.consume(c),s):c===41&&a<r?u(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(wg,n,u)(c):c===null||ut(c)||ua(c)?n(c):(e.consume(c),s)}function u(c){return c===41&&a++,e.consume(c),s}}function Y6(e,n,r){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),u):f===93?(e.consume(f),s):f===60||f===null||ut(f)||ua(f)?n(f):r(f)}function s(f){return f===null||f===40||f===91||ut(f)||ua(f)?n(f):a(f)}function u(f){return pn(f)?c(f):r(f)}function c(f){return f===59?(e.consume(f),a):pn(f)?(e.consume(f),c):r(f)}}function Q6(e,n,r){return a;function a(u){return e.consume(u),s}function s(u){return un(u)?r(u):n(u)}}function kg(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ut(e)}function Dg(e){return!pn(e)}function Bg(e){return!(e===47||j0(e))}function j0(e){return e===43||e===45||e===46||e===95||un(e)}function H0(e){let n=e.length,r=!1;for(;n--;){const a=e[n][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const X6={tokenize:t5,partial:!0};function G6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:W6,continuation:{tokenize:J6},exit:e5}},text:{91:{name:"gfmFootnoteCall",tokenize:Z6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:K6,resolveTo:$6}}}}function K6(e,n,r){const a=this;let s=a.events.length;const u=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;s--;){const p=a.events[s][1];if(p.type==="labelImage"){c=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return f;function f(p){if(!c||!c._balanced)return r(p);const d=hr(a.sliceSerialize({start:c.end,end:a.now()}));return d.codePointAt(0)!==94||!u.includes(d.slice(1))?r(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),n(p))}}function $6(e,n){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const u={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},u.start),end:Object.assign({},u.end)},f=[e[r+1],e[r+2],["enter",a,n],e[r+3],e[r+4],["enter",s,n],["exit",s,n],["enter",u,n],["enter",c,n],["exit",c,n],["exit",u,n],e[e.length-2],e[e.length-1],["exit",a,n]];return e.splice(r,e.length-r+1,...f),e}function Z6(e,n,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u=0,c;return f;function f(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),p}function p(m){return m!==94?r(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(m){if(u>999||m===93&&!c||m===null||m===91||ut(m))return r(m);if(m===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return s.includes(hr(a.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(m)}return ut(m)||(c=!0),u++,e.consume(m),m===92?x:d}function x(m){return m===91||m===92||m===93?(e.consume(m),u++,d):d(m)}}function W6(e,n,r){const a=this,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u,c=0,f;return p;function p(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",x):r(b)}function x(b){if(c>999||b===93&&!f||b===null||b===91||ut(b))return r(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return u=hr(a.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return ut(b)||(f=!0),c++,e.consume(b),b===92?m:x}function m(b){return b===91||b===92||b===93?(e.consume(b),c++,x):x(b)}function y(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),s.includes(u)||s.push(u),Ge(e,v,"gfmFootnoteDefinitionWhitespace")):r(b)}function v(b){return n(b)}}function J6(e,n,r){return e.check(hs,n,e.attempt(X6,n,r))}function e5(e){e.exit("gfmFootnoteDefinition")}function t5(e,n,r){const a=this;return Ge(e,s,"gfmFootnoteDefinitionIndent",5);function s(u){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(u):r(u)}}function n5(e){let r=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:u,resolveAll:s};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function s(c,f){let p=-1;for(;++p<c.length;)if(c[p][0]==="enter"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._close){let d=p;for(;d--;)if(c[d][0]==="exit"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._open&&c[p][1].end.offset-c[p][1].start.offset===c[d][1].end.offset-c[d][1].start.offset){c[p][1].type="strikethroughSequence",c[d][1].type="strikethroughSequence";const x={type:"strikethrough",start:Object.assign({},c[d][1].start),end:Object.assign({},c[p][1].end)},m={type:"strikethroughText",start:Object.assign({},c[d][1].end),end:Object.assign({},c[p][1].start)},y=[["enter",x,f],["enter",c[d][1],f],["exit",c[d][1],f],["enter",m,f]],v=f.parser.constructs.insideSpan.null;v&&Ln(y,y.length,0,Mo(v,c.slice(d+1,p),f)),Ln(y,y.length,0,[["exit",m,f],["enter",c[p][1],f],["exit",c[p][1],f],["exit",x,f]]),Ln(c,d-1,p-d+3,y),p=d+y.length-2;break}}for(p=-1;++p<c.length;)c[p][1].type==="strikethroughSequenceTemporary"&&(c[p][1].type="data");return c}function u(c,f,p){const d=this.previous,x=this.events;let m=0;return y;function y(b){return d===126&&x[x.length-1][1].type!=="characterEscape"?p(b):(c.enter("strikethroughSequenceTemporary"),v(b))}function v(b){const E=$a(d);if(b===126)return m>1?p(b):(c.consume(b),m++,v);if(m<2&&!r)return p(b);const S=c.exit("strikethroughSequenceTemporary"),w=$a(b);return S._open=!w||w===2&&!!E,S._close=!E||E===2&&!!w,f(b)}}}class r5{constructor(){this.map=[]}add(n,r,a){i5(this,n,r,a)}consume(n){if(this.map.sort(function(u,c){return u[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];a.push(n.slice()),n.length=0;let s=a.pop();for(;s;){for(const u of s)n.push(u);s=a.pop()}this.map.length=0}}function i5(e,n,r,a){let s=0;if(!(r===0&&a.length===0)){for(;s<e.map.length;){if(e.map[s][0]===n){e.map[s][1]+=r,e.map[s][2].push(...a);return}s+=1}e.map.push([n,r,a])}}function a5(e,n){let r=!1;const a=[];for(;n<e.length;){const s=e[n];if(r){if(s[0]==="enter")s[1].type==="tableContent"&&a.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const u=a.length-1;a[u]=a[u]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return a}function l5(){return{flow:{null:{name:"table",tokenize:s5,resolveAll:o5}}}}function s5(e,n,r){const a=this;let s=0,u=0,c;return f;function f(T){let j=a.events.length-1;for(;j>-1;){const ie=a.events[j][1].type;if(ie==="lineEnding"||ie==="linePrefix")j--;else break}const V=j>-1?a.events[j][1].type:null,G=V==="tableHead"||V==="tableRow"?R:p;return G===R&&a.parser.lazy[a.now().line]?r(T):G(T)}function p(T){return e.enter("tableHead"),e.enter("tableRow"),d(T)}function d(T){return T===124||(c=!0,u+=1),x(T)}function x(T){return T===null?r(T):Ae(T)?u>1?(u=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),v):r(T):Ue(T)?Ge(e,x,"whitespace")(T):(u+=1,c&&(c=!1,s+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),c=!0,x):(e.enter("data"),m(T)))}function m(T){return T===null||T===124||ut(T)?(e.exit("data"),x(T)):(e.consume(T),T===92?y:m)}function y(T){return T===92||T===124?(e.consume(T),m):m(T)}function v(T){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(T):(e.enter("tableDelimiterRow"),c=!1,Ue(T)?Ge(e,b,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):b(T))}function b(T){return T===45||T===58?S(T):T===124?(c=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),E):F(T)}function E(T){return Ue(T)?Ge(e,S,"whitespace")(T):S(T)}function S(T){return T===58?(u+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),w):T===45?(u+=1,w(T)):T===null||Ae(T)?D(T):F(T)}function w(T){return T===45?(e.enter("tableDelimiterFiller"),k(T)):F(T)}function k(T){return T===45?(e.consume(T),k):T===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(T))}function A(T){return Ue(T)?Ge(e,D,"whitespace")(T):D(T)}function D(T){return T===124?b(T):T===null||Ae(T)?!c||s!==u?F(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(T)):F(T)}function F(T){return r(T)}function R(T){return e.enter("tableRow"),z(T)}function z(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),z):T===null||Ae(T)?(e.exit("tableRow"),n(T)):Ue(T)?Ge(e,z,"whitespace")(T):(e.enter("data"),M(T))}function M(T){return T===null||T===124||ut(T)?(e.exit("data"),z(T)):(e.consume(T),T===92?X:M)}function X(T){return T===92||T===124?(e.consume(T),M):M(T)}}function o5(e,n){let r=-1,a=!0,s=0,u=[0,0,0,0],c=[0,0,0,0],f=!1,p=0,d,x,m;const y=new r5;for(;++r<e.length;){const v=e[r],b=v[1];v[0]==="enter"?b.type==="tableHead"?(f=!1,p!==0&&(Tg(y,n,p,d,x),x=void 0,p=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},y.add(r,0,[["enter",d,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(a=!0,m=void 0,u=[0,0,0,0],c=[0,r+1,0,0],f&&(f=!1,x={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},y.add(r,0,[["enter",x,n]])),s=b.type==="tableDelimiterRow"?2:x?3:1):s&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(u[1]!==0&&(c[0]=c[1],m=Xo(y,n,u,s,void 0,m),u=[0,0,0,0]),c[2]=r)):b.type==="tableCellDivider"&&(a?a=!1:(u[1]!==0&&(c[0]=c[1],m=Xo(y,n,u,s,void 0,m)),u=c,c=[u[1],r,0,0])):b.type==="tableHead"?(f=!0,p=r):b.type==="tableRow"||b.type==="tableDelimiterRow"?(p=r,u[1]!==0?(c[0]=c[1],m=Xo(y,n,u,s,r,m)):c[1]!==0&&(m=Xo(y,n,c,s,r,m)),s=0):s&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(c[3]=r)}for(p!==0&&Tg(y,n,p,d,x),y.consume(n.events),r=-1;++r<n.events.length;){const v=n.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=a5(n.events,r))}return e}function Xo(e,n,r,a,s,u){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(u.end=Object.assign({},Wa(n.events,r[0])),e.add(r[0],0,[["exit",u,n]]));const p=Wa(n.events,r[1]);if(u={type:c,start:Object.assign({},p),end:Object.assign({},p)},e.add(r[1],0,[["enter",u,n]]),r[2]!==0){const d=Wa(n.events,r[2]),x=Wa(n.events,r[3]),m={type:f,start:Object.assign({},d),end:Object.assign({},x)};if(e.add(r[2],0,[["enter",m,n]]),a!==2){const y=n.events[r[2]],v=n.events[r[3]];if(y[1].end=Object.assign({},v[1].end),y[1].type="chunkText",y[1].contentType="text",r[3]>r[2]+1){const b=r[2]+1,E=r[3]-r[2]-1;e.add(b,E,[])}}e.add(r[3]+1,0,[["exit",m,n]])}return s!==void 0&&(u.end=Object.assign({},Wa(n.events,s)),e.add(s,0,[["exit",u,n]]),u=void 0),u}function Tg(e,n,r,a,s){const u=[],c=Wa(n.events,r);s&&(s.end=Object.assign({},c),u.push(["exit",s,n])),a.end=Object.assign({},c),u.push(["exit",a,n]),e.add(r+1,0,u)}function Wa(e,n){const r=e[n],a=r[0]==="enter"?"start":"end";return r[1][a]}const u5={name:"tasklistCheck",tokenize:f5};function c5(){return{text:{91:u5}}}function f5(e,n,r){const a=this;return s;function s(p){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),u)}function u(p){return ut(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),c):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),c):r(p)}function c(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(p)}function f(p){return Ae(p)?n(p):Ue(p)?e.check({tokenize:d5},n,r)(p):r(p)}}function d5(e,n,r){return Ge(e,a,"whitespace");function a(s){return s===null?r(s):n(s)}}function h5(e){return fx([U6(),G6(),n5(e),l5(),c5()])}const p5={};function m5(e){const n=this,r=e||p5,a=n.data(),s=a.micromarkExtensions||(a.micromarkExtensions=[]),u=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);s.push(h5(r)),u.push(N6()),c.push(F6(r))}function Rg(e){var n,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(n=0;n<s;n++)e[n]&&(r=Rg(e[n]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function Og(){for(var e,n,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(n=Rg(e))&&(a&&(a+=" "),a+=n);return a}const x5=(e,n)=>{const r=new Array(e.length+n.length);for(let a=0;a<e.length;a++)r[a]=e[a];for(let a=0;a<n.length;a++)r[e.length+a]=n[a];return r},g5=(e,n)=>({classGroupId:e,validator:n}),zg=(e=new Map,n=null,r)=>({nextPart:e,validators:n,classGroupId:r}),Go="-",Ng=[],y5="arbitrary..",v5=e=>{const n=E5(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return b5(c);const f=c.split(Go),p=f[0]===""&&f.length>1?1:0;return Fg(f,p,n)},getConflictingClassGroupIds:(c,f)=>{if(f){const p=a[c],d=r[c];return p?d?x5(d,p):p:d||Ng}return r[c]||Ng}}},Fg=(e,n,r)=>{if(e.length-n===0)return r.classGroupId;const s=e[n],u=r.nextPart.get(s);if(u){const d=Fg(e,n+1,u);if(d)return d}const c=r.validators;if(c===null)return;const f=n===0?e.join(Go):e.slice(n).join(Go),p=c.length;for(let d=0;d<p;d++){const x=c[d];if(x.validator(f))return x.classGroupId}},b5=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),r=n.indexOf(":"),a=n.slice(0,r);return a?y5+a:void 0})(),E5=e=>{const{theme:n,classGroups:r}=e;return C5(r,n)},C5=(e,n)=>{const r=zg();for(const a in e){const s=e[a];q0(s,r,a,n)}return r},q0=(e,n,r,a)=>{const s=e.length;for(let u=0;u<s;u++){const c=e[u];S5(c,n,r,a)}},S5=(e,n,r,a)=>{if(typeof e=="string"){w5(e,n,r);return}if(typeof e=="function"){A5(e,n,r,a);return}_5(e,n,r,a)},w5=(e,n,r)=>{const a=e===""?n:Mg(n,e);a.classGroupId=r},A5=(e,n,r,a)=>{if(k5(e)){q0(e(a),n,r,a);return}n.validators===null&&(n.validators=[]),n.validators.push(g5(r,e))},_5=(e,n,r,a)=>{const s=Object.entries(e),u=s.length;for(let c=0;c<u;c++){const[f,p]=s[c];q0(p,Mg(n,f),r,a)}},Mg=(e,n)=>{let r=e;const a=n.split(Go),s=a.length;for(let u=0;u<s;u++){const c=a[u];let f=r.nextPart.get(c);f||(f=zg(),r.nextPart.set(c,f)),r=f}return r},k5=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,D5=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=Object.create(null),a=Object.create(null);const s=(u,c)=>{r[u]=c,n++,n>e&&(n=0,a=r,r=Object.create(null))};return{get(u){let c=r[u];if(c!==void 0)return c;if((c=a[u])!==void 0)return s(u,c),c},set(u,c){u in r?r[u]=c:s(u,c)}}},I0="!",Lg=":",B5=[],Ug=(e,n,r,a,s)=>({modifiers:e,hasImportantModifier:n,baseClassName:r,maybePostfixModifierPosition:a,isExternal:s}),T5=e=>{const{prefix:n,experimentalParseClassName:r}=e;let a=s=>{const u=[];let c=0,f=0,p=0,d;const x=s.length;for(let E=0;E<x;E++){const S=s[E];if(c===0&&f===0){if(S===Lg){u.push(s.slice(p,E)),p=E+1;continue}if(S==="/"){d=E;continue}}S==="["?c++:S==="]"?c--:S==="("?f++:S===")"&&f--}const m=u.length===0?s:s.slice(p);let y=m,v=!1;m.endsWith(I0)?(y=m.slice(0,-1),v=!0):m.startsWith(I0)&&(y=m.slice(1),v=!0);const b=d&&d>p?d-p:void 0;return Ug(u,v,y,b)};if(n){const s=n+Lg,u=a;a=c=>c.startsWith(s)?u(c.slice(s.length)):Ug(B5,!1,c,void 0,!0)}if(r){const s=a;a=u=>r({className:u,parseClassName:s})}return a},R5=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{n.set(r,1e6+a)}),r=>{const a=[];let s=[];for(let u=0;u<r.length;u++){const c=r[u],f=c[0]==="[",p=n.has(c);f||p?(s.length>0&&(s.sort(),a.push(...s),s=[]),a.push(c)):s.push(c)}return s.length>0&&(s.sort(),a.push(...s)),a}},O5=e=>({cache:D5(e.cacheSize),parseClassName:T5(e),sortModifiers:R5(e),...v5(e)}),z5=/\s+/,N5=(e,n)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:s,sortModifiers:u}=n,c=[],f=e.trim().split(z5);let p="";for(let d=f.length-1;d>=0;d-=1){const x=f[d],{isExternal:m,modifiers:y,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:E}=r(x);if(m){p=x+(p.length>0?" "+p:p);continue}let S=!!E,w=a(S?b.substring(0,E):b);if(!w){if(!S){p=x+(p.length>0?" "+p:p);continue}if(w=a(b),!w){p=x+(p.length>0?" "+p:p);continue}S=!1}const k=y.length===0?"":y.length===1?y[0]:u(y).join(":"),A=v?k+I0:k,D=A+w;if(c.indexOf(D)>-1)continue;c.push(D);const F=s(w,S);for(let R=0;R<F.length;++R){const z=F[R];c.push(A+z)}p=x+(p.length>0?" "+p:p)}return p},F5=(...e)=>{let n=0,r,a,s="";for(;n<e.length;)(r=e[n++])&&(a=jg(r))&&(s&&(s+=" "),s+=a);return s},jg=e=>{if(typeof e=="string")return e;let n,r="";for(let a=0;a<e.length;a++)e[a]&&(n=jg(e[a]))&&(r&&(r+=" "),r+=n);return r},M5=(e,...n)=>{let r,a,s,u;const c=p=>{const d=n.reduce((x,m)=>m(x),e());return r=O5(d),a=r.cache.get,s=r.cache.set,u=f,f(p)},f=p=>{const d=a(p);if(d)return d;const x=N5(p,r);return s(p,x),x};return u=c,(...p)=>u(F5(...p))},L5=[],It=e=>{const n=r=>r[e]||L5;return n.isThemeGetter=!0,n},Hg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,U5=/^\d+\/\d+$/,j5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,H5=/\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$/,q5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,I5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,P5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ja=e=>U5.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),yi=e=>!!e&&Number.isInteger(Number(e)),P0=e=>e.endsWith("%")&&Le(e.slice(0,-1)),qr=e=>j5.test(e),V5=()=>!0,Y5=e=>H5.test(e)&&!q5.test(e),Ig=()=>!1,Q5=e=>I5.test(e),X5=e=>P5.test(e),G5=e=>!ve(e)&&!be(e),K5=e=>el(e,Xg,Ig),ve=e=>Hg.test(e),fa=e=>el(e,Gg,Y5),V0=e=>el(e,e_,Le),Pg=e=>el(e,Yg,Ig),$5=e=>el(e,Qg,X5),Ko=e=>el(e,Kg,Q5),be=e=>qg.test(e),bs=e=>tl(e,Gg),Z5=e=>tl(e,t_),Vg=e=>tl(e,Yg),W5=e=>tl(e,Xg),J5=e=>tl(e,Qg),$o=e=>tl(e,Kg,!0),el=(e,n,r)=>{const a=Hg.exec(e);return a?a[1]?n(a[1]):r(a[2]):!1},tl=(e,n,r=!1)=>{const a=qg.exec(e);return a?a[1]?n(a[1]):r:!1},Yg=e=>e==="position"||e==="percentage",Qg=e=>e==="image"||e==="url",Xg=e=>e==="length"||e==="size"||e==="bg-size",Gg=e=>e==="length",e_=e=>e==="number",t_=e=>e==="family-name",Kg=e=>e==="shadow",$g=M5(()=>{const e=It("color"),n=It("font"),r=It("text"),a=It("font-weight"),s=It("tracking"),u=It("leading"),c=It("breakpoint"),f=It("container"),p=It("spacing"),d=It("radius"),x=It("shadow"),m=It("inset-shadow"),y=It("text-shadow"),v=It("drop-shadow"),b=It("blur"),E=It("perspective"),S=It("aspect"),w=It("ease"),k=It("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...D(),be,ve],R=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],M=()=>[be,ve,p],X=()=>[Ja,"full","auto",...M()],T=()=>[yi,"none","subgrid",be,ve],j=()=>["auto",{span:["full",yi,be,ve]},yi,be,ve],V=()=>[yi,"auto",be,ve],G=()=>["auto","min","max","fr",be,ve],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...M()],te=()=>[Ja,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],W=()=>[e,be,ve],me=()=>[...D(),Vg,Pg,{position:[be,ve]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],O=()=>["auto","cover","contain",W5,K5,{size:[be,ve]}],U=()=>[P0,bs,fa],_=()=>["","none","full",d,be,ve],I=()=>["",Le,bs,fa],ue=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xe=()=>[Le,P0,Vg,Pg],de=()=>["","none",b,be,ve],Be=()=>["none",Le,be,ve],nt=()=>["none",Le,be,ve],wt=()=>[Le,be,ve],bt=()=>[Ja,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[qr],breakpoint:[qr],color:[V5],container:[qr],"drop-shadow":[qr],ease:["in","out","in-out"],font:[G5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[qr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[qr],shadow:[qr],spacing:["px",Le],text:[qr],"text-shadow":[qr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ja,ve,be,S]}],container:["container"],columns:[{columns:[Le,ve,be,f]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:F()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{start:X()}],end:[{end:X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[yi,"auto",be,ve]}],basis:[{basis:[Ja,"full","auto",f,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Ja,"auto","initial","none",ve]}],grow:[{grow:["",Le,be,ve]}],shrink:[{shrink:["",Le,be,ve]}],order:[{order:[yi,"first","last","none",be,ve]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[f,"screen",...te()]}],"min-w":[{"min-w":[f,"screen","none",...te()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",r,bs,fa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,be,V0]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",P0,ve]}],"font-family":[{font:[Z5,ve,n]}],"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:[s,be,ve]}],"line-clamp":[{"line-clamp":[Le,"none",be,V0]}],leading:[{leading:[u,...M()]}],"list-image":[{"list-image":["none",be,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",be,fa]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Le,"auto",be,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ve]}],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",be,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:O()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},yi,be,ve],radial:["",be,ve],conic:[yi,be,ve]},J5,$5]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:_()}],"rounded-s":[{"rounded-s":_()}],"rounded-e":[{"rounded-e":_()}],"rounded-t":[{"rounded-t":_()}],"rounded-r":[{"rounded-r":_()}],"rounded-b":[{"rounded-b":_()}],"rounded-l":[{"rounded-l":_()}],"rounded-ss":[{"rounded-ss":_()}],"rounded-se":[{"rounded-se":_()}],"rounded-ee":[{"rounded-ee":_()}],"rounded-es":[{"rounded-es":_()}],"rounded-tl":[{"rounded-tl":_()}],"rounded-tr":[{"rounded-tr":_()}],"rounded-br":[{"rounded-br":_()}],"rounded-bl":[{"rounded-bl":_()}],"border-w":[{border:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,be,ve]}],"outline-w":[{outline:["",Le,bs,fa]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",x,$o,Ko]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",m,$o,Ko]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Le,fa]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",y,$o,Ko]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Le,be,ve]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":xe()}],"mask-image-linear-to-pos":[{"mask-linear-to":xe()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":xe()}],"mask-image-t-to-pos":[{"mask-t-to":xe()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":xe()}],"mask-image-r-to-pos":[{"mask-r-to":xe()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":xe()}],"mask-image-b-to-pos":[{"mask-b-to":xe()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":xe()}],"mask-image-l-to-pos":[{"mask-l-to":xe()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":xe()}],"mask-image-x-to-pos":[{"mask-x-to":xe()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":xe()}],"mask-image-y-to-pos":[{"mask-y-to":xe()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[be,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":xe()}],"mask-image-radial-to-pos":[{"mask-radial-to":xe()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":D()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":xe()}],"mask-image-conic-to-pos":[{"mask-conic-to":xe()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:O()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ve]}],filter:[{filter:["","none",be,ve]}],blur:[{blur:de()}],brightness:[{brightness:[Le,be,ve]}],contrast:[{contrast:[Le,be,ve]}],"drop-shadow":[{"drop-shadow":["","none",v,$o,Ko]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Le,be,ve]}],"hue-rotate":[{"hue-rotate":[Le,be,ve]}],invert:[{invert:["",Le,be,ve]}],saturate:[{saturate:[Le,be,ve]}],sepia:[{sepia:["",Le,be,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ve]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[Le,be,ve]}],"backdrop-contrast":[{"backdrop-contrast":[Le,be,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,be,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,be,ve]}],"backdrop-invert":[{"backdrop-invert":["",Le,be,ve]}],"backdrop-opacity":[{"backdrop-opacity":[Le,be,ve]}],"backdrop-saturate":[{"backdrop-saturate":[Le,be,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,be,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",be,ve]}],ease:[{ease:["linear","initial",w,be,ve]}],delay:[{delay:[Le,be,ve]}],animate:[{animate:["none",k,be,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,be,ve]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Be()}],"rotate-x":[{"rotate-x":Be()}],"rotate-y":[{"rotate-y":Be()}],"rotate-z":[{"rotate-z":Be()}],scale:[{scale:nt()}],"scale-x":[{"scale-x":nt()}],"scale-y":[{"scale-y":nt()}],"scale-z":[{"scale-z":nt()}],"scale-3d":["scale-3d"],skew:[{skew:wt()}],"skew-x":[{"skew-x":wt()}],"skew-y":[{"skew-y":wt()}],transform:[{transform:[be,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:bt()}],"translate-x":[{"translate-x":bt()}],"translate-y":[{"translate-y":bt()}],"translate-z":[{"translate-z":bt()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"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",be,ve]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",be,ve]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Le,bs,fa,V0]}],stroke:[{stroke:["none",...W()]}],"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"]}});function Zg(...e){return $g(Og(e))}function Wg({content:e,className:n}){return $.jsx("div",{className:Zg("prose prose-sm max-w-none w-full","prose-headings:text-inherit prose-p:text-inherit prose-strong:text-inherit prose-ul:text-inherit prose-ol:text-inherit prose-li:text-inherit","dark:prose-invert",n),children:$.jsx(n3,{remarkPlugins:[m5],components:{h1:({children:r,...a})=>$.jsx("h1",{className:"text-2xl font-bold tracking-tight mb-4 mt-6 pb-2 border-b first:mt-0",...a,children:r}),h2:({children:r,...a})=>$.jsx("h2",{className:"text-xl font-semibold tracking-tight mb-3 mt-6 first:mt-0",...a,children:r}),h3:({children:r,...a})=>$.jsx("h3",{className:"text-lg font-semibold mb-2 mt-5 first:mt-0",...a,children:r}),h4:({children:r,...a})=>$.jsx("h4",{className:"text-base font-semibold mb-2 mt-4 first:mt-0",...a,children:r}),h5:({children:r,...a})=>$.jsx("h5",{className:"text-sm font-semibold mb-1.5 mt-3 first:mt-0",...a,children:r}),h6:({children:r,...a})=>$.jsx("h6",{className:"text-xs font-semibold mb-1.5 mt-3 uppercase tracking-wide first:mt-0",...a,children:r}),p:({children:r,...a})=>$.jsx("p",{className:"text-sm leading-relaxed mb-3 last:mb-0",...a,children:r}),strong:({children:r,...a})=>$.jsx("strong",{className:"font-semibold",...a,children:r}),em:({children:r,...a})=>$.jsx("em",{className:"italic",...a,children:r}),ul:({children:r,...a})=>$.jsx("ul",{className:"my-3 space-y-1.5 pl-5 list-disc marker:opacity-60",...a,children:r}),ol:({children:r,...a})=>$.jsx("ol",{className:"my-3 space-y-1.5 pl-5 list-decimal marker:font-medium",...a,children:r}),li:({children:r,...a})=>$.jsx("li",{className:"text-sm leading-relaxed pl-1",...a,children:r}),a:({children:r,...a})=>$.jsx("a",{className:"underline underline-offset-2 decoration-1 hover:decoration-2 transition-all duration-150",target:"_blank",rel:"noopener noreferrer",...a,children:r}),img:({...r})=>$.jsx("img",{className:"max-w-full h-auto rounded-lg my-4 border",loading:"lazy",alt:r.alt||"",...r}),code:({children:r,className:a,...s})=>/language-(\w+)/.exec(a||"")?$.jsx("code",{className:Zg("block rounded-lg p-4 font-mono text-xs leading-relaxed overflow-x-auto",a),...s,children:r}):$.jsx("code",{className:"px-1.5 py-0.5 rounded text-[0.85em] font-mono border",...s,children:r}),pre:({children:r,...a})=>$.jsx("pre",{className:"rounded-lg p-4 overflow-x-auto my-4 border text-sm",...a,children:r}),blockquote:({children:r,...a})=>$.jsx("blockquote",{className:"border-l-4 pl-4 my-4 italic opacity-90",...a,children:r}),table:({children:r,...a})=>$.jsx("div",{className:"w-full overflow-x-auto my-4 rounded-lg border",children:$.jsx("table",{className:"w-full text-sm border-collapse min-w-full",...a,children:r})}),thead:({children:r,...a})=>$.jsx("thead",{className:"border-b",...a,children:r}),tbody:({children:r,...a})=>$.jsx("tbody",{className:"divide-y",...a,children:r}),tr:({children:r,...a})=>$.jsx("tr",{...a,children:r}),th:({children:r,...a})=>$.jsx("th",{className:"px-4 py-2.5 text-left text-xs font-semibold uppercase tracking-wide",...a,children:r}),td:({children:r,...a})=>$.jsx("td",{className:"px-4 py-2.5 text-sm",...a,children:r}),hr:()=>$.jsx("hr",{className:"my-6 border-t"})},children:e})})}const n_=({content:e})=>{const[n,r]=Y.useState("");return Y.useEffect(()=>{let a=0;const s=setInterval(()=>{r(e.slice(0,a)),a++,a>e.length&&clearInterval(s)},10);return()=>clearInterval(s)},[e]),$.jsx(Wg,{content:n})};function r_({messages:e,isSending:n,config:r}){const a=Y.useRef(null),s=()=>{var c;(c=a.current)==null||c.scrollIntoView({behavior:"smooth"})};Y.useEffect(()=>{s()},[e]);const u=r.messageBackgroundColor.startsWith("http")?{backgroundImage:`url(${r.messageBackgroundColor})`,backgroundSize:"cover",backgroundPosition:"center"}:{backgroundColor:r.messageBackgroundColor};return $.jsxs("div",{className:"flex-1 p-4 overflow-y-auto flex flex-col gap-3 [&::-webkit-scrollbar]:w-1.5 [&::-webkit-scrollbar-thumb]:bg-slate-300 [&::-webkit-scrollbar-thumb]:rounded-full",style:u,children:[e.length===0&&$.jsx("div",{className:"text-center text-gray-400 my-auto text-sm",children:r.initialMessage}),e.map(c=>$.jsxs("div",{className:`flex ${c.role==="user"?"justify-end":"justify-start gap-2"}`,children:[c.role==="assistant"&&$.jsx("div",{className:"w-8 h-8 rounded-full bg-slate-100 flex items-center justify-center border border-gray-200 shrink-0 overflow-hidden",children:$.jsx("img",{src:r.botAvatarImage,alt:"AI",className:"w-full h-full object-cover"})}),$.jsx("div",{className:`max-w-[75%] p-3 rounded-lg text-sm ${c.role==="user"?"rounded-br-none":"border border-gray-200 rounded-tl-none shadow-sm"}`,style:c.role==="user"?{backgroundColor:r.userBubbleBackgroundColor,color:r.userBubbleTextColor}:{backgroundColor:r.botBubbleBackgroundColor,color:r.botBubbleTextColor},children:c.role==="assistant"&&c.shouldAnimate?$.jsx(n_,{content:c.content}):$.jsx(Wg,{content:c.content})})]},c.id)),n&&$.jsxs("div",{className:"flex justify-start",children:[$.jsx("div",{className:"w-8 h-8 rounded-full bg-slate-100 flex items-center justify-center border border-gray-200 shrink-0 overflow-hidden mr-2",children:$.jsx("img",{src:r.botAvatarImage,alt:"AI",className:"w-full h-full object-cover"})}),$.jsx("div",{className:"text-gray-800 border border-gray-200 p-3 rounded-lg rounded-bl-none shadow-sm",style:{backgroundColor:r.botBubbleBackgroundColor},children:$.jsxs("span",{className:"flex gap-1",children:[$.jsx("span",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce"}),$.jsx("span",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce delay-75"}),$.jsx("span",{className:"w-1.5 h-1.5 bg-gray-400 rounded-full animate-bounce delay-150"})]})})]}),$.jsx("div",{ref:a})]})}var Jg=um();const e1=Cr(Jg);function i_(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const a_=e=>{switch(e){case"success":return o_;case"info":return c_;case"warning":return u_;case"error":return f_;default:return null}},l_=Array(12).fill(0),s_=({visible:e,className:n})=>pe.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":e},pe.createElement("div",{className:"sonner-spinner"},l_.map((r,a)=>pe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),o_=pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},pe.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"})),u_=pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},pe.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"})),c_=pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},pe.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"})),f_=pe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},pe.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"})),d_=pe.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"},pe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),pe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h_=()=>{const[e,n]=pe.useState(document.hidden);return pe.useEffect(()=>{const r=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Y0=1;class p_{constructor(){this.subscribe=n=>(this.subscribers.push(n),()=>{const r=this.subscribers.indexOf(n);this.subscribers.splice(r,1)}),this.publish=n=>{this.subscribers.forEach(r=>r(n))},this.addToast=n=>{this.publish(n),this.toasts=[...this.toasts,n]},this.create=n=>{var r;const{message:a,...s}=n,u=typeof(n==null?void 0:n.id)=="number"||((r=n.id)==null?void 0:r.length)>0?n.id:Y0++,c=this.toasts.find(p=>p.id===u),f=n.dismissible===void 0?!0:n.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),c?this.toasts=this.toasts.map(p=>p.id===u?(this.publish({...p,...n,id:u,title:a}),{...p,...n,id:u,dismissible:f,title:a}):p):this.addToast({title:a,...s,dismissible:f,id:u}),u},this.dismiss=n=>(n?(this.dismissedToasts.add(n),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:n,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(a=>a({id:r.id,dismiss:!0}))}),n),this.message=(n,r)=>this.create({...r,message:n}),this.error=(n,r)=>this.create({...r,message:n,type:"error"}),this.success=(n,r)=>this.create({...r,type:"success",message:n}),this.info=(n,r)=>this.create({...r,type:"info",message:n}),this.warning=(n,r)=>this.create({...r,type:"warning",message:n}),this.loading=(n,r)=>this.create({...r,type:"loading",message:n}),this.promise=(n,r)=>{if(!r)return;let a;r.loading!==void 0&&(a=this.create({...r,promise:n,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const s=Promise.resolve(n instanceof Function?n():n);let u=a!==void 0,c;const f=s.then(async d=>{if(c=["resolve",d],pe.isValidElement(d))u=!1,this.create({id:a,type:"default",message:d});else if(x_(d)&&!d.ok){u=!1;const m=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,y=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,b=typeof m=="object"&&!pe.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:y,...b})}else if(d instanceof Error){u=!1;const m=typeof r.error=="function"?await r.error(d):r.error,y=typeof r.description=="function"?await r.description(d):r.description,b=typeof m=="object"&&!pe.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:y,...b})}else if(r.success!==void 0){u=!1;const m=typeof r.success=="function"?await r.success(d):r.success,y=typeof r.description=="function"?await r.description(d):r.description,b=typeof m=="object"&&!pe.isValidElement(m)?m:{message:m};this.create({id:a,type:"success",description:y,...b})}}).catch(async d=>{if(c=["reject",d],r.error!==void 0){u=!1;const x=typeof r.error=="function"?await r.error(d):r.error,m=typeof r.description=="function"?await r.description(d):r.description,v=typeof x=="object"&&!pe.isValidElement(x)?x:{message:x};this.create({id:a,type:"error",description:m,...v})}}).finally(()=>{u&&(this.dismiss(a),a=void 0),r.finally==null||r.finally.call(r)}),p=()=>new Promise((d,x)=>f.then(()=>c[0]==="reject"?x(c[1]):d(c[1])).catch(x));return typeof a!="string"&&typeof a!="number"?{unwrap:p}:Object.assign(a,{unwrap:p})},this.custom=(n,r)=>{const a=(r==null?void 0:r.id)||Y0++;return this.create({jsx:n(a),id:a,...r}),a},this.getActiveToasts=()=>this.toasts.filter(n=>!this.dismissedToasts.has(n.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Sn=new p_,m_=(e,n)=>{const r=(n==null?void 0:n.id)||Y0++;return Sn.addToast({title:e,...n,id:r}),r},x_=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",g_=m_,y_=()=>Sn.toasts,v_=()=>Sn.getActiveToasts(),Zo=Object.assign(g_,{success:Sn.success,info:Sn.info,warning:Sn.warning,error:Sn.error,custom:Sn.custom,message:Sn.message,promise:Sn.promise,dismiss:Sn.dismiss,loading:Sn.loading},{getHistory:y_,getToasts:v_});i_("[data-sonner-toaster][dir=ltr],html[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%)}[data-sonner-toaster][dir=rtl],html[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%)}[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:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[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);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[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 rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [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)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [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;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [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);background:var(--normal-bg);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-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[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}[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}[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,0)) translateX(var(--swipe-amount-x,0));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{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{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{from{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-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--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-sonner-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-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-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, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--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-sonner-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-sonner-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]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[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]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[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]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[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]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[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:first-child{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)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{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%)}");function Wo(e){return e.label!==void 0}const b_=3,E_="24px",C_="16px",t1=4e3,S_=356,w_=14,A_=45,__=200;function Ar(...e){return e.filter(Boolean).join(" ")}function k_(e){const[n,r]=e.split("-"),a=[];return n&&a.push(n),r&&a.push(r),a}const D_=e=>{var n,r,a,s,u,c,f,p,d;const{invert:x,toast:m,unstyled:y,interacting:v,setHeights:b,visibleToasts:E,heights:S,index:w,toasts:k,expanded:A,removeToast:D,defaultRichColors:F,closeButton:R,style:z,cancelButtonStyle:M,actionButtonStyle:X,className:T="",descriptionClassName:j="",duration:V,position:G,gap:ie,expandByDefault:J,classNames:L,icons:te,closeButtonAriaLabel:W="Close toast"}=e,[me,N]=pe.useState(null),[O,U]=pe.useState(null),[_,I]=pe.useState(!1),[ue,ce]=pe.useState(!1),[xe,de]=pe.useState(!1),[Be,nt]=pe.useState(!1),[wt,bt]=pe.useState(!1),[Kt,ct]=pe.useState(0),[Un,gn]=pe.useState(0),yn=pe.useRef(m.duration||V||t1),jn=pe.useRef(null),Ft=pe.useRef(null),Dn=w===0,Pt=w+1<=E,tt=m.type,Vt=m.dismissible!==!1,At=m.className||"",Oi=m.descriptionClassName||"",ae=pe.useMemo(()=>S.findIndex(De=>De.toastId===m.id)||0,[S,m.id]),he=pe.useMemo(()=>{var De;return(De=m.closeButton)!=null?De:R},[m.closeButton,R]),we=pe.useMemo(()=>m.duration||V||t1,[m.duration,V]),Re=pe.useRef(0),Fe=pe.useRef(0),Et=pe.useRef(0),_t=pe.useRef(null),[Yt,gt]=G.split("-"),Mt=pe.useMemo(()=>S.reduce((De,ht,Tt)=>Tt>=ae?De:De+ht.height,0),[S,ae]),Ke=h_(),Jn=m.invert||x,$t=tt==="loading";Fe.current=pe.useMemo(()=>ae*ie+Mt,[ae,Mt]),pe.useEffect(()=>{yn.current=we},[we]),pe.useEffect(()=>{I(!0)},[]),pe.useEffect(()=>{const De=Ft.current;if(De){const ht=De.getBoundingClientRect().height;return gn(ht),b(Tt=>[{toastId:m.id,height:ht,position:m.position},...Tt]),()=>b(Tt=>Tt.filter(Zt=>Zt.toastId!==m.id))}},[b,m.id]),pe.useLayoutEffect(()=>{if(!_)return;const De=Ft.current,ht=De.style.height;De.style.height="auto";const Tt=De.getBoundingClientRect().height;De.style.height=ht,gn(Tt),b(Zt=>Zt.find(pt=>pt.toastId===m.id)?Zt.map(pt=>pt.toastId===m.id?{...pt,height:Tt}:pt):[{toastId:m.id,height:Tt,position:m.position},...Zt])},[_,m.title,m.description,b,m.id,m.jsx,m.action,m.cancel]);const er=pe.useCallback(()=>{ce(!0),ct(Fe.current),b(De=>De.filter(ht=>ht.toastId!==m.id)),setTimeout(()=>{D(m)},__)},[m,D,b,Fe]);pe.useEffect(()=>{if(m.promise&&tt==="loading"||m.duration===1/0||m.type==="loading")return;let De;return A||v||Ke?(()=>{if(Et.current<Re.current){const Zt=new Date().getTime()-Re.current;yn.current=yn.current-Zt}Et.current=new Date().getTime()})():(()=>{yn.current!==1/0&&(Re.current=new Date().getTime(),De=setTimeout(()=>{m.onAutoClose==null||m.onAutoClose.call(m,m),er()},yn.current))})(),()=>clearTimeout(De)},[A,v,m,tt,Ke,er]),pe.useEffect(()=>{m.delete&&(er(),m.onDismiss==null||m.onDismiss.call(m,m))},[er,m.delete]);function Gr(){var De;if(te!=null&&te.loading){var ht;return pe.createElement("div",{className:Ar(L==null?void 0:L.loader,m==null||(ht=m.classNames)==null?void 0:ht.loader,"sonner-loader"),"data-visible":tt==="loading"},te.loading)}return pe.createElement(s_,{className:Ar(L==null?void 0:L.loader,m==null||(De=m.classNames)==null?void 0:De.loader),visible:tt==="loading"})}const zi=m.icon||(te==null?void 0:te[tt])||a_(tt);var zr,tr;return pe.createElement("li",{tabIndex:0,ref:Ft,className:Ar(T,At,L==null?void 0:L.toast,m==null||(n=m.classNames)==null?void 0:n.toast,L==null?void 0:L.default,L==null?void 0:L[tt],m==null||(r=m.classNames)==null?void 0:r[tt]),"data-sonner-toast":"","data-rich-colors":(zr=m.richColors)!=null?zr:F,"data-styled":!(m.jsx||m.unstyled||y),"data-mounted":_,"data-promise":!!m.promise,"data-swiped":wt,"data-removed":ue,"data-visible":Pt,"data-y-position":Yt,"data-x-position":gt,"data-index":w,"data-front":Dn,"data-swiping":xe,"data-dismissible":Vt,"data-type":tt,"data-invert":Jn,"data-swipe-out":Be,"data-swipe-direction":O,"data-expanded":!!(A||J&&_),"data-testid":m.testId,style:{"--index":w,"--toasts-before":w,"--z-index":k.length-w,"--offset":`${ue?Kt:Fe.current}px`,"--initial-height":J?"auto":`${Un}px`,...z,...m.style},onDragEnd:()=>{de(!1),N(null),_t.current=null},onPointerDown:De=>{De.button!==2&&($t||!Vt||(jn.current=new Date,ct(Fe.current),De.target.setPointerCapture(De.pointerId),De.target.tagName!=="BUTTON"&&(de(!0),_t.current={x:De.clientX,y:De.clientY})))},onPointerUp:()=>{var De,ht,Tt;if(Be||!Vt)return;_t.current=null;const Zt=Number(((De=Ft.current)==null?void 0:De.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Nr=Number(((ht=Ft.current)==null?void 0:ht.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pt=new Date().getTime()-((Tt=jn.current)==null?void 0:Tt.getTime()),dn=me==="x"?Zt:Nr,Fr=Math.abs(dn)/pt;if(Math.abs(dn)>=A_||Fr>.11){ct(Fe.current),m.onDismiss==null||m.onDismiss.call(m,m),U(me==="x"?Zt>0?"right":"left":Nr>0?"down":"up"),er(),nt(!0);return}else{var at,Ct;(at=Ft.current)==null||at.style.setProperty("--swipe-amount-x","0px"),(Ct=Ft.current)==null||Ct.style.setProperty("--swipe-amount-y","0px")}bt(!1),de(!1),N(null)},onPointerMove:De=>{var ht,Tt,Zt;if(!_t.current||!Vt||((ht=window.getSelection())==null?void 0:ht.toString().length)>0)return;const pt=De.clientY-_t.current.y,dn=De.clientX-_t.current.x;var Fr;const at=(Fr=e.swipeDirections)!=null?Fr:k_(G);!me&&(Math.abs(dn)>1||Math.abs(pt)>1)&&N(Math.abs(dn)>Math.abs(pt)?"x":"y");let Ct={x:0,y:0};const Kr=Hn=>1/(1.5+Math.abs(Hn)/20);if(me==="y"){if(at.includes("top")||at.includes("bottom"))if(at.includes("top")&&pt<0||at.includes("bottom")&&pt>0)Ct.y=pt;else{const Hn=pt*Kr(pt);Ct.y=Math.abs(Hn)<Math.abs(pt)?Hn:pt}}else if(me==="x"&&(at.includes("left")||at.includes("right")))if(at.includes("left")&&dn<0||at.includes("right")&&dn>0)Ct.x=dn;else{const Hn=dn*Kr(dn);Ct.x=Math.abs(Hn)<Math.abs(dn)?Hn:dn}(Math.abs(Ct.x)>0||Math.abs(Ct.y)>0)&&bt(!0),(Tt=Ft.current)==null||Tt.style.setProperty("--swipe-amount-x",`${Ct.x}px`),(Zt=Ft.current)==null||Zt.style.setProperty("--swipe-amount-y",`${Ct.y}px`)}},he&&!m.jsx&&tt!=="loading"?pe.createElement("button",{"aria-label":W,"data-disabled":$t,"data-close-button":!0,onClick:$t||!Vt?()=>{}:()=>{er(),m.onDismiss==null||m.onDismiss.call(m,m)},className:Ar(L==null?void 0:L.closeButton,m==null||(a=m.classNames)==null?void 0:a.closeButton)},(tr=te==null?void 0:te.close)!=null?tr:d_):null,(tt||m.icon||m.promise)&&m.icon!==null&&((te==null?void 0:te[tt])!==null||m.icon)?pe.createElement("div",{"data-icon":"",className:Ar(L==null?void 0:L.icon,m==null||(s=m.classNames)==null?void 0:s.icon)},m.promise||m.type==="loading"&&!m.icon?m.icon||Gr():null,m.type!=="loading"?zi:null):null,pe.createElement("div",{"data-content":"",className:Ar(L==null?void 0:L.content,m==null||(u=m.classNames)==null?void 0:u.content)},pe.createElement("div",{"data-title":"",className:Ar(L==null?void 0:L.title,m==null||(c=m.classNames)==null?void 0:c.title)},m.jsx?m.jsx:typeof m.title=="function"?m.title():m.title),m.description?pe.createElement("div",{"data-description":"",className:Ar(j,Oi,L==null?void 0:L.description,m==null||(f=m.classNames)==null?void 0:f.description)},typeof m.description=="function"?m.description():m.description):null),pe.isValidElement(m.cancel)?m.cancel:m.cancel&&Wo(m.cancel)?pe.createElement("button",{"data-button":!0,"data-cancel":!0,style:m.cancelButtonStyle||M,onClick:De=>{Wo(m.cancel)&&Vt&&(m.cancel.onClick==null||m.cancel.onClick.call(m.cancel,De),er())},className:Ar(L==null?void 0:L.cancelButton,m==null||(p=m.classNames)==null?void 0:p.cancelButton)},m.cancel.label):null,pe.isValidElement(m.action)?m.action:m.action&&Wo(m.action)?pe.createElement("button",{"data-button":!0,"data-action":!0,style:m.actionButtonStyle||X,onClick:De=>{Wo(m.action)&&(m.action.onClick==null||m.action.onClick.call(m.action,De),!De.defaultPrevented&&er())},className:Ar(L==null?void 0:L.actionButton,m==null||(d=m.classNames)==null?void 0:d.actionButton)},m.action.label):null)};function n1(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function B_(e,n){const r={};return[e,n].forEach((a,s)=>{const u=s===1,c=u?"--mobile-offset":"--offset",f=u?C_:E_;function p(d){["top","right","bottom","left"].forEach(x=>{r[`${c}-${x}`]=typeof d=="number"?`${d}px`:d})}typeof a=="number"||typeof a=="string"?p(a):typeof a=="object"?["top","right","bottom","left"].forEach(d=>{a[d]===void 0?r[`${c}-${d}`]=f:r[`${c}-${d}`]=typeof a[d]=="number"?`${a[d]}px`:a[d]}):p(f)}),r}const T_=pe.forwardRef(function(n,r){const{id:a,invert:s,position:u="bottom-right",hotkey:c=["altKey","KeyT"],expand:f,closeButton:p,className:d,offset:x,mobileOffset:m,theme:y="light",richColors:v,duration:b,style:E,visibleToasts:S=b_,toastOptions:w,dir:k=n1(),gap:A=w_,icons:D,containerAriaLabel:F="Notifications"}=n,[R,z]=pe.useState([]),M=pe.useMemo(()=>a?R.filter(_=>_.toasterId===a):R.filter(_=>!_.toasterId),[R,a]),X=pe.useMemo(()=>Array.from(new Set([u].concat(M.filter(_=>_.position).map(_=>_.position)))),[M,u]),[T,j]=pe.useState([]),[V,G]=pe.useState(!1),[ie,J]=pe.useState(!1),[L,te]=pe.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),W=pe.useRef(null),me=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=pe.useRef(null),O=pe.useRef(!1),U=pe.useCallback(_=>{z(I=>{var ue;return(ue=I.find(ce=>ce.id===_.id))!=null&&ue.delete||Sn.dismiss(_.id),I.filter(({id:ce})=>ce!==_.id)})},[]);return pe.useEffect(()=>Sn.subscribe(_=>{if(_.dismiss){requestAnimationFrame(()=>{z(I=>I.map(ue=>ue.id===_.id?{...ue,delete:!0}:ue))});return}setTimeout(()=>{e1.flushSync(()=>{z(I=>{const ue=I.findIndex(ce=>ce.id===_.id);return ue!==-1?[...I.slice(0,ue),{...I[ue],..._},...I.slice(ue+1)]:[_,...I]})})})}),[R]),pe.useEffect(()=>{if(y!=="system"){te(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;const _=window.matchMedia("(prefers-color-scheme: dark)");try{_.addEventListener("change",({matches:I})=>{te(I?"dark":"light")})}catch{_.addListener(({matches:ue})=>{try{te(ue?"dark":"light")}catch(ce){console.error(ce)}})}},[y]),pe.useEffect(()=>{R.length<=1&&G(!1)},[R]),pe.useEffect(()=>{const _=I=>{var ue;if(c.every(de=>I[de]||I.code===de)){var xe;G(!0),(xe=W.current)==null||xe.focus()}I.code==="Escape"&&(document.activeElement===W.current||(ue=W.current)!=null&&ue.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[c]),pe.useEffect(()=>{if(W.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,O.current=!1)}},[W.current]),pe.createElement("section",{ref:r,"aria-label":`${F} ${me}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},X.map((_,I)=>{var ue;const[ce,xe]=_.split("-");return M.length?pe.createElement("ol",{key:_,dir:k==="auto"?n1():k,tabIndex:-1,ref:W,className:d,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":ce,"data-x-position":xe,style:{"--front-toast-height":`${((ue=T[0])==null?void 0:ue.height)||0}px`,"--width":`${S_}px`,"--gap":`${A}px`,...E,...B_(x,m)},onBlur:de=>{O.current&&!de.currentTarget.contains(de.relatedTarget)&&(O.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||O.current||(O.current=!0,N.current=de.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{ie||G(!1)},onDragEnd:()=>G(!1),onPointerDown:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},M.filter(de=>!de.position&&I===0||de.position===_).map((de,Be)=>{var nt,wt;return pe.createElement(D_,{key:de.id,icons:D,index:Be,toast:de,defaultRichColors:v,duration:(nt=w==null?void 0:w.duration)!=null?nt:b,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:s,visibleToasts:S,closeButton:(wt=w==null?void 0:w.closeButton)!=null?wt:p,interacting:ie,position:_,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,closeButtonAriaLabel:w==null?void 0:w.closeButtonAriaLabel,removeToast:U,toasts:M.filter(bt=>bt.position==de.position),heights:T.filter(bt=>bt.position==de.position),setHeights:j,expandByDefault:f,gap:A,expanded:V,swipeDirections:n.swipeDirections})})):null}))});function R_({onSendMessage:e,isSending:n,config:r,onPreviewFile:a}){const[s,u]=Y.useState(""),[c,f]=Y.useState([]),p=Y.useRef(null),d=E=>{E.preventDefault(),(s.trim()||c.length>0)&&!n&&(e(s,c),u(""),f([]))},x=E=>{E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),d(E))},m=()=>{var E;(E=p.current)==null||E.click()},y=E=>{const S=Array.from(E.target.files||[]);if(S.length===0)return;if(S.length>3){Zo.error("Maximum 3 files allowed"),p.current&&(p.current.value="");return}const w=S.reduce((F,R)=>F+R.size,0),k=5*1024*1024;if(w>k){Zo.error("Total file size must be less than 5MB"),p.current&&(p.current.value="");return}const A=["image/jpeg","image/png","image/gif","image/webp","video/mp4","application/pdf"];if(S.filter(F=>!A.includes(F.type)).length>0){Zo.error("Some files have unsupported types"),p.current&&(p.current.value="");return}f(F=>[...F,...S]),Zo.success(r.toastSuccessMessage.replace("{count}",S.length.toString())),p.current&&(p.current.value="")},v=E=>{f(S=>S.filter((w,k)=>k!==E))},b=(E,S)=>{const w=E.type.startsWith("image/"),k=E.type.startsWith("video/"),A=E.type==="application/pdf",D=E.type.includes("excel")||E.type.includes("spreadsheet")||E.type.includes("csv"),F=E.type.includes("word")||E.type.includes("document"),R=E.type==="text/plain";let z=$.jsx(QC,{className:"w-6 h-6 text-white"}),M="bg-gray-400";return A?(z=$.jsx(Oo,{className:"w-6 h-6 text-white"}),M="bg-red-500"):D?(z=$.jsx(YC,{className:"w-6 h-6 text-white"}),M="bg-green-500"):F?(z=$.jsx(Oo,{className:"w-6 h-6 text-white"}),M="bg-blue-500"):R&&(z=$.jsx(Oo,{className:"w-6 h-6 text-white"}),M="bg-gray-500"),$.jsxs("div",{className:"relative group w-16 h-16 shrink-0 mt-2 mr-2",children:[$.jsxs("div",{className:"w-full h-full rounded-lg overflow-hidden border border-gray-200 flex items-center justify-center bg-gray-50 relative",children:[w?$.jsx("img",{src:URL.createObjectURL(E),alt:"preview",className:"w-full h-full object-cover"}):k?$.jsx("video",{src:URL.createObjectURL(E),className:"w-full h-full object-cover"}):$.jsx("div",{className:`w-full h-full flex items-center justify-center ${M}`,children:z}),$.jsx("div",{className:"absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:$.jsx("button",{type:"button",onClick:()=>a(E),className:"text-white hover:text-gray-200",children:$.jsx(VC,{className:"w-6 h-6"})})})]}),$.jsx("button",{onClick:()=>v(S),className:"absolute -top-2 -right-2 bg-red-500 text-white rounded-full p-0.5 opacity-0 group-hover:opacity-100 transition-opacity shadow-sm z-10",children:$.jsx(zo,{className:"w-3 h-3"})})]},S)};return $.jsxs("form",{onSubmit:d,className:"p-3 border-t border-gray-100 flex flex-col gap-3",style:{backgroundColor:r.inputSectionBackgroundColor},children:[c.length>0&&$.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2 scrollbar-hide",children:c.map((E,S)=>b(E,S))}),$.jsxs("div",{className:"flex gap-2 items-end",children:[$.jsx("input",{type:"file",multiple:!0,ref:p,className:"hidden",onChange:y}),$.jsx("button",{type:"button",disabled:n,onClick:m,className:"p-2 text-gray-400 hover:text-slate-800 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:$.jsx(ZC,{className:"w-5 h-5"})}),$.jsx("textarea",{value:s,onChange:E=>u(E.target.value),onKeyDown:x,disabled:n,placeholder:r.inputPlaceholder,rows:1,className:"flex-1 px-4 py-2 bg-gray-100 border-0 rounded-2xl focus:ring-2 focus:ring-slate-800 focus:outline-none transition-all text-sm disabled:opacity-50 resize-none overflow-y-auto [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]"}),$.jsx("button",{type:"submit",disabled:!s.trim()&&c.length===0||n,className:"p-2 text-white rounded-full hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center justify-center shrink-0 mb-1",style:{backgroundColor:r.sendButtonBackgroundColor},children:$.jsx(WC,{className:"h-5 w-5"})})]})]})}function r1(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function i1(...e){return n=>{let r=!1;const a=e.map(s=>{const u=r1(s,n);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s<a.length;s++){const u=a[s];typeof u=="function"?u():r1(e[s],null)}}}}function da(...e){return Y.useCallback(i1(...e),e)}function a1(e){const n=O_(e),r=Y.forwardRef((a,s)=>{const{children:u,...c}=a,f=Y.Children.toArray(u),p=f.find(N_);if(p){const d=p.props.children,x=f.map(m=>m===p?Y.Children.count(d)>1?Y.Children.only(null):Y.isValidElement(d)?d.props.children:null:m);return $.jsx(n,{...c,ref:s,children:Y.isValidElement(d)?Y.cloneElement(d,void 0,x):null})}return $.jsx(n,{...c,ref:s,children:u})});return r.displayName=`${e}.Slot`,r}function O_(e){const n=Y.forwardRef((r,a)=>{const{children:s,...u}=r;if(Y.isValidElement(s)){const c=M_(s),f=F_(u,s.props);return s.type!==Y.Fragment&&(f.ref=a?i1(a,c):c),Y.cloneElement(s,f)}return Y.Children.count(s)>1?Y.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var z_=Symbol("radix.slottable");function N_(e){return Y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===z_}function F_(e,n){const r={...n};for(const a in n){const s=e[a],u=n[a];/^on[A-Z]/.test(a)?s&&u?r[a]=(...f)=>{const p=u(...f);return s(...f),p}:s&&(r[a]=s):a==="style"?r[a]={...s,...u}:a==="className"&&(r[a]=[s,u].filter(Boolean).join(" "))}return{...e,...r}}function M_(e){var a,s;let n=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var L_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ir=L_.reduce((e,n)=>{const r=a1(`Primitive.${n}`),a=Y.forwardRef((s,u)=>{const{asChild:c,...f}=s,p=c?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),$.jsx(p,{...f,ref:u})});return a.displayName=`Primitive.${n}`,{...e,[n]:a}},{});function U_(e,n){e&&Jg.flushSync(()=>e.dispatchEvent(n))}function j_(e,n){const r=Y.createContext(n),a=u=>{const{children:c,...f}=u,p=Y.useMemo(()=>f,Object.values(f));return $.jsx(r.Provider,{value:p,children:c})};a.displayName=e+"Provider";function s(u){const c=Y.useContext(r);if(c)return c;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[a,s]}function H_(e,n=[]){let r=[];function a(u,c){const f=Y.createContext(c),p=r.length;r=[...r,c];const d=m=>{var w;const{scope:y,children:v,...b}=m,E=((w=y==null?void 0:y[e])==null?void 0:w[p])||f,S=Y.useMemo(()=>b,Object.values(b));return $.jsx(E.Provider,{value:S,children:v})};d.displayName=u+"Provider";function x(m,y){var E;const v=((E=y==null?void 0:y[e])==null?void 0:E[p])||f,b=Y.useContext(v);if(b)return b;if(c!==void 0)return c;throw new Error(`\`${m}\` must be used within \`${u}\``)}return[d,x]}const s=()=>{const u=r.map(c=>Y.createContext(c));return function(f){const p=(f==null?void 0:f[e])||u;return Y.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])}};return s.scopeName=e,[a,q_(s,...n)]}function q_(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const a=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(u){const c=a.reduce((f,{useScope:p,scopeName:d})=>{const m=p(u)[`__scope${d}`];return{...f,...m}},{});return Y.useMemo(()=>({[`__scope${n.scopeName}`]:c}),[c])}};return r.scopeName=n.scopeName,r}function vi(e,n,{checkForDefaultPrevented:r=!0}={}){return function(s){if(e==null||e(s),r===!1||!s.defaultPrevented)return n==null?void 0:n(s)}}var Es=globalThis!=null&&globalThis.document?Y.useLayoutEffect:()=>{},I_=im[" useInsertionEffect ".trim().toString()]||Es;function P_({prop:e,defaultProp:n,onChange:r=()=>{},caller:a}){const[s,u,c]=V_({defaultProp:n,onChange:r}),f=e!==void 0,p=f?e:s;{const x=Y.useRef(e!==void 0);Y.useEffect(()=>{const m=x.current;m!==f&&console.warn(`${a} is changing from ${m?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=f},[f,a])}const d=Y.useCallback(x=>{var m;if(f){const y=Y_(x)?x(e):x;y!==e&&((m=c.current)==null||m.call(c,y))}else u(x)},[f,e,u,c]);return[p,d]}function V_({defaultProp:e,onChange:n}){const[r,a]=Y.useState(e),s=Y.useRef(r),u=Y.useRef(n);return I_(()=>{u.current=n},[n]),Y.useEffect(()=>{var c;s.current!==r&&((c=u.current)==null||c.call(u,r),s.current=r)},[r,s]),[r,a,u]}function Y_(e){return typeof e=="function"}function Q_(e,n){return Y.useReducer((r,a)=>n[r][a]??r,e)}var Jo=e=>{const{present:n,children:r}=e,a=X_(n),s=typeof r=="function"?r({present:a.isPresent}):Y.Children.only(r),u=da(a.ref,G_(s));return typeof r=="function"||a.isPresent?Y.cloneElement(s,{ref:u}):null};Jo.displayName="Presence";function X_(e){const[n,r]=Y.useState(),a=Y.useRef(null),s=Y.useRef(e),u=Y.useRef("none"),c=e?"mounted":"unmounted",[f,p]=Q_(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Y.useEffect(()=>{const d=eu(a.current);u.current=f==="mounted"?d:"none"},[f]),Es(()=>{const d=a.current,x=s.current;if(x!==e){const y=u.current,v=eu(d);e?p("MOUNT"):v==="none"||(d==null?void 0:d.display)==="none"?p("UNMOUNT"):p(x&&y!==v?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,p]),Es(()=>{if(n){let d;const x=n.ownerDocument.defaultView??window,m=v=>{const E=eu(a.current).includes(CSS.escape(v.animationName));if(v.target===n&&E&&(p("ANIMATION_END"),!s.current)){const S=n.style.animationFillMode;n.style.animationFillMode="forwards",d=x.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=S)})}},y=v=>{v.target===n&&(u.current=eu(a.current))};return n.addEventListener("animationstart",y),n.addEventListener("animationcancel",m),n.addEventListener("animationend",m),()=>{x.clearTimeout(d),n.removeEventListener("animationstart",y),n.removeEventListener("animationcancel",m),n.removeEventListener("animationend",m)}}else p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:Y.useCallback(d=>{a.current=d?getComputedStyle(d):null,r(d)},[])}}function eu(e){return(e==null?void 0:e.animationName)||"none"}function G_(e){var a,s;let n=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var K_=im[" useId ".trim().toString()]||(()=>{}),$_=0;function Q0(e){const[n,r]=Y.useState(K_());return Es(()=>{r(a=>a??String($_++))},[e]),e||(n?`radix-${n}`:"")}function Cs(e){const n=Y.useRef(e);return Y.useEffect(()=>{n.current=e}),Y.useMemo(()=>(...r)=>{var a;return(a=n.current)==null?void 0:a.call(n,...r)},[])}function Z_(e,n=globalThis==null?void 0:globalThis.document){const r=Cs(e);Y.useEffect(()=>{const a=s=>{s.key==="Escape"&&r(s)};return n.addEventListener("keydown",a,{capture:!0}),()=>n.removeEventListener("keydown",a,{capture:!0})},[r,n])}var W_="DismissableLayer",X0="dismissableLayer.update",J_="dismissableLayer.pointerDownOutside",ek="dismissableLayer.focusOutside",l1,s1=Y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),o1=Y.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...p}=e,d=Y.useContext(s1),[x,m]=Y.useState(null),y=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=Y.useState({}),b=da(n,z=>m(z)),E=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),w=E.indexOf(S),k=x?E.indexOf(x):-1,A=d.layersWithOutsidePointerEventsDisabled.size>0,D=k>=w,F=rk(z=>{const M=z.target,X=[...d.branches].some(T=>T.contains(M));!D||X||(s==null||s(z),c==null||c(z),z.defaultPrevented||f==null||f())},y),R=ik(z=>{const M=z.target;[...d.branches].some(T=>T.contains(M))||(u==null||u(z),c==null||c(z),z.defaultPrevented||f==null||f())},y);return Z_(z=>{k===d.layers.size-1&&(a==null||a(z),!z.defaultPrevented&&f&&(z.preventDefault(),f()))},y),Y.useEffect(()=>{if(x)return r&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(l1=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(x)),d.layers.add(x),u1(),()=>{r&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=l1)}},[x,y,r,d]),Y.useEffect(()=>()=>{x&&(d.layers.delete(x),d.layersWithOutsidePointerEventsDisabled.delete(x),u1())},[x,d]),Y.useEffect(()=>{const z=()=>v({});return document.addEventListener(X0,z),()=>document.removeEventListener(X0,z)},[]),$.jsx(Ir.div,{...p,ref:b,style:{pointerEvents:A?D?"auto":"none":void 0,...e.style},onFocusCapture:vi(e.onFocusCapture,R.onFocusCapture),onBlurCapture:vi(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:vi(e.onPointerDownCapture,F.onPointerDownCapture)})});o1.displayName=W_;var tk="DismissableLayerBranch",nk=Y.forwardRef((e,n)=>{const r=Y.useContext(s1),a=Y.useRef(null),s=da(n,a);return Y.useEffect(()=>{const u=a.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),$.jsx(Ir.div,{...e,ref:s})});nk.displayName=tk;function rk(e,n=globalThis==null?void 0:globalThis.document){const r=Cs(e),a=Y.useRef(!1),s=Y.useRef(()=>{});return Y.useEffect(()=>{const u=f=>{if(f.target&&!a.current){let p=function(){c1(J_,r,d,{discrete:!0})};const d={originalEvent:f};f.pointerType==="touch"?(n.removeEventListener("click",s.current),s.current=p,n.addEventListener("click",s.current,{once:!0})):p()}else n.removeEventListener("click",s.current);a.current=!1},c=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),n.removeEventListener("pointerdown",u),n.removeEventListener("click",s.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}function ik(e,n=globalThis==null?void 0:globalThis.document){const r=Cs(e),a=Y.useRef(!1);return Y.useEffect(()=>{const s=u=>{u.target&&!a.current&&c1(ek,r,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",s),()=>n.removeEventListener("focusin",s)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function u1(){const e=new CustomEvent(X0);document.dispatchEvent(e)}function c1(e,n,r,{discrete:a}){const s=r.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&s.addEventListener(e,n,{once:!0}),a?U_(s,u):s.dispatchEvent(u)}var G0="focusScope.autoFocusOnMount",K0="focusScope.autoFocusOnUnmount",f1={bubbles:!1,cancelable:!0},ak="FocusScope",d1=Y.forwardRef((e,n)=>{const{loop:r=!1,trapped:a=!1,onMountAutoFocus:s,onUnmountAutoFocus:u,...c}=e,[f,p]=Y.useState(null),d=Cs(s),x=Cs(u),m=Y.useRef(null),y=da(n,E=>p(E)),v=Y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Y.useEffect(()=>{if(a){let E=function(A){if(v.paused||!f)return;const D=A.target;f.contains(D)?m.current=D:bi(m.current,{select:!0})},S=function(A){if(v.paused||!f)return;const D=A.relatedTarget;D!==null&&(f.contains(D)||bi(m.current,{select:!0}))},w=function(A){if(document.activeElement===document.body)for(const F of A)F.removedNodes.length>0&&bi(f)};document.addEventListener("focusin",E),document.addEventListener("focusout",S);const k=new MutationObserver(w);return f&&k.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",S),k.disconnect()}}},[a,f,v.paused]),Y.useEffect(()=>{if(f){m1.add(v);const E=document.activeElement;if(!f.contains(E)){const w=new CustomEvent(G0,f1);f.addEventListener(G0,d),f.dispatchEvent(w),w.defaultPrevented||(lk(fk(h1(f)),{select:!0}),document.activeElement===E&&bi(f))}return()=>{f.removeEventListener(G0,d),setTimeout(()=>{const w=new CustomEvent(K0,f1);f.addEventListener(K0,x),f.dispatchEvent(w),w.defaultPrevented||bi(E??document.body,{select:!0}),f.removeEventListener(K0,x),m1.remove(v)},0)}}},[f,d,x,v]);const b=Y.useCallback(E=>{if(!r&&!a||v.paused)return;const S=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,w=document.activeElement;if(S&&w){const k=E.currentTarget,[A,D]=sk(k);A&&D?!E.shiftKey&&w===D?(E.preventDefault(),r&&bi(A,{select:!0})):E.shiftKey&&w===A&&(E.preventDefault(),r&&bi(D,{select:!0})):w===k&&E.preventDefault()}},[r,a,v.paused]);return $.jsx(Ir.div,{tabIndex:-1,...c,ref:y,onKeyDown:b})});d1.displayName=ak;function lk(e,{select:n=!1}={}){const r=document.activeElement;for(const a of e)if(bi(a,{select:n}),document.activeElement!==r)return}function sk(e){const n=h1(e),r=p1(n,e),a=p1(n.reverse(),e);return[r,a]}function h1(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const s=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||s?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function p1(e,n){for(const r of e)if(!ok(r,{upTo:n}))return r}function ok(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function uk(e){return e instanceof HTMLInputElement&&"select"in e}function bi(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&uk(e)&&n&&e.select()}}var m1=ck();function ck(){let e=[];return{add(n){const r=e[0];n!==r&&(r==null||r.pause()),e=x1(e,n),e.unshift(n)},remove(n){var r;e=x1(e,n),(r=e[0])==null||r.resume()}}}function x1(e,n){const r=[...e],a=r.indexOf(n);return a!==-1&&r.splice(a,1),r}function fk(e){return e.filter(n=>n.tagName!=="A")}var dk="Portal",g1=Y.forwardRef((e,n)=>{var f;const{container:r,...a}=e,[s,u]=Y.useState(!1);Es(()=>u(!0),[]);const c=r||s&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?e1.createPortal($.jsx(Ir.div,{...a,ref:n}),c):null});g1.displayName=dk;var $0=0;function hk(){Y.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??y1()),document.body.insertAdjacentElement("beforeend",e[1]??y1()),$0++,()=>{$0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),$0--}},[])}function y1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _r=function(){return _r=Object.assign||function(n){for(var r,a=1,s=arguments.length;a<s;a++){r=arguments[a];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},_r.apply(this,arguments)};function v1(e,n){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(r[a[s]]=e[a[s]]);return r}function pk(e,n,r){if(r||arguments.length===2)for(var a=0,s=n.length,u;a<s;a++)(u||!(a in n))&&(u||(u=Array.prototype.slice.call(n,0,a)),u[a]=n[a]);return e.concat(u||Array.prototype.slice.call(n))}typeof SuppressedError=="function"&&SuppressedError;var tu="right-scroll-bar-position",nu="width-before-scroll-bar",mk="with-scroll-bars-hidden",xk="--removed-body-scroll-bar-size";function Z0(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function gk(e,n){var r=Y.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(a){var s=r.value;s!==a&&(r.value=a,r.callback(a,s))}}}})[0];return r.callback=n,r.facade}var yk=typeof window<"u"?Y.useLayoutEffect:Y.useEffect,b1=new WeakMap;function vk(e,n){var r=gk(null,function(a){return e.forEach(function(s){return Z0(s,a)})});return yk(function(){var a=b1.get(r);if(a){var s=new Set(a),u=new Set(e),c=r.current;s.forEach(function(f){u.has(f)||Z0(f,null)}),u.forEach(function(f){s.has(f)||Z0(f,c)})}b1.set(r,e)},[e]),r}function bk(e){return e}function Ek(e,n){n===void 0&&(n=bk);var r=[],a=!1,s={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(u){var c=n(u,a);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(a=!0;r.length;){var c=r;r=[],c.forEach(u)}r={push:function(f){return u(f)},filter:function(){return r}}},assignMedium:function(u){a=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(u),c=r}var p=function(){var x=c;c=[],x.forEach(u)},d=function(){return Promise.resolve().then(p)};d(),r={push:function(x){c.push(x),d()},filter:function(x){return c=c.filter(x),r}}}};return s}function Ck(e){e===void 0&&(e={});var n=Ek(null);return n.options=_r({async:!0,ssr:!1},e),n}var E1=function(e){var n=e.sideCar,r=v1(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=n.read();if(!a)throw new Error("Sidecar medium not found");return Y.createElement(a,_r({},r))};E1.isSideCarExport=!0;function Sk(e,n){return e.useMedium(n),E1}var C1=Ck(),W0=function(){},ru=Y.forwardRef(function(e,n){var r=Y.useRef(null),a=Y.useState({onScrollCapture:W0,onWheelCapture:W0,onTouchMoveCapture:W0}),s=a[0],u=a[1],c=e.forwardProps,f=e.children,p=e.className,d=e.removeScrollBar,x=e.enabled,m=e.shards,y=e.sideCar,v=e.noRelative,b=e.noIsolation,E=e.inert,S=e.allowPinchZoom,w=e.as,k=w===void 0?"div":w,A=e.gapMode,D=v1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=y,R=vk([r,n]),z=_r(_r({},D),s);return Y.createElement(Y.Fragment,null,x&&Y.createElement(F,{sideCar:C1,removeScrollBar:d,shards:m,noRelative:v,noIsolation:b,inert:E,setCallbacks:u,allowPinchZoom:!!S,lockRef:r,gapMode:A}),c?Y.cloneElement(Y.Children.only(f),_r(_r({},z),{ref:R})):Y.createElement(k,_r({},z,{className:p,ref:R}),f))});ru.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ru.classNames={fullWidth:nu,zeroRight:tu};var wk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ak(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=wk();return n&&e.setAttribute("nonce",n),e}function _k(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function kk(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var Dk=function(){var e=0,n=null;return{add:function(r){e==0&&(n=Ak())&&(_k(n,r),kk(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},Bk=function(){var e=Dk();return function(n,r){Y.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},S1=function(){var e=Bk(),n=function(r){var a=r.styles,s=r.dynamic;return e(a,s),null};return n},Tk={left:0,top:0,right:0,gap:0},J0=function(e){return parseInt(e||"",10)||0},Rk=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],a=n[e==="padding"?"paddingTop":"marginTop"],s=n[e==="padding"?"paddingRight":"marginRight"];return[J0(r),J0(a),J0(s)]},Ok=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Tk;var n=Rk(e),r=document.documentElement.clientWidth,a=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,a-r+n[2]-n[0])}},zk=S1(),nl="data-scroll-locked",Nk=function(e,n,r,a){var s=e.left,u=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
188
+ .`.concat(mk,` {
189
+ overflow: hidden `).concat(a,`;
190
+ padding-right: `).concat(f,"px ").concat(a,`;
191
+ }
192
+ body[`).concat(nl,`] {
193
+ overflow: hidden `).concat(a,`;
194
+ overscroll-behavior: contain;
195
+ `).concat([n&&"position: relative ".concat(a,";"),r==="margin"&&`
196
+ padding-left: `.concat(s,`px;
197
+ padding-top: `).concat(u,`px;
198
+ padding-right: `).concat(c,`px;
199
+ margin-left:0;
200
+ margin-top:0;
201
+ margin-right: `).concat(f,"px ").concat(a,`;
202
+ `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(a,";")].filter(Boolean).join(""),`
203
+ }
204
+
205
+ .`).concat(tu,` {
206
+ right: `).concat(f,"px ").concat(a,`;
207
+ }
208
+
209
+ .`).concat(nu,` {
210
+ margin-right: `).concat(f,"px ").concat(a,`;
211
+ }
212
+
213
+ .`).concat(tu," .").concat(tu,` {
214
+ right: 0 `).concat(a,`;
215
+ }
216
+
217
+ .`).concat(nu," .").concat(nu,` {
218
+ margin-right: 0 `).concat(a,`;
219
+ }
220
+
221
+ body[`).concat(nl,`] {
222
+ `).concat(xk,": ").concat(f,`px;
223
+ }
224
+ `)},w1=function(){var e=parseInt(document.body.getAttribute(nl)||"0",10);return isFinite(e)?e:0},Fk=function(){Y.useEffect(function(){return document.body.setAttribute(nl,(w1()+1).toString()),function(){var e=w1()-1;e<=0?document.body.removeAttribute(nl):document.body.setAttribute(nl,e.toString())}},[])},Mk=function(e){var n=e.noRelative,r=e.noImportant,a=e.gapMode,s=a===void 0?"margin":a;Fk();var u=Y.useMemo(function(){return Ok(s)},[s]);return Y.createElement(zk,{styles:Nk(u,!n,s,r?"":"!important")})},ed=!1;if(typeof window<"u")try{var iu=Object.defineProperty({},"passive",{get:function(){return ed=!0,!0}});window.addEventListener("test",iu,iu),window.removeEventListener("test",iu,iu)}catch{ed=!1}var rl=ed?{passive:!1}:!1,Lk=function(e){return e.tagName==="TEXTAREA"},A1=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!Lk(e)&&r[n]==="visible")},Uk=function(e){return A1(e,"overflowY")},jk=function(e){return A1(e,"overflowX")},_1=function(e,n){var r=n.ownerDocument,a=n;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var s=k1(e,a);if(s){var u=D1(e,a),c=u[1],f=u[2];if(c>f)return!0}a=a.parentNode}while(a&&a!==r.body);return!1},Hk=function(e){var n=e.scrollTop,r=e.scrollHeight,a=e.clientHeight;return[n,r,a]},qk=function(e){var n=e.scrollLeft,r=e.scrollWidth,a=e.clientWidth;return[n,r,a]},k1=function(e,n){return e==="v"?Uk(n):jk(n)},D1=function(e,n){return e==="v"?Hk(n):qk(n)},Ik=function(e,n){return e==="h"&&n==="rtl"?-1:1},Pk=function(e,n,r,a,s){var u=Ik(e,window.getComputedStyle(n).direction),c=u*a,f=r.target,p=n.contains(f),d=!1,x=c>0,m=0,y=0;do{if(!f)break;var v=D1(e,f),b=v[0],E=v[1],S=v[2],w=E-S-u*b;(b||w)&&k1(e,f)&&(m+=w,y+=b);var k=f.parentNode;f=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!p&&f!==document.body||p&&(n.contains(f)||n===f));return(x&&Math.abs(m)<1||!x&&Math.abs(y)<1)&&(d=!0),d},au=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B1=function(e){return[e.deltaX,e.deltaY]},T1=function(e){return e&&"current"in e?e.current:e},Vk=function(e,n){return e[0]===n[0]&&e[1]===n[1]},Yk=function(e){return`
225
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
226
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
227
+ `)},Qk=0,il=[];function Xk(e){var n=Y.useRef([]),r=Y.useRef([0,0]),a=Y.useRef(),s=Y.useState(Qk++)[0],u=Y.useState(S1)[0],c=Y.useRef(e);Y.useEffect(function(){c.current=e},[e]),Y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var E=pk([e.lockRef.current],(e.shards||[]).map(T1),!0).filter(Boolean);return E.forEach(function(S){return S.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),E.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var f=Y.useCallback(function(E,S){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!c.current.allowPinchZoom;var w=au(E),k=r.current,A="deltaX"in E?E.deltaX:k[0]-w[0],D="deltaY"in E?E.deltaY:k[1]-w[1],F,R=E.target,z=Math.abs(A)>Math.abs(D)?"h":"v";if("touches"in E&&z==="h"&&R.type==="range")return!1;var M=window.getSelection(),X=M&&M.anchorNode,T=X?X===R||X.contains(R):!1;if(T)return!1;var j=_1(z,R);if(!j)return!0;if(j?F=z:(F=z==="v"?"h":"v",j=_1(z,R)),!j)return!1;if(!a.current&&"changedTouches"in E&&(A||D)&&(a.current=F),!F)return!0;var V=a.current||F;return Pk(V,S,E,V==="h"?A:D)},[]),p=Y.useCallback(function(E){var S=E;if(!(!il.length||il[il.length-1]!==u)){var w="deltaY"in S?B1(S):au(S),k=n.current.filter(function(F){return F.name===S.type&&(F.target===S.target||S.target===F.shadowParent)&&Vk(F.delta,w)})[0];if(k&&k.should){S.cancelable&&S.preventDefault();return}if(!k){var A=(c.current.shards||[]).map(T1).filter(Boolean).filter(function(F){return F.contains(S.target)}),D=A.length>0?f(S,A[0]):!c.current.noIsolation;D&&S.cancelable&&S.preventDefault()}}},[]),d=Y.useCallback(function(E,S,w,k){var A={name:E,delta:S,target:w,should:k,shadowParent:Gk(w)};n.current.push(A),setTimeout(function(){n.current=n.current.filter(function(D){return D!==A})},1)},[]),x=Y.useCallback(function(E){r.current=au(E),a.current=void 0},[]),m=Y.useCallback(function(E){d(E.type,B1(E),E.target,f(E,e.lockRef.current))},[]),y=Y.useCallback(function(E){d(E.type,au(E),E.target,f(E,e.lockRef.current))},[]);Y.useEffect(function(){return il.push(u),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",p,rl),document.addEventListener("touchmove",p,rl),document.addEventListener("touchstart",x,rl),function(){il=il.filter(function(E){return E!==u}),document.removeEventListener("wheel",p,rl),document.removeEventListener("touchmove",p,rl),document.removeEventListener("touchstart",x,rl)}},[]);var v=e.removeScrollBar,b=e.inert;return Y.createElement(Y.Fragment,null,b?Y.createElement(u,{styles:Yk(s)}):null,v?Y.createElement(Mk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Gk(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const Kk=Sk(C1,Xk);var R1=Y.forwardRef(function(e,n){return Y.createElement(ru,_r({},e,{ref:n,sideCar:Kk}))});R1.classNames=ru.classNames;var $k=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},al=new WeakMap,lu=new WeakMap,su={},td=0,O1=function(e){return e&&(e.host||O1(e.parentNode))},Zk=function(e,n){return n.map(function(r){if(e.contains(r))return r;var a=O1(r);return a&&e.contains(a)?a:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Wk=function(e,n,r,a){var s=Zk(n,Array.isArray(e)?e:[e]);su[r]||(su[r]=new WeakMap);var u=su[r],c=[],f=new Set,p=new Set(s),d=function(m){!m||f.has(m)||(f.add(m),d(m.parentNode))};s.forEach(d);var x=function(m){!m||p.has(m)||Array.prototype.forEach.call(m.children,function(y){if(f.has(y))x(y);else try{var v=y.getAttribute(a),b=v!==null&&v!=="false",E=(al.get(y)||0)+1,S=(u.get(y)||0)+1;al.set(y,E),u.set(y,S),c.push(y),E===1&&b&&lu.set(y,!0),S===1&&y.setAttribute(r,"true"),b||y.setAttribute(a,"true")}catch(w){console.error("aria-hidden: cannot operate on ",y,w)}})};return x(n),f.clear(),td++,function(){c.forEach(function(m){var y=al.get(m)-1,v=u.get(m)-1;al.set(m,y),u.set(m,v),y||(lu.has(m)||m.removeAttribute(a),lu.delete(m)),v||m.removeAttribute(r)}),td--,td||(al=new WeakMap,al=new WeakMap,lu=new WeakMap,su={})}},Jk=function(e,n,r){r===void 0&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),s=$k(e);return s?(a.push.apply(a,Array.from(s.querySelectorAll("[aria-live], script"))),Wk(a,s,r,"aria-hidden")):function(){return null}},ou="Dialog",[z1]=H_(ou),[eD,pr]=z1(ou),N1=e=>{const{__scopeDialog:n,children:r,open:a,defaultOpen:s,onOpenChange:u,modal:c=!0}=e,f=Y.useRef(null),p=Y.useRef(null),[d,x]=P_({prop:a,defaultProp:s??!1,onChange:u,caller:ou});return $.jsx(eD,{scope:n,triggerRef:f,contentRef:p,contentId:Q0(),titleId:Q0(),descriptionId:Q0(),open:d,onOpenChange:x,onOpenToggle:Y.useCallback(()=>x(m=>!m),[x]),modal:c,children:r})};N1.displayName=ou;var F1="DialogTrigger",tD=Y.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=pr(F1,r),u=da(n,s.triggerRef);return $.jsx(Ir.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":id(s.open),...a,ref:u,onClick:vi(e.onClick,s.onOpenToggle)})});tD.displayName=F1;var nd="DialogPortal",[nD,M1]=z1(nd,{forceMount:void 0}),L1=e=>{const{__scopeDialog:n,forceMount:r,children:a,container:s}=e,u=pr(nd,n);return $.jsx(nD,{scope:n,forceMount:r,children:Y.Children.map(a,c=>$.jsx(Jo,{present:r||u.open,children:$.jsx(g1,{asChild:!0,container:s,children:c})}))})};L1.displayName=nd;var uu="DialogOverlay",U1=Y.forwardRef((e,n)=>{const r=M1(uu,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,u=pr(uu,e.__scopeDialog);return u.modal?$.jsx(Jo,{present:a||u.open,children:$.jsx(iD,{...s,ref:n})}):null});U1.displayName=uu;var rD=a1("DialogOverlay.RemoveScroll"),iD=Y.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=pr(uu,r);return $.jsx(R1,{as:rD,allowPinchZoom:!0,shards:[s.contentRef],children:$.jsx(Ir.div,{"data-state":id(s.open),...a,ref:n,style:{pointerEvents:"auto",...a.style}})})}),ha="DialogContent",j1=Y.forwardRef((e,n)=>{const r=M1(ha,e.__scopeDialog),{forceMount:a=r.forceMount,...s}=e,u=pr(ha,e.__scopeDialog);return $.jsx(Jo,{present:a||u.open,children:u.modal?$.jsx(aD,{...s,ref:n}):$.jsx(lD,{...s,ref:n})})});j1.displayName=ha;var aD=Y.forwardRef((e,n)=>{const r=pr(ha,e.__scopeDialog),a=Y.useRef(null),s=da(n,r.contentRef,a);return Y.useEffect(()=>{const u=a.current;if(u)return Jk(u)},[]),$.jsx(H1,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:vi(e.onCloseAutoFocus,u=>{var c;u.preventDefault(),(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:vi(e.onPointerDownOutside,u=>{const c=u.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&u.preventDefault()}),onFocusOutside:vi(e.onFocusOutside,u=>u.preventDefault())})}),lD=Y.forwardRef((e,n)=>{const r=pr(ha,e.__scopeDialog),a=Y.useRef(!1),s=Y.useRef(!1);return $.jsx(H1,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,f;(c=e.onCloseAutoFocus)==null||c.call(e,u),u.defaultPrevented||(a.current||(f=r.triggerRef.current)==null||f.focus(),u.preventDefault()),a.current=!1,s.current=!1},onInteractOutside:u=>{var p,d;(p=e.onInteractOutside)==null||p.call(e,u),u.defaultPrevented||(a.current=!0,u.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=u.target;((d=r.triggerRef.current)==null?void 0:d.contains(c))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&s.current&&u.preventDefault()}})}),H1=Y.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:a,onOpenAutoFocus:s,onCloseAutoFocus:u,...c}=e,f=pr(ha,r),p=Y.useRef(null),d=da(n,p);return hk(),$.jsxs($.Fragment,{children:[$.jsx(d1,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:s,onUnmountAutoFocus:u,children:$.jsx(o1,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":id(f.open),...c,ref:d,onDismiss:()=>f.onOpenChange(!1)})}),$.jsxs($.Fragment,{children:[$.jsx(uD,{titleId:f.titleId}),$.jsx(fD,{contentRef:p,descriptionId:f.descriptionId})]})]})}),rd="DialogTitle",sD=Y.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=pr(rd,r);return $.jsx(Ir.h2,{id:s.titleId,...a,ref:n})});sD.displayName=rd;var q1="DialogDescription",oD=Y.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=pr(q1,r);return $.jsx(Ir.p,{id:s.descriptionId,...a,ref:n})});oD.displayName=q1;var I1="DialogClose",P1=Y.forwardRef((e,n)=>{const{__scopeDialog:r,...a}=e,s=pr(I1,r);return $.jsx(Ir.button,{type:"button",...a,ref:n,onClick:vi(e.onClick,()=>s.onOpenChange(!1))})});P1.displayName=I1;function id(e){return e?"open":"closed"}var V1="DialogTitleWarning",[tz,Y1]=j_(V1,{contentName:ha,titleName:rd,docsSlug:"dialog"}),uD=({titleId:e})=>{const n=Y1(V1),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
228
+
229
+ If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
230
+
231
+ For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return Y.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},cD="DialogDescriptionWarning",fD=({contentRef:e,descriptionId:n})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Y1(cD).contentName}}.`;return Y.useEffect(()=>{var u;const s=(u=e.current)==null?void 0:u.getAttribute("aria-describedby");n&&s&&(document.getElementById(n)||console.warn(a))},[a,e,n]),null},dD=N1,hD=L1,pD=U1,mD=j1,xD=P1;function Q1(...e){return $g(Og(e))}function gD({...e}){return $.jsx(dD,{"data-slot":"dialog",...e})}function yD({...e}){return $.jsx(hD,{"data-slot":"dialog-portal",...e})}function vD({className:e,...n}){return $.jsx(pD,{"data-slot":"dialog-overlay",className:Q1("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",e),...n})}function bD({className:e,children:n,showCloseButton:r=!0,...a}){return $.jsxs(yD,{"data-slot":"dialog-portal",children:[$.jsx(vD,{}),$.jsxs(mD,{"data-slot":"dialog-content",className:Q1("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",e),...a,children:[n,r&&$.jsxs(xD,{"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:[$.jsx(zo,{}),$.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function ED({file:e,onClose:n}){return $.jsx(gD,{open:!!e,onOpenChange:r=>!r&&n(),children:$.jsx(bD,{className:"sm:max-w-xl p-0 overflow-hidden bg-transparent border-none shadow-none text-white",children:$.jsxs("div",{className:"relative flex items-center justify-center w-full h-full min-h-[300px]",children:[$.jsx("button",{onClick:n,className:"absolute top-2 right-2 p-2 bg-black/50 text-white rounded-full hover:bg-black/70 z-50",children:$.jsx(zo,{className:"w-4 h-4"})}),e&&e.type.startsWith("image/")&&$.jsx("img",{src:URL.createObjectURL(e),alt:"preview",className:"max-w-full max-h-[80vh] object-contain rounded-lg"}),e&&e.type.startsWith("video/")&&$.jsx("video",{src:URL.createObjectURL(e),controls:!0,className:"max-w-full max-h-[80vh] rounded-lg"}),e&&!e.type.startsWith("image/")&&!e.type.startsWith("video/")&&$.jsxs("div",{className:"bg-white p-8 rounded-lg flex flex-col items-center gap-4 text-slate-800 min-w-[300px]",children:[$.jsx("div",{className:"w-20 h-20 rounded-lg bg-slate-100 flex items-center justify-center",children:$.jsx(Oo,{className:"w-10 h-10 text-slate-500"})}),$.jsxs("div",{className:"text-center",children:[$.jsx("h3",{className:"font-medium text-lg truncate max-w-[250px]",children:e.name}),$.jsxs("p",{className:"text-sm text-slate-500",children:[(e.size/1024/1024).toFixed(2)," MB"]})]})]})]})})})}function CD({messages:e,onSendMessage:n,isSending:r,onClose:a,className:s,style:u,config:c}){const[f,p]=Y.useState(null);return $.jsxs("div",{className:`fixed inset-0 w-full h-full md:inset-auto md:bottom-4 md:right-4 md:w-96 md:h-[500px] flex flex-col border-none md:border md:border-gray-200 rounded-none md:rounded-lg shadow-none md:shadow-xl overflow-hidden font-sans z-50 ${s||""}`,style:{...u},children:[$.jsx(eS,{config:c,onClose:a}),$.jsx(r_,{messages:e,isSending:r,config:c}),$.jsx(R_,{onSendMessage:n,isSending:r,config:c,onPreviewFile:p}),$.jsx(ED,{file:f,onClose:()=>p(null)})]})}function X1(e,n){return function(){return e.apply(n,arguments)}}const{toString:SD}=Object.prototype,{getPrototypeOf:ad}=Object,{iterator:cu,toStringTag:G1}=Symbol,fu=(e=>n=>{const r=SD.call(n);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),mr=e=>(e=e.toLowerCase(),n=>fu(n)===e),du=e=>n=>typeof n===e,{isArray:ll}=Array,sl=du("undefined");function Ss(e){return e!==null&&!sl(e)&&e.constructor!==null&&!sl(e.constructor)&&wn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const K1=mr("ArrayBuffer");function wD(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&K1(e.buffer),n}const AD=du("string"),wn=du("function"),$1=du("number"),ws=e=>e!==null&&typeof e=="object",_D=e=>e===!0||e===!1,hu=e=>{if(fu(e)!=="object")return!1;const n=ad(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(G1 in e)&&!(cu in e)},kD=e=>{if(!ws(e)||Ss(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},DD=mr("Date"),BD=mr("File"),TD=mr("Blob"),RD=mr("FileList"),OD=e=>ws(e)&&wn(e.pipe),zD=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||wn(e.append)&&((n=fu(e))==="formdata"||n==="object"&&wn(e.toString)&&e.toString()==="[object FormData]"))},ND=mr("URLSearchParams"),[FD,MD,LD,UD]=["ReadableStream","Request","Response","Headers"].map(mr),jD=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function As(e,n,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,s;if(typeof e!="object"&&(e=[e]),ll(e))for(a=0,s=e.length;a<s;a++)n.call(null,e[a],a,e);else{if(Ss(e))return;const u=r?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;let f;for(a=0;a<c;a++)f=u[a],n.call(null,e[f],f,e)}}function Z1(e,n){if(Ss(e))return null;n=n.toLowerCase();const r=Object.keys(e);let a=r.length,s;for(;a-- >0;)if(s=r[a],n===s.toLowerCase())return s;return null}const pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,W1=e=>!sl(e)&&e!==pa;function ld(){const{caseless:e,skipUndefined:n}=W1(this)&&this||{},r={},a=(s,u)=>{if(u==="__proto__"||u==="constructor"||u==="prototype")return;const c=e&&Z1(r,u)||u;hu(r[c])&&hu(s)?r[c]=ld(r[c],s):hu(s)?r[c]=ld({},s):ll(s)?r[c]=s.slice():(!n||!sl(s))&&(r[c]=s)};for(let s=0,u=arguments.length;s<u;s++)arguments[s]&&As(arguments[s],a);return r}const HD=(e,n,r,{allOwnKeys:a}={})=>(As(n,(s,u)=>{r&&wn(s)?Object.defineProperty(e,u,{value:X1(s,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,u,{value:s,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),qD=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ID=(e,n,r,a)=>{e.prototype=Object.create(n.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:n.prototype}),r&&Object.assign(e.prototype,r)},PD=(e,n,r,a)=>{let s,u,c;const f={};if(n=n||{},e==null)return n;do{for(s=Object.getOwnPropertyNames(e),u=s.length;u-- >0;)c=s[u],(!a||a(c,e,n))&&!f[c]&&(n[c]=e[c],f[c]=!0);e=r!==!1&&ad(e)}while(e&&(!r||r(e,n))&&e!==Object.prototype);return n},VD=(e,n,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=n.length;const a=e.indexOf(n,r);return a!==-1&&a===r},YD=e=>{if(!e)return null;if(ll(e))return e;let n=e.length;if(!$1(n))return null;const r=new Array(n);for(;n-- >0;)r[n]=e[n];return r},QD=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&ad(Uint8Array)),XD=(e,n)=>{const a=(e&&e[cu]).call(e);let s;for(;(s=a.next())&&!s.done;){const u=s.value;n.call(e,u[0],u[1])}},GD=(e,n)=>{let r;const a=[];for(;(r=e.exec(n))!==null;)a.push(r);return a},KD=mr("HTMLFormElement"),$D=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,s){return a.toUpperCase()+s}),J1=(({hasOwnProperty:e})=>(n,r)=>e.call(n,r))(Object.prototype),ZD=mr("RegExp"),ey=(e,n)=>{const r=Object.getOwnPropertyDescriptors(e),a={};As(r,(s,u)=>{let c;(c=n(s,u,e))!==!1&&(a[u]=c||s)}),Object.defineProperties(e,a)},WD=e=>{ey(e,(n,r)=>{if(wn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(wn(a)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},JD=(e,n)=>{const r={},a=s=>{s.forEach(u=>{r[u]=!0})};return ll(e)?a(e):a(String(e).split(n)),r},eB=()=>{},tB=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function nB(e){return!!(e&&wn(e.append)&&e[G1]==="FormData"&&e[cu])}const rB=e=>{const n=new Array(10),r=(a,s)=>{if(ws(a)){if(n.indexOf(a)>=0)return;if(Ss(a))return a;if(!("toJSON"in a)){n[s]=a;const u=ll(a)?[]:{};return As(a,(c,f)=>{const p=r(c,s+1);!sl(p)&&(u[f]=p)}),n[s]=void 0,u}}return a};return r(e,0)},iB=mr("AsyncFunction"),aB=e=>e&&(ws(e)||wn(e))&&wn(e.then)&&wn(e.catch),ty=((e,n)=>e?setImmediate:n?((r,a)=>(pa.addEventListener("message",({source:s,data:u})=>{s===pa&&u===r&&a.length&&a.shift()()},!1),s=>{a.push(s),pa.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",wn(pa.postMessage)),lB=typeof queueMicrotask<"u"?queueMicrotask.bind(pa):typeof process<"u"&&process.nextTick||ty,ne={isArray:ll,isArrayBuffer:K1,isBuffer:Ss,isFormData:zD,isArrayBufferView:wD,isString:AD,isNumber:$1,isBoolean:_D,isObject:ws,isPlainObject:hu,isEmptyObject:kD,isReadableStream:FD,isRequest:MD,isResponse:LD,isHeaders:UD,isUndefined:sl,isDate:DD,isFile:BD,isBlob:TD,isRegExp:ZD,isFunction:wn,isStream:OD,isURLSearchParams:ND,isTypedArray:QD,isFileList:RD,forEach:As,merge:ld,extend:HD,trim:jD,stripBOM:qD,inherits:ID,toFlatObject:PD,kindOf:fu,kindOfTest:mr,endsWith:VD,toArray:YD,forEachEntry:XD,matchAll:GD,isHTMLForm:KD,hasOwnProperty:J1,hasOwnProp:J1,reduceDescriptors:ey,freezeMethods:WD,toObjectSet:JD,toCamelCase:$D,noop:eB,toFiniteNumber:tB,findKey:Z1,global:pa,isContextDefined:W1,isSpecCompliantForm:nB,toJSONObject:rB,isAsyncFn:iB,isThenable:aB,setImmediate:ty,asap:lB,isIterable:e=>e!=null&&wn(e[cu])};let ke=class I4 extends Error{static from(n,r,a,s,u,c){const f=new I4(n.message,r||n.code,a,s,u);return f.cause=n,f.name=n.name,c&&Object.assign(f,c),f}constructor(n,r,a,s,u){super(n),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),a&&(this.config=a),s&&(this.request=s),u&&(this.response=u,this.status=u.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.status}}};ke.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ke.ERR_BAD_OPTION="ERR_BAD_OPTION",ke.ECONNABORTED="ECONNABORTED",ke.ETIMEDOUT="ETIMEDOUT",ke.ERR_NETWORK="ERR_NETWORK",ke.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ke.ERR_DEPRECATED="ERR_DEPRECATED",ke.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ke.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ke.ERR_CANCELED="ERR_CANCELED",ke.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ke.ERR_INVALID_URL="ERR_INVALID_URL";const sB=null;function sd(e){return ne.isPlainObject(e)||ne.isArray(e)}function ny(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ry(e,n,r){return e?e.concat(n).map(function(s,u){return s=ny(s),!r&&u?"["+s+"]":s}).join(r?".":""):n}function oB(e){return ne.isArray(e)&&!e.some(sd)}const uB=ne.toFlatObject(ne,{},null,function(n){return/^is[A-Z]/.test(n)});function pu(e,n,r){if(!ne.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,r=ne.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,S){return!ne.isUndefined(S[E])});const a=r.metaTokens,s=r.visitor||x,u=r.dots,c=r.indexes,p=(r.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(n);if(!ne.isFunction(s))throw new TypeError("visitor must be a function");function d(b){if(b===null)return"";if(ne.isDate(b))return b.toISOString();if(ne.isBoolean(b))return b.toString();if(!p&&ne.isBlob(b))throw new ke("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(b)||ne.isTypedArray(b)?p&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function x(b,E,S){let w=b;if(b&&!S&&typeof b=="object"){if(ne.endsWith(E,"{}"))E=a?E:E.slice(0,-2),b=JSON.stringify(b);else if(ne.isArray(b)&&oB(b)||(ne.isFileList(b)||ne.endsWith(E,"[]"))&&(w=ne.toArray(b)))return E=ny(E),w.forEach(function(A,D){!(ne.isUndefined(A)||A===null)&&n.append(c===!0?ry([E],D,u):c===null?E:E+"[]",d(A))}),!1}return sd(b)?!0:(n.append(ry(S,E,u),d(b)),!1)}const m=[],y=Object.assign(uB,{defaultVisitor:x,convertValue:d,isVisitable:sd});function v(b,E){if(!ne.isUndefined(b)){if(m.indexOf(b)!==-1)throw Error("Circular reference detected in "+E.join("."));m.push(b),ne.forEach(b,function(w,k){(!(ne.isUndefined(w)||w===null)&&s.call(n,w,ne.isString(k)?k.trim():k,E,y))===!0&&v(w,E?E.concat(k):[k])}),m.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return v(e),n}function iy(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return n[a]})}function od(e,n){this._pairs=[],e&&pu(e,this,n)}const ay=od.prototype;ay.append=function(n,r){this._pairs.push([n,r])},ay.toString=function(n){const r=n?function(a){return n.call(this,a,iy)}:iy;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function cB(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ly(e,n,r){if(!n)return e;const a=r&&r.encode||cB,s=ne.isFunction(r)?{serialize:r}:r,u=s&&s.serialize;let c;if(u?c=u(n,s):c=ne.isURLSearchParams(n)?n.toString():new od(n,s).toString(a),c){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class sy{constructor(){this.handlers=[]}use(n,r,a){return this.handlers.push({fulfilled:n,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){ne.forEach(this.handlers,function(a){a!==null&&n(a)})}}const ud={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},fB={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:od,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},cd=typeof window<"u"&&typeof document<"u",fd=typeof navigator=="object"&&navigator||void 0,dB=cd&&(!fd||["ReactNative","NativeScript","NS"].indexOf(fd.product)<0),hB=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pB=cd&&window.location.href||"http://localhost",cn={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cd,hasStandardBrowserEnv:dB,hasStandardBrowserWebWorkerEnv:hB,navigator:fd,origin:pB},Symbol.toStringTag,{value:"Module"})),...fB};function mB(e,n){return pu(e,new cn.classes.URLSearchParams,{visitor:function(r,a,s,u){return cn.isNode&&ne.isBuffer(r)?(this.append(a,r.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...n})}function xB(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function gB(e){const n={},r=Object.keys(e);let a;const s=r.length;let u;for(a=0;a<s;a++)u=r[a],n[u]=e[u];return n}function oy(e){function n(r,a,s,u){let c=r[u++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),p=u>=r.length;return c=!c&&ne.isArray(s)?s.length:c,p?(ne.hasOwnProp(s,c)?s[c]=[s[c],a]:s[c]=a,!f):((!s[c]||!ne.isObject(s[c]))&&(s[c]=[]),n(r,a,s[c],u)&&ne.isArray(s[c])&&(s[c]=gB(s[c])),!f)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const r={};return ne.forEachEntry(e,(a,s)=>{n(xB(a),s,r,0)}),r}return null}function yB(e,n,r){if(ne.isString(e))try{return(n||JSON.parse)(e),ne.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const _s={transitional:ud,adapter:["xhr","http","fetch"],transformRequest:[function(n,r){const a=r.getContentType()||"",s=a.indexOf("application/json")>-1,u=ne.isObject(n);if(u&&ne.isHTMLForm(n)&&(n=new FormData(n)),ne.isFormData(n))return s?JSON.stringify(oy(n)):n;if(ne.isArrayBuffer(n)||ne.isBuffer(n)||ne.isStream(n)||ne.isFile(n)||ne.isBlob(n)||ne.isReadableStream(n))return n;if(ne.isArrayBufferView(n))return n.buffer;if(ne.isURLSearchParams(n))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(u){if(a.indexOf("application/x-www-form-urlencoded")>-1)return mB(n,this.formSerializer).toString();if((f=ne.isFileList(n))||a.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return pu(f?{"files[]":n}:n,p&&new p,this.formSerializer)}}return u||s?(r.setContentType("application/json",!1),yB(n)):n}],transformResponse:[function(n){const r=this.transitional||_s.transitional,a=r&&r.forcedJSONParsing,s=this.responseType==="json";if(ne.isResponse(n)||ne.isReadableStream(n))return n;if(n&&ne.isString(n)&&(a&&!this.responseType||s)){const c=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(n,this.parseReviver)}catch(f){if(c)throw f.name==="SyntaxError"?ke.from(f,ke.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cn.classes.FormData,Blob:cn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{_s.headers[e]={}});const vB=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bB=e=>{const n={};let r,a,s;return e&&e.split(`
232
+ `).forEach(function(c){s=c.indexOf(":"),r=c.substring(0,s).trim().toLowerCase(),a=c.substring(s+1).trim(),!(!r||n[r]&&vB[r])&&(r==="set-cookie"?n[r]?n[r].push(a):n[r]=[a]:n[r]=n[r]?n[r]+", "+a:a)}),n},uy=Symbol("internals");function ks(e){return e&&String(e).trim().toLowerCase()}function mu(e){return e===!1||e==null?e:ne.isArray(e)?e.map(mu):String(e)}function EB(e){const n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)n[a[1]]=a[2];return n}const CB=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function dd(e,n,r,a,s){if(ne.isFunction(a))return a.call(this,n,r);if(s&&(n=r),!!ne.isString(n)){if(ne.isString(a))return n.indexOf(a)!==-1;if(ne.isRegExp(a))return a.test(n)}}function SB(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,r,a)=>r.toUpperCase()+a)}function wB(e,n){const r=ne.toCamelCase(" "+n);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(s,u,c){return this[a].call(this,n,s,u,c)},configurable:!0})})}let An=class{constructor(n){n&&this.set(n)}set(n,r,a){const s=this;function u(f,p,d){const x=ks(p);if(!x)throw new Error("header name must be a non-empty string");const m=ne.findKey(s,x);(!m||s[m]===void 0||d===!0||d===void 0&&s[m]!==!1)&&(s[m||p]=mu(f))}const c=(f,p)=>ne.forEach(f,(d,x)=>u(d,x,p));if(ne.isPlainObject(n)||n instanceof this.constructor)c(n,r);else if(ne.isString(n)&&(n=n.trim())&&!CB(n))c(bB(n),r);else if(ne.isObject(n)&&ne.isIterable(n)){let f={},p,d;for(const x of n){if(!ne.isArray(x))throw TypeError("Object iterator must return a key-value pair");f[d=x[0]]=(p=f[d])?ne.isArray(p)?[...p,x[1]]:[p,x[1]]:x[1]}c(f,r)}else n!=null&&u(r,n,a);return this}get(n,r){if(n=ks(n),n){const a=ne.findKey(this,n);if(a){const s=this[a];if(!r)return s;if(r===!0)return EB(s);if(ne.isFunction(r))return r.call(this,s,a);if(ne.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,r){if(n=ks(n),n){const a=ne.findKey(this,n);return!!(a&&this[a]!==void 0&&(!r||dd(this,this[a],a,r)))}return!1}delete(n,r){const a=this;let s=!1;function u(c){if(c=ks(c),c){const f=ne.findKey(a,c);f&&(!r||dd(a,a[f],f,r))&&(delete a[f],s=!0)}}return ne.isArray(n)?n.forEach(u):u(n),s}clear(n){const r=Object.keys(this);let a=r.length,s=!1;for(;a--;){const u=r[a];(!n||dd(this,this[u],u,n,!0))&&(delete this[u],s=!0)}return s}normalize(n){const r=this,a={};return ne.forEach(this,(s,u)=>{const c=ne.findKey(a,u);if(c){r[c]=mu(s),delete r[u];return}const f=n?SB(u):String(u).trim();f!==u&&delete r[u],r[f]=mu(s),a[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const r=Object.create(null);return ne.forEach(this,(a,s)=>{a!=null&&a!==!1&&(r[s]=n&&ne.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,r])=>n+": "+r).join(`
233
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...r){const a=new this(n);return r.forEach(s=>a.set(s)),a}static accessor(n){const a=(this[uy]=this[uy]={accessors:{}}).accessors,s=this.prototype;function u(c){const f=ks(c);a[f]||(wB(s,c),a[f]=!0)}return ne.isArray(n)?n.forEach(u):u(n),this}};An.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(An.prototype,({value:e},n)=>{let r=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(a){this[r]=a}}}),ne.freezeMethods(An);function hd(e,n){const r=this||_s,a=n||r,s=An.from(a.headers);let u=a.data;return ne.forEach(e,function(f){u=f.call(r,u,s.normalize(),n?n.status:void 0)}),s.normalize(),u}function cy(e){return!!(e&&e.__CANCEL__)}let Ds=class extends ke{constructor(n,r,a){super(n??"canceled",ke.ERR_CANCELED,r,a),this.name="CanceledError",this.__CANCEL__=!0}};function fy(e,n,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):n(new ke("Request failed with status code "+r.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function AB(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function _B(e,n){e=e||10;const r=new Array(e),a=new Array(e);let s=0,u=0,c;return n=n!==void 0?n:1e3,function(p){const d=Date.now(),x=a[u];c||(c=d),r[s]=p,a[s]=d;let m=u,y=0;for(;m!==s;)y+=r[m++],m=m%e;if(s=(s+1)%e,s===u&&(u=(u+1)%e),d-c<n)return;const v=x&&d-x;return v?Math.round(y*1e3/v):void 0}}function kB(e,n){let r=0,a=1e3/n,s,u;const c=(d,x=Date.now())=>{r=x,s=null,u&&(clearTimeout(u),u=null),e(...d)};return[(...d)=>{const x=Date.now(),m=x-r;m>=a?c(d,x):(s=d,u||(u=setTimeout(()=>{u=null,c(s)},a-m)))},()=>s&&c(s)]}const xu=(e,n,r=3)=>{let a=0;const s=_B(50,250);return kB(u=>{const c=u.loaded,f=u.lengthComputable?u.total:void 0,p=c-a,d=s(p),x=c<=f;a=c;const m={loaded:c,total:f,progress:f?c/f:void 0,bytes:p,rate:d||void 0,estimated:d&&f&&x?(f-c)/d:void 0,event:u,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(m)},r)},dy=(e,n)=>{const r=e!=null;return[a=>n[0]({lengthComputable:r,total:e,loaded:a}),n[1]]},hy=e=>(...n)=>ne.asap(()=>e(...n)),DB=cn.hasStandardBrowserEnv?((e,n)=>r=>(r=new URL(r,cn.origin),e.protocol===r.protocol&&e.host===r.host&&(n||e.port===r.port)))(new URL(cn.origin),cn.navigator&&/(msie|trident)/i.test(cn.navigator.userAgent)):()=>!0,BB=cn.hasStandardBrowserEnv?{write(e,n,r,a,s,u,c){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(n)}`];ne.isNumber(r)&&f.push(`expires=${new Date(r).toUTCString()}`),ne.isString(a)&&f.push(`path=${a}`),ne.isString(s)&&f.push(`domain=${s}`),u===!0&&f.push("secure"),ne.isString(c)&&f.push(`SameSite=${c}`),document.cookie=f.join("; ")},read(e){if(typeof document>"u")return null;const n=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function TB(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RB(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function py(e,n,r){let a=!TB(n);return e&&(a||r==!1)?RB(e,n):n}const my=e=>e instanceof An?{...e}:e;function ma(e,n){n=n||{};const r={};function a(d,x,m,y){return ne.isPlainObject(d)&&ne.isPlainObject(x)?ne.merge.call({caseless:y},d,x):ne.isPlainObject(x)?ne.merge({},x):ne.isArray(x)?x.slice():x}function s(d,x,m,y){if(ne.isUndefined(x)){if(!ne.isUndefined(d))return a(void 0,d,m,y)}else return a(d,x,m,y)}function u(d,x){if(!ne.isUndefined(x))return a(void 0,x)}function c(d,x){if(ne.isUndefined(x)){if(!ne.isUndefined(d))return a(void 0,d)}else return a(void 0,x)}function f(d,x,m){if(m in n)return a(d,x);if(m in e)return a(void 0,d)}const p={url:u,method:u,data:u,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:f,headers:(d,x,m)=>s(my(d),my(x),m,!0)};return ne.forEach(Object.keys({...e,...n}),function(x){if(x==="__proto__"||x==="constructor"||x==="prototype")return;const m=ne.hasOwnProp(p,x)?p[x]:s,y=m(e[x],n[x],x);ne.isUndefined(y)&&m!==f||(r[x]=y)}),r}const xy=e=>{const n=ma({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:s,xsrfCookieName:u,headers:c,auth:f}=n;if(n.headers=c=An.from(c),n.url=ly(py(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),ne.isFormData(r)){if(cn.hasStandardBrowserEnv||cn.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(ne.isFunction(r.getHeaders)){const p=r.getHeaders(),d=["content-type","content-length"];Object.entries(p).forEach(([x,m])=>{d.includes(x.toLowerCase())&&c.set(x,m)})}}if(cn.hasStandardBrowserEnv&&(a&&ne.isFunction(a)&&(a=a(n)),a||a!==!1&&DB(n.url))){const p=s&&u&&BB.read(u);p&&c.set(s,p)}return n},OB=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,a){const s=xy(e);let u=s.data;const c=An.from(s.headers).normalize();let{responseType:f,onUploadProgress:p,onDownloadProgress:d}=s,x,m,y,v,b;function E(){v&&v(),b&&b(),s.cancelToken&&s.cancelToken.unsubscribe(x),s.signal&&s.signal.removeEventListener("abort",x)}let S=new XMLHttpRequest;S.open(s.method.toUpperCase(),s.url,!0),S.timeout=s.timeout;function w(){if(!S)return;const A=An.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),F={data:!f||f==="text"||f==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:A,config:e,request:S};fy(function(z){r(z),E()},function(z){a(z),E()},F),S=null}"onloadend"in S?S.onloadend=w:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(w)},S.onabort=function(){S&&(a(new ke("Request aborted",ke.ECONNABORTED,e,S)),S=null)},S.onerror=function(D){const F=D&&D.message?D.message:"Network Error",R=new ke(F,ke.ERR_NETWORK,e,S);R.event=D||null,a(R),S=null},S.ontimeout=function(){let D=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const F=s.transitional||ud;s.timeoutErrorMessage&&(D=s.timeoutErrorMessage),a(new ke(D,F.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,S)),S=null},u===void 0&&c.setContentType(null),"setRequestHeader"in S&&ne.forEach(c.toJSON(),function(D,F){S.setRequestHeader(F,D)}),ne.isUndefined(s.withCredentials)||(S.withCredentials=!!s.withCredentials),f&&f!=="json"&&(S.responseType=s.responseType),d&&([y,b]=xu(d,!0),S.addEventListener("progress",y)),p&&S.upload&&([m,v]=xu(p),S.upload.addEventListener("progress",m),S.upload.addEventListener("loadend",v)),(s.cancelToken||s.signal)&&(x=A=>{S&&(a(!A||A.type?new Ds(null,e,S):A),S.abort(),S=null)},s.cancelToken&&s.cancelToken.subscribe(x),s.signal&&(s.signal.aborted?x():s.signal.addEventListener("abort",x)));const k=AB(s.url);if(k&&cn.protocols.indexOf(k)===-1){a(new ke("Unsupported protocol "+k+":",ke.ERR_BAD_REQUEST,e));return}S.send(u||null)})},zB=(e,n)=>{const{length:r}=e=e?e.filter(Boolean):[];if(n||r){let a=new AbortController,s;const u=function(d){if(!s){s=!0,f();const x=d instanceof Error?d:this.reason;a.abort(x instanceof ke?x:new Ds(x instanceof Error?x.message:x))}};let c=n&&setTimeout(()=>{c=null,u(new ke(`timeout of ${n}ms exceeded`,ke.ETIMEDOUT))},n);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(u):d.removeEventListener("abort",u)}),e=null)};e.forEach(d=>d.addEventListener("abort",u));const{signal:p}=a;return p.unsubscribe=()=>ne.asap(f),p}},NB=function*(e,n){let r=e.byteLength;if(r<n){yield e;return}let a=0,s;for(;a<r;)s=a+n,yield e.slice(a,s),a=s},FB=async function*(e,n){for await(const r of MB(e))yield*NB(r,n)},MB=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:r,value:a}=await n.read();if(r)break;yield a}}finally{await n.cancel()}},gy=(e,n,r,a)=>{const s=FB(e,n);let u=0,c,f=p=>{c||(c=!0,a&&a(p))};return new ReadableStream({async pull(p){try{const{done:d,value:x}=await s.next();if(d){f(),p.close();return}let m=x.byteLength;if(r){let y=u+=m;r(y)}p.enqueue(new Uint8Array(x))}catch(d){throw f(d),d}},cancel(p){return f(p),s.return()}},{highWaterMark:2})},yy=64*1024,{isFunction:gu}=ne,LB=(({Request:e,Response:n})=>({Request:e,Response:n}))(ne.global),{ReadableStream:vy,TextEncoder:by}=ne.global,Ey=(e,...n)=>{try{return!!e(...n)}catch{return!1}},UB=e=>{e=ne.merge.call({skipUndefined:!0},LB,e);const{fetch:n,Request:r,Response:a}=e,s=n?gu(n):typeof fetch=="function",u=gu(r),c=gu(a);if(!s)return!1;const f=s&&gu(vy),p=s&&(typeof by=="function"?(b=>E=>b.encode(E))(new by):async b=>new Uint8Array(await new r(b).arrayBuffer())),d=u&&f&&Ey(()=>{let b=!1;const E=new r(cn.origin,{body:new vy,method:"POST",get duplex(){return b=!0,"half"}}).headers.has("Content-Type");return b&&!E}),x=c&&f&&Ey(()=>ne.isReadableStream(new a("").body)),m={stream:x&&(b=>b.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!m[b]&&(m[b]=(E,S)=>{let w=E&&E[b];if(w)return w.call(E);throw new ke(`Response type '${b}' is not supported`,ke.ERR_NOT_SUPPORT,S)})});const y=async b=>{if(b==null)return 0;if(ne.isBlob(b))return b.size;if(ne.isSpecCompliantForm(b))return(await new r(cn.origin,{method:"POST",body:b}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(b)||ne.isArrayBuffer(b))return b.byteLength;if(ne.isURLSearchParams(b)&&(b=b+""),ne.isString(b))return(await p(b)).byteLength},v=async(b,E)=>{const S=ne.toFiniteNumber(b.getContentLength());return S??y(E)};return async b=>{let{url:E,method:S,data:w,signal:k,cancelToken:A,timeout:D,onDownloadProgress:F,onUploadProgress:R,responseType:z,headers:M,withCredentials:X="same-origin",fetchOptions:T}=xy(b),j=n||fetch;z=z?(z+"").toLowerCase():"text";let V=zB([k,A&&A.toAbortSignal()],D),G=null;const ie=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let J;try{if(R&&d&&S!=="get"&&S!=="head"&&(J=await v(M,w))!==0){let O=new r(E,{method:"POST",body:w,duplex:"half"}),U;if(ne.isFormData(w)&&(U=O.headers.get("content-type"))&&M.setContentType(U),O.body){const[_,I]=dy(J,xu(hy(R)));w=gy(O.body,yy,_,I)}}ne.isString(X)||(X=X?"include":"omit");const L=u&&"credentials"in r.prototype,te={...T,signal:V,method:S.toUpperCase(),headers:M.normalize().toJSON(),body:w,duplex:"half",credentials:L?X:void 0};G=u&&new r(E,te);let W=await(u?j(G,T):j(E,te));const me=x&&(z==="stream"||z==="response");if(x&&(F||me&&ie)){const O={};["status","statusText","headers"].forEach(ue=>{O[ue]=W[ue]});const U=ne.toFiniteNumber(W.headers.get("content-length")),[_,I]=F&&dy(U,xu(hy(F),!0))||[];W=new a(gy(W.body,yy,_,()=>{I&&I(),ie&&ie()}),O)}z=z||"text";let N=await m[ne.findKey(m,z)||"text"](W,b);return!me&&ie&&ie(),await new Promise((O,U)=>{fy(O,U,{data:N,headers:An.from(W.headers),status:W.status,statusText:W.statusText,config:b,request:G})})}catch(L){throw ie&&ie(),L&&L.name==="TypeError"&&/Load failed|fetch/i.test(L.message)?Object.assign(new ke("Network Error",ke.ERR_NETWORK,b,G,L&&L.response),{cause:L.cause||L}):ke.from(L,L&&L.code,b,G,L&&L.response)}}},jB=new Map,Cy=e=>{let n=e&&e.env||{};const{fetch:r,Request:a,Response:s}=n,u=[a,s,r];let c=u.length,f=c,p,d,x=jB;for(;f--;)p=u[f],d=x.get(p),d===void 0&&x.set(p,d=f?new Map:UB(n)),x=d;return d};Cy();const pd={http:sB,xhr:OB,fetch:{get:Cy}};ne.forEach(pd,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Sy=e=>`- ${e}`,HB=e=>ne.isFunction(e)||e===null||e===!1;function qB(e,n){e=ne.isArray(e)?e:[e];const{length:r}=e;let a,s;const u={};for(let c=0;c<r;c++){a=e[c];let f;if(s=a,!HB(a)&&(s=pd[(f=String(a)).toLowerCase()],s===void 0))throw new ke(`Unknown adapter '${f}'`);if(s&&(ne.isFunction(s)||(s=s.get(n))))break;u[f||"#"+c]=s}if(!s){const c=Object.entries(u).map(([p,d])=>`adapter ${p} `+(d===!1?"is not supported by the environment":"is not available in the build"));let f=r?c.length>1?`since :
234
+ `+c.map(Sy).join(`
235
+ `):" "+Sy(c[0]):"as no adapter specified";throw new ke("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return s}const wy={getAdapter:qB,adapters:pd};function md(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ds(null,e)}function Ay(e){return md(e),e.headers=An.from(e.headers),e.data=hd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wy.getAdapter(e.adapter||_s.adapter,e)(e).then(function(a){return md(e),a.data=hd.call(e,e.transformResponse,a),a.headers=An.from(a.headers),a},function(a){return cy(a)||(md(e),a&&a.response&&(a.response.data=hd.call(e,e.transformResponse,a.response),a.response.headers=An.from(a.response.headers))),Promise.reject(a)})}const _y="1.13.5",yu={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{yu[e]=function(a){return typeof a===e||"a"+(n<1?"n ":" ")+e}});const ky={};yu.transitional=function(n,r,a){function s(u,c){return"[Axios v"+_y+"] Transitional option '"+u+"'"+c+(a?". "+a:"")}return(u,c,f)=>{if(n===!1)throw new ke(s(c," has been removed"+(r?" in "+r:"")),ke.ERR_DEPRECATED);return r&&!ky[c]&&(ky[c]=!0,console.warn(s(c," has been deprecated since v"+r+" and will be removed in the near future"))),n?n(u,c,f):!0}},yu.spelling=function(n){return(r,a)=>(console.warn(`${a} is likely a misspelling of ${n}`),!0)};function IB(e,n,r){if(typeof e!="object")throw new ke("options must be an object",ke.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let s=a.length;for(;s-- >0;){const u=a[s],c=n[u];if(c){const f=e[u],p=f===void 0||c(f,u,e);if(p!==!0)throw new ke("option "+u+" must be "+p,ke.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ke("Unknown option "+u,ke.ERR_BAD_OPTION)}}const vu={assertOptions:IB,validators:yu},$n=vu.validators;let xa=class{constructor(n){this.defaults=n||{},this.interceptors={request:new sy,response:new sy}}async request(n,r){try{return await this._request(n,r)}catch(a){if(a instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const u=s.stack?s.stack.replace(/^.+\n/,""):"";try{a.stack?u&&!String(a.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(a.stack+=`
236
+ `+u):a.stack=u}catch{}}throw a}}_request(n,r){typeof n=="string"?(r=r||{},r.url=n):r=n||{},r=ma(this.defaults,r);const{transitional:a,paramsSerializer:s,headers:u}=r;a!==void 0&&vu.assertOptions(a,{silentJSONParsing:$n.transitional($n.boolean),forcedJSONParsing:$n.transitional($n.boolean),clarifyTimeoutError:$n.transitional($n.boolean),legacyInterceptorReqResOrdering:$n.transitional($n.boolean)},!1),s!=null&&(ne.isFunction(s)?r.paramsSerializer={serialize:s}:vu.assertOptions(s,{encode:$n.function,serialize:$n.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),vu.assertOptions(r,{baseUrl:$n.spelling("baseURL"),withXsrfToken:$n.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=u&&ne.merge(u.common,u[r.method]);u&&ne.forEach(["delete","get","head","post","put","patch","common"],b=>{delete u[b]}),r.headers=An.concat(c,u);const f=[];let p=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen=="function"&&E.runWhen(r)===!1)return;p=p&&E.synchronous;const S=r.transitional||ud;S&&S.legacyInterceptorReqResOrdering?f.unshift(E.fulfilled,E.rejected):f.push(E.fulfilled,E.rejected)});const d=[];this.interceptors.response.forEach(function(E){d.push(E.fulfilled,E.rejected)});let x,m=0,y;if(!p){const b=[Ay.bind(this),void 0];for(b.unshift(...f),b.push(...d),y=b.length,x=Promise.resolve(r);m<y;)x=x.then(b[m++],b[m++]);return x}y=f.length;let v=r;for(;m<y;){const b=f[m++],E=f[m++];try{v=b(v)}catch(S){E.call(this,S);break}}try{x=Ay.call(this,v)}catch(b){return Promise.reject(b)}for(m=0,y=d.length;m<y;)x=x.then(d[m++],d[m++]);return x}getUri(n){n=ma(this.defaults,n);const r=py(n.baseURL,n.url,n.allowAbsoluteUrls);return ly(r,n.params,n.paramsSerializer)}};ne.forEach(["delete","get","head","options"],function(n){xa.prototype[n]=function(r,a){return this.request(ma(a||{},{method:n,url:r,data:(a||{}).data}))}}),ne.forEach(["post","put","patch"],function(n){function r(a){return function(u,c,f){return this.request(ma(f||{},{method:n,headers:a?{"Content-Type":"multipart/form-data"}:{},url:u,data:c}))}}xa.prototype[n]=r(),xa.prototype[n+"Form"]=r(!0)});let PB=class P4{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(u){r=u});const a=this;this.promise.then(s=>{if(!a._listeners)return;let u=a._listeners.length;for(;u-- >0;)a._listeners[u](s);a._listeners=null}),this.promise.then=s=>{let u;const c=new Promise(f=>{a.subscribe(f),u=f}).then(s);return c.cancel=function(){a.unsubscribe(u)},c},n(function(u,c,f){a.reason||(a.reason=new Ds(u,c,f),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const n=new AbortController,r=a=>{n.abort(a)};return this.subscribe(r),n.signal.unsubscribe=()=>this.unsubscribe(r),n.signal}static source(){let n;return{token:new P4(function(s){n=s}),cancel:n}}};function VB(e){return function(r){return e.apply(null,r)}}function YB(e){return ne.isObject(e)&&e.isAxiosError===!0}const xd={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xd).forEach(([e,n])=>{xd[n]=e});function Dy(e){const n=new xa(e),r=X1(xa.prototype.request,n);return ne.extend(r,xa.prototype,n,{allOwnKeys:!0}),ne.extend(r,n,null,{allOwnKeys:!0}),r.create=function(s){return Dy(ma(e,s))},r}const Bt=Dy(_s);Bt.Axios=xa,Bt.CanceledError=Ds,Bt.CancelToken=PB,Bt.isCancel=cy,Bt.VERSION=_y,Bt.toFormData=pu,Bt.AxiosError=ke,Bt.Cancel=Bt.CanceledError,Bt.all=function(n){return Promise.all(n)},Bt.spread=VB,Bt.isAxiosError=YB,Bt.mergeConfig=ma,Bt.AxiosHeaders=An,Bt.formToJSON=e=>oy(ne.isHTMLForm(e)?new FormData(e):e),Bt.getAdapter=wy.getAdapter,Bt.HttpStatusCode=xd,Bt.default=Bt;const{Axios:oz,AxiosError:uz,CanceledError:cz,isCancel:fz,CancelToken:dz,VERSION:hz,all:pz,Cancel:mz,isAxiosError:xz,spread:gz,toFormData:yz,AxiosHeaders:vz,HttpStatusCode:bz,formToJSON:Ez,getAdapter:Cz,mergeConfig:Sz}=Bt,Or=class Or{};dr(Or,"handleError",(n,r)=>{console.error("Global Error:",n),console.error("Error Info:",r),console.group("🔴 Error Details"),console.error("Error:",n),console.error("Stack:",n.stack),r&&console.error("Component Stack:",r.componentStack),console.groupEnd()}),dr(Or,"handleApiError",n=>{const r=new Error;if(n.response){const{status:a,data:s}=n.response;switch(r.statusCode=a,r.message=Or.getErrorMessage(a,s),r.details=s,a){case 400:r.code="BAD_REQUEST";break;case 401:r.code="UNAUTHORIZED";break;case 403:r.code="FORBIDDEN";break;case 404:r.code="NOT_FOUND";break;case 409:r.code="CONFLICT";break;case 422:r.code="VALIDATION_ERROR";break;case 429:r.code="RATE_LIMIT_EXCEEDED";break;case 500:r.code="INTERNAL_SERVER_ERROR";break;default:r.code="UNKNOWN_ERROR"}}else n.request?(r.code="NETWORK_ERROR",r.message="Tidak dapat terhubung ke server. Periksa koneksi internet Anda."):(r.code="REQUEST_ERROR",r.message=n.message||"Terjadi kesalahan yang tidak diketahui.");return r}),dr(Or,"getErrorMessage",(n,r)=>{if(r!=null&&r.message)return r.message;if(r!=null&&r.detail)return r.detail;if(r!=null&&r.error)return r.error;switch(n){case 400:return"Permintaan tidak valid. Periksa data yang Anda kirim.";case 401:return"Sesi Anda telah habis. Silakan login kembali.";case 403:return"Anda tidak memiliki izin untuk mengakses resource ini.";case 404:return"Data yang diminta tidak ditemukan.";case 409:return"Konflik data. Resource sudah ada atau sedang digunakan.";case 422:return"Data yang dikirim tidak valid. Periksa kembali form Anda.";case 429:return"Terlalu banyak permintaan. Mohon tunggu sebentar dan coba lagi.";case 500:return"Terjadi kesalahan di server. Silakan coba lagi nanti.";case 503:return"Layanan sedang tidak tersedia. Silakan coba lagi nanti.";default:return"Terjadi kesalahan yang tidak diketahui."}}),dr(Or,"isNetworkError",n=>n.code==="NETWORK_ERROR"),dr(Or,"isValidationError",n=>n.code==="VALIDATION_ERROR"||n.statusCode===422),dr(Or,"isAuthError",n=>n.code==="UNAUTHORIZED"||n.statusCode===401),dr(Or,"isRateLimitError",n=>n.code==="RATE_LIMIT_EXCEEDED"||n.statusCode===429);let bu=Or;class By{constructor(n){dr(this,"axios");dr(this,"retries");dr(this,"retryDelay");this.retries=n.retries??3,this.retryDelay=n.retryDelay??1e3,this.axios=Bt.create({baseURL:n.baseURL,timeout:n.timeout??1e4,headers:{"Content-Type":"application/json",...n.headers},withCredentials:!0}),this.setupInterceptors()}setupInterceptors(){this.axios.interceptors.request.use(n=>{var r;return n.metadata={startTime:Date.now()},console.log(`🚀 ${(r=n.method)==null?void 0:r.toUpperCase()} ${n.url}`,n.data?{data:n.data}:""),n},n=>Promise.reject(bu.handleApiError(n))),this.axios.interceptors.response.use(n=>{var a,s;const r=Date.now()-(((a=n.config.metadata)==null?void 0:a.startTime)||0);return console.log(`✅ ${(s=n.config.method)==null?void 0:s.toUpperCase()} ${n.config.url} (${r}ms)`,{status:n.status,data:n.data}),n},async n=>{const r=bu.handleApiError(n);return this.shouldRetry(n)&&n.config&&!n.config.__retryCount?this.retryRequest(n.config,n):Promise.reject(r)})}shouldRetry(n){return!n.response||n.response.status===429||n.response.status>=500&&n.response.status<=599}async retryRequest(n,r){var s;if(n.__retryCount=n.__retryCount||0,n.__retryCount>=this.retries)throw n;n.__retryCount+=1;let a=this.retryDelay*Math.pow(2,n.__retryCount-1);if(((s=r==null?void 0:r.response)==null?void 0:s.status)===429){const u=r.response.headers["retry-after"];if(u){const c=isNaN(u)?new Date(u).getTime()-Date.now():parseInt(u)*1e3;a=Math.max(c,1e3)}else a=6e4}return console.log(`⏳ Retrying request in ${a}ms (attempt ${n.__retryCount}/${this.retries})`),await new Promise(u=>setTimeout(u,a)),this.axios(n)}async get(n,r){return(await this.axios.get(n,r)).data}async getRaw(n,r){return await this.axios.get(n,r)}async post(n,r,a){return(await this.axios.post(n,r,a)).data}async put(n,r,a){return(await this.axios.put(n,r,a)).data}async patch(n,r,a){return(await this.axios.patch(n,r,a)).data}async delete(n,r){return(await this.axios.delete(n,r)).data}async uploadFile(n,r,a){const s=new FormData;s.append("file",r);const u={headers:{"Content-Type":"multipart/form-data"}};return a&&(u.onUploadProgress=a),(await this.axios.post(n,s,u)).data}setAuthHeader(n){this.axios.defaults.headers.common.Authorization=`Bearer ${n}`}removeAuthHeader(){delete this.axios.defaults.headers.common.Authorization}setCustomHeader(n,r){this.axios.defaults.headers.common[n]=r}removeCustomHeader(n){delete this.axios.defaults.headers.common[n]}setBaseURL(n){this.axios.defaults.baseURL=n}}var Eu={exports:{}};function QB(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cu={exports:{}};const XB=Tf(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var GB=Cu.exports,Ty;function Pe(){return Ty||(Ty=1,(function(e,n){(function(r,a){e.exports=a()})(GB,function(){var r=r||(function(a,s){var u;if(typeof window<"u"&&window.crypto&&(u=window.crypto),typeof self<"u"&&self.crypto&&(u=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(u=globalThis.crypto),!u&&typeof window<"u"&&window.msCrypto&&(u=window.msCrypto),!u&&typeof vt<"u"&&vt.crypto&&(u=vt.crypto),!u&&typeof QB=="function")try{u=XB}catch{}var c=function(){if(u){if(typeof u.getRandomValues=="function")try{return u.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof u.randomBytes=="function")try{return u.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||(function(){function k(){}return function(A){var D;return k.prototype=A,D=new k,k.prototype=null,D}})(),p={},d=p.lib={},x=d.Base=(function(){return{extend:function(k){var A=f(this);return k&&A.mixIn(k),(!A.hasOwnProperty("init")||this.init===A.init)&&(A.init=function(){A.$super.init.apply(this,arguments)}),A.init.prototype=A,A.$super=this,A},create:function(){var k=this.extend();return k.init.apply(k,arguments),k},init:function(){},mixIn:function(k){for(var A in k)k.hasOwnProperty(A)&&(this[A]=k[A]);k.hasOwnProperty("toString")&&(this.toString=k.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),m=d.WordArray=x.extend({init:function(k,A){k=this.words=k||[],A!=s?this.sigBytes=A:this.sigBytes=k.length*4},toString:function(k){return(k||v).stringify(this)},concat:function(k){var A=this.words,D=k.words,F=this.sigBytes,R=k.sigBytes;if(this.clamp(),F%4)for(var z=0;z<R;z++){var M=D[z>>>2]>>>24-z%4*8&255;A[F+z>>>2]|=M<<24-(F+z)%4*8}else for(var X=0;X<R;X+=4)A[F+X>>>2]=D[X>>>2];return this.sigBytes+=R,this},clamp:function(){var k=this.words,A=this.sigBytes;k[A>>>2]&=4294967295<<32-A%4*8,k.length=a.ceil(A/4)},clone:function(){var k=x.clone.call(this);return k.words=this.words.slice(0),k},random:function(k){for(var A=[],D=0;D<k;D+=4)A.push(c());return new m.init(A,k)}}),y=p.enc={},v=y.Hex={stringify:function(k){for(var A=k.words,D=k.sigBytes,F=[],R=0;R<D;R++){var z=A[R>>>2]>>>24-R%4*8&255;F.push((z>>>4).toString(16)),F.push((z&15).toString(16))}return F.join("")},parse:function(k){for(var A=k.length,D=[],F=0;F<A;F+=2)D[F>>>3]|=parseInt(k.substr(F,2),16)<<24-F%8*4;return new m.init(D,A/2)}},b=y.Latin1={stringify:function(k){for(var A=k.words,D=k.sigBytes,F=[],R=0;R<D;R++){var z=A[R>>>2]>>>24-R%4*8&255;F.push(String.fromCharCode(z))}return F.join("")},parse:function(k){for(var A=k.length,D=[],F=0;F<A;F++)D[F>>>2]|=(k.charCodeAt(F)&255)<<24-F%4*8;return new m.init(D,A)}},E=y.Utf8={stringify:function(k){try{return decodeURIComponent(escape(b.stringify(k)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(k){return b.parse(unescape(encodeURIComponent(k)))}},S=d.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new m.init,this._nDataBytes=0},_append:function(k){typeof k=="string"&&(k=E.parse(k)),this._data.concat(k),this._nDataBytes+=k.sigBytes},_process:function(k){var A,D=this._data,F=D.words,R=D.sigBytes,z=this.blockSize,M=z*4,X=R/M;k?X=a.ceil(X):X=a.max((X|0)-this._minBufferSize,0);var T=X*z,j=a.min(T*4,R);if(T){for(var V=0;V<T;V+=z)this._doProcessBlock(F,V);A=F.splice(0,T),D.sigBytes-=j}return new m.init(A,j)},clone:function(){var k=x.clone.call(this);return k._data=this._data.clone(),k},_minBufferSize:0});d.Hasher=S.extend({cfg:x.extend(),init:function(k){this.cfg=this.cfg.extend(k),this.reset()},reset:function(){S.reset.call(this),this._doReset()},update:function(k){return this._append(k),this._process(),this},finalize:function(k){k&&this._append(k);var A=this._doFinalize();return A},blockSize:16,_createHelper:function(k){return function(A,D){return new k.init(D).finalize(A)}},_createHmacHelper:function(k){return function(A,D){return new w.HMAC.init(k,D).finalize(A)}}});var w=p.algo={};return p})(Math);return r})})(Cu)),Cu.exports}var Su={exports:{}},KB=Su.exports,Ry;function wu(){return Ry||(Ry=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(KB,function(r){return(function(a){var s=r,u=s.lib,c=u.Base,f=u.WordArray,p=s.x64={};p.Word=c.extend({init:function(d,x){this.high=d,this.low=x}}),p.WordArray=c.extend({init:function(d,x){d=this.words=d||[],x!=a?this.sigBytes=x:this.sigBytes=d.length*8},toX32:function(){for(var d=this.words,x=d.length,m=[],y=0;y<x;y++){var v=d[y];m.push(v.high),m.push(v.low)}return f.create(m,this.sigBytes)},clone:function(){for(var d=c.clone.call(this),x=d.words=this.words.slice(0),m=x.length,y=0;y<m;y++)x[y]=x[y].clone();return d}})})(),r})})(Su)),Su.exports}var Au={exports:{}},$B=Au.exports,Oy;function ZB(){return Oy||(Oy=1,(function(e,n){(function(r,a){e.exports=a(Pe())})($B,function(r){return(function(){if(typeof ArrayBuffer=="function"){var a=r,s=a.lib,u=s.WordArray,c=u.init,f=u.init=function(p){if(p instanceof ArrayBuffer&&(p=new Uint8Array(p)),(p instanceof Int8Array||typeof Uint8ClampedArray<"u"&&p instanceof Uint8ClampedArray||p instanceof Int16Array||p instanceof Uint16Array||p instanceof Int32Array||p instanceof Uint32Array||p instanceof Float32Array||p instanceof Float64Array)&&(p=new Uint8Array(p.buffer,p.byteOffset,p.byteLength)),p instanceof Uint8Array){for(var d=p.byteLength,x=[],m=0;m<d;m++)x[m>>>2]|=p[m]<<24-m%4*8;c.call(this,x,d)}else c.apply(this,arguments)};f.prototype=u}})(),r.lib.WordArray})})(Au)),Au.exports}var _u={exports:{}},WB=_u.exports,zy;function JB(){return zy||(zy=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(WB,function(r){return(function(){var a=r,s=a.lib,u=s.WordArray,c=a.enc;c.Utf16=c.Utf16BE={stringify:function(p){for(var d=p.words,x=p.sigBytes,m=[],y=0;y<x;y+=2){var v=d[y>>>2]>>>16-y%4*8&65535;m.push(String.fromCharCode(v))}return m.join("")},parse:function(p){for(var d=p.length,x=[],m=0;m<d;m++)x[m>>>1]|=p.charCodeAt(m)<<16-m%2*16;return u.create(x,d*2)}},c.Utf16LE={stringify:function(p){for(var d=p.words,x=p.sigBytes,m=[],y=0;y<x;y+=2){var v=f(d[y>>>2]>>>16-y%4*8&65535);m.push(String.fromCharCode(v))}return m.join("")},parse:function(p){for(var d=p.length,x=[],m=0;m<d;m++)x[m>>>1]|=f(p.charCodeAt(m)<<16-m%2*16);return u.create(x,d*2)}};function f(p){return p<<8&4278255360|p>>>8&16711935}})(),r.enc.Utf16})})(_u)),_u.exports}var ku={exports:{}},eT=ku.exports,Ny;function ga(){return Ny||(Ny=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(eT,function(r){return(function(){var a=r,s=a.lib,u=s.WordArray,c=a.enc;c.Base64={stringify:function(p){var d=p.words,x=p.sigBytes,m=this._map;p.clamp();for(var y=[],v=0;v<x;v+=3)for(var b=d[v>>>2]>>>24-v%4*8&255,E=d[v+1>>>2]>>>24-(v+1)%4*8&255,S=d[v+2>>>2]>>>24-(v+2)%4*8&255,w=b<<16|E<<8|S,k=0;k<4&&v+k*.75<x;k++)y.push(m.charAt(w>>>6*(3-k)&63));var A=m.charAt(64);if(A)for(;y.length%4;)y.push(A);return y.join("")},parse:function(p){var d=p.length,x=this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var y=0;y<x.length;y++)m[x.charCodeAt(y)]=y}var v=x.charAt(64);if(v){var b=p.indexOf(v);b!==-1&&(d=b)}return f(p,d,m)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(p,d,x){for(var m=[],y=0,v=0;v<d;v++)if(v%4){var b=x[p.charCodeAt(v-1)]<<v%4*2,E=x[p.charCodeAt(v)]>>>6-v%4*2,S=b|E;m[y>>>2]|=S<<24-y%4*8,y++}return u.create(m,y)}})(),r.enc.Base64})})(ku)),ku.exports}var Du={exports:{}},tT=Du.exports,Fy;function nT(){return Fy||(Fy=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(tT,function(r){return(function(){var a=r,s=a.lib,u=s.WordArray,c=a.enc;c.Base64url={stringify:function(p,d){d===void 0&&(d=!0);var x=p.words,m=p.sigBytes,y=d?this._safe_map:this._map;p.clamp();for(var v=[],b=0;b<m;b+=3)for(var E=x[b>>>2]>>>24-b%4*8&255,S=x[b+1>>>2]>>>24-(b+1)%4*8&255,w=x[b+2>>>2]>>>24-(b+2)%4*8&255,k=E<<16|S<<8|w,A=0;A<4&&b+A*.75<m;A++)v.push(y.charAt(k>>>6*(3-A)&63));var D=y.charAt(64);if(D)for(;v.length%4;)v.push(D);return v.join("")},parse:function(p,d){d===void 0&&(d=!0);var x=p.length,m=d?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var v=0;v<m.length;v++)y[m.charCodeAt(v)]=v}var b=m.charAt(64);if(b){var E=p.indexOf(b);E!==-1&&(x=E)}return f(p,x,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(p,d,x){for(var m=[],y=0,v=0;v<d;v++)if(v%4){var b=x[p.charCodeAt(v-1)]<<v%4*2,E=x[p.charCodeAt(v)]>>>6-v%4*2,S=b|E;m[y>>>2]|=S<<24-y%4*8,y++}return u.create(m,y)}})(),r.enc.Base64url})})(Du)),Du.exports}var Bu={exports:{}},rT=Bu.exports,My;function ya(){return My||(My=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(rT,function(r){return(function(a){var s=r,u=s.lib,c=u.WordArray,f=u.Hasher,p=s.algo,d=[];(function(){for(var E=0;E<64;E++)d[E]=a.abs(a.sin(E+1))*4294967296|0})();var x=p.MD5=f.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,S){for(var w=0;w<16;w++){var k=S+w,A=E[k];E[k]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var D=this._hash.words,F=E[S+0],R=E[S+1],z=E[S+2],M=E[S+3],X=E[S+4],T=E[S+5],j=E[S+6],V=E[S+7],G=E[S+8],ie=E[S+9],J=E[S+10],L=E[S+11],te=E[S+12],W=E[S+13],me=E[S+14],N=E[S+15],O=D[0],U=D[1],_=D[2],I=D[3];O=m(O,U,_,I,F,7,d[0]),I=m(I,O,U,_,R,12,d[1]),_=m(_,I,O,U,z,17,d[2]),U=m(U,_,I,O,M,22,d[3]),O=m(O,U,_,I,X,7,d[4]),I=m(I,O,U,_,T,12,d[5]),_=m(_,I,O,U,j,17,d[6]),U=m(U,_,I,O,V,22,d[7]),O=m(O,U,_,I,G,7,d[8]),I=m(I,O,U,_,ie,12,d[9]),_=m(_,I,O,U,J,17,d[10]),U=m(U,_,I,O,L,22,d[11]),O=m(O,U,_,I,te,7,d[12]),I=m(I,O,U,_,W,12,d[13]),_=m(_,I,O,U,me,17,d[14]),U=m(U,_,I,O,N,22,d[15]),O=y(O,U,_,I,R,5,d[16]),I=y(I,O,U,_,j,9,d[17]),_=y(_,I,O,U,L,14,d[18]),U=y(U,_,I,O,F,20,d[19]),O=y(O,U,_,I,T,5,d[20]),I=y(I,O,U,_,J,9,d[21]),_=y(_,I,O,U,N,14,d[22]),U=y(U,_,I,O,X,20,d[23]),O=y(O,U,_,I,ie,5,d[24]),I=y(I,O,U,_,me,9,d[25]),_=y(_,I,O,U,M,14,d[26]),U=y(U,_,I,O,G,20,d[27]),O=y(O,U,_,I,W,5,d[28]),I=y(I,O,U,_,z,9,d[29]),_=y(_,I,O,U,V,14,d[30]),U=y(U,_,I,O,te,20,d[31]),O=v(O,U,_,I,T,4,d[32]),I=v(I,O,U,_,G,11,d[33]),_=v(_,I,O,U,L,16,d[34]),U=v(U,_,I,O,me,23,d[35]),O=v(O,U,_,I,R,4,d[36]),I=v(I,O,U,_,X,11,d[37]),_=v(_,I,O,U,V,16,d[38]),U=v(U,_,I,O,J,23,d[39]),O=v(O,U,_,I,W,4,d[40]),I=v(I,O,U,_,F,11,d[41]),_=v(_,I,O,U,M,16,d[42]),U=v(U,_,I,O,j,23,d[43]),O=v(O,U,_,I,ie,4,d[44]),I=v(I,O,U,_,te,11,d[45]),_=v(_,I,O,U,N,16,d[46]),U=v(U,_,I,O,z,23,d[47]),O=b(O,U,_,I,F,6,d[48]),I=b(I,O,U,_,V,10,d[49]),_=b(_,I,O,U,me,15,d[50]),U=b(U,_,I,O,T,21,d[51]),O=b(O,U,_,I,te,6,d[52]),I=b(I,O,U,_,M,10,d[53]),_=b(_,I,O,U,J,15,d[54]),U=b(U,_,I,O,R,21,d[55]),O=b(O,U,_,I,G,6,d[56]),I=b(I,O,U,_,N,10,d[57]),_=b(_,I,O,U,j,15,d[58]),U=b(U,_,I,O,W,21,d[59]),O=b(O,U,_,I,X,6,d[60]),I=b(I,O,U,_,L,10,d[61]),_=b(_,I,O,U,z,15,d[62]),U=b(U,_,I,O,ie,21,d[63]),D[0]=D[0]+O|0,D[1]=D[1]+U|0,D[2]=D[2]+_|0,D[3]=D[3]+I|0},_doFinalize:function(){var E=this._data,S=E.words,w=this._nDataBytes*8,k=E.sigBytes*8;S[k>>>5]|=128<<24-k%32;var A=a.floor(w/4294967296),D=w;S[(k+64>>>9<<4)+15]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,S[(k+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,E.sigBytes=(S.length+1)*4,this._process();for(var F=this._hash,R=F.words,z=0;z<4;z++){var M=R[z];R[z]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return F},clone:function(){var E=f.clone.call(this);return E._hash=this._hash.clone(),E}});function m(E,S,w,k,A,D,F){var R=E+(S&w|~S&k)+A+F;return(R<<D|R>>>32-D)+S}function y(E,S,w,k,A,D,F){var R=E+(S&k|w&~k)+A+F;return(R<<D|R>>>32-D)+S}function v(E,S,w,k,A,D,F){var R=E+(S^w^k)+A+F;return(R<<D|R>>>32-D)+S}function b(E,S,w,k,A,D,F){var R=E+(w^(S|~k))+A+F;return(R<<D|R>>>32-D)+S}s.MD5=f._createHelper(x),s.HmacMD5=f._createHmacHelper(x)})(Math),r.MD5})})(Bu)),Bu.exports}var Tu={exports:{}},iT=Tu.exports,Ly;function Uy(){return Ly||(Ly=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(iT,function(r){return(function(){var a=r,s=a.lib,u=s.WordArray,c=s.Hasher,f=a.algo,p=[],d=f.SHA1=c.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(x,m){for(var y=this._hash.words,v=y[0],b=y[1],E=y[2],S=y[3],w=y[4],k=0;k<80;k++){if(k<16)p[k]=x[m+k]|0;else{var A=p[k-3]^p[k-8]^p[k-14]^p[k-16];p[k]=A<<1|A>>>31}var D=(v<<5|v>>>27)+w+p[k];k<20?D+=(b&E|~b&S)+1518500249:k<40?D+=(b^E^S)+1859775393:k<60?D+=(b&E|b&S|E&S)-1894007588:D+=(b^E^S)-899497514,w=S,S=E,E=b<<30|b>>>2,b=v,v=D}y[0]=y[0]+v|0,y[1]=y[1]+b|0,y[2]=y[2]+E|0,y[3]=y[3]+S|0,y[4]=y[4]+w|0},_doFinalize:function(){var x=this._data,m=x.words,y=this._nDataBytes*8,v=x.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=Math.floor(y/4294967296),m[(v+64>>>9<<4)+15]=y,x.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var x=c.clone.call(this);return x._hash=this._hash.clone(),x}});a.SHA1=c._createHelper(d),a.HmacSHA1=c._createHmacHelper(d)})(),r.SHA1})})(Tu)),Tu.exports}var Ru={exports:{}},aT=Ru.exports,jy;function gd(){return jy||(jy=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(aT,function(r){return(function(a){var s=r,u=s.lib,c=u.WordArray,f=u.Hasher,p=s.algo,d=[],x=[];(function(){function v(w){for(var k=a.sqrt(w),A=2;A<=k;A++)if(!(w%A))return!1;return!0}function b(w){return(w-(w|0))*4294967296|0}for(var E=2,S=0;S<64;)v(E)&&(S<8&&(d[S]=b(a.pow(E,1/2))),x[S]=b(a.pow(E,1/3)),S++),E++})();var m=[],y=p.SHA256=f.extend({_doReset:function(){this._hash=new c.init(d.slice(0))},_doProcessBlock:function(v,b){for(var E=this._hash.words,S=E[0],w=E[1],k=E[2],A=E[3],D=E[4],F=E[5],R=E[6],z=E[7],M=0;M<64;M++){if(M<16)m[M]=v[b+M]|0;else{var X=m[M-15],T=(X<<25|X>>>7)^(X<<14|X>>>18)^X>>>3,j=m[M-2],V=(j<<15|j>>>17)^(j<<13|j>>>19)^j>>>10;m[M]=T+m[M-7]+V+m[M-16]}var G=D&F^~D&R,ie=S&w^S&k^w&k,J=(S<<30|S>>>2)^(S<<19|S>>>13)^(S<<10|S>>>22),L=(D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25),te=z+L+G+x[M]+m[M],W=J+ie;z=R,R=F,F=D,D=A+te|0,A=k,k=w,w=S,S=te+W|0}E[0]=E[0]+S|0,E[1]=E[1]+w|0,E[2]=E[2]+k|0,E[3]=E[3]+A|0,E[4]=E[4]+D|0,E[5]=E[5]+F|0,E[6]=E[6]+R|0,E[7]=E[7]+z|0},_doFinalize:function(){var v=this._data,b=v.words,E=this._nDataBytes*8,S=v.sigBytes*8;return b[S>>>5]|=128<<24-S%32,b[(S+64>>>9<<4)+14]=a.floor(E/4294967296),b[(S+64>>>9<<4)+15]=E,v.sigBytes=b.length*4,this._process(),this._hash},clone:function(){var v=f.clone.call(this);return v._hash=this._hash.clone(),v}});s.SHA256=f._createHelper(y),s.HmacSHA256=f._createHmacHelper(y)})(Math),r.SHA256})})(Ru)),Ru.exports}var Ou={exports:{}},lT=Ou.exports,Hy;function sT(){return Hy||(Hy=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),gd())})(lT,function(r){return(function(){var a=r,s=a.lib,u=s.WordArray,c=a.algo,f=c.SHA256,p=c.SHA224=f.extend({_doReset:function(){this._hash=new u.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=f._doFinalize.call(this);return d.sigBytes-=4,d}});a.SHA224=f._createHelper(p),a.HmacSHA224=f._createHmacHelper(p)})(),r.SHA224})})(Ou)),Ou.exports}var zu={exports:{}},oT=zu.exports,qy;function Iy(){return qy||(qy=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),wu())})(oT,function(r){return(function(){var a=r,s=a.lib,u=s.Hasher,c=a.x64,f=c.Word,p=c.WordArray,d=a.algo;function x(){return f.create.apply(f,arguments)}var m=[x(1116352408,3609767458),x(1899447441,602891725),x(3049323471,3964484399),x(3921009573,2173295548),x(961987163,4081628472),x(1508970993,3053834265),x(2453635748,2937671579),x(2870763221,3664609560),x(3624381080,2734883394),x(310598401,1164996542),x(607225278,1323610764),x(1426881987,3590304994),x(1925078388,4068182383),x(2162078206,991336113),x(2614888103,633803317),x(3248222580,3479774868),x(3835390401,2666613458),x(4022224774,944711139),x(264347078,2341262773),x(604807628,2007800933),x(770255983,1495990901),x(1249150122,1856431235),x(1555081692,3175218132),x(1996064986,2198950837),x(2554220882,3999719339),x(2821834349,766784016),x(2952996808,2566594879),x(3210313671,3203337956),x(3336571891,1034457026),x(3584528711,2466948901),x(113926993,3758326383),x(338241895,168717936),x(666307205,1188179964),x(773529912,1546045734),x(1294757372,1522805485),x(1396182291,2643833823),x(1695183700,2343527390),x(1986661051,1014477480),x(2177026350,1206759142),x(2456956037,344077627),x(2730485921,1290863460),x(2820302411,3158454273),x(3259730800,3505952657),x(3345764771,106217008),x(3516065817,3606008344),x(3600352804,1432725776),x(4094571909,1467031594),x(275423344,851169720),x(430227734,3100823752),x(506948616,1363258195),x(659060556,3750685593),x(883997877,3785050280),x(958139571,3318307427),x(1322822218,3812723403),x(1537002063,2003034995),x(1747873779,3602036899),x(1955562222,1575990012),x(2024104815,1125592928),x(2227730452,2716904306),x(2361852424,442776044),x(2428436474,593698344),x(2756734187,3733110249),x(3204031479,2999351573),x(3329325298,3815920427),x(3391569614,3928383900),x(3515267271,566280711),x(3940187606,3454069534),x(4118630271,4000239992),x(116418474,1914138554),x(174292421,2731055270),x(289380356,3203993006),x(460393269,320620315),x(685471733,587496836),x(852142971,1086792851),x(1017036298,365543100),x(1126000580,2618297676),x(1288033470,3409855158),x(1501505948,4234509866),x(1607167915,987167468),x(1816402316,1246189591)],y=[];(function(){for(var b=0;b<80;b++)y[b]=x()})();var v=d.SHA512=u.extend({_doReset:function(){this._hash=new p.init([new f.init(1779033703,4089235720),new f.init(3144134277,2227873595),new f.init(1013904242,4271175723),new f.init(2773480762,1595750129),new f.init(1359893119,2917565137),new f.init(2600822924,725511199),new f.init(528734635,4215389547),new f.init(1541459225,327033209)])},_doProcessBlock:function(b,E){for(var S=this._hash.words,w=S[0],k=S[1],A=S[2],D=S[3],F=S[4],R=S[5],z=S[6],M=S[7],X=w.high,T=w.low,j=k.high,V=k.low,G=A.high,ie=A.low,J=D.high,L=D.low,te=F.high,W=F.low,me=R.high,N=R.low,O=z.high,U=z.low,_=M.high,I=M.low,ue=X,ce=T,xe=j,de=V,Be=G,nt=ie,wt=J,bt=L,Kt=te,ct=W,Un=me,gn=N,yn=O,jn=U,Ft=_,Dn=I,Pt=0;Pt<80;Pt++){var tt,Vt,At=y[Pt];if(Pt<16)Vt=At.high=b[E+Pt*2]|0,tt=At.low=b[E+Pt*2+1]|0;else{var Oi=y[Pt-15],ae=Oi.high,he=Oi.low,we=(ae>>>1|he<<31)^(ae>>>8|he<<24)^ae>>>7,Re=(he>>>1|ae<<31)^(he>>>8|ae<<24)^(he>>>7|ae<<25),Fe=y[Pt-2],Et=Fe.high,_t=Fe.low,Yt=(Et>>>19|_t<<13)^(Et<<3|_t>>>29)^Et>>>6,gt=(_t>>>19|Et<<13)^(_t<<3|Et>>>29)^(_t>>>6|Et<<26),Mt=y[Pt-7],Ke=Mt.high,Jn=Mt.low,$t=y[Pt-16],er=$t.high,Gr=$t.low;tt=Re+Jn,Vt=we+Ke+(tt>>>0<Re>>>0?1:0),tt=tt+gt,Vt=Vt+Yt+(tt>>>0<gt>>>0?1:0),tt=tt+Gr,Vt=Vt+er+(tt>>>0<Gr>>>0?1:0),At.high=Vt,At.low=tt}var zi=Kt&Un^~Kt&yn,zr=ct&gn^~ct&jn,tr=ue&xe^ue&Be^xe&Be,De=ce&de^ce&nt^de&nt,ht=(ue>>>28|ce<<4)^(ue<<30|ce>>>2)^(ue<<25|ce>>>7),Tt=(ce>>>28|ue<<4)^(ce<<30|ue>>>2)^(ce<<25|ue>>>7),Zt=(Kt>>>14|ct<<18)^(Kt>>>18|ct<<14)^(Kt<<23|ct>>>9),Nr=(ct>>>14|Kt<<18)^(ct>>>18|Kt<<14)^(ct<<23|Kt>>>9),pt=m[Pt],dn=pt.high,Fr=pt.low,at=Dn+Nr,Ct=Ft+Zt+(at>>>0<Dn>>>0?1:0),at=at+zr,Ct=Ct+zi+(at>>>0<zr>>>0?1:0),at=at+Fr,Ct=Ct+dn+(at>>>0<Fr>>>0?1:0),at=at+tt,Ct=Ct+Vt+(at>>>0<tt>>>0?1:0),Kr=Tt+De,Hn=ht+tr+(Kr>>>0<Tt>>>0?1:0);Ft=yn,Dn=jn,yn=Un,jn=gn,Un=Kt,gn=ct,ct=bt+at|0,Kt=wt+Ct+(ct>>>0<bt>>>0?1:0)|0,wt=Be,bt=nt,Be=xe,nt=de,xe=ue,de=ce,ce=at+Kr|0,ue=Ct+Hn+(ce>>>0<at>>>0?1:0)|0}T=w.low=T+ce,w.high=X+ue+(T>>>0<ce>>>0?1:0),V=k.low=V+de,k.high=j+xe+(V>>>0<de>>>0?1:0),ie=A.low=ie+nt,A.high=G+Be+(ie>>>0<nt>>>0?1:0),L=D.low=L+bt,D.high=J+wt+(L>>>0<bt>>>0?1:0),W=F.low=W+ct,F.high=te+Kt+(W>>>0<ct>>>0?1:0),N=R.low=N+gn,R.high=me+Un+(N>>>0<gn>>>0?1:0),U=z.low=U+jn,z.high=O+yn+(U>>>0<jn>>>0?1:0),I=M.low=I+Dn,M.high=_+Ft+(I>>>0<Dn>>>0?1:0)},_doFinalize:function(){var b=this._data,E=b.words,S=this._nDataBytes*8,w=b.sigBytes*8;E[w>>>5]|=128<<24-w%32,E[(w+128>>>10<<5)+30]=Math.floor(S/4294967296),E[(w+128>>>10<<5)+31]=S,b.sigBytes=E.length*4,this._process();var k=this._hash.toX32();return k},clone:function(){var b=u.clone.call(this);return b._hash=this._hash.clone(),b},blockSize:1024/32});a.SHA512=u._createHelper(v),a.HmacSHA512=u._createHmacHelper(v)})(),r.SHA512})})(zu)),zu.exports}var Nu={exports:{}},uT=Nu.exports,Py;function cT(){return Py||(Py=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),wu(),Iy())})(uT,function(r){return(function(){var a=r,s=a.x64,u=s.Word,c=s.WordArray,f=a.algo,p=f.SHA512,d=f.SHA384=p.extend({_doReset:function(){this._hash=new c.init([new u.init(3418070365,3238371032),new u.init(1654270250,914150663),new u.init(2438529370,812702999),new u.init(355462360,4144912697),new u.init(1731405415,4290775857),new u.init(2394180231,1750603025),new u.init(3675008525,1694076839),new u.init(1203062813,3204075428)])},_doFinalize:function(){var x=p._doFinalize.call(this);return x.sigBytes-=16,x}});a.SHA384=p._createHelper(d),a.HmacSHA384=p._createHmacHelper(d)})(),r.SHA384})})(Nu)),Nu.exports}var Fu={exports:{}},fT=Fu.exports,Vy;function dT(){return Vy||(Vy=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),wu())})(fT,function(r){return(function(a){var s=r,u=s.lib,c=u.WordArray,f=u.Hasher,p=s.x64,d=p.Word,x=s.algo,m=[],y=[],v=[];(function(){for(var S=1,w=0,k=0;k<24;k++){m[S+5*w]=(k+1)*(k+2)/2%64;var A=w%5,D=(2*S+3*w)%5;S=A,w=D}for(var S=0;S<5;S++)for(var w=0;w<5;w++)y[S+5*w]=w+(2*S+3*w)%5*5;for(var F=1,R=0;R<24;R++){for(var z=0,M=0,X=0;X<7;X++){if(F&1){var T=(1<<X)-1;T<32?M^=1<<T:z^=1<<T-32}F&128?F=F<<1^113:F<<=1}v[R]=d.create(z,M)}})();var b=[];(function(){for(var S=0;S<25;S++)b[S]=d.create()})();var E=x.SHA3=f.extend({cfg:f.cfg.extend({outputLength:512}),_doReset:function(){for(var S=this._state=[],w=0;w<25;w++)S[w]=new d.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(S,w){for(var k=this._state,A=this.blockSize/2,D=0;D<A;D++){var F=S[w+2*D],R=S[w+2*D+1];F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360;var z=k[D];z.high^=R,z.low^=F}for(var M=0;M<24;M++){for(var X=0;X<5;X++){for(var T=0,j=0,V=0;V<5;V++){var z=k[X+5*V];T^=z.high,j^=z.low}var G=b[X];G.high=T,G.low=j}for(var X=0;X<5;X++)for(var ie=b[(X+4)%5],J=b[(X+1)%5],L=J.high,te=J.low,T=ie.high^(L<<1|te>>>31),j=ie.low^(te<<1|L>>>31),V=0;V<5;V++){var z=k[X+5*V];z.high^=T,z.low^=j}for(var W=1;W<25;W++){var T,j,z=k[W],me=z.high,N=z.low,O=m[W];O<32?(T=me<<O|N>>>32-O,j=N<<O|me>>>32-O):(T=N<<O-32|me>>>64-O,j=me<<O-32|N>>>64-O);var U=b[y[W]];U.high=T,U.low=j}var _=b[0],I=k[0];_.high=I.high,_.low=I.low;for(var X=0;X<5;X++)for(var V=0;V<5;V++){var W=X+5*V,z=k[W],ue=b[W],ce=b[(X+1)%5+5*V],xe=b[(X+2)%5+5*V];z.high=ue.high^~ce.high&xe.high,z.low=ue.low^~ce.low&xe.low}var z=k[0],de=v[M];z.high^=de.high,z.low^=de.low}},_doFinalize:function(){var S=this._data,w=S.words;this._nDataBytes*8;var k=S.sigBytes*8,A=this.blockSize*32;w[k>>>5]|=1<<24-k%32,w[(a.ceil((k+1)/A)*A>>>5)-1]|=128,S.sigBytes=w.length*4,this._process();for(var D=this._state,F=this.cfg.outputLength/8,R=F/8,z=[],M=0;M<R;M++){var X=D[M],T=X.high,j=X.low;T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,j=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360,z.push(j),z.push(T)}return new c.init(z,F)},clone:function(){for(var S=f.clone.call(this),w=S._state=this._state.slice(0),k=0;k<25;k++)w[k]=w[k].clone();return S}});s.SHA3=f._createHelper(E),s.HmacSHA3=f._createHmacHelper(E)})(Math),r.SHA3})})(Fu)),Fu.exports}var Mu={exports:{}},hT=Mu.exports,Yy;function pT(){return Yy||(Yy=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(hT,function(r){/** @preserve
237
+ (c) 2012 by Cédric Mesnil. All rights reserved.
238
+
239
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
240
+
241
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
242
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
243
+
244
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
245
+ */return(function(a){var s=r,u=s.lib,c=u.WordArray,f=u.Hasher,p=s.algo,d=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),x=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),y=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),v=c.create([0,1518500249,1859775393,2400959708,2840853838]),b=c.create([1352829926,1548603684,1836072691,2053994217,0]),E=p.RIPEMD160=f.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(R,z){for(var M=0;M<16;M++){var X=z+M,T=R[X];R[X]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}var j=this._hash.words,V=v.words,G=b.words,ie=d.words,J=x.words,L=m.words,te=y.words,W,me,N,O,U,_,I,ue,ce,xe;_=W=j[0],I=me=j[1],ue=N=j[2],ce=O=j[3],xe=U=j[4];for(var de,M=0;M<80;M+=1)de=W+R[z+ie[M]]|0,M<16?de+=S(me,N,O)+V[0]:M<32?de+=w(me,N,O)+V[1]:M<48?de+=k(me,N,O)+V[2]:M<64?de+=A(me,N,O)+V[3]:de+=D(me,N,O)+V[4],de=de|0,de=F(de,L[M]),de=de+U|0,W=U,U=O,O=F(N,10),N=me,me=de,de=_+R[z+J[M]]|0,M<16?de+=D(I,ue,ce)+G[0]:M<32?de+=A(I,ue,ce)+G[1]:M<48?de+=k(I,ue,ce)+G[2]:M<64?de+=w(I,ue,ce)+G[3]:de+=S(I,ue,ce)+G[4],de=de|0,de=F(de,te[M]),de=de+xe|0,_=xe,xe=ce,ce=F(ue,10),ue=I,I=de;de=j[1]+N+ce|0,j[1]=j[2]+O+xe|0,j[2]=j[3]+U+_|0,j[3]=j[4]+W+I|0,j[4]=j[0]+me+ue|0,j[0]=de},_doFinalize:function(){var R=this._data,z=R.words,M=this._nDataBytes*8,X=R.sigBytes*8;z[X>>>5]|=128<<24-X%32,z[(X+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,R.sigBytes=(z.length+1)*4,this._process();for(var T=this._hash,j=T.words,V=0;V<5;V++){var G=j[V];j[V]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}return T},clone:function(){var R=f.clone.call(this);return R._hash=this._hash.clone(),R}});function S(R,z,M){return R^z^M}function w(R,z,M){return R&z|~R&M}function k(R,z,M){return(R|~z)^M}function A(R,z,M){return R&M|z&~M}function D(R,z,M){return R^(z|~M)}function F(R,z){return R<<z|R>>>32-z}s.RIPEMD160=f._createHelper(E),s.HmacRIPEMD160=f._createHmacHelper(E)})(),r.RIPEMD160})})(Mu)),Mu.exports}var Lu={exports:{}},mT=Lu.exports,Qy;function yd(){return Qy||(Qy=1,(function(e,n){(function(r,a){e.exports=a(Pe())})(mT,function(r){(function(){var a=r,s=a.lib,u=s.Base,c=a.enc,f=c.Utf8,p=a.algo;p.HMAC=u.extend({init:function(d,x){d=this._hasher=new d.init,typeof x=="string"&&(x=f.parse(x));var m=d.blockSize,y=m*4;x.sigBytes>y&&(x=d.finalize(x)),x.clamp();for(var v=this._oKey=x.clone(),b=this._iKey=x.clone(),E=v.words,S=b.words,w=0;w<m;w++)E[w]^=1549556828,S[w]^=909522486;v.sigBytes=b.sigBytes=y,this.reset()},reset:function(){var d=this._hasher;d.reset(),d.update(this._iKey)},update:function(d){return this._hasher.update(d),this},finalize:function(d){var x=this._hasher,m=x.finalize(d);x.reset();var y=x.finalize(this._oKey.clone().concat(m));return y}})})()})})(Lu)),Lu.exports}var Uu={exports:{}},xT=Uu.exports,Xy;function gT(){return Xy||(Xy=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),gd(),yd())})(xT,function(r){return(function(){var a=r,s=a.lib,u=s.Base,c=s.WordArray,f=a.algo,p=f.SHA256,d=f.HMAC,x=f.PBKDF2=u.extend({cfg:u.extend({keySize:128/32,hasher:p,iterations:25e4}),init:function(m){this.cfg=this.cfg.extend(m)},compute:function(m,y){for(var v=this.cfg,b=d.create(v.hasher,m),E=c.create(),S=c.create([1]),w=E.words,k=S.words,A=v.keySize,D=v.iterations;w.length<A;){var F=b.update(y).finalize(S);b.reset();for(var R=F.words,z=R.length,M=F,X=1;X<D;X++){M=b.finalize(M),b.reset();for(var T=M.words,j=0;j<z;j++)R[j]^=T[j]}E.concat(F),k[0]++}return E.sigBytes=A*4,E}});a.PBKDF2=function(m,y,v){return x.create(v).compute(m,y)}})(),r.PBKDF2})})(Uu)),Uu.exports}var ju={exports:{}},yT=ju.exports,Gy;function Ei(){return Gy||(Gy=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Uy(),yd())})(yT,function(r){return(function(){var a=r,s=a.lib,u=s.Base,c=s.WordArray,f=a.algo,p=f.MD5,d=f.EvpKDF=u.extend({cfg:u.extend({keySize:128/32,hasher:p,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,m){for(var y,v=this.cfg,b=v.hasher.create(),E=c.create(),S=E.words,w=v.keySize,k=v.iterations;S.length<w;){y&&b.update(y),y=b.update(x).finalize(m),b.reset();for(var A=1;A<k;A++)y=b.finalize(y),b.reset();E.concat(y)}return E.sigBytes=w*4,E}});a.EvpKDF=function(x,m,y){return d.create(y).compute(x,m)}})(),r.EvpKDF})})(ju)),ju.exports}var Hu={exports:{}},vT=Hu.exports,Ky;function Xt(){return Ky||(Ky=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Ei())})(vT,function(r){r.lib.Cipher||(function(a){var s=r,u=s.lib,c=u.Base,f=u.WordArray,p=u.BufferedBlockAlgorithm,d=s.enc;d.Utf8;var x=d.Base64,m=s.algo,y=m.EvpKDF,v=u.Cipher=p.extend({cfg:c.extend(),createEncryptor:function(T,j){return this.create(this._ENC_XFORM_MODE,T,j)},createDecryptor:function(T,j){return this.create(this._DEC_XFORM_MODE,T,j)},init:function(T,j,V){this.cfg=this.cfg.extend(V),this._xformMode=T,this._key=j,this.reset()},reset:function(){p.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var j=this._doFinalize();return j},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:(function(){function T(j){return typeof j=="string"?X:R}return function(j){return{encrypt:function(V,G,ie){return T(G).encrypt(j,V,G,ie)},decrypt:function(V,G,ie){return T(G).decrypt(j,V,G,ie)}}}})()});u.StreamCipher=v.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1});var b=s.mode={},E=u.BlockCipherMode=c.extend({createEncryptor:function(T,j){return this.Encryptor.create(T,j)},createDecryptor:function(T,j){return this.Decryptor.create(T,j)},init:function(T,j){this._cipher=T,this._iv=j}}),S=b.CBC=(function(){var T=E.extend();T.Encryptor=T.extend({processBlock:function(V,G){var ie=this._cipher,J=ie.blockSize;j.call(this,V,G,J),ie.encryptBlock(V,G),this._prevBlock=V.slice(G,G+J)}}),T.Decryptor=T.extend({processBlock:function(V,G){var ie=this._cipher,J=ie.blockSize,L=V.slice(G,G+J);ie.decryptBlock(V,G),j.call(this,V,G,J),this._prevBlock=L}});function j(V,G,ie){var J,L=this._iv;L?(J=L,this._iv=a):J=this._prevBlock;for(var te=0;te<ie;te++)V[G+te]^=J[te]}return T})(),w=s.pad={},k=w.Pkcs7={pad:function(T,j){for(var V=j*4,G=V-T.sigBytes%V,ie=G<<24|G<<16|G<<8|G,J=[],L=0;L<G;L+=4)J.push(ie);var te=f.create(J,G);T.concat(te)},unpad:function(T){var j=T.words[T.sigBytes-1>>>2]&255;T.sigBytes-=j}};u.BlockCipher=v.extend({cfg:v.cfg.extend({mode:S,padding:k}),reset:function(){var T;v.reset.call(this);var j=this.cfg,V=j.iv,G=j.mode;this._xformMode==this._ENC_XFORM_MODE?T=G.createEncryptor:(T=G.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==T?this._mode.init(this,V&&V.words):(this._mode=T.call(G,this,V&&V.words),this._mode.__creator=T)},_doProcessBlock:function(T,j){this._mode.processBlock(T,j)},_doFinalize:function(){var T,j=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(j.pad(this._data,this.blockSize),T=this._process(!0)):(T=this._process(!0),j.unpad(T)),T},blockSize:128/32});var A=u.CipherParams=c.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),D=s.format={},F=D.OpenSSL={stringify:function(T){var j,V=T.ciphertext,G=T.salt;return G?j=f.create([1398893684,1701076831]).concat(G).concat(V):j=V,j.toString(x)},parse:function(T){var j,V=x.parse(T),G=V.words;return G[0]==1398893684&&G[1]==1701076831&&(j=f.create(G.slice(2,4)),G.splice(0,4),V.sigBytes-=16),A.create({ciphertext:V,salt:j})}},R=u.SerializableCipher=c.extend({cfg:c.extend({format:F}),encrypt:function(T,j,V,G){G=this.cfg.extend(G);var ie=T.createEncryptor(V,G),J=ie.finalize(j),L=ie.cfg;return A.create({ciphertext:J,key:V,iv:L.iv,algorithm:T,mode:L.mode,padding:L.padding,blockSize:T.blockSize,formatter:G.format})},decrypt:function(T,j,V,G){G=this.cfg.extend(G),j=this._parse(j,G.format);var ie=T.createDecryptor(V,G).finalize(j.ciphertext);return ie},_parse:function(T,j){return typeof T=="string"?j.parse(T,this):T}}),z=s.kdf={},M=z.OpenSSL={execute:function(T,j,V,G,ie){if(G||(G=f.random(64/8)),ie)var J=y.create({keySize:j+V,hasher:ie}).compute(T,G);else var J=y.create({keySize:j+V}).compute(T,G);var L=f.create(J.words.slice(j),V*4);return J.sigBytes=j*4,A.create({key:J,iv:L,salt:G})}},X=u.PasswordBasedCipher=R.extend({cfg:R.cfg.extend({kdf:M}),encrypt:function(T,j,V,G){G=this.cfg.extend(G);var ie=G.kdf.execute(V,T.keySize,T.ivSize,G.salt,G.hasher);G.iv=ie.iv;var J=R.encrypt.call(this,T,j,ie.key,G);return J.mixIn(ie),J},decrypt:function(T,j,V,G){G=this.cfg.extend(G),j=this._parse(j,G.format);var ie=G.kdf.execute(V,T.keySize,T.ivSize,j.salt,G.hasher);G.iv=ie.iv;var J=R.decrypt.call(this,T,j,ie.key,G);return J}})})()})})(Hu)),Hu.exports}var qu={exports:{}},bT=qu.exports,$y;function ET(){return $y||($y=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(bT,function(r){return r.mode.CFB=(function(){var a=r.lib.BlockCipherMode.extend();a.Encryptor=a.extend({processBlock:function(u,c){var f=this._cipher,p=f.blockSize;s.call(this,u,c,p,f),this._prevBlock=u.slice(c,c+p)}}),a.Decryptor=a.extend({processBlock:function(u,c){var f=this._cipher,p=f.blockSize,d=u.slice(c,c+p);s.call(this,u,c,p,f),this._prevBlock=d}});function s(u,c,f,p){var d,x=this._iv;x?(d=x.slice(0),this._iv=void 0):d=this._prevBlock,p.encryptBlock(d,0);for(var m=0;m<f;m++)u[c+m]^=d[m]}return a})(),r.mode.CFB})})(qu)),qu.exports}var Iu={exports:{}},CT=Iu.exports,Zy;function ST(){return Zy||(Zy=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(CT,function(r){return r.mode.CTR=(function(){var a=r.lib.BlockCipherMode.extend(),s=a.Encryptor=a.extend({processBlock:function(u,c){var f=this._cipher,p=f.blockSize,d=this._iv,x=this._counter;d&&(x=this._counter=d.slice(0),this._iv=void 0);var m=x.slice(0);f.encryptBlock(m,0),x[p-1]=x[p-1]+1|0;for(var y=0;y<p;y++)u[c+y]^=m[y]}});return a.Decryptor=s,a})(),r.mode.CTR})})(Iu)),Iu.exports}var Pu={exports:{}},wT=Pu.exports,Wy;function AT(){return Wy||(Wy=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(wT,function(r){/** @preserve
246
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
247
+ * derived from CryptoJS.mode.CTR
248
+ * Jan Hruby jhruby.web@gmail.com
249
+ */return r.mode.CTRGladman=(function(){var a=r.lib.BlockCipherMode.extend();function s(f){if((f>>24&255)===255){var p=f>>16&255,d=f>>8&255,x=f&255;p===255?(p=0,d===255?(d=0,x===255?x=0:++x):++d):++p,f=0,f+=p<<16,f+=d<<8,f+=x}else f+=1<<24;return f}function u(f){return(f[0]=s(f[0]))===0&&(f[1]=s(f[1])),f}var c=a.Encryptor=a.extend({processBlock:function(f,p){var d=this._cipher,x=d.blockSize,m=this._iv,y=this._counter;m&&(y=this._counter=m.slice(0),this._iv=void 0),u(y);var v=y.slice(0);d.encryptBlock(v,0);for(var b=0;b<x;b++)f[p+b]^=v[b]}});return a.Decryptor=c,a})(),r.mode.CTRGladman})})(Pu)),Pu.exports}var Vu={exports:{}},_T=Vu.exports,Jy;function kT(){return Jy||(Jy=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(_T,function(r){return r.mode.OFB=(function(){var a=r.lib.BlockCipherMode.extend(),s=a.Encryptor=a.extend({processBlock:function(u,c){var f=this._cipher,p=f.blockSize,d=this._iv,x=this._keystream;d&&(x=this._keystream=d.slice(0),this._iv=void 0),f.encryptBlock(x,0);for(var m=0;m<p;m++)u[c+m]^=x[m]}});return a.Decryptor=s,a})(),r.mode.OFB})})(Vu)),Vu.exports}var Yu={exports:{}},DT=Yu.exports,ev;function BT(){return ev||(ev=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(DT,function(r){return r.mode.ECB=(function(){var a=r.lib.BlockCipherMode.extend();return a.Encryptor=a.extend({processBlock:function(s,u){this._cipher.encryptBlock(s,u)}}),a.Decryptor=a.extend({processBlock:function(s,u){this._cipher.decryptBlock(s,u)}}),a})(),r.mode.ECB})})(Yu)),Yu.exports}var Qu={exports:{}},TT=Qu.exports,tv;function RT(){return tv||(tv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(TT,function(r){return r.pad.AnsiX923={pad:function(a,s){var u=a.sigBytes,c=s*4,f=c-u%c,p=u+f-1;a.clamp(),a.words[p>>>2]|=f<<24-p%4*8,a.sigBytes+=f},unpad:function(a){var s=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=s}},r.pad.Ansix923})})(Qu)),Qu.exports}var Xu={exports:{}},OT=Xu.exports,nv;function zT(){return nv||(nv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(OT,function(r){return r.pad.Iso10126={pad:function(a,s){var u=s*4,c=u-a.sigBytes%u;a.concat(r.lib.WordArray.random(c-1)).concat(r.lib.WordArray.create([c<<24],1))},unpad:function(a){var s=a.words[a.sigBytes-1>>>2]&255;a.sigBytes-=s}},r.pad.Iso10126})})(Xu)),Xu.exports}var Gu={exports:{}},NT=Gu.exports,rv;function FT(){return rv||(rv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(NT,function(r){return r.pad.Iso97971={pad:function(a,s){a.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(a,s)},unpad:function(a){r.pad.ZeroPadding.unpad(a),a.sigBytes--}},r.pad.Iso97971})})(Gu)),Gu.exports}var Ku={exports:{}},MT=Ku.exports,iv;function LT(){return iv||(iv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(MT,function(r){return r.pad.ZeroPadding={pad:function(a,s){var u=s*4;a.clamp(),a.sigBytes+=u-(a.sigBytes%u||u)},unpad:function(a){for(var s=a.words,u=a.sigBytes-1,u=a.sigBytes-1;u>=0;u--)if(s[u>>>2]>>>24-u%4*8&255){a.sigBytes=u+1;break}}},r.pad.ZeroPadding})})(Ku)),Ku.exports}var $u={exports:{}},UT=$u.exports,av;function jT(){return av||(av=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(UT,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})})($u)),$u.exports}var Zu={exports:{}},HT=Zu.exports,lv;function qT(){return lv||(lv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),Xt())})(HT,function(r){return(function(a){var s=r,u=s.lib,c=u.CipherParams,f=s.enc,p=f.Hex,d=s.format;d.Hex={stringify:function(x){return x.ciphertext.toString(p)},parse:function(x){var m=p.parse(x);return c.create({ciphertext:m})}}})(),r.format.Hex})})(Zu)),Zu.exports}var Wu={exports:{}},IT=Wu.exports,sv;function PT(){return sv||(sv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),ga(),ya(),Ei(),Xt())})(IT,function(r){return(function(){var a=r,s=a.lib,u=s.BlockCipher,c=a.algo,f=[],p=[],d=[],x=[],m=[],y=[],v=[],b=[],E=[],S=[];(function(){for(var A=[],D=0;D<256;D++)D<128?A[D]=D<<1:A[D]=D<<1^283;for(var F=0,R=0,D=0;D<256;D++){var z=R^R<<1^R<<2^R<<3^R<<4;z=z>>>8^z&255^99,f[F]=z,p[z]=F;var M=A[F],X=A[M],T=A[X],j=A[z]*257^z*16843008;d[F]=j<<24|j>>>8,x[F]=j<<16|j>>>16,m[F]=j<<8|j>>>24,y[F]=j;var j=T*16843009^X*65537^M*257^F*16843008;v[z]=j<<24|j>>>8,b[z]=j<<16|j>>>16,E[z]=j<<8|j>>>24,S[z]=j,F?(F=M^A[A[A[T^M]]],R^=A[A[R]]):F=R=1}})();var w=[0,1,2,4,8,16,32,64,128,27,54],k=c.AES=u.extend({_doReset:function(){var A;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var D=this._keyPriorReset=this._key,F=D.words,R=D.sigBytes/4,z=this._nRounds=R+6,M=(z+1)*4,X=this._keySchedule=[],T=0;T<M;T++)T<R?X[T]=F[T]:(A=X[T-1],T%R?R>6&&T%R==4&&(A=f[A>>>24]<<24|f[A>>>16&255]<<16|f[A>>>8&255]<<8|f[A&255]):(A=A<<8|A>>>24,A=f[A>>>24]<<24|f[A>>>16&255]<<16|f[A>>>8&255]<<8|f[A&255],A^=w[T/R|0]<<24),X[T]=X[T-R]^A);for(var j=this._invKeySchedule=[],V=0;V<M;V++){var T=M-V;if(V%4)var A=X[T];else var A=X[T-4];V<4||T<=4?j[V]=A:j[V]=v[f[A>>>24]]^b[f[A>>>16&255]]^E[f[A>>>8&255]]^S[f[A&255]]}}},encryptBlock:function(A,D){this._doCryptBlock(A,D,this._keySchedule,d,x,m,y,f)},decryptBlock:function(A,D){var F=A[D+1];A[D+1]=A[D+3],A[D+3]=F,this._doCryptBlock(A,D,this._invKeySchedule,v,b,E,S,p);var F=A[D+1];A[D+1]=A[D+3],A[D+3]=F},_doCryptBlock:function(A,D,F,R,z,M,X,T){for(var j=this._nRounds,V=A[D]^F[0],G=A[D+1]^F[1],ie=A[D+2]^F[2],J=A[D+3]^F[3],L=4,te=1;te<j;te++){var W=R[V>>>24]^z[G>>>16&255]^M[ie>>>8&255]^X[J&255]^F[L++],me=R[G>>>24]^z[ie>>>16&255]^M[J>>>8&255]^X[V&255]^F[L++],N=R[ie>>>24]^z[J>>>16&255]^M[V>>>8&255]^X[G&255]^F[L++],O=R[J>>>24]^z[V>>>16&255]^M[G>>>8&255]^X[ie&255]^F[L++];V=W,G=me,ie=N,J=O}var W=(T[V>>>24]<<24|T[G>>>16&255]<<16|T[ie>>>8&255]<<8|T[J&255])^F[L++],me=(T[G>>>24]<<24|T[ie>>>16&255]<<16|T[J>>>8&255]<<8|T[V&255])^F[L++],N=(T[ie>>>24]<<24|T[J>>>16&255]<<16|T[V>>>8&255]<<8|T[G&255])^F[L++],O=(T[J>>>24]<<24|T[V>>>16&255]<<16|T[G>>>8&255]<<8|T[ie&255])^F[L++];A[D]=W,A[D+1]=me,A[D+2]=N,A[D+3]=O},keySize:256/32});a.AES=u._createHelper(k)})(),r.AES})})(Wu)),Wu.exports}var Ju={exports:{}},VT=Ju.exports,ov;function YT(){return ov||(ov=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),ga(),ya(),Ei(),Xt())})(VT,function(r){return(function(){var a=r,s=a.lib,u=s.WordArray,c=s.BlockCipher,f=a.algo,p=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],x=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],m=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],y=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=f.DES=c.extend({_doReset:function(){for(var w=this._key,k=w.words,A=[],D=0;D<56;D++){var F=p[D]-1;A[D]=k[F>>>5]>>>31-F%32&1}for(var R=this._subKeys=[],z=0;z<16;z++){for(var M=R[z]=[],X=x[z],D=0;D<24;D++)M[D/6|0]|=A[(d[D]-1+X)%28]<<31-D%6,M[4+(D/6|0)]|=A[28+(d[D+24]-1+X)%28]<<31-D%6;M[0]=M[0]<<1|M[0]>>>31;for(var D=1;D<7;D++)M[D]=M[D]>>>(D-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var T=this._invSubKeys=[],D=0;D<16;D++)T[D]=R[15-D]},encryptBlock:function(w,k){this._doCryptBlock(w,k,this._subKeys)},decryptBlock:function(w,k){this._doCryptBlock(w,k,this._invSubKeys)},_doCryptBlock:function(w,k,A){this._lBlock=w[k],this._rBlock=w[k+1],b.call(this,4,252645135),b.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),b.call(this,1,1431655765);for(var D=0;D<16;D++){for(var F=A[D],R=this._lBlock,z=this._rBlock,M=0,X=0;X<8;X++)M|=m[X][((z^F[X])&y[X])>>>0];this._lBlock=z,this._rBlock=R^M}var T=this._lBlock;this._lBlock=this._rBlock,this._rBlock=T,b.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),b.call(this,16,65535),b.call(this,4,252645135),w[k]=this._lBlock,w[k+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function b(w,k){var A=(this._lBlock>>>w^this._rBlock)&k;this._rBlock^=A,this._lBlock^=A<<w}function E(w,k){var A=(this._rBlock>>>w^this._lBlock)&k;this._lBlock^=A,this._rBlock^=A<<w}a.DES=c._createHelper(v);var S=f.TripleDES=c.extend({_doReset:function(){var w=this._key,k=w.words;if(k.length!==2&&k.length!==4&&k.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var A=k.slice(0,2),D=k.length<4?k.slice(0,2):k.slice(2,4),F=k.length<6?k.slice(0,2):k.slice(4,6);this._des1=v.createEncryptor(u.create(A)),this._des2=v.createEncryptor(u.create(D)),this._des3=v.createEncryptor(u.create(F))},encryptBlock:function(w,k){this._des1.encryptBlock(w,k),this._des2.decryptBlock(w,k),this._des3.encryptBlock(w,k)},decryptBlock:function(w,k){this._des3.decryptBlock(w,k),this._des2.encryptBlock(w,k),this._des1.decryptBlock(w,k)},keySize:192/32,ivSize:64/32,blockSize:64/32});a.TripleDES=c._createHelper(S)})(),r.TripleDES})})(Ju)),Ju.exports}var ec={exports:{}},QT=ec.exports,uv;function XT(){return uv||(uv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),ga(),ya(),Ei(),Xt())})(QT,function(r){return(function(){var a=r,s=a.lib,u=s.StreamCipher,c=a.algo,f=c.RC4=u.extend({_doReset:function(){for(var x=this._key,m=x.words,y=x.sigBytes,v=this._S=[],b=0;b<256;b++)v[b]=b;for(var b=0,E=0;b<256;b++){var S=b%y,w=m[S>>>2]>>>24-S%4*8&255;E=(E+v[b]+w)%256;var k=v[b];v[b]=v[E],v[E]=k}this._i=this._j=0},_doProcessBlock:function(x,m){x[m]^=p.call(this)},keySize:256/32,ivSize:0});function p(){for(var x=this._S,m=this._i,y=this._j,v=0,b=0;b<4;b++){m=(m+1)%256,y=(y+x[m])%256;var E=x[m];x[m]=x[y],x[y]=E,v|=x[(x[m]+x[y])%256]<<24-b*8}return this._i=m,this._j=y,v}a.RC4=u._createHelper(f);var d=c.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var x=this.cfg.drop;x>0;x--)p.call(this)}});a.RC4Drop=u._createHelper(d)})(),r.RC4})})(ec)),ec.exports}var tc={exports:{}},GT=tc.exports,cv;function KT(){return cv||(cv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),ga(),ya(),Ei(),Xt())})(GT,function(r){return(function(){var a=r,s=a.lib,u=s.StreamCipher,c=a.algo,f=[],p=[],d=[],x=c.Rabbit=u.extend({_doReset:function(){for(var y=this._key.words,v=this.cfg.iv,b=0;b<4;b++)y[b]=(y[b]<<8|y[b]>>>24)&16711935|(y[b]<<24|y[b]>>>8)&4278255360;var E=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],S=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var b=0;b<4;b++)m.call(this);for(var b=0;b<8;b++)S[b]^=E[b+4&7];if(v){var w=v.words,k=w[0],A=w[1],D=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,F=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,R=D>>>16|F&4294901760,z=F<<16|D&65535;S[0]^=D,S[1]^=R,S[2]^=F,S[3]^=z,S[4]^=D,S[5]^=R,S[6]^=F,S[7]^=z;for(var b=0;b<4;b++)m.call(this)}},_doProcessBlock:function(y,v){var b=this._X;m.call(this),f[0]=b[0]^b[5]>>>16^b[3]<<16,f[1]=b[2]^b[7]>>>16^b[5]<<16,f[2]=b[4]^b[1]>>>16^b[7]<<16,f[3]=b[6]^b[3]>>>16^b[1]<<16;for(var E=0;E<4;E++)f[E]=(f[E]<<8|f[E]>>>24)&16711935|(f[E]<<24|f[E]>>>8)&4278255360,y[v+E]^=f[E]},blockSize:128/32,ivSize:64/32});function m(){for(var y=this._X,v=this._C,b=0;b<8;b++)p[b]=v[b];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<p[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<p[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<p[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<p[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<p[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<p[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<p[6]>>>0?1:0)|0,this._b=v[7]>>>0<p[7]>>>0?1:0;for(var b=0;b<8;b++){var E=y[b]+v[b],S=E&65535,w=E>>>16,k=((S*S>>>17)+S*w>>>15)+w*w,A=((E&4294901760)*E|0)+((E&65535)*E|0);d[b]=k^A}y[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,y[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,y[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,y[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,y[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,y[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,y[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,y[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}a.Rabbit=u._createHelper(x)})(),r.Rabbit})})(tc)),tc.exports}var nc={exports:{}},$T=nc.exports,fv;function ZT(){return fv||(fv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),ga(),ya(),Ei(),Xt())})($T,function(r){return(function(){var a=r,s=a.lib,u=s.StreamCipher,c=a.algo,f=[],p=[],d=[],x=c.RabbitLegacy=u.extend({_doReset:function(){var y=this._key.words,v=this.cfg.iv,b=this._X=[y[0],y[3]<<16|y[2]>>>16,y[1],y[0]<<16|y[3]>>>16,y[2],y[1]<<16|y[0]>>>16,y[3],y[2]<<16|y[1]>>>16],E=this._C=[y[2]<<16|y[2]>>>16,y[0]&4294901760|y[1]&65535,y[3]<<16|y[3]>>>16,y[1]&4294901760|y[2]&65535,y[0]<<16|y[0]>>>16,y[2]&4294901760|y[3]&65535,y[1]<<16|y[1]>>>16,y[3]&4294901760|y[0]&65535];this._b=0;for(var S=0;S<4;S++)m.call(this);for(var S=0;S<8;S++)E[S]^=b[S+4&7];if(v){var w=v.words,k=w[0],A=w[1],D=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,F=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,R=D>>>16|F&4294901760,z=F<<16|D&65535;E[0]^=D,E[1]^=R,E[2]^=F,E[3]^=z,E[4]^=D,E[5]^=R,E[6]^=F,E[7]^=z;for(var S=0;S<4;S++)m.call(this)}},_doProcessBlock:function(y,v){var b=this._X;m.call(this),f[0]=b[0]^b[5]>>>16^b[3]<<16,f[1]=b[2]^b[7]>>>16^b[5]<<16,f[2]=b[4]^b[1]>>>16^b[7]<<16,f[3]=b[6]^b[3]>>>16^b[1]<<16;for(var E=0;E<4;E++)f[E]=(f[E]<<8|f[E]>>>24)&16711935|(f[E]<<24|f[E]>>>8)&4278255360,y[v+E]^=f[E]},blockSize:128/32,ivSize:64/32});function m(){for(var y=this._X,v=this._C,b=0;b<8;b++)p[b]=v[b];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<p[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<p[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<p[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<p[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<p[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<p[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<p[6]>>>0?1:0)|0,this._b=v[7]>>>0<p[7]>>>0?1:0;for(var b=0;b<8;b++){var E=y[b]+v[b],S=E&65535,w=E>>>16,k=((S*S>>>17)+S*w>>>15)+w*w,A=((E&4294901760)*E|0)+((E&65535)*E|0);d[b]=k^A}y[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,y[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,y[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,y[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,y[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,y[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,y[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,y[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}a.RabbitLegacy=u._createHelper(x)})(),r.RabbitLegacy})})(nc)),nc.exports}var rc={exports:{}},WT=rc.exports,dv;function JT(){return dv||(dv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),ga(),ya(),Ei(),Xt())})(WT,function(r){return(function(){var a=r,s=a.lib,u=s.BlockCipher,c=a.algo;const f=16,p=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var x={pbox:[],sbox:[]};function m(S,w){let k=w>>24&255,A=w>>16&255,D=w>>8&255,F=w&255,R=S.sbox[0][k]+S.sbox[1][A];return R=R^S.sbox[2][D],R=R+S.sbox[3][F],R}function y(S,w,k){let A=w,D=k,F;for(let R=0;R<f;++R)A=A^S.pbox[R],D=m(S,A)^D,F=A,A=D,D=F;return F=A,A=D,D=F,D=D^S.pbox[f],A=A^S.pbox[f+1],{left:A,right:D}}function v(S,w,k){let A=w,D=k,F;for(let R=f+1;R>1;--R)A=A^S.pbox[R],D=m(S,A)^D,F=A,A=D,D=F;return F=A,A=D,D=F,D=D^S.pbox[1],A=A^S.pbox[0],{left:A,right:D}}function b(S,w,k){for(let z=0;z<4;z++){S.sbox[z]=[];for(let M=0;M<256;M++)S.sbox[z][M]=d[z][M]}let A=0;for(let z=0;z<f+2;z++)S.pbox[z]=p[z]^w[A],A++,A>=k&&(A=0);let D=0,F=0,R=0;for(let z=0;z<f+2;z+=2)R=y(S,D,F),D=R.left,F=R.right,S.pbox[z]=D,S.pbox[z+1]=F;for(let z=0;z<4;z++)for(let M=0;M<256;M+=2)R=y(S,D,F),D=R.left,F=R.right,S.sbox[z][M]=D,S.sbox[z][M+1]=F;return!0}var E=c.Blowfish=u.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var S=this._keyPriorReset=this._key,w=S.words,k=S.sigBytes/4;b(x,w,k)}},encryptBlock:function(S,w){var k=y(x,S[w],S[w+1]);S[w]=k.left,S[w+1]=k.right},decryptBlock:function(S,w){var k=v(x,S[w],S[w+1]);S[w]=k.left,S[w+1]=k.right},blockSize:64/32,keySize:128/32,ivSize:64/32});a.Blowfish=u._createHelper(E)})(),r.Blowfish})})(rc)),rc.exports}var eR=Eu.exports,hv;function tR(){return hv||(hv=1,(function(e,n){(function(r,a,s){e.exports=a(Pe(),wu(),ZB(),JB(),ga(),nT(),ya(),Uy(),gd(),sT(),Iy(),cT(),dT(),pT(),yd(),gT(),Ei(),Xt(),ET(),ST(),AT(),kT(),BT(),RT(),zT(),FT(),LT(),jT(),qT(),PT(),YT(),XT(),KT(),ZT(),JT())})(eR,function(r){return r})})(Eu)),Eu.exports}var nR=tR();const mn=Cr(nR),pv=mn.enc.Utf8.parse("NFyekGiXWSpw3s6wv2RBtrxuPP6UIJA5");class Bs{static encrypt(n){const r=mn.lib.WordArray.random(16),a=mn.AES.encrypt(n,pv,{iv:r,mode:mn.mode.CBC,padding:mn.pad.Pkcs7});return r.toString(mn.enc.Hex)+":"+a.toString()}static decrypt(n){const r=n.split(":");if(r.length!==2)return console.error("Invalid encrypted string format"),"";const a=mn.enc.Hex.parse(r[0]),s=r[1];return mn.AES.decrypt(s,pv,{iv:a,mode:mn.mode.CBC,padding:mn.pad.Pkcs7}).toString(mn.enc.Utf8)}static async encryptFile(n){return new Promise((r,a)=>{const s=new FileReader;s.onload=()=>{const u=s.result,c=this.encrypt(u),f=new Blob([c],{type:"text/plain"}),p=new File([f],n.name,{type:n.type,lastModified:n.lastModified});r(p)},s.onerror=a,s.readAsDataURL(n)})}}class rR{static encode(n){const r=JSON.stringify(n),a=mn.enc.Utf8.parse(r);let s=mn.enc.Base64.stringify(a);return s=s.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),s}static decode(n){let r=n.replace(/-/g,"+").replace(/_/g,"/");for(;r.length%4;)r+="=";const s=mn.enc.Base64.parse(r).toString(mn.enc.Utf8);return JSON.parse(s)}}const iR={CHAT_MESSAGES:"chatMessages"};class mv{constructor(n){dr(this,"apiClient");this.apiClient=new By({baseURL:"http://localhost:9999",headers:n?{"X-API-Key":n}:{}})}updateApiKey(n){this.apiClient=new By({baseURL:"http://localhost:9999",headers:{"X-API-Key":n}})}getSecureSessionId(n){const r=Bs.encrypt(n);return rR.encode({sid:r})}async sendMessage(n,r,a=[]){const s=new FormData,u=Bs.encrypt(n),c=this.getSecureSessionId(r);s.append("message",u),s.append("session_id",c);for(const p of a){const d=await Bs.encryptFile(p);s.append("files",d)}return await this.apiClient.post("/chat-module/send-message",s,{headers:{"Content-Type":"multipart/form-data"}})}async getThread(n){const r=this.getSecureSessionId(n),a=await this.apiClient.get(`/chat-module/thread/${r}`);return a.data&&a.data.messages&&(a.data.messages=a.data.messages.map(s=>({...s,content:s.role==="assistant"||s.role==="user"?Bs.decrypt(s.content):s.content}))),a}encodeSessionId(n){return this.getSecureSessionId(n)}}let Ts=new mv;function aR(e){return Ts=new mv(e),Ts}function lR(){return MC({mutationFn:({message:e,sessionId:n,files:r=[]})=>Ts.sendMessage(e,n,r)})}function sR(e){return FC({queryKey:[iR.CHAT_MESSAGES,e],queryFn:()=>Ts.getThread(e),enabled:!!e})}const kr=Object.create(null);kr.open="0",kr.close="1",kr.ping="2",kr.pong="3",kr.message="4",kr.upgrade="5",kr.noop="6";const ic=Object.create(null);Object.keys(kr).forEach(e=>{ic[kr[e]]=e});const vd={type:"error",data:"parser error"},xv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",gv=typeof ArrayBuffer=="function",yv=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,bd=({type:e,data:n},r,a)=>xv&&n instanceof Blob?r?a(n):vv(n,a):gv&&(n instanceof ArrayBuffer||yv(n))?r?a(n):vv(new Blob([n]),a):a(kr[e]+(n||"")),vv=(e,n)=>{const r=new FileReader;return r.onload=function(){const a=r.result.split(",")[1];n("b"+(a||""))},r.readAsDataURL(e)};function bv(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Ed;function oR(e,n){if(xv&&e.data instanceof Blob)return e.data.arrayBuffer().then(bv).then(n);if(gv&&(e.data instanceof ArrayBuffer||yv(e.data)))return n(bv(e.data));bd(e,!1,r=>{Ed||(Ed=new TextEncoder),n(Ed.encode(r))})}const Ev="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Rs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Ev.length;e++)Rs[Ev.charCodeAt(e)]=e;const uR=e=>{let n=e.length*.75,r=e.length,a,s=0,u,c,f,p;e[e.length-1]==="="&&(n--,e[e.length-2]==="="&&n--);const d=new ArrayBuffer(n),x=new Uint8Array(d);for(a=0;a<r;a+=4)u=Rs[e.charCodeAt(a)],c=Rs[e.charCodeAt(a+1)],f=Rs[e.charCodeAt(a+2)],p=Rs[e.charCodeAt(a+3)],x[s++]=u<<2|c>>4,x[s++]=(c&15)<<4|f>>2,x[s++]=(f&3)<<6|p&63;return d},cR=typeof ArrayBuffer=="function",Cd=(e,n)=>{if(typeof e!="string")return{type:"message",data:Cv(e,n)};const r=e.charAt(0);return r==="b"?{type:"message",data:fR(e.substring(1),n)}:ic[r]?e.length>1?{type:ic[r],data:e.substring(1)}:{type:ic[r]}:vd},fR=(e,n)=>{if(cR){const r=uR(e);return Cv(r,n)}else return{base64:!0,data:e}},Cv=(e,n)=>{switch(n){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Sv="",dR=(e,n)=>{const r=e.length,a=new Array(r);let s=0;e.forEach((u,c)=>{bd(u,!1,f=>{a[c]=f,++s===r&&n(a.join(Sv))})})},hR=(e,n)=>{const r=e.split(Sv),a=[];for(let s=0;s<r.length;s++){const u=Cd(r[s],n);if(a.push(u),u.type==="error")break}return a};function pR(){return new TransformStream({transform(e,n){oR(e,r=>{const a=r.length;let s;if(a<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,a);else if(a<65536){s=new Uint8Array(3);const u=new DataView(s.buffer);u.setUint8(0,126),u.setUint16(1,a)}else{s=new Uint8Array(9);const u=new DataView(s.buffer);u.setUint8(0,127),u.setBigUint64(1,BigInt(a))}e.data&&typeof e.data!="string"&&(s[0]|=128),n.enqueue(s),n.enqueue(r)})}})}let Sd;function ac(e){return e.reduce((n,r)=>n+r.length,0)}function lc(e,n){if(e[0].length===n)return e.shift();const r=new Uint8Array(n);let a=0;for(let s=0;s<n;s++)r[s]=e[0][a++],a===e[0].length&&(e.shift(),a=0);return e.length&&a<e[0].length&&(e[0]=e[0].slice(a)),r}function mR(e,n){Sd||(Sd=new TextDecoder);const r=[];let a=0,s=-1,u=!1;return new TransformStream({transform(c,f){for(r.push(c);;){if(a===0){if(ac(r)<1)break;const p=lc(r,1);u=(p[0]&128)===128,s=p[0]&127,s<126?a=3:s===126?a=1:a=2}else if(a===1){if(ac(r)<2)break;const p=lc(r,2);s=new DataView(p.buffer,p.byteOffset,p.length).getUint16(0),a=3}else if(a===2){if(ac(r)<8)break;const p=lc(r,8),d=new DataView(p.buffer,p.byteOffset,p.length),x=d.getUint32(0);if(x>Math.pow(2,21)-1){f.enqueue(vd);break}s=x*Math.pow(2,32)+d.getUint32(4),a=3}else{if(ac(r)<s)break;const p=lc(r,s);f.enqueue(Cd(u?p:Sd.decode(p),n)),a=0}if(s===0||s>e){f.enqueue(vd);break}}}})}const wv=4;function Nt(e){if(e)return xR(e)}function xR(e){for(var n in Nt.prototype)e[n]=Nt.prototype[n];return e}Nt.prototype.on=Nt.prototype.addEventListener=function(e,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(n),this},Nt.prototype.once=function(e,n){function r(){this.off(e,r),n.apply(this,arguments)}return r.fn=n,this.on(e,r),this},Nt.prototype.off=Nt.prototype.removeListener=Nt.prototype.removeAllListeners=Nt.prototype.removeEventListener=function(e,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var a,s=0;s<r.length;s++)if(a=r[s],a===n||a.fn===n){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this},Nt.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),r=this._callbacks["$"+e],a=1;a<arguments.length;a++)n[a-1]=arguments[a];if(r){r=r.slice(0);for(var a=0,s=r.length;a<s;++a)r[a].apply(this,n)}return this},Nt.prototype.emitReserved=Nt.prototype.emit,Nt.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Nt.prototype.hasListeners=function(e){return!!this.listeners(e).length};const sc=typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0),Zn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),gR="arraybuffer";function kz(){}function Av(e,...n){return n.reduce((r,a)=>(e.hasOwnProperty(a)&&(r[a]=e[a]),r),{})}const yR=Zn.setTimeout,vR=Zn.clearTimeout;function oc(e,n){n.useNativeTimers?(e.setTimeoutFn=yR.bind(Zn),e.clearTimeoutFn=vR.bind(Zn)):(e.setTimeoutFn=Zn.setTimeout.bind(Zn),e.clearTimeoutFn=Zn.clearTimeout.bind(Zn))}const bR=1.33;function ER(e){return typeof e=="string"?CR(e):Math.ceil((e.byteLength||e.size)*bR)}function CR(e){let n=0,r=0;for(let a=0,s=e.length;a<s;a++)n=e.charCodeAt(a),n<128?r+=1:n<2048?r+=2:n<55296||n>=57344?r+=3:(a++,r+=4);return r}function _v(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function SR(e){let n="";for(let r in e)e.hasOwnProperty(r)&&(n.length&&(n+="&"),n+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n}function wR(e){let n={},r=e.split("&");for(let a=0,s=r.length;a<s;a++){let u=r[a].split("=");n[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return n}class AR extends Error{constructor(n,r,a){super(n),this.description=r,this.context=a,this.type="TransportError"}}class wd extends Nt{constructor(n){super(),this.writable=!1,oc(this,n),this.opts=n,this.query=n.query,this.socket=n.socket,this.supportsBinary=!n.forceBase64}onError(n,r,a){return super.emitReserved("error",new AR(n,r,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(n){this.readyState==="open"&&this.write(n)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(n){const r=Cd(n,this.socket.binaryType);this.onPacket(r)}onPacket(n){super.emitReserved("packet",n)}onClose(n){this.readyState="closed",super.emitReserved("close",n)}pause(n){}createUri(n,r={}){return n+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const n=this.opts.hostname;return n.indexOf(":")===-1?n:"["+n+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(n){const r=SR(n);return r.length?"?"+r:""}}class _R extends wd{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(n){this.readyState="pausing";const r=()=>{this.readyState="paused",n()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||r()})),this.writable||(a++,this.once("drain",function(){--a||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){const r=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};hR(n,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,dR(n,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const n=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=_v()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(n,r)}}let kv=!1;try{kv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const kR=kv;function DR(){}class BR extends _R{constructor(n){if(super(n),typeof location<"u"){const r=location.protocol==="https:";let a=location.port;a||(a=r?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||a!==n.port}}doWrite(n,r){const a=this.request({method:"POST",data:n});a.on("success",r),a.on("error",(s,u)=>{this.onError("xhr post error",s,u)})}doPoll(){const n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(r,a)=>{this.onError("xhr poll error",r,a)}),this.pollXhr=n}}class Dr extends Nt{constructor(n,r,a){super(),this.createRequest=n,oc(this,a),this._opts=a,this._method=a.method||"GET",this._uri=r,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var n;const r=Av(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(r);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&a.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var s;a.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=Dr.requestsCount++,Dr.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=DR,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Dr.requests[this._index],this._xhr=null}}_onLoad(){const n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(Dr.requestsCount=0,Dr.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Dv);else if(typeof addEventListener=="function"){const e="onpagehide"in Zn?"pagehide":"unload";addEventListener(e,Dv,!1)}}function Dv(){for(let e in Dr.requests)Dr.requests.hasOwnProperty(e)&&Dr.requests[e].abort()}const TR=(function(){const e=Bv({xdomain:!1});return e&&e.responseType!==null})();class RR extends BR{constructor(n){super(n);const r=n&&n.forceBase64;this.supportsBinary=TR&&!r}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new Dr(Bv,this.uri(),n)}}function Bv(e){const n=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||kR))return new XMLHttpRequest}catch{}if(!n)try{return new Zn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Tv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class OR extends wd{get name(){return"websocket"}doOpen(){const n=this.uri(),r=this.opts.protocols,a=Tv?{}:Av(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,r,a)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const a=n[r],s=r===n.length-1;bd(a,this.supportsBinary,u=>{try{this.doWrite(a,u)}catch{}s&&sc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const n=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=_v()),this.supportsBinary||(r.b64=1),this.createUri(n,r)}}const Ad=Zn.WebSocket||Zn.MozWebSocket;class zR extends OR{createSocket(n,r,a){return Tv?new Ad(n,r,a):r?new Ad(n,r):new Ad(n)}doWrite(n,r){this.ws.send(r)}}class NR extends wd{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{const r=mR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=n.readable.pipeThrough(r).getReader(),s=pR();s.readable.pipeTo(n.writable),this._writer=s.writable.getWriter();const u=()=>{a.read().then(({done:f,value:p})=>{f||(this.onPacket(p),u())}).catch(f=>{})};u();const c={type:"open"};this.query.sid&&(c.data=`{"sid":"${this.query.sid}"}`),this._writer.write(c).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let r=0;r<n.length;r++){const a=n[r],s=r===n.length-1;this._writer.write(a).then(()=>{s&&sc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}}const FR={websocket:zR,webtransport:NR,polling:RR},MR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,LR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function _d(e){if(e.length>8e3)throw"URI too long";const n=e,r=e.indexOf("["),a=e.indexOf("]");r!=-1&&a!=-1&&(e=e.substring(0,r)+e.substring(r,a).replace(/:/g,";")+e.substring(a,e.length));let s=MR.exec(e||""),u={},c=14;for(;c--;)u[LR[c]]=s[c]||"";return r!=-1&&a!=-1&&(u.source=n,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u.pathNames=UR(u,u.path),u.queryKey=jR(u,u.query),u}function UR(e,n){const r=/\/{2,9}/g,a=n.replace(r,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&a.splice(0,1),n.slice(-1)=="/"&&a.splice(a.length-1,1),a}function jR(e,n){const r={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,s,u){s&&(r[s]=u)}),r}const kd=typeof addEventListener=="function"&&typeof removeEventListener=="function",uc=[];kd&&addEventListener("offline",()=>{uc.forEach(e=>e())},!1);class Ci extends Nt{constructor(n,r){if(super(),this.binaryType=gR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(r=n,n=null),n){const a=_d(n);r.hostname=a.host,r.secure=a.protocol==="https"||a.protocol==="wss",r.port=a.port,a.query&&(r.query=a.query)}else r.host&&(r.hostname=_d(r.host).host);oc(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(a=>{const s=a.prototype.name;this.transports.push(s),this._transportsByName[s]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=wR(this.opts.query)),kd&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},uc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){const r=Object.assign({},this.opts.query);r.EIO=wv,r.transport=n,this.id&&(r.sid=this.id);const a=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const n=this.opts.rememberUpgrade&&Ci.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(n);r.open(),this.setTransport(r)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Ci.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=n.data,this._onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let a=0;a<this.writeBuffer.length;a++){const s=this.writeBuffer[a].data;if(s&&(r+=ER(s)),a>0&&r>this._maxPayload)return this.writeBuffer.slice(0,a);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,sc(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,r,a){return this._sendPacket("message",n,r,a),this}send(n,r,a){return this._sendPacket("message",n,r,a),this}_sendPacket(n,r,a,s){if(typeof r=="function"&&(s=r,r=void 0),typeof a=="function"&&(s=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const u={type:n,data:r,options:a};this.emitReserved("packetCreate",u),this.writeBuffer.push(u),s&&this.once("flush",s),this.flush()}close(){const n=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},a=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():n()}):this.upgrading?a():n()),this}_onError(n){if(Ci.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),kd&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=uc.indexOf(this._offlineEventListener);a!==-1&&uc.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this._prevBufferLen=0}}}Ci.protocol=wv;class HR extends Ci{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n<this._upgrades.length;n++)this._probe(this._upgrades[n])}_probe(n){let r=this.createTransport(n),a=!1;Ci.priorWebsocketSuccess=!1;const s=()=>{a||(r.send([{type:"ping",data:"probe"}]),r.once("packet",m=>{if(!a)if(m.type==="pong"&&m.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;Ci.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(x(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const y=new Error("probe error");y.transport=r.name,this.emitReserved("upgradeError",y)}}))};function u(){a||(a=!0,x(),r.close(),r=null)}const c=m=>{const y=new Error("probe error: "+m);y.transport=r.name,u(),this.emitReserved("upgradeError",y)};function f(){c("transport closed")}function p(){c("socket closed")}function d(m){r&&m.name!==r.name&&u()}const x=()=>{r.removeListener("open",s),r.removeListener("error",c),r.removeListener("close",f),this.off("close",p),this.off("upgrading",d)};r.once("open",s),r.once("error",c),r.once("close",f),this.once("close",p),this.once("upgrading",d),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{a||r.open()},200):r.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){const r=[];for(let a=0;a<n.length;a++)~this.transports.indexOf(n[a])&&r.push(n[a]);return r}}let qR=class extends HR{constructor(n,r={}){const a=typeof n=="object"?n:r;(!a.transports||a.transports&&typeof a.transports[0]=="string")&&(a.transports=(a.transports||["polling","websocket","webtransport"]).map(s=>FR[s]).filter(s=>!!s)),super(n,a)}};function IR(e,n="",r){let a=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),a=_d(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const u=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+u+":"+a.port+n,a.href=a.protocol+"://"+u+(r&&r.port===a.port?"":":"+a.port),a}const PR=typeof ArrayBuffer=="function",VR=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Rv=Object.prototype.toString,YR=typeof Blob=="function"||typeof Blob<"u"&&Rv.call(Blob)==="[object BlobConstructor]",QR=typeof File=="function"||typeof File<"u"&&Rv.call(File)==="[object FileConstructor]";function Dd(e){return PR&&(e instanceof ArrayBuffer||VR(e))||YR&&e instanceof Blob||QR&&e instanceof File}function cc(e,n){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,a=e.length;r<a;r++)if(cc(e[r]))return!0;return!1}if(Dd(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return cc(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&cc(e[r]))return!0;return!1}function XR(e){const n=[],r=e.data,a=e;return a.data=Bd(r,n),a.attachments=n.length,{packet:a,buffers:n}}function Bd(e,n){if(!e)return e;if(Dd(e)){const r={_placeholder:!0,num:n.length};return n.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let a=0;a<e.length;a++)r[a]=Bd(e[a],n);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=Bd(e[a],n));return r}return e}function GR(e,n){return e.data=Td(e.data,n),delete e.attachments,e}function Td(e,n){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<n.length)return n[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Td(e[r],n);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Td(e[r],n));return e}const KR=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var Ve;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Ve||(Ve={}));class $R{constructor(n){this.replacer=n}encode(n){return(n.type===Ve.EVENT||n.type===Ve.ACK)&&cc(n)?this.encodeAsBinary({type:n.type===Ve.EVENT?Ve.BINARY_EVENT:Ve.BINARY_ACK,nsp:n.nsp,data:n.data,id:n.id}):[this.encodeAsString(n)]}encodeAsString(n){let r=""+n.type;return(n.type===Ve.BINARY_EVENT||n.type===Ve.BINARY_ACK)&&(r+=n.attachments+"-"),n.nsp&&n.nsp!=="/"&&(r+=n.nsp+","),n.id!=null&&(r+=n.id),n.data!=null&&(r+=JSON.stringify(n.data,this.replacer)),r}encodeAsBinary(n){const r=XR(n),a=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(a),s}}class Rd extends Nt{constructor(n){super(),this.reviver=n}add(n){let r;if(typeof n=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(n);const a=r.type===Ve.BINARY_EVENT;a||r.type===Ve.BINARY_ACK?(r.type=a?Ve.EVENT:Ve.ACK,this.reconstructor=new ZR(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Dd(n)||n.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(n),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+n)}decodeString(n){let r=0;const a={type:Number(n.charAt(0))};if(Ve[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===Ve.BINARY_EVENT||a.type===Ve.BINARY_ACK){const u=r+1;for(;n.charAt(++r)!=="-"&&r!=n.length;);const c=n.substring(u,r);if(c!=Number(c)||n.charAt(r)!=="-")throw new Error("Illegal attachments");a.attachments=Number(c)}if(n.charAt(r+1)==="/"){const u=r+1;for(;++r&&!(n.charAt(r)===","||r===n.length););a.nsp=n.substring(u,r)}else a.nsp="/";const s=n.charAt(r+1);if(s!==""&&Number(s)==s){const u=r+1;for(;++r;){const c=n.charAt(r);if(c==null||Number(c)!=c){--r;break}if(r===n.length)break}a.id=Number(n.substring(u,r+1))}if(n.charAt(++r)){const u=this.tryParse(n.substr(r));if(Rd.isPayloadValid(a.type,u))a.data=u;else throw new Error("invalid payload")}return a}tryParse(n){try{return JSON.parse(n,this.reviver)}catch{return!1}}static isPayloadValid(n,r){switch(n){case Ve.CONNECT:return Ov(r);case Ve.DISCONNECT:return r===void 0;case Ve.CONNECT_ERROR:return typeof r=="string"||Ov(r);case Ve.EVENT:case Ve.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&KR.indexOf(r[0])===-1);case Ve.ACK:case Ve.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class ZR{constructor(n){this.packet=n,this.buffers=[],this.reconPack=n}takeBinaryData(n){if(this.buffers.push(n),this.buffers.length===this.reconPack.attachments){const r=GR(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function Ov(e){return Object.prototype.toString.call(e)==="[object Object]"}const WR=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Rd,Encoder:$R,get PacketType(){return Ve}},Symbol.toStringTag,{value:"Module"}));function xr(e,n,r){return e.on(n,r),function(){e.off(n,r)}}const JR=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class zv extends Nt{constructor(n,r,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=n,this.nsp=r,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const n=this.io;this.subs=[xr(n,"open",this.onopen.bind(this)),xr(n,"packet",this.onpacket.bind(this)),xr(n,"error",this.onerror.bind(this)),xr(n,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...n){return n.unshift("message"),this.emit.apply(this,n),this}emit(n,...r){var a,s,u;if(JR.hasOwnProperty(n))throw new Error('"'+n.toString()+'" is a reserved event name');if(r.unshift(n),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const c={type:Ve.EVENT,data:r};if(c.options={},c.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const x=this.ids++,m=r.pop();this._registerAckCallback(x,m),c.id=x}const f=(s=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||s===void 0?void 0:s.writable,p=this.connected&&!(!((u=this.io.engine)===null||u===void 0)&&u._hasPingExpired());return this.flags.volatile&&!f||(p?(this.notifyOutgoingListeners(c),this.packet(c)):this.sendBuffer.push(c)),this.flags={},this}_registerAckCallback(n,r){var a;const s=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(s===void 0){this.acks[n]=r;return}const u=this.io.setTimeoutFn(()=>{delete this.acks[n];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===n&&this.sendBuffer.splice(f,1);r.call(this,new Error("operation has timed out"))},s),c=(...f)=>{this.io.clearTimeoutFn(u),r.apply(this,f)};c.withError=!0,this.acks[n]=c}emitWithAck(n,...r){return new Promise((a,s)=>{const u=(c,f)=>c?s(c):a(f);u.withError=!0,r.push(u),this.emit(n,...r)})}_addToQueue(n){let r;typeof n[n.length-1]=="function"&&(r=n.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((s,...u)=>(this._queue[0],s!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(s)):(this._queue.shift(),r&&r(null,...u)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!n||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:Ve.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(a=>String(a.id)===n)){const a=this.acks[n];delete this.acks[n],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case Ve.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ve.EVENT:case Ve.BINARY_EVENT:this.onevent(n);break;case Ve.ACK:case Ve.BINARY_ACK:this.onack(n);break;case Ve.DISCONNECT:this.ondisconnect();break;case Ve.CONNECT_ERROR:this.destroy();const a=new Error(n.data.message);a.data=n.data.data,this.emitReserved("connect_error",a);break}}onevent(n){const r=n.data||[];n.id!=null&&r.push(this.ack(n.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const a of r)a.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){const r=this;let a=!1;return function(...s){a||(a=!0,r.packet({type:Ve.ACK,id:n,data:s}))}}onack(n){const r=this.acks[n.id];typeof r=="function"&&(delete this.acks[n.id],r.withError&&n.data.unshift(null),r.apply(this,n.data))}onconnect(n,r){this.id=n,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ve.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){const r=this._anyListeners;for(let a=0;a<r.length;a++)if(n===r[a])return r.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(n),this}prependAnyOutgoing(n){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(n),this}offAnyOutgoing(n){if(!this._anyOutgoingListeners)return this;if(n){const r=this._anyOutgoingListeners;for(let a=0;a<r.length;a++)if(n===r[a])return r.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(n){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const a of r)a.apply(this,n.data)}}}function ol(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}ol.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*e);e=(Math.floor(n*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0},ol.prototype.reset=function(){this.attempts=0},ol.prototype.setMin=function(e){this.ms=e},ol.prototype.setMax=function(e){this.max=e},ol.prototype.setJitter=function(e){this.jitter=e};class Od extends Nt{constructor(n,r){var a;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(r=n,n=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,oc(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((a=r.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new ol({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=n;const s=r.parser||WR;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var r;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(r=this.backoff)===null||r===void 0||r.setMin(n),this)}randomizationFactor(n){var r;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(r=this.backoff)===null||r===void 0||r.setJitter(n),this)}reconnectionDelayMax(n){var r;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(r=this.backoff)===null||r===void 0||r.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new qR(this.uri,this.opts);const r=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const s=xr(r,"open",function(){a.onopen(),n&&n()}),u=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),n?n(f):this.maybeReconnectOnOpen()},c=xr(r,"error",u);if(this._timeout!==!1){const f=this._timeout,p=this.setTimeoutFn(()=>{s(),u(new Error("timeout")),r.close()},f);this.opts.autoUnref&&p.unref(),this.subs.push(()=>{this.clearTimeoutFn(p)})}return this.subs.push(s),this.subs.push(c),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const n=this.engine;this.subs.push(xr(n,"ping",this.onping.bind(this)),xr(n,"data",this.ondata.bind(this)),xr(n,"error",this.onerror.bind(this)),xr(n,"close",this.onclose.bind(this)),xr(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(r){this.onclose("parse error",r)}}ondecoded(n){sc(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,r){let a=this.nsps[n];return a?this._autoConnect&&!a.active&&a.connect():(a=new zv(this,n,r),this.nsps[n]=a),a}_destroy(n){const r=Object.keys(this.nsps);for(const a of r)if(this.nsps[a].active)return;this._close()}_packet(n){const r=this.encoder.encode(n);for(let a=0;a<r.length;a++)this.engine.write(r[a],n.options)}cleanup(){this.subs.forEach(n=>n()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,r){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(s=>{s?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",s)):n.onreconnect()}))},r);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}}const Os={};function fc(e,n){typeof e=="object"&&(n=e,e=void 0),n=n||{};const r=IR(e,n.path||"/socket.io"),a=r.source,s=r.id,u=r.path,c=Os[s]&&u in Os[s].nsps,f=n.forceNew||n["force new connection"]||n.multiplex===!1||c;let p;return f?p=new Od(a,n):(Os[s]||(Os[s]=new Od(a,n)),p=Os[s]),r.query&&!n.query&&(n.query=r.queryKey),p.socket(r.path,n)}Object.assign(fc,{Manager:Od,Socket:zv,io:fc,connect:fc});const e9="http://localhost:9999";function t9({sessionId:e,onGenerating:n,onCompleted:r,onError:a}){const s=Y.useRef(null);return Y.useEffect(()=>{if(!e)return;s.current=fc(e9,{transports:["websocket"],reconnectionAttempts:5});const u=s.current;return u.on("connect",()=>{console.log("Socket connected");const c=Ts.encodeSessionId(e);u.emit("join_session",{session_id:c},f=>{f!=null&&f.success?console.log(`Joined session: ${e} (Encoded)`):console.error("Failed to join session:",f)})}),u.on("connect_error",c=>{console.error("Socket connection error:",c)}),u.on("generating",c=>{n==null||n()}),u.on("completed",c=>{if(c!=null&&c.message){let f=c.message.content;try{f=Bs.decrypt(f)}catch(d){console.error("Failed to decrypt message:",d),f="Error decrypting message"}const p={id:c.message.id,role:c.message.role,content:f,timestamp:new Date(c.message.timestamp),shouldAnimate:!0};r==null||r(p)}}),u.on("chat_error",c=>{console.error("Socket chat_error event:",c),a==null||a((c==null?void 0:c.message)||"Unknown chat error")}),u.on("error",c=>{console.error("Socket error event:",c),a==null||a((c==null?void 0:c.message)||"Unknown socket error")}),()=>{u.disconnect()}},[e]),s.current}const en=[];for(let e=0;e<256;++e)en.push((e+256).toString(16).slice(1));function n9(e,n=0){return(en[e[n+0]]+en[e[n+1]]+en[e[n+2]]+en[e[n+3]]+"-"+en[e[n+4]]+en[e[n+5]]+"-"+en[e[n+6]]+en[e[n+7]]+"-"+en[e[n+8]]+en[e[n+9]]+"-"+en[e[n+10]]+en[e[n+11]]+en[e[n+12]]+en[e[n+13]]+en[e[n+14]]+en[e[n+15]]).toLowerCase()}let zd;const r9=new Uint8Array(16);function i9(){if(!zd){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");zd=crypto.getRandomValues.bind(crypto)}return zd(r9)}const Nd={};function dc(e,n,r){let a;{const s=Date.now(),u=i9();a9(Nd,s,u),a=l9(u,Nd.msecs,Nd.seq,n,r)}return n??n9(a)}function a9(e,n,r){return e.msecs??(e.msecs=-1/0),e.seq??(e.seq=0),n>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=n):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function l9(e,n,r,a,s=0){if(e.length<16)throw new Error("Random bytes length must be >= 16");if(!a)a=new Uint8Array(16),s=0;else if(s<0||s+16>a.length)throw new RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);return n??(n=Date.now()),r??(r=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9]),a[s++]=n/1099511627776&255,a[s++]=n/4294967296&255,a[s++]=n/16777216&255,a[s++]=n/65536&255,a[s++]=n/256&255,a[s++]=n&255,a[s++]=112|r>>>28&15,a[s++]=r>>>20&255,a[s++]=128|r>>>14&63,a[s++]=r>>>6&255,a[s++]=r<<2&255|e[10]&3,a[s++]=e[11],a[s++]=e[12],a[s++]=e[13],a[s++]=e[14],a[s++]=e[15],a}/*! js-cookie v3.0.5 | MIT */function hc(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var a in r)e[a]=r[a]}return e}var s9={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Fd(e,n){function r(s,u,c){if(!(typeof document>"u")){c=hc({},n,c),typeof c.expires=="number"&&(c.expires=new Date(Date.now()+c.expires*864e5)),c.expires&&(c.expires=c.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var p in c)c[p]&&(f+="; "+p,c[p]!==!0&&(f+="="+c[p].split(";")[0]));return document.cookie=s+"="+e.write(u,s)+f}}function a(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var u=document.cookie?document.cookie.split("; "):[],c={},f=0;f<u.length;f++){var p=u[f].split("="),d=p.slice(1).join("=");try{var x=decodeURIComponent(p[0]);if(c[x]=e.read(d,x),s===x)break}catch{}}return s?c[s]:c}}return Object.create({set:r,get:a,remove:function(s,u){r(s,"",hc({},u,{expires:-1}))},withAttributes:function(s){return Fd(this.converter,hc({},this.attributes,s))},withConverter:function(s){return Fd(hc({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var Nv=Fd(s9,{path:"/"}),o9=(e,n,r,a,s,u,c,f)=>{let p=document.documentElement,d=["light","dark"];function x(v){(Array.isArray(e)?e:[e]).forEach(b=>{let E=b==="class",S=E&&u?s.map(w=>u[w]||w):s;E?(p.classList.remove(...S),p.classList.add(u&&u[v]?u[v]:v)):p.setAttribute(b,v)}),m(v)}function m(v){f&&d.includes(v)&&(p.style.colorScheme=v)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)x(a);else try{let v=localStorage.getItem(n)||r,b=c&&v==="system"?y():v;x(b)}catch{}},u9=Y.createContext(void 0),c9={setTheme:e=>{},themes:[]},f9=()=>{var e;return(e=Y.useContext(u9))!=null?e:c9};Y.memo(({forcedTheme:e,storageKey:n,attribute:r,enableSystem:a,enableColorScheme:s,defaultTheme:u,value:c,themes:f,nonce:p,scriptProps:d})=>{let x=JSON.stringify([r,n,u,e,f,c,a,s]).slice(1,-1);return Y.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${o9.toString()})(${x})`}})});const d9=({...e})=>{const{theme:n="system"}=f9();return $.jsx(T_,{theme:n,className:"toaster group",icons:{success:$.jsx(PC,{className:"size-4"}),info:$.jsx(XC,{className:"size-4"}),warning:$.jsx(JC,{className:"size-4"}),error:$.jsx($C,{className:"size-4"}),loading:$.jsx(GC,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},...e})},pc={headerBackgroundColor:"#f0293b",messageBackgroundColor:"#f9fafb",userBubbleBackgroundColor:"#1e293b",botBubbleBackgroundColor:"#ffffff",inputSectionBackgroundColor:"#ffffff",sendButtonBackgroundColor:"#1e293b",headerImage:"",headerTitle:"ChatWillow",subLabelTitle:"Start Chatting With Us",closeButtonColor:"#ffffff",headerTextColor:"#ffffff",subLabelColor:"#cbd5e1",userBubbleTextColor:"#ffffff",botBubbleTextColor:"#1f2937",botAvatarImage:"https://github.com/evilrabbit.png",initialMessage:"Hi there! I'm ChatWillow. How can I help you today?",inputPlaceholder:"Type your message...",toastSuccessMessage:"File(s) attached successfully",toastFailedMessage:"Failed to attach file(s)"},Fv="SESSION_ID";function h9({apiKey:e,className:n,style:r}){const[a,s]=Y.useState(!1),[u]=Y.useState(()=>{const b=Nv.get(Fv);if(b)return b;const E=dc();return Nv.set(Fv,E,{expires:1}),E}),[c,f]=Y.useState(!1),[p,d]=Y.useState([]);Y.useEffect(()=>{e&&aR(e)},[e]);const{data:x}=sR(u);Y.useEffect(()=>{var b;if((b=x==null?void 0:x.data)!=null&&b.messages){const E=x.data.messages.map(S=>({...S,timestamp:new Date(S.timestamp),shouldAnimate:!1}));E.length>0?d(E):d([{id:"1",role:"assistant",content:pc.initialMessage,timestamp:new Date}])}},[x]),t9({sessionId:u,onGenerating:()=>{f(!0)},onCompleted:b=>{f(!1),d(E=>E.some(S=>S.id===b.id)?E:[...E,b])},onError:b=>{f(!1);const E={id:dc(),role:"assistant",content:"I'm sorry, I'm having trouble processing your request right now. Please try again in a moment.",timestamp:new Date,shouldAnimate:!0};d(S=>[...S,E])}});const{mutate:m,isPending:y}=lR(),v=(b,E=[])=>{const S={id:dc(),role:"user",content:b,timestamp:new Date};d(w=>[...w,S]),m({message:b,sessionId:u,files:E},{onSuccess:()=>{f(!0)},onError:w=>{const k={id:dc(),role:"assistant",content:"I'm sorry, I encountered an issue while sending your message. Please try again later.",timestamp:new Date,shouldAnimate:!0};d(A=>[...A,k]),f(!1),console.error("Failed to send message:",w)}})};return a?$.jsxs("div",{className:`fixed bottom-0 right-0 z-50 flex flex-col items-end ${n||""}`,style:r,children:[$.jsx(d9,{richColors:!0,position:"top-center"}),$.jsx(CD,{messages:p,onSendMessage:v,isSending:y||c,onClose:()=>s(!1),config:pc})]}):$.jsx("button",{onClick:()=>s(!0),className:`fixed bottom-4 right-4 w-14 h-14 rounded-full flex items-center justify-center shadow-lg hover:brightness-90 transition-all hover:scale-105 z-50 ${n||""}`,style:{...r,backgroundColor:pc.headerBackgroundColor,color:pc.headerTextColor},children:$.jsx(KC,{})})}const p9=new CC({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1}}});function Mv(e){return $.jsx(SC,{client:p9,children:$.jsx(h9,{...e})})}const Lv=e=>{if(typeof window>"u")return;const n=e.containerId||"chatwillow-root";let r=document.getElementById(n);r||(r=document.createElement("div"),r.id=n,document.body.appendChild(r)),$4.createRoot(r).render(Y.createElement(Mv,e))};typeof window<"u"&&(window.ChatWillow={init:Lv}),Xe.ChatWillowWidget=Mv,Xe.init=Lv,Object.defineProperty(Xe,Symbol.toStringTag,{value:"Module"})}));