@alfatech/livechat 2025.5.2-7.1 → 2025.5.2-9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.css +1 -1
- package/dist/main.js +30 -30
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var mg=e=>{throw TypeError(e)};var
|
|
1
|
+
var mg=e=>{throw TypeError(e)};var $E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Hc=(e,t,n)=>t.has(e)||mg("Cannot "+n);var k=(e,t,n)=>(Hc(e,t,"read from private field"),n?n.call(e):t.get(e)),W=(e,t,n)=>t.has(e)?mg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),$=(e,t,n,r)=>(Hc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),ie=(e,t,n)=>(Hc(e,t,"access private method"),n);var il=(e,t,n,r)=>({set _(i){$(e,t,i,n)},get _(){return k(e,t,r)}});var W$=$E(($t,zt)=>{function zE(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 Ax={exports:{}},Ku={},Rx={exports:{}},se={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var mg=e=>{throw TypeError(e)};var LE=(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
|
|
9
|
+
*/var Va=Symbol.for("react.element"),BE=Symbol.for("react.portal"),VE=Symbol.for("react.fragment"),UE=Symbol.for("react.strict_mode"),HE=Symbol.for("react.profiler"),WE=Symbol.for("react.provider"),qE=Symbol.for("react.context"),KE=Symbol.for("react.forward_ref"),GE=Symbol.for("react.suspense"),QE=Symbol.for("react.memo"),YE=Symbol.for("react.lazy"),gg=Symbol.iterator;function XE(e){return e===null||typeof e!="object"?null:(e=gg&&e[gg]||e["@@iterator"],typeof e=="function"?e:null)}var Ox={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Dx=Object.assign,Fx={};function ho(e,t,n){this.props=e,this.context=t,this.refs=Fx,this.updater=n||Ox}ho.prototype.isReactComponent={};ho.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")};ho.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Nx(){}Nx.prototype=ho.prototype;function eh(e,t,n){this.props=e,this.context=t,this.refs=Fx,this.updater=n||Ox}var th=eh.prototype=new Nx;th.constructor=eh;Dx(th,ho.prototype);th.isPureReactComponent=!0;var vg=Array.isArray,Mx=Object.prototype.hasOwnProperty,nh={current:null},Lx={key:!0,ref:!0,__self:!0,__source:!0};function Ix(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)Mx.call(t,r)&&!Lx.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),u=0;u<a;u++)l[u]=arguments[u+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:Va,type:e,key:s,ref:o,props:i,_owner:nh.current}}function ZE(e,t){return{$$typeof:Va,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function rh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Va}function JE(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var yg=/\/+/g;function Wc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?JE(""+e.key):t.toString(36)}function Nl(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 Va:case BE:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Wc(o,0):r,vg(i)?(n="",e!=null&&(n=e.replace(yg,"$&/")+"/"),Nl(i,t,n,"",function(u){return u})):i!=null&&(rh(i)&&(i=ZE(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(yg,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",vg(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Wc(s,a);o+=Nl(s,t,n,l,i)}else if(l=XE(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Wc(s,a++),o+=Nl(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 sl(e,t,n){if(e==null)return e;var r=[],i=0;return Nl(e,r,"","",function(s){return t.call(n,s,i++)}),r}function eT(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 xt={current:null},Ml={transition:null},tT={ReactCurrentDispatcher:xt,ReactCurrentBatchConfig:Ml,ReactCurrentOwner:nh};function $x(){throw Error("act(...) is not supported in production builds of React.")}se.Children={map:sl,forEach:function(e,t,n){sl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return sl(e,function(){t++}),t},toArray:function(e){return sl(e,function(t){return t})||[]},only:function(e){if(!rh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};se.Component=ho;se.Fragment=VE;se.Profiler=HE;se.PureComponent=eh;se.StrictMode=UE;se.Suspense=GE;se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tT;se.act=$x;se.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=Dx({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=nh.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Mx.call(t,l)&&!Lx.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 u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Va,type:e.type,key:i,ref:s,props:r,_owner:o}};se.createContext=function(e){return e={$$typeof:qE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:WE,_context:e},e.Consumer=e};se.createElement=Ix;se.createFactory=function(e){var t=Ix.bind(null,e);return t.type=e,t};se.createRef=function(){return{current:null}};se.forwardRef=function(e){return{$$typeof:KE,render:e}};se.isValidElement=rh;se.lazy=function(e){return{$$typeof:YE,_payload:{_status:-1,_result:e},_init:eT}};se.memo=function(e,t){return{$$typeof:QE,type:e,compare:t===void 0?null:t}};se.startTransition=function(e){var t=Ml.transition;Ml.transition={};try{e()}finally{Ml.transition=t}};se.unstable_act=$x;se.useCallback=function(e,t){return xt.current.useCallback(e,t)};se.useContext=function(e){return xt.current.useContext(e)};se.useDebugValue=function(){};se.useDeferredValue=function(e){return xt.current.useDeferredValue(e)};se.useEffect=function(e,t){return xt.current.useEffect(e,t)};se.useId=function(){return xt.current.useId()};se.useImperativeHandle=function(e,t,n){return xt.current.useImperativeHandle(e,t,n)};se.useInsertionEffect=function(e,t){return xt.current.useInsertionEffect(e,t)};se.useLayoutEffect=function(e,t){return xt.current.useLayoutEffect(e,t)};se.useMemo=function(e,t){return xt.current.useMemo(e,t)};se.useReducer=function(e,t,n){return xt.current.useReducer(e,t,n)};se.useRef=function(e){return xt.current.useRef(e)};se.useState=function(e){return xt.current.useState(e)};se.useSyncExternalStore=function(e,t,n){return xt.current.useSyncExternalStore(e,t,n)};se.useTransition=function(){return xt.current.useTransition()};se.version="18.3.1";Rx.exports=se;var m=Rx.exports;const F=Qi(m),Yd=zE({__proto__:null,default:F},[m]);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@ var mg=e=>{throw TypeError(e)};var LE=(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
|
|
17
|
+
*/var nT=m,rT=Symbol.for("react.element"),iT=Symbol.for("react.fragment"),sT=Object.prototype.hasOwnProperty,oT=nT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,aT={key:!0,ref:!0,__self:!0,__source:!0};function zx(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)sT.call(t,r)&&!aT.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:rT,type:e,key:s,ref:o,props:i,_owner:oT.current}}Ku.Fragment=iT;Ku.jsx=zx;Ku.jsxs=zx;Ax.exports=Ku;var v=Ax.exports,Bx={exports:{}},Ut={},Vx={exports:{}},Ux={};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* scheduler.production.min.js
|
|
20
20
|
*
|
|
@@ -22,7 +22,7 @@ var mg=e=>{throw TypeError(e)};var LE=(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(O,M){var U=O.length;O.push(M);e:for(;0<U;){var
|
|
25
|
+
*/(function(e){function t(O,M){var U=O.length;O.push(M);e:for(;0<U;){var V=U-1>>>1,H=O[V];if(0<i(H,M))O[V]=M,O[U]=H,U=V;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var M=O[0],U=O.pop();if(U!==M){O[0]=U;e:for(var V=0,H=O.length,X=H>>>1;V<X;){var ue=2*(V+1)-1,he=O[ue],ee=ue+1,Fe=O[ee];if(0>i(he,U))ee<H&&0>i(Fe,he)?(O[V]=Fe,O[ee]=U,V=ee):(O[V]=he,O[ue]=U,V=ue);else if(ee<H&&0>i(Fe,U))O[V]=Fe,O[ee]=U,V=ee;else break e}}return M}function i(O,M){var U=O.sortIndex-M.sortIndex;return U!==0?U:O.id-M.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=[],u=[],d=1,c=null,f=3,p=!1,h=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(O){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=O)r(u),M.sortIndex=M.expirationTime,t(l,M);else break;M=n(u)}}function C(O){if(y=!1,w(O),!h)if(n(l)!==null)h=!0,G(T);else{var M=n(u);M!==null&&Y(C,M.startTime-O)}}function T(O,M){h=!1,y&&(y=!1,g(_),_=-1),p=!0;var U=f;try{for(w(M),c=n(l);c!==null&&(!(c.expirationTime>M)||O&&!I());){var V=c.callback;if(typeof V=="function"){c.callback=null,f=c.priorityLevel;var H=V(c.expirationTime<=M);M=e.unstable_now(),typeof H=="function"?c.callback=H:c===n(l)&&r(l),w(M)}else r(l);c=n(l)}if(c!==null)var X=!0;else{var ue=n(u);ue!==null&&Y(C,ue.startTime-M),X=!1}return X}finally{c=null,f=U,p=!1}}var E=!1,S=null,_=-1,D=5,R=-1;function I(){return!(e.unstable_now()-R<D)}function ne(){if(S!==null){var O=e.unstable_now();R=O;var M=!0;try{M=S(!0,O)}finally{M?te():(E=!1,S=null)}}else E=!1}var te;if(typeof x=="function")te=function(){x(ne)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,J=Z.port2;Z.port1.onmessage=ne,te=function(){J.postMessage(null)}}else te=function(){b(ne,0)};function G(O){S=O,E||(E=!0,te())}function Y(O,M){_=b(function(){O(e.unstable_now())},M)}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(O){O.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,G(T))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(O){switch(f){case 1:case 2:case 3:var M=3;break;default:M=f}var U=f;f=M;try{return O()}finally{f=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,M){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var U=f;f=O;try{return M()}finally{f=U}},e.unstable_scheduleCallback=function(O,M,U){var V=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?V+U:V):U=V,O){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=U+H,O={id:d++,callback:M,priorityLevel:O,startTime:U,expirationTime:H,sortIndex:-1},U>V?(O.sortIndex=U,t(u,O),n(l)===null&&O===n(u)&&(y?(g(_),_=-1):y=!0,Y(C,U-V))):(O.sortIndex=H,t(l,O),h||p||(h=!0,G(T))),O},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(O){var M=f;return function(){var U=f;f=M;try{return O.apply(this,arguments)}finally{f=U}}}})(Ux);Vx.exports=Ux;var lT=Vx.exports;/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,14 +30,14 @@ var mg=e=>{throw TypeError(e)};var LE=(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
|
|
34
|
-
`+
|
|
33
|
+
*/var uT=m,Vt=lT;function N(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 Hx=new Set,oa={};function Yi(e,t){to(e,t),to(e+"Capture",t)}function to(e,t){for(oa[e]=t,e=0;e<t.length;e++)Hx.add(t[e])}var lr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xd=Object.prototype.hasOwnProperty,cT=/^[: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]*$/,xg={},wg={};function dT(e){return Xd.call(wg,e)?!0:Xd.call(xg,e)?!1:cT.test(e)?wg[e]=!0:(xg[e]=!0,!1)}function fT(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 pT(e,t,n,r){if(t===null||typeof t>"u"||fT(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 wt(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 it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new wt(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){it[e]=new wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ih=/[\-:]([a-z])/g;function sh(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(ih,sh);it[t]=new wt(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(ih,sh);it[t]=new wt(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(ih,sh);it[t]=new wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new wt(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function oh(e,t,n,r){var i=it.hasOwnProperty(t)?it[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(pT(t,n,i,r)&&(n=null),r||i===null?dT(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 pr=uT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ol=Symbol.for("react.element"),gs=Symbol.for("react.portal"),vs=Symbol.for("react.fragment"),ah=Symbol.for("react.strict_mode"),Zd=Symbol.for("react.profiler"),Wx=Symbol.for("react.provider"),qx=Symbol.for("react.context"),lh=Symbol.for("react.forward_ref"),Jd=Symbol.for("react.suspense"),ef=Symbol.for("react.suspense_list"),uh=Symbol.for("react.memo"),kr=Symbol.for("react.lazy"),Kx=Symbol.for("react.offscreen"),bg=Symbol.iterator;function To(e){return e===null||typeof e!="object"?null:(e=bg&&e[bg]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Object.assign,qc;function Mo(e){if(qc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qc=t&&t[1]||""}return`
|
|
34
|
+
`+qc+e}var Kc=!1;function Gc(e,t){if(!e||Kc)return"";Kc=!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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
35
|
`),s=r.stack.split(`
|
|
36
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{qc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mo(e):""}function fT(e){switch(e.tag){case 5:return Mo(e.type);case 16:return Mo("Lazy");case 13:return Mo("Suspense");case 19:return Mo("SuspenseList");case 0:case 2:case 15:return e=Kc(e.type,!1),e;case 11:return e=Kc(e.type.render,!1),e;case 1:return e=Kc(e.type,!0),e;default:return""}}function ef(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 vs:return"Fragment";case gs:return"Portal";case Xd:return"Profiler";case oh:return"StrictMode";case Zd:return"Suspense";case Jd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ux:return(e.displayName||"Context")+".Consumer";case Bx:return(e._context.displayName||"Context")+".Provider";case ah:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lh:return t=e.displayName||null,t!==null?t:ef(e.type)||"Memo";case kr:t=e._payload,e=e._init;try{return ef(e(t))}catch{}}return null}function pT(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 ef(t);case 8:return t===oh?"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 Jr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Wx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hT(e){var t=Wx(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 al(e){e._valueTracker||(e._valueTracker=hT(e))}function qx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function su(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 tf(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jr(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 Kx(e,t){t=t.checked,t!=null&&sh(e,"checked",t,!1)}function nf(e,t){Kx(e,t);var n=Jr(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")?rf(e,t.type,n):t.hasOwnProperty("defaultValue")&&rf(e,t.type,Jr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kg(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 rf(e,t,n){(t!=="number"||su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Lo=Array.isArray;function Fs(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=""+Jr(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 sf(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Eg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(Lo(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Jr(n)}}function Gx(e,t){var n=Jr(t.value),r=Jr(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 Tg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qx(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 of(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ll,Yx=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(ll=ll||document.createElement("div"),ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function aa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ho={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},mT=["Webkit","ms","Moz","O"];Object.keys(Ho).forEach(function(e){mT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ho[t]=Ho[e]})});function Xx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ho.hasOwnProperty(e)&&Ho[e]?(""+t).trim():t+"px"}function Zx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Xx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var gT=Pe({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 af(e,t){if(t){if(gT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function lf(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 uf=null;function uh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cf=null,Ns=null,Ms=null;function Cg(e){if(e=Wa(e)){if(typeof cf!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Zu(t),cf(e.stateNode,e.type,t))}}function Jx(e){Ns?Ms?Ms.push(e):Ms=[e]:Ns=e}function e1(){if(Ns){var e=Ns,t=Ms;if(Ms=Ns=null,Cg(e),t)for(e=0;e<t.length;e++)Cg(t[e])}}function t1(e,t){return e(t)}function n1(){}var Gc=!1;function r1(e,t,n){if(Gc)return e(t,n);Gc=!0;try{return t1(e,t,n)}finally{Gc=!1,(Ns!==null||Ms!==null)&&(n1(),e1())}}function la(e,t){var n=e.stateNode;if(n===null)return null;var r=Zu(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(F(231,t,typeof n));return n}var df=!1;if(lr)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){df=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{df=!1}function vT(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Wo=!1,ou=null,au=!1,ff=null,yT={onError:function(e){Wo=!0,ou=e}};function xT(e,t,n,r,i,s,o,a,l){Wo=!1,ou=null,vT.apply(yT,arguments)}function wT(e,t,n,r,i,s,o,a,l){if(xT.apply(this,arguments),Wo){if(Wo){var u=ou;Wo=!1,ou=null}else throw Error(F(198));au||(au=!0,ff=u)}}function Xi(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 i1(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 _g(e){if(Xi(e)!==e)throw Error(F(188))}function bT(e){var t=e.alternate;if(!t){if(t=Xi(e),t===null)throw Error(F(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 _g(i),e;if(s===r)return _g(i),t;s=s.sibling}throw Error(F(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(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function s1(e){return e=bT(e),e!==null?o1(e):null}function o1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=o1(e);if(t!==null)return t;e=e.sibling}return null}var a1=Bt.unstable_scheduleCallback,Pg=Bt.unstable_cancelCallback,ST=Bt.unstable_shouldYield,kT=Bt.unstable_requestPaint,Ne=Bt.unstable_now,ET=Bt.unstable_getCurrentPriorityLevel,ch=Bt.unstable_ImmediatePriority,l1=Bt.unstable_UserBlockingPriority,lu=Bt.unstable_NormalPriority,TT=Bt.unstable_LowPriority,u1=Bt.unstable_IdlePriority,Gu=null,Ln=null;function CT(e){if(Ln&&typeof Ln.onCommitFiberRoot=="function")try{Ln.onCommitFiberRoot(Gu,e,void 0,(e.current.flags&128)===128)}catch{}}var bn=Math.clz32?Math.clz32:jT,_T=Math.log,PT=Math.LN2;function jT(e){return e>>>=0,e===0?32:31-(_T(e)/PT|0)|0}var ul=64,cl=4194304;function Io(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 uu(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=Io(a):(s&=o,s!==0&&(r=Io(s)))}else o=n&~i,o!==0?r=Io(o):s!==0&&(r=Io(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-bn(t),i=1<<n,r|=e[n],t&=~i;return r}function AT(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 RT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-bn(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=AT(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function pf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function c1(){var e=ul;return ul<<=1,!(ul&4194240)&&(ul=64),e}function Qc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ua(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bn(t),e[t]=n}function OT(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-bn(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function dh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-bn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var fe=0;function d1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var f1,fh,p1,h1,m1,hf=!1,dl=[],Vr=null,Br=null,Ur=null,ua=new Map,ca=new Map,Cr=[],DT="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 jg(e,t){switch(e){case"focusin":case"focusout":Vr=null;break;case"dragenter":case"dragleave":Br=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":ua.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ca.delete(t.pointerId)}}function _o(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=Wa(t),t!==null&&fh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function FT(e,t,n,r,i){switch(t){case"focusin":return Vr=_o(Vr,e,t,n,r,i),!0;case"dragenter":return Br=_o(Br,e,t,n,r,i),!0;case"mouseover":return Ur=_o(Ur,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ua.set(s,_o(ua.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,ca.set(s,_o(ca.get(s)||null,e,t,n,r,i)),!0}return!1}function g1(e){var t=bi(e.target);if(t!==null){var n=Xi(t);if(n!==null){if(t=n.tag,t===13){if(t=i1(n),t!==null){e.blockedOn=t,m1(e.priority,function(){p1(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 Ll(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);uf=r,n.target.dispatchEvent(r),uf=null}else return t=Wa(n),t!==null&&fh(t),e.blockedOn=n,!1;t.shift()}return!0}function Ag(e,t,n){Ll(e)&&n.delete(t)}function NT(){hf=!1,Vr!==null&&Ll(Vr)&&(Vr=null),Br!==null&&Ll(Br)&&(Br=null),Ur!==null&&Ll(Ur)&&(Ur=null),ua.forEach(Ag),ca.forEach(Ag)}function Po(e,t){e.blockedOn===t&&(e.blockedOn=null,hf||(hf=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,NT)))}function da(e){function t(i){return Po(i,e)}if(0<dl.length){Po(dl[0],e);for(var n=1;n<dl.length;n++){var r=dl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Vr!==null&&Po(Vr,e),Br!==null&&Po(Br,e),Ur!==null&&Po(Ur,e),ua.forEach(t),ca.forEach(t),n=0;n<Cr.length;n++)r=Cr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cr.length&&(n=Cr[0],n.blockedOn===null);)g1(n),n.blockedOn===null&&Cr.shift()}var Ls=pr.ReactCurrentBatchConfig,cu=!0;function MT(e,t,n,r){var i=fe,s=Ls.transition;Ls.transition=null;try{fe=1,ph(e,t,n,r)}finally{fe=i,Ls.transition=s}}function LT(e,t,n,r){var i=fe,s=Ls.transition;Ls.transition=null;try{fe=4,ph(e,t,n,r)}finally{fe=i,Ls.transition=s}}function ph(e,t,n,r){if(cu){var i=mf(e,t,n,r);if(i===null)sd(e,t,r,du,n),jg(e,r);else if(FT(i,e,t,n,r))r.stopPropagation();else if(jg(e,r),t&4&&-1<DT.indexOf(e)){for(;i!==null;){var s=Wa(i);if(s!==null&&f1(s),s=mf(e,t,n,r),s===null&&sd(e,t,r,du,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else sd(e,t,r,null,n)}}var du=null;function mf(e,t,n,r){if(du=null,e=uh(r),e=bi(e),e!==null)if(t=Xi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=i1(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 du=e,null}function v1(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(ET()){case ch:return 1;case l1:return 4;case lu:case TT:return 16;case u1:return 536870912;default:return 16}default:return 16}}var Lr=null,hh=null,Il=null;function y1(){if(Il)return Il;var e,t=hh,n=t.length,r,i="value"in Lr?Lr.value:Lr.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 Il=i.slice(e,1<r?1-r:void 0)}function $l(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 fl(){return!0}function Rg(){return!1}function Ht(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)?fl:Rg,this.isPropagationStopped=Rg,this}return Pe(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=fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mh=Ht(mo),Ha=Pe({},mo,{view:0,detail:0}),IT=Ht(Ha),Yc,Xc,jo,Qu=Pe({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gh,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!==jo&&(jo&&e.type==="mousemove"?(Yc=e.screenX-jo.screenX,Xc=e.screenY-jo.screenY):Xc=Yc=0,jo=e),Yc)},movementY:function(e){return"movementY"in e?e.movementY:Xc}}),Og=Ht(Qu),$T=Pe({},Qu,{dataTransfer:0}),zT=Ht($T),VT=Pe({},Ha,{relatedTarget:0}),Zc=Ht(VT),BT=Pe({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),UT=Ht(BT),HT=Pe({},mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),WT=Ht(HT),qT=Pe({},mo,{data:0}),Dg=Ht(qT),KT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GT={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"},QT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=QT[e])?!!t[e]:!1}function gh(){return YT}var XT=Pe({},Ha,{key:function(e){if(e.key){var t=KT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$l(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?GT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gh,charCode:function(e){return e.type==="keypress"?$l(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$l(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ZT=Ht(XT),JT=Pe({},Qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fg=Ht(JT),eC=Pe({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gh}),tC=Ht(eC),nC=Pe({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),rC=Ht(nC),iC=Pe({},Qu,{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}),sC=Ht(iC),oC=[9,13,27,32],vh=lr&&"CompositionEvent"in window,qo=null;lr&&"documentMode"in document&&(qo=document.documentMode);var aC=lr&&"TextEvent"in window&&!qo,x1=lr&&(!vh||qo&&8<qo&&11>=qo),Ng=" ",Mg=!1;function w1(e,t){switch(e){case"keyup":return oC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function lC(e,t){switch(e){case"compositionend":return b1(t);case"keypress":return t.which!==32?null:(Mg=!0,Ng);case"textInput":return e=t.data,e===Ng&&Mg?null:e;default:return null}}function uC(e,t){if(ys)return e==="compositionend"||!vh&&w1(e,t)?(e=y1(),Il=hh=Lr=null,ys=!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 x1&&t.locale!=="ko"?null:t.data;default:return null}}var cC={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 Lg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cC[e.type]:t==="textarea"}function S1(e,t,n,r){Jx(r),t=fu(t,"onChange"),0<t.length&&(n=new mh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ko=null,fa=null;function dC(e){D1(e,0)}function Yu(e){var t=bs(e);if(qx(t))return e}function fC(e,t){if(e==="change")return t}var k1=!1;if(lr){var Jc;if(lr){var ed="oninput"in document;if(!ed){var Ig=document.createElement("div");Ig.setAttribute("oninput","return;"),ed=typeof Ig.oninput=="function"}Jc=ed}else Jc=!1;k1=Jc&&(!document.documentMode||9<document.documentMode)}function $g(){Ko&&(Ko.detachEvent("onpropertychange",E1),fa=Ko=null)}function E1(e){if(e.propertyName==="value"&&Yu(fa)){var t=[];S1(t,fa,e,uh(e)),r1(dC,t)}}function pC(e,t,n){e==="focusin"?($g(),Ko=t,fa=n,Ko.attachEvent("onpropertychange",E1)):e==="focusout"&&$g()}function hC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yu(fa)}function mC(e,t){if(e==="click")return Yu(t)}function gC(e,t){if(e==="input"||e==="change")return Yu(t)}function vC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kn=typeof Object.is=="function"?Object.is:vC;function pa(e,t){if(kn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Yd.call(t,i)||!kn(e[i],t[i]))return!1}return!0}function zg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vg(e,t){var n=zg(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=zg(n)}}function T1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?T1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function C1(){for(var e=window,t=su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=su(e.document)}return t}function yh(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 yC(e){var t=C1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&T1(n.ownerDocument.documentElement,n)){if(r!==null&&yh(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=Vg(n,s);var o=Vg(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 xC=lr&&"documentMode"in document&&11>=document.documentMode,xs=null,gf=null,Go=null,vf=!1;function Bg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;vf||xs==null||xs!==su(r)||(r=xs,"selectionStart"in r&&yh(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}),Go&&pa(Go,r)||(Go=r,r=fu(gf,"onSelect"),0<r.length&&(t=new mh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xs)))}function pl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ws={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionend:pl("Transition","TransitionEnd")},td={},_1={};lr&&(_1=document.createElement("div").style,"AnimationEvent"in window||(delete ws.animationend.animation,delete ws.animationiteration.animation,delete ws.animationstart.animation),"TransitionEvent"in window||delete ws.transitionend.transition);function Xu(e){if(td[e])return td[e];if(!ws[e])return e;var t=ws[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _1)return td[e]=t[n];return e}var P1=Xu("animationend"),j1=Xu("animationiteration"),A1=Xu("animationstart"),R1=Xu("transitionend"),O1=new Map,Ug="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 ii(e,t){O1.set(e,t),Yi(t,[e])}for(var nd=0;nd<Ug.length;nd++){var rd=Ug[nd],wC=rd.toLowerCase(),bC=rd[0].toUpperCase()+rd.slice(1);ii(wC,"on"+bC)}ii(P1,"onAnimationEnd");ii(j1,"onAnimationIteration");ii(A1,"onAnimationStart");ii("dblclick","onDoubleClick");ii("focusin","onFocus");ii("focusout","onBlur");ii(R1,"onTransitionEnd");to("onMouseEnter",["mouseout","mouseover"]);to("onMouseLeave",["mouseout","mouseover"]);to("onPointerEnter",["pointerout","pointerover"]);to("onPointerLeave",["pointerout","pointerover"]);Yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $o="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(" "),SC=new Set("cancel close invalid load scroll toggle".split(" ").concat($o));function Hg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,wT(r,t,void 0,e),e.currentTarget=null}function D1(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,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Hg(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Hg(i,a,u),s=l}}}if(au)throw e=ff,au=!1,ff=null,e}function xe(e,t){var n=t[Sf];n===void 0&&(n=t[Sf]=new Set);var r=e+"__bubble";n.has(r)||(F1(t,e,2,!1),n.add(r))}function id(e,t,n){var r=0;t&&(r|=4),F1(n,e,r,t)}var hl="_reactListening"+Math.random().toString(36).slice(2);function ha(e){if(!e[hl]){e[hl]=!0,Vx.forEach(function(n){n!=="selectionchange"&&(SC.has(n)||id(n,!1,e),id(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hl]||(t[hl]=!0,id("selectionchange",!1,t))}}function F1(e,t,n,r){switch(v1(t)){case 1:var i=MT;break;case 4:i=LT;break;default:i=ph}n=i.bind(null,t,n,e),i=void 0,!df||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 sd(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=bi(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}r1(function(){var u=s,d=uh(n),c=[];e:{var f=O1.get(e);if(f!==void 0){var p=mh,h=e;switch(e){case"keypress":if($l(n)===0)break e;case"keydown":case"keyup":p=ZT;break;case"focusin":h="focus",p=Zc;break;case"focusout":h="blur",p=Zc;break;case"beforeblur":case"afterblur":p=Zc;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":p=Og;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=zT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=tC;break;case P1:case j1:case A1:p=UT;break;case R1:p=rC;break;case"scroll":p=IT;break;case"wheel":p=sC;break;case"copy":case"cut":case"paste":p=WT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Fg}var y=(t&4)!==0,w=!y&&e==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var v=u,b;v!==null;){b=v;var T=b.stateNode;if(b.tag===5&&T!==null&&(b=T,m!==null&&(T=la(v,m),T!=null&&y.push(ma(v,T,b)))),w)break;v=v.return}0<y.length&&(f=new p(f,h,null,n,d),c.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==uf&&(h=n.relatedTarget||n.fromElement)&&(bi(h)||h[ur]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=u,h=h?bi(h):null,h!==null&&(w=Xi(h),h!==w||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=u),p!==h)){if(y=Og,T="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Fg,T="onPointerLeave",m="onPointerEnter",v="pointer"),w=p==null?f:bs(p),b=h==null?f:bs(h),f=new y(T,v+"leave",p,n,d),f.target=w,f.relatedTarget=b,T=null,bi(d)===u&&(y=new y(m,v+"enter",h,n,d),y.target=b,y.relatedTarget=w,T=y),w=T,p&&h)t:{for(y=p,m=h,v=0,b=y;b;b=ps(b))v++;for(b=0,T=m;T;T=ps(T))b++;for(;0<v-b;)y=ps(y),v--;for(;0<b-v;)m=ps(m),b--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=ps(y),m=ps(m)}y=null}else y=null;p!==null&&Wg(c,f,p,y,!1),h!==null&&w!==null&&Wg(c,w,h,y,!0)}}e:{if(f=u?bs(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var E=fC;else if(Lg(f))if(k1)E=gC;else{E=hC;var C=pC}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(E=mC);if(E&&(E=E(e,u))){S1(c,E,n,d);break e}C&&C(e,f,u),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&rf(f,"number",f.value)}switch(C=u?bs(u):window,e){case"focusin":(Lg(C)||C.contentEditable==="true")&&(xs=C,gf=u,Go=null);break;case"focusout":Go=gf=xs=null;break;case"mousedown":vf=!0;break;case"contextmenu":case"mouseup":case"dragend":vf=!1,Bg(c,n,d);break;case"selectionchange":if(xC)break;case"keydown":case"keyup":Bg(c,n,d)}var S;if(vh)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else ys?w1(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(x1&&n.locale!=="ko"&&(ys||_!=="onCompositionStart"?_==="onCompositionEnd"&&ys&&(S=y1()):(Lr=d,hh="value"in Lr?Lr.value:Lr.textContent,ys=!0)),C=fu(u,_),0<C.length&&(_=new Dg(_,e,null,n,d),c.push({event:_,listeners:C}),S?_.data=S:(S=b1(n),S!==null&&(_.data=S)))),(S=aC?lC(e,n):uC(e,n))&&(u=fu(u,"onBeforeInput"),0<u.length&&(d=new Dg("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=S))}D1(c,t)})}function ma(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fu(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=la(e,n),s!=null&&r.unshift(ma(e,s,i)),s=la(e,t),s!=null&&r.push(ma(e,s,i))),e=e.return}return r}function ps(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wg(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=la(n,s),l!=null&&o.unshift(ma(n,l,a))):i||(l=la(n,s),l!=null&&o.push(ma(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kC=/\r\n?/g,EC=/\u0000|\uFFFD/g;function qg(e){return(typeof e=="string"?e:""+e).replace(kC,`
|
|
38
|
-
`).replace(EC,"")}function ml(e,t,n){if(t=qg(t),qg(e)!==t&&n)throw Error(F(425))}function pu(){}var yf=null,xf=null;function wf(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 bf=typeof setTimeout=="function"?setTimeout:void 0,TC=typeof clearTimeout=="function"?clearTimeout:void 0,Kg=typeof Promise=="function"?Promise:void 0,CC=typeof queueMicrotask=="function"?queueMicrotask:typeof Kg<"u"?function(e){return Kg.resolve(null).then(e).catch(_C)}:bf;function _C(e){setTimeout(function(){throw e})}function od(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),da(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);da(t)}function Hr(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 Gg(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 go=Math.random().toString(36).slice(2),Mn="__reactFiber$"+go,ga="__reactProps$"+go,ur="__reactContainer$"+go,Sf="__reactEvents$"+go,PC="__reactListeners$"+go,jC="__reactHandles$"+go;function bi(e){var t=e[Mn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ur]||n[Mn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gg(e);e!==null;){if(n=e[Mn])return n;e=Gg(e)}return t}e=n,n=e.parentNode}return null}function Wa(e){return e=e[Mn]||e[ur],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Zu(e){return e[ga]||null}var kf=[],Ss=-1;function si(e){return{current:e}}function be(e){0>Ss||(e.current=kf[Ss],kf[Ss]=null,Ss--)}function ve(e,t){Ss++,kf[Ss]=e.current,e.current=t}var ei={},pt=si(ei),jt=si(!1),zi=ei;function no(e,t){var n=e.type.contextTypes;if(!n)return ei;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 hu(){be(jt),be(pt)}function Qg(e,t,n){if(pt.current!==ei)throw Error(F(168));ve(pt,t),ve(jt,n)}function N1(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(F(108,pT(e)||"Unknown",i));return Pe({},n,r)}function mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ei,zi=pt.current,ve(pt,e),ve(jt,jt.current),!0}function Yg(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=N1(e,t,zi),r.__reactInternalMemoizedMergedChildContext=e,be(jt),be(pt),ve(pt,e)):be(jt),ve(jt,n)}var Jn=null,Ju=!1,ad=!1;function M1(e){Jn===null?Jn=[e]:Jn.push(e)}function AC(e){Ju=!0,M1(e)}function oi(){if(!ad&&Jn!==null){ad=!0;var e=0,t=fe;try{var n=Jn;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Jn=null,Ju=!1}catch(i){throw Jn!==null&&(Jn=Jn.slice(e+1)),a1(ch,oi),i}finally{fe=t,ad=!1}}return null}var ks=[],Es=0,gu=null,vu=0,Jt=[],en=0,Vi=null,nr=1,rr="";function mi(e,t){ks[Es++]=vu,ks[Es++]=gu,gu=e,vu=t}function L1(e,t,n){Jt[en++]=nr,Jt[en++]=rr,Jt[en++]=Vi,Vi=e;var r=nr;e=rr;var i=32-bn(r)-1;r&=~(1<<i),n+=1;var s=32-bn(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,nr=1<<32-bn(t)+i|n<<i|r,rr=s+e}else nr=1<<s|n<<i|r,rr=e}function xh(e){e.return!==null&&(mi(e,1),L1(e,1,0))}function wh(e){for(;e===gu;)gu=ks[--Es],ks[Es]=null,vu=ks[--Es],ks[Es]=null;for(;e===Vi;)Vi=Jt[--en],Jt[en]=null,rr=Jt[--en],Jt[en]=null,nr=Jt[--en],Jt[en]=null}var Vt=null,It=null,Se=!1,xn=null;function I1(e,t){var n=nn(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 Xg(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,Vt=e,It=Hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Vt=e,It=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vi!==null?{id:nr,overflow:rr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Vt=e,It=null,!0):!1;default:return!1}}function Ef(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tf(e){if(Se){var t=It;if(t){var n=t;if(!Xg(e,t)){if(Ef(e))throw Error(F(418));t=Hr(n.nextSibling);var r=Vt;t&&Xg(e,t)?I1(r,n):(e.flags=e.flags&-4097|2,Se=!1,Vt=e)}}else{if(Ef(e))throw Error(F(418));e.flags=e.flags&-4097|2,Se=!1,Vt=e}}}function Zg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Vt=e}function gl(e){if(e!==Vt)return!1;if(!Se)return Zg(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!wf(e.type,e.memoizedProps)),t&&(t=It)){if(Ef(e))throw $1(),Error(F(418));for(;t;)I1(e,t),t=Hr(t.nextSibling)}if(Zg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){It=Hr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}It=null}}else It=Vt?Hr(e.stateNode.nextSibling):null;return!0}function $1(){for(var e=It;e;)e=Hr(e.nextSibling)}function ro(){It=Vt=null,Se=!1}function bh(e){xn===null?xn=[e]:xn.push(e)}var RC=pr.ReactCurrentBatchConfig;function Ao(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(F(309));var r=n.stateNode}if(!r)throw Error(F(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(F(284));if(!n._owner)throw Error(F(290,e))}return e}function vl(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jg(e){var t=e._init;return t(e._payload)}function z1(e){function t(m,v){if(e){var b=m.deletions;b===null?(m.deletions=[v],m.flags|=16):b.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=Gr(m,v),m.index=0,m.sibling=null,m}function s(m,v,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<v?(m.flags|=2,v):b):(m.flags|=2,v)):(m.flags|=1048576,v)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,v,b,T){return v===null||v.tag!==6?(v=hd(b,m.mode,T),v.return=m,v):(v=i(v,b),v.return=m,v)}function l(m,v,b,T){var E=b.type;return E===vs?d(m,v,b.props.children,T,b.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===kr&&Jg(E)===v.type)?(T=i(v,b.props),T.ref=Ao(m,v,b),T.return=m,T):(T=ql(b.type,b.key,b.props,null,m.mode,T),T.ref=Ao(m,v,b),T.return=m,T)}function u(m,v,b,T){return v===null||v.tag!==4||v.stateNode.containerInfo!==b.containerInfo||v.stateNode.implementation!==b.implementation?(v=md(b,m.mode,T),v.return=m,v):(v=i(v,b.children||[]),v.return=m,v)}function d(m,v,b,T,E){return v===null||v.tag!==7?(v=Mi(b,m.mode,T,E),v.return=m,v):(v=i(v,b),v.return=m,v)}function c(m,v,b){if(typeof v=="string"&&v!==""||typeof v=="number")return v=hd(""+v,m.mode,b),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ol:return b=ql(v.type,v.key,v.props,null,m.mode,b),b.ref=Ao(m,null,v),b.return=m,b;case gs:return v=md(v,m.mode,b),v.return=m,v;case kr:var T=v._init;return c(m,T(v._payload),b)}if(Lo(v)||To(v))return v=Mi(v,m.mode,b,null),v.return=m,v;vl(m,v)}return null}function f(m,v,b,T){var E=v!==null?v.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return E!==null?null:a(m,v,""+b,T);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ol:return b.key===E?l(m,v,b,T):null;case gs:return b.key===E?u(m,v,b,T):null;case kr:return E=b._init,f(m,v,E(b._payload),T)}if(Lo(b)||To(b))return E!==null?null:d(m,v,b,T,null);vl(m,b)}return null}function p(m,v,b,T,E){if(typeof T=="string"&&T!==""||typeof T=="number")return m=m.get(b)||null,a(v,m,""+T,E);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case ol:return m=m.get(T.key===null?b:T.key)||null,l(v,m,T,E);case gs:return m=m.get(T.key===null?b:T.key)||null,u(v,m,T,E);case kr:var C=T._init;return p(m,v,b,C(T._payload),E)}if(Lo(T)||To(T))return m=m.get(b)||null,d(v,m,T,E,null);vl(v,T)}return null}function h(m,v,b,T){for(var E=null,C=null,S=v,_=v=0,N=null;S!==null&&_<b.length;_++){S.index>_?(N=S,S=null):N=S.sibling;var R=f(m,S,b[_],T);if(R===null){S===null&&(S=N);break}e&&S&&R.alternate===null&&t(m,S),v=s(R,v,_),C===null?E=R:C.sibling=R,C=R,S=N}if(_===b.length)return n(m,S),Se&&mi(m,_),E;if(S===null){for(;_<b.length;_++)S=c(m,b[_],T),S!==null&&(v=s(S,v,_),C===null?E=S:C.sibling=S,C=S);return Se&&mi(m,_),E}for(S=r(m,S);_<b.length;_++)N=p(S,m,_,b[_],T),N!==null&&(e&&N.alternate!==null&&S.delete(N.key===null?_:N.key),v=s(N,v,_),C===null?E=N:C.sibling=N,C=N);return e&&S.forEach(function(I){return t(m,I)}),Se&&mi(m,_),E}function y(m,v,b,T){var E=To(b);if(typeof E!="function")throw Error(F(150));if(b=E.call(b),b==null)throw Error(F(151));for(var C=E=null,S=v,_=v=0,N=null,R=b.next();S!==null&&!R.done;_++,R=b.next()){S.index>_?(N=S,S=null):N=S.sibling;var I=f(m,S,R.value,T);if(I===null){S===null&&(S=N);break}e&&S&&I.alternate===null&&t(m,S),v=s(I,v,_),C===null?E=I:C.sibling=I,C=I,S=N}if(R.done)return n(m,S),Se&&mi(m,_),E;if(S===null){for(;!R.done;_++,R=b.next())R=c(m,R.value,T),R!==null&&(v=s(R,v,_),C===null?E=R:C.sibling=R,C=R);return Se&&mi(m,_),E}for(S=r(m,S);!R.done;_++,R=b.next())R=p(S,m,_,R.value,T),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?_:R.key),v=s(R,v,_),C===null?E=R:C.sibling=R,C=R);return e&&S.forEach(function(ne){return t(m,ne)}),Se&&mi(m,_),E}function w(m,v,b,T){if(typeof b=="object"&&b!==null&&b.type===vs&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case ol:e:{for(var E=b.key,C=v;C!==null;){if(C.key===E){if(E=b.type,E===vs){if(C.tag===7){n(m,C.sibling),v=i(C,b.props.children),v.return=m,m=v;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===kr&&Jg(E)===C.type){n(m,C.sibling),v=i(C,b.props),v.ref=Ao(m,C,b),v.return=m,m=v;break e}n(m,C);break}else t(m,C);C=C.sibling}b.type===vs?(v=Mi(b.props.children,m.mode,T,b.key),v.return=m,m=v):(T=ql(b.type,b.key,b.props,null,m.mode,T),T.ref=Ao(m,v,b),T.return=m,m=T)}return o(m);case gs:e:{for(C=b.key;v!==null;){if(v.key===C)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(m,v.sibling),v=i(v,b.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=md(b,m.mode,T),v.return=m,m=v}return o(m);case kr:return C=b._init,w(m,v,C(b._payload),T)}if(Lo(b))return h(m,v,b,T);if(To(b))return y(m,v,b,T);vl(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,b),v.return=m,m=v):(n(m,v),v=hd(b,m.mode,T),v.return=m,m=v),o(m)):n(m,v)}return w}var io=z1(!0),V1=z1(!1),yu=si(null),xu=null,Ts=null,Sh=null;function kh(){Sh=Ts=xu=null}function Eh(e){var t=yu.current;be(yu),e._currentValue=t}function Cf(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 Is(e,t){xu=e,Sh=Ts=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pt=!0),e.firstContext=null)}function on(e){var t=e._currentValue;if(Sh!==e)if(e={context:e,memoizedValue:t,next:null},Ts===null){if(xu===null)throw Error(F(308));Ts=e,xu.dependencies={lanes:0,firstContext:e}}else Ts=Ts.next=e;return t}var Si=null;function Th(e){Si===null?Si=[e]:Si.push(e)}function B1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Th(t)):(n.next=i.next,i.next=n),t.interleaved=n,cr(e,r)}function cr(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 Er=!1;function Ch(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function U1(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 sr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,cr(e,n)}return i=r.interleaved,i===null?(t.next=t,Th(r)):(t.next=i.next,i.next=t),r.interleaved=t,cr(e,n)}function zl(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,dh(e,n)}}function ev(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 wu(e,t,n,r){var i=e.updateQueue;Er=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var c=i.baseState;o=0,d=u=l=null,a=s;do{var f=a.lane,p=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,y=a;switch(f=t,p=n,y.tag){case 1:if(h=y.payload,typeof h=="function"){c=h.call(p,c,f);break e}c=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,f=typeof h=="function"?h.call(p,c,f):h,f==null)break e;c=Pe({},c,f);break e;case 2:Er=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=c):d=d.next=p,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=c),i.baseState=l,i.firstBaseUpdate=u,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);Ui|=o,e.lanes=o,e.memoizedState=c}}function tv(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(F(191,i));i.call(r)}}}var qa={},In=si(qa),va=si(qa),ya=si(qa);function ki(e){if(e===qa)throw Error(F(174));return e}function _h(e,t){switch(ve(ya,t),ve(va,e),ve(In,qa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:of(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=of(t,e)}be(In),ve(In,t)}function so(){be(In),be(va),be(ya)}function H1(e){ki(ya.current);var t=ki(In.current),n=of(t,e.type);t!==n&&(ve(va,e),ve(In,n))}function Ph(e){va.current===e&&(be(In),be(va))}var Te=si(0);function bu(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 ld=[];function jh(){for(var e=0;e<ld.length;e++)ld[e]._workInProgressVersionPrimary=null;ld.length=0}var Vl=pr.ReactCurrentDispatcher,ud=pr.ReactCurrentBatchConfig,Bi=0,_e=null,ze=null,Ke=null,Su=!1,Qo=!1,xa=0,OC=0;function ot(){throw Error(F(321))}function Ah(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kn(e[n],t[n]))return!1;return!0}function Rh(e,t,n,r,i,s){if(Bi=s,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Vl.current=e===null||e.memoizedState===null?MC:LC,e=n(r,i),Qo){s=0;do{if(Qo=!1,xa=0,25<=s)throw Error(F(301));s+=1,Ke=ze=null,t.updateQueue=null,Vl.current=IC,e=n(r,i)}while(Qo)}if(Vl.current=ku,t=ze!==null&&ze.next!==null,Bi=0,Ke=ze=_e=null,Su=!1,t)throw Error(F(300));return e}function Oh(){var e=xa!==0;return xa=0,e}function An(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?_e.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function an(){if(ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ke===null?_e.memoizedState:Ke.next;if(t!==null)Ke=t,ze=e;else{if(e===null)throw Error(F(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ke===null?_e.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function wa(e,t){return typeof t=="function"?t(e):t}function cd(e){var t=an(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=ze,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,u=s;do{var d=u.lane;if((Bi&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=c,o=r):l=l.next=c,_e.lanes|=d,Ui|=d}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,kn(r,t.memoizedState)||(Pt=!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,_e.lanes|=s,Ui|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function dd(e){var t=an(),n=t.queue;if(n===null)throw Error(F(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);kn(s,t.memoizedState)||(Pt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function W1(){}function q1(e,t){var n=_e,r=an(),i=t(),s=!kn(r.memoizedState,i);if(s&&(r.memoizedState=i,Pt=!0),r=r.queue,Dh(Q1.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,ba(9,G1.bind(null,n,r,i,t),void 0,null),Ge===null)throw Error(F(349));Bi&30||K1(n,t,i)}return i}function K1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function G1(e,t,n,r){t.value=n,t.getSnapshot=r,Y1(t)&&X1(e)}function Q1(e,t,n){return n(function(){Y1(t)&&X1(e)})}function Y1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kn(e,n)}catch{return!0}}function X1(e){var t=cr(e,1);t!==null&&Sn(t,e,1,-1)}function nv(e){var t=An();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=NC.bind(null,_e,e),[t.memoizedState,e]}function ba(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.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 Z1(){return an().memoizedState}function Bl(e,t,n,r){var i=An();_e.flags|=e,i.memoizedState=ba(1|t,n,void 0,r===void 0?null:r)}function ec(e,t,n,r){var i=an();r=r===void 0?null:r;var s=void 0;if(ze!==null){var o=ze.memoizedState;if(s=o.destroy,r!==null&&Ah(r,o.deps)){i.memoizedState=ba(t,n,s,r);return}}_e.flags|=e,i.memoizedState=ba(1|t,n,s,r)}function rv(e,t){return Bl(8390656,8,e,t)}function Dh(e,t){return ec(2048,8,e,t)}function J1(e,t){return ec(4,2,e,t)}function ew(e,t){return ec(4,4,e,t)}function tw(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 nw(e,t,n){return n=n!=null?n.concat([e]):null,ec(4,4,tw.bind(null,t,e),n)}function Fh(){}function rw(e,t){var n=an();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ah(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iw(e,t){var n=an();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ah(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function sw(e,t,n){return Bi&21?(kn(n,t)||(n=c1(),_e.lanes|=n,Ui|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Pt=!0),e.memoizedState=n)}function DC(e,t){var n=fe;fe=n!==0&&4>n?n:4,e(!0);var r=ud.transition;ud.transition={};try{e(!1),t()}finally{fe=n,ud.transition=r}}function ow(){return an().memoizedState}function FC(e,t,n){var r=Kr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},aw(e))lw(t,n);else if(n=B1(e,t,n,r),n!==null){var i=yt();Sn(n,e,r,i),uw(n,t,r)}}function NC(e,t,n){var r=Kr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(aw(e))lw(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,kn(a,o)){var l=t.interleaved;l===null?(i.next=i,Th(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=B1(e,t,i,r),n!==null&&(i=yt(),Sn(n,e,r,i),uw(n,t,r))}}function aw(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function lw(e,t){Qo=Su=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dh(e,n)}}var ku={readContext:on,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},MC={readContext:on,useCallback:function(e,t){return An().memoizedState=[e,t===void 0?null:t],e},useContext:on,useEffect:rv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bl(4194308,4,tw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bl(4,2,e,t)},useMemo:function(e,t){var n=An();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=An();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=FC.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=An();return e={current:e},t.memoizedState=e},useState:nv,useDebugValue:Fh,useDeferredValue:function(e){return An().memoizedState=e},useTransition:function(){var e=nv(!1),t=e[0];return e=DC.bind(null,e[1]),An().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_e,i=An();if(Se){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ge===null)throw Error(F(349));Bi&30||K1(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,rv(Q1.bind(null,r,s,e),[e]),r.flags|=2048,ba(9,G1.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=An(),t=Ge.identifierPrefix;if(Se){var n=rr,r=nr;n=(r&~(1<<32-bn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=OC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},LC={readContext:on,useCallback:rw,useContext:on,useEffect:Dh,useImperativeHandle:nw,useInsertionEffect:J1,useLayoutEffect:ew,useMemo:iw,useReducer:cd,useRef:Z1,useState:function(){return cd(wa)},useDebugValue:Fh,useDeferredValue:function(e){var t=an();return sw(t,ze.memoizedState,e)},useTransition:function(){var e=cd(wa)[0],t=an().memoizedState;return[e,t]},useMutableSource:W1,useSyncExternalStore:q1,useId:ow,unstable_isNewReconciler:!1},IC={readContext:on,useCallback:rw,useContext:on,useEffect:Dh,useImperativeHandle:nw,useInsertionEffect:J1,useLayoutEffect:ew,useMemo:iw,useReducer:dd,useRef:Z1,useState:function(){return dd(wa)},useDebugValue:Fh,useDeferredValue:function(e){var t=an();return ze===null?t.memoizedState=e:sw(t,ze.memoizedState,e)},useTransition:function(){var e=dd(wa)[0],t=an().memoizedState;return[e,t]},useMutableSource:W1,useSyncExternalStore:q1,useId:ow,unstable_isNewReconciler:!1};function mn(e,t){if(e&&e.defaultProps){t=Pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function _f(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var tc={isMounted:function(e){return(e=e._reactInternals)?Xi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yt(),i=Kr(e),s=sr(r,i);s.payload=t,n!=null&&(s.callback=n),t=Wr(e,s,i),t!==null&&(Sn(t,e,i,r),zl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yt(),i=Kr(e),s=sr(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Wr(e,s,i),t!==null&&(Sn(t,e,i,r),zl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yt(),r=Kr(e),i=sr(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wr(e,i,r),t!==null&&(Sn(t,e,r,n),zl(t,e,r))}};function iv(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?!pa(n,r)||!pa(i,s):!0}function cw(e,t,n){var r=!1,i=ei,s=t.contextType;return typeof s=="object"&&s!==null?s=on(s):(i=At(t)?zi:pt.current,r=t.contextTypes,s=(r=r!=null)?no(e,i):ei),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function sv(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&&tc.enqueueReplaceState(t,t.state,null)}function Pf(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ch(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=on(s):(s=At(t)?zi:pt.current,i.context=no(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(_f(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&&tc.enqueueReplaceState(i,i.state,null),wu(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function oo(e,t){try{var n="",r=t;do n+=fT(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
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{Kc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mo(e):""}function hT(e){switch(e.tag){case 5:return Mo(e.type);case 16:return Mo("Lazy");case 13:return Mo("Suspense");case 19:return Mo("SuspenseList");case 0:case 2:case 15:return e=Gc(e.type,!1),e;case 11:return e=Gc(e.type.render,!1),e;case 1:return e=Gc(e.type,!0),e;default:return""}}function tf(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 vs:return"Fragment";case gs:return"Portal";case Zd:return"Profiler";case ah:return"StrictMode";case Jd:return"Suspense";case ef:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qx:return(e.displayName||"Context")+".Consumer";case Wx:return(e._context.displayName||"Context")+".Provider";case lh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uh:return t=e.displayName||null,t!==null?t:tf(e.type)||"Memo";case kr:t=e._payload,e=e._init;try{return tf(e(t))}catch{}}return null}function mT(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 tf(t);case 8:return t===ah?"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 ei(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gT(e){var t=Gx(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 al(e){e._valueTracker||(e._valueTracker=gT(e))}function Qx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Gx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function su(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 nf(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Sg(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ei(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 Yx(e,t){t=t.checked,t!=null&&oh(e,"checked",t,!1)}function rf(e,t){Yx(e,t);var n=ei(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")?sf(e,t.type,n):t.hasOwnProperty("defaultValue")&&sf(e,t.type,ei(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kg(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 sf(e,t,n){(t!=="number"||su(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Lo=Array.isArray;function Fs(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=""+ei(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 of(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Eg(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(Lo(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ei(n)}}function Xx(e,t){var n=ei(t.value),r=ei(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 Tg(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Zx(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 af(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Zx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ll,Jx=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(ll=ll||document.createElement("div"),ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function aa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ho={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},vT=["Webkit","ms","Moz","O"];Object.keys(Ho).forEach(function(e){vT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ho[t]=Ho[e]})});function e1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ho.hasOwnProperty(e)&&Ho[e]?(""+t).trim():t+"px"}function t1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=e1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var yT=Ae({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 lf(e,t){if(t){if(yT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function uf(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 cf=null;function ch(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var df=null,Ns=null,Ms=null;function Cg(e){if(e=Wa(e)){if(typeof df!="function")throw Error(N(280));var t=e.stateNode;t&&(t=Zu(t),df(e.stateNode,e.type,t))}}function n1(e){Ns?Ms?Ms.push(e):Ms=[e]:Ns=e}function r1(){if(Ns){var e=Ns,t=Ms;if(Ms=Ns=null,Cg(e),t)for(e=0;e<t.length;e++)Cg(t[e])}}function i1(e,t){return e(t)}function s1(){}var Qc=!1;function o1(e,t,n){if(Qc)return e(t,n);Qc=!0;try{return i1(e,t,n)}finally{Qc=!1,(Ns!==null||Ms!==null)&&(s1(),r1())}}function la(e,t){var n=e.stateNode;if(n===null)return null;var r=Zu(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(N(231,t,typeof n));return n}var ff=!1;if(lr)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){ff=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{ff=!1}function xT(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Wo=!1,ou=null,au=!1,pf=null,wT={onError:function(e){Wo=!0,ou=e}};function bT(e,t,n,r,i,s,o,a,l){Wo=!1,ou=null,xT.apply(wT,arguments)}function ST(e,t,n,r,i,s,o,a,l){if(bT.apply(this,arguments),Wo){if(Wo){var u=ou;Wo=!1,ou=null}else throw Error(N(198));au||(au=!0,pf=u)}}function Xi(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 a1(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 _g(e){if(Xi(e)!==e)throw Error(N(188))}function kT(e){var t=e.alternate;if(!t){if(t=Xi(e),t===null)throw Error(N(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 _g(i),e;if(s===r)return _g(i),t;s=s.sibling}throw Error(N(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(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function l1(e){return e=kT(e),e!==null?u1(e):null}function u1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=u1(e);if(t!==null)return t;e=e.sibling}return null}var c1=Vt.unstable_scheduleCallback,Pg=Vt.unstable_cancelCallback,ET=Vt.unstable_shouldYield,TT=Vt.unstable_requestPaint,Me=Vt.unstable_now,CT=Vt.unstable_getCurrentPriorityLevel,dh=Vt.unstable_ImmediatePriority,d1=Vt.unstable_UserBlockingPriority,lu=Vt.unstable_NormalPriority,_T=Vt.unstable_LowPriority,f1=Vt.unstable_IdlePriority,Gu=null,In=null;function PT(e){if(In&&typeof In.onCommitFiberRoot=="function")try{In.onCommitFiberRoot(Gu,e,void 0,(e.current.flags&128)===128)}catch{}}var Sn=Math.clz32?Math.clz32:RT,jT=Math.log,AT=Math.LN2;function RT(e){return e>>>=0,e===0?32:31-(jT(e)/AT|0)|0}var ul=64,cl=4194304;function Io(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 uu(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=Io(a):(s&=o,s!==0&&(r=Io(s)))}else o=n&~i,o!==0?r=Io(o):s!==0&&(r=Io(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-Sn(t),i=1<<n,r|=e[n],t&=~i;return r}function OT(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 DT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Sn(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=OT(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function hf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function p1(){var e=ul;return ul<<=1,!(ul&4194240)&&(ul=64),e}function Yc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ua(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Sn(t),e[t]=n}function FT(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-Sn(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function fh(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var fe=0;function h1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var m1,ph,g1,v1,y1,mf=!1,dl=[],Br=null,Vr=null,Ur=null,ua=new Map,ca=new Map,Cr=[],NT="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 jg(e,t){switch(e){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":Vr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":ua.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ca.delete(t.pointerId)}}function _o(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=Wa(t),t!==null&&ph(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function MT(e,t,n,r,i){switch(t){case"focusin":return Br=_o(Br,e,t,n,r,i),!0;case"dragenter":return Vr=_o(Vr,e,t,n,r,i),!0;case"mouseover":return Ur=_o(Ur,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ua.set(s,_o(ua.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,ca.set(s,_o(ca.get(s)||null,e,t,n,r,i)),!0}return!1}function x1(e){var t=Si(e.target);if(t!==null){var n=Xi(t);if(n!==null){if(t=n.tag,t===13){if(t=a1(n),t!==null){e.blockedOn=t,y1(e.priority,function(){g1(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 Ll(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cf=r,n.target.dispatchEvent(r),cf=null}else return t=Wa(n),t!==null&&ph(t),e.blockedOn=n,!1;t.shift()}return!0}function Ag(e,t,n){Ll(e)&&n.delete(t)}function LT(){mf=!1,Br!==null&&Ll(Br)&&(Br=null),Vr!==null&&Ll(Vr)&&(Vr=null),Ur!==null&&Ll(Ur)&&(Ur=null),ua.forEach(Ag),ca.forEach(Ag)}function Po(e,t){e.blockedOn===t&&(e.blockedOn=null,mf||(mf=!0,Vt.unstable_scheduleCallback(Vt.unstable_NormalPriority,LT)))}function da(e){function t(i){return Po(i,e)}if(0<dl.length){Po(dl[0],e);for(var n=1;n<dl.length;n++){var r=dl[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Br!==null&&Po(Br,e),Vr!==null&&Po(Vr,e),Ur!==null&&Po(Ur,e),ua.forEach(t),ca.forEach(t),n=0;n<Cr.length;n++)r=Cr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Cr.length&&(n=Cr[0],n.blockedOn===null);)x1(n),n.blockedOn===null&&Cr.shift()}var Ls=pr.ReactCurrentBatchConfig,cu=!0;function IT(e,t,n,r){var i=fe,s=Ls.transition;Ls.transition=null;try{fe=1,hh(e,t,n,r)}finally{fe=i,Ls.transition=s}}function $T(e,t,n,r){var i=fe,s=Ls.transition;Ls.transition=null;try{fe=4,hh(e,t,n,r)}finally{fe=i,Ls.transition=s}}function hh(e,t,n,r){if(cu){var i=gf(e,t,n,r);if(i===null)od(e,t,r,du,n),jg(e,r);else if(MT(i,e,t,n,r))r.stopPropagation();else if(jg(e,r),t&4&&-1<NT.indexOf(e)){for(;i!==null;){var s=Wa(i);if(s!==null&&m1(s),s=gf(e,t,n,r),s===null&&od(e,t,r,du,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else od(e,t,r,null,n)}}var du=null;function gf(e,t,n,r){if(du=null,e=ch(r),e=Si(e),e!==null)if(t=Xi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=a1(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 du=e,null}function w1(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(CT()){case dh:return 1;case d1:return 4;case lu:case _T:return 16;case f1:return 536870912;default:return 16}default:return 16}}var Lr=null,mh=null,Il=null;function b1(){if(Il)return Il;var e,t=mh,n=t.length,r,i="value"in Lr?Lr.value:Lr.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 Il=i.slice(e,1<r?1-r:void 0)}function $l(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 fl(){return!0}function Rg(){return!1}function Ht(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)?fl:Rg,this.isPropagationStopped=Rg,this}return Ae(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=fl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=fl)},persist:function(){},isPersistent:fl}),t}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gh=Ht(mo),Ha=Ae({},mo,{view:0,detail:0}),zT=Ht(Ha),Xc,Zc,jo,Qu=Ae({},Ha,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vh,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!==jo&&(jo&&e.type==="mousemove"?(Xc=e.screenX-jo.screenX,Zc=e.screenY-jo.screenY):Zc=Xc=0,jo=e),Xc)},movementY:function(e){return"movementY"in e?e.movementY:Zc}}),Og=Ht(Qu),BT=Ae({},Qu,{dataTransfer:0}),VT=Ht(BT),UT=Ae({},Ha,{relatedTarget:0}),Jc=Ht(UT),HT=Ae({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),WT=Ht(HT),qT=Ae({},mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),KT=Ht(qT),GT=Ae({},mo,{data:0}),Dg=Ht(GT),QT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},YT={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"},XT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=XT[e])?!!t[e]:!1}function vh(){return ZT}var JT=Ae({},Ha,{key:function(e){if(e.key){var t=QT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$l(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?YT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vh,charCode:function(e){return e.type==="keypress"?$l(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$l(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eC=Ht(JT),tC=Ae({},Qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fg=Ht(tC),nC=Ae({},Ha,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vh}),rC=Ht(nC),iC=Ae({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),sC=Ht(iC),oC=Ae({},Qu,{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}),aC=Ht(oC),lC=[9,13,27,32],yh=lr&&"CompositionEvent"in window,qo=null;lr&&"documentMode"in document&&(qo=document.documentMode);var uC=lr&&"TextEvent"in window&&!qo,S1=lr&&(!yh||qo&&8<qo&&11>=qo),Ng=" ",Mg=!1;function k1(e,t){switch(e){case"keyup":return lC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ys=!1;function cC(e,t){switch(e){case"compositionend":return E1(t);case"keypress":return t.which!==32?null:(Mg=!0,Ng);case"textInput":return e=t.data,e===Ng&&Mg?null:e;default:return null}}function dC(e,t){if(ys)return e==="compositionend"||!yh&&k1(e,t)?(e=b1(),Il=mh=Lr=null,ys=!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 S1&&t.locale!=="ko"?null:t.data;default:return null}}var fC={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 Lg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fC[e.type]:t==="textarea"}function T1(e,t,n,r){n1(r),t=fu(t,"onChange"),0<t.length&&(n=new gh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ko=null,fa=null;function pC(e){M1(e,0)}function Yu(e){var t=bs(e);if(Qx(t))return e}function hC(e,t){if(e==="change")return t}var C1=!1;if(lr){var ed;if(lr){var td="oninput"in document;if(!td){var Ig=document.createElement("div");Ig.setAttribute("oninput","return;"),td=typeof Ig.oninput=="function"}ed=td}else ed=!1;C1=ed&&(!document.documentMode||9<document.documentMode)}function $g(){Ko&&(Ko.detachEvent("onpropertychange",_1),fa=Ko=null)}function _1(e){if(e.propertyName==="value"&&Yu(fa)){var t=[];T1(t,fa,e,ch(e)),o1(pC,t)}}function mC(e,t,n){e==="focusin"?($g(),Ko=t,fa=n,Ko.attachEvent("onpropertychange",_1)):e==="focusout"&&$g()}function gC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yu(fa)}function vC(e,t){if(e==="click")return Yu(t)}function yC(e,t){if(e==="input"||e==="change")return Yu(t)}function xC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var En=typeof Object.is=="function"?Object.is:xC;function pa(e,t){if(En(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(!Xd.call(t,i)||!En(e[i],t[i]))return!1}return!0}function zg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bg(e,t){var n=zg(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=zg(n)}}function P1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?P1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function j1(){for(var e=window,t=su();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=su(e.document)}return t}function xh(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 wC(e){var t=j1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&P1(n.ownerDocument.documentElement,n)){if(r!==null&&xh(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=Bg(n,s);var o=Bg(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 bC=lr&&"documentMode"in document&&11>=document.documentMode,xs=null,vf=null,Go=null,yf=!1;function Vg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yf||xs==null||xs!==su(r)||(r=xs,"selectionStart"in r&&xh(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}),Go&&pa(Go,r)||(Go=r,r=fu(vf,"onSelect"),0<r.length&&(t=new gh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xs)))}function pl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ws={animationend:pl("Animation","AnimationEnd"),animationiteration:pl("Animation","AnimationIteration"),animationstart:pl("Animation","AnimationStart"),transitionend:pl("Transition","TransitionEnd")},nd={},A1={};lr&&(A1=document.createElement("div").style,"AnimationEvent"in window||(delete ws.animationend.animation,delete ws.animationiteration.animation,delete ws.animationstart.animation),"TransitionEvent"in window||delete ws.transitionend.transition);function Xu(e){if(nd[e])return nd[e];if(!ws[e])return e;var t=ws[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in A1)return nd[e]=t[n];return e}var R1=Xu("animationend"),O1=Xu("animationiteration"),D1=Xu("animationstart"),F1=Xu("transitionend"),N1=new Map,Ug="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 si(e,t){N1.set(e,t),Yi(t,[e])}for(var rd=0;rd<Ug.length;rd++){var id=Ug[rd],SC=id.toLowerCase(),kC=id[0].toUpperCase()+id.slice(1);si(SC,"on"+kC)}si(R1,"onAnimationEnd");si(O1,"onAnimationIteration");si(D1,"onAnimationStart");si("dblclick","onDoubleClick");si("focusin","onFocus");si("focusout","onBlur");si(F1,"onTransitionEnd");to("onMouseEnter",["mouseout","mouseover"]);to("onMouseLeave",["mouseout","mouseover"]);to("onPointerEnter",["pointerout","pointerover"]);to("onPointerLeave",["pointerout","pointerover"]);Yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $o="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(" "),EC=new Set("cancel close invalid load scroll toggle".split(" ").concat($o));function Hg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ST(r,t,void 0,e),e.currentTarget=null}function M1(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,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Hg(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Hg(i,a,u),s=l}}}if(au)throw e=pf,au=!1,pf=null,e}function be(e,t){var n=t[kf];n===void 0&&(n=t[kf]=new Set);var r=e+"__bubble";n.has(r)||(L1(t,e,2,!1),n.add(r))}function sd(e,t,n){var r=0;t&&(r|=4),L1(n,e,r,t)}var hl="_reactListening"+Math.random().toString(36).slice(2);function ha(e){if(!e[hl]){e[hl]=!0,Hx.forEach(function(n){n!=="selectionchange"&&(EC.has(n)||sd(n,!1,e),sd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hl]||(t[hl]=!0,sd("selectionchange",!1,t))}}function L1(e,t,n,r){switch(w1(t)){case 1:var i=IT;break;case 4:i=$T;break;default:i=hh}n=i.bind(null,t,n,e),i=void 0,!ff||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 od(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=Si(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}o1(function(){var u=s,d=ch(n),c=[];e:{var f=N1.get(e);if(f!==void 0){var p=gh,h=e;switch(e){case"keypress":if($l(n)===0)break e;case"keydown":case"keyup":p=eC;break;case"focusin":h="focus",p=Jc;break;case"focusout":h="blur",p=Jc;break;case"beforeblur":case"afterblur":p=Jc;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":p=Og;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=VT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=rC;break;case R1:case O1:case D1:p=WT;break;case F1:p=sC;break;case"scroll":p=zT;break;case"wheel":p=aC;break;case"copy":case"cut":case"paste":p=KT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Fg}var y=(t&4)!==0,b=!y&&e==="scroll",g=y?f!==null?f+"Capture":null:f;y=[];for(var x=u,w;x!==null;){w=x;var C=w.stateNode;if(w.tag===5&&C!==null&&(w=C,g!==null&&(C=la(x,g),C!=null&&y.push(ma(x,C,w)))),b)break;x=x.return}0<y.length&&(f=new p(f,h,null,n,d),c.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==cf&&(h=n.relatedTarget||n.fromElement)&&(Si(h)||h[ur]))break e;if((p||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=u,h=h?Si(h):null,h!==null&&(b=Xi(h),h!==b||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=u),p!==h)){if(y=Og,C="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=Fg,C="onPointerLeave",g="onPointerEnter",x="pointer"),b=p==null?f:bs(p),w=h==null?f:bs(h),f=new y(C,x+"leave",p,n,d),f.target=b,f.relatedTarget=w,C=null,Si(d)===u&&(y=new y(g,x+"enter",h,n,d),y.target=w,y.relatedTarget=b,C=y),b=C,p&&h)t:{for(y=p,g=h,x=0,w=y;w;w=ps(w))x++;for(w=0,C=g;C;C=ps(C))w++;for(;0<x-w;)y=ps(y),x--;for(;0<w-x;)g=ps(g),w--;for(;x--;){if(y===g||g!==null&&y===g.alternate)break t;y=ps(y),g=ps(g)}y=null}else y=null;p!==null&&Wg(c,f,p,y,!1),h!==null&&b!==null&&Wg(c,b,h,y,!0)}}e:{if(f=u?bs(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var T=hC;else if(Lg(f))if(C1)T=yC;else{T=gC;var E=mC}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=vC);if(T&&(T=T(e,u))){T1(c,T,n,d);break e}E&&E(e,f,u),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&sf(f,"number",f.value)}switch(E=u?bs(u):window,e){case"focusin":(Lg(E)||E.contentEditable==="true")&&(xs=E,vf=u,Go=null);break;case"focusout":Go=vf=xs=null;break;case"mousedown":yf=!0;break;case"contextmenu":case"mouseup":case"dragend":yf=!1,Vg(c,n,d);break;case"selectionchange":if(bC)break;case"keydown":case"keyup":Vg(c,n,d)}var S;if(yh)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else ys?k1(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(S1&&n.locale!=="ko"&&(ys||_!=="onCompositionStart"?_==="onCompositionEnd"&&ys&&(S=b1()):(Lr=d,mh="value"in Lr?Lr.value:Lr.textContent,ys=!0)),E=fu(u,_),0<E.length&&(_=new Dg(_,e,null,n,d),c.push({event:_,listeners:E}),S?_.data=S:(S=E1(n),S!==null&&(_.data=S)))),(S=uC?cC(e,n):dC(e,n))&&(u=fu(u,"onBeforeInput"),0<u.length&&(d=new Dg("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=S))}M1(c,t)})}function ma(e,t,n){return{instance:e,listener:t,currentTarget:n}}function fu(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=la(e,n),s!=null&&r.unshift(ma(e,s,i)),s=la(e,t),s!=null&&r.push(ma(e,s,i))),e=e.return}return r}function ps(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Wg(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=la(n,s),l!=null&&o.unshift(ma(n,l,a))):i||(l=la(n,s),l!=null&&o.push(ma(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var TC=/\r\n?/g,CC=/\u0000|\uFFFD/g;function qg(e){return(typeof e=="string"?e:""+e).replace(TC,`
|
|
38
|
+
`).replace(CC,"")}function ml(e,t,n){if(t=qg(t),qg(e)!==t&&n)throw Error(N(425))}function pu(){}var xf=null,wf=null;function bf(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 Sf=typeof setTimeout=="function"?setTimeout:void 0,_C=typeof clearTimeout=="function"?clearTimeout:void 0,Kg=typeof Promise=="function"?Promise:void 0,PC=typeof queueMicrotask=="function"?queueMicrotask:typeof Kg<"u"?function(e){return Kg.resolve(null).then(e).catch(jC)}:Sf;function jC(e){setTimeout(function(){throw e})}function ad(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),da(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);da(t)}function Hr(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 Gg(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 go=Math.random().toString(36).slice(2),Ln="__reactFiber$"+go,ga="__reactProps$"+go,ur="__reactContainer$"+go,kf="__reactEvents$"+go,AC="__reactListeners$"+go,RC="__reactHandles$"+go;function Si(e){var t=e[Ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ur]||n[Ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gg(e);e!==null;){if(n=e[Ln])return n;e=Gg(e)}return t}e=n,n=e.parentNode}return null}function Wa(e){return e=e[Ln]||e[ur],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function bs(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function Zu(e){return e[ga]||null}var Ef=[],Ss=-1;function oi(e){return{current:e}}function ke(e){0>Ss||(e.current=Ef[Ss],Ef[Ss]=null,Ss--)}function xe(e,t){Ss++,Ef[Ss]=e.current,e.current=t}var ti={},pt=oi(ti),jt=oi(!1),Bi=ti;function no(e,t){var n=e.type.contextTypes;if(!n)return ti;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 hu(){ke(jt),ke(pt)}function Qg(e,t,n){if(pt.current!==ti)throw Error(N(168));xe(pt,t),xe(jt,n)}function I1(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(N(108,mT(e)||"Unknown",i));return Ae({},n,r)}function mu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ti,Bi=pt.current,xe(pt,e),xe(jt,jt.current),!0}function Yg(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=I1(e,t,Bi),r.__reactInternalMemoizedMergedChildContext=e,ke(jt),ke(pt),xe(pt,e)):ke(jt),xe(jt,n)}var er=null,Ju=!1,ld=!1;function $1(e){er===null?er=[e]:er.push(e)}function OC(e){Ju=!0,$1(e)}function ai(){if(!ld&&er!==null){ld=!0;var e=0,t=fe;try{var n=er;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}er=null,Ju=!1}catch(i){throw er!==null&&(er=er.slice(e+1)),c1(dh,ai),i}finally{fe=t,ld=!1}}return null}var ks=[],Es=0,gu=null,vu=0,Jt=[],en=0,Vi=null,rr=1,ir="";function gi(e,t){ks[Es++]=vu,ks[Es++]=gu,gu=e,vu=t}function z1(e,t,n){Jt[en++]=rr,Jt[en++]=ir,Jt[en++]=Vi,Vi=e;var r=rr;e=ir;var i=32-Sn(r)-1;r&=~(1<<i),n+=1;var s=32-Sn(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,rr=1<<32-Sn(t)+i|n<<i|r,ir=s+e}else rr=1<<s|n<<i|r,ir=e}function wh(e){e.return!==null&&(gi(e,1),z1(e,1,0))}function bh(e){for(;e===gu;)gu=ks[--Es],ks[Es]=null,vu=ks[--Es],ks[Es]=null;for(;e===Vi;)Vi=Jt[--en],Jt[en]=null,ir=Jt[--en],Jt[en]=null,rr=Jt[--en],Jt[en]=null}var Bt=null,It=null,Ee=!1,wn=null;function B1(e,t){var n=nn(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 Xg(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,Bt=e,It=Hr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Bt=e,It=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Vi!==null?{id:rr,overflow:ir}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Bt=e,It=null,!0):!1;default:return!1}}function Tf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Cf(e){if(Ee){var t=It;if(t){var n=t;if(!Xg(e,t)){if(Tf(e))throw Error(N(418));t=Hr(n.nextSibling);var r=Bt;t&&Xg(e,t)?B1(r,n):(e.flags=e.flags&-4097|2,Ee=!1,Bt=e)}}else{if(Tf(e))throw Error(N(418));e.flags=e.flags&-4097|2,Ee=!1,Bt=e}}}function Zg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Bt=e}function gl(e){if(e!==Bt)return!1;if(!Ee)return Zg(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bf(e.type,e.memoizedProps)),t&&(t=It)){if(Tf(e))throw V1(),Error(N(418));for(;t;)B1(e,t),t=Hr(t.nextSibling)}if(Zg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){It=Hr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}It=null}}else It=Bt?Hr(e.stateNode.nextSibling):null;return!0}function V1(){for(var e=It;e;)e=Hr(e.nextSibling)}function ro(){It=Bt=null,Ee=!1}function Sh(e){wn===null?wn=[e]:wn.push(e)}var DC=pr.ReactCurrentBatchConfig;function Ao(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(N(309));var r=n.stateNode}if(!r)throw Error(N(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(N(284));if(!n._owner)throw Error(N(290,e))}return e}function vl(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jg(e){var t=e._init;return t(e._payload)}function U1(e){function t(g,x){if(e){var w=g.deletions;w===null?(g.deletions=[x],g.flags|=16):w.push(x)}}function n(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function r(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function i(g,x){return g=Gr(g,x),g.index=0,g.sibling=null,g}function s(g,x,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<x?(g.flags|=2,x):w):(g.flags|=2,x)):(g.flags|=1048576,x)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,x,w,C){return x===null||x.tag!==6?(x=md(w,g.mode,C),x.return=g,x):(x=i(x,w),x.return=g,x)}function l(g,x,w,C){var T=w.type;return T===vs?d(g,x,w.props.children,C,w.key):x!==null&&(x.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===kr&&Jg(T)===x.type)?(C=i(x,w.props),C.ref=Ao(g,x,w),C.return=g,C):(C=ql(w.type,w.key,w.props,null,g.mode,C),C.ref=Ao(g,x,w),C.return=g,C)}function u(g,x,w,C){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=gd(w,g.mode,C),x.return=g,x):(x=i(x,w.children||[]),x.return=g,x)}function d(g,x,w,C,T){return x===null||x.tag!==7?(x=Li(w,g.mode,C,T),x.return=g,x):(x=i(x,w),x.return=g,x)}function c(g,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=md(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ol:return w=ql(x.type,x.key,x.props,null,g.mode,w),w.ref=Ao(g,null,x),w.return=g,w;case gs:return x=gd(x,g.mode,w),x.return=g,x;case kr:var C=x._init;return c(g,C(x._payload),w)}if(Lo(x)||To(x))return x=Li(x,g.mode,w,null),x.return=g,x;vl(g,x)}return null}function f(g,x,w,C){var T=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return T!==null?null:a(g,x,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ol:return w.key===T?l(g,x,w,C):null;case gs:return w.key===T?u(g,x,w,C):null;case kr:return T=w._init,f(g,x,T(w._payload),C)}if(Lo(w)||To(w))return T!==null?null:d(g,x,w,C,null);vl(g,w)}return null}function p(g,x,w,C,T){if(typeof C=="string"&&C!==""||typeof C=="number")return g=g.get(w)||null,a(x,g,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ol:return g=g.get(C.key===null?w:C.key)||null,l(x,g,C,T);case gs:return g=g.get(C.key===null?w:C.key)||null,u(x,g,C,T);case kr:var E=C._init;return p(g,x,w,E(C._payload),T)}if(Lo(C)||To(C))return g=g.get(w)||null,d(x,g,C,T,null);vl(x,C)}return null}function h(g,x,w,C){for(var T=null,E=null,S=x,_=x=0,D=null;S!==null&&_<w.length;_++){S.index>_?(D=S,S=null):D=S.sibling;var R=f(g,S,w[_],C);if(R===null){S===null&&(S=D);break}e&&S&&R.alternate===null&&t(g,S),x=s(R,x,_),E===null?T=R:E.sibling=R,E=R,S=D}if(_===w.length)return n(g,S),Ee&&gi(g,_),T;if(S===null){for(;_<w.length;_++)S=c(g,w[_],C),S!==null&&(x=s(S,x,_),E===null?T=S:E.sibling=S,E=S);return Ee&&gi(g,_),T}for(S=r(g,S);_<w.length;_++)D=p(S,g,_,w[_],C),D!==null&&(e&&D.alternate!==null&&S.delete(D.key===null?_:D.key),x=s(D,x,_),E===null?T=D:E.sibling=D,E=D);return e&&S.forEach(function(I){return t(g,I)}),Ee&&gi(g,_),T}function y(g,x,w,C){var T=To(w);if(typeof T!="function")throw Error(N(150));if(w=T.call(w),w==null)throw Error(N(151));for(var E=T=null,S=x,_=x=0,D=null,R=w.next();S!==null&&!R.done;_++,R=w.next()){S.index>_?(D=S,S=null):D=S.sibling;var I=f(g,S,R.value,C);if(I===null){S===null&&(S=D);break}e&&S&&I.alternate===null&&t(g,S),x=s(I,x,_),E===null?T=I:E.sibling=I,E=I,S=D}if(R.done)return n(g,S),Ee&&gi(g,_),T;if(S===null){for(;!R.done;_++,R=w.next())R=c(g,R.value,C),R!==null&&(x=s(R,x,_),E===null?T=R:E.sibling=R,E=R);return Ee&&gi(g,_),T}for(S=r(g,S);!R.done;_++,R=w.next())R=p(S,g,_,R.value,C),R!==null&&(e&&R.alternate!==null&&S.delete(R.key===null?_:R.key),x=s(R,x,_),E===null?T=R:E.sibling=R,E=R);return e&&S.forEach(function(ne){return t(g,ne)}),Ee&&gi(g,_),T}function b(g,x,w,C){if(typeof w=="object"&&w!==null&&w.type===vs&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ol:e:{for(var T=w.key,E=x;E!==null;){if(E.key===T){if(T=w.type,T===vs){if(E.tag===7){n(g,E.sibling),x=i(E,w.props.children),x.return=g,g=x;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===kr&&Jg(T)===E.type){n(g,E.sibling),x=i(E,w.props),x.ref=Ao(g,E,w),x.return=g,g=x;break e}n(g,E);break}else t(g,E);E=E.sibling}w.type===vs?(x=Li(w.props.children,g.mode,C,w.key),x.return=g,g=x):(C=ql(w.type,w.key,w.props,null,g.mode,C),C.ref=Ao(g,x,w),C.return=g,g=C)}return o(g);case gs:e:{for(E=w.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(g,x.sibling),x=i(x,w.children||[]),x.return=g,g=x;break e}else{n(g,x);break}else t(g,x);x=x.sibling}x=gd(w,g.mode,C),x.return=g,g=x}return o(g);case kr:return E=w._init,b(g,x,E(w._payload),C)}if(Lo(w))return h(g,x,w,C);if(To(w))return y(g,x,w,C);vl(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(g,x.sibling),x=i(x,w),x.return=g,g=x):(n(g,x),x=md(w,g.mode,C),x.return=g,g=x),o(g)):n(g,x)}return b}var io=U1(!0),H1=U1(!1),yu=oi(null),xu=null,Ts=null,kh=null;function Eh(){kh=Ts=xu=null}function Th(e){var t=yu.current;ke(yu),e._currentValue=t}function _f(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 Is(e,t){xu=e,kh=Ts=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Pt=!0),e.firstContext=null)}function an(e){var t=e._currentValue;if(kh!==e)if(e={context:e,memoizedValue:t,next:null},Ts===null){if(xu===null)throw Error(N(308));Ts=e,xu.dependencies={lanes:0,firstContext:e}}else Ts=Ts.next=e;return t}var ki=null;function Ch(e){ki===null?ki=[e]:ki.push(e)}function W1(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Ch(t)):(n.next=i.next,i.next=n),t.interleaved=n,cr(e,r)}function cr(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 Er=!1;function _h(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function q1(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 or(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Wr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,cr(e,n)}return i=r.interleaved,i===null?(t.next=t,Ch(r)):(t.next=i.next,i.next=t),r.interleaved=t,cr(e,n)}function zl(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,fh(e,n)}}function ev(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 wu(e,t,n,r){var i=e.updateQueue;Er=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==o&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=l))}if(s!==null){var c=i.baseState;o=0,d=u=l=null,a=s;do{var f=a.lane,p=a.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,y=a;switch(f=t,p=n,y.tag){case 1:if(h=y.payload,typeof h=="function"){c=h.call(p,c,f);break e}c=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,f=typeof h=="function"?h.call(p,c,f):h,f==null)break e;c=Ae({},c,f);break e;case 2:Er=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[a]:f.push(a))}else p={eventTime:p,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=p,l=c):d=d.next=p,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=c),i.baseState=l,i.firstBaseUpdate=u,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);Hi|=o,e.lanes=o,e.memoizedState=c}}function tv(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(N(191,i));i.call(r)}}}var qa={},$n=oi(qa),va=oi(qa),ya=oi(qa);function Ei(e){if(e===qa)throw Error(N(174));return e}function Ph(e,t){switch(xe(ya,t),xe(va,e),xe($n,qa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:af(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=af(t,e)}ke($n),xe($n,t)}function so(){ke($n),ke(va),ke(ya)}function K1(e){Ei(ya.current);var t=Ei($n.current),n=af(t,e.type);t!==n&&(xe(va,e),xe($n,n))}function jh(e){va.current===e&&(ke($n),ke(va))}var _e=oi(0);function bu(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 ud=[];function Ah(){for(var e=0;e<ud.length;e++)ud[e]._workInProgressVersionPrimary=null;ud.length=0}var Bl=pr.ReactCurrentDispatcher,cd=pr.ReactCurrentBatchConfig,Ui=0,je=null,ze=null,Ke=null,Su=!1,Qo=!1,xa=0,FC=0;function ot(){throw Error(N(321))}function Rh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!En(e[n],t[n]))return!1;return!0}function Oh(e,t,n,r,i,s){if(Ui=s,je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Bl.current=e===null||e.memoizedState===null?IC:$C,e=n(r,i),Qo){s=0;do{if(Qo=!1,xa=0,25<=s)throw Error(N(301));s+=1,Ke=ze=null,t.updateQueue=null,Bl.current=zC,e=n(r,i)}while(Qo)}if(Bl.current=ku,t=ze!==null&&ze.next!==null,Ui=0,Ke=ze=je=null,Su=!1,t)throw Error(N(300));return e}function Dh(){var e=xa!==0;return xa=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?je.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function ln(){if(ze===null){var e=je.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ke===null?je.memoizedState:Ke.next;if(t!==null)Ke=t,ze=e;else{if(e===null)throw Error(N(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ke===null?je.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function wa(e,t){return typeof t=="function"?t(e):t}function dd(e){var t=ln(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=ze,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,u=s;do{var d=u.lane;if((Ui&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=c,o=r):l=l.next=c,je.lanes|=d,Hi|=d}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,En(r,t.memoizedState)||(Pt=!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,je.lanes|=s,Hi|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function fd(e){var t=ln(),n=t.queue;if(n===null)throw Error(N(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);En(s,t.memoizedState)||(Pt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function G1(){}function Q1(e,t){var n=je,r=ln(),i=t(),s=!En(r.memoizedState,i);if(s&&(r.memoizedState=i,Pt=!0),r=r.queue,Fh(Z1.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,ba(9,X1.bind(null,n,r,i,t),void 0,null),Ge===null)throw Error(N(349));Ui&30||Y1(n,t,i)}return i}function Y1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function X1(e,t,n,r){t.value=n,t.getSnapshot=r,J1(t)&&ew(e)}function Z1(e,t,n){return n(function(){J1(t)&&ew(e)})}function J1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!En(e,n)}catch{return!0}}function ew(e){var t=cr(e,1);t!==null&&kn(t,e,1,-1)}function nv(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wa,lastRenderedState:e},t.queue=e,e=e.dispatch=LC.bind(null,je,e),[t.memoizedState,e]}function ba(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=je.updateQueue,t===null?(t={lastEffect:null,stores:null},je.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 tw(){return ln().memoizedState}function Vl(e,t,n,r){var i=Rn();je.flags|=e,i.memoizedState=ba(1|t,n,void 0,r===void 0?null:r)}function ec(e,t,n,r){var i=ln();r=r===void 0?null:r;var s=void 0;if(ze!==null){var o=ze.memoizedState;if(s=o.destroy,r!==null&&Rh(r,o.deps)){i.memoizedState=ba(t,n,s,r);return}}je.flags|=e,i.memoizedState=ba(1|t,n,s,r)}function rv(e,t){return Vl(8390656,8,e,t)}function Fh(e,t){return ec(2048,8,e,t)}function nw(e,t){return ec(4,2,e,t)}function rw(e,t){return ec(4,4,e,t)}function iw(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 sw(e,t,n){return n=n!=null?n.concat([e]):null,ec(4,4,iw.bind(null,t,e),n)}function Nh(){}function ow(e,t){var n=ln();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function aw(e,t){var n=ln();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Rh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lw(e,t,n){return Ui&21?(En(n,t)||(n=p1(),je.lanes|=n,Hi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Pt=!0),e.memoizedState=n)}function NC(e,t){var n=fe;fe=n!==0&&4>n?n:4,e(!0);var r=cd.transition;cd.transition={};try{e(!1),t()}finally{fe=n,cd.transition=r}}function uw(){return ln().memoizedState}function MC(e,t,n){var r=Kr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cw(e))dw(t,n);else if(n=W1(e,t,n,r),n!==null){var i=yt();kn(n,e,r,i),fw(n,t,r)}}function LC(e,t,n){var r=Kr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cw(e))dw(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,En(a,o)){var l=t.interleaved;l===null?(i.next=i,Ch(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=W1(e,t,i,r),n!==null&&(i=yt(),kn(n,e,r,i),fw(n,t,r))}}function cw(e){var t=e.alternate;return e===je||t!==null&&t===je}function dw(e,t){Qo=Su=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fw(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,fh(e,n)}}var ku={readContext:an,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},IC={readContext:an,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:an,useEffect:rv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Vl(4194308,4,iw.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vl(4,2,e,t)},useMemo:function(e,t){var n=Rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rn();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=MC.bind(null,je,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:nv,useDebugValue:Nh,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=nv(!1),t=e[0];return e=NC.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=je,i=Rn();if(Ee){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ge===null)throw Error(N(349));Ui&30||Y1(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,rv(Z1.bind(null,r,s,e),[e]),r.flags|=2048,ba(9,X1.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Rn(),t=Ge.identifierPrefix;if(Ee){var n=ir,r=rr;n=(r&~(1<<32-Sn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=xa++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=FC++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$C={readContext:an,useCallback:ow,useContext:an,useEffect:Fh,useImperativeHandle:sw,useInsertionEffect:nw,useLayoutEffect:rw,useMemo:aw,useReducer:dd,useRef:tw,useState:function(){return dd(wa)},useDebugValue:Nh,useDeferredValue:function(e){var t=ln();return lw(t,ze.memoizedState,e)},useTransition:function(){var e=dd(wa)[0],t=ln().memoizedState;return[e,t]},useMutableSource:G1,useSyncExternalStore:Q1,useId:uw,unstable_isNewReconciler:!1},zC={readContext:an,useCallback:ow,useContext:an,useEffect:Fh,useImperativeHandle:sw,useInsertionEffect:nw,useLayoutEffect:rw,useMemo:aw,useReducer:fd,useRef:tw,useState:function(){return fd(wa)},useDebugValue:Nh,useDeferredValue:function(e){var t=ln();return ze===null?t.memoizedState=e:lw(t,ze.memoizedState,e)},useTransition:function(){var e=fd(wa)[0],t=ln().memoizedState;return[e,t]},useMutableSource:G1,useSyncExternalStore:Q1,useId:uw,unstable_isNewReconciler:!1};function gn(e,t){if(e&&e.defaultProps){t=Ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Pf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var tc={isMounted:function(e){return(e=e._reactInternals)?Xi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=yt(),i=Kr(e),s=or(r,i);s.payload=t,n!=null&&(s.callback=n),t=Wr(e,s,i),t!==null&&(kn(t,e,i,r),zl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=yt(),i=Kr(e),s=or(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Wr(e,s,i),t!==null&&(kn(t,e,i,r),zl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=yt(),r=Kr(e),i=or(n,r);i.tag=2,t!=null&&(i.callback=t),t=Wr(e,i,r),t!==null&&(kn(t,e,r,n),zl(t,e,r))}};function iv(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?!pa(n,r)||!pa(i,s):!0}function pw(e,t,n){var r=!1,i=ti,s=t.contextType;return typeof s=="object"&&s!==null?s=an(s):(i=At(t)?Bi:pt.current,r=t.contextTypes,s=(r=r!=null)?no(e,i):ti),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tc,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function sv(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&&tc.enqueueReplaceState(t,t.state,null)}function jf(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},_h(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=an(s):(s=At(t)?Bi:pt.current,i.context=no(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Pf(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&&tc.enqueueReplaceState(i,i.state,null),wu(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function oo(e,t){try{var n="",r=t;do n+=hT(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 fd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function jf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $C=typeof WeakMap=="function"?WeakMap:Map;function dw(e,t,n){n=sr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tu||(Tu=!0,$f=r),jf(e,t)},n}function fw(e,t,n){n=sr(-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(){jf(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){jf(e,t),typeof r!="function"&&(qr===null?qr=new Set([this]):qr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ov(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $C;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=JC.bind(null,e,t,n),t.then(e,e))}function av(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 lv(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=sr(-1,1),t.tag=2,Wr(n,t,1))),n.lanes|=1),e)}var zC=pr.ReactCurrentOwner,Pt=!1;function gt(e,t,n,r){t.child=e===null?V1(t,null,n,r):io(t,e.child,n,r)}function uv(e,t,n,r,i){n=n.render;var s=t.ref;return Is(t,i),r=Rh(e,t,n,r,s,i),n=Oh(),e!==null&&!Pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dr(e,t,i)):(Se&&n&&xh(t),t.flags|=1,gt(e,t,r,i),t.child)}function cv(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Bh(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,pw(e,t,s,r,i)):(e=ql(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:pa,n(o,r)&&e.ref===t.ref)return dr(e,t,i)}return t.flags|=1,e=Gr(s,r),e.ref=t.ref,e.return=t,t.child=e}function pw(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(pa(s,r)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Pt=!0);else return t.lanes=e.lanes,dr(e,t,i)}return Af(e,t,n,r,i)}function hw(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},ve(_s,Lt),Lt|=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,ve(_s,Lt),Lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ve(_s,Lt),Lt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ve(_s,Lt),Lt|=r;return gt(e,t,i,n),t.child}function mw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Af(e,t,n,r,i){var s=At(n)?zi:pt.current;return s=no(t,s),Is(t,i),n=Rh(e,t,n,r,s,i),r=Oh(),e!==null&&!Pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dr(e,t,i)):(Se&&r&&xh(t),t.flags|=1,gt(e,t,n,i),t.child)}function dv(e,t,n,r,i){if(At(n)){var s=!0;mu(t)}else s=!1;if(Is(t,i),t.stateNode===null)Ul(e,t),cw(t,n,r),Pf(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=on(u):(u=At(n)?zi:pt.current,u=no(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&sv(t,o,r,u),Er=!1;var f=t.memoizedState;o.state=f,wu(t,r,o,i),l=t.memoizedState,a!==r||f!==l||jt.current||Er?(typeof d=="function"&&(_f(t,n,d,r),l=t.memoizedState),(a=Er||iv(t,n,a,r,f,l,u))?(c||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=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,U1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:mn(t.type,a),o.props=u,c=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=on(l):(l=At(n)?zi:pt.current,l=no(t,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==c||f!==l)&&sv(t,o,r,l),Er=!1,f=t.memoizedState,o.state=f,wu(t,r,o,i);var h=t.memoizedState;a!==c||f!==h||jt.current||Er?(typeof p=="function"&&(_f(t,n,p,r),h=t.memoizedState),(u=Er||iv(t,n,u,r,f,h,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,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=h),o.props=r,o.state=h,o.context=l,r=u):(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 Rf(e,t,n,r,s,i)}function Rf(e,t,n,r,i,s){mw(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Yg(t,n,!1),dr(e,t,s);r=t.stateNode,zC.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=io(t,e.child,null,s),t.child=io(t,null,a,s)):gt(e,t,a,s),t.memoizedState=r.state,i&&Yg(t,n,!0),t.child}function gw(e){var t=e.stateNode;t.pendingContext?Qg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qg(e,t.context,!1),_h(e,t.containerInfo)}function fv(e,t,n,r,i){return ro(),bh(i),t.flags|=256,gt(e,t,n,r),t.child}var Of={dehydrated:null,treeContext:null,retryLane:0};function Df(e){return{baseLanes:e,cachePool:null,transitions:null}}function vw(e,t,n){var r=t.pendingProps,i=Te.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),ve(Te,i&1),e===null)return Tf(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=ic(o,r,0,null),e=Mi(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Df(n),t.memoizedState=Of,e):Nh(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return VC(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=Gr(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Gr(a,s):(s=Mi(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?Df(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Of,r}return s=e.child,e=s.sibling,r=Gr(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 Nh(e,t){return t=ic({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yl(e,t,n,r){return r!==null&&bh(r),io(t,e.child,null,n),e=Nh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VC(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=fd(Error(F(422))),yl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ic({mode:"visible",children:r.children},i,0,null),s=Mi(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&io(t,e.child,null,o),t.child.memoizedState=Df(o),t.memoizedState=Of,s);if(!(t.mode&1))return yl(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(F(419)),r=fd(s,r,void 0),yl(e,t,o,r)}if(a=(o&e.childLanes)!==0,Pt||a){if(r=Ge,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,cr(e,i),Sn(r,e,i,-1))}return Vh(),r=fd(Error(F(421))),yl(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=e2.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,It=Hr(i.nextSibling),Vt=t,Se=!0,xn=null,e!==null&&(Jt[en++]=nr,Jt[en++]=rr,Jt[en++]=Vi,nr=e.id,rr=e.overflow,Vi=t),t=Nh(t,r.children),t.flags|=4096,t)}function pv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Cf(e.return,t,n)}function pd(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 yw(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(gt(e,t,r.children,n),r=Te.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&&pv(e,n,t);else if(e.tag===19)pv(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(ve(Te,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&&bu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),pd(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&&bu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}pd(t,!0,n,null,s);break;case"together":pd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ul(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ui|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function BC(e,t,n){switch(t.tag){case 3:gw(t),ro();break;case 5:H1(t);break;case 1:At(t.type)&&mu(t);break;case 4:_h(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ve(yu,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ve(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?vw(e,t,n):(ve(Te,Te.current&1),e=dr(e,t,n),e!==null?e.sibling:null);ve(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return yw(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ve(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,hw(e,t,n)}return dr(e,t,n)}var xw,Ff,ww,bw;xw=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}};Ff=function(){};ww=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ki(In.current);var s=null;switch(n){case"input":i=tf(e,i),r=tf(e,r),s=[];break;case"select":i=Pe({},i,{value:void 0}),r=Pe({},r,{value:void 0}),s=[];break;case"textarea":i=sf(e,i),r=sf(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pu)}af(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(oa.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(oa.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&xe("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};bw=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ro(e,t){if(!Se)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 at(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 UC(e,t,n){var r=t.pendingProps;switch(wh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return At(t.type)&&hu(),at(t),null;case 3:return r=t.stateNode,so(),be(jt),be(pt),jh(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xn!==null&&(Bf(xn),xn=null))),Ff(e,t),at(t),null;case 5:Ph(t);var i=ki(ya.current);if(n=t.type,e!==null&&t.stateNode!=null)ww(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return at(t),null}if(e=ki(In.current),gl(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Mn]=t,r[ga]=s,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(i=0;i<$o.length;i++)xe($o[i],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":Sg(r,s),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},xe("invalid",r);break;case"textarea":Eg(r,s),xe("invalid",r)}af(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&&ml(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ml(r.textContent,a,e),i=["children",""+a]):oa.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&xe("scroll",r)}switch(n){case"input":al(r),kg(r,s,!0);break;case"textarea":al(r),Tg(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=pu)}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=Qx(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[Mn]=t,e[ga]=r,xw(e,t,!1,!1),t.stateNode=e;e:{switch(o=lf(n,r),n){case"dialog":xe("cancel",e),xe("close",e),i=r;break;case"iframe":case"object":case"embed":xe("load",e),i=r;break;case"video":case"audio":for(i=0;i<$o.length;i++)xe($o[i],e);i=r;break;case"source":xe("error",e),i=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),i=r;break;case"details":xe("toggle",e),i=r;break;case"input":Sg(e,r),i=tf(e,r),xe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Pe({},r,{value:void 0}),xe("invalid",e);break;case"textarea":Eg(e,r),i=sf(e,r),xe("invalid",e);break;default:i=r}af(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?Zx(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Yx(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&aa(e,l):typeof l=="number"&&aa(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(oa.hasOwnProperty(s)?l!=null&&s==="onScroll"&&xe("scroll",e):l!=null&&sh(e,s,l,o))}switch(n){case"input":al(e),kg(e,r,!1);break;case"textarea":al(e),Tg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Jr(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Fs(e,!!r.multiple,s,!1):r.defaultValue!=null&&Fs(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=pu)}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 at(t),null;case 6:if(e&&t.stateNode!=null)bw(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=ki(ya.current),ki(In.current),gl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Mn]=t,(s=r.nodeValue!==n)&&(e=Vt,e!==null))switch(e.tag){case 3:ml(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ml(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Mn]=t,t.stateNode=r}return at(t),null;case 13:if(be(Te),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&It!==null&&t.mode&1&&!(t.flags&128))$1(),ro(),t.flags|=98560,s=!1;else if(s=gl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(F(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(F(317));s[Mn]=t}else ro(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;at(t),s=!1}else xn!==null&&(Bf(xn),xn=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||Te.current&1?Be===0&&(Be=3):Vh())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return so(),Ff(e,t),e===null&&ha(t.stateNode.containerInfo),at(t),null;case 10:return Eh(t.type._context),at(t),null;case 17:return At(t.type)&&hu(),at(t),null;case 19:if(be(Te),s=t.memoizedState,s===null)return at(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Ro(s,!1);else{if(Be!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bu(e),o!==null){for(t.flags|=128,Ro(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 ve(Te,Te.current&1|2),t.child}e=e.sibling}s.tail!==null&&Ne()>ao&&(t.flags|=128,r=!0,Ro(s,!1),t.lanes=4194304)}else{if(!r)if(e=bu(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ro(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Se)return at(t),null}else 2*Ne()-s.renderingStartTime>ao&&n!==1073741824&&(t.flags|=128,r=!0,Ro(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=Ne(),t.sibling=null,n=Te.current,ve(Te,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return zh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Lt&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function HC(e,t){switch(wh(t),t.tag){case 1:return At(t.type)&&hu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return so(),be(jt),be(pt),jh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ph(t),null;case 13:if(be(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return be(Te),null;case 4:return so(),null;case 10:return Eh(t.type._context),null;case 22:case 23:return zh(),null;case 24:return null;default:return null}}var xl=!1,dt=!1,WC=typeof WeakSet=="function"?WeakSet:Set,z=null;function Cs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function Nf(e,t,n){try{n()}catch(r){Re(e,t,r)}}var hv=!1;function qC(e,t){if(yf=cu,e=C1(),yh(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,u=0,d=0,c=e,f=null;t:for(;;){for(var p;c!==n||i!==0&&c.nodeType!==3||(a=o+i),c!==s||r!==0&&c.nodeType!==3||(l=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)f=c,c=p;for(;;){if(c===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++d===r&&(l=o),(p=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(xf={focusedElem:e,selectionRange:n},cu=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var y=h.memoizedProps,w=h.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:mn(t.type,y),w);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(T){Re(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return h=hv,hv=!1,h}function Yo(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&&Nf(t,n,s)}i=i.next}while(i!==r)}}function nc(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 Mf(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 Sw(e){var t=e.alternate;t!==null&&(e.alternate=null,Sw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mn],delete t[ga],delete t[Sf],delete t[PC],delete t[jC])),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 kw(e){return e.tag===5||e.tag===3||e.tag===4}function mv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kw(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 Lf(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=pu));else if(r!==4&&(e=e.child,e!==null))for(Lf(e,t,n),e=e.sibling;e!==null;)Lf(e,t,n),e=e.sibling}function If(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(If(e,t,n),e=e.sibling;e!==null;)If(e,t,n),e=e.sibling}var et=null,vn=!1;function wr(e,t,n){for(n=n.child;n!==null;)Ew(e,t,n),n=n.sibling}function Ew(e,t,n){if(Ln&&typeof Ln.onCommitFiberUnmount=="function")try{Ln.onCommitFiberUnmount(Gu,n)}catch{}switch(n.tag){case 5:dt||Cs(n,t);case 6:var r=et,i=vn;et=null,wr(e,t,n),et=r,vn=i,et!==null&&(vn?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(vn?(e=et,n=n.stateNode,e.nodeType===8?od(e.parentNode,n):e.nodeType===1&&od(e,n),da(e)):od(et,n.stateNode));break;case 4:r=et,i=vn,et=n.stateNode.containerInfo,vn=!0,wr(e,t,n),et=r,vn=i;break;case 0:case 11:case 14:case 15:if(!dt&&(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)&&Nf(n,t,o),i=i.next}while(i!==r)}wr(e,t,n);break;case 1:if(!dt&&(Cs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Re(n,t,a)}wr(e,t,n);break;case 21:wr(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,wr(e,t,n),dt=r):wr(e,t,n);break;default:wr(e,t,n)}}function gv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new WC),t.forEach(function(r){var i=t2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function fn(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:et=a.stateNode,vn=!1;break e;case 3:et=a.stateNode.containerInfo,vn=!0;break e;case 4:et=a.stateNode.containerInfo,vn=!0;break e}a=a.return}if(et===null)throw Error(F(160));Ew(s,o,i),et=null,vn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Re(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Tw(t,e),t=t.sibling}function Tw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fn(t,e),_n(e),r&4){try{Yo(3,e,e.return),nc(3,e)}catch(y){Re(e,e.return,y)}try{Yo(5,e,e.return)}catch(y){Re(e,e.return,y)}}break;case 1:fn(t,e),_n(e),r&512&&n!==null&&Cs(n,n.return);break;case 5:if(fn(t,e),_n(e),r&512&&n!==null&&Cs(n,n.return),e.flags&32){var i=e.stateNode;try{aa(i,"")}catch(y){Re(e,e.return,y)}}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&&Kx(i,s),lf(a,o);var u=lf(a,s);for(o=0;o<l.length;o+=2){var d=l[o],c=l[o+1];d==="style"?Zx(i,c):d==="dangerouslySetInnerHTML"?Yx(i,c):d==="children"?aa(i,c):sh(i,d,c,u)}switch(a){case"input":nf(i,s);break;case"textarea":Gx(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?Fs(i,!!s.multiple,p,!1):f!==!!s.multiple&&(s.defaultValue!=null?Fs(i,!!s.multiple,s.defaultValue,!0):Fs(i,!!s.multiple,s.multiple?[]:"",!1))}i[ga]=s}catch(y){Re(e,e.return,y)}}break;case 6:if(fn(t,e),_n(e),r&4){if(e.stateNode===null)throw Error(F(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){Re(e,e.return,y)}}break;case 3:if(fn(t,e),_n(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{da(t.containerInfo)}catch(y){Re(e,e.return,y)}break;case 4:fn(t,e),_n(e);break;case 13:fn(t,e),_n(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Ih=Ne())),r&4&&gv(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(dt=(u=dt)||d,fn(t,e),dt=u):fn(t,e),_n(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(z=e,d=e.child;d!==null;){for(c=z=d;z!==null;){switch(f=z,p=f.child,f.tag){case 0:case 11:case 14:case 15:Yo(4,f,f.return);break;case 1:Cs(f,f.return);var h=f.stateNode;if(typeof h.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(y){Re(r,n,y)}}break;case 5:Cs(f,f.return);break;case 22:if(f.memoizedState!==null){yv(c);continue}}p!==null?(p.return=f,z=p):yv(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{i=c.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=c.stateNode,l=c.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Xx("display",o))}catch(y){Re(e,e.return,y)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Re(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:fn(t,e),_n(e),r&4&&gv(e);break;case 21:break;default:fn(t,e),_n(e)}}function _n(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(kw(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(aa(i,""),r.flags&=-33);var s=mv(e);If(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=mv(e);Lf(e,a,o);break;default:throw Error(F(161))}}catch(l){Re(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function KC(e,t,n){z=e,Cw(e)}function Cw(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||xl;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||dt;a=xl;var u=dt;if(xl=o,(dt=l)&&!u)for(z=i;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?xv(i):l!==null?(l.return=o,z=l):xv(i);for(;s!==null;)z=s,Cw(s),s=s.sibling;z=i,xl=a,dt=u}vv(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,z=s):vv(e)}}function vv(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:dt||nc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!dt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:mn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&tv(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}tv(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 u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&da(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}dt||t.flags&512&&Mf(t)}catch(f){Re(t,t.return,f)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function yv(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function xv(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nc(4,t)}catch(l){Re(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Re(t,i,l)}}var s=t.return;try{Mf(t)}catch(l){Re(t,s,l)}break;case 5:var o=t.return;try{Mf(t)}catch(l){Re(t,o,l)}}}catch(l){Re(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var GC=Math.ceil,Eu=pr.ReactCurrentDispatcher,Mh=pr.ReactCurrentOwner,rn=pr.ReactCurrentBatchConfig,ce=0,Ge=null,Le=null,rt=0,Lt=0,_s=si(0),Be=0,Sa=null,Ui=0,rc=0,Lh=0,Xo=null,Ct=null,Ih=0,ao=1/0,Zn=null,Tu=!1,$f=null,qr=null,wl=!1,Ir=null,Cu=0,Zo=0,zf=null,Hl=-1,Wl=0;function yt(){return ce&6?Ne():Hl!==-1?Hl:Hl=Ne()}function Kr(e){return e.mode&1?ce&2&&rt!==0?rt&-rt:RC.transition!==null?(Wl===0&&(Wl=c1()),Wl):(e=fe,e!==0||(e=window.event,e=e===void 0?16:v1(e.type)),e):1}function Sn(e,t,n,r){if(50<Zo)throw Zo=0,zf=null,Error(F(185));Ua(e,n,r),(!(ce&2)||e!==Ge)&&(e===Ge&&(!(ce&2)&&(rc|=n),Be===4&&_r(e,rt)),Rt(e,r),n===1&&ce===0&&!(t.mode&1)&&(ao=Ne()+500,Ju&&oi()))}function Rt(e,t){var n=e.callbackNode;RT(e,t);var r=uu(e,e===Ge?rt:0);if(r===0)n!==null&&Pg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Pg(n),t===1)e.tag===0?AC(wv.bind(null,e)):M1(wv.bind(null,e)),CC(function(){!(ce&6)&&oi()}),n=null;else{switch(d1(r)){case 1:n=ch;break;case 4:n=l1;break;case 16:n=lu;break;case 536870912:n=u1;break;default:n=lu}n=Fw(n,_w.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function _w(e,t){if(Hl=-1,Wl=0,ce&6)throw Error(F(327));var n=e.callbackNode;if($s()&&e.callbackNode!==n)return null;var r=uu(e,e===Ge?rt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_u(e,r);else{t=r;var i=ce;ce|=2;var s=jw();(Ge!==e||rt!==t)&&(Zn=null,ao=Ne()+500,Ni(e,t));do try{XC();break}catch(a){Pw(e,a)}while(!0);kh(),Eu.current=s,ce=i,Le!==null?t=0:(Ge=null,rt=0,t=Be)}if(t!==0){if(t===2&&(i=pf(e),i!==0&&(r=i,t=Vf(e,i))),t===1)throw n=Sa,Ni(e,0),_r(e,r),Rt(e,Ne()),n;if(t===6)_r(e,r);else{if(i=e.current.alternate,!(r&30)&&!QC(i)&&(t=_u(e,r),t===2&&(s=pf(e),s!==0&&(r=s,t=Vf(e,s))),t===1))throw n=Sa,Ni(e,0),_r(e,r),Rt(e,Ne()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:gi(e,Ct,Zn);break;case 3:if(_r(e,r),(r&130023424)===r&&(t=Ih+500-Ne(),10<t)){if(uu(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){yt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=bf(gi.bind(null,e,Ct,Zn),t);break}gi(e,Ct,Zn);break;case 4:if(_r(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-bn(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*GC(r/1960))-r,10<r){e.timeoutHandle=bf(gi.bind(null,e,Ct,Zn),r);break}gi(e,Ct,Zn);break;case 5:gi(e,Ct,Zn);break;default:throw Error(F(329))}}}return Rt(e,Ne()),e.callbackNode===n?_w.bind(null,e):null}function Vf(e,t){var n=Xo;return e.current.memoizedState.isDehydrated&&(Ni(e,t).flags|=256),e=_u(e,t),e!==2&&(t=Ct,Ct=n,t!==null&&Bf(t)),e}function Bf(e){Ct===null?Ct=e:Ct.push.apply(Ct,e)}function QC(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(!kn(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 _r(e,t){for(t&=~Lh,t&=~rc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bn(t),r=1<<n;e[n]=-1,t&=~r}}function wv(e){if(ce&6)throw Error(F(327));$s();var t=uu(e,0);if(!(t&1))return Rt(e,Ne()),null;var n=_u(e,t);if(e.tag!==0&&n===2){var r=pf(e);r!==0&&(t=r,n=Vf(e,r))}if(n===1)throw n=Sa,Ni(e,0),_r(e,t),Rt(e,Ne()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gi(e,Ct,Zn),Rt(e,Ne()),null}function $h(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(ao=Ne()+500,Ju&&oi())}}function Hi(e){Ir!==null&&Ir.tag===0&&!(ce&6)&&$s();var t=ce;ce|=1;var n=rn.transition,r=fe;try{if(rn.transition=null,fe=1,e)return e()}finally{fe=r,rn.transition=n,ce=t,!(ce&6)&&oi()}}function zh(){Lt=_s.current,be(_s)}function Ni(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,TC(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(wh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hu();break;case 3:so(),be(jt),be(pt),jh();break;case 5:Ph(r);break;case 4:so();break;case 13:be(Te);break;case 19:be(Te);break;case 10:Eh(r.type._context);break;case 22:case 23:zh()}n=n.return}if(Ge=e,Le=e=Gr(e.current,null),rt=Lt=t,Be=0,Sa=null,Lh=rc=Ui=0,Ct=Xo=null,Si!==null){for(t=0;t<Si.length;t++)if(n=Si[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}Si=null}return e}function Pw(e,t){do{var n=Le;try{if(kh(),Vl.current=ku,Su){for(var r=_e.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Su=!1}if(Bi=0,Ke=ze=_e=null,Qo=!1,xa=0,Mh.current=null,n===null||n.return===null){Be=1,Sa=t,Le=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=rt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===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 p=av(o);if(p!==null){p.flags&=-257,lv(p,o,a,s,t),p.mode&1&&ov(s,u,t),t=p,l=u;var h=t.updateQueue;if(h===null){var y=new Set;y.add(l),t.updateQueue=y}else h.add(l);break e}else{if(!(t&1)){ov(s,u,t),Vh();break e}l=Error(F(426))}}else if(Se&&a.mode&1){var w=av(o);if(w!==null){!(w.flags&65536)&&(w.flags|=256),lv(w,o,a,s,t),bh(oo(l,a));break e}}s=l=oo(l,a),Be!==4&&(Be=2),Xo===null?Xo=[s]:Xo.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=dw(s,l,t);ev(s,m);break e;case 1:a=l;var v=s.type,b=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(qr===null||!qr.has(b)))){s.flags|=65536,t&=-t,s.lanes|=t;var T=fw(s,a,t);ev(s,T);break e}}s=s.return}while(s!==null)}Rw(n)}catch(E){t=E,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function jw(){var e=Eu.current;return Eu.current=ku,e===null?ku:e}function Vh(){(Be===0||Be===3||Be===2)&&(Be=4),Ge===null||!(Ui&268435455)&&!(rc&268435455)||_r(Ge,rt)}function _u(e,t){var n=ce;ce|=2;var r=jw();(Ge!==e||rt!==t)&&(Zn=null,Ni(e,t));do try{YC();break}catch(i){Pw(e,i)}while(!0);if(kh(),ce=n,Eu.current=r,Le!==null)throw Error(F(261));return Ge=null,rt=0,Be}function YC(){for(;Le!==null;)Aw(Le)}function XC(){for(;Le!==null&&!ST();)Aw(Le)}function Aw(e){var t=Dw(e.alternate,e,Lt);e.memoizedProps=e.pendingProps,t===null?Rw(e):Le=t,Mh.current=null}function Rw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=HC(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,Le=null;return}}else if(n=UC(n,t,Lt),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);Be===0&&(Be=5)}function gi(e,t,n){var r=fe,i=rn.transition;try{rn.transition=null,fe=1,ZC(e,t,n,r)}finally{rn.transition=i,fe=r}return null}function ZC(e,t,n,r){do $s();while(Ir!==null);if(ce&6)throw Error(F(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(F(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(OT(e,s),e===Ge&&(Le=Ge=null,rt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||wl||(wl=!0,Fw(lu,function(){return $s(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=rn.transition,rn.transition=null;var o=fe;fe=1;var a=ce;ce|=4,Mh.current=null,qC(e,n),Tw(n,e),yC(xf),cu=!!yf,xf=yf=null,e.current=n,KC(n),kT(),ce=a,fe=o,rn.transition=s}else e.current=n;if(wl&&(wl=!1,Ir=e,Cu=i),s=e.pendingLanes,s===0&&(qr=null),CT(n.stateNode),Rt(e,Ne()),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(Tu)throw Tu=!1,e=$f,$f=null,e;return Cu&1&&e.tag!==0&&$s(),s=e.pendingLanes,s&1?e===zf?Zo++:(Zo=0,zf=e):Zo=0,oi(),null}function $s(){if(Ir!==null){var e=d1(Cu),t=rn.transition,n=fe;try{if(rn.transition=null,fe=16>e?16:e,Ir===null)var r=!1;else{if(e=Ir,Ir=null,Cu=0,ce&6)throw Error(F(331));var i=ce;for(ce|=4,z=e.current;z!==null;){var s=z,o=s.child;if(z.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var d=z;switch(d.tag){case 0:case 11:case 15:Yo(8,d,s)}var c=d.child;if(c!==null)c.return=d,z=c;else for(;z!==null;){d=z;var f=d.sibling,p=d.return;if(Sw(d),d===u){z=null;break}if(f!==null){f.return=p,z=f;break}z=p}}}var h=s.alternate;if(h!==null){var y=h.child;if(y!==null){h.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}z=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,z=o;else e:for(;z!==null;){if(s=z,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Yo(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,z=m;break e}z=s.return}}var v=e.current;for(z=v;z!==null;){o=z;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,z=b;else e:for(o=v;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:nc(9,a)}}catch(E){Re(a,a.return,E)}if(a===o){z=null;break e}var T=a.sibling;if(T!==null){T.return=a.return,z=T;break e}z=a.return}}if(ce=i,oi(),Ln&&typeof Ln.onPostCommitFiberRoot=="function")try{Ln.onPostCommitFiberRoot(Gu,e)}catch{}r=!0}return r}finally{fe=n,rn.transition=t}}return!1}function bv(e,t,n){t=oo(n,t),t=dw(e,t,1),e=Wr(e,t,1),t=yt(),e!==null&&(Ua(e,1,t),Rt(e,t))}function Re(e,t,n){if(e.tag===3)bv(e,e,n);else for(;t!==null;){if(t.tag===3){bv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qr===null||!qr.has(r))){e=oo(n,e),e=fw(t,e,1),t=Wr(t,e,1),e=yt(),t!==null&&(Ua(t,1,e),Rt(t,e));break}}t=t.return}}function JC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&n,Ge===e&&(rt&n)===n&&(Be===4||Be===3&&(rt&130023424)===rt&&500>Ne()-Ih?Ni(e,0):Lh|=n),Rt(e,t)}function Ow(e,t){t===0&&(e.mode&1?(t=cl,cl<<=1,!(cl&130023424)&&(cl=4194304)):t=1);var n=yt();e=cr(e,t),e!==null&&(Ua(e,t,n),Rt(e,n))}function e2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ow(e,n)}function t2(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(F(314))}r!==null&&r.delete(t),Ow(e,n)}var Dw;Dw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jt.current)Pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pt=!1,BC(e,t,n);Pt=!!(e.flags&131072)}else Pt=!1,Se&&t.flags&1048576&&L1(t,vu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var i=no(t,pt.current);Is(t,n),i=Rh(null,t,r,e,i,n);var s=Oh();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,mu(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ch(t),i.updater=tc,t.stateNode=i,i._reactInternals=t,Pf(t,r,e,n),t=Rf(null,t,r,!0,s,n)):(t.tag=0,Se&&s&&xh(t),gt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=r2(r),e=mn(r,e),i){case 0:t=Af(null,t,r,e,n);break e;case 1:t=dv(null,t,r,e,n);break e;case 11:t=uv(null,t,r,e,n);break e;case 14:t=cv(null,t,r,mn(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mn(r,i),Af(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mn(r,i),dv(e,t,r,i,n);case 3:e:{if(gw(t),e===null)throw Error(F(387));r=t.pendingProps,s=t.memoizedState,i=s.element,U1(e,t),wu(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=oo(Error(F(423)),t),t=fv(e,t,r,n,i);break e}else if(r!==i){i=oo(Error(F(424)),t),t=fv(e,t,r,n,i);break e}else for(It=Hr(t.stateNode.containerInfo.firstChild),Vt=t,Se=!0,xn=null,n=V1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ro(),r===i){t=dr(e,t,n);break e}gt(e,t,r,n)}t=t.child}return t;case 5:return H1(t),e===null&&Tf(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,wf(r,i)?o=null:s!==null&&wf(r,s)&&(t.flags|=32),mw(e,t),gt(e,t,o,n),t.child;case 6:return e===null&&Tf(t),null;case 13:return vw(e,t,n);case 4:return _h(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):gt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mn(r,i),uv(e,t,r,i,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(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,ve(yu,r._currentValue),r._currentValue=o,s!==null)if(kn(s.value,o)){if(s.children===i.children&&!jt.current){t=dr(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=sr(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Cf(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(F(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Cf(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}gt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Is(t,n),i=on(i),r=r(i),t.flags|=1,gt(e,t,r,n),t.child;case 14:return r=t.type,i=mn(r,t.pendingProps),i=mn(r.type,i),cv(e,t,r,i,n);case 15:return pw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:mn(r,i),Ul(e,t),t.tag=1,At(r)?(e=!0,mu(t)):e=!1,Is(t,n),cw(t,r,i),Pf(t,r,i,n),Rf(null,t,r,!0,e,n);case 19:return yw(e,t,n);case 22:return hw(e,t,n)}throw Error(F(156,t.tag))};function Fw(e,t){return a1(e,t)}function n2(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 nn(e,t,n,r){return new n2(e,t,n,r)}function Bh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function r2(e){if(typeof e=="function")return Bh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ah)return 11;if(e===lh)return 14}return 2}function Gr(e,t){var n=e.alternate;return n===null?(n=nn(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 ql(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Bh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case vs:return Mi(n.children,i,s,t);case oh:o=8,i|=8;break;case Xd:return e=nn(12,n,t,i|2),e.elementType=Xd,e.lanes=s,e;case Zd:return e=nn(13,n,t,i),e.elementType=Zd,e.lanes=s,e;case Jd:return e=nn(19,n,t,i),e.elementType=Jd,e.lanes=s,e;case Hx:return ic(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bx:o=10;break e;case Ux:o=9;break e;case ah:o=11;break e;case lh:o=14;break e;case kr:o=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=nn(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Mi(e,t,n,r){return e=nn(7,e,r,t),e.lanes=n,e}function ic(e,t,n,r){return e=nn(22,e,r,t),e.elementType=Hx,e.lanes=n,e.stateNode={isHidden:!1},e}function hd(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function md(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function i2(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=Qc(0),this.expirationTimes=Qc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uh(e,t,n,r,i,s,o,a,l){return e=new i2(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=nn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ch(s),e}function s2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Nw(e){if(!e)return ei;e=e._reactInternals;e:{if(Xi(e)!==e||e.tag!==1)throw Error(F(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(F(171))}if(e.tag===1){var n=e.type;if(At(n))return N1(e,n,t)}return t}function Mw(e,t,n,r,i,s,o,a,l){return e=Uh(n,r,!0,e,i,s,o,a,l),e.context=Nw(null),n=e.current,r=yt(),i=Kr(n),s=sr(r,i),s.callback=t??null,Wr(n,s,i),e.current.lanes=i,Ua(e,i,r),Rt(e,r),e}function sc(e,t,n,r){var i=t.current,s=yt(),o=Kr(i);return n=Nw(n),t.context===null?t.context=n:t.pendingContext=n,t=sr(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wr(i,t,o),e!==null&&(Sn(e,i,o,s),zl(e,i,o)),o}function Pu(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 Sv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hh(e,t){Sv(e,t),(e=e.alternate)&&Sv(e,t)}function o2(){return null}var Lw=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wh(e){this._internalRoot=e}oc.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));sc(e,t,null,null)};oc.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hi(function(){sc(null,e,null,null)}),t[ur]=null}};function oc(e){this._internalRoot=e}oc.prototype.unstable_scheduleHydration=function(e){if(e){var t=h1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cr.length&&t!==0&&t<Cr[n].priority;n++);Cr.splice(n,0,e),n===0&&g1(e)}};function qh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ac(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kv(){}function a2(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Pu(o);s.call(u)}}var o=Mw(t,r,e,0,null,!1,!1,"",kv);return e._reactRootContainer=o,e[ur]=o.current,ha(e.nodeType===8?e.parentNode:e),Hi(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Pu(l);a.call(u)}}var l=Uh(e,0,!1,null,null,!1,!1,"",kv);return e._reactRootContainer=l,e[ur]=l.current,ha(e.nodeType===8?e.parentNode:e),Hi(function(){sc(t,l,n,r)}),l}function lc(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=Pu(o);a.call(l)}}sc(t,o,e,i)}else o=a2(n,t,e,i,r);return Pu(o)}f1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Io(t.pendingLanes);n!==0&&(dh(t,n|1),Rt(t,Ne()),!(ce&6)&&(ao=Ne()+500,oi()))}break;case 13:Hi(function(){var r=cr(e,1);if(r!==null){var i=yt();Sn(r,e,1,i)}}),Hh(e,1)}};fh=function(e){if(e.tag===13){var t=cr(e,134217728);if(t!==null){var n=yt();Sn(t,e,134217728,n)}Hh(e,134217728)}};p1=function(e){if(e.tag===13){var t=Kr(e),n=cr(e,t);if(n!==null){var r=yt();Sn(n,e,t,r)}Hh(e,t)}};h1=function(){return fe};m1=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}};cf=function(e,t,n){switch(t){case"input":if(nf(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=Zu(r);if(!i)throw Error(F(90));qx(r),nf(r,i)}}}break;case"textarea":Gx(e,n);break;case"select":t=n.value,t!=null&&Fs(e,!!n.multiple,t,!1)}};t1=$h;n1=Hi;var l2={usingClientEntryPoint:!1,Events:[Wa,bs,Zu,Jx,e1,$h]},Oo={findFiberByHostInstance:bi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},u2={bundleType:Oo.bundleType,version:Oo.version,rendererPackageName:Oo.rendererPackageName,rendererConfig:Oo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=s1(e),e===null?null:e.stateNode},findFiberByHostInstance:Oo.findFiberByHostInstance||o2,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 bl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bl.isDisabled&&bl.supportsFiber)try{Gu=bl.inject(u2),Ln=bl}catch{}}Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=l2;Ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qh(t))throw Error(F(200));return s2(e,t,null,n)};Ut.createRoot=function(e,t){if(!qh(e))throw Error(F(299));var n=!1,r="",i=Lw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Uh(e,1,!1,null,null,n,!1,r,i),e[ur]=t.current,ha(e.nodeType===8?e.parentNode:e),new Wh(t)};Ut.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(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=s1(t),e=e===null?null:e.stateNode,e};Ut.flushSync=function(e){return Hi(e)};Ut.hydrate=function(e,t,n){if(!ac(t))throw Error(F(200));return lc(null,e,t,!0,n)};Ut.hydrateRoot=function(e,t,n){if(!qh(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=Lw;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Mw(t,null,e,1,n??null,i,!1,s,o),e[ur]=t.current,ha(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 oc(t)};Ut.render=function(e,t,n){if(!ac(t))throw Error(F(200));return lc(null,e,t,!1,n)};Ut.unmountComponentAtNode=function(e){if(!ac(e))throw Error(F(40));return e._reactRootContainer?(Hi(function(){lc(null,null,e,!1,function(){e._reactRootContainer=null,e[ur]=null})}),!0):!1};Ut.unstable_batchedUpdates=$h;Ut.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ac(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return lc(e,t,n,!1,r)};Ut.version="18.3.1-next-f1338f8080-20240426";function Iw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Iw)}catch(e){console.error(e)}}Iw(),Ix.exports=Ut;var $w=Ix.exports;const c2=Qi($w);var zw,Ev=$w;zw=Ev.createRoot,Ev.hydrateRoot;const d2="@alfatech/livechat",f2="v2025.05.27.1",p2="module",h2="https://api-live.alfatek.dev",m2="wss://api-live.alfatek.dev",g2=["dist","README.md"],v2="dist/widget.js",y2={dev:"vite",build:"tsc -b && vite build",lint:"biome lint --write",prepare:"husky",format:"biome format --write && yarn lint"},x2={"@headlessui/react":"^2.2.2","@tailwindcss/vite":"^4.1.4","@tanstack/react-query":"^5.59.20",classnames:"^2.5.1",dayjs:"^1.11.13",formik:"^2.4.6","framer-motion":"^12.7.4","lucide-react":"^0.511.0",react:"^18.3.1","react-dom":"^18.3.1","react-dropzone":"^14.3.8","react-router-dom":"^6.26.2","socket.io-client":"^4.8.1",sonner:"^2.0.1",yup:"^1.4.0",zustand:"^4.5.5"},w2={"@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:"^4.1.4",typescript:"^5.5.3",vite:"^5.4.1"},Vw={name:d2,private:!1,version:f2,type:p2,apiURL:h2,wsURL:m2,files:g2,main:v2,scripts:y2,dependencies:x2,devDependencies:w2,"lint-staged":{"./**/*.{js,ts,tsx,json}":["npm run format"]}},b2=Vw.apiURL,S2=Vw.wsURL,k2=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],E2=(e,t)=>[{message:"message"in t?t.message:"Not Found"},404],T2={429:k2,404:E2};async function vo(e,t={}){const n={};!(t.body instanceof FormData)&&t.body&&(n["Content-Type"]="application/json");const r=await fetch(`${b2}/${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=T2[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 uc=e=>[200,201,204].includes(e),C2=(e,{arrayWithBrackets:t=!1,arrayWithBracketAndIndex:n=!0}={})=>{const r=new FormData;for(const[i,s]of Object.entries(e)){if(Array.isArray(s)){for(const o in s)t?r.append(`${i}[]`,s[o]):n?r.append(`${i}[${o}]`,s[o]):r.append(i,s[o]);continue}typeof s<"u"&&s!==null&&r.append(i,s)}return r};var yo=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(){}},Wi=typeof window>"u"||"Deno"in globalThis;function Zt(){}function _2(e,t){return typeof e=="function"?e(t):e}function Uf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Bw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zs(e,t){return typeof e=="function"?e(t):e}function wn(e,t){return typeof e=="function"?e(t):e}function Tv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Kh(o,t.options))return!1}else if(!ka(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 Cv(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(qi(t.options.mutationKey)!==qi(s))return!1}else if(!ka(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Kh(e,t){return((t==null?void 0:t.queryKeyHashFn)||qi)(e)}function qi(e){return JSON.stringify(e,(t,n)=>Hf(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ka(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ka(e[n],t[n])):!1}function Uw(e,t){if(e===t)return e;const n=_v(e)&&_v(t);if(n||Hf(e)&&Hf(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 u=0;u<o;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=Uw(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return i===o&&l===i?e:a}return t}function ju(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 _v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hf(e){if(!Pv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Pv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pv(e){return Object.prototype.toString.call(e)==="[object Object]"}function P2(e){return new Promise(t=>{setTimeout(t,e)})}function Wf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Uw(e,t):t}function j2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function A2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Gh=Symbol();function Hw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Gh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Pi,Pr,Bs,vx,R2=(vx=class extends yo{constructor(){super();W(this,Pi);W(this,Pr);W(this,Bs);$(this,Bs,t=>{if(!Wi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,Pr)||this.setEventListener(k(this,Bs))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Pr))==null||t.call(this),$(this,Pr,void 0))}setEventListener(t){var n;$(this,Bs,t),(n=k(this,Pr))==null||n.call(this),$(this,Pr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,Pi)!==t&&($(this,Pi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,Pi)=="boolean"?k(this,Pi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Pi=new WeakMap,Pr=new WeakMap,Bs=new WeakMap,vx),Qh=new R2,Us,jr,Hs,yx,O2=(yx=class extends yo{constructor(){super();W(this,Us,!0);W(this,jr);W(this,Hs);$(this,Hs,t=>{if(!Wi&&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(){k(this,jr)||this.setEventListener(k(this,Hs))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,jr))==null||t.call(this),$(this,jr,void 0))}setEventListener(t){var n;$(this,Hs,t),(n=k(this,jr))==null||n.call(this),$(this,jr,t(this.setOnline.bind(this)))}setOnline(t){k(this,Us)!==t&&($(this,Us,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,Us)}},Us=new WeakMap,jr=new WeakMap,Hs=new WeakMap,yx),Au=new O2;function qf(){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 D2(e){return Math.min(1e3*2**e,3e4)}function Ww(e){return(e??"online")==="online"?Au.isOnline():!0}var qw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function gd(e){return e instanceof qw}function Kw(e){let t=!1,n=0,r=!1,i;const s=qf(),o=y=>{var w;r||(f(new qw(y)),(w=e.abort)==null||w.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Qh.isFocused()&&(e.networkMode==="always"||Au.isOnline())&&e.canRun(),d=()=>Ww(e.networkMode)&&e.canRun(),c=y=>{var w;r||(r=!0,(w=e.onSuccess)==null||w.call(e,y),i==null||i(),s.resolve(y))},f=y=>{var w;r||(r=!0,(w=e.onError)==null||w.call(e,y),i==null||i(),s.reject(y))},p=()=>new Promise(y=>{var w;i=m=>{(r||u())&&y(m)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),h=()=>{if(r)return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(c).catch(m=>{var C;if(r)return;const v=e.retry??(Wi?0:3),b=e.retryDelay??D2,T=typeof b=="function"?b(n,m):b,E=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,m);if(t||!E){f(m);return}n++,(C=e.onFail)==null||C.call(e,n,m),P2(T).then(()=>u()?void 0:p()).then(()=>{t?f(m):h()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?h():p().then(h),s)}}function F2(){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 Ve=F2(),ji,xx,Gw=(xx=class{constructor(){W(this,ji)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uf(this.gcTime)&&$(this,ji,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wi?1/0:5*60*1e3))}clearGcTimeout(){k(this,ji)&&(clearTimeout(k(this,ji)),$(this,ji,void 0))}},ji=new WeakMap,xx),Ws,qs,Xt,ut,Ia,Ai,gn,Xn,wx,N2=(wx=class extends Gw{constructor(t){super();W(this,gn);W(this,Ws);W(this,qs);W(this,Xt);W(this,ut);W(this,Ia);W(this,Ai);$(this,Ai,!1),$(this,Ia,t.defaultOptions),this.setOptions(t.options),this.observers=[],$(this,Xt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,$(this,Ws,M2(this.options)),this.state=t.state??k(this,Ws),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,ut))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Ia),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Xt).remove(this)}setData(t,n){const r=Wf(this.state.data,t,this.options);return J(this,gn,Xn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){J(this,gn,Xn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=k(this,ut))==null?void 0:r.promise;return(i=k(this,ut))==null||i.cancel(t),n?n.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Ws))}isActive(){return this.observers.some(t=>wn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gh||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||!Bw(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,ut))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,ut))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,Xt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,ut)&&(k(this,Ai)?k(this,ut).cancel({revert:!0}):k(this,ut).cancelRetry()),this.scheduleGc()),k(this,Xt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,gn,Xn).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,ut))return k(this,ut).continueRetry(),k(this,ut).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>($(this,Ai,!0),r.signal)})},s=()=>{const c=Hw(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),$(this,Ai,!1),this.options.persister?this.options.persister(c,f,this):c(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),$(this,qs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&J(this,gn,Xn).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const a=c=>{var f,p,h,y;gd(c)&&c.silent||J(this,gn,Xn).call(this,{type:"error",error:c}),gd(c)||((p=(f=k(this,Xt).config).onError)==null||p.call(f,c,this),(y=(h=k(this,Xt).config).onSettled)==null||y.call(h,this.state.data,c,this)),this.scheduleGc()};return $(this,ut,Kw({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var f,p,h,y;if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(w){a(w);return}(p=(f=k(this,Xt).config).onSuccess)==null||p.call(f,c,this),(y=(h=k(this,Xt).config).onSettled)==null||y.call(h,c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,f)=>{J(this,gn,Xn).call(this,{type:"failed",failureCount:c,error:f})},onPause:()=>{J(this,gn,Xn).call(this,{type:"pause"})},onContinue:()=>{J(this,gn,Xn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),k(this,ut).start()}},Ws=new WeakMap,qs=new WeakMap,Xt=new WeakMap,ut=new WeakMap,Ia=new WeakMap,Ai=new WeakMap,gn=new WeakSet,Xn=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,...Qw(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 gd(i)&&i.revert&&k(this,qs)?{...k(this,qs),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),Ve.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),k(this,Xt).notify({query:this,type:"updated",action:t})})},wx);function Qw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ww(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function M2(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 On,bx,L2=(bx=class extends yo{constructor(t={}){super();W(this,On);this.config=t,$(this,On,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Kh(i,n);let o=this.get(s);return o||(o=new N2({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){k(this,On).has(t.queryHash)||(k(this,On).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,On).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,On).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ve.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,On).get(t)}getAll(){return[...k(this,On).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Tv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Tv(t,r)):n}notify(t){Ve.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},On=new WeakMap,bx),Dn,ht,Ri,Fn,br,Sx,I2=(Sx=class extends Gw{constructor(t){super();W(this,Fn);W(this,Dn);W(this,ht);W(this,Ri);this.mutationId=t.mutationId,$(this,ht,t.mutationCache),$(this,Dn,[]),this.state=t.state||Yw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Dn).includes(t)||(k(this,Dn).push(t),this.clearGcTimeout(),k(this,ht).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){$(this,Dn,k(this,Dn).filter(n=>n!==t)),this.scheduleGc(),k(this,ht).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Dn).length||(this.state.status==="pending"?this.scheduleGc():k(this,ht).remove(this))}continue(){var t;return((t=k(this,Ri))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,a,l,u,d,c,f,p,h,y,w,m,v,b,T,E,C,S;$(this,Ri,Kw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,N)=>{J(this,Fn,br).call(this,{type:"failed",failureCount:_,error:N})},onPause:()=>{J(this,Fn,br).call(this,{type:"pause"})},onContinue:()=>{J(this,Fn,br).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,ht).canRun(this)}));const n=this.state.status==="pending",r=!k(this,Ri).canStart();try{if(!n){J(this,Fn,br).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=k(this,ht).config).onMutate)==null?void 0:s.call(i,t,this));const N=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));N!==this.state.context&&J(this,Fn,br).call(this,{type:"pending",context:N,variables:t,isPaused:r})}const _=await k(this,Ri).start();return await((u=(l=k(this,ht).config).onSuccess)==null?void 0:u.call(l,_,t,this.state.context,this)),await((c=(d=this.options).onSuccess)==null?void 0:c.call(d,_,t,this.state.context)),await((p=(f=k(this,ht).config).onSettled)==null?void 0:p.call(f,_,null,this.state.variables,this.state.context,this)),await((y=(h=this.options).onSettled)==null?void 0:y.call(h,_,null,t,this.state.context)),J(this,Fn,br).call(this,{type:"success",data:_}),_}catch(_){try{throw await((m=(w=k(this,ht).config).onError)==null?void 0:m.call(w,_,t,this.state.context,this)),await((b=(v=this.options).onError)==null?void 0:b.call(v,_,t,this.state.context)),await((E=(T=k(this,ht).config).onSettled)==null?void 0:E.call(T,void 0,_,this.state.variables,this.state.context,this)),await((S=(C=this.options).onSettled)==null?void 0:S.call(C,void 0,_,t,this.state.context)),_}finally{J(this,Fn,br).call(this,{type:"error",error:_})}}finally{k(this,ht).runNext(this)}}},Dn=new WeakMap,ht=new WeakMap,Ri=new WeakMap,Fn=new WeakSet,br=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),Ve.batch(()=>{k(this,Dn).forEach(r=>{r.onMutationUpdate(t)}),k(this,ht).notify({mutation:this,type:"updated",action:t})})},Sx);function Yw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Mt,$a,kx,$2=(kx=class extends yo{constructor(t={}){super();W(this,Mt);W(this,$a);this.config=t,$(this,Mt,new Map),$(this,$a,Date.now())}build(t,n,r){const i=new I2({mutationCache:this,mutationId:++il(this,$a)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Sl(t),r=k(this,Mt).get(n)??[];r.push(t),k(this,Mt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Sl(t);if(k(this,Mt).has(n)){const i=(r=k(this,Mt).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?k(this,Mt).delete(n):k(this,Mt).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=k(this,Mt).get(Sl(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=k(this,Mt).get(Sl(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ve.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...k(this,Mt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Cv(n,r))}findAll(t={}){return this.getAll().filter(n=>Cv(t,n))}notify(t){Ve.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ve.batch(()=>Promise.all(t.map(n=>n.continue().catch(Zt))))}},Mt=new WeakMap,$a=new WeakMap,kx);function Sl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function jv(e){return{onFetch:(t,n)=>{var d,c,f,p,h;const r=t.options,i=(f=(c=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:f.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],o=((h=t.state.data)==null?void 0:h.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const w=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},m=Hw(t.options,t.fetchOptions),v=async(b,T,E)=>{if(y)return Promise.reject();if(T==null&&b.pages.length)return Promise.resolve(b);const C={queryKey:t.queryKey,pageParam:T,direction:E?"backward":"forward",meta:t.options.meta};w(C);const S=await m(C),{maxPages:_}=t.options,N=E?A2:j2;return{pages:N(b.pages,S,_),pageParams:N(b.pageParams,T,_)}};if(i&&s.length){const b=i==="backward",T=b?z2:Av,E={pages:s,pageParams:o},C=T(r,E);a=await v(E,C,b)}else{const b=e??s.length;do{const T=l===0?o[0]??r.initialPageParam:Av(r,a);if(l>0&&T==null)break;a=await v(a,T),l++}while(l<b)}return a};t.options.persister?t.fetchFn=()=>{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Av(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 z2(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 je,Ar,Rr,Ks,Gs,Or,Qs,Ys,Ex,V2=(Ex=class{constructor(e={}){W(this,je);W(this,Ar);W(this,Rr);W(this,Ks);W(this,Gs);W(this,Or);W(this,Qs);W(this,Ys);$(this,je,e.queryCache||new L2),$(this,Ar,e.mutationCache||new $2),$(this,Rr,e.defaultOptions||{}),$(this,Ks,new Map),$(this,Gs,new Map),$(this,Or,0)}mount(){il(this,Or)._++,k(this,Or)===1&&($(this,Qs,Qh.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,je).onFocus())})),$(this,Ys,Au.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,je).onOnline())})))}unmount(){var e,t;il(this,Or)._--,k(this,Or)===0&&((e=k(this,Qs))==null||e.call(this),$(this,Qs,void 0),(t=k(this,Ys))==null||t.call(this),$(this,Ys,void 0))}isFetching(e){return k(this,je).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Ar).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,je).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=k(this,je).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(zs(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return k(this,je).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=k(this,je).get(r.queryHash),s=i==null?void 0:i.state.data,o=_2(t,s);if(o!==void 0)return k(this,je).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ve.batch(()=>k(this,je).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,je).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,je);Ve.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,je),r={type:"active",...e};return Ve.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Ve.batch(()=>k(this,je).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Zt).catch(Zt)}invalidateQueries(e,t={}){return Ve.batch(()=>{if(k(this,je).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=Ve.batch(()=>k(this,je).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Zt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,je).build(this,t);return n.isStaleByTime(zs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zt).catch(Zt)}fetchInfiniteQuery(e){return e.behavior=jv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zt).catch(Zt)}ensureInfiniteQueryData(e){return e.behavior=jv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Au.isOnline()?k(this,Ar).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,je)}getMutationCache(){return k(this,Ar)}getDefaultOptions(){return k(this,Rr)}setDefaultOptions(e){$(this,Rr,e)}setQueryDefaults(e,t){k(this,Ks).set(qi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Ks).values()],n={};return t.forEach(r=>{ka(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Gs).set(qi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Gs).values()];let n={};return t.forEach(r=>{ka(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Rr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Kh(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===Gh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Rr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,je).clear(),k(this,Ar).clear()}},je=new WeakMap,Ar=new WeakMap,Rr=new WeakMap,Ks=new WeakMap,Gs=new WeakMap,Or=new WeakMap,Qs=new WeakMap,Ys=new WeakMap,Ex),kt,oe,za,mt,Oi,Xs,Dr,Nn,Va,Zs,Js,Di,Fi,Fr,eo,de,zo,Kf,Gf,Qf,Yf,Xf,Zf,Jf,Xw,Tx,B2=(Tx=class extends yo{constructor(t,n){super();W(this,de);W(this,kt);W(this,oe);W(this,za);W(this,mt);W(this,Oi);W(this,Xs);W(this,Dr);W(this,Nn);W(this,Va);W(this,Zs);W(this,Js);W(this,Di);W(this,Fi);W(this,Fr);W(this,eo,new Set);this.options=n,$(this,kt,t),$(this,Nn,null),$(this,Dr,qf()),this.options.experimental_prefetchInRender||k(this,Dr).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&&(k(this,oe).addObserver(this),Rv(k(this,oe),this.options)?J(this,de,zo).call(this):this.updateResult(),J(this,de,Yf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ep(k(this,oe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ep(k(this,oe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,J(this,de,Xf).call(this),J(this,de,Zf).call(this),k(this,oe).removeObserver(this)}setOptions(t,n){const r=this.options,i=k(this,oe);if(this.options=k(this,kt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,k(this,oe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");J(this,de,Jf).call(this),k(this,oe).setOptions(this.options),r._defaulted&&!ju(this.options,r)&&k(this,kt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,oe),observer:this});const s=this.hasListeners();s&&Ov(k(this,oe),i,this.options,r)&&J(this,de,zo).call(this),this.updateResult(n),s&&(k(this,oe)!==i||wn(this.options.enabled,k(this,oe))!==wn(r.enabled,k(this,oe))||zs(this.options.staleTime,k(this,oe))!==zs(r.staleTime,k(this,oe)))&&J(this,de,Kf).call(this);const o=J(this,de,Gf).call(this);s&&(k(this,oe)!==i||wn(this.options.enabled,k(this,oe))!==wn(r.enabled,k(this,oe))||o!==k(this,Fr))&&J(this,de,Qf).call(this,o)}getOptimisticResult(t){const n=k(this,kt).getQueryCache().build(k(this,kt),t),r=this.createResult(n,t);return H2(this,r)&&($(this,mt,r),$(this,Xs,this.options),$(this,Oi,k(this,oe).state)),r}getCurrentResult(){return k(this,mt)}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){k(this,eo).add(t)}getCurrentQuery(){return k(this,oe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,kt).defaultQueryOptions(t),r=k(this,kt).getQueryCache().build(k(this,kt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return J(this,de,zo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,mt)))}createResult(t,n){var _;const r=k(this,oe),i=this.options,s=k(this,mt),o=k(this,Oi),a=k(this,Xs),u=t!==r?t.state:k(this,za),{state:d}=t;let c={...d},f=!1,p;if(n._optimisticResults){const N=this.hasListeners(),R=!N&&Rv(t,n),I=N&&Ov(t,r,n,i);(R||I)&&(c={...c,...Qw(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:h,errorUpdatedAt:y,status:w}=c;if(n.select&&c.data!==void 0)if(s&&c.data===(o==null?void 0:o.data)&&n.select===k(this,Va))p=k(this,Zs);else try{$(this,Va,n.select),p=n.select(c.data),p=Wf(s==null?void 0:s.data,p,n),$(this,Zs,p),$(this,Nn,null)}catch(N){$(this,Nn,N)}else p=c.data;if(n.placeholderData!==void 0&&p===void 0&&w==="pending"){let N;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))N=s.data;else if(N=typeof n.placeholderData=="function"?n.placeholderData((_=k(this,Js))==null?void 0:_.state.data,k(this,Js)):n.placeholderData,n.select&&N!==void 0)try{N=n.select(N),$(this,Nn,null)}catch(R){$(this,Nn,R)}N!==void 0&&(w="success",p=Wf(s==null?void 0:s.data,N,n),f=!0)}k(this,Nn)&&(h=k(this,Nn),p=k(this,Zs),y=Date.now(),w="error");const m=c.fetchStatus==="fetching",v=w==="pending",b=w==="error",T=v&&m,E=p!==void 0,S={status:w,fetchStatus:c.fetchStatus,isPending:v,isSuccess:w==="success",isError:b,isInitialLoading:T,isLoading:T,data:p,dataUpdatedAt:c.dataUpdatedAt,error:h,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:b&&!E,isPaused:c.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:b&&E,isStale:Yh(t,n),refetch:this.refetch,promise:k(this,Dr)};if(this.options.experimental_prefetchInRender){const N=ne=>{S.status==="error"?ne.reject(S.error):S.data!==void 0&&ne.resolve(S.data)},R=()=>{const ne=$(this,Dr,S.promise=qf());N(ne)},I=k(this,Dr);switch(I.status){case"pending":t.queryHash===r.queryHash&&N(I);break;case"fulfilled":(S.status==="error"||S.data!==I.value)&&R();break;case"rejected":(S.status!=="error"||S.error!==I.reason)&&R();break}}return S}updateResult(t){const n=k(this,mt),r=this.createResult(k(this,oe),this.options);if($(this,Oi,k(this,oe).state),$(this,Xs,this.options),k(this,Oi).data!==void 0&&$(this,Js,k(this,oe)),ju(r,n))return;$(this,mt,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!k(this,eo).size)return!0;const l=new Set(a??k(this,eo));return this.options.throwOnError&&l.add("error"),Object.keys(k(this,mt)).some(u=>{const d=u;return k(this,mt)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),J(this,de,Xw).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&J(this,de,Yf).call(this)}},kt=new WeakMap,oe=new WeakMap,za=new WeakMap,mt=new WeakMap,Oi=new WeakMap,Xs=new WeakMap,Dr=new WeakMap,Nn=new WeakMap,Va=new WeakMap,Zs=new WeakMap,Js=new WeakMap,Di=new WeakMap,Fi=new WeakMap,Fr=new WeakMap,eo=new WeakMap,de=new WeakSet,zo=function(t){J(this,de,Jf).call(this);let n=k(this,oe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Zt)),n},Kf=function(){J(this,de,Xf).call(this);const t=zs(this.options.staleTime,k(this,oe));if(Wi||k(this,mt).isStale||!Uf(t))return;const r=Bw(k(this,mt).dataUpdatedAt,t)+1;$(this,Di,setTimeout(()=>{k(this,mt).isStale||this.updateResult()},r))},Gf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,oe)):this.options.refetchInterval)??!1},Qf=function(t){J(this,de,Zf).call(this),$(this,Fr,t),!(Wi||wn(this.options.enabled,k(this,oe))===!1||!Uf(k(this,Fr))||k(this,Fr)===0)&&$(this,Fi,setInterval(()=>{(this.options.refetchIntervalInBackground||Qh.isFocused())&&J(this,de,zo).call(this)},k(this,Fr)))},Yf=function(){J(this,de,Kf).call(this),J(this,de,Qf).call(this,J(this,de,Gf).call(this))},Xf=function(){k(this,Di)&&(clearTimeout(k(this,Di)),$(this,Di,void 0))},Zf=function(){k(this,Fi)&&(clearInterval(k(this,Fi)),$(this,Fi,void 0))},Jf=function(){const t=k(this,kt).getQueryCache().build(k(this,kt),this.options);if(t===k(this,oe))return;const n=k(this,oe);$(this,oe,t),$(this,za,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Xw=function(t){Ve.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,mt))}),k(this,kt).getQueryCache().notify({query:k(this,oe),type:"observerResultsUpdated"})})},Tx);function U2(e,t){return wn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rv(e,t){return U2(e,t)||e.state.data!==void 0&&ep(e,t,t.refetchOnMount)}function ep(e,t,n){if(wn(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Yh(e,t)}return!1}function Ov(e,t,n,r){return(e!==t||wn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Yh(e,n)}function Yh(e,t){return wn(t.enabled,e)!==!1&&e.isStaleByTime(zs(t.staleTime,e))}function H2(e,t){return!ju(e.getCurrentResult(),t)}var Nr,Mr,Et,tr,ar,Kl,tp,Cx,W2=(Cx=class extends yo{constructor(t,n){super();W(this,ar);W(this,Nr);W(this,Mr);W(this,Et);W(this,tr);$(this,Nr,t),this.setOptions(n),this.bindMethods(),J(this,ar,Kl).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=k(this,Nr).defaultMutationOptions(t),ju(this.options,n)||k(this,Nr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Et),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&qi(n.mutationKey)!==qi(this.options.mutationKey)?this.reset():((r=k(this,Et))==null?void 0:r.state.status)==="pending"&&k(this,Et).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Et))==null||t.removeObserver(this)}onMutationUpdate(t){J(this,ar,Kl).call(this),J(this,ar,tp).call(this,t)}getCurrentResult(){return k(this,Mr)}reset(){var t;(t=k(this,Et))==null||t.removeObserver(this),$(this,Et,void 0),J(this,ar,Kl).call(this),J(this,ar,tp).call(this)}mutate(t,n){var r;return $(this,tr,n),(r=k(this,Et))==null||r.removeObserver(this),$(this,Et,k(this,Nr).getMutationCache().build(k(this,Nr),this.options)),k(this,Et).addObserver(this),k(this,Et).execute(t)}},Nr=new WeakMap,Mr=new WeakMap,Et=new WeakMap,tr=new WeakMap,ar=new WeakSet,Kl=function(){var n;const t=((n=k(this,Et))==null?void 0:n.state)??Yw();$(this,Mr,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},tp=function(t){Ve.batch(()=>{var n,r,i,s,o,a,l,u;if(k(this,tr)&&this.hasListeners()){const d=k(this,Mr).variables,c=k(this,Mr).context;(t==null?void 0:t.type)==="success"?((r=(n=k(this,tr)).onSuccess)==null||r.call(n,t.data,d,c),(s=(i=k(this,tr)).onSettled)==null||s.call(i,t.data,null,d,c)):(t==null?void 0:t.type)==="error"&&((a=(o=k(this,tr)).onError)==null||a.call(o,t.error,d,c),(u=(l=k(this,tr)).onSettled)==null||u.call(l,void 0,t.error,d,c))}this.listeners.forEach(d=>{d(k(this,Mr))})})},Cx),Zw=g.createContext(void 0),Jw=e=>{const t=g.useContext(Zw);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q2=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(Zw.Provider,{value:e,children:t})),eb=g.createContext(!1),K2=()=>g.useContext(eb);eb.Provider;function G2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Q2=g.createContext(G2()),Y2=()=>g.useContext(Q2);function tb(e,t){return typeof e=="function"?e(...t):!!e}function np(){}var X2=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Z2=e=>{g.useEffect(()=>{e.clearReset()},[e])},J2=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&tb(n,[e.error,r]),e_=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},t_=(e,t)=>e.isLoading&&e.isFetching&&!t,n_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Dv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function r_(e,t,n){var d,c,f,p,h;const r=Jw(),i=K2(),s=Y2(),o=r.defaultQueryOptions(e);(c=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||c.call(d,o),o._optimisticResults=i?"isRestoring":"optimistic",e_(o),X2(o,s),Z2(s);const a=!r.getQueryCache().get(o.queryHash),[l]=g.useState(()=>new t(r,o)),u=l.getOptimisticResult(o);if(g.useSyncExternalStore(g.useCallback(y=>{const w=i?np:l.subscribe(Ve.batchCalls(y));return l.updateResult(),w},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),g.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),n_(o,u))throw Dv(o,l,s);if(J2({result:u,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw u.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,o,u),o.experimental_prefetchInRender&&!Wi&&t_(u,i)){const y=a?Dv(o,l,s):(h=r.getQueryCache().get(o.queryHash))==null?void 0:h.promise;y==null||y.catch(np).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?u:l.trackResult(u)}function i_(e,t){return r_(e,B2)}function Xh(e,t){const n=Jw(),[r]=g.useState(()=>new W2(n,e));g.useEffect(()=>{r.setOptions(e)},[r,e]);const i=g.useSyncExternalStore(g.useCallback(o=>r.subscribe(Ve.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=g.useCallback((o,a)=>{r.mutate(o,a).catch(np)},[r]);if(i.error&&tb(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const s_=e=>i_({queryKey:["widgets",e],queryFn:()=>o_(e)}),o_=e=>vo(`widgets/with-link/${e}`);var Q=(e=>(e.Border="widget_border",e.Background="widget_background",e.InputBackground="widget_input_background",e.InputText="widget_input_text",e.InputBorder="widget_input_border",e.ButtonBackground="widget_button_background",e.ButtonText="widget_button_text",e.TooltipBackground="widget_tooltip_background",e.TooltipText="widget_tooltip_text",e.TooltipBorder="widget_tooltip_border",e.HeaderBackground="widget_header_background",e.HeaderText="widget_header_text",e.HeaderBorder="widget_header_border",e.FooterBackground="widget_footer_background",e.FooterText="widget_footer_text",e.FooterBorder="widget_footer_border",e.MessageAdminBackground="widget_message_admin_background",e.MessageAdminText="widget_message_admin_text",e.MessageVisitorBackground="widget_message_visitor_background",e.MessageVisitorText="widget_message_visitor_text",e.GreeterTopBackground="widget_greeter_top_background",e.GreeterTopText="widget_greeter_top_text",e.GreeterBackground="widget_greeter_background",e.GreeterText="widget_greeter_text",e.GreeterBorder="widget_greeter_border",e.GreeterButtonBackground="widget_greeter_button_background",e.GreeterButtonText="widget_greeter_button_text",e))(Q||{});function a_(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 pd(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Af(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var BC=typeof WeakMap=="function"?WeakMap:Map;function hw(e,t,n){n=or(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Tu||(Tu=!0,zf=r),Af(e,t)},n}function mw(e,t,n){n=or(-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(){Af(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Af(e,t),typeof r!="function"&&(qr===null?qr=new Set([this]):qr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function ov(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new BC;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=t2.bind(null,e,t,n),t.then(e,e))}function av(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 lv(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=or(-1,1),t.tag=2,Wr(n,t,1))),n.lanes|=1),e)}var VC=pr.ReactCurrentOwner,Pt=!1;function gt(e,t,n,r){t.child=e===null?H1(t,null,n,r):io(t,e.child,n,r)}function uv(e,t,n,r,i){n=n.render;var s=t.ref;return Is(t,i),r=Oh(e,t,n,r,s,i),n=Dh(),e!==null&&!Pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dr(e,t,i)):(Ee&&n&&wh(t),t.flags|=1,gt(e,t,r,i),t.child)}function cv(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Uh(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,gw(e,t,s,r,i)):(e=ql(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:pa,n(o,r)&&e.ref===t.ref)return dr(e,t,i)}return t.flags|=1,e=Gr(s,r),e.ref=t.ref,e.return=t,t.child=e}function gw(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(pa(s,r)&&e.ref===t.ref)if(Pt=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Pt=!0);else return t.lanes=e.lanes,dr(e,t,i)}return Rf(e,t,n,r,i)}function vw(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},xe(_s,Lt),Lt|=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,xe(_s,Lt),Lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,xe(_s,Lt),Lt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,xe(_s,Lt),Lt|=r;return gt(e,t,i,n),t.child}function yw(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rf(e,t,n,r,i){var s=At(n)?Bi:pt.current;return s=no(t,s),Is(t,i),n=Oh(e,t,n,r,s,i),r=Dh(),e!==null&&!Pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dr(e,t,i)):(Ee&&r&&wh(t),t.flags|=1,gt(e,t,n,i),t.child)}function dv(e,t,n,r,i){if(At(n)){var s=!0;mu(t)}else s=!1;if(Is(t,i),t.stateNode===null)Ul(e,t),pw(t,n,r),jf(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=an(u):(u=At(n)?Bi:pt.current,u=no(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&sv(t,o,r,u),Er=!1;var f=t.memoizedState;o.state=f,wu(t,r,o,i),l=t.memoizedState,a!==r||f!==l||jt.current||Er?(typeof d=="function"&&(Pf(t,n,d,r),l=t.memoizedState),(a=Er||iv(t,n,a,r,f,l,u))?(c||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=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,q1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:gn(t.type,a),o.props=u,c=t.pendingProps,f=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=an(l):(l=At(n)?Bi:pt.current,l=no(t,l));var p=n.getDerivedStateFromProps;(d=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==c||f!==l)&&sv(t,o,r,l),Er=!1,f=t.memoizedState,o.state=f,wu(t,r,o,i);var h=t.memoizedState;a!==c||f!==h||jt.current||Er?(typeof p=="function"&&(Pf(t,n,p,r),h=t.memoizedState),(u=Er||iv(t,n,u,r,f,h,l)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,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=h),o.props=r,o.state=h,o.context=l,r=u):(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 Of(e,t,n,r,s,i)}function Of(e,t,n,r,i,s){yw(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Yg(t,n,!1),dr(e,t,s);r=t.stateNode,VC.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=io(t,e.child,null,s),t.child=io(t,null,a,s)):gt(e,t,a,s),t.memoizedState=r.state,i&&Yg(t,n,!0),t.child}function xw(e){var t=e.stateNode;t.pendingContext?Qg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qg(e,t.context,!1),Ph(e,t.containerInfo)}function fv(e,t,n,r,i){return ro(),Sh(i),t.flags|=256,gt(e,t,n,r),t.child}var Df={dehydrated:null,treeContext:null,retryLane:0};function Ff(e){return{baseLanes:e,cachePool:null,transitions:null}}function ww(e,t,n){var r=t.pendingProps,i=_e.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),xe(_e,i&1),e===null)return Cf(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=ic(o,r,0,null),e=Li(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ff(n),t.memoizedState=Df,e):Mh(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return UC(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=Gr(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Gr(a,s):(s=Li(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?Ff(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Df,r}return s=e.child,e=s.sibling,r=Gr(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 Mh(e,t){return t=ic({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function yl(e,t,n,r){return r!==null&&Sh(r),io(t,e.child,null,n),e=Mh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function UC(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=pd(Error(N(422))),yl(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ic({mode:"visible",children:r.children},i,0,null),s=Li(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&io(t,e.child,null,o),t.child.memoizedState=Ff(o),t.memoizedState=Df,s);if(!(t.mode&1))return yl(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(N(419)),r=pd(s,r,void 0),yl(e,t,o,r)}if(a=(o&e.childLanes)!==0,Pt||a){if(r=Ge,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,cr(e,i),kn(r,e,i,-1))}return Vh(),r=pd(Error(N(421))),yl(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=n2.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,It=Hr(i.nextSibling),Bt=t,Ee=!0,wn=null,e!==null&&(Jt[en++]=rr,Jt[en++]=ir,Jt[en++]=Vi,rr=e.id,ir=e.overflow,Vi=t),t=Mh(t,r.children),t.flags|=4096,t)}function pv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),_f(e.return,t,n)}function hd(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 bw(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(gt(e,t,r.children,n),r=_e.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&&pv(e,n,t);else if(e.tag===19)pv(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(xe(_e,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&&bu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),hd(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&&bu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}hd(t,!0,n,null,s);break;case"together":hd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ul(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function HC(e,t,n){switch(t.tag){case 3:xw(t),ro();break;case 5:K1(t);break;case 1:At(t.type)&&mu(t);break;case 4:Ph(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;xe(yu,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(xe(_e,_e.current&1),t.flags|=128,null):n&t.child.childLanes?ww(e,t,n):(xe(_e,_e.current&1),e=dr(e,t,n),e!==null?e.sibling:null);xe(_e,_e.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return bw(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),xe(_e,_e.current),r)break;return null;case 22:case 23:return t.lanes=0,vw(e,t,n)}return dr(e,t,n)}var Sw,Nf,kw,Ew;Sw=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}};Nf=function(){};kw=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ei($n.current);var s=null;switch(n){case"input":i=nf(e,i),r=nf(e,r),s=[];break;case"select":i=Ae({},i,{value:void 0}),r=Ae({},r,{value:void 0}),s=[];break;case"textarea":i=of(e,i),r=of(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=pu)}lf(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(oa.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(oa.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&be("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Ew=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ro(e,t){if(!Ee)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 at(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 WC(e,t,n){var r=t.pendingProps;switch(bh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return At(t.type)&&hu(),at(t),null;case 3:return r=t.stateNode,so(),ke(jt),ke(pt),Ah(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(gl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,wn!==null&&(Uf(wn),wn=null))),Nf(e,t),at(t),null;case 5:jh(t);var i=Ei(ya.current);if(n=t.type,e!==null&&t.stateNode!=null)kw(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return at(t),null}if(e=Ei($n.current),gl(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Ln]=t,r[ga]=s,e=(t.mode&1)!==0,n){case"dialog":be("cancel",r),be("close",r);break;case"iframe":case"object":case"embed":be("load",r);break;case"video":case"audio":for(i=0;i<$o.length;i++)be($o[i],r);break;case"source":be("error",r);break;case"img":case"image":case"link":be("error",r),be("load",r);break;case"details":be("toggle",r);break;case"input":Sg(r,s),be("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},be("invalid",r);break;case"textarea":Eg(r,s),be("invalid",r)}lf(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&&ml(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ml(r.textContent,a,e),i=["children",""+a]):oa.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&be("scroll",r)}switch(n){case"input":al(r),kg(r,s,!0);break;case"textarea":al(r),Tg(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=pu)}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=Zx(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[ga]=r,Sw(e,t,!1,!1),t.stateNode=e;e:{switch(o=uf(n,r),n){case"dialog":be("cancel",e),be("close",e),i=r;break;case"iframe":case"object":case"embed":be("load",e),i=r;break;case"video":case"audio":for(i=0;i<$o.length;i++)be($o[i],e);i=r;break;case"source":be("error",e),i=r;break;case"img":case"image":case"link":be("error",e),be("load",e),i=r;break;case"details":be("toggle",e),i=r;break;case"input":Sg(e,r),i=nf(e,r),be("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ae({},r,{value:void 0}),be("invalid",e);break;case"textarea":Eg(e,r),i=of(e,r),be("invalid",e);break;default:i=r}lf(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?t1(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Jx(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&aa(e,l):typeof l=="number"&&aa(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(oa.hasOwnProperty(s)?l!=null&&s==="onScroll"&&be("scroll",e):l!=null&&oh(e,s,l,o))}switch(n){case"input":al(e),kg(e,r,!1);break;case"textarea":al(e),Tg(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ei(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Fs(e,!!r.multiple,s,!1):r.defaultValue!=null&&Fs(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=pu)}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 at(t),null;case 6:if(e&&t.stateNode!=null)Ew(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=Ei(ya.current),Ei($n.current),gl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ln]=t,(s=r.nodeValue!==n)&&(e=Bt,e!==null))switch(e.tag){case 3:ml(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ml(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 at(t),null;case 13:if(ke(_e),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&It!==null&&t.mode&1&&!(t.flags&128))V1(),ro(),t.flags|=98560,s=!1;else if(s=gl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[Ln]=t}else ro(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;at(t),s=!1}else wn!==null&&(Uf(wn),wn=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||_e.current&1?Ve===0&&(Ve=3):Vh())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return so(),Nf(e,t),e===null&&ha(t.stateNode.containerInfo),at(t),null;case 10:return Th(t.type._context),at(t),null;case 17:return At(t.type)&&hu(),at(t),null;case 19:if(ke(_e),s=t.memoizedState,s===null)return at(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Ro(s,!1);else{if(Ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bu(e),o!==null){for(t.flags|=128,Ro(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 xe(_e,_e.current&1|2),t.child}e=e.sibling}s.tail!==null&&Me()>ao&&(t.flags|=128,r=!0,Ro(s,!1),t.lanes=4194304)}else{if(!r)if(e=bu(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ro(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Ee)return at(t),null}else 2*Me()-s.renderingStartTime>ao&&n!==1073741824&&(t.flags|=128,r=!0,Ro(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=Me(),t.sibling=null,n=_e.current,xe(_e,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return Bh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Lt&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function qC(e,t){switch(bh(t),t.tag){case 1:return At(t.type)&&hu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return so(),ke(jt),ke(pt),Ah(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jh(t),null;case 13:if(ke(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));ro()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(_e),null;case 4:return so(),null;case 10:return Th(t.type._context),null;case 22:case 23:return Bh(),null;case 24:return null;default:return null}}var xl=!1,dt=!1,KC=typeof WeakSet=="function"?WeakSet:Set,z=null;function Cs(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){De(e,t,r)}else n.current=null}function Mf(e,t,n){try{n()}catch(r){De(e,t,r)}}var hv=!1;function GC(e,t){if(xf=cu,e=j1(),xh(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,u=0,d=0,c=e,f=null;t:for(;;){for(var p;c!==n||i!==0&&c.nodeType!==3||(a=o+i),c!==s||r!==0&&c.nodeType!==3||(l=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)f=c,c=p;for(;;){if(c===e)break t;if(f===n&&++u===i&&(a=o),f===s&&++d===r&&(l=o),(p=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(wf={focusedElem:e,selectionRange:n},cu=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var y=h.memoizedProps,b=h.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:gn(t.type,y),b);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(C){De(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return h=hv,hv=!1,h}function Yo(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&&Mf(t,n,s)}i=i.next}while(i!==r)}}function nc(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 Lf(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 Tw(e){var t=e.alternate;t!==null&&(e.alternate=null,Tw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ln],delete t[ga],delete t[kf],delete t[AC],delete t[RC])),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 Cw(e){return e.tag===5||e.tag===3||e.tag===4}function mv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cw(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 If(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=pu));else if(r!==4&&(e=e.child,e!==null))for(If(e,t,n),e=e.sibling;e!==null;)If(e,t,n),e=e.sibling}function $f(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($f(e,t,n),e=e.sibling;e!==null;)$f(e,t,n),e=e.sibling}var et=null,yn=!1;function wr(e,t,n){for(n=n.child;n!==null;)_w(e,t,n),n=n.sibling}function _w(e,t,n){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(Gu,n)}catch{}switch(n.tag){case 5:dt||Cs(n,t);case 6:var r=et,i=yn;et=null,wr(e,t,n),et=r,yn=i,et!==null&&(yn?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(yn?(e=et,n=n.stateNode,e.nodeType===8?ad(e.parentNode,n):e.nodeType===1&&ad(e,n),da(e)):ad(et,n.stateNode));break;case 4:r=et,i=yn,et=n.stateNode.containerInfo,yn=!0,wr(e,t,n),et=r,yn=i;break;case 0:case 11:case 14:case 15:if(!dt&&(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)&&Mf(n,t,o),i=i.next}while(i!==r)}wr(e,t,n);break;case 1:if(!dt&&(Cs(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){De(n,t,a)}wr(e,t,n);break;case 21:wr(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,wr(e,t,n),dt=r):wr(e,t,n);break;default:wr(e,t,n)}}function gv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KC),t.forEach(function(r){var i=r2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pn(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:et=a.stateNode,yn=!1;break e;case 3:et=a.stateNode.containerInfo,yn=!0;break e;case 4:et=a.stateNode.containerInfo,yn=!0;break e}a=a.return}if(et===null)throw Error(N(160));_w(s,o,i),et=null,yn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){De(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pw(t,e),t=t.sibling}function Pw(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pn(t,e),Pn(e),r&4){try{Yo(3,e,e.return),nc(3,e)}catch(y){De(e,e.return,y)}try{Yo(5,e,e.return)}catch(y){De(e,e.return,y)}}break;case 1:pn(t,e),Pn(e),r&512&&n!==null&&Cs(n,n.return);break;case 5:if(pn(t,e),Pn(e),r&512&&n!==null&&Cs(n,n.return),e.flags&32){var i=e.stateNode;try{aa(i,"")}catch(y){De(e,e.return,y)}}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&&Yx(i,s),uf(a,o);var u=uf(a,s);for(o=0;o<l.length;o+=2){var d=l[o],c=l[o+1];d==="style"?t1(i,c):d==="dangerouslySetInnerHTML"?Jx(i,c):d==="children"?aa(i,c):oh(i,d,c,u)}switch(a){case"input":rf(i,s);break;case"textarea":Xx(i,s);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?Fs(i,!!s.multiple,p,!1):f!==!!s.multiple&&(s.defaultValue!=null?Fs(i,!!s.multiple,s.defaultValue,!0):Fs(i,!!s.multiple,s.multiple?[]:"",!1))}i[ga]=s}catch(y){De(e,e.return,y)}}break;case 6:if(pn(t,e),Pn(e),r&4){if(e.stateNode===null)throw Error(N(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){De(e,e.return,y)}}break;case 3:if(pn(t,e),Pn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{da(t.containerInfo)}catch(y){De(e,e.return,y)}break;case 4:pn(t,e),Pn(e);break;case 13:pn(t,e),Pn(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||($h=Me())),r&4&&gv(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(dt=(u=dt)||d,pn(t,e),dt=u):pn(t,e),Pn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(z=e,d=e.child;d!==null;){for(c=z=d;z!==null;){switch(f=z,p=f.child,f.tag){case 0:case 11:case 14:case 15:Yo(4,f,f.return);break;case 1:Cs(f,f.return);var h=f.stateNode;if(typeof h.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(y){De(r,n,y)}}break;case 5:Cs(f,f.return);break;case 22:if(f.memoizedState!==null){yv(c);continue}}p!==null?(p.return=f,z=p):yv(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{i=c.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=c.stateNode,l=c.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=e1("display",o))}catch(y){De(e,e.return,y)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){De(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:pn(t,e),Pn(e),r&4&&gv(e);break;case 21:break;default:pn(t,e),Pn(e)}}function Pn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Cw(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(aa(i,""),r.flags&=-33);var s=mv(e);$f(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=mv(e);If(e,a,o);break;default:throw Error(N(161))}}catch(l){De(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function QC(e,t,n){z=e,jw(e)}function jw(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var i=z,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||xl;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||dt;a=xl;var u=dt;if(xl=o,(dt=l)&&!u)for(z=i;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?xv(i):l!==null?(l.return=o,z=l):xv(i);for(;s!==null;)z=s,jw(s),s=s.sibling;z=i,xl=a,dt=u}vv(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,z=s):vv(e)}}function vv(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:dt||nc(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!dt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&tv(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}tv(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 u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&da(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}dt||t.flags&512&&Lf(t)}catch(f){De(t,t.return,f)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function yv(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function xv(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nc(4,t)}catch(l){De(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){De(t,i,l)}}var s=t.return;try{Lf(t)}catch(l){De(t,s,l)}break;case 5:var o=t.return;try{Lf(t)}catch(l){De(t,o,l)}}}catch(l){De(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var YC=Math.ceil,Eu=pr.ReactCurrentDispatcher,Lh=pr.ReactCurrentOwner,sn=pr.ReactCurrentBatchConfig,ce=0,Ge=null,Le=null,rt=0,Lt=0,_s=oi(0),Ve=0,Sa=null,Hi=0,rc=0,Ih=0,Xo=null,Ct=null,$h=0,ao=1/0,Jn=null,Tu=!1,zf=null,qr=null,wl=!1,Ir=null,Cu=0,Zo=0,Bf=null,Hl=-1,Wl=0;function yt(){return ce&6?Me():Hl!==-1?Hl:Hl=Me()}function Kr(e){return e.mode&1?ce&2&&rt!==0?rt&-rt:DC.transition!==null?(Wl===0&&(Wl=p1()),Wl):(e=fe,e!==0||(e=window.event,e=e===void 0?16:w1(e.type)),e):1}function kn(e,t,n,r){if(50<Zo)throw Zo=0,Bf=null,Error(N(185));Ua(e,n,r),(!(ce&2)||e!==Ge)&&(e===Ge&&(!(ce&2)&&(rc|=n),Ve===4&&_r(e,rt)),Rt(e,r),n===1&&ce===0&&!(t.mode&1)&&(ao=Me()+500,Ju&&ai()))}function Rt(e,t){var n=e.callbackNode;DT(e,t);var r=uu(e,e===Ge?rt:0);if(r===0)n!==null&&Pg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Pg(n),t===1)e.tag===0?OC(wv.bind(null,e)):$1(wv.bind(null,e)),PC(function(){!(ce&6)&&ai()}),n=null;else{switch(h1(r)){case 1:n=dh;break;case 4:n=d1;break;case 16:n=lu;break;case 536870912:n=f1;break;default:n=lu}n=Lw(n,Aw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Aw(e,t){if(Hl=-1,Wl=0,ce&6)throw Error(N(327));var n=e.callbackNode;if($s()&&e.callbackNode!==n)return null;var r=uu(e,e===Ge?rt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_u(e,r);else{t=r;var i=ce;ce|=2;var s=Ow();(Ge!==e||rt!==t)&&(Jn=null,ao=Me()+500,Mi(e,t));do try{JC();break}catch(a){Rw(e,a)}while(!0);Eh(),Eu.current=s,ce=i,Le!==null?t=0:(Ge=null,rt=0,t=Ve)}if(t!==0){if(t===2&&(i=hf(e),i!==0&&(r=i,t=Vf(e,i))),t===1)throw n=Sa,Mi(e,0),_r(e,r),Rt(e,Me()),n;if(t===6)_r(e,r);else{if(i=e.current.alternate,!(r&30)&&!XC(i)&&(t=_u(e,r),t===2&&(s=hf(e),s!==0&&(r=s,t=Vf(e,s))),t===1))throw n=Sa,Mi(e,0),_r(e,r),Rt(e,Me()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:vi(e,Ct,Jn);break;case 3:if(_r(e,r),(r&130023424)===r&&(t=$h+500-Me(),10<t)){if(uu(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){yt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Sf(vi.bind(null,e,Ct,Jn),t);break}vi(e,Ct,Jn);break;case 4:if(_r(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Sn(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*YC(r/1960))-r,10<r){e.timeoutHandle=Sf(vi.bind(null,e,Ct,Jn),r);break}vi(e,Ct,Jn);break;case 5:vi(e,Ct,Jn);break;default:throw Error(N(329))}}}return Rt(e,Me()),e.callbackNode===n?Aw.bind(null,e):null}function Vf(e,t){var n=Xo;return e.current.memoizedState.isDehydrated&&(Mi(e,t).flags|=256),e=_u(e,t),e!==2&&(t=Ct,Ct=n,t!==null&&Uf(t)),e}function Uf(e){Ct===null?Ct=e:Ct.push.apply(Ct,e)}function XC(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(!En(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 _r(e,t){for(t&=~Ih,t&=~rc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Sn(t),r=1<<n;e[n]=-1,t&=~r}}function wv(e){if(ce&6)throw Error(N(327));$s();var t=uu(e,0);if(!(t&1))return Rt(e,Me()),null;var n=_u(e,t);if(e.tag!==0&&n===2){var r=hf(e);r!==0&&(t=r,n=Vf(e,r))}if(n===1)throw n=Sa,Mi(e,0),_r(e,t),Rt(e,Me()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vi(e,Ct,Jn),Rt(e,Me()),null}function zh(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(ao=Me()+500,Ju&&ai())}}function Wi(e){Ir!==null&&Ir.tag===0&&!(ce&6)&&$s();var t=ce;ce|=1;var n=sn.transition,r=fe;try{if(sn.transition=null,fe=1,e)return e()}finally{fe=r,sn.transition=n,ce=t,!(ce&6)&&ai()}}function Bh(){Lt=_s.current,ke(_s)}function Mi(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_C(n)),Le!==null)for(n=Le.return;n!==null;){var r=n;switch(bh(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&hu();break;case 3:so(),ke(jt),ke(pt),Ah();break;case 5:jh(r);break;case 4:so();break;case 13:ke(_e);break;case 19:ke(_e);break;case 10:Th(r.type._context);break;case 22:case 23:Bh()}n=n.return}if(Ge=e,Le=e=Gr(e.current,null),rt=Lt=t,Ve=0,Sa=null,Ih=rc=Hi=0,Ct=Xo=null,ki!==null){for(t=0;t<ki.length;t++)if(n=ki[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}ki=null}return e}function Rw(e,t){do{var n=Le;try{if(Eh(),Bl.current=ku,Su){for(var r=je.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Su=!1}if(Ui=0,Ke=ze=je=null,Qo=!1,xa=0,Lh.current=null,n===null||n.return===null){Ve=1,Sa=t,Le=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=rt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,d=a,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===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 p=av(o);if(p!==null){p.flags&=-257,lv(p,o,a,s,t),p.mode&1&&ov(s,u,t),t=p,l=u;var h=t.updateQueue;if(h===null){var y=new Set;y.add(l),t.updateQueue=y}else h.add(l);break e}else{if(!(t&1)){ov(s,u,t),Vh();break e}l=Error(N(426))}}else if(Ee&&a.mode&1){var b=av(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),lv(b,o,a,s,t),Sh(oo(l,a));break e}}s=l=oo(l,a),Ve!==4&&(Ve=2),Xo===null?Xo=[s]:Xo.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var g=hw(s,l,t);ev(s,g);break e;case 1:a=l;var x=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(qr===null||!qr.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var C=mw(s,a,t);ev(s,C);break e}}s=s.return}while(s!==null)}Fw(n)}catch(T){t=T,Le===n&&n!==null&&(Le=n=n.return);continue}break}while(!0)}function Ow(){var e=Eu.current;return Eu.current=ku,e===null?ku:e}function Vh(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),Ge===null||!(Hi&268435455)&&!(rc&268435455)||_r(Ge,rt)}function _u(e,t){var n=ce;ce|=2;var r=Ow();(Ge!==e||rt!==t)&&(Jn=null,Mi(e,t));do try{ZC();break}catch(i){Rw(e,i)}while(!0);if(Eh(),ce=n,Eu.current=r,Le!==null)throw Error(N(261));return Ge=null,rt=0,Ve}function ZC(){for(;Le!==null;)Dw(Le)}function JC(){for(;Le!==null&&!ET();)Dw(Le)}function Dw(e){var t=Mw(e.alternate,e,Lt);e.memoizedProps=e.pendingProps,t===null?Fw(e):Le=t,Lh.current=null}function Fw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=qC(n,t),n!==null){n.flags&=32767,Le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,Le=null;return}}else if(n=WC(n,t,Lt),n!==null){Le=n;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);Ve===0&&(Ve=5)}function vi(e,t,n){var r=fe,i=sn.transition;try{sn.transition=null,fe=1,e2(e,t,n,r)}finally{sn.transition=i,fe=r}return null}function e2(e,t,n,r){do $s();while(Ir!==null);if(ce&6)throw Error(N(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(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(FT(e,s),e===Ge&&(Le=Ge=null,rt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||wl||(wl=!0,Lw(lu,function(){return $s(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=sn.transition,sn.transition=null;var o=fe;fe=1;var a=ce;ce|=4,Lh.current=null,GC(e,n),Pw(n,e),wC(wf),cu=!!xf,wf=xf=null,e.current=n,QC(n),TT(),ce=a,fe=o,sn.transition=s}else e.current=n;if(wl&&(wl=!1,Ir=e,Cu=i),s=e.pendingLanes,s===0&&(qr=null),PT(n.stateNode),Rt(e,Me()),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(Tu)throw Tu=!1,e=zf,zf=null,e;return Cu&1&&e.tag!==0&&$s(),s=e.pendingLanes,s&1?e===Bf?Zo++:(Zo=0,Bf=e):Zo=0,ai(),null}function $s(){if(Ir!==null){var e=h1(Cu),t=sn.transition,n=fe;try{if(sn.transition=null,fe=16>e?16:e,Ir===null)var r=!1;else{if(e=Ir,Ir=null,Cu=0,ce&6)throw Error(N(331));var i=ce;for(ce|=4,z=e.current;z!==null;){var s=z,o=s.child;if(z.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var d=z;switch(d.tag){case 0:case 11:case 15:Yo(8,d,s)}var c=d.child;if(c!==null)c.return=d,z=c;else for(;z!==null;){d=z;var f=d.sibling,p=d.return;if(Tw(d),d===u){z=null;break}if(f!==null){f.return=p,z=f;break}z=p}}}var h=s.alternate;if(h!==null){var y=h.child;if(y!==null){h.child=null;do{var b=y.sibling;y.sibling=null,y=b}while(y!==null)}}z=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,z=o;else e:for(;z!==null;){if(s=z,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Yo(9,s,s.return)}var g=s.sibling;if(g!==null){g.return=s.return,z=g;break e}z=s.return}}var x=e.current;for(z=x;z!==null;){o=z;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,z=w;else e:for(o=x;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:nc(9,a)}}catch(T){De(a,a.return,T)}if(a===o){z=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,z=C;break e}z=a.return}}if(ce=i,ai(),In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(Gu,e)}catch{}r=!0}return r}finally{fe=n,sn.transition=t}}return!1}function bv(e,t,n){t=oo(n,t),t=hw(e,t,1),e=Wr(e,t,1),t=yt(),e!==null&&(Ua(e,1,t),Rt(e,t))}function De(e,t,n){if(e.tag===3)bv(e,e,n);else for(;t!==null;){if(t.tag===3){bv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(qr===null||!qr.has(r))){e=oo(n,e),e=mw(t,e,1),t=Wr(t,e,1),e=yt(),t!==null&&(Ua(t,1,e),Rt(t,e));break}}t=t.return}}function t2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=yt(),e.pingedLanes|=e.suspendedLanes&n,Ge===e&&(rt&n)===n&&(Ve===4||Ve===3&&(rt&130023424)===rt&&500>Me()-$h?Mi(e,0):Ih|=n),Rt(e,t)}function Nw(e,t){t===0&&(e.mode&1?(t=cl,cl<<=1,!(cl&130023424)&&(cl=4194304)):t=1);var n=yt();e=cr(e,t),e!==null&&(Ua(e,t,n),Rt(e,n))}function n2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nw(e,n)}function r2(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(N(314))}r!==null&&r.delete(t),Nw(e,n)}var Mw;Mw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jt.current)Pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Pt=!1,HC(e,t,n);Pt=!!(e.flags&131072)}else Pt=!1,Ee&&t.flags&1048576&&z1(t,vu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ul(e,t),e=t.pendingProps;var i=no(t,pt.current);Is(t,n),i=Oh(null,t,r,e,i,n);var s=Dh();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,mu(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_h(t),i.updater=tc,t.stateNode=i,i._reactInternals=t,jf(t,r,e,n),t=Of(null,t,r,!0,s,n)):(t.tag=0,Ee&&s&&wh(t),gt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ul(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=s2(r),e=gn(r,e),i){case 0:t=Rf(null,t,r,e,n);break e;case 1:t=dv(null,t,r,e,n);break e;case 11:t=uv(null,t,r,e,n);break e;case 14:t=cv(null,t,r,gn(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),Rf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),dv(e,t,r,i,n);case 3:e:{if(xw(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,i=s.element,q1(e,t),wu(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=oo(Error(N(423)),t),t=fv(e,t,r,n,i);break e}else if(r!==i){i=oo(Error(N(424)),t),t=fv(e,t,r,n,i);break e}else for(It=Hr(t.stateNode.containerInfo.firstChild),Bt=t,Ee=!0,wn=null,n=H1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ro(),r===i){t=dr(e,t,n);break e}gt(e,t,r,n)}t=t.child}return t;case 5:return K1(t),e===null&&Cf(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,bf(r,i)?o=null:s!==null&&bf(r,s)&&(t.flags|=32),yw(e,t),gt(e,t,o,n),t.child;case 6:return e===null&&Cf(t),null;case 13:return ww(e,t,n);case 4:return Ph(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):gt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),uv(e,t,r,i,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(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,xe(yu,r._currentValue),r._currentValue=o,s!==null)if(En(s.value,o)){if(s.children===i.children&&!jt.current){t=dr(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=or(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),_f(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(N(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),_f(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}gt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Is(t,n),i=an(i),r=r(i),t.flags|=1,gt(e,t,r,n),t.child;case 14:return r=t.type,i=gn(r,t.pendingProps),i=gn(r.type,i),cv(e,t,r,i,n);case 15:return gw(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),Ul(e,t),t.tag=1,At(r)?(e=!0,mu(t)):e=!1,Is(t,n),pw(t,r,i),jf(t,r,i,n),Of(null,t,r,!0,e,n);case 19:return bw(e,t,n);case 22:return vw(e,t,n)}throw Error(N(156,t.tag))};function Lw(e,t){return c1(e,t)}function i2(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 nn(e,t,n,r){return new i2(e,t,n,r)}function Uh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function s2(e){if(typeof e=="function")return Uh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lh)return 11;if(e===uh)return 14}return 2}function Gr(e,t){var n=e.alternate;return n===null?(n=nn(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 ql(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Uh(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case vs:return Li(n.children,i,s,t);case ah:o=8,i|=8;break;case Zd:return e=nn(12,n,t,i|2),e.elementType=Zd,e.lanes=s,e;case Jd:return e=nn(13,n,t,i),e.elementType=Jd,e.lanes=s,e;case ef:return e=nn(19,n,t,i),e.elementType=ef,e.lanes=s,e;case Kx:return ic(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wx:o=10;break e;case qx:o=9;break e;case lh:o=11;break e;case uh:o=14;break e;case kr:o=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=nn(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function Li(e,t,n,r){return e=nn(7,e,r,t),e.lanes=n,e}function ic(e,t,n,r){return e=nn(22,e,r,t),e.elementType=Kx,e.lanes=n,e.stateNode={isHidden:!1},e}function md(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function gd(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function o2(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=Yc(0),this.expirationTimes=Yc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yc(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Hh(e,t,n,r,i,s,o,a,l){return e=new o2(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=nn(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_h(s),e}function a2(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gs,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Iw(e){if(!e)return ti;e=e._reactInternals;e:{if(Xi(e)!==e||e.tag!==1)throw Error(N(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(N(171))}if(e.tag===1){var n=e.type;if(At(n))return I1(e,n,t)}return t}function $w(e,t,n,r,i,s,o,a,l){return e=Hh(n,r,!0,e,i,s,o,a,l),e.context=Iw(null),n=e.current,r=yt(),i=Kr(n),s=or(r,i),s.callback=t??null,Wr(n,s,i),e.current.lanes=i,Ua(e,i,r),Rt(e,r),e}function sc(e,t,n,r){var i=t.current,s=yt(),o=Kr(i);return n=Iw(n),t.context===null?t.context=n:t.pendingContext=n,t=or(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Wr(i,t,o),e!==null&&(kn(e,i,o,s),zl(e,i,o)),o}function Pu(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 Sv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Wh(e,t){Sv(e,t),(e=e.alternate)&&Sv(e,t)}function l2(){return null}var zw=typeof reportError=="function"?reportError:function(e){console.error(e)};function qh(e){this._internalRoot=e}oc.prototype.render=qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));sc(e,t,null,null)};oc.prototype.unmount=qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wi(function(){sc(null,e,null,null)}),t[ur]=null}};function oc(e){this._internalRoot=e}oc.prototype.unstable_scheduleHydration=function(e){if(e){var t=v1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cr.length&&t!==0&&t<Cr[n].priority;n++);Cr.splice(n,0,e),n===0&&x1(e)}};function Kh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ac(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kv(){}function u2(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Pu(o);s.call(u)}}var o=$w(t,r,e,0,null,!1,!1,"",kv);return e._reactRootContainer=o,e[ur]=o.current,ha(e.nodeType===8?e.parentNode:e),Wi(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Pu(l);a.call(u)}}var l=Hh(e,0,!1,null,null,!1,!1,"",kv);return e._reactRootContainer=l,e[ur]=l.current,ha(e.nodeType===8?e.parentNode:e),Wi(function(){sc(t,l,n,r)}),l}function lc(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=Pu(o);a.call(l)}}sc(t,o,e,i)}else o=u2(n,t,e,i,r);return Pu(o)}m1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Io(t.pendingLanes);n!==0&&(fh(t,n|1),Rt(t,Me()),!(ce&6)&&(ao=Me()+500,ai()))}break;case 13:Wi(function(){var r=cr(e,1);if(r!==null){var i=yt();kn(r,e,1,i)}}),Wh(e,1)}};ph=function(e){if(e.tag===13){var t=cr(e,134217728);if(t!==null){var n=yt();kn(t,e,134217728,n)}Wh(e,134217728)}};g1=function(e){if(e.tag===13){var t=Kr(e),n=cr(e,t);if(n!==null){var r=yt();kn(n,e,t,r)}Wh(e,t)}};v1=function(){return fe};y1=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}};df=function(e,t,n){switch(t){case"input":if(rf(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=Zu(r);if(!i)throw Error(N(90));Qx(r),rf(r,i)}}}break;case"textarea":Xx(e,n);break;case"select":t=n.value,t!=null&&Fs(e,!!n.multiple,t,!1)}};i1=zh;s1=Wi;var c2={usingClientEntryPoint:!1,Events:[Wa,bs,Zu,n1,r1,zh]},Oo={findFiberByHostInstance:Si,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},d2={bundleType:Oo.bundleType,version:Oo.version,rendererPackageName:Oo.rendererPackageName,rendererConfig:Oo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:pr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=l1(e),e===null?null:e.stateNode},findFiberByHostInstance:Oo.findFiberByHostInstance||l2,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 bl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bl.isDisabled&&bl.supportsFiber)try{Gu=bl.inject(d2),In=bl}catch{}}Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=c2;Ut.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kh(t))throw Error(N(200));return a2(e,t,null,n)};Ut.createRoot=function(e,t){if(!Kh(e))throw Error(N(299));var n=!1,r="",i=zw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Hh(e,1,!1,null,null,n,!1,r,i),e[ur]=t.current,ha(e.nodeType===8?e.parentNode:e),new qh(t)};Ut.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=l1(t),e=e===null?null:e.stateNode,e};Ut.flushSync=function(e){return Wi(e)};Ut.hydrate=function(e,t,n){if(!ac(t))throw Error(N(200));return lc(null,e,t,!0,n)};Ut.hydrateRoot=function(e,t,n){if(!Kh(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=zw;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=$w(t,null,e,1,n??null,i,!1,s,o),e[ur]=t.current,ha(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 oc(t)};Ut.render=function(e,t,n){if(!ac(t))throw Error(N(200));return lc(null,e,t,!1,n)};Ut.unmountComponentAtNode=function(e){if(!ac(e))throw Error(N(40));return e._reactRootContainer?(Wi(function(){lc(null,null,e,!1,function(){e._reactRootContainer=null,e[ur]=null})}),!0):!1};Ut.unstable_batchedUpdates=zh;Ut.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ac(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return lc(e,t,n,!1,r)};Ut.version="18.3.1-next-f1338f8080-20240426";function Bw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Bw)}catch(e){console.error(e)}}Bw(),Bx.exports=Ut;var Vw=Bx.exports;const f2=Qi(Vw);var Uw,Ev=Vw;Uw=Ev.createRoot,Ev.hydrateRoot;const p2="@alfatech/livechat",h2="v2025.05.29.2",m2="module",g2="https://api-live.alfatek.dev",v2="wss://api-live.alfatek.dev",y2=["dist","README.md"],x2="dist/widget.js",w2={dev:"vite",build:"tsc -b && vite build",lint:"biome lint --write",prepare:"husky",format:"biome format --write && yarn lint"},b2={"@headlessui/react":"^2.2.2","@tailwindcss/vite":"^4.1.4","@tanstack/react-query":"^5.59.20",classnames:"^2.5.1",dayjs:"^1.11.13",formik:"^2.4.6","framer-motion":"^12.7.4","lucide-react":"^0.511.0",react:"^18.3.1","react-dom":"^18.3.1","react-dropzone":"^14.3.8","react-router-dom":"^6.26.2","socket.io-client":"^4.8.1",sonner:"^2.0.1",yup:"^1.4.0",zustand:"^4.5.5"},S2={"@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:"^4.1.4",typescript:"^5.5.3",vite:"^5.4.1"},Hw={name:p2,private:!1,version:h2,type:m2,apiURL:g2,wsURL:v2,files:y2,main:x2,scripts:w2,dependencies:b2,devDependencies:S2,"lint-staged":{"./**/*.{js,ts,tsx,json}":["npm run format"]}},k2=Hw.apiURL,E2=Hw.wsURL,T2=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],C2=(e,t)=>[{message:"message"in t?t.message:"Not Found"},404],_2={429:T2,404:C2};async function vo(e,t={}){const n={};!(t.body instanceof FormData)&&t.body&&(n["Content-Type"]="application/json");const r=await fetch(`${k2}/${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=_2[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 uc=e=>[200,201,204].includes(e),P2=(e,{arrayWithBrackets:t=!1,arrayWithBracketAndIndex:n=!0}={})=>{const r=new FormData;for(const[i,s]of Object.entries(e)){if(Array.isArray(s)){for(const o in s)t?r.append(`${i}[]`,s[o]):n?r.append(`${i}[${o}]`,s[o]):r.append(i,s[o]);continue}typeof s<"u"&&s!==null&&r.append(i,s)}return r};var yo=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(){}},qi=typeof window>"u"||"Deno"in globalThis;function Zt(){}function j2(e,t){return typeof e=="function"?e(t):e}function Hf(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ww(e,t){return Math.max(e+(t||0)-Date.now(),0)}function zs(e,t){return typeof e=="function"?e(t):e}function bn(e,t){return typeof e=="function"?e(t):e}function Tv(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==Gh(o,t.options))return!1}else if(!ka(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 Cv(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ki(t.options.mutationKey)!==Ki(s))return!1}else if(!ka(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Gh(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ki)(e)}function Ki(e){return JSON.stringify(e,(t,n)=>Wf(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ka(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ka(e[n],t[n])):!1}function qw(e,t){if(e===t)return e;const n=_v(e)&&_v(t);if(n||Wf(e)&&Wf(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 u=0;u<o;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,l++):(a[d]=qw(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&l++)}return i===o&&l===i?e:a}return t}function ju(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 _v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wf(e){if(!Pv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Pv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Pv(e){return Object.prototype.toString.call(e)==="[object Object]"}function A2(e){return new Promise(t=>{setTimeout(t,e)})}function qf(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qw(e,t):t}function R2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function O2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Qh=Symbol();function Kw(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Qh?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ji,Pr,Vs,wx,D2=(wx=class extends yo{constructor(){super();W(this,ji);W(this,Pr);W(this,Vs);$(this,Vs,t=>{if(!qi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){k(this,Pr)||this.setEventListener(k(this,Vs))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,Pr))==null||t.call(this),$(this,Pr,void 0))}setEventListener(t){var n;$(this,Vs,t),(n=k(this,Pr))==null||n.call(this),$(this,Pr,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){k(this,ji)!==t&&($(this,ji,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof k(this,ji)=="boolean"?k(this,ji):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ji=new WeakMap,Pr=new WeakMap,Vs=new WeakMap,wx),Yh=new D2,Us,jr,Hs,bx,F2=(bx=class extends yo{constructor(){super();W(this,Us,!0);W(this,jr);W(this,Hs);$(this,Hs,t=>{if(!qi&&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(){k(this,jr)||this.setEventListener(k(this,Hs))}onUnsubscribe(){var t;this.hasListeners()||((t=k(this,jr))==null||t.call(this),$(this,jr,void 0))}setEventListener(t){var n;$(this,Hs,t),(n=k(this,jr))==null||n.call(this),$(this,jr,t(this.setOnline.bind(this)))}setOnline(t){k(this,Us)!==t&&($(this,Us,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return k(this,Us)}},Us=new WeakMap,jr=new WeakMap,Hs=new WeakMap,bx),Au=new F2;function Kf(){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 N2(e){return Math.min(1e3*2**e,3e4)}function Gw(e){return(e??"online")==="online"?Au.isOnline():!0}var Qw=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vd(e){return e instanceof Qw}function Yw(e){let t=!1,n=0,r=!1,i;const s=Kf(),o=y=>{var b;r||(f(new Qw(y)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},u=()=>Yh.isFocused()&&(e.networkMode==="always"||Au.isOnline())&&e.canRun(),d=()=>Gw(e.networkMode)&&e.canRun(),c=y=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,y),i==null||i(),s.resolve(y))},f=y=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,y),i==null||i(),s.reject(y))},p=()=>new Promise(y=>{var b;i=g=>{(r||u())&&y(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),h=()=>{if(r)return;let y;const b=n===0?e.initialPromise:void 0;try{y=b??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(c).catch(g=>{var E;if(r)return;const x=e.retry??(qi?0:3),w=e.retryDelay??N2,C=typeof w=="function"?w(n,g):w,T=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,g);if(t||!T){f(g);return}n++,(E=e.onFail)==null||E.call(e,n,g),A2(C).then(()=>u()?void 0:p()).then(()=>{t?f(g):h()})})};return{promise:s,cancel:o,continue:()=>(i==null||i(),s),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?h():p().then(h),s)}}function M2(){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=M2(),Ai,Sx,Xw=(Sx=class{constructor(){W(this,Ai)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hf(this.gcTime)&&$(this,Ai,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qi?1/0:5*60*1e3))}clearGcTimeout(){k(this,Ai)&&(clearTimeout(k(this,Ai)),$(this,Ai,void 0))}},Ai=new WeakMap,Sx),Ws,qs,Xt,ut,Ia,Ri,vn,Zn,kx,L2=(kx=class extends Xw{constructor(t){super();W(this,vn);W(this,Ws);W(this,qs);W(this,Xt);W(this,ut);W(this,Ia);W(this,Ri);$(this,Ri,!1),$(this,Ia,t.defaultOptions),this.setOptions(t.options),this.observers=[],$(this,Xt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,$(this,Ws,I2(this.options)),this.state=t.state??k(this,Ws),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=k(this,ut))==null?void 0:t.promise}setOptions(t){this.options={...k(this,Ia),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Xt).remove(this)}setData(t,n){const r=qf(this.state.data,t,this.options);return ie(this,vn,Zn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){ie(this,vn,Zn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=k(this,ut))==null?void 0:r.promise;return(i=k(this,ut))==null||i.cancel(t),n?n.then(Zt).catch(Zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,Ws))}isActive(){return this.observers.some(t=>bn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Qh||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||!Ww(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,ut))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=k(this,ut))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),k(this,Xt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(k(this,ut)&&(k(this,Ri)?k(this,ut).cancel({revert:!0}):k(this,ut).cancelRetry()),this.scheduleGc()),k(this,Xt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ie(this,vn,Zn).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(k(this,ut))return k(this,ut).continueRetry(),k(this,ut).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>($(this,Ri,!0),r.signal)})},s=()=>{const c=Kw(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return i(f),$(this,Ri,!1),this.options.persister?this.options.persister(c,f,this):c(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),$(this,qs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=o.fetchOptions)==null?void 0:u.meta))&&ie(this,vn,Zn).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const a=c=>{var f,p,h,y;vd(c)&&c.silent||ie(this,vn,Zn).call(this,{type:"error",error:c}),vd(c)||((p=(f=k(this,Xt).config).onError)==null||p.call(f,c,this),(y=(h=k(this,Xt).config).onSettled)==null||y.call(h,this.state.data,c,this)),this.scheduleGc()};return $(this,ut,Yw({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var f,p,h,y;if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(b){a(b);return}(p=(f=k(this,Xt).config).onSuccess)==null||p.call(f,c,this),(y=(h=k(this,Xt).config).onSettled)==null||y.call(h,c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,f)=>{ie(this,vn,Zn).call(this,{type:"failed",failureCount:c,error:f})},onPause:()=>{ie(this,vn,Zn).call(this,{type:"pause"})},onContinue:()=>{ie(this,vn,Zn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),k(this,ut).start()}},Ws=new WeakMap,qs=new WeakMap,Xt=new WeakMap,ut=new WeakMap,Ia=new WeakMap,Ri=new WeakMap,vn=new WeakSet,Zn=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,...Zw(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 vd(i)&&i.revert&&k(this,qs)?{...k(this,qs),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()}),k(this,Xt).notify({query:this,type:"updated",action:t})})},kx);function Zw(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gw(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function I2(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 Dn,Ex,$2=(Ex=class extends yo{constructor(t={}){super();W(this,Dn);this.config=t,$(this,Dn,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Gh(i,n);let o=this.get(s);return o||(o=new L2({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){k(this,Dn).has(t.queryHash)||(k(this,Dn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=k(this,Dn).get(t.queryHash);n&&(t.destroy(),n===t&&k(this,Dn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Be.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return k(this,Dn).get(t)}getAll(){return[...k(this,Dn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Tv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Tv(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()})})}},Dn=new WeakMap,Ex),Fn,ht,Oi,Nn,br,Tx,z2=(Tx=class extends Xw{constructor(t){super();W(this,Nn);W(this,Fn);W(this,ht);W(this,Oi);this.mutationId=t.mutationId,$(this,ht,t.mutationCache),$(this,Fn,[]),this.state=t.state||Jw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){k(this,Fn).includes(t)||(k(this,Fn).push(t),this.clearGcTimeout(),k(this,ht).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){$(this,Fn,k(this,Fn).filter(n=>n!==t)),this.scheduleGc(),k(this,ht).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){k(this,Fn).length||(this.state.status==="pending"?this.scheduleGc():k(this,ht).remove(this))}continue(){var t;return((t=k(this,Oi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,o,a,l,u,d,c,f,p,h,y,b,g,x,w,C,T,E,S;$(this,Oi,Yw({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,D)=>{ie(this,Nn,br).call(this,{type:"failed",failureCount:_,error:D})},onPause:()=>{ie(this,Nn,br).call(this,{type:"pause"})},onContinue:()=>{ie(this,Nn,br).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,ht).canRun(this)}));const n=this.state.status==="pending",r=!k(this,Oi).canStart();try{if(!n){ie(this,Nn,br).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(i=k(this,ht).config).onMutate)==null?void 0:s.call(i,t,this));const D=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));D!==this.state.context&&ie(this,Nn,br).call(this,{type:"pending",context:D,variables:t,isPaused:r})}const _=await k(this,Oi).start();return await((u=(l=k(this,ht).config).onSuccess)==null?void 0:u.call(l,_,t,this.state.context,this)),await((c=(d=this.options).onSuccess)==null?void 0:c.call(d,_,t,this.state.context)),await((p=(f=k(this,ht).config).onSettled)==null?void 0:p.call(f,_,null,this.state.variables,this.state.context,this)),await((y=(h=this.options).onSettled)==null?void 0:y.call(h,_,null,t,this.state.context)),ie(this,Nn,br).call(this,{type:"success",data:_}),_}catch(_){try{throw await((g=(b=k(this,ht).config).onError)==null?void 0:g.call(b,_,t,this.state.context,this)),await((w=(x=this.options).onError)==null?void 0:w.call(x,_,t,this.state.context)),await((T=(C=k(this,ht).config).onSettled)==null?void 0:T.call(C,void 0,_,this.state.variables,this.state.context,this)),await((S=(E=this.options).onSettled)==null?void 0:S.call(E,void 0,_,t,this.state.context)),_}finally{ie(this,Nn,br).call(this,{type:"error",error:_})}}finally{k(this,ht).runNext(this)}}},Fn=new WeakMap,ht=new WeakMap,Oi=new WeakMap,Nn=new WeakSet,br=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(()=>{k(this,Fn).forEach(r=>{r.onMutationUpdate(t)}),k(this,ht).notify({mutation:this,type:"updated",action:t})})},Tx);function Jw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Mt,$a,Cx,B2=(Cx=class extends yo{constructor(t={}){super();W(this,Mt);W(this,$a);this.config=t,$(this,Mt,new Map),$(this,$a,Date.now())}build(t,n,r){const i=new z2({mutationCache:this,mutationId:++il(this,$a)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=Sl(t),r=k(this,Mt).get(n)??[];r.push(t),k(this,Mt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Sl(t);if(k(this,Mt).has(n)){const i=(r=k(this,Mt).get(n))==null?void 0:r.filter(s=>s!==t);i&&(i.length===0?k(this,Mt).delete(n):k(this,Mt).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=k(this,Mt).get(Sl(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=k(this,Mt).get(Sl(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[...k(this,Mt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Cv(n,r))}findAll(t={}){return this.getAll().filter(n=>Cv(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(Zt))))}},Mt=new WeakMap,$a=new WeakMap,Cx);function Sl(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function jv(e){return{onFetch:(t,n)=>{var d,c,f,p,h;const r=t.options,i=(f=(c=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:f.direction,s=((p=t.state.data)==null?void 0:p.pages)||[],o=((h=t.state.data)==null?void 0:h.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let y=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=Kw(t.options,t.fetchOptions),x=async(w,C,T)=>{if(y)return Promise.reject();if(C==null&&w.pages.length)return Promise.resolve(w);const E={queryKey:t.queryKey,pageParam:C,direction:T?"backward":"forward",meta:t.options.meta};b(E);const S=await g(E),{maxPages:_}=t.options,D=T?O2:R2;return{pages:D(w.pages,S,_),pageParams:D(w.pageParams,C,_)}};if(i&&s.length){const w=i==="backward",C=w?V2:Av,T={pages:s,pageParams:o},E=C(r,T);a=await x(T,E,w)}else{const w=e??s.length;do{const C=l===0?o[0]??r.initialPageParam:Av(r,a);if(l>0&&C==null)break;a=await x(a,C),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var y,b;return(b=(y=t.options).persister)==null?void 0:b.call(y,u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function Av(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 V2(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 Re,Ar,Rr,Ks,Gs,Or,Qs,Ys,_x,U2=(_x=class{constructor(e={}){W(this,Re);W(this,Ar);W(this,Rr);W(this,Ks);W(this,Gs);W(this,Or);W(this,Qs);W(this,Ys);$(this,Re,e.queryCache||new $2),$(this,Ar,e.mutationCache||new B2),$(this,Rr,e.defaultOptions||{}),$(this,Ks,new Map),$(this,Gs,new Map),$(this,Or,0)}mount(){il(this,Or)._++,k(this,Or)===1&&($(this,Qs,Yh.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Re).onFocus())})),$(this,Ys,Au.subscribe(async e=>{e&&(await this.resumePausedMutations(),k(this,Re).onOnline())})))}unmount(){var e,t;il(this,Or)._--,k(this,Or)===0&&((e=k(this,Qs))==null||e.call(this),$(this,Qs,void 0),(t=k(this,Ys))==null||t.call(this),$(this,Ys,void 0))}isFetching(e){return k(this,Re).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return k(this,Ar).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Re).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=k(this,Re).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(zs(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return k(this,Re).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=k(this,Re).get(r.queryHash),s=i==null?void 0:i.state.data,o=j2(t,s);if(o!==void 0)return k(this,Re).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Be.batch(()=>k(this,Re).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=k(this,Re).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=k(this,Re);Be.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=k(this,Re),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(()=>k(this,Re).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Zt).catch(Zt)}invalidateQueries(e,t={}){return Be.batch(()=>{if(k(this,Re).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(()=>k(this,Re).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Zt)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Zt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=k(this,Re).build(this,t);return n.isStaleByTime(zs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Zt).catch(Zt)}fetchInfiniteQuery(e){return e.behavior=jv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Zt).catch(Zt)}ensureInfiniteQueryData(e){return e.behavior=jv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Au.isOnline()?k(this,Ar).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,Re)}getMutationCache(){return k(this,Ar)}getDefaultOptions(){return k(this,Rr)}setDefaultOptions(e){$(this,Rr,e)}setQueryDefaults(e,t){k(this,Ks).set(Ki(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...k(this,Ks).values()],n={};return t.forEach(r=>{ka(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){k(this,Gs).set(Ki(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...k(this,Gs).values()];let n={};return t.forEach(r=>{ka(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...k(this,Rr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Gh(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===Qh&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...k(this,Rr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){k(this,Re).clear(),k(this,Ar).clear()}},Re=new WeakMap,Ar=new WeakMap,Rr=new WeakMap,Ks=new WeakMap,Gs=new WeakMap,Or=new WeakMap,Qs=new WeakMap,Ys=new WeakMap,_x),kt,ae,za,mt,Di,Xs,Dr,Mn,Ba,Zs,Js,Fi,Ni,Fr,eo,de,zo,Gf,Qf,Yf,Xf,Zf,Jf,ep,eb,Px,H2=(Px=class extends yo{constructor(t,n){super();W(this,de);W(this,kt);W(this,ae);W(this,za);W(this,mt);W(this,Di);W(this,Xs);W(this,Dr);W(this,Mn);W(this,Ba);W(this,Zs);W(this,Js);W(this,Fi);W(this,Ni);W(this,Fr);W(this,eo,new Set);this.options=n,$(this,kt,t),$(this,Mn,null),$(this,Dr,Kf()),this.options.experimental_prefetchInRender||k(this,Dr).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&&(k(this,ae).addObserver(this),Rv(k(this,ae),this.options)?ie(this,de,zo).call(this):this.updateResult(),ie(this,de,Xf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tp(k(this,ae),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tp(k(this,ae),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ie(this,de,Zf).call(this),ie(this,de,Jf).call(this),k(this,ae).removeObserver(this)}setOptions(t,n){const r=this.options,i=k(this,ae);if(this.options=k(this,kt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof bn(this.options.enabled,k(this,ae))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ie(this,de,ep).call(this),k(this,ae).setOptions(this.options),r._defaulted&&!ju(this.options,r)&&k(this,kt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,ae),observer:this});const s=this.hasListeners();s&&Ov(k(this,ae),i,this.options,r)&&ie(this,de,zo).call(this),this.updateResult(n),s&&(k(this,ae)!==i||bn(this.options.enabled,k(this,ae))!==bn(r.enabled,k(this,ae))||zs(this.options.staleTime,k(this,ae))!==zs(r.staleTime,k(this,ae)))&&ie(this,de,Gf).call(this);const o=ie(this,de,Qf).call(this);s&&(k(this,ae)!==i||bn(this.options.enabled,k(this,ae))!==bn(r.enabled,k(this,ae))||o!==k(this,Fr))&&ie(this,de,Yf).call(this,o)}getOptimisticResult(t){const n=k(this,kt).getQueryCache().build(k(this,kt),t),r=this.createResult(n,t);return q2(this,r)&&($(this,mt,r),$(this,Xs,this.options),$(this,Di,k(this,ae).state)),r}getCurrentResult(){return k(this,mt)}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){k(this,eo).add(t)}getCurrentQuery(){return k(this,ae)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=k(this,kt).defaultQueryOptions(t),r=k(this,kt).getQueryCache().build(k(this,kt),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return ie(this,de,zo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,mt)))}createResult(t,n){var _;const r=k(this,ae),i=this.options,s=k(this,mt),o=k(this,Di),a=k(this,Xs),u=t!==r?t.state:k(this,za),{state:d}=t;let c={...d},f=!1,p;if(n._optimisticResults){const D=this.hasListeners(),R=!D&&Rv(t,n),I=D&&Ov(t,r,n,i);(R||I)&&(c={...c,...Zw(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:h,errorUpdatedAt:y,status:b}=c;if(n.select&&c.data!==void 0)if(s&&c.data===(o==null?void 0:o.data)&&n.select===k(this,Ba))p=k(this,Zs);else try{$(this,Ba,n.select),p=n.select(c.data),p=qf(s==null?void 0:s.data,p,n),$(this,Zs,p),$(this,Mn,null)}catch(D){$(this,Mn,D)}else p=c.data;if(n.placeholderData!==void 0&&p===void 0&&b==="pending"){let D;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))D=s.data;else if(D=typeof n.placeholderData=="function"?n.placeholderData((_=k(this,Js))==null?void 0:_.state.data,k(this,Js)):n.placeholderData,n.select&&D!==void 0)try{D=n.select(D),$(this,Mn,null)}catch(R){$(this,Mn,R)}D!==void 0&&(b="success",p=qf(s==null?void 0:s.data,D,n),f=!0)}k(this,Mn)&&(h=k(this,Mn),p=k(this,Zs),y=Date.now(),b="error");const g=c.fetchStatus==="fetching",x=b==="pending",w=b==="error",C=x&&g,T=p!==void 0,S={status:b,fetchStatus:c.fetchStatus,isPending:x,isSuccess:b==="success",isError:w,isInitialLoading:C,isLoading:C,data:p,dataUpdatedAt:c.dataUpdatedAt,error:h,errorUpdatedAt:y,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!x,isLoadingError:w&&!T,isPaused:c.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&T,isStale:Xh(t,n),refetch:this.refetch,promise:k(this,Dr)};if(this.options.experimental_prefetchInRender){const D=ne=>{S.status==="error"?ne.reject(S.error):S.data!==void 0&&ne.resolve(S.data)},R=()=>{const ne=$(this,Dr,S.promise=Kf());D(ne)},I=k(this,Dr);switch(I.status){case"pending":t.queryHash===r.queryHash&&D(I);break;case"fulfilled":(S.status==="error"||S.data!==I.value)&&R();break;case"rejected":(S.status!=="error"||S.error!==I.reason)&&R();break}}return S}updateResult(t){const n=k(this,mt),r=this.createResult(k(this,ae),this.options);if($(this,Di,k(this,ae).state),$(this,Xs,this.options),k(this,Di).data!==void 0&&$(this,Js,k(this,ae)),ju(r,n))return;$(this,mt,r);const i={},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!k(this,eo).size)return!0;const l=new Set(a??k(this,eo));return this.options.throwOnError&&l.add("error"),Object.keys(k(this,mt)).some(u=>{const d=u;return k(this,mt)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),ie(this,de,eb).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ie(this,de,Xf).call(this)}},kt=new WeakMap,ae=new WeakMap,za=new WeakMap,mt=new WeakMap,Di=new WeakMap,Xs=new WeakMap,Dr=new WeakMap,Mn=new WeakMap,Ba=new WeakMap,Zs=new WeakMap,Js=new WeakMap,Fi=new WeakMap,Ni=new WeakMap,Fr=new WeakMap,eo=new WeakMap,de=new WeakSet,zo=function(t){ie(this,de,ep).call(this);let n=k(this,ae).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Zt)),n},Gf=function(){ie(this,de,Zf).call(this);const t=zs(this.options.staleTime,k(this,ae));if(qi||k(this,mt).isStale||!Hf(t))return;const r=Ww(k(this,mt).dataUpdatedAt,t)+1;$(this,Fi,setTimeout(()=>{k(this,mt).isStale||this.updateResult()},r))},Qf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,ae)):this.options.refetchInterval)??!1},Yf=function(t){ie(this,de,Jf).call(this),$(this,Fr,t),!(qi||bn(this.options.enabled,k(this,ae))===!1||!Hf(k(this,Fr))||k(this,Fr)===0)&&$(this,Ni,setInterval(()=>{(this.options.refetchIntervalInBackground||Yh.isFocused())&&ie(this,de,zo).call(this)},k(this,Fr)))},Xf=function(){ie(this,de,Gf).call(this),ie(this,de,Yf).call(this,ie(this,de,Qf).call(this))},Zf=function(){k(this,Fi)&&(clearTimeout(k(this,Fi)),$(this,Fi,void 0))},Jf=function(){k(this,Ni)&&(clearInterval(k(this,Ni)),$(this,Ni,void 0))},ep=function(){const t=k(this,kt).getQueryCache().build(k(this,kt),this.options);if(t===k(this,ae))return;const n=k(this,ae);$(this,ae,t),$(this,za,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},eb=function(t){Be.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(k(this,mt))}),k(this,kt).getQueryCache().notify({query:k(this,ae),type:"observerResultsUpdated"})})},Px);function W2(e,t){return bn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rv(e,t){return W2(e,t)||e.state.data!==void 0&&tp(e,t,t.refetchOnMount)}function tp(e,t,n){if(bn(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Xh(e,t)}return!1}function Ov(e,t,n,r){return(e!==t||bn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Xh(e,n)}function Xh(e,t){return bn(t.enabled,e)!==!1&&e.isStaleByTime(zs(t.staleTime,e))}function q2(e,t){return!ju(e.getCurrentResult(),t)}var Nr,Mr,Et,nr,ar,Kl,np,jx,K2=(jx=class extends yo{constructor(t,n){super();W(this,ar);W(this,Nr);W(this,Mr);W(this,Et);W(this,nr);$(this,Nr,t),this.setOptions(n),this.bindMethods(),ie(this,ar,Kl).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=k(this,Nr).defaultMutationOptions(t),ju(this.options,n)||k(this,Nr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Et),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Ki(n.mutationKey)!==Ki(this.options.mutationKey)?this.reset():((r=k(this,Et))==null?void 0:r.state.status)==="pending"&&k(this,Et).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=k(this,Et))==null||t.removeObserver(this)}onMutationUpdate(t){ie(this,ar,Kl).call(this),ie(this,ar,np).call(this,t)}getCurrentResult(){return k(this,Mr)}reset(){var t;(t=k(this,Et))==null||t.removeObserver(this),$(this,Et,void 0),ie(this,ar,Kl).call(this),ie(this,ar,np).call(this)}mutate(t,n){var r;return $(this,nr,n),(r=k(this,Et))==null||r.removeObserver(this),$(this,Et,k(this,Nr).getMutationCache().build(k(this,Nr),this.options)),k(this,Et).addObserver(this),k(this,Et).execute(t)}},Nr=new WeakMap,Mr=new WeakMap,Et=new WeakMap,nr=new WeakMap,ar=new WeakSet,Kl=function(){var n;const t=((n=k(this,Et))==null?void 0:n.state)??Jw();$(this,Mr,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},np=function(t){Be.batch(()=>{var n,r,i,s,o,a,l,u;if(k(this,nr)&&this.hasListeners()){const d=k(this,Mr).variables,c=k(this,Mr).context;(t==null?void 0:t.type)==="success"?((r=(n=k(this,nr)).onSuccess)==null||r.call(n,t.data,d,c),(s=(i=k(this,nr)).onSettled)==null||s.call(i,t.data,null,d,c)):(t==null?void 0:t.type)==="error"&&((a=(o=k(this,nr)).onError)==null||a.call(o,t.error,d,c),(u=(l=k(this,nr)).onSettled)==null||u.call(l,void 0,t.error,d,c))}this.listeners.forEach(d=>{d(k(this,Mr))})})},jx),tb=m.createContext(void 0),nb=e=>{const t=m.useContext(tb);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},G2=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(tb.Provider,{value:e,children:t})),rb=m.createContext(!1),Q2=()=>m.useContext(rb);rb.Provider;function Y2(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var X2=m.createContext(Y2()),Z2=()=>m.useContext(X2);function ib(e,t){return typeof e=="function"?e(...t):!!e}function rp(){}var J2=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},e_=e=>{m.useEffect(()=>{e.clearReset()},[e])},t_=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ib(n,[e.error,r]),n_=e=>{e.suspense&&(e.staleTime===void 0&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},r_=(e,t)=>e.isLoading&&e.isFetching&&!t,i_=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Dv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function s_(e,t,n){var d,c,f,p,h;const r=nb(),i=Q2(),s=Z2(),o=r.defaultQueryOptions(e);(c=(d=r.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||c.call(d,o),o._optimisticResults=i?"isRestoring":"optimistic",n_(o),J2(o,s),e_(s);const a=!r.getQueryCache().get(o.queryHash),[l]=m.useState(()=>new t(r,o)),u=l.getOptimisticResult(o);if(m.useSyncExternalStore(m.useCallback(y=>{const b=i?rp:l.subscribe(Be.batchCalls(y));return l.updateResult(),b},[l,i]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),m.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),i_(o,u))throw Dv(o,l,s);if(t_({result:u,errorResetBoundary:s,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw u.error;if((p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,o,u),o.experimental_prefetchInRender&&!qi&&r_(u,i)){const y=a?Dv(o,l,s):(h=r.getQueryCache().get(o.queryHash))==null?void 0:h.promise;y==null||y.catch(rp).finally(()=>{l.updateResult()})}return o.notifyOnChangeProps?u:l.trackResult(u)}function o_(e,t){return s_(e,H2)}function Zh(e,t){const n=nb(),[r]=m.useState(()=>new K2(n,e));m.useEffect(()=>{r.setOptions(e)},[r,e]);const i=m.useSyncExternalStore(m.useCallback(o=>r.subscribe(Be.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=m.useCallback((o,a)=>{r.mutate(o,a).catch(rp)},[r]);if(i.error&&ib(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:s,mutateAsync:i.mutate}}const a_=e=>o_({queryKey:["widgets",e],queryFn:()=>l_(e)}),l_=e=>vo(`widgets/with-link/${e}`);var Q=(e=>(e.Border="widget_border",e.Background="widget_background",e.InputBackground="widget_input_background",e.InputText="widget_input_text",e.InputBorder="widget_input_border",e.ButtonBackground="widget_button_background",e.ButtonText="widget_button_text",e.TooltipBackground="widget_tooltip_background",e.TooltipText="widget_tooltip_text",e.TooltipBorder="widget_tooltip_border",e.HeaderBackground="widget_header_background",e.HeaderText="widget_header_text",e.HeaderBorder="widget_header_border",e.FooterBackground="widget_footer_background",e.FooterText="widget_footer_text",e.FooterBorder="widget_footer_border",e.MessageAdminBackground="widget_message_admin_background",e.MessageAdminText="widget_message_admin_text",e.MessageVisitorBackground="widget_message_visitor_background",e.MessageVisitorText="widget_message_visitor_text",e.GreeterTopBackground="widget_greeter_top_background",e.GreeterTopText="widget_greeter_top_text",e.GreeterBackground="widget_greeter_background",e.GreeterText="widget_greeter_text",e.GreeterBorder="widget_greeter_border",e.GreeterButtonBackground="widget_greeter_button_background",e.GreeterButtonText="widget_greeter_button_text",e))(Q||{});function u_(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 Ru(){return Ru=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},Ru.apply(this,arguments)}var $r;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($r||($r={}));function
|
|
49
|
+
*/function Ru(){return Ru=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},Ru.apply(this,arguments)}var $r;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($r||($r={}));function c_(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:n,v5Compat:r=!1}=e,i;i=t.map((p,h)=>d(p,typeof p=="string"?null:p.state,h===0?"default":void 0));let s=l(n??i.length-1),o=$r.Pop,a=null;function l(p){return Math.min(Math.max(p,0),i.length-1)}function u(){return i[s]}function d(p,h,y){h===void 0&&(h=null);let b=f_(i?u().pathname:"/",p,h,y);return Jh(b.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(p)),b}function c(p){return typeof p=="string"?p:ip(p)}return{get index(){return s},get action(){return o},get location(){return u()},createHref:c,createURL(p){return new URL(c(p),"http://localhost")},encodeLocation(p){let h=typeof p=="string"?Zi(p):p;return{pathname:h.pathname||"",search:h.search||"",hash:h.hash||""}},push(p,h){o=$r.Push;let y=d(p,h);s+=1,i.splice(s,i.length,y),r&&a&&a({action:o,location:y,delta:1})},replace(p,h){o=$r.Replace;let y=d(p,h);i[s]=y,r&&a&&a({action:o,location:y,delta:0})},go(p){o=$r.Pop;let h=l(s+p),y=i[h];s=h,a&&a({action:o,location:y,delta:p})},listen(p){return a=p,()=>{a=null}}}}function Ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Jh(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function d_(){return Math.random().toString(36).substr(2,8)}function f_(e,t,n,r){return n===void 0&&(n=null),Ru({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zi(t):t,{state:n,key:t&&t.key||r||d_()})}function ip(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 Zi(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 Fv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fv||(Fv={}));function p_(e,t,n){return n===void 0&&(n="/"),h_(e,t,n,!1)}function h_(e,t,n,r){let i=typeof t=="string"?Zi(t):t,s=em(i.pathname||"/",n);if(s==null)return null;let o=sb(e);m_(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=C_(s);a=E_(o[l],u,r)}return a}function sb(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("/")&&(Ue(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 u=Qr([r,l.relativePath]),d=n.concat(l);s.children&&s.children.length>0&&(Ue(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),sb(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:S_(u,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 ob(s.path))i(s,o,l)}),t}function ob(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=ob(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 m_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:k_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const g_=/^:[\w-]+$/,v_=3,y_=2,x_=1,w_=10,b_=-2,Nv=e=>e==="*";function S_(e,t){let n=e.split("/"),r=n.length;return n.some(Nv)&&(r+=b_),t&&(r+=y_),n.filter(i=>!Nv(i)).reduce((i,s)=>i+(g_.test(s)?v_:s===""?x_:w_),r)}function k_(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 E_(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let l=r[a],u=a===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",c=Mv({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),f=l.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Mv({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:Qr([s,c.pathname]),pathnameBase:A_(Qr([s,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(s=Qr([s,c.pathnameBase]))}return o}function Mv(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=T_(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((u,d,c)=>{let{paramName:f,isOptional:p}=d;if(f==="*"){let y=a[c]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const h=a[c];return p&&!h?u[f]=void 0:u[f]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function T_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Jh(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 C_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Jh(!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 em(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 __(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Zi(e):e;return{pathname:n?n.startsWith("/")?n:P_(n,t):t,search:R_(r),hash:O_(i)}}function P_(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 yd(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 j_(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ab(e,t){let n=j_(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function lb(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Zi(e):(i=Ru({},e),Ue(!i.pathname||!i.pathname.includes("?"),yd("?","pathname","search",i)),Ue(!i.pathname||!i.pathname.includes("#"),yd("#","pathname","hash",i)),Ue(!i.search||!i.search.includes("#"),yd("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),c-=1;i.pathname=f.join("/")}a=c>=0?t[c]:"/"}let l=__(i,a),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const Qr=e=>e.join("/").replace(/\/\/+/g,"/"),A_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,O_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function D_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ub=["post","put","patch","delete"];new Set(ub);const F_=["get",...ub];new Set(F_);/**
|
|
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 Ea(){return Ea=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},Ea.apply(this,arguments)}const
|
|
58
|
+
*/function Ea(){return Ea=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},Ea.apply(this,arguments)}const tm=m.createContext(null),N_=m.createContext(null),Ji=m.createContext(null),cc=m.createContext(null),es=m.createContext({outlet:null,matches:[],isDataRoute:!1}),cb=m.createContext(null);function M_(e,t){let{relative:n}=t===void 0?{}:t;Ka()||Ue(!1);let{basename:r,navigator:i}=m.useContext(Ji),{hash:s,pathname:o,search:a}=pb(e,{relative:n}),l=o;return r!=="/"&&(l=o==="/"?r:Qr([r,o])),i.createHref({pathname:l,search:a,hash:s})}function Ka(){return m.useContext(cc)!=null}function Ga(){return Ka()||Ue(!1),m.useContext(cc).location}function db(e){m.useContext(Ji).static||m.useLayoutEffect(e)}function fb(){let{isDataRoute:e}=m.useContext(es);return e?Q_():L_()}function L_(){Ka()||Ue(!1);let e=m.useContext(tm),{basename:t,future:n,navigator:r}=m.useContext(Ji),{matches:i}=m.useContext(es),{pathname:s}=Ga(),o=JSON.stringify(ab(i,n.v7_relativeSplatPath)),a=m.useRef(!1);return db(()=>{a.current=!0}),m.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=lb(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Qr([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,o,s,e])}function pb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=m.useContext(Ji),{matches:i}=m.useContext(es),{pathname:s}=Ga(),o=JSON.stringify(ab(i,r.v7_relativeSplatPath));return m.useMemo(()=>lb(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function I_(e,t){return $_(e,t)}function $_(e,t,n,r){Ka()||Ue(!1);let{navigator:i}=m.useContext(Ji),{matches:s}=m.useContext(es),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Ga(),d;if(t){var c;let b=typeof t=="string"?Zi(t):t;l==="/"||(c=b.pathname)!=null&&c.startsWith(l)||Ue(!1),d=b}else d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let h=p_(e,{pathname:p}),y=H_(h&&h.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:Qr([l,i.encodeLocation?i.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Qr([l,i.encodeLocation?i.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&y?m.createElement(cc.Provider,{value:{location:Ea({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:$r.Pop}},y):y}function z_(){let e=G_(),t=D_(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 m.createElement(m.Fragment,null,m.createElement("h2",null,"Unexpected Application Error!"),m.createElement("h3",{style:{fontStyle:"italic"}},t),n?m.createElement("pre",{style:i},n):null,null)}const B_=m.createElement(z_,null);class V_ extends m.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?m.createElement(es.Provider,{value:this.props.routeContext},m.createElement(cb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function U_(e){let{routeContext:t,match:n,children:r}=e,i=m.useContext(tm);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),m.createElement(es.Provider,{value:t},r)}function H_(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(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);d>=0||Ue(!1),o=o.slice(0,Math.min(o.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let c=o[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=d),c.route.id){let{loaderData:f,errors:p}=n,h=c.route.loader&&f[c.route.id]===void 0&&(!p||p[c.route.id]===void 0);if(c.route.lazy||h){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,c,f)=>{let p,h=!1,y=null,b=null;n&&(p=a&&c.route.id?a[c.route.id]:void 0,y=c.route.errorElement||B_,l&&(u<0&&f===0?(h=!0,b=null):u===f&&(h=!0,b=c.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,f+1)),x=()=>{let w;return p?w=y:h?w=b:c.route.Component?w=m.createElement(c.route.Component,null):c.route.element?w=c.route.element:w=d,m.createElement(U_,{match:c,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:w})};return n&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?m.createElement(V_,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:x(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):x()},null)}var hb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(hb||{}),Ou=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}(Ou||{});function W_(e){let t=m.useContext(tm);return t||Ue(!1),t}function q_(e){let t=m.useContext(N_);return t||Ue(!1),t}function K_(e){let t=m.useContext(es);return t||Ue(!1),t}function mb(e){let t=K_(),n=t.matches[t.matches.length-1];return n.route.id||Ue(!1),n.route.id}function G_(){var e;let t=m.useContext(cb),n=q_(Ou.UseRouteError),r=mb(Ou.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Q_(){let{router:e}=W_(hb.UseNavigateStable),t=mb(Ou.UseNavigateStable),n=m.useRef(!1);return db(()=>{n.current=!0}),m.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Ea({fromRouteId:t},s)))},[e,t])}const Lv={};function Y_(e,t){Lv[t]||(Lv[t]=!0,console.warn(t))}const Iv=(e,t,n)=>Y_(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function X_(e,t){e!=null&&e.v7_startTransition||Iv("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&&Iv("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}const Z_="startTransition",$v=Yd[Z_];function J_(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:s}=e,o=m.useRef();o.current==null&&(o.current=c_({initialEntries:r,initialIndex:i,v5Compat:!0}));let a=o.current,[l,u]=m.useState({action:a.action,location:a.location}),{v7_startTransition:d}=s||{},c=m.useCallback(f=>{d&&$v?$v(()=>u(f)):u(f)},[u,d]);return m.useLayoutEffect(()=>a.listen(c),[a,c]),m.useEffect(()=>X_(s),[s]),m.createElement(eP,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:s})}function sp(e){Ue(!1)}function eP(e){let{basename:t="/",children:n=null,location:r,navigationType:i=$r.Pop,navigator:s,static:o=!1,future:a}=e;Ka()&&Ue(!1);let l=t.replace(/^\/*/,"/"),u=m.useMemo(()=>({basename:l,navigator:s,static:o,future:Ea({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=Zi(r));let{pathname:d="/",search:c="",hash:f="",state:p=null,key:h="default"}=r,y=m.useMemo(()=>{let b=em(d,l);return b==null?null:{location:{pathname:b,search:c,hash:f,state:p,key:h},navigationType:i}},[l,d,c,f,p,h,i]);return y==null?null:m.createElement(Ji.Provider,{value:u},m.createElement(cc.Provider,{children:n,value:y}))}function tP(e){let{children:t,location:n}=e;return I_(op(t),n)}new Promise(()=>{});function op(e,t){t===void 0&&(t=[]);let n=[];return m.Children.forEach(e,(r,i)=>{if(!m.isValidElement(r))return;let s=[...t,i];if(r.type===m.Fragment){n.push.apply(n,op(r.props.children,s));return}r.type!==sp&&Ue(!1),!r.props.index||!r.props.children||Ue(!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=op(r.props.children,s)),n.push(o)}),n}/**
|
|
59
59
|
* React Router DOM v6.28.0
|
|
60
60
|
*
|
|
61
61
|
* Copyright (c) Remix Software Inc.
|
|
@@ -64,7 +64,7 @@ Error generating stack: `+s.message+`
|
|
|
64
64
|
* LICENSE.md file in the root directory of this source tree.
|
|
65
65
|
*
|
|
66
66
|
* @license MIT
|
|
67
|
-
*/function
|
|
67
|
+
*/function ap(){return ap=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},ap.apply(this,arguments)}function nP(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}function rP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iP(e,t){return e.button===0&&(!t||t==="_self")&&!rP(e)}const sP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],oP="6";try{window.__reactRouterVersion=oP}catch{}const aP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,uP=m.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:d,viewTransition:c}=t,f=nP(t,sP),{basename:p}=m.useContext(Ji),h,y=!1;if(typeof u=="string"&&lP.test(u)&&(h=u,aP))try{let w=new URL(window.location.href),C=u.startsWith("//")?new URL(w.protocol+u):new URL(u),T=em(C.pathname,p);C.origin===w.origin&&T!=null?u=T+C.search+C.hash:y=!0}catch{}let b=M_(u,{relative:i}),g=cP(u,{replace:o,state:a,target:l,preventScrollReset:d,relative:i,viewTransition:c});function x(w){r&&r(w),w.defaultPrevented||g(w)}return m.createElement("a",ap({},f,{href:h||b,onClick:y||s?r:x,ref:n,target:l}))});var zv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zv||(zv={}));var Bv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bv||(Bv={}));function cP(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}:t,l=fb(),u=Ga(),d=pb(e,{relative:o});return m.useCallback(c=>{if(iP(c,n)){c.preventDefault();let f=r!==void 0?r:ip(u)===ip(d);l(e,{replace:f,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[u,l,d,r,i,n,e,s,o,a])}const dP={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Vv=e=>{let t;const n=new Set,r=(d,c)=>{const f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){const p=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(h=>h(t,p))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>u,subscribe:d=>(n.add(d),()=>n.delete(d)),destroy:()=>{(dP?"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()}},u=t=e(r,i,l);return l},fP=e=>e?Vv(e):Vv;var gb={exports:{}},vb={},yb={exports:{}},xb={};/**
|
|
68
68
|
* @license React
|
|
69
69
|
* use-sync-external-store-shim.production.min.js
|
|
70
70
|
*
|
|
@@ -72,7 +72,7 @@ Error generating stack: `+s.message+`
|
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the MIT license found in the
|
|
74
74
|
* LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/var lo=
|
|
75
|
+
*/var lo=m;function pP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hP=typeof Object.is=="function"?Object.is:pP,mP=lo.useState,gP=lo.useEffect,vP=lo.useLayoutEffect,yP=lo.useDebugValue;function xP(e,t){var n=t(),r=mP({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return vP(function(){i.value=n,i.getSnapshot=t,xd(i)&&s({inst:i})},[e,n,t]),gP(function(){return xd(i)&&s({inst:i}),e(function(){xd(i)&&s({inst:i})})},[e]),yP(n),n}function xd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!hP(e,n)}catch{return!0}}function wP(e,t){return t()}var bP=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?wP:xP;xb.useSyncExternalStore=lo.useSyncExternalStore!==void 0?lo.useSyncExternalStore:bP;yb.exports=xb;var SP=yb.exports;/**
|
|
76
76
|
* @license React
|
|
77
77
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
78
78
|
*
|
|
@@ -80,11 +80,11 @@ Error generating stack: `+s.message+`
|
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the MIT license found in the
|
|
82
82
|
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var dc=
|
|
83
|
+
*/var dc=m,kP=SP;function EP(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var TP=typeof Object.is=="function"?Object.is:EP,CP=kP.useSyncExternalStore,_P=dc.useRef,PP=dc.useEffect,jP=dc.useMemo,AP=dc.useDebugValue;vb.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=_P(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=jP(function(){function l(p){if(!u){if(u=!0,d=p,p=r(p),i!==void 0&&o.hasValue){var h=o.value;if(i(h,p))return c=h}return c=p}if(h=c,TP(d,p))return h;var y=r(p);return i!==void 0&&i(h,y)?h:(d=p,c=y)}var u=!1,d,c,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=CP(e,s[0],s[1]);return PP(function(){o.hasValue=!0,o.value=a},[a]),AP(a),a};gb.exports=vb;var RP=gb.exports;const OP=Qi(RP),wb={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},{useDebugValue:DP}=F,{useSyncExternalStoreWithSelector:FP}=OP;let Uv=!1;const NP=e=>e;function MP(e,t=NP,n){(wb?"production":void 0)!=="production"&&n&&!Uv&&(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"),Uv=!0);const r=FP(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return DP(r),r}const Hv=e=>{(wb?"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"?fP(e):e,n=(r,i)=>MP(t,r,i);return Object.assign(n,t),n},LP=e=>e?Hv(e):Hv,un=LP(e=>({widget:null,open:localStorage.getItem("lc:widget:open")==="true",isHaveChat:localStorage.getItem("lc:widget:isHaveChat")==="true",defaultValues:{},soundPath:void 0,setOpen:t=>{e({open:t}),localStorage.setItem("lc:widget:open",t.toString())},setWidget:t=>e({widget:t}),setDefaultValues:t=>e({defaultValues:t}),setIsHaveChat:t=>{e({isHaveChat:t}),localStorage.setItem("lc:widget:isHaveChat",t.toString())},setSoundPath:t=>{e({soundPath:t})}})),IP={xs:{default:"!p-1",rounded:"!p-1"},sm:{default:"text-xs px-2.5 py-1.5",rounded:"p-1.5"},md:{default:"text-sm px-3 py-2",rounded:"p-2"},lg:{default:"text-sm px-4 py-2.5",rounded:"p-2.5"},xl:{default:"text-base px-5 py-3",rounded:"p-3"}},Wv={primary:{solid:"bg-blue-600 border border-transparent text-white hover:bg-blue-700 disabled:bg-blue-100 disabled:text-blue-500",outline:"bg-transparent border border-blue-600 text-blue-600 hover:bg-blue-100 disabled:bg-blue-50 disabled:text-blue-300 disabled:border-blue-100",subtle:"bg-blue-100 border border-transparent text-blue-500 hover:bg-blue-200 disabled:bg-blue-50 disabled:text-blue-300",link:"hover:underline px-1.5 py-0 text-blue-500 disabled:text-blue-300 bg-transparent !border-none"},secondary:{solid:"bg-zink-400 border border-transparent text-white hover:bg-zink-500 disabled:bg-zink-100 disabled:text-zink-500",outline:"bg-transparent border border-gray-600 text-gray-600 hover:bg-gray-100 disabled:bg-gray-50 disabled:text-gray-300 disabled:border-gray-100",subtle:"bg-gray-100 border border-transparent text-gray-500 hover:bg-gray-200 disabled:bg-gray-50 disabled:text-gray-300",link:"hover:underline px-1.5 py-0 text-gray-500 disabled:text-gray-300 bg-transparent !border-none"},danger:{solid:"bg-red-600 border border-transparent text-white hover:bg-red-700 disabled:bg-red-100 disabled:text-red-500",outline:"bg-transparent border border-red-600 text-red-600 hover:bg-red-100 disabled:bg-red-50 disabled:text-red-300 disabled:border-red-100",subtle:"bg-red-100 border border-transparent text-red-500 hover:bg-red-200 disabled:bg-red-50 disabled:text-red-300",link:"hover:underline px-1.5 py-0 text-red-500 disabled:text-red-300 bg-transparent !border-none"},success:{solid:"bg-green-600 border border-transparent text-white hover:bg-green-700 disabled:bg-green-100 disabled:text-green-500",outline:"bg-transparent border border-green-600 text-green-600 hover:bg-green-100 disabled:bg-green-50 disabled:text-green-300 disabled:border-green-100",subtle:"bg-green-100 border border-transparent text-green-500 hover:bg-green-200 disabled:bg-green-50 disabled:text-green-300",link:"hover:underline px-1.5 py-0 text-green-500 disabled:text-green-300 bg-transparent !border-none"},warning:{solid:"bg-yellow-600 border border-transparent text-white hover:bg-yellow-700 disabled:bg-yellow-100 disabled:text-yellow-500",outline:"bg-transparent border border-yellow-600 text-yellow-600 hover:bg-yellow-100 disabled:bg-yellow-50 disabled:text-yellow-300 disabled:border-yellow-100",subtle:"bg-yellow-100 border border-transparent text-yellow-500 hover:bg-yellow-200 disabled:bg-yellow-50 disabled:text-yellow-300",link:"hover:underline px-1.5 py-0 text-yellow-500 disabled:text-yellow-300 bg-transparent !border-none"}};var bb={exports:{}};/*!
|
|
84
84
|
Copyright (c) 2018 Jed Watson.
|
|
85
85
|
Licensed under the MIT License (MIT), see
|
|
86
86
|
http://jedwatson.github.io/classnames
|
|
87
|
-
*/(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})()})(
|
|
87
|
+
*/(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})()})(bb);var $P=bb.exports;const ge=Qi($P),nm=m.createContext({});function fc(e){const t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}const rm=typeof window<"u",Sb=rm?m.useLayoutEffect:m.useEffect,pc=m.createContext(null),im=m.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class zP extends m.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,s=this.props.sizeRef.current;s.height=n.offsetHeight||0,s.width=n.offsetWidth||0,s.top=n.offsetTop,s.left=n.offsetLeft,s.right=i-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function BP({children:e,isPresent:t,anchorX:n}){const r=m.useId(),i=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=m.useContext(im);return m.useInsertionEffect(()=>{const{width:a,height:l,top:u,left:d,right:c}=s.current;if(t||!i.current||!a||!l)return;const f=n==="left"?`left: ${d}`:`right: ${c}`;i.current.dataset.motionPopId=r;const p=document.createElement("style");return o&&(p.nonce=o),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
|
|
88
88
|
[data-motion-pop-id="${r}"] {
|
|
89
89
|
position: absolute !important;
|
|
90
90
|
width: ${a}px !important;
|
|
@@ -92,48 +92,48 @@ Error generating stack: `+s.message+`
|
|
|
92
92
|
${f}px !important;
|
|
93
93
|
top: ${u}px !important;
|
|
94
94
|
}
|
|
95
|
-
`),()=>{document.head.removeChild(p)}},[t]),x.jsx(IP,{isPresent:t,childRef:i,sizeRef:s,children:g.cloneElement(e,{ref:i})})}const zP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a})=>{const l=nm(VP),u=g.useId();let d=!0,c=g.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},register:f=>(l.set(f,!1),()=>l.delete(f))}),[n,l,r]);return s&&d&&(c={...c}),g.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),g.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=x.jsx($P,{isPresent:n,anchorX:a,children:e})),x.jsx(fc.Provider,{value:c,children:e})};function VP(){return new Map}function wb(e=!0){const t=g.useContext(fc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=g.useId();g.useEffect(()=>{if(e)return i(s)},[e]);const o=g.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const kl=e=>e.key||"";function qv(e){const t=[];return g.Children.forEach(e,n=>{g.isValidElement(n)&&t.push(n)}),t}const Ki=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,u]=wb(o),d=g.useMemo(()=>qv(e),[e]),c=o&&!l?[]:d.map(kl),f=g.useRef(!0),p=g.useRef(d),h=nm(()=>new Map),[y,w]=g.useState(d),[m,v]=g.useState(d);xb(()=>{f.current=!1,p.current=d;for(let E=0;E<m.length;E++){const C=kl(m[E]);c.includes(C)?h.delete(C):h.get(C)!==!0&&h.set(C,!1)}},[m,c.length,c.join("-")]);const b=[];if(d!==y){let E=[...d];for(let C=0;C<m.length;C++){const S=m[C],_=kl(S);c.includes(_)||(E.splice(C,0,S),b.push(S))}return s==="wait"&&b.length&&(E=b),v(qv(E)),w(d),null}const{forceRender:T}=g.useContext(tm);return x.jsx(x.Fragment,{children:m.map(E=>{const C=kl(E),S=o&&!l?!1:d===m||c.includes(C),_=()=>{if(h.has(C))h.set(C,!0);else return;let N=!0;h.forEach(R=>{R||(N=!1)}),N&&(T==null||T(),v(p.current),o&&(u==null||u()),r&&r())};return x.jsx(zP,{isPresent:S,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,onExitComplete:S?void 0:_,anchorX:a,children:E},C)})})};function sm(e,t){e.indexOf(t)===-1&&e.push(t)}function om(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let ap=()=>{};const lp={skipAnimations:!1,useManualTiming:!1};function am(e){let t;return()=>(t===void 0&&(t=e()),t)}const sn=e=>e,Ta=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class lm{constructor(){this.subscriptions=[]}add(t){return sm(this.subscriptions,t),()=>om(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $n=e=>e*1e3,zn=e=>e/1e3;function bb(e,t){return t?e*(1e3/t):0}const BP=am(()=>window.ScrollTimeline!==void 0);class UP{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(BP()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class HP extends UP{then(t,n){return this.finished.finally(t).then(()=>{})}}const Kv={value:null,addProjectionMetrics:null},um=e=>Array.isArray(e)&&typeof e[0]=="number",WP={};function qP(e,t){const n=am(e);return()=>WP[t]??n()}const Ca=qP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Sb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Vo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,up={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vo([0,.65,.55,1]),circOut:Vo([.55,0,1,.45]),backIn:Vo([.31,.01,.66,-.59]),backOut:Vo([.33,1.53,.69,.99])};function kb(e,t){if(e)return typeof e=="function"&&Ca()?Sb(e,t):um(e)?Vo(e):Array.isArray(e)?e.map(n=>kb(n,t)||up.easeOut):up[e]}function KP(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={},u=void 0){const d={[t]:n};l&&(d.offset=l);const c=kb(a,i);return Array.isArray(c)&&(d.easing=c),e.animate(d,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal",pseudoElement:u})}function cm(e){return typeof e=="function"&&"applyToOptions"in e}function dm(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Du=2e4;function fm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Du;)t+=n,r=e.next(t);return t>=Du?1/0:t}function GP(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(fm(r),Du);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:zn(i)}}function Eb(e){return!!(typeof e=="function"&&Ca()||!e||typeof e=="string"&&(e in up||Ca())||um(e)||Array.isArray(e)&&e.every(Eb))}function Gv(e,t){e.timeline=t,e.onfinish=null}const El=["read","resolveKeyframes","update","preRender","render","postRender"];function QP(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(c){o.has(c)&&(d.schedule(c),e()),l++,c(a)}const d={schedule:(c,f=!1,p=!1)=>{const y=p&&i?n:r;return f&&o.add(c),y.has(c)||y.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&Kv.value&&Kv.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,d.process(c))}};return d}const YP=40;function Tb(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=El.reduce((m,v)=>(m[v]=QP(s,t?v:void 0),m),{}),{read:a,resolveKeyframes:l,update:u,preRender:d,render:c,postRender:f}=o,p=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,YP),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),d.process(i),c.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},h=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:El.reduce((m,v)=>{const b=o[v];return m[v]=(T,E=!1,C=!1)=>(n||h(),b.schedule(T,E,C)),m},{}),cancel:m=>{for(let v=0;v<El.length;v++)o[El[v]].cancel(m)},state:i,steps:o}}const{schedule:pm,cancel:H$}=Tb(queueMicrotask,!1),{schedule:ye,cancel:ti,state:tt,steps:xd}=Tb(typeof requestAnimationFrame<"u"?requestAnimationFrame:sn,!0);let Gl;function XP(){Gl=void 0}const Vn={now:()=>(Gl===void 0&&Vn.set(tt.isProcessing||lp.useManualTiming?tt.timestamp:performance.now()),Gl),set:e=>{Gl=e,queueMicrotask(XP)}},hn={x:!1,y:!1};function Cb(){return hn.x||hn.y}function ZP(e){return e==="x"||e==="y"?hn[e]?null:(hn[e]=!0,()=>{hn[e]=!1}):hn.x||hn.y?null:(hn.x=hn.y=!0,()=>{hn.x=hn.y=!1})}function JP(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function _b(e,t){const n=JP(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Qv(e){return!(e.pointerType==="touch"||Cb())}function ej(e,t,n={}){const[r,i,s]=_b(e,n),o=a=>{if(!Qv(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const d=c=>{Qv(c)&&(u(c),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const Pb=(e,t)=>t?e===t?!0:Pb(e,t.parentElement):!1,hm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,tj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nj(e){return tj.has(e.tagName)||e.tabIndex!==-1}const Bo=new WeakSet;function Yv(e){return t=>{t.key==="Enter"&&e(t)}}function wd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const rj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yv(()=>{if(Bo.has(n))return;wd(n,"down");const i=Yv(()=>{wd(n,"up")}),s=()=>wd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Xv(e){return hm(e)&&!Cb()}function ij(e,t,n={}){const[r,i,s]=_b(e,n),o=a=>{const l=a.currentTarget;if(!Xv(a)||Bo.has(l))return;Bo.add(l);const u=t(l,a),d=(p,h)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),!(!Xv(p)||!Bo.has(l))&&(Bo.delete(l),typeof u=="function"&&u(p,{success:h}))},c=p=>{d(p,l===window||l===document||n.useGlobalTarget||Pb(l,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",c,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a instanceof HTMLElement&&(a.addEventListener("focus",u=>rj(u,i)),!nj(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}const Zv=30,sj=e=>!isNaN(parseFloat(e));class oj{constructor(t,n={}){this.version="12.7.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Vn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Vn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=sj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lm);const r=this.events[t].add(n);return t==="change"?()=>{r(),ye.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Vn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zv);return bb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _a(e,t){return new oj(e,t)}const jb=g.createContext({strict:!1}),Jv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},uo={};for(const e in Jv)uo[e]={isEnabled:t=>Jv[e].some(n=>!!t[n])};function aj(e){for(const t in e)uo[t]={...uo[t],...e[t]}}const lj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||lj.has(e)}let Ab=e=>!Fu(e);function uj(e){e&&(Ab=t=>t.startsWith("on")?!Fu(t):e(t))}try{uj(require("@emotion/is-prop-valid").default)}catch{}function cj(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ab(i)||n===!0&&Fu(i)||!t&&!Fu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function dj(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const pc=g.createContext({});function hc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Pa(e){return typeof e=="string"||Array.isArray(e)}const mm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gm=["initial",...mm];function mc(e){return hc(e.animate)||gm.some(t=>Pa(e[t]))}function Rb(e){return!!(mc(e)||e.variants)}function fj(e,t){if(mc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pa(n)?n:void 0,animate:Pa(r)?r:void 0}}return e.inherit!==!1?t:{}}function pj(e){const{initial:t,animate:n}=fj(e,g.useContext(pc));return g.useMemo(()=>({initial:t,animate:n}),[e0(t),e0(n)])}function e0(e){return Array.isArray(e)?e.join(" "):e}const hj=Symbol.for("motionComponentSymbol");function Ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mj(e,t,n){return g.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ps(n)&&(n.current=r))},[t])}const vm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gj="framerAppearId",Ob="data-"+vm(gj),Db=g.createContext({});function vj(e,t,n,r,i){var y,w;const{visualElement:s}=g.useContext(pc),o=g.useContext(jb),a=g.useContext(fc),l=g.useContext(im).reducedMotion,u=g.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const d=u.current,c=g.useContext(Db);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&yj(u.current,n,i,c);const f=g.useRef(!1);g.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const p=n[Ob],h=g.useRef(!!p&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,p))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,p)));return xb(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),pm.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())}),g.useEffect(()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)==null||m.call(window,p)}),h.current=!1))}),d}function yj(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Fb(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Ps(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}function Fb(e){if(e)return e.options.allowProjection!==!1?e.projection:Fb(e.parent)}function xj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&aj(e);function s(a,l){let u;const d={...g.useContext(im),...a,layoutId:wj(a)},{isStatic:c}=d,f=pj(a),p=r(a,c);if(!c&&rm){bj();const h=Sj(d);u=h.MeasureLayout,f.visualElement=vj(i,p,d,t,h.ProjectionNode)}return x.jsxs(pc.Provider,{value:f,children:[u&&f.visualElement?x.jsx(u,{visualElement:f.visualElement,...d}):null,n(i,a,mj(p,f.visualElement,l),p,c,f.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=g.forwardRef(s);return o[hj]=i,o}function wj({layoutId:e}){const t=g.useContext(tm).id;return t&&e!==void 0?t+"-"+e:e}function bj(e,t){g.useContext(jb).strict}function Sj(e){const{drag:t,layout:n}=uo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Nb=e=>t=>typeof t=="string"&&t.startsWith(e),ym=Nb("--"),kj=Nb("var(--"),xm=e=>kj(e)?Ej.test(e.split("/*")[0].trim()):!1,Ej=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ja={};function Tj(e){for(const t in e)ja[t]=e[t],ym(t)&&(ja[t].isCSSVariable=!0)}const xo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ts=new Set(xo);function Mb(e,{layout:t,layoutId:n}){return ts.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ja[e]||e==="opacity")}const ft=e=>!!(e&&e.getVelocity),Lb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fr=(e,t,n)=>n>t?t:n<e?e:n,wo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Aa={...wo,transform:e=>fr(0,1,e)},Tl={...wo,default:1},Qa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Sr=Qa("deg"),Bn=Qa("%"),K=Qa("px"),Cj=Qa("vh"),_j=Qa("vw"),t0={...Bn,parse:e=>Bn.parse(e)/100,transform:e=>Bn.transform(e*100)},Pj={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,backgroundPositionX:K,backgroundPositionY:K},jj={rotate:Sr,rotateX:Sr,rotateY:Sr,rotateZ:Sr,scale:Tl,scaleX:Tl,scaleY:Tl,scaleZ:Tl,skew:Sr,skewX:Sr,skewY:Sr,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Aa,originX:t0,originY:t0,originZ:K},n0={...wo,transform:Math.round},wm={...Pj,...jj,zIndex:n0,size:K,fillOpacity:Aa,strokeOpacity:Aa,numOctaves:n0},Aj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Rj=xo.length;function Oj(e,t,n){let r="",i=!0;for(let s=0;s<Rj;s++){const o=xo[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=Lb(a,wm[o]);if(!l){i=!1;const d=Aj[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function bm(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(ts.has(l)){o=!0;continue}else if(ym(l)){i[l]=u;continue}else{const d=Lb(u,wm[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=Oj(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${u} ${d}`}}const Sm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ib(e,t,n){for(const r in t)!ft(t[r])&&!Mb(r,n)&&(e[r]=t[r])}function Dj({transformTemplate:e},t){return g.useMemo(()=>{const n=Sm();return bm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Fj(e,t){const n=e.style||{},r={};return Ib(r,n,e),Object.assign(r,Dj(e,t)),r}function Nj(e,t){const n={},r=Fj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Mj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function km(e){return typeof e!="string"||e.includes("-")?!1:!!(Mj.indexOf(e)>-1||/[A-Z]/u.test(e))}const Lj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ij={offset:"strokeDashoffset",array:"strokeDasharray"};function $j(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Lj:Ij;e[s.offset]=K.transform(-r);const o=K.transform(t),a=K.transform(n);e[s.array]=`${o} ${a}`}function r0(e,t,n){return typeof e=="string"?e:K.transform(t+n*e)}function zj(e,t,n){const r=r0(t,e.x,e.width),i=r0(n,e.y,e.height);return`${r} ${i}`}function Em(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},d,c){if(bm(e,u,c),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(i!==void 0||s!==void 0||p.transform)&&(p.transformOrigin=zj(h,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&$j(f,o,a,l,!1)}const $b=()=>({...Sm(),attrs:{}}),Tm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Vj(e,t,n,r){const i=g.useMemo(()=>{const s=$b();return Em(s,t,Tm(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Ib(s,e.style,e),i.style={...s,...i.style}}return i}function Bj(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(km(n)?Vj:Nj)(r,s,o,n),u=cj(r,typeof n=="string",e),d=n!==g.Fragment?{...u,...l,ref:i}:{},{children:c}=r,f=g.useMemo(()=>ft(c)?c.get():c,[c]);return g.createElement(n,{...d,children:f})}}function i0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Cm(e,t,n,r){if(typeof t=="function"){const[i,s]=i0(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=i0(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const cp=e=>Array.isArray(e),Uj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Hj=e=>cp(e)?e[e.length-1]||0:e;function Ql(e){const t=ft(e)?e.get():e;return Uj(t)?t.toValue():t}function Wj({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:qj(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const zb=e=>(t,n)=>{const r=g.useContext(pc),i=g.useContext(fc),s=()=>Wj(e,t,r,i);return n?s():nm(s)};function qj(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Ql(s[f]);let{initial:o,animate:a}=e;const l=mc(e),u=Rb(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const c=d?a:o;if(c&&typeof c!="boolean"&&!hc(c)){const f=Array.isArray(c)?c:[c];for(let p=0;p<f.length;p++){const h=Cm(e,f[p]);if(h){const{transitionEnd:y,transition:w,...m}=h;for(const v in m){let b=m[v];if(Array.isArray(b)){const T=d?b.length-1:0;b=b[T]}b!==null&&(i[v]=b)}for(const v in y)i[v]=y[v]}}}return i}function _m(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(ft(r[o])||t.style&&ft(t.style[o])||Mb(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Kj={useVisualState:zb({scrapeMotionValuesFromProps:_m,createRenderState:Sm})};function Vb(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Bb(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const Ub=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hb(e,t,n,r){Bb(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Ub.has(i)?i:vm(i),t.attrs[i])}function Wb(e,t,n){const r=_m(e,t,n);for(const i in e)if(ft(e[i])||ft(t[i])){const s=xo.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const s0=["x","y","width","height","cx","cy","r"],Gj={useVisualState:zb({scrapeMotionValuesFromProps:Wb,createRenderState:$b,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(ts.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<s0.length;a++){const l=s0[a];e[l]!==t[l]&&(o=!0)}o&&ye.read(()=>{Vb(n,r),ye.render(()=>{Em(r,i,Tm(n.tagName),e.transformTemplate),Hb(n,r)})})}})};function Qj(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...km(r)?Gj:Kj,preloadedFeatures:e,useRender:Bj(i),createVisualElement:t,Component:r};return xj(o)}}function Ra(e,t,n){const r=e.getProps();return Cm(r,t,n!==void 0?n:r.custom,e)}const qb=new Set(["width","height","top","left","right","bottom",...xo]);function Yj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_a(n))}function Xj(e,t){const n=Ra(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Hj(s[o]);Yj(e,o,a)}}function Zj(e){return!!(ft(e)&&e.add)}function dp(e,t){const n=e.getValue("willChange");if(Zj(n))return n.add(t);if(!n&&lp.WillChange){const r=new lp.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Kb(e){return e.props[Ob]}const Gb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Jj=1e-7,eA=12;function tA(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Gb(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>Jj&&++a<eA);return o}function Ya(e,t,n,r){if(e===t&&n===r)return sn;const i=s=>tA(s,0,1,e,n);return s=>s===0||s===1?s:Gb(i(s),t,r)}const Qb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Yb=e=>t=>1-e(1-t),Xb=Ya(.33,1.53,.69,.99),Pm=Yb(Xb),Zb=Qb(Pm),Jb=e=>(e*=2)<1?.5*Pm(e):.5*(2-Math.pow(2,-10*(e-1))),jm=e=>1-Math.sin(Math.acos(e)),eS=Yb(jm),tS=Qb(jm),nS=e=>/^0[^.\s]+$/u.test(e);function nA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nS(e):!0}const Jo=e=>Math.round(e*1e5)/1e5,Am=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function rA(e){return e==null}const iA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rm=(e,t)=>n=>!!(typeof n=="string"&&iA.test(n)&&n.startsWith(e)||t&&!rA(n)&&Object.prototype.hasOwnProperty.call(n,t)),rS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Am);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},sA=e=>fr(0,255,e),bd={...wo,transform:e=>Math.round(sA(e))},Ei={test:Rm("rgb","red"),parse:rS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+bd.transform(e)+", "+bd.transform(t)+", "+bd.transform(n)+", "+Jo(Aa.transform(r))+")"};function oA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const fp={test:Rm("#"),parse:oA,transform:Ei.transform},js={test:Rm("hsl","hue"),parse:rS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Bn.transform(Jo(t))+", "+Bn.transform(Jo(n))+", "+Jo(Aa.transform(r))+")"},ct={test:e=>Ei.test(e)||fp.test(e)||js.test(e),parse:e=>Ei.test(e)?Ei.parse(e):js.test(e)?js.parse(e):fp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ei.transform(e):js.transform(e)},aA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Am))==null?void 0:t.length)||0)+(((n=e.match(aA))==null?void 0:n.length)||0)>0}const iS="number",sS="color",uA="var",cA="var(",o0="${}",dA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Oa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(dA,l=>(ct.test(l)?(r.color.push(s),i.push(sS),n.push(ct.parse(l))):l.startsWith(cA)?(r.var.push(s),i.push(uA),n.push(l)):(r.number.push(s),i.push(iS),n.push(parseFloat(l))),++s,o0)).split(o0);return{values:n,split:a,indexes:r,types:i}}function oS(e){return Oa(e).values}function aS(e){const{split:t,types:n}=Oa(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===iS?s+=Jo(i[o]):a===sS?s+=ct.transform(i[o]):s+=i[o]}return s}}const fA=e=>typeof e=="number"?0:e;function pA(e){const t=oS(e);return aS(e)(t.map(fA))}const ni={test:lA,parse:oS,createTransformer:aS,getAnimatableNone:pA},hA=new Set(["brightness","contrast","saturate","opacity"]);function mA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Am)||[];if(!r)return e;const i=n.replace(r,"");let s=hA.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const gA=/\b([a-z-]*)\(.*?\)/gu,pp={...ni,getAnimatableNone:e=>{const t=e.match(gA);return t?t.map(mA).join(" "):e}},vA={...wm,color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,filter:pp,WebkitFilter:pp},lS=e=>vA[e];function uS(e,t){let n=lS(e);return n!==pp&&(n=ni),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const yA=new Set(["auto","none","0"]);function xA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!yA.has(s)&&Oa(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=uS(n,i)}const Ti=e=>e*180/Math.PI,hp=e=>{const t=Ti(Math.atan2(e[1],e[0]));return mp(t)},wA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:hp,rotateZ:hp,skewX:e=>Ti(Math.atan(e[1])),skewY:e=>Ti(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},mp=e=>(e=e%360,e<0&&(e+=360),e),a0=hp,l0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),u0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:l0,scaleY:u0,scale:e=>(l0(e)+u0(e))/2,rotateX:e=>mp(Ti(Math.atan2(e[6],e[5]))),rotateY:e=>mp(Ti(Math.atan2(-e[2],e[0]))),rotateZ:a0,rotate:a0,skewX:e=>Ti(Math.atan(e[4])),skewY:e=>Ti(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function c0(e){return e.includes("scale")?1:0}function gp(e,t){if(!e||e==="none")return c0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=bA,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wA,i=a}if(!i)return c0(t);const s=r[t],o=i[1].split(",").map(kA);return typeof s=="function"?s(o):o[s]}const SA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return gp(n,t)};function kA(e){return parseFloat(e.trim())}const d0=e=>e===wo||e===K,EA=new Set(["x","y","z"]),TA=xo.filter(e=>!EA.has(e));function CA(e){const t=[];return TA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const co={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>gp(t,"x"),y:(e,{transform:t})=>gp(t,"y")};co.translateX=co.x;co.translateY=co.y;const Li=new Set;let vp=!1,yp=!1;function cS(){if(yp){const e=Array.from(Li).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=CA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}yp=!1,vp=!1,Li.forEach(e=>e.complete()),Li.clear()}function dS(){Li.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(yp=!0)})}function _A(){dS(),cS()}class Om{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Li.add(this),vp||(vp=!0,ye.read(dS),ye.resolveKeyframes(cS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Li.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Li.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const fS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),PA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jA(e){const t=PA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function pS(e,t,n=1){const[r,i]=jA(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return fS(o)?parseFloat(o):o}return xm(i)?pS(i,t,n+1):i}const hS=e=>t=>t.test(e),AA={test:e=>e==="auto",parse:e=>e},mS=[wo,K,Bn,Sr,_j,Cj,AA],f0=e=>mS.find(hS(e));class gS extends Om{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),xm(u))){const d=pS(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!qb.has(r)||t.length!==2)return;const[i,s]=t,o=f0(i),a=f0(s);if(o!==a)if(d0(o)&&d0(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)nA(t[i])&&r.push(i);r.length&&xA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=co[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=co[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const p0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ni.test(e)||e==="0")&&!e.startsWith("url("));function RA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function OA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=p0(i,t),a=p0(s,t);return!o||!a?!1:RA(e)||(n==="spring"||cm(n))&&r}const DA=e=>e!==null;function gc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(DA),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const FA=40;class vS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Vn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>FA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&_A(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Vn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!OA(t,r,i,s))if(o)this.options.duration=0;else{l&&l(gc(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Ce=(e,t,n)=>e+(t-e)*n;function Sd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function NA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Sd(l,a,e+1/3),s=Sd(l,a,e),o=Sd(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Nu(e,t){return n=>n>0?t:e}const kd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},MA=[fp,Ei,js],LA=e=>MA.find(t=>t.test(e));function h0(e){const t=LA(e);if(!t)return!1;let n=t.parse(e);return t===js&&(n=NA(n)),n}const m0=(e,t)=>{const n=h0(e),r=h0(t);if(!n||!r)return Nu(e,t);const i={...n};return s=>(i.red=kd(n.red,r.red,s),i.green=kd(n.green,r.green,s),i.blue=kd(n.blue,r.blue,s),i.alpha=Ce(n.alpha,r.alpha,s),Ei.transform(i))},IA=(e,t)=>n=>t(e(n)),Xa=(...e)=>e.reduce(IA),xp=new Set(["none","hidden"]);function $A(e,t){return xp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function zA(e,t){return n=>Ce(e,t,n)}function Dm(e){return typeof e=="number"?zA:typeof e=="string"?xm(e)?Nu:ct.test(e)?m0:UA:Array.isArray(e)?yS:typeof e=="object"?ct.test(e)?m0:VA:Nu}function yS(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Dm(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function VA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Dm(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function BA(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const UA=(e,t)=>{const n=ni.createTransformer(t),r=Oa(e),i=Oa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?xp.has(e)&&!i.values.length||xp.has(t)&&!r.values.length?$A(e,t):Xa(yS(BA(r,i),i.values),n):Nu(e,t)};function xS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ce(e,t,n):Dm(e)(e,t)}const HA=5;function wS(e,t,n){const r=Math.max(t-HA,0);return bb(n-e(r),t-r)}const Ae={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ed=.001;function WA({duration:e=Ae.duration,bounce:t=Ae.bounce,velocity:n=Ae.velocity,mass:r=Ae.mass}){let i,s,o=1-t;o=fr(Ae.minDamping,Ae.maxDamping,o),e=fr(Ae.minDuration,Ae.maxDuration,zn(e)),o<1?(i=u=>{const d=u*o,c=d*e,f=d-n,p=wp(u,o),h=Math.exp(-c);return Ed-f/p*h},s=u=>{const c=u*o*e,f=c*n+n,p=Math.pow(o,2)*Math.pow(u,2)*e,h=Math.exp(-c),y=wp(Math.pow(u,2),o);return(-i(u)+Ed>0?-1:1)*((f-p)*h)/y}):(i=u=>{const d=Math.exp(-u*e),c=(u-n)*e+1;return-Ed+d*c},s=u=>{const d=Math.exp(-u*e),c=(n-u)*(e*e);return d*c});const a=5/e,l=KA(i,s,a);if(e=$n(e),isNaN(l))return{stiffness:Ae.stiffness,damping:Ae.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const qA=12;function KA(e,t,n){let r=n;for(let i=1;i<qA;i++)r=r-e(r)/t(r);return r}function wp(e,t){return e*Math.sqrt(1-t*t)}const GA=["duration","bounce"],QA=["stiffness","damping","mass"];function g0(e,t){return t.some(n=>e[n]!==void 0)}function YA(e){let t={velocity:Ae.velocity,stiffness:Ae.stiffness,damping:Ae.damping,mass:Ae.mass,isResolvedFromDuration:!1,...e};if(!g0(e,QA)&&g0(e,GA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*fr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ae.mass,stiffness:i,damping:s}}else{const n=WA(e);t={...t,...n,mass:Ae.mass},t.isResolvedFromDuration=!0}return t}function Mu(e=Ae.visualDuration,t=Ae.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:c,velocity:f,isResolvedFromDuration:p}=YA({...n,velocity:-zn(n.velocity||0)}),h=f||0,y=u/(2*Math.sqrt(l*d)),w=o-s,m=zn(Math.sqrt(l/d)),v=Math.abs(w)<5;r||(r=v?Ae.restSpeed.granular:Ae.restSpeed.default),i||(i=v?Ae.restDelta.granular:Ae.restDelta.default);let b;if(y<1){const E=wp(m,y);b=C=>{const S=Math.exp(-y*m*C);return o-S*((h+y*m*w)/E*Math.sin(E*C)+w*Math.cos(E*C))}}else if(y===1)b=E=>o-Math.exp(-m*E)*(w+(h+m*w)*E);else{const E=m*Math.sqrt(y*y-1);b=C=>{const S=Math.exp(-y*m*C),_=Math.min(E*C,300);return o-S*((h+y*m*w)*Math.sinh(_)+E*w*Math.cosh(_))/E}}const T={calculatedDuration:p&&c||null,next:E=>{const C=b(E);if(p)a.done=E>=c;else{let S=0;y<1&&(S=E===0?$n(h):wS(b,E,C));const _=Math.abs(S)<=r,N=Math.abs(o-C)<=i;a.done=_&&N}return a.value=a.done?o:C,a},toString:()=>{const E=Math.min(fm(T),Du),C=Sb(S=>T.next(E*S).value,E,30);return E+"ms "+C},toTransition:()=>{}};return T}Mu.applyToOptions=e=>{const t=GP(e,100,Mu);return e.ease=Ca()?t.ease:"easeOut",e.duration=$n(t.duration),e.type="keyframes",e};function v0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const c=e[0],f={done:!1,value:c},p=_=>a!==void 0&&_<a||l!==void 0&&_>l,h=_=>a===void 0?l:l===void 0||Math.abs(a-_)<Math.abs(l-_)?a:l;let y=n*t;const w=c+y,m=o===void 0?w:o(w);m!==w&&(y=m-c);const v=_=>-y*Math.exp(-_/r),b=_=>m+v(_),T=_=>{const N=v(_),R=b(_);f.done=Math.abs(N)<=u,f.value=f.done?m:R};let E,C;const S=_=>{p(f.value)&&(E=_,C=Mu({keyframes:[f.value,h(f.value)],velocity:wS(b,_,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return S(0),{calculatedDuration:null,next:_=>{let N=!1;return!C&&E===void 0&&(N=!0,T(_),S(_)),E!==void 0&&_>=E?C.next(_-E):(!N&&T(_),f)}}}const XA=Ya(.42,0,1,1),ZA=Ya(0,0,.58,1),bS=Ya(.42,0,.58,1),JA=e=>Array.isArray(e)&&typeof e[0]!="number",y0={linear:sn,easeIn:XA,easeInOut:bS,easeOut:ZA,circIn:jm,circInOut:tS,circOut:eS,backIn:Pm,backInOut:Zb,backOut:Xb,anticipate:Jb},x0=e=>{if(um(e)){ap(e.length===4);const[t,n,r,i]=e;return Ya(t,n,r,i)}else if(typeof e=="string")return ap(y0[e]!==void 0),y0[e];return e};function eR(e,t,n){const r=[],i=n||xS,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||sn:t;a=Xa(l,a)}r.push(a)}return r}function tR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(ap(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=eR(t,r,i),l=a.length,u=d=>{if(o&&d<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(d<e[c+1]);c++);const f=Ta(e[c],e[c+1],d);return a[c](f)};return n?d=>u(fr(e[0],e[s-1],d)):u}function nR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ta(0,t,r);e.push(Ce(n,1,i))}}function rR(e){const t=[0];return nR(t,e.length-1),t}function iR(e,t){return e.map(n=>n*t)}function sR(e,t){return e.map(()=>t||bS).splice(0,e.length-1)}function Lu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=JA(r)?r.map(x0):x0(r),s={done:!1,value:t[0]},o=iR(n&&n.length===t.length?n:rR(t),e),a=tR(o,t,{ease:Array.isArray(i)?i:sR(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const oR=e=>{const t=({timestamp:n})=>e(n);return{start:()=>ye.update(t,!0),stop:()=>ti(t),now:()=>tt.isProcessing?tt.timestamp:Vn.now()}},aR={decay:v0,inertia:v0,tween:Lu,keyframes:Lu,spring:Mu},lR=e=>e/100;class Fm extends vS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Om,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=cm(n)?n:aR[n]||Lu;let l,u;a!==Lu&&typeof t[0]!="number"&&(l=Xa(lR,xS(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=fm(d));const{calculatedDuration:c}=d,f=c+i,p=f*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:c,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:c}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:y,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let b=this.currentTime,T=s;if(p){const _=Math.min(this.currentTime,d)/c;let N=Math.floor(_),R=_%1;!R&&_>=1&&(R=1),R===1&&N--,N=Math.min(N,p+1),!!(N%2)&&(h==="reverse"?(R=1-R,y&&(R-=y/c)):h==="mirror"&&(T=o)),b=fr(0,1,R)*c}const E=v?{done:!1,value:l[0]}:T.next(b);a&&(E.value=a(E.value));let{done:C}=E;!v&&u!==null&&(C=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return S&&i!==void 0&&(E.value=gc(l,this.options,i)),w&&w(E.value),S&&this.finish(),E}get duration(){const{resolved:t}=this;return t?zn(t.calculatedDuration):0}get time(){return zn(this.currentTime)}set time(t){t=$n(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=zn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=oR,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}get finished(){return this.currentFinishedPromise}}const uR=new Set(["opacity","clipPath","filter","transform"]),cR=am(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Iu=10,dR=2e4;function fR(e){return cm(e.type)||e.type==="spring"||!Eb(e.ease)}function pR(e,t){const n=new Fm({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<dR;)r=n.sample(s),i.push(r.value),s+=Iu;return{times:void 0,keyframes:i,duration:s-Iu,ease:"linear"}}const SS={anticipate:Jb,backInOut:Zb,circInOut:tS};function hR(e){return e in SS}class w0 extends vS{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new gS(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Ca()&&hR(s)&&(s=SS[s]),fR(this.options)){const{onComplete:c,onUpdate:f,motionValue:p,element:h,...y}=this.options,w=pR(t,y);t=w.keyframes,t.length===1&&(t[1]=t[0]),r=w.duration,i=w.times,s=w.ease,o="keyframes"}const d=KP(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Gv(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:c}=this.options;a.set(gc(t,this.options,n)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return zn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return zn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$n(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}get finished(){return this.resolved.animation.finished}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return sn;const{animation:r}=n;Gv(r,t)}return sn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:c,element:f,...p}=this.options,h=new Fm({...p,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),y=$n(this.time);u.setWithVelocity(h.sample(y-Iu).value,h.sample(y).value,Iu)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return cR()&&r&&uR.has(r)&&(r!=="transform"||!u)&&!l&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const mR={type:"spring",stiffness:500,damping:25,restSpeed:10},gR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vR={type:"keyframes",duration:.8},yR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xR=(e,{keyframes:t})=>t.length>2?vR:ts.has(e)?e.startsWith("scale")?gR(t[1]):mR:yR;function wR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Nm=(e,t,n,r={},i,s)=>o=>{const a=dm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-$n(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};wR(a)||(d={...d,...xR(e,d)}),d.duration&&(d.duration=$n(d.duration)),d.repeatDelay&&(d.repeatDelay=$n(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let c=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(c=!0)),d.allowFlatten=!a.type&&!a.ease,c&&!s&&t.get()!==void 0){const f=gc(d.keyframes,a);if(f!==void 0)return ye.update(()=>{d.onUpdate(f),d.onComplete()}),new HP([])}return!s&&w0.supports(d)?new w0(d):new Fm(d)};function bR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kS(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const c=e.getValue(d,e.latestValues[d]??null),f=a[d];if(f===void 0||u&&bR(u,d))continue;const p={delay:n,...dm(s||{},d)};let h=!1;if(window.MotionHandoffAnimation){const w=Kb(e);if(w){const m=window.MotionHandoffAnimation(w,d,ye);m!==null&&(p.startTime=m,h=!0)}}dp(e,d),c.start(Nm(d,c,f,e.shouldReduceMotion&&qb.has(d)?{type:!1}:p,e,h));const y=c.animation;y&&l.push(y)}return o&&Promise.all(l).then(()=>{ye.update(()=>{o&&Xj(e,o)})}),l}function bp(e,t,n={}){var l;const r=Ra(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(kS(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:c,staggerDirection:f}=i;return SR(e,t,d+u,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,d]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function SR(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(kR).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(bp(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function kR(e,t){return e.sortNodePosition(t)}function ER(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>bp(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=bp(e,t,n);else{const i=typeof t=="function"?Ra(e,t,n.custom):t;r=Promise.all(kS(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function ES(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const TR=gm.length;function TS(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?TS(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<TR;n++){const r=gm[n],i=e.props[r];(Pa(i)||i===!1)&&(t[r]=i)}return t}const CR=[...mm].reverse(),_R=mm.length;function PR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ER(e,n,r)))}function jR(e){let t=PR(e),n=b0(),r=!0;const i=l=>(u,d)=>{var f;const c=Ra(e,d,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(c){const{transition:p,transitionEnd:h,...y}=c;u={...u,...y,...h}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,d=TS(e.parent)||{},c=[],f=new Set;let p={},h=1/0;for(let w=0;w<_R;w++){const m=CR[w],v=n[m],b=u[m]!==void 0?u[m]:d[m],T=Pa(b),E=m===l?v.isActive:null;E===!1&&(h=w);let C=b===d[m]&&b!==u[m]&&T;if(C&&r&&e.manuallyAnimateOnMount&&(C=!1),v.protectedKeys={...p},!v.isActive&&E===null||!b&&!v.prevProp||hc(b)||typeof b=="boolean")continue;const S=AR(v.prevProp,b);let _=S||m===l&&v.isActive&&!C&&T||w>h&&T,N=!1;const R=Array.isArray(b)?b:[b];let I=R.reduce(i(m),{});E===!1&&(I={});const{prevResolvedValues:ne={}}=v,te={...ne,...I},ee=re=>{_=!0,f.has(re)&&(N=!0,f.delete(re)),v.needsAnimating[re]=!0;const O=e.getValue(re);O&&(O.liveStyle=!1)};for(const re in te){const O=I[re],M=ne[re];if(p.hasOwnProperty(re))continue;let U=!1;cp(O)&&cp(M)?U=!ES(O,M):U=O!==M,U?O!=null?ee(re):f.add(re):O!==void 0&&f.has(re)?ee(re):v.protectedKeys[re]=!0}v.prevProp=b,v.prevResolvedValues=I,v.isActive&&(p={...p,...I}),r&&e.blockInitialAnimation&&(_=!1),_&&(!(C&&S)||N)&&c.push(...R.map(re=>({animation:re,options:{type:m}})))}if(f.size){const w={};if(typeof u.initial!="boolean"){const m=Ra(e,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(w.transition=m.transition)}f.forEach(m=>{const v=e.getBaseTarget(m),b=e.getValue(m);b&&(b.liveStyle=!0),w[m]=v??null}),c.push({animation:w})}let y=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(c):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)==null||c.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=b0(),r=!0}}}function AR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ES(t,e):!1}function pi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function b0(){return{animate:pi(!0),whileInView:pi(),whileHover:pi(),whileTap:pi(),whileDrag:pi(),whileFocus:pi(),exit:pi()}}class ai{constructor(t){this.isMounted=!1,this.node=t}update(){}}class RR extends ai{constructor(t){super(t),t.animationState||(t.animationState=jR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();hc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let OR=0;class DR extends ai{constructor(){super(...arguments),this.id=OR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const FR={animation:{Feature:RR},exit:{Feature:DR}};function Da(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Za(e){return{point:{x:e.pageX,y:e.pageY}}}const NR=e=>t=>hm(t)&&e(t,Za(t));function ea(e,t,n,r){return Da(e,t,NR(n),r)}function CS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function MR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function LR(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const _S=1e-4,IR=1-_S,$R=1+_S,PS=.01,zR=0-PS,VR=0+PS;function vt(e){return e.max-e.min}function BR(e,t,n){return Math.abs(e-t)<=n}function S0(e,t,n,r=.5){e.origin=r,e.originPoint=Ce(t.min,t.max,e.origin),e.scale=vt(n)/vt(t),e.translate=Ce(n.min,n.max,e.origin)-e.originPoint,(e.scale>=IR&&e.scale<=$R||isNaN(e.scale))&&(e.scale=1),(e.translate>=zR&&e.translate<=VR||isNaN(e.translate))&&(e.translate=0)}function ta(e,t,n,r){S0(e.x,t.x,n.x,r?r.originX:void 0),S0(e.y,t.y,n.y,r?r.originY:void 0)}function k0(e,t,n){e.min=n.min+t.min,e.max=e.min+vt(t)}function UR(e,t,n){k0(e.x,t.x,n.x),k0(e.y,t.y,n.y)}function E0(e,t,n){e.min=t.min-n.min,e.max=e.min+vt(t)}function na(e,t,n){E0(e.x,t.x,n.x),E0(e.y,t.y,n.y)}const T0=()=>({translate:0,scale:1,origin:0,originPoint:0}),As=()=>({x:T0(),y:T0()}),C0=()=>({min:0,max:0}),Fe=()=>({x:C0(),y:C0()});function Yt(e){return[e("x"),e("y")]}function Td(e){return e===void 0||e===1}function Sp({scale:e,scaleX:t,scaleY:n}){return!Td(e)||!Td(t)||!Td(n)}function vi(e){return Sp(e)||jS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function jS(e){return _0(e.x)||_0(e.y)}function _0(e){return e&&e!=="0%"}function $u(e,t,n){const r=e-n,i=t*r;return n+i}function P0(e,t,n,r,i){return i!==void 0&&(e=$u(e,i,r)),$u(e,n,r)+t}function kp(e,t=0,n=1,r,i){e.min=P0(e.min,t,n,r,i),e.max=P0(e.max,t,n,r,i)}function AS(e,{x:t,y:n}){kp(e.x,t.translate,t.scale,t.originPoint),kp(e.y,n.translate,n.scale,n.originPoint)}const j0=.999999999999,A0=1.0000000000001;function HR(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Os(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,AS(e,o)),r&&vi(s.latestValues)&&Os(e,s.latestValues))}t.x<A0&&t.x>j0&&(t.x=1),t.y<A0&&t.y>j0&&(t.y=1)}function Rs(e,t){e.min=e.min+t,e.max=e.max+t}function R0(e,t,n,r,i=.5){const s=Ce(e.min,e.max,i);kp(e,t,n,s,r)}function Os(e,t){R0(e.x,t.x,t.scaleX,t.scale,t.originX),R0(e.y,t.y,t.scaleY,t.scale,t.originY)}function RS(e,t){return CS(LR(e.getBoundingClientRect(),t))}function WR(e,t,n){const r=RS(e,n),{scroll:i}=t;return i&&(Rs(r.x,i.offset.x),Rs(r.y,i.offset.y)),r}const OS=({current:e})=>e?e.ownerDocument.defaultView:null,O0=(e,t)=>Math.abs(e-t);function qR(e,t){const n=O0(e.x,t.x),r=O0(e.y,t.y);return Math.sqrt(n**2+r**2)}class DS{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=_d(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=qR(c.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:h}=c,{timestamp:y}=tt;this.history.push({...h,timestamp:y});const{onStart:w,onMove:m}=this.handlers;f||(w&&w(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=Cd(f,this.transformPagePoint),ye.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();const{onEnd:p,onSessionEnd:h,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=_d(c.type==="pointercancel"?this.lastMoveEventInfo:Cd(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(c,w),h&&h(c,w)},!hm(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Za(t),a=Cd(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=tt;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,_d(a,this.history)),this.removeListeners=Xa(ea(this.contextWindow,"pointermove",this.handlePointerMove),ea(this.contextWindow,"pointerup",this.handlePointerUp),ea(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ti(this.updatePoint)}}function Cd(e,t){return t?{point:t(e.point)}:e}function D0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _d({point:e},t){return{point:e,delta:D0(e,FS(t)),offset:D0(e,KR(t)),velocity:GR(t,.1)}}function KR(e){return e[0]}function FS(e){return e[e.length-1]}function GR(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=FS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$n(t)));)n--;if(!r)return{x:0,y:0};const s=zn(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function QR(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ce(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ce(n,e,r.max):Math.min(e,n)),e}function F0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function YR(e,{top:t,left:n,bottom:r,right:i}){return{x:F0(e.x,n,i),y:F0(e.y,t,r)}}function N0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function XR(e,t){return{x:N0(e.x,t.x),y:N0(e.y,t.y)}}function ZR(e,t){let n=.5;const r=vt(e),i=vt(t);return i>r?n=Ta(t.min,t.max-r,e.min):r>i&&(n=Ta(e.min,e.max-i,t.min)),fr(0,1,n)}function JR(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ep=.35;function eO(e=Ep){return e===!1?e=0:e===!0&&(e=Ep),{x:M0(e,"left","right"),y:M0(e,"top","bottom")}}function M0(e,t,n){return{min:L0(e,t),max:L0(e,n)}}function L0(e,t){return typeof e=="number"?e:e[t]||0}const tO=new WeakMap;class nO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Fe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Za(d).point)},s=(d,c)=>{const{drag:f,dragPropagation:p,onDragStart:h}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZP(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yt(w=>{let m=this.getAxisMotionValue(w).get()||0;if(Bn.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const b=v.layout.layoutBox[w];b&&(m=vt(b)*(parseFloat(m)/100))}}this.originPoint[w]=m}),h&&ye.postRender(()=>h(d,c)),dp(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(d,c)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:w}=c;if(p&&this.currentDirection===null){this.currentDirection=rO(w),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",c.point,w),this.updateAxis("y",c.point,w),this.visualElement.render(),y&&y(d,c)},a=(d,c)=>this.stop(d,c),l=()=>Yt(d=>{var c;return this.getAnimationState(d)==="paused"&&((c=this.getAxisMotionValue(d).animation)==null?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new DS(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:OS(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&ye.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Cl(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=QR(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Ps(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=YR(r.layoutBox,t):this.constraints=!1,this.elastic=eO(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Yt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=JR(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ps(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=WR(r,i.root,this.visualElement.getTransformPagePoint());let o=XR(i.layout.layoutBox,s);if(n){const a=n(MR(o));this.hasMutatedConstraints=!!a,a&&(o=CS(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Yt(d=>{if(!Cl(d,n,this.currentDirection))return;let c=l&&l[d]||{};o&&(c={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...c};return this.startAxisValueAnimation(d,h)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dp(this.visualElement,t),r.start(Nm(t,r,0,n,this.visualElement,!1))}stopAnimation(){Yt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Yt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Yt(n=>{const{drag:r}=this.getProps();if(!Cl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Ce(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ps(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Yt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=ZR({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Yt(o=>{if(!Cl(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Ce(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;tO.set(this.visualElement,this);const t=this.visualElement.current,n=ea(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ps(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),ye.read(r);const o=Da(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Yt(d=>{const c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ep,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Cl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function rO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class iO extends ai{constructor(t){super(t),this.removeGroupControls=sn,this.removeListeners=sn,this.controls=new nO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sn}unmount(){this.removeGroupControls(),this.removeListeners()}}const I0=e=>(t,n)=>{e&&ye.postRender(()=>e(t,n))};class sO extends ai{constructor(){super(...arguments),this.removePointerDownListener=sn}onPointerDown(t){this.session=new DS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:OS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I0(t),onStart:I0(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&ye.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=ea(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=$0(e,t.target.x),r=$0(e,t.target.y);return`${n}% ${r}%`}},oO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ni.parse(e);if(i.length>5)return r;const s=ni.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Ce(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class aO extends g.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;Tj(lO),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||ye.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),pm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function NS(e){const[t,n]=wb(),r=g.useContext(tm);return x.jsx(aO,{...e,layoutGroup:r,switchLayoutGroup:g.useContext(Db),isPresent:t,safeToRemove:n})}const lO={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:oO};function uO(e,t,n){const r=ft(e)?e:_a(e);return r.start(Nm("",r,t,n)),r.animation}function cO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const dO=(e,t)=>e.depth-t.depth;class fO{constructor(){this.children=[],this.isDirty=!1}add(t){sm(this.children,t),this.isDirty=!0}remove(t){om(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(dO),this.isDirty=!1,this.children.forEach(t)}}function pO(e,t){const n=Vn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(ti(r),e(s-t))};return ye.read(r,!0),()=>ti(r)}const MS=["TopLeft","TopRight","BottomLeft","BottomRight"],hO=MS.length,z0=e=>typeof e=="string"?parseFloat(e):e,V0=e=>typeof e=="number"||K.test(e);function mO(e,t,n,r,i,s){i?(e.opacity=Ce(0,n.opacity??1,gO(r)),e.opacityExit=Ce(t.opacity??1,0,vO(r))):s&&(e.opacity=Ce(t.opacity??1,n.opacity??1,r));for(let o=0;o<hO;o++){const a=`border${MS[o]}Radius`;let l=B0(t,a),u=B0(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||V0(l)===V0(u)?(e[a]=Math.max(Ce(z0(l),z0(u),r),0),(Bn.test(u)||Bn.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Ce(t.rotate||0,n.rotate||0,r))}function B0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const gO=LS(0,.5,eS),vO=LS(.5,.95,sn);function LS(e,t,n){return r=>r<e?0:r>t?1:n(Ta(e,t,r))}function U0(e,t){e.min=t.min,e.max=t.max}function Gt(e,t){U0(e.x,t.x),U0(e.y,t.y)}function H0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function W0(e,t,n,r,i){return e-=t,e=$u(e,1/n,r),i!==void 0&&(e=$u(e,1/i,r)),e}function yO(e,t=0,n=1,r=.5,i,s=e,o=e){if(Bn.test(t)&&(t=parseFloat(t),t=Ce(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ce(s.min,s.max,r);e===s&&(a-=t),e.min=W0(e.min,t,n,a,i),e.max=W0(e.max,t,n,a,i)}function q0(e,t,[n,r,i],s,o){yO(e,t[n],t[r],t[i],t.scale,s,o)}const xO=["x","scaleX","originX"],wO=["y","scaleY","originY"];function K0(e,t,n,r){q0(e.x,t,xO,n?n.x:void 0,r?r.x:void 0),q0(e.y,t,wO,n?n.y:void 0,r?r.y:void 0)}function G0(e){return e.translate===0&&e.scale===1}function IS(e){return G0(e.x)&&G0(e.y)}function Q0(e,t){return e.min===t.min&&e.max===t.max}function bO(e,t){return Q0(e.x,t.x)&&Q0(e.y,t.y)}function Y0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $S(e,t){return Y0(e.x,t.x)&&Y0(e.y,t.y)}function X0(e){return vt(e.x)/vt(e.y)}function Z0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class SO{constructor(){this.members=[]}add(t){sm(this.members,t),t.scheduleRender()}remove(t){if(om(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function kO(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:c,rotateY:f,skewX:p,skewY:h}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const Pd=["","X","Y","Z"],EO={visibility:"hidden"},J0=1e3;let TO=0;function jd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function zS(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Kb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ye,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&zS(r)}function VS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=TO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(PO),this.nodes.forEach(DO),this.nodes.forEach(FO),this.nodes.forEach(jO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new fO)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new lm),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=cO(o),this.instance=o;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let c;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=pO(f,250),Yl.hasAnimatedSinceResize&&(Yl.hasAnimatedSinceResize=!1,this.nodes.forEach(ty))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||$O,{onLayoutAnimationStart:w,onLayoutAnimationComplete:m}=d.getProps(),v=!this.targetLayout||!$S(this.targetLayout,h),b=!f&&p;if(this.options.layoutRoot||this.resumeFrom||b||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,b);const T={...dm(y,"layout"),onPlay:w,onComplete:m};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||ty(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ti(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(NO),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&zS(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const c=this.path[d];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ey);return}this.isUpdating||this.nodes.forEach(RO),this.isUpdating=!1,this.nodes.forEach(OO),this.nodes.forEach(CO),this.nodes.forEach(_O),this.clearAllSnapshots();const a=Vn.now();tt.delta=fr(0,1e3/60,a-tt.timestamp),tt.timestamp=a,tt.isProcessing=!0,xd.update.process(tt),xd.preRender.process(tt),xd.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AO),this.sharedNodes.forEach(MO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ye.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ye.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Fe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!IS(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(a||vi(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),zO(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return Fe();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(VO))){const{scroll:d}=this.root;d&&(Rs(a.x,d.offset.x),Rs(a.y,d.offset.y))}return a}removeElementScroll(o){var l;const a=Fe();if(Gt(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:c,options:f}=d;d!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Gt(a,o),Rs(a.x,c.offset.x),Rs(a.y,c.offset.y))}return a}applyTransform(o,a=!1){const l=Fe();Gt(l,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Os(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),vi(d.latestValues)&&Os(l,d.latestValues)}return vi(this.latestValues)&&Os(l,this.latestValues),l}removeTransform(o){const a=Fe();Gt(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!vi(u.latestValues))continue;Sp(u.latestValues)&&u.updateSnapshot();const d=Fe(),c=u.measurePageBox();Gt(d,c),K0(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return vi(this.latestValues)&&K0(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:c}=this.options;if(!(!this.layout||!(d||c))){if(this.resolvedRelativeTargetAt=tt.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),na(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Fe(),this.targetWithTransforms=Fe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),UR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Gt(this.target,this.layout.layoutBox),AS(this.target,this.targetDelta)):Gt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fe(),this.relativeTargetOrigin=Fe(),na(this.relativeTargetOrigin,this.target,p.target),Gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Sp(this.parent.latestValues)||jS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var h;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Gt(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,f=this.treeScale.y;HR(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Fe());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(H0(this.prevProjectionDelta.x,this.projectionDelta.x),H0(this.prevProjectionDelta.y,this.projectionDelta.y)),ta(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==f||!Z0(this.projectionDelta.x,this.prevProjectionDelta.x)||!Z0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=As(),this.projectionDelta=As(),this.projectionDeltaWithTransform=As()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=As();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Fe(),p=l?l.source:void 0,h=this.layout?this.layout.source:void 0,y=p!==h,w=this.getStack(),m=!w||w.members.length<=1,v=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(IO));this.animationProgress=0;let b;this.mixTargetDelta=T=>{const E=T/1e3;ny(c.x,o.x,E),ny(c.y,o.y,E),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(na(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LO(this.relativeTarget,this.relativeTargetOrigin,f,E),b&&bO(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Fe()),Gt(b,this.relativeTarget)),y&&(this.animationValues=d,mO(d,u,this.latestValues,E,v,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ti(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ye.update(()=>{Yl.hasAnimatedSinceResize=!0,this.currentAnimation=uO(0,J0,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(J0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&BS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Fe();const c=vt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+c;const f=vt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Gt(a,l),Os(a,d),ta(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new SO),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&jd("z",o,u,this.animationValues);for(let d=0;d<Pd.length;d++)jd(`rotate${Pd[d]}`,o,u,this.animationValues),jd(`skew${Pd[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){if(!this.instance||this.isSVG)return;if(!this.isVisible)return EO;const a={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=Ql(o==null?void 0:o.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none",a;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Ql(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!vi(this.latestValues)&&(p.transform=l?l({},""):"none",this.hasProjected=!1),p}const d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),a.transform=kO(this.projectionDeltaWithTransform,this.treeScale,d),l&&(a.transform=l(d,a.transform));const{x:c,y:f}=this.projectionDelta;a.transformOrigin=`${c.origin*100}% ${f.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in ja){if(d[p]===void 0)continue;const{correct:h,applyTo:y,isCSSVariable:w}=ja[p],m=a.transform==="none"?d[p]:h(d[p],u);if(y){const v=y.length;for(let b=0;b<v;b++)a[y[b]]=m}else w?this.options.visualElement.renderState.vars[p]=m:a[p]=m}return this.options.layoutId&&(a.pointerEvents=u===this?Ql(o==null?void 0:o.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(ey),this.root.sharedNodes.clear()}}}function CO(e){e.updateLayout()}function _O(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?Yt(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],p=vt(f);f.min=r[c].min,f.max=f.min+p}):BS(s,t.layoutBox,r)&&Yt(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],p=vt(r[c]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const a=As();ta(a,r,t.layoutBox);const l=As();o?ta(l,e.applyTransform(i,!0),t.measuredBox):ta(l,r,t.layoutBox);const u=!IS(a);let d=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:p}=c;if(f&&p){const h=Fe();na(h,t.layoutBox,f.layoutBox);const y=Fe();na(y,r,p.layoutBox),$S(h,y)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=h,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function PO(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AO(e){e.clearSnapshot()}function ey(e){e.clearMeasurements()}function RO(e){e.isLayoutDirty=!1}function OO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ty(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function DO(e){e.resolveTargetDelta()}function FO(e){e.calcProjection()}function NO(e){e.resetSkewAndRotation()}function MO(e){e.removeLeadSnapshot()}function ny(e,t,n){e.translate=Ce(t.translate,0,n),e.scale=Ce(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ry(e,t,n,r){e.min=Ce(t.min,n.min,r),e.max=Ce(t.max,n.max,r)}function LO(e,t,n,r){ry(e.x,t.x,n.x,r),ry(e.y,t.y,n.y,r)}function IO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $O={duration:.45,ease:[.4,0,.1,1]},iy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sy=iy("applewebkit/")&&!iy("chrome/")?Math.round:sn;function oy(e){e.min=sy(e.min),e.max=sy(e.max)}function zO(e){oy(e.x),oy(e.y)}function BS(e,t,n){return e==="position"||e==="preserve-aspect"&&!BR(X0(t),X0(n),.2)}function VO(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const BO=VS({attachResizeListener:(e,t)=>Da(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ad={current:void 0},US=VS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ad.current){const e=new BO({});e.mount(window),e.setOptions({layoutScroll:!0}),Ad.current=e}return Ad.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),UO={pan:{Feature:sO},drag:{Feature:iO,ProjectionNode:US,MeasureLayout:NS}};function ay(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&ye.postRender(()=>s(t,Za(t)))}class HO extends ai{mount(){const{current:t}=this.node;t&&(this.unmount=ej(t,(n,r)=>(ay(this.node,r,"Start"),i=>ay(this.node,i,"End"))))}unmount(){}}class WO extends ai{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xa(Da(this.node.current,"focus",()=>this.onFocus()),Da(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ly(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&ye.postRender(()=>s(t,Za(t)))}class qO extends ai{mount(){const{current:t}=this.node;t&&(this.unmount=ij(t,(n,r)=>(ly(this.node,r,"Start"),(i,{success:s})=>ly(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Tp=new WeakMap,Rd=new WeakMap,KO=e=>{const t=Tp.get(e.target);t&&t(e)},GO=e=>{e.forEach(KO)};function QO({root:e,...t}){const n=e||document;Rd.has(n)||Rd.set(n,{});const r=Rd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(GO,{root:e,...t})),r[i]}function YO(e,t,n){const r=QO(t);return Tp.set(e,n),r.observe(e),()=>{Tp.delete(e),r.unobserve(e)}}const XO={some:0,all:1};class ZO extends ai{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:XO[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return YO(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(JO(t,n))&&this.startObserver()}unmount(){}}function JO({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const e3={inView:{Feature:ZO},tap:{Feature:qO},focus:{Feature:WO},hover:{Feature:HO}},t3={layout:{ProjectionNode:US,MeasureLayout:NS}},Cp={current:null},HS={current:!1};function n3(){if(HS.current=!0,!!rm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cp.current=e.matches;e.addListener(t),t()}else Cp.current=!1}const r3=[...mS,ct,ni],i3=e=>r3.find(hS(e)),s3=new WeakMap;function o3(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ft(i))e.addValue(r,i);else if(ft(s))e.addValue(r,_a(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,_a(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const uy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class a3{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Om,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Vn.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,ye.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=mc(n),this.isVariantNode=Rb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];l[p]!==void 0&&ft(h)&&h.set(l[p],!1)}}mount(t){this.current=t,s3.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),HS.current||n3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ti(this.notifyUpdate),ti(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ts.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&ye.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in uo){const n=uo[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<uy.length;r++){const i=uy[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=o3(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_a(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(fS(r)||nS(r))?r=parseFloat(r):!i3(r)&&ni.test(n)&&(r=uS(t,n)),this.setBaseTarget(t,ft(r)?r.get():r)),ft(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Cm(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ft(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class WS extends a3{constructor(){super(...arguments),this.KeyframeResolver=gS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ft(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function l3(e){return window.getComputedStyle(e)}class u3 extends WS{constructor(){super(...arguments),this.type="html",this.renderInstance=Bb}readValueFromInstance(t,n){if(ts.has(n))return SA(t,n);{const r=l3(t),i=(ym(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return RS(t,n)}build(t,n,r){bm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _m(t,n,r)}}class c3 extends WS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fe,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Vb(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ts.has(n)){const r=lS(n);return r&&r.default||0}return n=Ub.has(n)?n:vm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Wb(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&ye.postRender(this.updateDimensions)}build(t,n,r){Em(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Hb(t,n,r,i)}mount(t){this.isSVGTag=Tm(t.tagName),super.mount(t)}}const d3=(e,t)=>km(e)?new c3(t):new u3(t,{allowProjection:e!==g.Fragment}),f3=Qj({...FR,...e3,...UO,...t3},d3),Me=dj(f3),p3=e=>["zink","slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"].includes(e),Ft=e=>{const[t,n]=e.split("-");return p3(t)?n?`var(--color-${t}-${n})`:`var(--color-${e}-500)`:`var(--color-${e})`};var Tr=(e=>(e.None="none",e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e.Full="full",e))(Tr||{});const qS=g.createContext({}),h3={[Q.Background]:"",[Q.Border]:"initial",[Q.TooltipText]:Ft("blue-700"),[Q.TooltipBackground]:Ft("blue-100"),[Q.TooltipBorder]:Ft("blue-500"),[Q.HeaderBackground]:Ft("blue-600"),[Q.HeaderBorder]:"initial",[Q.HeaderText]:"white",[Q.FooterBackground]:"",[Q.FooterBorder]:"",[Q.FooterText]:"",[Q.MessageAdminBackground]:"",[Q.MessageAdminText]:"",[Q.MessageVisitorBackground]:"",[Q.MessageVisitorText]:"",[Q.GreeterBackground]:"white",[Q.GreeterText]:Ft("slate-700"),[Q.GreeterBorder]:Ft("slate-200"),[Q.GreeterTopBackground]:"linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%)",[Q.GreeterTopText]:"white",[Q.GreeterButtonBackground]:Ft("indigo-600"),[Q.GreeterButtonText]:Ft("white"),[Q.ButtonBackground]:Ft("indigo-600"),[Q.ButtonText]:Ft("white"),[Q.InputBackground]:Ft("white"),[Q.InputText]:Ft("slate-800"),[Q.InputBorder]:Ft("slate-200")},m3={[Tr.None]:"0px",[Tr.Sm]:"var(--radius-xs)",[Tr.Md]:"var(--radius-sm)",[Tr.Lg]:"var(--radius-md)",[Tr.Xl]:"var(--radius-lg)",[Tr.Full]:"calc(infinity * 1px)"},g3=e=>{const t={...h3};if(!e||!e.appearance||!e.appearance.design||!e.appearance.design.colors)return t;for(const n in e.appearance.design.colors){const r=n;e.appearance.design.colors[r]&&(t[r]=e.appearance.design.colors[r])}return t};function v3({children:e,widget:t}){const n=g3(t),r=t&&t.appearance&&t.appearance.design&&t.appearance.design.border_radius?t.appearance.design.border_radius:Tr.Md,i=o=>n[o],s=()=>m3[r];return x.jsx(qS.Provider,{value:{colors:n,getColor:i,getRadius:s},children:e})}const hr=()=>g.useContext(qS);function or({children:e,type:t="button",variant:n="primary",kind:r="solid",size:i="md",disabled:s=!1,rounded:o=!1,className:a,textKey:l=Q.ButtonText,bgKey:u=Q.ButtonBackground,animations:d={},withoutTheming:c,...f}){const p=hr();return x.jsx(Me.button,{type:t,className:ke("flex items-center justify-center focus:!ring-0 font-medium",{"rounded-full":o&&i!=="xs","rounded-lg":!o},a,Wv[n]&&Wv[n][r],MP[i][o?"rounded":"default"]),disabled:s,style:!c&&{color:p.getColor(l),backgroundColor:p.getColor(u),...o?{}:{borderRadius:p.getRadius()}},...d,...f,children:e})}function Oe(){}Oe.Home=function(t){return x.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:x.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"})})};Oe.Chat=e=>x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:x.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"})});Oe.Menu=e=>x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})});Oe.MessageTyping=({className:e="size-5",...t})=>x.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:x.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"})});Oe.Check=function(t){return x.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",...t,children:x.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"})})};Oe.Website=function(t){return x.jsxs("svg",{fill:"none",viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[x.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"}),x.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"}),x.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"})]})};Oe.ArrowDown=e=>x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})});Oe.XCircle=({className:e="e-5",...t})=>x.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:x.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"})});Oe.X=({className:e="e-5",...t})=>x.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:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})});Oe.PaperAirplane=({className:e="e-5",...t})=>x.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:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})});Oe.Spin=function(t){return x.jsx("svg",{"data-name":"Layer 1",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:x.jsx("path",{d:"M6.804 15a1 1 0 00-1.366-.366l-1.732 1a1 1 0 001 1.732l1.732-1A1 1 0 006.804 15zM3.706 8.366l1.732 1a1 1 0 101-1.732l-1.732-1a1 1 0 00-1 1.732zM6 12a1 1 0 00-1-1H3a1 1 0 000 2h2a1 1 0 001-1zm11.196-3a1 1 0 001.366.366l1.732-1a1 1 0 10-1-1.732l-1.732 1A1 1 0 0017.196 9zM15 6.804a1 1 0 001.366-.366l1-1.732a1 1 0 10-1.732-1l-1 1.732A1 1 0 0015 6.804zm5.294 8.83l-1.732-1a1 1 0 10-1 1.732l1.732 1a1 1 0 001-1.732zm-3.928 1.928a1 1 0 10-1.732 1l1 1.732a1 1 0 101.732-1zM21 11h-2a1 1 0 000 2h2a1 1 0 000-2zm-9 7a1 1 0 00-1 1v2a1 1 0 002 0v-2a1 1 0 00-1-1zm-3-.804a1 1 0 00-1.366.366l-1 1.732a1 1 0 001.732 1l1-1.732A1 1 0 009 17.196zM12 2a1 1 0 00-1 1v2a1 1 0 002 0V3a1 1 0 00-1-1z"})})};const Wn=Object.create(null);Wn.open="0";Wn.close="1";Wn.ping="2";Wn.pong="3";Wn.message="4";Wn.upgrade="5";Wn.noop="6";const Xl=Object.create(null);Object.keys(Wn).forEach(e=>{Xl[Wn[e]]=e});const _p={type:"error",data:"parser error"},KS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",GS=typeof ArrayBuffer=="function",QS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Mm=({type:e,data:t},n,r)=>KS&&t instanceof Blob?n?r(t):cy(t,r):GS&&(t instanceof ArrayBuffer||QS(t))?n?r(t):cy(new Blob([t]),r):r(Wn[e]+(t||"")),cy=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function dy(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Od;function y3(e,t){if(KS&&e.data instanceof Blob)return e.data.arrayBuffer().then(dy).then(t);if(GS&&(e.data instanceof ArrayBuffer||QS(e.data)))return t(dy(e.data));Mm(e,!1,n=>{Od||(Od=new TextEncoder),t(Od.encode(n))})}const fy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<fy.length;e++)Uo[fy.charCodeAt(e)]=e;const x3=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 u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)s=Uo[e.charCodeAt(r)],o=Uo[e.charCodeAt(r+1)],a=Uo[e.charCodeAt(r+2)],l=Uo[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 u},w3=typeof ArrayBuffer=="function",Lm=(e,t)=>{if(typeof e!="string")return{type:"message",data:YS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:b3(e.substring(1),t)}:Xl[n]?e.length>1?{type:Xl[n],data:e.substring(1)}:{type:Xl[n]}:_p},b3=(e,t)=>{if(w3){const n=x3(e);return YS(n,t)}else return{base64:!0,data:e}},YS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},XS="",S3=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,o)=>{Mm(s,!1,a=>{r[o]=a,++i===n&&t(r.join(XS))})})},k3=(e,t)=>{const n=e.split(XS),r=[];for(let i=0;i<n.length;i++){const s=Lm(n[i],t);if(r.push(s),s.type==="error")break}return r};function E3(){return new TransformStream({transform(e,t){y3(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 Dd;function _l(e){return e.reduce((t,n)=>t+n.length,0)}function Pl(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 T3(e,t){Dd||(Dd=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(_l(n)<1)break;const l=Pl(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(_l(n)<2)break;const l=Pl(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(_l(n)<8)break;const l=Pl(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),d=u.getUint32(0);if(d>Math.pow(2,21)-1){a.enqueue(_p);break}i=d*Math.pow(2,32)+u.getUint32(4),r=3}else{if(_l(n)<i)break;const l=Pl(n,i);a.enqueue(Lm(s?l:Dd.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(_p);break}}}})}const ZS=4;function Ie(e){if(e)return C3(e)}function C3(e){for(var t in Ie.prototype)e[t]=Ie.prototype[t];return e}Ie.prototype.on=Ie.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ie.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ie.prototype.off=Ie.prototype.removeListener=Ie.prototype.removeAllListeners=Ie.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};Ie.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};Ie.prototype.emitReserved=Ie.prototype.emit;Ie.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ie.prototype.hasListeners=function(e){return!!this.listeners(e).length};const vc=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),tn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),_3="arraybuffer";function JS(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const P3=tn.setTimeout,j3=tn.clearTimeout;function yc(e,t){t.useNativeTimers?(e.setTimeoutFn=P3.bind(tn),e.clearTimeoutFn=j3.bind(tn)):(e.setTimeoutFn=tn.setTimeout.bind(tn),e.clearTimeoutFn=tn.clearTimeout.bind(tn))}const A3=1.33;function R3(e){return typeof e=="string"?O3(e):Math.ceil((e.byteLength||e.size)*A3)}function O3(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 ek(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function D3(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function F3(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 N3 extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Im extends Ie{constructor(t){super(),this.writable=!1,yc(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 N3(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=Lm(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=D3(t);return n.length?"?"+n:""}}class M3 extends Im{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)};k3(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,S3(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]=ek()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let tk=!1;try{tk=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const L3=tk;function I3(){}class $3 extends M3{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 Un extends Ie{constructor(t,n,r){super(),this.createRequest=t,yc(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=JS(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=Un.requestsCount++,Un.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=I3,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Un.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()}}Un.requestsCount=0;Un.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",py);else if(typeof addEventListener=="function"){const e="onpagehide"in tn?"pagehide":"unload";addEventListener(e,py,!1)}}function py(){for(let e in Un.requests)Un.requests.hasOwnProperty(e)&&Un.requests[e].abort()}const z3=function(){const e=nk({xdomain:!1});return e&&e.responseType!==null}();class V3 extends $3{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=z3&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Un(nk,this.uri(),t)}}function nk(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||L3))return new XMLHttpRequest}catch{}if(!t)try{return new tn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const rk=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class B3 extends Im{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=rk?{}:JS(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;Mm(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&vc(()=>{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]=ek()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Fd=tn.WebSocket||tn.MozWebSocket;class U3 extends B3{createSocket(t,n,r){return rk?new Fd(t,n,r):n?new Fd(t,n):new Fd(t)}doWrite(t,n){this.ws.send(n)}}class H3 extends Im{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=T3(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=E3();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&&vc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const W3={websocket:U3,webtransport:H3,polling:V3},q3=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,K3=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pp(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=q3.exec(e||""),s={},o=14;for(;o--;)s[K3[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=G3(s,s.path),s.queryKey=Q3(s,s.query),s}function G3(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 Q3(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const jp=typeof addEventListener=="function"&&typeof removeEventListener=="function",Zl=[];jp&&addEventListener("offline",()=>{Zl.forEach(e=>e())},!1);class Yr extends Ie{constructor(t,n){if(super(),this.binaryType=_3,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=Pp(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=Pp(n.host).host);yc(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=F3(this.opts.query)),jp&&(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"})},Zl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=ZS,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&&Yr.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",Yr.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+=R3(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,vc(()=>{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(Yr.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(),jp&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Zl.indexOf(this._offlineEventListener);r!==-1&&Zl.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Yr.protocol=ZS;class Y3 extends Yr{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;Yr.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",c=>{if(!r)if(c.type==="pong"&&c.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Yr.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=c=>{const f=new Error("probe error: "+c);f.transport=n.name,s(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function u(c){n&&c.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",u)};n.once("open",i),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",u),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 X3=class extends Y3{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=>W3[i]).filter(i=>!!i)),super(t,r)}};function Z3(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=Pp(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 J3=typeof ArrayBuffer=="function",eD=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ik=Object.prototype.toString,tD=typeof Blob=="function"||typeof Blob<"u"&&ik.call(Blob)==="[object BlobConstructor]",nD=typeof File=="function"||typeof File<"u"&&ik.call(File)==="[object FileConstructor]";function $m(e){return J3&&(e instanceof ArrayBuffer||eD(e))||tD&&e instanceof Blob||nD&&e instanceof File}function Jl(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Jl(e[n]))return!0;return!1}if($m(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Jl(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Jl(e[n]))return!0;return!1}function rD(e){const t=[],n=e.data,r=e;return r.data=Ap(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Ap(e,t){if(!e)return e;if($m(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]=Ap(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]=Ap(e[r],t));return n}return e}function iD(e,t){return e.data=Rp(e.data,t),delete e.attachments,e}function Rp(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]=Rp(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Rp(e[n],t));return e}const sD=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],oD=5;var ae;(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"})(ae||(ae={}));class aD{constructor(t){this.replacer=t}encode(t){return(t.type===ae.EVENT||t.type===ae.ACK)&&Jl(t)?this.encodeAsBinary({type:t.type===ae.EVENT?ae.BINARY_EVENT:ae.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===ae.BINARY_EVENT||t.type===ae.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=rD(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function hy(e){return Object.prototype.toString.call(e)==="[object Object]"}class zm extends Ie{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===ae.BINARY_EVENT;r||n.type===ae.BINARY_ACK?(n.type=r?ae.EVENT:ae.ACK,this.reconstructor=new lD(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if($m(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(ae[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===ae.BINARY_EVENT||r.type===ae.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(zm.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 ae.CONNECT:return hy(n);case ae.DISCONNECT:return n===void 0;case ae.CONNECT_ERROR:return typeof n=="string"||hy(n);case ae.EVENT:case ae.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&sD.indexOf(n[0])===-1);case ae.ACK:case ae.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class lD{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=iD(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const uD=Object.freeze(Object.defineProperty({__proto__:null,Decoder:zm,Encoder:aD,get PacketType(){return ae},protocol:oD},Symbol.toStringTag,{value:"Module"}));function yn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const cD=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class sk extends Ie{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=[yn(t,"open",this.onopen.bind(this)),yn(t,"packet",this.onpacket.bind(this)),yn(t,"error",this.onerror.bind(this)),yn(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(cD.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:ae.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,c=n.pop();this._registerAckCallback(d,c),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:ae.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 ae.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 ae.EVENT:case ae.BINARY_EVENT:this.onevent(t);break;case ae.ACK:case ae.BINARY_ACK:this.onack(t);break;case ae.DISCONNECT:this.ondisconnect();break;case ae.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:ae.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:ae.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 bo(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}bo.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};bo.prototype.reset=function(){this.attempts=0};bo.prototype.setMin=function(e){this.ms=e};bo.prototype.setMax=function(e){this.max=e};bo.prototype.setJitter=function(e){this.jitter=e};class Op extends Ie{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,yc(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 bo({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||uD;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 X3(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=yn(n,"open",function(){r.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},o=yn(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(yn(t,"ping",this.onping.bind(this)),yn(t,"data",this.ondata.bind(this)),yn(t,"error",this.onerror.bind(this)),yn(t,"close",this.onclose.bind(this)),yn(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){vc(()=>{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 sk(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 Fo={};function eu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Z3(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,o=Fo[i]&&s in Fo[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return a?l=new Op(r,t):(Fo[i]||(Fo[i]=new Op(r,t)),l=Fo[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(eu,{Manager:Op,Socket:sk,io:eu,connect:eu});const tu=e=>{const t=document.cookie.split(";").find(n=>n.includes(e));return t?t.split("=")[1]:null};var Hn=(e=>(e.CustomerToken="lc:customer:token",e.CustomerRefreshToken="lc:customer:refresh_token",e.DeviceId="lc:device:id",e))(Hn||{});const Nd=(e,t)=>{localStorage.setItem(e,t)},Vs=e=>localStorage.getItem(e),my=()=>{localStorage.removeItem("lc:customer:token"),localStorage.removeItem("lc:customer:refresh_token"),localStorage.removeItem("lc:device:id")},ok=g.createContext(null),ns=()=>g.useContext(ok),dD=({children:e})=>{const[t,n]=g.useState(null),[r,i]=g.useState(!1),s=()=>{const c=eu(S2,{transports:["websocket"],auth:{customer_token:Vs(Hn.CustomerToken)||tu("customer_token"),device_id:Vs(Hn.DeviceId)||tu("device_id"),customer_refresh_token:Vs(Hn.CustomerRefreshToken)||tu("customer_refresh_token")}});c.on("error",f=>{console.error("Websocket error",f)}),c.on("connect",()=>{n(c),i(!0)})},o=()=>{t&&(t.connect(),i(!0))},a=()=>{t&&(t.disconnect(),i(!1))},l=(c,f)=>{t&&t.on(c,f)},u=(c,f)=>{t&&t.off(c,f)},d=(c,f,p)=>{t&&t.emit(c,f,p)};return x.jsx(ok.Provider,{value:{socket:t,connected:r,connect:s,reconnect:o,disconnect:a,on:l,off:u,emit:d},children:e})};var qn=(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))(qn||{}),nt=(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.ChatToggleUpload="chat:user:upload:toggle",e))(nt||{});const Vm=e=>{const t=ub(),n=(r,i)=>{var o;const s=((o=M$.find(a=>a.name===r))==null?void 0:o.path)??"/";return typeof i=="object"&&s.includes(":")?Object.entries(i).reduce((a,[l,u])=>a.replace(`:${l}`,u),s):i?`${s}?${i}`:s};return{push:(r,i)=>{t(n(r,i),e)},path:n}};function fD(e){return e&&typeof e=="object"&&"customer_token"in e&&"customer_refresh_token"in e}const pD=()=>Xh({mutationFn:e=>vo(`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})})}),hD=e=>vo(`clients/${e}/chats`),Dp=e=>vo(`clients/${e}/chats`,{method:"DELETE"}),mD=(e,t)=>vo("review",{method:"POST",body:JSON.stringify({rating:e,comment:t||void 0}),headers:{"X-Customer-Token":Vs(Hn.CustomerToken)||"","X-Customer-Refresh-Token":Vs(Hn.CustomerRefreshToken)||"","X-Device-Id":Vs(Hn.DeviceId)||""}}),gD=()=>Xh({mutationFn:e=>mD(e.rating,e.comment)}),vD=e=>Xh({mutationFn:t=>vo(`clients/${e}/chats/files`,{method:"POST",body:C2({files:t},{arrayWithBracketAndIndex:!1,arrayWithBrackets:!1})})});function yD(e){return e&&typeof e=="object"&&"file_urls"in e}const ak=(e,t,n)=>{const r=typeof window<"u"?window:void 0;g.useEffect(()=>(r.addEventListener(e,t),()=>{r.removeEventListener(e,t,!1)}),[e,t,r])},xc=()=>typeof window<"u"?/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent):!1;function lk({text:e}){var i,s,o,a;const{widget:t,isHaveChat:n}=ln(),r=hr();return x.jsxs(Me.div,{initial:{opacity:0,scale:.8,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:10},transition:{type:"spring",damping:20,stiffness:300},className:ke("absolute bottom-full mb-3 p-3 shadow-lg whitespace-nowrap","w-auto right-0"),style:{borderRadius:r.getRadius(),backgroundColor:r.getColor(Q.TooltipBackground),color:r.getColor(Q.TooltipText)},children:[x.jsx(Me.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.1,duration:.3},className:"text-sm font-medium",style:{color:r.getColor(Q.TooltipText)},children:e||(n?(s=(i=t==null?void 0:t.appearance)==null?void 0:i.design)==null?void 0:s.tooltip_message_active:(a=(o=t==null?void 0:t.appearance)==null?void 0:o.design)==null?void 0:a.tooltip_message)||"Bizimle sohbet edin!"}),x.jsx("div",{className:ke("absolute bottom-0 right-4 w-3 h-3 transform rotate-45 translate-y-1.5 bg-blue-100")})]})}const xD="/notify.mp3",wD=async e=>{await new Audio(e||xD).play()};function bD({fallback:e,fallbackOpen:t}){const[n]=g.useState(window.document.title),r=ns(),{isHaveChat:i,open:s,soundPath:o}=ln(),[a,l]=g.useState(!0),[u,d]=g.useState(0),[c,f]=g.useState(null),p=()=>{wD(o)},h=(y,w)=>{if(c&&clearInterval(c),y||!i||w===0||Number.isNaN(w)){window.document.title=n,f(null);return}const m=setInterval(()=>{if(y||!i||w===0||Number.isNaN(w)){window.document.title=n,clearInterval(m),f(null);return}const v=`${w} Yeni mesajınız var! - ${n}`;window.document.title!==v?window.document.title=v:window.document.title=n},1e3);return f(m),()=>{clearInterval(m),f(null)}};return g.useEffect(()=>h(s&&a,u),[u,s,a]),g.useEffect(()=>{const y=()=>{l(document.visibilityState==="visible")};return document.addEventListener("visibilitychange",y,!1),()=>{document.removeEventListener("visibilitychange",y)}},[]),g.useEffect(()=>{if(i&&s&&a&&d(0),!r||!i||s&&a)return;const y=()=>{!i||s&&a||(d(w=>w+1),p())};return r.on(nt.MessageAgentCreate,y),r.on(nt.ChatUserAssignee,p),()=>{r.off(nt.MessageAgentCreate,y),r.off(nt.ChatUserAssignee,p)}},[r,i,s,a]),s?null:!i||u===0?t?e:null:x.jsx(lk,{text:"Yeni mesajlar var!"})}function SD({children:e,defaultOpen:t,border:n}){var m,v,b,T;const r=ns(),{open:i,setOpen:s,setIsHaveChat:o,isHaveChat:a,widget:l}=ln(),[u]=g.useState(!0),d=Vm(),c=Ga(),f=hr(),p=xc();g.useEffect(()=>{a&&c.pathname==="/"&&d.push("chat")},[a]);const h=()=>{s(!0),r&&r.emit(qn.WidgetOpen,{})},y=()=>{s(!1),r&&r.emit(qn.WidgetClose,{})},w=()=>{s(!1),o(!1),Dp(l.client_id),d.push("registration")};return g.useEffect(()=>{if(t&&s(!0),!(!r||!l))return r.on(nt.Banned,w),()=>{r.off(nt.Banned,w)}},[]),x.jsx("section",{className:"relative w-full h-full",children:x.jsxs(Ki,{children:[i&&x.jsx(Me.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{type:"spring",damping:25,stiffness:300,duration:.3},style:{width:p?"":((v=(m=l==null?void 0:l.appearance)==null?void 0:m.design)==null?void 0:v.width)||"21rem",height:p?"":((T=(b=l==null?void 0:l.appearance)==null?void 0:b.design)==null?void 0:T.height)||"30rem",left:p?"0":"",maxHeight:p?"90vh":"",borderColor:f.getColor(Q.Border),boxShadow:"0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05)"},className:ke("fixed z-300 overflow-hidden rounded-xl",{"border border-solid dark:border-zink-500":n,"bottom-12 right-12":!p,"bottom-0 right-0":p}),children:e}),x.jsx("div",{className:"absolute bottom-0 right-0 z-400",children:x.jsxs(Ki,{children:[x.jsx(bD,{fallback:x.jsx(lk,{}),fallbackOpen:u}),!i&&x.jsxs(or,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"lg",rounded:!0,className:"relative",onClick:h,children:[x.jsx(Me.span,{initial:{scale:.8,opacity:0},animate:{scale:[1,1.2,1],opacity:[.7,0,.7]},transition:{duration:2,repeat:Number.POSITIVE_INFINITY,repeatType:"loop"},className:ke("absolute -z-10 w-full h-full rounded-full opacity-30"),style:{backgroundColor:f.getColor(Q.ButtonBackground)}}),x.jsx(Oe.Chat,{className:"size-7"})]}),i&&!p&&x.jsx(or,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"lg",rounded:!0,onClick:y,children:x.jsx(Oe.X,{className:"size-7"})})]})})]})})}function uk(e){const{widget:t}=ln();return x.jsx(v3,{widget:t,children:x.jsx(SD,{...e})})}function rs(e){this._maxSize=e,this.clear()}rs.prototype.clear=function(){this._size=0,this._values=Object.create(null)};rs.prototype.get=function(e){return this._values[e]};rs.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var kD=/[^.^\]^[]+|(?=\[\]|\.\.)/g,ck=/^\d+$/,ED=/^\d/,TD=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,CD=/^\s*(['"]?)(.*?)(\1)\s*$/,Bm=512,gy=new rs(Bm),vy=new rs(Bm),yy=new rs(Bm),Ii={Cache:rs,split:Fp,normalizePath:Md,setter:function(e){var t=Md(e);return vy.get(e)||vy.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=Md(e);return yy.get(e)||yy.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+(Um(n)||ck.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){_D(Array.isArray(e)?e:Fp(e),t,n)}};function Md(e){return gy.get(e)||gy.set(e,Fp(e).map(function(t){return t.replace(CD,"$2")}))}function Fp(e){return e.match(kD)||[""]}function _D(e,t,n){var r=e.length,i,s,o,a;for(s=0;s<r;s++)i=e[s],i&&(AD(i)&&(i='"'+i+'"'),a=Um(i),o=!a&&/^\d+$/.test(i),t.call(n,i,a,o,s,e))}function Um(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function PD(e){return e.match(ED)&&!e.match(ck)}function jD(e){return TD.test(e)}function AD(e){return!Um(e)&&(PD(e)||jD(e))}const RD=/[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,wc=e=>e.match(RD)||[],bc=e=>e[0].toUpperCase()+e.slice(1),Hm=(e,t)=>wc(e).join(t).toLowerCase(),dk=e=>wc(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),OD=e=>bc(dk(e)),DD=e=>Hm(e,"_"),FD=e=>Hm(e,"-"),ND=e=>bc(Hm(e," ")),MD=e=>wc(e).map(bc).join(" ");var Ld={words:wc,upperFirst:bc,camelCase:dk,pascalCase:OD,snakeCase:DD,kebabCase:FD,sentenceCase:ND,titleCase:MD},Wm={exports:{}};Wm.exports=function(e){return fk(LD(e),e)};Wm.exports.array=fk;function fk(e,t){var n=e.length,r=new Array(n),i={},s=n,o=ID(t),a=$D(e);for(t.forEach(function(u){if(!a.has(u[0])||!a.has(u[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(u,d,c){if(c.has(u)){var f;try{f=", node was:"+JSON.stringify(u)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[d]){i[d]=!0;var p=o.get(u)||new Set;if(p=Array.from(p),d=p.length){c.add(u);do{var h=p[--d];l(h,a.get(h),c)}while(d);c.delete(u)}r[--n]=u}}}function LD(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 ID(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 $D(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var zD=Wm.exports;const VD=Qi(zD),BD=Object.prototype.toString,UD=Error.prototype.toString,HD=RegExp.prototype.toString,WD=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",qD=/^Symbol\((.*)\)(.*)$/;function KD(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function xy(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return KD(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return WD.call(e).replace(qD,"Symbol($1)");const r=BD.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+UD.call(e)+"]":r==="RegExp"?HD.call(e):null}function Xr(e,t){let n=xy(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=xy(this[r],t);return s!==null?s:i},2)}function pk(e){return e==null?[]:[].concat(e)}let hk,mk,gk,GD=/\$\{\s*(\w+)\s*\}/g;hk=Symbol.toStringTag;class wy{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[hk]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],pk(t).forEach(s=>{if(_t.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]}}mk=Symbol.hasInstance;gk=Symbol.toStringTag;class _t 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(GD,(i,s)=>Xr(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 wy(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[gk]="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,_t)}static[mk](t){return wy[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let Rn={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 \`${Xr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Xr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Xr(n,!0)}\``+i}},St={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"},QD={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"},Np={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},YD={isValue:"${path} field must be ${value}"},nu={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},XD={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"},ZD={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: \`${Xr(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: \`${Xr(n,!0)}\``}return _t.formatError(Rn.notType,e)}};Object.assign(Object.create(null),{mixed:Rn,string:St,number:QD,date:Np,object:nu,array:XD,boolean:YD,tuple:ZD});const qm=e=>e&&e.__isYupSchema__;class zu{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 zu(t,(a,l)=>{var u;let d=o(...a)?i:s;return(u=d==null?void 0:d(l))!=null?u: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(!qm(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const jl={context:"$",value:"."};class is{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]===jl.context,this.isValue=this.key[0]===jl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?jl.context:this.isValue?jl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Ii.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}}is.prototype.__isYupRef=!0;const Ci=e=>e==null;function hs(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},a,l){const{name:u,test:d,params:c,message:f,skipAbsent:p}=e;let{parent:h,context:y,abortEarly:w=o.spec.abortEarly,disableStackTrace:m=o.spec.disableStackTrace}=i;function v(I){return is.isRef(I)?I.getValue(n,h,y):I}function b(I={}){const ne=Object.assign({value:n,originalValue:s,label:o.spec.label,path:I.path||r,spec:o.spec,disableStackTrace:I.disableStackTrace||m},c,I.params);for(const ee of Object.keys(ne))ne[ee]=v(ne[ee]);const te=new _t(_t.formatError(I.message||f,ne),n,ne.path,I.type||u,ne.disableStackTrace);return te.params=ne,te}const T=w?a:l;let E={path:r,parent:h,type:u,from:i.from,createError:b,resolve:v,options:i,originalValue:s,schema:o};const C=I=>{_t.isError(I)?T(I):I?l(null):T(b())},S=I=>{_t.isError(I)?T(I):a(I)};if(p&&Ci(n))return C(!0);let N;try{var R;if(N=d.call(E,n,E),typeof((R=N)==null?void 0:R.then)=="function"){if(i.sync)throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(N).then(C,S)}}catch(I){S(I);return}C(N)}return t.OPTIONS=e,t}function JD(e,t,n,r=n){let i,s,o;return t?(Ii.forEach(t,(a,l,u)=>{let d=l?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:i,value:n});let c=e.type==="tuple",f=u?parseInt(d,10):0;if(e.innerType||c){if(c&&!u)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=c?e.spec.types[f]:e.innerType}if(!u){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 Vu extends Set{describe(){const t=[];for(const n of this.values())t.push(is.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 Vu(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Ds(e,t=new Map){if(qm(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]=Ds(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,Ds(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ds(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Ds(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Kn{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 Vu,this._blacklist=new Vu,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Rn.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=Ds(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&&Ci(s))return s;let o=Xr(t),a=Xr(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
95
|
+
`),()=>{document.head.removeChild(p)}},[t]),v.jsx(zP,{isPresent:t,childRef:i,sizeRef:s,children:m.cloneElement(e,{ref:i})})}const VP=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o,anchorX:a})=>{const l=fc(UP),u=m.useId();let d=!0,c=m.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:f=>{l.set(f,!0);for(const p of l.values())if(!p)return;r&&r()},register:f=>(l.set(f,!1),()=>l.delete(f))}),[n,l,r]);return s&&d&&(c={...c}),m.useMemo(()=>{l.forEach((f,p)=>l.set(p,!1))},[n]),m.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=v.jsx(BP,{isPresent:n,anchorX:a,children:e})),v.jsx(pc.Provider,{value:c,children:e})};function UP(){return new Map}function kb(e=!0){const t=m.useContext(pc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=m.useId();m.useEffect(()=>{if(e)return i(s)},[e]);const o=m.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const kl=e=>e.key||"";function qv(e){const t=[];return m.Children.forEach(e,n=>{m.isValidElement(n)&&t.push(n)}),t}const Yr=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1,anchorX:a="left"})=>{const[l,u]=kb(o),d=m.useMemo(()=>qv(e),[e]),c=o&&!l?[]:d.map(kl),f=m.useRef(!0),p=m.useRef(d),h=fc(()=>new Map),[y,b]=m.useState(d),[g,x]=m.useState(d);Sb(()=>{f.current=!1,p.current=d;for(let T=0;T<g.length;T++){const E=kl(g[T]);c.includes(E)?h.delete(E):h.get(E)!==!0&&h.set(E,!1)}},[g,c.length,c.join("-")]);const w=[];if(d!==y){let T=[...d];for(let E=0;E<g.length;E++){const S=g[E],_=kl(S);c.includes(_)||(T.splice(E,0,S),w.push(S))}return s==="wait"&&w.length&&(T=w),x(qv(T)),b(d),null}const{forceRender:C}=m.useContext(nm);return v.jsx(v.Fragment,{children:g.map(T=>{const E=kl(T),S=o&&!l?!1:d===g||c.includes(E),_=()=>{if(h.has(E))h.set(E,!0);else return;let D=!0;h.forEach(R=>{R||(D=!1)}),D&&(C==null||C(),x(p.current),o&&(u==null||u()),r&&r())};return v.jsx(VP,{isPresent:S,initial:!f.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:s,onExitComplete:S?void 0:_,anchorX:a,children:T},E)})})};function sm(e,t){e.indexOf(t)===-1&&e.push(t)}function om(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let lp=()=>{};const up={skipAnimations:!1,useManualTiming:!1};function am(e){let t;return()=>(t===void 0&&(t=e()),t)}const on=e=>e,Ta=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class lm{constructor(){this.subscriptions=[]}add(t){return sm(this.subscriptions,t),()=>om(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s<i;s++){const o=this.subscriptions[s];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const zn=e=>e*1e3,Bn=e=>e/1e3;function Eb(e,t){return t?e*(1e3/t):0}const HP=am(()=>window.ScrollTimeline!==void 0);class WP{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(HP()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class qP extends WP{then(t,n){return this.finished.finally(t).then(()=>{})}}const Kv={value:null,addProjectionMetrics:null},um=e=>Array.isArray(e)&&typeof e[0]=="number",KP={};function GP(e,t){const n=am(e);return()=>KP[t]??n()}const Ca=GP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Tb=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(s/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Bo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bo([0,.65,.55,1]),circOut:Bo([.55,0,1,.45]),backIn:Bo([.31,.01,.66,-.59]),backOut:Bo([.33,1.53,.69,.99])};function Cb(e,t){if(e)return typeof e=="function"&&Ca()?Tb(e,t):um(e)?Bo(e):Array.isArray(e)?e.map(n=>Cb(n,t)||cp.easeOut):cp[e]}function QP(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={},u=void 0){const d={[t]:n};l&&(d.offset=l);const c=Cb(a,i);return Array.isArray(c)&&(d.easing=c),e.animate(d,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal",pseudoElement:u})}function cm(e){return typeof e=="function"&&"applyToOptions"in e}function dm(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const Du=2e4;function fm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Du;)t+=n,r=e.next(t);return t>=Du?1/0:t}function YP(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(fm(r),Du);return{type:"keyframes",ease:s=>r.next(i*s).value/t,duration:Bn(i)}}function _b(e){return!!(typeof e=="function"&&Ca()||!e||typeof e=="string"&&(e in cp||Ca())||um(e)||Array.isArray(e)&&e.every(_b))}function Gv(e,t){e.timeline=t,e.onfinish=null}const El=["read","resolveKeyframes","update","preRender","render","postRender"];function XP(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(c){o.has(c)&&(d.schedule(c),e()),l++,c(a)}const d={schedule:(c,f=!1,p=!1)=>{const y=p&&i?n:r;return f&&o.add(c),y.has(c)||y.add(c),c},cancel:c=>{r.delete(c),o.delete(c)},process:c=>{if(a=c,i){s=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&Kv.value&&Kv.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,d.process(c))}};return d}const ZP=40;function Pb(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=El.reduce((g,x)=>(g[x]=XP(s,t?x:void 0),g),{}),{read:a,resolveKeyframes:l,update:u,preRender:d,render:c,postRender:f}=o,p=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,ZP),1),i.timestamp=g,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),d.process(i),c.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(p))},h=()=>{n=!0,r=!0,i.isProcessing||e(p)};return{schedule:El.reduce((g,x)=>{const w=o[x];return g[x]=(C,T=!1,E=!1)=>(n||h(),w.schedule(C,T,E)),g},{}),cancel:g=>{for(let x=0;x<El.length;x++)o[El[x]].cancel(g)},state:i,steps:o}}const{schedule:pm,cancel:G$}=Pb(queueMicrotask,!1),{schedule:we,cancel:ni,state:tt,steps:wd}=Pb(typeof requestAnimationFrame<"u"?requestAnimationFrame:on,!0);let Gl;function JP(){Gl=void 0}const Vn={now:()=>(Gl===void 0&&Vn.set(tt.isProcessing||up.useManualTiming?tt.timestamp:performance.now()),Gl),set:e=>{Gl=e,queueMicrotask(JP)}},mn={x:!1,y:!1};function jb(){return mn.x||mn.y}function ej(e){return e==="x"||e==="y"?mn[e]?null:(mn[e]=!0,()=>{mn[e]=!1}):mn.x||mn.y?null:(mn.x=mn.y=!0,()=>{mn.x=mn.y=!1})}function tj(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Ab(e,t){const n=tj(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Qv(e){return!(e.pointerType==="touch"||jb())}function nj(e,t,n={}){const[r,i,s]=Ab(e,n),o=a=>{if(!Qv(a))return;const{target:l}=a,u=t(l,a);if(typeof u!="function"||!l)return;const d=c=>{Qv(c)&&(u(c),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(a=>{a.addEventListener("pointerenter",o,i)}),s}const Rb=(e,t)=>t?e===t?!0:Rb(e,t.parentElement):!1,hm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ij(e){return rj.has(e.tagName)||e.tabIndex!==-1}const Vo=new WeakSet;function Yv(e){return t=>{t.key==="Enter"&&e(t)}}function bd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const sj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Yv(()=>{if(Vo.has(n))return;bd(n,"down");const i=Yv(()=>{bd(n,"up")}),s=()=>bd(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Xv(e){return hm(e)&&!jb()}function oj(e,t,n={}){const[r,i,s]=Ab(e,n),o=a=>{const l=a.currentTarget;if(!Xv(a)||Vo.has(l))return;Vo.add(l);const u=t(l,a),d=(p,h)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",f),!(!Xv(p)||!Vo.has(l))&&(Vo.delete(l),typeof u=="function"&&u(p,{success:h}))},c=p=>{d(p,l===window||l===document||n.useGlobalTarget||Rb(l,p.target))},f=p=>{d(p,!1)};window.addEventListener("pointerup",c,i),window.addEventListener("pointercancel",f,i)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),a instanceof HTMLElement&&(a.addEventListener("focus",u=>sj(u,i)),!ij(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}const Zv=30,aj=e=>!isNaN(parseFloat(e));class lj{constructor(t,n={}){this.version="12.7.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=Vn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Vn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=aj(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lm);const r=this.events[t].add(n);return t==="change"?()=>{r(),we.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Vn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Zv)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zv);return Eb(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _a(e,t){return new lj(e,t)}const Ob=m.createContext({strict:!1}),Jv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},uo={};for(const e in Jv)uo[e]={isEnabled:t=>Jv[e].some(n=>!!t[n])};function uj(e){for(const t in e)uo[t]={...uo[t],...e[t]}}const cj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Fu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cj.has(e)}let Db=e=>!Fu(e);function dj(e){e&&(Db=t=>t.startsWith("on")?!Fu(t):e(t))}try{dj(require("@emotion/is-prop-valid").default)}catch{}function fj(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Db(i)||n===!0&&Fu(i)||!t&&!Fu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function pj(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const hc=m.createContext({});function mc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Pa(e){return typeof e=="string"||Array.isArray(e)}const mm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gm=["initial",...mm];function gc(e){return mc(e.animate)||gm.some(t=>Pa(e[t]))}function Fb(e){return!!(gc(e)||e.variants)}function hj(e,t){if(gc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pa(n)?n:void 0,animate:Pa(r)?r:void 0}}return e.inherit!==!1?t:{}}function mj(e){const{initial:t,animate:n}=hj(e,m.useContext(hc));return m.useMemo(()=>({initial:t,animate:n}),[e0(t),e0(n)])}function e0(e){return Array.isArray(e)?e.join(" "):e}const gj=Symbol.for("motionComponentSymbol");function Ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vj(e,t,n){return m.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ps(n)&&(n.current=r))},[t])}const vm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),yj="framerAppearId",Nb="data-"+vm(yj),Mb=m.createContext({});function xj(e,t,n,r,i){var y,b;const{visualElement:s}=m.useContext(hc),o=m.useContext(Ob),a=m.useContext(pc),l=m.useContext(im).reducedMotion,u=m.useRef(null);r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const d=u.current,c=m.useContext(Mb);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&wj(u.current,n,i,c);const f=m.useRef(!1);m.useInsertionEffect(()=>{d&&f.current&&d.update(n,a)});const p=n[Nb],h=m.useRef(!!p&&!((y=window.MotionHandoffIsComplete)!=null&&y.call(window,p))&&((b=window.MotionHasOptimisedAnimation)==null?void 0:b.call(window,p)));return Sb(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),pm.render(d.render),h.current&&d.animationState&&d.animationState.animateChanges())}),m.useEffect(()=>{d&&(!h.current&&d.animationState&&d.animationState.animateChanges(),h.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)==null||g.call(window,p)}),h.current=!1))}),d}function wj(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Lb(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Ps(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}function Lb(e){if(e)return e.options.allowProjection!==!1?e.projection:Lb(e.parent)}function bj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&uj(e);function s(a,l){let u;const d={...m.useContext(im),...a,layoutId:Sj(a)},{isStatic:c}=d,f=mj(a),p=r(a,c);if(!c&&rm){kj();const h=Ej(d);u=h.MeasureLayout,f.visualElement=xj(i,p,d,t,h.ProjectionNode)}return v.jsxs(hc.Provider,{value:f,children:[u&&f.visualElement?v.jsx(u,{visualElement:f.visualElement,...d}):null,n(i,a,vj(p,f.visualElement,l),p,c,f.visualElement)]})}s.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const o=m.forwardRef(s);return o[gj]=i,o}function Sj({layoutId:e}){const t=m.useContext(nm).id;return t&&e!==void 0?t+"-"+e:e}function kj(e,t){m.useContext(Ob).strict}function Ej(e){const{drag:t,layout:n}=uo;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const Ib=e=>t=>typeof t=="string"&&t.startsWith(e),ym=Ib("--"),Tj=Ib("var(--"),xm=e=>Tj(e)?Cj.test(e.split("/*")[0].trim()):!1,Cj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ja={};function _j(e){for(const t in e)ja[t]=e[t],ym(t)&&(ja[t].isCSSVariable=!0)}const xo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ts=new Set(xo);function $b(e,{layout:t,layoutId:n}){return ts.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ja[e]||e==="opacity")}const ft=e=>!!(e&&e.getVelocity),zb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fr=(e,t,n)=>n>t?t:n<e?e:n,wo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Aa={...wo,transform:e=>fr(0,1,e)},Tl={...wo,default:1},Qa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Sr=Qa("deg"),Un=Qa("%"),K=Qa("px"),Pj=Qa("vh"),jj=Qa("vw"),t0={...Un,parse:e=>Un.parse(e)/100,transform:e=>Un.transform(e*100)},Aj={borderWidth:K,borderTopWidth:K,borderRightWidth:K,borderBottomWidth:K,borderLeftWidth:K,borderRadius:K,radius:K,borderTopLeftRadius:K,borderTopRightRadius:K,borderBottomRightRadius:K,borderBottomLeftRadius:K,width:K,maxWidth:K,height:K,maxHeight:K,top:K,right:K,bottom:K,left:K,padding:K,paddingTop:K,paddingRight:K,paddingBottom:K,paddingLeft:K,margin:K,marginTop:K,marginRight:K,marginBottom:K,marginLeft:K,backgroundPositionX:K,backgroundPositionY:K},Rj={rotate:Sr,rotateX:Sr,rotateY:Sr,rotateZ:Sr,scale:Tl,scaleX:Tl,scaleY:Tl,scaleZ:Tl,skew:Sr,skewX:Sr,skewY:Sr,distance:K,translateX:K,translateY:K,translateZ:K,x:K,y:K,z:K,perspective:K,transformPerspective:K,opacity:Aa,originX:t0,originY:t0,originZ:K},n0={...wo,transform:Math.round},wm={...Aj,...Rj,zIndex:n0,size:K,fillOpacity:Aa,strokeOpacity:Aa,numOctaves:n0},Oj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dj=xo.length;function Fj(e,t,n){let r="",i=!0;for(let s=0;s<Dj;s++){const o=xo[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=zb(a,wm[o]);if(!l){i=!1;const d=Oj[o]||o;r+=`${d}(${u}) `}n&&(t[o]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function bm(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(ts.has(l)){o=!0;continue}else if(ym(l)){i[l]=u;continue}else{const d=zb(u,wm[l]);l.startsWith("origin")?(a=!0,s[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=Fj(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:d=0}=s;r.transformOrigin=`${l} ${u} ${d}`}}const Sm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Bb(e,t,n){for(const r in t)!ft(t[r])&&!$b(r,n)&&(e[r]=t[r])}function Nj({transformTemplate:e},t){return m.useMemo(()=>{const n=Sm();return bm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Mj(e,t){const n=e.style||{},r={};return Bb(r,n,e),Object.assign(r,Nj(e,t)),r}function Lj(e,t){const n={},r=Mj(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ij=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function km(e){return typeof e!="string"||e.includes("-")?!1:!!(Ij.indexOf(e)>-1||/[A-Z]/u.test(e))}const $j={offset:"stroke-dashoffset",array:"stroke-dasharray"},zj={offset:"strokeDashoffset",array:"strokeDasharray"};function Bj(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?$j:zj;e[s.offset]=K.transform(-r);const o=K.transform(t),a=K.transform(n);e[s.array]=`${o} ${a}`}function r0(e,t,n){return typeof e=="string"?e:K.transform(t+n*e)}function Vj(e,t,n){const r=r0(t,e.x,e.width),i=r0(n,e.y,e.height);return`${r} ${i}`}function Em(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},d,c){if(bm(e,u,c),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:h}=e;f.transform&&(h&&(p.transform=f.transform),delete f.transform),h&&(i!==void 0||s!==void 0||p.transform)&&(p.transformOrigin=Vj(h,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Bj(f,o,a,l,!1)}const Vb=()=>({...Sm(),attrs:{}}),Tm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Uj(e,t,n,r){const i=m.useMemo(()=>{const s=Vb();return Em(s,t,Tm(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Bb(s,e.style,e),i.style={...s,...i.style}}return i}function Hj(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(km(n)?Uj:Lj)(r,s,o,n),u=fj(r,typeof n=="string",e),d=n!==m.Fragment?{...u,...l,ref:i}:{},{children:c}=r,f=m.useMemo(()=>ft(c)?c.get():c,[c]);return m.createElement(n,{...d,children:f})}}function i0(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Cm(e,t,n,r){if(typeof t=="function"){const[i,s]=i0(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=i0(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const dp=e=>Array.isArray(e),Wj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),qj=e=>dp(e)?e[e.length-1]||0:e;function Ql(e){const t=ft(e)?e.get():e;return Wj(t)?t.toValue():t}function Kj({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:Gj(r,i,s,e),renderState:t()};return n&&(o.onMount=a=>n({props:r,current:a,...o}),o.onUpdate=a=>n(a)),o}const Ub=e=>(t,n)=>{const r=m.useContext(hc),i=m.useContext(pc),s=()=>Kj(e,t,r,i);return n?s():fc(s)};function Gj(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=Ql(s[f]);let{initial:o,animate:a}=e;const l=gc(e),u=Fb(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const c=d?a:o;if(c&&typeof c!="boolean"&&!mc(c)){const f=Array.isArray(c)?c:[c];for(let p=0;p<f.length;p++){const h=Cm(e,f[p]);if(h){const{transitionEnd:y,transition:b,...g}=h;for(const x in g){let w=g[x];if(Array.isArray(w)){const C=d?w.length-1:0;w=w[C]}w!==null&&(i[x]=w)}for(const x in y)i[x]=y[x]}}}return i}function _m(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(ft(r[o])||t.style&&ft(t.style[o])||$b(o,e)||((s=n==null?void 0:n.getValue(o))==null?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}const Qj={useVisualState:Ub({scrapeMotionValuesFromProps:_m,createRenderState:Sm})};function Hb(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function Wb(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const qb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Kb(e,t,n,r){Wb(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(qb.has(i)?i:vm(i),t.attrs[i])}function Gb(e,t,n){const r=_m(e,t,n);for(const i in e)if(ft(e[i])||ft(t[i])){const s=xo.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}const s0=["x","y","width","height","cx","cy","r"],Yj={useVisualState:Ub({scrapeMotionValuesFromProps:Gb,createRenderState:Vb,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const a in i)if(ts.has(a)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let a=0;a<s0.length;a++){const l=s0[a];e[l]!==t[l]&&(o=!0)}o&&we.read(()=>{Hb(n,r),we.render(()=>{Em(r,i,Tm(n.tagName),e.transformTemplate),Kb(n,r)})})}})};function Xj(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...km(r)?Yj:Qj,preloadedFeatures:e,useRender:Hj(i),createVisualElement:t,Component:r};return bj(o)}}function Ra(e,t,n){const r=e.getProps();return Cm(r,t,n!==void 0?n:r.custom,e)}const Qb=new Set(["width","height","top","left","right","bottom",...xo]);function Zj(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_a(n))}function Jj(e,t){const n=Ra(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=qj(s[o]);Zj(e,o,a)}}function eA(e){return!!(ft(e)&&e.add)}function fp(e,t){const n=e.getValue("willChange");if(eA(n))return n.add(t);if(!n&&up.WillChange){const r=new up.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Yb(e){return e.props[Nb]}const Xb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,tA=1e-7,nA=12;function rA(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=Xb(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>tA&&++a<nA);return o}function Ya(e,t,n,r){if(e===t&&n===r)return on;const i=s=>rA(s,0,1,e,n);return s=>s===0||s===1?s:Xb(i(s),t,r)}const Zb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Jb=e=>t=>1-e(1-t),eS=Ya(.33,1.53,.69,.99),Pm=Jb(eS),tS=Zb(Pm),nS=e=>(e*=2)<1?.5*Pm(e):.5*(2-Math.pow(2,-10*(e-1))),jm=e=>1-Math.sin(Math.acos(e)),rS=Jb(jm),iS=Zb(jm),sS=e=>/^0[^.\s]+$/u.test(e);function iA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||sS(e):!0}const Jo=e=>Math.round(e*1e5)/1e5,Am=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function sA(e){return e==null}const oA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rm=(e,t)=>n=>!!(typeof n=="string"&&oA.test(n)&&n.startsWith(e)||t&&!sA(n)&&Object.prototype.hasOwnProperty.call(n,t)),oS=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,a]=r.match(Am);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},aA=e=>fr(0,255,e),Sd={...wo,transform:e=>Math.round(aA(e))},Ti={test:Rm("rgb","red"),parse:oS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sd.transform(e)+", "+Sd.transform(t)+", "+Sd.transform(n)+", "+Jo(Aa.transform(r))+")"};function lA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const pp={test:Rm("#"),parse:lA,transform:Ti.transform},js={test:Rm("hsl","hue"),parse:oS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Un.transform(Jo(t))+", "+Un.transform(Jo(n))+", "+Jo(Aa.transform(r))+")"},ct={test:e=>Ti.test(e)||pp.test(e)||js.test(e),parse:e=>Ti.test(e)?Ti.parse(e):js.test(e)?js.parse(e):pp.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ti.transform(e):js.transform(e)},uA=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function cA(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Am))==null?void 0:t.length)||0)+(((n=e.match(uA))==null?void 0:n.length)||0)>0}const aS="number",lS="color",dA="var",fA="var(",o0="${}",pA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Oa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(pA,l=>(ct.test(l)?(r.color.push(s),i.push(lS),n.push(ct.parse(l))):l.startsWith(fA)?(r.var.push(s),i.push(dA),n.push(l)):(r.number.push(s),i.push(aS),n.push(parseFloat(l))),++s,o0)).split(o0);return{values:n,split:a,indexes:r,types:i}}function uS(e){return Oa(e).values}function cS(e){const{split:t,types:n}=Oa(e),r=t.length;return i=>{let s="";for(let o=0;o<r;o++)if(s+=t[o],i[o]!==void 0){const a=n[o];a===aS?s+=Jo(i[o]):a===lS?s+=ct.transform(i[o]):s+=i[o]}return s}}const hA=e=>typeof e=="number"?0:e;function mA(e){const t=uS(e);return cS(e)(t.map(hA))}const ri={test:cA,parse:uS,createTransformer:cS,getAnimatableNone:mA},gA=new Set(["brightness","contrast","saturate","opacity"]);function vA(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Am)||[];if(!r)return e;const i=n.replace(r,"");let s=gA.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const yA=/\b([a-z-]*)\(.*?\)/gu,hp={...ri,getAnimatableNone:e=>{const t=e.match(yA);return t?t.map(vA).join(" "):e}},xA={...wm,color:ct,backgroundColor:ct,outlineColor:ct,fill:ct,stroke:ct,borderColor:ct,borderTopColor:ct,borderRightColor:ct,borderBottomColor:ct,borderLeftColor:ct,filter:hp,WebkitFilter:hp},dS=e=>xA[e];function fS(e,t){let n=dS(e);return n!==hp&&(n=ri),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const wA=new Set(["auto","none","0"]);function bA(e,t,n){let r=0,i;for(;r<e.length&&!i;){const s=e[r];typeof s=="string"&&!wA.has(s)&&Oa(s).values.length&&(i=e[r]),r++}if(i&&n)for(const s of t)e[s]=fS(n,i)}const Ci=e=>e*180/Math.PI,mp=e=>{const t=Ci(Math.atan2(e[1],e[0]));return gp(t)},SA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:mp,rotateZ:mp,skewX:e=>Ci(Math.atan(e[1])),skewY:e=>Ci(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},gp=e=>(e=e%360,e<0&&(e+=360),e),a0=mp,l0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),u0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:l0,scaleY:u0,scale:e=>(l0(e)+u0(e))/2,rotateX:e=>gp(Ci(Math.atan2(e[6],e[5]))),rotateY:e=>gp(Ci(Math.atan2(-e[2],e[0]))),rotateZ:a0,rotate:a0,skewX:e=>Ci(Math.atan(e[4])),skewY:e=>Ci(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function c0(e){return e.includes("scale")?1:0}function vp(e,t){if(!e||e==="none")return c0(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=kA,i=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=SA,i=a}if(!i)return c0(t);const s=r[t],o=i[1].split(",").map(TA);return typeof s=="function"?s(o):o[s]}const EA=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return vp(n,t)};function TA(e){return parseFloat(e.trim())}const d0=e=>e===wo||e===K,CA=new Set(["x","y","z"]),_A=xo.filter(e=>!CA.has(e));function PA(e){const t=[];return _A.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const co={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>vp(t,"x"),y:(e,{transform:t})=>vp(t,"y")};co.translateX=co.x;co.translateY=co.y;const Ii=new Set;let yp=!1,xp=!1;function pS(){if(xp){const e=Array.from(Ii).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=PA(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))==null||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xp=!1,yp=!1,Ii.forEach(e=>e.complete()),Ii.clear()}function hS(){Ii.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xp=!0)})}function jA(){hS(),pS()}class Om{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ii.add(this),yp||(yp=!0,we.read(hS),we.resolveKeyframes(pS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s<t.length;s++)if(t[s]===null)if(s===0){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}else t[s]=t[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ii.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ii.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const mS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),AA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RA(e){const t=AA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function gS(e,t,n=1){const[r,i]=RA(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return mS(o)?parseFloat(o):o}return xm(i)?gS(i,t,n+1):i}const vS=e=>t=>t.test(e),OA={test:e=>e==="auto",parse:e=>e},yS=[wo,K,Un,Sr,jj,Pj,OA],f0=e=>yS.find(vS(e));class xS extends Om{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),xm(u))){const d=gS(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Qb.has(r)||t.length!==2)return;const[i,s]=t,o=f0(i),a=f0(s);if(o!==a)if(d0(o)&&d0(a))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)iA(t[i])&&r.push(i);r.length&&bA(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=co[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=co[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const p0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ri.test(e)||e==="0")&&!e.startsWith("url("));function DA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function FA(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=p0(i,t),a=p0(s,t);return!o||!a?!1:DA(e)||(n==="spring"||cm(n))&&r}const NA=e=>e!==null;function vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(NA),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const MA=40;class wS{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Vn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>MA?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&jA(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Vn.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!FA(t,r,i,s))if(o)this.options.duration=0;else{l&&l(vc(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Pe=(e,t,n)=>e+(t-e)*n;function kd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function LA({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=kd(l,a,e+1/3),s=kd(l,a,e),o=kd(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function Nu(e,t){return n=>n>0?t:e}const Ed=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},IA=[pp,Ti,js],$A=e=>IA.find(t=>t.test(e));function h0(e){const t=$A(e);if(!t)return!1;let n=t.parse(e);return t===js&&(n=LA(n)),n}const m0=(e,t)=>{const n=h0(e),r=h0(t);if(!n||!r)return Nu(e,t);const i={...n};return s=>(i.red=Ed(n.red,r.red,s),i.green=Ed(n.green,r.green,s),i.blue=Ed(n.blue,r.blue,s),i.alpha=Pe(n.alpha,r.alpha,s),Ti.transform(i))},zA=(e,t)=>n=>t(e(n)),Xa=(...e)=>e.reduce(zA),wp=new Set(["none","hidden"]);function BA(e,t){return wp.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function VA(e,t){return n=>Pe(e,t,n)}function Dm(e){return typeof e=="number"?VA:typeof e=="string"?xm(e)?Nu:ct.test(e)?m0:WA:Array.isArray(e)?bS:typeof e=="object"?ct.test(e)?m0:UA:Nu}function bS(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Dm(s)(s,t[o]));return s=>{for(let o=0;o<r;o++)n[o]=i[o](s);return n}}function UA(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Dm(e[i])(e[i],t[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}}function HA(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],a=e.values[o]??0;n[i]=a,r[s]++}return n}const WA=(e,t)=>{const n=ri.createTransformer(t),r=Oa(e),i=Oa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?wp.has(e)&&!i.values.length||wp.has(t)&&!r.values.length?BA(e,t):Xa(bS(HA(r,i),i.values),n):Nu(e,t)};function SS(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pe(e,t,n):Dm(e)(e,t)}const qA=5;function kS(e,t,n){const r=Math.max(t-qA,0);return Eb(n-e(r),t-r)}const Oe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Td=.001;function KA({duration:e=Oe.duration,bounce:t=Oe.bounce,velocity:n=Oe.velocity,mass:r=Oe.mass}){let i,s,o=1-t;o=fr(Oe.minDamping,Oe.maxDamping,o),e=fr(Oe.minDuration,Oe.maxDuration,Bn(e)),o<1?(i=u=>{const d=u*o,c=d*e,f=d-n,p=bp(u,o),h=Math.exp(-c);return Td-f/p*h},s=u=>{const c=u*o*e,f=c*n+n,p=Math.pow(o,2)*Math.pow(u,2)*e,h=Math.exp(-c),y=bp(Math.pow(u,2),o);return(-i(u)+Td>0?-1:1)*((f-p)*h)/y}):(i=u=>{const d=Math.exp(-u*e),c=(u-n)*e+1;return-Td+d*c},s=u=>{const d=Math.exp(-u*e),c=(n-u)*(e*e);return d*c});const a=5/e,l=QA(i,s,a);if(e=zn(e),isNaN(l))return{stiffness:Oe.stiffness,damping:Oe.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const GA=12;function QA(e,t,n){let r=n;for(let i=1;i<GA;i++)r=r-e(r)/t(r);return r}function bp(e,t){return e*Math.sqrt(1-t*t)}const YA=["duration","bounce"],XA=["stiffness","damping","mass"];function g0(e,t){return t.some(n=>e[n]!==void 0)}function ZA(e){let t={velocity:Oe.velocity,stiffness:Oe.stiffness,damping:Oe.damping,mass:Oe.mass,isResolvedFromDuration:!1,...e};if(!g0(e,XA)&&g0(e,YA))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*fr(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Oe.mass,stiffness:i,damping:s}}else{const n=KA(e);t={...t,...n,mass:Oe.mass},t.isResolvedFromDuration=!0}return t}function Mu(e=Oe.visualDuration,t=Oe.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:d,duration:c,velocity:f,isResolvedFromDuration:p}=ZA({...n,velocity:-Bn(n.velocity||0)}),h=f||0,y=u/(2*Math.sqrt(l*d)),b=o-s,g=Bn(Math.sqrt(l/d)),x=Math.abs(b)<5;r||(r=x?Oe.restSpeed.granular:Oe.restSpeed.default),i||(i=x?Oe.restDelta.granular:Oe.restDelta.default);let w;if(y<1){const T=bp(g,y);w=E=>{const S=Math.exp(-y*g*E);return o-S*((h+y*g*b)/T*Math.sin(T*E)+b*Math.cos(T*E))}}else if(y===1)w=T=>o-Math.exp(-g*T)*(b+(h+g*b)*T);else{const T=g*Math.sqrt(y*y-1);w=E=>{const S=Math.exp(-y*g*E),_=Math.min(T*E,300);return o-S*((h+y*g*b)*Math.sinh(_)+T*b*Math.cosh(_))/T}}const C={calculatedDuration:p&&c||null,next:T=>{const E=w(T);if(p)a.done=T>=c;else{let S=0;y<1&&(S=T===0?zn(h):kS(w,T,E));const _=Math.abs(S)<=r,D=Math.abs(o-E)<=i;a.done=_&&D}return a.value=a.done?o:E,a},toString:()=>{const T=Math.min(fm(C),Du),E=Tb(S=>C.next(T*S).value,T,30);return T+"ms "+E},toTransition:()=>{}};return C}Mu.applyToOptions=e=>{const t=YP(e,100,Mu);return e.ease=Ca()?t.ease:"easeOut",e.duration=zn(t.duration),e.type="keyframes",e};function v0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const c=e[0],f={done:!1,value:c},p=_=>a!==void 0&&_<a||l!==void 0&&_>l,h=_=>a===void 0?l:l===void 0||Math.abs(a-_)<Math.abs(l-_)?a:l;let y=n*t;const b=c+y,g=o===void 0?b:o(b);g!==b&&(y=g-c);const x=_=>-y*Math.exp(-_/r),w=_=>g+x(_),C=_=>{const D=x(_),R=w(_);f.done=Math.abs(D)<=u,f.value=f.done?g:R};let T,E;const S=_=>{p(f.value)&&(T=_,E=Mu({keyframes:[f.value,h(f.value)],velocity:kS(w,_,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:d}))};return S(0),{calculatedDuration:null,next:_=>{let D=!1;return!E&&T===void 0&&(D=!0,C(_),S(_)),T!==void 0&&_>=T?E.next(_-T):(!D&&C(_),f)}}}const JA=Ya(.42,0,1,1),eR=Ya(0,0,.58,1),ES=Ya(.42,0,.58,1),tR=e=>Array.isArray(e)&&typeof e[0]!="number",y0={linear:on,easeIn:JA,easeInOut:ES,easeOut:eR,circIn:jm,circInOut:iS,circOut:rS,backIn:Pm,backInOut:tS,backOut:eS,anticipate:nS},x0=e=>{if(um(e)){lp(e.length===4);const[t,n,r,i]=e;return Ya(t,n,r,i)}else if(typeof e=="string")return lp(y0[e]!==void 0),y0[e];return e};function nR(e,t,n){const r=[],i=n||SS,s=e.length-1;for(let o=0;o<s;o++){let a=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||on:t;a=Xa(l,a)}r.push(a)}return r}function rR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const s=e.length;if(lp(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=nR(t,r,i),l=a.length,u=d=>{if(o&&d<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(d<e[c+1]);c++);const f=Ta(e[c],e[c+1],d);return a[c](f)};return n?d=>u(fr(e[0],e[s-1],d)):u}function iR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ta(0,t,r);e.push(Pe(n,1,i))}}function sR(e){const t=[0];return iR(t,e.length-1),t}function oR(e,t){return e.map(n=>n*t)}function aR(e,t){return e.map(()=>t||ES).splice(0,e.length-1)}function Lu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=tR(r)?r.map(x0):x0(r),s={done:!1,value:t[0]},o=oR(n&&n.length===t.length?n:sR(t),e),a=rR(o,t,{ease:Array.isArray(i)?i:aR(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const lR=e=>{const t=({timestamp:n})=>e(n);return{start:()=>we.update(t,!0),stop:()=>ni(t),now:()=>tt.isProcessing?tt.timestamp:Vn.now()}},uR={decay:v0,inertia:v0,tween:Lu,keyframes:Lu,spring:Mu},cR=e=>e/100;class Fm extends wS{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Om,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(s,a,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=cm(n)?n:uR[n]||Lu;let l,u;a!==Lu&&typeof t[0]!="number"&&(l=Xa(cR,SS(t[0],t[1])),t=[0,100]);const d=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=fm(d));const{calculatedDuration:c}=d,f=c+i,p=f*(r+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:c,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:_}=this.options;return{done:!0,value:_[_.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:c}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:p,repeatType:h,repeatDelay:y,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-f*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>d;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,C=s;if(p){const _=Math.min(this.currentTime,d)/c;let D=Math.floor(_),R=_%1;!R&&_>=1&&(R=1),R===1&&D--,D=Math.min(D,p+1),!!(D%2)&&(h==="reverse"?(R=1-R,y&&(R-=y/c)):h==="mirror"&&(C=o)),w=fr(0,1,R)*c}const T=x?{done:!1,value:l[0]}:C.next(w);a&&(T.value=a(T.value));let{done:E}=T;!x&&u!==null&&(E=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return S&&i!==void 0&&(T.value=vc(l,this.options,i)),b&&b(T.value),S&&this.finish(),T}get duration(){const{resolved:t}=this;return t?Bn(t.calculatedDuration):0}get time(){return Bn(this.currentTime)}set time(t){t=zn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Bn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=lR,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=this.currentTime??0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}get finished(){return this.currentFinishedPromise}}const dR=new Set(["opacity","clipPath","filter","transform"]),fR=am(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Iu=10,pR=2e4;function hR(e){return cm(e.type)||e.type==="spring"||!_b(e.ease)}function mR(e,t){const n=new Fm({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<pR;)r=n.sample(s),i.push(r.value),s+=Iu;return{times:void 0,keyframes:i,duration:s-Iu,ease:"linear"}}const TS={anticipate:nS,backInOut:tS,circInOut:iS};function gR(e){return e in TS}class w0 extends wS{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new xS(s,(o,a)=>this.onKeyframesResolved(o,a),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof s=="string"&&Ca()&&gR(s)&&(s=TS[s]),hR(this.options)){const{onComplete:c,onUpdate:f,motionValue:p,element:h,...y}=this.options,b=mR(t,y);t=b.keyframes,t.length===1&&(t[1]=t[0]),r=b.duration,i=b.times,s=b.ease,o="keyframes"}const d=QP(a.owner.current,l,t,{...this.options,duration:r,times:i,ease:s});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Gv(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:c}=this.options;a.set(vc(t,this.options,n)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Bn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Bn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=zn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}get finished(){return this.resolved.animation.finished}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return on;const{animation:r}=n;Gv(r,t)}return on}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:c,element:f,...p}=this.options,h=new Fm({...p,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),y=zn(this.time);u.setWithVelocity(h.sample(y-Iu).value,h.sample(y).value,Iu)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return fR()&&r&&dR.has(r)&&(r!=="transform"||!u)&&!l&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}const vR={type:"spring",stiffness:500,damping:25,restSpeed:10},yR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),xR={type:"keyframes",duration:.8},wR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},bR=(e,{keyframes:t})=>t.length>2?xR:ts.has(e)?e.startsWith("scale")?yR(t[1]):vR:wR;function SR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Nm=(e,t,n,r={},i,s)=>o=>{const a=dm(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-zn(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};SR(a)||(d={...d,...bR(e,d)}),d.duration&&(d.duration=zn(d.duration)),d.repeatDelay&&(d.repeatDelay=zn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let c=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(c=!0)),d.allowFlatten=!a.type&&!a.ease,c&&!s&&t.get()!==void 0){const f=vc(d.keyframes,a);if(f!==void 0)return we.update(()=>{d.onUpdate(f),d.onComplete()}),new qP([])}return!s&&w0.supports(d)?new w0(d):new Fm(d)};function kR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function CS(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const c=e.getValue(d,e.latestValues[d]??null),f=a[d];if(f===void 0||u&&kR(u,d))continue;const p={delay:n,...dm(s||{},d)};let h=!1;if(window.MotionHandoffAnimation){const b=Yb(e);if(b){const g=window.MotionHandoffAnimation(b,d,we);g!==null&&(p.startTime=g,h=!0)}}fp(e,d),c.start(Nm(d,c,f,e.shouldReduceMotion&&Qb.has(d)?{type:!1}:p,e,h));const y=c.animation;y&&l.push(y)}return o&&Promise.all(l).then(()=>{we.update(()=>{o&&Jj(e,o)})}),l}function Sp(e,t,n={}){var l;const r=Ra(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(CS(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:c,staggerDirection:f}=i;return ER(e,t,d+u,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,d]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function ER(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(TR).forEach((u,d)=>{u.notify("AnimationStart",t),o.push(Sp(u,t,{...s,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function TR(e,t){return e.sortNodePosition(t)}function CR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Sp(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Sp(e,t,n);else{const i=typeof t=="function"?Ra(e,t,n.custom):t;r=Promise.all(CS(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function _S(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const _R=gm.length;function PS(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?PS(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<_R;n++){const r=gm[n],i=e.props[r];(Pa(i)||i===!1)&&(t[r]=i)}return t}const PR=[...mm].reverse(),jR=mm.length;function AR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>CR(e,n,r)))}function RR(e){let t=AR(e),n=b0(),r=!0;const i=l=>(u,d)=>{var f;const c=Ra(e,d,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(c){const{transition:p,transitionEnd:h,...y}=c;u={...u,...y,...h}}return u};function s(l){t=l(e)}function o(l){const{props:u}=e,d=PS(e.parent)||{},c=[],f=new Set;let p={},h=1/0;for(let b=0;b<jR;b++){const g=PR[b],x=n[g],w=u[g]!==void 0?u[g]:d[g],C=Pa(w),T=g===l?x.isActive:null;T===!1&&(h=b);let E=w===d[g]&&w!==u[g]&&C;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),x.protectedKeys={...p},!x.isActive&&T===null||!w&&!x.prevProp||mc(w)||typeof w=="boolean")continue;const S=OR(x.prevProp,w);let _=S||g===l&&x.isActive&&!E&&C||b>h&&C,D=!1;const R=Array.isArray(w)?w:[w];let I=R.reduce(i(g),{});T===!1&&(I={});const{prevResolvedValues:ne={}}=x,te={...ne,...I},Z=Y=>{_=!0,f.has(Y)&&(D=!0,f.delete(Y)),x.needsAnimating[Y]=!0;const O=e.getValue(Y);O&&(O.liveStyle=!1)};for(const Y in te){const O=I[Y],M=ne[Y];if(p.hasOwnProperty(Y))continue;let U=!1;dp(O)&&dp(M)?U=!_S(O,M):U=O!==M,U?O!=null?Z(Y):f.add(Y):O!==void 0&&f.has(Y)?Z(Y):x.protectedKeys[Y]=!0}x.prevProp=w,x.prevResolvedValues=I,x.isActive&&(p={...p,...I}),r&&e.blockInitialAnimation&&(_=!1),_&&(!(E&&S)||D)&&c.push(...R.map(Y=>({animation:Y,options:{type:g}})))}if(f.size){const b={};if(typeof u.initial!="boolean"){const g=Ra(e,Array.isArray(u.initial)?u.initial[0]:u.initial);g&&g.transition&&(b.transition=g.transition)}f.forEach(g=>{const x=e.getBaseTarget(g),w=e.getValue(g);w&&(w.liveStyle=!0),b[g]=x??null}),c.push({animation:b})}let y=!!c.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(c):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)==null||c.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=b0(),r=!0}}}function OR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_S(t,e):!1}function hi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function b0(){return{animate:hi(!0),whileInView:hi(),whileHover:hi(),whileTap:hi(),whileDrag:hi(),whileFocus:hi(),exit:hi()}}class li{constructor(t){this.isMounted=!1,this.node=t}update(){}}class DR extends li{constructor(t){super(t),t.animationState||(t.animationState=RR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mc(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let FR=0;class NR extends li{constructor(){super(...arguments),this.id=FR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const MR={animation:{Feature:DR},exit:{Feature:NR}};function Da(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Za(e){return{point:{x:e.pageX,y:e.pageY}}}const LR=e=>t=>hm(t)&&e(t,Za(t));function ea(e,t,n,r){return Da(e,t,LR(n),r)}function jS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function IR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $R(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}const AS=1e-4,zR=1-AS,BR=1+AS,RS=.01,VR=0-RS,UR=0+RS;function vt(e){return e.max-e.min}function HR(e,t,n){return Math.abs(e-t)<=n}function S0(e,t,n,r=.5){e.origin=r,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=vt(n)/vt(t),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zR&&e.scale<=BR||isNaN(e.scale))&&(e.scale=1),(e.translate>=VR&&e.translate<=UR||isNaN(e.translate))&&(e.translate=0)}function ta(e,t,n,r){S0(e.x,t.x,n.x,r?r.originX:void 0),S0(e.y,t.y,n.y,r?r.originY:void 0)}function k0(e,t,n){e.min=n.min+t.min,e.max=e.min+vt(t)}function WR(e,t,n){k0(e.x,t.x,n.x),k0(e.y,t.y,n.y)}function E0(e,t,n){e.min=t.min-n.min,e.max=e.min+vt(t)}function na(e,t,n){E0(e.x,t.x,n.x),E0(e.y,t.y,n.y)}const T0=()=>({translate:0,scale:1,origin:0,originPoint:0}),As=()=>({x:T0(),y:T0()}),C0=()=>({min:0,max:0}),Ne=()=>({x:C0(),y:C0()});function Yt(e){return[e("x"),e("y")]}function Cd(e){return e===void 0||e===1}function kp({scale:e,scaleX:t,scaleY:n}){return!Cd(e)||!Cd(t)||!Cd(n)}function yi(e){return kp(e)||OS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function OS(e){return _0(e.x)||_0(e.y)}function _0(e){return e&&e!=="0%"}function $u(e,t,n){const r=e-n,i=t*r;return n+i}function P0(e,t,n,r,i){return i!==void 0&&(e=$u(e,i,r)),$u(e,n,r)+t}function Ep(e,t=0,n=1,r,i){e.min=P0(e.min,t,n,r,i),e.max=P0(e.max,t,n,r,i)}function DS(e,{x:t,y:n}){Ep(e.x,t.translate,t.scale,t.originPoint),Ep(e.y,n.translate,n.scale,n.originPoint)}const j0=.999999999999,A0=1.0000000000001;function qR(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:l}=s.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Os(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,DS(e,o)),r&&yi(s.latestValues)&&Os(e,s.latestValues))}t.x<A0&&t.x>j0&&(t.x=1),t.y<A0&&t.y>j0&&(t.y=1)}function Rs(e,t){e.min=e.min+t,e.max=e.max+t}function R0(e,t,n,r,i=.5){const s=Pe(e.min,e.max,i);Ep(e,t,n,s,r)}function Os(e,t){R0(e.x,t.x,t.scaleX,t.scale,t.originX),R0(e.y,t.y,t.scaleY,t.scale,t.originY)}function FS(e,t){return jS($R(e.getBoundingClientRect(),t))}function KR(e,t,n){const r=FS(e,n),{scroll:i}=t;return i&&(Rs(r.x,i.offset.x),Rs(r.y,i.offset.y)),r}const NS=({current:e})=>e?e.ownerDocument.defaultView:null,O0=(e,t)=>Math.abs(e-t);function GR(e,t){const n=O0(e.x,t.x),r=O0(e.y,t.y);return Math.sqrt(n**2+r**2)}class MS{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=Pd(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,p=GR(c.offset,{x:0,y:0})>=3;if(!f&&!p)return;const{point:h}=c,{timestamp:y}=tt;this.history.push({...h,timestamp:y});const{onStart:b,onMove:g}=this.handlers;f||(b&&b(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=_d(f,this.transformPagePoint),we.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{this.end();const{onEnd:p,onSessionEnd:h,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Pd(c.type==="pointercancel"?this.lastMoveEventInfo:_d(f,this.transformPagePoint),this.history);this.startEvent&&p&&p(c,b),h&&h(c,b)},!hm(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Za(t),a=_d(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=tt;this.history=[{...l,timestamp:u}];const{onSessionStart:d}=n;d&&d(t,Pd(a,this.history)),this.removeListeners=Xa(ea(this.contextWindow,"pointermove",this.handlePointerMove),ea(this.contextWindow,"pointerup",this.handlePointerUp),ea(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ni(this.updatePoint)}}function _d(e,t){return t?{point:t(e.point)}:e}function D0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Pd({point:e},t){return{point:e,delta:D0(e,LS(t)),offset:D0(e,QR(t)),velocity:YR(t,.1)}}function QR(e){return e[0]}function LS(e){return e[e.length-1]}function YR(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=LS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>zn(t)));)n--;if(!r)return{x:0,y:0};const s=Bn(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function XR(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Pe(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Pe(n,e,r.max):Math.min(e,n)),e}function F0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZR(e,{top:t,left:n,bottom:r,right:i}){return{x:F0(e.x,n,i),y:F0(e.y,t,r)}}function N0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function JR(e,t){return{x:N0(e.x,t.x),y:N0(e.y,t.y)}}function eO(e,t){let n=.5;const r=vt(e),i=vt(t);return i>r?n=Ta(t.min,t.max-r,e.min):r>i&&(n=Ta(e.min,e.max-i,t.min)),fr(0,1,n)}function tO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Tp=.35;function nO(e=Tp){return e===!1?e=0:e===!0&&(e=Tp),{x:M0(e,"left","right"),y:M0(e,"top","bottom")}}function M0(e,t,n){return{min:L0(e,t),max:L0(e,n)}}function L0(e,t){return typeof e=="number"?e:e[t]||0}const rO=new WeakMap;class iO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ne(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Za(d).point)},s=(d,c)=>{const{drag:f,dragPropagation:p,onDragStart:h}=this.getProps();if(f&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ej(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Yt(b=>{let g=this.getAxisMotionValue(b).get()||0;if(Un.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const w=x.layout.layoutBox[b];w&&(g=vt(w)*(parseFloat(g)/100))}}this.originPoint[b]=g}),h&&we.postRender(()=>h(d,c)),fp(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(d,c)=>{const{dragPropagation:f,dragDirectionLock:p,onDirectionLock:h,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=c;if(p&&this.currentDirection===null){this.currentDirection=sO(b),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",c.point,b),this.updateAxis("y",c.point,b),this.visualElement.render(),y&&y(d,c)},a=(d,c)=>this.stop(d,c),l=()=>Yt(d=>{var c;return this.getAnimationState(d)==="paused"&&((c=this.getAxisMotionValue(d).animation)==null?void 0:c.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new MS(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:NS(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&we.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Cl(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=XR(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,i=this.constraints;t&&Ps(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=ZR(r.layoutBox,t):this.constraints=!1,this.elastic=nO(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Yt(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=tO(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ps(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=KR(r,i.root,this.visualElement.getTransformPagePoint());let o=JR(i.layout.layoutBox,s);if(n){const a=n(IR(o));this.hasMutatedConstraints=!!a,a&&(o=jS(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Yt(d=>{if(!Cl(d,n,this.currentDirection))return;let c=l&&l[d]||{};o&&(c={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,h={type:"inertia",velocity:r?t[d]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...s,...c};return this.startAxisValueAnimation(d,h)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return fp(this.visualElement,t),r.start(Nm(t,r,0,n,this.visualElement,!1))}stopAnimation(){Yt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Yt(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Yt(n=>{const{drag:r}=this.getProps();if(!Cl(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-Pe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ps(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Yt(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=eO({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Yt(o=>{if(!Cl(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(Pe(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;rO.set(this.visualElement,this);const t=this.visualElement.current,n=ea(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ps(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),we.read(r);const o=Da(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Yt(d=>{const c=this.getAxisMotionValue(d);c&&(this.originPoint[d]+=l[d].translate,c.set(c.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Tp,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Cl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oO extends li{constructor(t){super(t),this.removeGroupControls=on,this.removeListeners=on,this.controls=new iO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||on}unmount(){this.removeGroupControls(),this.removeListeners()}}const I0=e=>(t,n)=>{e&&we.postRender(()=>e(t,n))};class aO extends li{constructor(){super(...arguments),this.removePointerDownListener=on}onPointerDown(t){this.session=new MS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:NS(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:I0(t),onStart:I0(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&we.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=ea(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Yl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function $0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Do={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(K.test(e))e=parseFloat(e);else return e;const n=$0(e,t.target.x),r=$0(e,t.target.y);return`${n}% ${r}%`}},lO={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ri.parse(e);if(i.length>5)return r;const s=ri.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=Pe(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class uO extends m.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;_j(cO),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Yl.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0||t.isPresent!==s?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||we.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),pm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function IS(e){const[t,n]=kb(),r=m.useContext(nm);return v.jsx(uO,{...e,layoutGroup:r,switchLayoutGroup:m.useContext(Mb),isPresent:t,safeToRemove:n})}const cO={borderRadius:{...Do,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Do,borderTopRightRadius:Do,borderBottomLeftRadius:Do,borderBottomRightRadius:Do,boxShadow:lO};function dO(e,t,n){const r=ft(e)?e:_a(e);return r.start(Nm("",r,t,n)),r.animation}function fO(e){return e instanceof SVGElement&&e.tagName!=="svg"}const pO=(e,t)=>e.depth-t.depth;class hO{constructor(){this.children=[],this.isDirty=!1}add(t){sm(this.children,t),this.isDirty=!0}remove(t){om(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pO),this.isDirty=!1,this.children.forEach(t)}}function mO(e,t){const n=Vn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(ni(r),e(s-t))};return we.read(r,!0),()=>ni(r)}const $S=["TopLeft","TopRight","BottomLeft","BottomRight"],gO=$S.length,z0=e=>typeof e=="string"?parseFloat(e):e,B0=e=>typeof e=="number"||K.test(e);function vO(e,t,n,r,i,s){i?(e.opacity=Pe(0,n.opacity??1,yO(r)),e.opacityExit=Pe(t.opacity??1,0,xO(r))):s&&(e.opacity=Pe(t.opacity??1,n.opacity??1,r));for(let o=0;o<gO;o++){const a=`border${$S[o]}Radius`;let l=V0(t,a),u=V0(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||B0(l)===B0(u)?(e[a]=Math.max(Pe(z0(l),z0(u),r),0),(Un.test(u)||Un.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Pe(t.rotate||0,n.rotate||0,r))}function V0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const yO=zS(0,.5,rS),xO=zS(.5,.95,on);function zS(e,t,n){return r=>r<e?0:r>t?1:n(Ta(e,t,r))}function U0(e,t){e.min=t.min,e.max=t.max}function Gt(e,t){U0(e.x,t.x),U0(e.y,t.y)}function H0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function W0(e,t,n,r,i){return e-=t,e=$u(e,1/n,r),i!==void 0&&(e=$u(e,1/i,r)),e}function wO(e,t=0,n=1,r=.5,i,s=e,o=e){if(Un.test(t)&&(t=parseFloat(t),t=Pe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Pe(s.min,s.max,r);e===s&&(a-=t),e.min=W0(e.min,t,n,a,i),e.max=W0(e.max,t,n,a,i)}function q0(e,t,[n,r,i],s,o){wO(e,t[n],t[r],t[i],t.scale,s,o)}const bO=["x","scaleX","originX"],SO=["y","scaleY","originY"];function K0(e,t,n,r){q0(e.x,t,bO,n?n.x:void 0,r?r.x:void 0),q0(e.y,t,SO,n?n.y:void 0,r?r.y:void 0)}function G0(e){return e.translate===0&&e.scale===1}function BS(e){return G0(e.x)&&G0(e.y)}function Q0(e,t){return e.min===t.min&&e.max===t.max}function kO(e,t){return Q0(e.x,t.x)&&Q0(e.y,t.y)}function Y0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function VS(e,t){return Y0(e.x,t.x)&&Y0(e.y,t.y)}function X0(e){return vt(e.x)/vt(e.y)}function Z0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class EO{constructor(){this.members=[]}add(t){sm(this.members,t),t.scheduleRender()}remove(t){if(om(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function TO(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:c,rotateY:f,skewX:p,skewY:h}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),h&&(r+=`skewY(${h}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const jd=["","X","Y","Z"],CO={visibility:"hidden"},J0=1e3;let _O=0;function Ad(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function US(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Yb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",we,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&US(r)}function HS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=_O++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(AO),this.nodes.forEach(NO),this.nodes.forEach(MO),this.nodes.forEach(RO)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new hO)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new lm),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=fO(o),this.instance=o;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),e){let c;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,c&&c(),c=mO(f,250),Yl.hasAnimatedSinceResize&&(Yl.hasAnimatedSinceResize=!1,this.nodes.forEach(ty))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||d.getDefaultTransition()||BO,{onLayoutAnimationStart:b,onLayoutAnimationComplete:g}=d.getProps(),x=!this.targetLayout||!VS(this.targetLayout,h),w=!f&&p;if(this.options.layoutRoot||this.resumeFrom||w||f&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(c,w);const C={...dm(y,"layout"),onPlay:b,onComplete:g};(d.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else f||ty(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ni(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(LO),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&US(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const c=this.path[d];c.shouldResetTransform=!0,c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ey);return}this.isUpdating||this.nodes.forEach(DO),this.isUpdating=!1,this.nodes.forEach(FO),this.nodes.forEach(PO),this.nodes.forEach(jO),this.clearAllSnapshots();const a=Vn.now();tt.delta=fr(0,1e3/60,a-tt.timestamp),tt.timestamp=a,tt.isProcessing=!0,wd.update.process(tt),wd.preRender.process(tt),wd.render.process(tt),tt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OO),this.sharedNodes.forEach(IO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,we.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){we.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vt(this.snapshot.measuredBox.x)&&!vt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ne(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!BS(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&(a||yi(this.latestValues)||d)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),VO(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return Ne();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(UO))){const{scroll:d}=this.root;d&&(Rs(a.x,d.offset.x),Rs(a.y,d.offset.y))}return a}removeElementScroll(o){var l;const a=Ne();if(Gt(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:c,options:f}=d;d!==this.root&&c&&f.layoutScroll&&(c.wasRoot&&Gt(a,o),Rs(a.x,c.offset.x),Rs(a.y,c.offset.y))}return a}applyTransform(o,a=!1){const l=Ne();Gt(l,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Os(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),yi(d.latestValues)&&Os(l,d.latestValues)}return yi(this.latestValues)&&Os(l,this.latestValues),l}removeTransform(o){const a=Ne();Gt(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!yi(u.latestValues))continue;kp(u.latestValues)&&u.updateSnapshot();const d=Ne(),c=u.measurePageBox();Gt(d,c),K0(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return yi(this.latestValues)&&K0(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var f;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:c}=this.options;if(!(!this.layout||!(d||c))){if(this.resolvedRelativeTargetAt=tt.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ne(),this.relativeTargetOrigin=Ne(),na(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ne(),this.targetWithTransforms=Ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),WR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Gt(this.target,this.layout.layoutBox),DS(this.target,this.targetDelta)):Gt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ne(),this.relativeTargetOrigin=Ne(),na(this.relativeTargetOrigin,this.target,p.target),Gt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||kp(this.parent.latestValues)||OS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var h;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===tt.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Gt(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,f=this.treeScale.y;qR(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Ne());const{target:p}=o;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(H0(this.prevProjectionDelta.x,this.projectionDelta.x),H0(this.prevProjectionDelta.y,this.projectionDelta.y)),ta(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==f||!Z0(this.projectionDelta.x,this.prevProjectionDelta.x)||!Z0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=As(),this.projectionDelta=As(),this.projectionDeltaWithTransform=As()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},c=As();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=Ne(),p=l?l.source:void 0,h=this.layout?this.layout.source:void 0,y=p!==h,b=this.getStack(),g=!b||b.members.length<=1,x=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(zO));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const T=C/1e3;ny(c.x,o.x,T),ny(c.y,o.y,T),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(na(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$O(this.relativeTarget,this.relativeTargetOrigin,f,T),w&&kO(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ne()),Gt(w,this.relativeTarget)),y&&(this.animationValues=d,vO(d,u,this.latestValues,T,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ni(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=we.update(()=>{Yl.hasAnimatedSinceResize=!0,this.currentAnimation=dO(0,J0,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(J0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:d}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&WS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ne();const c=vt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+c;const f=vt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}Gt(a,l),Os(a,d),ta(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new EO),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Ad("z",o,u,this.animationValues);for(let d=0;d<jd.length;d++)Ad(`rotate${jd[d]}`,o,u,this.animationValues),Ad(`skew${jd[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}getProjectionStyles(o){if(!this.instance||this.isSVG)return;if(!this.isVisible)return CO;const a={visibility:""},l=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=Ql(o==null?void 0:o.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none",a;const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Ql(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!yi(this.latestValues)&&(p.transform=l?l({},""):"none",this.hasProjected=!1),p}const d=u.animationValues||u.latestValues;this.applyTransformsToTarget(),a.transform=TO(this.projectionDeltaWithTransform,this.treeScale,d),l&&(a.transform=l(d,a.transform));const{x:c,y:f}=this.projectionDelta;a.transformOrigin=`${c.origin*100}% ${f.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in ja){if(d[p]===void 0)continue;const{correct:h,applyTo:y,isCSSVariable:b}=ja[p],g=a.transform==="none"?d[p]:h(d[p],u);if(y){const x=y.length;for(let w=0;w<x;w++)a[y[w]]=g}else b?this.options.visualElement.renderState.vars[p]=g:a[p]=g}return this.options.layoutId&&(a.pointerEvents=u===this?Ql(o==null?void 0:o.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(ey),this.root.sharedNodes.clear()}}}function PO(e){e.updateLayout()}function jO(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;s==="size"?Yt(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],p=vt(f);f.min=r[c].min,f.max=f.min+p}):WS(s,t.layoutBox,r)&&Yt(c=>{const f=o?t.measuredBox[c]:t.layoutBox[c],p=vt(r[c]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const a=As();ta(a,r,t.layoutBox);const l=As();o?ta(l,e.applyTransform(i,!0),t.measuredBox):ta(l,r,t.layoutBox);const u=!BS(a);let d=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:f,layout:p}=c;if(f&&p){const h=Ne();na(h,t.layoutBox,f.layoutBox);const y=Ne();na(y,r,p.layoutBox),VS(h,y)||(d=!0),c.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=h,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function AO(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function RO(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function OO(e){e.clearSnapshot()}function ey(e){e.clearMeasurements()}function DO(e){e.isLayoutDirty=!1}function FO(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ty(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function NO(e){e.resolveTargetDelta()}function MO(e){e.calcProjection()}function LO(e){e.resetSkewAndRotation()}function IO(e){e.removeLeadSnapshot()}function ny(e,t,n){e.translate=Pe(t.translate,0,n),e.scale=Pe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ry(e,t,n,r){e.min=Pe(t.min,n.min,r),e.max=Pe(t.max,n.max,r)}function $O(e,t,n,r){ry(e.x,t.x,n.x,r),ry(e.y,t.y,n.y,r)}function zO(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const BO={duration:.45,ease:[.4,0,.1,1]},iy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sy=iy("applewebkit/")&&!iy("chrome/")?Math.round:on;function oy(e){e.min=sy(e.min),e.max=sy(e.max)}function VO(e){oy(e.x),oy(e.y)}function WS(e,t,n){return e==="position"||e==="preserve-aspect"&&!HR(X0(t),X0(n),.2)}function UO(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const HO=HS({attachResizeListener:(e,t)=>Da(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Rd={current:void 0},qS=HS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rd.current){const e=new HO({});e.mount(window),e.setOptions({layoutScroll:!0}),Rd.current=e}return Rd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),WO={pan:{Feature:aO},drag:{Feature:oO,ProjectionNode:qS,MeasureLayout:IS}};function ay(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&we.postRender(()=>s(t,Za(t)))}class qO extends li{mount(){const{current:t}=this.node;t&&(this.unmount=nj(t,(n,r)=>(ay(this.node,r,"Start"),i=>ay(this.node,i,"End"))))}unmount(){}}class KO extends li{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xa(Da(this.node.current,"focus",()=>this.onFocus()),Da(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ly(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&we.postRender(()=>s(t,Za(t)))}class GO extends li{mount(){const{current:t}=this.node;t&&(this.unmount=oj(t,(n,r)=>(ly(this.node,r,"Start"),(i,{success:s})=>ly(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Cp=new WeakMap,Od=new WeakMap,QO=e=>{const t=Cp.get(e.target);t&&t(e)},YO=e=>{e.forEach(QO)};function XO({root:e,...t}){const n=e||document;Od.has(n)||Od.set(n,{});const r=Od.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(YO,{root:e,...t})),r[i]}function ZO(e,t,n){const r=XO(t);return Cp.set(e,n),r.observe(e),()=>{Cp.delete(e),r.unobserve(e)}}const JO={some:0,all:1};class e3 extends li{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:JO[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:c}=this.node.getProps(),f=u?d:c;f&&f(l)};return ZO(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(t3(t,n))&&this.startObserver()}unmount(){}}function t3({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const n3={inView:{Feature:e3},tap:{Feature:GO},focus:{Feature:KO},hover:{Feature:qO}},r3={layout:{ProjectionNode:qS,MeasureLayout:IS}},_p={current:null},KS={current:!1};function i3(){if(KS.current=!0,!!rm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_p.current=e.matches;e.addListener(t),t()}else _p.current=!1}const s3=[...yS,ct,ri],o3=e=>s3.find(vS(e)),a3=new WeakMap;function l3(e,t,n){for(const r in t){const i=t[r],s=n[r];if(ft(i))e.addValue(r,i);else if(ft(s))e.addValue(r,_a(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,_a(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const uy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class u3{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Om,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Vn.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,we.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=gc(n),this.isVariantNode=Fb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const h=f[p];l[p]!==void 0&&ft(h)&&h.set(l[p],!1)}}mount(t){this.current=t,a3.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),KS.current||i3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_p.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ni(this.notifyUpdate),ni(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ts.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&we.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in uo){const n=uo[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<uy.length;r++){const i=uy[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s="on"+i,o=t[s];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=l3(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=_a(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(mS(r)||sS(r))?r=parseFloat(r):!o3(r)&&ri.test(n)&&(r=fS(t,n)),this.setBaseTarget(t,ft(r)?r.get():r)),ft(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const o=Cm(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(r=o[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!ft(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class GS extends u3{constructor(){super(...arguments),this.KeyframeResolver=xS}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ft(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function c3(e){return window.getComputedStyle(e)}class d3 extends GS{constructor(){super(...arguments),this.type="html",this.renderInstance=Wb}readValueFromInstance(t,n){if(ts.has(n))return EA(t,n);{const r=c3(t),i=(ym(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return FS(t,n)}build(t,n,r){bm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return _m(t,n,r)}}class f3 extends GS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ne,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Hb(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ts.has(n)){const r=dS(n);return r&&r.default||0}return n=qb.has(n)?n:vm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Gb(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&we.postRender(this.updateDimensions)}build(t,n,r){Em(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Kb(t,n,r,i)}mount(t){this.isSVGTag=Tm(t.tagName),super.mount(t)}}const p3=(e,t)=>km(e)?new f3(t):new d3(t,{allowProjection:e!==m.Fragment}),h3=Xj({...MR,...n3,...WO,...r3},p3),Te=pj(h3);class m3{constructor(){this.componentControls=new Set}subscribe(t){return this.componentControls.add(t),()=>this.componentControls.delete(t)}start(t,n){this.componentControls.forEach(r=>{r.start(t.nativeEvent||t,n)})}}const g3=()=>new m3;function v3(){return fc(g3)}const y3=e=>["zink","slate","gray","zinc","neutral","stone","red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"].includes(e),Ft=e=>{const[t,n]=e.split("-");return y3(t)?n?`var(--color-${t}-${n})`:`var(--color-${e}-500)`:`var(--color-${e})`};var Tr=(e=>(e.None="none",e.Sm="sm",e.Md="md",e.Lg="lg",e.Xl="xl",e.Full="full",e))(Tr||{});const QS=m.createContext({}),x3={[Q.Background]:"",[Q.Border]:"initial",[Q.TooltipText]:Ft("blue-700"),[Q.TooltipBackground]:Ft("blue-100"),[Q.TooltipBorder]:Ft("blue-500"),[Q.HeaderBackground]:Ft("blue-600"),[Q.HeaderBorder]:"initial",[Q.HeaderText]:"white",[Q.FooterBackground]:"",[Q.FooterBorder]:"",[Q.FooterText]:"",[Q.MessageAdminBackground]:"",[Q.MessageAdminText]:"",[Q.MessageVisitorBackground]:"",[Q.MessageVisitorText]:"",[Q.GreeterBackground]:"white",[Q.GreeterText]:Ft("slate-700"),[Q.GreeterBorder]:Ft("slate-200"),[Q.GreeterTopBackground]:"linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%)",[Q.GreeterTopText]:"white",[Q.GreeterButtonBackground]:Ft("indigo-600"),[Q.GreeterButtonText]:Ft("white"),[Q.ButtonBackground]:Ft("indigo-600"),[Q.ButtonText]:Ft("white"),[Q.InputBackground]:Ft("white"),[Q.InputText]:Ft("slate-800"),[Q.InputBorder]:Ft("slate-200")},w3={[Tr.None]:"0px",[Tr.Sm]:"var(--radius-xs)",[Tr.Md]:"var(--radius-sm)",[Tr.Lg]:"var(--radius-md)",[Tr.Xl]:"var(--radius-lg)",[Tr.Full]:"calc(infinity * 1px)"},b3=e=>{const t={...x3};if(!e||!e.appearance||!e.appearance.design||!e.appearance.design.colors)return t;for(const n in e.appearance.design.colors){const r=n;e.appearance.design.colors[r]&&(t[r]=e.appearance.design.colors[r])}return t};function S3({children:e,widget:t}){const n=b3(t),r=t&&t.appearance&&t.appearance.design&&t.appearance.design.border_radius?t.appearance.design.border_radius:Tr.Md,i=o=>n[o],s=()=>w3[r];return v.jsx(QS.Provider,{value:{colors:n,getColor:i,getRadius:s},children:e})}const hr=()=>m.useContext(QS);function rn({children:e,type:t="button",variant:n="primary",kind:r="solid",size:i="md",disabled:s=!1,rounded:o=!1,className:a,textKey:l=Q.ButtonText,bgKey:u=Q.ButtonBackground,animations:d={},withoutTheming:c,...f}){const p=hr();return v.jsx(Te.button,{type:t,className:ge("flex items-center justify-center focus:!ring-0 font-medium",{"rounded-full":o&&i!=="xs","rounded-lg":!o},a,Wv[n]&&Wv[n][r],IP[i][o?"rounded":"default"]),disabled:s,style:!c&&{color:p.getColor(l),backgroundColor:p.getColor(u),...o?{}:{borderRadius:p.getRadius()}},...d,...f,children:e})}function ve(){}ve.Home=function(t){return v.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:v.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=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:v.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.Menu=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})});ve.MessageTyping=({className:e="size-5",...t})=>v.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:v.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 v.jsx("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"1em",width:"1em",...t,children:v.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 v.jsxs("svg",{fill:"none",viewBox:"0 0 24 24",height:"1em",width:"1em",...t,children:[v.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"}),v.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"}),v.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=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})});ve.XCircle=({className:e="e-5",...t})=>v.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:v.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="e-5",...t})=>v.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:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"})});ve.PaperAirplane=({className:e="e-5",...t})=>v.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:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5"})});ve.Spin=function(t){return v.jsx("svg",{"data-name":"Layer 1",viewBox:"0 0 24 24",fill:"currentColor",height:"1em",width:"1em",...t,children:v.jsx("path",{d:"M6.804 15a1 1 0 00-1.366-.366l-1.732 1a1 1 0 001 1.732l1.732-1A1 1 0 006.804 15zM3.706 8.366l1.732 1a1 1 0 101-1.732l-1.732-1a1 1 0 00-1 1.732zM6 12a1 1 0 00-1-1H3a1 1 0 000 2h2a1 1 0 001-1zm11.196-3a1 1 0 001.366.366l1.732-1a1 1 0 10-1-1.732l-1.732 1A1 1 0 0017.196 9zM15 6.804a1 1 0 001.366-.366l1-1.732a1 1 0 10-1.732-1l-1 1.732A1 1 0 0015 6.804zm5.294 8.83l-1.732-1a1 1 0 10-1 1.732l1.732 1a1 1 0 001-1.732zm-3.928 1.928a1 1 0 10-1.732 1l1 1.732a1 1 0 101.732-1zM21 11h-2a1 1 0 000 2h2a1 1 0 000-2zm-9 7a1 1 0 00-1 1v2a1 1 0 002 0v-2a1 1 0 00-1-1zm-3-.804a1 1 0 00-1.366.366l-1 1.732a1 1 0 001.732 1l1-1.732A1 1 0 009 17.196zM12 2a1 1 0 00-1 1v2a1 1 0 002 0V3a1 1 0 00-1-1z"})})};const qn=Object.create(null);qn.open="0";qn.close="1";qn.ping="2";qn.pong="3";qn.message="4";qn.upgrade="5";qn.noop="6";const Xl=Object.create(null);Object.keys(qn).forEach(e=>{Xl[qn[e]]=e});const Pp={type:"error",data:"parser error"},YS=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",XS=typeof ArrayBuffer=="function",ZS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Mm=({type:e,data:t},n,r)=>YS&&t instanceof Blob?n?r(t):cy(t,r):XS&&(t instanceof ArrayBuffer||ZS(t))?n?r(t):cy(new Blob([t]),r):r(qn[e]+(t||"")),cy=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function dy(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let Dd;function k3(e,t){if(YS&&e.data instanceof Blob)return e.data.arrayBuffer().then(dy).then(t);if(XS&&(e.data instanceof ArrayBuffer||ZS(e.data)))return t(dy(e.data));Mm(e,!1,n=>{Dd||(Dd=new TextEncoder),t(Dd.encode(n))})}const fy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uo=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<fy.length;e++)Uo[fy.charCodeAt(e)]=e;const E3=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 u=new ArrayBuffer(t),d=new Uint8Array(u);for(r=0;r<n;r+=4)s=Uo[e.charCodeAt(r)],o=Uo[e.charCodeAt(r+1)],a=Uo[e.charCodeAt(r+2)],l=Uo[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 u},T3=typeof ArrayBuffer=="function",Lm=(e,t)=>{if(typeof e!="string")return{type:"message",data:JS(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:C3(e.substring(1),t)}:Xl[n]?e.length>1?{type:Xl[n],data:e.substring(1)}:{type:Xl[n]}:Pp},C3=(e,t)=>{if(T3){const n=E3(e);return JS(n,t)}else return{base64:!0,data:e}},JS=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},ek="",_3=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((s,o)=>{Mm(s,!1,a=>{r[o]=a,++i===n&&t(r.join(ek))})})},P3=(e,t)=>{const n=e.split(ek),r=[];for(let i=0;i<n.length;i++){const s=Lm(n[i],t);if(r.push(s),s.type==="error")break}return r};function j3(){return new TransformStream({transform(e,t){k3(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 Fd;function _l(e){return e.reduce((t,n)=>t+n.length,0)}function Pl(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 A3(e,t){Fd||(Fd=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(_l(n)<1)break;const l=Pl(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(_l(n)<2)break;const l=Pl(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(_l(n)<8)break;const l=Pl(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),d=u.getUint32(0);if(d>Math.pow(2,21)-1){a.enqueue(Pp);break}i=d*Math.pow(2,32)+u.getUint32(4),r=3}else{if(_l(n)<i)break;const l=Pl(n,i);a.enqueue(Lm(s?l:Fd.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(Pp);break}}}})}const tk=4;function Ie(e){if(e)return R3(e)}function R3(e){for(var t in Ie.prototype)e[t]=Ie.prototype[t];return e}Ie.prototype.on=Ie.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Ie.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Ie.prototype.off=Ie.prototype.removeListener=Ie.prototype.removeAllListeners=Ie.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};Ie.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};Ie.prototype.emitReserved=Ie.prototype.emit;Ie.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Ie.prototype.hasListeners=function(e){return!!this.listeners(e).length};const yc=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),tn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),O3="arraybuffer";function nk(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const D3=tn.setTimeout,F3=tn.clearTimeout;function xc(e,t){t.useNativeTimers?(e.setTimeoutFn=D3.bind(tn),e.clearTimeoutFn=F3.bind(tn)):(e.setTimeoutFn=tn.setTimeout.bind(tn),e.clearTimeoutFn=tn.clearTimeout.bind(tn))}const N3=1.33;function M3(e){return typeof e=="string"?L3(e):Math.ceil((e.byteLength||e.size)*N3)}function L3(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 rk(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function I3(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function $3(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 z3 extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Im extends Ie{constructor(t){super(),this.writable=!1,xc(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 z3(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=Lm(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=I3(t);return n.length?"?"+n:""}}class B3 extends Im{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)};P3(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,_3(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]=rk()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let ik=!1;try{ik=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const V3=ik;function U3(){}class H3 extends B3{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 Hn extends Ie{constructor(t,n,r){super(),this.createRequest=t,xc(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=nk(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=Hn.requestsCount++,Hn.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=U3,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Hn.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()}}Hn.requestsCount=0;Hn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",py);else if(typeof addEventListener=="function"){const e="onpagehide"in tn?"pagehide":"unload";addEventListener(e,py,!1)}}function py(){for(let e in Hn.requests)Hn.requests.hasOwnProperty(e)&&Hn.requests[e].abort()}const W3=function(){const e=sk({xdomain:!1});return e&&e.responseType!==null}();class q3 extends H3{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=W3&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Hn(sk,this.uri(),t)}}function sk(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||V3))return new XMLHttpRequest}catch{}if(!t)try{return new tn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const ok=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class K3 extends Im{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=ok?{}:nk(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;Mm(r,this.supportsBinary,s=>{try{this.doWrite(r,s)}catch{}i&&yc(()=>{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]=rk()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Nd=tn.WebSocket||tn.MozWebSocket;class G3 extends K3{createSocket(t,n,r){return ok?new Nd(t,n,r):n?new Nd(t,n):new Nd(t)}doWrite(t,n){this.ws.send(n)}}class Q3 extends Im{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=A3(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=j3();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&&yc(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Y3={websocket:G3,webtransport:Q3,polling:q3},X3=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Z3=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function jp(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=X3.exec(e||""),s={},o=14;for(;o--;)s[Z3[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=J3(s,s.path),s.queryKey=eD(s,s.query),s}function J3(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 eD(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}const Ap=typeof addEventListener=="function"&&typeof removeEventListener=="function",Zl=[];Ap&&addEventListener("offline",()=>{Zl.forEach(e=>e())},!1);class Xr extends Ie{constructor(t,n){if(super(),this.binaryType=O3,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=jp(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=jp(n.host).host);xc(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=$3(this.opts.query)),Ap&&(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"})},Zl.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=tk,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&&Xr.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",Xr.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+=M3(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,yc(()=>{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(Xr.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(),Ap&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Zl.indexOf(this._offlineEventListener);r!==-1&&Zl.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}Xr.protocol=tk;class tD extends Xr{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;Xr.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",c=>{if(!r)if(c.type==="pong"&&c.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Xr.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=c=>{const f=new Error("probe error: "+c);f.transport=n.name,s(),this.emitReserved("upgradeError",f)};function a(){o("transport closed")}function l(){o("socket closed")}function u(c){n&&c.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",u)};n.once("open",i),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",u),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 nD=class extends tD{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=>Y3[i]).filter(i=>!!i)),super(t,r)}};function rD(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=jp(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 iD=typeof ArrayBuffer=="function",sD=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ak=Object.prototype.toString,oD=typeof Blob=="function"||typeof Blob<"u"&&ak.call(Blob)==="[object BlobConstructor]",aD=typeof File=="function"||typeof File<"u"&&ak.call(File)==="[object FileConstructor]";function $m(e){return iD&&(e instanceof ArrayBuffer||sD(e))||oD&&e instanceof Blob||aD&&e instanceof File}function Jl(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Jl(e[n]))return!0;return!1}if($m(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Jl(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Jl(e[n]))return!0;return!1}function lD(e){const t=[],n=e.data,r=e;return r.data=Rp(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Rp(e,t){if(!e)return e;if($m(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]=Rp(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]=Rp(e[r],t));return n}return e}function uD(e,t){return e.data=Op(e.data,t),delete e.attachments,e}function Op(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]=Op(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Op(e[n],t));return e}const cD=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],dD=5;var le;(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"})(le||(le={}));class fD{constructor(t){this.replacer=t}encode(t){return(t.type===le.EVENT||t.type===le.ACK)&&Jl(t)?this.encodeAsBinary({type:t.type===le.EVENT?le.BINARY_EVENT:le.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===le.BINARY_EVENT||t.type===le.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=lD(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function hy(e){return Object.prototype.toString.call(e)==="[object Object]"}class zm extends Ie{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===le.BINARY_EVENT;r||n.type===le.BINARY_ACK?(n.type=r?le.EVENT:le.ACK,this.reconstructor=new pD(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if($m(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(le[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===le.BINARY_EVENT||r.type===le.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(zm.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 le.CONNECT:return hy(n);case le.DISCONNECT:return n===void 0;case le.CONNECT_ERROR:return typeof n=="string"||hy(n);case le.EVENT:case le.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&cD.indexOf(n[0])===-1);case le.ACK:case le.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class pD{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=uD(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const hD=Object.freeze(Object.defineProperty({__proto__:null,Decoder:zm,Encoder:fD,get PacketType(){return le},protocol:dD},Symbol.toStringTag,{value:"Module"}));function xn(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const mD=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class lk extends Ie{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=[xn(t,"open",this.onopen.bind(this)),xn(t,"packet",this.onpacket.bind(this)),xn(t,"error",this.onerror.bind(this)),xn(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(mD.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:le.EVENT,data:n};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const d=this.ids++,c=n.pop();this._registerAckCallback(d,c),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:le.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 le.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 le.EVENT:case le.BINARY_EVENT:this.onevent(t);break;case le.ACK:case le.BINARY_ACK:this.onack(t);break;case le.DISCONNECT:this.ondisconnect();break;case le.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:le.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:le.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 bo(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}bo.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};bo.prototype.reset=function(){this.attempts=0};bo.prototype.setMin=function(e){this.ms=e};bo.prototype.setMax=function(e){this.max=e};bo.prototype.setJitter=function(e){this.jitter=e};class Dp extends Ie{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,xc(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 bo({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||hD;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 nD(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=xn(n,"open",function(){r.onopen(),t&&t()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},o=xn(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(xn(t,"ping",this.onping.bind(this)),xn(t,"data",this.ondata.bind(this)),xn(t,"error",this.onerror.bind(this)),xn(t,"close",this.onclose.bind(this)),xn(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){yc(()=>{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 lk(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 Fo={};function eu(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=rD(e,t.path||"/socket.io"),r=n.source,i=n.id,s=n.path,o=Fo[i]&&s in Fo[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return a?l=new Dp(r,t):(Fo[i]||(Fo[i]=new Dp(r,t)),l=Fo[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(eu,{Manager:Dp,Socket:lk,io:eu,connect:eu});const tu=e=>{const t=document.cookie.split(";").find(n=>n.includes(e));return t?t.split("=")[1]:null};var Wn=(e=>(e.CustomerToken="lc:customer:token",e.CustomerRefreshToken="lc:customer:refresh_token",e.DeviceId="lc:device:id",e))(Wn||{});const Md=(e,t)=>{localStorage.setItem(e,t)},Bs=e=>localStorage.getItem(e),my=()=>{localStorage.removeItem("lc:customer:token"),localStorage.removeItem("lc:customer:refresh_token"),localStorage.removeItem("lc:device:id")},uk=m.createContext(null),ns=()=>m.useContext(uk),gD=({children:e})=>{const[t,n]=m.useState(null),[r,i]=m.useState(!1),s=()=>{const c=eu(E2,{transports:["websocket"],auth:{customer_token:Bs(Wn.CustomerToken)||tu("customer_token"),device_id:Bs(Wn.DeviceId)||tu("device_id"),customer_refresh_token:Bs(Wn.CustomerRefreshToken)||tu("customer_refresh_token")}});c.on("error",f=>{console.error("Websocket error",f)}),c.on("connect",()=>{n(c),i(!0)})},o=()=>{t&&(t.connect(),i(!0))},a=()=>{t&&(t.disconnect(),i(!1))},l=(c,f)=>{t&&t.on(c,f)},u=(c,f)=>{t&&t.off(c,f)},d=(c,f,p)=>{t&&t.emit(c,f,p)};return v.jsx(uk.Provider,{value:{socket:t,connected:r,connect:s,reconnect:o,disconnect:a,on:l,off:u,emit:d},children:e})};var Kn=(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))(Kn||{}),nt=(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.ChatToggleUpload="chat:user:upload:toggle",e))(nt||{});const Bm=e=>{const t=fb(),n=(r,i)=>{var o;const s=((o=z$.find(a=>a.name===r))==null?void 0:o.path)??"/";return typeof i=="object"&&s.includes(":")?Object.entries(i).reduce((a,[l,u])=>a.replace(`:${l}`,u),s):i?`${s}?${i}`:s};return{push:(r,i)=>{t(n(r,i),e)},path:n}};function vD(e){return e&&typeof e=="object"&&"customer_token"in e&&"customer_refresh_token"in e}const yD=()=>Zh({mutationFn:e=>vo(`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})})}),xD=e=>vo(`clients/${e}/chats`),Fp=e=>vo(`clients/${e}/chats`,{method:"DELETE"}),wD=(e,t)=>vo("review",{method:"POST",body:JSON.stringify({rating:e,comment:t||void 0}),headers:{"X-Customer-Token":Bs(Wn.CustomerToken)||"","X-Customer-Refresh-Token":Bs(Wn.CustomerRefreshToken)||"","X-Device-Id":Bs(Wn.DeviceId)||""}}),bD=()=>Zh({mutationFn:e=>wD(e.rating,e.comment)}),SD=e=>Zh({mutationFn:t=>vo(`clients/${e}/chats/files`,{method:"POST",body:P2({files:t},{arrayWithBracketAndIndex:!1,arrayWithBrackets:!1})})});function kD(e){return e&&typeof e=="object"&&"file_urls"in e}const ck=(e,t,n)=>{const r=typeof window<"u"?window:void 0;m.useEffect(()=>(r.addEventListener(e,t),()=>{r.removeEventListener(e,t,!1)}),[e,t,r])},wc=()=>typeof window<"u"?/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent):!1;function Np({text:e}){var o,a,l,u;const{widget:t,isHaveChat:n}=un(),r=hr(),[i,s]=m.useState(!0);return i?v.jsxs(Te.div,{initial:{opacity:0,scale:.8,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.8,y:10},transition:{type:"spring",damping:20,stiffness:300},className:ge("absolute bottom-full mb-3 p-3 shadow-lg whitespace-nowrap","w-auto right-0"),style:{borderRadius:r.getRadius(),backgroundColor:r.getColor(Q.TooltipBackground),color:r.getColor(Q.TooltipText)},children:[v.jsx("button",{onClick:()=>s(!1),className:"absolute top-2 right-2 p-1 rounded-full hover:bg-black/10 transition-colors","aria-label":"Kapat",children:v.jsx(ve.X,{className:"size-3"})}),v.jsx(Te.p,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.1,duration:.3},className:"text-sm font-medium pr-5",style:{color:r.getColor(Q.TooltipText)},children:e||(n?(a=(o=t==null?void 0:t.appearance)==null?void 0:o.design)==null?void 0:a.tooltip_message_active:(u=(l=t==null?void 0:t.appearance)==null?void 0:l.design)==null?void 0:u.tooltip_message)||"Bizimle sohbet edin!"}),v.jsx("div",{className:ge("absolute bottom-0 right-4 w-3 h-3 transform rotate-45 translate-y-1.5 bg-blue-100")})]}):null}const ED="/notify.mp3",TD=async e=>{await new Audio(e||ED).play()};function gy({fallback:e,fallbackOpen:t}){const[n]=m.useState(window.document.title),r=ns(),{isHaveChat:i,open:s,soundPath:o}=un(),[a,l]=m.useState(!0),[u,d]=m.useState(0),[c,f]=m.useState(null),p=()=>{TD(o)},h=(y,b)=>{if(c&&clearInterval(c),y||!i||b===0||Number.isNaN(b)){window.document.title=n,f(null);return}const g=setInterval(()=>{if(y||!i||b===0||Number.isNaN(b)){window.document.title=n,clearInterval(g),f(null);return}const x=`${b} Yeni mesajınız var! - ${n}`;window.document.title!==x?window.document.title=x:window.document.title=n},1e3);return f(g),()=>{clearInterval(g),f(null)}};return m.useEffect(()=>h(s&&a,u),[u,s,a]),m.useEffect(()=>{const y=()=>{l(document.visibilityState==="visible")};return document.addEventListener("visibilitychange",y,!1),()=>{document.removeEventListener("visibilitychange",y)}},[]),m.useEffect(()=>{if(i&&s&&a&&d(0),!r||!i||s&&a)return;const y=()=>{!i||s&&a||(d(b=>b+1),p())};return r.on(nt.MessageAgentCreate,y),r.on(nt.ChatUserAssignee,p),()=>{r.off(nt.MessageAgentCreate,y),r.off(nt.ChatUserAssignee,p)}},[r,i,s,a]),s?null:!i||u===0?t?e:null:v.jsx(Np,{text:"Yeni mesajlar var!"})}function CD({children:e,defaultOpen:t,border:n}){var R,I,ne,te;const r=ns(),{open:i,setOpen:s,setIsHaveChat:o,isHaveChat:a,widget:l}=un(),[u]=m.useState(!0),d=Bm(),c=Ga(),f=hr(),p=wc(),[h,y]=m.useState({x:0,y:0}),b=v3(),g=m.useRef(null),x=m.useRef(null),[w,C]=m.useState(!1);m.useEffect(()=>((()=>{C("ontouchstart"in window||navigator.maxTouchPoints>0)})(),window.addEventListener("touchstart",()=>{C(!0)},{once:!0}),()=>{window.removeEventListener("touchstart",()=>{C(!0)})}),[]),m.useEffect(()=>{a&&c.pathname==="/"&&d.push("chat")},[a]);const T=Z=>{if(!g.current||!x.current)return Z;const J=g.current.getBoundingClientRect(),G={width:window.innerWidth,height:window.innerHeight},Y={top:20,right:20,bottom:40,left:20};let O=Z.x,M=Z.y;return J.right+O-h.x>G.width-Y.right&&(O=G.width-Y.right-J.width-(J.left-h.x)),J.left+O-h.x<Y.left&&(O=Y.left-(J.left-h.x)),J.bottom+M-h.y>G.height-Y.bottom&&(M=G.height-Y.bottom-J.height-(J.top-h.y)),J.top+M-h.y<Y.top&&(M=Y.top-(J.top-h.y)),{x:O,y:M}},E=()=>{s(!0),r&&r.emit(Kn.WidgetOpen,{})},S=()=>{s(!1),r&&r.emit(Kn.WidgetClose,{})},_=()=>{s(!1),o(!1),Fp(l.client_id),d.push("registration")};m.useEffect(()=>{if(t&&s(!0),!(!r||!l))return r.on(nt.Banned,_),()=>{r.off(nt.Banned,_)}},[]);function D(Z){w&&b.start(Z)}return v.jsx("section",{className:"relative w-full h-full",ref:x,children:v.jsxs(Yr,{children:[i&&v.jsx(Te.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:10},transition:{type:"spring",damping:25,stiffness:300,duration:.3},style:{width:p?"":((I=(R=l==null?void 0:l.appearance)==null?void 0:R.design)==null?void 0:I.width)||"21rem",height:p?"100vh":((te=(ne=l==null?void 0:l.appearance)==null?void 0:ne.design)==null?void 0:te.height)||"30rem",left:p?"0":"",right:p?"0px !important":"",maxHeight:p?"100vh":"",borderColor:f.getColor(Q.Border),boxShadow:"0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05)"},className:ge("fixed z-300 overflow-hidden rounded-xl",{"border border-solid dark:border-zink-500":n,"bottom-12 right-12":!p,"!bottom-0 !right-0":p}),children:e}),!w&&v.jsx("div",{className:"fixed bottom-[40px] right-[20px] z-400",children:v.jsxs(Yr,{children:[v.jsx(gy,{fallback:v.jsx(Np,{}),fallbackOpen:u}),!i&&v.jsxs(rn,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"lg",rounded:!0,className:"relative",onClick:E,children:[v.jsx(Te.span,{initial:{scale:.8,opacity:0},animate:{scale:[1,1.2,1],opacity:[.7,0,.7]},transition:{duration:2,repeat:Number.POSITIVE_INFINITY,repeatType:"loop"},className:ge("absolute -z-10 w-full h-full rounded-full opacity-30"),style:{backgroundColor:f.getColor(Q.ButtonBackground)}}),v.jsx(ve.Chat,{className:"size-7"})]}),i&&!p&&v.jsx(rn,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"lg",rounded:!0,onClick:S,children:v.jsx(ve.X,{className:"size-7"})})]})}),w&&v.jsx(Te.div,{ref:g,className:"fixed z-400",initial:{bottom:"40px",right:"20px"},animate:{x:h.x,y:h.y},drag:w,dragControls:b,dragMomentum:!1,dragElastic:0,onDragEnd:(Z,J)=>{const G={x:h.x+J.offset.x,y:h.y+J.offset.y},Y=T(G);y(Y)},children:v.jsxs(Yr,{children:[v.jsx(gy,{fallback:v.jsx(Np,{}),fallbackOpen:u}),!i&&v.jsx("div",{className:"cursor-move",onPointerDown:D,children:v.jsxs(rn,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"lg",rounded:!0,className:"relative",onClick:E,children:[v.jsx(Te.span,{initial:{scale:.8,opacity:0},animate:{scale:[1,1.2,1],opacity:[.7,0,.7]},transition:{duration:2,repeat:Number.POSITIVE_INFINITY,repeatType:"loop"},className:ge("absolute -z-10 w-full h-full rounded-full opacity-30"),style:{backgroundColor:f.getColor(Q.ButtonBackground)}}),v.jsx(ve.Chat,{className:"size-7"})]})}),i&&!p&&v.jsx(rn,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"lg",rounded:!0,onClick:S,children:v.jsx(ve.X,{className:"size-7"})})]})})]})})}function dk(e){const{widget:t}=un();return v.jsx(S3,{widget:t,children:v.jsx(CD,{...e})})}function rs(e){this._maxSize=e,this.clear()}rs.prototype.clear=function(){this._size=0,this._values=Object.create(null)};rs.prototype.get=function(e){return this._values[e]};rs.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var _D=/[^.^\]^[]+|(?=\[\]|\.\.)/g,fk=/^\d+$/,PD=/^\d/,jD=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,AD=/^\s*(['"]?)(.*?)(\1)\s*$/,Vm=512,vy=new rs(Vm),yy=new rs(Vm),xy=new rs(Vm),$i={Cache:rs,split:Mp,normalizePath:Ld,setter:function(e){var t=Ld(e);return yy.get(e)||yy.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=Ld(e);return xy.get(e)||xy.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+(Um(n)||fk.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){RD(Array.isArray(e)?e:Mp(e),t,n)}};function Ld(e){return vy.get(e)||vy.set(e,Mp(e).map(function(t){return t.replace(AD,"$2")}))}function Mp(e){return e.match(_D)||[""]}function RD(e,t,n){var r=e.length,i,s,o,a;for(s=0;s<r;s++)i=e[s],i&&(FD(i)&&(i='"'+i+'"'),a=Um(i),o=!a&&/^\d+$/.test(i),t.call(n,i,a,o,s,e))}function Um(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function OD(e){return e.match(PD)&&!e.match(fk)}function DD(e){return jD.test(e)}function FD(e){return!Um(e)&&(OD(e)||DD(e))}const ND=/[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,bc=e=>e.match(ND)||[],Sc=e=>e[0].toUpperCase()+e.slice(1),Hm=(e,t)=>bc(e).join(t).toLowerCase(),pk=e=>bc(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),MD=e=>Sc(pk(e)),LD=e=>Hm(e,"_"),ID=e=>Hm(e,"-"),$D=e=>Sc(Hm(e," ")),zD=e=>bc(e).map(Sc).join(" ");var Id={words:bc,upperFirst:Sc,camelCase:pk,pascalCase:MD,snakeCase:LD,kebabCase:ID,sentenceCase:$D,titleCase:zD},Wm={exports:{}};Wm.exports=function(e){return hk(BD(e),e)};Wm.exports.array=hk;function hk(e,t){var n=e.length,r=new Array(n),i={},s=n,o=VD(t),a=UD(e);for(t.forEach(function(u){if(!a.has(u[0])||!a.has(u[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(u,d,c){if(c.has(u)){var f;try{f=", node was:"+JSON.stringify(u)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[d]){i[d]=!0;var p=o.get(u)||new Set;if(p=Array.from(p),d=p.length){c.add(u);do{var h=p[--d];l(h,a.get(h),c)}while(d);c.delete(u)}r[--n]=u}}}function BD(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 VD(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 UD(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var HD=Wm.exports;const WD=Qi(HD),qD=Object.prototype.toString,KD=Error.prototype.toString,GD=RegExp.prototype.toString,QD=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",YD=/^Symbol\((.*)\)(.*)$/;function XD(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function wy(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return XD(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return QD.call(e).replace(YD,"Symbol($1)");const r=qD.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+KD.call(e)+"]":r==="RegExp"?GD.call(e):null}function Zr(e,t){let n=wy(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=wy(this[r],t);return s!==null?s:i},2)}function mk(e){return e==null?[]:[].concat(e)}let gk,vk,yk,ZD=/\$\{\s*(\w+)\s*\}/g;gk=Symbol.toStringTag;class by{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[gk]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],mk(t).forEach(s=>{if(_t.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]}}vk=Symbol.hasInstance;yk=Symbol.toStringTag;class _t 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(ZD,(i,s)=>Zr(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 by(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[yk]="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,_t)}static[vk](t){return by[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let On={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 \`${Zr(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Zr(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Zr(n,!0)}\``+i}},St={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"},JD={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"},Lp={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},eF={isValue:"${path} field must be ${value}"},nu={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},tF={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"},nF={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: \`${Zr(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: \`${Zr(n,!0)}\``}return _t.formatError(On.notType,e)}};Object.assign(Object.create(null),{mixed:On,string:St,number:JD,date:Lp,object:nu,array:tF,boolean:eF,tuple:nF});const qm=e=>e&&e.__isYupSchema__;class zu{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 zu(t,(a,l)=>{var u;let d=o(...a)?i:s;return(u=d==null?void 0:d(l))!=null?u: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(!qm(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const jl={context:"$",value:"."};class is{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]===jl.context,this.isValue=this.key[0]===jl.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?jl.context:this.isValue?jl.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&$i.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}}is.prototype.__isYupRef=!0;const _i=e=>e==null;function hs(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},a,l){const{name:u,test:d,params:c,message:f,skipAbsent:p}=e;let{parent:h,context:y,abortEarly:b=o.spec.abortEarly,disableStackTrace:g=o.spec.disableStackTrace}=i;function x(I){return is.isRef(I)?I.getValue(n,h,y):I}function w(I={}){const ne=Object.assign({value:n,originalValue:s,label:o.spec.label,path:I.path||r,spec:o.spec,disableStackTrace:I.disableStackTrace||g},c,I.params);for(const Z of Object.keys(ne))ne[Z]=x(ne[Z]);const te=new _t(_t.formatError(I.message||f,ne),n,ne.path,I.type||u,ne.disableStackTrace);return te.params=ne,te}const C=b?a:l;let T={path:r,parent:h,type:u,from:i.from,createError:w,resolve:x,options:i,originalValue:s,schema:o};const E=I=>{_t.isError(I)?C(I):I?l(null):C(w())},S=I=>{_t.isError(I)?C(I):a(I)};if(p&&_i(n))return E(!0);let D;try{var R;if(D=d.call(T,n,T),typeof((R=D)==null?void 0:R.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(D).then(E,S)}}catch(I){S(I);return}E(D)}return t.OPTIONS=e,t}function rF(e,t,n,r=n){let i,s,o;return t?($i.forEach(t,(a,l,u)=>{let d=l?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:i,value:n});let c=e.type==="tuple",f=u?parseInt(d,10):0;if(e.innerType||c){if(c&&!u)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=c?e.spec.types[f]:e.innerType}if(!u){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 Bu extends Set{describe(){const t=[];for(const n of this.values())t.push(is.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 Bu(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Ds(e,t=new Map){if(qm(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]=Ds(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,Ds(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Ds(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=Ds(i,t)}else throw Error(`Unable to clone ${e}`);return n}class Gn{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 Bu,this._blacklist=new Bu,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(On.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=Ds(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&&_i(s))return s;let o=Zr(t),a=Zr(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
96
96
|
|
|
97
97
|
attempted value: ${o}
|
|
98
|
-
`+(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 u=[];for(let d of Object.values(this.internalTests))d&&u.push(d);this.runTests({path:s,value:l,originalValue:o,options:n,tests:u},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:u}=t,d=y=>{i||(i=!0,n(y,o))},c=y=>{i||(i=!0,r(y,o))},f=s.length,p=[];if(!f)return c([]);let h={value:o,originalValue:a,path:l,options:u,schema:this};for(let y=0;y<s.length;y++){const w=s[y];w(h,d,function(v){v&&(Array.isArray(v)?p.push(...v):p.push(v)),--f<=0&&c(p)})}}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 u=r[a];const d=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:s[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${i||""}[${l?a:`"${a}"`}]`:(i?`${i}.`:"")+t});return(c,f,p)=>this.resolve(d)._validate(u,d,f,p)}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,u)=>{_t.isError(l)&&(l.value=u),a(l)},(l,u)=>{l.length?a(new _t(l,u,void 0,void 0,s)):o(u)}))}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 _t.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new _t(a,t,void 0,void 0,o);s=l}),s}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(_t.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(_t.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ds(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=hs({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=hs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Rn.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Rn.notNull){return this.nullability(!1,t)}required(t=Rn.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=Rn.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=hs(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=pk(t).map(s=>new is(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new zu(i,n):zu.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=hs({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=Rn.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=hs({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=Rn.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=hs({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,u,d)=>d.findIndex(c=>c.name===l.name)===u)}}}Kn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Kn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=JD(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Kn.prototype[e]=Kn.prototype.oneOf;for(const e of["not","nope"])Kn.prototype[e]=Kn.prototype.notOneOf;const eF=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function tF(e){const t=Mp(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 Mp(e){var t,n;const r=eF.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 nF=/^[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])?)*$/,rF=/^((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,iF=/^(?:[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,sF="^\\d{4}-\\d{2}-\\d{2}",oF="\\d{2}:\\d{2}:\\d{2}",aF="(([+-]\\d{2}(:?\\d{2})?)|Z)",lF=new RegExp(`${sF}T${oF}(\\.\\d+)?${aF}$`),uF=e=>Ci(e)||e===e.trim(),cF={}.toString();function Bu(){return new vk}class vk extends Kn{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===cF?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Rn.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=St.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=St.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=St.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||St.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=St.email){return this.matches(nF,{name:"email",message:t,excludeEmptyString:!0})}url(t=St.url){return this.matches(rF,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=St.uuid){return this.matches(iF,{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(lF,{name:"datetime",message:n||St.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||St.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const o=Mp(s);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||St.datetime_precision,params:{precision:i},skipAbsent:!0,test:s=>{if(!s||i==null)return!0;const o=Mp(s);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=St.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:uF})}lowercase(t=St.lowercase){return this.transform(n=>Ci(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ci(n)||n===n.toLowerCase()})}uppercase(t=St.uppercase){return this.transform(n=>Ci(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Ci(n)||n===n.toUpperCase()})}}Bu.prototype=vk.prototype;let dF=new Date(""),fF=e=>Object.prototype.toString.call(e)==="[object Date]";class Sc extends Kn{constructor(){super({type:"date",check(t){return fF(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=tF(t),isNaN(t)?Sc.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(is.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=Np.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=Np.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)}})}}Sc.INVALID_DATE=dF;Sc.prototype;function pF(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,a])=>`${o}-${a}`));function s(o,a){let l=Ii.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),is.isRef(a)&&a.isSibling?s(a.path,o):qm(a)&&"deps"in a&&a.deps.forEach(l=>s(l,o))}return VD.array(Array.from(r),n).reverse()}function by(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 yk(e){return(t,n)=>by(e,t)-by(e,n)}const hF=(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 ru(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=ru(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=ru(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(ru)}):"optional"in e?e.optional():e}const mF=(e,t)=>{const n=[...Ii.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Ii.getter(Ii.join(n),!0)(e);return!!(i&&r in i)};let Sy=e=>Object.prototype.toString.call(e)==="[object Object]";function ky(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const gF=yk([]);function Km(e){return new xk(e)}class xk extends Kn{constructor(t){super({type:"object",check(n){return Sy(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=gF,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(c=>!this._nodes.includes(c))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),d=!1;for(const c of a){let f=s[c],p=c in i;if(f){let h,y=i[c];u.path=(n.path?`${n.path}.`:"")+c,f=f.resolve({value:y,context:n.context,parent:l});let w=f instanceof Kn?f.spec:void 0,m=w==null?void 0:w.strict;if(w!=null&&w.strip){d=d||c in i;continue}h=!n.__validating||!m?f.cast(i[c],u):i[c],h!==void 0&&(l[c]=h)}else p&&!o&&(l[c]=i[c]);(p!==c in l||l[c]!==i[c])&&(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,u)=>{if(!a||!Sy(u)){i(l,u);return}o=o||u;let d=[];for(let c of this._nodes){let f=this.fields[c];!f||is.isRef(f)||d.push(f.asNestedTest({options:n,key:c,parent:u,parentPath:n.path,originalParent:o}))}this.runTests({tests:d,value:u,originalValue:o,options:n},r,c=>{i(c.sort(this._sortErrors).concat(l),u)})})}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=pF(t,n),r._sortErrors=yk(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 ru(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=Ii.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return mF(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(hF)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||nu.exact,test(n){if(n==null)return!0;const r=ky(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=nu.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=ky(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=nu.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(Ld.camelCase)}snakeCase(){return this.transformKeys(Ld.snakeCase)}constantCase(){return this.transformKeys(t=>Ld.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}}Km.prototype=xk.prototype;var vF=function(t){return yF(t)&&!xF(t)};function yF(e){return!!e&&typeof e=="object"}function xF(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||SF(e)}var wF=typeof Symbol=="function"&&Symbol.for,bF=wF?Symbol.for("react.element"):60103;function SF(e){return e.$$typeof===bF}function kF(e){return Array.isArray(e)?[]:{}}function Uu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Fa(kF(e),e,t):e}function EF(e,t,n){return e.concat(t).map(function(r){return Uu(r,n)})}function TF(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=Uu(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=Uu(t[i],n):r[i]=Fa(e[i],t[i],n)}),r}function Fa(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||EF,n.isMergeableObject=n.isMergeableObject||vF;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):TF(e,t,n):Uu(t,n)}Fa.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Fa(r,i,n)},{})};var Lp=Fa,wk=typeof global=="object"&&global&&global.Object===Object&&global,CF=typeof self=="object"&&self&&self.Object===Object&&self,Gn=wk||CF||Function("return this")(),ri=Gn.Symbol,bk=Object.prototype,_F=bk.hasOwnProperty,PF=bk.toString,No=ri?ri.toStringTag:void 0;function jF(e){var t=_F.call(e,No),n=e[No];try{e[No]=void 0;var r=!0}catch{}var i=PF.call(e);return r&&(t?e[No]=n:delete e[No]),i}var AF=Object.prototype,RF=AF.toString;function OF(e){return RF.call(e)}var DF="[object Null]",FF="[object Undefined]",Ey=ri?ri.toStringTag:void 0;function ss(e){return e==null?e===void 0?FF:DF:Ey&&Ey in Object(e)?jF(e):OF(e)}function Sk(e,t){return function(n){return e(t(n))}}var Gm=Sk(Object.getPrototypeOf,Object);function os(e){return e!=null&&typeof e=="object"}var NF="[object Object]",MF=Function.prototype,LF=Object.prototype,kk=MF.toString,IF=LF.hasOwnProperty,$F=kk.call(Object);function Ty(e){if(!os(e)||ss(e)!=NF)return!1;var t=Gm(e);if(t===null)return!0;var n=IF.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&kk.call(n)==$F}function zF(){this.__data__=[],this.size=0}function Ek(e,t){return e===t||e!==e&&t!==t}function kc(e,t){for(var n=e.length;n--;)if(Ek(e[n][0],t))return n;return-1}var VF=Array.prototype,BF=VF.splice;function UF(e){var t=this.__data__,n=kc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():BF.call(t,n,1),--this.size,!0}function HF(e){var t=this.__data__,n=kc(t,e);return n<0?void 0:t[n][1]}function WF(e){return kc(this.__data__,e)>-1}function qF(e,t){var n=this.__data__,r=kc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function mr(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])}}mr.prototype.clear=zF;mr.prototype.delete=UF;mr.prototype.get=HF;mr.prototype.has=WF;mr.prototype.set=qF;function KF(){this.__data__=new mr,this.size=0}function GF(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function QF(e){return this.__data__.get(e)}function YF(e){return this.__data__.has(e)}function Ja(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var XF="[object AsyncFunction]",ZF="[object Function]",JF="[object GeneratorFunction]",eN="[object Proxy]";function Tk(e){if(!Ja(e))return!1;var t=ss(e);return t==ZF||t==JF||t==XF||t==eN}var Id=Gn["__core-js_shared__"],Cy=function(){var e=/[^.]+$/.exec(Id&&Id.keys&&Id.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function tN(e){return!!Cy&&Cy in e}var nN=Function.prototype,rN=nN.toString;function as(e){if(e!=null){try{return rN.call(e)}catch{}try{return e+""}catch{}}return""}var iN=/[\\^$.*+?()[\]{}|]/g,sN=/^\[object .+?Constructor\]$/,oN=Function.prototype,aN=Object.prototype,lN=oN.toString,uN=aN.hasOwnProperty,cN=RegExp("^"+lN.call(uN).replace(iN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dN(e){if(!Ja(e)||tN(e))return!1;var t=Tk(e)?cN:sN;return t.test(as(e))}function fN(e,t){return e==null?void 0:e[t]}function ls(e,t){var n=fN(e,t);return dN(n)?n:void 0}var Na=ls(Gn,"Map"),Ma=ls(Object,"create");function pN(){this.__data__=Ma?Ma(null):{},this.size=0}function hN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var mN="__lodash_hash_undefined__",gN=Object.prototype,vN=gN.hasOwnProperty;function yN(e){var t=this.__data__;if(Ma){var n=t[e];return n===mN?void 0:n}return vN.call(t,e)?t[e]:void 0}var xN=Object.prototype,wN=xN.hasOwnProperty;function bN(e){var t=this.__data__;return Ma?t[e]!==void 0:wN.call(t,e)}var SN="__lodash_hash_undefined__";function kN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ma&&t===void 0?SN:t,this}function Gi(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])}}Gi.prototype.clear=pN;Gi.prototype.delete=hN;Gi.prototype.get=yN;Gi.prototype.has=bN;Gi.prototype.set=kN;function EN(){this.size=0,this.__data__={hash:new Gi,map:new(Na||mr),string:new Gi}}function TN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ec(e,t){var n=e.__data__;return TN(t)?n[typeof t=="string"?"string":"hash"]:n.map}function CN(e){var t=Ec(this,e).delete(e);return this.size-=t?1:0,t}function _N(e){return Ec(this,e).get(e)}function PN(e){return Ec(this,e).has(e)}function jN(e,t){var n=Ec(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function li(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])}}li.prototype.clear=EN;li.prototype.delete=CN;li.prototype.get=_N;li.prototype.has=PN;li.prototype.set=jN;var AN=200;function RN(e,t){var n=this.__data__;if(n instanceof mr){var r=n.__data__;if(!Na||r.length<AN-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new li(r)}return n.set(e,t),this.size=n.size,this}function So(e){var t=this.__data__=new mr(e);this.size=t.size}So.prototype.clear=KF;So.prototype.delete=GF;So.prototype.get=QF;So.prototype.has=YF;So.prototype.set=RN;function ON(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var _y=function(){try{var e=ls(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Ck(e,t,n){t=="__proto__"&&_y?_y(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var DN=Object.prototype,FN=DN.hasOwnProperty;function _k(e,t,n){var r=e[t];(!(FN.call(e,t)&&Ek(r,n))||n===void 0&&!(t in e))&&Ck(e,t,n)}function Tc(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?Ck(n,a,l):_k(n,a,l)}return n}function NN(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var MN="[object Arguments]";function Py(e){return os(e)&&ss(e)==MN}var Pk=Object.prototype,LN=Pk.hasOwnProperty,IN=Pk.propertyIsEnumerable,$N=Py(function(){return arguments}())?Py:function(e){return os(e)&&LN.call(e,"callee")&&!IN.call(e,"callee")},el=Array.isArray;function zN(){return!1}var jk=typeof $t=="object"&&$t&&!$t.nodeType&&$t,jy=jk&&typeof zt=="object"&&zt&&!zt.nodeType&&zt,VN=jy&&jy.exports===jk,Ay=VN?Gn.Buffer:void 0,BN=Ay?Ay.isBuffer:void 0,Ak=BN||zN,UN=9007199254740991,HN=/^(?:0|[1-9]\d*)$/;function WN(e,t){var n=typeof e;return t=t??UN,!!t&&(n=="number"||n!="symbol"&&HN.test(e))&&e>-1&&e%1==0&&e<t}var qN=9007199254740991;function Rk(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qN}var KN="[object Arguments]",GN="[object Array]",QN="[object Boolean]",YN="[object Date]",XN="[object Error]",ZN="[object Function]",JN="[object Map]",eM="[object Number]",tM="[object Object]",nM="[object RegExp]",rM="[object Set]",iM="[object String]",sM="[object WeakMap]",oM="[object ArrayBuffer]",aM="[object DataView]",lM="[object Float32Array]",uM="[object Float64Array]",cM="[object Int8Array]",dM="[object Int16Array]",fM="[object Int32Array]",pM="[object Uint8Array]",hM="[object Uint8ClampedArray]",mM="[object Uint16Array]",gM="[object Uint32Array]",we={};we[lM]=we[uM]=we[cM]=we[dM]=we[fM]=we[pM]=we[hM]=we[mM]=we[gM]=!0;we[KN]=we[GN]=we[oM]=we[QN]=we[aM]=we[YN]=we[XN]=we[ZN]=we[JN]=we[eM]=we[tM]=we[nM]=we[rM]=we[iM]=we[sM]=!1;function vM(e){return os(e)&&Rk(e.length)&&!!we[ss(e)]}function Qm(e){return function(t){return e(t)}}var Ok=typeof $t=="object"&&$t&&!$t.nodeType&&$t,ra=Ok&&typeof zt=="object"&&zt&&!zt.nodeType&&zt,yM=ra&&ra.exports===Ok,$d=yM&&wk.process,fo=function(){try{var e=ra&&ra.require&&ra.require("util").types;return e||$d&&$d.binding&&$d.binding("util")}catch{}}(),Ry=fo&&fo.isTypedArray,xM=Ry?Qm(Ry):vM,wM=Object.prototype,bM=wM.hasOwnProperty;function Dk(e,t){var n=el(e),r=!n&&$N(e),i=!n&&!r&&Ak(e),s=!n&&!r&&!i&&xM(e),o=n||r||i||s,a=o?NN(e.length,String):[],l=a.length;for(var u in e)(t||bM.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||WN(u,l)))&&a.push(u);return a}var SM=Object.prototype;function Ym(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||SM;return e===n}var kM=Sk(Object.keys,Object),EM=Object.prototype,TM=EM.hasOwnProperty;function CM(e){if(!Ym(e))return kM(e);var t=[];for(var n in Object(e))TM.call(e,n)&&n!="constructor"&&t.push(n);return t}function Fk(e){return e!=null&&Rk(e.length)&&!Tk(e)}function Xm(e){return Fk(e)?Dk(e):CM(e)}function _M(e,t){return e&&Tc(t,Xm(t),e)}function PM(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var jM=Object.prototype,AM=jM.hasOwnProperty;function RM(e){if(!Ja(e))return PM(e);var t=Ym(e),n=[];for(var r in e)r=="constructor"&&(t||!AM.call(e,r))||n.push(r);return n}function Zm(e){return Fk(e)?Dk(e,!0):RM(e)}function OM(e,t){return e&&Tc(t,Zm(t),e)}var Nk=typeof $t=="object"&&$t&&!$t.nodeType&&$t,Oy=Nk&&typeof zt=="object"&&zt&&!zt.nodeType&&zt,DM=Oy&&Oy.exports===Nk,Dy=DM?Gn.Buffer:void 0,Fy=Dy?Dy.allocUnsafe:void 0;function FM(e,t){if(t)return e.slice();var n=e.length,r=Fy?Fy(n):new e.constructor(n);return e.copy(r),r}function Mk(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function NM(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 Lk(){return[]}var MM=Object.prototype,LM=MM.propertyIsEnumerable,Ny=Object.getOwnPropertySymbols,Jm=Ny?function(e){return e==null?[]:(e=Object(e),NM(Ny(e),function(t){return LM.call(e,t)}))}:Lk;function IM(e,t){return Tc(e,Jm(e),t)}function Ik(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var $M=Object.getOwnPropertySymbols,$k=$M?function(e){for(var t=[];e;)Ik(t,Jm(e)),e=Gm(e);return t}:Lk;function zM(e,t){return Tc(e,$k(e),t)}function zk(e,t,n){var r=t(e);return el(e)?r:Ik(r,n(e))}function VM(e){return zk(e,Xm,Jm)}function BM(e){return zk(e,Zm,$k)}var Ip=ls(Gn,"DataView"),$p=ls(Gn,"Promise"),zp=ls(Gn,"Set"),Vp=ls(Gn,"WeakMap"),My="[object Map]",UM="[object Object]",Ly="[object Promise]",Iy="[object Set]",$y="[object WeakMap]",zy="[object DataView]",HM=as(Ip),WM=as(Na),qM=as($p),KM=as(zp),GM=as(Vp),er=ss;(Ip&&er(new Ip(new ArrayBuffer(1)))!=zy||Na&&er(new Na)!=My||$p&&er($p.resolve())!=Ly||zp&&er(new zp)!=Iy||Vp&&er(new Vp)!=$y)&&(er=function(e){var t=ss(e),n=t==UM?e.constructor:void 0,r=n?as(n):"";if(r)switch(r){case HM:return zy;case WM:return My;case qM:return Ly;case KM:return Iy;case GM:return $y}return t});var QM=Object.prototype,YM=QM.hasOwnProperty;function XM(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&YM.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Vy=Gn.Uint8Array;function eg(e){var t=new e.constructor(e.byteLength);return new Vy(t).set(new Vy(e)),t}function ZM(e,t){var n=t?eg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var JM=/\w*$/;function e5(e){var t=new e.constructor(e.source,JM.exec(e));return t.lastIndex=e.lastIndex,t}var By=ri?ri.prototype:void 0,Uy=By?By.valueOf:void 0;function t5(e){return Uy?Object(Uy.call(e)):{}}function n5(e,t){var n=t?eg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var r5="[object Boolean]",i5="[object Date]",s5="[object Map]",o5="[object Number]",a5="[object RegExp]",l5="[object Set]",u5="[object String]",c5="[object Symbol]",d5="[object ArrayBuffer]",f5="[object DataView]",p5="[object Float32Array]",h5="[object Float64Array]",m5="[object Int8Array]",g5="[object Int16Array]",v5="[object Int32Array]",y5="[object Uint8Array]",x5="[object Uint8ClampedArray]",w5="[object Uint16Array]",b5="[object Uint32Array]";function S5(e,t,n){var r=e.constructor;switch(t){case d5:return eg(e);case r5:case i5:return new r(+e);case f5:return ZM(e,n);case p5:case h5:case m5:case g5:case v5:case y5:case x5:case w5:case b5:return n5(e,n);case s5:return new r;case o5:case u5:return new r(e);case a5:return e5(e);case l5:return new r;case c5:return t5(e)}}var Hy=Object.create,k5=function(){function e(){}return function(t){if(!Ja(t))return{};if(Hy)return Hy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function E5(e){return typeof e.constructor=="function"&&!Ym(e)?k5(Gm(e)):{}}var T5="[object Map]";function C5(e){return os(e)&&er(e)==T5}var Wy=fo&&fo.isMap,_5=Wy?Qm(Wy):C5,P5="[object Set]";function j5(e){return os(e)&&er(e)==P5}var qy=fo&&fo.isSet,A5=qy?Qm(qy):j5,R5=1,O5=2,D5=4,Vk="[object Arguments]",F5="[object Array]",N5="[object Boolean]",M5="[object Date]",L5="[object Error]",Bk="[object Function]",I5="[object GeneratorFunction]",$5="[object Map]",z5="[object Number]",Uk="[object Object]",V5="[object RegExp]",B5="[object Set]",U5="[object String]",H5="[object Symbol]",W5="[object WeakMap]",q5="[object ArrayBuffer]",K5="[object DataView]",G5="[object Float32Array]",Q5="[object Float64Array]",Y5="[object Int8Array]",X5="[object Int16Array]",Z5="[object Int32Array]",J5="[object Uint8Array]",e4="[object Uint8ClampedArray]",t4="[object Uint16Array]",n4="[object Uint32Array]",ge={};ge[Vk]=ge[F5]=ge[q5]=ge[K5]=ge[N5]=ge[M5]=ge[G5]=ge[Q5]=ge[Y5]=ge[X5]=ge[Z5]=ge[$5]=ge[z5]=ge[Uk]=ge[V5]=ge[B5]=ge[U5]=ge[H5]=ge[J5]=ge[e4]=ge[t4]=ge[n4]=!0;ge[L5]=ge[Bk]=ge[W5]=!1;function ia(e,t,n,r,i,s){var o,a=t&R5,l=t&O5,u=t&D5;if(o!==void 0)return o;if(!Ja(e))return e;var d=el(e);if(d){if(o=XM(e),!a)return Mk(e,o)}else{var c=er(e),f=c==Bk||c==I5;if(Ak(e))return FM(e,a);if(c==Uk||c==Vk||f&&!i){if(o=l||f?{}:E5(e),!a)return l?zM(e,OM(o,e)):IM(e,_M(o,e))}else{if(!ge[c])return i?e:{};o=S5(e,c,a)}}s||(s=new So);var p=s.get(e);if(p)return p;s.set(e,o),A5(e)?e.forEach(function(w){o.add(ia(w,t,n,w,e,s))}):_5(e)&&e.forEach(function(w,m){o.set(m,ia(w,t,n,m,e,s))});var h=u?l?BM:VM:l?Zm:Xm,y=d?void 0:h(e);return ON(y||e,function(w,m){y&&(m=w,w=e[m]),_k(o,m,ia(w,t,n,m,e,s))}),o}var r4=1,i4=4;function Al(e){return ia(e,r4|i4)}var Ky=Array.isArray,Gy=Object.keys,s4=Object.prototype.hasOwnProperty,o4=typeof Element<"u";function Bp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Ky(e),r=Ky(t),i,s,o;if(n&&r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!Bp(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 u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var c=Gy(e);if(s=c.length,s!==Gy(t).length)return!1;for(i=s;i--!==0;)if(!s4.call(t,c[i]))return!1;if(o4&&e instanceof Element&&t instanceof Element)return e===t;for(i=s;i--!==0;)if(o=c[i],!(o==="_owner"&&e.$$typeof)&&!Bp(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var a4=function(t,n){try{return Bp(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 yi=Qi(a4);var l4=4;function Qy(e){return ia(e,l4)}function Hk(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 u4="[object Symbol]";function tg(e){return typeof e=="symbol"||os(e)&&ss(e)==u4}var c4="Expected a function";function ng(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(c4);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(ng.Cache||li),n}ng.Cache=li;var d4=500;function f4(e){var t=ng(e,function(r){return n.size===d4&&n.clear(),r}),n=t.cache;return t}var p4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h4=/\\(\\)?/g,m4=f4(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(p4,function(n,r,i,s){t.push(i?s.replace(h4,"$1"):r||n)}),t}),g4=1/0;function v4(e){if(typeof e=="string"||tg(e))return e;var t=e+"";return t=="0"&&1/e==-g4?"-0":t}var y4=1/0,Yy=ri?ri.prototype:void 0,Xy=Yy?Yy.toString:void 0;function Wk(e){if(typeof e=="string")return e;if(el(e))return Hk(e,Wk)+"";if(tg(e))return Xy?Xy.call(e):"";var t=e+"";return t=="0"&&1/e==-y4?"-0":t}function x4(e){return e==null?"":Wk(e)}function qk(e){return el(e)?Hk(e,v4):tg(e)?[e]:Mk(m4(x4(e)))}var Kk={exports:{}},pe={};/** @license React v16.13.1
|
|
98
|
+
`+(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 u=[];for(let d of Object.values(this.internalTests))d&&u.push(d);this.runTests({path:s,value:l,originalValue:o,options:n,tests:u},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:u}=t,d=y=>{i||(i=!0,n(y,o))},c=y=>{i||(i=!0,r(y,o))},f=s.length,p=[];if(!f)return c([]);let h={value:o,originalValue:a,path:l,options:u,schema:this};for(let y=0;y<s.length;y++){const b=s[y];b(h,d,function(x){x&&(Array.isArray(x)?p.push(...x):p.push(x)),--f<=0&&c(p)})}}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 u=r[a];const d=Object.assign({},o,{strict:!0,parent:r,value:u,originalValue:s[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${i||""}[${l?a:`"${a}"`}]`:(i?`${i}.`:"")+t});return(c,f,p)=>this.resolve(d)._validate(u,d,f,p)}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,u)=>{_t.isError(l)&&(l.value=u),a(l)},(l,u)=>{l.length?a(new _t(l,u,void 0,void 0,s)):o(u)}))}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 _t.isError(a)&&(a.value=l),a},(a,l)=>{if(a.length)throw new _t(a,t,void 0,void 0,o);s=l}),s}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(_t.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(_t.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Ds(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=hs({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=hs({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=On.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=On.notNull){return this.nullability(!1,t)}required(t=On.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=On.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=hs(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=mk(t).map(s=>new is(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new zu(i,n):zu.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=hs({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=On.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=hs({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=On.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=hs({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,u,d)=>d.findIndex(c=>c.name===l.name)===u)}}}Gn.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])Gn.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=rF(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])Gn.prototype[e]=Gn.prototype.oneOf;for(const e of["not","nope"])Gn.prototype[e]=Gn.prototype.notOneOf;const iF=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function sF(e){const t=Ip(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 Ip(e){var t,n;const r=iF.exec(e);return r?{year:Xn(r[1]),month:Xn(r[2],1)-1,day:Xn(r[3],1),hour:Xn(r[4]),minute:Xn(r[5]),second:Xn(r[6]),millisecond:r[7]?Xn(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:Xn(r[10]),minuteOffset:Xn(r[11])}:null}function Xn(e,t=0){return Number(e)||t}let oF=/^[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])?)*$/,aF=/^((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,lF=/^(?:[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,uF="^\\d{4}-\\d{2}-\\d{2}",cF="\\d{2}:\\d{2}:\\d{2}",dF="(([+-]\\d{2}(:?\\d{2})?)|Z)",fF=new RegExp(`${uF}T${cF}(\\.\\d+)?${dF}$`),pF=e=>_i(e)||e===e.trim(),hF={}.toString();function Vu(){return new xk}class xk extends Gn{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===hF?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||On.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=St.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=St.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=St.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||St.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=St.email){return this.matches(oF,{name:"email",message:t,excludeEmptyString:!0})}url(t=St.url){return this.matches(aF,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=St.uuid){return this.matches(lF,{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(fF,{name:"datetime",message:n||St.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||St.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:s=>{if(!s||r)return!0;const o=Ip(s);return o?!!o.z:!1}}).test({name:"datetime_precision",message:n||St.datetime_precision,params:{precision:i},skipAbsent:!0,test:s=>{if(!s||i==null)return!0;const o=Ip(s);return o?o.precision===i:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=St.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:pF})}lowercase(t=St.lowercase){return this.transform(n=>_i(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>_i(n)||n===n.toLowerCase()})}uppercase(t=St.uppercase){return this.transform(n=>_i(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>_i(n)||n===n.toUpperCase()})}}Vu.prototype=xk.prototype;let mF=new Date(""),gF=e=>Object.prototype.toString.call(e)==="[object Date]";class kc extends Gn{constructor(){super({type:"date",check(t){return gF(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=sF(t),isNaN(t)?kc.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(is.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=Lp.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=Lp.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)}})}}kc.INVALID_DATE=mF;kc.prototype;function vF(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,a])=>`${o}-${a}`));function s(o,a){let l=$i.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),is.isRef(a)&&a.isSibling?s(a.path,o):qm(a)&&"deps"in a&&a.deps.forEach(l=>s(l,o))}return WD.array(Array.from(r),n).reverse()}function Sy(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 wk(e){return(t,n)=>Sy(e,t)-Sy(e,n)}const yF=(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 ru(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=ru(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=ru(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(ru)}):"optional"in e?e.optional():e}const xF=(e,t)=>{const n=[...$i.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=$i.getter($i.join(n),!0)(e);return!!(i&&r in i)};let ky=e=>Object.prototype.toString.call(e)==="[object Object]";function Ey(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const wF=wk([]);function Km(e){return new bk(e)}class bk extends Gn{constructor(t){super({type:"object",check(n){return ky(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=wF,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(c=>!this._nodes.includes(c))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),d=!1;for(const c of a){let f=s[c],p=c in i;if(f){let h,y=i[c];u.path=(n.path?`${n.path}.`:"")+c,f=f.resolve({value:y,context:n.context,parent:l});let b=f instanceof Gn?f.spec:void 0,g=b==null?void 0:b.strict;if(b!=null&&b.strip){d=d||c in i;continue}h=!n.__validating||!g?f.cast(i[c],u):i[c],h!==void 0&&(l[c]=h)}else p&&!o&&(l[c]=i[c]);(p!==c in l||l[c]!==i[c])&&(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,u)=>{if(!a||!ky(u)){i(l,u);return}o=o||u;let d=[];for(let c of this._nodes){let f=this.fields[c];!f||is.isRef(f)||d.push(f.asNestedTest({options:n,key:c,parent:u,parentPath:n.path,originalParent:o}))}this.runTests({tests:d,value:u,originalValue:o,options:n},r,c=>{i(c.sort(this._sortErrors).concat(l),u)})})}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=vF(t,n),r._sortErrors=wk(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 ru(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=$i.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return xF(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(yF)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||nu.exact,test(n){if(n==null)return!0;const r=Ey(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=nu.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=Ey(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=nu.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(Id.camelCase)}snakeCase(){return this.transformKeys(Id.snakeCase)}constantCase(){return this.transformKeys(t=>Id.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}}Km.prototype=bk.prototype;var bF=function(t){return SF(t)&&!kF(t)};function SF(e){return!!e&&typeof e=="object"}function kF(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||CF(e)}var EF=typeof Symbol=="function"&&Symbol.for,TF=EF?Symbol.for("react.element"):60103;function CF(e){return e.$$typeof===TF}function _F(e){return Array.isArray(e)?[]:{}}function Uu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Fa(_F(e),e,t):e}function PF(e,t,n){return e.concat(t).map(function(r){return Uu(r,n)})}function jF(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=Uu(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=Uu(t[i],n):r[i]=Fa(e[i],t[i],n)}),r}function Fa(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||PF,n.isMergeableObject=n.isMergeableObject||bF;var r=Array.isArray(t),i=Array.isArray(e),s=r===i;return s?r?n.arrayMerge(e,t,n):jF(e,t,n):Uu(t,n)}Fa.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Fa(r,i,n)},{})};var $p=Fa,Sk=typeof global=="object"&&global&&global.Object===Object&&global,AF=typeof self=="object"&&self&&self.Object===Object&&self,Qn=Sk||AF||Function("return this")(),ii=Qn.Symbol,kk=Object.prototype,RF=kk.hasOwnProperty,OF=kk.toString,No=ii?ii.toStringTag:void 0;function DF(e){var t=RF.call(e,No),n=e[No];try{e[No]=void 0;var r=!0}catch{}var i=OF.call(e);return r&&(t?e[No]=n:delete e[No]),i}var FF=Object.prototype,NF=FF.toString;function MF(e){return NF.call(e)}var LF="[object Null]",IF="[object Undefined]",Ty=ii?ii.toStringTag:void 0;function ss(e){return e==null?e===void 0?IF:LF:Ty&&Ty in Object(e)?DF(e):MF(e)}function Ek(e,t){return function(n){return e(t(n))}}var Gm=Ek(Object.getPrototypeOf,Object);function os(e){return e!=null&&typeof e=="object"}var $F="[object Object]",zF=Function.prototype,BF=Object.prototype,Tk=zF.toString,VF=BF.hasOwnProperty,UF=Tk.call(Object);function Cy(e){if(!os(e)||ss(e)!=$F)return!1;var t=Gm(e);if(t===null)return!0;var n=VF.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Tk.call(n)==UF}function HF(){this.__data__=[],this.size=0}function Ck(e,t){return e===t||e!==e&&t!==t}function Ec(e,t){for(var n=e.length;n--;)if(Ck(e[n][0],t))return n;return-1}var WF=Array.prototype,qF=WF.splice;function KF(e){var t=this.__data__,n=Ec(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():qF.call(t,n,1),--this.size,!0}function GF(e){var t=this.__data__,n=Ec(t,e);return n<0?void 0:t[n][1]}function QF(e){return Ec(this.__data__,e)>-1}function YF(e,t){var n=this.__data__,r=Ec(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function mr(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])}}mr.prototype.clear=HF;mr.prototype.delete=KF;mr.prototype.get=GF;mr.prototype.has=QF;mr.prototype.set=YF;function XF(){this.__data__=new mr,this.size=0}function ZF(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function JF(e){return this.__data__.get(e)}function eN(e){return this.__data__.has(e)}function Ja(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var tN="[object AsyncFunction]",nN="[object Function]",rN="[object GeneratorFunction]",iN="[object Proxy]";function _k(e){if(!Ja(e))return!1;var t=ss(e);return t==nN||t==rN||t==tN||t==iN}var $d=Qn["__core-js_shared__"],_y=function(){var e=/[^.]+$/.exec($d&&$d.keys&&$d.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sN(e){return!!_y&&_y in e}var oN=Function.prototype,aN=oN.toString;function as(e){if(e!=null){try{return aN.call(e)}catch{}try{return e+""}catch{}}return""}var lN=/[\\^$.*+?()[\]{}|]/g,uN=/^\[object .+?Constructor\]$/,cN=Function.prototype,dN=Object.prototype,fN=cN.toString,pN=dN.hasOwnProperty,hN=RegExp("^"+fN.call(pN).replace(lN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mN(e){if(!Ja(e)||sN(e))return!1;var t=_k(e)?hN:uN;return t.test(as(e))}function gN(e,t){return e==null?void 0:e[t]}function ls(e,t){var n=gN(e,t);return mN(n)?n:void 0}var Na=ls(Qn,"Map"),Ma=ls(Object,"create");function vN(){this.__data__=Ma?Ma(null):{},this.size=0}function yN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xN="__lodash_hash_undefined__",wN=Object.prototype,bN=wN.hasOwnProperty;function SN(e){var t=this.__data__;if(Ma){var n=t[e];return n===xN?void 0:n}return bN.call(t,e)?t[e]:void 0}var kN=Object.prototype,EN=kN.hasOwnProperty;function TN(e){var t=this.__data__;return Ma?t[e]!==void 0:EN.call(t,e)}var CN="__lodash_hash_undefined__";function _N(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ma&&t===void 0?CN:t,this}function Gi(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])}}Gi.prototype.clear=vN;Gi.prototype.delete=yN;Gi.prototype.get=SN;Gi.prototype.has=TN;Gi.prototype.set=_N;function PN(){this.size=0,this.__data__={hash:new Gi,map:new(Na||mr),string:new Gi}}function jN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Tc(e,t){var n=e.__data__;return jN(t)?n[typeof t=="string"?"string":"hash"]:n.map}function AN(e){var t=Tc(this,e).delete(e);return this.size-=t?1:0,t}function RN(e){return Tc(this,e).get(e)}function ON(e){return Tc(this,e).has(e)}function DN(e,t){var n=Tc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ui(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])}}ui.prototype.clear=PN;ui.prototype.delete=AN;ui.prototype.get=RN;ui.prototype.has=ON;ui.prototype.set=DN;var FN=200;function NN(e,t){var n=this.__data__;if(n instanceof mr){var r=n.__data__;if(!Na||r.length<FN-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ui(r)}return n.set(e,t),this.size=n.size,this}function So(e){var t=this.__data__=new mr(e);this.size=t.size}So.prototype.clear=XF;So.prototype.delete=ZF;So.prototype.get=JF;So.prototype.has=eN;So.prototype.set=NN;function MN(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Py=function(){try{var e=ls(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Pk(e,t,n){t=="__proto__"&&Py?Py(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var LN=Object.prototype,IN=LN.hasOwnProperty;function jk(e,t,n){var r=e[t];(!(IN.call(e,t)&&Ck(r,n))||n===void 0&&!(t in e))&&Pk(e,t,n)}function Cc(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?Pk(n,a,l):jk(n,a,l)}return n}function $N(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var zN="[object Arguments]";function jy(e){return os(e)&&ss(e)==zN}var Ak=Object.prototype,BN=Ak.hasOwnProperty,VN=Ak.propertyIsEnumerable,UN=jy(function(){return arguments}())?jy:function(e){return os(e)&&BN.call(e,"callee")&&!VN.call(e,"callee")},el=Array.isArray;function HN(){return!1}var Rk=typeof $t=="object"&&$t&&!$t.nodeType&&$t,Ay=Rk&&typeof zt=="object"&&zt&&!zt.nodeType&&zt,WN=Ay&&Ay.exports===Rk,Ry=WN?Qn.Buffer:void 0,qN=Ry?Ry.isBuffer:void 0,Ok=qN||HN,KN=9007199254740991,GN=/^(?:0|[1-9]\d*)$/;function QN(e,t){var n=typeof e;return t=t??KN,!!t&&(n=="number"||n!="symbol"&&GN.test(e))&&e>-1&&e%1==0&&e<t}var YN=9007199254740991;function Dk(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=YN}var XN="[object Arguments]",ZN="[object Array]",JN="[object Boolean]",eM="[object Date]",tM="[object Error]",nM="[object Function]",rM="[object Map]",iM="[object Number]",sM="[object Object]",oM="[object RegExp]",aM="[object Set]",lM="[object String]",uM="[object WeakMap]",cM="[object ArrayBuffer]",dM="[object DataView]",fM="[object Float32Array]",pM="[object Float64Array]",hM="[object Int8Array]",mM="[object Int16Array]",gM="[object Int32Array]",vM="[object Uint8Array]",yM="[object Uint8ClampedArray]",xM="[object Uint16Array]",wM="[object Uint32Array]",Se={};Se[fM]=Se[pM]=Se[hM]=Se[mM]=Se[gM]=Se[vM]=Se[yM]=Se[xM]=Se[wM]=!0;Se[XN]=Se[ZN]=Se[cM]=Se[JN]=Se[dM]=Se[eM]=Se[tM]=Se[nM]=Se[rM]=Se[iM]=Se[sM]=Se[oM]=Se[aM]=Se[lM]=Se[uM]=!1;function bM(e){return os(e)&&Dk(e.length)&&!!Se[ss(e)]}function Qm(e){return function(t){return e(t)}}var Fk=typeof $t=="object"&&$t&&!$t.nodeType&&$t,ra=Fk&&typeof zt=="object"&&zt&&!zt.nodeType&&zt,SM=ra&&ra.exports===Fk,zd=SM&&Sk.process,fo=function(){try{var e=ra&&ra.require&&ra.require("util").types;return e||zd&&zd.binding&&zd.binding("util")}catch{}}(),Oy=fo&&fo.isTypedArray,kM=Oy?Qm(Oy):bM,EM=Object.prototype,TM=EM.hasOwnProperty;function Nk(e,t){var n=el(e),r=!n&&UN(e),i=!n&&!r&&Ok(e),s=!n&&!r&&!i&&kM(e),o=n||r||i||s,a=o?$N(e.length,String):[],l=a.length;for(var u in e)(t||TM.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||QN(u,l)))&&a.push(u);return a}var CM=Object.prototype;function Ym(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CM;return e===n}var _M=Ek(Object.keys,Object),PM=Object.prototype,jM=PM.hasOwnProperty;function AM(e){if(!Ym(e))return _M(e);var t=[];for(var n in Object(e))jM.call(e,n)&&n!="constructor"&&t.push(n);return t}function Mk(e){return e!=null&&Dk(e.length)&&!_k(e)}function Xm(e){return Mk(e)?Nk(e):AM(e)}function RM(e,t){return e&&Cc(t,Xm(t),e)}function OM(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var DM=Object.prototype,FM=DM.hasOwnProperty;function NM(e){if(!Ja(e))return OM(e);var t=Ym(e),n=[];for(var r in e)r=="constructor"&&(t||!FM.call(e,r))||n.push(r);return n}function Zm(e){return Mk(e)?Nk(e,!0):NM(e)}function MM(e,t){return e&&Cc(t,Zm(t),e)}var Lk=typeof $t=="object"&&$t&&!$t.nodeType&&$t,Dy=Lk&&typeof zt=="object"&&zt&&!zt.nodeType&&zt,LM=Dy&&Dy.exports===Lk,Fy=LM?Qn.Buffer:void 0,Ny=Fy?Fy.allocUnsafe:void 0;function IM(e,t){if(t)return e.slice();var n=e.length,r=Ny?Ny(n):new e.constructor(n);return e.copy(r),r}function Ik(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function $M(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 $k(){return[]}var zM=Object.prototype,BM=zM.propertyIsEnumerable,My=Object.getOwnPropertySymbols,Jm=My?function(e){return e==null?[]:(e=Object(e),$M(My(e),function(t){return BM.call(e,t)}))}:$k;function VM(e,t){return Cc(e,Jm(e),t)}function zk(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var UM=Object.getOwnPropertySymbols,Bk=UM?function(e){for(var t=[];e;)zk(t,Jm(e)),e=Gm(e);return t}:$k;function HM(e,t){return Cc(e,Bk(e),t)}function Vk(e,t,n){var r=t(e);return el(e)?r:zk(r,n(e))}function WM(e){return Vk(e,Xm,Jm)}function qM(e){return Vk(e,Zm,Bk)}var zp=ls(Qn,"DataView"),Bp=ls(Qn,"Promise"),Vp=ls(Qn,"Set"),Up=ls(Qn,"WeakMap"),Ly="[object Map]",KM="[object Object]",Iy="[object Promise]",$y="[object Set]",zy="[object WeakMap]",By="[object DataView]",GM=as(zp),QM=as(Na),YM=as(Bp),XM=as(Vp),ZM=as(Up),tr=ss;(zp&&tr(new zp(new ArrayBuffer(1)))!=By||Na&&tr(new Na)!=Ly||Bp&&tr(Bp.resolve())!=Iy||Vp&&tr(new Vp)!=$y||Up&&tr(new Up)!=zy)&&(tr=function(e){var t=ss(e),n=t==KM?e.constructor:void 0,r=n?as(n):"";if(r)switch(r){case GM:return By;case QM:return Ly;case YM:return Iy;case XM:return $y;case ZM:return zy}return t});var JM=Object.prototype,e5=JM.hasOwnProperty;function t5(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&e5.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Vy=Qn.Uint8Array;function eg(e){var t=new e.constructor(e.byteLength);return new Vy(t).set(new Vy(e)),t}function n5(e,t){var n=t?eg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var r5=/\w*$/;function i5(e){var t=new e.constructor(e.source,r5.exec(e));return t.lastIndex=e.lastIndex,t}var Uy=ii?ii.prototype:void 0,Hy=Uy?Uy.valueOf:void 0;function s5(e){return Hy?Object(Hy.call(e)):{}}function o5(e,t){var n=t?eg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var a5="[object Boolean]",l5="[object Date]",u5="[object Map]",c5="[object Number]",d5="[object RegExp]",f5="[object Set]",p5="[object String]",h5="[object Symbol]",m5="[object ArrayBuffer]",g5="[object DataView]",v5="[object Float32Array]",y5="[object Float64Array]",x5="[object Int8Array]",w5="[object Int16Array]",b5="[object Int32Array]",S5="[object Uint8Array]",k5="[object Uint8ClampedArray]",E5="[object Uint16Array]",T5="[object Uint32Array]";function C5(e,t,n){var r=e.constructor;switch(t){case m5:return eg(e);case a5:case l5:return new r(+e);case g5:return n5(e,n);case v5:case y5:case x5:case w5:case b5:case S5:case k5:case E5:case T5:return o5(e,n);case u5:return new r;case c5:case p5:return new r(e);case d5:return i5(e);case f5:return new r;case h5:return s5(e)}}var Wy=Object.create,_5=function(){function e(){}return function(t){if(!Ja(t))return{};if(Wy)return Wy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function P5(e){return typeof e.constructor=="function"&&!Ym(e)?_5(Gm(e)):{}}var j5="[object Map]";function A5(e){return os(e)&&tr(e)==j5}var qy=fo&&fo.isMap,R5=qy?Qm(qy):A5,O5="[object Set]";function D5(e){return os(e)&&tr(e)==O5}var Ky=fo&&fo.isSet,F5=Ky?Qm(Ky):D5,N5=1,M5=2,L5=4,Uk="[object Arguments]",I5="[object Array]",$5="[object Boolean]",z5="[object Date]",B5="[object Error]",Hk="[object Function]",V5="[object GeneratorFunction]",U5="[object Map]",H5="[object Number]",Wk="[object Object]",W5="[object RegExp]",q5="[object Set]",K5="[object String]",G5="[object Symbol]",Q5="[object WeakMap]",Y5="[object ArrayBuffer]",X5="[object DataView]",Z5="[object Float32Array]",J5="[object Float64Array]",e4="[object Int8Array]",t4="[object Int16Array]",n4="[object Int32Array]",r4="[object Uint8Array]",i4="[object Uint8ClampedArray]",s4="[object Uint16Array]",o4="[object Uint32Array]",ye={};ye[Uk]=ye[I5]=ye[Y5]=ye[X5]=ye[$5]=ye[z5]=ye[Z5]=ye[J5]=ye[e4]=ye[t4]=ye[n4]=ye[U5]=ye[H5]=ye[Wk]=ye[W5]=ye[q5]=ye[K5]=ye[G5]=ye[r4]=ye[i4]=ye[s4]=ye[o4]=!0;ye[B5]=ye[Hk]=ye[Q5]=!1;function ia(e,t,n,r,i,s){var o,a=t&N5,l=t&M5,u=t&L5;if(o!==void 0)return o;if(!Ja(e))return e;var d=el(e);if(d){if(o=t5(e),!a)return Ik(e,o)}else{var c=tr(e),f=c==Hk||c==V5;if(Ok(e))return IM(e,a);if(c==Wk||c==Uk||f&&!i){if(o=l||f?{}:P5(e),!a)return l?HM(e,MM(o,e)):VM(e,RM(o,e))}else{if(!ye[c])return i?e:{};o=C5(e,c,a)}}s||(s=new So);var p=s.get(e);if(p)return p;s.set(e,o),F5(e)?e.forEach(function(b){o.add(ia(b,t,n,b,e,s))}):R5(e)&&e.forEach(function(b,g){o.set(g,ia(b,t,n,g,e,s))});var h=u?l?qM:WM:l?Zm:Xm,y=d?void 0:h(e);return MN(y||e,function(b,g){y&&(g=b,b=e[g]),jk(o,g,ia(b,t,n,g,e,s))}),o}var a4=1,l4=4;function Al(e){return ia(e,a4|l4)}var Gy=Array.isArray,Qy=Object.keys,u4=Object.prototype.hasOwnProperty,c4=typeof Element<"u";function Hp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=Gy(e),r=Gy(t),i,s,o;if(n&&r){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!Hp(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 u=e instanceof RegExp,d=t instanceof RegExp;if(u!=d)return!1;if(u&&d)return e.toString()==t.toString();var c=Qy(e);if(s=c.length,s!==Qy(t).length)return!1;for(i=s;i--!==0;)if(!u4.call(t,c[i]))return!1;if(c4&&e instanceof Element&&t instanceof Element)return e===t;for(i=s;i--!==0;)if(o=c[i],!(o==="_owner"&&e.$$typeof)&&!Hp(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var d4=function(t,n){try{return Hp(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 xi=Qi(d4);var f4=4;function Yy(e){return ia(e,f4)}function qk(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 p4="[object Symbol]";function tg(e){return typeof e=="symbol"||os(e)&&ss(e)==p4}var h4="Expected a function";function ng(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(h4);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(ng.Cache||ui),n}ng.Cache=ui;var m4=500;function g4(e){var t=ng(e,function(r){return n.size===m4&&n.clear(),r}),n=t.cache;return t}var v4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y4=/\\(\\)?/g,x4=g4(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(v4,function(n,r,i,s){t.push(i?s.replace(y4,"$1"):r||n)}),t}),w4=1/0;function b4(e){if(typeof e=="string"||tg(e))return e;var t=e+"";return t=="0"&&1/e==-w4?"-0":t}var S4=1/0,Xy=ii?ii.prototype:void 0,Zy=Xy?Xy.toString:void 0;function Kk(e){if(typeof e=="string")return e;if(el(e))return qk(e,Kk)+"";if(tg(e))return Zy?Zy.call(e):"";var t=e+"";return t=="0"&&1/e==-S4?"-0":t}function k4(e){return e==null?"":Kk(e)}function Gk(e){return el(e)?qk(e,b4):tg(e)?[e]:Ik(x4(k4(e)))}var Qk={exports:{}},pe={};/** @license React v16.13.1
|
|
99
99
|
* react-is.production.min.js
|
|
100
100
|
*
|
|
101
101
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
102
102
|
*
|
|
103
103
|
* This source code is licensed under the MIT license found in the
|
|
104
104
|
* LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/var Qe=typeof Symbol=="function"&&Symbol.for,rg=Qe?Symbol.for("react.element"):60103,ig=Qe?Symbol.for("react.portal"):60106,Cc=Qe?Symbol.for("react.fragment"):60107,_c=Qe?Symbol.for("react.strict_mode"):60108,Pc=Qe?Symbol.for("react.profiler"):60114,jc=Qe?Symbol.for("react.provider"):60109,Ac=Qe?Symbol.for("react.context"):60110,sg=Qe?Symbol.for("react.async_mode"):60111,Rc=Qe?Symbol.for("react.concurrent_mode"):60111,Oc=Qe?Symbol.for("react.forward_ref"):60112,Dc=Qe?Symbol.for("react.suspense"):60113,w4=Qe?Symbol.for("react.suspense_list"):60120,Fc=Qe?Symbol.for("react.memo"):60115,Nc=Qe?Symbol.for("react.lazy"):60116,b4=Qe?Symbol.for("react.block"):60121,S4=Qe?Symbol.for("react.fundamental"):60117,k4=Qe?Symbol.for("react.responder"):60118,E4=Qe?Symbol.for("react.scope"):60119;function Wt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rg:switch(e=e.type,e){case sg:case Rc:case Cc:case Pc:case _c:case Dc:return e;default:switch(e=e&&e.$$typeof,e){case Ac:case Oc:case Nc:case Fc:case jc:return e;default:return t}}case ig:return t}}}function Gk(e){return Wt(e)===Rc}pe.AsyncMode=sg;pe.ConcurrentMode=Rc;pe.ContextConsumer=Ac;pe.ContextProvider=jc;pe.Element=rg;pe.ForwardRef=Oc;pe.Fragment=Cc;pe.Lazy=Nc;pe.Memo=Fc;pe.Portal=ig;pe.Profiler=Pc;pe.StrictMode=_c;pe.Suspense=Dc;pe.isAsyncMode=function(e){return Gk(e)||Wt(e)===sg};pe.isConcurrentMode=Gk;pe.isContextConsumer=function(e){return Wt(e)===Ac};pe.isContextProvider=function(e){return Wt(e)===jc};pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rg};pe.isForwardRef=function(e){return Wt(e)===Oc};pe.isFragment=function(e){return Wt(e)===Cc};pe.isLazy=function(e){return Wt(e)===Nc};pe.isMemo=function(e){return Wt(e)===Fc};pe.isPortal=function(e){return Wt(e)===ig};pe.isProfiler=function(e){return Wt(e)===Pc};pe.isStrictMode=function(e){return Wt(e)===_c};pe.isSuspense=function(e){return Wt(e)===Dc};pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Cc||e===Rc||e===Pc||e===_c||e===Dc||e===w4||typeof e=="object"&&e!==null&&(e.$$typeof===Nc||e.$$typeof===Fc||e.$$typeof===jc||e.$$typeof===Ac||e.$$typeof===Oc||e.$$typeof===S4||e.$$typeof===k4||e.$$typeof===E4||e.$$typeof===b4)};pe.typeOf=Wt;Kk.exports=pe;var T4=Kk.exports,Qk=T4,C4={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yk={};Yk[Qk.ForwardRef]=C4;Yk[Qk.Memo]=_4;function qe(){return qe=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},qe.apply(this,arguments)}function Xk(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 Mc=g.createContext(void 0);Mc.displayName="FormikContext";Mc.Provider;Mc.Consumer;function P4(){var e=g.useContext(Mc);return e}var pn=function(t){return typeof t=="function"},Lc=function(t){return t!==null&&typeof t=="object"},j4=function(t){return String(Math.floor(Number(t)))===t},zd=function(t){return Object.prototype.toString.call(t)==="[object String]"},Vd=function(t){return Lc(t)&&pn(t.then)};function Nt(e,t,n,r){r===void 0&&(r=0);for(var i=qk(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function $i(e,t,n){for(var r=Qy(e),i=r,s=0,o=qk(t);s<o.length-1;s++){var a=o[s],l=Nt(e,o.slice(0,s+1));if(l&&(Lc(l)||Array.isArray(l)))i=i[a]=Qy(l);else{var u=o[s+1];i=i[a]=j4(u)&&Number(u)>=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 Zk(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];Lc(a)?n.get(a)||(n.set(a,!0),r[o]=Array.isArray(a)?[]:{},Zk(a,t,n,r[o])):r[o]=t}return r}function A4(e,t){switch(t.type){case"SET_VALUES":return qe({},e,{values:t.payload});case"SET_TOUCHED":return qe({},e,{touched:t.payload});case"SET_ERRORS":return yi(e.errors,t.payload)?e:qe({},e,{errors:t.payload});case"SET_STATUS":return qe({},e,{status:t.payload});case"SET_ISSUBMITTING":return qe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return qe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return qe({},e,{values:$i(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return qe({},e,{touched:$i(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return qe({},e,{errors:$i(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return qe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return qe({},e,{touched:Zk(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return qe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return qe({},e,{isSubmitting:!1});default:return e}}var hi={},Rl={};function R4(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,u=l===void 0?!1:l,d=e.onSubmit,c=Xk(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=qe({validateOnChange:n,validateOnBlur:i,validateOnMount:o,onSubmit:d},c),p=g.useRef(f.initialValues),h=g.useRef(f.initialErrors||hi),y=g.useRef(f.initialTouched||Rl),w=g.useRef(f.initialStatus),m=g.useRef(!1),v=g.useRef({});g.useEffect(function(){return m.current=!0,function(){m.current=!1}},[]);var b=g.useState(0),T=b[1],E=g.useRef({values:Al(f.initialValues),errors:Al(f.initialErrors)||hi,touched:Al(f.initialTouched)||Rl,status:Al(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),C=E.current,S=g.useCallback(function(P){var L=E.current;E.current=A4(L,P),L!==E.current&&T(function(j){return j+1})},[]),_=g.useCallback(function(P,L){return new Promise(function(j,A){var V=f.validate(P,L);V==null?j(hi):Vd(V)?V.then(function(q){j(q||hi)},function(q){A(q)}):j(V)})},[f.validate]),N=g.useCallback(function(P,L){var j=f.validationSchema,A=pn(j)?j(L):j,V=L&&A.validateAt?A.validateAt(L,P):D4(P,A);return new Promise(function(q,se){V.then(function(){q(hi)},function($e){$e.name==="ValidationError"?q(O4($e)):se($e)})})},[f.validationSchema]),R=g.useCallback(function(P,L){return new Promise(function(j){return j(v.current[P].validate(L))})},[]),I=g.useCallback(function(P){var L=Object.keys(v.current).filter(function(A){return pn(v.current[A].validate)}),j=L.length>0?L.map(function(A){return R(A,Nt(P,A))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(j).then(function(A){return A.reduce(function(V,q,se){return q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||q&&(V=$i(V,L[se],q)),V},{})})},[R]),ne=g.useCallback(function(P){return Promise.all([I(P),f.validationSchema?N(P):{},f.validate?_(P):{}]).then(function(L){var j=L[0],A=L[1],V=L[2],q=Lp.all([j,A,V],{arrayMerge:F4});return q})},[f.validate,f.validationSchema,I,_,N]),te=Qt(function(P){return P===void 0&&(P=C.values),S({type:"SET_ISVALIDATING",payload:!0}),ne(P).then(function(L){return m.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:L})),L})});g.useEffect(function(){o&&m.current===!0&&yi(p.current,f.initialValues)&&te(p.current)},[o,te]);var ee=g.useCallback(function(P){var L=P&&P.values?P.values:p.current,j=P&&P.errors?P.errors:h.current?h.current:f.initialErrors||{},A=P&&P.touched?P.touched:y.current?y.current:f.initialTouched||{},V=P&&P.status?P.status:w.current?w.current:f.initialStatus;p.current=L,h.current=j,y.current=A,w.current=V;var q=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!P&&!!P.isSubmitting,errors:j,touched:A,status:V,values:L,isValidating:!!P&&!!P.isValidating,submitCount:P&&P.submitCount&&typeof P.submitCount=="number"?P.submitCount:0}})};if(f.onReset){var se=f.onReset(C.values,ui);Vd(se)?se.then(q):q()}else q()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);g.useEffect(function(){m.current===!0&&!yi(p.current,f.initialValues)&&u&&(p.current=f.initialValues,ee(),o&&te(p.current))},[u,f.initialValues,ee,o,te]),g.useEffect(function(){u&&m.current===!0&&!yi(h.current,f.initialErrors)&&(h.current=f.initialErrors||hi,S({type:"SET_ERRORS",payload:f.initialErrors||hi}))},[u,f.initialErrors]),g.useEffect(function(){u&&m.current===!0&&!yi(y.current,f.initialTouched)&&(y.current=f.initialTouched||Rl,S({type:"SET_TOUCHED",payload:f.initialTouched||Rl}))},[u,f.initialTouched]),g.useEffect(function(){u&&m.current===!0&&!yi(w.current,f.initialStatus)&&(w.current=f.initialStatus,S({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var le=Qt(function(P){if(v.current[P]&&pn(v.current[P].validate)){var L=Nt(C.values,P),j=v.current[P].validate(L);return Vd(j)?(S({type:"SET_ISVALIDATING",payload:!0}),j.then(function(A){return A}).then(function(A){S({type:"SET_FIELD_ERROR",payload:{field:P,value:A}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:P,value:j}}),Promise.resolve(j))}else if(f.validationSchema)return S({type:"SET_ISVALIDATING",payload:!0}),N(C.values,P).then(function(A){return A}).then(function(A){S({type:"SET_FIELD_ERROR",payload:{field:P,value:Nt(A,P)}}),S({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),X=g.useCallback(function(P,L){var j=L.validate;v.current[P]={validate:j}},[]),re=g.useCallback(function(P){delete v.current[P]},[]),O=Qt(function(P,L){S({type:"SET_TOUCHED",payload:P});var j=L===void 0?i:L;return j?te(C.values):Promise.resolve()}),M=g.useCallback(function(P){S({type:"SET_ERRORS",payload:P})},[]),U=Qt(function(P,L){var j=pn(P)?P(C.values):P;S({type:"SET_VALUES",payload:j});var A=L===void 0?n:L;return A?te(j):Promise.resolve()}),B=g.useCallback(function(P,L){S({type:"SET_FIELD_ERROR",payload:{field:P,value:L}})},[]),H=Qt(function(P,L,j){S({type:"SET_FIELD_VALUE",payload:{field:P,value:L}});var A=j===void 0?n:j;return A?te($i(C.values,P,L)):Promise.resolve()}),G=g.useCallback(function(P,L){var j=L,A=P,V;if(!zd(P)){P.persist&&P.persist();var q=P.target?P.target:P.currentTarget,se=q.type,$e=q.name,Ze=q.id,Tn=q.value,qt=q.checked,ds=q.outerHTML,Qn=q.options,xr=q.multiple;j=L||$e||Ze,A=/number|range/.test(se)?(V=parseFloat(Tn),isNaN(V)?"":V):/checkbox/.test(se)?M4(Nt(C.values,j),qt,Tn):Qn&&xr?N4(Qn):Tn}j&&H(j,A)},[H,C.values]),ue=Qt(function(P){if(zd(P))return function(L){return G(L,P)};G(P)}),he=Qt(function(P,L,j){L===void 0&&(L=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:P,value:L}});var A=j===void 0?i:j;return A?te(C.values):Promise.resolve()}),Y=g.useCallback(function(P,L){P.persist&&P.persist();var j=P.target,A=j.name,V=j.id,q=j.outerHTML,se=L||A||V;he(se,!0)},[he]),De=Qt(function(P){if(zd(P))return function(L){return Y(L,P)};Y(P)}),Ye=g.useCallback(function(P){pn(P)?S({type:"SET_FORMIK_STATE",payload:P}):S({type:"SET_FORMIK_STATE",payload:function(){return P}})},[]),Xe=g.useCallback(function(P){S({type:"SET_STATUS",payload:P})},[]),Ot=g.useCallback(function(P){S({type:"SET_ISSUBMITTING",payload:P})},[]),En=Qt(function(){return S({type:"SUBMIT_ATTEMPT"}),te().then(function(P){var L=P instanceof Error,j=!L&&Object.keys(P).length===0;if(j){var A;try{if(A=gr(),A===void 0)return}catch(V){throw V}return Promise.resolve(A).then(function(V){return m.current&&S({type:"SUBMIT_SUCCESS"}),V}).catch(function(V){if(m.current)throw S({type:"SUBMIT_FAILURE"}),V})}else if(m.current&&(S({type:"SUBMIT_FAILURE"}),L))throw P})}),un=Qt(function(P){P&&P.preventDefault&&pn(P.preventDefault)&&P.preventDefault(),P&&P.stopPropagation&&pn(P.stopPropagation)&&P.stopPropagation(),En().catch(function(L){console.warn("Warning: An unhandled error was caught from submitForm()",L)})}),ui={resetForm:ee,validateForm:te,validateField:le,setErrors:M,setFieldError:B,setFieldTouched:he,setFieldValue:H,setStatus:Xe,setSubmitting:Ot,setTouched:O,setValues:U,setFormikState:Ye,submitForm:En},gr=Qt(function(){return d(C.values,ui)}),cs=Qt(function(P){P&&P.preventDefault&&pn(P.preventDefault)&&P.preventDefault(),P&&P.stopPropagation&&pn(P.stopPropagation)&&P.stopPropagation(),ee()}),ci=g.useCallback(function(P){return{value:Nt(C.values,P),error:Nt(C.errors,P),touched:!!Nt(C.touched,P),initialValue:Nt(p.current,P),initialTouched:!!Nt(y.current,P),initialError:Nt(h.current,P)}},[C.errors,C.touched,C.values]),bt=g.useCallback(function(P){return{setValue:function(j,A){return H(P,j,A)},setTouched:function(j,A){return he(P,j,A)},setError:function(j){return B(P,j)}}},[H,he,B]),vr=g.useCallback(function(P){var L=Lc(P),j=L?P.name:P,A=Nt(C.values,j),V={name:j,value:A,onChange:ue,onBlur:De};if(L){var q=P.type,se=P.value,$e=P.as,Ze=P.multiple;q==="checkbox"?se===void 0?V.checked=!!A:(V.checked=!!(Array.isArray(A)&&~A.indexOf(se)),V.value=se):q==="radio"?(V.checked=A===se,V.value=se):$e==="select"&&Ze&&(V.value=V.value||[],V.multiple=!0)}return V},[De,ue,C.values]),He=g.useMemo(function(){return!yi(p.current,C.values)},[p.current,C.values]),yr=g.useMemo(function(){return typeof a<"u"?He?C.errors&&Object.keys(C.errors).length===0:a!==!1&&pn(a)?a(f):a:C.errors&&Object.keys(C.errors).length===0},[a,He,C.errors,f]),ko=qe({},C,{initialValues:p.current,initialErrors:h.current,initialTouched:y.current,initialStatus:w.current,handleBlur:De,handleChange:ue,handleReset:cs,handleSubmit:un,resetForm:ee,setErrors:M,setFormikState:Ye,setFieldTouched:he,setFieldValue:H,setFieldError:B,setStatus:Xe,setSubmitting:Ot,setTouched:O,setValues:U,submitForm:En,validateForm:te,validateField:le,isValid:yr,dirty:He,unregisterField:re,registerField:X,getFieldProps:vr,getFieldMeta:ci,getFieldHelpers:bt,validateOnBlur:i,validateOnChange:n,validateOnMount:o});return ko}function O4(e){var t={};if(e.inner){if(e.inner.length===0)return $i(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;Nt(t,o.path)||(t=$i(t,o.path,o.message))}}return t}function D4(e,t,n,r){n===void 0&&(n=!1);var i=Up(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function Up(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||Ty(i)?Up(i):i!==""?i:void 0}):Ty(e[r])?t[r]=Up(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function F4(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?Lp(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[o]=Lp(e[o],s,n):e.indexOf(s)===-1&&r.push(s)}),r}function N4(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function M4(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 L4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?g.useLayoutEffect:g.useEffect;function Qt(e){var t=g.useRef(e);return L4(function(){t.current=e}),g.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 I4=g.forwardRef(function(e,t){var n=e.action,r=Xk(e,["action"]),i=n??"#",s=P4(),o=s.handleReset,a=s.handleSubmit;return g.createElement("form",qe({onSubmit:a,ref:t,onReset:o,action:i},r))});I4.displayName="Form";const Jk=({init:e,schema:t,action:n})=>R4({initialValues:e,validationSchema:t,validateOnBlur:!1,enableReinitialize:!0,validateOnChange:!1,validateOnMount:!1,onSubmit:r=>{n(r)}});function $4(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 z4=e=>{switch(e){case"success":return U4;case"info":return W4;case"warning":return H4;case"error":return q4;default:return null}},V4=Array(12).fill(0),B4=({visible:e,className:t})=>D.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},D.createElement("div",{className:"sonner-spinner"},V4.map((n,r)=>D.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),U4=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),H4=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},D.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"})),W4=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),q4=D.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},D.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"})),K4=D.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"},D.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),D.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),G4=()=>{const[e,t]=D.useState(document.hidden);return D.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Hp=1;class Q4{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:Hp++,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 u=>{if(o=["resolve",u],D.isValidElement(u))s=!1,this.create({id:r,type:"default",message:u});else if(X4(u)&&!u.ok){s=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,p=typeof c=="object"?c:{message:c};this.create({id:r,type:"error",description:f,...p})}else if(u instanceof Error){s=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,p=typeof c=="object"?c:{message:c};this.create({id:r,type:"error",description:f,...p})}else if(n.success!==void 0){s=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,p=typeof c=="object"?c:{message:c};this.create({id:r,type:"success",description:f,...p})}}).catch(async u=>{if(o=["reject",u],n.error!==void 0){s=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:c,...f})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>a.then(()=>o[0]==="reject"?d(o[1]):u(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)||Hp++;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 Tt=new Q4,Y4=(e,t)=>{const n=(t==null?void 0:t.id)||Hp++;return Tt.addToast({title:e,...t,id:n}),n},X4=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Z4=Y4,J4=()=>Tt.toasts,eL=()=>Tt.getActiveToasts(),eE=Object.assign(Z4,{success:Tt.success,info:Tt.info,warning:Tt.warning,error:Tt.error,custom:Tt.custom,message:Tt.message,promise:Tt.promise,dismiss:Tt.dismiss,loading:Tt.loading},{getHistory:J4,getToasts:eL});$4("[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 Ol(e){return e.label!==void 0}const tL=3,nL="24px",rL="16px",Zy=4e3,iL=356,sL=14,oL=45,aL=200;function Pn(...e){return e.filter(Boolean).join(" ")}function lL(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const uL=e=>{var t,n,r,i,s,o,a,l,u;const{invert:d,toast:c,unstyled:f,interacting:p,setHeights:h,visibleToasts:y,heights:w,index:m,toasts:v,expanded:b,removeToast:T,defaultRichColors:E,closeButton:C,style:S,cancelButtonStyle:_,actionButtonStyle:N,className:R="",descriptionClassName:I="",duration:ne,position:te,gap:ee,expandByDefault:le,classNames:X,icons:re,closeButtonAriaLabel:O="Close toast"}=e,[M,U]=D.useState(null),[B,H]=D.useState(null),[G,ue]=D.useState(!1),[he,Y]=D.useState(!1),[De,Ye]=D.useState(!1),[Xe,Ot]=D.useState(!1),[En,un]=D.useState(!1),[ui,gr]=D.useState(0),[cs,ci]=D.useState(0),bt=D.useRef(c.duration||ne||Zy),vr=D.useRef(null),He=D.useRef(null),yr=m===0,ko=m+1<=y,P=c.type,L=c.dismissible!==!1,j=c.className||"",A=c.descriptionClassName||"",V=D.useMemo(()=>w.findIndex(Z=>Z.toastId===c.id)||0,[w,c.id]),q=D.useMemo(()=>{var Z;return(Z=c.closeButton)!=null?Z:C},[c.closeButton,C]),se=D.useMemo(()=>c.duration||ne||Zy,[c.duration,ne]),$e=D.useRef(0),Ze=D.useRef(0),Tn=D.useRef(0),qt=D.useRef(null),[ds,Qn]=te.split("-"),xr=D.useMemo(()=>w.reduce((Z,We,st)=>st>=V?Z:Z+We.height,0),[w,V]),fs=G4(),Eo=c.invert||d,di=P==="loading";Ze.current=D.useMemo(()=>V*ee+xr,[V,xr]),D.useEffect(()=>{bt.current=se},[se]),D.useEffect(()=>{ue(!0)},[]),D.useEffect(()=>{const Z=He.current;if(Z){const We=Z.getBoundingClientRect().height;return ci(We),h(st=>[{toastId:c.id,height:We,position:c.position},...st]),()=>h(st=>st.filter(Dt=>Dt.toastId!==c.id))}},[h,c.id]),D.useLayoutEffect(()=>{if(!G)return;const Z=He.current,We=Z.style.height;Z.style.height="auto";const st=Z.getBoundingClientRect().height;Z.style.height=We,ci(st),h(Dt=>Dt.find(Je=>Je.toastId===c.id)?Dt.map(Je=>Je.toastId===c.id?{...Je,height:st}:Je):[{toastId:c.id,height:st,position:c.position},...Dt])},[G,c.title,c.description,h,c.id]);const Cn=D.useCallback(()=>{Y(!0),gr(Ze.current),h(Z=>Z.filter(We=>We.toastId!==c.id)),setTimeout(()=>{T(c)},aL)},[c,T,h,Ze]);D.useEffect(()=>{if(c.promise&&P==="loading"||c.duration===1/0||c.type==="loading")return;let Z;return b||p||fs?(()=>{if(Tn.current<$e.current){const Dt=new Date().getTime()-$e.current;bt.current=bt.current-Dt}Tn.current=new Date().getTime()})():(()=>{bt.current!==1/0&&($e.current=new Date().getTime(),Z=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Cn()},bt.current))})(),()=>clearTimeout(Z)},[b,p,c,P,fs,Cn]),D.useEffect(()=>{c.delete&&Cn()},[Cn,c.delete]);function ME(){var Z;if(re!=null&&re.loading){var We;return D.createElement("div",{className:Pn(X==null?void 0:X.loader,c==null||(We=c.classNames)==null?void 0:We.loader,"sonner-loader"),"data-visible":P==="loading"},re.loading)}return D.createElement(B4,{className:Pn(X==null?void 0:X.loader,c==null||(Z=c.classNames)==null?void 0:Z.loader),visible:P==="loading"})}var fg,pg;return D.createElement("li",{tabIndex:0,ref:He,className:Pn(R,j,X==null?void 0:X.toast,c==null||(t=c.classNames)==null?void 0:t.toast,X==null?void 0:X.default,X==null?void 0:X[P],c==null||(n=c.classNames)==null?void 0:n[P]),"data-sonner-toast":"","data-rich-colors":(fg=c.richColors)!=null?fg:E,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":G,"data-promise":!!c.promise,"data-swiped":En,"data-removed":he,"data-visible":ko,"data-y-position":ds,"data-x-position":Qn,"data-index":m,"data-front":yr,"data-swiping":De,"data-dismissible":L,"data-type":P,"data-invert":Eo,"data-swipe-out":Xe,"data-swipe-direction":B,"data-expanded":!!(b||le&&G),style:{"--index":m,"--toasts-before":m,"--z-index":v.length-m,"--offset":`${he?ui:Ze.current}px`,"--initial-height":le?"auto":`${cs}px`,...S,...c.style},onDragEnd:()=>{Ye(!1),U(null),qt.current=null},onPointerDown:Z=>{di||!L||(vr.current=new Date,gr(Ze.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(Ye(!0),qt.current={x:Z.clientX,y:Z.clientY}))},onPointerUp:()=>{var Z,We,st;if(Xe||!L)return;qt.current=null;const Dt=Number(((Z=He.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nl=Number(((We=He.current)==null?void 0:We.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Je=new Date().getTime()-((st=vr.current)==null?void 0:st.getTime()),Kt=M==="x"?Dt:nl,rl=Math.abs(Kt)/Je;if(Math.abs(Kt)>=oL||rl>.11){gr(Ze.current),c.onDismiss==null||c.onDismiss.call(c,c),H(M==="x"?Dt>0?"right":"left":nl>0?"down":"up"),Cn(),Ot(!0);return}else{var cn,dn;(cn=He.current)==null||cn.style.setProperty("--swipe-amount-x","0px"),(dn=He.current)==null||dn.style.setProperty("--swipe-amount-y","0px")}un(!1),Ye(!1),U(null)},onPointerMove:Z=>{var We,st,Dt;if(!qt.current||!L||((We=window.getSelection())==null?void 0:We.toString().length)>0)return;const Je=Z.clientY-qt.current.y,Kt=Z.clientX-qt.current.x;var rl;const cn=(rl=e.swipeDirections)!=null?rl:lL(te);!M&&(Math.abs(Kt)>1||Math.abs(Je)>1)&&U(Math.abs(Kt)>Math.abs(Je)?"x":"y");let dn={x:0,y:0};const hg=fi=>1/(1.5+Math.abs(fi)/20);if(M==="y"){if(cn.includes("top")||cn.includes("bottom"))if(cn.includes("top")&&Je<0||cn.includes("bottom")&&Je>0)dn.y=Je;else{const fi=Je*hg(Je);dn.y=Math.abs(fi)<Math.abs(Je)?fi:Je}}else if(M==="x"&&(cn.includes("left")||cn.includes("right")))if(cn.includes("left")&&Kt<0||cn.includes("right")&&Kt>0)dn.x=Kt;else{const fi=Kt*hg(Kt);dn.x=Math.abs(fi)<Math.abs(Kt)?fi:Kt}(Math.abs(dn.x)>0||Math.abs(dn.y)>0)&&un(!0),(st=He.current)==null||st.style.setProperty("--swipe-amount-x",`${dn.x}px`),(Dt=He.current)==null||Dt.style.setProperty("--swipe-amount-y",`${dn.y}px`)}},q&&!c.jsx&&P!=="loading"?D.createElement("button",{"aria-label":O,"data-disabled":di,"data-close-button":!0,onClick:di||!L?()=>{}:()=>{Cn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Pn(X==null?void 0:X.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(pg=re==null?void 0:re.close)!=null?pg:K4):null,P||c.icon||c.promise?D.createElement("div",{"data-icon":"",className:Pn(X==null?void 0:X.icon,c==null||(i=c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||ME():null,c.type!=="loading"?c.icon||(re==null?void 0:re[P])||z4(P):null):null,D.createElement("div",{"data-content":"",className:Pn(X==null?void 0:X.content,c==null||(s=c.classNames)==null?void 0:s.content)},D.createElement("div",{"data-title":"",className:Pn(X==null?void 0:X.title,c==null||(o=c.classNames)==null?void 0:o.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?D.createElement("div",{"data-description":"",className:Pn(I,A,X==null?void 0:X.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),D.isValidElement(c.cancel)?c.cancel:c.cancel&&Ol(c.cancel)?D.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||_,onClick:Z=>{Ol(c.cancel)&&L&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Z),Cn())},className:Pn(X==null?void 0:X.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,D.isValidElement(c.action)?c.action:c.action&&Ol(c.action)?D.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||N,onClick:Z=>{Ol(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Z),!Z.defaultPrevented&&Cn())},className:Pn(X==null?void 0:X.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function Jy(){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 cL(e,t){const n={};return[e,t].forEach((r,i)=>{const s=i===1,o=s?"--mobile-offset":"--offset",a=s?rL:nL;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}const dL=D.forwardRef(function(t,n){const{invert:r,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:a,className:l,offset:u,mobileOffset:d,theme:c="light",richColors:f,duration:p,style:h,visibleToasts:y=tL,toastOptions:w,dir:m=Jy(),gap:v=sL,icons:b,containerAriaLabel:T="Notifications"}=t,[E,C]=D.useState([]),S=D.useMemo(()=>Array.from(new Set([i].concat(E.filter(B=>B.position).map(B=>B.position)))),[E,i]),[_,N]=D.useState([]),[R,I]=D.useState(!1),[ne,te]=D.useState(!1),[ee,le]=D.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=D.useRef(null),re=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=D.useRef(null),M=D.useRef(!1),U=D.useCallback(B=>{C(H=>{var G;return(G=H.find(ue=>ue.id===B.id))!=null&&G.delete||Tt.dismiss(B.id),H.filter(({id:ue})=>ue!==B.id)})},[]);return D.useEffect(()=>Tt.subscribe(B=>{if(B.dismiss){const H=E.map(G=>G.id===B.id?{...G,delete:!0}:G);requestAnimationFrame(()=>{C(H)});return}setTimeout(()=>{c2.flushSync(()=>{C(H=>{const G=H.findIndex(ue=>ue.id===B.id);return G!==-1?[...H.slice(0,G),{...H[G],...B},...H.slice(G+1)]:[B,...H]})})})}),[E]),D.useEffect(()=>{if(c!=="system"){le(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?le("dark"):le("light")),typeof window>"u")return;const B=window.matchMedia("(prefers-color-scheme: dark)");try{B.addEventListener("change",({matches:H})=>{le(H?"dark":"light")})}catch{B.addListener(({matches:G})=>{try{le(G?"dark":"light")}catch(ue){console.error(ue)}})}},[c]),D.useEffect(()=>{E.length<=1&&I(!1)},[E]),D.useEffect(()=>{const B=H=>{var G;if(s.every(Y=>H[Y]||H.code===Y)){var he;I(!0),(he=X.current)==null||he.focus()}H.code==="Escape"&&(document.activeElement===X.current||(G=X.current)!=null&&G.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[s]),D.useEffect(()=>{if(X.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,M.current=!1)}},[X.current]),D.createElement("section",{ref:n,"aria-label":`${T} ${re}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},S.map((B,H)=>{var G;const[ue,he]=B.split("-");return E.length?D.createElement("ol",{key:B,dir:m==="auto"?Jy():m,tabIndex:-1,ref:X,className:l,"data-sonner-toaster":!0,"data-sonner-theme":ee,"data-y-position":ue,"data-lifted":R&&E.length>1&&!o,"data-x-position":he,style:{"--front-toast-height":`${((G=_[0])==null?void 0:G.height)||0}px`,"--width":`${iL}px`,"--gap":`${v}px`,...h,...cL(u,d)},onBlur:Y=>{M.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(M.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||M.current||(M.current=!0,O.current=Y.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{ne||I(!1)},onDragEnd:()=>I(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||te(!0)},onPointerUp:()=>te(!1)},E.filter(Y=>!Y.position&&H===0||Y.position===B).map((Y,De)=>{var Ye,Xe;return D.createElement(uL,{key:Y.id,icons:b,index:De,toast:Y,defaultRichColors:f,duration:(Ye=w==null?void 0:w.duration)!=null?Ye:p,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:r,visibleToasts:y,closeButton:(Xe=w==null?void 0:w.closeButton)!=null?Xe:a,interacting:ne,position:B,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,closeButtonAriaLabel:w==null?void 0:w.closeButtonAriaLabel,removeToast:U,toasts:E.filter(Ot=>Ot.position==Y.position),heights:_.filter(Ot=>Ot.position==Y.position),setHeights:N,expandByDefault:o,gap:v,expanded:R,swipeDirections:t.swipeDirections})})):null}))});function Wp(e){return eE.custom(t=>x.jsx(fL,{id:t,title:e.title,description:e.description,variant:e.variant}))}const Bd={success:{bg:"bg-green-100/80 border-green-200",text:"text-green-800"},error:{bg:"bg-red-100/80 border-red-200",text:"text-red-800"},warning:{bg:"bg-orange-100/80 border-orange-200",text:"text-orange-800"},info:{bg:"bg-blue-100/80 border-blue-200",text:"text-blue-800"}};function fL(e){const{title:t,description:n,button:r,id:i,variant:s}=e;return x.jsxs("div",{className:ke("flex rounded-lg shadow-lg ring-1 ring-black/5 w-full md:max-w-[364px] items-center p-2.5 backdrop-blur-sm mb-2 border",Bd[s||"info"].bg),children:[x.jsx("div",{className:"flex flex-1 items-center",children:x.jsxs("div",{className:"w-full",children:[t&&x.jsx("p",{className:ke("text-sm font-medium",Bd[s||"info"].text),children:t}),x.jsx("p",{className:ke("text-sm",Bd[s||"info"].text,{"mt-1":!!t}),children:n})]})}),r&&x.jsx("div",{className:"ml-5 shrink-0 rounded-md text-sm font-medium text-indigo-600 hover:text-indigo-500 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden",children:x.jsx("button",{className:"rounded bg-indigo-50 px-3 py-1 text-sm font-semibold text-indigo-600 hover:bg-indigo-100",onClick:()=>{r.onClick(),eE.dismiss(i)},children:r.label})})]})}function pL(e){return Array.isArray(e)&&e[0].field!==void 0}const tE=(e,t)=>{var n;if(pL(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||Wp({description:e.message,variant:"error"});return}if(e&&e.error){t!=null&&t.noToast||Wp({description:e.error,variant:"error"});return}};function hL(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 og({id:e,text:t,className:n,required:r}){return t?x.jsxs("label",{htmlFor:e,className:ke("mb-1 block text-sm font-medium text-slate-700",n),children:[t,r&&x.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}):null}const Ud={sm:"px-3 py-1 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-15"};function mL({id:e,label:t,suffix:n,prefix:r,size:i="md",type:s="text",noMargin:o=!1,required:a=!1,error:l,ariaDescribedBy:u,className:d,ariaInvalid:c,ariaLabel:f,autoFocus:p,...h}){const y=hr();return x.jsxs("div",{className:ke({"mb-2":!o},d),children:[x.jsx(og,{id:e,text:t,required:a}),x.jsxs("div",{className:"flex items-center",children:[r&&x.jsx("span",{className:ke("inline-block border border-solid border-r-0 border-slate-200 bg-slate-100 rounded-l-md",Ud[i],{"border-red-500!":!!l}),children:r}),x.jsx("input",{id:e,className:ke("text-gray-800 border border-solid rounded-lg block text-base py-2 px-3 w-full border-slate-200 focus:outline-hidden focus:border-custom-500 disabled:bg-slate-100 disabled:border-slate-300 disabled:text-slate-500 placeholder:text-slate-400",Ud[i],{"rounded-l-none":!!r,"rounded-r-none":!!n,"border-red-500! text-red-500!":!!l}),type:s,required:a,"aria-describedby":u,"aria-invalid":c,"aria-label":f,style:{color:y.getColor(Q.InputText),backgroundColor:y.getColor(Q.InputBackground),borderColor:y.getColor(Q.InputBorder),borderRadius:y.getRadius()},...h}),n&&x.jsx("span",{className:ke("inline-block border border-solid border-l-0 border-slate-200 bg-slate-100 rounded-r-md",Ud[i],{"border-red-500!":!!l}),children:n})]}),!!l&&x.jsx("p",{className:"mt-1 text-xs text-red-500",children:l})]})}const gL=(e,t)=>{document.cookie=`${e}=${t}`},nE=g.createContext({}),vL=()=>`${window.location.pathname}_$$_${document.title}`,yL=()=>{const e=localStorage.getItem("page");return!e||e===""?"/":e},xL=()=>{const e=localStorage.getItem("p-history");if(!e||e==="")return[];try{return JSON.parse(e)}catch{return[]}};function wL({children:e}){const[t,n]=g.useState("/"),[r,i]=g.useState(xL());function s(){i([]),localStorage.removeItem("p-history")}const o=a=>{n(a),i(l=>[...new Set([...l,a])]),localStorage.setItem("page",a),localStorage.setItem("p-history",JSON.stringify(r))};return x.jsx(nE.Provider,{value:{page:t,setPage:o,history:r,clearHistory:s},children:e})}function ag(){return g.useContext(nE)}function bL({label:e,id:t,value:n="",className:r,placeholder:i,children:s,required:o,error:a,...l}){return x.jsxs("div",{className:r||"",children:[e&&x.jsx(og,{id:t,required:o,text:e}),x.jsx("select",{id:t,"aria-placeholder":i,value:n,"aria-label":e,className:"light forelect transition-colors duration-200 border border-solid text-gray-900 text-sm rounded-md focus:ring-emerald-500 focus-visible:ring-0 focus-visible:shadow-none outline focus-visible:outline-none focus-visible:ber-emerald-500 focus:border-emerald-500 block w-full px-2 py-2 placeholder-fuchsia-600 caret-emer-500",onChange:l.onChange,required:o,...l,children:s}),!!a&&x.jsx("p",{className:"1 texm text-r500",children:a})]})}const ex={ring:{label:"",input:"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:bg-secondary transition-colors duration-200 px-2 py-1 rounded-md",input:""}},SL={blue:"checked:border-blue-500 checked:bg-blue-500 checked:before:bg-blue-500",indigo:"checked:border-indigo-500 checked:bg-indigo-500 checked:before:bg-indigo-500",green:"checked:border-green-500 checked:bg-green-500 checked:before:bg-green-500",red:"checked:border-red-500 checked:bg-red-500 checked:before:bg-red-500",orange:"checked:border-orange-500 checked:bg-orange-500 checked:before:bg-orange-500"},kL={sm:"h-4 w-4 lg:h-3 lg:w-3",md:"h-6 w-6 lg:h-5 lg:w-5",lg:"h-8 w-8 lg:h-7 lg:w-7"},EL={sm:"h-3 w-3 lg:h-2.5 lg:w-2.5",md:"h-5 w-5 lg:h-4 lg:w-4",lg:"h-7 w-7 lg:h-6 lg:w-6"};function TL({children:e,name:t,required:n,value:r,checked:i,onChange:s,onBlur:o,red:a,id:l=t,size:u="md",effect:d="ring",reversed:c=!1,variant:f="blue",...p}){return x.jsxs("div",{children:[x.jsxs("div",{className:`flex items-center justify-between ${c?"flex-row-reverse":""} ${ex[d].label}`,children:[x.jsxs("label",{className:"disable-highlight relative mr-3 flex cursor-pointer items-center rounded-full",htmlFor:l,children:[x.jsx("input",{id:l,name:t,type:"checkbox",className:`border-gray-200 peer cursor-pointer appearance-none rounded-md border border-solid bg-white transition-all ${SL[f]} ${kL[u]} ${ex[d].input}`,required:n,checked:i,value:r,onChange:h=>s==null?void 0:s(h.target.checked),onBlur:h=>o==null?void 0:o(h.target.checked),...p}),x.jsx("div",{className:"pointer-events-none absolute left-2/4 top-2/4 translate-x-2/4 translate-y-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",children:x.jsx(Oe.Check,{className:EL[u]})})]}),x.jsx("label",{className:"disable-highlight mt-px flex grow cursor-pointer select-none items-center justify-between font-light text-gray-800",htmlFor:l,children:e})]}),a&&x.jsx("small",{className:"text-xs text-red-500",children:a})]})}function CL({id:e,value:t,name:n,onChange:r,children:i,disabled:s,className:o}){return x.jsxs("label",{htmlFor:e,className:ke("relative flex cursor-pointer items-center rounded-md p-2 focus:outline-none",{"opacity-60 cursor-not-allowed":s},o),children:[x.jsx("input",{type:"radio",id:e,name:n,value:e,checked:t,onChange:a=>{r&&r(a.target.checked)},className:"peer h-4 w-4 cursor-pointer appearance-none rounded-full border-2 border-slate-300 transition-all checked:border-[5px] checked:border-indigo-600 focus:ring-0 focus:ring-offset-0",disabled:s}),x.jsx("span",{className:"ml-2 text-sm font-medium text-slate-700",children:i})]})}function _L({id:e,label:t,children:n,required:r,className:i}){return x.jsxs("fieldset",{id:e,className:i,children:[t&&x.jsxs("legend",{className:"mb-1 block text-sm font-medium text-slate-700",children:[t," ",r&&x.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),x.jsx("div",{className:"flex flex-col gap-0 mt-1",children:n})]})}const tx=Object.assign(CL,{Group:_L});function lg({id:e,label:t,suffix:n,prefix:r,className:i,noMargin:s,rows:o=3,type:a="text",required:l=!1,error:u,ariaInvalid:d,inputRef:c,autoFocus:f=!0,style:p,...h}){const y=hr();return x.jsxs("div",{className:ke({"mb-2":!s},i),children:[t&&x.jsx(og,{id:e,text:t,required:l}),x.jsx("textarea",{className:ke("resize-none max-h-36 text-gray-800 w-full py-2 px-3 border border-solid rounded-lg block border-slate-200 focus:outline-hidden focus:border-custom-500 disabled:bg-slate-100 disabled:border-slate-300 disabled:text-slate-500 placeholder:text-slate-400 invalid:border-red-500 invalid:text-red-500",{"border-red-500! text-red-500!":!!u}),id:e,rows:o,"aria-invalid":d,...h,ref:c,autoFocus:f,style:{...p,color:y.getColor(Q.InputText),backgroundColor:y.getColor(Q.InputBackground),borderColor:y.getColor(Q.InputBorder),borderRadius:y.getRadius()}}),!!u&&x.jsx("p",{className:"text-red-500 mt-1 text-xs",children:u})]})}function PL({onOk:e,clientId:t,widgetId:n,appearance:r}){var y,w,m,v,b,T,E,C;const i=hr(),{defaultValues:s}=ln(),[o,a]=g.useState(!1),l=ag(),u=pD(),d=(w=(y=r==null?void 0:r.body)==null?void 0:y.inputs)==null?void 0:w.reduce((S,_)=>{const N=_.remember?tu(_.name):void 0;return S[_.name]=N||(s==null?void 0:s[_.name])||"",S},{}),c=(v=(m=r==null?void 0:r.body)==null?void 0:m.inputs)==null?void 0:v.reduce((S,_)=>(S[_.name]="",S),{}),f=Km((T=(b=r==null?void 0:r.body)==null?void 0:b.inputs)==null?void 0:T.reduce((S,_)=>(S[_.name]=_.required?Bu().required(_.label):Bu(),S),{})),p=Jk({init:{...d},schema:f,action:async S=>{var R;a(!0);const[_,N]=await u.mutateAsync({inputs:S,history:l.history,client_id:t,widget_id:n});if(a(!1),uc(N)){fD(_)&&(Nd(Hn.CustomerToken,_.customer_token),Nd(Hn.CustomerRefreshToken,_.customer_refresh_token),Nd(Hn.DeviceId,_.device_id)),l.clearHistory();for(const I of((R=r==null?void 0:r.body)==null?void 0:R.inputs)||[])I.remember&&gL(I.name,S[I.name]);e==null||e();return}tE(_,{form:p})}}),h=!hL(c,p.values);return x.jsx("section",{className:"h-full overflow-y-auto px-6 py-5 bg-white",style:{backgroundColor:i.getColor(Q.GreeterBackground)},children:x.jsxs("form",{className:"grid grid-cols-1 gap-4",onSubmit:S=>{S.preventDefault(),p.handleSubmit()},children:[(C=(E=r==null?void 0:r.body)==null?void 0:E.inputs)==null?void 0:C.map(S=>{var _,N;if(["text","email","phone"].includes(S.type))return x.jsx(mL,{id:S.name,name:S.name,type:S.type,label:S.label,value:p.values[S.name],onChange:p.handleChange,onBlur:p.handleBlur,autoComplete:"off",placeholder:S.placeholder,error:p.errors[S.name],ariaInvalid:p.errors.name?!0:void 0,required:S.required,noMargin:!0},S.name);if(S.type==="select")return x.jsx(bL,{id:S.name,name:S.name,value:p.values[S.name],onChange:p.handleChange,label:S.label,required:S.required,children:(_=S.options)==null?void 0:_.map(R=>x.jsx("option",{value:R,children:R},R))},S.name);if(S.type==="checkbox")return x.jsx(TL,{id:S.name,name:S.name,value:p.values[S.name],onChange:p.handleChange,required:S.required,children:S.label},S.name);if(S.type==="radio")return x.jsx(tx.Group,{id:S.name,label:S.label,required:S.required,children:(N=S.options)==null?void 0:N.map(R=>x.jsx(tx,{onChange:I=>{I?p.setFieldValue(S.name,R):p.setFieldValue(S.name,"")},id:R,name:S.name,value:R===p.values[S.name],children:R},R))},S.name);if(S.type==="textarea")return x.jsx(lg,{id:S.name,name:S.name,value:p.values[S.name],onChange:p.handleChange,placeholder:S.placeholder,error:p.errors[S.name],required:S.required,label:S.label},S.name)}),x.jsx(or,{textKey:Q.GreeterButtonText,bgKey:Q.GreeterButtonBackground,type:"submit",disabled:!h||o,className:"mt-3 transition-all duration-300 hover:opacity-90 transform hover:translate-y-[-1px] shadow-sm",children:o?"Yükleniyor...":"Sohbet Oluştur"})]})})}function jL({onClose:e}){return x.jsx(or,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"md",rounded:!0,onClick:e,className:"absolute top-2 right-2",children:x.jsx(Oe.X,{className:"size-5"})})}function AL({image_url:e,name:t,size:n="size-9"}){return e?x.jsx("img",{src:e,alt:t,className:ke("rounded-md",n)}):x.jsx("div",{className:"flex items-center justify-center gap-1",children:x.jsx(Oe.Website,{className:ke("text-slate-500",n)})})}function RL(){const e=ag(),t=g.useCallback(()=>{const n=window.location.pathname;n!==e.page&&e.setPage(n)},[e.page]);return ak("popstate",t),null}function OL(){const e=ns(),t=ag(),n=g.useCallback(()=>{const r=window.location.pathname;if(r!==t.page){if(e){e.emit(qn.PageChange,{page:r});return}t.setPage(r)}},[e,t.page]);return ak("popstate",n),g.useEffect(()=>{if(!e)return;const r=yL(),i=vL();r!==i&&(e.emit(qn.PageChange,{page:i}),t.setPage(i))},[e]),null}function DL({children:e}){const t=hr(),{widget:n}=ln();return n?x.jsx(Ki,{children:x.jsxs(Me.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.3,ease:"easeOut"},className:"h-full w-full relative overflow-hidden",children:[x.jsx(Me.div,{initial:{opacity:.8},animate:{opacity:1},transition:{duration:.2},style:{background:t.getColor(Q.GreeterTopBackground)},className:"h-44 absolute top-0 left-0 w-full rounded-t-xl flex flex-col items-center justify-center shadow-sm"}),e]})}):null}function FL(){return RL(),null}const Hd=(e,t)=>{var n;return(n=e.find(r=>r.type===t))==null?void 0:n.content};function NL(){var c,f,p,h,y,w;const e=hr(),{widget:t,setOpen:n}=ln(),[r,i]=g.useState(!0),s=Vm(),o=xc();if(!t)return null;const a=()=>{n(!1)};if(g.useEffect(()=>{hD(t.client_id).then(([m,v])=>{uc(v)&&s.push("chat")}).finally(()=>{i(!1)})},[]),r)return null;const l=Hd(((f=(c=t.appearance)==null?void 0:c.head)==null?void 0:f.elements)||[],"text"),u=Hd(((h=(p=t.appearance)==null?void 0:p.head)==null?void 0:h.elements)||[],"title"),d=Hd(((w=(y=t.appearance)==null?void 0:y.head)==null?void 0:w.elements)||[],"logo");return x.jsxs(DL,{children:[x.jsxs("div",{className:"relative flex flex-col gap-3 items-center justify-center h-44",children:[o&&x.jsx(jL,{onClose:a}),d&&x.jsx(Me.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.1,duration:.2},children:x.jsx(AL,{name:t.name,image_url:d,size:"size-20"})}),u&&x.jsx(Me.div,{initial:{y:5,opacity:0},animate:{y:0,opacity:1},transition:{delay:.15,duration:.2},style:{color:e.getColor(Q.GreeterTopText)},className:"text-white text-xl font-bold",children:u}),l&&x.jsx(Me.div,{initial:{y:5,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2,duration:.2},style:{color:e.getColor(Q.GreeterTopText)},className:"text-white text-sm opacity-90",children:l})]}),x.jsx(Me.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.25,duration:.2},className:"overflow-y-auto",style:{height:"calc(100% - 11rem)"},children:x.jsx(PL,{clientId:t.client_id,widgetId:t.link_id,appearance:t.appearance,onOk:()=>{s.push("chat")}})})]})}function ML(){return x.jsxs(x.Fragment,{children:[x.jsx(uk,{border:!0,children:x.jsx(NL,{})}),x.jsx(FL,{})]})}const LL=[{path:"/",component:ML,name:"registration"}];var ms=(e=>(e.Open="open",e.Closed="closed",e.Pending="pending",e.Deleted="deleted",e.Created="created",e))(ms||{}),rE=(e=>(e.AdminJoin="admin_join",e))(rE||{}),lt=(e=>(e.Customer="customer",e.User="user",e.System="system",e.Activity="activity",e))(lt||{});function IL({name:e,avatar:t,className:n="text-neutral-500"}){return x.jsxs(Me.div,{initial:{opacity:.8},animate:{opacity:1},className:"flex gap-2 items-center",children:[x.jsx("div",{className:"min-w-max",children:x.jsxs("span",{children:[t&&x.jsx("img",{className:"size-10 rounded-full border border-white/20 shadow-sm",src:t,"aria-label":e}),!t&&x.jsx("div",{className:"size-10 rounded-full bg-white/20 flex items-center justify-center text-white font-medium",children:e.charAt(0).toUpperCase()})]})}),x.jsx("div",{className:"flex flex-col",children:x.jsx("span",{className:ke("line-clamp-1 font-medium",n),children:e})})]})}var $L=Object.defineProperty,zL=(e,t,n)=>t in e?$L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wd=(e,t,n)=>(zL(e,typeof t!="symbol"?t+"":t,n),n);let VL=class{constructor(){Wd(this,"current",this.detect()),Wd(this,"handoffState","pending"),Wd(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},iu=new VL;function BL(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ic(){let e=[],t={addEventListener(n,r,i,s){return n.addEventListener(r,i,s),t.add(()=>n.removeEventListener(r,i,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return BL(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=Ic();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function iE(){let[e]=g.useState(Ic);return g.useEffect(()=>()=>e.dispose(),[e]),e}let Zr=(e,t)=>{iu.isServer?g.useEffect(e,t):g.useLayoutEffect(e,t)};function sE(e){let t=g.useRef(e);return Zr(()=>{t.current=e},[e]),t}let ir=function(e){let t=sE(e);return D.useCallback((...n)=>t.current(...n),[t])};function qp(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function $c(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,$c),r}var oE=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(oE||{}),zr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(zr||{});function aE(){let e=HL();return g.useCallback(t=>UL({mergeRefs:e,...t}),[e])}function UL({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:s=!0,name:o,mergeRefs:a}){a=a??WL;let l=lE(t,e);if(s)return Dl(l,n,r,o,a);let u=i??0;if(u&2){let{static:d=!1,...c}=l;if(d)return Dl(c,n,r,o,a)}if(u&1){let{unmount:d=!0,...c}=l;return $c(d?0:1,{0(){return null},1(){return Dl({...c,hidden:!0,style:{display:"none"}},n,r,o,a)}})}return Dl(l,n,r,o,a)}function Dl(e,t={},n,r,i){let{as:s=n,children:o,refName:a="ref",...l}=qd(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof o=="function"?o(t):o;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let f=!1,p=[];for(let[h,y]of Object.entries(t))typeof y=="boolean"&&(f=!0),y===!0&&p.push(h.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(f){c["data-headlessui-state"]=p.join(" ");for(let h of p)c[`data-${h}`]=""}}if(s===g.Fragment&&(Object.keys(xi(l)).length>0||Object.keys(xi(c)).length>0))if(!g.isValidElement(d)||Array.isArray(d)&&d.length>1){if(Object.keys(xi(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(xi(l)).concat(Object.keys(xi(c))).map(f=>` - ${f}`).join(`
|
|
105
|
+
*/var Qe=typeof Symbol=="function"&&Symbol.for,rg=Qe?Symbol.for("react.element"):60103,ig=Qe?Symbol.for("react.portal"):60106,_c=Qe?Symbol.for("react.fragment"):60107,Pc=Qe?Symbol.for("react.strict_mode"):60108,jc=Qe?Symbol.for("react.profiler"):60114,Ac=Qe?Symbol.for("react.provider"):60109,Rc=Qe?Symbol.for("react.context"):60110,sg=Qe?Symbol.for("react.async_mode"):60111,Oc=Qe?Symbol.for("react.concurrent_mode"):60111,Dc=Qe?Symbol.for("react.forward_ref"):60112,Fc=Qe?Symbol.for("react.suspense"):60113,E4=Qe?Symbol.for("react.suspense_list"):60120,Nc=Qe?Symbol.for("react.memo"):60115,Mc=Qe?Symbol.for("react.lazy"):60116,T4=Qe?Symbol.for("react.block"):60121,C4=Qe?Symbol.for("react.fundamental"):60117,_4=Qe?Symbol.for("react.responder"):60118,P4=Qe?Symbol.for("react.scope"):60119;function Wt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rg:switch(e=e.type,e){case sg:case Oc:case _c:case jc:case Pc:case Fc:return e;default:switch(e=e&&e.$$typeof,e){case Rc:case Dc:case Mc:case Nc:case Ac:return e;default:return t}}case ig:return t}}}function Yk(e){return Wt(e)===Oc}pe.AsyncMode=sg;pe.ConcurrentMode=Oc;pe.ContextConsumer=Rc;pe.ContextProvider=Ac;pe.Element=rg;pe.ForwardRef=Dc;pe.Fragment=_c;pe.Lazy=Mc;pe.Memo=Nc;pe.Portal=ig;pe.Profiler=jc;pe.StrictMode=Pc;pe.Suspense=Fc;pe.isAsyncMode=function(e){return Yk(e)||Wt(e)===sg};pe.isConcurrentMode=Yk;pe.isContextConsumer=function(e){return Wt(e)===Rc};pe.isContextProvider=function(e){return Wt(e)===Ac};pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rg};pe.isForwardRef=function(e){return Wt(e)===Dc};pe.isFragment=function(e){return Wt(e)===_c};pe.isLazy=function(e){return Wt(e)===Mc};pe.isMemo=function(e){return Wt(e)===Nc};pe.isPortal=function(e){return Wt(e)===ig};pe.isProfiler=function(e){return Wt(e)===jc};pe.isStrictMode=function(e){return Wt(e)===Pc};pe.isSuspense=function(e){return Wt(e)===Fc};pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_c||e===Oc||e===jc||e===Pc||e===Fc||e===E4||typeof e=="object"&&e!==null&&(e.$$typeof===Mc||e.$$typeof===Nc||e.$$typeof===Ac||e.$$typeof===Rc||e.$$typeof===Dc||e.$$typeof===C4||e.$$typeof===_4||e.$$typeof===P4||e.$$typeof===T4)};pe.typeOf=Wt;Qk.exports=pe;var j4=Qk.exports,Xk=j4,A4={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zk={};Zk[Xk.ForwardRef]=A4;Zk[Xk.Memo]=R4;function qe(){return qe=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},qe.apply(this,arguments)}function Jk(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 Lc=m.createContext(void 0);Lc.displayName="FormikContext";Lc.Provider;Lc.Consumer;function O4(){var e=m.useContext(Lc);return e}var hn=function(t){return typeof t=="function"},Ic=function(t){return t!==null&&typeof t=="object"},D4=function(t){return String(Math.floor(Number(t)))===t},Bd=function(t){return Object.prototype.toString.call(t)==="[object String]"},Vd=function(t){return Ic(t)&&hn(t.then)};function Nt(e,t,n,r){r===void 0&&(r=0);for(var i=Gk(t);e&&r<i.length;)e=e[i[r++]];return r!==i.length&&!e||e===void 0?n:e}function zi(e,t,n){for(var r=Yy(e),i=r,s=0,o=Gk(t);s<o.length-1;s++){var a=o[s],l=Nt(e,o.slice(0,s+1));if(l&&(Ic(l)||Array.isArray(l)))i=i[a]=Yy(l);else{var u=o[s+1];i=i[a]=D4(u)&&Number(u)>=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 eE(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];Ic(a)?n.get(a)||(n.set(a,!0),r[o]=Array.isArray(a)?[]:{},eE(a,t,n,r[o])):r[o]=t}return r}function F4(e,t){switch(t.type){case"SET_VALUES":return qe({},e,{values:t.payload});case"SET_TOUCHED":return qe({},e,{touched:t.payload});case"SET_ERRORS":return xi(e.errors,t.payload)?e:qe({},e,{errors:t.payload});case"SET_STATUS":return qe({},e,{status:t.payload});case"SET_ISSUBMITTING":return qe({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return qe({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return qe({},e,{values:zi(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return qe({},e,{touched:zi(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return qe({},e,{errors:zi(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return qe({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return qe({},e,{touched:eE(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return qe({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return qe({},e,{isSubmitting:!1});default:return e}}var mi={},Rl={};function N4(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,u=l===void 0?!1:l,d=e.onSubmit,c=Jk(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),f=qe({validateOnChange:n,validateOnBlur:i,validateOnMount:o,onSubmit:d},c),p=m.useRef(f.initialValues),h=m.useRef(f.initialErrors||mi),y=m.useRef(f.initialTouched||Rl),b=m.useRef(f.initialStatus),g=m.useRef(!1),x=m.useRef({});m.useEffect(function(){return g.current=!0,function(){g.current=!1}},[]);var w=m.useState(0),C=w[1],T=m.useRef({values:Al(f.initialValues),errors:Al(f.initialErrors)||mi,touched:Al(f.initialTouched)||Rl,status:Al(f.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=T.current,S=m.useCallback(function(P){var L=T.current;T.current=F4(L,P),L!==T.current&&C(function(j){return j+1})},[]),_=m.useCallback(function(P,L){return new Promise(function(j,A){var B=f.validate(P,L);B==null?j(mi):Vd(B)?B.then(function(q){j(q||mi)},function(q){A(q)}):j(B)})},[f.validate]),D=m.useCallback(function(P,L){var j=f.validationSchema,A=hn(j)?j(L):j,B=L&&A.validateAt?A.validateAt(L,P):L4(P,A);return new Promise(function(q,oe){B.then(function(){q(mi)},function($e){$e.name==="ValidationError"?q(M4($e)):oe($e)})})},[f.validationSchema]),R=m.useCallback(function(P,L){return new Promise(function(j){return j(x.current[P].validate(L))})},[]),I=m.useCallback(function(P){var L=Object.keys(x.current).filter(function(A){return hn(x.current[A].validate)}),j=L.length>0?L.map(function(A){return R(A,Nt(P,A))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(j).then(function(A){return A.reduce(function(B,q,oe){return q==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||q&&(B=zi(B,L[oe],q)),B},{})})},[R]),ne=m.useCallback(function(P){return Promise.all([I(P),f.validationSchema?D(P):{},f.validate?_(P):{}]).then(function(L){var j=L[0],A=L[1],B=L[2],q=$p.all([j,A,B],{arrayMerge:I4});return q})},[f.validate,f.validationSchema,I,_,D]),te=Qt(function(P){return P===void 0&&(P=E.values),S({type:"SET_ISVALIDATING",payload:!0}),ne(P).then(function(L){return g.current&&(S({type:"SET_ISVALIDATING",payload:!1}),S({type:"SET_ERRORS",payload:L})),L})});m.useEffect(function(){o&&g.current===!0&&xi(p.current,f.initialValues)&&te(p.current)},[o,te]);var Z=m.useCallback(function(P){var L=P&&P.values?P.values:p.current,j=P&&P.errors?P.errors:h.current?h.current:f.initialErrors||{},A=P&&P.touched?P.touched:y.current?y.current:f.initialTouched||{},B=P&&P.status?P.status:b.current?b.current:f.initialStatus;p.current=L,h.current=j,y.current=A,b.current=B;var q=function(){S({type:"RESET_FORM",payload:{isSubmitting:!!P&&!!P.isSubmitting,errors:j,touched:A,status:B,values:L,isValidating:!!P&&!!P.isValidating,submitCount:P&&P.submitCount&&typeof P.submitCount=="number"?P.submitCount:0}})};if(f.onReset){var oe=f.onReset(E.values,ci);Vd(oe)?oe.then(q):q()}else q()},[f.initialErrors,f.initialStatus,f.initialTouched,f.onReset]);m.useEffect(function(){g.current===!0&&!xi(p.current,f.initialValues)&&u&&(p.current=f.initialValues,Z(),o&&te(p.current))},[u,f.initialValues,Z,o,te]),m.useEffect(function(){u&&g.current===!0&&!xi(h.current,f.initialErrors)&&(h.current=f.initialErrors||mi,S({type:"SET_ERRORS",payload:f.initialErrors||mi}))},[u,f.initialErrors]),m.useEffect(function(){u&&g.current===!0&&!xi(y.current,f.initialTouched)&&(y.current=f.initialTouched||Rl,S({type:"SET_TOUCHED",payload:f.initialTouched||Rl}))},[u,f.initialTouched]),m.useEffect(function(){u&&g.current===!0&&!xi(b.current,f.initialStatus)&&(b.current=f.initialStatus,S({type:"SET_STATUS",payload:f.initialStatus}))},[u,f.initialStatus,f.initialTouched]);var J=Qt(function(P){if(x.current[P]&&hn(x.current[P].validate)){var L=Nt(E.values,P),j=x.current[P].validate(L);return Vd(j)?(S({type:"SET_ISVALIDATING",payload:!0}),j.then(function(A){return A}).then(function(A){S({type:"SET_FIELD_ERROR",payload:{field:P,value:A}}),S({type:"SET_ISVALIDATING",payload:!1})})):(S({type:"SET_FIELD_ERROR",payload:{field:P,value:j}}),Promise.resolve(j))}else if(f.validationSchema)return S({type:"SET_ISVALIDATING",payload:!0}),D(E.values,P).then(function(A){return A}).then(function(A){S({type:"SET_FIELD_ERROR",payload:{field:P,value:Nt(A,P)}}),S({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),G=m.useCallback(function(P,L){var j=L.validate;x.current[P]={validate:j}},[]),Y=m.useCallback(function(P){delete x.current[P]},[]),O=Qt(function(P,L){S({type:"SET_TOUCHED",payload:P});var j=L===void 0?i:L;return j?te(E.values):Promise.resolve()}),M=m.useCallback(function(P){S({type:"SET_ERRORS",payload:P})},[]),U=Qt(function(P,L){var j=hn(P)?P(E.values):P;S({type:"SET_VALUES",payload:j});var A=L===void 0?n:L;return A?te(j):Promise.resolve()}),V=m.useCallback(function(P,L){S({type:"SET_FIELD_ERROR",payload:{field:P,value:L}})},[]),H=Qt(function(P,L,j){S({type:"SET_FIELD_VALUE",payload:{field:P,value:L}});var A=j===void 0?n:j;return A?te(zi(E.values,P,L)):Promise.resolve()}),X=m.useCallback(function(P,L){var j=L,A=P,B;if(!Bd(P)){P.persist&&P.persist();var q=P.target?P.target:P.currentTarget,oe=q.type,$e=q.name,Ze=q.id,Cn=q.value,qt=q.checked,ds=q.outerHTML,Yn=q.options,xr=q.multiple;j=L||$e||Ze,A=/number|range/.test(oe)?(B=parseFloat(Cn),isNaN(B)?"":B):/checkbox/.test(oe)?z4(Nt(E.values,j),qt,Cn):Yn&&xr?$4(Yn):Cn}j&&H(j,A)},[H,E.values]),ue=Qt(function(P){if(Bd(P))return function(L){return X(L,P)};X(P)}),he=Qt(function(P,L,j){L===void 0&&(L=!0),S({type:"SET_FIELD_TOUCHED",payload:{field:P,value:L}});var A=j===void 0?i:j;return A?te(E.values):Promise.resolve()}),ee=m.useCallback(function(P,L){P.persist&&P.persist();var j=P.target,A=j.name,B=j.id,q=j.outerHTML,oe=L||A||B;he(oe,!0)},[he]),Fe=Qt(function(P){if(Bd(P))return function(L){return ee(L,P)};ee(P)}),Ye=m.useCallback(function(P){hn(P)?S({type:"SET_FORMIK_STATE",payload:P}):S({type:"SET_FORMIK_STATE",payload:function(){return P}})},[]),Xe=m.useCallback(function(P){S({type:"SET_STATUS",payload:P})},[]),Ot=m.useCallback(function(P){S({type:"SET_ISSUBMITTING",payload:P})},[]),Tn=Qt(function(){return S({type:"SUBMIT_ATTEMPT"}),te().then(function(P){var L=P instanceof Error,j=!L&&Object.keys(P).length===0;if(j){var A;try{if(A=gr(),A===void 0)return}catch(B){throw B}return Promise.resolve(A).then(function(B){return g.current&&S({type:"SUBMIT_SUCCESS"}),B}).catch(function(B){if(g.current)throw S({type:"SUBMIT_FAILURE"}),B})}else if(g.current&&(S({type:"SUBMIT_FAILURE"}),L))throw P})}),cn=Qt(function(P){P&&P.preventDefault&&hn(P.preventDefault)&&P.preventDefault(),P&&P.stopPropagation&&hn(P.stopPropagation)&&P.stopPropagation(),Tn().catch(function(L){console.warn("Warning: An unhandled error was caught from submitForm()",L)})}),ci={resetForm:Z,validateForm:te,validateField:J,setErrors:M,setFieldError:V,setFieldTouched:he,setFieldValue:H,setStatus:Xe,setSubmitting:Ot,setTouched:O,setValues:U,setFormikState:Ye,submitForm:Tn},gr=Qt(function(){return d(E.values,ci)}),cs=Qt(function(P){P&&P.preventDefault&&hn(P.preventDefault)&&P.preventDefault(),P&&P.stopPropagation&&hn(P.stopPropagation)&&P.stopPropagation(),Z()}),di=m.useCallback(function(P){return{value:Nt(E.values,P),error:Nt(E.errors,P),touched:!!Nt(E.touched,P),initialValue:Nt(p.current,P),initialTouched:!!Nt(y.current,P),initialError:Nt(h.current,P)}},[E.errors,E.touched,E.values]),bt=m.useCallback(function(P){return{setValue:function(j,A){return H(P,j,A)},setTouched:function(j,A){return he(P,j,A)},setError:function(j){return V(P,j)}}},[H,he,V]),vr=m.useCallback(function(P){var L=Ic(P),j=L?P.name:P,A=Nt(E.values,j),B={name:j,value:A,onChange:ue,onBlur:Fe};if(L){var q=P.type,oe=P.value,$e=P.as,Ze=P.multiple;q==="checkbox"?oe===void 0?B.checked=!!A:(B.checked=!!(Array.isArray(A)&&~A.indexOf(oe)),B.value=oe):q==="radio"?(B.checked=A===oe,B.value=oe):$e==="select"&&Ze&&(B.value=B.value||[],B.multiple=!0)}return B},[Fe,ue,E.values]),He=m.useMemo(function(){return!xi(p.current,E.values)},[p.current,E.values]),yr=m.useMemo(function(){return typeof a<"u"?He?E.errors&&Object.keys(E.errors).length===0:a!==!1&&hn(a)?a(f):a:E.errors&&Object.keys(E.errors).length===0},[a,He,E.errors,f]),ko=qe({},E,{initialValues:p.current,initialErrors:h.current,initialTouched:y.current,initialStatus:b.current,handleBlur:Fe,handleChange:ue,handleReset:cs,handleSubmit:cn,resetForm:Z,setErrors:M,setFormikState:Ye,setFieldTouched:he,setFieldValue:H,setFieldError:V,setStatus:Xe,setSubmitting:Ot,setTouched:O,setValues:U,submitForm:Tn,validateForm:te,validateField:J,isValid:yr,dirty:He,unregisterField:Y,registerField:G,getFieldProps:vr,getFieldMeta:di,getFieldHelpers:bt,validateOnBlur:i,validateOnChange:n,validateOnMount:o});return ko}function M4(e){var t={};if(e.inner){if(e.inner.length===0)return zi(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;Nt(t,o.path)||(t=zi(t,o.path,o.message))}}return t}function L4(e,t,n,r){n===void 0&&(n=!1);var i=Wp(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:i})}function Wp(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||Cy(i)?Wp(i):i!==""?i:void 0}):Cy(e[r])?t[r]=Wp(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function I4(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?$p(Array.isArray(s)?[]:{},s,n):s}else n.isMergeableObject(s)?r[o]=$p(e[o],s,n):e.indexOf(s)===-1&&r.push(s)}),r}function $4(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function z4(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 B4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?m.useLayoutEffect:m.useEffect;function Qt(e){var t=m.useRef(e);return B4(function(){t.current=e}),m.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 V4=m.forwardRef(function(e,t){var n=e.action,r=Jk(e,["action"]),i=n??"#",s=O4(),o=s.handleReset,a=s.handleSubmit;return m.createElement("form",qe({onSubmit:a,ref:t,onReset:o,action:i},r))});V4.displayName="Form";const tE=({init:e,schema:t,action:n})=>N4({initialValues:e,validationSchema:t,validateOnBlur:!1,enableReinitialize:!0,validateOnChange:!1,validateOnMount:!1,onSubmit:r=>{n(r)}});function U4(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 H4=e=>{switch(e){case"success":return K4;case"info":return Q4;case"warning":return G4;case"error":return Y4;default:return null}},W4=Array(12).fill(0),q4=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},W4.map((n,r)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),K4=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),G4=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.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"})),Q4=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),Y4=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.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"})),X4=F.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"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Z4=()=>{const[e,t]=F.useState(document.hidden);return F.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let qp=1;class J4{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:qp++,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 u=>{if(o=["resolve",u],F.isValidElement(u))s=!1,this.create({id:r,type:"default",message:u});else if(tL(u)&&!u.ok){s=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,f=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,p=typeof c=="object"?c:{message:c};this.create({id:r,type:"error",description:f,...p})}else if(u instanceof Error){s=!1;const c=typeof n.error=="function"?await n.error(u):n.error,f=typeof n.description=="function"?await n.description(u):n.description,p=typeof c=="object"?c:{message:c};this.create({id:r,type:"error",description:f,...p})}else if(n.success!==void 0){s=!1;const c=typeof n.success=="function"?await n.success(u):n.success,f=typeof n.description=="function"?await n.description(u):n.description,p=typeof c=="object"?c:{message:c};this.create({id:r,type:"success",description:f,...p})}}).catch(async u=>{if(o=["reject",u],n.error!==void 0){s=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,f=typeof d=="object"?d:{message:d};this.create({id:r,type:"error",description:c,...f})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),l=()=>new Promise((u,d)=>a.then(()=>o[0]==="reject"?d(o[1]):u(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)||qp++;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 Tt=new J4,eL=(e,t)=>{const n=(t==null?void 0:t.id)||qp++;return Tt.addToast({title:e,...t,id:n}),n},tL=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",nL=eL,rL=()=>Tt.toasts,iL=()=>Tt.getActiveToasts(),nE=Object.assign(nL,{success:Tt.success,info:Tt.info,warning:Tt.warning,error:Tt.error,custom:Tt.custom,message:Tt.message,promise:Tt.promise,dismiss:Tt.dismiss,loading:Tt.loading},{getHistory:rL,getToasts:iL});U4("[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 Ol(e){return e.label!==void 0}const sL=3,oL="24px",aL="16px",Jy=4e3,lL=356,uL=14,cL=45,dL=200;function jn(...e){return e.filter(Boolean).join(" ")}function fL(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const pL=e=>{var t,n,r,i,s,o,a,l,u;const{invert:d,toast:c,unstyled:f,interacting:p,setHeights:h,visibleToasts:y,heights:b,index:g,toasts:x,expanded:w,removeToast:C,defaultRichColors:T,closeButton:E,style:S,cancelButtonStyle:_,actionButtonStyle:D,className:R="",descriptionClassName:I="",duration:ne,position:te,gap:Z,expandByDefault:J,classNames:G,icons:Y,closeButtonAriaLabel:O="Close toast"}=e,[M,U]=F.useState(null),[V,H]=F.useState(null),[X,ue]=F.useState(!1),[he,ee]=F.useState(!1),[Fe,Ye]=F.useState(!1),[Xe,Ot]=F.useState(!1),[Tn,cn]=F.useState(!1),[ci,gr]=F.useState(0),[cs,di]=F.useState(0),bt=F.useRef(c.duration||ne||Jy),vr=F.useRef(null),He=F.useRef(null),yr=g===0,ko=g+1<=y,P=c.type,L=c.dismissible!==!1,j=c.className||"",A=c.descriptionClassName||"",B=F.useMemo(()=>b.findIndex(re=>re.toastId===c.id)||0,[b,c.id]),q=F.useMemo(()=>{var re;return(re=c.closeButton)!=null?re:E},[c.closeButton,E]),oe=F.useMemo(()=>c.duration||ne||Jy,[c.duration,ne]),$e=F.useRef(0),Ze=F.useRef(0),Cn=F.useRef(0),qt=F.useRef(null),[ds,Yn]=te.split("-"),xr=F.useMemo(()=>b.reduce((re,We,st)=>st>=B?re:re+We.height,0),[b,B]),fs=Z4(),Eo=c.invert||d,fi=P==="loading";Ze.current=F.useMemo(()=>B*Z+xr,[B,xr]),F.useEffect(()=>{bt.current=oe},[oe]),F.useEffect(()=>{ue(!0)},[]),F.useEffect(()=>{const re=He.current;if(re){const We=re.getBoundingClientRect().height;return di(We),h(st=>[{toastId:c.id,height:We,position:c.position},...st]),()=>h(st=>st.filter(Dt=>Dt.toastId!==c.id))}},[h,c.id]),F.useLayoutEffect(()=>{if(!X)return;const re=He.current,We=re.style.height;re.style.height="auto";const st=re.getBoundingClientRect().height;re.style.height=We,di(st),h(Dt=>Dt.find(Je=>Je.toastId===c.id)?Dt.map(Je=>Je.toastId===c.id?{...Je,height:st}:Je):[{toastId:c.id,height:st,position:c.position},...Dt])},[X,c.title,c.description,h,c.id]);const _n=F.useCallback(()=>{ee(!0),gr(Ze.current),h(re=>re.filter(We=>We.toastId!==c.id)),setTimeout(()=>{C(c)},dL)},[c,C,h,Ze]);F.useEffect(()=>{if(c.promise&&P==="loading"||c.duration===1/0||c.type==="loading")return;let re;return w||p||fs?(()=>{if(Cn.current<$e.current){const Dt=new Date().getTime()-$e.current;bt.current=bt.current-Dt}Cn.current=new Date().getTime()})():(()=>{bt.current!==1/0&&($e.current=new Date().getTime(),re=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),_n()},bt.current))})(),()=>clearTimeout(re)},[w,p,c,P,fs,_n]),F.useEffect(()=>{c.delete&&_n()},[_n,c.delete]);function IE(){var re;if(Y!=null&&Y.loading){var We;return F.createElement("div",{className:jn(G==null?void 0:G.loader,c==null||(We=c.classNames)==null?void 0:We.loader,"sonner-loader"),"data-visible":P==="loading"},Y.loading)}return F.createElement(q4,{className:jn(G==null?void 0:G.loader,c==null||(re=c.classNames)==null?void 0:re.loader),visible:P==="loading"})}var fg,pg;return F.createElement("li",{tabIndex:0,ref:He,className:jn(R,j,G==null?void 0:G.toast,c==null||(t=c.classNames)==null?void 0:t.toast,G==null?void 0:G.default,G==null?void 0:G[P],c==null||(n=c.classNames)==null?void 0:n[P]),"data-sonner-toast":"","data-rich-colors":(fg=c.richColors)!=null?fg:T,"data-styled":!(c.jsx||c.unstyled||f),"data-mounted":X,"data-promise":!!c.promise,"data-swiped":Tn,"data-removed":he,"data-visible":ko,"data-y-position":ds,"data-x-position":Yn,"data-index":g,"data-front":yr,"data-swiping":Fe,"data-dismissible":L,"data-type":P,"data-invert":Eo,"data-swipe-out":Xe,"data-swipe-direction":V,"data-expanded":!!(w||J&&X),style:{"--index":g,"--toasts-before":g,"--z-index":x.length-g,"--offset":`${he?ci:Ze.current}px`,"--initial-height":J?"auto":`${cs}px`,...S,...c.style},onDragEnd:()=>{Ye(!1),U(null),qt.current=null},onPointerDown:re=>{fi||!L||(vr.current=new Date,gr(Ze.current),re.target.setPointerCapture(re.pointerId),re.target.tagName!=="BUTTON"&&(Ye(!0),qt.current={x:re.clientX,y:re.clientY}))},onPointerUp:()=>{var re,We,st;if(Xe||!L)return;qt.current=null;const Dt=Number(((re=He.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),nl=Number(((We=He.current)==null?void 0:We.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Je=new Date().getTime()-((st=vr.current)==null?void 0:st.getTime()),Kt=M==="x"?Dt:nl,rl=Math.abs(Kt)/Je;if(Math.abs(Kt)>=cL||rl>.11){gr(Ze.current),c.onDismiss==null||c.onDismiss.call(c,c),H(M==="x"?Dt>0?"right":"left":nl>0?"down":"up"),_n(),Ot(!0);return}else{var dn,fn;(dn=He.current)==null||dn.style.setProperty("--swipe-amount-x","0px"),(fn=He.current)==null||fn.style.setProperty("--swipe-amount-y","0px")}cn(!1),Ye(!1),U(null)},onPointerMove:re=>{var We,st,Dt;if(!qt.current||!L||((We=window.getSelection())==null?void 0:We.toString().length)>0)return;const Je=re.clientY-qt.current.y,Kt=re.clientX-qt.current.x;var rl;const dn=(rl=e.swipeDirections)!=null?rl:fL(te);!M&&(Math.abs(Kt)>1||Math.abs(Je)>1)&&U(Math.abs(Kt)>Math.abs(Je)?"x":"y");let fn={x:0,y:0};const hg=pi=>1/(1.5+Math.abs(pi)/20);if(M==="y"){if(dn.includes("top")||dn.includes("bottom"))if(dn.includes("top")&&Je<0||dn.includes("bottom")&&Je>0)fn.y=Je;else{const pi=Je*hg(Je);fn.y=Math.abs(pi)<Math.abs(Je)?pi:Je}}else if(M==="x"&&(dn.includes("left")||dn.includes("right")))if(dn.includes("left")&&Kt<0||dn.includes("right")&&Kt>0)fn.x=Kt;else{const pi=Kt*hg(Kt);fn.x=Math.abs(pi)<Math.abs(Kt)?pi:Kt}(Math.abs(fn.x)>0||Math.abs(fn.y)>0)&&cn(!0),(st=He.current)==null||st.style.setProperty("--swipe-amount-x",`${fn.x}px`),(Dt=He.current)==null||Dt.style.setProperty("--swipe-amount-y",`${fn.y}px`)}},q&&!c.jsx&&P!=="loading"?F.createElement("button",{"aria-label":O,"data-disabled":fi,"data-close-button":!0,onClick:fi||!L?()=>{}:()=>{_n(),c.onDismiss==null||c.onDismiss.call(c,c)},className:jn(G==null?void 0:G.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},(pg=Y==null?void 0:Y.close)!=null?pg:X4):null,P||c.icon||c.promise?F.createElement("div",{"data-icon":"",className:jn(G==null?void 0:G.icon,c==null||(i=c.classNames)==null?void 0:i.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||IE():null,c.type!=="loading"?c.icon||(Y==null?void 0:Y[P])||H4(P):null):null,F.createElement("div",{"data-content":"",className:jn(G==null?void 0:G.content,c==null||(s=c.classNames)==null?void 0:s.content)},F.createElement("div",{"data-title":"",className:jn(G==null?void 0:G.title,c==null||(o=c.classNames)==null?void 0:o.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?F.createElement("div",{"data-description":"",className:jn(I,A,G==null?void 0:G.description,c==null||(a=c.classNames)==null?void 0:a.description)},typeof c.description=="function"?c.description():c.description):null),F.isValidElement(c.cancel)?c.cancel:c.cancel&&Ol(c.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||_,onClick:re=>{Ol(c.cancel)&&L&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,re),_n())},className:jn(G==null?void 0:G.cancelButton,c==null||(l=c.classNames)==null?void 0:l.cancelButton)},c.cancel.label):null,F.isValidElement(c.action)?c.action:c.action&&Ol(c.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||D,onClick:re=>{Ol(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,re),!re.defaultPrevented&&_n())},className:jn(G==null?void 0:G.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function ex(){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 hL(e,t){const n={};return[e,t].forEach((r,i)=>{const s=i===1,o=s?"--mobile-offset":"--offset",a=s?aL:oL;function l(u){["top","right","bottom","left"].forEach(d=>{n[`${o}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${o}-${u}`]=a:n[`${o}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(a)}),n}const mL=F.forwardRef(function(t,n){const{invert:r,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:o,closeButton:a,className:l,offset:u,mobileOffset:d,theme:c="light",richColors:f,duration:p,style:h,visibleToasts:y=sL,toastOptions:b,dir:g=ex(),gap:x=uL,icons:w,containerAriaLabel:C="Notifications"}=t,[T,E]=F.useState([]),S=F.useMemo(()=>Array.from(new Set([i].concat(T.filter(V=>V.position).map(V=>V.position)))),[T,i]),[_,D]=F.useState([]),[R,I]=F.useState(!1),[ne,te]=F.useState(!1),[Z,J]=F.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=F.useRef(null),Y=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),O=F.useRef(null),M=F.useRef(!1),U=F.useCallback(V=>{E(H=>{var X;return(X=H.find(ue=>ue.id===V.id))!=null&&X.delete||Tt.dismiss(V.id),H.filter(({id:ue})=>ue!==V.id)})},[]);return F.useEffect(()=>Tt.subscribe(V=>{if(V.dismiss){const H=T.map(X=>X.id===V.id?{...X,delete:!0}:X);requestAnimationFrame(()=>{E(H)});return}setTimeout(()=>{f2.flushSync(()=>{E(H=>{const X=H.findIndex(ue=>ue.id===V.id);return X!==-1?[...H.slice(0,X),{...H[X],...V},...H.slice(X+1)]:[V,...H]})})})}),[T]),F.useEffect(()=>{if(c!=="system"){J(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?J("dark"):J("light")),typeof window>"u")return;const V=window.matchMedia("(prefers-color-scheme: dark)");try{V.addEventListener("change",({matches:H})=>{J(H?"dark":"light")})}catch{V.addListener(({matches:X})=>{try{J(X?"dark":"light")}catch(ue){console.error(ue)}})}},[c]),F.useEffect(()=>{T.length<=1&&I(!1)},[T]),F.useEffect(()=>{const V=H=>{var X;if(s.every(ee=>H[ee]||H.code===ee)){var he;I(!0),(he=G.current)==null||he.focus()}H.code==="Escape"&&(document.activeElement===G.current||(X=G.current)!=null&&X.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",V),()=>document.removeEventListener("keydown",V)},[s]),F.useEffect(()=>{if(G.current)return()=>{O.current&&(O.current.focus({preventScroll:!0}),O.current=null,M.current=!1)}},[G.current]),F.createElement("section",{ref:n,"aria-label":`${C} ${Y}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},S.map((V,H)=>{var X;const[ue,he]=V.split("-");return T.length?F.createElement("ol",{key:V,dir:g==="auto"?ex():g,tabIndex:-1,ref:G,className:l,"data-sonner-toaster":!0,"data-sonner-theme":Z,"data-y-position":ue,"data-lifted":R&&T.length>1&&!o,"data-x-position":he,style:{"--front-toast-height":`${((X=_[0])==null?void 0:X.height)||0}px`,"--width":`${lL}px`,"--gap":`${x}px`,...h,...hL(u,d)},onBlur:ee=>{M.current&&!ee.currentTarget.contains(ee.relatedTarget)&&(M.current=!1,O.current&&(O.current.focus({preventScroll:!0}),O.current=null))},onFocus:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||M.current||(M.current=!0,O.current=ee.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{ne||I(!1)},onDragEnd:()=>I(!1),onPointerDown:ee=>{ee.target instanceof HTMLElement&&ee.target.dataset.dismissible==="false"||te(!0)},onPointerUp:()=>te(!1)},T.filter(ee=>!ee.position&&H===0||ee.position===V).map((ee,Fe)=>{var Ye,Xe;return F.createElement(pL,{key:ee.id,icons:w,index:Fe,toast:ee,defaultRichColors:f,duration:(Ye=b==null?void 0:b.duration)!=null?Ye:p,className:b==null?void 0:b.className,descriptionClassName:b==null?void 0:b.descriptionClassName,invert:r,visibleToasts:y,closeButton:(Xe=b==null?void 0:b.closeButton)!=null?Xe:a,interacting:ne,position:V,style:b==null?void 0:b.style,unstyled:b==null?void 0:b.unstyled,classNames:b==null?void 0:b.classNames,cancelButtonStyle:b==null?void 0:b.cancelButtonStyle,actionButtonStyle:b==null?void 0:b.actionButtonStyle,closeButtonAriaLabel:b==null?void 0:b.closeButtonAriaLabel,removeToast:U,toasts:T.filter(Ot=>Ot.position==ee.position),heights:_.filter(Ot=>Ot.position==ee.position),setHeights:D,expandByDefault:o,gap:x,expanded:R,swipeDirections:t.swipeDirections})})):null}))});function tx(e){return nE.custom(t=>v.jsx(gL,{id:t,title:e.title,description:e.description,variant:e.variant}))}const Ud={success:{bg:"bg-green-100 border-green-200",text:"text-green-800"},error:{bg:"bg-red-100 border-red-200",text:"text-red-800"},warning:{bg:"bg-orange-100 border-orange-200",text:"text-orange-800"},info:{bg:"bg-blue-100 border-blue-200",text:"text-blue-800"}};function gL(e){const{title:t,description:n,button:r,id:i,variant:s}=e;return v.jsxs("div",{className:ge("flex rounded-lg shadow-lg ring-1 ring-black/5 w-full md:max-w-[364px] items-center p-3 backdrop-blur-sm border mb-2",Ud[s||"info"].bg),children:[v.jsx("div",{className:"flex flex-1 items-center",children:v.jsxs("div",{className:"w-full",children:[t&&v.jsx("p",{className:ge("text-sm font-medium",Ud[s||"info"].text),children:t}),v.jsx("p",{className:ge("text-sm",Ud[s||"info"].text,{"mt-1":!!t}),children:n})]})}),r&&v.jsx("div",{className:"ml-5 shrink-0 rounded-md text-sm font-medium text-indigo-600 hover:text-indigo-500 focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 focus:outline-hidden",children:v.jsx("button",{className:"rounded bg-indigo-50 px-3 py-1 text-sm font-semibold text-indigo-600 hover:bg-indigo-100",onClick:()=>{r.onClick(),nE.dismiss(i)},children:r.label})})]})}function vL(e){return Array.isArray(e)&&e[0].field!==void 0}const rE=(e,t)=>{var n;if(vL(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||tx({description:e.message,variant:"error"});return}if(e&&e.error){t!=null&&t.noToast||tx({description:e.error,variant:"error"});return}};function yL(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 og({id:e,text:t,className:n,required:r}){return t?v.jsxs("label",{htmlFor:e,className:ge("mb-1 block text-sm font-medium text-slate-700",n),children:[t,r&&v.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}):null}const Hd={sm:"px-3 py-1 text-xs",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-15"};function xL({id:e,label:t,suffix:n,prefix:r,size:i="md",type:s="text",noMargin:o=!1,required:a=!1,error:l,ariaDescribedBy:u,className:d,ariaInvalid:c,ariaLabel:f,autoFocus:p,...h}){const y=hr();return v.jsxs("div",{className:ge({"mb-2":!o},d),children:[v.jsx(og,{id:e,text:t,required:a}),v.jsxs("div",{className:"flex items-center",children:[r&&v.jsx("span",{className:ge("inline-block border border-solid border-r-0 border-slate-200 bg-slate-100 rounded-l-md",Hd[i],{"border-red-500!":!!l}),children:r}),v.jsx("input",{id:e,className:ge("text-gray-800 border border-solid rounded-lg block text-base py-2 px-3 w-full border-slate-200 focus:outline-hidden focus:border-custom-500 disabled:bg-slate-100 disabled:border-slate-300 disabled:text-slate-500 placeholder:text-slate-400",Hd[i],{"rounded-l-none":!!r,"rounded-r-none":!!n,"border-red-500! text-red-500!":!!l}),type:s,required:a,"aria-describedby":u,"aria-invalid":c,"aria-label":f,style:{color:y.getColor(Q.InputText),backgroundColor:y.getColor(Q.InputBackground),borderColor:y.getColor(Q.InputBorder),borderRadius:y.getRadius()},...h}),n&&v.jsx("span",{className:ge("inline-block border border-solid border-l-0 border-slate-200 bg-slate-100 rounded-r-md",Hd[i],{"border-red-500!":!!l}),children:n})]}),!!l&&v.jsx("p",{className:"mt-1 text-xs text-red-500",children:l})]})}const wL=(e,t)=>{document.cookie=`${e}=${t}`},iE=m.createContext({}),bL=()=>`${window.location.pathname}_$$_${document.title}`,SL=()=>{const e=localStorage.getItem("page");return!e||e===""?"/":e},kL=()=>{const e=localStorage.getItem("p-history");if(!e||e==="")return[];try{return JSON.parse(e)}catch{return[]}};function EL({children:e}){const[t,n]=m.useState("/"),[r,i]=m.useState(kL());function s(){i([]),localStorage.removeItem("p-history")}const o=a=>{n(a),i(l=>[...new Set([...l,a])]),localStorage.setItem("page",a),localStorage.setItem("p-history",JSON.stringify(r))};return v.jsx(iE.Provider,{value:{page:t,setPage:o,history:r,clearHistory:s},children:e})}function ag(){return m.useContext(iE)}function TL({label:e,id:t,value:n="",className:r,placeholder:i,children:s,required:o,error:a,...l}){return v.jsxs("div",{className:r||"",children:[e&&v.jsx(og,{id:t,required:o,text:e}),v.jsx("select",{id:t,"aria-placeholder":i,value:n,"aria-label":e,className:"light forelect transition-colors duration-200 border border-solid text-gray-900 text-sm rounded-md focus:ring-emerald-500 focus-visible:ring-0 focus-visible:shadow-none outline focus-visible:outline-none focus-visible:ber-emerald-500 focus:border-emerald-500 block w-full px-2 py-2 placeholder-fuchsia-600 caret-emer-500",onChange:l.onChange,required:o,...l,children:s}),!!a&&v.jsx("p",{className:"1 texm text-r500",children:a})]})}const nx={ring:{label:"",input:"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:bg-secondary transition-colors duration-200 px-2 py-1 rounded-md",input:""}},CL={blue:"checked:border-blue-500 checked:bg-blue-500 checked:before:bg-blue-500",indigo:"checked:border-indigo-500 checked:bg-indigo-500 checked:before:bg-indigo-500",green:"checked:border-green-500 checked:bg-green-500 checked:before:bg-green-500",red:"checked:border-red-500 checked:bg-red-500 checked:before:bg-red-500",orange:"checked:border-orange-500 checked:bg-orange-500 checked:before:bg-orange-500"},_L={sm:"h-4 w-4 lg:h-3 lg:w-3",md:"h-6 w-6 lg:h-5 lg:w-5",lg:"h-8 w-8 lg:h-7 lg:w-7"},PL={sm:"h-3 w-3 lg:h-2.5 lg:w-2.5",md:"h-5 w-5 lg:h-4 lg:w-4",lg:"h-7 w-7 lg:h-6 lg:w-6"};function jL({children:e,name:t,required:n,value:r,checked:i,onChange:s,onBlur:o,red:a,id:l=t,size:u="md",effect:d="ring",reversed:c=!1,variant:f="blue",...p}){return v.jsxs("div",{children:[v.jsxs("div",{className:`flex items-center justify-between ${c?"flex-row-reverse":""} ${nx[d].label}`,children:[v.jsxs("label",{className:"disable-highlight relative mr-3 flex cursor-pointer items-center rounded-full",htmlFor:l,children:[v.jsx("input",{id:l,name:t,type:"checkbox",className:`border-gray-200 peer cursor-pointer appearance-none rounded-md border border-solid bg-white transition-all ${CL[f]} ${_L[u]} ${nx[d].input}`,required:n,checked:i,value:r,onChange:h=>s==null?void 0:s(h.target.checked),onBlur:h=>o==null?void 0:o(h.target.checked),...p}),v.jsx("div",{className:"pointer-events-none absolute left-2/4 top-2/4 translate-x-2/4 translate-y-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",children:v.jsx(ve.Check,{className:PL[u]})})]}),v.jsx("label",{className:"disable-highlight mt-px flex grow cursor-pointer select-none items-center justify-between font-light text-gray-800",htmlFor:l,children:e})]}),a&&v.jsx("small",{className:"text-xs text-red-500",children:a})]})}function AL({id:e,value:t,name:n,onChange:r,children:i,disabled:s,className:o}){return v.jsxs("label",{htmlFor:e,className:ge("relative flex cursor-pointer items-center rounded-md p-2 focus:outline-none",{"opacity-60 cursor-not-allowed":s},o),children:[v.jsx("input",{type:"radio",id:e,name:n,value:e,checked:t,onChange:a=>{r&&r(a.target.checked)},className:"peer h-4 w-4 cursor-pointer appearance-none rounded-full border-2 border-slate-300 transition-all checked:border-[5px] checked:border-indigo-600 focus:ring-0 focus:ring-offset-0",disabled:s}),v.jsx("span",{className:"ml-2 text-sm font-medium text-slate-700",children:i})]})}function RL({id:e,label:t,children:n,required:r,className:i}){return v.jsxs("fieldset",{id:e,className:i,children:[t&&v.jsxs("legend",{className:"mb-1 block text-sm font-medium text-slate-700",children:[t," ",r&&v.jsx("span",{className:"text-red-500 ml-1",children:"*"})]}),v.jsx("div",{className:"flex flex-col gap-0 mt-1",children:n})]})}const rx=Object.assign(AL,{Group:RL});function lg({id:e,label:t,suffix:n,prefix:r,className:i,noMargin:s,rows:o=3,type:a="text",required:l=!1,error:u,ariaInvalid:d,inputRef:c,autoFocus:f=!0,style:p,...h}){const y=hr();return v.jsxs("div",{className:ge({"mb-2":!s},i),children:[t&&v.jsx(og,{id:e,text:t,required:l}),v.jsx("textarea",{className:ge("resize-none max-h-36 text-gray-800 w-full py-2 px-3 border border-solid rounded-lg block border-slate-200 focus:outline-hidden focus:border-custom-500 disabled:bg-slate-100 disabled:border-slate-300 disabled:text-slate-500 placeholder:text-slate-400 invalid:border-red-500 invalid:text-red-500",{"border-red-500! text-red-500!":!!u}),id:e,rows:o,"aria-invalid":d,...h,ref:c,autoFocus:f,style:{...p,color:y.getColor(Q.InputText),backgroundColor:y.getColor(Q.InputBackground),borderColor:y.getColor(Q.InputBorder),borderRadius:y.getRadius()}}),!!u&&v.jsx("p",{className:"text-red-500 mt-1 text-xs",children:u})]})}function OL({onOk:e,clientId:t,widgetId:n,appearance:r}){var y,b,g,x,w,C,T,E;const i=hr(),{defaultValues:s}=un(),[o,a]=m.useState(!1),l=ag(),u=yD(),d=(b=(y=r==null?void 0:r.body)==null?void 0:y.inputs)==null?void 0:b.reduce((S,_)=>{const D=_.remember?tu(_.name):void 0;return S[_.name]=D||(s==null?void 0:s[_.name])||"",S},{}),c=(x=(g=r==null?void 0:r.body)==null?void 0:g.inputs)==null?void 0:x.reduce((S,_)=>(S[_.name]="",S),{}),f=Km((C=(w=r==null?void 0:r.body)==null?void 0:w.inputs)==null?void 0:C.reduce((S,_)=>(S[_.name]=_.required?Vu().required(_.label):Vu(),S),{})),p=tE({init:{...d},schema:f,action:async S=>{var R;a(!0);const[_,D]=await u.mutateAsync({inputs:S,history:l.history,client_id:t,widget_id:n});if(a(!1),uc(D)){vD(_)&&(Md(Wn.CustomerToken,_.customer_token),Md(Wn.CustomerRefreshToken,_.customer_refresh_token),Md(Wn.DeviceId,_.device_id)),l.clearHistory();for(const I of((R=r==null?void 0:r.body)==null?void 0:R.inputs)||[])I.remember&&wL(I.name,S[I.name]);e==null||e();return}rE(_,{form:p})}}),h=!yL(c,p.values);return v.jsx("section",{className:"h-full overflow-y-auto px-6 py-5 bg-white",style:{backgroundColor:i.getColor(Q.GreeterBackground)},children:v.jsxs("form",{className:"grid grid-cols-1 gap-4",onSubmit:S=>{S.preventDefault(),p.handleSubmit()},children:[(E=(T=r==null?void 0:r.body)==null?void 0:T.inputs)==null?void 0:E.map(S=>{var _,D;if(["text","email","phone"].includes(S.type))return v.jsx(xL,{id:S.name,name:S.name,type:S.type,label:S.label,value:p.values[S.name],onChange:p.handleChange,onBlur:p.handleBlur,autoComplete:"off",placeholder:S.placeholder,error:p.errors[S.name],ariaInvalid:p.errors.name?!0:void 0,required:S.required,noMargin:!0},S.name);if(S.type==="select")return v.jsx(TL,{id:S.name,name:S.name,value:p.values[S.name],onChange:p.handleChange,label:S.label,required:S.required,children:(_=S.options)==null?void 0:_.map(R=>v.jsx("option",{value:R,children:R},R))},S.name);if(S.type==="checkbox")return v.jsx(jL,{id:S.name,name:S.name,value:p.values[S.name],onChange:p.handleChange,required:S.required,children:S.label},S.name);if(S.type==="radio")return v.jsx(rx.Group,{id:S.name,label:S.label,required:S.required,children:(D=S.options)==null?void 0:D.map(R=>v.jsx(rx,{onChange:I=>{I?p.setFieldValue(S.name,R):p.setFieldValue(S.name,"")},id:R,name:S.name,value:R===p.values[S.name],children:R},R))},S.name);if(S.type==="textarea")return v.jsx(lg,{id:S.name,name:S.name,value:p.values[S.name],onChange:p.handleChange,placeholder:S.placeholder,error:p.errors[S.name],required:S.required,label:S.label},S.name)}),v.jsx(rn,{textKey:Q.GreeterButtonText,bgKey:Q.GreeterButtonBackground,type:"submit",disabled:!h||o,className:"mt-3 transition-all duration-300 hover:opacity-90 transform hover:translate-y-[-1px] shadow-sm",children:o?"Yükleniyor...":"Sohbet Oluştur"})]})})}function DL({onClose:e}){return v.jsx(rn,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"md",rounded:!0,onClick:e,className:"absolute top-2 right-2",children:v.jsx(ve.X,{className:"size-5"})})}function FL({image_url:e,name:t,size:n="size-9"}){return e?v.jsx("img",{src:e,alt:t,className:ge("rounded-md",n)}):v.jsx("div",{className:"flex items-center justify-center gap-1",children:v.jsx(ve.Website,{className:ge("text-slate-500",n)})})}function NL(){const e=ag(),t=m.useCallback(()=>{const n=window.location.pathname;n!==e.page&&e.setPage(n)},[e.page]);return ck("popstate",t),null}function ML(){const e=ns(),t=ag(),n=m.useCallback(()=>{const r=window.location.pathname;if(r!==t.page){if(e){e.emit(Kn.PageChange,{page:r});return}t.setPage(r)}},[e,t.page]);return ck("popstate",n),m.useEffect(()=>{if(!e)return;const r=SL(),i=bL();r!==i&&(e.emit(Kn.PageChange,{page:i}),t.setPage(i))},[e]),null}function LL({children:e}){const t=hr(),{widget:n}=un();return n?v.jsx(Yr,{children:v.jsxs(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.3,ease:"easeOut"},className:"h-full w-full relative overflow-hidden",children:[v.jsx(Te.div,{initial:{opacity:.8},animate:{opacity:1},transition:{duration:.2},style:{background:t.getColor(Q.GreeterTopBackground)},className:"h-44 absolute top-0 left-0 w-full rounded-t-xl flex flex-col items-center justify-center shadow-sm"}),e]})}):null}function IL(){return NL(),null}const Wd=(e,t)=>{var n;return(n=e.find(r=>r.type===t))==null?void 0:n.content};function $L(){var c,f,p,h,y,b;const e=hr(),{widget:t,setOpen:n}=un(),[r,i]=m.useState(!0),s=Bm(),o=wc();if(!t)return null;const a=()=>{n(!1)};if(m.useEffect(()=>{xD(t.client_id).then(([g,x])=>{uc(x)&&s.push("chat")}).finally(()=>{i(!1)})},[]),r)return null;const l=Wd(((f=(c=t.appearance)==null?void 0:c.head)==null?void 0:f.elements)||[],"text"),u=Wd(((h=(p=t.appearance)==null?void 0:p.head)==null?void 0:h.elements)||[],"title"),d=Wd(((b=(y=t.appearance)==null?void 0:y.head)==null?void 0:b.elements)||[],"logo");return v.jsxs(LL,{children:[v.jsxs("div",{className:"relative flex flex-col gap-3 items-center justify-center h-44",children:[o&&v.jsx(DL,{onClose:a}),d&&v.jsx(Te.div,{initial:{scale:.9,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.1,duration:.2},children:v.jsx(FL,{name:t.name,image_url:d,size:"size-20"})}),u&&v.jsx(Te.div,{initial:{y:5,opacity:0},animate:{y:0,opacity:1},transition:{delay:.15,duration:.2},style:{color:e.getColor(Q.GreeterTopText)},className:"text-white text-xl font-bold",children:u}),l&&v.jsx(Te.div,{initial:{y:5,opacity:0},animate:{y:0,opacity:1},transition:{delay:.2,duration:.2},style:{color:e.getColor(Q.GreeterTopText)},className:"text-white text-sm opacity-90",children:l})]}),v.jsx(Te.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.25,duration:.2},className:"overflow-y-auto",style:{height:"calc(100% - 11rem)"},children:v.jsx(OL,{clientId:t.client_id,widgetId:t.link_id,appearance:t.appearance,onOk:()=>{s.push("chat")}})})]})}function zL(){return v.jsxs(v.Fragment,{children:[v.jsx(dk,{border:!0,children:v.jsx($L,{})}),v.jsx(IL,{})]})}const BL=[{path:"/",component:zL,name:"registration"}];var ms=(e=>(e.Open="open",e.Closed="closed",e.Pending="pending",e.Deleted="deleted",e.Created="created",e))(ms||{}),sE=(e=>(e.AdminJoin="admin_join",e))(sE||{}),lt=(e=>(e.Customer="customer",e.User="user",e.System="system",e.Activity="activity",e))(lt||{});function VL({name:e,avatar:t,className:n="text-neutral-500"}){return v.jsxs(Te.div,{initial:{opacity:.8},animate:{opacity:1},className:"flex gap-2 items-center",children:[v.jsx("div",{className:"min-w-max",children:v.jsxs("span",{children:[t&&v.jsx("img",{className:"size-10 rounded-full border border-white/20 shadow-sm",src:t,"aria-label":e}),!t&&v.jsx("div",{className:"size-10 rounded-full bg-white/20 flex items-center justify-center text-white font-medium",children:e.charAt(0).toUpperCase()})]})}),v.jsx("div",{className:"flex flex-col",children:v.jsx("span",{className:ge("line-clamp-1 font-medium",n),children:e})})]})}var UL=Object.defineProperty,HL=(e,t,n)=>t in e?UL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qd=(e,t,n)=>(HL(e,typeof t!="symbol"?t+"":t,n),n);let WL=class{constructor(){qd(this,"current",this.detect()),qd(this,"handoffState","pending"),qd(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},iu=new WL;function qL(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function $c(){let e=[],t={addEventListener(n,r,i,s){return n.addEventListener(r,i,s),t.add(()=>n.removeEventListener(r,i,s))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return qL(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let s=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:s})})},group(n){let r=$c();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function oE(){let[e]=m.useState($c);return m.useEffect(()=>()=>e.dispose(),[e]),e}let Jr=(e,t)=>{iu.isServer?m.useEffect(e,t):m.useLayoutEffect(e,t)};function aE(e){let t=m.useRef(e);return Jr(()=>{t.current=e},[e]),t}let sr=function(e){let t=aE(e);return F.useCallback((...n)=>t.current(...n),[t])};function Kp(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function zc(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,zc),r}var lE=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(lE||{}),zr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(zr||{});function uE(){let e=GL();return m.useCallback(t=>KL({mergeRefs:e,...t}),[e])}function KL({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:s=!0,name:o,mergeRefs:a}){a=a??QL;let l=cE(t,e);if(s)return Dl(l,n,r,o,a);let u=i??0;if(u&2){let{static:d=!1,...c}=l;if(d)return Dl(c,n,r,o,a)}if(u&1){let{unmount:d=!0,...c}=l;return zc(d?0:1,{0(){return null},1(){return Dl({...c,hidden:!0,style:{display:"none"}},n,r,o,a)}})}return Dl(l,n,r,o,a)}function Dl(e,t={},n,r,i){let{as:s=n,children:o,refName:a="ref",...l}=Kd(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof o=="function"?o(t):o;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let f=!1,p=[];for(let[h,y]of Object.entries(t))typeof y=="boolean"&&(f=!0),y===!0&&p.push(h.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(f){c["data-headlessui-state"]=p.join(" ");for(let h of p)c[`data-${h}`]=""}}if(s===m.Fragment&&(Object.keys(wi(l)).length>0||Object.keys(wi(c)).length>0))if(!m.isValidElement(d)||Array.isArray(d)&&d.length>1){if(Object.keys(wi(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(wi(l)).concat(Object.keys(wi(c))).map(f=>` - ${f}`).join(`
|
|
106
106
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(f=>` - ${f}`).join(`
|
|
107
107
|
`)].join(`
|
|
108
|
-
`))}else{let f=d.props,p=f==null?void 0:f.className,h=typeof p=="function"?(...
|
|
109
|
-
`)),[]});var YL=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(YL||{});function XL(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function ZL(e,t,n,r){let[i,s]=g.useState(n),{hasFlag:o,addFlag:a,removeFlag:l}=GL(e&&i?3:0),u=g.useRef(!1),d=g.useRef(!1),c=iE();return Zr(()=>{var f;if(e){if(n&&s(!0),!t){n&&a(3);return}return(f=r==null?void 0:r.start)==null||f.call(r,n),JL(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){d.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var p;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||s(!1),(p=r==null?void 0:r.end)==null||p.call(r,n))}})}},[e,n,t,c]),e?[i,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function JL(e,{prepare:t,run:n,done:r,inFlight:i}){let s=Ic();return tI(e,{prepare:t,inFlight:i}),s.nextFrame(()=>{n(),s.requestAnimationFrame(()=>{s.add(eI(e,r))})}),s.dispose}function eI(e,t){var n,r;let i=Ic();if(!e)return i.dispose;let s=!1;i.add(()=>{s=!0});let o=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return o.length===0?(t(),i.dispose):(Promise.allSettled(o.map(a=>a.finished)).then(()=>{s||t()}),i.dispose)}function tI(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}let cg=g.createContext(null);cg.displayName="OpenClosedContext";var _i=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(_i||{});function cE(){return g.useContext(cg)}function nI({value:e,children:t}){return D.createElement(cg.Provider,{value:e},t)}function rI(){let e=typeof document>"u";return"useSyncExternalStore"in Qd?(t=>t.useSyncExternalStore)(Qd)(()=>()=>{},()=>!1,()=>!e):!1}function dE(){let e=rI(),[t,n]=g.useState(iu.isHandoffComplete);return t&&iu.isHandoffComplete===!1&&n(!1),g.useEffect(()=>{t!==!0&&n(!0)},[t]),g.useEffect(()=>iu.handoff(),[]),e?!1:t}function iI(){let e=g.useRef(!1);return Zr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function fE(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:hE)!==g.Fragment||D.Children.count(e.children)===1}let zc=g.createContext(null);zc.displayName="TransitionContext";var sI=(e=>(e.Visible="visible",e.Hidden="hidden",e))(sI||{});function oI(){let e=g.useContext(zc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function aI(){let e=g.useContext(Vc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Vc=g.createContext(null);Vc.displayName="NestingContext";function Bc(e){return"children"in e?Bc(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function pE(e,t){let n=sE(e),r=g.useRef([]),i=iI(),s=iE(),o=ir((p,h=zr.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===p);y!==-1&&($c(h,{[zr.Unmount](){r.current.splice(y,1)},[zr.Hidden](){r.current[y].state="hidden"}}),s.microTask(()=>{var w;!Bc(r)&&i.current&&((w=n.current)==null||w.call(n))}))}),a=ir(p=>{let h=r.current.find(({el:y})=>y===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>o(p,zr.Unmount)}),l=g.useRef([]),u=g.useRef(Promise.resolve()),d=g.useRef({enter:[],leave:[]}),c=ir((p,h,y)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==p)),t==null||t.chains.current[h].push([p,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[h].push([p,new Promise(w=>{Promise.all(d.current[h].map(([m,v])=>v)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(h)):y(h)}),f=ir((p,h,y)=>{Promise.all(d.current[h].splice(0).map(([w,m])=>m)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>y(h))});return g.useMemo(()=>({children:r,register:a,unregister:o,onStart:c,onStop:f,wait:u,chains:d}),[a,o,r,c,f,d,u])}let hE=g.Fragment,mE=oE.RenderStrategy;function lI(e,t){var n,r;let{transition:i=!0,beforeEnter:s,afterEnter:o,beforeLeave:a,afterLeave:l,enter:u,enterFrom:d,enterTo:c,entered:f,leave:p,leaveFrom:h,leaveTo:y,...w}=e,[m,v]=g.useState(null),b=g.useRef(null),T=fE(e),E=uE(...T?[b,t,v]:t===null?[]:[t]),C=(n=w.unmount)==null||n?zr.Unmount:zr.Hidden,{show:S,appear:_,initial:N}=oI(),[R,I]=g.useState(S?"visible":"hidden"),ne=aI(),{register:te,unregister:ee}=ne;Zr(()=>te(b),[te,b]),Zr(()=>{if(C===zr.Hidden&&b.current){if(S&&R!=="visible"){I("visible");return}return $c(R,{hidden:()=>ee(b),visible:()=>te(b)})}},[R,b,te,ee,S,C]);let le=dE();Zr(()=>{if(T&&le&&R==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,R,le,T]);let X=N&&!_,re=_&&S&&N,O=g.useRef(!1),M=pE(()=>{O.current||(I("hidden"),ee(b))},ne),U=ir(De=>{O.current=!0;let Ye=De?"enter":"leave";M.onStart(b,Ye,Xe=>{Xe==="enter"?s==null||s():Xe==="leave"&&(a==null||a())})}),B=ir(De=>{let Ye=De?"enter":"leave";O.current=!1,M.onStop(b,Ye,Xe=>{Xe==="enter"?o==null||o():Xe==="leave"&&(l==null||l())}),Ye==="leave"&&!Bc(M)&&(I("hidden"),ee(b))});g.useEffect(()=>{T&&i||(U(S),B(S))},[S,T,i]);let H=!(!i||!T||!le||X),[,G]=ZL(H,m,S,{start:U,end:B}),ue=xi({ref:E,className:((r=qp(w.className,re&&u,re&&d,G.enter&&u,G.enter&&G.closed&&d,G.enter&&!G.closed&&c,G.leave&&p,G.leave&&!G.closed&&h,G.leave&&G.closed&&y,!G.transition&&S&&f))==null?void 0:r.trim())||void 0,...XL(G)}),he=0;R==="visible"&&(he|=_i.Open),R==="hidden"&&(he|=_i.Closed),S&&R==="hidden"&&(he|=_i.Opening),!S&&R==="visible"&&(he|=_i.Closing);let Y=aE();return D.createElement(Vc.Provider,{value:M},D.createElement(nI,{value:he},Y({ourProps:ue,theirProps:w,defaultTag:hE,features:mE,visible:R==="visible",name:"Transition.Child"})))}function uI(e,t){let{show:n,appear:r=!1,unmount:i=!0,...s}=e,o=g.useRef(null),a=fE(e),l=uE(...a?[o,t]:t===null?[]:[t]);dE();let u=cE();if(n===void 0&&u!==null&&(n=(u&_i.Open)===_i.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,c]=g.useState(n?"visible":"hidden"),f=pE(()=>{n||c("hidden")}),[p,h]=g.useState(!0),y=g.useRef([n]);Zr(()=>{p!==!1&&y.current[y.current.length-1]!==n&&(y.current.push(n),h(!1))},[y,n]);let w=g.useMemo(()=>({show:n,appear:r,initial:p}),[n,r,p]);Zr(()=>{n?c("visible"):!Bc(f)&&o.current!==null&&c("hidden")},[n,f]);let m={unmount:i},v=ir(()=>{var E;p&&h(!1),(E=e.beforeEnter)==null||E.call(e)}),b=ir(()=>{var E;p&&h(!1),(E=e.beforeLeave)==null||E.call(e)}),T=aE();return D.createElement(Vc.Provider,{value:f},D.createElement(zc.Provider,{value:w},T({ourProps:{...m,as:g.Fragment,children:D.createElement(gE,{ref:l,...m,...s,beforeEnter:v,beforeLeave:b})},theirProps:{},defaultTag:g.Fragment,features:mE,visible:d==="visible",name:"Transition"})))}function cI(e,t){let n=g.useContext(zc)!==null,r=cE()!==null;return D.createElement(D.Fragment,null,!n&&r?D.createElement(Kp,{ref:t,...e}):D.createElement(gE,{ref:t,...e}))}let Kp=ug(uI),gE=ug(lI),dI=ug(cI),fI=Object.assign(Kp,{Child:dI,Root:Kp});const dg=g.createContext(void 0),sa=({as:e="div",children:t,className:n})=>{const[r,i]=g.useState(!1),s=g.useCallback(()=>{i(a=>!a)},[]),o=g.useRef(null);return g.useEffect(()=>{const a=l=>{o.current&&!o.current.contains(l.target)&&r&&s&&s()};return document.addEventListener("click",a),()=>{document.removeEventListener("click",a)}},[r,s]),x.jsx(dg.Provider,{value:{open:r,setOpen:i,toggleOpen:s},children:x.jsx(e,{ref:o,className:`dropdown ${n}`,children:t})})},pI=({type:e,children:t,className:n,id:r,title:i})=>{const{open:s,toggleOpen:o,setOpen:a}=g.useContext(dg),l=n||"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-sm",u=n||"transition-all duration-200 ease-linear bg-white border-dashed dropdown-toggle text-custom-500 btn border-custom-500 hover:text-custom-500 hover:bg-custom-50 hover:border-custom-600 focus:text-custom-600 focus:bg-custom-50 focus:border-custom-600 active:text-custom-600 active:bg-custom-50 active:border-custom-600 dark:focus:ring-custom-400/20 dark:bg-custom-400/20 ";return x.jsx("div",{children:e==="a"?x.jsx(aP,{id:r,to:"/#",onClick:d=>{d.preventDefault(),o()},className:u+(s?" show":""),children:t}):x.jsx("button",{id:r,onClick:d=>{d.stopPropagation(),d.preventDefault(),a(!s)},type:"button",className:l,title:i,children:t})})},hI=({as:e="div",className:t,children:n,placement:r})=>{const{open:i,setOpen:s}=g.useContext(dg),o=t||"absolute z-50 py-2 mt-1 text-left list-none bg-white rounded-md shadow-md dropdown-menu min-w-max dark:bg-zink-400",[a,l]=g.useState("right-end");g.useEffect(()=>{r&&l(r)},[r]);const u=g.useRef(null),d=document.getElementsByTagName("html")[0].getAttribute("dir"),c=()=>{if(i&&a==="right-end"&&u.current){const f=u.current;f.style.position="absolute",d==="rtl"?f.style.inset="0px auto auto 0px":f.style.inset="0px 0px auto auto",f.style.margin="0px",f.style.transform="translate(0px, 54px)"}if(i&&a==="start-end"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="0px auto auto 0px",f.style.margin="0px",f.style.transform="translate(0px, 20px)"}if(i&&a==="top-end"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="auto 0px 0px auto",f.style.margin="0px",f.style.transform="translate(-58px, -30px)"}if(i&&a==="bottom-start"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="0px 0px auto auto",f.style.margin="0px",f.style.transform="translate(0px, 54px)"}if(i&&a==="bottom-end"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="0px 0px auto auto",f.style.margin="0px",f.style.transform="translate(0px, 39px)"}if(i&&a==="top-start"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="auto auto 0px 0px",f.style.margin="0px",f.style.transform="translate(0px, -95px)"}if(i&&a==="left-end"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="0px auto auto 0px",f.style.margin="0px",f.style.right="0px",f.style.transform="translate(0px, -20px)"}return{}};return x.jsx(fI,{as:D.Fragment,show:i,children:f=>x.jsx(e,{ref:u,onClick:()=>s(!1),className:`${o} ${f==="entered"?"transition-all":""}`,style:c(),children:n})})};sa.Trigger=pI;sa.Content=hI;const mI={red:"hover:bg-red-100 text-red-600 font-medium",default:"hover:bg-slate-100 text-slate-700 font-medium"};function gI({onChatClose:e}){const[t,n]=g.useState(!1),r=ns(),i=()=>{r==null||r.emit(qn.ChatClose,{}),e()};return x.jsxs(x.Fragment,{children:[x.jsx(Ki,{children:t&&x.jsx(Me.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 bg-slate-900/40 z-50 flex items-center justify-center p-4",children:x.jsxs(Me.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{duration:.2},className:"bg-white p-5 rounded-xl shadow-lg max-w-xs w-full",children:[x.jsx("div",{className:"text-lg font-semibold text-slate-800 mb-2",children:"Sohbeti kapatmak istediğinize emin misiniz?"}),x.jsx("div",{className:"text-sm text-slate-600 mb-4",children:"Bu işlem geri alınamaz."}),x.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[x.jsx("button",{type:"button",className:"bg-slate-100 text-slate-700 px-4 py-2 rounded-lg font-medium transition-all hover:bg-slate-200",onClick:()=>n(!1),children:"Vazgeç"}),x.jsx("button",{type:"button",className:"bg-red-600 text-white px-4 py-2 rounded-lg font-medium transition-all hover:bg-red-700",onClick:i,children:"Kapat"})]})]})})}),x.jsxs(sa,{className:"relative flex items-center h-full",children:[x.jsx(sa.Trigger,{type:"button",className:"h-full flex items-center rounded-full p-1 hover:bg-slate-100 transition-colors",id:"dropdownMenuButton","data-bs-toggle":"dropdown",title:"Sohbet Ayarları",children:x.jsx(Oe.Menu,{className:"size-5 text-slate-600"})}),x.jsx(Ki,{children:!t&&x.jsx(Me.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2},className:"absolute z-[9999] right-0 top-5 min-w-[14rem]",children:x.jsxs(sa.Content,{placement:"left-end",className:"text-left bg-white rounded-lg shadow-xl dropdown-menu w-full","aria-labelledby":"dropdownMenuButton",children:[x.jsx("h5",{className:"text-sm font-semibold text-slate-500 px-3 py-2 border-b border-slate-100",children:"Sohbet Ayarları"}),x.jsx("ul",{className:"py-2 px-2",children:x.jsx("li",{children:x.jsxs("button",{className:ke("p-2 rounded-lg w-full flex items-center gap-2 text-sm transition-all duration-200 ease-linear dropdown-item",mI.red),onClick:s=>{s.stopPropagation(),s.preventDefault(),n(!0)},children:[x.jsx(Oe.X,{className:"w-4 h-4"}),x.jsx("span",{children:"Sohbeti Sonlandır"})]})})})]})})})]})]})}function vI({text:e}){const t=/(\b(?:https?:\/\/)?(?:www\.)?[a-z0-9.-]+\.[a-z]{2,}(?:\/[^\s]*)?)/gi,n=e.split(t);return x.jsx(x.Fragment,{children:n.map((r,i)=>{if(t.test(r)){const a=/^https?:\/\//i.test(r)?r:`https://${r}`;return x.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"text-blue-100! underline",children:r},i)}return x.jsx("span",{dangerouslySetInnerHTML:{__html:r}},i)})})}function vE({files:e,className:t,onDelete:n}){const[r,i]=g.useState(new Map);g.useEffect(()=>{const f=new Map;for(let p=0;p<e.length;p++){const h=e[p];if(h instanceof File){const y=URL.createObjectURL(h);f.set(p,y)}}return i(f),()=>{for(const p of f.values())URL.revokeObjectURL(p)}},[e]);const s=f=>{var h;return((h=(f instanceof File?f.name:f).split(".").pop())==null?void 0:h.toLowerCase())||""},o=f=>f instanceof File?f.name:f.split("/").pop()||f,a=f=>{const[p,h]=f.split(".");return p.length>10?`${p.slice(0,10)}...${h}`:f},l=f=>{const p=["jpg","jpeg","png","gif","bmp","webp","svg"],h=s(f);return p.includes(h)},u=(f,p)=>{if(f instanceof File){const h=r.get(p);h&&window.open(h,"_blank")}else window.open(f,"_blank")},d=(f,p)=>{f.stopPropagation(),n==null||n(p)},c=(f,p)=>f instanceof File?r.get(p)||"":f;return x.jsx("div",{className:ke("flex gap-2 max-w-min",t),children:e.map((f,p)=>{const h=o(f),y=s(f),w=l(f),m=c(f,p);return x.jsxs("div",{onClick:()=>u(f,p),className:"min-w-28 max-w-28 cursor-pointer group/item border border-gray-200 rounded-lg p-2 hover:shadow-md transition-all duration-200 hover:border-gray-300 bg-white relative",children:[n&&x.jsx("button",{onClick:v=>d(v,p),className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 hover:bg-red-600 text-white rounded-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 z-10",children:x.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:x.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),w?x.jsx("div",{className:"aspect-square w-fit mb-1 overflow-hidden rounded",children:x.jsx("img",{src:m,alt:h,className:"w-full h-full max-h-24 min-h-24 min-w-24 object-cover group-hover/item:scale-105 transition-transform duration-200"})}):x.jsx("div",{className:"min-w-24 aspect-square w-full mb-1 flex items-center justify-center bg-gray-50 rounded group-hover/item:bg-gray-100 transition-colors duration-200",children:x.jsxs("div",{className:"text-center",children:[x.jsx("div",{className:"w-8 h-8 mx-auto mb-1 bg-blue-100 rounded flex items-center justify-center",children:x.jsx("svg",{className:"w-4 h-4 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:x.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"})})}),x.jsx("div",{className:"text-[10px] font-medium text-gray-600 uppercase hidden opacity-0 group-hover/item:block group-hover/item:opacity-100 transition-opacity duration-200",children:y||"file"})]})}),x.jsx("div",{className:"max-w-24 text-xs text-gray-700 font-medium truncate text-ellipsis overflow-hidden hidden opacity-0 group-hover/item:block group-hover/item:opacity-100 transition-opacity duration-200",title:h,children:a(h)})]},p)})})}const yI={hidden:{opacity:0,y:8},visible:e=>({opacity:1,y:0,transition:{delay:e*.03,duration:.15,ease:"easeOut"}})},ix=e=>e?(typeof e=="string"&&(e=new Date(e)),e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})):"";function xI({messages:e,isTyping:t}){var d,c,f,p;const n=g.useRef(null),r=g.useRef(null),[i,s]=g.useState(!0),{widget:o}=ln(),a=xc(),l=()=>{var h;(h=n.current)==null||h.scrollIntoView({behavior:"smooth"})},u=()=>{if(r.current){const{scrollTop:h,scrollHeight:y,clientHeight:w}=r.current,m=y-h<=w+10;s(m)}};return g.useEffect(()=>{(i||t)&&l()},[e,i,t]),x.jsxs("section",{onScroll:u,ref:r,className:"flex flex-col gap-3 w-full h-full grow pt-4 px-4 overflow-y-auto",style:{height:a?"h-full":"calc(100vh - 142px)",minHeight:a?"60vh":""},children:[((c=(d=o==null?void 0:o.appearance)==null?void 0:d.design)==null?void 0:c.greeting_message)&&x.jsx("div",{className:"flex w-full items-center justify-start",children:x.jsx("div",{className:"max-w-[85%] whitespace-pre-wrap border-0 rounded-lg px-3 py-2 bg-blue-700 text-white shadow-sm",children:(p=(f=o==null?void 0:o.appearance)==null?void 0:f.design)==null?void 0:p.greeting_message})}),x.jsx(Ki,{children:e.filter(h=>!!h.content&&h.content!==`
|
|
110
|
-
`).map((h,y)=>
|
|
108
|
+
`))}else{let f=d.props,p=f==null?void 0:f.className,h=typeof p=="function"?(...g)=>Kp(p(...g),l.className):Kp(p,l.className),y=h?{className:h}:{},b=cE(d.props,wi(Kd(l,["ref"])));for(let g in c)g in b&&delete c[g];return m.cloneElement(d,Object.assign({},b,c,u,{ref:i(YL(d),u.ref)},y))}return m.createElement(s,Object.assign({},Kd(l,["ref"]),s!==m.Fragment&&u,s!==m.Fragment&&c),d)}function GL(){let e=m.useRef([]),t=m.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function QL(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function cE(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var s;return(s=i==null?void 0:i.preventDefault)==null?void 0:s.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...s){let o=n[r];for(let a of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...s)}}});return t}function ug(e){var t;return Object.assign(m.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function wi(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Kd(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function YL(e){return F.version.split(".")[0]>="19"?e.props.ref:e.ref}let XL=Symbol();function dE(...e){let t=m.useRef(e);m.useEffect(()=>{t.current=e},[e]);let n=sr(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[XL]))?void 0:n}function ZL(e=0){let[t,n]=m.useState(e),r=m.useCallback(l=>n(l),[t]),i=m.useCallback(l=>n(u=>u|l),[t]),s=m.useCallback(l=>(t&l)===l,[t]),o=m.useCallback(l=>n(u=>u&~l),[n]),a=m.useCallback(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:s,removeFlag:o,toggleFlag:a}}var JL={},ix,sx;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((ix=process==null?void 0:JL)==null?void 0:ix.NODE_ENV)==="test"&&typeof((sx=Element==null?void 0:Element.prototype)==null?void 0:sx.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
109
|
+
`)),[]});var eI=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(eI||{});function tI(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function nI(e,t,n,r){let[i,s]=m.useState(n),{hasFlag:o,addFlag:a,removeFlag:l}=ZL(e&&i?3:0),u=m.useRef(!1),d=m.useRef(!1),c=oE();return Jr(()=>{var f;if(e){if(n&&s(!0),!t){n&&a(3);return}return(f=r==null?void 0:r.start)==null||f.call(r,n),rI(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){d.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var p;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||s(!1),(p=r==null?void 0:r.end)==null||p.call(r,n))}})}},[e,n,t,c]),e?[i,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function rI(e,{prepare:t,run:n,done:r,inFlight:i}){let s=$c();return sI(e,{prepare:t,inFlight:i}),s.nextFrame(()=>{n(),s.requestAnimationFrame(()=>{s.add(iI(e,r))})}),s.dispose}function iI(e,t){var n,r;let i=$c();if(!e)return i.dispose;let s=!1;i.add(()=>{s=!0});let o=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return o.length===0?(t(),i.dispose):(Promise.allSettled(o.map(a=>a.finished)).then(()=>{s||t()}),i.dispose)}function sI(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}let cg=m.createContext(null);cg.displayName="OpenClosedContext";var Pi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pi||{});function fE(){return m.useContext(cg)}function oI({value:e,children:t}){return F.createElement(cg.Provider,{value:e},t)}function aI(){let e=typeof document>"u";return"useSyncExternalStore"in Yd?(t=>t.useSyncExternalStore)(Yd)(()=>()=>{},()=>!1,()=>!e):!1}function pE(){let e=aI(),[t,n]=m.useState(iu.isHandoffComplete);return t&&iu.isHandoffComplete===!1&&n(!1),m.useEffect(()=>{t!==!0&&n(!0)},[t]),m.useEffect(()=>iu.handoff(),[]),e?!1:t}function lI(){let e=m.useRef(!1);return Jr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function hE(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:gE)!==m.Fragment||F.Children.count(e.children)===1}let Bc=m.createContext(null);Bc.displayName="TransitionContext";var uI=(e=>(e.Visible="visible",e.Hidden="hidden",e))(uI||{});function cI(){let e=m.useContext(Bc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function dI(){let e=m.useContext(Vc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Vc=m.createContext(null);Vc.displayName="NestingContext";function Uc(e){return"children"in e?Uc(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function mE(e,t){let n=aE(e),r=m.useRef([]),i=lI(),s=oE(),o=sr((p,h=zr.Hidden)=>{let y=r.current.findIndex(({el:b})=>b===p);y!==-1&&(zc(h,{[zr.Unmount](){r.current.splice(y,1)},[zr.Hidden](){r.current[y].state="hidden"}}),s.microTask(()=>{var b;!Uc(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=sr(p=>{let h=r.current.find(({el:y})=>y===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>o(p,zr.Unmount)}),l=m.useRef([]),u=m.useRef(Promise.resolve()),d=m.useRef({enter:[],leave:[]}),c=sr((p,h,y)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([b])=>b!==p)),t==null||t.chains.current[h].push([p,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[h].push([p,new Promise(b=>{Promise.all(d.current[h].map(([g,x])=>x)).then(()=>b())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(h)):y(h)}),f=sr((p,h,y)=>{Promise.all(d.current[h].splice(0).map(([b,g])=>g)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>y(h))});return m.useMemo(()=>({children:r,register:a,unregister:o,onStart:c,onStop:f,wait:u,chains:d}),[a,o,r,c,f,d,u])}let gE=m.Fragment,vE=lE.RenderStrategy;function fI(e,t){var n,r;let{transition:i=!0,beforeEnter:s,afterEnter:o,beforeLeave:a,afterLeave:l,enter:u,enterFrom:d,enterTo:c,entered:f,leave:p,leaveFrom:h,leaveTo:y,...b}=e,[g,x]=m.useState(null),w=m.useRef(null),C=hE(e),T=dE(...C?[w,t,x]:t===null?[]:[t]),E=(n=b.unmount)==null||n?zr.Unmount:zr.Hidden,{show:S,appear:_,initial:D}=cI(),[R,I]=m.useState(S?"visible":"hidden"),ne=dI(),{register:te,unregister:Z}=ne;Jr(()=>te(w),[te,w]),Jr(()=>{if(E===zr.Hidden&&w.current){if(S&&R!=="visible"){I("visible");return}return zc(R,{hidden:()=>Z(w),visible:()=>te(w)})}},[R,w,te,Z,S,E]);let J=pE();Jr(()=>{if(C&&J&&R==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,R,J,C]);let G=D&&!_,Y=_&&S&&D,O=m.useRef(!1),M=mE(()=>{O.current||(I("hidden"),Z(w))},ne),U=sr(Fe=>{O.current=!0;let Ye=Fe?"enter":"leave";M.onStart(w,Ye,Xe=>{Xe==="enter"?s==null||s():Xe==="leave"&&(a==null||a())})}),V=sr(Fe=>{let Ye=Fe?"enter":"leave";O.current=!1,M.onStop(w,Ye,Xe=>{Xe==="enter"?o==null||o():Xe==="leave"&&(l==null||l())}),Ye==="leave"&&!Uc(M)&&(I("hidden"),Z(w))});m.useEffect(()=>{C&&i||(U(S),V(S))},[S,C,i]);let H=!(!i||!C||!J||G),[,X]=nI(H,g,S,{start:U,end:V}),ue=wi({ref:T,className:((r=Kp(b.className,Y&&u,Y&&d,X.enter&&u,X.enter&&X.closed&&d,X.enter&&!X.closed&&c,X.leave&&p,X.leave&&!X.closed&&h,X.leave&&X.closed&&y,!X.transition&&S&&f))==null?void 0:r.trim())||void 0,...tI(X)}),he=0;R==="visible"&&(he|=Pi.Open),R==="hidden"&&(he|=Pi.Closed),S&&R==="hidden"&&(he|=Pi.Opening),!S&&R==="visible"&&(he|=Pi.Closing);let ee=uE();return F.createElement(Vc.Provider,{value:M},F.createElement(oI,{value:he},ee({ourProps:ue,theirProps:b,defaultTag:gE,features:vE,visible:R==="visible",name:"Transition.Child"})))}function pI(e,t){let{show:n,appear:r=!1,unmount:i=!0,...s}=e,o=m.useRef(null),a=hE(e),l=dE(...a?[o,t]:t===null?[]:[t]);pE();let u=fE();if(n===void 0&&u!==null&&(n=(u&Pi.Open)===Pi.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,c]=m.useState(n?"visible":"hidden"),f=mE(()=>{n||c("hidden")}),[p,h]=m.useState(!0),y=m.useRef([n]);Jr(()=>{p!==!1&&y.current[y.current.length-1]!==n&&(y.current.push(n),h(!1))},[y,n]);let b=m.useMemo(()=>({show:n,appear:r,initial:p}),[n,r,p]);Jr(()=>{n?c("visible"):!Uc(f)&&o.current!==null&&c("hidden")},[n,f]);let g={unmount:i},x=sr(()=>{var T;p&&h(!1),(T=e.beforeEnter)==null||T.call(e)}),w=sr(()=>{var T;p&&h(!1),(T=e.beforeLeave)==null||T.call(e)}),C=uE();return F.createElement(Vc.Provider,{value:f},F.createElement(Bc.Provider,{value:b},C({ourProps:{...g,as:m.Fragment,children:F.createElement(yE,{ref:l,...g,...s,beforeEnter:x,beforeLeave:w})},theirProps:{},defaultTag:m.Fragment,features:vE,visible:d==="visible",name:"Transition"})))}function hI(e,t){let n=m.useContext(Bc)!==null,r=fE()!==null;return F.createElement(F.Fragment,null,!n&&r?F.createElement(Gp,{ref:t,...e}):F.createElement(yE,{ref:t,...e}))}let Gp=ug(pI),yE=ug(fI),mI=ug(hI),gI=Object.assign(Gp,{Child:mI,Root:Gp});const dg=m.createContext(void 0),sa=({as:e="div",children:t,className:n})=>{const[r,i]=m.useState(!1),s=m.useCallback(()=>{i(a=>!a)},[]),o=m.useRef(null);return m.useEffect(()=>{const a=l=>{o.current&&!o.current.contains(l.target)&&r&&s&&s()};return document.addEventListener("click",a),()=>{document.removeEventListener("click",a)}},[r,s]),v.jsx(dg.Provider,{value:{open:r,setOpen:i,toggleOpen:s},children:v.jsx(e,{ref:o,className:`dropdown ${n}`,children:t})})},vI=({type:e,children:t,className:n,id:r,title:i})=>{const{open:s,toggleOpen:o,setOpen:a}=m.useContext(dg),l=n||"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-sm",u=n||"transition-all duration-200 ease-linear bg-white border-dashed dropdown-toggle text-custom-500 btn border-custom-500 hover:text-custom-500 hover:bg-custom-50 hover:border-custom-600 focus:text-custom-600 focus:bg-custom-50 focus:border-custom-600 active:text-custom-600 active:bg-custom-50 active:border-custom-600 dark:focus:ring-custom-400/20 dark:bg-custom-400/20 ";return v.jsx("div",{children:e==="a"?v.jsx(uP,{id:r,to:"/#",onClick:d=>{d.preventDefault(),o()},className:u+(s?" show":""),children:t}):v.jsx("button",{id:r,onClick:d=>{d.stopPropagation(),d.preventDefault(),a(!s)},type:"button",className:l,title:i,children:t})})},yI=({as:e="div",className:t,children:n,placement:r})=>{const{open:i,setOpen:s}=m.useContext(dg),o=t||"absolute z-50 py-2 mt-1 text-left list-none bg-white rounded-md shadow-md dropdown-menu min-w-max dark:bg-zink-400",[a,l]=m.useState("right-end");m.useEffect(()=>{r&&l(r)},[r]);const u=m.useRef(null),d=document.getElementsByTagName("html")[0].getAttribute("dir"),c=()=>{if(i&&a==="right-end"&&u.current){const f=u.current;f.style.position="absolute",d==="rtl"?f.style.inset="0px auto auto 0px":f.style.inset="0px 0px auto auto",f.style.margin="0px",f.style.transform="translate(0px, 54px)"}if(i&&a==="start-end"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="0px auto auto 0px",f.style.margin="0px",f.style.transform="translate(0px, 20px)"}if(i&&a==="top-end"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="auto 0px 0px auto",f.style.margin="0px",f.style.transform="translate(-58px, -30px)"}if(i&&a==="bottom-start"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="0px 0px auto auto",f.style.margin="0px",f.style.transform="translate(0px, 54px)"}if(i&&a==="bottom-end"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="0px 0px auto auto",f.style.margin="0px",f.style.transform="translate(0px, 39px)"}if(i&&a==="top-start"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="auto auto 0px 0px",f.style.margin="0px",f.style.transform="translate(0px, -95px)"}if(i&&a==="left-end"&&u.current){const f=u.current;f.style.position="absolute",f.style.inset="0px auto auto 0px",f.style.margin="0px",f.style.right="0px",f.style.transform="translate(0px, -20px)"}return{}};return v.jsx(gI,{as:F.Fragment,show:i,children:f=>v.jsx(e,{ref:u,onClick:()=>s(!1),className:`${o} ${f==="entered"?"transition-all":""}`,style:c(),children:n})})};sa.Trigger=vI;sa.Content=yI;const xI={red:"hover:bg-red-100 text-red-600 font-medium",default:"hover:bg-slate-100 text-slate-700 font-medium"};function wI({onChatClose:e}){const[t,n]=m.useState(!1),r=ns(),i=()=>{r==null||r.emit(Kn.ChatClose,{}),e()};return v.jsxs(v.Fragment,{children:[v.jsx(Yr,{children:t&&v.jsx(Te.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"absolute inset-0 bg-slate-900/40 z-50 flex items-center justify-center p-4",children:v.jsxs(Te.div,{initial:{scale:.95,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.95,opacity:0},transition:{duration:.2},className:"bg-white p-5 rounded-xl shadow-lg max-w-xs w-full",children:[v.jsx("div",{className:"text-lg font-semibold text-slate-800 mb-2",children:"Sohbeti kapatmak istediğinize emin misiniz?"}),v.jsx("div",{className:"text-sm text-slate-600 mb-4",children:"Bu işlem geri alınamaz."}),v.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[v.jsx("button",{type:"button",className:"bg-slate-100 text-slate-700 px-4 py-2 rounded-lg font-medium transition-all hover:bg-slate-200",onClick:()=>n(!1),children:"Vazgeç"}),v.jsx("button",{type:"button",className:"bg-red-600 text-white px-4 py-2 rounded-lg font-medium transition-all hover:bg-red-700",onClick:i,children:"Kapat"})]})]})})}),v.jsxs(sa,{className:"relative flex items-center h-full",children:[v.jsx(sa.Trigger,{type:"button",className:"h-full flex items-center rounded-full p-1 hover:bg-slate-100 transition-colors",id:"dropdownMenuButton","data-bs-toggle":"dropdown",title:"Sohbet Ayarları",children:v.jsx(ve.Menu,{className:"size-5 text-slate-600"})}),v.jsx(Yr,{children:!t&&v.jsx(Te.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2},className:"absolute z-[9999] right-0 top-5 min-w-[14rem]",children:v.jsxs(sa.Content,{placement:"left-end",className:"text-left bg-white rounded-lg shadow-xl dropdown-menu w-full","aria-labelledby":"dropdownMenuButton",children:[v.jsx("h5",{className:"text-sm font-semibold text-slate-500 px-3 py-2 border-b border-slate-100",children:"Sohbet Ayarları"}),v.jsx("ul",{className:"py-2 px-2",children:v.jsx("li",{children:v.jsxs("button",{className:ge("p-2 rounded-lg w-full flex items-center gap-2 text-sm transition-all duration-200 ease-linear dropdown-item",xI.red),onClick:s=>{s.stopPropagation(),s.preventDefault(),n(!0)},children:[v.jsx(ve.X,{className:"w-4 h-4"}),v.jsx("span",{children:"Sohbeti Sonlandır"})]})})})]})})})]})]})}function bI({text:e}){const t=/(\b(?:https?:\/\/)?(?:www\.)?[a-z0-9.-]+\.[a-z]{2,}(?:\/[^\s]*)?)/gi,n=e.split(t);return v.jsx(v.Fragment,{children:n.map((r,i)=>{if(t.test(r)){const a=/^https?:\/\//i.test(r)?r:`https://${r}`;return v.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"text-blue-100! underline",children:r},i)}return v.jsx("span",{dangerouslySetInnerHTML:{__html:r}},i)})})}const ox="opacity-0 group-hover/item:opacity-100 transition-opacity duration-200";function xE({files:e,className:t,onDelete:n,hideName:r}){const[i,s]=m.useState(new Map);m.useEffect(()=>{const p=new Map;for(let h=0;h<e.length;h++){const y=e[h];if(y instanceof File){const b=URL.createObjectURL(y);p.set(h,b)}}return s(p),()=>{for(const h of p.values())URL.revokeObjectURL(h)}},[e]);const o=p=>{var y;return((y=(p instanceof File?p.name:p).split(".").pop())==null?void 0:y.toLowerCase())||""},a=p=>p instanceof File?p.name:p.split("/").pop()||p,l=p=>{const[h,y]=p.split(".");return h.length>10?`${h.slice(0,10)}...${y}`:p},u=p=>{const h=["jpg","jpeg","png","gif","bmp","webp","svg"],y=o(p);return h.includes(y)},d=(p,h)=>{if(p instanceof File){const y=i.get(h);y&&window.open(y,"_blank")}else window.open(p,"_blank")},c=(p,h)=>{p.stopPropagation(),n==null||n(h)},f=(p,h)=>p instanceof File?i.get(h)||"":p;return v.jsx("div",{className:ge("flex gap-2 w-full overflow-x-auto",t),children:e.map((p,h)=>{const y=a(p),b=o(p),g=u(p),x=f(p,h);return v.jsxs("div",{onClick:()=>d(p,h),className:"min-w-28 max-w-28 cursor-pointer group/item border border-gray-200 rounded-lg p-2 hover:shadow-md transition-all duration-200 hover:border-gray-300 bg-white relative",children:[n&&v.jsx("button",{onClick:w=>c(w,h),className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 hover:bg-red-600 text-white rounded-full flex items-center justify-center opacity-0 group-hover/item:opacity-100 transition-opacity duration-200 z-10",children:v.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 20 20",children:v.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})}),g?v.jsx("div",{className:"aspect-square w-fit mb-1 overflow-hidden rounded",children:v.jsx("img",{src:x,alt:y,className:"w-24 h-24 min-h-24 min-w-24 object-cover group-hover/item:scale-105 transition-transform duration-200"})}):v.jsx("div",{className:"min-w-24 aspect-square w-full mb-1 flex items-center justify-center bg-gray-50 rounded group-hover/item:bg-gray-100 transition-colors duration-200",children:v.jsxs("div",{className:"text-center",children:[v.jsx("div",{className:"w-8 h-8 mx-auto mb-1 bg-blue-100 rounded flex items-center justify-center",children:v.jsx("svg",{className:"w-4 h-4 text-blue-600",fill:"currentColor",viewBox:"0 0 20 20",children:v.jsx("path",{fillRule:"evenodd",d:"M4 4a2 2 0 012-2h4.586A2 2 0 0112 2.586L15.414 6A2 2 0 0116 7.414V16a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm2 6a1 1 0 011-1h6a1 1 0 110 2H7a1 1 0 01-1-1zm1 3a1 1 0 100 2h6a1 1 0 100-2H7z",clipRule:"evenodd"})})}),v.jsx("div",{className:ge("text-[10px] font-medium text-gray-600 uppercase",{[ox]:r}),children:b||"file"})]})}),v.jsx("div",{className:ge("max-w-24 text-xs text-gray-700 font-medium truncate text-ellipsis overflow-hidden",{[ox]:r}),title:y,children:l(y)})]},h)})})}const SI={hidden:{opacity:0,y:8},visible:e=>({opacity:1,y:0,transition:{delay:e*.03,duration:.15,ease:"easeOut"}})},ax=e=>e?(typeof e=="string"&&(e=new Date(e)),e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})):"";function kI({messages:e,isTyping:t}){var d,c,f,p;const n=m.useRef(null),r=m.useRef(null),[i,s]=m.useState(!0),{widget:o}=un(),a=wc(),l=()=>{var h;(h=n.current)==null||h.scrollIntoView({behavior:"smooth"})},u=()=>{if(r.current){const{scrollTop:h,scrollHeight:y,clientHeight:b}=r.current,g=y-h<=b+10;s(g)}};return m.useEffect(()=>{(i||t)&&l()},[e,i,t]),v.jsxs("section",{onScroll:u,ref:r,className:"flex flex-col gap-3 w-full grow pt-4 px-4 overflow-y-auto",style:{height:a?"100%":"calc(100vh - 142px)",minHeight:a?"60vh":"",maxHeight:a?"80vh":""},children:[((c=(d=o==null?void 0:o.appearance)==null?void 0:d.design)==null?void 0:c.greeting_message)&&v.jsx("div",{className:"flex w-full items-center justify-start",children:v.jsx("div",{className:"max-w-[85%] whitespace-pre-wrap border-0 rounded-lg px-3 py-2 bg-blue-700 text-white shadow-sm",children:(p=(f=o==null?void 0:o.appearance)==null?void 0:f.design)==null?void 0:p.greeting_message})}),v.jsx(Yr,{children:e.filter(h=>!!h.content&&h.content!==`
|
|
110
|
+
`).map((h,y)=>v.jsxs(Te.div,{custom:y,initial:"hidden",animate:"visible",variants:SI,className:ge("flex w-full items-center break-words",{"justify-end":h.sender_type===lt.Customer,"justify-start":h.sender_type===lt.User,"justify-center":h.sender_type===lt.System||h.sender_type===lt.Activity}),children:[h.sender_type===lt.System&&v.jsx("div",{className:"whitespace-pre-wrap text-slate-600 bg-slate-100 px-3 py-1.5 rounded-lg text-sm shadow-sm",children:h.content}),[lt.Customer,lt.User].includes(h.sender_type)&&v.jsxs(Te.div,{initial:{scale:.95},animate:{scale:1},transition:{duration:.2},className:ge("max-w-[85%] whitespace-pre-wrap border-0 rounded-lg px-3 py-2 shadow-sm",{"bg-indigo-100 text-indigo-800":h.sender_type===lt.Customer,"bg-blue-600 text-white":h.sender_type===lt.User}),children:[h.files&&h.files.length>0&&v.jsx(xE,{files:h.files,className:"mb-1",hideName:!0}),h.sender_type===lt.User?v.jsx(bI,{text:h.content}):h.content,h.created_at&&v.jsx("div",{className:ge("text-[0.5rem] text-right",{"text-indigo-400":h.sender_type===lt.Customer,"text-blue-100":h.sender_type===lt.User}),children:ax(h.created_at)})]}),h.sender_type===lt.Activity&&(h.content.split("_").length===3?v.jsxs("div",{className:"whitespace-pre-wrap bg-slate-100 border-0 rounded-full px-3 py-1 text-xs text-slate-600 shadow-none",children:[h.content.split("_")[2]," odaya katıldı"]}):v.jsx("div",{className:"whitespace-pre-wrap bg-slate-100 border-0 rounded-full px-3 py-1 text-xs text-slate-600 shadow-none",children:h.content})),lt.System===h.sender_type&&v.jsx("div",{className:"text-xs text-slate-400",children:h.created_at&&ax(h.created_at)})]},h.id||y))}),t&&v.jsx("div",{className:"flex w-full items-center justify-start mt-1",children:v.jsx("div",{className:"flex items-center bg-slate-100 rounded-full px-3 py-1.5 shadow-none",children:v.jsxs("div",{className:"flex space-x-1",children:[v.jsx("div",{className:"size-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"0ms"}}),v.jsx("div",{className:"size-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"150ms"}}),v.jsx("div",{className:"size-2 bg-slate-400 rounded-full animate-bounce",style:{animationDelay:"300ms"}})]})})}),!i&&v.jsx("div",{className:"fixed bottom-40 right-14",children:v.jsx(rn,{type:"button",variant:"primary",kind:"solid",rounded:!0,className:"size-10 flex items-center justify-center p-0! shadow-md",onClick:()=>{var h,y;(y=r.current)==null||y.scrollTo({top:(h=r.current)==null?void 0:h.scrollHeight,behavior:"smooth"})},children:v.jsx(ve.ArrowDown,{className:"size-4"})})}),v.jsx("div",{ref:n})]})}/**
|
|
111
111
|
* @license lucide-react v0.511.0 - ISC
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the ISC license.
|
|
114
114
|
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const
|
|
115
|
+
*/const EI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),TI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),lx=e=>{const t=TI(e);return t.charAt(0).toUpperCase()+t.slice(1)},wE=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),CI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
|
|
116
116
|
* @license lucide-react v0.511.0 - ISC
|
|
117
117
|
*
|
|
118
118
|
* This source code is licensed under the ISC license.
|
|
119
119
|
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/var
|
|
120
|
+
*/var _I={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
121
121
|
* @license lucide-react v0.511.0 - ISC
|
|
122
122
|
*
|
|
123
123
|
* This source code is licensed under the ISC license.
|
|
124
124
|
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const
|
|
125
|
+
*/const PI=m.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:o,...a},l)=>m.createElement("svg",{ref:l,..._I,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:wE("lucide",i),...!s&&!CI(a)&&{"aria-hidden":"true"},...a},[...o.map(([u,d])=>m.createElement(u,d)),...Array.isArray(s)?s:[s]]));/**
|
|
126
126
|
* @license lucide-react v0.511.0 - ISC
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the ISC license.
|
|
129
129
|
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const
|
|
130
|
+
*/const jI=(e,t)=>{const n=m.forwardRef(({className:r,...i},s)=>m.createElement(PI,{ref:s,iconNode:t,className:wE(`lucide-${EI(lx(e))}`,`lucide-${e}`,r),...i}));return n.displayName=lx(e),n};/**
|
|
131
131
|
* @license lucide-react v0.511.0 - ISC
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the ISC license.
|
|
134
134
|
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const CI=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],xE=TI("cloud-upload",CI);var wE={exports:{}},_I="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",PI=_I,jI=PI;function bE(){}function SE(){}SE.resetWarningCache=bE;var AI=function(){function e(r,i,s,o,a,l){if(l!==jI){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:SE,resetWarningCache:bE};return n.PropTypes=n,n};wE.exports=AI();var RI=wE.exports;const me=Qi(RI);function us(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(c){o(c)}}function l(d){try{u(r.throw(d))}catch(c){o(c)}}function u(d){d.done?s(d.value):i(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const OI=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function po(e,t,n){const r=DI(e),{webkitRelativePath:i}=e,s=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&ox(r,"path",s),ox(r,"relativePath",s),r}function DI(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=OI.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function ox(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const FI=[".DS_Store","Thumbs.db"];function NI(e){return us(this,void 0,void 0,function*(){return Hu(e)&&MI(e.dataTransfer)?zI(e.dataTransfer,e.type):LI(e)?II(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?$I(e):[]})}function MI(e){return Hu(e)}function LI(e){return Hu(e)&&Hu(e.target)}function Hu(e){return typeof e=="object"&&e!==null}function II(e){return Gp(e.target.files).map(t=>po(t))}function $I(e){return us(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>po(n))})}function zI(e,t){return us(this,void 0,void 0,function*(){if(e.items){const n=Gp(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(VI));return ax(kE(r))}return ax(Gp(e.files).map(n=>po(n)))})}function ax(e){return e.filter(t=>FI.indexOf(t.name)===-1)}function Gp(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function VI(e){if(typeof e.webkitGetAsEntry!="function")return lx(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?EE(t):lx(e,t)}function kE(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?kE(n):[n]],[])}function lx(e,t){return us(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const s=yield e.getAsFileSystemHandle();if(s===null)throw new Error(`${e} is not a File`);if(s!==void 0){const o=yield s.getFile();return o.handle=s,po(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return po(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function BI(e){return us(this,void 0,void 0,function*(){return e.isDirectory?EE(e):UI(e)})}function EE(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function s(){t.readEntries(o=>us(this,void 0,void 0,function*(){if(o.length){const a=Promise.all(o.map(BI));i.push(a),s()}else try{const a=yield Promise.all(i);n(a)}catch(a){r(a)}}),o=>{r(o)})}s()})}function UI(e){return us(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=po(r,e.fullPath);t(i)},r=>{n(r)})})})}var Kd=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),s=i.replace(/\/.*$/,"");return n.some(function(o){var a=o.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?s===a.replace(/\/.*$/,""):i===a})}return!0};function ux(e){return qI(e)||WI(e)||CE(e)||HI()}function HI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
136
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
137
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
138
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
139
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RE(e,t){if(e){if(typeof e=="string")return Yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yp(e,t)}}function Yp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function S$(e){if(Array.isArray(e))return e}function mx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mx(Object(n),!0).forEach(function(r){Xp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e,t){if(e==null)return{};var n=k$(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function k$(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 tl=g.forwardRef(function(e,t){var n=e.children,r=qu(e,f$),i=E$(r),s=i.open,o=qu(i,p$);return g.useImperativeHandle(t,function(){return{open:s}},[s]),D.createElement(g.Fragment,null,n(Ee(Ee({},o),{},{open:s})))});tl.displayName="Dropzone";var OE={disabled:!1,getFilesFromEvent:NI,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};tl.defaultProps=OE;tl.propTypes={children:me.func,accept:me.objectOf(me.arrayOf(me.string)),multiple:me.bool,preventDropOnDocument:me.bool,noClick:me.bool,noKeyboard:me.bool,noDrag:me.bool,noDragEventsBubbling:me.bool,minSize:me.number,maxSize:me.number,maxFiles:me.number,disabled:me.bool,getFilesFromEvent:me.func,onFileDialogCancel:me.func,onFileDialogOpen:me.func,useFsAccessApi:me.bool,autoFocus:me.bool,onDragEnter:me.func,onDragLeave:me.func,onDragOver:me.func,onDrop:me.func,onDropAccepted:me.func,onDropRejected:me.func,onError:me.func,validator:me.func};var Zp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function E$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ee(Ee({},OE),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,s=t.maxSize,o=t.minSize,a=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,c=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,m=t.useFsAccessApi,v=t.autoFocus,b=t.preventDropOnDocument,T=t.noClick,E=t.noKeyboard,C=t.noDrag,S=t.noDragEventsBubbling,_=t.onError,N=t.validator,R=g.useMemo(function(){return u$(n)},[n]),I=g.useMemo(function(){return l$(n)},[n]),ne=g.useMemo(function(){return typeof w=="function"?w:gx},[w]),te=g.useMemo(function(){return typeof y=="function"?y:gx},[y]),ee=g.useRef(null),le=g.useRef(null),X=g.useReducer(T$,Zp),re=Gd(X,2),O=re[0],M=re[1],U=O.isFocused,B=O.isFileDialogActive,H=g.useRef(typeof window<"u"&&window.isSecureContext&&m&&a$()),G=function(){!H.current&&B&&setTimeout(function(){if(le.current){var A=le.current.files;A.length||(M({type:"closeDialog"}),te())}},300)};g.useEffect(function(){return window.addEventListener("focus",G,!1),function(){window.removeEventListener("focus",G,!1)}},[le,B,te,H]);var ue=g.useRef([]),he=function(A){ee.current&&ee.current.contains(A.target)||(A.preventDefault(),ue.current=[])};g.useEffect(function(){return b&&(document.addEventListener("dragover",hx,!1),document.addEventListener("drop",he,!1)),function(){b&&(document.removeEventListener("dragover",hx),document.removeEventListener("drop",he))}},[ee,b]),g.useEffect(function(){return!r&&v&&ee.current&&ee.current.focus(),function(){}},[ee,v,r]);var Y=g.useCallback(function(j){_?_(j):console.error(j)},[_]),De=g.useCallback(function(j){j.preventDefault(),j.persist(),yr(j),ue.current=[].concat(g$(ue.current),[j.target]),Fl(j)&&Promise.resolve(i(j)).then(function(A){if(!(Wu(j)&&!S)){var V=A.length,q=V>0&&r$({files:A,accept:R,minSize:o,maxSize:s,multiple:a,maxFiles:l,validator:N}),se=V>0&&!q;M({isDragAccept:q,isDragReject:se,isDragActive:!0,type:"setDraggedFiles"}),u&&u(j)}}).catch(function(A){return Y(A)})},[i,u,Y,S,R,o,s,a,l,N]),Ye=g.useCallback(function(j){j.preventDefault(),j.persist(),yr(j);var A=Fl(j);if(A&&j.dataTransfer)try{j.dataTransfer.dropEffect="copy"}catch{}return A&&c&&c(j),!1},[c,S]),Xe=g.useCallback(function(j){j.preventDefault(),j.persist(),yr(j);var A=ue.current.filter(function(q){return ee.current&&ee.current.contains(q)}),V=A.indexOf(j.target);V!==-1&&A.splice(V,1),ue.current=A,!(A.length>0)&&(M({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Fl(j)&&d&&d(j))},[ee,d,S]),Ot=g.useCallback(function(j,A){var V=[],q=[];j.forEach(function(se){var $e=_E(se,R),Ze=Gd($e,2),Tn=Ze[0],qt=Ze[1],ds=PE(se,o,s),Qn=Gd(ds,2),xr=Qn[0],fs=Qn[1],Eo=N?N(se):null;if(Tn&&xr&&!Eo)V.push(se);else{var di=[qt,fs];Eo&&(di=di.concat(Eo)),q.push({file:se,errors:di.filter(function(Cn){return Cn})})}}),(!a&&V.length>1||a&&l>=1&&V.length>l)&&(V.forEach(function(se){q.push({file:se,errors:[n$]})}),V.splice(0)),M({acceptedFiles:V,fileRejections:q,isDragReject:q.length>0,type:"setFiles"}),f&&f(V,q,A),q.length>0&&h&&h(q,A),V.length>0&&p&&p(V,A)},[M,a,R,o,s,l,f,p,h,N]),En=g.useCallback(function(j){j.preventDefault(),j.persist(),yr(j),ue.current=[],Fl(j)&&Promise.resolve(i(j)).then(function(A){Wu(j)&&!S||Ot(A,j)}).catch(function(A){return Y(A)}),M({type:"reset"})},[i,Ot,Y,S]),un=g.useCallback(function(){if(H.current){M({type:"openDialog"}),ne();var j={multiple:a,types:I};window.showOpenFilePicker(j).then(function(A){return i(A)}).then(function(A){Ot(A,null),M({type:"closeDialog"})}).catch(function(A){c$(A)?(te(A),M({type:"closeDialog"})):d$(A)?(H.current=!1,le.current?(le.current.value=null,le.current.click()):Y(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Y(A)});return}le.current&&(M({type:"openDialog"}),ne(),le.current.value=null,le.current.click())},[M,ne,te,m,Ot,Y,I,a]),ui=g.useCallback(function(j){!ee.current||!ee.current.isEqualNode(j.target)||(j.key===" "||j.key==="Enter"||j.keyCode===32||j.keyCode===13)&&(j.preventDefault(),un())},[ee,un]),gr=g.useCallback(function(){M({type:"focus"})},[]),cs=g.useCallback(function(){M({type:"blur"})},[]),ci=g.useCallback(function(){T||(o$()?setTimeout(un,0):un())},[T,un]),bt=function(A){return r?null:A},vr=function(A){return E?null:bt(A)},He=function(A){return C?null:bt(A)},yr=function(A){S&&A.stopPropagation()},ko=g.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=j.refKey,V=A===void 0?"ref":A,q=j.role,se=j.onKeyDown,$e=j.onFocus,Ze=j.onBlur,Tn=j.onClick,qt=j.onDragEnter,ds=j.onDragOver,Qn=j.onDragLeave,xr=j.onDrop,fs=qu(j,h$);return Ee(Ee(Xp({onKeyDown:vr(jn(se,ui)),onFocus:vr(jn($e,gr)),onBlur:vr(jn(Ze,cs)),onClick:bt(jn(Tn,ci)),onDragEnter:He(jn(qt,De)),onDragOver:He(jn(ds,Ye)),onDragLeave:He(jn(Qn,Xe)),onDrop:He(jn(xr,En)),role:typeof q=="string"&&q!==""?q:"presentation"},V,ee),!r&&!E?{tabIndex:0}:{}),fs)}},[ee,ui,gr,cs,ci,De,Ye,Xe,En,E,C,r]),P=g.useCallback(function(j){j.stopPropagation()},[]),L=g.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=j.refKey,V=A===void 0?"ref":A,q=j.onChange,se=j.onClick,$e=qu(j,m$),Ze=Xp({accept:R,multiple:a,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:bt(jn(q,En)),onClick:bt(jn(se,P)),tabIndex:-1},V,le);return Ee(Ee({},Ze),$e)}},[le,n,a,En,r]);return Ee(Ee({},O),{},{isFocused:U&&!r,getRootProps:ko,getInputProps:L,rootRef:ee,inputRef:le,open:bt(un)})}function T$(e,t){switch(t.type){case"focus":return Ee(Ee({},e),{},{isFocused:!0});case"blur":return Ee(Ee({},e),{},{isFocused:!1});case"openDialog":return Ee(Ee({},Zp),{},{isFileDialogActive:!0});case"closeDialog":return Ee(Ee({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ee(Ee({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ee(Ee({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Ee({},Zp);default:return e}}function gx(){}function DE({onDrop:e}){return x.jsx("div",{className:"flex items-center justify-center border rounded-md cursor-pointer bg-slate-100 dropzone border-slate-200 dz-clickable",children:x.jsx(tl,{onDrop:e,children:({getRootProps:t,getInputProps:n})=>x.jsxs("div",{className:"w-full py-5 text-lg text-center dz-message needsclick",...t(),children:[x.jsx("input",{...n()}),x.jsx("div",{className:"mb-3",children:x.jsx(xE,{className:"block size-12 mx-auto text-slate-500 fill-slate-200"})}),x.jsxs("h5",{className:"mb-0 font-normal text-slate-500 text-15",children:["Yüklemek istediğiniz görseli buraya sürükleyin veya"," ",x.jsx("span",{className:"text-custom-500",children:"seçmek için tıklayın"})]})]})})})}DE.Button=({onDrop:e})=>x.jsx(tl,{onDrop:e,children:({getRootProps:t,getInputProps:n})=>x.jsxs("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center hover:bg-slate-100 text-center dz-message needsclick cursor-pointer",...t(),children:[x.jsx("input",{...n()}),x.jsx(xE,{className:"size-6 text-slate-500 fill-slate-200"})]})});function C$({onNewMessage:e,client_id:t,is_uploadable:n}){const r=g.useRef(null),i=ns(),s=vD(t),[o,a]=g.useState(""),[l,u]=g.useState("3rem"),[d,c]=g.useState(!1),[f,p]=g.useState([]),h=async()=>{if(!o.trim())return;c(!0);let w;if(n&&f.length>0){const[m,v]=await s.mutateAsync(f);uc(v)&&yD(m)&&(w=m.file_urls)}i==null||i.emit(qn.MessageCreate,{content:o,files:w},m=>{a(""),e(m),c(!1),p([]),r.current&&(r.current.style.height="3rem",u("3rem"))})},y=w=>{i==null||i.emit(qn.MessageTyping,{content:w})};return x.jsxs("form",{className:"p-3 flex items-start gap-3 bg-white rounded-b-xl",onSubmit:w=>{w.preventDefault(),h(),w.currentTarget.reset()},children:[x.jsxs("div",{className:"grow relative",children:[n&&f&&f.length>0&&x.jsx("div",{className:"absolute bottom-14",children:x.jsx(vE,{files:f,onDelete:w=>{p(f.filter((m,v)=>v!==w))}})}),x.jsx(lg,{id:"message",inputRef:r,className:"grow shadow-none",noMargin:!0,autoComplete:"off",style:{height:l,maxHeight:"6rem"},placeholder:"Mesajınızı yazın",onChange:w=>{if(a(w.target.value),y(w.target.value),w.target.value.length>0&&w.currentTarget.scrollHeight>w.currentTarget.clientHeight){const m=`${w.currentTarget.scrollHeight}px`;w.currentTarget.style.height=m,u(m)}else w.currentTarget.style.height="3rem",u("3rem")},onKeyDown:w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),w.stopPropagation(),w.currentTarget.value="",h())}})]}),x.jsxs(Me.div,{whileTap:{scale:.95},className:"flex items-center gap-2 justify-center",children:[n&&x.jsx(DE.Button,{onDrop:w=>{w.length&&p([...f,...w])}}),x.jsx(or,{className:"rounded-full shadow-sm w-12 h-12 flex items-center justify-center",type:"submit",disabled:d||!o.trim(),children:d?x.jsx(Oe.Spin,{className:"size-6 animate-spin"}):x.jsx(Oe.PaperAirplane,{className:"size-6 -rotate-12"})})]})]})}function _$({chat:e,isTyping:t,shortcutMessages:n,messages:r,onNewMessage:i,onChatClose:s}){var d,c;const{widget:o,setOpen:a}=ln(),l=hr(),u=xc();return x.jsxs(x.Fragment,{children:[x.jsxs("header",{style:{backgroundColor:"#ffffff",color:l.getColor(Q.HeaderText),borderBottom:"1px solid #f1f5f9"},className:"p-4 rounded-t-xl flex justify-between items-center z-10",children:[e!=null&&e.agent_name?x.jsx(IL,{name:e.agent_name,avatar:e.agent_avatar,className:"text-neutral-800"}):x.jsx("div",{style:{color:"#334155"},className:"font-medium",children:((c=(d=o==null?void 0:o.appearance)==null?void 0:d.design)==null?void 0:c.greeting_header)||"Bizimle Sohbet Edin"}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(gI,{onChatClose:s}),u&&x.jsx("button",{type:"button",style:{color:"#334155"},onClick:()=>a(!1),children:x.jsx(Oe.X,{className:"w-5 h-5 cursor-pointer"})})]})]}),x.jsx(xI,{messages:r,isTyping:t||n.length>0}),x.jsx(C$,{client_id:(o==null?void 0:o.client_id)||"",is_uploadable:e.is_customer_uploadable,onNewMessage:f=>{i(f)}}),x.jsxs("a",{href:"https://alfatekyazilim.com.tr",target:"_blank",rel:"noopener noreferrer",className:"py-1.5 px-3 text-xs text-center text-slate-400 border-t border-slate-100 flex items-center justify-center gap-1 hover:text-slate-600 transition-colors",children:[x.jsx("span",{children:"Powered by"}),x.jsx("span",{className:"font-medium",children:"Alfatek"}),x.jsx("img",{src:"https://alfatekyazilim.com.tr/images/favicon.png",alt:"Alfatek",className:"size-3.5 ml-0.5"})]})]})}function P$({rating:e,onChange:t}){return x.jsx("div",{className:"flex items-center justify-center gap-1 my-3",children:[1,2,3,4,5].map(n=>{const r=n<=e,i=!r&&n-.5<=e;return x.jsxs("div",{className:"relative w-10 h-10",children:[x.jsx("svg",{className:"w-10 h-10 text-slate-200 fill-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),i&&x.jsx("div",{className:"absolute top-0 left-0 w-5 h-10 overflow-hidden",children:x.jsx("svg",{className:"w-10 h-10 text-blue-500 fill-blue-500",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})})}),r&&x.jsx("svg",{className:"w-10 h-10 text-blue-500 fill-blue-500 absolute top-0 left-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),x.jsxs("div",{className:"absolute inset-0 flex",children:[x.jsx("button",{type:"button",onClick:()=>t(n-.5),className:"w-1/2 h-full cursor-pointer focus:outline-none","aria-label":`${n-.5} stars`}),x.jsx("button",{type:"button",onClick:()=>t(n),className:"w-1/2 h-full cursor-pointer focus:outline-none","aria-label":`${n} stars`})]})]},n)})})}function j$({onOk:e}){const[t,n]=g.useState(0),[r,i]=g.useState(!1),[s,o]=g.useState(10),a=gD();g.useEffect(()=>{if(r){const c=setInterval(()=>{o(f=>f<=1?(clearInterval(c),e(!0),0):f-1)},1e3);return()=>clearInterval(c)}},[r]);const l=Km({comment:Bu()}),u=Jk({init:{comment:""},schema:l,action:async c=>{const[f,p]=await a.mutateAsync({rating:t,comment:c.comment});if(uc(p)){i(!0);return}tE(f,{form:u})}}),d=()=>{e(!0)};return x.jsxs("div",{className:"flex flex-col h-full",children:[x.jsx("header",{style:{backgroundColor:r?"#ffffff":"#4F46E5",color:r?"#334155":"#ffffff",borderBottom:"1px solid #f1f5f9"},className:"p-4 rounded-t-xl flex justify-between items-center z-10",children:x.jsx("div",{className:"font-medium",children:r?"Teşekkürler!":"Görüşmenizi Değerlendirin"})}),x.jsx("div",{className:"flex-1 p-6 overflow-y-auto flex flex-col",children:r?x.jsxs(Me.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex flex-col items-center justify-center h-full text-center",children:[x.jsx("div",{className:"text-green-500 mb-4",children:x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),x.jsx("h2",{className:"text-xl font-semibold mb-2 text-slate-800",children:"Değerlendirmeniz için teşekkürler!"}),x.jsx("p",{className:"text-slate-600 mb-8",children:"Geri bildiriminiz bizim için çok değerli."}),x.jsxs("p",{className:"text-slate-500 mb-4",children:["Ekran ",s," saniye içinde kapanacaktır."]}),x.jsx(or,{onClick:d,className:"w-full max-w-xs bg-blue-600 hover:bg-blue-700 text-white rounded-lg py-2.5 font-medium transition-colors",children:"Yeni Görüşme Başlat"})]}):x.jsxs(Me.div,{initial:{opacity:0},animate:{opacity:1},className:"flex flex-col",children:[x.jsx("div",{className:"text-center mb-6",children:x.jsx("p",{className:"text-slate-600 text-base",children:"Lütfen hizmetimizi değerlendirin. Görüşleriniz bizim için önemli."})}),x.jsxs("div",{className:"mb-6",children:[x.jsx("h3",{className:"text-center font-medium mb-2 text-slate-800 text-lg",children:"Görüşmeyi puanlayın"}),x.jsx(P$,{rating:t,onChange:n}),t>0&&x.jsxs("p",{className:"text-center text-sm text-slate-500 mt-1",children:["Puanınız:"," ",Number.isInteger(t)?t:t.toFixed(1)]})]}),x.jsxs("form",{onSubmit:u.handleSubmit,className:"space-y-5",children:[x.jsxs("div",{children:[x.jsx("label",{htmlFor:"comment",className:"block text-sm font-medium text-slate-700 mb-1",children:"Yorumunuz (İsteğe bağlı)"}),x.jsx(lg,{id:"comment",onChange:u.handleChange,onBlur:u.handleBlur,value:u.values.comment,placeholder:"Görüşme hakkında düşüncelerinizi paylaşın...",className:"rounded-lg border-slate-200 focus:border-blue-500 focus:ring-blue-500 shadow-sm",error:u.errors.comment})]}),x.jsxs("div",{className:"flex flex-col gap-3 pt-2",children:[x.jsx(or,{type:"submit",onClick:c=>{t<1&&(c.preventDefault(),c.stopPropagation(),Wp({description:"Lütfen bir puan veriniz",variant:"error"}))},className:"w-full bg-blue-600 hover:bg-blue-700 text-white rounded-lg py-2.5 font-medium transition-colors disabled:bg-slate-200 disabled:text-slate-400",children:"Değerlendirmeyi Gönder"}),x.jsx(or,{onClick:d,className:"w-full bg-slate-100 hover:bg-slate-200 text-slate-700 rounded-lg py-2.5 font-medium transition-colors",children:"Yeni Görüşme Başlat"})]})]})]})}),x.jsxs("a",{href:"https://alfatekyazilim.com.tr",target:"_blank",rel:"noopener noreferrer",className:"py-1.5 px-3 text-xs text-center text-slate-400 border-t border-slate-100 flex items-center justify-center gap-1 hover:text-slate-600 transition-colors",children:[x.jsx("span",{children:"Powered by"}),x.jsx("span",{className:"font-medium",children:"Alfatek"}),x.jsx("img",{src:"https://alfatekyazilim.com.tr/images/favicon.png",alt:"Alfatek",className:"size-3.5 ml-0.5"})]})]})}function A$({children:e}){const{widget:t}=ln();return t?x.jsx("section",{className:"h-full w-full relative",children:e}):null}function R$({children:e}){const t=ns();return g.useEffect(()=>{t&&t.connect()},[]),!t||!t.connected?null:e}function O$(){const{widget:e,setOpen:t,setIsHaveChat:n}=ln(),r=ns(),i=Vm(),[s,o]=g.useState(null),[a,l]=g.useState([]),[u,d]=g.useState(!1),[c,f]=g.useState([]),p=()=>{if(s){o({...s,status:ms.Closed});return}h()},h=w=>{w||(t(!1),my()),n(!1),o(null),l([]),f([]),Dp(e.client_id).then(()=>{r==null||r.disconnect(),i.push("registration")})};g.useEffect(()=>{r==null||r.emit(qn.ChatView,{},w=>{if(w===null){t(!1),n(!1),Dp(e.client_id),l([]),f([]),my(),i.push("registration");return}o(w),n(!0)})},[]);const y=g.useCallback(w=>{s&&![ms.Closed,ms.Deleted].includes(s.status)&&l([...a,w])},[a,s]);return g.useEffect(()=>{if(!r)return;const w=E=>{const C={content:E.content,created_at:E.created_at,files:E.files,id:E._id,sender_type:E.sender_type,answers:E.answers,reply_id:E.reply_id};if(c.length>0){f(S=>[...S,C]);return}E.is_shortcut?f([C]):y(C),d(!1)},m=E=>{o({...s,agent_name:E.name,agent_avatar:E.avatar,is_customer_uploadable:(s==null?void 0:s.is_customer_uploadable)??!1,status:(s==null?void 0:s.status)??ms.Open}),y({content:` _ _${E.name}`,created_at:new Date,files:[],id:Math.random().toString(),sender_type:lt.Activity,activity_type:rE.AdminJoin,sender_name:E.name})},v=()=>{d(!0)},b=()=>{p()},T=({is_customer_uploadable:E})=>{o(s?{...s,is_customer_uploadable:E}:null)};return r.on(nt.MessageAgentCreate,w),r.on(nt.ChatUserAssignee,m),r.on(nt.MessageAgentTyping,v),r.on(nt.ChatUserClose,b),r.on(nt.ChatToggleUpload,T),()=>{r.off(nt.MessageAgentCreate,w),r.off(nt.ChatUserAssignee,m),r.off(nt.MessageAgentTyping,v),r.off(nt.ChatUserClose,b),r.off(nt.ChatToggleUpload,T)}},[y]),g.useEffect(()=>{!r||!s||r.emit(qn.MessageList,{},w=>{l(w)})},[r,s]),g.useEffect(()=>{const w=setTimeout(()=>{d(!1)},2e3);return()=>clearTimeout(w)},[u]),g.useEffect(()=>{if(!e||c.length===0)return;let w=0;e.writing_timeout&&(w=[...c[0].content].length/e.writing_timeout,w<0&&(w=0));const m=setTimeout(()=>{y(c[0]),f(c.slice(1))},w*1e3);return()=>clearTimeout(m)},[c,e]),s?x.jsxs(x.Fragment,{children:[x.jsx("div",{id:"chat-alert-portal"}),x.jsx(Ki,{children:x.jsx(Me.div,{initial:{opacity:0,scale:.98,y:5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:5},transition:{type:"spring",damping:35,stiffness:400,duration:.2},className:"bg-white h-full w-full rounded-xl shadow-sm flex flex-col overflow-hidden",children:s.status===ms.Closed?x.jsx(j$,{onOk:h}):x.jsx(_$,{chat:s,isTyping:u,messages:a,shortcutMessages:c,onNewMessage:y,onChatClose:p})})})]}):null}function D$(){return OL(),null}function F$(){return x.jsxs(R$,{children:[x.jsx(uk,{defaultOpen:!0,children:x.jsx(A$,{children:x.jsx(O$,{})})}),x.jsx(D$,{})]})}const N$=[{path:"/chat",component:F$,name:"chat"}],FE=[...N$],NE=[...LL],M$=[...FE,...NE];function L$(){return x.jsx(X_,{future:{v7_startTransition:!0},children:x.jsxs(J_,{children:[FE.map((e,t)=>x.jsx(ip,{path:e.path,element:x.jsx(e.component,{})},t)),NE.map((e,t)=>x.jsx(ip,{path:e.path,element:x.jsx(e.component,{})},t))]})})}function I$({link_id:e,defaultValues:t,soundPath:n}){const{setWidget:r,widget:i,setDefaultValues:s,setSoundPath:o}=ln(),{data:a,isLoading:l}=s_(e);return g.useEffect(()=>{Array.isArray(a)&&a_(a[0])&&(r(a[0]),s(t),o(n))},[a]),l||!i?null:x.jsx(wL,{children:x.jsx(dD,{children:x.jsx(L$,{})})})}const $$=new V2;function z$({container:e,link_id:t,defaultValues:n,soundPath:r}){zw(e).render(x.jsxs(q2,{client:$$,children:[x.jsx(I$,{link_id:t,defaultValues:n,soundPath:r}),x.jsx(dL,{richColors:!0,style:{zIndex:999999,position:"fixed",top:"10px",right:"10px"},position:"top-right"})]}))}window.widget=z$});export default V$();
|
|
135
|
+
*/const AI=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],bE=jI("cloud-upload",AI);var SE={exports:{}},RI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",OI=RI,DI=OI;function kE(){}function EE(){}EE.resetWarningCache=kE;var FI=function(){function e(r,i,s,o,a,l){if(l!==DI){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:EE,resetWarningCache:kE};return n.PropTypes=n,n};SE.exports=FI();var NI=SE.exports;const me=Qi(NI);function us(e,t,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function a(d){try{u(r.next(d))}catch(c){o(c)}}function l(d){try{u(r.throw(d))}catch(c){o(c)}}function u(d){d.done?s(d.value):i(d.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const MI=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function po(e,t,n){const r=LI(e),{webkitRelativePath:i}=e,s=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&ux(r,"path",s),ux(r,"relativePath",s),r}function LI(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=MI.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function ux(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const II=[".DS_Store","Thumbs.db"];function $I(e){return us(this,void 0,void 0,function*(){return Hu(e)&&zI(e.dataTransfer)?HI(e.dataTransfer,e.type):BI(e)?VI(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?UI(e):[]})}function zI(e){return Hu(e)}function BI(e){return Hu(e)&&Hu(e.target)}function Hu(e){return typeof e=="object"&&e!==null}function VI(e){return Qp(e.target.files).map(t=>po(t))}function UI(e){return us(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>po(n))})}function HI(e,t){return us(this,void 0,void 0,function*(){if(e.items){const n=Qp(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(WI));return cx(TE(r))}return cx(Qp(e.files).map(n=>po(n)))})}function cx(e){return e.filter(t=>II.indexOf(t.name)===-1)}function Qp(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function WI(e){if(typeof e.webkitGetAsEntry!="function")return dx(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?CE(t):dx(e,t)}function TE(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?TE(n):[n]],[])}function dx(e,t){return us(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const s=yield e.getAsFileSystemHandle();if(s===null)throw new Error(`${e} is not a File`);if(s!==void 0){const o=yield s.getFile();return o.handle=s,po(o)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return po(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function qI(e){return us(this,void 0,void 0,function*(){return e.isDirectory?CE(e):KI(e)})}function CE(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function s(){t.readEntries(o=>us(this,void 0,void 0,function*(){if(o.length){const a=Promise.all(o.map(qI));i.push(a),s()}else try{const a=yield Promise.all(i);n(a)}catch(a){r(a)}}),o=>{r(o)})}s()})}function KI(e){return us(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=po(r,e.fullPath);t(i)},r=>{n(r)})})})}var Gd=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),s=i.replace(/\/.*$/,"");return n.some(function(o){var a=o.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?s===a.replace(/\/.*$/,""):i===a})}return!0};function fx(e){return YI(e)||QI(e)||PE(e)||GI()}function GI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
136
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YI(e){if(Array.isArray(e))return Yp(e)}function px(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?px(Object(n),!0).forEach(function(r){_E(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):px(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function La(e,t){return JI(e)||ZI(e,t)||PE(e,t)||XI()}function XI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
137
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PE(e,t){if(e){if(typeof e=="string")return Yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yp(e,t)}}function Yp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ZI(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function JI(e){if(Array.isArray(e))return e}var e$=typeof Gd=="function"?Gd:Gd.default,t$="file-invalid-type",n$="file-too-large",r$="file-too-small",i$="too-many-files",s$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:t$,message:"File type must be ".concat(r)}},mx=function(t){return{code:n$,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},gx=function(t){return{code:r$,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},o$={code:i$,message:"Too many files"};function jE(e,t){var n=e.type==="application/x-moz-file"||e$(e,t);return[n,n?null:s$(t)]}function AE(e,t,n){if(bi(e.size))if(bi(t)&&bi(n)){if(e.size>n)return[!1,mx(n)];if(e.size<t)return[!1,gx(t)]}else{if(bi(t)&&e.size<t)return[!1,gx(t)];if(bi(n)&&e.size>n)return[!1,mx(n)]}return[!0,null]}function bi(e){return e!=null}function a$(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,s=e.multiple,o=e.maxFiles,a=e.validator;return!s&&t.length>1||s&&o>=1&&t.length>o?!1:t.every(function(l){var u=jE(l,n),d=La(u,1),c=d[0],f=AE(l,r,i),p=La(f,1),h=p[0],y=a?a(l):null;return c&&h&&!y})}function Wu(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Fl(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function vx(e){e.preventDefault()}function l$(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function u$(e){return e.indexOf("Edge/")!==-1}function c$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return l$(e)||u$(e)}function An(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return t.some(function(a){return!Wu(r)&&a&&a.apply(void 0,[r].concat(s)),Wu(r)})}}function d$(){return"showOpenFilePicker"in window}function f$(e){if(bi(e)){var t=Object.entries(e).filter(function(n){var r=La(n,2),i=r[0],s=r[1],o=!0;return RE(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(s)||!s.every(OE))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,r){var i=La(r,2),s=i[0],o=i[1];return hx(hx({},n),{},_E({},s,o))},{});return[{description:"Files",accept:t}]}return e}function p$(e){if(bi(e))return Object.entries(e).reduce(function(t,n){var r=La(n,2),i=r[0],s=r[1];return[].concat(fx(t),[i],fx(s))},[]).filter(function(t){return RE(t)||OE(t)}).join(",")}function h$(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function m$(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function RE(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function OE(e){return/^.*\.[\w]+$/.test(e)}var g$=["children"],v$=["open"],y$=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],x$=["refKey","onChange","onClick"];function w$(e){return k$(e)||S$(e)||DE(e)||b$()}function b$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
138
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k$(e){if(Array.isArray(e))return Xp(e)}function Qd(e,t){return C$(e)||T$(e,t)||DE(e,t)||E$()}function E$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
139
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DE(e,t){if(e){if(typeof e=="string")return Xp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xp(e,t)}}function Xp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function C$(e){if(Array.isArray(e))return e}function yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(n),!0).forEach(function(r){Zp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yx(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qu(e,t){if(e==null)return{};var n=_$(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _$(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 tl=m.forwardRef(function(e,t){var n=e.children,r=qu(e,g$),i=P$(r),s=i.open,o=qu(i,v$);return m.useImperativeHandle(t,function(){return{open:s}},[s]),F.createElement(m.Fragment,null,n(Ce(Ce({},o),{},{open:s})))});tl.displayName="Dropzone";var FE={disabled:!1,getFilesFromEvent:$I,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};tl.defaultProps=FE;tl.propTypes={children:me.func,accept:me.objectOf(me.arrayOf(me.string)),multiple:me.bool,preventDropOnDocument:me.bool,noClick:me.bool,noKeyboard:me.bool,noDrag:me.bool,noDragEventsBubbling:me.bool,minSize:me.number,maxSize:me.number,maxFiles:me.number,disabled:me.bool,getFilesFromEvent:me.func,onFileDialogCancel:me.func,onFileDialogOpen:me.func,useFsAccessApi:me.bool,autoFocus:me.bool,onDragEnter:me.func,onDragLeave:me.func,onDragOver:me.func,onDrop:me.func,onDropAccepted:me.func,onDropRejected:me.func,onError:me.func,validator:me.func};var Jp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function P$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ce(Ce({},FE),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,s=t.maxSize,o=t.minSize,a=t.multiple,l=t.maxFiles,u=t.onDragEnter,d=t.onDragLeave,c=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,y=t.onFileDialogCancel,b=t.onFileDialogOpen,g=t.useFsAccessApi,x=t.autoFocus,w=t.preventDropOnDocument,C=t.noClick,T=t.noKeyboard,E=t.noDrag,S=t.noDragEventsBubbling,_=t.onError,D=t.validator,R=m.useMemo(function(){return p$(n)},[n]),I=m.useMemo(function(){return f$(n)},[n]),ne=m.useMemo(function(){return typeof b=="function"?b:xx},[b]),te=m.useMemo(function(){return typeof y=="function"?y:xx},[y]),Z=m.useRef(null),J=m.useRef(null),G=m.useReducer(j$,Jp),Y=Qd(G,2),O=Y[0],M=Y[1],U=O.isFocused,V=O.isFileDialogActive,H=m.useRef(typeof window<"u"&&window.isSecureContext&&g&&d$()),X=function(){!H.current&&V&&setTimeout(function(){if(J.current){var A=J.current.files;A.length||(M({type:"closeDialog"}),te())}},300)};m.useEffect(function(){return window.addEventListener("focus",X,!1),function(){window.removeEventListener("focus",X,!1)}},[J,V,te,H]);var ue=m.useRef([]),he=function(A){Z.current&&Z.current.contains(A.target)||(A.preventDefault(),ue.current=[])};m.useEffect(function(){return w&&(document.addEventListener("dragover",vx,!1),document.addEventListener("drop",he,!1)),function(){w&&(document.removeEventListener("dragover",vx),document.removeEventListener("drop",he))}},[Z,w]),m.useEffect(function(){return!r&&x&&Z.current&&Z.current.focus(),function(){}},[Z,x,r]);var ee=m.useCallback(function(j){_?_(j):console.error(j)},[_]),Fe=m.useCallback(function(j){j.preventDefault(),j.persist(),yr(j),ue.current=[].concat(w$(ue.current),[j.target]),Fl(j)&&Promise.resolve(i(j)).then(function(A){if(!(Wu(j)&&!S)){var B=A.length,q=B>0&&a$({files:A,accept:R,minSize:o,maxSize:s,multiple:a,maxFiles:l,validator:D}),oe=B>0&&!q;M({isDragAccept:q,isDragReject:oe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(j)}}).catch(function(A){return ee(A)})},[i,u,ee,S,R,o,s,a,l,D]),Ye=m.useCallback(function(j){j.preventDefault(),j.persist(),yr(j);var A=Fl(j);if(A&&j.dataTransfer)try{j.dataTransfer.dropEffect="copy"}catch{}return A&&c&&c(j),!1},[c,S]),Xe=m.useCallback(function(j){j.preventDefault(),j.persist(),yr(j);var A=ue.current.filter(function(q){return Z.current&&Z.current.contains(q)}),B=A.indexOf(j.target);B!==-1&&A.splice(B,1),ue.current=A,!(A.length>0)&&(M({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Fl(j)&&d&&d(j))},[Z,d,S]),Ot=m.useCallback(function(j,A){var B=[],q=[];j.forEach(function(oe){var $e=jE(oe,R),Ze=Qd($e,2),Cn=Ze[0],qt=Ze[1],ds=AE(oe,o,s),Yn=Qd(ds,2),xr=Yn[0],fs=Yn[1],Eo=D?D(oe):null;if(Cn&&xr&&!Eo)B.push(oe);else{var fi=[qt,fs];Eo&&(fi=fi.concat(Eo)),q.push({file:oe,errors:fi.filter(function(_n){return _n})})}}),(!a&&B.length>1||a&&l>=1&&B.length>l)&&(B.forEach(function(oe){q.push({file:oe,errors:[o$]})}),B.splice(0)),M({acceptedFiles:B,fileRejections:q,isDragReject:q.length>0,type:"setFiles"}),f&&f(B,q,A),q.length>0&&h&&h(q,A),B.length>0&&p&&p(B,A)},[M,a,R,o,s,l,f,p,h,D]),Tn=m.useCallback(function(j){j.preventDefault(),j.persist(),yr(j),ue.current=[],Fl(j)&&Promise.resolve(i(j)).then(function(A){Wu(j)&&!S||Ot(A,j)}).catch(function(A){return ee(A)}),M({type:"reset"})},[i,Ot,ee,S]),cn=m.useCallback(function(){if(H.current){M({type:"openDialog"}),ne();var j={multiple:a,types:I};window.showOpenFilePicker(j).then(function(A){return i(A)}).then(function(A){Ot(A,null),M({type:"closeDialog"})}).catch(function(A){h$(A)?(te(A),M({type:"closeDialog"})):m$(A)?(H.current=!1,J.current?(J.current.value=null,J.current.click()):ee(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ee(A)});return}J.current&&(M({type:"openDialog"}),ne(),J.current.value=null,J.current.click())},[M,ne,te,g,Ot,ee,I,a]),ci=m.useCallback(function(j){!Z.current||!Z.current.isEqualNode(j.target)||(j.key===" "||j.key==="Enter"||j.keyCode===32||j.keyCode===13)&&(j.preventDefault(),cn())},[Z,cn]),gr=m.useCallback(function(){M({type:"focus"})},[]),cs=m.useCallback(function(){M({type:"blur"})},[]),di=m.useCallback(function(){C||(c$()?setTimeout(cn,0):cn())},[C,cn]),bt=function(A){return r?null:A},vr=function(A){return T?null:bt(A)},He=function(A){return E?null:bt(A)},yr=function(A){S&&A.stopPropagation()},ko=m.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=j.refKey,B=A===void 0?"ref":A,q=j.role,oe=j.onKeyDown,$e=j.onFocus,Ze=j.onBlur,Cn=j.onClick,qt=j.onDragEnter,ds=j.onDragOver,Yn=j.onDragLeave,xr=j.onDrop,fs=qu(j,y$);return Ce(Ce(Zp({onKeyDown:vr(An(oe,ci)),onFocus:vr(An($e,gr)),onBlur:vr(An(Ze,cs)),onClick:bt(An(Cn,di)),onDragEnter:He(An(qt,Fe)),onDragOver:He(An(ds,Ye)),onDragLeave:He(An(Yn,Xe)),onDrop:He(An(xr,Tn)),role:typeof q=="string"&&q!==""?q:"presentation"},B,Z),!r&&!T?{tabIndex:0}:{}),fs)}},[Z,ci,gr,cs,di,Fe,Ye,Xe,Tn,T,E,r]),P=m.useCallback(function(j){j.stopPropagation()},[]),L=m.useMemo(function(){return function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=j.refKey,B=A===void 0?"ref":A,q=j.onChange,oe=j.onClick,$e=qu(j,x$),Ze=Zp({accept:R,multiple:a,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:bt(An(q,Tn)),onClick:bt(An(oe,P)),tabIndex:-1},B,J);return Ce(Ce({},Ze),$e)}},[J,n,a,Tn,r]);return Ce(Ce({},O),{},{isFocused:U&&!r,getRootProps:ko,getInputProps:L,rootRef:Z,inputRef:J,open:bt(cn)})}function j$(e,t){switch(t.type){case"focus":return Ce(Ce({},e),{},{isFocused:!0});case"blur":return Ce(Ce({},e),{},{isFocused:!1});case"openDialog":return Ce(Ce({},Jp),{},{isFileDialogActive:!0});case"closeDialog":return Ce(Ce({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ce(Ce({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ce(Ce({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Ce({},Jp);default:return e}}function xx(){}function NE({onDrop:e}){return v.jsx("div",{className:"flex items-center justify-center border rounded-md cursor-pointer bg-slate-100 dropzone border-slate-200 dz-clickable",children:v.jsx(tl,{onDrop:e,children:({getRootProps:t,getInputProps:n})=>v.jsxs("div",{className:"w-full py-5 text-lg text-center dz-message needsclick",...t(),children:[v.jsx("input",{...n()}),v.jsx("div",{className:"mb-3",children:v.jsx(bE,{className:"block size-12 mx-auto text-slate-500 fill-slate-200"})}),v.jsxs("h5",{className:"mb-0 font-normal text-slate-500 text-15",children:["Yüklemek istediğiniz görseli buraya sürükleyin veya"," ",v.jsx("span",{className:"text-custom-500",children:"seçmek için tıklayın"})]})]})})})}NE.Button=({onDrop:e})=>v.jsx(tl,{onDrop:e,children:({getRootProps:t,getInputProps:n})=>v.jsxs("div",{className:"w-12 h-12 rounded-lg flex items-center justify-center hover:bg-slate-100 text-center dz-message needsclick cursor-pointer",...t(),children:[v.jsx("input",{...n()}),v.jsx(bE,{className:"size-6 text-slate-500 fill-slate-200"})]})});function A$({onNewMessage:e,client_id:t,is_uploadable:n}){const r=m.useRef(null),i=ns(),s=SD(t),[o,a]=m.useState(""),[l,u]=m.useState("3rem"),[d,c]=m.useState(!1),[f,p]=m.useState([]),[h,y]=m.useState(0),[b,g]=m.useState(!1),[x,w]=m.useState(0);m.useEffect(()=>{let E;return b&&x>0&&(E=window.setTimeout(()=>{w(S=>S<=1?(g(!1),y(0),0):S-1)},1e3)),()=>clearTimeout(E)},[b,x]);const C=async()=>{if(!o.trim())return;if(h>=5&&!b){g(!0),w(3);return}if(b)return;c(!0);let E;if(n&&f.length>0){const[S,_]=await s.mutateAsync(f);uc(_)&&kD(S)&&(E=S.file_urls)}i==null||i.emit(Kn.MessageCreate,{content:o,files:E},S=>{a(""),e(S),c(!1),p([]),y(_=>_+1),r.current&&(r.current.style.height="3rem",u("3rem"))})},T=E=>{i==null||i.emit(Kn.MessageTyping,{content:E})};return v.jsxs(v.Fragment,{children:[b&&v.jsxs(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"mb-2 mx-3 rounded-lg z-[100] bg-red-100 border border-red-200 p-2 flex items-center justify-center",children:[v.jsx(ve.XCircle,{className:"size-4 mr-2 text-red-600"}),v.jsxs("span",{className:"text-sm font-medium text-red-800",children:["Çok fazla mesaj gönderdiniz. Lütfen ",x," saniye bekleyin."]})]}),v.jsxs("form",{className:"p-3 flex items-start gap-3 bg-white rounded-b-xl relative",onSubmit:E=>{E.preventDefault(),C(),E.currentTarget.reset()},children:[v.jsxs("div",{className:"grow relative",children:[n&&f&&f.length>0&&v.jsx("div",{className:"absolute bottom-14",children:v.jsx(xE,{files:f,onDelete:E=>{p(f.filter((S,_)=>_!==E))}})}),v.jsx(lg,{id:"message",inputRef:r,className:"grow shadow-none",noMargin:!0,autoComplete:"off",style:{height:l,maxHeight:"6rem"},placeholder:"Mesajınızı yazın",onChange:E=>{if(a(E.target.value),T(E.target.value),E.target.value.length>0&&E.currentTarget.scrollHeight>E.currentTarget.clientHeight){const S=`${E.currentTarget.scrollHeight}px`;E.currentTarget.style.height=S,u(S)}else E.currentTarget.style.height="3rem",u("3rem")},onKeyDown:E=>{E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),E.stopPropagation(),E.currentTarget.value="",C())}})]}),v.jsxs(Te.div,{whileTap:{scale:.95},className:"flex items-center gap-2 justify-center",children:[n&&v.jsx(NE.Button,{onDrop:E=>{E.length&&p([...f,...E])}}),v.jsx(rn,{className:"rounded-full shadow-sm w-12 h-12 flex items-center justify-center",type:"submit",disabled:d||!o.trim()||b,children:d?v.jsx(ve.Spin,{className:"size-6 animate-spin"}):b?v.jsx("span",{className:"text-xs font-bold",children:x}):v.jsx(ve.PaperAirplane,{className:"size-6 -rotate-12"})})]})]})]})}function R$({chat:e,isTyping:t,shortcutMessages:n,messages:r,onNewMessage:i,onChatClose:s}){var d,c;const{widget:o,setOpen:a}=un(),l=hr(),u=wc();return v.jsxs(v.Fragment,{children:[v.jsxs("header",{style:{backgroundColor:"#ffffff",color:l.getColor(Q.HeaderText),borderBottom:"1px solid #f1f5f9"},className:"p-4 rounded-t-xl flex justify-between items-center z-10",children:[e!=null&&e.agent_name?v.jsx(VL,{name:e.agent_name,avatar:e.agent_avatar,className:"text-neutral-800"}):v.jsx("div",{style:{color:"#334155"},className:"font-medium",children:((c=(d=o==null?void 0:o.appearance)==null?void 0:d.design)==null?void 0:c.greeting_header)||"Bizimle Sohbet Edin"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(wI,{onChatClose:s}),u&&v.jsx("button",{type:"button",style:{color:"#334155"},onClick:()=>a(!1),children:v.jsx(ve.X,{className:"w-5 h-5 cursor-pointer"})})]})]}),v.jsx(kI,{messages:r,isTyping:t||n.length>0}),v.jsx(A$,{client_id:(o==null?void 0:o.client_id)||"",is_uploadable:e.is_customer_uploadable,onNewMessage:f=>{i(f)}}),v.jsxs("a",{href:"https://alfatekyazilim.com.tr",target:"_blank",rel:"noopener noreferrer",className:"py-1.5 px-3 text-xs text-center text-slate-400 border-t border-slate-100 flex items-center justify-center gap-1 hover:text-slate-600 transition-colors",children:[v.jsx("span",{children:"Powered by"}),v.jsx("span",{className:"font-medium",children:"Alfatek"}),v.jsx("img",{src:"https://alfatekyazilim.com.tr/images/favicon.png",alt:"Alfatek",className:"size-3.5 ml-0.5"})]})]})}function O$({rating:e,onChange:t}){return v.jsx("div",{className:"flex items-center justify-center gap-1 my-3",children:[1,2,3,4,5].map(n=>{const r=n<=e,i=!r&&n-.5<=e;return v.jsxs("div",{className:"relative w-10 h-10",children:[v.jsx("svg",{className:"w-10 h-10 text-slate-200 fill-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),i&&v.jsx("div",{className:"absolute top-0 left-0 w-5 h-10 overflow-hidden",children:v.jsx("svg",{className:"w-10 h-10 text-blue-500 fill-blue-500",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})})}),r&&v.jsx("svg",{className:"w-10 h-10 text-blue-500 fill-blue-500 absolute top-0 left-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"})}),v.jsxs("div",{className:"absolute inset-0 flex",children:[v.jsx("button",{type:"button",onClick:()=>t(n-.5),className:"w-1/2 h-full cursor-pointer focus:outline-none","aria-label":`${n-.5} stars`}),v.jsx("button",{type:"button",onClick:()=>t(n),className:"w-1/2 h-full cursor-pointer focus:outline-none","aria-label":`${n} stars`})]})]},n)})})}function D$({onOk:e}){const[t,n]=m.useState(0),[r,i]=m.useState(!1),[s,o]=m.useState(10),a=bD(),[l,u]=m.useState(!1);m.useEffect(()=>{if(r){const p=setInterval(()=>{o(h=>h<=1?(clearInterval(p),e(!0),0):h-1)},1e3);return()=>clearInterval(p)}},[r]);const d=Km({comment:Vu()}),c=tE({init:{comment:""},schema:d,action:async p=>{const[h,y]=await a.mutateAsync({rating:t,comment:p.comment});if(uc(y)){i(!0);return}rE(h,{form:c})}}),f=()=>{e(!0)};return v.jsxs("div",{className:"flex flex-col h-full",children:[v.jsxs("header",{style:{backgroundColor:r?"#ffffff":"#4F46E5",color:r?"#334155":"#ffffff",borderBottom:"1px solid #f1f5f9"},className:"p-4 rounded-t-xl flex justify-between items-center z-10",children:[v.jsx("div",{className:"font-medium",children:r?"Teşekkürler!":"Görüşmenizi Değerlendirin"}),v.jsx(rn,{animations:{whileHover:{scale:1.1},whileTap:{scale:.95}},size:"sm",rounded:!0,onClick:()=>e(!1),className:"text-inherit cursor-pointer",children:v.jsx(ve.X,{className:"size-4"})})]}),v.jsx("div",{className:"flex-1 p-6 overflow-y-auto flex flex-col",children:r?v.jsxs(Te.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"flex flex-col items-center justify-center h-full text-center",children:[v.jsx("div",{className:"text-green-500 mb-4",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-16 w-16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),v.jsx("h2",{className:"text-xl font-semibold mb-2 text-slate-800",children:"Değerlendirmeniz için teşekkürler!"}),v.jsx("p",{className:"text-slate-600 mb-8",children:"Geri bildiriminiz bizim için çok değerli."}),v.jsxs("p",{className:"text-slate-500 mb-4",children:["Ekran ",s," saniye içinde kapanacaktır."]}),v.jsx(rn,{onClick:f,className:"w-full max-w-xs bg-blue-600 hover:bg-blue-700 text-white rounded-lg py-2.5 font-medium transition-colors",children:"Yeni Görüşme Başlat"})]}):v.jsxs(Te.div,{initial:{opacity:0},animate:{opacity:1},className:"flex flex-col",children:[v.jsx("div",{className:"text-center mb-6",children:v.jsx("p",{className:"text-slate-600 text-base",children:"Lütfen hizmetimizi değerlendirin. Görüşleriniz bizim için önemli."})}),v.jsxs("div",{className:"mb-6",children:[v.jsx("h3",{className:"text-center font-medium mb-2 text-slate-800 text-lg",children:"Görüşmeyi puanlayın"}),v.jsx(O$,{rating:t,onChange:p=>{n(p),p>=1&&u(!1)}}),t>0&&v.jsxs("p",{className:"text-center text-sm text-slate-500 mt-1",children:["Puanınız:"," ",Number.isInteger(t)?t:t.toFixed(1)]}),t>0&&t<1||l?v.jsx("p",{className:"text-center text-sm text-red-500 mt-1",children:"Lütfen en az 1 yıldız seçiniz."}):null]}),v.jsxs("form",{onSubmit:c.handleSubmit,className:"space-y-5",children:[v.jsxs("div",{children:[v.jsx("label",{htmlFor:"comment",className:"block text-sm font-medium text-slate-700 mb-1",children:"Yorumunuz (İsteğe bağlı)"}),v.jsx(lg,{id:"comment",onChange:c.handleChange,onBlur:c.handleBlur,value:c.values.comment,placeholder:"Görüşme hakkında düşüncelerinizi paylaşın...",className:"rounded-lg border-slate-200 focus:border-blue-500 focus:ring-blue-500 shadow-sm",error:c.errors.comment})]}),v.jsxs("div",{className:"flex flex-col gap-3 pt-2",children:[v.jsx(rn,{type:"submit",onClick:p=>{t<1&&(p.preventDefault(),p.stopPropagation(),u(!0))},className:"w-full bg-blue-600 hover:bg-blue-700 text-white rounded-lg py-2.5 font-medium transition-colors disabled:bg-slate-200 disabled:text-slate-400",children:"Değerlendirmeyi Gönder"}),v.jsx(rn,{onClick:f,className:"w-full bg-slate-100 hover:bg-slate-200 text-slate-700 rounded-lg py-2.5 font-medium transition-colors",children:"Yeni Görüşme Başlat"})]})]})]})}),v.jsxs("a",{href:"https://alfatekyazilim.com.tr",target:"_blank",rel:"noopener noreferrer",className:"py-1.5 px-3 text-xs text-center text-slate-400 border-t border-slate-100 flex items-center justify-center gap-1 hover:text-slate-600 transition-colors",children:[v.jsx("span",{children:"Powered by"}),v.jsx("span",{className:"font-medium",children:"Alfatek"}),v.jsx("img",{src:"https://alfatekyazilim.com.tr/images/favicon.png",alt:"Alfatek",className:"size-3.5 ml-0.5"})]})]})}function F$({children:e}){const{widget:t}=un();return t?v.jsx("section",{className:"h-full w-full relative",children:e}):null}function N$({children:e}){const t=ns();return m.useEffect(()=>{t&&t.connect()},[]),!t||!t.connected?null:e}function M$(){const{widget:e,setOpen:t,setIsHaveChat:n}=un(),r=ns(),i=Bm(),[s,o]=m.useState(null),[a,l]=m.useState([]),[u,d]=m.useState(!1),[c,f]=m.useState([]),p=()=>{if(s){o({...s,status:ms.Closed});return}h()},h=b=>{b||(t(!1),my()),n(!1),o(null),l([]),f([]),Fp(e.client_id).then(()=>{r==null||r.disconnect(),i.push("registration")})};m.useEffect(()=>{r==null||r.emit(Kn.ChatView,{},b=>{if(b===null){t(!1),n(!1),Fp(e.client_id),l([]),f([]),my(),i.push("registration");return}o(b),n(!0)})},[]);const y=m.useCallback(b=>{s&&![ms.Closed,ms.Deleted].includes(s.status)&&l([...a,b])},[a,s]);return m.useEffect(()=>{if(!r)return;const b=T=>{const E={content:T.content,created_at:T.created_at,files:T.files,id:T._id,sender_type:T.sender_type,answers:T.answers,reply_id:T.reply_id};if(c.length>0){f(S=>[...S,E]);return}T.is_shortcut?f([E]):y(E),d(!1)},g=T=>{o({...s,agent_name:T.name,agent_avatar:T.avatar,is_customer_uploadable:(s==null?void 0:s.is_customer_uploadable)??!1,status:(s==null?void 0:s.status)??ms.Open}),y({content:` _ _${T.name}`,created_at:new Date,files:[],id:Math.random().toString(),sender_type:lt.Activity,activity_type:sE.AdminJoin,sender_name:T.name})},x=()=>{d(!0)},w=()=>{p()},C=({is_customer_uploadable:T})=>{o(s?{...s,is_customer_uploadable:T}:null)};return r.on(nt.MessageAgentCreate,b),r.on(nt.ChatUserAssignee,g),r.on(nt.MessageAgentTyping,x),r.on(nt.ChatUserClose,w),r.on(nt.ChatToggleUpload,C),()=>{r.off(nt.MessageAgentCreate,b),r.off(nt.ChatUserAssignee,g),r.off(nt.MessageAgentTyping,x),r.off(nt.ChatUserClose,w),r.off(nt.ChatToggleUpload,C)}},[y]),m.useEffect(()=>{!r||!s||r.emit(Kn.MessageList,{},b=>{l(b)})},[r,s]),m.useEffect(()=>{const b=setTimeout(()=>{d(!1)},2e3);return()=>clearTimeout(b)},[u]),m.useEffect(()=>{if(!e||c.length===0)return;let b=0;e.writing_timeout&&(b=[...c[0].content].length/e.writing_timeout,b<0&&(b=0));const g=setTimeout(()=>{y(c[0]),f(c.slice(1))},b*1e3);return()=>clearTimeout(g)},[c,e]),s?v.jsxs(v.Fragment,{children:[v.jsx("div",{id:"chat-alert-portal"}),v.jsx(Yr,{children:v.jsx(Te.div,{initial:{opacity:0,scale:.98,y:5},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.98,y:5},transition:{type:"spring",damping:35,stiffness:400,duration:.2},className:"bg-white h-full w-full rounded-xl shadow-sm flex flex-col overflow-hidden",children:s.status===ms.Closed?v.jsx(D$,{onOk:h}):v.jsx(R$,{chat:s,isTyping:u,messages:a,shortcutMessages:c,onNewMessage:y,onChatClose:p})})})]}):null}function L$(){return ML(),null}function I$(){return v.jsxs(N$,{children:[v.jsx(dk,{defaultOpen:!0,children:v.jsx(F$,{children:v.jsx(M$,{})})}),v.jsx(L$,{})]})}const $$=[{path:"/chat",component:I$,name:"chat"}],ME=[...$$],LE=[...BL],z$=[...ME,...LE];function B$(){return v.jsx(J_,{future:{v7_startTransition:!0},children:v.jsxs(tP,{children:[ME.map((e,t)=>v.jsx(sp,{path:e.path,element:v.jsx(e.component,{})},t)),LE.map((e,t)=>v.jsx(sp,{path:e.path,element:v.jsx(e.component,{})},t))]})})}function V$({link_id:e,defaultValues:t,soundPath:n}){const{setWidget:r,widget:i,setDefaultValues:s,setSoundPath:o}=un(),{data:a,isLoading:l}=a_(e);return m.useEffect(()=>{Array.isArray(a)&&u_(a[0])&&(r(a[0]),s(t),o(n))},[a]),l||!i?null:v.jsx(EL,{children:v.jsx(gD,{children:v.jsx(B$,{})})})}const U$=new U2;function H$({container:e,link_id:t,defaultValues:n,soundPath:r}){Uw(e).render(v.jsxs(G2,{client:U$,children:[v.jsx(V$,{link_id:t,defaultValues:n,soundPath:r}),v.jsx(mL,{richColors:!0,style:{zIndex:999999,position:"fixed",bottom:"20px",right:"20px"},position:"bottom-right"})]}))}window.widget=H$});export default W$();
|