@alfatech/livechat 2025.3.0-6.1 → 2025.3.1-0.1

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 (2) hide show
  1. package/dist/main.js +17 -17
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1,4 +1,4 @@
1
- var bd=e=>{throw TypeError(e)};var iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Fl=(e,t,n)=>t.has(e)||bd("Cannot "+n);var y=(e,t,n)=>(Fl(e,t,"read from private field"),n?n.call(e):t.get(e)),U=(e,t,n)=>t.has(e)?bd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Fl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),q=(e,t,n)=>(Fl(e,t,"access private method"),n);var So=(e,t,n,r)=>({set _(i){j(e,t,i,n)},get _(){return y(e,t,r)}});var wO=iv((gt,vt)=>{function sv(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function qi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tm={exports:{}},Va={},nm={exports:{}},Y={};/**
1
+ var kd=e=>{throw TypeError(e)};var sv=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $a=(e,t,n)=>t.has(e)||kd("Cannot "+n);var y=(e,t,n)=>($a(e,t,"read from private field"),n?n.call(e):t.get(e)),U=(e,t,n)=>t.has(e)?kd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>($a(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),q=(e,t,n)=>($a(e,t,"access private method"),n);var So=(e,t,n,r)=>({set _(i){j(e,t,i,n)},get _(){return y(e,t,r)}});var OO=sv((yt,vt)=>{function ov(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function qi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var tm={exports:{}},Hl={},nm={exports:{}},Y={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var bd=e=>{throw TypeError(e)};var iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,
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 io=Symbol.for("react.element"),ov=Symbol.for("react.portal"),av=Symbol.for("react.fragment"),lv=Symbol.for("react.strict_mode"),uv=Symbol.for("react.profiler"),cv=Symbol.for("react.provider"),fv=Symbol.for("react.context"),dv=Symbol.for("react.forward_ref"),hv=Symbol.for("react.suspense"),pv=Symbol.for("react.memo"),mv=Symbol.for("react.lazy"),kd=Symbol.iterator;function yv(e){return e===null||typeof e!="object"?null:(e=kd&&e[kd]||e["@@iterator"],typeof e=="function"?e:null)}var rm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},im=Object.assign,sm={};function Ki(e,t,n){this.props=e,this.context=t,this.refs=sm,this.updater=n||rm}Ki.prototype.isReactComponent={};Ki.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ki.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function om(){}om.prototype=Ki.prototype;function Kc(e,t,n){this.props=e,this.context=t,this.refs=sm,this.updater=n||rm}var Yc=Kc.prototype=new om;Yc.constructor=Kc;im(Yc,Ki.prototype);Yc.isPureReactComponent=!0;var Cd=Array.isArray,am=Object.prototype.hasOwnProperty,Gc={current:null},lm={key:!0,ref:!0,__self:!0,__source:!0};function um(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)am.call(t,r)&&!lm.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:io,type:e,key:s,ref:o,props:i,_owner:Gc.current}}function gv(e,t){return{$$typeof:io,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xc(e){return typeof e=="object"&&e!==null&&e.$$typeof===io}function vv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Td=/\/+/g;function $l(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vv(""+e.key):t.toString(36)}function Qo(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case io:case ov:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+$l(o,0):r,Cd(i)?(n="",e!=null&&(n=e.replace(Td,"$&/")+"/"),Qo(i,t,n,"",function(c){return c})):i!=null&&(Xc(i)&&(i=gv(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Td,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Cd(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+$l(s,a);o+=Qo(s,t,n,l,i)}else if(l=yv(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+$l(s,a++),o+=Qo(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Eo(e,t,n){if(e==null)return e;var r=[],i=0;return Qo(e,r,"","",function(s){return t.call(n,s,i++)}),r}function wv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ge={current:null},qo={transition:null},xv={ReactCurrentDispatcher:Ge,ReactCurrentBatchConfig:qo,ReactCurrentOwner:Gc};function cm(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:Eo,forEach:function(e,t,n){Eo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Eo(e,function(){t++}),t},toArray:function(e){return Eo(e,function(t){return t})||[]},only:function(e){if(!Xc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=Ki;Y.Fragment=av;Y.Profiler=uv;Y.PureComponent=Kc;Y.StrictMode=lv;Y.Suspense=hv;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xv;Y.act=cm;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=im({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Gc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)am.call(t,l)&&!lm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:io,type:e.type,key:i,ref:s,props:r,_owner:o}};Y.createContext=function(e){return e={$$typeof:fv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:cv,_context:e},e.Consumer=e};Y.createElement=um;Y.createFactory=function(e){var t=um.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:dv,render:e}};Y.isValidElement=Xc;Y.lazy=function(e){return{$$typeof:mv,_payload:{_status:-1,_result:e},_init:wv}};Y.memo=function(e,t){return{$$typeof:pv,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=qo.transition;qo.transition={};try{e()}finally{qo.transition=t}};Y.unstable_act=cm;Y.useCallback=function(e,t){return Ge.current.useCallback(e,t)};Y.useContext=function(e){return Ge.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Ge.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Ge.current.useEffect(e,t)};Y.useId=function(){return Ge.current.useId()};Y.useImperativeHandle=function(e,t,n){return Ge.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Ge.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Ge.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Ge.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Ge.current.useReducer(e,t,n)};Y.useRef=function(e){return Ge.current.useRef(e)};Y.useState=function(e){return Ge.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Ge.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Ge.current.useTransition()};Y.version="18.3.1";nm.exports=Y;var S=nm.exports;const P=qi(S),Sv=sv({__proto__:null,default:P},[S]);/**
9
+ */var io=Symbol.for("react.element"),lv=Symbol.for("react.portal"),av=Symbol.for("react.fragment"),uv=Symbol.for("react.strict_mode"),cv=Symbol.for("react.profiler"),fv=Symbol.for("react.provider"),dv=Symbol.for("react.context"),hv=Symbol.for("react.forward_ref"),pv=Symbol.for("react.suspense"),mv=Symbol.for("react.memo"),gv=Symbol.for("react.lazy"),Cd=Symbol.iterator;function yv(e){return e===null||typeof e!="object"?null:(e=Cd&&e[Cd]||e["@@iterator"],typeof e=="function"?e:null)}var rm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},im=Object.assign,sm={};function Ki(e,t,n){this.props=e,this.context=t,this.refs=sm,this.updater=n||rm}Ki.prototype.isReactComponent={};Ki.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ki.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function om(){}om.prototype=Ki.prototype;function Yc(e,t,n){this.props=e,this.context=t,this.refs=sm,this.updater=n||rm}var Gc=Yc.prototype=new om;Gc.constructor=Yc;im(Gc,Ki.prototype);Gc.isPureReactComponent=!0;var Td=Array.isArray,lm=Object.prototype.hasOwnProperty,Xc={current:null},am={key:!0,ref:!0,__self:!0,__source:!0};function um(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)lm.call(t,r)&&!am.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),c=0;c<l;c++)a[c]=arguments[c+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:io,type:e,key:s,ref:o,props:i,_owner:Xc.current}}function vv(e,t){return{$$typeof:io,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Zc(e){return typeof e=="object"&&e!==null&&e.$$typeof===io}function wv(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Od=/\/+/g;function Ia(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wv(""+e.key):t.toString(36)}function Qo(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case io:case lv:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Ia(o,0):r,Td(i)?(n="",e!=null&&(n=e.replace(Od,"$&/")+"/"),Qo(i,t,n,"",function(c){return c})):i!=null&&(Zc(i)&&(i=vv(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Od,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Td(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+Ia(s,l);o+=Qo(s,t,n,a,i)}else if(a=yv(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+Ia(s,l++),o+=Qo(s,t,n,a,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function bo(e,t,n){if(e==null)return e;var r=[],i=0;return Qo(e,r,"","",function(s){return t.call(n,s,i++)}),r}function xv(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},qo={transition:null},Sv={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:qo,ReactCurrentOwner:Xc};function cm(){throw Error("act(...) is not supported in production builds of React.")}Y.Children={map:bo,forEach:function(e,t,n){bo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bo(e,function(){t++}),t},toArray:function(e){return bo(e,function(t){return t})||[]},only:function(e){if(!Zc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Component=Ki;Y.Fragment=av;Y.Profiler=cv;Y.PureComponent=Yc;Y.StrictMode=uv;Y.Suspense=pv;Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Sv;Y.act=cm;Y.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=im({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Xc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)lm.call(t,a)&&!am.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:io,type:e.type,key:i,ref:s,props:r,_owner:o}};Y.createContext=function(e){return e={$$typeof:dv,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:fv,_context:e},e.Consumer=e};Y.createElement=um;Y.createFactory=function(e){var t=um.bind(null,e);return t.type=e,t};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:hv,render:e}};Y.isValidElement=Zc;Y.lazy=function(e){return{$$typeof:gv,_payload:{_status:-1,_result:e},_init:xv}};Y.memo=function(e,t){return{$$typeof:mv,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=qo.transition;qo.transition={};try{e()}finally{qo.transition=t}};Y.unstable_act=cm;Y.useCallback=function(e,t){return Xe.current.useCallback(e,t)};Y.useContext=function(e){return Xe.current.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};Y.useEffect=function(e,t){return Xe.current.useEffect(e,t)};Y.useId=function(){return Xe.current.useId()};Y.useImperativeHandle=function(e,t,n){return Xe.current.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return Xe.current.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return Xe.current.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return Xe.current.useMemo(e,t)};Y.useReducer=function(e,t,n){return Xe.current.useReducer(e,t,n)};Y.useRef=function(e){return Xe.current.useRef(e)};Y.useState=function(e){return Xe.current.useState(e)};Y.useSyncExternalStore=function(e,t,n){return Xe.current.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return Xe.current.useTransition()};Y.version="18.3.1";nm.exports=Y;var S=nm.exports;const N=qi(S),bv=ov({__proto__:null,default:N},[S]);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var bd=e=>{throw TypeError(e)};var iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,
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 Ev=S,_v=Symbol.for("react.element"),bv=Symbol.for("react.fragment"),kv=Object.prototype.hasOwnProperty,Cv=Ev.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Tv={key:!0,ref:!0,__self:!0,__source:!0};function fm(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)kv.call(t,r)&&!Tv.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:_v,type:e,key:s,ref:o,props:i,_owner:Cv.current}}Va.Fragment=bv;Va.jsx=fm;Va.jsxs=fm;tm.exports=Va;var b=tm.exports,dm={exports:{}},St={},hm={exports:{}},pm={};/**
17
+ */var Ev=S,_v=Symbol.for("react.element"),kv=Symbol.for("react.fragment"),Cv=Object.prototype.hasOwnProperty,Tv=Ev.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ov={key:!0,ref:!0,__self:!0,__source:!0};function fm(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Cv.call(t,r)&&!Ov.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:_v,type:e,key:s,ref:o,props:i,_owner:Tv.current}}Hl.Fragment=kv;Hl.jsx=fm;Hl.jsxs=fm;tm.exports=Hl;var E=tm.exports,dm={exports:{}},St={},hm={exports:{}},pm={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var bd=e=>{throw TypeError(e)};var iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,
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
- */(function(e){function t(N,L){var H=N.length;N.push(L);e:for(;0<H;){var M=H-1>>>1,V=N[M];if(0<i(V,L))N[M]=L,N[H]=V,H=M;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var L=N[0],H=N.pop();if(H!==L){N[0]=H;e:for(var M=0,V=N.length,ee=V>>>1;M<ee;){var de=2*(M+1)-1,Ce=N[de],Z=de+1,Ze=N[Z];if(0>i(Ce,H))Z<V&&0>i(Ze,Ce)?(N[M]=Ze,N[Z]=H,M=Z):(N[M]=Ce,N[de]=H,M=de);else if(Z<V&&0>i(Ze,H))N[M]=Ze,N[Z]=H,M=Z;else break e}}return L}function i(N,L){var H=N.sortIndex-L.sortIndex;return H!==0?H:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],c=[],d=1,u=null,f=3,m=!1,v=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=N)r(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(c)}}function _(N){if(w=!1,g(N),!v)if(n(l)!==null)v=!0,K(T);else{var L=n(c);L!==null&&We(_,L.startTime-N)}}function T(N,L){v=!1,w&&(w=!1,p(R),R=-1),m=!0;var H=f;try{for(g(L),u=n(l);u!==null&&(!(u.expirationTime>L)||N&&!B());){var M=u.callback;if(typeof M=="function"){u.callback=null,f=u.priorityLevel;var V=M(u.expirationTime<=L);L=e.unstable_now(),typeof V=="function"?u.callback=V:u===n(l)&&r(l),g(L)}else r(l);u=n(l)}if(u!==null)var ee=!0;else{var de=n(c);de!==null&&We(_,de.startTime-L),ee=!1}return ee}finally{u=null,f=H,m=!1}}var C=!1,k=null,R=-1,I=5,D=-1;function B(){return!(e.unstable_now()-D<I)}function se(){if(k!==null){var N=e.unstable_now();D=N;var L=!0;try{L=k(!0,N)}finally{L?oe():(C=!1,k=null)}}else C=!1}var oe;if(typeof h=="function")oe=function(){h(se)};else if(typeof MessageChannel<"u"){var Ve=new MessageChannel,He=Ve.port2;Ve.port1.onmessage=se,oe=function(){He.postMessage(null)}}else oe=function(){x(se,0)};function K(N){k=N,C||(C=!0,oe())}function We(N,L){R=x(function(){N(e.unstable_now())},L)}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(N){N.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,K(T))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(N){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var H=f;f=L;try{return N()}finally{f=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,L){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var H=f;f=N;try{return L()}finally{f=H}},e.unstable_scheduleCallback=function(N,L,H){var M=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?M+H:M):H=M,N){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=H+V,N={id:d++,callback:L,priorityLevel:N,startTime:H,expirationTime:V,sortIndex:-1},H>M?(N.sortIndex=H,t(c,N),n(l)===null&&N===n(c)&&(w?(p(R),R=-1):w=!0,We(_,H-M))):(N.sortIndex=V,t(l,N),v||m||(v=!0,K(T))),N},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(N){var L=f;return function(){var H=f;f=L;try{return N.apply(this,arguments)}finally{f=H}}}})(pm);hm.exports=pm;var Ov=hm.exports;/**
25
+ */(function(e){function t(P,L){var H=P.length;P.push(L);e:for(;0<H;){var M=H-1>>>1,V=P[M];if(0<i(V,L))P[M]=L,P[H]=V,H=M;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var L=P[0],H=P.pop();if(H!==L){P[0]=H;e:for(var M=0,V=P.length,ee=V>>>1;M<ee;){var de=2*(M+1)-1,Ce=P[de],Z=de+1,Je=P[Z];if(0>i(Ce,H))Z<V&&0>i(Je,Ce)?(P[M]=Je,P[Z]=H,M=Z):(P[M]=Ce,P[de]=H,M=de);else if(Z<V&&0>i(Je,H))P[M]=Je,P[Z]=H,M=Z;else break e}}return L}function i(P,L){var H=P.sortIndex-L.sortIndex;return H!==0?H:P.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],c=[],d=1,u=null,f=3,g=!1,v=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(P){for(var L=n(c);L!==null;){if(L.callback===null)r(c);else if(L.startTime<=P)r(c),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(c)}}function _(P){if(w=!1,h(P),!v)if(n(a)!==null)v=!0,K(T);else{var L=n(c);L!==null&&Qe(_,L.startTime-P)}}function T(P,L){v=!1,w&&(w=!1,m(R),R=-1),g=!0;var H=f;try{for(h(L),u=n(a);u!==null&&(!(u.expirationTime>L)||P&&!B());){var M=u.callback;if(typeof M=="function"){u.callback=null,f=u.priorityLevel;var V=M(u.expirationTime<=L);L=e.unstable_now(),typeof V=="function"?u.callback=V:u===n(a)&&r(a),h(L)}else r(a);u=n(a)}if(u!==null)var ee=!0;else{var de=n(c);de!==null&&Qe(_,de.startTime-L),ee=!1}return ee}finally{u=null,f=H,g=!1}}var k=!1,C=null,R=-1,I=5,D=-1;function B(){return!(e.unstable_now()-D<I)}function se(){if(C!==null){var P=e.unstable_now();D=P;var L=!0;try{L=C(!0,P)}finally{L?oe():(k=!1,C=null)}}else k=!1}var oe;if(typeof p=="function")oe=function(){p(se)};else if(typeof MessageChannel<"u"){var He=new MessageChannel,We=He.port2;He.port1.onmessage=se,oe=function(){We.postMessage(null)}}else oe=function(){x(se,0)};function K(P){C=P,k||(k=!0,oe())}function Qe(P,L){R=x(function(){P(e.unstable_now())},L)}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(P){P.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,K(T))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(P){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var H=f;f=L;try{return P()}finally{f=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,L){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var H=f;f=P;try{return L()}finally{f=H}},e.unstable_scheduleCallback=function(P,L,H){var M=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?M+H:M):H=M,P){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=H+V,P={id:d++,callback:L,priorityLevel:P,startTime:H,expirationTime:V,sortIndex:-1},H>M?(P.sortIndex=H,t(c,P),n(a)===null&&P===n(c)&&(w?(m(R),R=-1):w=!0,Qe(_,H-M))):(P.sortIndex=V,t(a,P),v||g||(v=!0,K(T))),P},e.unstable_shouldYield=B,e.unstable_wrapCallback=function(P){var L=f;return function(){var H=f;f=L;try{return P.apply(this,arguments)}finally{f=H}}}})(pm);hm.exports=pm;var Rv=hm.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var bd=e=>{throw TypeError(e)};var iv=(e,t)=>()=>(t||e((t={exports:{}}).exports,
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 Rv=S,xt=Ov;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var mm=new Set,Ns={};function qr(e,t){Di(e,t),Di(e+"Capture",t)}function Di(e,t){for(Ns[e]=t,e=0;e<t.length;e++)mm.add(t[e])}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Su=Object.prototype.hasOwnProperty,Pv=/^[: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]*$/,Od={},Rd={};function Nv(e){return Su.call(Rd,e)?!0:Su.call(Od,e)?!1:Pv.test(e)?Rd[e]=!0:(Od[e]=!0,!1)}function Av(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jv(e,t,n,r){if(t===null||typeof t>"u"||Av(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zc=/[\-:]([a-z])/g;function Jc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zc,Jc);Ie[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zc,Jc);Ie[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zc,Jc);Ie[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function ef(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jv(t,n,i,r)&&(n=null),r||i===null?Nv(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Pn=Rv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_o=Symbol.for("react.element"),si=Symbol.for("react.portal"),oi=Symbol.for("react.fragment"),tf=Symbol.for("react.strict_mode"),Eu=Symbol.for("react.profiler"),ym=Symbol.for("react.provider"),gm=Symbol.for("react.context"),nf=Symbol.for("react.forward_ref"),_u=Symbol.for("react.suspense"),bu=Symbol.for("react.suspense_list"),rf=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),vm=Symbol.for("react.offscreen"),Pd=Symbol.iterator;function is(e){return e===null||typeof e!="object"?null:(e=Pd&&e[Pd]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Object.assign,Il;function ps(e){if(Il===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Il=t&&t[1]||""}return`
34
- `+Il+e}var Ll=!1;function Dl(e,t){if(!e||Ll)return"";Ll=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
33
+ */var Nv=S,xt=Rv;function O(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var mm=new Set,Ps={};function qr(e,t){Di(e,t),Di(e+"Capture",t)}function Di(e,t){for(Ps[e]=t,e=0;e<t.length;e++)mm.add(t[e])}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),bu=Object.prototype.hasOwnProperty,Pv=/^[: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]*$/,Rd={},Nd={};function Av(e){return bu.call(Nd,e)?!0:bu.call(Rd,e)?!1:Pv.test(e)?Nd[e]=!0:(Rd[e]=!0,!1)}function jv(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fv(e,t,n,r){if(t===null||typeof t>"u"||jv(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ze(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ie={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ie[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ie[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ie[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ie[e]=new Ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ie[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ie[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ie[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ie[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ie[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jc=/[\-:]([a-z])/g;function ef(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Jc,ef);Ie[t]=new Ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Jc,ef);Ie[t]=new Ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Jc,ef);Ie[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ie[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});Ie.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ie[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function tf(e,t,n,r){var i=Ie.hasOwnProperty(t)?Ie[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Fv(t,n,i,r)&&(n=null),r||i===null?Av(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Nn=Nv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Eo=Symbol.for("react.element"),si=Symbol.for("react.portal"),oi=Symbol.for("react.fragment"),nf=Symbol.for("react.strict_mode"),Eu=Symbol.for("react.profiler"),gm=Symbol.for("react.provider"),ym=Symbol.for("react.context"),rf=Symbol.for("react.forward_ref"),_u=Symbol.for("react.suspense"),ku=Symbol.for("react.suspense_list"),sf=Symbol.for("react.memo"),Dn=Symbol.for("react.lazy"),vm=Symbol.for("react.offscreen"),Pd=Symbol.iterator;function is(e){return e===null||typeof e!="object"?null:(e=Pd&&e[Pd]||e["@@iterator"],typeof e=="function"?e:null)}var ge=Object.assign,La;function ps(e){if(La===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);La=t&&t[1]||""}return`
34
+ `+La+e}var Da=!1;function Ma(e,t){if(!e||Da)return"";Da=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
35
35
  `),s=r.stack.split(`
36
- `),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37
- `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ll=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ps(e):""}function Fv(e){switch(e.tag){case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return ps("Suspense");case 19:return ps("SuspenseList");case 0:case 2:case 15:return e=Dl(e.type,!1),e;case 11:return e=Dl(e.type.render,!1),e;case 1:return e=Dl(e.type,!0),e;default:return""}}function ku(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oi:return"Fragment";case si:return"Portal";case Eu:return"Profiler";case tf:return"StrictMode";case _u:return"Suspense";case bu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gm:return(e.displayName||"Context")+".Consumer";case ym:return(e._context.displayName||"Context")+".Provider";case nf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rf:return t=e.displayName||null,t!==null?t:ku(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return ku(e(t))}catch{}}return null}function $v(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ku(t);case 8:return t===tf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iv(e){var t=wm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bo(e){e._valueTracker||(e._valueTracker=Iv(e))}function xm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Cu(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Nd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sm(e,t){t=t.checked,t!=null&&ef(e,"checked",t,!1)}function Tu(e,t){Sm(e,t);var n=cr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ou(e,t.type,cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ad(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ou(e,t,n){(t!=="number"||fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ms=Array.isArray;function vi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+cr(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ru(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return ye({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(ms(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cr(n)}}function Em(e,t){var n=cr(t.value),r=cr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Fd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _m(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_m(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ko,bm=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ko=ko||document.createElement("div"),ko.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function As(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lv=["Webkit","ms","Moz","O"];Object.keys(xs).forEach(function(e){Lv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xs[t]=xs[e]})});function km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xs.hasOwnProperty(e)&&xs[e]?(""+t).trim():t+"px"}function Cm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Dv=ye({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nu(e,t){if(t){if(Dv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Au(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ju=null;function sf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fu=null,wi=null,xi=null;function $d(e){if(e=ao(e)){if(typeof Fu!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Ka(t),Fu(e.stateNode,e.type,t))}}function Tm(e){wi?xi?xi.push(e):xi=[e]:wi=e}function Om(){if(wi){var e=wi,t=xi;if(xi=wi=null,$d(e),t)for(e=0;e<t.length;e++)$d(t[e])}}function Rm(e,t){return e(t)}function Pm(){}var Ml=!1;function Nm(e,t,n){if(Ml)return e(t,n);Ml=!0;try{return Rm(e,t,n)}finally{Ml=!1,(wi!==null||xi!==null)&&(Pm(),Om())}}function js(e,t){var n=e.stateNode;if(n===null)return null;var r=Ka(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var $u=!1;if(Cn)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){$u=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{$u=!1}function Mv(e,t,n,r,i,s,o,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Ss=!1,da=null,ha=!1,Iu=null,zv={onError:function(e){Ss=!0,da=e}};function Bv(e,t,n,r,i,s,o,a,l){Ss=!1,da=null,Mv.apply(zv,arguments)}function Uv(e,t,n,r,i,s,o,a,l){if(Bv.apply(this,arguments),Ss){if(Ss){var c=da;Ss=!1,da=null}else throw Error(O(198));ha||(ha=!0,Iu=c)}}function Kr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Am(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Id(e){if(Kr(e)!==e)throw Error(O(188))}function Vv(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Id(i),e;if(s===r)return Id(i),t;s=s.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function jm(e){return e=Vv(e),e!==null?Fm(e):null}function Fm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fm(e);if(t!==null)return t;e=e.sibling}return null}var $m=xt.unstable_scheduleCallback,Ld=xt.unstable_cancelCallback,Hv=xt.unstable_shouldYield,Wv=xt.unstable_requestPaint,xe=xt.unstable_now,Qv=xt.unstable_getCurrentPriorityLevel,of=xt.unstable_ImmediatePriority,Im=xt.unstable_UserBlockingPriority,pa=xt.unstable_NormalPriority,qv=xt.unstable_LowPriority,Lm=xt.unstable_IdlePriority,Ha=null,ln=null;function Kv(e){if(ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(Ha,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:Xv,Yv=Math.log,Gv=Math.LN2;function Xv(e){return e>>>=0,e===0?32:31-(Yv(e)/Gv|0)|0}var Co=64,To=4194304;function ys(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ma(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=ys(a):(s&=o,s!==0&&(r=ys(s)))}else o=n&~i,o!==0?r=ys(o):s!==0&&(r=ys(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Kt(t),i=1<<n,r|=e[n],t&=~i;return r}function Zv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Jv(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Kt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Zv(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Lu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Dm(){var e=Co;return Co<<=1,!(Co&4194240)&&(Co=64),e}function zl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function so(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function e1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Kt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function af(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Kt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var re=0;function Mm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var zm,lf,Bm,Um,Vm,Du=!1,Oo=[],er=null,tr=null,nr=null,Fs=new Map,$s=new Map,zn=[],t1="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 submit".split(" ");function Dd(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(t.pointerId)}}function os(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=ao(t),t!==null&&lf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function n1(e,t,n,r,i){switch(t){case"focusin":return er=os(er,e,t,n,r,i),!0;case"dragenter":return tr=os(tr,e,t,n,r,i),!0;case"mouseover":return nr=os(nr,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Fs.set(s,os(Fs.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,$s.set(s,os($s.get(s)||null,e,t,n,r,i)),!0}return!1}function Hm(e){var t=_r(e.target);if(t!==null){var n=Kr(t);if(n!==null){if(t=n.tag,t===13){if(t=Am(n),t!==null){e.blockedOn=t,Vm(e.priority,function(){Bm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ko(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Mu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ju=r,n.target.dispatchEvent(r),ju=null}else return t=ao(n),t!==null&&lf(t),e.blockedOn=n,!1;t.shift()}return!0}function Md(e,t,n){Ko(e)&&n.delete(t)}function r1(){Du=!1,er!==null&&Ko(er)&&(er=null),tr!==null&&Ko(tr)&&(tr=null),nr!==null&&Ko(nr)&&(nr=null),Fs.forEach(Md),$s.forEach(Md)}function as(e,t){e.blockedOn===t&&(e.blockedOn=null,Du||(Du=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,r1)))}function Is(e){function t(i){return as(i,e)}if(0<Oo.length){as(Oo[0],e);for(var n=1;n<Oo.length;n++){var r=Oo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(er!==null&&as(er,e),tr!==null&&as(tr,e),nr!==null&&as(nr,e),Fs.forEach(t),$s.forEach(t),n=0;n<zn.length;n++)r=zn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zn.length&&(n=zn[0],n.blockedOn===null);)Hm(n),n.blockedOn===null&&zn.shift()}var Si=Pn.ReactCurrentBatchConfig,ya=!0;function i1(e,t,n,r){var i=re,s=Si.transition;Si.transition=null;try{re=1,uf(e,t,n,r)}finally{re=i,Si.transition=s}}function s1(e,t,n,r){var i=re,s=Si.transition;Si.transition=null;try{re=4,uf(e,t,n,r)}finally{re=i,Si.transition=s}}function uf(e,t,n,r){if(ya){var i=Mu(e,t,n,r);if(i===null)Gl(e,t,r,ga,n),Dd(e,r);else if(n1(i,e,t,n,r))r.stopPropagation();else if(Dd(e,r),t&4&&-1<t1.indexOf(e)){for(;i!==null;){var s=ao(i);if(s!==null&&zm(s),s=Mu(e,t,n,r),s===null&&Gl(e,t,r,ga,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Gl(e,t,r,null,n)}}var ga=null;function Mu(e,t,n,r){if(ga=null,e=sf(r),e=_r(e),e!==null)if(t=Kr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Am(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ga=e,null}function Wm(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qv()){case of:return 1;case Im:return 4;case pa:case qv:return 16;case Lm:return 536870912;default:return 16}default:return 16}}var Xn=null,cf=null,Yo=null;function Qm(){if(Yo)return Yo;var e,t=cf,n=t.length,r,i="value"in Xn?Xn.value:Xn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Yo=i.slice(e,1<r?1-r:void 0)}function Go(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ro(){return!0}function zd(){return!1}function Et(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ro:zd,this.isPropagationStopped=zd,this}return ye(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ro)},persist:function(){},isPersistent:Ro}),t}var Yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ff=Et(Yi),oo=ye({},Yi,{view:0,detail:0}),o1=Et(oo),Bl,Ul,ls,Wa=ye({},oo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:df,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ls&&(ls&&e.type==="mousemove"?(Bl=e.screenX-ls.screenX,Ul=e.screenY-ls.screenY):Ul=Bl=0,ls=e),Bl)},movementY:function(e){return"movementY"in e?e.movementY:Ul}}),Bd=Et(Wa),a1=ye({},Wa,{dataTransfer:0}),l1=Et(a1),u1=ye({},oo,{relatedTarget:0}),Vl=Et(u1),c1=ye({},Yi,{animationName:0,elapsedTime:0,pseudoElement:0}),f1=Et(c1),d1=ye({},Yi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h1=Et(d1),p1=ye({},Yi,{data:0}),Ud=Et(p1),m1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y1={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"},g1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function v1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=g1[e])?!!t[e]:!1}function df(){return v1}var w1=ye({},oo,{key:function(e){if(e.key){var t=m1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Go(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:df,charCode:function(e){return e.type==="keypress"?Go(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Go(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),x1=Et(w1),S1=ye({},Wa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Vd=Et(S1),E1=ye({},oo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:df}),_1=Et(E1),b1=ye({},Yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),k1=Et(b1),C1=ye({},Wa,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),T1=Et(C1),O1=[9,13,27,32],hf=Cn&&"CompositionEvent"in window,Es=null;Cn&&"documentMode"in document&&(Es=document.documentMode);var R1=Cn&&"TextEvent"in window&&!Es,qm=Cn&&(!hf||Es&&8<Es&&11>=Es),Hd=" ",Wd=!1;function Km(e,t){switch(e){case"keyup":return O1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ym(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function P1(e,t){switch(e){case"compositionend":return Ym(t);case"keypress":return t.which!==32?null:(Wd=!0,Hd);case"textInput":return e=t.data,e===Hd&&Wd?null:e;default:return null}}function N1(e,t){if(ai)return e==="compositionend"||!hf&&Km(e,t)?(e=Qm(),Yo=cf=Xn=null,ai=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qm&&t.locale!=="ko"?null:t.data;default:return null}}var A1={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 Qd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!A1[e.type]:t==="textarea"}function Gm(e,t,n,r){Tm(r),t=va(t,"onChange"),0<t.length&&(n=new ff("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _s=null,Ls=null;function j1(e){a0(e,0)}function Qa(e){var t=ci(e);if(xm(t))return e}function F1(e,t){if(e==="change")return t}var Xm=!1;if(Cn){var Hl;if(Cn){var Wl="oninput"in document;if(!Wl){var qd=document.createElement("div");qd.setAttribute("oninput","return;"),Wl=typeof qd.oninput=="function"}Hl=Wl}else Hl=!1;Xm=Hl&&(!document.documentMode||9<document.documentMode)}function Kd(){_s&&(_s.detachEvent("onpropertychange",Zm),Ls=_s=null)}function Zm(e){if(e.propertyName==="value"&&Qa(Ls)){var t=[];Gm(t,Ls,e,sf(e)),Nm(j1,t)}}function $1(e,t,n){e==="focusin"?(Kd(),_s=t,Ls=n,_s.attachEvent("onpropertychange",Zm)):e==="focusout"&&Kd()}function I1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qa(Ls)}function L1(e,t){if(e==="click")return Qa(t)}function D1(e,t){if(e==="input"||e==="change")return Qa(t)}function M1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:M1;function Ds(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Su.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function Yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gd(e,t){var n=Yd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yd(n)}}function Jm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function e0(){for(var e=window,t=fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fa(e.document)}return t}function pf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function z1(e){var t=e0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jm(n.ownerDocument.documentElement,n)){if(r!==null&&pf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Gd(n,s);var o=Gd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var B1=Cn&&"documentMode"in document&&11>=document.documentMode,li=null,zu=null,bs=null,Bu=!1;function Xd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Bu||li==null||li!==fa(r)||(r=li,"selectionStart"in r&&pf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),bs&&Ds(bs,r)||(bs=r,r=va(zu,"onSelect"),0<r.length&&(t=new ff("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=li)))}function Po(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ui={animationend:Po("Animation","AnimationEnd"),animationiteration:Po("Animation","AnimationIteration"),animationstart:Po("Animation","AnimationStart"),transitionend:Po("Transition","TransitionEnd")},Ql={},t0={};Cn&&(t0=document.createElement("div").style,"AnimationEvent"in window||(delete ui.animationend.animation,delete ui.animationiteration.animation,delete ui.animationstart.animation),"TransitionEvent"in window||delete ui.transitionend.transition);function qa(e){if(Ql[e])return Ql[e];if(!ui[e])return e;var t=ui[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in t0)return Ql[e]=t[n];return e}var n0=qa("animationend"),r0=qa("animationiteration"),i0=qa("animationstart"),s0=qa("transitionend"),o0=new Map,Zd="abort auxClick 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(" ");function hr(e,t){o0.set(e,t),qr(t,[e])}for(var ql=0;ql<Zd.length;ql++){var Kl=Zd[ql],U1=Kl.toLowerCase(),V1=Kl[0].toUpperCase()+Kl.slice(1);hr(U1,"on"+V1)}hr(n0,"onAnimationEnd");hr(r0,"onAnimationIteration");hr(i0,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(s0,"onTransitionEnd");Di("onMouseEnter",["mouseout","mouseover"]);Di("onMouseLeave",["mouseout","mouseover"]);Di("onPointerEnter",["pointerout","pointerover"]);Di("onPointerLeave",["pointerout","pointerover"]);qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gs="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(" "),H1=new Set("cancel close invalid load scroll toggle".split(" ").concat(gs));function Jd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Uv(r,t,void 0,e),e.currentTarget=null}function a0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Jd(i,a,c),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Jd(i,a,c),s=l}}}if(ha)throw e=Iu,ha=!1,Iu=null,e}function ue(e,t){var n=t[Qu];n===void 0&&(n=t[Qu]=new Set);var r=e+"__bubble";n.has(r)||(l0(t,e,2,!1),n.add(r))}function Yl(e,t,n){var r=0;t&&(r|=4),l0(n,e,r,t)}var No="_reactListening"+Math.random().toString(36).slice(2);function Ms(e){if(!e[No]){e[No]=!0,mm.forEach(function(n){n!=="selectionchange"&&(H1.has(n)||Yl(n,!1,e),Yl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[No]||(t[No]=!0,Yl("selectionchange",!1,t))}}function l0(e,t,n,r){switch(Wm(t)){case 1:var i=i1;break;case 4:i=s1;break;default:i=uf}n=i.bind(null,t,n,e),i=void 0,!$u||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Gl(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=_r(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}Nm(function(){var c=s,d=sf(n),u=[];e:{var f=o0.get(e);if(f!==void 0){var m=ff,v=e;switch(e){case"keypress":if(Go(n)===0)break e;case"keydown":case"keyup":m=x1;break;case"focusin":v="focus",m=Vl;break;case"focusout":v="blur",m=Vl;break;case"beforeblur":case"afterblur":m=Vl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=l1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=_1;break;case n0:case r0:case i0:m=f1;break;case s0:m=k1;break;case"scroll":m=o1;break;case"wheel":m=T1;break;case"copy":case"cut":case"paste":m=h1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Vd}var w=(t&4)!==0,x=!w&&e==="scroll",p=w?f!==null?f+"Capture":null:f;w=[];for(var h=c,g;h!==null;){g=h;var _=g.stateNode;if(g.tag===5&&_!==null&&(g=_,p!==null&&(_=js(h,p),_!=null&&w.push(zs(h,_,g)))),x)break;h=h.return}0<w.length&&(f=new m(f,v,null,n,d),u.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==ju&&(v=n.relatedTarget||n.fromElement)&&(_r(v)||v[Tn]))break e;if((m||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=c,v=v?_r(v):null,v!==null&&(x=Kr(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=c),m!==v)){if(w=Bd,_="onMouseLeave",p="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(w=Vd,_="onPointerLeave",p="onPointerEnter",h="pointer"),x=m==null?f:ci(m),g=v==null?f:ci(v),f=new w(_,h+"leave",m,n,d),f.target=x,f.relatedTarget=g,_=null,_r(d)===c&&(w=new w(p,h+"enter",v,n,d),w.target=g,w.relatedTarget=x,_=w),x=_,m&&v)t:{for(w=m,p=v,h=0,g=w;g;g=ri(g))h++;for(g=0,_=p;_;_=ri(_))g++;for(;0<h-g;)w=ri(w),h--;for(;0<g-h;)p=ri(p),g--;for(;h--;){if(w===p||p!==null&&w===p.alternate)break t;w=ri(w),p=ri(p)}w=null}else w=null;m!==null&&eh(u,f,m,w,!1),v!==null&&x!==null&&eh(u,x,v,w,!0)}}e:{if(f=c?ci(c):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var T=F1;else if(Qd(f))if(Xm)T=D1;else{T=I1;var C=$1}else(m=f.nodeName)&&m.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=L1);if(T&&(T=T(e,c))){Gm(u,T,n,d);break e}C&&C(e,f,c),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&Ou(f,"number",f.value)}switch(C=c?ci(c):window,e){case"focusin":(Qd(C)||C.contentEditable==="true")&&(li=C,zu=c,bs=null);break;case"focusout":bs=zu=li=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Xd(u,n,d);break;case"selectionchange":if(B1)break;case"keydown":case"keyup":Xd(u,n,d)}var k;if(hf)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else ai?Km(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(qm&&n.locale!=="ko"&&(ai||R!=="onCompositionStart"?R==="onCompositionEnd"&&ai&&(k=Qm()):(Xn=d,cf="value"in Xn?Xn.value:Xn.textContent,ai=!0)),C=va(c,R),0<C.length&&(R=new Ud(R,e,null,n,d),u.push({event:R,listeners:C}),k?R.data=k:(k=Ym(n),k!==null&&(R.data=k)))),(k=R1?P1(e,n):N1(e,n))&&(c=va(c,"onBeforeInput"),0<c.length&&(d=new Ud("onBeforeInput","beforeinput",null,n,d),u.push({event:d,listeners:c}),d.data=k))}a0(u,t)})}function zs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function va(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=js(e,n),s!=null&&r.unshift(zs(e,s,i)),s=js(e,t),s!=null&&r.push(zs(e,s,i))),e=e.return}return r}function ri(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function eh(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=js(n,s),l!=null&&o.unshift(zs(n,l,a))):i||(l=js(n,s),l!=null&&o.push(zs(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var W1=/\r\n?/g,Q1=/\u0000|\uFFFD/g;function th(e){return(typeof e=="string"?e:""+e).replace(W1,`
38
- `).replace(Q1,"")}function Ao(e,t,n){if(t=th(t),th(e)!==t&&n)throw Error(O(425))}function wa(){}var Uu=null,Vu=null;function Hu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wu=typeof setTimeout=="function"?setTimeout:void 0,q1=typeof clearTimeout=="function"?clearTimeout:void 0,nh=typeof Promise=="function"?Promise:void 0,K1=typeof queueMicrotask=="function"?queueMicrotask:typeof nh<"u"?function(e){return nh.resolve(null).then(e).catch(Y1)}:Wu;function Y1(e){setTimeout(function(){throw e})}function Xl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Is(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Is(t)}function rr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function rh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Gi=Math.random().toString(36).slice(2),an="__reactFiber$"+Gi,Bs="__reactProps$"+Gi,Tn="__reactContainer$"+Gi,Qu="__reactEvents$"+Gi,G1="__reactListeners$"+Gi,X1="__reactHandles$"+Gi;function _r(e){var t=e[an];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[an]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=rh(e);e!==null;){if(n=e[an])return n;e=rh(e)}return t}e=n,n=e.parentNode}return null}function ao(e){return e=e[an]||e[Tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ci(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Ka(e){return e[Bs]||null}var qu=[],fi=-1;function pr(e){return{current:e}}function fe(e){0>fi||(e.current=qu[fi],qu[fi]=null,fi--)}function le(e,t){fi++,qu[fi]=e.current,e.current=t}var fr={},Ue=pr(fr),ot=pr(!1),Mr=fr;function Mi(e,t){var n=e.type.contextTypes;if(!n)return fr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function at(e){return e=e.childContextTypes,e!=null}function xa(){fe(ot),fe(Ue)}function ih(e,t,n){if(Ue.current!==fr)throw Error(O(168));le(Ue,t),le(ot,n)}function u0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,$v(e)||"Unknown",i));return ye({},n,r)}function Sa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fr,Mr=Ue.current,le(Ue,e),le(ot,ot.current),!0}function sh(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=u0(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,fe(ot),fe(Ue),le(Ue,e)):fe(ot),le(ot,n)}var wn=null,Ya=!1,Zl=!1;function c0(e){wn===null?wn=[e]:wn.push(e)}function Z1(e){Ya=!0,c0(e)}function mr(){if(!Zl&&wn!==null){Zl=!0;var e=0,t=re;try{var n=wn;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,Ya=!1}catch(i){throw wn!==null&&(wn=wn.slice(e+1)),$m(of,mr),i}finally{re=t,Zl=!1}}return null}var di=[],hi=0,Ea=null,_a=0,Rt=[],Pt=0,zr=null,En=1,_n="";function xr(e,t){di[hi++]=_a,di[hi++]=Ea,Ea=e,_a=t}function f0(e,t,n){Rt[Pt++]=En,Rt[Pt++]=_n,Rt[Pt++]=zr,zr=e;var r=En;e=_n;var i=32-Kt(r)-1;r&=~(1<<i),n+=1;var s=32-Kt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,En=1<<32-Kt(t)+i|n<<i|r,_n=s+e}else En=1<<s|n<<i|r,_n=e}function mf(e){e.return!==null&&(xr(e,1),f0(e,1,0))}function yf(e){for(;e===Ea;)Ea=di[--hi],di[hi]=null,_a=di[--hi],di[hi]=null;for(;e===zr;)zr=Rt[--Pt],Rt[Pt]=null,_n=Rt[--Pt],Rt[Pt]=null,En=Rt[--Pt],Rt[Pt]=null}var wt=null,yt=null,he=!1,Ht=null;function d0(e,t){var n=At(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function oh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,wt=e,yt=rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zr!==null?{id:En,overflow:_n}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,wt=e,yt=null,!0):!1;default:return!1}}function Ku(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yu(e){if(he){var t=yt;if(t){var n=t;if(!oh(e,t)){if(Ku(e))throw Error(O(418));t=rr(n.nextSibling);var r=wt;t&&oh(e,t)?d0(r,n):(e.flags=e.flags&-4097|2,he=!1,wt=e)}}else{if(Ku(e))throw Error(O(418));e.flags=e.flags&-4097|2,he=!1,wt=e}}}function ah(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function jo(e){if(e!==wt)return!1;if(!he)return ah(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hu(e.type,e.memoizedProps)),t&&(t=yt)){if(Ku(e))throw h0(),Error(O(418));for(;t;)d0(e,t),t=rr(t.nextSibling)}if(ah(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yt=rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=wt?rr(e.stateNode.nextSibling):null;return!0}function h0(){for(var e=yt;e;)e=rr(e.nextSibling)}function zi(){yt=wt=null,he=!1}function gf(e){Ht===null?Ht=[e]:Ht.push(e)}var J1=Pn.ReactCurrentBatchConfig;function us(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Fo(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function lh(e){var t=e._init;return t(e._payload)}function p0(e){function t(p,h){if(e){var g=p.deletions;g===null?(p.deletions=[h],p.flags|=16):g.push(h)}}function n(p,h){if(!e)return null;for(;h!==null;)t(p,h),h=h.sibling;return null}function r(p,h){for(p=new Map;h!==null;)h.key!==null?p.set(h.key,h):p.set(h.index,h),h=h.sibling;return p}function i(p,h){return p=ar(p,h),p.index=0,p.sibling=null,p}function s(p,h,g){return p.index=g,e?(g=p.alternate,g!==null?(g=g.index,g<h?(p.flags|=2,h):g):(p.flags|=2,h)):(p.flags|=1048576,h)}function o(p){return e&&p.alternate===null&&(p.flags|=2),p}function a(p,h,g,_){return h===null||h.tag!==6?(h=su(g,p.mode,_),h.return=p,h):(h=i(h,g),h.return=p,h)}function l(p,h,g,_){var T=g.type;return T===oi?d(p,h,g.props.children,_,g.key):h!==null&&(h.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Dn&&lh(T)===h.type)?(_=i(h,g.props),_.ref=us(p,h,g),_.return=p,_):(_=ra(g.type,g.key,g.props,null,p.mode,_),_.ref=us(p,h,g),_.return=p,_)}function c(p,h,g,_){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=ou(g,p.mode,_),h.return=p,h):(h=i(h,g.children||[]),h.return=p,h)}function d(p,h,g,_,T){return h===null||h.tag!==7?(h=$r(g,p.mode,_,T),h.return=p,h):(h=i(h,g),h.return=p,h)}function u(p,h,g){if(typeof h=="string"&&h!==""||typeof h=="number")return h=su(""+h,p.mode,g),h.return=p,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case _o:return g=ra(h.type,h.key,h.props,null,p.mode,g),g.ref=us(p,null,h),g.return=p,g;case si:return h=ou(h,p.mode,g),h.return=p,h;case Dn:var _=h._init;return u(p,_(h._payload),g)}if(ms(h)||is(h))return h=$r(h,p.mode,g,null),h.return=p,h;Fo(p,h)}return null}function f(p,h,g,_){var T=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return T!==null?null:a(p,h,""+g,_);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case _o:return g.key===T?l(p,h,g,_):null;case si:return g.key===T?c(p,h,g,_):null;case Dn:return T=g._init,f(p,h,T(g._payload),_)}if(ms(g)||is(g))return T!==null?null:d(p,h,g,_,null);Fo(p,g)}return null}function m(p,h,g,_,T){if(typeof _=="string"&&_!==""||typeof _=="number")return p=p.get(g)||null,a(h,p,""+_,T);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case _o:return p=p.get(_.key===null?g:_.key)||null,l(h,p,_,T);case si:return p=p.get(_.key===null?g:_.key)||null,c(h,p,_,T);case Dn:var C=_._init;return m(p,h,g,C(_._payload),T)}if(ms(_)||is(_))return p=p.get(g)||null,d(h,p,_,T,null);Fo(h,_)}return null}function v(p,h,g,_){for(var T=null,C=null,k=h,R=h=0,I=null;k!==null&&R<g.length;R++){k.index>R?(I=k,k=null):I=k.sibling;var D=f(p,k,g[R],_);if(D===null){k===null&&(k=I);break}e&&k&&D.alternate===null&&t(p,k),h=s(D,h,R),C===null?T=D:C.sibling=D,C=D,k=I}if(R===g.length)return n(p,k),he&&xr(p,R),T;if(k===null){for(;R<g.length;R++)k=u(p,g[R],_),k!==null&&(h=s(k,h,R),C===null?T=k:C.sibling=k,C=k);return he&&xr(p,R),T}for(k=r(p,k);R<g.length;R++)I=m(k,p,R,g[R],_),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?R:I.key),h=s(I,h,R),C===null?T=I:C.sibling=I,C=I);return e&&k.forEach(function(B){return t(p,B)}),he&&xr(p,R),T}function w(p,h,g,_){var T=is(g);if(typeof T!="function")throw Error(O(150));if(g=T.call(g),g==null)throw Error(O(151));for(var C=T=null,k=h,R=h=0,I=null,D=g.next();k!==null&&!D.done;R++,D=g.next()){k.index>R?(I=k,k=null):I=k.sibling;var B=f(p,k,D.value,_);if(B===null){k===null&&(k=I);break}e&&k&&B.alternate===null&&t(p,k),h=s(B,h,R),C===null?T=B:C.sibling=B,C=B,k=I}if(D.done)return n(p,k),he&&xr(p,R),T;if(k===null){for(;!D.done;R++,D=g.next())D=u(p,D.value,_),D!==null&&(h=s(D,h,R),C===null?T=D:C.sibling=D,C=D);return he&&xr(p,R),T}for(k=r(p,k);!D.done;R++,D=g.next())D=m(k,p,R,D.value,_),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?R:D.key),h=s(D,h,R),C===null?T=D:C.sibling=D,C=D);return e&&k.forEach(function(se){return t(p,se)}),he&&xr(p,R),T}function x(p,h,g,_){if(typeof g=="object"&&g!==null&&g.type===oi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case _o:e:{for(var T=g.key,C=h;C!==null;){if(C.key===T){if(T=g.type,T===oi){if(C.tag===7){n(p,C.sibling),h=i(C,g.props.children),h.return=p,p=h;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Dn&&lh(T)===C.type){n(p,C.sibling),h=i(C,g.props),h.ref=us(p,C,g),h.return=p,p=h;break e}n(p,C);break}else t(p,C);C=C.sibling}g.type===oi?(h=$r(g.props.children,p.mode,_,g.key),h.return=p,p=h):(_=ra(g.type,g.key,g.props,null,p.mode,_),_.ref=us(p,h,g),_.return=p,p=_)}return o(p);case si:e:{for(C=g.key;h!==null;){if(h.key===C)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),h=i(h,g.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=ou(g,p.mode,_),h.return=p,p=h}return o(p);case Dn:return C=g._init,x(p,h,C(g._payload),_)}if(ms(g))return v(p,h,g,_);if(is(g))return w(p,h,g,_);Fo(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,g),h.return=p,p=h):(n(p,h),h=su(g,p.mode,_),h.return=p,p=h),o(p)):n(p,h)}return x}var Bi=p0(!0),m0=p0(!1),ba=pr(null),ka=null,pi=null,vf=null;function wf(){vf=pi=ka=null}function xf(e){var t=ba.current;fe(ba),e._currentValue=t}function Gu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){ka=e,vf=pi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Ft(e){var t=e._currentValue;if(vf!==e)if(e={context:e,memoizedValue:t,next:null},pi===null){if(ka===null)throw Error(O(308));pi=e,ka.dependencies={lanes:0,firstContext:e}}else pi=pi.next=e;return t}var br=null;function Sf(e){br===null?br=[e]:br.push(e)}function y0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Sf(t)):(n.next=i.next,i.next=n),t.interleaved=n,On(e,r)}function On(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mn=!1;function Ef(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function g0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,On(e,n)}return i=r.interleaved,i===null?(t.next=t,Sf(r)):(t.next=i.next,i.next=t),r.interleaved=t,On(e,n)}function Xo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}function uh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ca(e,t,n,r){var i=e.updateQueue;Mn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=c:a.next=c,d.lastBaseUpdate=l))}if(s!==null){var u=i.baseState;o=0,d=c=l=null,a=s;do{var f=a.lane,m=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,w=a;switch(f=t,m=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){u=v.call(m,u,f);break e}u=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,f=typeof v=="function"?v.call(m,u,f):v,f==null)break e;u=ye({},u,f);break e;case 2:Mn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else m={eventTime:m,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=m,l=u):d=d.next=m,o|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;f=a,a=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(l=u),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Ur|=o,e.lanes=o,e.memoizedState=u}}function ch(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(O(191,i));i.call(r)}}}var lo={},un=pr(lo),Us=pr(lo),Vs=pr(lo);function kr(e){if(e===lo)throw Error(O(174));return e}function _f(e,t){switch(le(Vs,t),le(Us,e),le(un,lo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pu(t,e)}fe(un),le(un,t)}function Ui(){fe(un),fe(Us),fe(Vs)}function v0(e){kr(Vs.current);var t=kr(un.current),n=Pu(t,e.type);t!==n&&(le(Us,e),le(un,n))}function bf(e){Us.current===e&&(fe(un),fe(Us))}var pe=pr(0);function Ta(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Jl=[];function kf(){for(var e=0;e<Jl.length;e++)Jl[e]._workInProgressVersionPrimary=null;Jl.length=0}var Zo=Pn.ReactCurrentDispatcher,eu=Pn.ReactCurrentBatchConfig,Br=0,me=null,_e=null,Re=null,Oa=!1,ks=!1,Hs=0,ew=0;function De(){throw Error(O(321))}function Cf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function Tf(e,t,n,r,i,s){if(Br=s,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zo.current=e===null||e.memoizedState===null?iw:sw,e=n(r,i),ks){s=0;do{if(ks=!1,Hs=0,25<=s)throw Error(O(301));s+=1,Re=_e=null,t.updateQueue=null,Zo.current=ow,e=n(r,i)}while(ks)}if(Zo.current=Ra,t=_e!==null&&_e.next!==null,Br=0,Re=_e=me=null,Oa=!1,t)throw Error(O(300));return e}function Of(){var e=Hs!==0;return Hs=0,e}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?me.memoizedState=Re=e:Re=Re.next=e,Re}function $t(){if(_e===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Re===null?me.memoizedState:Re.next;if(t!==null)Re=t,_e=e;else{if(e===null)throw Error(O(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Re===null?me.memoizedState=Re=e:Re=Re.next=e}return Re}function Ws(e,t){return typeof t=="function"?t(e):t}function tu(e){var t=$t(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=_e,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,c=s;do{var d=c.lane;if((Br&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var u={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=u,o=r):l=l.next=u,me.lanes|=d,Ur|=d}c=c.next}while(c!==null&&c!==s);l===null?o=r:l.next=a,Gt(r,t.memoizedState)||(st=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,me.lanes|=s,Ur|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function nu(e){var t=$t(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Gt(s,t.memoizedState)||(st=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function w0(){}function x0(e,t){var n=me,r=$t(),i=t(),s=!Gt(r.memoizedState,i);if(s&&(r.memoizedState=i,st=!0),r=r.queue,Rf(_0.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,Qs(9,E0.bind(null,n,r,i,t),void 0,null),Pe===null)throw Error(O(349));Br&30||S0(n,t,i)}return i}function S0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function E0(e,t,n,r){t.value=n,t.getSnapshot=r,b0(t)&&k0(e)}function _0(e,t,n){return n(function(){b0(t)&&k0(e)})}function b0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function k0(e){var t=On(e,1);t!==null&&Yt(t,e,1,-1)}function fh(e){var t=en();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:e},t.queue=e,e=e.dispatch=rw.bind(null,me,e),[t.memoizedState,e]}function Qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function C0(){return $t().memoizedState}function Jo(e,t,n,r){var i=en();me.flags|=e,i.memoizedState=Qs(1|t,n,void 0,r===void 0?null:r)}function Ga(e,t,n,r){var i=$t();r=r===void 0?null:r;var s=void 0;if(_e!==null){var o=_e.memoizedState;if(s=o.destroy,r!==null&&Cf(r,o.deps)){i.memoizedState=Qs(t,n,s,r);return}}me.flags|=e,i.memoizedState=Qs(1|t,n,s,r)}function dh(e,t){return Jo(8390656,8,e,t)}function Rf(e,t){return Ga(2048,8,e,t)}function T0(e,t){return Ga(4,2,e,t)}function O0(e,t){return Ga(4,4,e,t)}function R0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function P0(e,t,n){return n=n!=null?n.concat([e]):null,Ga(4,4,R0.bind(null,t,e),n)}function Pf(){}function N0(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Cf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function A0(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Cf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function j0(e,t,n){return Br&21?(Gt(n,t)||(n=Dm(),me.lanes|=n,Ur|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function tw(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=eu.transition;eu.transition={};try{e(!1),t()}finally{re=n,eu.transition=r}}function F0(){return $t().memoizedState}function nw(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$0(e))I0(t,n);else if(n=y0(e,t,n,r),n!==null){var i=Ye();Yt(n,e,r,i),L0(n,t,r)}}function rw(e,t,n){var r=or(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($0(e))I0(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Gt(a,o)){var l=t.interleaved;l===null?(i.next=i,Sf(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=y0(e,t,i,r),n!==null&&(i=Ye(),Yt(n,e,r,i),L0(n,t,r))}}function $0(e){var t=e.alternate;return e===me||t!==null&&t===me}function I0(e,t){ks=Oa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function L0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var Ra={readContext:Ft,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},iw={readContext:Ft,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:dh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jo(4194308,4,R0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jo(4,2,e,t)},useMemo:function(e,t){var n=en();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=en();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=nw.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:fh,useDebugValue:Pf,useDeferredValue:function(e){return en().memoizedState=e},useTransition:function(){var e=fh(!1),t=e[0];return e=tw.bind(null,e[1]),en().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,i=en();if(he){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Pe===null)throw Error(O(349));Br&30||S0(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,dh(_0.bind(null,r,s,e),[e]),r.flags|=2048,Qs(9,E0.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=en(),t=Pe.identifierPrefix;if(he){var n=_n,r=En;n=(r&~(1<<32-Kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ew++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sw={readContext:Ft,useCallback:N0,useContext:Ft,useEffect:Rf,useImperativeHandle:P0,useInsertionEffect:T0,useLayoutEffect:O0,useMemo:A0,useReducer:tu,useRef:C0,useState:function(){return tu(Ws)},useDebugValue:Pf,useDeferredValue:function(e){var t=$t();return j0(t,_e.memoizedState,e)},useTransition:function(){var e=tu(Ws)[0],t=$t().memoizedState;return[e,t]},useMutableSource:w0,useSyncExternalStore:x0,useId:F0,unstable_isNewReconciler:!1},ow={readContext:Ft,useCallback:N0,useContext:Ft,useEffect:Rf,useImperativeHandle:P0,useInsertionEffect:T0,useLayoutEffect:O0,useMemo:A0,useReducer:nu,useRef:C0,useState:function(){return nu(Ws)},useDebugValue:Pf,useDeferredValue:function(e){var t=$t();return _e===null?t.memoizedState=e:j0(t,_e.memoizedState,e)},useTransition:function(){var e=nu(Ws)[0],t=$t().memoizedState;return[e,t]},useMutableSource:w0,useSyncExternalStore:x0,useId:F0,unstable_isNewReconciler:!1};function zt(e,t){if(e&&e.defaultProps){t=ye({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Xu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ye({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Xa={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ye(),i=or(e),s=bn(r,i);s.payload=t,n!=null&&(s.callback=n),t=ir(e,s,i),t!==null&&(Yt(t,e,i,r),Xo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ye(),i=or(e),s=bn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ir(e,s,i),t!==null&&(Yt(t,e,i,r),Xo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ye(),r=or(e),i=bn(n,r);i.tag=2,t!=null&&(i.callback=t),t=ir(e,i,r),t!==null&&(Yt(t,e,r,n),Xo(t,e,r))}};function hh(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Ds(n,r)||!Ds(i,s):!0}function D0(e,t,n){var r=!1,i=fr,s=t.contextType;return typeof s=="object"&&s!==null?s=Ft(s):(i=at(t)?Mr:Ue.current,r=t.contextTypes,s=(r=r!=null)?Mi(e,i):fr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Xa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function ph(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xa.enqueueReplaceState(t,t.state,null)}function Zu(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ef(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ft(s):(s=at(t)?Mr:Ue.current,i.context=Mi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Xu(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Xa.enqueueReplaceState(i,i.state,null),Ca(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vi(e,t){try{var n="",r=t;do n+=Fv(r),r=r.return;while(r);var i=n}catch(s){i=`
36
+ `),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Da=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ps(e):""}function $v(e){switch(e.tag){case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return ps("Suspense");case 19:return ps("SuspenseList");case 0:case 2:case 15:return e=Ma(e.type,!1),e;case 11:return e=Ma(e.type.render,!1),e;case 1:return e=Ma(e.type,!0),e;default:return""}}function Cu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oi:return"Fragment";case si:return"Portal";case Eu:return"Profiler";case nf:return"StrictMode";case _u:return"Suspense";case ku:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ym:return(e.displayName||"Context")+".Consumer";case gm:return(e._context.displayName||"Context")+".Provider";case rf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sf:return t=e.displayName||null,t!==null?t:Cu(e.type)||"Memo";case Dn:t=e._payload,e=e._init;try{return Cu(e(t))}catch{}}return null}function Iv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cu(t);case 8:return t===nf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function cr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lv(e){var t=wm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _o(e){e._valueTracker||(e._valueTracker=Lv(e))}function xm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=wm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function dl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Tu(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ad(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=cr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sm(e,t){t=t.checked,t!=null&&tf(e,"checked",t,!1)}function Ou(e,t){Sm(e,t);var n=cr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ru(e,t.type,cr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ru(e,t,n){(t!=="number"||dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ms=Array.isArray;function vi(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+cr(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Nu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(O(91));return ge({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(O(92));if(ms(n)){if(1<n.length)throw Error(O(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:cr(n)}}function bm(e,t){var n=cr(t.value),r=cr(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function $d(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Em(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Em(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ko,_m=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ko=ko||document.createElement("div"),ko.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function As(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dv=["Webkit","ms","Moz","O"];Object.keys(xs).forEach(function(e){Dv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xs[t]=xs[e]})});function km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xs.hasOwnProperty(e)&&xs[e]?(""+t).trim():t+"px"}function Cm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Mv=ge({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Au(e,t){if(t){if(Mv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function ju(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fu=null;function of(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $u=null,wi=null,xi=null;function Id(e){if(e=lo(e)){if(typeof $u!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Yl(t),$u(e.stateNode,e.type,t))}}function Tm(e){wi?xi?xi.push(e):xi=[e]:wi=e}function Om(){if(wi){var e=wi,t=xi;if(xi=wi=null,Id(e),t)for(e=0;e<t.length;e++)Id(t[e])}}function Rm(e,t){return e(t)}function Nm(){}var za=!1;function Pm(e,t,n){if(za)return e(t,n);za=!0;try{return Rm(e,t,n)}finally{za=!1,(wi!==null||xi!==null)&&(Nm(),Om())}}function js(e,t){var n=e.stateNode;if(n===null)return null;var r=Yl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(O(231,t,typeof n));return n}var Iu=!1;if(Cn)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){Iu=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Iu=!1}function zv(e,t,n,r,i,s,o,l,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Ss=!1,hl=null,pl=!1,Lu=null,Bv={onError:function(e){Ss=!0,hl=e}};function Uv(e,t,n,r,i,s,o,l,a){Ss=!1,hl=null,zv.apply(Bv,arguments)}function Vv(e,t,n,r,i,s,o,l,a){if(Uv.apply(this,arguments),Ss){if(Ss){var c=hl;Ss=!1,hl=null}else throw Error(O(198));pl||(pl=!0,Lu=c)}}function Kr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Am(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ld(e){if(Kr(e)!==e)throw Error(O(188))}function Hv(e){var t=e.alternate;if(!t){if(t=Kr(e),t===null)throw Error(O(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Ld(i),e;if(s===r)return Ld(i),t;s=s.sibling}throw Error(O(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(O(189))}}if(n.alternate!==r)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?e:t}function jm(e){return e=Hv(e),e!==null?Fm(e):null}function Fm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Fm(e);if(t!==null)return t;e=e.sibling}return null}var $m=xt.unstable_scheduleCallback,Dd=xt.unstable_cancelCallback,Wv=xt.unstable_shouldYield,Qv=xt.unstable_requestPaint,xe=xt.unstable_now,qv=xt.unstable_getCurrentPriorityLevel,lf=xt.unstable_ImmediatePriority,Im=xt.unstable_UserBlockingPriority,ml=xt.unstable_NormalPriority,Kv=xt.unstable_LowPriority,Lm=xt.unstable_IdlePriority,Wl=null,an=null;function Yv(e){if(an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Wl,e,void 0,(e.current.flags&128)===128)}catch{}}var Kt=Math.clz32?Math.clz32:Zv,Gv=Math.log,Xv=Math.LN2;function Zv(e){return e>>>=0,e===0?32:31-(Gv(e)/Xv|0)|0}var Co=64,To=4194304;function gs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function gl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=gs(l):(s&=o,s!==0&&(r=gs(s)))}else o=n&~i,o!==0?r=gs(o):s!==0&&(r=gs(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Kt(t),i=1<<n,r|=e[n],t&=~i;return r}function Jv(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function e1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Kt(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Jv(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function Du(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Dm(){var e=Co;return Co<<=1,!(Co&4194240)&&(Co=64),e}function Ba(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function so(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Kt(t),e[t]=n}function t1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Kt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function af(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Kt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var re=0;function Mm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var zm,uf,Bm,Um,Vm,Mu=!1,Oo=[],er=null,tr=null,nr=null,Fs=new Map,$s=new Map,zn=[],n1="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 submit".split(" ");function Md(e,t){switch(e){case"focusin":case"focusout":er=null;break;case"dragenter":case"dragleave":tr=null;break;case"mouseover":case"mouseout":nr=null;break;case"pointerover":case"pointerout":Fs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(t.pointerId)}}function os(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=lo(t),t!==null&&uf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function r1(e,t,n,r,i){switch(t){case"focusin":return er=os(er,e,t,n,r,i),!0;case"dragenter":return tr=os(tr,e,t,n,r,i),!0;case"mouseover":return nr=os(nr,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Fs.set(s,os(Fs.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,$s.set(s,os($s.get(s)||null,e,t,n,r,i)),!0}return!1}function Hm(e){var t=Er(e.target);if(t!==null){var n=Kr(t);if(n!==null){if(t=n.tag,t===13){if(t=Am(n),t!==null){e.blockedOn=t,Vm(e.priority,function(){Bm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ko(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Fu=r,n.target.dispatchEvent(r),Fu=null}else return t=lo(n),t!==null&&uf(t),e.blockedOn=n,!1;t.shift()}return!0}function zd(e,t,n){Ko(e)&&n.delete(t)}function i1(){Mu=!1,er!==null&&Ko(er)&&(er=null),tr!==null&&Ko(tr)&&(tr=null),nr!==null&&Ko(nr)&&(nr=null),Fs.forEach(zd),$s.forEach(zd)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Mu||(Mu=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,i1)))}function Is(e){function t(i){return ls(i,e)}if(0<Oo.length){ls(Oo[0],e);for(var n=1;n<Oo.length;n++){var r=Oo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(er!==null&&ls(er,e),tr!==null&&ls(tr,e),nr!==null&&ls(nr,e),Fs.forEach(t),$s.forEach(t),n=0;n<zn.length;n++)r=zn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zn.length&&(n=zn[0],n.blockedOn===null);)Hm(n),n.blockedOn===null&&zn.shift()}var Si=Nn.ReactCurrentBatchConfig,yl=!0;function s1(e,t,n,r){var i=re,s=Si.transition;Si.transition=null;try{re=1,cf(e,t,n,r)}finally{re=i,Si.transition=s}}function o1(e,t,n,r){var i=re,s=Si.transition;Si.transition=null;try{re=4,cf(e,t,n,r)}finally{re=i,Si.transition=s}}function cf(e,t,n,r){if(yl){var i=zu(e,t,n,r);if(i===null)Xa(e,t,r,vl,n),Md(e,r);else if(r1(i,e,t,n,r))r.stopPropagation();else if(Md(e,r),t&4&&-1<n1.indexOf(e)){for(;i!==null;){var s=lo(i);if(s!==null&&zm(s),s=zu(e,t,n,r),s===null&&Xa(e,t,r,vl,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Xa(e,t,r,null,n)}}var vl=null;function zu(e,t,n,r){if(vl=null,e=of(r),e=Er(e),e!==null)if(t=Kr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Am(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vl=e,null}function Wm(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qv()){case lf:return 1;case Im:return 4;case ml:case Kv:return 16;case Lm:return 536870912;default:return 16}default:return 16}}var Xn=null,ff=null,Yo=null;function Qm(){if(Yo)return Yo;var e,t=ff,n=t.length,r,i="value"in Xn?Xn.value:Xn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Yo=i.slice(e,1<r?1-r:void 0)}function Go(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ro(){return!0}function Bd(){return!1}function bt(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ro:Bd,this.isPropagationStopped=Bd,this}return ge(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ro)},persist:function(){},isPersistent:Ro}),t}var Yi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},df=bt(Yi),oo=ge({},Yi,{view:0,detail:0}),l1=bt(oo),Ua,Va,as,Ql=ge({},oo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==as&&(as&&e.type==="mousemove"?(Ua=e.screenX-as.screenX,Va=e.screenY-as.screenY):Va=Ua=0,as=e),Ua)},movementY:function(e){return"movementY"in e?e.movementY:Va}}),Ud=bt(Ql),a1=ge({},Ql,{dataTransfer:0}),u1=bt(a1),c1=ge({},oo,{relatedTarget:0}),Ha=bt(c1),f1=ge({},Yi,{animationName:0,elapsedTime:0,pseudoElement:0}),d1=bt(f1),h1=ge({},Yi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),p1=bt(h1),m1=ge({},Yi,{data:0}),Vd=bt(m1),g1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y1={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"},v1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=v1[e])?!!t[e]:!1}function hf(){return w1}var x1=ge({},oo,{key:function(e){if(e.key){var t=g1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Go(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hf,charCode:function(e){return e.type==="keypress"?Go(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Go(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),S1=bt(x1),b1=ge({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hd=bt(b1),E1=ge({},oo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hf}),_1=bt(E1),k1=ge({},Yi,{propertyName:0,elapsedTime:0,pseudoElement:0}),C1=bt(k1),T1=ge({},Ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),O1=bt(T1),R1=[9,13,27,32],pf=Cn&&"CompositionEvent"in window,bs=null;Cn&&"documentMode"in document&&(bs=document.documentMode);var N1=Cn&&"TextEvent"in window&&!bs,qm=Cn&&(!pf||bs&&8<bs&&11>=bs),Wd=" ",Qd=!1;function Km(e,t){switch(e){case"keyup":return R1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ym(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function P1(e,t){switch(e){case"compositionend":return Ym(t);case"keypress":return t.which!==32?null:(Qd=!0,Wd);case"textInput":return e=t.data,e===Wd&&Qd?null:e;default:return null}}function A1(e,t){if(li)return e==="compositionend"||!pf&&Km(e,t)?(e=Qm(),Yo=ff=Xn=null,li=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qm&&t.locale!=="ko"?null:t.data;default:return null}}var j1={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 qd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j1[e.type]:t==="textarea"}function Gm(e,t,n,r){Tm(r),t=wl(t,"onChange"),0<t.length&&(n=new df("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Es=null,Ls=null;function F1(e){l0(e,0)}function ql(e){var t=ci(e);if(xm(t))return e}function $1(e,t){if(e==="change")return t}var Xm=!1;if(Cn){var Wa;if(Cn){var Qa="oninput"in document;if(!Qa){var Kd=document.createElement("div");Kd.setAttribute("oninput","return;"),Qa=typeof Kd.oninput=="function"}Wa=Qa}else Wa=!1;Xm=Wa&&(!document.documentMode||9<document.documentMode)}function Yd(){Es&&(Es.detachEvent("onpropertychange",Zm),Ls=Es=null)}function Zm(e){if(e.propertyName==="value"&&ql(Ls)){var t=[];Gm(t,Ls,e,of(e)),Pm(F1,t)}}function I1(e,t,n){e==="focusin"?(Yd(),Es=t,Ls=n,Es.attachEvent("onpropertychange",Zm)):e==="focusout"&&Yd()}function L1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ql(Ls)}function D1(e,t){if(e==="click")return ql(t)}function M1(e,t){if(e==="input"||e==="change")return ql(t)}function z1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:z1;function Ds(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!bu.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function Gd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xd(e,t){var n=Gd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gd(n)}}function Jm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function e0(){for(var e=window,t=dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=dl(e.document)}return t}function mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function B1(e){var t=e0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jm(n.ownerDocument.documentElement,n)){if(r!==null&&mf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Xd(n,s);var o=Xd(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var U1=Cn&&"documentMode"in document&&11>=document.documentMode,ai=null,Bu=null,_s=null,Uu=!1;function Zd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uu||ai==null||ai!==dl(r)||(r=ai,"selectionStart"in r&&mf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),_s&&Ds(_s,r)||(_s=r,r=wl(Bu,"onSelect"),0<r.length&&(t=new df("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ai)))}function No(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ui={animationend:No("Animation","AnimationEnd"),animationiteration:No("Animation","AnimationIteration"),animationstart:No("Animation","AnimationStart"),transitionend:No("Transition","TransitionEnd")},qa={},t0={};Cn&&(t0=document.createElement("div").style,"AnimationEvent"in window||(delete ui.animationend.animation,delete ui.animationiteration.animation,delete ui.animationstart.animation),"TransitionEvent"in window||delete ui.transitionend.transition);function Kl(e){if(qa[e])return qa[e];if(!ui[e])return e;var t=ui[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in t0)return qa[e]=t[n];return e}var n0=Kl("animationend"),r0=Kl("animationiteration"),i0=Kl("animationstart"),s0=Kl("transitionend"),o0=new Map,Jd="abort auxClick 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(" ");function hr(e,t){o0.set(e,t),qr(t,[e])}for(var Ka=0;Ka<Jd.length;Ka++){var Ya=Jd[Ka],V1=Ya.toLowerCase(),H1=Ya[0].toUpperCase()+Ya.slice(1);hr(V1,"on"+H1)}hr(n0,"onAnimationEnd");hr(r0,"onAnimationIteration");hr(i0,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(s0,"onTransitionEnd");Di("onMouseEnter",["mouseout","mouseover"]);Di("onMouseLeave",["mouseout","mouseover"]);Di("onPointerEnter",["pointerout","pointerover"]);Di("onPointerLeave",["pointerout","pointerover"]);qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qr("onBeforeInput",["compositionend","keypress","textInput","paste"]);qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ys="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(" "),W1=new Set("cancel close invalid load scroll toggle".split(" ").concat(ys));function eh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Vv(r,t,void 0,e),e.currentTarget=null}function l0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,c=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;eh(i,l,c),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,c=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;eh(i,l,c),s=a}}}if(pl)throw e=Lu,pl=!1,Lu=null,e}function ue(e,t){var n=t[qu];n===void 0&&(n=t[qu]=new Set);var r=e+"__bubble";n.has(r)||(a0(t,e,2,!1),n.add(r))}function Ga(e,t,n){var r=0;t&&(r|=4),a0(n,e,r,t)}var Po="_reactListening"+Math.random().toString(36).slice(2);function Ms(e){if(!e[Po]){e[Po]=!0,mm.forEach(function(n){n!=="selectionchange"&&(W1.has(n)||Ga(n,!1,e),Ga(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Po]||(t[Po]=!0,Ga("selectionchange",!1,t))}}function a0(e,t,n,r){switch(Wm(t)){case 1:var i=s1;break;case 4:i=o1;break;default:i=cf}n=i.bind(null,t,n,e),i=void 0,!Iu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Xa(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Er(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}Pm(function(){var c=s,d=of(n),u=[];e:{var f=o0.get(e);if(f!==void 0){var g=df,v=e;switch(e){case"keypress":if(Go(n)===0)break e;case"keydown":case"keyup":g=S1;break;case"focusin":v="focus",g=Ha;break;case"focusout":v="blur",g=Ha;break;case"beforeblur":case"afterblur":g=Ha;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Ud;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=u1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=_1;break;case n0:case r0:case i0:g=d1;break;case s0:g=C1;break;case"scroll":g=l1;break;case"wheel":g=O1;break;case"copy":case"cut":case"paste":g=p1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Hd}var w=(t&4)!==0,x=!w&&e==="scroll",m=w?f!==null?f+"Capture":null:f;w=[];for(var p=c,h;p!==null;){h=p;var _=h.stateNode;if(h.tag===5&&_!==null&&(h=_,m!==null&&(_=js(p,m),_!=null&&w.push(zs(p,_,h)))),x)break;p=p.return}0<w.length&&(f=new g(f,v,null,n,d),u.push({event:f,listeners:w}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&n!==Fu&&(v=n.relatedTarget||n.fromElement)&&(Er(v)||v[Tn]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=c,v=v?Er(v):null,v!==null&&(x=Kr(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=c),g!==v)){if(w=Ud,_="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(w=Hd,_="onPointerLeave",m="onPointerEnter",p="pointer"),x=g==null?f:ci(g),h=v==null?f:ci(v),f=new w(_,p+"leave",g,n,d),f.target=x,f.relatedTarget=h,_=null,Er(d)===c&&(w=new w(m,p+"enter",v,n,d),w.target=h,w.relatedTarget=x,_=w),x=_,g&&v)t:{for(w=g,m=v,p=0,h=w;h;h=ri(h))p++;for(h=0,_=m;_;_=ri(_))h++;for(;0<p-h;)w=ri(w),p--;for(;0<h-p;)m=ri(m),h--;for(;p--;){if(w===m||m!==null&&w===m.alternate)break t;w=ri(w),m=ri(m)}w=null}else w=null;g!==null&&th(u,f,g,w,!1),v!==null&&x!==null&&th(u,x,v,w,!0)}}e:{if(f=c?ci(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var T=$1;else if(qd(f))if(Xm)T=M1;else{T=L1;var k=I1}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=D1);if(T&&(T=T(e,c))){Gm(u,T,n,d);break e}k&&k(e,f,c),e==="focusout"&&(k=f._wrapperState)&&k.controlled&&f.type==="number"&&Ru(f,"number",f.value)}switch(k=c?ci(c):window,e){case"focusin":(qd(k)||k.contentEditable==="true")&&(ai=k,Bu=c,_s=null);break;case"focusout":_s=Bu=ai=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,Zd(u,n,d);break;case"selectionchange":if(U1)break;case"keydown":case"keyup":Zd(u,n,d)}var C;if(pf)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else li?Km(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(qm&&n.locale!=="ko"&&(li||R!=="onCompositionStart"?R==="onCompositionEnd"&&li&&(C=Qm()):(Xn=d,ff="value"in Xn?Xn.value:Xn.textContent,li=!0)),k=wl(c,R),0<k.length&&(R=new Vd(R,e,null,n,d),u.push({event:R,listeners:k}),C?R.data=C:(C=Ym(n),C!==null&&(R.data=C)))),(C=N1?P1(e,n):A1(e,n))&&(c=wl(c,"onBeforeInput"),0<c.length&&(d=new Vd("onBeforeInput","beforeinput",null,n,d),u.push({event:d,listeners:c}),d.data=C))}l0(u,t)})}function zs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=js(e,n),s!=null&&r.unshift(zs(e,s,i)),s=js(e,t),s!=null&&r.push(zs(e,s,i))),e=e.return}return r}function ri(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function th(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,c=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&c!==null&&(l=c,i?(a=js(n,s),a!=null&&o.unshift(zs(n,a,l))):i||(a=js(n,s),a!=null&&o.push(zs(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Q1=/\r\n?/g,q1=/\u0000|\uFFFD/g;function nh(e){return(typeof e=="string"?e:""+e).replace(Q1,`
38
+ `).replace(q1,"")}function Ao(e,t,n){if(t=nh(t),nh(e)!==t&&n)throw Error(O(425))}function xl(){}var Vu=null,Hu=null;function Wu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qu=typeof setTimeout=="function"?setTimeout:void 0,K1=typeof clearTimeout=="function"?clearTimeout:void 0,rh=typeof Promise=="function"?Promise:void 0,Y1=typeof queueMicrotask=="function"?queueMicrotask:typeof rh<"u"?function(e){return rh.resolve(null).then(e).catch(G1)}:Qu;function G1(e){setTimeout(function(){throw e})}function Za(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Is(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Is(t)}function rr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ih(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Gi=Math.random().toString(36).slice(2),ln="__reactFiber$"+Gi,Bs="__reactProps$"+Gi,Tn="__reactContainer$"+Gi,qu="__reactEvents$"+Gi,X1="__reactListeners$"+Gi,Z1="__reactHandles$"+Gi;function Er(e){var t=e[ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ih(e);e!==null;){if(n=e[ln])return n;e=ih(e)}return t}e=n,n=e.parentNode}return null}function lo(e){return e=e[ln]||e[Tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ci(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(O(33))}function Yl(e){return e[Bs]||null}var Ku=[],fi=-1;function pr(e){return{current:e}}function fe(e){0>fi||(e.current=Ku[fi],Ku[fi]=null,fi--)}function ae(e,t){fi++,Ku[fi]=e.current,e.current=t}var fr={},Ue=pr(fr),lt=pr(!1),Mr=fr;function Mi(e,t){var n=e.type.contextTypes;if(!n)return fr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function at(e){return e=e.childContextTypes,e!=null}function Sl(){fe(lt),fe(Ue)}function sh(e,t,n){if(Ue.current!==fr)throw Error(O(168));ae(Ue,t),ae(lt,n)}function u0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(O(108,Iv(e)||"Unknown",i));return ge({},n,r)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fr,Mr=Ue.current,ae(Ue,e),ae(lt,lt.current),!0}function oh(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=u0(e,t,Mr),r.__reactInternalMemoizedMergedChildContext=e,fe(lt),fe(Ue),ae(Ue,e)):fe(lt),ae(lt,n)}var wn=null,Gl=!1,Ja=!1;function c0(e){wn===null?wn=[e]:wn.push(e)}function J1(e){Gl=!0,c0(e)}function mr(){if(!Ja&&wn!==null){Ja=!0;var e=0,t=re;try{var n=wn;for(re=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,Gl=!1}catch(i){throw wn!==null&&(wn=wn.slice(e+1)),$m(lf,mr),i}finally{re=t,Ja=!1}}return null}var di=[],hi=0,El=null,_l=0,Rt=[],Nt=0,zr=null,bn=1,En="";function xr(e,t){di[hi++]=_l,di[hi++]=El,El=e,_l=t}function f0(e,t,n){Rt[Nt++]=bn,Rt[Nt++]=En,Rt[Nt++]=zr,zr=e;var r=bn;e=En;var i=32-Kt(r)-1;r&=~(1<<i),n+=1;var s=32-Kt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,bn=1<<32-Kt(t)+i|n<<i|r,En=s+e}else bn=1<<s|n<<i|r,En=e}function gf(e){e.return!==null&&(xr(e,1),f0(e,1,0))}function yf(e){for(;e===El;)El=di[--hi],di[hi]=null,_l=di[--hi],di[hi]=null;for(;e===zr;)zr=Rt[--Nt],Rt[Nt]=null,En=Rt[--Nt],Rt[Nt]=null,bn=Rt[--Nt],Rt[Nt]=null}var wt=null,gt=null,he=!1,Ht=null;function d0(e,t){var n=At(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function lh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,wt=e,gt=rr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,wt=e,gt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=zr!==null?{id:bn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,wt=e,gt=null,!0):!1;default:return!1}}function Yu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gu(e){if(he){var t=gt;if(t){var n=t;if(!lh(e,t)){if(Yu(e))throw Error(O(418));t=rr(n.nextSibling);var r=wt;t&&lh(e,t)?d0(r,n):(e.flags=e.flags&-4097|2,he=!1,wt=e)}}else{if(Yu(e))throw Error(O(418));e.flags=e.flags&-4097|2,he=!1,wt=e}}}function ah(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function jo(e){if(e!==wt)return!1;if(!he)return ah(e),he=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wu(e.type,e.memoizedProps)),t&&(t=gt)){if(Yu(e))throw h0(),Error(O(418));for(;t;)d0(e,t),t=rr(t.nextSibling)}if(ah(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(O(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gt=rr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=wt?rr(e.stateNode.nextSibling):null;return!0}function h0(){for(var e=gt;e;)e=rr(e.nextSibling)}function zi(){gt=wt=null,he=!1}function vf(e){Ht===null?Ht=[e]:Ht.push(e)}var ew=Nn.ReactCurrentBatchConfig;function us(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(O(309));var r=n.stateNode}if(!r)throw Error(O(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(O(284));if(!n._owner)throw Error(O(290,e))}return e}function Fo(e,t){throw e=Object.prototype.toString.call(t),Error(O(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function uh(e){var t=e._init;return t(e._payload)}function p0(e){function t(m,p){if(e){var h=m.deletions;h===null?(m.deletions=[p],m.flags|=16):h.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=lr(m,p),m.index=0,m.sibling=null,m}function s(m,p,h){return m.index=h,e?(h=m.alternate,h!==null?(h=h.index,h<p?(m.flags|=2,p):h):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function l(m,p,h,_){return p===null||p.tag!==6?(p=ou(h,m.mode,_),p.return=m,p):(p=i(p,h),p.return=m,p)}function a(m,p,h,_){var T=h.type;return T===oi?d(m,p,h.props.children,_,h.key):p!==null&&(p.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Dn&&uh(T)===p.type)?(_=i(p,h.props),_.ref=us(m,p,h),_.return=m,_):(_=rl(h.type,h.key,h.props,null,m.mode,_),_.ref=us(m,p,h),_.return=m,_)}function c(m,p,h,_){return p===null||p.tag!==4||p.stateNode.containerInfo!==h.containerInfo||p.stateNode.implementation!==h.implementation?(p=lu(h,m.mode,_),p.return=m,p):(p=i(p,h.children||[]),p.return=m,p)}function d(m,p,h,_,T){return p===null||p.tag!==7?(p=$r(h,m.mode,_,T),p.return=m,p):(p=i(p,h),p.return=m,p)}function u(m,p,h){if(typeof p=="string"&&p!==""||typeof p=="number")return p=ou(""+p,m.mode,h),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Eo:return h=rl(p.type,p.key,p.props,null,m.mode,h),h.ref=us(m,null,p),h.return=m,h;case si:return p=lu(p,m.mode,h),p.return=m,p;case Dn:var _=p._init;return u(m,_(p._payload),h)}if(ms(p)||is(p))return p=$r(p,m.mode,h,null),p.return=m,p;Fo(m,p)}return null}function f(m,p,h,_){var T=p!==null?p.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return T!==null?null:l(m,p,""+h,_);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Eo:return h.key===T?a(m,p,h,_):null;case si:return h.key===T?c(m,p,h,_):null;case Dn:return T=h._init,f(m,p,T(h._payload),_)}if(ms(h)||is(h))return T!==null?null:d(m,p,h,_,null);Fo(m,h)}return null}function g(m,p,h,_,T){if(typeof _=="string"&&_!==""||typeof _=="number")return m=m.get(h)||null,l(p,m,""+_,T);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Eo:return m=m.get(_.key===null?h:_.key)||null,a(p,m,_,T);case si:return m=m.get(_.key===null?h:_.key)||null,c(p,m,_,T);case Dn:var k=_._init;return g(m,p,h,k(_._payload),T)}if(ms(_)||is(_))return m=m.get(h)||null,d(p,m,_,T,null);Fo(p,_)}return null}function v(m,p,h,_){for(var T=null,k=null,C=p,R=p=0,I=null;C!==null&&R<h.length;R++){C.index>R?(I=C,C=null):I=C.sibling;var D=f(m,C,h[R],_);if(D===null){C===null&&(C=I);break}e&&C&&D.alternate===null&&t(m,C),p=s(D,p,R),k===null?T=D:k.sibling=D,k=D,C=I}if(R===h.length)return n(m,C),he&&xr(m,R),T;if(C===null){for(;R<h.length;R++)C=u(m,h[R],_),C!==null&&(p=s(C,p,R),k===null?T=C:k.sibling=C,k=C);return he&&xr(m,R),T}for(C=r(m,C);R<h.length;R++)I=g(C,m,R,h[R],_),I!==null&&(e&&I.alternate!==null&&C.delete(I.key===null?R:I.key),p=s(I,p,R),k===null?T=I:k.sibling=I,k=I);return e&&C.forEach(function(B){return t(m,B)}),he&&xr(m,R),T}function w(m,p,h,_){var T=is(h);if(typeof T!="function")throw Error(O(150));if(h=T.call(h),h==null)throw Error(O(151));for(var k=T=null,C=p,R=p=0,I=null,D=h.next();C!==null&&!D.done;R++,D=h.next()){C.index>R?(I=C,C=null):I=C.sibling;var B=f(m,C,D.value,_);if(B===null){C===null&&(C=I);break}e&&C&&B.alternate===null&&t(m,C),p=s(B,p,R),k===null?T=B:k.sibling=B,k=B,C=I}if(D.done)return n(m,C),he&&xr(m,R),T;if(C===null){for(;!D.done;R++,D=h.next())D=u(m,D.value,_),D!==null&&(p=s(D,p,R),k===null?T=D:k.sibling=D,k=D);return he&&xr(m,R),T}for(C=r(m,C);!D.done;R++,D=h.next())D=g(C,m,R,D.value,_),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?R:D.key),p=s(D,p,R),k===null?T=D:k.sibling=D,k=D);return e&&C.forEach(function(se){return t(m,se)}),he&&xr(m,R),T}function x(m,p,h,_){if(typeof h=="object"&&h!==null&&h.type===oi&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Eo:e:{for(var T=h.key,k=p;k!==null;){if(k.key===T){if(T=h.type,T===oi){if(k.tag===7){n(m,k.sibling),p=i(k,h.props.children),p.return=m,m=p;break e}}else if(k.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Dn&&uh(T)===k.type){n(m,k.sibling),p=i(k,h.props),p.ref=us(m,k,h),p.return=m,m=p;break e}n(m,k);break}else t(m,k);k=k.sibling}h.type===oi?(p=$r(h.props.children,m.mode,_,h.key),p.return=m,m=p):(_=rl(h.type,h.key,h.props,null,m.mode,_),_.ref=us(m,p,h),_.return=m,m=_)}return o(m);case si:e:{for(k=h.key;p!==null;){if(p.key===k)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(m,p.sibling),p=i(p,h.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=lu(h,m.mode,_),p.return=m,m=p}return o(m);case Dn:return k=h._init,x(m,p,k(h._payload),_)}if(ms(h))return v(m,p,h,_);if(is(h))return w(m,p,h,_);Fo(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,h),p.return=m,m=p):(n(m,p),p=ou(h,m.mode,_),p.return=m,m=p),o(m)):n(m,p)}return x}var Bi=p0(!0),m0=p0(!1),kl=pr(null),Cl=null,pi=null,wf=null;function xf(){wf=pi=Cl=null}function Sf(e){var t=kl.current;fe(kl),e._currentValue=t}function Xu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bi(e,t){Cl=e,wf=pi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ot=!0),e.firstContext=null)}function Ft(e){var t=e._currentValue;if(wf!==e)if(e={context:e,memoizedValue:t,next:null},pi===null){if(Cl===null)throw Error(O(308));pi=e,Cl.dependencies={lanes:0,firstContext:e}}else pi=pi.next=e;return t}var _r=null;function bf(e){_r===null?_r=[e]:_r.push(e)}function g0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,bf(t)):(n.next=i.next,i.next=n),t.interleaved=n,On(e,r)}function On(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Mn=!1;function Ef(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function y0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function _n(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ir(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,On(e,n)}return i=r.interleaved,i===null?(t.next=t,bf(r)):(t.next=i.next,i.next=t),r.interleaved=t,On(e,n)}function Xo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}function ch(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Tl(e,t,n,r){var i=e.updateQueue;Mn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,c=a.next;a.next=null,o===null?s=c:o.next=c,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=a))}if(s!==null){var u=i.baseState;o=0,d=c=a=null,l=s;do{var f=l.lane,g=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,w=l;switch(f=t,g=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){u=v.call(g,u,f);break e}u=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,f=typeof v=="function"?v.call(g,u,f):v,f==null)break e;u=ge({},u,f);break e;case 2:Mn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,a=u):d=d.next=g,o|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(a=u),i.baseState=a,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Ur|=o,e.lanes=o,e.memoizedState=u}}function fh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(O(191,i));i.call(r)}}}var ao={},un=pr(ao),Us=pr(ao),Vs=pr(ao);function kr(e){if(e===ao)throw Error(O(174));return e}function _f(e,t){switch(ae(Vs,t),ae(Us,e),ae(un,ao),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pu(t,e)}fe(un),ae(un,t)}function Ui(){fe(un),fe(Us),fe(Vs)}function v0(e){kr(Vs.current);var t=kr(un.current),n=Pu(t,e.type);t!==n&&(ae(Us,e),ae(un,n))}function kf(e){Us.current===e&&(fe(un),fe(Us))}var pe=pr(0);function Ol(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var eu=[];function Cf(){for(var e=0;e<eu.length;e++)eu[e]._workInProgressVersionPrimary=null;eu.length=0}var Zo=Nn.ReactCurrentDispatcher,tu=Nn.ReactCurrentBatchConfig,Br=0,me=null,Ee=null,Re=null,Rl=!1,ks=!1,Hs=0,tw=0;function De(){throw Error(O(321))}function Tf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function Of(e,t,n,r,i,s){if(Br=s,me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zo.current=e===null||e.memoizedState===null?sw:ow,e=n(r,i),ks){s=0;do{if(ks=!1,Hs=0,25<=s)throw Error(O(301));s+=1,Re=Ee=null,t.updateQueue=null,Zo.current=lw,e=n(r,i)}while(ks)}if(Zo.current=Nl,t=Ee!==null&&Ee.next!==null,Br=0,Re=Ee=me=null,Rl=!1,t)throw Error(O(300));return e}function Rf(){var e=Hs!==0;return Hs=0,e}function en(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?me.memoizedState=Re=e:Re=Re.next=e,Re}function $t(){if(Ee===null){var e=me.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var t=Re===null?me.memoizedState:Re.next;if(t!==null)Re=t,Ee=e;else{if(e===null)throw Error(O(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Re===null?me.memoizedState=Re=e:Re=Re.next=e}return Re}function Ws(e,t){return typeof t=="function"?t(e):t}function nu(e){var t=$t(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=Ee,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,c=s;do{var d=c.lane;if((Br&d)===d)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var u={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(l=a=u,o=r):a=a.next=u,me.lanes|=d,Ur|=d}c=c.next}while(c!==null&&c!==s);a===null?o=r:a.next=l,Gt(r,t.memoizedState)||(ot=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,me.lanes|=s,Ur|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ru(e){var t=$t(),n=t.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Gt(s,t.memoizedState)||(ot=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function w0(){}function x0(e,t){var n=me,r=$t(),i=t(),s=!Gt(r.memoizedState,i);if(s&&(r.memoizedState=i,ot=!0),r=r.queue,Nf(E0.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Re!==null&&Re.memoizedState.tag&1){if(n.flags|=2048,Qs(9,b0.bind(null,n,r,i,t),void 0,null),Ne===null)throw Error(O(349));Br&30||S0(n,t,i)}return i}function S0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function b0(e,t,n,r){t.value=n,t.getSnapshot=r,_0(t)&&k0(e)}function E0(e,t,n){return n(function(){_0(t)&&k0(e)})}function _0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function k0(e){var t=On(e,1);t!==null&&Yt(t,e,1,-1)}function dh(e){var t=en();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:e},t.queue=e,e=e.dispatch=iw.bind(null,me,e),[t.memoizedState,e]}function Qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=me.updateQueue,t===null?(t={lastEffect:null,stores:null},me.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function C0(){return $t().memoizedState}function Jo(e,t,n,r){var i=en();me.flags|=e,i.memoizedState=Qs(1|t,n,void 0,r===void 0?null:r)}function Xl(e,t,n,r){var i=$t();r=r===void 0?null:r;var s=void 0;if(Ee!==null){var o=Ee.memoizedState;if(s=o.destroy,r!==null&&Tf(r,o.deps)){i.memoizedState=Qs(t,n,s,r);return}}me.flags|=e,i.memoizedState=Qs(1|t,n,s,r)}function hh(e,t){return Jo(8390656,8,e,t)}function Nf(e,t){return Xl(2048,8,e,t)}function T0(e,t){return Xl(4,2,e,t)}function O0(e,t){return Xl(4,4,e,t)}function R0(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function N0(e,t,n){return n=n!=null?n.concat([e]):null,Xl(4,4,R0.bind(null,t,e),n)}function Pf(){}function P0(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Tf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function A0(e,t){var n=$t();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Tf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function j0(e,t,n){return Br&21?(Gt(n,t)||(n=Dm(),me.lanes|=n,Ur|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ot=!0),e.memoizedState=n)}function nw(e,t){var n=re;re=n!==0&&4>n?n:4,e(!0);var r=tu.transition;tu.transition={};try{e(!1),t()}finally{re=n,tu.transition=r}}function F0(){return $t().memoizedState}function rw(e,t,n){var r=or(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$0(e))I0(t,n);else if(n=g0(e,t,n,r),n!==null){var i=Ge();Yt(n,e,r,i),L0(n,t,r)}}function iw(e,t,n){var r=or(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($0(e))I0(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Gt(l,o)){var a=t.interleaved;a===null?(i.next=i,bf(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=g0(e,t,i,r),n!==null&&(i=Ge(),Yt(n,e,r,i),L0(n,t,r))}}function $0(e){var t=e.alternate;return e===me||t!==null&&t===me}function I0(e,t){ks=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function L0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,af(e,n)}}var Nl={readContext:Ft,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},sw={readContext:Ft,useCallback:function(e,t){return en().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:hh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jo(4194308,4,R0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jo(4,2,e,t)},useMemo:function(e,t){var n=en();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=en();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rw.bind(null,me,e),[r.memoizedState,e]},useRef:function(e){var t=en();return e={current:e},t.memoizedState=e},useState:dh,useDebugValue:Pf,useDeferredValue:function(e){return en().memoizedState=e},useTransition:function(){var e=dh(!1),t=e[0];return e=nw.bind(null,e[1]),en().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=me,i=en();if(he){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),Ne===null)throw Error(O(349));Br&30||S0(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,hh(E0.bind(null,r,s,e),[e]),r.flags|=2048,Qs(9,b0.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=en(),t=Ne.identifierPrefix;if(he){var n=En,r=bn;n=(r&~(1<<32-Kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Hs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=tw++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ow={readContext:Ft,useCallback:P0,useContext:Ft,useEffect:Nf,useImperativeHandle:N0,useInsertionEffect:T0,useLayoutEffect:O0,useMemo:A0,useReducer:nu,useRef:C0,useState:function(){return nu(Ws)},useDebugValue:Pf,useDeferredValue:function(e){var t=$t();return j0(t,Ee.memoizedState,e)},useTransition:function(){var e=nu(Ws)[0],t=$t().memoizedState;return[e,t]},useMutableSource:w0,useSyncExternalStore:x0,useId:F0,unstable_isNewReconciler:!1},lw={readContext:Ft,useCallback:P0,useContext:Ft,useEffect:Nf,useImperativeHandle:N0,useInsertionEffect:T0,useLayoutEffect:O0,useMemo:A0,useReducer:ru,useRef:C0,useState:function(){return ru(Ws)},useDebugValue:Pf,useDeferredValue:function(e){var t=$t();return Ee===null?t.memoizedState=e:j0(t,Ee.memoizedState,e)},useTransition:function(){var e=ru(Ws)[0],t=$t().memoizedState;return[e,t]},useMutableSource:w0,useSyncExternalStore:x0,useId:F0,unstable_isNewReconciler:!1};function zt(e,t){if(e&&e.defaultProps){t=ge({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Zu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ge({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Zl={isMounted:function(e){return(e=e._reactInternals)?Kr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=or(e),s=_n(r,i);s.payload=t,n!=null&&(s.callback=n),t=ir(e,s,i),t!==null&&(Yt(t,e,i,r),Xo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=or(e),s=_n(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=ir(e,s,i),t!==null&&(Yt(t,e,i,r),Xo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ge(),r=or(e),i=_n(n,r);i.tag=2,t!=null&&(i.callback=t),t=ir(e,i,r),t!==null&&(Yt(t,e,r,n),Xo(t,e,r))}};function ph(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Ds(n,r)||!Ds(i,s):!0}function D0(e,t,n){var r=!1,i=fr,s=t.contextType;return typeof s=="object"&&s!==null?s=Ft(s):(i=at(t)?Mr:Ue.current,r=t.contextTypes,s=(r=r!=null)?Mi(e,i):fr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Zl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function mh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Zl.enqueueReplaceState(t,t.state,null)}function Ju(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ef(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Ft(s):(s=at(t)?Mr:Ue.current,i.context=Mi(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Zu(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Zl.enqueueReplaceState(i,i.state,null),Tl(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vi(e,t){try{var n="",r=t;do n+=$v(r),r=r.return;while(r);var i=n}catch(s){i=`
39
39
  Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:i,digest:null}}function ru(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aw=typeof WeakMap=="function"?WeakMap:Map;function M0(e,t,n){n=bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Na||(Na=!0,uc=r),Ju(e,t)},n}function z0(e,t,n){n=bn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ju(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ju(e,t),typeof r!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function mh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new aw;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Sw.bind(null,e,t,n),t.then(e,e))}function yh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function gh(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bn(-1,1),t.tag=2,ir(n,t,1))),n.lanes|=1),e)}var lw=Pn.ReactCurrentOwner,st=!1;function Ke(e,t,n,r){t.child=e===null?m0(t,null,n,r):Bi(t,e.child,n,r)}function vh(e,t,n,r,i){n=n.render;var s=t.ref;return Ei(t,i),r=Tf(e,t,n,r,s,i),n=Of(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rn(e,t,i)):(he&&n&&mf(t),t.flags|=1,Ke(e,t,r,i),t.child)}function wh(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Df(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,B0(e,t,s,r,i)):(e=ra(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ds,n(o,r)&&e.ref===t.ref)return Rn(e,t,i)}return t.flags|=1,e=ar(s,r),e.ref=t.ref,e.return=t,t.child=e}function B0(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Ds(s,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,Rn(e,t,i)}return ec(e,t,n,r,i)}function U0(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(yi,mt),mt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(yi,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,le(yi,mt),mt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,le(yi,mt),mt|=r;return Ke(e,t,i,n),t.child}function V0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ec(e,t,n,r,i){var s=at(n)?Mr:Ue.current;return s=Mi(t,s),Ei(t,i),n=Tf(e,t,n,r,s,i),r=Of(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rn(e,t,i)):(he&&r&&mf(t),t.flags|=1,Ke(e,t,n,i),t.child)}function xh(e,t,n,r,i){if(at(n)){var s=!0;Sa(t)}else s=!1;if(Ei(t,i),t.stateNode===null)ea(e,t),D0(t,n,r),Zu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ft(c):(c=at(n)?Mr:Ue.current,c=Mi(t,c));var d=n.getDerivedStateFromProps,u=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==c)&&ph(t,o,r,c),Mn=!1;var f=t.memoizedState;o.state=f,Ca(t,r,o,i),l=t.memoizedState,a!==r||f!==l||ot.current||Mn?(typeof d=="function"&&(Xu(t,n,d,r),l=t.memoizedState),(a=Mn||hh(t,n,a,r,f,l,c))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,g0(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:zt(t.type,a),o.props=c,u=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ft(l):(l=at(n)?Mr:Ue.current,l=Mi(t,l));var m=n.getDerivedStateFromProps;(d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==u||f!==l)&&ph(t,o,r,l),Mn=!1,f=t.memoizedState,o.state=f,Ca(t,r,o,i);var v=t.memoizedState;a!==u||f!==v||ot.current||Mn?(typeof m=="function"&&(Xu(t,n,m,r),v=t.memoizedState),(c=Mn||hh(t,n,c,r,f,v,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=l,r=c):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return tc(e,t,n,r,s,i)}function tc(e,t,n,r,i,s){V0(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&sh(t,n,!1),Rn(e,t,s);r=t.stateNode,lw.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Bi(t,e.child,null,s),t.child=Bi(t,null,a,s)):Ke(e,t,a,s),t.memoizedState=r.state,i&&sh(t,n,!0),t.child}function H0(e){var t=e.stateNode;t.pendingContext?ih(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ih(e,t.context,!1),_f(e,t.containerInfo)}function Sh(e,t,n,r,i){return zi(),gf(i),t.flags|=256,Ke(e,t,n,r),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function W0(e,t,n){var r=t.pendingProps,i=pe.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),le(pe,i&1),e===null)return Yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=el(o,r,0,null),e=$r(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=rc(n),t.memoizedState=nc,e):Nf(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return uw(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=ar(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=ar(a,s):(s=$r(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=nc,r}return s=e.child,e=s.sibling,r=ar(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Nf(e,t){return t=el({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $o(e,t,n,r){return r!==null&&gf(r),Bi(t,e.child,null,n),e=Nf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uw(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=ru(Error(O(422))),$o(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=el({mode:"visible",children:r.children},i,0,null),s=$r(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Bi(t,e.child,null,o),t.child.memoizedState=rc(o),t.memoizedState=nc,s);if(!(t.mode&1))return $o(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(O(419)),r=ru(s,r,void 0),$o(e,t,o,r)}if(a=(o&e.childLanes)!==0,st||a){if(r=Pe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,On(e,i),Yt(r,e,i,-1))}return Lf(),r=ru(Error(O(421))),$o(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ew.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,yt=rr(i.nextSibling),wt=t,he=!0,Ht=null,e!==null&&(Rt[Pt++]=En,Rt[Pt++]=_n,Rt[Pt++]=zr,En=e.id,_n=e.overflow,zr=t),t=Nf(t,r.children),t.flags|=4096,t)}function Eh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gu(e.return,t,n)}function iu(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Q0(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ke(e,t,r.children,n),r=pe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eh(e,n,t);else if(e.tag===19)Eh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(pe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ta(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),iu(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ta(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}iu(t,!0,n,null,s);break;case"together":iu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ea(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ur|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=ar(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ar(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cw(e,t,n){switch(t.tag){case 3:H0(t),zi();break;case 5:v0(t);break;case 1:at(t.type)&&Sa(t);break;case 4:_f(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(ba,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?W0(e,t,n):(le(pe,pe.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);le(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Q0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,U0(e,t,n)}return Rn(e,t,n)}var q0,ic,K0,Y0;q0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ic=function(){};K0=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,kr(un.current);var s=null;switch(n){case"input":i=Cu(e,i),r=Cu(e,r),s=[];break;case"select":i=ye({},i,{value:void 0}),r=ye({},r,{value:void 0}),s=[];break;case"textarea":i=Ru(e,i),r=Ru(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=wa)}Nu(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ns.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ns.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ue("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Y0=function(e,t,n,r){n!==r&&(t.flags|=4)};function cs(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fw(e,t,n){var r=t.pendingProps;switch(yf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return at(t.type)&&xa(),Me(t),null;case 3:return r=t.stateNode,Ui(),fe(ot),fe(Ue),kf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(jo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ht!==null&&(dc(Ht),Ht=null))),ic(e,t),Me(t),null;case 5:bf(t);var i=kr(Vs.current);if(n=t.type,e!==null&&t.stateNode!=null)K0(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Me(t),null}if(e=kr(un.current),jo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[an]=t,r[Bs]=s,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(i=0;i<gs.length;i++)ue(gs[i],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":Nd(r,s),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ue("invalid",r);break;case"textarea":jd(r,s),ue("invalid",r)}Nu(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ao(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ao(r.textContent,a,e),i=["children",""+a]):Ns.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ue("scroll",r)}switch(n){case"input":bo(r),Ad(r,s,!0);break;case"textarea":bo(r),Fd(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=wa)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_m(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[an]=t,e[Bs]=r,q0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Au(n,r),n){case"dialog":ue("cancel",e),ue("close",e),i=r;break;case"iframe":case"object":case"embed":ue("load",e),i=r;break;case"video":case"audio":for(i=0;i<gs.length;i++)ue(gs[i],e);i=r;break;case"source":ue("error",e),i=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),i=r;break;case"details":ue("toggle",e),i=r;break;case"input":Nd(e,r),i=Cu(e,r),ue("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ye({},r,{value:void 0}),ue("invalid",e);break;case"textarea":jd(e,r),i=Ru(e,r),ue("invalid",e);break;default:i=r}Nu(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Cm(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&bm(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&As(e,l):typeof l=="number"&&As(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ns.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ue("scroll",e):l!=null&&ef(e,s,l,o))}switch(n){case"input":bo(e),Ad(e,r,!1);break;case"textarea":bo(e),Fd(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?vi(e,!!r.multiple,s,!1):r.defaultValue!=null&&vi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=wa)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Me(t),null;case 6:if(e&&t.stateNode!=null)Y0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=kr(Vs.current),kr(un.current),jo(t)){if(r=t.stateNode,n=t.memoizedProps,r[an]=t,(s=r.nodeValue!==n)&&(e=wt,e!==null))switch(e.tag){case 3:Ao(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ao(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[an]=t,t.stateNode=r}return Me(t),null;case 13:if(fe(pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&yt!==null&&t.mode&1&&!(t.flags&128))h0(),zi(),t.flags|=98560,s=!1;else if(s=jo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[an]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),s=!1}else Ht!==null&&(dc(Ht),Ht=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pe.current&1?ke===0&&(ke=3):Lf())),t.updateQueue!==null&&(t.flags|=4),Me(t),null);case 4:return Ui(),ic(e,t),e===null&&Ms(t.stateNode.containerInfo),Me(t),null;case 10:return xf(t.type._context),Me(t),null;case 17:return at(t.type)&&xa(),Me(t),null;case 19:if(fe(pe),s=t.memoizedState,s===null)return Me(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)cs(s,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ta(e),o!==null){for(t.flags|=128,cs(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(pe,pe.current&1|2),t.child}e=e.sibling}s.tail!==null&&xe()>Hi&&(t.flags|=128,r=!0,cs(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ta(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!he)return Me(t),null}else 2*xe()-s.renderingStartTime>Hi&&n!==1073741824&&(t.flags|=128,r=!0,cs(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xe(),t.sibling=null,n=pe.current,le(pe,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return If(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mt&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function dw(e,t){switch(yf(t),t.tag){case 1:return at(t.type)&&xa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(),fe(ot),fe(Ue),kf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return bf(t),null;case 13:if(fe(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(pe),null;case 4:return Ui(),null;case 10:return xf(t.type._context),null;case 22:case 23:return If(),null;case 24:return null;default:return null}}var Io=!1,Be=!1,hw=typeof WeakSet=="function"?WeakSet:Set,F=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(e,t,r)}else n.current=null}function sc(e,t,n){try{n()}catch(r){ve(e,t,r)}}var _h=!1;function pw(e,t){if(Uu=ya,e=e0(),pf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var m;u!==n||i!==0&&u.nodeType!==3||(a=o+i),u!==s||r!==0&&u.nodeType!==3||(l=o+r),u.nodeType===3&&(o+=u.nodeValue.length),(m=u.firstChild)!==null;)f=u,u=m;for(;;){if(u===e)break t;if(f===n&&++c===i&&(a=o),f===s&&++d===r&&(l=o),(m=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vu={focusedElem:e,selectionRange:n},ya=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,x=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:zt(t.type,w),x);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(_){ve(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return v=_h,_h=!1,v}function Cs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&sc(t,n,s)}i=i.next}while(i!==r)}}function Za(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function G0(e){var t=e.alternate;t!==null&&(e.alternate=null,G0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[an],delete t[Bs],delete t[Qu],delete t[G1],delete t[X1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function X0(e){return e.tag===5||e.tag===3||e.tag===4}function bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||X0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wa));else if(r!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function lc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}var Fe=null,Ut=!1;function In(e,t,n){for(n=n.child;n!==null;)Z0(e,t,n),n=n.sibling}function Z0(e,t,n){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(Ha,n)}catch{}switch(n.tag){case 5:Be||mi(n,t);case 6:var r=Fe,i=Ut;Fe=null,In(e,t,n),Fe=r,Ut=i,Fe!==null&&(Ut?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Ut?(e=Fe,n=n.stateNode,e.nodeType===8?Xl(e.parentNode,n):e.nodeType===1&&Xl(e,n),Is(e)):Xl(Fe,n.stateNode));break;case 4:r=Fe,i=Ut,Fe=n.stateNode.containerInfo,Ut=!0,In(e,t,n),Fe=r,Ut=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&sc(n,t,o),i=i.next}while(i!==r)}In(e,t,n);break;case 1:if(!Be&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ve(n,t,a)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,In(e,t,n),Be=r):In(e,t,n);break;default:In(e,t,n)}}function kh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new hw),t.forEach(function(r){var i=_w.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Fe=a.stateNode,Ut=!1;break e;case 3:Fe=a.stateNode.containerInfo,Ut=!0;break e;case 4:Fe=a.stateNode.containerInfo,Ut=!0;break e}a=a.return}if(Fe===null)throw Error(O(160));Z0(s,o,i),Fe=null,Ut=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ve(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)J0(t,e),t=t.sibling}function J0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Zt(e),r&4){try{Cs(3,e,e.return),Za(3,e)}catch(w){ve(e,e.return,w)}try{Cs(5,e,e.return)}catch(w){ve(e,e.return,w)}}break;case 1:Dt(t,e),Zt(e),r&512&&n!==null&&mi(n,n.return);break;case 5:if(Dt(t,e),Zt(e),r&512&&n!==null&&mi(n,n.return),e.flags&32){var i=e.stateNode;try{As(i,"")}catch(w){ve(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&Sm(i,s),Au(a,o);var c=Au(a,s);for(o=0;o<l.length;o+=2){var d=l[o],u=l[o+1];d==="style"?Cm(i,u):d==="dangerouslySetInnerHTML"?bm(i,u):d==="children"?As(i,u):ef(i,d,u,c)}switch(a){case"input":Tu(i,s);break;case"textarea":Em(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var m=s.value;m!=null?vi(i,!!s.multiple,m,!1):f!==!!s.multiple&&(s.defaultValue!=null?vi(i,!!s.multiple,s.defaultValue,!0):vi(i,!!s.multiple,s.multiple?[]:"",!1))}i[Bs]=s}catch(w){ve(e,e.return,w)}}break;case 6:if(Dt(t,e),Zt(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(w){ve(e,e.return,w)}}break;case 3:if(Dt(t,e),Zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Is(t.containerInfo)}catch(w){ve(e,e.return,w)}break;case 4:Dt(t,e),Zt(e);break;case 13:Dt(t,e),Zt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Ff=xe())),r&4&&kh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(c=Be)||d,Dt(t,e),Be=c):Dt(t,e),Zt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(u=F=d;F!==null;){switch(f=F,m=f.child,f.tag){case 0:case 11:case 14:case 15:Cs(4,f,f.return);break;case 1:mi(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){ve(r,n,w)}}break;case 5:mi(f,f.return);break;case 22:if(f.memoizedState!==null){Th(u);continue}}m!==null?(m.return=f,F=m):Th(u)}d=d.sibling}e:for(d=null,u=e;;){if(u.tag===5){if(d===null){d=u;try{i=u.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=u.stateNode,l=u.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=km("display",o))}catch(w){ve(e,e.return,w)}}}else if(u.tag===6){if(d===null)try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(w){ve(e,e.return,w)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:Dt(t,e),Zt(e),r&4&&kh(e);break;case 21:break;default:Dt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(X0(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(As(i,""),r.flags&=-33);var s=bh(e);lc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=bh(e);ac(e,a,o);break;default:throw Error(O(161))}}catch(l){ve(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function mw(e,t,n){F=e,ey(e)}function ey(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var i=F,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Io;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Be;a=Io;var c=Be;if(Io=o,(Be=l)&&!c)for(F=i;F!==null;)o=F,l=o.child,o.tag===22&&o.memoizedState!==null?Oh(i):l!==null?(l.return=o,F=l):Oh(i);for(;s!==null;)F=s,ey(s),s=s.sibling;F=i,Io=a,Be=c}Ch(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,F=s):Ch(e)}}function Ch(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Za(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:zt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&ch(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ch(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var u=d.dehydrated;u!==null&&Is(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Be||t.flags&512&&oc(t)}catch(f){ve(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Th(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Oh(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Za(4,t)}catch(l){ve(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){ve(t,i,l)}}var s=t.return;try{oc(t)}catch(l){ve(t,s,l)}break;case 5:var o=t.return;try{oc(t)}catch(l){ve(t,o,l)}}}catch(l){ve(t,t.return,l)}if(t===e){F=null;break}var a=t.sibling;if(a!==null){a.return=t.return,F=a;break}F=t.return}}var yw=Math.ceil,Pa=Pn.ReactCurrentDispatcher,Af=Pn.ReactCurrentOwner,jt=Pn.ReactCurrentBatchConfig,J=0,Pe=null,Se=null,$e=0,mt=0,yi=pr(0),ke=0,qs=null,Ur=0,Ja=0,jf=0,Ts=null,rt=null,Ff=0,Hi=1/0,vn=null,Na=!1,uc=null,sr=null,Lo=!1,Zn=null,Aa=0,Os=0,cc=null,ta=-1,na=0;function Ye(){return J&6?xe():ta!==-1?ta:ta=xe()}function or(e){return e.mode&1?J&2&&$e!==0?$e&-$e:J1.transition!==null?(na===0&&(na=Dm()),na):(e=re,e!==0||(e=window.event,e=e===void 0?16:Wm(e.type)),e):1}function Yt(e,t,n,r){if(50<Os)throw Os=0,cc=null,Error(O(185));so(e,n,r),(!(J&2)||e!==Pe)&&(e===Pe&&(!(J&2)&&(Ja|=n),ke===4&&Bn(e,$e)),lt(e,r),n===1&&J===0&&!(t.mode&1)&&(Hi=xe()+500,Ya&&mr()))}function lt(e,t){var n=e.callbackNode;Jv(e,t);var r=ma(e,e===Pe?$e:0);if(r===0)n!==null&&Ld(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ld(n),t===1)e.tag===0?Z1(Rh.bind(null,e)):c0(Rh.bind(null,e)),K1(function(){!(J&6)&&mr()}),n=null;else{switch(Mm(r)){case 1:n=of;break;case 4:n=Im;break;case 16:n=pa;break;case 536870912:n=Lm;break;default:n=pa}n=ly(n,ty.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ty(e,t){if(ta=-1,na=0,J&6)throw Error(O(327));var n=e.callbackNode;if(_i()&&e.callbackNode!==n)return null;var r=ma(e,e===Pe?$e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ja(e,r);else{t=r;var i=J;J|=2;var s=ry();(Pe!==e||$e!==t)&&(vn=null,Hi=xe()+500,Fr(e,t));do try{ww();break}catch(a){ny(e,a)}while(!0);wf(),Pa.current=s,J=i,Se!==null?t=0:(Pe=null,$e=0,t=ke)}if(t!==0){if(t===2&&(i=Lu(e),i!==0&&(r=i,t=fc(e,i))),t===1)throw n=qs,Fr(e,0),Bn(e,r),lt(e,xe()),n;if(t===6)Bn(e,r);else{if(i=e.current.alternate,!(r&30)&&!gw(i)&&(t=ja(e,r),t===2&&(s=Lu(e),s!==0&&(r=s,t=fc(e,s))),t===1))throw n=qs,Fr(e,0),Bn(e,r),lt(e,xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Sr(e,rt,vn);break;case 3:if(Bn(e,r),(r&130023424)===r&&(t=Ff+500-xe(),10<t)){if(ma(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ye(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Wu(Sr.bind(null,e,rt,vn),t);break}Sr(e,rt,vn);break;case 4:if(Bn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Kt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yw(r/1960))-r,10<r){e.timeoutHandle=Wu(Sr.bind(null,e,rt,vn),r);break}Sr(e,rt,vn);break;case 5:Sr(e,rt,vn);break;default:throw Error(O(329))}}}return lt(e,xe()),e.callbackNode===n?ty.bind(null,e):null}function fc(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(Fr(e,t).flags|=256),e=ja(e,t),e!==2&&(t=rt,rt=n,t!==null&&dc(t)),e}function dc(e){rt===null?rt=e:rt.push.apply(rt,e)}function gw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Gt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bn(e,t){for(t&=~jf,t&=~Ja,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),r=1<<n;e[n]=-1,t&=~r}}function Rh(e){if(J&6)throw Error(O(327));_i();var t=ma(e,0);if(!(t&1))return lt(e,xe()),null;var n=ja(e,t);if(e.tag!==0&&n===2){var r=Lu(e);r!==0&&(t=r,n=fc(e,r))}if(n===1)throw n=qs,Fr(e,0),Bn(e,t),lt(e,xe()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sr(e,rt,vn),lt(e,xe()),null}function $f(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(Hi=xe()+500,Ya&&mr())}}function Vr(e){Zn!==null&&Zn.tag===0&&!(J&6)&&_i();var t=J;J|=1;var n=jt.transition,r=re;try{if(jt.transition=null,re=1,e)return e()}finally{re=r,jt.transition=n,J=t,!(J&6)&&mr()}}function If(){mt=yi.current,fe(yi)}function Fr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,q1(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(yf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&xa();break;case 3:Ui(),fe(ot),fe(Ue),kf();break;case 5:bf(r);break;case 4:Ui();break;case 13:fe(pe);break;case 19:fe(pe);break;case 10:xf(r.type._context);break;case 22:case 23:If()}n=n.return}if(Pe=e,Se=e=ar(e.current,null),$e=mt=t,ke=0,qs=null,jf=Ja=Ur=0,rt=Ts=null,br!==null){for(t=0;t<br.length;t++)if(n=br[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}br=null}return e}function ny(e,t){do{var n=Se;try{if(wf(),Zo.current=Ra,Oa){for(var r=me.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Oa=!1}if(Br=0,Re=_e=me=null,ks=!1,Hs=0,Af.current=null,n===null||n.return===null){ke=1,qs=t,Se=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=$e,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=a,u=d.tag;if(!(d.mode&1)&&(u===0||u===11||u===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=yh(o);if(m!==null){m.flags&=-257,gh(m,o,a,s,t),m.mode&1&&mh(s,c,t),t=m,l=c;var v=t.updateQueue;if(v===null){var w=new Set;w.add(l),t.updateQueue=w}else v.add(l);break e}else{if(!(t&1)){mh(s,c,t),Lf();break e}l=Error(O(426))}}else if(he&&a.mode&1){var x=yh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),gh(x,o,a,s,t),gf(Vi(l,a));break e}}s=l=Vi(l,a),ke!==4&&(ke=2),Ts===null?Ts=[s]:Ts.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var p=M0(s,l,t);uh(s,p);break e;case 1:a=l;var h=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof h.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(sr===null||!sr.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=z0(s,a,t);uh(s,_);break e}}s=s.return}while(s!==null)}sy(n)}catch(T){t=T,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function ry(){var e=Pa.current;return Pa.current=Ra,e===null?Ra:e}function Lf(){(ke===0||ke===3||ke===2)&&(ke=4),Pe===null||!(Ur&268435455)&&!(Ja&268435455)||Bn(Pe,$e)}function ja(e,t){var n=J;J|=2;var r=ry();(Pe!==e||$e!==t)&&(vn=null,Fr(e,t));do try{vw();break}catch(i){ny(e,i)}while(!0);if(wf(),J=n,Pa.current=r,Se!==null)throw Error(O(261));return Pe=null,$e=0,ke}function vw(){for(;Se!==null;)iy(Se)}function ww(){for(;Se!==null&&!Hv();)iy(Se)}function iy(e){var t=ay(e.alternate,e,mt);e.memoizedProps=e.pendingProps,t===null?sy(e):Se=t,Af.current=null}function sy(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dw(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,Se=null;return}}else if(n=fw(n,t,mt),n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);ke===0&&(ke=5)}function Sr(e,t,n){var r=re,i=jt.transition;try{jt.transition=null,re=1,xw(e,t,n,r)}finally{jt.transition=i,re=r}return null}function xw(e,t,n,r){do _i();while(Zn!==null);if(J&6)throw Error(O(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(e1(e,s),e===Pe&&(Se=Pe=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Lo||(Lo=!0,ly(pa,function(){return _i(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=jt.transition,jt.transition=null;var o=re;re=1;var a=J;J|=4,Af.current=null,pw(e,n),J0(n,e),z1(Vu),ya=!!Uu,Vu=Uu=null,e.current=n,mw(n),Wv(),J=a,re=o,jt.transition=s}else e.current=n;if(Lo&&(Lo=!1,Zn=e,Aa=i),s=e.pendingLanes,s===0&&(sr=null),Kv(n.stateNode),lt(e,xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Na)throw Na=!1,e=uc,uc=null,e;return Aa&1&&e.tag!==0&&_i(),s=e.pendingLanes,s&1?e===cc?Os++:(Os=0,cc=e):Os=0,mr(),null}function _i(){if(Zn!==null){var e=Mm(Aa),t=jt.transition,n=re;try{if(jt.transition=null,re=16>e?16:e,Zn===null)var r=!1;else{if(e=Zn,Zn=null,Aa=0,J&6)throw Error(O(331));var i=J;for(J|=4,F=e.current;F!==null;){var s=F,o=s.child;if(F.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(F=c;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:Cs(8,d,s)}var u=d.child;if(u!==null)u.return=d,F=u;else for(;F!==null;){d=F;var f=d.sibling,m=d.return;if(G0(d),d===c){F=null;break}if(f!==null){f.return=m,F=f;break}F=m}}}var v=s.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}F=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,F=o;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Cs(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,F=p;break e}F=s.return}}var h=e.current;for(F=h;F!==null;){o=F;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,F=g;else e:for(o=h;F!==null;){if(a=F,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Za(9,a)}}catch(T){ve(a,a.return,T)}if(a===o){F=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,F=_;break e}F=a.return}}if(J=i,mr(),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(Ha,e)}catch{}r=!0}return r}finally{re=n,jt.transition=t}}return!1}function Ph(e,t,n){t=Vi(n,t),t=M0(e,t,1),e=ir(e,t,1),t=Ye(),e!==null&&(so(e,1,t),lt(e,t))}function ve(e,t,n){if(e.tag===3)Ph(e,e,n);else for(;t!==null;){if(t.tag===3){Ph(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sr===null||!sr.has(r))){e=Vi(n,e),e=z0(t,e,1),t=ir(t,e,1),e=Ye(),t!==null&&(so(t,1,e),lt(t,e));break}}t=t.return}}function Sw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ye(),e.pingedLanes|=e.suspendedLanes&n,Pe===e&&($e&n)===n&&(ke===4||ke===3&&($e&130023424)===$e&&500>xe()-Ff?Fr(e,0):jf|=n),lt(e,t)}function oy(e,t){t===0&&(e.mode&1?(t=To,To<<=1,!(To&130023424)&&(To=4194304)):t=1);var n=Ye();e=On(e,t),e!==null&&(so(e,t,n),lt(e,n))}function Ew(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),oy(e,n)}function _w(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),oy(e,n)}var ay;ay=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ot.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,cw(e,t,n);st=!!(e.flags&131072)}else st=!1,he&&t.flags&1048576&&f0(t,_a,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ea(e,t),e=t.pendingProps;var i=Mi(t,Ue.current);Ei(t,n),i=Tf(null,t,r,e,i,n);var s=Of();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(s=!0,Sa(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ef(t),i.updater=Xa,t.stateNode=i,i._reactInternals=t,Zu(t,r,e,n),t=tc(null,t,r,!0,s,n)):(t.tag=0,he&&s&&mf(t),Ke(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ea(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=kw(r),e=zt(r,e),i){case 0:t=ec(null,t,r,e,n);break e;case 1:t=xh(null,t,r,e,n);break e;case 11:t=vh(null,t,r,e,n);break e;case 14:t=wh(null,t,r,zt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),ec(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),xh(e,t,r,i,n);case 3:e:{if(H0(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,i=s.element,g0(e,t),Ca(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Vi(Error(O(423)),t),t=Sh(e,t,r,n,i);break e}else if(r!==i){i=Vi(Error(O(424)),t),t=Sh(e,t,r,n,i);break e}else for(yt=rr(t.stateNode.containerInfo.firstChild),wt=t,he=!0,Ht=null,n=m0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zi(),r===i){t=Rn(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return v0(t),e===null&&Yu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Hu(r,i)?o=null:s!==null&&Hu(r,s)&&(t.flags|=32),V0(e,t),Ke(e,t,o,n),t.child;case 6:return e===null&&Yu(t),null;case 13:return W0(e,t,n);case 4:return _f(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bi(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),vh(e,t,r,i,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,le(ba,r._currentValue),r._currentValue=o,s!==null)if(Gt(s.value,o)){if(s.children===i.children&&!ot.current){t=Rn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=bn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Gu(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(O(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Gu(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ke(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ei(t,n),i=Ft(i),r=r(i),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,i=zt(r,t.pendingProps),i=zt(r.type,i),wh(e,t,r,i,n);case 15:return B0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),ea(e,t),t.tag=1,at(r)?(e=!0,Sa(t)):e=!1,Ei(t,n),D0(t,r,i),Zu(t,r,i,n),tc(null,t,r,!0,e,n);case 19:return Q0(e,t,n);case 22:return U0(e,t,n)}throw Error(O(156,t.tag))};function ly(e,t){return $m(e,t)}function bw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new bw(e,t,n,r)}function Df(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kw(e){if(typeof e=="function")return Df(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nf)return 11;if(e===rf)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ra(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Df(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case oi:return $r(n.children,i,s,t);case tf:o=8,i|=8;break;case Eu:return e=At(12,n,t,i|2),e.elementType=Eu,e.lanes=s,e;case _u:return e=At(13,n,t,i),e.elementType=_u,e.lanes=s,e;case bu:return e=At(19,n,t,i),e.elementType=bu,e.lanes=s,e;case vm:return el(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ym:o=10;break e;case gm:o=9;break e;case nf:o=11;break e;case rf:o=14;break e;case Dn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=At(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function $r(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function el(e,t,n,r){return e=At(22,e,r,t),e.elementType=vm,e.lanes=n,e.stateNode={isHidden:!1},e}function su(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function ou(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Cw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mf(e,t,n,r,i,s,o,a,l){return e=new Cw(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=At(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ef(s),e}function Tw(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:si,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function uy(e){if(!e)return fr;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(at(n))return u0(e,n,t)}return t}function cy(e,t,n,r,i,s,o,a,l){return e=Mf(n,r,!0,e,i,s,o,a,l),e.context=uy(null),n=e.current,r=Ye(),i=or(n),s=bn(r,i),s.callback=t??null,ir(n,s,i),e.current.lanes=i,so(e,i,r),lt(e,r),e}function tl(e,t,n,r){var i=t.current,s=Ye(),o=or(i);return n=uy(n),t.context===null?t.context=n:t.pendingContext=n,t=bn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ir(i,t,o),e!==null&&(Yt(e,i,o,s),Xo(e,i,o)),o}function Fa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Nh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function zf(e,t){Nh(e,t),(e=e.alternate)&&Nh(e,t)}function Ow(){return null}var fy=typeof reportError=="function"?reportError:function(e){console.error(e)};function Bf(e){this._internalRoot=e}nl.prototype.render=Bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));tl(e,t,null,null)};nl.prototype.unmount=Bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vr(function(){tl(null,e,null,null)}),t[Tn]=null}};function nl(e){this._internalRoot=e}nl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Um();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zn.length&&t!==0&&t<zn[n].priority;n++);zn.splice(n,0,e),n===0&&Hm(e)}};function Uf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function rl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ah(){}function Rw(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Fa(o);s.call(c)}}var o=cy(t,r,e,0,null,!1,!1,"",Ah);return e._reactRootContainer=o,e[Tn]=o.current,Ms(e.nodeType===8?e.parentNode:e),Vr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Fa(l);a.call(c)}}var l=Mf(e,0,!1,null,null,!1,!1,"",Ah);return e._reactRootContainer=l,e[Tn]=l.current,Ms(e.nodeType===8?e.parentNode:e),Vr(function(){tl(t,l,n,r)}),l}function il(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Fa(o);a.call(l)}}tl(t,o,e,i)}else o=Rw(n,t,e,i,r);return Fa(o)}zm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ys(t.pendingLanes);n!==0&&(af(t,n|1),lt(t,xe()),!(J&6)&&(Hi=xe()+500,mr()))}break;case 13:Vr(function(){var r=On(e,1);if(r!==null){var i=Ye();Yt(r,e,1,i)}}),zf(e,1)}};lf=function(e){if(e.tag===13){var t=On(e,134217728);if(t!==null){var n=Ye();Yt(t,e,134217728,n)}zf(e,134217728)}};Bm=function(e){if(e.tag===13){var t=or(e),n=On(e,t);if(n!==null){var r=Ye();Yt(n,e,t,r)}zf(e,t)}};Um=function(){return re};Vm=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};Fu=function(e,t,n){switch(t){case"input":if(Tu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ka(r);if(!i)throw Error(O(90));xm(r),Tu(r,i)}}}break;case"textarea":Em(e,n);break;case"select":t=n.value,t!=null&&vi(e,!!n.multiple,t,!1)}};Rm=$f;Pm=Vr;var Pw={usingClientEntryPoint:!1,Events:[ao,ci,Ka,Tm,Om,$f]},fs={findFiberByHostInstance:_r,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Nw={bundleType:fs.bundleType,version:fs.version,rendererPackageName:fs.rendererPackageName,rendererConfig:fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=jm(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||Ow,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Do=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Do.isDisabled&&Do.supportsFiber)try{Ha=Do.inject(Nw),ln=Do}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pw;St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uf(t))throw Error(O(200));return Tw(e,t,null,n)};St.createRoot=function(e,t){if(!Uf(e))throw Error(O(299));var n=!1,r="",i=fy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Mf(e,1,!1,null,null,n,!1,r,i),e[Tn]=t.current,Ms(e.nodeType===8?e.parentNode:e),new Bf(t)};St.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=jm(t),e=e===null?null:e.stateNode,e};St.flushSync=function(e){return Vr(e)};St.hydrate=function(e,t,n){if(!rl(t))throw Error(O(200));return il(null,e,t,!0,n)};St.hydrateRoot=function(e,t,n){if(!Uf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=fy;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=cy(t,null,e,1,n??null,i,!1,s,o),e[Tn]=t.current,Ms(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new nl(t)};St.render=function(e,t,n){if(!rl(t))throw Error(O(200));return il(null,e,t,!1,n)};St.unmountComponentAtNode=function(e){if(!rl(e))throw Error(O(40));return e._reactRootContainer?(Vr(function(){il(null,null,e,!1,function(){e._reactRootContainer=null,e[Tn]=null})}),!0):!1};St.unstable_batchedUpdates=$f;St.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!rl(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return il(e,t,n,!1,r)};St.version="18.3.1-next-f1338f8080-20240426";function dy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dy)}catch(e){console.error(e)}}dy(),dm.exports=St;var hy=dm.exports;const Aw=qi(hy);var py,jh=hy;py=jh.createRoot,jh.hydrateRoot;const jw="@alfatech/livechat",Fw="v2025.03.06.1",$w="module",Iw="https://api-live.alfatek.dev",Lw="wss://api-live.alfatek.dev",Dw=["dist","README.md"],Mw="dist/widget.js",zw={dev:"vite",build:"tsc -b && vite build",lint:"biome lint --write",prepare:"husky",format:"biome format --write && yarn lint"},Bw={"@tanstack/react-query":"^5.59.20",classnames:"^2.5.1",dayjs:"^1.11.13",formik:"^2.4.6",react:"^18.3.1","react-dom":"^18.3.1","react-router-dom":"^6.26.2","socket.io-client":"^4.8.1",sonner:"^2.0.1",yup:"^1.4.0",zustand:"^4.5.5"},Uw={"@biomejs/biome":"^1.8.3","@types/node":"^22.5.4","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react-swc":"^3.5.0",globals:"^15.9.0",husky:"^9.1.5",tailwindcss:"^3.4.10",typescript:"^5.5.3",vite:"^5.4.1"},my={name:jw,private:!1,version:Fw,type:$w,apiURL:Iw,wsURL:Lw,files:Dw,main:Mw,scripts:zw,dependencies:Bw,devDependencies:Uw,"lint-staged":{"./**/*.{js,ts,tsx,json}":["npm run format"]}},Vw=my.apiURL,Hw=my.wsURL,Ww=e=>[{limit:Number.parseInt(e.headers.get("X-Ratelimit-Limit")||"0"),remaining:Number.parseInt(e.headers.get("X-Ratelimit-Remaining")||"0"),reset:Number.parseInt(e.headers.get("X-Ratelimit-Reset")||"0"),retryAfter:Number.parseInt(e.headers.get("Retry-After")||"0")},429],Qw=(e,t)=>[{message:"message"in t?t.message:"Not Found"},404],qw={429:Ww,404:Qw};async function sl(e,t={}){const n={};!(t.body instanceof FormData)&&t.body&&(n["Content-Type"]="application/json");const r=await fetch(`${Vw}/${e}`,{...t,credentials:"include",headers:{...t.headers,...n}}).catch(s=>(console.log("err::",s),new Response(null,{status:500})));if(!r.ok){let s={};try{return s=await r.json(),[s,r.status]}catch{console.log("response: ",r)}const o=qw[r.status];return o?o(r,s):[{},r.status]}const i=r.headers.get("Content-Type");return i&&i.includes("application/json")?[await r.json(),r.status]:[await r.text(),r.status]}const yy=e=>[200,201,204].includes(e);var Xi=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(){}},Hr=typeof window>"u"||"Deno"in globalThis;function Ot(){}function Kw(e,t){return typeof e=="function"?e(t):e}function hc(e){return typeof e=="number"&&e>=0&&e!==1/0}function gy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bi(e,t){return typeof e=="function"?e(t):e}function Wt(e,t){return typeof e=="function"?e(t):e}function Fh(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Vf(o,t.options))return!1}else if(!Ks(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function $h(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Wr(t.options.mutationKey)!==Wr(s))return!1}else if(!Ks(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Vf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wr)(e)}function Wr(e){return JSON.stringify(e,(t,n)=>pc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ks(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ks(e[n],t[n])):!1}function vy(e,t){if(e===t)return e;const n=Ih(e)&&Ih(t);if(n||pc(e)&&pc(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{};let l=0;for(let c=0;c<o;c++){const d=n?c:s[c];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=vy(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return i===o&&l===i?e:a}return t}function $a(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ih(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pc(e){if(!Lh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Lh(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Lh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yw(e){return new Promise(t=>{setTimeout(t,e)})}function mc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vy(e,t):t}function Gw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Xw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Hf=Symbol();function wy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Tr,Un,ki,Wp,Zw=(Wp=class extends Xi{constructor(){super();U(this,Tr);U(this,Un);U(this,ki);j(this,ki,t=>{if(!Hr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,Un)||this.setEventListener(y(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Un))==null||t.call(this),j(this,Un,void 0))}setEventListener(t){var n;j(this,ki,t),(n=y(this,Un))==null||n.call(this),j(this,Un,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Tr)!==t&&(j(this,Tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Tr)=="boolean"?y(this,Tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tr=new WeakMap,Un=new WeakMap,ki=new WeakMap,Wp),Wf=new Zw,Ci,Vn,Ti,Qp,Jw=(Qp=class extends Xi{constructor(){super();U(this,Ci,!0);U(this,Vn);U(this,Ti);j(this,Ti,t=>{if(!Hr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Vn)||this.setEventListener(y(this,Ti))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Vn))==null||t.call(this),j(this,Vn,void 0))}setEventListener(t){var n;j(this,Ti,t),(n=y(this,Vn))==null||n.call(this),j(this,Vn,t(this.setOnline.bind(this)))}setOnline(t){y(this,Ci)!==t&&(j(this,Ci,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,Ci)}},Ci=new WeakMap,Vn=new WeakMap,Ti=new WeakMap,Qp),Ia=new Jw;function yc(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function ex(e){return Math.min(1e3*2**e,3e4)}function xy(e){return(e??"online")==="online"?Ia.isOnline():!0}var Sy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function au(e){return e instanceof Sy}function Ey(e){let t=!1,n=0,r=!1,i;const s=yc(),o=w=>{var x;r||(f(new Sy(w)),(x=e.abort)==null||x.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>Wf.isFocused()&&(e.networkMode==="always"||Ia.isOnline())&&e.canRun(),d=()=>xy(e.networkMode)&&e.canRun(),u=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),s.resolve(w))},f=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s.reject(w))},m=()=>new Promise(w=>{var x;i=p=>{(r||c())&&w(p)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),v=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(p){w=Promise.reject(p)}Promise.resolve(w).then(u).catch(p=>{var C;if(r)return;const h=e.retry??(Hr?0:3),g=e.retryDelay??ex,_=typeof g=="function"?g(n,p):g,T=h===!0||typeof h=="number"&&n<h||typeof h=="function"&&h(n,p);if(t||!T){f(p);return}n++,(C=e.onFail)==null||C.call(e,n,p),Yw(_).then(()=>c()?void 0:m()).then(()=>{t?f(p):v()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?v():m().then(v),s)}}function tx(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=a=>setTimeout(a,0);const s=a=>{t?e.push(a):i(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var be=tx(),Or,qp,_y=(qp=class{constructor(){U(this,Or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hc(this.gcTime)&&j(this,Or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hr?1/0:5*60*1e3))}clearGcTimeout(){y(this,Or)&&(clearTimeout(y(this,Or)),j(this,Or,void 0))}},Or=new WeakMap,qp),Oi,Ri,Tt,ze,eo,Rr,Bt,gn,Kp,nx=(Kp=class extends _y{constructor(t){super();U(this,Bt);U(this,Oi);U(this,Ri);U(this,Tt);U(this,ze);U(this,eo);U(this,Rr);j(this,Rr,!1),j(this,eo,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,Tt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,Oi,rx(this.options)),this.state=t.state??y(this,Oi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...y(this,eo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Tt).remove(this)}setData(t,n){const r=mc(this.state.data,t,this.options);return q(this,Bt,gn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){q(this,Bt,gn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,ze))==null?void 0:r.promise;return(i=y(this,ze))==null||i.cancel(t),n?n.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Oi))}isActive(){return this.observers.some(t=>Wt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!gy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,ze)&&(y(this,Rr)?y(this,ze).cancel({revert:!0}):y(this,ze).cancelRetry()),this.scheduleGc()),y(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||q(this,Bt,gn).call(this,{type:"invalidate"})}fetch(t,n){var l,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,ze))return y(this,ze).continueRetry(),y(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const u=this.observers.find(f=>f.options.queryFn);u&&this.setOptions(u.options)}const r=new AbortController,i=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(j(this,Rr,!0),r.signal)})},s=()=>{const u=wy(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),j(this,Rr,!1),this.options.persister?this.options.persister(u,f,this):u(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(l=this.options.behavior)==null||l.onFetch(o,this),j(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&q(this,Bt,gn).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const a=u=>{var f,m,v,w;au(u)&&u.silent||q(this,Bt,gn).call(this,{type:"error",error:u}),au(u)||((m=(f=y(this,Tt).config).onError)==null||m.call(f,u,this),(w=(v=y(this,Tt).config).onSettled)==null||w.call(v,this.state.data,u,this)),this.scheduleGc()};return j(this,ze,Ey({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:u=>{var f,m,v,w;if(u===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(x){a(x);return}(m=(f=y(this,Tt).config).onSuccess)==null||m.call(f,u,this),(w=(v=y(this,Tt).config).onSettled)==null||w.call(v,u,this.state.error,this),this.scheduleGc()},onError:a,onFail:(u,f)=>{q(this,Bt,gn).call(this,{type:"failed",failureCount:u,error:f})},onPause:()=>{q(this,Bt,gn).call(this,{type:"pause"})},onContinue:()=>{q(this,Bt,gn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),y(this,ze).start()}},Oi=new WeakMap,Ri=new WeakMap,Tt=new WeakMap,ze=new WeakMap,eo=new WeakMap,Rr=new WeakMap,Bt=new WeakSet,gn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...by(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return au(i)&&i.revert&&y(this,Ri)?{...y(this,Ri),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),be.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Tt).notify({query:this,type:"updated",action:t})})},Kp);function by(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function rx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nn,Yp,ix=(Yp=class extends Xi{constructor(t={}){super();U(this,nn);this.config=t,j(this,nn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Vf(i,n);let o=this.get(s);return o||(o=new nx({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,nn).has(t.queryHash)||(y(this,nn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,nn).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,nn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,nn).get(t)}getAll(){return[...y(this,nn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fh(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Fh(t,r)):n}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){be.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){be.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},nn=new WeakMap,Yp),rn,Qe,Pr,sn,Ln,Gp,sx=(Gp=class extends _y{constructor(t){super();U(this,sn);U(this,rn);U(this,Qe);U(this,Pr);this.mutationId=t.mutationId,j(this,Qe,t.mutationCache),j(this,rn,[]),this.state=t.state||ky(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,rn).includes(t)||(y(this,rn).push(t),this.clearGcTimeout(),y(this,Qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,rn,y(this,rn).filter(n=>n!==t)),this.scheduleGc(),y(this,Qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,rn).length||(this.state.status==="pending"?this.scheduleGc():y(this,Qe).remove(this))}continue(){var t;return((t=y(this,Pr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,a,l,c,d,u,f,m,v,w,x,p,h,g,_,T,C,k;j(this,Pr,Ey({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,I)=>{q(this,sn,Ln).call(this,{type:"failed",failureCount:R,error:I})},onPause:()=>{q(this,sn,Ln).call(this,{type:"pause"})},onContinue:()=>{q(this,sn,Ln).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,Qe).canRun(this)}));const n=this.state.status==="pending",r=!y(this,Pr).canStart();try{if(!n){q(this,sn,Ln).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=y(this,Qe).config).onMutate)==null?void 0:s.call(i,t,this));const I=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));I!==this.state.context&&q(this,sn,Ln).call(this,{type:"pending",context:I,variables:t,isPaused:r})}const R=await y(this,Pr).start();return await((c=(l=y(this,Qe).config).onSuccess)==null?void 0:c.call(l,R,t,this.state.context,this)),await((u=(d=this.options).onSuccess)==null?void 0:u.call(d,R,t,this.state.context)),await((m=(f=y(this,Qe).config).onSettled)==null?void 0:m.call(f,R,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,R,null,t,this.state.context)),q(this,sn,Ln).call(this,{type:"success",data:R}),R}catch(R){try{throw await((p=(x=y(this,Qe).config).onError)==null?void 0:p.call(x,R,t,this.state.context,this)),await((g=(h=this.options).onError)==null?void 0:g.call(h,R,t,this.state.context)),await((T=(_=y(this,Qe).config).onSettled)==null?void 0:T.call(_,void 0,R,this.state.variables,this.state.context,this)),await((k=(C=this.options).onSettled)==null?void 0:k.call(C,void 0,R,t,this.state.context)),R}finally{q(this,sn,Ln).call(this,{type:"error",error:R})}}finally{y(this,Qe).runNext(this)}}},rn=new WeakMap,Qe=new WeakMap,Pr=new WeakMap,sn=new WeakSet,Ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),be.batch(()=>{y(this,rn).forEach(r=>{r.onMutationUpdate(t)}),y(this,Qe).notify({mutation:this,type:"updated",action:t})})},Gp);function ky(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pt,to,Xp,ox=(Xp=class extends Xi{constructor(t={}){super();U(this,pt);U(this,to);this.config=t,j(this,pt,new Map),j(this,to,Date.now())}build(t,n,r){const i=new sx({mutationCache:this,mutationId:++So(this,to)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Mo(t),r=y(this,pt).get(n)??[];r.push(t),y(this,pt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Mo(t);if(y(this,pt).has(n)){const i=(r=y(this,pt).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?y(this,pt).delete(n):y(this,pt).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=y(this,pt).get(Mo(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=y(this,pt).get(Mo(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...y(this,pt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$h(n,r))}findAll(t={}){return this.getAll().filter(n=>$h(t,n))}notify(t){be.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return be.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ot))))}},pt=new WeakMap,to=new WeakMap,Xp);function Mo(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Dh(e){return{onFetch:(t,n)=>{var d,u,f,m,v;const r=t.options,i=(f=(u=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:u.fetchMore)==null?void 0:f.direction,s=((m=t.state.data)==null?void 0:m.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let w=!1;const x=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},p=wy(t.options,t.fetchOptions),h=async(g,_,T)=>{if(w)return Promise.reject();if(_==null&&g.pages.length)return Promise.resolve(g);const C={queryKey:t.queryKey,pageParam:_,direction:T?"backward":"forward",meta:t.options.meta};x(C);const k=await p(C),{maxPages:R}=t.options,I=T?Xw:Gw;return{pages:I(g.pages,k,R),pageParams:I(g.pageParams,_,R)}};if(i&&s.length){const g=i==="backward",_=g?ax:Mh,T={pages:s,pageParams:o},C=_(r,T);a=await h(T,C,g)}else{const g=e??s.length;do{const _=l===0?o[0]??r.initialPageParam:Mh(r,a);if(l>0&&_==null)break;a=await h(a,_),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>{var w,x;return(x=(w=t.options).persister)==null?void 0:x.call(w,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Mh(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ax(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ge,Hn,Wn,Pi,Ni,Qn,Ai,ji,Zp,lx=(Zp=class{constructor(e={}){U(this,ge);U(this,Hn);U(this,Wn);U(this,Pi);U(this,Ni);U(this,Qn);U(this,Ai);U(this,ji);j(this,ge,e.queryCache||new ix),j(this,Hn,e.mutationCache||new ox),j(this,Wn,e.defaultOptions||{}),j(this,Pi,new Map),j(this,Ni,new Map),j(this,Qn,0)}mount(){So(this,Qn)._++,y(this,Qn)===1&&(j(this,Ai,Wf.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ge).onFocus())})),j(this,ji,Ia.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ge).onOnline())})))}unmount(){var e,t;So(this,Qn)._--,y(this,Qn)===0&&((e=y(this,Ai))==null||e.call(this),j(this,Ai,void 0),(t=y(this,ji))==null||t.call(this),j(this,ji,void 0))}isFetching(e){return y(this,ge).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Hn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ge).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=y(this,ge).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(bi(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return y(this,ge).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,ge).get(r.queryHash),s=i==null?void 0:i.state.data,o=Kw(t,s);if(o!==void 0)return y(this,ge).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return be.batch(()=>y(this,ge).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ge).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ge);be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ge),r={type:"active",...e};return be.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=be.batch(()=>y(this,ge).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ot).catch(Ot)}invalidateQueries(e,t={}){return be.batch(()=>{if(y(this,ge).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=be.batch(()=>y(this,ge).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ot)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ot)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ge).build(this,t);return n.isStaleByTime(bi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ot).catch(Ot)}fetchInfiniteQuery(e){return e.behavior=Dh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ot).catch(Ot)}ensureInfiniteQueryData(e){return e.behavior=Dh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ia.isOnline()?y(this,Hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ge)}getMutationCache(){return y(this,Hn)}getDefaultOptions(){return y(this,Wn)}setDefaultOptions(e){j(this,Wn,e)}setQueryDefaults(e,t){y(this,Pi).set(Wr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Pi).values()],n={};return t.forEach(r=>{Ks(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,Ni).set(Wr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,Ni).values()];let n={};return t.forEach(r=>{Ks(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Wn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Hf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Wn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ge).clear(),y(this,Hn).clear()}},ge=new WeakMap,Hn=new WeakMap,Wn=new WeakMap,Pi=new WeakMap,Ni=new WeakMap,Qn=new WeakMap,Ai=new WeakMap,ji=new WeakMap,Zp),et,G,no,qe,Nr,Fi,qn,on,ro,$i,Ii,Ar,jr,Kn,Li,ne,vs,gc,vc,wc,xc,Sc,Ec,_c,Cy,Jp,ux=(Jp=class extends Xi{constructor(t,n){super();U(this,ne);U(this,et);U(this,G);U(this,no);U(this,qe);U(this,Nr);U(this,Fi);U(this,qn);U(this,on);U(this,ro);U(this,$i);U(this,Ii);U(this,Ar);U(this,jr);U(this,Kn);U(this,Li,new Set);this.options=n,j(this,et,t),j(this,on,null),j(this,qn,yc()),this.options.experimental_prefetchInRender||y(this,qn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,G).addObserver(this),zh(y(this,G),this.options)?q(this,ne,vs).call(this):this.updateResult(),q(this,ne,xc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return bc(y(this,G),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return bc(y(this,G),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,q(this,ne,Sc).call(this),q(this,ne,Ec).call(this),y(this,G).removeObserver(this)}setOptions(t,n){const r=this.options,i=y(this,G);if(this.options=y(this,et).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wt(this.options.enabled,y(this,G))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");q(this,ne,_c).call(this),y(this,G).setOptions(this.options),r._defaulted&&!$a(this.options,r)&&y(this,et).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,G),observer:this});const s=this.hasListeners();s&&Bh(y(this,G),i,this.options,r)&&q(this,ne,vs).call(this),this.updateResult(n),s&&(y(this,G)!==i||Wt(this.options.enabled,y(this,G))!==Wt(r.enabled,y(this,G))||bi(this.options.staleTime,y(this,G))!==bi(r.staleTime,y(this,G)))&&q(this,ne,gc).call(this);const o=q(this,ne,vc).call(this);s&&(y(this,G)!==i||Wt(this.options.enabled,y(this,G))!==Wt(r.enabled,y(this,G))||o!==y(this,Kn))&&q(this,ne,wc).call(this,o)}getOptimisticResult(t){const n=y(this,et).getQueryCache().build(y(this,et),t),r=this.createResult(n,t);return fx(this,r)&&(j(this,qe,r),j(this,Fi,this.options),j(this,Nr,y(this,G).state)),r}getCurrentResult(){return y(this,qe)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){y(this,Li).add(t)}getCurrentQuery(){return y(this,G)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,et).defaultQueryOptions(t),r=y(this,et).getQueryCache().build(y(this,et),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return q(this,ne,vs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,qe)))}createResult(t,n){var R;const r=y(this,G),i=this.options,s=y(this,qe),o=y(this,Nr),a=y(this,Fi),c=t!==r?t.state:y(this,no),{state:d}=t;let u={...d},f=!1,m;if(n._optimisticResults){const I=this.hasListeners(),D=!I&&zh(t,n),B=I&&Bh(t,r,n,i);(D||B)&&(u={...u,...by(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:v,errorUpdatedAt:w,status:x}=u;if(n.select&&u.data!==void 0)if(s&&u.data===(o==null?void 0:o.data)&&n.select===y(this,ro))m=y(this,$i);else try{j(this,ro,n.select),m=n.select(u.data),m=mc(s==null?void 0:s.data,m,n),j(this,$i,m),j(this,on,null)}catch(I){j(this,on,I)}else m=u.data;if(n.placeholderData!==void 0&&m===void 0&&x==="pending"){let I;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))I=s.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData((R=y(this,Ii))==null?void 0:R.state.data,y(this,Ii)):n.placeholderData,n.select&&I!==void 0)try{I=n.select(I),j(this,on,null)}catch(D){j(this,on,D)}I!==void 0&&(x="success",m=mc(s==null?void 0:s.data,I,n),f=!0)}y(this,on)&&(v=y(this,on),m=y(this,$i),w=Date.now(),x="error");const p=u.fetchStatus==="fetching",h=x==="pending",g=x==="error",_=h&&p,T=m!==void 0,k={status:x,fetchStatus:u.fetchStatus,isPending:h,isSuccess:x==="success",isError:g,isInitialLoading:_,isLoading:_,data:m,dataUpdatedAt:u.dataUpdatedAt,error:v,errorUpdatedAt:w,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:p,isRefetching:p&&!h,isLoadingError:g&&!T,isPaused:u.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:g&&T,isStale:Qf(t,n),refetch:this.refetch,promise:y(this,qn)};if(this.options.experimental_prefetchInRender){const I=se=>{k.status==="error"?se.reject(k.error):k.data!==void 0&&se.resolve(k.data)},D=()=>{const se=j(this,qn,k.promise=yc());I(se)},B=y(this,qn);switch(B.status){case"pending":t.queryHash===r.queryHash&&I(B);break;case"fulfilled":(k.status==="error"||k.data!==B.value)&&D();break;case"rejected":(k.status!=="error"||k.error!==B.reason)&&D();break}}return k}updateResult(t){const n=y(this,qe),r=this.createResult(y(this,G),this.options);if(j(this,Nr,y(this,G).state),j(this,Fi,this.options),y(this,Nr).data!==void 0&&j(this,Ii,y(this,G)),$a(r,n))return;j(this,qe,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!y(this,Li).size)return!0;const l=new Set(a??y(this,Li));return this.options.throwOnError&&l.add("error"),Object.keys(y(this,qe)).some(c=>{const d=c;return y(this,qe)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),q(this,ne,Cy).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&q(this,ne,xc).call(this)}},et=new WeakMap,G=new WeakMap,no=new WeakMap,qe=new WeakMap,Nr=new WeakMap,Fi=new WeakMap,qn=new WeakMap,on=new WeakMap,ro=new WeakMap,$i=new WeakMap,Ii=new WeakMap,Ar=new WeakMap,jr=new WeakMap,Kn=new WeakMap,Li=new WeakMap,ne=new WeakSet,vs=function(t){q(this,ne,_c).call(this);let n=y(this,G).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ot)),n},gc=function(){q(this,ne,Sc).call(this);const t=bi(this.options.staleTime,y(this,G));if(Hr||y(this,qe).isStale||!hc(t))return;const r=gy(y(this,qe).dataUpdatedAt,t)+1;j(this,Ar,setTimeout(()=>{y(this,qe).isStale||this.updateResult()},r))},vc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,G)):this.options.refetchInterval)??!1},wc=function(t){q(this,ne,Ec).call(this),j(this,Kn,t),!(Hr||Wt(this.options.enabled,y(this,G))===!1||!hc(y(this,Kn))||y(this,Kn)===0)&&j(this,jr,setInterval(()=>{(this.options.refetchIntervalInBackground||Wf.isFocused())&&q(this,ne,vs).call(this)},y(this,Kn)))},xc=function(){q(this,ne,gc).call(this),q(this,ne,wc).call(this,q(this,ne,vc).call(this))},Sc=function(){y(this,Ar)&&(clearTimeout(y(this,Ar)),j(this,Ar,void 0))},Ec=function(){y(this,jr)&&(clearInterval(y(this,jr)),j(this,jr,void 0))},_c=function(){const t=y(this,et).getQueryCache().build(y(this,et),this.options);if(t===y(this,G))return;const n=y(this,G);j(this,G,t),j(this,no,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Cy=function(t){be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,qe))}),y(this,et).getQueryCache().notify({query:y(this,G),type:"observerResultsUpdated"})})},Jp);function cx(e,t){return Wt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function zh(e,t){return cx(e,t)||e.state.data!==void 0&&bc(e,t,t.refetchOnMount)}function bc(e,t,n){if(Wt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qf(e,t)}return!1}function Bh(e,t,n,r){return(e!==t||Wt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Qf(e,n)}function Qf(e,t){return Wt(t.enabled,e)!==!1&&e.isStaleByTime(bi(t.staleTime,e))}function fx(e,t){return!$a(e.getCurrentResult(),t)}var Yn,Gn,tt,Sn,kn,ia,kc,em,dx=(em=class extends Xi{constructor(t,n){super();U(this,kn);U(this,Yn);U(this,Gn);U(this,tt);U(this,Sn);j(this,Yn,t),this.setOptions(n),this.bindMethods(),q(this,kn,ia).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,Yn).defaultMutationOptions(t),$a(this.options,n)||y(this,Yn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,tt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Wr(n.mutationKey)!==Wr(this.options.mutationKey)?this.reset():((r=y(this,tt))==null?void 0:r.state.status)==="pending"&&y(this,tt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,tt))==null||t.removeObserver(this)}onMutationUpdate(t){q(this,kn,ia).call(this),q(this,kn,kc).call(this,t)}getCurrentResult(){return y(this,Gn)}reset(){var t;(t=y(this,tt))==null||t.removeObserver(this),j(this,tt,void 0),q(this,kn,ia).call(this),q(this,kn,kc).call(this)}mutate(t,n){var r;return j(this,Sn,n),(r=y(this,tt))==null||r.removeObserver(this),j(this,tt,y(this,Yn).getMutationCache().build(y(this,Yn),this.options)),y(this,tt).addObserver(this),y(this,tt).execute(t)}},Yn=new WeakMap,Gn=new WeakMap,tt=new WeakMap,Sn=new WeakMap,kn=new WeakSet,ia=function(){var n;const t=((n=y(this,tt))==null?void 0:n.state)??ky();j(this,Gn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},kc=function(t){be.batch(()=>{var n,r,i,s,o,a,l,c;if(y(this,Sn)&&this.hasListeners()){const d=y(this,Gn).variables,u=y(this,Gn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,Sn)).onSuccess)==null||r.call(n,t.data,d,u),(s=(i=y(this,Sn)).onSettled)==null||s.call(i,t.data,null,d,u)):(t==null?void 0:t.type)==="error"&&((a=(o=y(this,Sn)).onError)==null||a.call(o,t.error,d,u),(c=(l=y(this,Sn)).onSettled)==null||c.call(l,void 0,t.error,d,u))}this.listeners.forEach(d=>{d(y(this,Gn))})})},em),Ty=S.createContext(void 0),Oy=e=>{const t=S.useContext(Ty);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},hx=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),b.jsx(Ty.Provider,{value:e,children:t})),Ry=S.createContext(!1),px=()=>S.useContext(Ry);Ry.Provider;function mx(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var yx=S.createContext(mx()),gx=()=>S.useContext(yx);function Py(e,t){return typeof e=="function"?e(...t):!!e}function Cc(){}var vx=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},wx=e=>{S.useEffect(()=>{e.clearReset()},[e])},xx=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Py(n,[e.error,r]),Sx=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Ex=(e,t)=>e.isLoading&&e.isFetching&&!t,_x=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Uh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function bx(e,t,n){var d,u,f,m,v;const r=Oy(),i=px(),s=gx(),o=r.defaultQueryOptions(e);(u=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||u.call(d,o),o._optimisticResults=i?"isRestoring":"optimistic",Sx(o),vx(o,s),wx(s);const a=!r.getQueryCache().get(o.queryHash),[l]=S.useState(()=>new t(r,o)),c=l.getOptimisticResult(o);if(S.useSyncExternalStore(S.useCallback(w=>{const x=i?Cc:l.subscribe(be.batchCalls(w));return l.updateResult(),x},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),S.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),_x(o,c))throw Uh(o,l,s);if(xx({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw c.error;if((m=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||m.call(f,o,c),o.experimental_prefetchInRender&&!Hr&&Ex(c,i)){const w=a?Uh(o,l,s):(v=r.getQueryCache().get(o.queryHash))==null?void 0:v.promise;w==null||w.catch(Cc).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?c:l.trackResult(c)}function kx(e,t){return bx(e,ux)}function Cx(e,t){const n=Oy(),[r]=S.useState(()=>new dx(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const i=S.useSyncExternalStore(S.useCallback(o=>r.subscribe(be.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((o,a)=>{r.mutate(o,a).catch(Cc)},[r]);if(i.error&&Py(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const Tx=e=>kx({queryKey:["widgets",e],queryFn:()=>Ox(e)}),Ox=e=>sl(`widgets/with-link/${e}`);function Rx(e){return!!e&&typeof e.public_id=="string"&&typeof e.link_id=="string"&&typeof e.name=="string"&&typeof e.is_browser_notification_enabled=="boolean"&&typeof e.is_hidden_on_offline=="boolean"&&typeof e.is_upload_disabled=="boolean"}/**
40
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function iu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ec(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aw=typeof WeakMap=="function"?WeakMap:Map;function M0(e,t,n){n=_n(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Al||(Al=!0,cc=r),ec(e,t)},n}function z0(e,t,n){n=_n(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ec(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ec(e,t),typeof r!="function"&&(sr===null?sr=new Set([this]):sr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function gh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new aw;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=bw.bind(null,e,t,n),t.then(e,e))}function yh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function vh(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=_n(-1,1),t.tag=2,ir(n,t,1))),n.lanes|=1),e)}var uw=Nn.ReactCurrentOwner,ot=!1;function Ye(e,t,n,r){t.child=e===null?m0(t,null,n,r):Bi(t,e.child,n,r)}function wh(e,t,n,r,i){n=n.render;var s=t.ref;return bi(t,i),r=Of(e,t,n,r,s,i),n=Rf(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rn(e,t,i)):(he&&n&&gf(t),t.flags|=1,Ye(e,t,r,i),t.child)}function xh(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Mf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,B0(e,t,s,r,i)):(e=rl(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Ds,n(o,r)&&e.ref===t.ref)return Rn(e,t,i)}return t.flags|=1,e=lr(s,r),e.ref=t.ref,e.return=t,t.child=e}function B0(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Ds(s,r)&&e.ref===t.ref)if(ot=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(ot=!0);else return t.lanes=e.lanes,Rn(e,t,i)}return tc(e,t,n,r,i)}function U0(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(gi,mt),mt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ae(gi,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ae(gi,mt),mt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ae(gi,mt),mt|=r;return Ye(e,t,i,n),t.child}function V0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function tc(e,t,n,r,i){var s=at(n)?Mr:Ue.current;return s=Mi(t,s),bi(t,i),n=Of(e,t,n,r,s,i),r=Rf(),e!==null&&!ot?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Rn(e,t,i)):(he&&r&&gf(t),t.flags|=1,Ye(e,t,n,i),t.child)}function Sh(e,t,n,r,i){if(at(n)){var s=!0;bl(t)}else s=!1;if(bi(t,i),t.stateNode===null)el(e,t),D0(t,n,r),Ju(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,c=n.contextType;typeof c=="object"&&c!==null?c=Ft(c):(c=at(n)?Mr:Ue.current,c=Mi(t,c));var d=n.getDerivedStateFromProps,u=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==c)&&mh(t,o,r,c),Mn=!1;var f=t.memoizedState;o.state=f,Tl(t,r,o,i),a=t.memoizedState,l!==r||f!==a||lt.current||Mn?(typeof d=="function"&&(Zu(t,n,d,r),a=t.memoizedState),(l=Mn||ph(t,n,l,r,f,a,c))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=c,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,y0(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:zt(t.type,l),o.props=c,u=t.pendingProps,f=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ft(a):(a=at(n)?Mr:Ue.current,a=Mi(t,a));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==u||f!==a)&&mh(t,o,r,a),Mn=!1,f=t.memoizedState,o.state=f,Tl(t,r,o,i);var v=t.memoizedState;l!==u||f!==v||lt.current||Mn?(typeof g=="function"&&(Zu(t,n,g,r),v=t.memoizedState),(c=Mn||ph(t,n,c,r,f,v,a)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return nc(e,t,n,r,s,i)}function nc(e,t,n,r,i,s){V0(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&oh(t,n,!1),Rn(e,t,s);r=t.stateNode,uw.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Bi(t,e.child,null,s),t.child=Bi(t,null,l,s)):Ye(e,t,l,s),t.memoizedState=r.state,i&&oh(t,n,!0),t.child}function H0(e){var t=e.stateNode;t.pendingContext?sh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&sh(e,t.context,!1),_f(e,t.containerInfo)}function bh(e,t,n,r,i){return zi(),vf(i),t.flags|=256,Ye(e,t,n,r),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0};function ic(e){return{baseLanes:e,cachePool:null,transitions:null}}function W0(e,t,n){var r=t.pendingProps,i=pe.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ae(pe,i&1),e===null)return Gu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=ta(o,r,0,null),e=$r(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ic(n),t.memoizedState=rc,e):Af(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return cw(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=lr(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=lr(l,s):(s=$r(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?ic(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=rc,r}return s=e.child,e=s.sibling,r=lr(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Af(e,t){return t=ta({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $o(e,t,n,r){return r!==null&&vf(r),Bi(t,e.child,null,n),e=Af(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function cw(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=iu(Error(O(422))),$o(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ta({mode:"visible",children:r.children},i,0,null),s=$r(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Bi(t,e.child,null,o),t.child.memoizedState=ic(o),t.memoizedState=rc,s);if(!(t.mode&1))return $o(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(O(419)),r=iu(s,r,void 0),$o(e,t,o,r)}if(l=(o&e.childLanes)!==0,ot||l){if(r=Ne,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,On(e,i),Yt(r,e,i,-1))}return Df(),r=iu(Error(O(421))),$o(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Ew.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,gt=rr(i.nextSibling),wt=t,he=!0,Ht=null,e!==null&&(Rt[Nt++]=bn,Rt[Nt++]=En,Rt[Nt++]=zr,bn=e.id,En=e.overflow,zr=t),t=Af(t,r.children),t.flags|=4096,t)}function Eh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xu(e.return,t,n)}function su(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Q0(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ye(e,t,r.children,n),r=pe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Eh(e,n,t);else if(e.tag===19)Eh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ae(pe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ol(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),su(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ol(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}su(t,!0,n,null,s);break;case"together":su(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function el(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ur|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=lr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=lr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fw(e,t,n){switch(t.tag){case 3:H0(t),zi();break;case 5:v0(t);break;case 1:at(t.type)&&bl(t);break;case 4:_f(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ae(kl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ae(pe,pe.current&1),t.flags|=128,null):n&t.child.childLanes?W0(e,t,n):(ae(pe,pe.current&1),e=Rn(e,t,n),e!==null?e.sibling:null);ae(pe,pe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Q0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(pe,pe.current),r)break;return null;case 22:case 23:return t.lanes=0,U0(e,t,n)}return Rn(e,t,n)}var q0,sc,K0,Y0;q0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};sc=function(){};K0=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,kr(un.current);var s=null;switch(n){case"input":i=Tu(e,i),r=Tu(e,r),s=[];break;case"select":i=ge({},i,{value:void 0}),r=ge({},r,{value:void 0}),s=[];break;case"textarea":i=Nu(e,i),r=Nu(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=xl)}Au(n,r);var o;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ps.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var a=r[c];if(l=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&a!==l&&(a!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ps.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&ue("scroll",e),s||l===a||(s=[])):(s=s||[]).push(c,a))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Y0=function(e,t,n,r){n!==r&&(t.flags|=4)};function cs(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dw(e,t,n){var r=t.pendingProps;switch(yf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return at(t.type)&&Sl(),Me(t),null;case 3:return r=t.stateNode,Ui(),fe(lt),fe(Ue),Cf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(jo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ht!==null&&(hc(Ht),Ht=null))),sc(e,t),Me(t),null;case 5:kf(t);var i=kr(Vs.current);if(n=t.type,e!==null&&t.stateNode!=null)K0(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return Me(t),null}if(e=kr(un.current),jo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[ln]=t,r[Bs]=s,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(i=0;i<ys.length;i++)ue(ys[i],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":Ad(r,s),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ue("invalid",r);break;case"textarea":Fd(r,s),ue("invalid",r)}Au(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Ao(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Ao(r.textContent,l,e),i=["children",""+l]):Ps.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&ue("scroll",r)}switch(n){case"input":_o(r),jd(r,s,!0);break;case"textarea":_o(r),$d(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=xl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Em(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ln]=t,e[Bs]=r,q0(e,t,!1,!1),t.stateNode=e;e:{switch(o=ju(n,r),n){case"dialog":ue("cancel",e),ue("close",e),i=r;break;case"iframe":case"object":case"embed":ue("load",e),i=r;break;case"video":case"audio":for(i=0;i<ys.length;i++)ue(ys[i],e);i=r;break;case"source":ue("error",e),i=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),i=r;break;case"details":ue("toggle",e),i=r;break;case"input":Ad(e,r),i=Tu(e,r),ue("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ge({},r,{value:void 0}),ue("invalid",e);break;case"textarea":Fd(e,r),i=Nu(e,r),ue("invalid",e);break;default:i=r}Au(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Cm(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&_m(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&As(e,a):typeof a=="number"&&As(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ps.hasOwnProperty(s)?a!=null&&s==="onScroll"&&ue("scroll",e):a!=null&&tf(e,s,a,o))}switch(n){case"input":_o(e),jd(e,r,!1);break;case"textarea":_o(e),$d(e);break;case"option":r.value!=null&&e.setAttribute("value",""+cr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?vi(e,!!r.multiple,s,!1):r.defaultValue!=null&&vi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=xl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Me(t),null;case 6:if(e&&t.stateNode!=null)Y0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(O(166));if(n=kr(Vs.current),kr(un.current),jo(t)){if(r=t.stateNode,n=t.memoizedProps,r[ln]=t,(s=r.nodeValue!==n)&&(e=wt,e!==null))switch(e.tag){case 3:Ao(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ao(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ln]=t,t.stateNode=r}return Me(t),null;case 13:if(fe(pe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(he&&gt!==null&&t.mode&1&&!(t.flags&128))h0(),zi(),t.flags|=98560,s=!1;else if(s=jo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(O(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(O(317));s[ln]=t}else zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Me(t),s=!1}else Ht!==null&&(hc(Ht),Ht=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||pe.current&1?ke===0&&(ke=3):Df())),t.updateQueue!==null&&(t.flags|=4),Me(t),null);case 4:return Ui(),sc(e,t),e===null&&Ms(t.stateNode.containerInfo),Me(t),null;case 10:return Sf(t.type._context),Me(t),null;case 17:return at(t.type)&&Sl(),Me(t),null;case 19:if(fe(pe),s=t.memoizedState,s===null)return Me(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)cs(s,!1);else{if(ke!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ol(e),o!==null){for(t.flags|=128,cs(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ae(pe,pe.current&1|2),t.child}e=e.sibling}s.tail!==null&&xe()>Hi&&(t.flags|=128,r=!0,cs(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ol(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!he)return Me(t),null}else 2*xe()-s.renderingStartTime>Hi&&n!==1073741824&&(t.flags|=128,r=!0,cs(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xe(),t.sibling=null,n=pe.current,ae(pe,r?n&1|2:n&1),t):(Me(t),null);case 22:case 23:return Lf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mt&1073741824&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function hw(e,t){switch(yf(t),t.tag){case 1:return at(t.type)&&Sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(),fe(lt),fe(Ue),Cf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return kf(t),null;case 13:if(fe(pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(pe),null;case 4:return Ui(),null;case 10:return Sf(t.type._context),null;case 22:case 23:return Lf(),null;case 24:return null;default:return null}}var Io=!1,Be=!1,pw=typeof WeakSet=="function"?WeakSet:Set,F=null;function mi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(e,t,r)}else n.current=null}function oc(e,t,n){try{n()}catch(r){ve(e,t,r)}}var _h=!1;function mw(e,t){if(Vu=yl,e=e0(),mf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var g;u!==n||i!==0&&u.nodeType!==3||(l=o+i),u!==s||r!==0&&u.nodeType!==3||(a=o+r),u.nodeType===3&&(o+=u.nodeValue.length),(g=u.firstChild)!==null;)f=u,u=g;for(;;){if(u===e)break t;if(f===n&&++c===i&&(l=o),f===s&&++d===r&&(a=o),(g=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hu={focusedElem:e,selectionRange:n},yl=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,x=v.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:zt(t.type,w),x);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(_){ve(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return v=_h,_h=!1,v}function Cs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&oc(t,n,s)}i=i.next}while(i!==r)}}function Jl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function lc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function G0(e){var t=e.alternate;t!==null&&(e.alternate=null,G0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ln],delete t[Bs],delete t[qu],delete t[X1],delete t[Z1])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function X0(e){return e.tag===5||e.tag===3||e.tag===4}function kh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||X0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=xl));else if(r!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function uc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(uc(e,t,n),e=e.sibling;e!==null;)uc(e,t,n),e=e.sibling}var Fe=null,Ut=!1;function In(e,t,n){for(n=n.child;n!==null;)Z0(e,t,n),n=n.sibling}function Z0(e,t,n){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Wl,n)}catch{}switch(n.tag){case 5:Be||mi(n,t);case 6:var r=Fe,i=Ut;Fe=null,In(e,t,n),Fe=r,Ut=i,Fe!==null&&(Ut?(e=Fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fe.removeChild(n.stateNode));break;case 18:Fe!==null&&(Ut?(e=Fe,n=n.stateNode,e.nodeType===8?Za(e.parentNode,n):e.nodeType===1&&Za(e,n),Is(e)):Za(Fe,n.stateNode));break;case 4:r=Fe,i=Ut,Fe=n.stateNode.containerInfo,Ut=!0,In(e,t,n),Fe=r,Ut=i;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&oc(n,t,o),i=i.next}while(i!==r)}In(e,t,n);break;case 1:if(!Be&&(mi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ve(n,t,l)}In(e,t,n);break;case 21:In(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,In(e,t,n),Be=r):In(e,t,n);break;default:In(e,t,n)}}function Ch(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pw),t.forEach(function(r){var i=_w.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Fe=l.stateNode,Ut=!1;break e;case 3:Fe=l.stateNode.containerInfo,Ut=!0;break e;case 4:Fe=l.stateNode.containerInfo,Ut=!0;break e}l=l.return}if(Fe===null)throw Error(O(160));Z0(s,o,i),Fe=null,Ut=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(c){ve(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)J0(t,e),t=t.sibling}function J0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dt(t,e),Zt(e),r&4){try{Cs(3,e,e.return),Jl(3,e)}catch(w){ve(e,e.return,w)}try{Cs(5,e,e.return)}catch(w){ve(e,e.return,w)}}break;case 1:Dt(t,e),Zt(e),r&512&&n!==null&&mi(n,n.return);break;case 5:if(Dt(t,e),Zt(e),r&512&&n!==null&&mi(n,n.return),e.flags&32){var i=e.stateNode;try{As(i,"")}catch(w){ve(e,e.return,w)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Sm(i,s),ju(l,o);var c=ju(l,s);for(o=0;o<a.length;o+=2){var d=a[o],u=a[o+1];d==="style"?Cm(i,u):d==="dangerouslySetInnerHTML"?_m(i,u):d==="children"?As(i,u):tf(i,d,u,c)}switch(l){case"input":Ou(i,s);break;case"textarea":bm(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?vi(i,!!s.multiple,g,!1):f!==!!s.multiple&&(s.defaultValue!=null?vi(i,!!s.multiple,s.defaultValue,!0):vi(i,!!s.multiple,s.multiple?[]:"",!1))}i[Bs]=s}catch(w){ve(e,e.return,w)}}break;case 6:if(Dt(t,e),Zt(e),r&4){if(e.stateNode===null)throw Error(O(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(w){ve(e,e.return,w)}}break;case 3:if(Dt(t,e),Zt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Is(t.containerInfo)}catch(w){ve(e,e.return,w)}break;case 4:Dt(t,e),Zt(e);break;case 13:Dt(t,e),Zt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||($f=xe())),r&4&&Ch(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Be=(c=Be)||d,Dt(t,e),Be=c):Dt(t,e),Zt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(F=e,d=e.child;d!==null;){for(u=F=d;F!==null;){switch(f=F,g=f.child,f.tag){case 0:case 11:case 14:case 15:Cs(4,f,f.return);break;case 1:mi(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){ve(r,n,w)}}break;case 5:mi(f,f.return);break;case 22:if(f.memoizedState!==null){Oh(u);continue}}g!==null?(g.return=f,F=g):Oh(u)}d=d.sibling}e:for(d=null,u=e;;){if(u.tag===5){if(d===null){d=u;try{i=u.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=u.stateNode,a=u.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=km("display",o))}catch(w){ve(e,e.return,w)}}}else if(u.tag===6){if(d===null)try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(w){ve(e,e.return,w)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:Dt(t,e),Zt(e),r&4&&Ch(e);break;case 21:break;default:Dt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(X0(n)){var r=n;break e}n=n.return}throw Error(O(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(As(i,""),r.flags&=-33);var s=kh(e);uc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=kh(e);ac(e,l,o);break;default:throw Error(O(161))}}catch(a){ve(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gw(e,t,n){F=e,eg(e)}function eg(e,t,n){for(var r=(e.mode&1)!==0;F!==null;){var i=F,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Io;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Be;l=Io;var c=Be;if(Io=o,(Be=a)&&!c)for(F=i;F!==null;)o=F,a=o.child,o.tag===22&&o.memoizedState!==null?Rh(i):a!==null?(a.return=o,F=a):Rh(i);for(;s!==null;)F=s,eg(s),s=s.sibling;F=i,Io=l,Be=c}Th(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,F=s):Th(e)}}function Th(e){for(;F!==null;){var t=F;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Be||Jl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Be)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:zt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&fh(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fh(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var u=d.dehydrated;u!==null&&Is(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(O(163))}Be||t.flags&512&&lc(t)}catch(f){ve(t,t.return,f)}}if(t===e){F=null;break}if(n=t.sibling,n!==null){n.return=t.return,F=n;break}F=t.return}}function Oh(e){for(;F!==null;){var t=F;if(t===e){F=null;break}var n=t.sibling;if(n!==null){n.return=t.return,F=n;break}F=t.return}}function Rh(e){for(;F!==null;){var t=F;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Jl(4,t)}catch(a){ve(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ve(t,i,a)}}var s=t.return;try{lc(t)}catch(a){ve(t,s,a)}break;case 5:var o=t.return;try{lc(t)}catch(a){ve(t,o,a)}}}catch(a){ve(t,t.return,a)}if(t===e){F=null;break}var l=t.sibling;if(l!==null){l.return=t.return,F=l;break}F=t.return}}var yw=Math.ceil,Pl=Nn.ReactCurrentDispatcher,jf=Nn.ReactCurrentOwner,jt=Nn.ReactCurrentBatchConfig,J=0,Ne=null,Se=null,$e=0,mt=0,gi=pr(0),ke=0,qs=null,Ur=0,ea=0,Ff=0,Ts=null,it=null,$f=0,Hi=1/0,vn=null,Al=!1,cc=null,sr=null,Lo=!1,Zn=null,jl=0,Os=0,fc=null,tl=-1,nl=0;function Ge(){return J&6?xe():tl!==-1?tl:tl=xe()}function or(e){return e.mode&1?J&2&&$e!==0?$e&-$e:ew.transition!==null?(nl===0&&(nl=Dm()),nl):(e=re,e!==0||(e=window.event,e=e===void 0?16:Wm(e.type)),e):1}function Yt(e,t,n,r){if(50<Os)throw Os=0,fc=null,Error(O(185));so(e,n,r),(!(J&2)||e!==Ne)&&(e===Ne&&(!(J&2)&&(ea|=n),ke===4&&Bn(e,$e)),ut(e,r),n===1&&J===0&&!(t.mode&1)&&(Hi=xe()+500,Gl&&mr()))}function ut(e,t){var n=e.callbackNode;e1(e,t);var r=gl(e,e===Ne?$e:0);if(r===0)n!==null&&Dd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Dd(n),t===1)e.tag===0?J1(Nh.bind(null,e)):c0(Nh.bind(null,e)),Y1(function(){!(J&6)&&mr()}),n=null;else{switch(Mm(r)){case 1:n=lf;break;case 4:n=Im;break;case 16:n=ml;break;case 536870912:n=Lm;break;default:n=ml}n=ag(n,tg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tg(e,t){if(tl=-1,nl=0,J&6)throw Error(O(327));var n=e.callbackNode;if(Ei()&&e.callbackNode!==n)return null;var r=gl(e,e===Ne?$e:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Fl(e,r);else{t=r;var i=J;J|=2;var s=rg();(Ne!==e||$e!==t)&&(vn=null,Hi=xe()+500,Fr(e,t));do try{xw();break}catch(l){ng(e,l)}while(!0);xf(),Pl.current=s,J=i,Se!==null?t=0:(Ne=null,$e=0,t=ke)}if(t!==0){if(t===2&&(i=Du(e),i!==0&&(r=i,t=dc(e,i))),t===1)throw n=qs,Fr(e,0),Bn(e,r),ut(e,xe()),n;if(t===6)Bn(e,r);else{if(i=e.current.alternate,!(r&30)&&!vw(i)&&(t=Fl(e,r),t===2&&(s=Du(e),s!==0&&(r=s,t=dc(e,s))),t===1))throw n=qs,Fr(e,0),Bn(e,r),ut(e,xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(O(345));case 2:Sr(e,it,vn);break;case 3:if(Bn(e,r),(r&130023424)===r&&(t=$f+500-xe(),10<t)){if(gl(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ge(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Qu(Sr.bind(null,e,it,vn),t);break}Sr(e,it,vn);break;case 4:if(Bn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Kt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yw(r/1960))-r,10<r){e.timeoutHandle=Qu(Sr.bind(null,e,it,vn),r);break}Sr(e,it,vn);break;case 5:Sr(e,it,vn);break;default:throw Error(O(329))}}}return ut(e,xe()),e.callbackNode===n?tg.bind(null,e):null}function dc(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(Fr(e,t).flags|=256),e=Fl(e,t),e!==2&&(t=it,it=n,t!==null&&hc(t)),e}function hc(e){it===null?it=e:it.push.apply(it,e)}function vw(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Gt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bn(e,t){for(t&=~Ff,t&=~ea,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Kt(t),r=1<<n;e[n]=-1,t&=~r}}function Nh(e){if(J&6)throw Error(O(327));Ei();var t=gl(e,0);if(!(t&1))return ut(e,xe()),null;var n=Fl(e,t);if(e.tag!==0&&n===2){var r=Du(e);r!==0&&(t=r,n=dc(e,r))}if(n===1)throw n=qs,Fr(e,0),Bn(e,t),ut(e,xe()),n;if(n===6)throw Error(O(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sr(e,it,vn),ut(e,xe()),null}function If(e,t){var n=J;J|=1;try{return e(t)}finally{J=n,J===0&&(Hi=xe()+500,Gl&&mr())}}function Vr(e){Zn!==null&&Zn.tag===0&&!(J&6)&&Ei();var t=J;J|=1;var n=jt.transition,r=re;try{if(jt.transition=null,re=1,e)return e()}finally{re=r,jt.transition=n,J=t,!(J&6)&&mr()}}function Lf(){mt=gi.current,fe(gi)}function Fr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,K1(n)),Se!==null)for(n=Se.return;n!==null;){var r=n;switch(yf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Sl();break;case 3:Ui(),fe(lt),fe(Ue),Cf();break;case 5:kf(r);break;case 4:Ui();break;case 13:fe(pe);break;case 19:fe(pe);break;case 10:Sf(r.type._context);break;case 22:case 23:Lf()}n=n.return}if(Ne=e,Se=e=lr(e.current,null),$e=mt=t,ke=0,qs=null,Ff=ea=Ur=0,it=Ts=null,_r!==null){for(t=0;t<_r.length;t++)if(n=_r[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}_r=null}return e}function ng(e,t){do{var n=Se;try{if(xf(),Zo.current=Nl,Rl){for(var r=me.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Rl=!1}if(Br=0,Re=Ee=me=null,ks=!1,Hs=0,jf.current=null,n===null||n.return===null){ke=1,qs=t,Se=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=$e,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,d=l,u=d.tag;if(!(d.mode&1)&&(u===0||u===11||u===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=yh(o);if(g!==null){g.flags&=-257,vh(g,o,l,s,t),g.mode&1&&gh(s,c,t),t=g,a=c;var v=t.updateQueue;if(v===null){var w=new Set;w.add(a),t.updateQueue=w}else v.add(a);break e}else{if(!(t&1)){gh(s,c,t),Df();break e}a=Error(O(426))}}else if(he&&l.mode&1){var x=yh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),vh(x,o,l,s,t),vf(Vi(a,l));break e}}s=a=Vi(a,l),ke!==4&&(ke=2),Ts===null?Ts=[s]:Ts.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=M0(s,a,t);ch(s,m);break e;case 1:l=a;var p=s.type,h=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(sr===null||!sr.has(h)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=z0(s,l,t);ch(s,_);break e}}s=s.return}while(s!==null)}sg(n)}catch(T){t=T,Se===n&&n!==null&&(Se=n=n.return);continue}break}while(!0)}function rg(){var e=Pl.current;return Pl.current=Nl,e===null?Nl:e}function Df(){(ke===0||ke===3||ke===2)&&(ke=4),Ne===null||!(Ur&268435455)&&!(ea&268435455)||Bn(Ne,$e)}function Fl(e,t){var n=J;J|=2;var r=rg();(Ne!==e||$e!==t)&&(vn=null,Fr(e,t));do try{ww();break}catch(i){ng(e,i)}while(!0);if(xf(),J=n,Pl.current=r,Se!==null)throw Error(O(261));return Ne=null,$e=0,ke}function ww(){for(;Se!==null;)ig(Se)}function xw(){for(;Se!==null&&!Wv();)ig(Se)}function ig(e){var t=lg(e.alternate,e,mt);e.memoizedProps=e.pendingProps,t===null?sg(e):Se=t,jf.current=null}function sg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=hw(n,t),n!==null){n.flags&=32767,Se=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ke=6,Se=null;return}}else if(n=dw(n,t,mt),n!==null){Se=n;return}if(t=t.sibling,t!==null){Se=t;return}Se=t=e}while(t!==null);ke===0&&(ke=5)}function Sr(e,t,n){var r=re,i=jt.transition;try{jt.transition=null,re=1,Sw(e,t,n,r)}finally{jt.transition=i,re=r}return null}function Sw(e,t,n,r){do Ei();while(Zn!==null);if(J&6)throw Error(O(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(O(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(t1(e,s),e===Ne&&(Se=Ne=null,$e=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Lo||(Lo=!0,ag(ml,function(){return Ei(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=jt.transition,jt.transition=null;var o=re;re=1;var l=J;J|=4,jf.current=null,mw(e,n),J0(n,e),B1(Hu),yl=!!Vu,Hu=Vu=null,e.current=n,gw(n),Qv(),J=l,re=o,jt.transition=s}else e.current=n;if(Lo&&(Lo=!1,Zn=e,jl=i),s=e.pendingLanes,s===0&&(sr=null),Yv(n.stateNode),ut(e,xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Al)throw Al=!1,e=cc,cc=null,e;return jl&1&&e.tag!==0&&Ei(),s=e.pendingLanes,s&1?e===fc?Os++:(Os=0,fc=e):Os=0,mr(),null}function Ei(){if(Zn!==null){var e=Mm(jl),t=jt.transition,n=re;try{if(jt.transition=null,re=16>e?16:e,Zn===null)var r=!1;else{if(e=Zn,Zn=null,jl=0,J&6)throw Error(O(331));var i=J;for(J|=4,F=e.current;F!==null;){var s=F,o=s.child;if(F.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var c=l[a];for(F=c;F!==null;){var d=F;switch(d.tag){case 0:case 11:case 15:Cs(8,d,s)}var u=d.child;if(u!==null)u.return=d,F=u;else for(;F!==null;){d=F;var f=d.sibling,g=d.return;if(G0(d),d===c){F=null;break}if(f!==null){f.return=g,F=f;break}F=g}}}var v=s.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var x=w.sibling;w.sibling=null,w=x}while(w!==null)}}F=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,F=o;else e:for(;F!==null;){if(s=F,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Cs(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,F=m;break e}F=s.return}}var p=e.current;for(F=p;F!==null;){o=F;var h=o.child;if(o.subtreeFlags&2064&&h!==null)h.return=o,F=h;else e:for(o=p;F!==null;){if(l=F,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Jl(9,l)}}catch(T){ve(l,l.return,T)}if(l===o){F=null;break e}var _=l.sibling;if(_!==null){_.return=l.return,F=_;break e}F=l.return}}if(J=i,mr(),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Wl,e)}catch{}r=!0}return r}finally{re=n,jt.transition=t}}return!1}function Ph(e,t,n){t=Vi(n,t),t=M0(e,t,1),e=ir(e,t,1),t=Ge(),e!==null&&(so(e,1,t),ut(e,t))}function ve(e,t,n){if(e.tag===3)Ph(e,e,n);else for(;t!==null;){if(t.tag===3){Ph(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(sr===null||!sr.has(r))){e=Vi(n,e),e=z0(t,e,1),t=ir(t,e,1),e=Ge(),t!==null&&(so(t,1,e),ut(t,e));break}}t=t.return}}function bw(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ge(),e.pingedLanes|=e.suspendedLanes&n,Ne===e&&($e&n)===n&&(ke===4||ke===3&&($e&130023424)===$e&&500>xe()-$f?Fr(e,0):Ff|=n),ut(e,t)}function og(e,t){t===0&&(e.mode&1?(t=To,To<<=1,!(To&130023424)&&(To=4194304)):t=1);var n=Ge();e=On(e,t),e!==null&&(so(e,t,n),ut(e,n))}function Ew(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),og(e,n)}function _w(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),og(e,n)}var lg;lg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||lt.current)ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ot=!1,fw(e,t,n);ot=!!(e.flags&131072)}else ot=!1,he&&t.flags&1048576&&f0(t,_l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;el(e,t),e=t.pendingProps;var i=Mi(t,Ue.current);bi(t,n),i=Of(null,t,r,e,i,n);var s=Rf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(s=!0,bl(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ef(t),i.updater=Zl,t.stateNode=i,i._reactInternals=t,Ju(t,r,e,n),t=nc(null,t,r,!0,s,n)):(t.tag=0,he&&s&&gf(t),Ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(el(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Cw(r),e=zt(r,e),i){case 0:t=tc(null,t,r,e,n);break e;case 1:t=Sh(null,t,r,e,n);break e;case 11:t=wh(null,t,r,e,n);break e;case 14:t=xh(null,t,r,zt(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),tc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),Sh(e,t,r,i,n);case 3:e:{if(H0(t),e===null)throw Error(O(387));r=t.pendingProps,s=t.memoizedState,i=s.element,y0(e,t),Tl(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Vi(Error(O(423)),t),t=bh(e,t,r,n,i);break e}else if(r!==i){i=Vi(Error(O(424)),t),t=bh(e,t,r,n,i);break e}else for(gt=rr(t.stateNode.containerInfo.firstChild),wt=t,he=!0,Ht=null,n=m0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zi(),r===i){t=Rn(e,t,n);break e}Ye(e,t,r,n)}t=t.child}return t;case 5:return v0(t),e===null&&Gu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Wu(r,i)?o=null:s!==null&&Wu(r,s)&&(t.flags|=32),V0(e,t),Ye(e,t,o,n),t.child;case 6:return e===null&&Gu(t),null;case 13:return W0(e,t,n);case 4:return _f(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bi(t,null,r,n):Ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),wh(e,t,r,i,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ae(kl,r._currentValue),r._currentValue=o,s!==null)if(Gt(s.value,o)){if(s.children===i.children&&!lt.current){t=Rn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=_n(-1,n&-n),a.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Xu(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(O(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Xu(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bi(t,n),i=Ft(i),r=r(i),t.flags|=1,Ye(e,t,r,n),t.child;case 14:return r=t.type,i=zt(r,t.pendingProps),i=zt(r.type,i),xh(e,t,r,i,n);case 15:return B0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zt(r,i),el(e,t),t.tag=1,at(r)?(e=!0,bl(t)):e=!1,bi(t,n),D0(t,r,i),Ju(t,r,i,n),nc(null,t,r,!0,e,n);case 19:return Q0(e,t,n);case 22:return U0(e,t,n)}throw Error(O(156,t.tag))};function ag(e,t){return $m(e,t)}function kw(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new kw(e,t,n,r)}function Mf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cw(e){if(typeof e=="function")return Mf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===rf)return 11;if(e===sf)return 14}return 2}function lr(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function rl(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Mf(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case oi:return $r(n.children,i,s,t);case nf:o=8,i|=8;break;case Eu:return e=At(12,n,t,i|2),e.elementType=Eu,e.lanes=s,e;case _u:return e=At(13,n,t,i),e.elementType=_u,e.lanes=s,e;case ku:return e=At(19,n,t,i),e.elementType=ku,e.lanes=s,e;case vm:return ta(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gm:o=10;break e;case ym:o=9;break e;case rf:o=11;break e;case sf:o=14;break e;case Dn:o=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=At(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function $r(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function ta(e,t,n,r){return e=At(22,e,r,t),e.elementType=vm,e.lanes=n,e.stateNode={isHidden:!1},e}function ou(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function lu(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Tw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ba(0),this.expirationTimes=Ba(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function zf(e,t,n,r,i,s,o,l,a){return e=new Tw(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=At(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ef(s),e}function Ow(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:si,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ug(e){if(!e)return fr;e=e._reactInternals;e:{if(Kr(e)!==e||e.tag!==1)throw Error(O(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(O(171))}if(e.tag===1){var n=e.type;if(at(n))return u0(e,n,t)}return t}function cg(e,t,n,r,i,s,o,l,a){return e=zf(n,r,!0,e,i,s,o,l,a),e.context=ug(null),n=e.current,r=Ge(),i=or(n),s=_n(r,i),s.callback=t??null,ir(n,s,i),e.current.lanes=i,so(e,i,r),ut(e,r),e}function na(e,t,n,r){var i=t.current,s=Ge(),o=or(i);return n=ug(n),t.context===null?t.context=n:t.pendingContext=n,t=_n(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ir(i,t,o),e!==null&&(Yt(e,i,o,s),Xo(e,i,o)),o}function $l(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Ah(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bf(e,t){Ah(e,t),(e=e.alternate)&&Ah(e,t)}function Rw(){return null}var fg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uf(e){this._internalRoot=e}ra.prototype.render=Uf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(O(409));na(e,t,null,null)};ra.prototype.unmount=Uf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vr(function(){na(null,e,null,null)}),t[Tn]=null}};function ra(e){this._internalRoot=e}ra.prototype.unstable_scheduleHydration=function(e){if(e){var t=Um();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zn.length&&t!==0&&t<zn[n].priority;n++);zn.splice(n,0,e),n===0&&Hm(e)}};function Vf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ia(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jh(){}function Nw(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=$l(o);s.call(c)}}var o=cg(t,r,e,0,null,!1,!1,"",jh);return e._reactRootContainer=o,e[Tn]=o.current,Ms(e.nodeType===8?e.parentNode:e),Vr(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var c=$l(a);l.call(c)}}var a=zf(e,0,!1,null,null,!1,!1,"",jh);return e._reactRootContainer=a,e[Tn]=a.current,Ms(e.nodeType===8?e.parentNode:e),Vr(function(){na(t,a,n,r)}),a}function sa(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=$l(o);l.call(a)}}na(t,o,e,i)}else o=Nw(n,t,e,i,r);return $l(o)}zm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gs(t.pendingLanes);n!==0&&(af(t,n|1),ut(t,xe()),!(J&6)&&(Hi=xe()+500,mr()))}break;case 13:Vr(function(){var r=On(e,1);if(r!==null){var i=Ge();Yt(r,e,1,i)}}),Bf(e,1)}};uf=function(e){if(e.tag===13){var t=On(e,134217728);if(t!==null){var n=Ge();Yt(t,e,134217728,n)}Bf(e,134217728)}};Bm=function(e){if(e.tag===13){var t=or(e),n=On(e,t);if(n!==null){var r=Ge();Yt(n,e,t,r)}Bf(e,t)}};Um=function(){return re};Vm=function(e,t){var n=re;try{return re=e,t()}finally{re=n}};$u=function(e,t,n){switch(t){case"input":if(Ou(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Yl(r);if(!i)throw Error(O(90));xm(r),Ou(r,i)}}}break;case"textarea":bm(e,n);break;case"select":t=n.value,t!=null&&vi(e,!!n.multiple,t,!1)}};Rm=If;Nm=Vr;var Pw={usingClientEntryPoint:!1,Events:[lo,ci,Yl,Tm,Om,If]},fs={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Aw={bundleType:fs.bundleType,version:fs.version,rendererPackageName:fs.rendererPackageName,rendererConfig:fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=jm(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||Rw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Do=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Do.isDisabled&&Do.supportsFiber)try{Wl=Do.inject(Aw),an=Do}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pw;St.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vf(t))throw Error(O(200));return Ow(e,t,null,n)};St.createRoot=function(e,t){if(!Vf(e))throw Error(O(299));var n=!1,r="",i=fg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=zf(e,1,!1,null,null,n,!1,r,i),e[Tn]=t.current,Ms(e.nodeType===8?e.parentNode:e),new Uf(t)};St.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(O(188)):(e=Object.keys(e).join(","),Error(O(268,e)));return e=jm(t),e=e===null?null:e.stateNode,e};St.flushSync=function(e){return Vr(e)};St.hydrate=function(e,t,n){if(!ia(t))throw Error(O(200));return sa(null,e,t,!0,n)};St.hydrateRoot=function(e,t,n){if(!Vf(e))throw Error(O(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=fg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=cg(t,null,e,1,n??null,i,!1,s,o),e[Tn]=t.current,Ms(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ra(t)};St.render=function(e,t,n){if(!ia(t))throw Error(O(200));return sa(null,e,t,!1,n)};St.unmountComponentAtNode=function(e){if(!ia(e))throw Error(O(40));return e._reactRootContainer?(Vr(function(){sa(null,null,e,!1,function(){e._reactRootContainer=null,e[Tn]=null})}),!0):!1};St.unstable_batchedUpdates=If;St.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ia(n))throw Error(O(200));if(e==null||e._reactInternals===void 0)throw Error(O(38));return sa(e,t,n,!1,r)};St.version="18.3.1-next-f1338f8080-20240426";function dg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dg)}catch(e){console.error(e)}}dg(),dm.exports=St;var hg=dm.exports;const jw=qi(hg);var pg,Fh=hg;pg=Fh.createRoot,Fh.hydrateRoot;const Fw="@alfatech/livechat",$w="v2025.03.10.1",Iw="module",Lw="https://api-live.alfatek.dev",Dw="wss://api-live.alfatek.dev",Mw=["dist","README.md"],zw="dist/widget.js",Bw={dev:"vite",build:"tsc -b && vite build",lint:"biome lint --write",prepare:"husky",format:"biome format --write && yarn lint"},Uw={"@tanstack/react-query":"^5.59.20",classnames:"^2.5.1",dayjs:"^1.11.13",formik:"^2.4.6",react:"^18.3.1","react-dom":"^18.3.1","react-router-dom":"^6.26.2","socket.io-client":"^4.8.1",sonner:"^2.0.1",yup:"^1.4.0",zustand:"^4.5.5"},Vw={"@biomejs/biome":"^1.8.3","@types/node":"^22.5.4","@types/react":"^18.3.3","@types/react-dom":"^18.3.0","@vitejs/plugin-react-swc":"^3.5.0",globals:"^15.9.0",husky:"^9.1.5",tailwindcss:"^3.4.10",typescript:"^5.5.3",vite:"^5.4.1"},mg={name:Fw,private:!1,version:$w,type:Iw,apiURL:Lw,wsURL:Dw,files:Mw,main:zw,scripts:Bw,dependencies:Uw,devDependencies:Vw,"lint-staged":{"./**/*.{js,ts,tsx,json}":["npm run format"]}},Hw=mg.apiURL,Ww=mg.wsURL,Qw=e=>[{limit:Number.parseInt(e.headers.get("X-Ratelimit-Limit")||"0"),remaining:Number.parseInt(e.headers.get("X-Ratelimit-Remaining")||"0"),reset:Number.parseInt(e.headers.get("X-Ratelimit-Reset")||"0"),retryAfter:Number.parseInt(e.headers.get("Retry-After")||"0")},429],qw=(e,t)=>[{message:"message"in t?t.message:"Not Found"},404],Kw={429:Qw,404:qw};async function oa(e,t={}){const n={};!(t.body instanceof FormData)&&t.body&&(n["Content-Type"]="application/json");const r=await fetch(`${Hw}/${e}`,{...t,credentials:"include",headers:{...t.headers,...n}}).catch(s=>(console.log("err::",s),new Response(null,{status:500})));if(!r.ok){let s={};try{return s=await r.json(),[s,r.status]}catch{console.log("response: ",r)}const o=Kw[r.status];return o?o(r,s):[{},r.status]}const i=r.headers.get("Content-Type");return i&&i.includes("application/json")?[await r.json(),r.status]:[await r.text(),r.status]}const gg=e=>[200,201,204].includes(e);var Xi=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(){}},Hr=typeof window>"u"||"Deno"in globalThis;function Ot(){}function Yw(e,t){return typeof e=="function"?e(t):e}function pc(e){return typeof e=="number"&&e>=0&&e!==1/0}function yg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function _i(e,t){return typeof e=="function"?e(t):e}function Wt(e,t){return typeof e=="function"?e(t):e}function $h(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Hf(o,t.options))return!1}else if(!Ks(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||s&&!s(t))}function Ih(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Wr(t.options.mutationKey)!==Wr(s))return!1}else if(!Ks(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Hf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Wr)(e)}function Wr(e){return JSON.stringify(e,(t,n)=>mc(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Ks(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Ks(e[n],t[n])):!1}function vg(e,t){if(e===t)return e;const n=Lh(e)&&Lh(t);if(n||mc(e)&&mc(t)){const r=n?e:Object.keys(e),i=r.length,s=n?t:Object.keys(t),o=s.length,l=n?[]:{};let a=0;for(let c=0;c<o;c++){const d=n?c:s[c];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(l[d]=void 0,a++):(l[d]=vg(e[d],t[d]),l[d]===e[d]&&e[d]!==void 0&&a++)}return i===o&&a===i?e:l}return t}function Il(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Lh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mc(e){if(!Dh(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Dh(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Dh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Gw(e){return new Promise(t=>{setTimeout(t,e)})}function gc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vg(e,t):t}function Xw(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Zw(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wf=Symbol();function wg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Wf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Tr,Un,ki,Wp,Jw=(Wp=class extends Xi{constructor(){super();U(this,Tr);U(this,Un);U(this,ki);j(this,ki,t=>{if(!Hr&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,Un)||this.setEventListener(y(this,ki))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Un))==null||t.call(this),j(this,Un,void 0))}setEventListener(t){var n;j(this,ki,t),(n=y(this,Un))==null||n.call(this),j(this,Un,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Tr)!==t&&(j(this,Tr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Tr)=="boolean"?y(this,Tr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Tr=new WeakMap,Un=new WeakMap,ki=new WeakMap,Wp),Qf=new Jw,Ci,Vn,Ti,Qp,ex=(Qp=class extends Xi{constructor(){super();U(this,Ci,!0);U(this,Vn);U(this,Ti);j(this,Ti,t=>{if(!Hr&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,Vn)||this.setEventListener(y(this,Ti))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,Vn))==null||t.call(this),j(this,Vn,void 0))}setEventListener(t){var n;j(this,Ti,t),(n=y(this,Vn))==null||n.call(this),j(this,Vn,t(this.setOnline.bind(this)))}setOnline(t){y(this,Ci)!==t&&(j(this,Ci,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,Ci)}},Ci=new WeakMap,Vn=new WeakMap,Ti=new WeakMap,Qp),Ll=new ex;function yc(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function tx(e){return Math.min(1e3*2**e,3e4)}function xg(e){return(e??"online")==="online"?Ll.isOnline():!0}var Sg=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function au(e){return e instanceof Sg}function bg(e){let t=!1,n=0,r=!1,i;const s=yc(),o=w=>{var x;r||(f(new Sg(w)),(x=e.abort)==null||x.call(e))},l=()=>{t=!0},a=()=>{t=!1},c=()=>Qf.isFocused()&&(e.networkMode==="always"||Ll.isOnline())&&e.canRun(),d=()=>xg(e.networkMode)&&e.canRun(),u=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),s.resolve(w))},f=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s.reject(w))},g=()=>new Promise(w=>{var x;i=m=>{(r||c())&&w(m)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),v=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(m){w=Promise.reject(m)}Promise.resolve(w).then(u).catch(m=>{var k;if(r)return;const p=e.retry??(Hr?0:3),h=e.retryDelay??tx,_=typeof h=="function"?h(n,m):h,T=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,m);if(t||!T){f(m);return}n++,(k=e.onFail)==null||k.call(e,n,m),Gw(_).then(()=>c()?void 0:g()).then(()=>{t?f(m):v()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?v():g().then(v),s)}}function nx(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=l=>setTimeout(l,0);const s=l=>{t?e.push(l):i(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||o()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var _e=nx(),Or,qp,Eg=(qp=class{constructor(){U(this,Or)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),pc(this.gcTime)&&j(this,Or,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hr?1/0:5*60*1e3))}clearGcTimeout(){y(this,Or)&&(clearTimeout(y(this,Or)),j(this,Or,void 0))}},Or=new WeakMap,qp),Oi,Ri,Tt,ze,eo,Rr,Bt,yn,Kp,rx=(Kp=class extends Eg{constructor(t){super();U(this,Bt);U(this,Oi);U(this,Ri);U(this,Tt);U(this,ze);U(this,eo);U(this,Rr);j(this,Rr,!1),j(this,eo,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,Tt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,Oi,ix(this.options)),this.state=t.state??y(this,Oi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,ze))==null?void 0:t.promise}setOptions(t){this.options={...y(this,eo),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,Tt).remove(this)}setData(t,n){const r=gc(this.state.data,t,this.options);return q(this,Bt,yn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){q(this,Bt,yn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,ze))==null?void 0:r.promise;return(i=y(this,ze))==null||i.cancel(t),n?n.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Oi))}isActive(){return this.observers.some(t=>Wt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Wf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!yg(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,ze)&&(y(this,Rr)?y(this,ze).cancel({revert:!0}):y(this,ze).cancelRetry()),this.scheduleGc()),y(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||q(this,Bt,yn).call(this,{type:"invalidate"})}fetch(t,n){var a,c,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,ze))return y(this,ze).continueRetry(),y(this,ze).promise}if(t&&this.setOptions(t),!this.options.queryFn){const u=this.observers.find(f=>f.options.queryFn);u&&this.setOptions(u.options)}const r=new AbortController,i=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(j(this,Rr,!0),r.signal)})},s=()=>{const u=wg(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),j(this,Rr,!1),this.options.persister?this.options.persister(u,f,this):u(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),(a=this.options.behavior)==null||a.onFetch(o,this),j(this,Ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=o.fetchOptions)==null?void 0:c.meta))&&q(this,Bt,yn).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const l=u=>{var f,g,v,w;au(u)&&u.silent||q(this,Bt,yn).call(this,{type:"error",error:u}),au(u)||((g=(f=y(this,Tt).config).onError)==null||g.call(f,u,this),(w=(v=y(this,Tt).config).onSettled)==null||w.call(v,this.state.data,u,this)),this.scheduleGc()};return j(this,ze,bg({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:u=>{var f,g,v,w;if(u===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(u)}catch(x){l(x);return}(g=(f=y(this,Tt).config).onSuccess)==null||g.call(f,u,this),(w=(v=y(this,Tt).config).onSettled)==null||w.call(v,u,this.state.error,this),this.scheduleGc()},onError:l,onFail:(u,f)=>{q(this,Bt,yn).call(this,{type:"failed",failureCount:u,error:f})},onPause:()=>{q(this,Bt,yn).call(this,{type:"pause"})},onContinue:()=>{q(this,Bt,yn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),y(this,ze).start()}},Oi=new WeakMap,Ri=new WeakMap,Tt=new WeakMap,ze=new WeakMap,eo=new WeakMap,Rr=new WeakMap,Bt=new WeakSet,yn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,..._g(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return au(i)&&i.revert&&y(this,Ri)?{...y(this,Ri),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),_e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,Tt).notify({query:this,type:"updated",action:t})})},Kp);function _g(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ix(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var nn,Yp,sx=(Yp=class extends Xi{constructor(t={}){super();U(this,nn);this.config=t,j(this,nn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Hf(i,n);let o=this.get(s);return o||(o=new rx({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){y(this,nn).has(t.queryHash)||(y(this,nn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,nn).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,nn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,nn).get(t)}getAll(){return[...y(this,nn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>$h(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>$h(t,r)):n}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},nn=new WeakMap,Yp),rn,qe,Nr,sn,Ln,Gp,ox=(Gp=class extends Eg{constructor(t){super();U(this,sn);U(this,rn);U(this,qe);U(this,Nr);this.mutationId=t.mutationId,j(this,qe,t.mutationCache),j(this,rn,[]),this.state=t.state||kg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,rn).includes(t)||(y(this,rn).push(t),this.clearGcTimeout(),y(this,qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,rn,y(this,rn).filter(n=>n!==t)),this.scheduleGc(),y(this,qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,rn).length||(this.state.status==="pending"?this.scheduleGc():y(this,qe).remove(this))}continue(){var t;return((t=y(this,Nr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,l,a,c,d,u,f,g,v,w,x,m,p,h,_,T,k,C;j(this,Nr,bg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,I)=>{q(this,sn,Ln).call(this,{type:"failed",failureCount:R,error:I})},onPause:()=>{q(this,sn,Ln).call(this,{type:"pause"})},onContinue:()=>{q(this,sn,Ln).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,qe).canRun(this)}));const n=this.state.status==="pending",r=!y(this,Nr).canStart();try{if(!n){q(this,sn,Ln).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=y(this,qe).config).onMutate)==null?void 0:s.call(i,t,this));const I=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));I!==this.state.context&&q(this,sn,Ln).call(this,{type:"pending",context:I,variables:t,isPaused:r})}const R=await y(this,Nr).start();return await((c=(a=y(this,qe).config).onSuccess)==null?void 0:c.call(a,R,t,this.state.context,this)),await((u=(d=this.options).onSuccess)==null?void 0:u.call(d,R,t,this.state.context)),await((g=(f=y(this,qe).config).onSettled)==null?void 0:g.call(f,R,null,this.state.variables,this.state.context,this)),await((w=(v=this.options).onSettled)==null?void 0:w.call(v,R,null,t,this.state.context)),q(this,sn,Ln).call(this,{type:"success",data:R}),R}catch(R){try{throw await((m=(x=y(this,qe).config).onError)==null?void 0:m.call(x,R,t,this.state.context,this)),await((h=(p=this.options).onError)==null?void 0:h.call(p,R,t,this.state.context)),await((T=(_=y(this,qe).config).onSettled)==null?void 0:T.call(_,void 0,R,this.state.variables,this.state.context,this)),await((C=(k=this.options).onSettled)==null?void 0:C.call(k,void 0,R,t,this.state.context)),R}finally{q(this,sn,Ln).call(this,{type:"error",error:R})}}finally{y(this,qe).runNext(this)}}},rn=new WeakMap,qe=new WeakMap,Nr=new WeakMap,sn=new WeakSet,Ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_e.batch(()=>{y(this,rn).forEach(r=>{r.onMutationUpdate(t)}),y(this,qe).notify({mutation:this,type:"updated",action:t})})},Gp);function kg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pt,to,Xp,lx=(Xp=class extends Xi{constructor(t={}){super();U(this,pt);U(this,to);this.config=t,j(this,pt,new Map),j(this,to,Date.now())}build(t,n,r){const i=new ox({mutationCache:this,mutationId:++So(this,to)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Mo(t),r=y(this,pt).get(n)??[];r.push(t),y(this,pt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Mo(t);if(y(this,pt).has(n)){const i=(r=y(this,pt).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?y(this,pt).delete(n):y(this,pt).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=y(this,pt).get(Mo(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=y(this,pt).get(Mo(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...y(this,pt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ih(n,r))}findAll(t={}){return this.getAll().filter(n=>Ih(t,n))}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _e.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ot))))}},pt=new WeakMap,to=new WeakMap,Xp);function Mo(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Mh(e){return{onFetch:(t,n)=>{var d,u,f,g,v;const r=t.options,i=(f=(u=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:u.fetchMore)==null?void 0:f.direction,s=((g=t.state.data)==null?void 0:g.pages)||[],o=((v=t.state.data)==null?void 0:v.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const c=async()=>{let w=!1;const x=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(t.signal.aborted?w=!0:t.signal.addEventListener("abort",()=>{w=!0}),t.signal)})},m=wg(t.options,t.fetchOptions),p=async(h,_,T)=>{if(w)return Promise.reject();if(_==null&&h.pages.length)return Promise.resolve(h);const k={queryKey:t.queryKey,pageParam:_,direction:T?"backward":"forward",meta:t.options.meta};x(k);const C=await m(k),{maxPages:R}=t.options,I=T?Zw:Xw;return{pages:I(h.pages,C,R),pageParams:I(h.pageParams,_,R)}};if(i&&s.length){const h=i==="backward",_=h?ax:zh,T={pages:s,pageParams:o},k=_(r,T);l=await p(T,k,h)}else{const h=e??s.length;do{const _=a===0?o[0]??r.initialPageParam:zh(r,l);if(a>0&&_==null)break;l=await p(l,_),a++}while(a<h)}return l};t.options.persister?t.fetchFn=()=>{var w,x;return(x=(w=t.options).persister)==null?void 0:x.call(w,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function zh(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ax(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var ye,Hn,Wn,Ni,Pi,Qn,Ai,ji,Zp,ux=(Zp=class{constructor(e={}){U(this,ye);U(this,Hn);U(this,Wn);U(this,Ni);U(this,Pi);U(this,Qn);U(this,Ai);U(this,ji);j(this,ye,e.queryCache||new sx),j(this,Hn,e.mutationCache||new lx),j(this,Wn,e.defaultOptions||{}),j(this,Ni,new Map),j(this,Pi,new Map),j(this,Qn,0)}mount(){So(this,Qn)._++,y(this,Qn)===1&&(j(this,Ai,Qf.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ye).onFocus())})),j(this,ji,Ll.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ye).onOnline())})))}unmount(){var e,t;So(this,Qn)._--,y(this,Qn)===0&&((e=y(this,Ai))==null||e.call(this),j(this,Ai,void 0),(t=y(this,ji))==null||t.call(this),j(this,ji,void 0))}isFetching(e){return y(this,ye).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,Hn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ye).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=y(this,ye).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(_i(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return y(this,ye).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,ye).get(r.queryHash),s=i==null?void 0:i.state.data,o=Yw(t,s);if(o!==void 0)return y(this,ye).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return _e.batch(()=>y(this,ye).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ye).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ye);_e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ye),r={type:"active",...e};return _e.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_e.batch(()=>y(this,ye).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ot).catch(Ot)}invalidateQueries(e,t={}){return _e.batch(()=>{if(y(this,ye).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none")return Promise.resolve();const n={...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"};return this.refetchQueries(n,t)})}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=_e.batch(()=>y(this,ye).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ot)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ot)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ye).build(this,t);return n.isStaleByTime(_i(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ot).catch(Ot)}fetchInfiniteQuery(e){return e.behavior=Mh(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ot).catch(Ot)}ensureInfiniteQueryData(e){return e.behavior=Mh(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ll.isOnline()?y(this,Hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ye)}getMutationCache(){return y(this,Hn)}getDefaultOptions(){return y(this,Wn)}setDefaultOptions(e){j(this,Wn,e)}setQueryDefaults(e,t){y(this,Ni).set(Wr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Ni).values()],n={};return t.forEach(r=>{Ks(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,Pi).set(Wr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,Pi).values()];let n={};return t.forEach(r=>{Ks(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Wn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Wf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Wn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ye).clear(),y(this,Hn).clear()}},ye=new WeakMap,Hn=new WeakMap,Wn=new WeakMap,Ni=new WeakMap,Pi=new WeakMap,Qn=new WeakMap,Ai=new WeakMap,ji=new WeakMap,Zp),tt,G,no,Ke,Pr,Fi,qn,on,ro,$i,Ii,Ar,jr,Kn,Li,ne,vs,vc,wc,xc,Sc,bc,Ec,_c,Cg,Jp,cx=(Jp=class extends Xi{constructor(t,n){super();U(this,ne);U(this,tt);U(this,G);U(this,no);U(this,Ke);U(this,Pr);U(this,Fi);U(this,qn);U(this,on);U(this,ro);U(this,$i);U(this,Ii);U(this,Ar);U(this,jr);U(this,Kn);U(this,Li,new Set);this.options=n,j(this,tt,t),j(this,on,null),j(this,qn,yc()),this.options.experimental_prefetchInRender||y(this,qn).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,G).addObserver(this),Bh(y(this,G),this.options)?q(this,ne,vs).call(this):this.updateResult(),q(this,ne,Sc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kc(y(this,G),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kc(y(this,G),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,q(this,ne,bc).call(this),q(this,ne,Ec).call(this),y(this,G).removeObserver(this)}setOptions(t,n){const r=this.options,i=y(this,G);if(this.options=y(this,tt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Wt(this.options.enabled,y(this,G))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");q(this,ne,_c).call(this),y(this,G).setOptions(this.options),r._defaulted&&!Il(this.options,r)&&y(this,tt).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,G),observer:this});const s=this.hasListeners();s&&Uh(y(this,G),i,this.options,r)&&q(this,ne,vs).call(this),this.updateResult(n),s&&(y(this,G)!==i||Wt(this.options.enabled,y(this,G))!==Wt(r.enabled,y(this,G))||_i(this.options.staleTime,y(this,G))!==_i(r.staleTime,y(this,G)))&&q(this,ne,vc).call(this);const o=q(this,ne,wc).call(this);s&&(y(this,G)!==i||Wt(this.options.enabled,y(this,G))!==Wt(r.enabled,y(this,G))||o!==y(this,Kn))&&q(this,ne,xc).call(this,o)}getOptimisticResult(t){const n=y(this,tt).getQueryCache().build(y(this,tt),t),r=this.createResult(n,t);return dx(this,r)&&(j(this,Ke,r),j(this,Fi,this.options),j(this,Pr,y(this,G).state)),r}getCurrentResult(){return y(this,Ke)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){y(this,Li).add(t)}getCurrentQuery(){return y(this,G)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,tt).defaultQueryOptions(t),r=y(this,tt).getQueryCache().build(y(this,tt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return q(this,ne,vs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Ke)))}createResult(t,n){var R;const r=y(this,G),i=this.options,s=y(this,Ke),o=y(this,Pr),l=y(this,Fi),c=t!==r?t.state:y(this,no),{state:d}=t;let u={...d},f=!1,g;if(n._optimisticResults){const I=this.hasListeners(),D=!I&&Bh(t,n),B=I&&Uh(t,r,n,i);(D||B)&&(u={...u,..._g(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:v,errorUpdatedAt:w,status:x}=u;if(n.select&&u.data!==void 0)if(s&&u.data===(o==null?void 0:o.data)&&n.select===y(this,ro))g=y(this,$i);else try{j(this,ro,n.select),g=n.select(u.data),g=gc(s==null?void 0:s.data,g,n),j(this,$i,g),j(this,on,null)}catch(I){j(this,on,I)}else g=u.data;if(n.placeholderData!==void 0&&g===void 0&&x==="pending"){let I;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))I=s.data;else if(I=typeof n.placeholderData=="function"?n.placeholderData((R=y(this,Ii))==null?void 0:R.state.data,y(this,Ii)):n.placeholderData,n.select&&I!==void 0)try{I=n.select(I),j(this,on,null)}catch(D){j(this,on,D)}I!==void 0&&(x="success",g=gc(s==null?void 0:s.data,I,n),f=!0)}y(this,on)&&(v=y(this,on),g=y(this,$i),w=Date.now(),x="error");const m=u.fetchStatus==="fetching",p=x==="pending",h=x==="error",_=p&&m,T=g!==void 0,C={status:x,fetchStatus:u.fetchStatus,isPending:p,isSuccess:x==="success",isError:h,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:u.dataUpdatedAt,error:v,errorUpdatedAt:w,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:m,isRefetching:m&&!p,isLoadingError:h&&!T,isPaused:u.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:h&&T,isStale:qf(t,n),refetch:this.refetch,promise:y(this,qn)};if(this.options.experimental_prefetchInRender){const I=se=>{C.status==="error"?se.reject(C.error):C.data!==void 0&&se.resolve(C.data)},D=()=>{const se=j(this,qn,C.promise=yc());I(se)},B=y(this,qn);switch(B.status){case"pending":t.queryHash===r.queryHash&&I(B);break;case"fulfilled":(C.status==="error"||C.data!==B.value)&&D();break;case"rejected":(C.status!=="error"||C.error!==B.reason)&&D();break}}return C}updateResult(t){const n=y(this,Ke),r=this.createResult(y(this,G),this.options);if(j(this,Pr,y(this,G).state),j(this,Fi,this.options),y(this,Pr).data!==void 0&&j(this,Ii,y(this,G)),Il(r,n))return;j(this,Ke,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!y(this,Li).size)return!0;const a=new Set(l??y(this,Li));return this.options.throwOnError&&a.add("error"),Object.keys(y(this,Ke)).some(c=>{const d=c;return y(this,Ke)[d]!==n[d]&&a.has(d)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),q(this,ne,Cg).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&q(this,ne,Sc).call(this)}},tt=new WeakMap,G=new WeakMap,no=new WeakMap,Ke=new WeakMap,Pr=new WeakMap,Fi=new WeakMap,qn=new WeakMap,on=new WeakMap,ro=new WeakMap,$i=new WeakMap,Ii=new WeakMap,Ar=new WeakMap,jr=new WeakMap,Kn=new WeakMap,Li=new WeakMap,ne=new WeakSet,vs=function(t){q(this,ne,_c).call(this);let n=y(this,G).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ot)),n},vc=function(){q(this,ne,bc).call(this);const t=_i(this.options.staleTime,y(this,G));if(Hr||y(this,Ke).isStale||!pc(t))return;const r=yg(y(this,Ke).dataUpdatedAt,t)+1;j(this,Ar,setTimeout(()=>{y(this,Ke).isStale||this.updateResult()},r))},wc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,G)):this.options.refetchInterval)??!1},xc=function(t){q(this,ne,Ec).call(this),j(this,Kn,t),!(Hr||Wt(this.options.enabled,y(this,G))===!1||!pc(y(this,Kn))||y(this,Kn)===0)&&j(this,jr,setInterval(()=>{(this.options.refetchIntervalInBackground||Qf.isFocused())&&q(this,ne,vs).call(this)},y(this,Kn)))},Sc=function(){q(this,ne,vc).call(this),q(this,ne,xc).call(this,q(this,ne,wc).call(this))},bc=function(){y(this,Ar)&&(clearTimeout(y(this,Ar)),j(this,Ar,void 0))},Ec=function(){y(this,jr)&&(clearInterval(y(this,jr)),j(this,jr,void 0))},_c=function(){const t=y(this,tt).getQueryCache().build(y(this,tt),this.options);if(t===y(this,G))return;const n=y(this,G);j(this,G,t),j(this,no,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Cg=function(t){_e.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Ke))}),y(this,tt).getQueryCache().notify({query:y(this,G),type:"observerResultsUpdated"})})},Jp);function fx(e,t){return Wt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Bh(e,t){return fx(e,t)||e.state.data!==void 0&&kc(e,t,t.refetchOnMount)}function kc(e,t,n){if(Wt(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&qf(e,t)}return!1}function Uh(e,t,n,r){return(e!==t||Wt(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&qf(e,n)}function qf(e,t){return Wt(t.enabled,e)!==!1&&e.isStaleByTime(_i(t.staleTime,e))}function dx(e,t){return!Il(e.getCurrentResult(),t)}var Yn,Gn,nt,Sn,kn,il,Cc,em,hx=(em=class extends Xi{constructor(t,n){super();U(this,kn);U(this,Yn);U(this,Gn);U(this,nt);U(this,Sn);j(this,Yn,t),this.setOptions(n),this.bindMethods(),q(this,kn,il).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,Yn).defaultMutationOptions(t),Il(this.options,n)||y(this,Yn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,nt),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Wr(n.mutationKey)!==Wr(this.options.mutationKey)?this.reset():((r=y(this,nt))==null?void 0:r.state.status)==="pending"&&y(this,nt).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,nt))==null||t.removeObserver(this)}onMutationUpdate(t){q(this,kn,il).call(this),q(this,kn,Cc).call(this,t)}getCurrentResult(){return y(this,Gn)}reset(){var t;(t=y(this,nt))==null||t.removeObserver(this),j(this,nt,void 0),q(this,kn,il).call(this),q(this,kn,Cc).call(this)}mutate(t,n){var r;return j(this,Sn,n),(r=y(this,nt))==null||r.removeObserver(this),j(this,nt,y(this,Yn).getMutationCache().build(y(this,Yn),this.options)),y(this,nt).addObserver(this),y(this,nt).execute(t)}},Yn=new WeakMap,Gn=new WeakMap,nt=new WeakMap,Sn=new WeakMap,kn=new WeakSet,il=function(){var n;const t=((n=y(this,nt))==null?void 0:n.state)??kg();j(this,Gn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Cc=function(t){_e.batch(()=>{var n,r,i,s,o,l,a,c;if(y(this,Sn)&&this.hasListeners()){const d=y(this,Gn).variables,u=y(this,Gn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,Sn)).onSuccess)==null||r.call(n,t.data,d,u),(s=(i=y(this,Sn)).onSettled)==null||s.call(i,t.data,null,d,u)):(t==null?void 0:t.type)==="error"&&((l=(o=y(this,Sn)).onError)==null||l.call(o,t.error,d,u),(c=(a=y(this,Sn)).onSettled)==null||c.call(a,void 0,t.error,d,u))}this.listeners.forEach(d=>{d(y(this,Gn))})})},em),Tg=S.createContext(void 0),Og=e=>{const t=S.useContext(Tg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},px=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),E.jsx(Tg.Provider,{value:e,children:t})),Rg=S.createContext(!1),mx=()=>S.useContext(Rg);Rg.Provider;function gx(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var yx=S.createContext(gx()),vx=()=>S.useContext(yx);function Ng(e,t){return typeof e=="function"?e(...t):!!e}function Tc(){}var wx=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},xx=e=>{S.useEffect(()=>{e.clearReset()},[e])},Sx=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Ng(n,[e.error,r]),bx=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},Ex=(e,t)=>e.isLoading&&e.isFetching&&!t,_x=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Vh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function kx(e,t,n){var d,u,f,g,v;const r=Og(),i=mx(),s=vx(),o=r.defaultQueryOptions(e);(u=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||u.call(d,o),o._optimisticResults=i?"isRestoring":"optimistic",bx(o),wx(o,s),xx(s);const l=!r.getQueryCache().get(o.queryHash),[a]=S.useState(()=>new t(r,o)),c=a.getOptimisticResult(o);if(S.useSyncExternalStore(S.useCallback(w=>{const x=i?Tc:a.subscribe(_e.batchCalls(w));return a.updateResult(),x},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),S.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),_x(o,c))throw Vh(o,a,s);if(Sx({result:c,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw c.error;if((g=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||g.call(f,o,c),o.experimental_prefetchInRender&&!Hr&&Ex(c,i)){const w=l?Vh(o,a,s):(v=r.getQueryCache().get(o.queryHash))==null?void 0:v.promise;w==null||w.catch(Tc).finally(()=>{a.updateResult()})}return o.notifyOnChangeProps?c:a.trackResult(c)}function Cx(e,t){return kx(e,cx)}function Tx(e,t){const n=Og(),[r]=S.useState(()=>new hx(n,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const i=S.useSyncExternalStore(S.useCallback(o=>r.subscribe(_e.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=S.useCallback((o,l)=>{r.mutate(o,l).catch(Tc)},[r]);if(i.error&&Ng(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const Ox=e=>Cx({queryKey:["widgets",e],queryFn:()=>Rx(e)}),Rx=e=>oa(`widgets/with-link/${e}`);function Nx(e){return!!e&&typeof e.public_id=="string"&&typeof e.link_id=="string"&&typeof e.name=="string"&&typeof e.is_browser_notification_enabled=="boolean"&&typeof e.is_hidden_on_offline=="boolean"&&typeof e.is_upload_disabled=="boolean"}/**
41
41
  * @remix-run/router v1.21.0
42
42
  *
43
43
  * Copyright (c) Remix Software Inc.
@@ -46,7 +46,7 @@ Error generating stack: `+s.message+`
46
46
  * LICENSE.md file in the root directory of this source tree.
47
47
  *
48
48
  * @license MIT
49
- */function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},La.apply(this,arguments)}var Jn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Jn||(Jn={}));function Px(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((m,v)=>d(m,typeof m=="string"?null:m.state,v===0?"default":void 0));let s=l(n??i.length-1),o=Jn.Pop,a=null;function l(m){return Math.min(Math.max(m,0),i.length-1)}function c(){return i[s]}function d(m,v,w){v===void 0&&(v=null);let x=Ax(i?c().pathname:"/",m,v,w);return qf(x.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(m)),x}function u(m){return typeof m=="string"?m:jx(m)}return{get index(){return s},get action(){return o},get location(){return c()},createHref:u,createURL(m){return new URL(u(m),"http://localhost")},encodeLocation(m){let v=typeof m=="string"?Yr(m):m;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(m,v){o=Jn.Push;let w=d(m,v);s+=1,i.splice(s,i.length,w),r&&a&&a({action:o,location:w,delta:1})},replace(m,v){o=Jn.Replace;let w=d(m,v);i[s]=w,r&&a&&a({action:o,location:w,delta:0})},go(m){o=Jn.Pop;let v=l(s+m),w=i[v];s=v,a&&a({action:o,location:w,delta:m})},listen(m){return a=m,()=>{a=null}}}}function Ne(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nx(){return Math.random().toString(36).substr(2,8)}function Ax(e,t,n,r){return n===void 0&&(n=null),La({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yr(t):t,{state:n,key:t&&t.key||r||Nx()})}function jx(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Vh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vh||(Vh={}));function Fx(e,t,n){return n===void 0&&(n="/"),$x(e,t,n,!1)}function $x(e,t,n,r){let i=typeof t=="string"?Yr(t):t,s=jy(i.pathname||"/",n);if(s==null)return null;let o=Ny(e);Ix(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let c=qx(s);a=Wx(o[l],c,r)}return a}function Ny(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Ne(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ir([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Ne(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Ny(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Vx(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Ay(s.path))i(s,o,l)}),t}function Ay(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Ay(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Ix(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Hx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Lx=/^:[\w-]+$/,Dx=3,Mx=2,zx=1,Bx=10,Ux=-2,Hh=e=>e==="*";function Vx(e,t){let n=e.split("/"),r=n.length;return n.some(Hh)&&(r+=Ux),t&&(r+=Mx),n.filter(i=>!Hh(i)).reduce((i,s)=>i+(Lx.test(s)?Dx:s===""?zx:Bx),r)}function Hx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Wx(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",u=Wh({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Wh({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:Ir([s,u.pathname]),pathnameBase:Jx(Ir([s,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(s=Ir([s,u.pathnameBase]))}return o}function Wh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Qx(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,d,u)=>{let{paramName:f,isOptional:m}=d;if(f==="*"){let w=a[u]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const v=a[u];return m&&!v?c[f]=void 0:c[f]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function Qx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function qx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return qf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function jy(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Kx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Yr(e):e;return{pathname:n?n.startsWith("/")?n:Yx(n,t):t,search:eS(r),hash:tS(i)}}function Yx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function lu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Gx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Xx(e,t){let n=Gx(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Zx(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Yr(e):(i=La({},e),Ne(!i.pathname||!i.pathname.includes("?"),lu("?","pathname","search",i)),Ne(!i.pathname||!i.pathname.includes("#"),lu("#","pathname","hash",i)),Ne(!i.search||!i.search.includes("#"),lu("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let u=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),u-=1;i.pathname=f.join("/")}a=u>=0?t[u]:"/"}let l=Kx(i,a),c=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const Ir=e=>e.join("/").replace(/\/\/+/g,"/"),Jx=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),eS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Fy=["post","put","patch","delete"];new Set(Fy);const rS=["get",...Fy];new Set(rS);/**
49
+ */function Dl(){return Dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dl.apply(this,arguments)}var Jn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Jn||(Jn={}));function Px(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((g,v)=>d(g,typeof g=="string"?null:g.state,v===0?"default":void 0));let s=a(n??i.length-1),o=Jn.Pop,l=null;function a(g){return Math.min(Math.max(g,0),i.length-1)}function c(){return i[s]}function d(g,v,w){v===void 0&&(v=null);let x=jx(i?c().pathname:"/",g,v,w);return Kf(x.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(g)),x}function u(g){return typeof g=="string"?g:Fx(g)}return{get index(){return s},get action(){return o},get location(){return c()},createHref:u,createURL(g){return new URL(u(g),"http://localhost")},encodeLocation(g){let v=typeof g=="string"?Yr(g):g;return{pathname:v.pathname||"",search:v.search||"",hash:v.hash||""}},push(g,v){o=Jn.Push;let w=d(g,v);s+=1,i.splice(s,i.length,w),r&&l&&l({action:o,location:w,delta:1})},replace(g,v){o=Jn.Replace;let w=d(g,v);i[s]=w,r&&l&&l({action:o,location:w,delta:0})},go(g){o=Jn.Pop;let v=a(s+g),w=i[v];s=v,l&&l({action:o,location:w,delta:g})},listen(g){return l=g,()=>{l=null}}}}function Pe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ax(){return Math.random().toString(36).substr(2,8)}function jx(e,t,n,r){return n===void 0&&(n=null),Dl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yr(t):t,{state:n,key:t&&t.key||r||Ax()})}function Fx(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var Hh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Hh||(Hh={}));function $x(e,t,n){return n===void 0&&(n="/"),Ix(e,t,n,!1)}function Ix(e,t,n,r){let i=typeof t=="string"?Yr(t):t,s=jg(i.pathname||"/",n);if(s==null)return null;let o=Pg(e);Lx(o);let l=null;for(let a=0;l==null&&a<o.length;++a){let c=Kx(s);l=Qx(o[a],c,r)}return l}function Pg(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(Pe(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let c=Ir([r,a.relativePath]),d=n.concat(a);s.children&&s.children.length>0&&(Pe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Pg(s.children,t,d,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:Hx(c,s.index),routesMeta:d})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let a of Ag(s.path))i(s,o,a)}),t}function Ag(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Ag(r.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),i&&l.push(...o),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function Lx(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Wx(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Dx=/^:[\w-]+$/,Mx=3,zx=2,Bx=1,Ux=10,Vx=-2,Wh=e=>e==="*";function Hx(e,t){let n=e.split("/"),r=n.length;return n.some(Wh)&&(r+=Vx),t&&(r+=zx),n.filter(i=>!Wh(i)).reduce((i,s)=>i+(Dx.test(s)?Mx:s===""?Bx:Ux),r)}function Wx(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Qx(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l<r.length;++l){let a=r[l],c=l===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",u=Qh({path:a.relativePath,caseSensitive:a.caseSensitive,end:c},d),f=a.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Qh({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:Ir([s,u.pathname]),pathnameBase:eS(Ir([s,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(s=Ir([s,u.pathnameBase]))}return o}function Qh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=qx(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((c,d,u)=>{let{paramName:f,isOptional:g}=d;if(f==="*"){let w=l[u]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const v=l[u];return g&&!v?c[f]=void 0:c[f]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:e}}function qx(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Kf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Kx(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function jg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Yx(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Yr(e):e;return{pathname:n?n.startsWith("/")?n:Gx(n,t):t,search:tS(r),hash:nS(i)}}function Gx(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function uu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Xx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Zx(e,t){let n=Xx(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Jx(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Yr(e):(i=Dl({},e),Pe(!i.pathname||!i.pathname.includes("?"),uu("?","pathname","search",i)),Pe(!i.pathname||!i.pathname.includes("#"),uu("#","pathname","hash",i)),Pe(!i.search||!i.search.includes("#"),uu("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let u=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),u-=1;i.pathname=f.join("/")}l=u>=0?t[u]:"/"}let a=Yx(i,l),c=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(c||d)&&(a.pathname+="/"),a}const Ir=e=>e.join("/").replace(/\/\/+/g,"/"),eS=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),tS=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,nS=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function rS(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Fg=["post","put","patch","delete"];new Set(Fg);const iS=["get",...Fg];new Set(iS);/**
50
50
  * React Router v6.28.0
51
51
  *
52
52
  * Copyright (c) Remix Software Inc.
@@ -55,7 +55,7 @@ Error generating stack: `+s.message+`
55
55
  * LICENSE.md file in the root directory of this source tree.
56
56
  *
57
57
  * @license MIT
58
- */function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ys.apply(this,arguments)}const Kf=S.createContext(null),iS=S.createContext(null),ol=S.createContext(null),al=S.createContext(null),Zi=S.createContext({outlet:null,matches:[],isDataRoute:!1}),$y=S.createContext(null);function ll(){return S.useContext(al)!=null}function Iy(){return ll()||Ne(!1),S.useContext(al).location}function Ly(e){S.useContext(ol).static||S.useLayoutEffect(e)}function sS(){let{isDataRoute:e}=S.useContext(Zi);return e?vS():oS()}function oS(){ll()||Ne(!1);let e=S.useContext(Kf),{basename:t,future:n,navigator:r}=S.useContext(ol),{matches:i}=S.useContext(Zi),{pathname:s}=Iy(),o=JSON.stringify(Xx(i,n.v7_relativeSplatPath)),a=S.useRef(!1);return Ly(()=>{a.current=!0}),S.useCallback(function(c,d){if(d===void 0&&(d={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let u=Zx(c,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Ir([t,u.pathname])),(d.replace?r.replace:r.push)(u,d.state,d)},[t,r,o,s,e])}function aS(e,t){return lS(e,t)}function lS(e,t,n,r){ll()||Ne(!1);let{navigator:i}=S.useContext(ol),{matches:s}=S.useContext(Zi),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Iy(),d;if(t){var u;let x=typeof t=="string"?Yr(t):t;l==="/"||(u=x.pathname)!=null&&u.startsWith(l)||Ne(!1),d=x}else d=c;let f=d.pathname||"/",m=f;if(l!=="/"){let x=l.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Fx(e,{pathname:m}),w=hS(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},a,x.params),pathname:Ir([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ir([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&w?S.createElement(al.Provider,{value:{location:Ys({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Jn.Pop}},w):w}function uS(){let e=gS(),t=nS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,null)}const cS=S.createElement(uS,null);class fS extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Zi.Provider,{value:this.props.routeContext},S.createElement($y.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function dS(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(Kf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Zi.Provider,{value:t},r)}function hS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=o.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);d>=0||Ne(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let u=o[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=d),u.route.id){let{loaderData:f,errors:m}=n,v=u.route.loader&&f[u.route.id]===void 0&&(!m||m[u.route.id]===void 0);if(u.route.lazy||v){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,u,f)=>{let m,v=!1,w=null,x=null;n&&(m=a&&u.route.id?a[u.route.id]:void 0,w=u.route.errorElement||cS,l&&(c<0&&f===0?(v=!0,x=null):c===f&&(v=!0,x=u.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,f+1)),h=()=>{let g;return m?g=w:v?g=x:u.route.Component?g=S.createElement(u.route.Component,null):u.route.element?g=u.route.element:g=d,S.createElement(dS,{match:u,routeContext:{outlet:d,matches:p,isDataRoute:n!=null},children:g})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?S.createElement(fS,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()},null)}var Dy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Dy||{}),Da=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Da||{});function pS(e){let t=S.useContext(Kf);return t||Ne(!1),t}function mS(e){let t=S.useContext(iS);return t||Ne(!1),t}function yS(e){let t=S.useContext(Zi);return t||Ne(!1),t}function My(e){let t=yS(),n=t.matches[t.matches.length-1];return n.route.id||Ne(!1),n.route.id}function gS(){var e;let t=S.useContext($y),n=mS(Da.UseRouteError),r=My(Da.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function vS(){let{router:e}=pS(Dy.UseNavigateStable),t=My(Da.UseNavigateStable),n=S.useRef(!1);return Ly(()=>{n.current=!0}),S.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ys({fromRouteId:t},s)))},[e,t])}const Qh={};function wS(e,t){Qh[t]||(Qh[t]=!0,console.warn(t))}const qh=(e,t,n)=>wS(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function xS(e,t){e!=null&&e.v7_startTransition||qh("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&qh("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const SS="startTransition",Kh=Sv[SS];function ES(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:s}=e,o=S.useRef();o.current==null&&(o.current=Px({initialEntries:r,initialIndex:i,v5Compat:!0}));let a=o.current,[l,c]=S.useState({action:a.action,location:a.location}),{v7_startTransition:d}=s||{},u=S.useCallback(f=>{d&&Kh?Kh(()=>c(f)):c(f)},[c,d]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.useEffect(()=>xS(s),[s]),S.createElement(_S,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}function Tc(e){Ne(!1)}function _S(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Jn.Pop,navigator:s,static:o=!1,future:a}=e;ll()&&Ne(!1);let l=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:l,navigator:s,static:o,future:Ys({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=Yr(r));let{pathname:d="/",search:u="",hash:f="",state:m=null,key:v="default"}=r,w=S.useMemo(()=>{let x=jy(d,l);return x==null?null:{location:{pathname:x,search:u,hash:f,state:m,key:v},navigationType:i}},[l,d,u,f,m,v,i]);return w==null?null:S.createElement(ol.Provider,{value:c},S.createElement(al.Provider,{children:n,value:w}))}function bS(e){let{children:t,location:n}=e;return aS(Oc(t),n)}new Promise(()=>{});function Oc(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let s=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Oc(r.props.children,s));return}r.type!==Tc&&Ne(!1),!r.props.index||!r.props.children||Ne(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Oc(r.props.children,s)),n.push(o)}),n}const kS={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Yh=e=>{let t;const n=new Set,r=(d,u)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const m=t;t=u??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(v=>v(t,m))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>c,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(kS?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,l);return l},CS=e=>e?Yh(e):Yh;var zy={exports:{}},By={},Uy={exports:{}},Vy={};/**
58
+ */function Ys(){return Ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ys.apply(this,arguments)}const Yf=S.createContext(null),sS=S.createContext(null),la=S.createContext(null),aa=S.createContext(null),Zi=S.createContext({outlet:null,matches:[],isDataRoute:!1}),$g=S.createContext(null);function ua(){return S.useContext(aa)!=null}function Ig(){return ua()||Pe(!1),S.useContext(aa).location}function Lg(e){S.useContext(la).static||S.useLayoutEffect(e)}function oS(){let{isDataRoute:e}=S.useContext(Zi);return e?wS():lS()}function lS(){ua()||Pe(!1);let e=S.useContext(Yf),{basename:t,future:n,navigator:r}=S.useContext(la),{matches:i}=S.useContext(Zi),{pathname:s}=Ig(),o=JSON.stringify(Zx(i,n.v7_relativeSplatPath)),l=S.useRef(!1);return Lg(()=>{l.current=!0}),S.useCallback(function(c,d){if(d===void 0&&(d={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let u=Jx(c,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Ir([t,u.pathname])),(d.replace?r.replace:r.push)(u,d.state,d)},[t,r,o,s,e])}function aS(e,t){return uS(e,t)}function uS(e,t,n,r){ua()||Pe(!1);let{navigator:i}=S.useContext(la),{matches:s}=S.useContext(Zi),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let c=Ig(),d;if(t){var u;let x=typeof t=="string"?Yr(t):t;a==="/"||(u=x.pathname)!=null&&u.startsWith(a)||Pe(!1),d=x}else d=c;let f=d.pathname||"/",g=f;if(a!=="/"){let x=a.replace(/^\//,"").split("/");g="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=$x(e,{pathname:g}),w=pS(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:Ir([a,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:Ir([a,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&w?S.createElement(aa.Provider,{value:{location:Ys({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Jn.Pop}},w):w}function cS(){let e=vS(),t=rS(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,null)}const fS=S.createElement(cS,null);class dS extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(Zi.Provider,{value:this.props.routeContext},S.createElement($g.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hS(e){let{routeContext:t,match:n,children:r}=e,i=S.useContext(Yf);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(Zi.Provider,{value:t},r)}function pS(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=o.findIndex(u=>u.route.id&&(l==null?void 0:l[u.route.id])!==void 0);d>=0||Pe(!1),o=o.slice(0,Math.min(o.length,d+1))}let a=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let u=o[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=d),u.route.id){let{loaderData:f,errors:g}=n,v=u.route.loader&&f[u.route.id]===void 0&&(!g||g[u.route.id]===void 0);if(u.route.lazy||v){a=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((d,u,f)=>{let g,v=!1,w=null,x=null;n&&(g=l&&u.route.id?l[u.route.id]:void 0,w=u.route.errorElement||fS,a&&(c<0&&f===0?(v=!0,x=null):c===f&&(v=!0,x=u.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,f+1)),p=()=>{let h;return g?h=w:v?h=x:u.route.Component?h=S.createElement(u.route.Component,null):u.route.element?h=u.route.element:h=d,S.createElement(hS,{match:u,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:h})};return n&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?S.createElement(dS,{location:n.location,revalidation:n.revalidation,component:w,error:g,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var Dg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Dg||{}),Ml=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ml||{});function mS(e){let t=S.useContext(Yf);return t||Pe(!1),t}function gS(e){let t=S.useContext(sS);return t||Pe(!1),t}function yS(e){let t=S.useContext(Zi);return t||Pe(!1),t}function Mg(e){let t=yS(),n=t.matches[t.matches.length-1];return n.route.id||Pe(!1),n.route.id}function vS(){var e;let t=S.useContext($g),n=gS(Ml.UseRouteError),r=Mg(Ml.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wS(){let{router:e}=mS(Dg.UseNavigateStable),t=Mg(Ml.UseNavigateStable),n=S.useRef(!1);return Lg(()=>{n.current=!0}),S.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ys({fromRouteId:t},s)))},[e,t])}const qh={};function xS(e,t){qh[t]||(qh[t]=!0,console.warn(t))}const Kh=(e,t,n)=>xS(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function SS(e,t){e!=null&&e.v7_startTransition||Kh("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),!(e!=null&&e.v7_relativeSplatPath)&&!t&&Kh("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const bS="startTransition",Yh=bv[bS];function ES(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:s}=e,o=S.useRef();o.current==null&&(o.current=Px({initialEntries:r,initialIndex:i,v5Compat:!0}));let l=o.current,[a,c]=S.useState({action:l.action,location:l.location}),{v7_startTransition:d}=s||{},u=S.useCallback(f=>{d&&Yh?Yh(()=>c(f)):c(f)},[c,d]);return S.useLayoutEffect(()=>l.listen(u),[l,u]),S.useEffect(()=>SS(s),[s]),S.createElement(_S,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l,future:s})}function Oc(e){Pe(!1)}function _S(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Jn.Pop,navigator:s,static:o=!1,future:l}=e;ua()&&Pe(!1);let a=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:a,navigator:s,static:o,future:Ys({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof r=="string"&&(r=Yr(r));let{pathname:d="/",search:u="",hash:f="",state:g=null,key:v="default"}=r,w=S.useMemo(()=>{let x=jg(d,a);return x==null?null:{location:{pathname:x,search:u,hash:f,state:g,key:v},navigationType:i}},[a,d,u,f,g,v,i]);return w==null?null:S.createElement(la.Provider,{value:c},S.createElement(aa.Provider,{children:n,value:w}))}function kS(e){let{children:t,location:n}=e;return aS(Rc(t),n)}new Promise(()=>{});function Rc(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let s=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Rc(r.props.children,s));return}r.type!==Oc&&Pe(!1),!r.props.index||!r.props.children||Pe(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Rc(r.props.children,s)),n.push(o)}),n}const CS={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Gh=e=>{let t;const n=new Set,r=(d,u)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const g=t;t=u??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(v=>v(t,g))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>c,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(CS?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=t=e(r,i,a);return a},TS=e=>e?Gh(e):Gh;var zg={exports:{}},Bg={},Ug={exports:{}},Vg={};/**
59
59
  * @license React
60
60
  * use-sync-external-store-shim.production.min.js
61
61
  *
@@ -63,7 +63,7 @@ Error generating stack: `+s.message+`
63
63
  *
64
64
  * This source code is licensed under the MIT license found in the
65
65
  * LICENSE file in the root directory of this source tree.
66
- */var Wi=S;function TS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var OS=typeof Object.is=="function"?Object.is:TS,RS=Wi.useState,PS=Wi.useEffect,NS=Wi.useLayoutEffect,AS=Wi.useDebugValue;function jS(e,t){var n=t(),r=RS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return NS(function(){i.value=n,i.getSnapshot=t,uu(i)&&s({inst:i})},[e,n,t]),PS(function(){return uu(i)&&s({inst:i}),e(function(){uu(i)&&s({inst:i})})},[e]),AS(n),n}function uu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!OS(e,n)}catch{return!0}}function FS(e,t){return t()}var $S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?FS:jS;Vy.useSyncExternalStore=Wi.useSyncExternalStore!==void 0?Wi.useSyncExternalStore:$S;Uy.exports=Vy;var IS=Uy.exports;/**
66
+ */var Wi=S;function OS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var RS=typeof Object.is=="function"?Object.is:OS,NS=Wi.useState,PS=Wi.useEffect,AS=Wi.useLayoutEffect,jS=Wi.useDebugValue;function FS(e,t){var n=t(),r=NS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return AS(function(){i.value=n,i.getSnapshot=t,cu(i)&&s({inst:i})},[e,n,t]),PS(function(){return cu(i)&&s({inst:i}),e(function(){cu(i)&&s({inst:i})})},[e]),jS(n),n}function cu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!RS(e,n)}catch{return!0}}function $S(e,t){return t()}var IS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$S:FS;Vg.useSyncExternalStore=Wi.useSyncExternalStore!==void 0?Wi.useSyncExternalStore:IS;Ug.exports=Vg;var LS=Ug.exports;/**
67
67
  * @license React
68
68
  * use-sync-external-store-shim/with-selector.production.min.js
69
69
  *
@@ -71,18 +71,18 @@ Error generating stack: `+s.message+`
71
71
  *
72
72
  * This source code is licensed under the MIT license found in the
73
73
  * LICENSE file in the root directory of this source tree.
74
- */var ul=S,LS=IS;function DS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var MS=typeof Object.is=="function"?Object.is:DS,zS=LS.useSyncExternalStore,BS=ul.useRef,US=ul.useEffect,VS=ul.useMemo,HS=ul.useDebugValue;By.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=BS(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=VS(function(){function l(m){if(!c){if(c=!0,d=m,m=r(m),i!==void 0&&o.hasValue){var v=o.value;if(i(v,m))return u=v}return u=m}if(v=u,MS(d,m))return v;var w=r(m);return i!==void 0&&i(v,w)?v:(d=m,u=w)}var c=!1,d,u,f=n===void 0?null:n;return[function(){return l(t())},f===null?void 0:function(){return l(f())}]},[t,n,r,i]);var a=zS(e,s[0],s[1]);return US(function(){o.hasValue=!0,o.value=a},[a]),HS(a),a};zy.exports=By;var WS=zy.exports;const QS=qi(WS),Hy={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:qS}=P,{useSyncExternalStoreWithSelector:KS}=QS;let Gh=!1;const YS=e=>e;function GS(e,t=YS,n){(Hy?"production":void 0)!=="production"&&n&&!Gh&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Gh=!0);const r=KS(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return qS(r),r}const Xh=e=>{(Hy?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?CS(e):e,n=(r,i)=>GS(t,r,i);return Object.assign(n,t),n},XS=e=>e?Xh(e):Xh,Ji=XS(e=>({widget:null,open:!1,setOpen:t=>e({open:t}),setWidget:t=>e({widget:t})})),ZS={primary:{solid:"lc-text-white lc-btn lc-bg-blue-500 lc-border-blue-500 hover:lc-text-white hover:lc-bg-blue-600 hover:lc-border-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-border-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-border-blue-600 active:lc-ring active:lc-ring-blue-100",soft:"lc-text-blue-500 lc-btn lc-bg-blue-100 hover:lc-text-white hover:lc-bg-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-ring active:lc-ring-blue-100",dashed:"lc-bg-white lc-border-dashed lc-text-blue-500 lc-btn lc-border-blue-500 hover:lc-text-blue-500 hover:lc-bg-blue-50 hover:lc-border-blue-600 focus:lc-text-blue-600 focus:lc-bg-blue-50 focus:lc-border-blue-600 active:lc-text-blue-600 active:lc-bg-blue-50 active:lc-border-blue-600",outline:"lc-bg-white lc-text-blue-500 lc-btn lc-border-blue-500 hover:lc-text-white hover:lc-bg-blue-600 hover:lc-border-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-border-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-border-blue-600 active:lc-ring active:lc-ring-blue-100",ghost:"lc-bg-white lc-text-blue-500 lc-btn hover:lc-text-blue-500 hover:lc-bg-blue-100 focus:lc-text-blue-500 focus:lc-bg-blue-100 active:lc-text-blue-500 active:lc-bg-blue-100"},red:{solid:"lc-text-white lc-btn lc-bg-red-500 lc-border-red-500 hover:lc-text-white hover:lc-bg-red-600 hover:lc-border-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-border-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-border-red-600 active:lc-ring active:lc-ring-red-100",soft:"lc-text-red-500 lc-btn lc-bg-red-100 hover:lc-text-white hover:lc-bg-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-ring active:lc-ring-red-100",dashed:"lc-bg-white lc-border-dashed lc-text-red-500 lc-btn lc-border-red-500 hover:lc-text-red-500 hover:lc-bg-red-50 hover:lc-border-red-600 focus:lc-text-red-600 focus:lc-bg-red-50 focus:lc-border-red-600 active:lc-text-red-600 active:lc-bg-red-50 active:lc-border-red-600",outline:"lc-bg-white lc-text-red-500 lc-btn lc-border-red-500 hover:lc-text-white hover:lc-bg-red-600 hover:lc-border-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-border-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-border-red-600 active:lc-ring active:lc-ring-red-100",ghost:"lc-bg-white lc-text-red-500 lc-btn hover:lc-text-red-500 hover:lc-bg-red-100 focus:lc-text-red-500 focus:lc-bg-red-100 active:lc-text-red-500 active:lc-bg-red-100"}},JS={xs:{default:"lc-py-1 lc-text-xs lc-px-1.5",rounded:"lc-p-1.5 lc-text-xs"},sm:{default:"lc-px-2 lc-py-1.5 lc-text-xs",rounded:"lc-p-2 lc-text-xs"},md:{default:"lc-px-2.5 lc-py-2 lc-text-sm",rounded:"lc-p-2.5 lc-text-xs"},lg:{default:"lc-px-3 lc-py-2.5",rounded:"lc-p-3"},xl:{default:"lc-px-4 lc-py-2.5 lc-text-15",rounded:"lc-p-4 lc-text-15"},"2xl":{default:"lc-px-5 lc-py-3 lc-text-15",rounded:"lc-p-5 lc-text-15"}};var Wy={exports:{}};/*!
74
+ */var ca=S,DS=LS;function MS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zS=typeof Object.is=="function"?Object.is:MS,BS=DS.useSyncExternalStore,US=ca.useRef,VS=ca.useEffect,HS=ca.useMemo,WS=ca.useDebugValue;Bg.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=US(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=HS(function(){function a(g){if(!c){if(c=!0,d=g,g=r(g),i!==void 0&&o.hasValue){var v=o.value;if(i(v,g))return u=v}return u=g}if(v=u,zS(d,g))return v;var w=r(g);return i!==void 0&&i(v,w)?v:(d=g,u=w)}var c=!1,d,u,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,i]);var l=BS(e,s[0],s[1]);return VS(function(){o.hasValue=!0,o.value=l},[l]),WS(l),l};zg.exports=Bg;var QS=zg.exports;const qS=qi(QS),Hg={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:KS}=N,{useSyncExternalStoreWithSelector:YS}=qS;let Xh=!1;const GS=e=>e;function XS(e,t=GS,n){(Hg?"production":void 0)!=="production"&&n&&!Xh&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Xh=!0);const r=YS(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return KS(r),r}const Zh=e=>{(Hg?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?TS(e):e,n=(r,i)=>XS(t,r,i);return Object.assign(n,t),n},ZS=e=>e?Zh(e):Zh,Ji=ZS(e=>({widget:null,open:!1,setOpen:t=>e({open:t}),setWidget:t=>e({widget:t})})),JS={primary:{solid:"lc-text-white lc-btn lc-bg-blue-500 lc-border-blue-500 hover:lc-text-white hover:lc-bg-blue-600 hover:lc-border-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-border-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-border-blue-600 active:lc-ring active:lc-ring-blue-100",soft:"lc-text-blue-500 lc-btn lc-bg-blue-100 hover:lc-text-white hover:lc-bg-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-ring active:lc-ring-blue-100",dashed:"lc-bg-white lc-border-dashed lc-text-blue-500 lc-btn lc-border-blue-500 hover:lc-text-blue-500 hover:lc-bg-blue-50 hover:lc-border-blue-600 focus:lc-text-blue-600 focus:lc-bg-blue-50 focus:lc-border-blue-600 active:lc-text-blue-600 active:lc-bg-blue-50 active:lc-border-blue-600",outline:"lc-bg-white lc-text-blue-500 lc-btn lc-border-blue-500 hover:lc-text-white hover:lc-bg-blue-600 hover:lc-border-blue-600 focus:lc-text-white focus:lc-bg-blue-600 focus:lc-border-blue-600 focus:lc-ring focus:lc-ring-blue-100 active:lc-text-white active:lc-bg-blue-600 active:lc-border-blue-600 active:lc-ring active:lc-ring-blue-100",ghost:"lc-bg-white lc-text-blue-500 lc-btn hover:lc-text-blue-500 hover:lc-bg-blue-100 focus:lc-text-blue-500 focus:lc-bg-blue-100 active:lc-text-blue-500 active:lc-bg-blue-100"},red:{solid:"lc-text-white lc-btn lc-bg-red-500 lc-border-red-500 hover:lc-text-white hover:lc-bg-red-600 hover:lc-border-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-border-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-border-red-600 active:lc-ring active:lc-ring-red-100",soft:"lc-text-red-500 lc-btn lc-bg-red-100 hover:lc-text-white hover:lc-bg-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-ring active:lc-ring-red-100",dashed:"lc-bg-white lc-border-dashed lc-text-red-500 lc-btn lc-border-red-500 hover:lc-text-red-500 hover:lc-bg-red-50 hover:lc-border-red-600 focus:lc-text-red-600 focus:lc-bg-red-50 focus:lc-border-red-600 active:lc-text-red-600 active:lc-bg-red-50 active:lc-border-red-600",outline:"lc-bg-white lc-text-red-500 lc-btn lc-border-red-500 hover:lc-text-white hover:lc-bg-red-600 hover:lc-border-red-600 focus:lc-text-white focus:lc-bg-red-600 focus:lc-border-red-600 focus:lc-ring focus:lc-ring-red-100 active:lc-text-white active:lc-bg-red-600 active:lc-border-red-600 active:lc-ring active:lc-ring-red-100",ghost:"lc-bg-white lc-text-red-500 lc-btn hover:lc-text-red-500 hover:lc-bg-red-100 focus:lc-text-red-500 focus:lc-bg-red-100 active:lc-text-red-500 active:lc-bg-red-100"}},eb={xs:{default:"lc-py-1 lc-text-xs lc-px-1.5",rounded:"lc-p-1.5 lc-text-xs"},sm:{default:"lc-px-2 lc-py-1.5 lc-text-xs",rounded:"lc-p-2 lc-text-xs"},md:{default:"lc-px-2.5 lc-py-2 lc-text-sm",rounded:"lc-p-2.5 lc-text-xs"},lg:{default:"lc-px-3 lc-py-2.5",rounded:"lc-p-3"},xl:{default:"lc-px-4 lc-py-2.5 lc-text-15",rounded:"lc-p-4 lc-text-15"},"2xl":{default:"lc-px-5 lc-py-3 lc-text-15",rounded:"lc-p-5 lc-text-15"}};var Wg={exports:{}};/*!
75
75
  Copyright (c) 2018 Jed Watson.
76
76
  Licensed under the MIT License (MIT), see
77
77
  http://jedwatson.github.io/classnames
78
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(s=i(s,r(a)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var a in s)t.call(s,a)&&s[a]&&(o=i(o,a));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Wy);var eE=Wy.exports;const qt=qi(eE);function Gs({children:e,type:t="button",variant:n="primary",kind:r="solid",size:i="md",rounded:s=!1,className:o,...a}){return b.jsx("button",{type:t,className:qt("lc-flex lc-items-center lc-justify-center",{"lc-rounded-full":s,"lc-rounded-md":!s},o,ZS[n][r],JS[i][s?"rounded":"default"]),...a,children:e})}function ut(){}ut.Home=function(t){return b.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:b.jsx("path",{d:"M3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a1 1 0 00.707-1.707l-9-9a.999.999 0 00-1.414 0l-9 9A1 1 0 003 13zm7 7v-5h4v5h-4zm2-15.586l6 6V15l.001 5H16v-5c0-1.103-.897-2-2-2h-4c-1.103 0-2 .897-2 2v5H6v-9.586l6-6z"})})};ut.Chat=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});ut.MessageTyping=({className:e="lc-size-5",...t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});ut.Check=function(t){return b.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",...t,children:b.jsx("path",{d:"M12.736 3.97a.733.733 0 011.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 01-1.065.02L3.217 8.384a.757.757 0 010-1.06.733.733 0 011.047 0l3.052 3.093 5.4-6.425a.247.247 0 01.02-.022z"})})};ut.Website=function(t){return b.jsxs("svg",{fill:"none",viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[b.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 7a1 1 0 00-1 1v8a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1h-4zm3 2h-2v6h2V9z",clipRule:"evenodd"}),b.jsx("path",{fill:"currentColor",d:"M6 7a1 1 0 000 2h4a1 1 0 100-2H6zM6 11a1 1 0 100 2h4a1 1 0 100-2H6zM5 16a1 1 0 011-1h4a1 1 0 110 2H6a1 1 0 01-1-1z"}),b.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 3a3 3 0 00-3 3v12a3 3 0 003 3h16a3 3 0 003-3V6a3 3 0 00-3-3H4zm16 2H4a1 1 0 00-1 1v12a1 1 0 001 1h16a1 1 0 001-1V6a1 1 0 00-1-1z",clipRule:"evenodd"})]})};ut.ArrowDown=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})});ut.XCircle=({className:e="lc-size-5",...t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})});ut.X=({className:e="lc-size-5",...t})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})});const dn=Object.create(null);dn.open="0";dn.close="1";dn.ping="2";dn.pong="3";dn.message="4";dn.upgrade="5";dn.noop="6";const sa=Object.create(null);Object.keys(dn).forEach(e=>{sa[dn[e]]=e});const Rc={type:"error",data:"parser error"},Qy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qy=typeof ArrayBuffer=="function",Ky=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Yf=({type:e,data:t},n,r)=>Qy&&t instanceof Blob?n?r(t):Zh(t,r):qy&&(t instanceof ArrayBuffer||Ky(t))?n?r(t):Zh(new Blob([t]),r):r(dn[e]+(t||"")),Zh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Jh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let cu;function tE(e,t){if(Qy&&e.data instanceof Blob)return e.data.arrayBuffer().then(Jh).then(t);if(qy&&(e.data instanceof ArrayBuffer||Ky(e.data)))return t(Jh(e.data));Yf(e,!1,n=>{cu||(cu=new TextEncoder),t(cu.encode(n))})}const ep="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ws=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<ep.length;e++)ws[ep.charCodeAt(e)]=e;const nE=e=>{let t=e.length*.75,n=e.length,r,i=0,s,o,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),d=new Uint8Array(c);for(r=0;r<n;r+=4)s=ws[e.charCodeAt(r)],o=ws[e.charCodeAt(r+1)],a=ws[e.charCodeAt(r+2)],l=ws[e.charCodeAt(r+3)],d[i++]=s<<2|o>>4,d[i++]=(o&15)<<4|a>>2,d[i++]=(a&3)<<6|l&63;return c},rE=typeof ArrayBuffer=="function",Gf=(e,t)=>{if(typeof e!="string")return{type:"message",data:Yy(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:iE(e.substring(1),t)}:sa[n]?e.length>1?{type:sa[n],data:e.substring(1)}:{type:sa[n]}:Rc},iE=(e,t)=>{if(rE){const n=nE(e);return Yy(n,t)}else return{base64:!0,data:e}},Yy=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Gy="",sE=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,o)=>{Yf(s,!1,a=>{r[o]=a,++i===n&&t(r.join(Gy))})})},oE=(e,t)=>{const n=e.split(Gy),r=[];for(let i=0;i<n.length;i++){const s=Gf(n[i],t);if(r.push(s),s.type==="error")break}return r};function aE(){return new TransformStream({transform(e,t){tE(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let fu;function zo(e){return e.reduce((t,n)=>t+n.length,0)}function Bo(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function lE(e,t){fu||(fu=new TextDecoder);const n=[];let r=0,i=-1,s=!1;return new TransformStream({transform(o,a){for(n.push(o);;){if(r===0){if(zo(n)<1)break;const l=Bo(n,1);s=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(zo(n)<2)break;const l=Bo(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(zo(n)<8)break;const l=Bo(n,8),c=new DataView(l.buffer,l.byteOffset,l.length),d=c.getUint32(0);if(d>Math.pow(2,21)-1){a.enqueue(Rc);break}i=d*Math.pow(2,32)+c.getUint32(4),r=3}else{if(zo(n)<i)break;const l=Bo(n,i);a.enqueue(Gf(s?l:fu.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(Rc);break}}}})}const Xy=4;function Ee(e){if(e)return uE(e)}function uE(e){for(var t in Ee.prototype)e[t]=Ee.prototype[t];return e}Ee.prototype.on=Ee.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ee.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ee.prototype.off=Ee.prototype.removeListener=Ee.prototype.removeAllListeners=Ee.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Ee.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};Ee.prototype.emitReserved=Ee.prototype.emit;Ee.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ee.prototype.hasListeners=function(e){return!!this.listeners(e).length};const cl=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Nt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),cE="arraybuffer";function Zy(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const fE=Nt.setTimeout,dE=Nt.clearTimeout;function fl(e,t){t.useNativeTimers?(e.setTimeoutFn=fE.bind(Nt),e.clearTimeoutFn=dE.bind(Nt)):(e.setTimeoutFn=Nt.setTimeout.bind(Nt),e.clearTimeoutFn=Nt.clearTimeout.bind(Nt))}const hE=1.33;function pE(e){return typeof e=="string"?mE(e):Math.ceil((e.byteLength||e.size)*hE)}function mE(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Jy(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yE(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function gE(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let s=n[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class vE extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Xf extends Ee{constructor(t){super(),this.writable=!1,fl(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new vE(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Gf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=yE(t);return n.length?"?"+n:""}}class wE extends Xf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};oE(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,sE(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Jy()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let eg=!1;try{eg=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const xE=eg;function SE(){}class EE extends wE{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class cn extends Ee{constructor(t,n,r){super(),this.createRequest=t,fl(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=Zy(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=cn.requestsCount++,cn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=SE,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete cn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}cn.requestsCount=0;cn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",tp);else if(typeof addEventListener=="function"){const e="onpagehide"in Nt?"pagehide":"unload";addEventListener(e,tp,!1)}}function tp(){for(let e in cn.requests)cn.requests.hasOwnProperty(e)&&cn.requests[e].abort()}const _E=function(){const e=tg({xdomain:!1});return e&&e.responseType!==null}();class bE extends EE{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=_E&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new cn(tg,this.uri(),t)}}function tg(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||xE))return new XMLHttpRequest}catch{}if(!t)try{return new Nt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ng=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class kE extends Xf{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=ng?{}:Zy(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;Yf(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&cl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Jy()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const du=Nt.WebSocket||Nt.MozWebSocket;class CE extends kE{createSocket(t,n,r){return ng?new du(t,n,r):n?new du(t,n):new du(t)}doWrite(t,n){this.ws.send(n)}}class TE extends Xf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=lE(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=aE();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),s())}).catch(a=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&cl(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const OE={websocket:CE,webtransport:TE,polling:bE},RE=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,PE=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pc(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=RE.exec(e||""),s={},o=14;for(;o--;)s[PE[o]]=i[o]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=NE(s,s.path),s.queryKey=AE(s,s.query),s}function NE(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function AE(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const Nc=typeof addEventListener=="function"&&typeof removeEventListener=="function",oa=[];Nc&&addEventListener("offline",()=>{oa.forEach(e=>e())},!1);class lr extends Ee{constructor(t,n){if(super(),this.binaryType=cE,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Pc(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Pc(n.host).host);fl(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=gE(this.opts.query)),Nc&&(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"})},oa.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Xy,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&lr.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",lr.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=pE(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,cl(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(lr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){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(),Nc&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=oa.indexOf(this._offlineEventListener);r!==-1&&oa.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}lr.protocol=Xy;class jE extends lr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;lr.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;lr.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function s(){r||(r=!0,d(),n.close(),n=null)}const o=u=>{const f=new Error("probe error: "+u);f.transport=n.name,s(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function c(u){n&&u.name!==n.name&&s()}const d=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let FE=class extends jE{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>OE[i]).filter(i=>!!i)),super(t,r)}};function $E(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Pc(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const IE=typeof ArrayBuffer=="function",LE=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,rg=Object.prototype.toString,DE=typeof Blob=="function"||typeof Blob<"u"&&rg.call(Blob)==="[object BlobConstructor]",ME=typeof File=="function"||typeof File<"u"&&rg.call(File)==="[object FileConstructor]";function Zf(e){return IE&&(e instanceof ArrayBuffer||LE(e))||DE&&e instanceof Blob||ME&&e instanceof File}function aa(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(aa(e[n]))return!0;return!1}if(Zf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return aa(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&aa(e[n]))return!0;return!1}function zE(e){const t=[],n=e.data,r=e;return r.data=Ac(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Ac(e,t){if(!e)return e;if(Zf(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Ac(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Ac(e[r],t));return n}return e}function BE(e,t){return e.data=jc(e.data,t),delete e.attachments,e}function jc(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=jc(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=jc(e[n],t));return e}const UE=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],VE=5;var X;(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"})(X||(X={}));class HE{constructor(t){this.replacer=t}encode(t){return(t.type===X.EVENT||t.type===X.ACK)&&aa(t)?this.encodeAsBinary({type:t.type===X.EVENT?X.BINARY_EVENT:X.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===X.BINARY_EVENT||t.type===X.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=zE(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function np(e){return Object.prototype.toString.call(e)==="[object Object]"}class Jf extends Ee{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===X.BINARY_EVENT;r||n.type===X.BINARY_ACK?(n.type=r?X.EVENT:X.ACK,this.reconstructor=new WE(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Zf(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(X[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===X.BINARY_EVENT||r.type===X.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(s,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const s=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(Jf.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case X.CONNECT:return np(n);case X.DISCONNECT:return n===void 0;case X.CONNECT_ERROR:return typeof n=="string"||np(n);case X.EVENT:case X.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&UE.indexOf(n[0])===-1);case X.ACK:case X.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class WE{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=BE(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const QE=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Jf,Encoder:HE,get PacketType(){return X},protocol:VE},Symbol.toStringTag,{value:"Module"}));function Vt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const qE=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ig extends Ee{constructor(t,n,r){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=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Vt(t,"open",this.onopen.bind(this)),Vt(t,"packet",this.onpacket.bind(this)),Vt(t,"error",this.onerror.bind(this)),Vt(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,s;if(qE.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:X.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,u=n.pop();this._registerAckCallback(d,u),o.id=d}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i),o=(...a)=>{this.io.clearTimeoutFn(s),n.apply(this,a)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((r,i)=>{const s=(o,a)=>o?i(o):r(a);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...s)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:X.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case X.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 X.EVENT:case X.BINARY_EVENT:this.onevent(t);break;case X.ACK:case X.BINARY_ACK:this.onack(t);break;case X.DISCONNECT:this.ondisconnect();break;case X.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:X.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:X.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function es(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}es.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};es.prototype.reset=function(){this.attempts=0};es.prototype.setMin=function(e){this.ms=e};es.prototype.setMax=function(e){this.max=e};es.prototype.setJitter=function(e){this.jitter=e};class Fc extends Ee{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,fl(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new es({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||QE;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new FE(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Vt(n,"open",function(){r.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},o=Vt(n,"error",s);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Vt(t,"ping",this.onping.bind(this)),Vt(t,"data",this.ondata.bind(this)),Vt(t,"error",this.onerror.bind(this)),Vt(t,"close",this.onclose.bind(this)),Vt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){cl(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new ig(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ds={};function la(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=$E(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,o=ds[i]&&s in ds[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return a?l=new Fc(r,t):(ds[i]||(ds[i]=new Fc(r,t)),l=ds[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(la,{Manager:Fc,Socket:ig,io:la,connect:la});const hu=e=>{const t=document.cookie.split(";").find(n=>n.includes(e));return t?t.split("=")[1]:null},sg=S.createContext(null),uo=()=>S.useContext(sg),KE=({children:e})=>{const[t,n]=S.useState(null),[r,i]=S.useState(!1),[s,o]=S.useState({}),a=()=>{const m=la(Hw,{transports:["websocket"],auth:{customer_token:hu("customer_token"),device_id:hu("device_id"),customer_refresh_token:hu("customer_refresh_token")}});m.on("error",v=>{console.error("Websocket error",v)}),m.on("connect",()=>{n(m),i(!0)})},l=()=>{t&&(t.connect(),i(!0))},c=()=>{t&&(t.disconnect(),i(!1))},d=(m,v)=>{t&&(t.on(m,w=>{v(w)}),o({...s,[m]:v}))},u=m=>{t&&s[m]&&(t.off(m,s[m]),delete s[m])},f=(m,v,w)=>{t&&t.emit(m,v,w)};return b.jsx(sg.Provider,{value:{socket:t,connected:r,events:s,connect:a,reconnect:l,disconnect:c,on:d,off:u,emit:f},children:e})};var fn=(e=>(e.ChatView="chat:user:view",e.ChatClose="chat:user:close",e.MessageList="message:list",e.MessageCreate="message:create",e.MessageTyping="message:typing",e.WidgetOpen="widget:open",e.WidgetClose="widget:close",e.PageChange="page-change",e))(fn||{}),Qt=(e=>(e.MessageAgentCreate="message:agent:create",e.MessageAgentTyping="message:agent:typing",e.Banned="banned",e.ChatUserClose="chat:user:close",e.ChatUserAssignee="chat:user:assignee",e))(Qt||{});const ed=e=>{const t=sS(),n=(r,i)=>{var o;const s=((o=pO.find(a=>a.name===r))==null?void 0:o.path)??"/";return typeof i=="object"&&s.includes(":")?Object.entries(i).reduce((a,[l,c])=>a.replace(`:${l}`,c),s):i?`${s}?${i}`:s};return{push:(r,i)=>{t(n(r,i),e)},path:n}},YE=()=>Cx({mutationFn:e=>sl(`clients/${e.client_id}/chats`,{method:"POST",body:JSON.stringify({...e,client_id:void 0})})}),GE=e=>sl(`clients/${e}/chats`),Ma=e=>sl(`clients/${e}/chats`,{method:"DELETE"});function og({children:e,defaultOpen:t}){const n=uo(),{open:r,setOpen:i,widget:s}=Ji(),o=ed(),a=()=>{i(!0),n&&n.emit(fn.WidgetOpen,{})},l=()=>{i(!1),n&&n.emit(fn.WidgetClose,{})},c=()=>{i(!1),Ma(s.client_id),o.push("registration")},d=async()=>{i(!1),await Ma(s.client_id),o.push("registration")};return S.useEffect(()=>{if(t&&i(!0),!(!n||!s))return n.on(Qt.Banned,c),n.on(Qt.ChatUserClose,d),()=>{n.off(Qt.Banned),n.off(Qt.ChatUserClose)}},[]),b.jsxs("section",{className:"lc-relative lc-w-full lc-h-full",children:[r&&b.jsx("div",{className:"lc-w-86 lc-h-[32rem] lc-absolute lc-bottom-8 lc-right-8 lc-z-[300]",children:e}),b.jsxs("div",{className:"lc-absolute lc-bottom-0 lc-right-0 lc-z-[400]",children:[!r&&b.jsx(Gs,{size:"lg",rounded:!0,onClick:a,children:b.jsx(ut.Chat,{className:"lc-size-6"})}),r&&b.jsx(Gs,{size:"lg",rounded:!0,onClick:l,children:b.jsx(ut.X,{className:"lc-size-6"})})]})]})}function Gr(e){this._maxSize=e,this.clear()}Gr.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Gr.prototype.get=function(e){return this._values[e]};Gr.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var XE=/[^.^\]^[]+|(?=\[\]|\.\.)/g,ag=/^\d+$/,ZE=/^\d/,JE=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,e_=/^\s*(['"]?)(.*?)(\1)\s*$/,td=512,rp=new Gr(td),ip=new Gr(td),sp=new Gr(td),Lr={Cache:Gr,split:$c,normalizePath:pu,setter:function(e){var t=pu(e);return ip.get(e)||ip.set(e,function(r,i){for(var s=0,o=t.length,a=r;s<o-1;){var l=t[s];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;a=a[t[s++]]}a[t[s]]=i})},getter:function(e,t){var n=pu(e);return sp.get(e)||sp.set(e,function(i){for(var s=0,o=n.length;s<o;)if(i!=null||!t)i=i[n[s++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(nd(n)||ag.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){t_(Array.isArray(e)?e:$c(e),t,n)}};function pu(e){return rp.get(e)||rp.set(e,$c(e).map(function(t){return t.replace(e_,"$2")}))}function $c(e){return e.match(XE)||[""]}function t_(e,t,n){var r=e.length,i,s,o,a;for(s=0;s<r;s++)i=e[s],i&&(i_(i)&&(i='"'+i+'"'),a=nd(i),o=!a&&/^\d+$/.test(i),t.call(n,i,a,o,s,e))}function nd(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function n_(e){return e.match(ZE)&&!e.match(ag)}function r_(e){return JE.test(e)}function i_(e){return!nd(e)&&(n_(e)||r_(e))}const s_=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,dl=e=>e.match(s_)||[],hl=e=>e[0].toUpperCase()+e.slice(1),rd=(e,t)=>dl(e).join(t).toLowerCase(),lg=e=>dl(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),o_=e=>hl(lg(e)),a_=e=>rd(e,"_"),l_=e=>rd(e,"-"),u_=e=>hl(rd(e," ")),c_=e=>dl(e).map(hl).join(" ");var mu={words:dl,upperFirst:hl,camelCase:lg,pascalCase:o_,snakeCase:a_,kebabCase:l_,sentenceCase:u_,titleCase:c_},id={exports:{}};id.exports=function(e){return ug(f_(e),e)};id.exports.array=ug;function ug(e,t){var n=e.length,r=new Array(n),i={},s=n,o=d_(t),a=h_(e);for(t.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||l(e[s],s,new Set);return r;function l(c,d,u){if(u.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[d]){i[d]=!0;var m=o.get(c)||new Set;if(m=Array.from(m),d=m.length){u.add(c);do{var v=m[--d];l(v,a.get(v),u)}while(d);u.delete(c)}r[--n]=c}}}function f_(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function d_(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function h_(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var p_=id.exports;const m_=qi(p_),y_=Object.prototype.toString,g_=Error.prototype.toString,v_=RegExp.prototype.toString,w_=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",x_=/^Symbol\((.*)\)(.*)$/;function S_(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function op(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return S_(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return w_.call(e).replace(x_,"Symbol($1)");const r=y_.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+g_.call(e)+"]":r==="RegExp"?v_.call(e):null}function ur(e,t){let n=op(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=op(this[r],t);return s!==null?s:i},2)}function cg(e){return e==null?[]:[].concat(e)}let fg,dg,hg,E_=/\$\{\s*(\w+)\s*\}/g;fg=Symbol.toStringTag;class ap{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[fg]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],cg(t).forEach(s=>{if(it.isError(s)){this.errors.push(...s.errors);const o=s.inner.length?s.inner:[s];this.inner.push(...o)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}dg=Symbol.hasInstance;hg=Symbol.toStringTag;class it extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(E_,(i,s)=>ur(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,s){const o=new ap(t,n,r,i);if(s)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[hg]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,it)}static[dg](t){return ap[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let tn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${ur(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ur(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${ur(n,!0)}\``+i}},Je={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},__={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Ic={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},b_={isValue:"${path} field must be ${value}"},ua={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},k_={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},C_={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${ur(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${ur(n,!0)}\``}return it.formatError(tn.notType,e)}};Object.assign(Object.create(null),{mixed:tn,string:Je,number:__,date:Ic,object:ua,array:k_,boolean:b_,tuple:C_});const sd=e=>e&&e.__isYupSchema__;class za{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,o=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new za(t,(a,l)=>{var c;let d=o(...a)?i:s;return(c=d==null?void 0:d(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!sd(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const Uo={context:"$",value:"."};class Xr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Uo.context,this.isValue=this.key[0]===Uo.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Uo.context:this.isValue?Uo.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Lr.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Xr.prototype.__isYupRef=!0;const Cr=e=>e==null;function ii(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},a,l){const{name:c,test:d,params:u,message:f,skipAbsent:m}=e;let{parent:v,context:w,abortEarly:x=o.spec.abortEarly,disableStackTrace:p=o.spec.disableStackTrace}=i;function h(B){return Xr.isRef(B)?B.getValue(n,v,w):B}function g(B={}){const se=Object.assign({value:n,originalValue:s,label:o.spec.label,path:B.path||r,spec:o.spec,disableStackTrace:B.disableStackTrace||p},u,B.params);for(const Ve of Object.keys(se))se[Ve]=h(se[Ve]);const oe=new it(it.formatError(B.message||f,se),n,se.path,B.type||c,se.disableStackTrace);return oe.params=se,oe}const _=x?a:l;let T={path:r,parent:v,type:c,from:i.from,createError:g,resolve:h,options:i,originalValue:s,schema:o};const C=B=>{it.isError(B)?_(B):B?l(null):_(g())},k=B=>{it.isError(B)?_(B):a(B)};if(m&&Cr(n))return C(!0);let I;try{var D;if(I=d.call(T,n,T),typeof((D=I)==null?void 0:D.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${T.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(I).then(C,k)}}catch(B){k(B);return}C(I)}return t.OPTIONS=e,t}function T_(e,t,n,r=n){let i,s,o;return t?(Lr.forEach(t,(a,l,c)=>{let d=l?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:i,value:n});let u=e.type==="tuple",f=c?parseInt(d,10):0;if(e.innerType||u){if(u&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[f],e=u?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[d],e=e.fields[d]}s=d,o=l?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:s}):{parent:i,parentPath:t,schema:e}}class Ba extends Set{describe(){const t=[];for(const n of this.values())t.push(Xr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Ba(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function gi(e,t=new Map){if(sd(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=gi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,gi(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(gi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=gi(i,t)}else throw Error(`Unable to clone ${e}`);return n}class hn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Ba,this._blacklist=new Ba,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(tn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=gi(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(o=>{s.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,s;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(s=t.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(i&&Cr(s))return s;let o=ur(t),a=ur(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
78
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(s=i(s,r(l)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var l in s)t.call(s,l)&&s[l]&&(o=i(o,l));return o}function i(s,o){return o?s?s+" "+o:s+o:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Wg);var tb=Wg.exports;const qt=qi(tb);function Gs({children:e,type:t="button",variant:n="primary",kind:r="solid",size:i="md",rounded:s=!1,className:o,...l}){return E.jsx("button",{type:t,className:qt("lc-flex lc-items-center lc-justify-center",{"lc-rounded-full":s,"lc-rounded-md":!s},o,JS[n][r],eb[i][s?"rounded":"default"]),...l,children:e})}function Ve(){}Ve.Home=function(t){return E.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:E.jsx("path",{d:"M3 13h1v7c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-7h1a1 1 0 00.707-1.707l-9-9a.999.999 0 00-1.414 0l-9 9A1 1 0 003 13zm7 7v-5h4v5h-4zm2-15.586l6 6V15l.001 5H16v-5c0-1.103-.897-2-2-2h-4c-1.103 0-2 .897-2 2v5H6v-9.586l6-6z"})})};Ve.Chat=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 8.25h9m-9 3H12m-9.75 1.51c0 1.6 1.123 2.994 2.707 3.227 1.129.166 2.27.293 3.423.379.35.026.67.21.865.501L12 21l2.755-4.133a1.14 1.14 0 0 1 .865-.501 48.172 48.172 0 0 0 3.423-.379c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});Ve.MessageTyping=({className:e="lc-size-5",...t})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 9.75a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375m-13.5 3.01c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.184-4.183a1.14 1.14 0 0 1 .778-.332 48.294 48.294 0 0 0 5.83-.498c1.585-.233 2.708-1.626 2.708-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0 0 12 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018Z"})});Ve.Check=function(t){return E.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",...t,children:E.jsx("path",{d:"M12.736 3.97a.733.733 0 011.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 01-1.065.02L3.217 8.384a.757.757 0 010-1.06.733.733 0 011.047 0l3.052 3.093 5.4-6.425a.247.247 0 01.02-.022z"})})};Ve.Website=function(t){return E.jsxs("svg",{fill:"none",viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 7a1 1 0 00-1 1v8a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1h-4zm3 2h-2v6h2V9z",clipRule:"evenodd"}),E.jsx("path",{fill:"currentColor",d:"M6 7a1 1 0 000 2h4a1 1 0 100-2H6zM6 11a1 1 0 100 2h4a1 1 0 100-2H6zM5 16a1 1 0 011-1h4a1 1 0 110 2H6a1 1 0 01-1-1z"}),E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 3a3 3 0 00-3 3v12a3 3 0 003 3h16a3 3 0 003-3V6a3 3 0 00-3-3H4zm16 2H4a1 1 0 00-1 1v12a1 1 0 001 1h16a1 1 0 001-1V6a1 1 0 00-1-1z",clipRule:"evenodd"})]})};Ve.ArrowDown=e=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})});Ve.XCircle=({className:e="lc-size-5",...t})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})});Ve.X=({className:e="lc-size-5",...t})=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:e,...t,children:E.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})});const dn=Object.create(null);dn.open="0";dn.close="1";dn.ping="2";dn.pong="3";dn.message="4";dn.upgrade="5";dn.noop="6";const sl=Object.create(null);Object.keys(dn).forEach(e=>{sl[dn[e]]=e});const Nc={type:"error",data:"parser error"},Qg=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",qg=typeof ArrayBuffer=="function",Kg=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Gf=({type:e,data:t},n,r)=>Qg&&t instanceof Blob?n?r(t):Jh(t,r):qg&&(t instanceof ArrayBuffer||Kg(t))?n?r(t):Jh(new Blob([t]),r):r(dn[e]+(t||"")),Jh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function ep(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let fu;function nb(e,t){if(Qg&&e.data instanceof Blob)return e.data.arrayBuffer().then(ep).then(t);if(qg&&(e.data instanceof ArrayBuffer||Kg(e.data)))return t(ep(e.data));Gf(e,!1,n=>{fu||(fu=new TextEncoder),t(fu.encode(n))})}const tp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ws=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<tp.length;e++)ws[tp.charCodeAt(e)]=e;const rb=e=>{let t=e.length*.75,n=e.length,r,i=0,s,o,l,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),d=new Uint8Array(c);for(r=0;r<n;r+=4)s=ws[e.charCodeAt(r)],o=ws[e.charCodeAt(r+1)],l=ws[e.charCodeAt(r+2)],a=ws[e.charCodeAt(r+3)],d[i++]=s<<2|o>>4,d[i++]=(o&15)<<4|l>>2,d[i++]=(l&3)<<6|a&63;return c},ib=typeof ArrayBuffer=="function",Xf=(e,t)=>{if(typeof e!="string")return{type:"message",data:Yg(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:sb(e.substring(1),t)}:sl[n]?e.length>1?{type:sl[n],data:e.substring(1)}:{type:sl[n]}:Nc},sb=(e,t)=>{if(ib){const n=rb(e);return Yg(n,t)}else return{base64:!0,data:e}},Yg=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Gg="",ob=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,o)=>{Gf(s,!1,l=>{r[o]=l,++i===n&&t(r.join(Gg))})})},lb=(e,t)=>{const n=e.split(Gg),r=[];for(let i=0;i<n.length;i++){const s=Xf(n[i],t);if(r.push(s),s.type==="error")break}return r};function ab(){return new TransformStream({transform(e,t){nb(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let du;function zo(e){return e.reduce((t,n)=>t+n.length,0)}function Bo(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ub(e,t){du||(du=new TextDecoder);const n=[];let r=0,i=-1,s=!1;return new TransformStream({transform(o,l){for(n.push(o);;){if(r===0){if(zo(n)<1)break;const a=Bo(n,1);s=(a[0]&128)===128,i=a[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(zo(n)<2)break;const a=Bo(n,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),r=3}else if(r===2){if(zo(n)<8)break;const a=Bo(n,8),c=new DataView(a.buffer,a.byteOffset,a.length),d=c.getUint32(0);if(d>Math.pow(2,21)-1){l.enqueue(Nc);break}i=d*Math.pow(2,32)+c.getUint32(4),r=3}else{if(zo(n)<i)break;const a=Bo(n,i);l.enqueue(Xf(s?a:du.decode(a),t)),r=0}if(i===0||i>e){l.enqueue(Nc);break}}}})}const Xg=4;function be(e){if(e)return cb(e)}function cb(e){for(var t in be.prototype)e[t]=be.prototype[t];return e}be.prototype.on=be.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};be.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};be.prototype.off=be.prototype.removeListener=be.prototype.removeAllListeners=be.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};be.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};be.prototype.emitReserved=be.prototype.emit;be.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};be.prototype.hasListeners=function(e){return!!this.listeners(e).length};const fa=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Pt=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),fb="arraybuffer";function Zg(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const db=Pt.setTimeout,hb=Pt.clearTimeout;function da(e,t){t.useNativeTimers?(e.setTimeoutFn=db.bind(Pt),e.clearTimeoutFn=hb.bind(Pt)):(e.setTimeoutFn=Pt.setTimeout.bind(Pt),e.clearTimeoutFn=Pt.clearTimeout.bind(Pt))}const pb=1.33;function mb(e){return typeof e=="string"?gb(e):Math.ceil((e.byteLength||e.size)*pb)}function gb(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Jg(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yb(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function vb(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let s=n[r].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}class wb extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Zf extends be{constructor(t){super(),this.writable=!1,da(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new wb(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=Xf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=yb(t);return n.length?"?"+n:""}}class xb extends Zf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};lb(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,ob(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Jg()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let ey=!1;try{ey=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Sb=ey;function bb(){}class Eb extends xb{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class cn extends be{constructor(t,n,r){super(),this.createRequest=t,da(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=Zg(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=cn.requestsCount++,cn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=bb,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete cn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}cn.requestsCount=0;cn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",np);else if(typeof addEventListener=="function"){const e="onpagehide"in Pt?"pagehide":"unload";addEventListener(e,np,!1)}}function np(){for(let e in cn.requests)cn.requests.hasOwnProperty(e)&&cn.requests[e].abort()}const _b=function(){const e=ty({xdomain:!1});return e&&e.responseType!==null}();class kb extends Eb{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=_b&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new cn(ty,this.uri(),t)}}function ty(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Sb))return new XMLHttpRequest}catch{}if(!t)try{return new Pt[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ny=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Cb extends Zf{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=ny?{}:Zg(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;Gf(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&fa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Jg()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const hu=Pt.WebSocket||Pt.MozWebSocket;class Tb extends Cb{createSocket(t,n,r){return ny?new hu(t,n,r):n?new hu(t,n):new hu(t)}doWrite(t,n){this.ws.send(n)}}class Ob extends Zf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=ub(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=ab();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const s=()=>{r.read().then(({done:l,value:a})=>{l||(this.onPacket(a),s())}).catch(l=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&fa(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Rb={websocket:Tb,webtransport:Ob,polling:kb},Nb=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Pb=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pc(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=Nb.exec(e||""),s={},o=14;for(;o--;)s[Pb[o]]=i[o]||"";return n!=-1&&r!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Ab(s,s.path),s.queryKey=jb(s,s.query),s}function Ab(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function jb(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const Ac=typeof addEventListener=="function"&&typeof removeEventListener=="function",ol=[];Ac&&addEventListener("offline",()=>{ol.forEach(e=>e())},!1);class ar extends be{constructor(t,n){if(super(),this.binaryType=fb,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=Pc(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=Pc(n.host).host);da(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),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},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=vb(this.opts.query)),Ac&&(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"})},ol.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Xg,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&ar.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",ar.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),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 t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=mb(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,fa(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:t,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(ar.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){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(),Ac&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=ol.indexOf(this._offlineEventListener);r!==-1&&ol.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}ar.protocol=Xg;class Fb extends ar{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;ar.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ar.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(d(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function s(){r||(r=!0,d(),n.close(),n=null)}const o=u=>{const f=new Error("probe error: "+u);f.transport=n.name,s(),this.emitReserved("upgradeError",f)};function l(){o("transport closed")}function a(){o("socket closed")}function c(u){n&&u.name!==n.name&&s()}const d=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",l),this.off("close",a),this.off("upgrading",c)};n.once("open",i),n.once("error",o),n.once("close",l),this.once("close",a),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let $b=class extends Fb{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>Rb[i]).filter(i=>!!i)),super(t,r)}};function Ib(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Pc(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+t,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const Lb=typeof ArrayBuffer=="function",Db=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ry=Object.prototype.toString,Mb=typeof Blob=="function"||typeof Blob<"u"&&ry.call(Blob)==="[object BlobConstructor]",zb=typeof File=="function"||typeof File<"u"&&ry.call(File)==="[object FileConstructor]";function Jf(e){return Lb&&(e instanceof ArrayBuffer||Db(e))||Mb&&e instanceof Blob||zb&&e instanceof File}function ll(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(ll(e[n]))return!0;return!1}if(Jf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return ll(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&ll(e[n]))return!0;return!1}function Bb(e){const t=[],n=e.data,r=e;return r.data=jc(n,t),r.attachments=t.length,{packet:r,buffers:t}}function jc(e,t){if(!e)return e;if(Jf(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=jc(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=jc(e[r],t));return n}return e}function Ub(e,t){return e.data=Fc(e.data,t),delete e.attachments,e}function Fc(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Fc(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Fc(e[n],t));return e}const Vb=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Hb=5;var X;(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"})(X||(X={}));class Wb{constructor(t){this.replacer=t}encode(t){return(t.type===X.EVENT||t.type===X.ACK)&&ll(t)?this.encodeAsBinary({type:t.type===X.EVENT?X.BINARY_EVENT:X.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===X.BINARY_EVENT||t.type===X.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=Bb(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function rp(e){return Object.prototype.toString.call(e)==="[object Object]"}class ed extends be{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===X.BINARY_EVENT;r||n.type===X.BINARY_ACK?(n.type=r?X.EVENT:X.ACK,this.reconstructor=new Qb(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(Jf(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(X[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===X.BINARY_EVENT||r.type===X.BINARY_ACK){const s=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const o=t.substring(s,n);if(o!=Number(o)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(t.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(s,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const s=n+1;for(;++n;){const o=t.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===t.length)break}r.id=Number(t.substring(s,n+1))}if(t.charAt(++n)){const s=this.tryParse(t.substr(n));if(ed.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case X.CONNECT:return rp(n);case X.DISCONNECT:return n===void 0;case X.CONNECT_ERROR:return typeof n=="string"||rp(n);case X.EVENT:case X.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&Vb.indexOf(n[0])===-1);case X.ACK:case X.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Qb{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=Ub(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const qb=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ed,Encoder:Wb,get PacketType(){return X},protocol:Hb},Symbol.toStringTag,{value:"Module"}));function Vt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const Kb=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class iy extends be{constructor(t,n,r){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=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Vt(t,"open",this.onopen.bind(this)),Vt(t,"packet",this.onpacket.bind(this)),Vt(t,"error",this.onerror.bind(this)),Vt(t,"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(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,s;if(Kb.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const o={type:X.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,u=n.pop();this._registerAckCallback(d,u),o.id=d}const l=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,a=this.connected&&!(!((s=this.io.engine)===null||s===void 0)&&s._hasPingExpired());return this.flags.volatile&&!l||(a?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);n.call(this,new Error("operation has timed out"))},i),o=(...l)=>{this.io.clearTimeoutFn(s),n.apply(this,l)};o.withError=!0,this.acks[t]=o}emitWithAck(t,...n){return new Promise((r,i)=>{const s=(o,l)=>o?i(o):r(l);s.withError=!0,n.push(s),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...s)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:X.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case X.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.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 X.EVENT:case X.BINARY_EVENT:this.onevent(t);break;case X.ACK:case X.BINARY_ACK:this.onack(t);break;case X.DISCONNECT:this.ondisconnect();break;case X.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:X.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:X.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function es(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}es.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};es.prototype.reset=function(){this.attempts=0};es.prototype.setMin=function(e){this.ms=e};es.prototype.setMax=function(e){this.max=e};es.prototype.setJitter=function(e){this.jitter=e};class $c extends be{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,da(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new es({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||qb;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new $b(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Vt(n,"open",function(){r.onopen(),t&&t()}),s=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},o=Vt(n,"error",s);if(this._timeout!==!1){const l=this._timeout,a=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),n.close()},l);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Vt(t,"ping",this.onping.bind(this)),Vt(t,"data",this.ondata.bind(this)),Vt(t,"error",this.onerror.bind(this)),Vt(t,"close",this.onclose.bind(this)),Vt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){fa(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new iy(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ds={};function al(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Ib(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,o=ds[i]&&s in ds[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let a;return l?a=new $c(r,t):(ds[i]||(ds[i]=new $c(r,t)),a=ds[i]),n.query&&!t.query&&(t.query=n.queryKey),a.socket(n.path,t)}Object.assign(al,{Manager:$c,Socket:iy,io:al,connect:al});const ul=e=>{const t=document.cookie.split(";").find(n=>n.includes(e));return t?t.split("=")[1]:null},sy=S.createContext(null),uo=()=>S.useContext(sy),Yb=({children:e})=>{const[t,n]=S.useState(null),[r,i]=S.useState(!1),[s,o]=S.useState({}),l=()=>{const g=al(Ww,{transports:["websocket"],auth:{customer_token:ul("customer_token"),device_id:ul("device_id"),customer_refresh_token:ul("customer_refresh_token")}});g.on("error",v=>{console.error("Websocket error",v)}),g.on("connect",()=>{n(g),i(!0)})},a=()=>{t&&(t.connect(),i(!0))},c=()=>{t&&(t.disconnect(),i(!1))},d=(g,v)=>{t&&(t.on(g,w=>{v(w)}),o({...s,[g]:v}))},u=g=>{t&&s[g]&&(t.off(g,s[g]),delete s[g])},f=(g,v,w)=>{t&&t.emit(g,v,w)};return E.jsx(sy.Provider,{value:{socket:t,connected:r,events:s,connect:l,reconnect:a,disconnect:c,on:d,off:u,emit:f},children:e})};var fn=(e=>(e.ChatView="chat:user:view",e.ChatClose="chat:user:close",e.MessageList="message:list",e.MessageCreate="message:create",e.MessageTyping="message:typing",e.WidgetOpen="widget:open",e.WidgetClose="widget:close",e.PageChange="page-change",e))(fn||{}),Qt=(e=>(e.MessageAgentCreate="message:agent:create",e.MessageAgentTyping="message:agent:typing",e.Banned="banned",e.ChatUserClose="chat:user:close",e.ChatUserAssignee="chat:user:assignee",e))(Qt||{});const td=e=>{const t=oS(),n=(r,i)=>{var o;const s=((o=EO.find(l=>l.name===r))==null?void 0:o.path)??"/";return typeof i=="object"&&s.includes(":")?Object.entries(i).reduce((l,[a,c])=>l.replace(`:${a}`,c),s):i?`${s}?${i}`:s};return{push:(r,i)=>{t(n(r,i),e)},path:n}},Gb=()=>Tx({mutationFn:e=>oa(`clients/${e.client_id}/chats`,{method:"POST",body:JSON.stringify({inputs:e.inputs,client_id:void 0,widget_id:e.widget_id,history:e.history})})}),Xb=e=>oa(`clients/${e}/chats`),zl=e=>oa(`clients/${e}/chats`,{method:"DELETE"});function oy({children:e,defaultOpen:t}){const n=uo(),{open:r,setOpen:i,widget:s}=Ji(),o=td(),l=()=>{i(!0),n&&n.emit(fn.WidgetOpen,{})},a=()=>{i(!1),n&&n.emit(fn.WidgetClose,{})},c=()=>{i(!1),zl(s.client_id),o.push("registration")},d=async()=>{i(!1),await zl(s.client_id),o.push("registration")};return S.useEffect(()=>{if(t&&i(!0),!(!n||!s))return n.on(Qt.Banned,c),n.on(Qt.ChatUserClose,d),()=>{n.off(Qt.Banned),n.off(Qt.ChatUserClose)}},[]),E.jsxs("section",{className:"lc-relative lc-w-full lc-h-full",children:[r&&E.jsx("div",{className:"lc-w-86 lc-h-[32rem] lc-absolute lc-bottom-8 lc-right-8 lc-z-[300] lc-bg-white lc-rounded-md lc-border",children:e}),E.jsxs("div",{className:"lc-absolute lc-bottom-0 lc-right-0 lc-z-[400]",children:[!r&&E.jsx(Gs,{size:"lg",rounded:!0,onClick:l,children:E.jsx(Ve.Chat,{className:"lc-size-6"})}),r&&E.jsx(Gs,{size:"lg",rounded:!0,onClick:a,children:E.jsx(Ve.X,{className:"lc-size-6"})})]})]})}function Gr(e){this._maxSize=e,this.clear()}Gr.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Gr.prototype.get=function(e){return this._values[e]};Gr.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Zb=/[^.^\]^[]+|(?=\[\]|\.\.)/g,ly=/^\d+$/,Jb=/^\d/,eE=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,tE=/^\s*(['"]?)(.*?)(\1)\s*$/,nd=512,ip=new Gr(nd),sp=new Gr(nd),op=new Gr(nd),Lr={Cache:Gr,split:Ic,normalizePath:pu,setter:function(e){var t=pu(e);return sp.get(e)||sp.set(e,function(r,i){for(var s=0,o=t.length,l=r;s<o-1;){var a=t[s];if(a==="__proto__"||a==="constructor"||a==="prototype")return r;l=l[t[s++]]}l[t[s]]=i})},getter:function(e,t){var n=pu(e);return op.get(e)||op.set(e,function(i){for(var s=0,o=n.length;s<o;)if(i!=null||!t)i=i[n[s++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(rd(n)||ly.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){nE(Array.isArray(e)?e:Ic(e),t,n)}};function pu(e){return ip.get(e)||ip.set(e,Ic(e).map(function(t){return t.replace(tE,"$2")}))}function Ic(e){return e.match(Zb)||[""]}function nE(e,t,n){var r=e.length,i,s,o,l;for(s=0;s<r;s++)i=e[s],i&&(sE(i)&&(i='"'+i+'"'),l=rd(i),o=!l&&/^\d+$/.test(i),t.call(n,i,l,o,s,e))}function rd(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function rE(e){return e.match(Jb)&&!e.match(ly)}function iE(e){return eE.test(e)}function sE(e){return!rd(e)&&(rE(e)||iE(e))}const oE=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,ha=e=>e.match(oE)||[],pa=e=>e[0].toUpperCase()+e.slice(1),id=(e,t)=>ha(e).join(t).toLowerCase(),ay=e=>ha(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),lE=e=>pa(ay(e)),aE=e=>id(e,"_"),uE=e=>id(e,"-"),cE=e=>pa(id(e," ")),fE=e=>ha(e).map(pa).join(" ");var mu={words:ha,upperFirst:pa,camelCase:ay,pascalCase:lE,snakeCase:aE,kebabCase:uE,sentenceCase:cE,titleCase:fE},sd={exports:{}};sd.exports=function(e){return uy(dE(e),e)};sd.exports.array=uy;function uy(e,t){var n=e.length,r=new Array(n),i={},s=n,o=hE(t),l=pE(e);for(t.forEach(function(c){if(!l.has(c[0])||!l.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||a(e[s],s,new Set);return r;function a(c,d,u){if(u.has(c)){var f;try{f=", node was:"+JSON.stringify(c)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!l.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[d]){i[d]=!0;var g=o.get(c)||new Set;if(g=Array.from(g),d=g.length){u.add(c);do{var v=g[--d];a(v,l.get(v),u)}while(d);u.delete(c)}r[--n]=c}}}function dE(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function hE(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function pE(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var mE=sd.exports;const gE=qi(mE),yE=Object.prototype.toString,vE=Error.prototype.toString,wE=RegExp.prototype.toString,xE=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",SE=/^Symbol\((.*)\)(.*)$/;function bE(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function lp(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return bE(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return xE.call(e).replace(SE,"Symbol($1)");const r=yE.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+vE.call(e)+"]":r==="RegExp"?wE.call(e):null}function ur(e,t){let n=lp(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=lp(this[r],t);return s!==null?s:i},2)}function cy(e){return e==null?[]:[].concat(e)}let fy,dy,hy,EE=/\$\{\s*(\w+)\s*\}/g;fy=Symbol.toStringTag;class ap{constructor(t,n,r,i){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[fy]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],cy(t).forEach(s=>{if(st.isError(s)){this.errors.push(...s.errors);const o=s.inner.length?s.inner:[s];this.inner.push(...o)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}dy=Symbol.hasInstance;hy=Symbol.toStringTag;class st extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(EE,(i,s)=>ur(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i,s){const o=new ap(t,n,r,i);if(s)return o;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[hy]="Error",this.name=o.name,this.message=o.message,this.type=o.type,this.value=o.value,this.path=o.path,this.errors=o.errors,this.inner=o.inner,Error.captureStackTrace&&Error.captureStackTrace(this,st)}static[dy](t){return ap[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let tn={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${ur(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${ur(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${ur(n,!0)}\``+i}},et={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},_E={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Lc={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},kE={isValue:"${path} field must be ${value}"},cl={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},CE={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},TE={notType:e=>{const{path:t,value:n,spec:r}=e,i=r.types.length;if(Array.isArray(n)){if(n.length<i)return`${t} tuple value has too few items, expected a length of ${i} but got ${n.length} for value: \`${ur(n,!0)}\``;if(n.length>i)return`${t} tuple value has too many items, expected a length of ${i} but got ${n.length} for value: \`${ur(n,!0)}\``}return st.formatError(tn.notType,e)}};Object.assign(Object.create(null),{mixed:tn,string:et,number:_E,date:Lc,object:cl,array:CE,boolean:kE,tuple:TE});const od=e=>e&&e.__isYupSchema__;class Bl{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,o=typeof r=="function"?r:(...l)=>l.every(a=>a===r);return new Bl(t,(l,a)=>{var c;let d=o(...l)?i:s;return(c=d==null?void 0:d(a))!=null?c:a})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!od(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const Uo={context:"$",value:"."};class Xr{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Uo.context,this.isValue=this.key[0]===Uo.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?Uo.context:this.isValue?Uo.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Lr.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Xr.prototype.__isYupRef=!0;const Cr=e=>e==null;function ii(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},l,a){const{name:c,test:d,params:u,message:f,skipAbsent:g}=e;let{parent:v,context:w,abortEarly:x=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=i;function p(B){return Xr.isRef(B)?B.getValue(n,v,w):B}function h(B={}){const se=Object.assign({value:n,originalValue:s,label:o.spec.label,path:B.path||r,spec:o.spec,disableStackTrace:B.disableStackTrace||m},u,B.params);for(const He of Object.keys(se))se[He]=p(se[He]);const oe=new st(st.formatError(B.message||f,se),n,se.path,B.type||c,se.disableStackTrace);return oe.params=se,oe}const _=x?l:a;let T={path:r,parent:v,type:c,from:i.from,createError:h,resolve:p,options:i,originalValue:s,schema:o};const k=B=>{st.isError(B)?_(B):B?a(null):_(h())},C=B=>{st.isError(B)?_(B):l(B)};if(g&&Cr(n))return k(!0);let I;try{var D;if(I=d.call(T,n,T),typeof((D=I)==null?void 0:D.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${T.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(I).then(k,C)}}catch(B){C(B);return}k(I)}return t.OPTIONS=e,t}function OE(e,t,n,r=n){let i,s,o;return t?(Lr.forEach(t,(l,a,c)=>{let d=a?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:i,value:n});let u=e.type==="tuple",f=c?parseInt(d,10):0;if(e.innerType||u){if(u&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[f],e=u?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[d])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[d],e=e.fields[d]}s=d,o=a?"["+l+"]":"."+l}),{schema:e,parent:i,parentPath:s}):{parent:i,parentPath:t,schema:e}}class Ul extends Set{describe(){const t=[];for(const n of this.values())t.push(Xr.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Ul(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function yi(e,t=new Map){if(od(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=yi(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,yi(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(yi(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=yi(i,t)}else throw Error(`Unable to clone ${e}`);return n}class hn{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Ul,this._blacklist=new Ul,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(tn.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=yi(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(o=>{s.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i,s;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive,disableStackTrace:(s=t.disableStackTrace)!=null?s:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(i&&Cr(s))return s;let o=ur(t),l=ur(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
79
79
 
80
80
  attempted value: ${o}
81
- `+(a!==o?`result of cast: ${a}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,s)=>s.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:s,originalValue:o=t,strict:a=this.spec.strict}=n,l=t;a||(l=this._cast(l,Object.assign({assert:!1},n)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:s,value:l,originalValue:o,options:n,tests:c},r,d=>{if(d.length)return i(d,l);this.runTests({path:s,value:l,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:s,value:o,originalValue:a,path:l,options:c}=t,d=w=>{i||(i=!0,n(w,o))},u=w=>{i||(i=!0,r(w,o))},f=s.length,m=[];if(!f)return u([]);let v={value:o,originalValue:a,path:l,options:c,schema:this};for(let w=0;w<s.length;w++){const x=s[w];x(v,d,function(h){h&&(Array.isArray(h)?m.push(...h):m.push(h)),--f<=0&&u(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:s,options:o}){const a=t??n;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let c=r[a];const d=Object.assign({},o,{strict:!0,parent:r,value:c,originalValue:s[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${i||""}[${l?a:`"${a}"`}]`:(i?`${i}.`:"")+t});return(u,f,m)=>this.resolve(d)._validate(c,d,f,m)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),s=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((o,a)=>i._validate(t,n,(l,c)=>{it.isError(l)&&(l.value=c),a(l)},(l,c)=>{l.length?a(new it(l,c,void 0,void 0,s)):o(c)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),s,o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(a,l)=>{throw it.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new it(a,t,void 0,void 0,o);s=l}),s}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(it.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(it.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):gi(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=ii({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=ii({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=tn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=tn.notNull){return this.nullability(!1,t)}required(t=tn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=tn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=ii(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=cg(t).map(s=>new Xr(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new za(i,n):za.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=ii({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=tn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=ii({message:n,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),r}notOneOf(t,n=tn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=ii({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:s,nullable:o}=n.spec;return{meta:i,label:r,optional:s,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,c,d)=>d.findIndex(u=>u.name===l.name)===c)}}}hn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])hn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=T_(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])hn.prototype[e]=hn.prototype.oneOf;for(const e of["not","nope"])hn.prototype[e]=hn.prototype.notOneOf;const O_=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function R_(e){const t=Lc(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Lc(e){var t,n;const r=O_.exec(e);return r?{year:yn(r[1]),month:yn(r[2],1)-1,day:yn(r[3],1),hour:yn(r[4]),minute:yn(r[5]),second:yn(r[6]),millisecond:r[7]?yn(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:yn(r[10]),minuteOffset:yn(r[11])}:null}function yn(e,t=0){return Number(e)||t}let P_=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,N_=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,A_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,j_="^\\d{4}-\\d{2}-\\d{2}",F_="\\d{2}:\\d{2}:\\d{2}",$_="(([+-]\\d{2}(:?\\d{2})?)|Z)",I_=new RegExp(`${j_}T${F_}(\\.\\d+)?${$_}$`),L_=e=>Cr(e)||e===e.trim(),D_={}.toString();function Dc(){return new pg}class pg extends hn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===D_?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||tn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Je.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Je.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Je.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||Je.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=Je.email){return this.matches(P_,{name:"email",message:t,excludeEmptyString:!0})}url(t=Je.url){return this.matches(N_,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Je.uuid){return this.matches(A_,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(I_,{name:"datetime",message:n||Je.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||Je.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const o=Lc(s);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||Je.datetime_precision,params:{precision:i},skipAbsent:!0,test:s=>{if(!s||i==null)return!0;const o=Lc(s);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Je.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:L_})}lowercase(t=Je.lowercase){return this.transform(n=>Cr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Cr(n)||n===n.toLowerCase()})}uppercase(t=Je.uppercase){return this.transform(n=>Cr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Cr(n)||n===n.toUpperCase()})}}Dc.prototype=pg.prototype;let M_=new Date(""),z_=e=>Object.prototype.toString.call(e)==="[object Date]";class pl extends hn{constructor(){super({type:"date",check(t){return z_(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=R_(t),isNaN(t)?pl.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Xr.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=Ic.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=Ic.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}pl.INVALID_DATE=M_;pl.prototype;function B_(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,a])=>`${o}-${a}`));function s(o,a){let l=Lr.split(o)[0];r.add(l),i.has(`${a}-${l}`)||n.push([a,l])}for(const o of Object.keys(e)){let a=e[o];r.add(o),Xr.isRef(a)&&a.isSibling?s(a.path,o):sd(a)&&"deps"in a&&a.deps.forEach(l=>s(l,o))}return m_.array(Array.from(r),n).reverse()}function lp(e,t){let n=1/0;return e.some((r,i)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=i,!0}),n}function mg(e){return(t,n)=>lp(e,t)-lp(e,n)}const U_=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function ca(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=ca(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=ca(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(ca)}):"optional"in e?e.optional():e}const V_=(e,t)=>{const n=[...Lr.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Lr.getter(Lr.join(n),!0)(e);return!!(i&&r in i)};let up=e=>Object.prototype.toString.call(e)==="[object Object]";function cp(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const H_=mg([]);function yg(e){return new gg(e)}class gg extends hn{constructor(t){super({type:"object",check(n){return up(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=H_,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let s=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(u=>!this._nodes.includes(u))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),d=!1;for(const u of a){let f=s[u],m=u in i;if(f){let v,w=i[u];c.path=(n.path?`${n.path}.`:"")+u,f=f.resolve({value:w,context:n.context,parent:l});let x=f instanceof hn?f.spec:void 0,p=x==null?void 0:x.strict;if(x!=null&&x.strip){d=d||u in i;continue}v=!n.__validating||!p?f.cast(i[u],c):i[u],v!==void 0&&(l[u]=v)}else m&&!o&&(l[u]=i[u]);(m!==u in l||l[u]!==i[u])&&(d=!0)}return d?l:i}_validate(t,n={},r,i){let{from:s=[],originalValue:o=t,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:o},...s],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(l,c)=>{if(!a||!up(c)){i(l,c);return}o=o||c;let d=[];for(let u of this._nodes){let f=this.fields[u];!f||Xr.isRef(f)||d.push(f.asNestedTest({options:n,key:u,parent:c,parentPath:n.path,originalParent:o}))}this.runTests({tests:d,value:c,originalValue:o,options:n},r,u=>{i(u.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?s:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const s=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=B_(t,n),r._sortErrors=mg(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return ca(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=Lr.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return V_(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(U_)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ua.exact,test(n){if(n==null)return!0;const r=cp(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ua.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=cp(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ua.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(mu.camelCase)}snakeCase(){return this.transformKeys(mu.snakeCase)}constantCase(){return this.transformKeys(t=>mu.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[s,o]of Object.entries(n.fields)){var i;let a=t;(i=a)!=null&&i.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[s]})),r.fields[s]=o.describe(a)}return r}}yg.prototype=gg.prototype;var W_=function(t){return Q_(t)&&!q_(t)};function Q_(e){return!!e&&typeof e=="object"}function q_(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||G_(e)}var K_=typeof Symbol=="function"&&Symbol.for,Y_=K_?Symbol.for("react.element"):60103;function G_(e){return e.$$typeof===Y_}function X_(e){return Array.isArray(e)?[]:{}}function Ua(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xs(X_(e),e,t):e}function Z_(e,t,n){return e.concat(t).map(function(r){return Ua(r,n)})}function J_(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=Ua(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=Ua(t[i],n):r[i]=Xs(e[i],t[i],n)}),r}function Xs(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Z_,n.isMergeableObject=n.isMergeableObject||W_;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):J_(e,t,n):Ua(t,n)}Xs.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Xs(r,i,n)},{})};var Mc=Xs,vg=typeof global=="object"&&global&&global.Object===Object&&global,eb=typeof self=="object"&&self&&self.Object===Object&&self,pn=vg||eb||Function("return this")(),dr=pn.Symbol,wg=Object.prototype,tb=wg.hasOwnProperty,nb=wg.toString,hs=dr?dr.toStringTag:void 0;function rb(e){var t=tb.call(e,hs),n=e[hs];try{e[hs]=void 0;var r=!0}catch{}var i=nb.call(e);return r&&(t?e[hs]=n:delete e[hs]),i}var ib=Object.prototype,sb=ib.toString;function ob(e){return sb.call(e)}var ab="[object Null]",lb="[object Undefined]",fp=dr?dr.toStringTag:void 0;function Zr(e){return e==null?e===void 0?lb:ab:fp&&fp in Object(e)?rb(e):ob(e)}function xg(e,t){return function(n){return e(t(n))}}var od=xg(Object.getPrototypeOf,Object);function Jr(e){return e!=null&&typeof e=="object"}var ub="[object Object]",cb=Function.prototype,fb=Object.prototype,Sg=cb.toString,db=fb.hasOwnProperty,hb=Sg.call(Object);function dp(e){if(!Jr(e)||Zr(e)!=ub)return!1;var t=od(e);if(t===null)return!0;var n=db.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Sg.call(n)==hb}function pb(){this.__data__=[],this.size=0}function Eg(e,t){return e===t||e!==e&&t!==t}function ml(e,t){for(var n=e.length;n--;)if(Eg(e[n][0],t))return n;return-1}var mb=Array.prototype,yb=mb.splice;function gb(e){var t=this.__data__,n=ml(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yb.call(t,n,1),--this.size,!0}function vb(e){var t=this.__data__,n=ml(t,e);return n<0?void 0:t[n][1]}function wb(e){return ml(this.__data__,e)>-1}function xb(e,t){var n=this.__data__,r=ml(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Nn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nn.prototype.clear=pb;Nn.prototype.delete=gb;Nn.prototype.get=vb;Nn.prototype.has=wb;Nn.prototype.set=xb;function Sb(){this.__data__=new Nn,this.size=0}function Eb(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function _b(e){return this.__data__.get(e)}function bb(e){return this.__data__.has(e)}function co(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kb="[object AsyncFunction]",Cb="[object Function]",Tb="[object GeneratorFunction]",Ob="[object Proxy]";function _g(e){if(!co(e))return!1;var t=Zr(e);return t==Cb||t==Tb||t==kb||t==Ob}var yu=pn["__core-js_shared__"],hp=function(){var e=/[^.]+$/.exec(yu&&yu.keys&&yu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Rb(e){return!!hp&&hp in e}var Pb=Function.prototype,Nb=Pb.toString;function ei(e){if(e!=null){try{return Nb.call(e)}catch{}try{return e+""}catch{}}return""}var Ab=/[\\^$.*+?()[\]{}|]/g,jb=/^\[object .+?Constructor\]$/,Fb=Function.prototype,$b=Object.prototype,Ib=Fb.toString,Lb=$b.hasOwnProperty,Db=RegExp("^"+Ib.call(Lb).replace(Ab,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mb(e){if(!co(e)||Rb(e))return!1;var t=_g(e)?Db:jb;return t.test(ei(e))}function zb(e,t){return e==null?void 0:e[t]}function ti(e,t){var n=zb(e,t);return Mb(n)?n:void 0}var Zs=ti(pn,"Map"),Js=ti(Object,"create");function Bb(){this.__data__=Js?Js(null):{},this.size=0}function Ub(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Vb="__lodash_hash_undefined__",Hb=Object.prototype,Wb=Hb.hasOwnProperty;function Qb(e){var t=this.__data__;if(Js){var n=t[e];return n===Vb?void 0:n}return Wb.call(t,e)?t[e]:void 0}var qb=Object.prototype,Kb=qb.hasOwnProperty;function Yb(e){var t=this.__data__;return Js?t[e]!==void 0:Kb.call(t,e)}var Gb="__lodash_hash_undefined__";function Xb(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Js&&t===void 0?Gb:t,this}function Qr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qr.prototype.clear=Bb;Qr.prototype.delete=Ub;Qr.prototype.get=Qb;Qr.prototype.has=Yb;Qr.prototype.set=Xb;function Zb(){this.size=0,this.__data__={hash:new Qr,map:new(Zs||Nn),string:new Qr}}function Jb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yl(e,t){var n=e.__data__;return Jb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function e2(e){var t=yl(this,e).delete(e);return this.size-=t?1:0,t}function t2(e){return yl(this,e).get(e)}function n2(e){return yl(this,e).has(e)}function r2(e,t){var n=yl(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yr.prototype.clear=Zb;yr.prototype.delete=e2;yr.prototype.get=t2;yr.prototype.has=n2;yr.prototype.set=r2;var i2=200;function s2(e,t){var n=this.__data__;if(n instanceof Nn){var r=n.__data__;if(!Zs||r.length<i2-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yr(r)}return n.set(e,t),this.size=n.size,this}function ts(e){var t=this.__data__=new Nn(e);this.size=t.size}ts.prototype.clear=Sb;ts.prototype.delete=Eb;ts.prototype.get=_b;ts.prototype.has=bb;ts.prototype.set=s2;function o2(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var pp=function(){try{var e=ti(Object,"defineProperty");return e({},"",{}),e}catch{}}();function bg(e,t,n){t=="__proto__"&&pp?pp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a2=Object.prototype,l2=a2.hasOwnProperty;function kg(e,t,n){var r=e[t];(!(l2.call(e,t)&&Eg(r,n))||n===void 0&&!(t in e))&&bg(e,t,n)}function gl(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),i?bg(n,a,l):kg(n,a,l)}return n}function u2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var c2="[object Arguments]";function mp(e){return Jr(e)&&Zr(e)==c2}var Cg=Object.prototype,f2=Cg.hasOwnProperty,d2=Cg.propertyIsEnumerable,h2=mp(function(){return arguments}())?mp:function(e){return Jr(e)&&f2.call(e,"callee")&&!d2.call(e,"callee")},fo=Array.isArray;function p2(){return!1}var Tg=typeof gt=="object"&&gt&&!gt.nodeType&&gt,yp=Tg&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,m2=yp&&yp.exports===Tg,gp=m2?pn.Buffer:void 0,y2=gp?gp.isBuffer:void 0,Og=y2||p2,g2=9007199254740991,v2=/^(?:0|[1-9]\d*)$/;function w2(e,t){var n=typeof e;return t=t??g2,!!t&&(n=="number"||n!="symbol"&&v2.test(e))&&e>-1&&e%1==0&&e<t}var x2=9007199254740991;function Rg(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=x2}var S2="[object Arguments]",E2="[object Array]",_2="[object Boolean]",b2="[object Date]",k2="[object Error]",C2="[object Function]",T2="[object Map]",O2="[object Number]",R2="[object Object]",P2="[object RegExp]",N2="[object Set]",A2="[object String]",j2="[object WeakMap]",F2="[object ArrayBuffer]",$2="[object DataView]",I2="[object Float32Array]",L2="[object Float64Array]",D2="[object Int8Array]",M2="[object Int16Array]",z2="[object Int32Array]",B2="[object Uint8Array]",U2="[object Uint8ClampedArray]",V2="[object Uint16Array]",H2="[object Uint32Array]",ce={};ce[I2]=ce[L2]=ce[D2]=ce[M2]=ce[z2]=ce[B2]=ce[U2]=ce[V2]=ce[H2]=!0;ce[S2]=ce[E2]=ce[F2]=ce[_2]=ce[$2]=ce[b2]=ce[k2]=ce[C2]=ce[T2]=ce[O2]=ce[R2]=ce[P2]=ce[N2]=ce[A2]=ce[j2]=!1;function W2(e){return Jr(e)&&Rg(e.length)&&!!ce[Zr(e)]}function ad(e){return function(t){return e(t)}}var Pg=typeof gt=="object"&&gt&&!gt.nodeType&&gt,Rs=Pg&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,Q2=Rs&&Rs.exports===Pg,gu=Q2&&vg.process,Qi=function(){try{var e=Rs&&Rs.require&&Rs.require("util").types;return e||gu&&gu.binding&&gu.binding("util")}catch{}}(),vp=Qi&&Qi.isTypedArray,q2=vp?ad(vp):W2,K2=Object.prototype,Y2=K2.hasOwnProperty;function Ng(e,t){var n=fo(e),r=!n&&h2(e),i=!n&&!r&&Og(e),s=!n&&!r&&!i&&q2(e),o=n||r||i||s,a=o?u2(e.length,String):[],l=a.length;for(var c in e)(t||Y2.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||w2(c,l)))&&a.push(c);return a}var G2=Object.prototype;function ld(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||G2;return e===n}var X2=xg(Object.keys,Object),Z2=Object.prototype,J2=Z2.hasOwnProperty;function ek(e){if(!ld(e))return X2(e);var t=[];for(var n in Object(e))J2.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ag(e){return e!=null&&Rg(e.length)&&!_g(e)}function ud(e){return Ag(e)?Ng(e):ek(e)}function tk(e,t){return e&&gl(t,ud(t),e)}function nk(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var rk=Object.prototype,ik=rk.hasOwnProperty;function sk(e){if(!co(e))return nk(e);var t=ld(e),n=[];for(var r in e)r=="constructor"&&(t||!ik.call(e,r))||n.push(r);return n}function cd(e){return Ag(e)?Ng(e,!0):sk(e)}function ok(e,t){return e&&gl(t,cd(t),e)}var jg=typeof gt=="object"&&gt&&!gt.nodeType&&gt,wp=jg&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,ak=wp&&wp.exports===jg,xp=ak?pn.Buffer:void 0,Sp=xp?xp.allocUnsafe:void 0;function lk(e,t){if(t)return e.slice();var n=e.length,r=Sp?Sp(n):new e.constructor(n);return e.copy(r),r}function Fg(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function uk(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function $g(){return[]}var ck=Object.prototype,fk=ck.propertyIsEnumerable,Ep=Object.getOwnPropertySymbols,fd=Ep?function(e){return e==null?[]:(e=Object(e),uk(Ep(e),function(t){return fk.call(e,t)}))}:$g;function dk(e,t){return gl(e,fd(e),t)}function Ig(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var hk=Object.getOwnPropertySymbols,Lg=hk?function(e){for(var t=[];e;)Ig(t,fd(e)),e=od(e);return t}:$g;function pk(e,t){return gl(e,Lg(e),t)}function Dg(e,t,n){var r=t(e);return fo(e)?r:Ig(r,n(e))}function mk(e){return Dg(e,ud,fd)}function yk(e){return Dg(e,cd,Lg)}var zc=ti(pn,"DataView"),Bc=ti(pn,"Promise"),Uc=ti(pn,"Set"),Vc=ti(pn,"WeakMap"),_p="[object Map]",gk="[object Object]",bp="[object Promise]",kp="[object Set]",Cp="[object WeakMap]",Tp="[object DataView]",vk=ei(zc),wk=ei(Zs),xk=ei(Bc),Sk=ei(Uc),Ek=ei(Vc),xn=Zr;(zc&&xn(new zc(new ArrayBuffer(1)))!=Tp||Zs&&xn(new Zs)!=_p||Bc&&xn(Bc.resolve())!=bp||Uc&&xn(new Uc)!=kp||Vc&&xn(new Vc)!=Cp)&&(xn=function(e){var t=Zr(e),n=t==gk?e.constructor:void 0,r=n?ei(n):"";if(r)switch(r){case vk:return Tp;case wk:return _p;case xk:return bp;case Sk:return kp;case Ek:return Cp}return t});var _k=Object.prototype,bk=_k.hasOwnProperty;function kk(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bk.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Op=pn.Uint8Array;function dd(e){var t=new e.constructor(e.byteLength);return new Op(t).set(new Op(e)),t}function Ck(e,t){var n=t?dd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Tk=/\w*$/;function Ok(e){var t=new e.constructor(e.source,Tk.exec(e));return t.lastIndex=e.lastIndex,t}var Rp=dr?dr.prototype:void 0,Pp=Rp?Rp.valueOf:void 0;function Rk(e){return Pp?Object(Pp.call(e)):{}}function Pk(e,t){var n=t?dd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Nk="[object Boolean]",Ak="[object Date]",jk="[object Map]",Fk="[object Number]",$k="[object RegExp]",Ik="[object Set]",Lk="[object String]",Dk="[object Symbol]",Mk="[object ArrayBuffer]",zk="[object DataView]",Bk="[object Float32Array]",Uk="[object Float64Array]",Vk="[object Int8Array]",Hk="[object Int16Array]",Wk="[object Int32Array]",Qk="[object Uint8Array]",qk="[object Uint8ClampedArray]",Kk="[object Uint16Array]",Yk="[object Uint32Array]";function Gk(e,t,n){var r=e.constructor;switch(t){case Mk:return dd(e);case Nk:case Ak:return new r(+e);case zk:return Ck(e,n);case Bk:case Uk:case Vk:case Hk:case Wk:case Qk:case qk:case Kk:case Yk:return Pk(e,n);case jk:return new r;case Fk:case Lk:return new r(e);case $k:return Ok(e);case Ik:return new r;case Dk:return Rk(e)}}var Np=Object.create,Xk=function(){function e(){}return function(t){if(!co(t))return{};if(Np)return Np(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Zk(e){return typeof e.constructor=="function"&&!ld(e)?Xk(od(e)):{}}var Jk="[object Map]";function eC(e){return Jr(e)&&xn(e)==Jk}var Ap=Qi&&Qi.isMap,tC=Ap?ad(Ap):eC,nC="[object Set]";function rC(e){return Jr(e)&&xn(e)==nC}var jp=Qi&&Qi.isSet,iC=jp?ad(jp):rC,sC=1,oC=2,aC=4,Mg="[object Arguments]",lC="[object Array]",uC="[object Boolean]",cC="[object Date]",fC="[object Error]",zg="[object Function]",dC="[object GeneratorFunction]",hC="[object Map]",pC="[object Number]",Bg="[object Object]",mC="[object RegExp]",yC="[object Set]",gC="[object String]",vC="[object Symbol]",wC="[object WeakMap]",xC="[object ArrayBuffer]",SC="[object DataView]",EC="[object Float32Array]",_C="[object Float64Array]",bC="[object Int8Array]",kC="[object Int16Array]",CC="[object Int32Array]",TC="[object Uint8Array]",OC="[object Uint8ClampedArray]",RC="[object Uint16Array]",PC="[object Uint32Array]",ae={};ae[Mg]=ae[lC]=ae[xC]=ae[SC]=ae[uC]=ae[cC]=ae[EC]=ae[_C]=ae[bC]=ae[kC]=ae[CC]=ae[hC]=ae[pC]=ae[Bg]=ae[mC]=ae[yC]=ae[gC]=ae[vC]=ae[TC]=ae[OC]=ae[RC]=ae[PC]=!0;ae[fC]=ae[zg]=ae[wC]=!1;function Ps(e,t,n,r,i,s){var o,a=t&sC,l=t&oC,c=t&aC;if(o!==void 0)return o;if(!co(e))return e;var d=fo(e);if(d){if(o=kk(e),!a)return Fg(e,o)}else{var u=xn(e),f=u==zg||u==dC;if(Og(e))return lk(e,a);if(u==Bg||u==Mg||f&&!i){if(o=l||f?{}:Zk(e),!a)return l?pk(e,ok(o,e)):dk(e,tk(o,e))}else{if(!ae[u])return i?e:{};o=Gk(e,u,a)}}s||(s=new ts);var m=s.get(e);if(m)return m;s.set(e,o),iC(e)?e.forEach(function(x){o.add(Ps(x,t,n,x,e,s))}):tC(e)&&e.forEach(function(x,p){o.set(p,Ps(x,t,n,p,e,s))});var v=c?l?yk:mk:l?cd:ud,w=d?void 0:v(e);return o2(w||e,function(x,p){w&&(p=x,x=e[p]),kg(o,p,Ps(x,t,n,p,e,s))}),o}var NC=1,AC=4;function Vo(e){return Ps(e,NC|AC)}var Fp=Array.isArray,$p=Object.keys,jC=Object.prototype.hasOwnProperty,FC=typeof Element<"u";function Hc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Fp(e),r=Fp(t),i,s,o;if(n&&r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!Hc(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var a=e instanceof Date,l=t instanceof Date;if(a!=l)return!1;if(a&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,d=t instanceof RegExp;if(c!=d)return!1;if(c&&d)return e.toString()==t.toString();var u=$p(e);if(s=u.length,s!==$p(t).length)return!1;for(i=s;i--!==0;)if(!jC.call(t,u[i]))return!1;if(FC&&e instanceof Element&&t instanceof Element)return e===t;for(i=s;i--!==0;)if(o=u[i],!(o==="_owner"&&e.$$typeof)&&!Hc(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var $C=function(t,n){try{return Hc(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Er=qi($C);var IC=4;function Ip(e){return Ps(e,IC)}function Ug(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var LC="[object Symbol]";function hd(e){return typeof e=="symbol"||Jr(e)&&Zr(e)==LC}var DC="Expected a function";function pd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DC);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(pd.Cache||yr),n}pd.Cache=yr;var MC=500;function zC(e){var t=pd(e,function(r){return n.size===MC&&n.clear(),r}),n=t.cache;return t}var BC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UC=/\\(\\)?/g,VC=zC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(BC,function(n,r,i,s){t.push(i?s.replace(UC,"$1"):r||n)}),t}),HC=1/0;function WC(e){if(typeof e=="string"||hd(e))return e;var t=e+"";return t=="0"&&1/e==-HC?"-0":t}var QC=1/0,Lp=dr?dr.prototype:void 0,Dp=Lp?Lp.toString:void 0;function Vg(e){if(typeof e=="string")return e;if(fo(e))return Ug(e,Vg)+"";if(hd(e))return Dp?Dp.call(e):"";var t=e+"";return t=="0"&&1/e==-QC?"-0":t}function qC(e){return e==null?"":Vg(e)}function Hg(e){return fo(e)?Ug(e,WC):hd(e)?[e]:Fg(VC(qC(e)))}var Wg={exports:{}},ie={};/** @license React v16.13.1
81
+ `+(l!==o?`result of cast: ${l}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,s)=>s.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:s,originalValue:o=t,strict:l=this.spec.strict}=n,a=t;l||(a=this._cast(a,Object.assign({assert:!1},n)));let c=[];for(let d of Object.values(this.internalTests))d&&c.push(d);this.runTests({path:s,value:a,originalValue:o,options:n,tests:c},r,d=>{if(d.length)return i(d,a);this.runTests({path:s,value:a,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:s,value:o,originalValue:l,path:a,options:c}=t,d=w=>{i||(i=!0,n(w,o))},u=w=>{i||(i=!0,r(w,o))},f=s.length,g=[];if(!f)return u([]);let v={value:o,originalValue:l,path:a,options:c,schema:this};for(let w=0;w<s.length;w++){const x=s[w];x(v,d,function(p){p&&(Array.isArray(p)?g.push(...p):g.push(p)),--f<=0&&u(g)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:s,options:o}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const a=typeof l=="number";let c=r[l];const d=Object.assign({},o,{strict:!0,parent:r,value:c,originalValue:s[l],key:void 0,[a?"index":"key"]:l,path:a||l.includes(".")?`${i||""}[${a?l:`"${l}"`}]`:(i?`${i}.`:"")+t});return(u,f,g)=>this.resolve(d)._validate(c,d,f,g)}validate(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),s=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return new Promise((o,l)=>i._validate(t,n,(a,c)=>{st.isError(a)&&(a.value=c),l(a)},(a,c)=>{a.length?l(new st(a,c,void 0,void 0,s)):o(c)}))}validateSync(t,n){var r;let i=this.resolve(Object.assign({},n,{value:t})),s,o=(r=n==null?void 0:n.disableStackTrace)!=null?r:i.spec.disableStackTrace;return i._validate(t,Object.assign({},n,{sync:!0}),(l,a)=>{throw st.isError(l)&&(l.value=a),l},(l,a)=>{if(l.length)throw new st(l,t,void 0,void 0,o);s=a}),s}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(st.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(st.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):yi(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=ii({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=ii({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=tn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=tn.notNull){return this.nullability(!1,t)}required(t=tn.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=tn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=ii(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=cy(t).map(s=>new Xr(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new Bl(i,n):Bl.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=ii({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=tn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=ii({message:n,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),r}notOneOf(t,n=tn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=ii({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:s,nullable:o}=n.spec;return{meta:i,label:r,optional:s,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,c,d)=>d.findIndex(u=>u.name===a.name)===c)}}}hn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])hn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=OE(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])hn.prototype[e]=hn.prototype.oneOf;for(const e of["not","nope"])hn.prototype[e]=hn.prototype.notOneOf;const RE=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function NE(e){const t=Dc(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function Dc(e){var t,n;const r=RE.exec(e);return r?{year:gn(r[1]),month:gn(r[2],1)-1,day:gn(r[3],1),hour:gn(r[4]),minute:gn(r[5]),second:gn(r[6]),millisecond:r[7]?gn(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:gn(r[10]),minuteOffset:gn(r[11])}:null}function gn(e,t=0){return Number(e)||t}let PE=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,AE=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,jE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,FE="^\\d{4}-\\d{2}-\\d{2}",$E="\\d{2}:\\d{2}:\\d{2}",IE="(([+-]\\d{2}(:?\\d{2})?)|Z)",LE=new RegExp(`${FE}T${$E}(\\.\\d+)?${IE}$`),DE=e=>Cr(e)||e===e.trim(),ME={}.toString();function Mc(){return new py}class py extends hn{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===ME?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||tn.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=et.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=et.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=et.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||et.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=et.email){return this.matches(PE,{name:"email",message:t,excludeEmptyString:!0})}url(t=et.url){return this.matches(AE,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=et.uuid){return this.matches(jE,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,i;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:i=void 0}=t:n=t),this.matches(LE,{name:"datetime",message:n||et.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||et.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const o=Dc(s);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||et.datetime_precision,params:{precision:i},skipAbsent:!0,test:s=>{if(!s||i==null)return!0;const o=Dc(s);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=et.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:DE})}lowercase(t=et.lowercase){return this.transform(n=>Cr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Cr(n)||n===n.toLowerCase()})}uppercase(t=et.uppercase){return this.transform(n=>Cr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Cr(n)||n===n.toUpperCase()})}}Mc.prototype=py.prototype;let zE=new Date(""),BE=e=>Object.prototype.toString.call(e)==="[object Date]";class ma extends hn{constructor(){super({type:"date",check(t){return BE(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=NE(t),isNaN(t)?ma.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Xr.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=Lc.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=Lc.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}ma.INVALID_DATE=zE;ma.prototype;function UE(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,l])=>`${o}-${l}`));function s(o,l){let a=Lr.split(o)[0];r.add(a),i.has(`${l}-${a}`)||n.push([l,a])}for(const o of Object.keys(e)){let l=e[o];r.add(o),Xr.isRef(l)&&l.isSibling?s(l.path,o):od(l)&&"deps"in l&&l.deps.forEach(a=>s(a,o))}return gE.array(Array.from(r),n).reverse()}function up(e,t){let n=1/0;return e.some((r,i)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=i,!0}),n}function my(e){return(t,n)=>up(e,t)-up(e,n)}const VE=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function fl(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=fl(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=fl(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(fl)}):"optional"in e?e.optional():e}const HE=(e,t)=>{const n=[...Lr.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Lr.getter(Lr.join(n),!0)(e);return!!(i&&r in i)};let cp=e=>Object.prototype.toString.call(e)==="[object Object]";function fp(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const WE=my([]);function gy(e){return new yy(e)}class yy extends hn{constructor(t){super({type:"object",check(n){return cp(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=WE,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let s=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(i).filter(u=>!this._nodes.includes(u))),a={},c=Object.assign({},n,{parent:a,__validating:n.__validating||!1}),d=!1;for(const u of l){let f=s[u],g=u in i;if(f){let v,w=i[u];c.path=(n.path?`${n.path}.`:"")+u,f=f.resolve({value:w,context:n.context,parent:a});let x=f instanceof hn?f.spec:void 0,m=x==null?void 0:x.strict;if(x!=null&&x.strip){d=d||u in i;continue}v=!n.__validating||!m?f.cast(i[u],c):i[u],v!==void 0&&(a[u]=v)}else g&&!o&&(a[u]=i[u]);(g!==u in a||a[u]!==i[u])&&(d=!0)}return d?a:i}_validate(t,n={},r,i){let{from:s=[],originalValue:o=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:o},...s],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(a,c)=>{if(!l||!cp(c)){i(a,c);return}o=o||c;let d=[];for(let u of this._nodes){let f=this.fields[u];!f||Xr.isRef(f)||d.push(f.asNestedTest({options:n,key:u,parent:c,parentPath:n.path,originalParent:o}))}this.runTests({tests:d,value:c,originalValue:o,options:n},r,u=>{i(u.sort(this._sortErrors).concat(a),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?s:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const s=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=UE(t,n),r._sortErrors=my(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return fl(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,i])=>t.includes(r)&&t.includes(i)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let i=Lr.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return HE(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(VE)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||cl.exact,test(n){if(n==null)return!0;const r=fp(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=cl.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=fp(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=cl.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(mu.camelCase)}snakeCase(){return this.transformKeys(mu.snakeCase)}constantCase(){return this.transformKeys(t=>mu.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[s,o]of Object.entries(n.fields)){var i;let l=t;(i=l)!=null&&i.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[s]})),r.fields[s]=o.describe(l)}return r}}gy.prototype=yy.prototype;var QE=function(t){return qE(t)&&!KE(t)};function qE(e){return!!e&&typeof e=="object"}function KE(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||XE(e)}var YE=typeof Symbol=="function"&&Symbol.for,GE=YE?Symbol.for("react.element"):60103;function XE(e){return e.$$typeof===GE}function ZE(e){return Array.isArray(e)?[]:{}}function Vl(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Xs(ZE(e),e,t):e}function JE(e,t,n){return e.concat(t).map(function(r){return Vl(r,n)})}function e_(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=Vl(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=Vl(t[i],n):r[i]=Xs(e[i],t[i],n)}),r}function Xs(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||JE,n.isMergeableObject=n.isMergeableObject||QE;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):e_(e,t,n):Vl(t,n)}Xs.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Xs(r,i,n)},{})};var zc=Xs,vy=typeof global=="object"&&global&&global.Object===Object&&global,t_=typeof self=="object"&&self&&self.Object===Object&&self,pn=vy||t_||Function("return this")(),dr=pn.Symbol,wy=Object.prototype,n_=wy.hasOwnProperty,r_=wy.toString,hs=dr?dr.toStringTag:void 0;function i_(e){var t=n_.call(e,hs),n=e[hs];try{e[hs]=void 0;var r=!0}catch{}var i=r_.call(e);return r&&(t?e[hs]=n:delete e[hs]),i}var s_=Object.prototype,o_=s_.toString;function l_(e){return o_.call(e)}var a_="[object Null]",u_="[object Undefined]",dp=dr?dr.toStringTag:void 0;function Zr(e){return e==null?e===void 0?u_:a_:dp&&dp in Object(e)?i_(e):l_(e)}function xy(e,t){return function(n){return e(t(n))}}var ld=xy(Object.getPrototypeOf,Object);function Jr(e){return e!=null&&typeof e=="object"}var c_="[object Object]",f_=Function.prototype,d_=Object.prototype,Sy=f_.toString,h_=d_.hasOwnProperty,p_=Sy.call(Object);function hp(e){if(!Jr(e)||Zr(e)!=c_)return!1;var t=ld(e);if(t===null)return!0;var n=h_.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Sy.call(n)==p_}function m_(){this.__data__=[],this.size=0}function by(e,t){return e===t||e!==e&&t!==t}function ga(e,t){for(var n=e.length;n--;)if(by(e[n][0],t))return n;return-1}var g_=Array.prototype,y_=g_.splice;function v_(e){var t=this.__data__,n=ga(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():y_.call(t,n,1),--this.size,!0}function w_(e){var t=this.__data__,n=ga(t,e);return n<0?void 0:t[n][1]}function x_(e){return ga(this.__data__,e)>-1}function S_(e,t){var n=this.__data__,r=ga(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Pn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pn.prototype.clear=m_;Pn.prototype.delete=v_;Pn.prototype.get=w_;Pn.prototype.has=x_;Pn.prototype.set=S_;function b_(){this.__data__=new Pn,this.size=0}function E_(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function __(e){return this.__data__.get(e)}function k_(e){return this.__data__.has(e)}function co(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var C_="[object AsyncFunction]",T_="[object Function]",O_="[object GeneratorFunction]",R_="[object Proxy]";function Ey(e){if(!co(e))return!1;var t=Zr(e);return t==T_||t==O_||t==C_||t==R_}var gu=pn["__core-js_shared__"],pp=function(){var e=/[^.]+$/.exec(gu&&gu.keys&&gu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function N_(e){return!!pp&&pp in e}var P_=Function.prototype,A_=P_.toString;function ei(e){if(e!=null){try{return A_.call(e)}catch{}try{return e+""}catch{}}return""}var j_=/[\\^$.*+?()[\]{}|]/g,F_=/^\[object .+?Constructor\]$/,$_=Function.prototype,I_=Object.prototype,L_=$_.toString,D_=I_.hasOwnProperty,M_=RegExp("^"+L_.call(D_).replace(j_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z_(e){if(!co(e)||N_(e))return!1;var t=Ey(e)?M_:F_;return t.test(ei(e))}function B_(e,t){return e==null?void 0:e[t]}function ti(e,t){var n=B_(e,t);return z_(n)?n:void 0}var Zs=ti(pn,"Map"),Js=ti(Object,"create");function U_(){this.__data__=Js?Js(null):{},this.size=0}function V_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var H_="__lodash_hash_undefined__",W_=Object.prototype,Q_=W_.hasOwnProperty;function q_(e){var t=this.__data__;if(Js){var n=t[e];return n===H_?void 0:n}return Q_.call(t,e)?t[e]:void 0}var K_=Object.prototype,Y_=K_.hasOwnProperty;function G_(e){var t=this.__data__;return Js?t[e]!==void 0:Y_.call(t,e)}var X_="__lodash_hash_undefined__";function Z_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Js&&t===void 0?X_:t,this}function Qr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qr.prototype.clear=U_;Qr.prototype.delete=V_;Qr.prototype.get=q_;Qr.prototype.has=G_;Qr.prototype.set=Z_;function J_(){this.size=0,this.__data__={hash:new Qr,map:new(Zs||Pn),string:new Qr}}function e2(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ya(e,t){var n=e.__data__;return e2(t)?n[typeof t=="string"?"string":"hash"]:n.map}function t2(e){var t=ya(this,e).delete(e);return this.size-=t?1:0,t}function n2(e){return ya(this,e).get(e)}function r2(e){return ya(this,e).has(e)}function i2(e,t){var n=ya(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gr.prototype.clear=J_;gr.prototype.delete=t2;gr.prototype.get=n2;gr.prototype.has=r2;gr.prototype.set=i2;var s2=200;function o2(e,t){var n=this.__data__;if(n instanceof Pn){var r=n.__data__;if(!Zs||r.length<s2-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new gr(r)}return n.set(e,t),this.size=n.size,this}function ts(e){var t=this.__data__=new Pn(e);this.size=t.size}ts.prototype.clear=b_;ts.prototype.delete=E_;ts.prototype.get=__;ts.prototype.has=k_;ts.prototype.set=o2;function l2(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var mp=function(){try{var e=ti(Object,"defineProperty");return e({},"",{}),e}catch{}}();function _y(e,t,n){t=="__proto__"&&mp?mp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var a2=Object.prototype,u2=a2.hasOwnProperty;function ky(e,t,n){var r=e[t];(!(u2.call(e,t)&&by(r,n))||n===void 0&&!(t in e))&&_y(e,t,n)}function va(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],a=void 0;a===void 0&&(a=e[l]),i?_y(n,l,a):ky(n,l,a)}return n}function c2(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var f2="[object Arguments]";function gp(e){return Jr(e)&&Zr(e)==f2}var Cy=Object.prototype,d2=Cy.hasOwnProperty,h2=Cy.propertyIsEnumerable,p2=gp(function(){return arguments}())?gp:function(e){return Jr(e)&&d2.call(e,"callee")&&!h2.call(e,"callee")},fo=Array.isArray;function m2(){return!1}var Ty=typeof yt=="object"&&yt&&!yt.nodeType&&yt,yp=Ty&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,g2=yp&&yp.exports===Ty,vp=g2?pn.Buffer:void 0,y2=vp?vp.isBuffer:void 0,Oy=y2||m2,v2=9007199254740991,w2=/^(?:0|[1-9]\d*)$/;function x2(e,t){var n=typeof e;return t=t??v2,!!t&&(n=="number"||n!="symbol"&&w2.test(e))&&e>-1&&e%1==0&&e<t}var S2=9007199254740991;function Ry(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=S2}var b2="[object Arguments]",E2="[object Array]",_2="[object Boolean]",k2="[object Date]",C2="[object Error]",T2="[object Function]",O2="[object Map]",R2="[object Number]",N2="[object Object]",P2="[object RegExp]",A2="[object Set]",j2="[object String]",F2="[object WeakMap]",$2="[object ArrayBuffer]",I2="[object DataView]",L2="[object Float32Array]",D2="[object Float64Array]",M2="[object Int8Array]",z2="[object Int16Array]",B2="[object Int32Array]",U2="[object Uint8Array]",V2="[object Uint8ClampedArray]",H2="[object Uint16Array]",W2="[object Uint32Array]",ce={};ce[L2]=ce[D2]=ce[M2]=ce[z2]=ce[B2]=ce[U2]=ce[V2]=ce[H2]=ce[W2]=!0;ce[b2]=ce[E2]=ce[$2]=ce[_2]=ce[I2]=ce[k2]=ce[C2]=ce[T2]=ce[O2]=ce[R2]=ce[N2]=ce[P2]=ce[A2]=ce[j2]=ce[F2]=!1;function Q2(e){return Jr(e)&&Ry(e.length)&&!!ce[Zr(e)]}function ad(e){return function(t){return e(t)}}var Ny=typeof yt=="object"&&yt&&!yt.nodeType&&yt,Rs=Ny&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,q2=Rs&&Rs.exports===Ny,yu=q2&&vy.process,Qi=function(){try{var e=Rs&&Rs.require&&Rs.require("util").types;return e||yu&&yu.binding&&yu.binding("util")}catch{}}(),wp=Qi&&Qi.isTypedArray,K2=wp?ad(wp):Q2,Y2=Object.prototype,G2=Y2.hasOwnProperty;function Py(e,t){var n=fo(e),r=!n&&p2(e),i=!n&&!r&&Oy(e),s=!n&&!r&&!i&&K2(e),o=n||r||i||s,l=o?c2(e.length,String):[],a=l.length;for(var c in e)(t||G2.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||x2(c,a)))&&l.push(c);return l}var X2=Object.prototype;function ud(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||X2;return e===n}var Z2=xy(Object.keys,Object),J2=Object.prototype,ek=J2.hasOwnProperty;function tk(e){if(!ud(e))return Z2(e);var t=[];for(var n in Object(e))ek.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ay(e){return e!=null&&Ry(e.length)&&!Ey(e)}function cd(e){return Ay(e)?Py(e):tk(e)}function nk(e,t){return e&&va(t,cd(t),e)}function rk(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ik=Object.prototype,sk=ik.hasOwnProperty;function ok(e){if(!co(e))return rk(e);var t=ud(e),n=[];for(var r in e)r=="constructor"&&(t||!sk.call(e,r))||n.push(r);return n}function fd(e){return Ay(e)?Py(e,!0):ok(e)}function lk(e,t){return e&&va(t,fd(t),e)}var jy=typeof yt=="object"&&yt&&!yt.nodeType&&yt,xp=jy&&typeof vt=="object"&&vt&&!vt.nodeType&&vt,ak=xp&&xp.exports===jy,Sp=ak?pn.Buffer:void 0,bp=Sp?Sp.allocUnsafe:void 0;function uk(e,t){if(t)return e.slice();var n=e.length,r=bp?bp(n):new e.constructor(n);return e.copy(r),r}function Fy(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function ck(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function $y(){return[]}var fk=Object.prototype,dk=fk.propertyIsEnumerable,Ep=Object.getOwnPropertySymbols,dd=Ep?function(e){return e==null?[]:(e=Object(e),ck(Ep(e),function(t){return dk.call(e,t)}))}:$y;function hk(e,t){return va(e,dd(e),t)}function Iy(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var pk=Object.getOwnPropertySymbols,Ly=pk?function(e){for(var t=[];e;)Iy(t,dd(e)),e=ld(e);return t}:$y;function mk(e,t){return va(e,Ly(e),t)}function Dy(e,t,n){var r=t(e);return fo(e)?r:Iy(r,n(e))}function gk(e){return Dy(e,cd,dd)}function yk(e){return Dy(e,fd,Ly)}var Bc=ti(pn,"DataView"),Uc=ti(pn,"Promise"),Vc=ti(pn,"Set"),Hc=ti(pn,"WeakMap"),_p="[object Map]",vk="[object Object]",kp="[object Promise]",Cp="[object Set]",Tp="[object WeakMap]",Op="[object DataView]",wk=ei(Bc),xk=ei(Zs),Sk=ei(Uc),bk=ei(Vc),Ek=ei(Hc),xn=Zr;(Bc&&xn(new Bc(new ArrayBuffer(1)))!=Op||Zs&&xn(new Zs)!=_p||Uc&&xn(Uc.resolve())!=kp||Vc&&xn(new Vc)!=Cp||Hc&&xn(new Hc)!=Tp)&&(xn=function(e){var t=Zr(e),n=t==vk?e.constructor:void 0,r=n?ei(n):"";if(r)switch(r){case wk:return Op;case xk:return _p;case Sk:return kp;case bk:return Cp;case Ek:return Tp}return t});var _k=Object.prototype,kk=_k.hasOwnProperty;function Ck(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&kk.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Rp=pn.Uint8Array;function hd(e){var t=new e.constructor(e.byteLength);return new Rp(t).set(new Rp(e)),t}function Tk(e,t){var n=t?hd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Ok=/\w*$/;function Rk(e){var t=new e.constructor(e.source,Ok.exec(e));return t.lastIndex=e.lastIndex,t}var Np=dr?dr.prototype:void 0,Pp=Np?Np.valueOf:void 0;function Nk(e){return Pp?Object(Pp.call(e)):{}}function Pk(e,t){var n=t?hd(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Ak="[object Boolean]",jk="[object Date]",Fk="[object Map]",$k="[object Number]",Ik="[object RegExp]",Lk="[object Set]",Dk="[object String]",Mk="[object Symbol]",zk="[object ArrayBuffer]",Bk="[object DataView]",Uk="[object Float32Array]",Vk="[object Float64Array]",Hk="[object Int8Array]",Wk="[object Int16Array]",Qk="[object Int32Array]",qk="[object Uint8Array]",Kk="[object Uint8ClampedArray]",Yk="[object Uint16Array]",Gk="[object Uint32Array]";function Xk(e,t,n){var r=e.constructor;switch(t){case zk:return hd(e);case Ak:case jk:return new r(+e);case Bk:return Tk(e,n);case Uk:case Vk:case Hk:case Wk:case Qk:case qk:case Kk:case Yk:case Gk:return Pk(e,n);case Fk:return new r;case $k:case Dk:return new r(e);case Ik:return Rk(e);case Lk:return new r;case Mk:return Nk(e)}}var Ap=Object.create,Zk=function(){function e(){}return function(t){if(!co(t))return{};if(Ap)return Ap(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Jk(e){return typeof e.constructor=="function"&&!ud(e)?Zk(ld(e)):{}}var eC="[object Map]";function tC(e){return Jr(e)&&xn(e)==eC}var jp=Qi&&Qi.isMap,nC=jp?ad(jp):tC,rC="[object Set]";function iC(e){return Jr(e)&&xn(e)==rC}var Fp=Qi&&Qi.isSet,sC=Fp?ad(Fp):iC,oC=1,lC=2,aC=4,My="[object Arguments]",uC="[object Array]",cC="[object Boolean]",fC="[object Date]",dC="[object Error]",zy="[object Function]",hC="[object GeneratorFunction]",pC="[object Map]",mC="[object Number]",By="[object Object]",gC="[object RegExp]",yC="[object Set]",vC="[object String]",wC="[object Symbol]",xC="[object WeakMap]",SC="[object ArrayBuffer]",bC="[object DataView]",EC="[object Float32Array]",_C="[object Float64Array]",kC="[object Int8Array]",CC="[object Int16Array]",TC="[object Int32Array]",OC="[object Uint8Array]",RC="[object Uint8ClampedArray]",NC="[object Uint16Array]",PC="[object Uint32Array]",le={};le[My]=le[uC]=le[SC]=le[bC]=le[cC]=le[fC]=le[EC]=le[_C]=le[kC]=le[CC]=le[TC]=le[pC]=le[mC]=le[By]=le[gC]=le[yC]=le[vC]=le[wC]=le[OC]=le[RC]=le[NC]=le[PC]=!0;le[dC]=le[zy]=le[xC]=!1;function Ns(e,t,n,r,i,s){var o,l=t&oC,a=t&lC,c=t&aC;if(o!==void 0)return o;if(!co(e))return e;var d=fo(e);if(d){if(o=Ck(e),!l)return Fy(e,o)}else{var u=xn(e),f=u==zy||u==hC;if(Oy(e))return uk(e,l);if(u==By||u==My||f&&!i){if(o=a||f?{}:Jk(e),!l)return a?mk(e,lk(o,e)):hk(e,nk(o,e))}else{if(!le[u])return i?e:{};o=Xk(e,u,l)}}s||(s=new ts);var g=s.get(e);if(g)return g;s.set(e,o),sC(e)?e.forEach(function(x){o.add(Ns(x,t,n,x,e,s))}):nC(e)&&e.forEach(function(x,m){o.set(m,Ns(x,t,n,m,e,s))});var v=c?a?yk:gk:a?fd:cd,w=d?void 0:v(e);return l2(w||e,function(x,m){w&&(m=x,x=e[m]),ky(o,m,Ns(x,t,n,m,e,s))}),o}var AC=1,jC=4;function Vo(e){return Ns(e,AC|jC)}var $p=Array.isArray,Ip=Object.keys,FC=Object.prototype.hasOwnProperty,$C=typeof Element<"u";function Wc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=$p(e),r=$p(t),i,s,o;if(n&&r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!Wc(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var l=e instanceof Date,a=t instanceof Date;if(l!=a)return!1;if(l&&a)return e.getTime()==t.getTime();var c=e instanceof RegExp,d=t instanceof RegExp;if(c!=d)return!1;if(c&&d)return e.toString()==t.toString();var u=Ip(e);if(s=u.length,s!==Ip(t).length)return!1;for(i=s;i--!==0;)if(!FC.call(t,u[i]))return!1;if($C&&e instanceof Element&&t instanceof Element)return e===t;for(i=s;i--!==0;)if(o=u[i],!(o==="_owner"&&e.$$typeof)&&!Wc(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var IC=function(t,n){try{return Wc(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const br=qi(IC);var LC=4;function Lp(e){return Ns(e,LC)}function Uy(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var DC="[object Symbol]";function pd(e){return typeof e=="symbol"||Jr(e)&&Zr(e)==DC}var MC="Expected a function";function md(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(MC);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(md.Cache||gr),n}md.Cache=gr;var zC=500;function BC(e){var t=md(e,function(r){return n.size===zC&&n.clear(),r}),n=t.cache;return t}var UC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,VC=/\\(\\)?/g,HC=BC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(UC,function(n,r,i,s){t.push(i?s.replace(VC,"$1"):r||n)}),t}),WC=1/0;function QC(e){if(typeof e=="string"||pd(e))return e;var t=e+"";return t=="0"&&1/e==-WC?"-0":t}var qC=1/0,Dp=dr?dr.prototype:void 0,Mp=Dp?Dp.toString:void 0;function Vy(e){if(typeof e=="string")return e;if(fo(e))return Uy(e,Vy)+"";if(pd(e))return Mp?Mp.call(e):"";var t=e+"";return t=="0"&&1/e==-qC?"-0":t}function KC(e){return e==null?"":Vy(e)}function Hy(e){return fo(e)?Uy(e,QC):pd(e)?[e]:Fy(HC(KC(e)))}var Wy={exports:{}},ie={};/** @license React v16.13.1
82
82
  * react-is.production.min.js
83
83
  *
84
84
  * Copyright (c) Facebook, Inc. and its affiliates.
85
85
  *
86
86
  * This source code is licensed under the MIT license found in the
87
87
  * LICENSE file in the root directory of this source tree.
88
- */var Ae=typeof Symbol=="function"&&Symbol.for,md=Ae?Symbol.for("react.element"):60103,yd=Ae?Symbol.for("react.portal"):60106,vl=Ae?Symbol.for("react.fragment"):60107,wl=Ae?Symbol.for("react.strict_mode"):60108,xl=Ae?Symbol.for("react.profiler"):60114,Sl=Ae?Symbol.for("react.provider"):60109,El=Ae?Symbol.for("react.context"):60110,gd=Ae?Symbol.for("react.async_mode"):60111,_l=Ae?Symbol.for("react.concurrent_mode"):60111,bl=Ae?Symbol.for("react.forward_ref"):60112,kl=Ae?Symbol.for("react.suspense"):60113,KC=Ae?Symbol.for("react.suspense_list"):60120,Cl=Ae?Symbol.for("react.memo"):60115,Tl=Ae?Symbol.for("react.lazy"):60116,YC=Ae?Symbol.for("react.block"):60121,GC=Ae?Symbol.for("react.fundamental"):60117,XC=Ae?Symbol.for("react.responder"):60118,ZC=Ae?Symbol.for("react.scope"):60119;function _t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case md:switch(e=e.type,e){case gd:case _l:case vl:case xl:case wl:case kl:return e;default:switch(e=e&&e.$$typeof,e){case El:case bl:case Tl:case Cl:case Sl:return e;default:return t}}case yd:return t}}}function Qg(e){return _t(e)===_l}ie.AsyncMode=gd;ie.ConcurrentMode=_l;ie.ContextConsumer=El;ie.ContextProvider=Sl;ie.Element=md;ie.ForwardRef=bl;ie.Fragment=vl;ie.Lazy=Tl;ie.Memo=Cl;ie.Portal=yd;ie.Profiler=xl;ie.StrictMode=wl;ie.Suspense=kl;ie.isAsyncMode=function(e){return Qg(e)||_t(e)===gd};ie.isConcurrentMode=Qg;ie.isContextConsumer=function(e){return _t(e)===El};ie.isContextProvider=function(e){return _t(e)===Sl};ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===md};ie.isForwardRef=function(e){return _t(e)===bl};ie.isFragment=function(e){return _t(e)===vl};ie.isLazy=function(e){return _t(e)===Tl};ie.isMemo=function(e){return _t(e)===Cl};ie.isPortal=function(e){return _t(e)===yd};ie.isProfiler=function(e){return _t(e)===xl};ie.isStrictMode=function(e){return _t(e)===wl};ie.isSuspense=function(e){return _t(e)===kl};ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===vl||e===_l||e===xl||e===wl||e===kl||e===KC||typeof e=="object"&&e!==null&&(e.$$typeof===Tl||e.$$typeof===Cl||e.$$typeof===Sl||e.$$typeof===El||e.$$typeof===bl||e.$$typeof===GC||e.$$typeof===XC||e.$$typeof===ZC||e.$$typeof===YC)};ie.typeOf=_t;Wg.exports=ie;var JC=Wg.exports,qg=JC,eT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Kg={};Kg[qg.ForwardRef]=eT;Kg[qg.Memo]=tT;function Oe(){return Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(this,arguments)}function Yg(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ol=S.createContext(void 0);Ol.displayName="FormikContext";Ol.Provider;Ol.Consumer;function nT(){var e=S.useContext(Ol);return e}var Mt=function(t){return typeof t=="function"},Rl=function(t){return t!==null&&typeof t=="object"},rT=function(t){return String(Math.floor(Number(t)))===t},vu=function(t){return Object.prototype.toString.call(t)==="[object String]"},wu=function(t){return Rl(t)&&Mt(t.then)};function ht(e,t,n,r){r===void 0&&(r=0);for(var i=Hg(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function Dr(e,t,n){for(var r=Ip(e),i=r,s=0,o=Hg(t);s<o.length-1;s++){var a=o[s],l=ht(e,o.slice(0,s+1));if(l&&(Rl(l)||Array.isArray(l)))i=i[a]=Ip(l);else{var c=o[s+1];i=i[a]=rT(c)&&Number(c)>=0?[]:{}}}return(s===0?e:i)[o[s]]===n?e:(n===void 0?delete i[o[s]]:i[o[s]]=n,s===0&&n===void 0&&delete r[o[s]],r)}function Gg(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i],a=e[o];Rl(a)?n.get(a)||(n.set(a,!0),r[o]=Array.isArray(a)?[]:{},Gg(a,t,n,r[o])):r[o]=t}return r}function iT(e,t){switch(t.type){case"SET_VALUES":return Oe({},e,{values:t.payload});case"SET_TOUCHED":return Oe({},e,{touched:t.payload});case"SET_ERRORS":return Er(e.errors,t.payload)?e:Oe({},e,{errors:t.payload});case"SET_STATUS":return Oe({},e,{status:t.payload});case"SET_ISSUBMITTING":return Oe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Oe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Oe({},e,{values:Dr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Oe({},e,{touched:Dr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Oe({},e,{errors:Dr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Oe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Oe({},e,{touched:Gg(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Oe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Oe({},e,{isSubmitting:!1});default:return e}}var wr={},Ho={};function sT(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,s=e.validateOnMount,o=s===void 0?!1:s,a=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,d=e.onSubmit,u=Yg(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Oe({validateOnChange:n,validateOnBlur:i,validateOnMount:o,onSubmit:d},u),m=S.useRef(f.initialValues),v=S.useRef(f.initialErrors||wr),w=S.useRef(f.initialTouched||Ho),x=S.useRef(f.initialStatus),p=S.useRef(!1),h=S.useRef({});S.useEffect(function(){return p.current=!0,function(){p.current=!1}},[]);var g=S.useState(0),_=g[1],T=S.useRef({values:Vo(f.initialValues),errors:Vo(f.initialErrors)||wr,touched:Vo(f.initialTouched)||Ho,status:Vo(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=T.current,k=S.useCallback(function(E){var A=T.current;T.current=iT(A,E),A!==T.current&&_(function($){return $+1})},[]),R=S.useCallback(function(E,A){return new Promise(function($,z){var W=f.validate(E,A);W==null?$(wr):wu(W)?W.then(function(te){$(te||wr)},function(te){z(te)}):$(W)})},[f.validate]),I=S.useCallback(function(E,A){var $=f.validationSchema,z=Mt($)?$(A):$,W=A&&z.validateAt?z.validateAt(A,E):aT(E,z);return new Promise(function(te,we){W.then(function(){te(wr)},function(ft){ft.name==="ValidationError"?te(oT(ft)):we(ft)})})},[f.validationSchema]),D=S.useCallback(function(E,A){return new Promise(function($){return $(h.current[E].validate(A))})},[]),B=S.useCallback(function(E){var A=Object.keys(h.current).filter(function(z){return Mt(h.current[z].validate)}),$=A.length>0?A.map(function(z){return D(z,ht(E,z))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all($).then(function(z){return z.reduce(function(W,te,we){return te==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||te&&(W=Dr(W,A[we],te)),W},{})})},[D]),se=S.useCallback(function(E){return Promise.all([B(E),f.validationSchema?I(E):{},f.validate?R(E):{}]).then(function(A){var $=A[0],z=A[1],W=A[2],te=Mc.all([$,z,W],{arrayMerge:lT});return te})},[f.validate,f.validationSchema,B,R,I]),oe=kt(function(E){return E===void 0&&(E=C.values),k({type:"SET_ISVALIDATING",payload:!0}),se(E).then(function(A){return p.current&&(k({type:"SET_ISVALIDATING",payload:!1}),k({type:"SET_ERRORS",payload:A})),A})});S.useEffect(function(){o&&p.current===!0&&Er(m.current,f.initialValues)&&oe(m.current)},[o,oe]);var Ve=S.useCallback(function(E){var A=E&&E.values?E.values:m.current,$=E&&E.errors?E.errors:v.current?v.current:f.initialErrors||{},z=E&&E.touched?E.touched:w.current?w.current:f.initialTouched||{},W=E&&E.status?E.status:x.current?x.current:f.initialStatus;m.current=A,v.current=$,w.current=z,x.current=W;var te=function(){k({type:"RESET_FORM",payload:{isSubmitting:!!E&&!!E.isSubmitting,errors:$,touched:z,status:W,values:A,isValidating:!!E&&!!E.isValidating,submitCount:E&&E.submitCount&&typeof E.submitCount=="number"?E.submitCount:0}})};if(f.onReset){var we=f.onReset(C.values,po);wu(we)?we.then(te):te()}else te()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);S.useEffect(function(){p.current===!0&&!Er(m.current,f.initialValues)&&c&&(m.current=f.initialValues,Ve(),o&&oe(m.current))},[c,f.initialValues,Ve,o,oe]),S.useEffect(function(){c&&p.current===!0&&!Er(v.current,f.initialErrors)&&(v.current=f.initialErrors||wr,k({type:"SET_ERRORS",payload:f.initialErrors||wr}))},[c,f.initialErrors]),S.useEffect(function(){c&&p.current===!0&&!Er(w.current,f.initialTouched)&&(w.current=f.initialTouched||Ho,k({type:"SET_TOUCHED",payload:f.initialTouched||Ho}))},[c,f.initialTouched]),S.useEffect(function(){c&&p.current===!0&&!Er(x.current,f.initialStatus)&&(x.current=f.initialStatus,k({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var He=kt(function(E){if(h.current[E]&&Mt(h.current[E].validate)){var A=ht(C.values,E),$=h.current[E].validate(A);return wu($)?(k({type:"SET_ISVALIDATING",payload:!0}),$.then(function(z){return z}).then(function(z){k({type:"SET_FIELD_ERROR",payload:{field:E,value:z}}),k({type:"SET_ISVALIDATING",payload:!1})})):(k({type:"SET_FIELD_ERROR",payload:{field:E,value:$}}),Promise.resolve($))}else if(f.validationSchema)return k({type:"SET_ISVALIDATING",payload:!0}),I(C.values,E).then(function(z){return z}).then(function(z){k({type:"SET_FIELD_ERROR",payload:{field:E,value:ht(z,E)}}),k({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),K=S.useCallback(function(E,A){var $=A.validate;h.current[E]={validate:$}},[]),We=S.useCallback(function(E){delete h.current[E]},[]),N=kt(function(E,A){k({type:"SET_TOUCHED",payload:E});var $=A===void 0?i:A;return $?oe(C.values):Promise.resolve()}),L=S.useCallback(function(E){k({type:"SET_ERRORS",payload:E})},[]),H=kt(function(E,A){var $=Mt(E)?E(C.values):E;k({type:"SET_VALUES",payload:$});var z=A===void 0?n:A;return z?oe($):Promise.resolve()}),M=S.useCallback(function(E,A){k({type:"SET_FIELD_ERROR",payload:{field:E,value:A}})},[]),V=kt(function(E,A,$){k({type:"SET_FIELD_VALUE",payload:{field:E,value:A}});var z=$===void 0?n:$;return z?oe(Dr(C.values,E,A)):Promise.resolve()}),ee=S.useCallback(function(E,A){var $=A,z=E,W;if(!vu(E)){E.persist&&E.persist();var te=E.target?E.target:E.currentTarget,we=te.type,ft=te.name,Xt=te.id,ni=te.value,Fn=te.checked,wd=te.outerHTML,go=te.options,vo=te.multiple;$=A||ft||Xt,z=/number|range/.test(we)?(W=parseFloat(ni),isNaN(W)?"":W):/checkbox/.test(we)?cT(ht(C.values,$),Fn,ni):go&&vo?uT(go):ni}$&&V($,z)},[V,C.values]),de=kt(function(E){if(vu(E))return function(A){return ee(A,E)};ee(E)}),Ce=kt(function(E,A,$){A===void 0&&(A=!0),k({type:"SET_FIELD_TOUCHED",payload:{field:E,value:A}});var z=$===void 0?i:$;return z?oe(C.values):Promise.resolve()}),Z=S.useCallback(function(E,A){E.persist&&E.persist();var $=E.target,z=$.name,W=$.id,te=$.outerHTML,we=A||z||W;Ce(we,!0)},[Ce]),Ze=kt(function(E){if(vu(E))return function(A){return Z(A,E)};Z(E)}),mn=S.useCallback(function(E){Mt(E)?k({type:"SET_FORMIK_STATE",payload:E}):k({type:"SET_FORMIK_STATE",payload:function(){return E}})},[]),An=S.useCallback(function(E){k({type:"SET_STATUS",payload:E})},[]),jn=S.useCallback(function(E){k({type:"SET_ISSUBMITTING",payload:E})},[]),ns=kt(function(){return k({type:"SUBMIT_ATTEMPT"}),oe().then(function(E){var A=E instanceof Error,$=!A&&Object.keys(E).length===0;if($){var z;try{if(z=rs(),z===void 0)return}catch(W){throw W}return Promise.resolve(z).then(function(W){return p.current&&k({type:"SUBMIT_SUCCESS"}),W}).catch(function(W){if(p.current)throw k({type:"SUBMIT_FAILURE"}),W})}else if(p.current&&(k({type:"SUBMIT_FAILURE"}),A))throw E})}),ho=kt(function(E){E&&E.preventDefault&&Mt(E.preventDefault)&&E.preventDefault(),E&&E.stopPropagation&&Mt(E.stopPropagation)&&E.stopPropagation(),ns().catch(function(A){console.warn("Warning: An unhandled error was caught from submitForm()",A)})}),po={resetForm:Ve,validateForm:oe,validateField:He,setErrors:L,setFieldError:M,setFieldTouched:Ce,setFieldValue:V,setStatus:An,setSubmitting:jn,setTouched:N,setValues:H,setFormikState:mn,submitForm:ns},rs=kt(function(){return d(C.values,po)}),Pl=kt(function(E){E&&E.preventDefault&&Mt(E.preventDefault)&&E.preventDefault(),E&&E.stopPropagation&&Mt(E.stopPropagation)&&E.stopPropagation(),Ve()}),mo=S.useCallback(function(E){return{value:ht(C.values,E),error:ht(C.errors,E),touched:!!ht(C.touched,E),initialValue:ht(m.current,E),initialTouched:!!ht(w.current,E),initialError:ht(v.current,E)}},[C.errors,C.touched,C.values]),gr=S.useCallback(function(E){return{setValue:function($,z){return V(E,$,z)},setTouched:function($,z){return Ce(E,$,z)},setError:function($){return M(E,$)}}},[V,Ce,M]),yo=S.useCallback(function(E){var A=Rl(E),$=A?E.name:E,z=ht(C.values,$),W={name:$,value:z,onChange:de,onBlur:Ze};if(A){var te=E.type,we=E.value,ft=E.as,Xt=E.multiple;te==="checkbox"?we===void 0?W.checked=!!z:(W.checked=!!(Array.isArray(z)&&~z.indexOf(we)),W.value=we):te==="radio"?(W.checked=z===we,W.value=we):ft==="select"&&Xt&&(W.value=W.value||[],W.multiple=!0)}return W},[Ze,de,C.values]),ct=S.useMemo(function(){return!Er(m.current,C.values)},[m.current,C.values]),Nl=S.useMemo(function(){return typeof a<"u"?ct?C.errors&&Object.keys(C.errors).length===0:a!==!1&&Mt(a)?a(f):a:C.errors&&Object.keys(C.errors).length===0},[a,ct,C.errors,f]),Al=Oe({},C,{initialValues:m.current,initialErrors:v.current,initialTouched:w.current,initialStatus:x.current,handleBlur:Ze,handleChange:de,handleReset:Pl,handleSubmit:ho,resetForm:Ve,setErrors:L,setFormikState:mn,setFieldTouched:Ce,setFieldValue:V,setFieldError:M,setStatus:An,setSubmitting:jn,setTouched:N,setValues:H,submitForm:ns,validateForm:oe,validateField:He,isValid:Nl,dirty:ct,unregisterField:We,registerField:K,getFieldProps:yo,getFieldMeta:mo,getFieldHelpers:gr,validateOnBlur:i,validateOnChange:n,validateOnMount:o});return Al}function oT(e){var t={};if(e.inner){if(e.inner.length===0)return Dr(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var s;if(n){if(r>=i.length)break;s=i[r++]}else{if(r=i.next(),r.done)break;s=r.value}var o=s;ht(t,o.path)||(t=Dr(t,o.path,o.message))}}return t}function aT(e,t,n,r){n===void 0&&(n=!1);var i=Wc(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function Wc(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(i){return Array.isArray(i)===!0||dp(i)?Wc(i):i!==""?i:void 0}):dp(e[r])?t[r]=Wc(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function lT(e,t,n){var r=e.slice();return t.forEach(function(s,o){if(typeof r[o]>"u"){var a=n.clone!==!1,l=a&&n.isMergeableObject(s);r[o]=l?Mc(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[o]=Mc(e[o],s,n):e.indexOf(s)===-1&&r.push(s)}),r}function uT(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function cT(e,t,n){if(typeof e=="boolean")return!!t;var r=[],i=!1,s=-1;if(Array.isArray(e))r=e,s=e.indexOf(n),i=s>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,s).concat(r.slice(s+1)):r}var fT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function kt(e){var t=S.useRef(e);return fT(function(){t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var dT=S.forwardRef(function(e,t){var n=e.action,r=Yg(e,["action"]),i=n??"#",s=nT(),o=s.handleReset,a=s.handleSubmit;return S.createElement("form",Oe({onSubmit:a,ref:t,onReset:o,action:i},r))});dT.displayName="Form";const hT=({init:e,schema:t,action:n})=>sT({initialValues:e,validationSchema:t,validateOnBlur:!1,enableReinitialize:!0,validateOnChange:!1,validateOnMount:!1,onSubmit:r=>{n(r)}});function pT(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const mT=e=>{switch(e){case"success":return vT;case"info":return xT;case"warning":return wT;case"error":return ST;default:return null}},yT=Array(12).fill(0),gT=({visible:e,className:t})=>P.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},P.createElement("div",{className:"sonner-spinner"},yT.map((n,r)=>P.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),vT=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),wT=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},P.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"})),xT=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),ST=P.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},P.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"})),ET=P.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"},P.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),P.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_T=()=>{const[e,t]=P.useState(document.hidden);return P.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Qc=1;class bT{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Qc++,o=this.toasts.find(l=>l.id===s),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...t,id:s,title:r}),{...l,...t,id:s,dismissible:a,title:r}):l):this.addToast({title:r,...i,dismissible:a,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0}))),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,o;const a=i.then(async c=>{if(o=["resolve",c],P.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(CT(c)&&!c.ok){s=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,m=typeof u=="object"?u:{message:u};this.create({id:r,type:"error",description:f,...m})}else if(c instanceof Error){s=!1;const u=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"?u:{message:u};this.create({id:r,type:"error",description:f,...m})}else if(n.success!==void 0){s=!1;const u=typeof n.success=="function"?await n.success(c):n.success,f=typeof n.description=="function"?await n.description(c):n.description,m=typeof u=="object"?u:{message:u};this.create({id:r,type:"success",description:f,...m})}}).catch(async c=>{if(o=["reject",c],n.error!==void 0){s=!1;const d=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,f=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:u,...f})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((c,d)=>a.then(()=>o[0]==="reject"?d(o[1]):c(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:l}:Object.assign(r,{unwrap:l})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Qc++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const nt=new bT,kT=(e,t)=>{const n=(t==null?void 0:t.id)||Qc++;return nt.addToast({title:e,...t,id:n}),n},CT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",TT=kT,OT=()=>nt.toasts,RT=()=>nt.getActiveToasts(),Mp=Object.assign(TT,{success:nt.success,info:nt.info,warning:nt.warning,error:nt.error,custom:nt.custom,message:nt.message,promise:nt.promise,dismiss:nt.dismiss,loading:nt.loading},{getHistory:OT,getToasts:RT});pT("[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}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@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-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]::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 PT=3,NT="24px",AT="16px",zp=4e3,jT=356,FT=14,$T=45,IT=200;function Jt(...e){return e.filter(Boolean).join(" ")}function LT(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const DT=e=>{var t,n,r,i,s,o,a,l,c;const{invert:d,toast:u,unstyled:f,interacting:m,setHeights:v,visibleToasts:w,heights:x,index:p,toasts:h,expanded:g,removeToast:_,defaultRichColors:T,closeButton:C,style:k,cancelButtonStyle:R,actionButtonStyle:I,className:D="",descriptionClassName:B="",duration:se,position:oe,gap:Ve,expandByDefault:He,classNames:K,icons:We,closeButtonAriaLabel:N="Close toast"}=e,[L,H]=P.useState(null),[M,V]=P.useState(null),[ee,de]=P.useState(!1),[Ce,Z]=P.useState(!1),[Ze,mn]=P.useState(!1),[An,jn]=P.useState(!1),[ns,ho]=P.useState(!1),[po,rs]=P.useState(0),[Pl,mo]=P.useState(0),gr=P.useRef(u.duration||se||zp),yo=P.useRef(null),ct=P.useRef(null),Nl=p===0,Al=p+1<=w,E=u.type,A=u.dismissible!==!1,$=u.className||"",z=u.descriptionClassName||"",W=P.useMemo(()=>x.findIndex(Q=>Q.toastId===u.id)||0,[x,u.id]),te=P.useMemo(()=>{var Q;return(Q=u.closeButton)!=null?Q:C},[u.closeButton,C]),we=P.useMemo(()=>u.duration||se||zp,[u.duration,se]),ft=P.useRef(0),Xt=P.useRef(0),ni=P.useRef(0),Fn=P.useRef(null),[wd,go]=oe.split("-"),vo=P.useMemo(()=>x.reduce((Q,Te,Le)=>Le>=W?Q:Q+Te.height,0),[x,W]),xd=_T(),nv=u.invert||d,jl=E==="loading";Xt.current=P.useMemo(()=>W*Ve+vo,[W,vo]),P.useEffect(()=>{gr.current=we},[we]),P.useEffect(()=>{de(!0)},[]),P.useEffect(()=>{const Q=ct.current;if(Q){const Te=Q.getBoundingClientRect().height;return mo(Te),v(Le=>[{toastId:u.id,height:Te,position:u.position},...Le]),()=>v(Le=>Le.filter(dt=>dt.toastId!==u.id))}},[v,u.id]),P.useLayoutEffect(()=>{if(!ee)return;const Q=ct.current,Te=Q.style.height;Q.style.height="auto";const Le=Q.getBoundingClientRect().height;Q.style.height=Te,mo(Le),v(dt=>dt.find(je=>je.toastId===u.id)?dt.map(je=>je.toastId===u.id?{...je,height:Le}:je):[{toastId:u.id,height:Le,position:u.position},...dt])},[ee,u.title,u.description,v,u.id]);const $n=P.useCallback(()=>{Z(!0),rs(Xt.current),v(Q=>Q.filter(Te=>Te.toastId!==u.id)),setTimeout(()=>{_(u)},IT)},[u,_,v,Xt]);P.useEffect(()=>{if(u.promise&&E==="loading"||u.duration===1/0||u.type==="loading")return;let Q;return g||m||xd?(()=>{if(ni.current<ft.current){const dt=new Date().getTime()-ft.current;gr.current=gr.current-dt}ni.current=new Date().getTime()})():(()=>{gr.current!==1/0&&(ft.current=new Date().getTime(),Q=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),$n()},gr.current))})(),()=>clearTimeout(Q)},[g,m,u,E,xd,$n]),P.useEffect(()=>{u.delete&&$n()},[$n,u.delete]);function rv(){var Q;if(We!=null&&We.loading){var Te;return P.createElement("div",{className:Jt(K==null?void 0:K.loader,u==null||(Te=u.classNames)==null?void 0:Te.loader,"sonner-loader"),"data-visible":E==="loading"},We.loading)}return P.createElement(gT,{className:Jt(K==null?void 0:K.loader,u==null||(Q=u.classNames)==null?void 0:Q.loader),visible:E==="loading"})}var Sd,Ed;return P.createElement("li",{tabIndex:0,ref:ct,className:Jt(D,$,K==null?void 0:K.toast,u==null||(t=u.classNames)==null?void 0:t.toast,K==null?void 0:K.default,K==null?void 0:K[E],u==null||(n=u.classNames)==null?void 0:n[E]),"data-sonner-toast":"","data-rich-colors":(Sd=u.richColors)!=null?Sd:T,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":ee,"data-promise":!!u.promise,"data-swiped":ns,"data-removed":Ce,"data-visible":Al,"data-y-position":wd,"data-x-position":go,"data-index":p,"data-front":Nl,"data-swiping":Ze,"data-dismissible":A,"data-type":E,"data-invert":nv,"data-swipe-out":An,"data-swipe-direction":M,"data-expanded":!!(g||He&&ee),style:{"--index":p,"--toasts-before":p,"--z-index":h.length-p,"--offset":`${Ce?po:Xt.current}px`,"--initial-height":He?"auto":`${Pl}px`,...k,...u.style},onDragEnd:()=>{mn(!1),H(null),Fn.current=null},onPointerDown:Q=>{jl||!A||(yo.current=new Date,rs(Xt.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(mn(!0),Fn.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,Te,Le;if(An||!A)return;Fn.current=null;const dt=Number(((Q=ct.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wo=Number(((Te=ct.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),je=new Date().getTime()-((Le=yo.current)==null?void 0:Le.getTime()),bt=L==="x"?dt:wo,xo=Math.abs(bt)/je;if(Math.abs(bt)>=$T||xo>.11){rs(Xt.current),u.onDismiss==null||u.onDismiss.call(u,u),V(L==="x"?dt>0?"right":"left":wo>0?"down":"up"),$n(),jn(!0);return}else{var It,Lt;(It=ct.current)==null||It.style.setProperty("--swipe-amount-x","0px"),(Lt=ct.current)==null||Lt.style.setProperty("--swipe-amount-y","0px")}ho(!1),mn(!1),H(null)},onPointerMove:Q=>{var Te,Le,dt;if(!Fn.current||!A||((Te=window.getSelection())==null?void 0:Te.toString().length)>0)return;const je=Q.clientY-Fn.current.y,bt=Q.clientX-Fn.current.x;var xo;const It=(xo=e.swipeDirections)!=null?xo:LT(oe);!L&&(Math.abs(bt)>1||Math.abs(je)>1)&&H(Math.abs(bt)>Math.abs(je)?"x":"y");let Lt={x:0,y:0};const _d=vr=>1/(1.5+Math.abs(vr)/20);if(L==="y"){if(It.includes("top")||It.includes("bottom"))if(It.includes("top")&&je<0||It.includes("bottom")&&je>0)Lt.y=je;else{const vr=je*_d(je);Lt.y=Math.abs(vr)<Math.abs(je)?vr:je}}else if(L==="x"&&(It.includes("left")||It.includes("right")))if(It.includes("left")&&bt<0||It.includes("right")&&bt>0)Lt.x=bt;else{const vr=bt*_d(bt);Lt.x=Math.abs(vr)<Math.abs(bt)?vr:bt}(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&ho(!0),(Le=ct.current)==null||Le.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(dt=ct.current)==null||dt.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},te&&!u.jsx&&E!=="loading"?P.createElement("button",{"aria-label":N,"data-disabled":jl,"data-close-button":!0,onClick:jl||!A?()=>{}:()=>{$n(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Jt(K==null?void 0:K.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Ed=We==null?void 0:We.close)!=null?Ed:ET):null,E||u.icon||u.promise?P.createElement("div",{"data-icon":"",className:Jt(K==null?void 0:K.icon,u==null||(i=u.classNames)==null?void 0:i.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||rv():null,u.type!=="loading"?u.icon||(We==null?void 0:We[E])||mT(E):null):null,P.createElement("div",{"data-content":"",className:Jt(K==null?void 0:K.content,u==null||(s=u.classNames)==null?void 0:s.content)},P.createElement("div",{"data-title":"",className:Jt(K==null?void 0:K.title,u==null||(o=u.classNames)==null?void 0:o.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?P.createElement("div",{"data-description":"",className:Jt(B,z,K==null?void 0:K.description,u==null||(a=u.classNames)==null?void 0:a.description)},typeof u.description=="function"?u.description():u.description):null),P.isValidElement(u.cancel)?u.cancel:u.cancel&&Wo(u.cancel)?P.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||R,onClick:Q=>{Wo(u.cancel)&&A&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,Q),$n())},className:Jt(K==null?void 0:K.cancelButton,u==null||(l=u.classNames)==null?void 0:l.cancelButton)},u.cancel.label):null,P.isValidElement(u.action)?u.action:u.action&&Wo(u.action)?P.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||I,onClick:Q=>{Wo(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,Q),!Q.defaultPrevented&&$n())},className:Jt(K==null?void 0:K.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Bp(){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 MT(e,t){const n={};return[e,t].forEach((r,i)=>{const s=i===1,o=s?"--mobile-offset":"--offset",a=s?AT:NT;function l(c){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=a:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):l(a)}),n}const zT=P.forwardRef(function(t,n){const{invert:r,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:a,className:l,offset:c,mobileOffset:d,theme:u="light",richColors:f,duration:m,style:v,visibleToasts:w=PT,toastOptions:x,dir:p=Bp(),gap:h=FT,icons:g,containerAriaLabel:_="Notifications"}=t,[T,C]=P.useState([]),k=P.useMemo(()=>Array.from(new Set([i].concat(T.filter(M=>M.position).map(M=>M.position)))),[T,i]),[R,I]=P.useState([]),[D,B]=P.useState(!1),[se,oe]=P.useState(!1),[Ve,He]=P.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=P.useRef(null),We=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=P.useRef(null),L=P.useRef(!1),H=P.useCallback(M=>{C(V=>{var ee;return(ee=V.find(de=>de.id===M.id))!=null&&ee.delete||nt.dismiss(M.id),V.filter(({id:de})=>de!==M.id)})},[]);return P.useEffect(()=>nt.subscribe(M=>{if(M.dismiss){const V=T.map(ee=>ee.id===M.id?{...ee,delete:!0}:ee);requestAnimationFrame(()=>{C(V)});return}setTimeout(()=>{Aw.flushSync(()=>{C(V=>{const ee=V.findIndex(de=>de.id===M.id);return ee!==-1?[...V.slice(0,ee),{...V[ee],...M},...V.slice(ee+1)]:[M,...V]})})})}),[T]),P.useEffect(()=>{if(u!=="system"){He(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?He("dark"):He("light")),typeof window>"u")return;const M=window.matchMedia("(prefers-color-scheme: dark)");try{M.addEventListener("change",({matches:V})=>{He(V?"dark":"light")})}catch{M.addListener(({matches:ee})=>{try{He(ee?"dark":"light")}catch(de){console.error(de)}})}},[u]),P.useEffect(()=>{T.length<=1&&B(!1)},[T]),P.useEffect(()=>{const M=V=>{var ee;if(s.every(Z=>V[Z]||V.code===Z)){var Ce;B(!0),(Ce=K.current)==null||Ce.focus()}V.code==="Escape"&&(document.activeElement===K.current||(ee=K.current)!=null&&ee.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[s]),P.useEffect(()=>{if(K.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,L.current=!1)}},[K.current]),P.createElement("section",{ref:n,"aria-label":`${_} ${We}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((M,V)=>{var ee;const[de,Ce]=M.split("-");return T.length?P.createElement("ol",{key:M,dir:p==="auto"?Bp():p,tabIndex:-1,ref:K,className:l,"data-sonner-toaster":!0,"data-sonner-theme":Ve,"data-y-position":de,"data-lifted":D&&T.length>1&&!o,"data-x-position":Ce,style:{"--front-toast-height":`${((ee=R[0])==null?void 0:ee.height)||0}px`,"--width":`${jT}px`,"--gap":`${h}px`,...v,...MT(c,d)},onBlur:Z=>{L.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(L.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||L.current||(L.current=!0,N.current=Z.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{se||B(!1)},onDragEnd:()=>B(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},T.filter(Z=>!Z.position&&V===0||Z.position===M).map((Z,Ze)=>{var mn,An;return P.createElement(DT,{key:Z.id,icons:g,index:Ze,toast:Z,defaultRichColors:f,duration:(mn=x==null?void 0:x.duration)!=null?mn:m,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:r,visibleToasts:w,closeButton:(An=x==null?void 0:x.closeButton)!=null?An:a,interacting:se,position:M,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,closeButtonAriaLabel:x==null?void 0:x.closeButtonAriaLabel,removeToast:H,toasts:T.filter(jn=>jn.position==Z.position),heights:R.filter(jn=>jn.position==Z.position),setHeights:I,expandByDefault:o,gap:h,expanded:D,swipeDirections:t.swipeDirections})})):null}))});function BT(e){return Array.isArray(e)&&e[0].field!==void 0}const UT=(e,t)=>{var n;if(BT(e)){for(const r of e)(n=t==null?void 0:t.form)==null||n.setFieldError(r.field,r.message);return}if(e&&e.message){t!=null&&t.noToast||Mp.error(e.message);return}if(e&&e.error){t!=null&&t.noToast||Mp.error(e.error);return}};function VT(e,t,n){let r=n;r||(r=Object.keys(e));for(let i of r){if(Array.isArray(e[i])&&Array.isArray(t[i])){if(e[i].length!==t[i].length)return!1;for(let s=0;s<e[i].length;s++)if(e[i][s]!==t[i][s])return!1;continue}if(e[i]!==t[i])return!1}return!0}function HT({id:e,text:t,required:n,className:r,noMargin:i}){return t?b.jsxs("label",{htmlFor:e,className:qt(r,{"lc-mb-2":!i},"lc-inline-block lc-text-base lc-font-medium"),children:[t," ",n&&b.jsx("span",{className:"lc-text-red-500",children:"*"})]}):null}const xu={sm:"lc-px-3 lc-py-1 lc-text-xs",md:"lc-px-4 lc-py-2 lc-text-sm",lg:"lc-px-5 lc-py-3 lc-text-15"};function qc({id:e,label:t,suffix:n,prefix:r,size:i="md",type:s="text",noMargin:o=!1,required:a=!1,error:l,ariaDescribedBy:c,className:d,ariaInvalid:u,ariaLabel:f,autoFocus:m,...v}){return b.jsxs("div",{className:qt({"lc-mb-3":!o},d),children:[b.jsx(HT,{id:e,text:t,required:a}),b.jsxs("div",{className:"lc-flex lc-items-center",children:[r&&b.jsx("span",{className:qt("lc-inline-block lc-border lc-border-r-0 lc-border-slate-200 lc-bg-slate-100 lc-rounded-l-md",xu[i],{"!lc-border-red-500":!!l}),children:r}),b.jsx("input",{id:e,className:qt("lc-border lc-rounded-md lc-block lc-text-base lc-py-2 lc-px-4 lc-w-full lc-border-slate-200 focus:lc-outline-none focus:lc-border-custom-500 disabled:lc-bg-slate-100 disabled:lc-border-slate-300 disabled:lc-text-slate-500 placeholder:lc-text-slate-400",xu[i],{"lc-rounded-l-none":!!r,"lc-rounded-r-none":!!n,"!lc-border-red-500 !lc-text-red-500":!!l}),type:s,required:a,"aria-describedby":c,"aria-invalid":u,"aria-label":f,...v}),n&&b.jsx("span",{className:qt("lc-inline-block lc-border lc-border-l-0 lc-border-slate-200 lc-bg-slate-100 lc-rounded-r-md",xu[i],{"!lc-border-red-500":!!l}),children:n})]}),!!l&&b.jsx("p",{className:"lc-mt-1 lc-text-sm lc-text-red-500",children:l})]})}const Up=e=>{const t=document.cookie.split(";").find(n=>n.trim().startsWith(`${e}=`));return t?t.split("=")[1]:""},Vp=e=>{const[t,n]=S.useState(Up(e));return S.useEffect(()=>{n(Up(e))},[e]),t},Hp=(e,t)=>{document.cookie=`${e}=${t}`},Xg=S.createContext({}),Zg=()=>`${window.location.pathname}_$$_${document.title}`,WT=()=>{const e=localStorage.getItem("lc-page");return!e||e===""?"/":Zg()},QT=()=>{const e=localStorage.getItem("lc-p-history");if(!e||e==="")return[];try{return JSON.parse(e)}catch{return[]}};function qT({children:e}){const[t,n]=S.useState("/"),[r,i]=S.useState(QT());function s(){i([]),localStorage.removeItem("lc-p-history")}const o=a=>{n(a),i(l=>[...new Set([...l,a])]),localStorage.setItem("lc-page",a),localStorage.setItem("lc-p-history",JSON.stringify(r))};return S.useEffect(()=>{o(Zg())},[]),b.jsx(Xg.Provider,{value:{page:t,setPage:o,history:r,clearHistory:s},children:e})}function vd(){return S.useContext(Xg)}const KT=yg({name:Dc().required("Name is required"),email:Dc().email("Invalid email").required("Email is required")}),YT={email:"",name:""};function GT({onOk:e,savedEmail:t,savedName:n,clientId:r}){const i=vd(),s=YE(),o=hT({init:{email:t||"",name:n||""},schema:KT,action:async l=>{const[c,d]=await s.mutateAsync({...l,history:i.history,client_id:r});if(yy(d)){i.clearHistory(),Hp("email",l.email),Hp("name",l.name),e==null||e();return}UT(c,{form:o})}}),a=!VT(YT,o.values);return b.jsxs("form",{className:"lc-grid lc-grid-cols-1 lc-gap-4",onSubmit:l=>{l.preventDefault(),o.handleSubmit()},children:[b.jsx(qc,{id:"name",name:"name",value:o.values.name,onChange:o.handleChange,onBlur:o.handleBlur,placeholder:"Adınız, ör: John Doe",error:o.errors.name,ariaInvalid:o.errors.name?!0:void 0,required:!0,noMargin:!0}),b.jsx(qc,{id:"email",name:"email",value:o.values.email,onChange:o.handleChange,onBlur:o.handleBlur,placeholder:"Email, ör: john@doe.com",error:o.errors.email,ariaInvalid:o.errors.email?!0:void 0,required:!0,noMargin:!0}),b.jsx(Gs,{kind:"soft",type:"submit",disabled:!a,children:"Sohbet Oluştur"})]})}function XT({image_url:e,name:t,size:n="lc-size-9"}){return e?b.jsx("img",{src:e,alt:t,className:qt("lc-rounded-md",n)}):b.jsx("div",{className:"lc-flex lc-items-center lc-justify-center lc-gap-1",children:b.jsx(ut.Website,{className:qt("lc-text-slate-500",n)})})}const Jg=(e,t,n)=>{const r=typeof window<"u"?window:void 0;S.useEffect(()=>(r.addEventListener(e,t),()=>{r.removeEventListener(e,t,!1)}),[e,t,r])};function ZT(){const e=vd(),t=S.useCallback(()=>{const n=window.location.pathname;n!==e.page&&e.setPage(n)},[e.page]);return Jg("popstate",t),null}function JT(){const[e,t]=S.useState(!1),n=uo(),r=vd(),i=S.useCallback(()=>{const s=window.location.pathname;if(s!==r.page){if(n){n.emit(fn.PageChange,{page:s});return}r.setPage(s)}},[n,r.page]);return Jg("popstate",i),S.useEffect(()=>{if(e||!n)return;const s=setTimeout(()=>{WT()!==r.page&&(n.emit(fn.PageChange,{page:r.page}),t(!0))},1e3);return()=>{clearTimeout(s)}},[n,r.page,e]),null}function eO({children:e}){const{widget:t}=Ji();return t?b.jsxs("section",{className:"lc-border lc-h-full lc-w-full lc-rounded-md lc-p-4 lc-relative",children:[b.jsx("div",{className:"-lc-z-10 lc-h-52 lc-bg-zink-600 lc-absolute lc-top-0 lc-left-0 lc-w-full lc-rounded-t-md lc-flex lc-flex-col lc-gap-4 lc-items-center lc-justify-center"}),e]}):null}function tO(){return ZT(),null}function nO(){const{widget:e}=Ji(),[t,n]=S.useState(!0),r=Vp("email"),i=Vp("name"),s=ed();return!e||(S.useEffect(()=>{GE(e.client_id).then(([o,a])=>{yy(a)&&s.push("chat")}).finally(()=>{n(!1)})},[]),t)?null:b.jsxs(b.Fragment,{children:[b.jsx(og,{children:b.jsxs(eO,{children:[b.jsxs("div",{className:"lc-flex lc-flex-col lc-gap-3 lc-items-center lc-justify-center lc-h-52",children:[b.jsx(XT,{name:e.name,image_url:e.image_url,size:"lc-size-24"}),b.jsx("div",{className:"lc-text-white lc-text-lg lc-font-bold lc-ml-2",children:e.name})]}),b.jsx(GT,{clientId:e.client_id,savedEmail:r,savedName:i,onOk:()=>{s.push("chat")}})]})}),b.jsx(tO,{})]})}const rO=[{path:"/",component:nO,name:"registration"}];function iO({name:e,avatar:t,className:n="lc-text-neutral-500"}){return b.jsxs("div",{className:"lc-flex lc-gap-2 lc-items-center",children:[b.jsx("div",{className:"lc-min-w-max",children:b.jsxs("span",{children:[t&&b.jsx("img",{className:"lc-size-10 lc-rounded-full",src:t,"aria-label":e}),!t&&b.jsx("div",{className:"lc-size-10 lc-rounded-full lc-bg-neutral-200"})]})}),b.jsx("div",{className:"lc-flex lc-flex-col",children:b.jsx("span",{className:qt("lc-line-clamp-1",n),children:e})})]})}function sO(e,t){let n,r=0;return function(...s){r++;const o=r;clearTimeout(n),n=setTimeout(()=>{o===r&&e(...s)},t)}}function oO({onNewMessage:e}){const t=uo(),[n,r]=S.useState(""),i=()=>{t==null||t.emit(fn.MessageCreate,{content:n},a=>{r(""),e(a),s("")})},s=a=>{t==null||t.emit(fn.MessageTyping,{content:a})},o=sO(s,300);return b.jsxs("form",{className:"lc-border-t lc-p-2 lc-flex lc-items-center lc-gap-2",onSubmit:a=>{a.preventDefault(),i(),a.currentTarget.reset()},children:[b.jsx("div",{className:"lc-grow lc-relative",children:b.jsx(qc,{id:"message",className:"lc-grow",noMargin:!0,onChange:a=>{r(a.target.value),o(a.target.value)},placeholder:"Bir mesaj yazın"})}),b.jsx("div",{className:"lc-flex lc-items-center lc-justify-center lc-h-full",children:b.jsx(Gs,{className:"lc-rounded-md",type:"submit",children:"Gönder"})})]})}var Ct=(e=>(e.Customer="customer",e.User="user",e.System="system",e.Activity="activity",e))(Ct||{});function aO({messages:e,isTyping:t}){const n=S.useRef(null),r=S.useRef(null),[i,s]=S.useState(!0),o=()=>{var l;(l=n.current)==null||l.scrollIntoView({behavior:"smooth"})},a=()=>{if(r.current){const{scrollTop:l,scrollHeight:c,clientHeight:d}=r.current,u=c-l<=d+10;s(u)}};return S.useEffect(()=>{i&&o()},[e,i]),b.jsxs("section",{onScroll:a,ref:r,className:"lc-flex lc-flex-col lc-gap-2 lc-w-full lc-h-full lc-grow lc-pt-4 lc-px-4 lc-overflow-y-auto",style:{height:"calc(100vh - 122px)"},children:[e.map((l,c)=>b.jsxs("div",{className:qt("lc-flex lc-w-full lc-items-center lc-break-all",{"lc-justify-end":l.sender_type===Ct.Customer,"lc-justify-start":l.sender_type===Ct.User,"lc-justify-center":l.sender_type===Ct.System||l.sender_type===Ct.Activity}),children:[l.sender_type===Ct.System&&b.jsx(b.Fragment,{children:l.content}),[Ct.Customer,Ct.User].includes(l.sender_type)&&b.jsx("div",{className:qt("lc-border lc-rounded-md lc-px-2 lc-py-1",{"lc-bg-blue-500 lc-text-white":l.sender_type===Ct.Customer,"lc-bg-zink-500 lc-text-white":l.sender_type===Ct.User}),children:l.content}),l.sender_type===Ct.Activity&&(l.content.split("_").length===3?b.jsxs("div",{className:"lc-border lc-rounded-md lc-px-2 lc-py-1 lc-text-xs",children:[l.content.split("_")[2]," odaya katıldı"]}):l.content),Ct.System===l.sender_type&&b.jsx("div",{className:"lc-text-xs lc-text-neutral-400",children:l.created_at.toLocaleString()})]},l.id||c)),t&&b.jsx("div",{className:"lc-flex lc-w-full lc-items-center lc-justify-end",children:b.jsx("div",{className:"lc-h-full lc-flex lc-items-center",children:b.jsx(ut.MessageTyping,{})})}),!i&&b.jsx("div",{className:"lc-fixed lc-bottom-[7.5rem] lc-right-16",children:b.jsx(Gs,{type:"button",className:"lc-size-10 lc-flex lc-items-center lc-justify-center lc-!p-0",onClick:()=>{var l,c;(c=r.current)==null||c.scrollTo({top:(l=r.current)==null?void 0:l.scrollHeight,behavior:"smooth"})},children:b.jsx(ut.ArrowDown,{className:"lc-size-5"})})}),b.jsx("div",{ref:n})]})}function lO({children:e}){const{widget:t}=Ji();return t?b.jsx("section",{className:"lc-border lc-h-full lc-w-full lc-rounded-md lc-relative",children:e}):null}function uO({children:e}){const t=uo();return S.useEffect(()=>{t&&t.connect()},[]),!t||!t.connected?null:e}function cO(){const{widget:e,setOpen:t}=Ji(),n=uo(),r=ed(),[i,s]=S.useState(null),[o,a]=S.useState([]),[l,c]=S.useState(!1),[d,u]=S.useState(!1),[f,m]=S.useState([]),v=()=>{n==null||n.emit(fn.ChatClose,{}),t(!1),s(null),a([]),m([]),Ma(e.client_id).then(()=>{n==null||n.disconnect(),r.push("registration")})};S.useEffect(()=>{n==null||n.emit(fn.ChatView,{},x=>{if(x===null){t(!1),Ma(e.client_id),a([]),m([]),r.push("registration");return}s(x)})},[]);const w=S.useCallback(x=>{a([...o,x])},[o]);return S.useEffect(()=>{if(n)return n.on(Qt.MessageAgentCreate,x=>{const p={content:x.content,created_at:x.created_at,files:x.files,id:x._id,sender_type:x.sender_type,answers:x.answers,reply_id:x.reply_id};if(f.length>0){m(h=>[...h,p]);return}x.is_shortcut?m([p]):w(p)}),n.on(Qt.ChatUserAssignee,x=>{s({...i,agent_name:x.name,agent_avatar:x.avatar,is_uploadable:(i==null?void 0:i.is_uploadable)??!1})}),n.on(Qt.MessageAgentTyping,()=>{c(!0)}),()=>{n.off(Qt.MessageAgentCreate),n.off(Qt.ChatUserAssignee),n.off(Qt.MessageAgentTyping)}},[w]),S.useEffect(()=>{n&&n.emit(fn.MessageList,{},x=>{a(x)})},[]),S.useEffect(()=>{const x=setTimeout(()=>{c(!1)},1e3);return()=>clearTimeout(x)},[l]),S.useEffect(()=>{if(!e||f.length===0)return;const x=(e.writing_timeout||650)*f[0].content.split(" ").length,p=setTimeout(()=>{w(f[0]),m(f.slice(1))},x);return()=>clearTimeout(p)},[f,e]),i?b.jsxs(b.Fragment,{children:[d&&b.jsx("div",{className:"lc-absolute lc-top-0 lc-left-0 lc-backdrop-blur-sm lc-bg-slate-950/20 lc-z-50 lc-h-full lc-w-full lc-rounded-md",children:b.jsx("div",{className:"lc-flex lc-flex-col lc-items-center lc-justify-center lc-h-full lc-mx-5",children:b.jsxs("div",{className:"lc-bg-white lc-p-4 lc-rounded-md",children:[b.jsx("div",{className:"lc-text-lg lc-font-semibold lc-text-neutral-900",children:"Sohbeti kapatmak istediğinize emin misiniz?"}),b.jsxs("div",{className:"lc-flex lc-justify-between lc-mt-4",children:[b.jsx("button",{type:"button",className:"lc-bg-red-500 lc-text-white lc-px-4 lc-py-2 lc-rounded-md",onClick:v,children:"Evet"}),b.jsx("button",{type:"button",className:"lc-bg-neutral-200 lc-text-neutral-900 lc-px-4 lc-py-2 lc-rounded-md",onClick:()=>u(!1),children:"Vazgeç"})]})]})})}),b.jsxs("section",{className:"lc-bg-white lc-h-full lc-w-full lc-rounded-md lc-border lc-flex lc-flex-col",children:[b.jsxs("header",{className:"lc-border-b lc-p-4 lc-bg-zink-600 lc-rounded-t-md lc-flex lc-justify-between lc-items-center",children:[i!=null&&i.agent_name?b.jsx(iO,{name:i.agent_name,avatar:i.agent_avatar,className:"lc-text-neutral-300"}):b.jsx("div",{className:"lc-text-white",children:"Chat with us"}),b.jsx("button",{type:"button",className:"lc-text-white",onClick:()=>u(!0),children:b.jsx(ut.X,{className:"lc-w-6 lc-h-6 lc-cursor-pointer"})})]}),b.jsx(aO,{messages:o,isTyping:l||f.length>0}),b.jsx(oO,{onNewMessage:x=>{w(x)}})]})]}):null}function fO(){return JT(),null}function dO(){return b.jsxs(uO,{children:[b.jsx(og,{defaultOpen:!0,children:b.jsx(lO,{children:b.jsx(cO,{})})}),b.jsx(fO,{})]})}const hO=[{path:"/chat",component:dO,name:"chat"}],ev=[...hO],tv=[...rO],pO=[...ev,...tv];function mO(){return b.jsx(ES,{future:{v7_startTransition:!0},children:b.jsxs(bS,{children:[ev.map((e,t)=>b.jsx(Tc,{path:e.path,element:b.jsx(e.component,{})},t)),tv.map((e,t)=>b.jsx(Tc,{path:e.path,element:b.jsx(e.component,{})},t))]})})}function yO({link_id:e}){const{setWidget:t,widget:n}=Ji(),{data:r,isLoading:i}=Tx(e);return S.useEffect(()=>{Array.isArray(r)&&Rx(r[0])&&t(r[0])},[r]),i||!n?null:b.jsx(qT,{children:b.jsx(KE,{children:b.jsx(mO,{})})})}const gO=new lx;function vO({container:e,link_id:t}){py(e).render(b.jsxs(hx,{client:gO,children:[b.jsx(yO,{link_id:t}),b.jsx(zT,{richColors:!0,style:{zIndex:999999},position:"bottom-right"})]}))}window.widget=vO});export default wO();
88
+ */var Ae=typeof Symbol=="function"&&Symbol.for,gd=Ae?Symbol.for("react.element"):60103,yd=Ae?Symbol.for("react.portal"):60106,wa=Ae?Symbol.for("react.fragment"):60107,xa=Ae?Symbol.for("react.strict_mode"):60108,Sa=Ae?Symbol.for("react.profiler"):60114,ba=Ae?Symbol.for("react.provider"):60109,Ea=Ae?Symbol.for("react.context"):60110,vd=Ae?Symbol.for("react.async_mode"):60111,_a=Ae?Symbol.for("react.concurrent_mode"):60111,ka=Ae?Symbol.for("react.forward_ref"):60112,Ca=Ae?Symbol.for("react.suspense"):60113,YC=Ae?Symbol.for("react.suspense_list"):60120,Ta=Ae?Symbol.for("react.memo"):60115,Oa=Ae?Symbol.for("react.lazy"):60116,GC=Ae?Symbol.for("react.block"):60121,XC=Ae?Symbol.for("react.fundamental"):60117,ZC=Ae?Symbol.for("react.responder"):60118,JC=Ae?Symbol.for("react.scope"):60119;function Et(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gd:switch(e=e.type,e){case vd:case _a:case wa:case Sa:case xa:case Ca:return e;default:switch(e=e&&e.$$typeof,e){case Ea:case ka:case Oa:case Ta:case ba:return e;default:return t}}case yd:return t}}}function Qy(e){return Et(e)===_a}ie.AsyncMode=vd;ie.ConcurrentMode=_a;ie.ContextConsumer=Ea;ie.ContextProvider=ba;ie.Element=gd;ie.ForwardRef=ka;ie.Fragment=wa;ie.Lazy=Oa;ie.Memo=Ta;ie.Portal=yd;ie.Profiler=Sa;ie.StrictMode=xa;ie.Suspense=Ca;ie.isAsyncMode=function(e){return Qy(e)||Et(e)===vd};ie.isConcurrentMode=Qy;ie.isContextConsumer=function(e){return Et(e)===Ea};ie.isContextProvider=function(e){return Et(e)===ba};ie.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gd};ie.isForwardRef=function(e){return Et(e)===ka};ie.isFragment=function(e){return Et(e)===wa};ie.isLazy=function(e){return Et(e)===Oa};ie.isMemo=function(e){return Et(e)===Ta};ie.isPortal=function(e){return Et(e)===yd};ie.isProfiler=function(e){return Et(e)===Sa};ie.isStrictMode=function(e){return Et(e)===xa};ie.isSuspense=function(e){return Et(e)===Ca};ie.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wa||e===_a||e===Sa||e===xa||e===Ca||e===YC||typeof e=="object"&&e!==null&&(e.$$typeof===Oa||e.$$typeof===Ta||e.$$typeof===ba||e.$$typeof===Ea||e.$$typeof===ka||e.$$typeof===XC||e.$$typeof===ZC||e.$$typeof===JC||e.$$typeof===GC)};ie.typeOf=Et;Wy.exports=ie;var eT=Wy.exports,qy=eT,tT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ky={};Ky[qy.ForwardRef]=tT;Ky[qy.Memo]=nT;function Oe(){return Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(this,arguments)}function Yy(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ra=S.createContext(void 0);Ra.displayName="FormikContext";Ra.Provider;Ra.Consumer;function rT(){var e=S.useContext(Ra);return e}var Mt=function(t){return typeof t=="function"},Na=function(t){return t!==null&&typeof t=="object"},iT=function(t){return String(Math.floor(Number(t)))===t},vu=function(t){return Object.prototype.toString.call(t)==="[object String]"},wu=function(t){return Na(t)&&Mt(t.then)};function ht(e,t,n,r){r===void 0&&(r=0);for(var i=Hy(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function Dr(e,t,n){for(var r=Lp(e),i=r,s=0,o=Hy(t);s<o.length-1;s++){var l=o[s],a=ht(e,o.slice(0,s+1));if(a&&(Na(a)||Array.isArray(a)))i=i[l]=Lp(a);else{var c=o[s+1];i=i[l]=iT(c)&&Number(c)>=0?[]:{}}}return(s===0?e:i)[o[s]]===n?e:(n===void 0?delete i[o[s]]:i[o[s]]=n,s===0&&n===void 0&&delete r[o[s]],r)}function Gy(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i],l=e[o];Na(l)?n.get(l)||(n.set(l,!0),r[o]=Array.isArray(l)?[]:{},Gy(l,t,n,r[o])):r[o]=t}return r}function sT(e,t){switch(t.type){case"SET_VALUES":return Oe({},e,{values:t.payload});case"SET_TOUCHED":return Oe({},e,{touched:t.payload});case"SET_ERRORS":return br(e.errors,t.payload)?e:Oe({},e,{errors:t.payload});case"SET_STATUS":return Oe({},e,{status:t.payload});case"SET_ISSUBMITTING":return Oe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Oe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Oe({},e,{values:Dr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Oe({},e,{touched:Dr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Oe({},e,{errors:Dr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Oe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Oe({},e,{touched:Gy(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Oe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Oe({},e,{isSubmitting:!1});default:return e}}var wr={},Ho={};function oT(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,s=e.validateOnMount,o=s===void 0?!1:s,l=e.isInitialValid,a=e.enableReinitialize,c=a===void 0?!1:a,d=e.onSubmit,u=Yy(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=Oe({validateOnChange:n,validateOnBlur:i,validateOnMount:o,onSubmit:d},u),g=S.useRef(f.initialValues),v=S.useRef(f.initialErrors||wr),w=S.useRef(f.initialTouched||Ho),x=S.useRef(f.initialStatus),m=S.useRef(!1),p=S.useRef({});S.useEffect(function(){return m.current=!0,function(){m.current=!1}},[]);var h=S.useState(0),_=h[1],T=S.useRef({values:Vo(f.initialValues),errors:Vo(f.initialErrors)||wr,touched:Vo(f.initialTouched)||Ho,status:Vo(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),k=T.current,C=S.useCallback(function(b){var A=T.current;T.current=sT(A,b),A!==T.current&&_(function($){return $+1})},[]),R=S.useCallback(function(b,A){return new Promise(function($,z){var W=f.validate(b,A);W==null?$(wr):wu(W)?W.then(function(te){$(te||wr)},function(te){z(te)}):$(W)})},[f.validate]),I=S.useCallback(function(b,A){var $=f.validationSchema,z=Mt($)?$(A):$,W=A&&z.validateAt?z.validateAt(A,b):aT(b,z);return new Promise(function(te,we){W.then(function(){te(wr)},function(ft){ft.name==="ValidationError"?te(lT(ft)):we(ft)})})},[f.validationSchema]),D=S.useCallback(function(b,A){return new Promise(function($){return $(p.current[b].validate(A))})},[]),B=S.useCallback(function(b){var A=Object.keys(p.current).filter(function(z){return Mt(p.current[z].validate)}),$=A.length>0?A.map(function(z){return D(z,ht(b,z))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all($).then(function(z){return z.reduce(function(W,te,we){return te==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||te&&(W=Dr(W,A[we],te)),W},{})})},[D]),se=S.useCallback(function(b){return Promise.all([B(b),f.validationSchema?I(b):{},f.validate?R(b):{}]).then(function(A){var $=A[0],z=A[1],W=A[2],te=zc.all([$,z,W],{arrayMerge:uT});return te})},[f.validate,f.validationSchema,B,R,I]),oe=kt(function(b){return b===void 0&&(b=k.values),C({type:"SET_ISVALIDATING",payload:!0}),se(b).then(function(A){return m.current&&(C({type:"SET_ISVALIDATING",payload:!1}),C({type:"SET_ERRORS",payload:A})),A})});S.useEffect(function(){o&&m.current===!0&&br(g.current,f.initialValues)&&oe(g.current)},[o,oe]);var He=S.useCallback(function(b){var A=b&&b.values?b.values:g.current,$=b&&b.errors?b.errors:v.current?v.current:f.initialErrors||{},z=b&&b.touched?b.touched:w.current?w.current:f.initialTouched||{},W=b&&b.status?b.status:x.current?x.current:f.initialStatus;g.current=A,v.current=$,w.current=z,x.current=W;var te=function(){C({type:"RESET_FORM",payload:{isSubmitting:!!b&&!!b.isSubmitting,errors:$,touched:z,status:W,values:A,isValidating:!!b&&!!b.isValidating,submitCount:b&&b.submitCount&&typeof b.submitCount=="number"?b.submitCount:0}})};if(f.onReset){var we=f.onReset(k.values,po);wu(we)?we.then(te):te()}else te()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);S.useEffect(function(){m.current===!0&&!br(g.current,f.initialValues)&&c&&(g.current=f.initialValues,He(),o&&oe(g.current))},[c,f.initialValues,He,o,oe]),S.useEffect(function(){c&&m.current===!0&&!br(v.current,f.initialErrors)&&(v.current=f.initialErrors||wr,C({type:"SET_ERRORS",payload:f.initialErrors||wr}))},[c,f.initialErrors]),S.useEffect(function(){c&&m.current===!0&&!br(w.current,f.initialTouched)&&(w.current=f.initialTouched||Ho,C({type:"SET_TOUCHED",payload:f.initialTouched||Ho}))},[c,f.initialTouched]),S.useEffect(function(){c&&m.current===!0&&!br(x.current,f.initialStatus)&&(x.current=f.initialStatus,C({type:"SET_STATUS",payload:f.initialStatus}))},[c,f.initialStatus,f.initialTouched]);var We=kt(function(b){if(p.current[b]&&Mt(p.current[b].validate)){var A=ht(k.values,b),$=p.current[b].validate(A);return wu($)?(C({type:"SET_ISVALIDATING",payload:!0}),$.then(function(z){return z}).then(function(z){C({type:"SET_FIELD_ERROR",payload:{field:b,value:z}}),C({type:"SET_ISVALIDATING",payload:!1})})):(C({type:"SET_FIELD_ERROR",payload:{field:b,value:$}}),Promise.resolve($))}else if(f.validationSchema)return C({type:"SET_ISVALIDATING",payload:!0}),I(k.values,b).then(function(z){return z}).then(function(z){C({type:"SET_FIELD_ERROR",payload:{field:b,value:ht(z,b)}}),C({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),K=S.useCallback(function(b,A){var $=A.validate;p.current[b]={validate:$}},[]),Qe=S.useCallback(function(b){delete p.current[b]},[]),P=kt(function(b,A){C({type:"SET_TOUCHED",payload:b});var $=A===void 0?i:A;return $?oe(k.values):Promise.resolve()}),L=S.useCallback(function(b){C({type:"SET_ERRORS",payload:b})},[]),H=kt(function(b,A){var $=Mt(b)?b(k.values):b;C({type:"SET_VALUES",payload:$});var z=A===void 0?n:A;return z?oe($):Promise.resolve()}),M=S.useCallback(function(b,A){C({type:"SET_FIELD_ERROR",payload:{field:b,value:A}})},[]),V=kt(function(b,A,$){C({type:"SET_FIELD_VALUE",payload:{field:b,value:A}});var z=$===void 0?n:$;return z?oe(Dr(k.values,b,A)):Promise.resolve()}),ee=S.useCallback(function(b,A){var $=A,z=b,W;if(!vu(b)){b.persist&&b.persist();var te=b.target?b.target:b.currentTarget,we=te.type,ft=te.name,Xt=te.id,ni=te.value,Fn=te.checked,xd=te.outerHTML,yo=te.options,vo=te.multiple;$=A||ft||Xt,z=/number|range/.test(we)?(W=parseFloat(ni),isNaN(W)?"":W):/checkbox/.test(we)?fT(ht(k.values,$),Fn,ni):yo&&vo?cT(yo):ni}$&&V($,z)},[V,k.values]),de=kt(function(b){if(vu(b))return function(A){return ee(A,b)};ee(b)}),Ce=kt(function(b,A,$){A===void 0&&(A=!0),C({type:"SET_FIELD_TOUCHED",payload:{field:b,value:A}});var z=$===void 0?i:$;return z?oe(k.values):Promise.resolve()}),Z=S.useCallback(function(b,A){b.persist&&b.persist();var $=b.target,z=$.name,W=$.id,te=$.outerHTML,we=A||z||W;Ce(we,!0)},[Ce]),Je=kt(function(b){if(vu(b))return function(A){return Z(A,b)};Z(b)}),mn=S.useCallback(function(b){Mt(b)?C({type:"SET_FORMIK_STATE",payload:b}):C({type:"SET_FORMIK_STATE",payload:function(){return b}})},[]),An=S.useCallback(function(b){C({type:"SET_STATUS",payload:b})},[]),jn=S.useCallback(function(b){C({type:"SET_ISSUBMITTING",payload:b})},[]),ns=kt(function(){return C({type:"SUBMIT_ATTEMPT"}),oe().then(function(b){var A=b instanceof Error,$=!A&&Object.keys(b).length===0;if($){var z;try{if(z=rs(),z===void 0)return}catch(W){throw W}return Promise.resolve(z).then(function(W){return m.current&&C({type:"SUBMIT_SUCCESS"}),W}).catch(function(W){if(m.current)throw C({type:"SUBMIT_FAILURE"}),W})}else if(m.current&&(C({type:"SUBMIT_FAILURE"}),A))throw b})}),ho=kt(function(b){b&&b.preventDefault&&Mt(b.preventDefault)&&b.preventDefault(),b&&b.stopPropagation&&Mt(b.stopPropagation)&&b.stopPropagation(),ns().catch(function(A){console.warn("Warning: An unhandled error was caught from submitForm()",A)})}),po={resetForm:He,validateForm:oe,validateField:We,setErrors:L,setFieldError:M,setFieldTouched:Ce,setFieldValue:V,setStatus:An,setSubmitting:jn,setTouched:P,setValues:H,setFormikState:mn,submitForm:ns},rs=kt(function(){return d(k.values,po)}),Pa=kt(function(b){b&&b.preventDefault&&Mt(b.preventDefault)&&b.preventDefault(),b&&b.stopPropagation&&Mt(b.stopPropagation)&&b.stopPropagation(),He()}),mo=S.useCallback(function(b){return{value:ht(k.values,b),error:ht(k.errors,b),touched:!!ht(k.touched,b),initialValue:ht(g.current,b),initialTouched:!!ht(w.current,b),initialError:ht(v.current,b)}},[k.errors,k.touched,k.values]),yr=S.useCallback(function(b){return{setValue:function($,z){return V(b,$,z)},setTouched:function($,z){return Ce(b,$,z)},setError:function($){return M(b,$)}}},[V,Ce,M]),go=S.useCallback(function(b){var A=Na(b),$=A?b.name:b,z=ht(k.values,$),W={name:$,value:z,onChange:de,onBlur:Je};if(A){var te=b.type,we=b.value,ft=b.as,Xt=b.multiple;te==="checkbox"?we===void 0?W.checked=!!z:(W.checked=!!(Array.isArray(z)&&~z.indexOf(we)),W.value=we):te==="radio"?(W.checked=z===we,W.value=we):ft==="select"&&Xt&&(W.value=W.value||[],W.multiple=!0)}return W},[Je,de,k.values]),ct=S.useMemo(function(){return!br(g.current,k.values)},[g.current,k.values]),Aa=S.useMemo(function(){return typeof l<"u"?ct?k.errors&&Object.keys(k.errors).length===0:l!==!1&&Mt(l)?l(f):l:k.errors&&Object.keys(k.errors).length===0},[l,ct,k.errors,f]),ja=Oe({},k,{initialValues:g.current,initialErrors:v.current,initialTouched:w.current,initialStatus:x.current,handleBlur:Je,handleChange:de,handleReset:Pa,handleSubmit:ho,resetForm:He,setErrors:L,setFormikState:mn,setFieldTouched:Ce,setFieldValue:V,setFieldError:M,setStatus:An,setSubmitting:jn,setTouched:P,setValues:H,submitForm:ns,validateForm:oe,validateField:We,isValid:Aa,dirty:ct,unregisterField:Qe,registerField:K,getFieldProps:go,getFieldMeta:mo,getFieldHelpers:yr,validateOnBlur:i,validateOnChange:n,validateOnMount:o});return ja}function lT(e){var t={};if(e.inner){if(e.inner.length===0)return Dr(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var s;if(n){if(r>=i.length)break;s=i[r++]}else{if(r=i.next(),r.done)break;s=r.value}var o=s;ht(t,o.path)||(t=Dr(t,o.path,o.message))}}return t}function aT(e,t,n,r){n===void 0&&(n=!1);var i=Qc(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function Qc(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(i){return Array.isArray(i)===!0||hp(i)?Qc(i):i!==""?i:void 0}):hp(e[r])?t[r]=Qc(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function uT(e,t,n){var r=e.slice();return t.forEach(function(s,o){if(typeof r[o]>"u"){var l=n.clone!==!1,a=l&&n.isMergeableObject(s);r[o]=a?zc(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[o]=zc(e[o],s,n):e.indexOf(s)===-1&&r.push(s)}),r}function cT(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function fT(e,t,n){if(typeof e=="boolean")return!!t;var r=[],i=!1,s=-1;if(Array.isArray(e))r=e,s=e.indexOf(n),i=s>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,s).concat(r.slice(s+1)):r}var dT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function kt(e){var t=S.useRef(e);return dT(function(){t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var hT=S.forwardRef(function(e,t){var n=e.action,r=Yy(e,["action"]),i=n??"#",s=rT(),o=s.handleReset,l=s.handleSubmit;return S.createElement("form",Oe({onSubmit:l,ref:t,onReset:o,action:i},r))});hT.displayName="Form";const pT=({init:e,schema:t,action:n})=>oT({initialValues:e,validationSchema:t,validateOnBlur:!1,enableReinitialize:!0,validateOnChange:!1,validateOnMount:!1,onSubmit:r=>{n(r)}});function mT(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const gT=e=>{switch(e){case"success":return wT;case"info":return ST;case"warning":return xT;case"error":return bT;default:return null}},yT=Array(12).fill(0),vT=({visible:e,className:t})=>N.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},N.createElement("div",{className:"sonner-spinner"},yT.map((n,r)=>N.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),wT=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),xT=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},N.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"})),ST=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),bT=N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},N.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"})),ET=N.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"},N.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),N.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),_T=()=>{const[e,t]=N.useState(document.hidden);return N.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let qc=1;class kT{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:qc++,o=this.toasts.find(a=>a.id===s),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),o?this.toasts=this.toasts.map(a=>a.id===s?(this.publish({...a,...t,id:s,title:r}),{...a,...t,id:s,dismissible:l,title:r}):a):this.addToast({title:r,...i,dismissible:l,id:s}),s},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0}))),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,o;const l=i.then(async c=>{if(o=["resolve",c],N.isValidElement(c))s=!1,this.create({id:r,type:"default",message:c});else if(TT(c)&&!c.ok){s=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,g=typeof u=="object"?u:{message:u};this.create({id:r,type:"error",description:f,...g})}else if(c instanceof Error){s=!1;const u=typeof n.error=="function"?await n.error(c):n.error,f=typeof n.description=="function"?await n.description(c):n.description,g=typeof u=="object"?u:{message:u};this.create({id:r,type:"error",description:f,...g})}else if(n.success!==void 0){s=!1;const u=typeof n.success=="function"?await n.success(c):n.success,f=typeof n.description=="function"?await n.description(c):n.description,g=typeof u=="object"?u:{message:u};this.create({id:r,type:"success",description:f,...g})}}).catch(async c=>{if(o=["reject",c],n.error!==void 0){s=!1;const d=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,f=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:u,...f})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((c,d)=>l.then(()=>o[0]==="reject"?d(o[1]):c(o[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||qc++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const rt=new kT,CT=(e,t)=>{const n=(t==null?void 0:t.id)||qc++;return rt.addToast({title:e,...t,id:n}),n},TT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",OT=CT,RT=()=>rt.toasts,NT=()=>rt.getActiveToasts(),zp=Object.assign(OT,{success:rt.success,info:rt.info,warning:rt.warning,error:rt.error,custom:rt.custom,message:rt.message,promise:rt.promise,dismiss:rt.dismiss,loading:rt.loading},{getHistory:RT,getToasts:NT});mT("[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}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@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-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]::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 PT=3,AT="24px",jT="16px",Bp=4e3,FT=356,$T=14,IT=45,LT=200;function Jt(...e){return e.filter(Boolean).join(" ")}function DT(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const MT=e=>{var t,n,r,i,s,o,l,a,c;const{invert:d,toast:u,unstyled:f,interacting:g,setHeights:v,visibleToasts:w,heights:x,index:m,toasts:p,expanded:h,removeToast:_,defaultRichColors:T,closeButton:k,style:C,cancelButtonStyle:R,actionButtonStyle:I,className:D="",descriptionClassName:B="",duration:se,position:oe,gap:He,expandByDefault:We,classNames:K,icons:Qe,closeButtonAriaLabel:P="Close toast"}=e,[L,H]=N.useState(null),[M,V]=N.useState(null),[ee,de]=N.useState(!1),[Ce,Z]=N.useState(!1),[Je,mn]=N.useState(!1),[An,jn]=N.useState(!1),[ns,ho]=N.useState(!1),[po,rs]=N.useState(0),[Pa,mo]=N.useState(0),yr=N.useRef(u.duration||se||Bp),go=N.useRef(null),ct=N.useRef(null),Aa=m===0,ja=m+1<=w,b=u.type,A=u.dismissible!==!1,$=u.className||"",z=u.descriptionClassName||"",W=N.useMemo(()=>x.findIndex(Q=>Q.toastId===u.id)||0,[x,u.id]),te=N.useMemo(()=>{var Q;return(Q=u.closeButton)!=null?Q:k},[u.closeButton,k]),we=N.useMemo(()=>u.duration||se||Bp,[u.duration,se]),ft=N.useRef(0),Xt=N.useRef(0),ni=N.useRef(0),Fn=N.useRef(null),[xd,yo]=oe.split("-"),vo=N.useMemo(()=>x.reduce((Q,Te,Le)=>Le>=W?Q:Q+Te.height,0),[x,W]),Sd=_T(),rv=u.invert||d,Fa=b==="loading";Xt.current=N.useMemo(()=>W*He+vo,[W,vo]),N.useEffect(()=>{yr.current=we},[we]),N.useEffect(()=>{de(!0)},[]),N.useEffect(()=>{const Q=ct.current;if(Q){const Te=Q.getBoundingClientRect().height;return mo(Te),v(Le=>[{toastId:u.id,height:Te,position:u.position},...Le]),()=>v(Le=>Le.filter(dt=>dt.toastId!==u.id))}},[v,u.id]),N.useLayoutEffect(()=>{if(!ee)return;const Q=ct.current,Te=Q.style.height;Q.style.height="auto";const Le=Q.getBoundingClientRect().height;Q.style.height=Te,mo(Le),v(dt=>dt.find(je=>je.toastId===u.id)?dt.map(je=>je.toastId===u.id?{...je,height:Le}:je):[{toastId:u.id,height:Le,position:u.position},...dt])},[ee,u.title,u.description,v,u.id]);const $n=N.useCallback(()=>{Z(!0),rs(Xt.current),v(Q=>Q.filter(Te=>Te.toastId!==u.id)),setTimeout(()=>{_(u)},LT)},[u,_,v,Xt]);N.useEffect(()=>{if(u.promise&&b==="loading"||u.duration===1/0||u.type==="loading")return;let Q;return h||g||Sd?(()=>{if(ni.current<ft.current){const dt=new Date().getTime()-ft.current;yr.current=yr.current-dt}ni.current=new Date().getTime()})():(()=>{yr.current!==1/0&&(ft.current=new Date().getTime(),Q=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),$n()},yr.current))})(),()=>clearTimeout(Q)},[h,g,u,b,Sd,$n]),N.useEffect(()=>{u.delete&&$n()},[$n,u.delete]);function iv(){var Q;if(Qe!=null&&Qe.loading){var Te;return N.createElement("div",{className:Jt(K==null?void 0:K.loader,u==null||(Te=u.classNames)==null?void 0:Te.loader,"sonner-loader"),"data-visible":b==="loading"},Qe.loading)}return N.createElement(vT,{className:Jt(K==null?void 0:K.loader,u==null||(Q=u.classNames)==null?void 0:Q.loader),visible:b==="loading"})}var bd,Ed;return N.createElement("li",{tabIndex:0,ref:ct,className:Jt(D,$,K==null?void 0:K.toast,u==null||(t=u.classNames)==null?void 0:t.toast,K==null?void 0:K.default,K==null?void 0:K[b],u==null||(n=u.classNames)==null?void 0:n[b]),"data-sonner-toast":"","data-rich-colors":(bd=u.richColors)!=null?bd:T,"data-styled":!(u.jsx||u.unstyled||f),"data-mounted":ee,"data-promise":!!u.promise,"data-swiped":ns,"data-removed":Ce,"data-visible":ja,"data-y-position":xd,"data-x-position":yo,"data-index":m,"data-front":Aa,"data-swiping":Je,"data-dismissible":A,"data-type":b,"data-invert":rv,"data-swipe-out":An,"data-swipe-direction":M,"data-expanded":!!(h||We&&ee),style:{"--index":m,"--toasts-before":m,"--z-index":p.length-m,"--offset":`${Ce?po:Xt.current}px`,"--initial-height":We?"auto":`${Pa}px`,...C,...u.style},onDragEnd:()=>{mn(!1),H(null),Fn.current=null},onPointerDown:Q=>{Fa||!A||(go.current=new Date,rs(Xt.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(mn(!0),Fn.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,Te,Le;if(An||!A)return;Fn.current=null;const dt=Number(((Q=ct.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),wo=Number(((Te=ct.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),je=new Date().getTime()-((Le=go.current)==null?void 0:Le.getTime()),_t=L==="x"?dt:wo,xo=Math.abs(_t)/je;if(Math.abs(_t)>=IT||xo>.11){rs(Xt.current),u.onDismiss==null||u.onDismiss.call(u,u),V(L==="x"?dt>0?"right":"left":wo>0?"down":"up"),$n(),jn(!0);return}else{var It,Lt;(It=ct.current)==null||It.style.setProperty("--swipe-amount-x","0px"),(Lt=ct.current)==null||Lt.style.setProperty("--swipe-amount-y","0px")}ho(!1),mn(!1),H(null)},onPointerMove:Q=>{var Te,Le,dt;if(!Fn.current||!A||((Te=window.getSelection())==null?void 0:Te.toString().length)>0)return;const je=Q.clientY-Fn.current.y,_t=Q.clientX-Fn.current.x;var xo;const It=(xo=e.swipeDirections)!=null?xo:DT(oe);!L&&(Math.abs(_t)>1||Math.abs(je)>1)&&H(Math.abs(_t)>Math.abs(je)?"x":"y");let Lt={x:0,y:0};const _d=vr=>1/(1.5+Math.abs(vr)/20);if(L==="y"){if(It.includes("top")||It.includes("bottom"))if(It.includes("top")&&je<0||It.includes("bottom")&&je>0)Lt.y=je;else{const vr=je*_d(je);Lt.y=Math.abs(vr)<Math.abs(je)?vr:je}}else if(L==="x"&&(It.includes("left")||It.includes("right")))if(It.includes("left")&&_t<0||It.includes("right")&&_t>0)Lt.x=_t;else{const vr=_t*_d(_t);Lt.x=Math.abs(vr)<Math.abs(_t)?vr:_t}(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&ho(!0),(Le=ct.current)==null||Le.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(dt=ct.current)==null||dt.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},te&&!u.jsx&&b!=="loading"?N.createElement("button",{"aria-label":P,"data-disabled":Fa,"data-close-button":!0,onClick:Fa||!A?()=>{}:()=>{$n(),u.onDismiss==null||u.onDismiss.call(u,u)},className:Jt(K==null?void 0:K.closeButton,u==null||(r=u.classNames)==null?void 0:r.closeButton)},(Ed=Qe==null?void 0:Qe.close)!=null?Ed:ET):null,b||u.icon||u.promise?N.createElement("div",{"data-icon":"",className:Jt(K==null?void 0:K.icon,u==null||(i=u.classNames)==null?void 0:i.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||iv():null,u.type!=="loading"?u.icon||(Qe==null?void 0:Qe[b])||gT(b):null):null,N.createElement("div",{"data-content":"",className:Jt(K==null?void 0:K.content,u==null||(s=u.classNames)==null?void 0:s.content)},N.createElement("div",{"data-title":"",className:Jt(K==null?void 0:K.title,u==null||(o=u.classNames)==null?void 0:o.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?N.createElement("div",{"data-description":"",className:Jt(B,z,K==null?void 0:K.description,u==null||(l=u.classNames)==null?void 0:l.description)},typeof u.description=="function"?u.description():u.description):null),N.isValidElement(u.cancel)?u.cancel:u.cancel&&Wo(u.cancel)?N.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||R,onClick:Q=>{Wo(u.cancel)&&A&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,Q),$n())},className:Jt(K==null?void 0:K.cancelButton,u==null||(a=u.classNames)==null?void 0:a.cancelButton)},u.cancel.label):null,N.isValidElement(u.action)?u.action:u.action&&Wo(u.action)?N.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||I,onClick:Q=>{Wo(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,Q),!Q.defaultPrevented&&$n())},className:Jt(K==null?void 0:K.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Up(){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 zT(e,t){const n={};return[e,t].forEach((r,i)=>{const s=i===1,o=s?"--mobile-offset":"--offset",l=s?jT:AT;function a(c){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof c=="number"?`${c}px`:c})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(c=>{r[c]===void 0?n[`${o}-${c}`]=l:n[`${o}-${c}`]=typeof r[c]=="number"?`${r[c]}px`:r[c]}):a(l)}),n}const BT=N.forwardRef(function(t,n){const{invert:r,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:l,className:a,offset:c,mobileOffset:d,theme:u="light",richColors:f,duration:g,style:v,visibleToasts:w=PT,toastOptions:x,dir:m=Up(),gap:p=$T,icons:h,containerAriaLabel:_="Notifications"}=t,[T,k]=N.useState([]),C=N.useMemo(()=>Array.from(new Set([i].concat(T.filter(M=>M.position).map(M=>M.position)))),[T,i]),[R,I]=N.useState([]),[D,B]=N.useState(!1),[se,oe]=N.useState(!1),[He,We]=N.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=N.useRef(null),Qe=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=N.useRef(null),L=N.useRef(!1),H=N.useCallback(M=>{k(V=>{var ee;return(ee=V.find(de=>de.id===M.id))!=null&&ee.delete||rt.dismiss(M.id),V.filter(({id:de})=>de!==M.id)})},[]);return N.useEffect(()=>rt.subscribe(M=>{if(M.dismiss){const V=T.map(ee=>ee.id===M.id?{...ee,delete:!0}:ee);requestAnimationFrame(()=>{k(V)});return}setTimeout(()=>{jw.flushSync(()=>{k(V=>{const ee=V.findIndex(de=>de.id===M.id);return ee!==-1?[...V.slice(0,ee),{...V[ee],...M},...V.slice(ee+1)]:[M,...V]})})})}),[T]),N.useEffect(()=>{if(u!=="system"){We(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?We("dark"):We("light")),typeof window>"u")return;const M=window.matchMedia("(prefers-color-scheme: dark)");try{M.addEventListener("change",({matches:V})=>{We(V?"dark":"light")})}catch{M.addListener(({matches:ee})=>{try{We(ee?"dark":"light")}catch(de){console.error(de)}})}},[u]),N.useEffect(()=>{T.length<=1&&B(!1)},[T]),N.useEffect(()=>{const M=V=>{var ee;if(s.every(Z=>V[Z]||V.code===Z)){var Ce;B(!0),(Ce=K.current)==null||Ce.focus()}V.code==="Escape"&&(document.activeElement===K.current||(ee=K.current)!=null&&ee.contains(document.activeElement))&&B(!1)};return document.addEventListener("keydown",M),()=>document.removeEventListener("keydown",M)},[s]),N.useEffect(()=>{if(K.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,L.current=!1)}},[K.current]),N.createElement("section",{ref:n,"aria-label":`${_} ${Qe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((M,V)=>{var ee;const[de,Ce]=M.split("-");return T.length?N.createElement("ol",{key:M,dir:m==="auto"?Up():m,tabIndex:-1,ref:K,className:a,"data-sonner-toaster":!0,"data-sonner-theme":He,"data-y-position":de,"data-lifted":D&&T.length>1&&!o,"data-x-position":Ce,style:{"--front-toast-height":`${((ee=R[0])==null?void 0:ee.height)||0}px`,"--width":`${FT}px`,"--gap":`${p}px`,...v,...zT(c,d)},onBlur:Z=>{L.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(L.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||L.current||(L.current=!0,P.current=Z.relatedTarget)},onMouseEnter:()=>B(!0),onMouseMove:()=>B(!0),onMouseLeave:()=>{se||B(!1)},onDragEnd:()=>B(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},T.filter(Z=>!Z.position&&V===0||Z.position===M).map((Z,Je)=>{var mn,An;return N.createElement(MT,{key:Z.id,icons:h,index:Je,toast:Z,defaultRichColors:f,duration:(mn=x==null?void 0:x.duration)!=null?mn:g,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:r,visibleToasts:w,closeButton:(An=x==null?void 0:x.closeButton)!=null?An:l,interacting:se,position:M,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,closeButtonAriaLabel:x==null?void 0:x.closeButtonAriaLabel,removeToast:H,toasts:T.filter(jn=>jn.position==Z.position),heights:R.filter(jn=>jn.position==Z.position),setHeights:I,expandByDefault:o,gap:p,expanded:D,swipeDirections:t.swipeDirections})})):null}))});function UT(e){return Array.isArray(e)&&e[0].field!==void 0}const VT=(e,t)=>{var n;if(UT(e)){for(const r of e)(n=t==null?void 0:t.form)==null||n.setFieldError(r.field,r.message);return}if(e&&e.message){t!=null&&t.noToast||zp.error(e.message);return}if(e&&e.error){t!=null&&t.noToast||zp.error(e.error);return}};function HT(e,t,n){let r=n;r||(r=Object.keys(e));for(let i of r){if(Array.isArray(e[i])&&Array.isArray(t[i])){if(e[i].length!==t[i].length)return!1;for(let s=0;s<e[i].length;s++)if(e[i][s]!==t[i][s])return!1;continue}if(e[i]!==t[i])return!1}return!0}function WT({id:e,text:t,required:n,className:r,noMargin:i}){return t?E.jsxs("label",{htmlFor:e,className:qt(r,{"lc-mb-2":!i},"lc-inline-block lc-text-base lc-font-medium"),children:[t," ",n&&E.jsx("span",{className:"lc-text-red-500",children:"*"})]}):null}const xu={sm:"lc-px-3 lc-py-1 lc-text-xs",md:"lc-px-4 lc-py-2 lc-text-sm",lg:"lc-px-5 lc-py-3 lc-text-15"};function Xy({id:e,label:t,suffix:n,prefix:r,size:i="md",type:s="text",noMargin:o=!1,required:l=!1,error:a,ariaDescribedBy:c,className:d,ariaInvalid:u,ariaLabel:f,autoFocus:g,...v}){return E.jsxs("div",{className:qt({"lc-mb-3":!o},d),children:[E.jsx(WT,{id:e,text:t,required:l}),E.jsxs("div",{className:"lc-flex lc-items-center",children:[r&&E.jsx("span",{className:qt("lc-inline-block lc-border lc-border-r-0 lc-border-slate-200 lc-bg-slate-100 lc-rounded-l-md",xu[i],{"!lc-border-red-500":!!a}),children:r}),E.jsx("input",{id:e,className:qt("lc-border lc-rounded-md lc-block lc-text-base lc-py-2 lc-px-4 lc-w-full lc-border-slate-200 focus:lc-outline-none focus:lc-border-custom-500 disabled:lc-bg-slate-100 disabled:lc-border-slate-300 disabled:lc-text-slate-500 placeholder:lc-text-slate-400",xu[i],{"lc-rounded-l-none":!!r,"lc-rounded-r-none":!!n,"!lc-border-red-500 !lc-text-red-500":!!a}),type:s,required:l,"aria-describedby":c,"aria-invalid":u,"aria-label":f,...v}),n&&E.jsx("span",{className:qt("lc-inline-block lc-border lc-border-l-0 lc-border-slate-200 lc-bg-slate-100 lc-rounded-r-md",xu[i],{"!lc-border-red-500":!!a}),children:n})]}),!!a&&E.jsx("p",{className:"lc-mt-1 lc-text-sm lc-text-red-500",children:a})]})}const QT=(e,t)=>{document.cookie=`${e}=${t}`},Zy=S.createContext({}),Jy=()=>`${window.location.pathname}_$$_${document.title}`,qT=()=>{const e=localStorage.getItem("lc-page");return!e||e===""?"/":Jy()},KT=()=>{const e=localStorage.getItem("lc-p-history");if(!e||e==="")return[];try{return JSON.parse(e)}catch{return[]}};function YT({children:e}){const[t,n]=S.useState("/"),[r,i]=S.useState(KT());function s(){i([]),localStorage.removeItem("lc-p-history")}const o=l=>{n(l),i(a=>[...new Set([...a,l])]),localStorage.setItem("lc-page",l),localStorage.setItem("lc-p-history",JSON.stringify(r))};return S.useEffect(()=>{o(Jy())},[]),E.jsx(Zy.Provider,{value:{page:t,setPage:o,history:r,clearHistory:s},children:e})}function wd(){return S.useContext(Zy)}function GT({label:e,id:t,value:n="",className:r,placeholder:i,children:s,required:o,error:l,...a}){return E.jsxs("div",{className:r||"",children:[e&&E.jsxs("label",{htmlFor:t,className:"lc-inline-block lc-mb-2 lc-text-base lc-font-medium",children:[e," ",o&&E.jsx("span",{className:"lc-text-red-500",children:"*"})]}),E.jsx("select",{id:t,"aria-placeholder":i,value:n,"aria-label":e,className:"lc-bg-light lc-form-select dark:lc-bg-zink-700 dark:lc-border-zink-500 lc-transition-colors lc-duration-200 lc-border lc-text-gray-900 dark:lc-text-gray-200 sm:lc-text-sm lc-rounded-md focus:lc-ring-emerald-500 lc-focus-visible:lc-ring-0 lc-focus-visible:lc-shadow-none lc-outline-none lc-focus-visible:lc-outline-none lc-focus-visible:lc-border-emerald-500 focus:lc-border-emerald-500 lc-block lc-w-full lc-px-2 lc-py-2 lc-placeholder-fuchsia-600 lc-caret-emerald-500",onChange:a.onChange,required:o,...a,children:s}),!!l&&E.jsx("p",{className:"lc-mt-1 lc-text-sm lc-text-red-500",children:l})]})}const Vp={ring:{label:"",input:"lc-relative before:content[''] before:absolute before:top-2/4 before:left-2/4 before:block before:h-12 before:w-12 before:-translate-y-2/4 before:-translate-x-2/4 before:rounded-full before:bg-blue-gray-500 before:opacity-0 before:transition-opacity hover:before:opacity-10"},hover:{label:"hover:lc-bg-secondary lc-transition-colors lc-duration-200 lc-px-2 lc-py-1 lc-rounded-md",input:""}},XT={blue:"lc-checked:lc-border-blue-500 lc-checked:lc-bg-blue-500 lc-checked:before:lc-bg-blue-500",indigo:"lc-checked:lc-border-indigo-500 lc-checked:lc-bg-indigo-500 lc-checked:before:lc-bg-indigo-500",green:"lc-checked:lc-border-green-500 lc-checked:lc-bg-green-500 lc-checked:before:lc-bg-green-500",red:"lc-checked:lc-border-red-500 lc-checked:lc-bg-red-500 lc-checked:before:lc-bg-red-500",orange:"lc-checked:lc-border-orange-500 lc-checked:lc-bg-orange-500 lc-checked:before:lc-bg-orange-500"},ZT={sm:"lc-h-4 lc-w-4 lg:lc-h-3 lg:lc-w-3",md:"lc-h-6 lc-w-6 lg:lc-h-5 lg:lc-w-5",lg:"lc-h-8 lc-w-8 lg:lc-h-7 lg:lc-w-7"},JT={sm:"lc-h-3 lc-w-3 lg:lc-h-2.5 lg:lc-w-2.5",md:"lc-h-5 lc-w-5 lg:lc-h-4 lg:lc-w-4",lg:"lc-h-7 lc-w-7 lg:lc-h-6 lg:lc-w-6"};function eO({children:e,name:t,required:n,value:r,checked:i,onChange:s,onBlur:o,red:l,id:a=t,size:c="md",effect:d="ring",reversed:u=!1,variant:f="blue",...g}){return E.jsxs("div",{children:[E.jsxs("div",{className:`lc-flex lc-items-center lc-justify-between ${u?"lc-flex-row-reverse":""} ${Vp[d].label}`,children:[E.jsxs("label",{className:"lc-disable-highlight lc-relative lc-mr-3 lc-flex lc-cursor-pointer lc-items-center lc-rounded-full",htmlFor:a,children:[E.jsx("input",{id:a,name:t,type:"checkbox",className:`lc-border-blue-gray-200 lc-peer lc-cursor-pointer lc-appearance-none lc-rounded-md lc-border lc-bg-white lc-transition-all dark:lc-bg-inherit ${XT[f]} ${ZT[c]} ${Vp[d].input}`,required:n,checked:i,value:r,onChange:v=>s==null?void 0:s(v.target.checked),onBlur:v=>o==null?void 0:o(v.target.checked),...g}),E.jsx("div",{className:"lc-pointer-events-none lc-absolute lc-left-2/4 lc-top-2/4 lc-translate-x-2/4 lc-translate-y-2/4 lc-text-white lc-opacity-0 lc-transition-opacity lc-peer-checked:lc-opacity-100",children:E.jsx(Ve.Check,{className:JT[c]})})]}),E.jsx("label",{className:"lc-disable-highlight lc-mt-px lc-flex lc-grow lc-cursor-pointer lc-select-none lc-items-center lc-justify-between lc-font-light lc-text-gray-800 dark:lc-text-gray-400",htmlFor:a,children:e})]}),l&&E.jsx("small",{className:"lc-text-xs lc-text-red-500",children:l})]})}const tO={blue:"lc-text-blue-500 lc-border-blue-gray-200 lc-checked:lc-bg-blue-500 lc-checked:lc-border-blue-500 lc-checked:before:lc-bg-blue-500 before:lc-bg-blue-gray-500",red:"lc-text-red-500 lc-border-blue-gray-200 lc-checked:lc-border-red-500 lc-checked:before:lc-bg-red-500 before:lc-bg-blue-gray-500",emerald:"lc-text-emerald-500 lc-border-blue-gray-200 lc-checked:lc-border-emerald-500 lc-checked:before:lc-bg-emerald-500 before:lc-bg-blue-gray-500",orange:"lc-text-orange-500 lc-border-blue-gray-200 lc-checked:lc-border-orange-500 lc-checked:before:lc-bg-orange-500 before:lc-bg-blue-gray-500"},nO={blue:"lc-text-white",red:"lc-text-red-500",emerald:"lc-text-emerald-500",orange:"lc-text-orange-500"},rO={sm:"lc-h-4 lc-w-4 lg:lc-h-3 lg:lc-w-3",md:"lc-h-6 lc-w-6 lg:lc-h-5 lg:lc-w-5",lg:"lc-h-8 lc-w-8 lg:lc-h-7 lg:lc-w-7"},iO={sm:"lc-size-3",md:"lc-size-4",lg:"lc-size-5"},Hp={ring:{label:"",input:"lc-relative before:content[''] before:absolute before:top-2/4 before:left-2/4 before:block before:h-12 before:w-12 before:-translate-y-2/4 before:-translate-x-2/4 before:rounded-full before:opacity-0 before:transition-opacity hover:before:opacity-10"},hover:{label:"hover:lc-bg-secondary lc-transition-colors lc-duration-200",input:""}};function Kc({children:e,id:t,name:n,size:r="md",variant:i="blue",effect:s="ring",value:o=!1,reverse:l=!1,onChange:a,onBlur:c,onClick:d}){return E.jsxs("label",{className:`lc-disable-highlight lc-flex lc-cursor-pointer lc-items-center lc-rounded-md ${l?"lc-flex-row-reverse lc-justify-between":""} ${Hp[s].label} `,htmlFor:t,children:[E.jsxs("label",{className:"lc-relative lc-flex lc-items-center lc-p-2 lc-rounded-full lc-cursor-pointer lc-disable-highlight",htmlFor:t,children:[E.jsx("input",{id:t,name:n,type:"radio",className:`lc-disable-highlight lc-bg-none lc-peer lc-cursor-pointer lc-appearance-none lc-rounded-full lc-border dark:lc-border-zink-400 lc-bg-inherit lc-transition-all dark:lc-bg-inherit ${tO[i]} ${rO[r]} ${Hp[s].input}`,checked:o,onChange:u=>a==null?void 0:a(u.target.checked),onBlur:u=>c==null?void 0:c(u.target.checked),onClick:()=>d==null?void 0:d(!o)}),E.jsx("div",{className:`lc-pointer-events-none lc-absolute lc-left-2/4 lc-top-2/4 lc-flex lc-items-center lc-justify-center lc-opacity-0 lc-transition-opacity lc-peer-checked:lc-opacity-100 ${nO[i]}`,children:E.jsx(Ve.Check,{className:iO[r]})})]}),E.jsx("label",{className:"lc-disable-highlight lc-flex lc-cursor-pointer lc-select-none lc-items-center lc-font-light lc-text-gray-500 dark:lc-text-gray-400",htmlFor:t,children:e})]})}Kc.Group=function({label:t,id:n,className:r,required:i,children:s}){return E.jsxs("div",{className:r,children:[E.jsxs("label",{htmlFor:n,className:"inline-block mb-2 text-base font-medium",children:[t," ",i&&E.jsx("span",{className:"text-red-500",children:"*"})]}),E.jsx("div",{className:"col-span-12 flex items-center gap-4 p-2",children:s})]})};function sO({onOk:e,clientId:t,widgetId:n,appearance:r}){var u,f,g,v,w,x,m,p;const i=wd(),s=Gb(),o=(f=(u=r==null?void 0:r.body)==null?void 0:u.inputs)==null?void 0:f.reduce((h,_)=>{const T=ul(_.name);return h[_.name]=T||"",h},{}),l=(v=(g=r==null?void 0:r.body)==null?void 0:g.inputs)==null?void 0:v.reduce((h,_)=>(h[_.name]="",h),{}),a=gy((x=(w=r==null?void 0:r.body)==null?void 0:w.inputs)==null?void 0:x.reduce((h,_)=>(h[_.name]=_.required?Mc().required(_.label):Mc(),h),{})),c=pT({init:{...o},schema:a,action:async h=>{var k;const[_,T]=await s.mutateAsync({inputs:h,history:i.history,client_id:t,widget_id:n});if(gg(T)){i.clearHistory();for(const C of((k=r==null?void 0:r.body)==null?void 0:k.inputs)||[])QT(C.name,h[C.name]);e==null||e();return}VT(_,{form:c})}}),d=!HT(l,c.values);return E.jsxs("form",{className:"lc-grid lc-grid-cols-1 lc-gap-4",onSubmit:h=>{h.preventDefault(),c.handleSubmit()},children:[(p=(m=r==null?void 0:r.body)==null?void 0:m.inputs)==null?void 0:p.map(h=>{var _,T;if(["text","email","phone"].includes(h.type))return E.jsx(Xy,{id:h.name,name:h.name,type:h.type,value:c.values[h.name],onChange:c.handleChange,onBlur:c.handleBlur,placeholder:h.placeholder,error:c.errors[h.name],ariaInvalid:c.errors.name?!0:void 0,required:!0,noMargin:!0},h.name);if(h.type==="select")return E.jsx(GT,{id:h.name,name:h.name,value:c.values[h.name],onChange:c.handleChange,label:h.label,children:(_=h.options)==null?void 0:_.map(k=>E.jsx("option",{value:k,children:k},k))},h.name);if(h.type==="checkbox")return E.jsx(eO,{id:h.name,name:h.name,value:c.values[h.name],onChange:c.handleChange,children:h.label},h.name);if(h.type==="radio")return E.jsx(Kc.Group,{id:h.name,label:h.label,required:h.required,children:(T=h.options)==null?void 0:T.map(k=>E.jsx(Kc,{onChange:()=>{c.setFieldValue(h.name,k)},id:h.name,name:h.name,value:k===c.values[h.name],children:k},k))},h.name)}),E.jsx(Gs,{kind:"soft",type:"submit",disabled:!d,children:"Sohbet Oluştur"})]})}function oO({image_url:e,name:t,size:n="lc-size-9"}){return e?E.jsx("img",{src:e,alt:t,className:qt("lc-rounded-md",n)}):E.jsx("div",{className:"lc-flex lc-items-center lc-justify-center lc-gap-1",children:E.jsx(Ve.Website,{className:qt("lc-text-slate-500",n)})})}const ev=(e,t,n)=>{const r=typeof window<"u"?window:void 0;S.useEffect(()=>(r.addEventListener(e,t),()=>{r.removeEventListener(e,t,!1)}),[e,t,r])};function lO(){const e=wd(),t=S.useCallback(()=>{const n=window.location.pathname;n!==e.page&&e.setPage(n)},[e.page]);return ev("popstate",t),null}function aO(){const[e,t]=S.useState(!1),n=uo(),r=wd(),i=S.useCallback(()=>{const s=window.location.pathname;if(s!==r.page){if(n){n.emit(fn.PageChange,{page:s});return}r.setPage(s)}},[n,r.page]);return ev("popstate",i),S.useEffect(()=>{if(e||!n)return;const s=setTimeout(()=>{qT()!==r.page&&(n.emit(fn.PageChange,{page:r.page}),t(!0))},1e3);return()=>{clearTimeout(s)}},[n,r.page,e]),null}function uO({children:e}){const{widget:t}=Ji();return t?E.jsxs("section",{className:"lc-h-full lc-w-full lc-p-4 lc-relative",children:[E.jsx("div",{className:"-lc-z-10 lc-h-52 lc-bg-zink-600 lc-absolute lc-top-0 lc-left-0 lc-w-full lc-rounded-t-md lc-flex lc-flex-col lc-gap-4 lc-items-center lc-justify-center"}),e]}):null}function cO(){return lO(),null}const Su=(e,t)=>{var n;return(n=e.find(r=>r.type===t))==null?void 0:n.content};function fO(){var l,a,c,d,u,f;const{widget:e}=Ji(),[t,n]=S.useState(!0),r=td();if(!e||(S.useEffect(()=>{Xb(e.client_id).then(([g,v])=>{gg(v)&&r.push("chat")}).finally(()=>{n(!1)})},[]),t))return null;const i=Su(((a=(l=e.appearance)==null?void 0:l.head)==null?void 0:a.elements)||[],"text"),s=Su(((d=(c=e.appearance)==null?void 0:c.head)==null?void 0:d.elements)||[],"title"),o=Su(((f=(u=e.appearance)==null?void 0:u.head)==null?void 0:f.elements)||[],"logo");return E.jsxs(E.Fragment,{children:[E.jsx(oy,{children:E.jsxs(uO,{children:[E.jsxs("div",{className:"lc-flex lc-flex-col lc-gap-3 lc-items-center lc-justify-center lc-h-52",children:[o&&E.jsx(oO,{name:e.name,image_url:o,size:"lc-size-24"}),s&&E.jsx("div",{className:"lc-text-white lc-text-lg lc-font-bold lc-ml-2",children:s}),i&&E.jsx("div",{className:"lc-text-white lc-text-sm",children:i})]}),E.jsx(sO,{clientId:e.client_id,widgetId:e.link_id,appearance:e.appearance,onOk:()=>{r.push("chat")}})]})}),E.jsx(cO,{})]})}const dO=[{path:"/",component:fO,name:"registration"}];function hO({name:e,avatar:t,className:n="lc-text-neutral-500"}){return E.jsxs("div",{className:"lc-flex lc-gap-2 lc-items-center",children:[E.jsx("div",{className:"lc-min-w-max",children:E.jsxs("span",{children:[t&&E.jsx("img",{className:"lc-size-10 lc-rounded-full",src:t,"aria-label":e}),!t&&E.jsx("div",{className:"lc-size-10 lc-rounded-full lc-bg-neutral-200"})]})}),E.jsx("div",{className:"lc-flex lc-flex-col",children:E.jsx("span",{className:qt("lc-line-clamp-1",n),children:e})})]})}function pO(e,t){let n,r=0;return function(...s){r++;const o=r;clearTimeout(n),n=setTimeout(()=>{o===r&&e(...s)},t)}}function mO({onNewMessage:e}){const t=uo(),[n,r]=S.useState(""),i=()=>{t==null||t.emit(fn.MessageCreate,{content:n},l=>{r(""),e(l),s("")})},s=l=>{t==null||t.emit(fn.MessageTyping,{content:l})},o=pO(s,300);return E.jsxs("form",{className:"lc-border-t lc-p-2 lc-flex lc-items-center lc-gap-2",onSubmit:l=>{l.preventDefault(),i(),l.currentTarget.reset()},children:[E.jsx("div",{className:"lc-grow lc-relative",children:E.jsx(Xy,{id:"message",className:"lc-grow",noMargin:!0,onChange:l=>{r(l.target.value),o(l.target.value)},placeholder:"Bir mesaj yazın"})}),E.jsx("div",{className:"lc-flex lc-items-center lc-justify-center lc-h-full",children:E.jsx(Gs,{className:"lc-rounded-md",type:"submit",children:"Gönder"})})]})}var Ct=(e=>(e.Customer="customer",e.User="user",e.System="system",e.Activity="activity",e))(Ct||{});function gO({messages:e,isTyping:t}){const n=S.useRef(null),r=S.useRef(null),[i,s]=S.useState(!0),o=()=>{var a;(a=n.current)==null||a.scrollIntoView({behavior:"smooth"})},l=()=>{if(r.current){const{scrollTop:a,scrollHeight:c,clientHeight:d}=r.current,u=c-a<=d+10;s(u)}};return S.useEffect(()=>{i&&o()},[e,i]),E.jsxs("section",{onScroll:l,ref:r,className:"lc-flex lc-flex-col lc-gap-2 lc-w-full lc-h-full lc-grow lc-pt-4 lc-px-4 lc-overflow-y-auto",style:{height:"calc(100vh - 122px)"},children:[e.map((a,c)=>E.jsxs("div",{className:qt("lc-flex lc-w-full lc-items-center lc-break-all",{"lc-justify-end":a.sender_type===Ct.Customer,"lc-justify-start":a.sender_type===Ct.User,"lc-justify-center":a.sender_type===Ct.System||a.sender_type===Ct.Activity}),children:[a.sender_type===Ct.System&&E.jsx(E.Fragment,{children:a.content}),[Ct.Customer,Ct.User].includes(a.sender_type)&&E.jsx("div",{className:qt("lc-border lc-rounded-md lc-px-2 lc-py-1",{"lc-bg-blue-500 lc-text-white":a.sender_type===Ct.Customer,"lc-bg-zink-500 lc-text-white":a.sender_type===Ct.User}),children:a.content}),a.sender_type===Ct.Activity&&(a.content.split("_").length===3?E.jsxs("div",{className:"lc-border lc-rounded-md lc-px-2 lc-py-1 lc-text-xs",children:[a.content.split("_")[2]," odaya katıldı"]}):a.content),Ct.System===a.sender_type&&E.jsx("div",{className:"lc-text-xs lc-text-neutral-400",children:a.created_at.toLocaleString()})]},a.id||c)),t&&E.jsx("div",{className:"lc-flex lc-w-full lc-items-center lc-justify-end",children:E.jsx("div",{className:"lc-h-full lc-flex lc-items-center",children:E.jsx(Ve.MessageTyping,{})})}),!i&&E.jsx("div",{className:"lc-fixed lc-bottom-[7.5rem] lc-right-16",children:E.jsx(Gs,{type:"button",className:"lc-size-10 lc-flex lc-items-center lc-justify-center lc-!p-0",onClick:()=>{var a,c;(c=r.current)==null||c.scrollTo({top:(a=r.current)==null?void 0:a.scrollHeight,behavior:"smooth"})},children:E.jsx(Ve.ArrowDown,{className:"lc-size-5"})})}),E.jsx("div",{ref:n})]})}function yO({children:e}){const{widget:t}=Ji();return t?E.jsx("section",{className:"lc-h-full lc-w-full lc-relative",children:e}):null}function vO({children:e}){const t=uo();return S.useEffect(()=>{t&&t.connect()},[]),!t||!t.connected?null:e}function wO(){const{widget:e,setOpen:t}=Ji(),n=uo(),r=td(),[i,s]=S.useState(null),[o,l]=S.useState([]),[a,c]=S.useState(!1),[d,u]=S.useState(!1),[f,g]=S.useState([]),v=()=>{n==null||n.emit(fn.ChatClose,{}),t(!1),s(null),l([]),g([]),zl(e.client_id).then(()=>{n==null||n.disconnect(),r.push("registration")})};S.useEffect(()=>{n==null||n.emit(fn.ChatView,{},x=>{if(x===null){t(!1),zl(e.client_id),l([]),g([]),r.push("registration");return}s(x)})},[]);const w=S.useCallback(x=>{l([...o,x])},[o]);return S.useEffect(()=>{if(n)return n.on(Qt.MessageAgentCreate,x=>{const m={content:x.content,created_at:x.created_at,files:x.files,id:x._id,sender_type:x.sender_type,answers:x.answers,reply_id:x.reply_id};if(f.length>0){g(p=>[...p,m]);return}x.is_shortcut?g([m]):w(m)}),n.on(Qt.ChatUserAssignee,x=>{s({...i,agent_name:x.name,agent_avatar:x.avatar,is_uploadable:(i==null?void 0:i.is_uploadable)??!1})}),n.on(Qt.MessageAgentTyping,()=>{c(!0)}),()=>{n.off(Qt.MessageAgentCreate),n.off(Qt.ChatUserAssignee),n.off(Qt.MessageAgentTyping)}},[w]),S.useEffect(()=>{n&&n.emit(fn.MessageList,{},x=>{l(x)})},[]),S.useEffect(()=>{const x=setTimeout(()=>{c(!1)},1e3);return()=>clearTimeout(x)},[a]),S.useEffect(()=>{if(!e||f.length===0)return;const x=(e.writing_timeout||650)*f[0].content.split(" ").length,m=setTimeout(()=>{w(f[0]),g(f.slice(1))},x);return()=>clearTimeout(m)},[f,e]),i?E.jsxs(E.Fragment,{children:[d&&E.jsx("div",{className:"lc-absolute lc-top-0 lc-left-0 lc-backdrop-blur-sm lc-bg-slate-950/20 lc-z-50 lc-h-full lc-w-full lc-rounded-md",children:E.jsx("div",{className:"lc-flex lc-flex-col lc-items-center lc-justify-center lc-h-full lc-mx-5",children:E.jsxs("div",{className:"lc-bg-white lc-p-4 lc-rounded-md",children:[E.jsx("div",{className:"lc-text-lg lc-font-semibold lc-text-neutral-900",children:"Sohbeti kapatmak istediğinize emin misiniz?"}),E.jsxs("div",{className:"lc-flex lc-justify-between lc-mt-4",children:[E.jsx("button",{type:"button",className:"lc-bg-red-500 lc-text-white lc-px-4 lc-py-2 lc-rounded-md",onClick:v,children:"Evet"}),E.jsx("button",{type:"button",className:"lc-bg-neutral-200 lc-text-neutral-900 lc-px-4 lc-py-2 lc-rounded-md",onClick:()=>u(!1),children:"Vazgeç"})]})]})})}),E.jsxs("section",{className:"lc-bg-white lc-h-full lc-w-full lc-rounded-md lc-border lc-flex lc-flex-col",children:[E.jsxs("header",{className:"lc-border-b lc-p-4 lc-bg-zink-600 lc-rounded-t-md lc-flex lc-justify-between lc-items-center",children:[i!=null&&i.agent_name?E.jsx(hO,{name:i.agent_name,avatar:i.agent_avatar,className:"lc-text-neutral-300"}):E.jsx("div",{className:"lc-text-white",children:"Chat with us"}),E.jsx("button",{type:"button",className:"lc-text-white",onClick:()=>u(!0),children:E.jsx(Ve.X,{className:"lc-w-6 lc-h-6 lc-cursor-pointer"})})]}),E.jsx(gO,{messages:o,isTyping:a||f.length>0}),E.jsx(mO,{onNewMessage:x=>{w(x)}})]})]}):null}function xO(){return aO(),null}function SO(){return E.jsxs(vO,{children:[E.jsx(oy,{defaultOpen:!0,children:E.jsx(yO,{children:E.jsx(wO,{})})}),E.jsx(xO,{})]})}const bO=[{path:"/chat",component:SO,name:"chat"}],tv=[...bO],nv=[...dO],EO=[...tv,...nv];function _O(){return E.jsx(ES,{future:{v7_startTransition:!0},children:E.jsxs(kS,{children:[tv.map((e,t)=>E.jsx(Oc,{path:e.path,element:E.jsx(e.component,{})},t)),nv.map((e,t)=>E.jsx(Oc,{path:e.path,element:E.jsx(e.component,{})},t))]})})}function kO({link_id:e}){const{setWidget:t,widget:n}=Ji(),{data:r,isLoading:i}=Ox(e);return S.useEffect(()=>{Array.isArray(r)&&Nx(r[0])&&t(r[0])},[r]),i||!n?null:E.jsx(YT,{children:E.jsx(Yb,{children:E.jsx(_O,{})})})}const CO=new ux;function TO({container:e,link_id:t}){pg(e).render(E.jsxs(px,{client:CO,children:[E.jsx(kO,{link_id:t}),E.jsx(BT,{richColors:!0,style:{zIndex:999999},position:"bottom-right"})]}))}window.widget=TO});export default OO();